import{q as l,r as t,S as m,j as e,a as c,J as n}from"./app-BZJf8lgN.js";import{T as r}from"./toast.esm-CYGIlaDH.js";import{B as p}from"./button.esm-D_cwsnQR.js";import{L as u}from"./layout-DZ5xjWdd.js";import{D as x,C as s}from"./column.esm-BrHEUUD7.js";import{C as j}from"./confirmdialog.esm-DF1Ea2vk.js";import"./csstransition.esm-BNRxTMOa.js";import"./hooks.esm-UVLztt_0.js";import"./CSSTransition-DBuKQJwM.js";import"./index.esm-CygY3Qsw.js";import"./index.esm-B5zYYMSp.js";import"./index.esm-hRnQzR_k.js";import"./inputtext.esm-B1lZn37a.js";import"./index.esm-mvXJc0W-.js";import"./dropdown.esm-HqLoOpxI.js";import"./overlayservice.esm-B-BnP5c1.js";import"./index.esm-Ckth6fI3.js";import"./dialog.esm-B_DzXfDY.js";const K=({pedidos:o})=>{const{errors:f}=l().props,i=t.useRef(null);m();const[h,b]=t.useState(!1),[P,g]=t.useState(!1),[N,v]=t.useState({orden:"",titulo:"",newImgFile:"",accesorio_id:null}),[w,y]=t.useState({id:null,orden:"",titulo:"",imagenPreview:"",newImgFile:"",accesorio_id:""}),[S,E]=t.useState(1),a=d=>e.jsx(e.Fragment,{children:e.jsxs(n,{type:"button",className:"mr-2",icon:"pi pi-file",href:route("pedidos.show",d.id),children:[e.jsx(p,{type:"button",icon:"pi pi-eye",tooltip:"Ver Detalles"})," "]})});return e.jsxs(u,{children:[e.jsx(r,{ref:i}),e.jsx(j,{}),e.jsx(c,{title:"Ver Listado Pedidos"}),e.jsx("div",{className:"grid",children:e.jsx("div",{className:"col-md-12",children:e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"card-header",style:{marginLeft:"80%"}}),e.jsx(r,{ref:i}),e.jsxs(x,{value:o,tableStyle:{minWidth:"50rem"},children:[e.jsx(s,{field:"id",header:"Id"}),e.jsx(s,{field:"cliente.nombre",header:"Nombre"}),e.jsx(s,{field:"cliente.empresa",header:"Empresa"}),e.jsx(s,{header:"Acciones",body:a})]})]})})})]})};export{K as default};
//# sourceMappingURL=Index-CtW26NQN.js.map
