PageSourceSearch

https://multisports.com.br/_next/static/chunks/pages/area-do-cliente/meus-pedidos-ddeb37eed1341f20.js

js multisports.com.br collected 2026-10-09 00:07:05 UTC 19,340 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4603],{63229:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/area-do-cliente/meus-pedidos",function(){return a(15749)}])},92276:function(e,l,a){"use strict";a.d(l,{Z:function(){return CorItem}});var s=a(85893);function CorItem(e){let{hexa:l,descricao:a,size:o=18}=e;return l||a?(0,s.jsxs)("span",{className:"d-inline-flex align-items-center gap-1 mt-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",title:a||void 0,style:{width:o,height:o,minWidth:o,backgroundColor:l||"transparent",border:"1px solid rgba(0, 0, 0, 0.2)",borderRadius:3}}),a&&(0,s.jsx)("span",{className:"fs-12 lh-1",children:a})]}):null}a(67294)},20198:function(e,l,a){"use strict";var s=a(85893);a(67294);var o=a(67814),i=a(59862),n=a(43489),d=a(18682);l.Z=e=>{let{origem:l}=e;return(0,s.jsx)(i.Z,{placement:"top",overlay:e=>(0,s.jsx)(n.Z,{id:"button-tooltip",...e,children:l}),children:(0,s.jsx)("span",{children:(0,s.jsx)(e=>d.Z[l]?(0,s.jsx)(o.G,{icon:d.Z[l].icon,...e}):(0,s.jsx)(o.G,{icon:d.Z.OUTROS.icon,...e}),{fontSize:"18"})})})}},78480:function(e,l,a){"use strict";var s=a(85893);a(67294);var o=a(67814),i=a(18682),n=a(35161),d=a.n(n);l.Z=()=>(0,s.jsxs)("div",{className:"mt-2",children:[(0,s.jsx)("label",{children:"Legenda:"}),(0,s.jsx)("div",{children:d()(i.Z,(e,l)=>(0,s.jsxs)("span",{className:"me-3",children:[(0,s.jsx)(o.G,{icon:e.icon,fontSize:10})," ",(0,s.jsx)("small",{children:(0,s.jsx)("strong",{children:e.descricao})})]},l))})]})},18682:function(e,l,a){"use strict";a(67294);var s=a(59417);let o={SITE:{descricao:"Site",icon:s.g4A},CALLCENTER:{descricao:"Callcenter",icon:s.XKl},REPRESENTANTE:{descricao:"Representante",icon:s.hkK},OUTROS:{descricao:"Outros",icon:s.NxF}};l.Z=o},15749:function(e,l,a){"use strict";a.r(l),a.d(l,{__N_SSP:function(){return z},default:function(){return PedidosPage}});var s,o=a(85893),i=a(67294),n=a(1380),d=a(91444),t=a(30316),c=a(86992),r=a(79944),m=a(75623),u=a(95642),x=a(7454),v=a(12378),h=a(9473);function usePedidosRepository(){var e;let{cliente:l,filial:a}=(0,m.Z)(),s=(0,h.I0)(),o={...c.ZP.PEDIDOS_PAGINATE.qs,clienteId:null==l?void 0:l.id,filialId:"",take:12,mes_ano:new Date().getFullYear()+"-"+("0"+(new Date().getMonth()+1)).slice(-2)},[n,p]=(0,i.useState)(o),g=(0,r.Z)({apiParams:{endPoint:c.ZP.PEDIDOS_PAGINATE,qs:o}}),N=(0,u.Z)({apiParams:{endPoint:c.ZP.BAIXAR_PEDIDO,isFile:!0,fileName:"fileName",qs:{...c.ZP.BAIXAR_PEDIDO.qs}},initialData:{}}),j=(0,u.Z)({apiParams:{endPoint:c.ZP.DUPLICAR_PEDIDO,qs:{...c.ZP.DUPLICAR_PEDIDO.qs}},initialData:{},showToastOnSuccess:!0}),f=(0,u.Z)({apiParams:{endPoint:c.ZP.INCLUSAO_PEDIDO},initialData:{},showToastOnSuccess:!0}),b={mes_ano:{label:"M\xeas/Ano",type:"month",qs:"mes_ano"},filial:{label:"Filial",qs:"filialId",options:[{value:"",label:"Todos"},...(null!==(e=null==l?void 0:l.filiais)&&void 0!==e?e:[]).map(e=>({value:e.id,label:"".concat(e.id," - ").concat(e.razSoc)}))]}};return{...g,columnsToSort:{Data:{value:"dtHorInc",label:"Cria\xe7\xe3o"},id:{value:"id",label:"Id"},loja:{value:"loja",label:"Loja"},qtdeIt:{value:"qtdeIt",label:"Qtds"},st:{value:"st",label:"Status"},Valor:{value:"vlTot",label:"Total"}},filtros:b,initialFiltro:o,onDownload:(e,l)=>{N.doFetch({id:e.id},{},{id:e.id},{fileName:e.id}).finally(()=>{l()})},onDuplicarPedido:(e,l,a)=>{s(v.Nw.isEditandoOrcamento(!0)),(0,t.g)({title:"Duplicar o pedido ".concat(e.id,"?"),text:"Um novo carrinho ser\xe1 aberto para duplicar o seu pedido.",confirmButtonText:"Duplicar Pedido",action:()=>{j.doFetch({},{},{pedidoId:e.id}).then(e=>{let{data:a}=e,{id:s}=a;null!=l&&l(s,()=>{d.Am.success("Pedido duplicado com sucesso!",{position:d.Am.POSITION.TOP_RIGHT})})}).finally(()=>{a()})},denyButtonAction:()=>{s(v.Nw.isEditandoOrcamento(!1)),a()}})},onComplementarPedido:(e,l,a)=>{s(v.Nw.isEditandoOrcamento(!0)),(0,t.g)({title:"Complementar o pedido ".concat(e.id,"?"),text:"Um novo carrinho ser\xe1 aberto para complementar o seu pedido.",confirmButtonText:"Complementar Pedido",action:()=>{f.doFetch({},{},{pedidoId:e.id}).then(e=>{let{data:a}=e,{id:s}=a;null!=l&&l(s,()=>{d.Am.success("Pedido complementado com sucesso!",{position:d.Am.POSITION.TOP_RIGHT})})}).then(e=>{s(x.Nw.loadDependencies())}).finally(()=>{a()})},denyButtonAction:()=>{s(v.Nw.isEditandoOrcamento(!1)),a()}})},query:n,setQuery:p,goSetTake:e=>{if(e>0)return p({...n,take:e})}}}var p=a(51037),g=a(73744),N=a(41609),j=a.n(N),f=a(35161),b=a.n(f),P=a(30105);function isUrlHttp(e){if(!e||"string"!=typeof e)return!1;try{let l=new URL(e.trim());return"http:"===l.protocol||"https:"===l.protocol}catch(e){return!1}}var I=a(59417),O=a(78535);a(54061);var A=a(34288),E=a(67814),C=a(23453);let Z={AGUARDANDO:{label:"Aguardando",value:"aguardando",icon:I.B2l,className:"status_pedido-aguardando-bg-color"},ANALISE:{label:"An\xe1lise",value:"analise",icon:I.qyA,className:"status_pedido-analise-bg-color"},BLOQUEADO:{label:"Bloqueado",value:"bloqueado",icon:I.gPx,className:"status_pedido-bloqueado-bg-color"},CANCELADO:{label:"Cancelado",value:"cancelado",icon:I.NBC,className:"status_pedido-cancelado-bg-color"},DEPOSITO:{label:"Aguardando Comprovante",value:"deposito",icon:A.SZw,className:"status_pedido-deposito-bg-color"},DEVOLUCAO:{label:"Devolu\xe7\xe3o",value:"devolucao",icon:I.gPx,className:"status_pedido-devolucao-bg-color"},ENTREGUE:{label:"Entregue",value:"entregue",icon:I.uVW,className:"status_pedido-entregue-bg-color"},FATURADO:{label:"Faturado",value:"faturado",icon:I.otv,className:"status_pedido-faturado-bg-color"},LIBERADO:{label:"Aguardando Separa\xe7\xe3o",value:"liberado",icon:I.B2l,className:"status_pedido-liberado-bg-color"},SEPARACAO:{label:"Separa\xe7\xe3o",value:"separacao",icon:I.NkB,className:"status_pedido-separacao-bg-color"}
1,TRANSPORTE:{label:"Transporte",value:"transporte",icon:I.moN,className:"status_pedido-transporte-bg-color"},ATIVO:{label:"Ativo",value:"ativo",icon:I.LEp,className:"status_pedido-ativo-bg-color"},VENCIDO:{label:"Vencido",value:"vencido",icon:A.SZw,className:"status_pedido-vencido-bg-color"},REJEITADO:{label:"Rejeitado",value:"rejeitado",icon:I.eHv,className:"status_pedido-rejeitado-bg-color"},COTACAO:{label:"Cota\xe7\xe3o",value:"cotacao",icon:I.Nmi,className:"status_pedido-cotacao-bg-color"},ORCAMENTO:{label:"Or\xe7amento em An\xe1lise",value:"orcamento",icon:I.qyA,className:"status_pedido-orcamento-bg-color"},PENDENTE:{label:"Pendente",value:"pendente",icon:I.gPx,className:"status_pedido-pendente-bg-color"},NAO_CONFIRMADO:{label:"N\xe3o confirmado",value:"nao_confirmado",icon:I.eHv,className:"status_pedido-nao_confirmado-bg-color"}},StatusPedidoBadge=e=>{var l,a,s,i,n,d,t,c;let{status:r}=e,{statusPedido:m}=(0,h.v9)(C.aT),u={label:(null===(l=m[r])||void 0===l?void 0:l.label)||(null===(a=Z[r])||void 0===a?void 0:a.label)||r,value:(null===(s=m[r])||void 0===s?void 0:s.value)||(null===(i=Z[r])||void 0===i?void 0:i.value)||r,icon:(null===(n=m[r])||void 0===n?void 0:n.icon)||(null===(d=Z[r])||void 0===d?void 0:d.icon)||I.YHc,className:(null===(t=m[r])||void 0===t?void 0:t.className)||(null===(c=Z[r])||void 0===c?void 0:c.className)||"bg-light text-dark border border-1"};return(0,o.jsxs)("div",{className:"d-flex acoes-primaria-contrast-color p-2 px-3 mt-1 ".concat(null==u?void 0:u.className),style:{borderRadius:"1rem",fontSize:"0.8rem",width:"fit-content"},children:[(0,o.jsx)(E.G,{icon:null==u?void 0:u.icon,className:"me-2"}),null==u?void 0:u.label]})};var D=a(20198),_=a(22806),T=(s=function(e){var l,a,s,i,n,d,t;let{pedido:c,onLoad:r,onDuplicar:m,onDownloadPdf:u,onComplementar:x,isLoading:v}=e,{cliente:p}=(0,h.v9)(C.VJ),{permiteDownloadPdf:g,permiteInclusao:N}=function(e){let{acoes:l}=e;return{permiteDownloadPdf:(null==l?void 0:l.permiteDownloadPdf)||!1,permiteInclusao:(null==l?void 0:l.permiteInclusao)||!1}}({acoes:c}),j=[{label:"Visualizar",icon:I.Mdf,onClick:r?()=>r(c):null},{label:"Duplicar",icon:I.WM4,onClick:m?()=>m(c):null},{label:"Complementar",icon:I.WM4,onClick:N&&x?()=>x(c):null},{label:"Download PDF",icon:I.gSj,onClick:g&&u?()=>u(c):null},{label:"Acompanhar entrega",icon:I.$KU,onClick:isUrlHttp(c.obsEntrega)?()=>window.open(c.obsEntrega,"_blank","noopener,noreferrer"):null}],f=[{className:"col-12 col-lg-2 pb-3",label:c.id,labelClassName:"acoes-primaria-color fw-bold",value:(0,o.jsxs)("small",{children:[(0,o.jsx)("small",{className:"fw-normal",children:"por "}),(0,o.jsx)("span",{className:"fw-bold",children:(0,P.BV)(null==c?void 0:null===(l=c.emitente)||void 0===l?void 0:l.desc)})]})},{className:"col-12 col-lg-4 pb-3",label:"Cliente",value:(0,o.jsxs)("div",{children:[(0,o.jsxs)("span",{children:[null==c?void 0:null===(a=c.cliente)||void 0===a?void 0:a.id," - ",null==c?void 0:null===(s=c.cliente)||void 0===s?void 0:s.fant]}),(0,o.jsx)("br",{}),(0,o.jsx)("small",{className:"fw-normal",children:null==c?void 0:null===(i=c.cliente)||void 0===i?void 0:i.razSoc})]})},{className:"col-6 col-lg-1 pb-3",label:"Itens",value:c.qtdeIt},{className:"col-6 col-lg-1 pb-3",label:"Origem",value:(0,o.jsx)(D.Z,{origem:c.grupo})},{className:"col-6 col-lg-2 pb-3",label:"Total",value:"R$ ".concat((0,P.OH)(c.vlTot))},{className:"col-6 col-lg-2 pb-3 d-flex justify-content-lg-end",value:(0,o.jsx)(StatusPedidoBadge,{status:c.st})},{className:"col-6 col-lg-2",label:"Criado em",value:(0,o.jsx)("small",{children:(0,P.rN)(c.dtHorInc)})},{className:"col-6 col-lg-4",label:"Filial",value:(0,o.jsx)("div",{children:(0,o.jsxs)("span",{children:[null==c?void 0:null===(n=c.filial)||void 0===n?void 0:n.id," -"," ",(null==c?void 0:null===(d=c.filial)||void 0===d?void 0:d.desc)||(null==c?void 0:null===(t=c.filial)||void 0===t?void 0:t.razSoc)]})})},{className:"col-12 col-lg-6 mt-3 mt-lg-0",value:(0,o.jsx)(_.Z,{actions:j,actionsClassName:"d-flex justify-content-end"})}];return(0,o.jsx)(O.Z,{infos:f,itensClassName:"justify-content-lg-start"})},e=>{let{...l}=e,a=(0,h.I0)(),[n,d]=(0,i.useState)(!1),finishLoading=()=>d(!1),loadCarrinho=(e,l)=>{a(v.Nw.loadCarrinho({idOrcamento:e,edit:!0,callback:l}))},{onDownload:t,onDuplicarPedido:c,onComplementarPedido:r}=usePedidosRepository(!0);return(0,o.jsx)(s,{...l,onDownloadPdf:e=>{d(!0),t(e,finishLoading)},onDuplicar:e=>{d(!0),c(e,loadCarrinho,finishLoading)},onComplementar:e=>{d(!0),r(e,loadCarrinho,finishLoading)},isLoading:n})}),w=a(92276),S=a(35732),y=a(71642),R=a(31555),F=a(32321),k=a(34051);function ModalPedido(e){var l,a;let{pedido:s={},modalIsOpen:i=!1,closeModal:n=()=>{},...d}=e,{isMobile:t}=(0,y.ZP)(),{emitente:c,cliente:r,itens:m,cobranca:u,plano:x,frete:v,transportadora:h,enderecoEntrega:p}=s,ItemInfo=e=>{let{label:l,value:a,values:s,isPrice:i=!1,col:n,color:d=""}=e;return(0,o.jsxs)("div",{className:"col-".concat(n),children:[(0,o.jsx)("span",{className:"fs-12 lh-1 ",children:l}),(0,o.jsx)("br",{}),(0,o.jsxs)("span",{className:"fw-bold fs-14 lh-1  d-flex align-items-end justify-content-start ".concat(d||""),children:[(0,o.jsx)("span",{className:"fs-12 fw-normal me-1 ",children:i?"R$":" "}),s?b()(s,(e,l)=>(0,o.jsxs)("span",{className:"d-block",children:[e,"itemQtdAt"===l&&(0,o.jsx)("span",{className:"me-1",children:" /"})]},l)):a]})]})};return(0,o.jsx)(F.Z,{show:i,onHide:n,size:"xl",dialogClassName:"  rounded-3 h-100 ",fullscreen:t,className:"zIndex ",children:(0,o.jsxs)("div",{className:" rounded-3 shadow-lg  ",children:[(0,o.jsxs)(F.Z.Header,{className:"px-4 py-2 acoes-primaria-bg-color d-flex justify-content-between",children:[(0,o.jsx)("span",{className:"acoes-primaria-contrast-color fs-14 ",children:s.id}),(0,o.jsx)("button",{"aria-label":"Fechar",className:"btn fs-17 acoes-primaria-contrast-color fw-bold p-0",onClick:n,children:(0,o.jsx)(E.G,{icon:I.YIN})})]}),(0,o.jsx)(F.Z.Body,{className:"py-2 px-3 bg-white",children:(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:"border rounded-3 p-2 d-flex flex-column",children:[(0,o.jsxs)(k.Z,{className:"d-flex ",children:[(0,o.jsxs)(R.Z,{lg:2,className:"modalItem",children:[(0,o.jsx)("strong",{className:"acoes-primaria-color",children:s.id}),(0,o.jsx)("br",{}),"por ",(0,o.jsx)("strong",{className:"fs-14 lh-1",children:null==c?void 0:c.desc})]}),(0,o.jsxs)(R.Z,{lg:3,className:"modalItem mt-3 mt-lg-0",children:["Cliente",(0,o.jsx)("br",{}),(0,o.jsxs)("div",{className:"d-flex flex-column",children:[(0,o.jsxs)("strong",{className:"fs-14 lh-1",children:[r.id," - ",r.razSoc]}),(0,o.jsx)("span",{className:"fs-12 lh-1",children:r.fant})]})]}),(0,o.jsxs)(R.Z,{lg:2,className:"modalItem mt-2 mt-lg-0",children:["Criado em",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:(0,P.rN)(s.dtHorInc,!0)})]}),(0,o.jsxs)(R.Z,{lg:2,className:"modalItem mt-2 mt-lg-0",children:["Data Programada",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:(0,P.rN)(s.dtProgr)})]})]}),(0,o.jsxs)(k.Z,{className:"mt-2 ",children:[(0,o.jsxs)(R.Z,{lg:2,className:"modalItem",children:["Cobran\xe7a",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:u.desc})]}),(0,o.jsxs)(R.Z,{lg:3,className:"modalItem mt-2 mt-lg-0",children:["Plano de Pagamento",(0,o.jsx)("br",{}),(0,o.jsxs)("strong",{className:"fs-14 lh-1",children:[" ",x.desc]})]}),v&&(0,o.jsxs)(R.Z,{lg:2,className:"modalItem mt-2 mt-lg-0",children:["Tipo Frete",(0,o.jsx)("br",{}),(0,o.jsxs)("strong",{className:"fs-14 lh-1",children:[" ",v.de
1sc]})]}),h&&(0,o.jsxs)(R.Z,{lg:3,className:"modalItem mt-2 mt-lg-0",children:["Transportadora",(0,o.jsx)("br",{}),(0,o.jsxs)("strong",{className:"fs-14 lh-1",children:[" ",(null==h?void 0:h.id)?"".concat(h.id," - ").concat(h.razSoc):"N/D"]})]})]}),(0,o.jsxs)(k.Z,{className:"mt-2",children:[(0,o.jsxs)(R.Z,{lg:3,className:"modalItem",children:["Ordem de Compra",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1 mt-2 mt-lg-0",children:s.ordCompra||"N/D"})]}),(0,o.jsxs)(R.Z,{lg:3,className:"modalItem mt-2 mt-lg-0",children:["Observa\xe7\xe3o de entrega",(0,o.jsx)("br",{}),isUrlHttp(s.obsEntrega)?(0,o.jsxs)("a",{href:s.obsEntrega,target:"_blank",rel:"noopener noreferrer",className:"acoes-primaria-color fs-14 fw-bold text-decoration-underline d-inline-flex align-items-center gap-1",children:[(0,o.jsx)(E.G,{icon:I.$KU}),"Acompanhar entrega"]}):(0,o.jsx)("strong",{className:"fs-14 lh-1",children:s.obsEntrega||"--"})]}),(0,o.jsxs)(R.Z,{lg:3,className:"modalItem mt-2 mt-lg-0",children:["Observa\xe7\xe3o do pedido",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:s.obsPedido||"--"})]})]}),(0,o.jsx)(k.Z,{className:"mt-2",children:(0,o.jsxs)(R.Z,{lg:0,className:"modalItem mt-2 mt-lg-0",children:["Endere\xe7o de Entrega",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:s.enderecoEntrega||"--"})]})}),(0,o.jsxs)("div",{className:"mt-2 d-flex  justify-content-between w-100",children:[(0,o.jsx)(R.Z,{lg:4,children:(0,o.jsxs)("span",{className:"fs-12 lh-1",children:["Filial ",null==s?void 0:null===(l=s.filial)||void 0===l?void 0:l.idFil," ",null==s?void 0:null===(a=s.filial)||void 0===a?void 0:a.razSoc]})}),(0,o.jsxs)(R.Z,{lg:1,className:" d-flex justify-content-end align-items-end",children:[(0,o.jsx)("small",{className:"fs-12 lh-1 me-1",children:"R$"}),(0,o.jsx)("strong",{className:"lh-1",children:(0,P.OH)(null==s?void 0:s.vlTot)})]})]}),(0,o.jsx)("div",{className:"mt-3",children:m.map((e,l)=>{var a;let s=(0,P.Hp)(e);return(0,o.jsx)("div",{className:"w-100  d-flex flex-wrap align-items-center modalItem modalCardItem",children:(0,o.jsxs)("div",{className:"col d-flex flex-wrap justify-content-between align-items-center p-2",children:[(0,o.jsxs)("div",{className:"col-lg-4 col-12 d-flex py-2 align-items-center",children:[(0,o.jsx)("img",{src:(0,S.H6)(e.idImagem),alt:e.descComp,className:"p-2 imgCardItemModalpedido col-3"}),(0,o.jsxs)("div",{className:"col-9",children:[(0,o.jsx)(ItemInfo,{col:"12",label:"C\xd3D: ".concat(e.idExibicao," EMB: ").concat((null==s?void 0:s.emb)||(null==e?void 0:e.emb)),value:e.descNF}),!!e.idCor&&(0,o.jsx)(w.Z,{hexa:null===(a=e.cor)||void 0===a?void 0:a.hexa,descricao:e.descricaoCor})]})]}),!!e.tabela_preco&&(0,o.jsx)("div",{className:"col-lg-4 col-12 d-flex py-2 align-items-center",children:(0,o.jsx)(ItemInfo,{label:"Tabela Pre\xe7o",value:e.tabela_preco})}),(0,o.jsxs)("div",{className:"d-flex col-lg-4 col-12 py-2",children:[(0,o.jsx)(ItemInfo,{label:"Unit\xe1rio",value:(0,P.OH)(e.vlUnit),isPrice:!0,col:"6 col-md"}),(0,o.jsx)(ItemInfo,{label:"Atend/Qtd",values:{itemQtdAt:e.qtdeAt,itemQtd:e.qtde},col:4,color:"acoes-sucesso-color"}),(0,o.jsx)(ItemInfo,{label:"Total",value:(0,P.OH)(e.vlTot),isPrice:!0,col:4})]})]})},l)})}),(0,o.jsxs)("div",{className:"mt-2 d-flex justify-content-end w-100 ",children:[(0,o.jsxs)("div",{className:"modalItem pe-2 col-6 col-sm-3 col-md-2 col-lg-2",children:[(0,o.jsx)("span",{className:"lh-1",children:"ITENS"}),(0,o.jsx)("br",{}),(0,o.jsxs)("strong",{className:"fs-14 lh-1",children:[null==s?void 0:s.itens.length," ",(null==s?void 0:s.itens.length)>1?"itens":"item"]})]}),(0,o.jsxs)("div",{className:"modalItem col-6 col-sm-3 col-md-2 col-lg-auto",children:[(0,o.jsx)("span",{className:"lh-1",children:"TOTAL"}),(0,o.jsxs)("div",{className:"acoes-primaria-color lh-1",children:[(0,o.jsx)("span",{className:"fw-light lh-1 me-1",children:"R$"}),(0,o.jsx)("strong",{className:"fs-14 lh-1",children:(0,P.OH)(null==s?void 0:s.vlTot)})]})]})]})]})})})]})})}var q=a(4937);a(9008);var L=a(79701),U=a(19136),H=a(46067),B=a(78480),z=!0;function PedidosPage(e){var l,a;let{appProps:s,layoutProps:d}=e,{api:t,goNextPage:r,goPrevPage:m,goToPage:x,columnsToSort:v,filtros:h,query:N,setQuery:f,goSetTake:P}=usePedidosRepository(!0);(0,g.v)(()=>{t.doFetch(N)}),(0,q.Z)({onAlterarClienteFilial:()=>t.doFetch(N)});let I=(0,i.useRef)(N);(0,i.useEffect)(()=>{I.current.take!==N.take&&(t.doFetch(N),I.current=N)},[N.take]);let{api:O,onLoadPedido:A,modalIsOpen:E,toggleModal:C}=function(){let{api:e,load:l,modalIsOpen:a,toggleModal:s}=function(e){let{apiUrl:l}=e,[a,s]=(0,i.useState)(!1),o=(0,u.Z)({apiParams:{endPoint:l,qs:{...l.qs}},initialData:{}});return{api:o,load:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;o.doFetch({},{},e),l&&l()},modalIsOpen:a,toggleModal:()=>{s(!a)}}}({apiUrl:c.ZP.PEDIDO_PREVIEW}),loadPedido=(e,a)=>l({id:e.id},a);return{api:e,loadPedido,onLoadPedido:e=>{loadPedido(e,s)},modalIsOpen:a,toggleModal:s}}();return(0,o.jsxs)(n.Z,{...s,layoutProps:d,children:[(0,o.jsx)(L.B,{id:"pedidos",titulo:"Meus Pedidos",apiFetchObj:t,columnsToSort:v,filtros:h,setQuery:f,query:N,legendas:(0,o.jsx)(B.Z,{}),className:"mb-4"}),(0,o.jsx)("div",{className:"my-4",children:t.isFetching?(0,o.jsx)(H.Z,{isFetching:t.is
1Fetching}):(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:[b()(t.data.itens,(e,l)=>(0,o.jsx)(T,{pedido:e,onLoad:A},l)),j()(null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.itens)&&(0,o.jsx)("div",{className:"text-center w-100",children:(0,o.jsx)(U.s,{title:"Pedidos n\xe3o encontrados",mensagem:"Nenhum pedido localizado, tente mudar os filtros para localizar o que deseja."})})]})})}),(0,o.jsx)(p.Z,{paginator:t.data.paginator,goNextPage:r,goPrevPage:m,goToPage:x,goSetTake:P,qs:N}),(null==O?void 0:null===(a=O.data)||void 0===a?void 0:a.id)&&(0,o.jsx)(ModalPedido,{pedido:O.data,modalIsOpen:E,closeModal:C})]})}}},function(e){e.O(0,[4151,7948,3714,7430,1475,963,5288,2835,9979,9774,2888,179],function(){return e(e.s=63229)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.