PageSourceSearch

https://portal.uiclap.com/assets/MeusPedidos.4e4800ef.js

js uiclap.com collected 2026-09-24 09:19:18 UTC 22,638 bytes, 1 lines download raw bytes

1import{d as ie,r as g,i as $t,E as K,H as Rt,g as L,o as l,c as S,w as T,b as e,t as o,l as r,x as R,F as h,e as m,n as C,L as w,u as f,f as Gt,a as J,N as Zt,_ as Wt,s as H,q as X,v as le,O as Ht,aa as Jt,p as Qt,U as Xt}from"./index.7bdd8ad7.js";import{n as A}from"./notiflix.d979df39.js";import{P as u,g as oe}from"./pedido_status.d515182c.js";import{_ as re}from"./ButtonCopyClipboard.vue_vue_type_script_setup_true_lang.9b0625f3.js";import{M as Kt,_ as Tt}from"./ModalCard.vue_vue_type_style_index_0_lang.1d9110b0.js";import{M as wt}from"./Modal.ce25d0bd.js";import{_ as Yt}from"./PagamentoCompra.vue_vue_type_script_setup_true_lang.3ed8b9b9.js";import"./firebaseApp.c7a54494.js";import"./firebaseui.254bc955.js";import"./firebaseFirestore.205587b6.js";import"./maska.1121c2e3.js";/* empty css                                              */import"./boleto.70747486.js";import"./index.139458d9.js";import"./MessageRadio.e5b65b84.js";import"./ToggleSwitch.vue_vue_type_style_index_0_lang.358e4cba.js";const Pt={class:"title is-size-5"},es={class:"columns w-100"},ts={class:"column is-4"},ss={class:"box"},as={class:"table is-striped is-fullwidth"},ns={width:"100%"},ls={class:"has-text-right"},os={key:0},rs={class:"has-text-right"},is={class:"has-text-right",colspan:"2"},cs={class:"column is-8"},us={class:"is-flex is-justify-content-flex-end w-100"},ms=ie({__name:"ReprocessPaymentModal",props:{orderId:{type:Number}},emits:["closeModal","onFinish"],setup(I,{emit:$}){const F=I;let M;const E=$,d=g(null);$t(async()=>{var p;try{A.exports.Loading.pulse("Carregando informa\xE7\xF5es de pagamento");const v=await K(`compra/pagamento/rp/${F.orderId}`,Rt.GET);d.value=v.pagamento,d.value.valorValido=!0,d.value.parcelaEscolhida=d.value.parcelasSemSaldo.length?1:0,M=v.previousPaymentId}catch(v){A.exports.Report.failure("Falha ao buscar dados do pagamento",`${(p=v.message)!=null?p:"Erro Desconhecido"}`,"Fechar"),E("closeModal")}finally{A.exports.Loading.remove()}});const Q=L(()=>{var p,v,y,N;return d.value.isPix||d.value.isBoleto?!0:d.value.cartao.id>0?((N=(y=(v=(p=d.value)==null?void 0:p.cartao)==null?void 0:v.cvv)==null?void 0:y.length)!=null?N:0)>=3:!(d.value.cartao.id<0||d.value.cartao.id==0&&!(d.value.cartao.validadeMes&&d.value.cartao.validadeAno))});async function k(){if(!Q.value)throw A.exports.Notify.failure("Preencha corretamente as informa\xE7\xF5es de pagamento.");A.exports.Block.pulse("#reprocess-payment");try{const v={pagamento:JSON.parse(JSON.stringify(d.value)),previousPaymentId:M};v.pagamento.repayCount||(v.pagamento.repayCount=1);const y=await K("compra/pagamento/rp",Rt.POST,v);if(y.retorno==-5)throw new Error(y.mensagem);E("onFinish")}catch(p){const v=p instanceof Error?p.message:p;throw A.exports.Report.failure("Pagamento da Compra","Erro: "+v,"Fechar"),p}finally{A.exports.Block.remove("#reprocess-payment")}}return(p,v)=>d.value?(l(),S(Tt,{key:0,ativo:!0,onCloseClick:v[0]||(v[0]=y=>E("closeModal")),size:f(Kt).EXTRA_LARGE,id:"reprocess-payment"},{header:T(()=>{var y;return[e("h2",Pt," Reprocessar pagamento UIC-"+o(I.orderId)+" ("+o(((y=d.value.valorTotal)!=null?y:0).toRS())+") ",1)]}),body:T(()=>{var y,N;return[e("div",es,[e("div",ts,[e("div",ss,[v[3]||(v[3]=e("h5",{class:"has-text-primary is-4 title"},"Pedidos",-1)),e("table",as,[e("tbody",null,[(l(!0),r(h,null,R(d.value.pedido.pedidos,(q,B)=>{var a;return l(),r("tr",null,[e("td",ns,"Pedido #"+o(B+1),1),e("td",ls,o((q.subtotal+((a=q.valorFrete)!=null?a:0)).toRS()),1)])}),256)),d.value.usedSaldo?(l(),r("tr",os,[v[1]||(v[1]=e("td",null,"Saldo",-1)),e("td",rs,o((-((y=d.value.usedSaldo)!=null?y:0)).toRS()),1)])):m("",!0),e("tr",null,[v[2]||(v[2]=e("td",{class:"has-text-right"},"TOTAL",-1)),e("td",is,[e("b",null,o(((N=d.value.valorTotal)!=null?N:0).toRS()),1)])])])])])]),e("div",cs,[C(Yt,{pagamentoInfo:d.value,totalPedido:d.value.valorTotal,showFinishPayment:!1,isStock:!1},null,8,["pagamentoInfo","totalPedido"])])])]}),footer:T(()=>[e("div",us,[C(w,{class:"is-success",disabled:!Q.value,title:"Finalizar pagamento",onClick:k,label:"Finalizar pagamento"},null,8,["disabled"])])]),_:1},8,["size"])):m("",!0)}}),ds={key:0},Nt=ie({__name:"CorreiosStrikeNotification",props:{hideTrackingCodeMessage:{type:Boolean,default:!1}},setup(I){const $=Gt();function F(){$.showCorreiosOnStrikeNotification=!1}return(M,E)=>(l(),S(Wt,{temDelete:!0,onDeleteClick:F,tipo:f(Zt).WARNING},{default:T(()=>[E[0]||(E[0]=J(" Por conta da greve dos Correios, o seu pedido pode chegar com atraso ou estar aguardando retirada na ag\xEAncia. ",-1)),I.hideTrackingCodeMessage?m("",!0):(l(),r("span",ds," Recomendamos acompanhar o status do envio pelo c\xF3digo de rastreio. "))]),_:1},8,["tipo"]))}}),vs={class:"box mb-4"},ps={class:"columns is-multiline is-variable is-3-desktop"},_s={key:0,class:"column is-nowrap"},fs=["value","name","id"],hs=["for"],gs={class:"columns is-multiline is-variable is-3-desktop"},ys={key:0,class:"column is-one-third-desktop is-half-tablet is-one-quarter-fullhd"},xs={class:"card p-4 ajuste-card-altura"},Cs={class:"is-flex is-justify-content-space-between is-align-items-center"},ks={class:"mr-2"},bs={class:"help has-text-grey-light"},Ss={class:"has-text-weight-semibold"},As={class:"is-flex is-flex-direction-column"},Es={key:0},Os={class:"mt-2"},Rs={key:0},ws=["innerHTML"],Ns={key:1,class:"mb-6"},$s={class:"field has-addons has-addons-left"},Ts={class:"control"},Is={class:"control"},Fs=["value"],Ms={class:"control"},qs={class:"control"},Ls=["href"],Bs={class:"posicao-btn-detalhes is-flex"},Ds={key:2},zs={class:"is-flex"},Us={key:0,class:"is-flex is-align-items-center"},Vs=["href"],js={style:{"text-align":"center"}},Gs=["src"],Zs={class:"field has-addons"},Ws={class:"control is-expanded"},Hs=["value"],Js={class:"control"},Qs={class:"box"},Xs={style:{"text-align":"center"}},Ks=["src"],Ys={class:"my-5",style:{"text-align":"center"}},Ps=["href"],ea={class:"field has-addons"},ta={class:"control is-expanded"},sa=["value"],aa={class:"control"},na={key:1,class:"columns"},la={class:"column"},oa={class:"box timeline"},ra={class:"timeline-item is-info pb-3 timeline-primeiro"},ia={class:"timeline-content pt-1"},ca={class:"heading"},ua={class:"timeline-content"},ma={key:0,class:"heading"},da={key:1,class:"help"},va={class:"heading mb-0 ml-5"},pa={class:"help mt-0 mb-3 ml-5"},_a={class:"timeline-item pb-3"},fa={class:"timeline-content"},ha={class:"timeline-header"},ga={class:"column"},ya={key:0,class:"box"},xa={class:"title is-size-5"},Ca={key:0},ka={key:1},ba={key:2},Sa={key:3},Aa={key:1,class:"box"},Ea={key:0}
1,Oa={key:1},Ra={key:2},wa={key:3},Na={class:"column"},$a={class:"box"},Ta={class:"has-text-weight-semibold"},Ia={key:0,class:"help has-text-grey-light mt-2"},Fa={key:1,class:"help is-italic"},Ma=ie({__name:"MeusPedidos",props:{orderId:{type:String,default:!1}},setup(I){$t(async()=>{try{if(await E(),M.orderId){const s=p.value.find(t=>t.idPedido==Number(M.orderId));me(s)}}finally{A.exports.Loading.remove()}});const $=g(!1),F=g(0),M=I;async function E(){return K("compra/pedidos").then(s=>{p.value=s,d.push(...p.value.map(t=>t.idstatus)),p.value.forEach(t=>d.push(...t.pedidos.map(_=>_.idStatus))),k.value=d.filter((t,_,b)=>b.indexOf(t)===_),k.value.includes(u.CANCELADO)&&k.value.splice(k.value.indexOf(u.CANCELADO),1)})}let d=[];const Q=L(()=>Object.keys(u).filter(s=>isNaN(Number(s)))),k=g([]),p=g([]),v=L(()=>p.value.filter(s=>s.pedidos.some(t=>k.value.includes(t.idStatus)))),y=s=>(s.codigoRastreio.startsWith("UIC")?"https://rastreae.com.br/resultado/":"https://rastreamento.correios.com.br/app/index.php?objetos=")+s.codigoRastreio,N=[u.EM_PRODUCAO,u.POSTADO,u.FINALIZADO],q=[u.CANCELADO,u.REPROVADO],B=g(!1),a=g({}),It=L(()=>a.value.status.filter(s=>s.idStatus==u.EM_TRANSPORTE)),Y=g(!1);function Ft(s){let t=new Date;t.setDate(new Date().getDate()-7);const _=new Date(s==null?void 0:s.dataCompra);return[4,7,89,90].includes(s==null?void 0:s.idstatus)&&s.tipoPagamento&&_>t&&!(s.qrCode||s.boletoUrl)}function ce(s){let t=new Date;t.setDate(new Date().getDate()-7);const _=new Date(s==null?void 0:s.dataCompra);return[4,89,90].includes(s==null?void 0:s.idstatus)&&_>t&&!s.tipoPagamento&&!s.isProdEstoque}function ue(s){Jt("Finalizar o pedido",`Voc\xEA gostaria de ir para a tela de compras para finalizar o pedido UCP-${s.idPedido}`).then(t=>{t&&Qt.push(`/compra/r/${s.idPedido}`)})}function me(s){let t=new Date;t.setDate(new Date().getDate()-7),(s==null?void 0:s.idPedido)&&new Date(s==null?void 0:s.dataCompra)>t&&(F.value=s.idPedido,$.value=!0)}function de(){$.value=!1}async function Mt(){await E(),de()}function ve(s){B.value=!0,A.exports.Block.pulse(".card-status"),K("compra/pedido/"+s.id).then(t=>{a.value=t,Y.value=!0}).finally(()=>{A.exports.Block.remove(".card-status")})}function qt(){Y.value=!1,B.value=!1}const Lt=L(()=>a.value.status&&a.value.status.length>0?a.value.status.some(s=>s.idStatus==u.FINALIZADO||s.idStatus==u.REPROVADO||s.idStatus==u.CANCELADO)?[]:N.filter(s=>!a.value.status.some(t=>t.idStatus==s)&&!(s==u.POSTADO&&a.value.isProdEstoque)):N),Bt=L(()=>{var s,t,_,b;if(a.value.status)switch((b=(_=a==null?void 0:a.value)==null?void 0:_.status[((t=(s=a==null?void 0:a.value)==null?void 0:s.status)==null?void 0:t.length)-1])==null?void 0:b.idStatus){case u.FINALIZADO:return"is-success";case u.REPROVADO:case u.CANCELADO:return"is-danger"}});function P(s,t){const _=t;return s.livros&&s.livros.length>0?s.livros.reduce((b,i)=>{let c=b+(i==null?void 0:i.valor)*(i==null?void 0:i.quantidade);return _=="preco"?c:b+(i==null?void 0:i.quantidade)},0):0}function ee(s){return s!=null?Intl.DateTimeFormat("pt-br",{dateStyle:"short",timeStyle:"short"}).format(new Date(s)).replace(",",""):"-"}function Dt(s){if(s.includes("_")){let t=s.split("_");return t[1]+" ("+t[0]+")"}else return s}const te=g(!1),se=g(""),pe=g("");function zt(s,t){se.value=s,pe.value=t,te.value=!0}const ae=g(!1),_e=g(""),fe=g(""),ne=g("");function Ut(s,t,_){_e.value=s,fe.value=t,ne.value=_,ae.value=!0}function Vt(s){switch(s){case"pagarme_pix":return"Pix";case"pagarme_cartao":return"Cart\xE3o de cr\xE9dito";case"pagarme_boleto":return"Boleto";default:return s}}function jt(s){return s?![7,89,104].includes(s.idStatus)&&s.operadoraFrete=="Correios":!1}return(s,t)=>{var _,b;return l(),r(h,null,[C(Nt),e("div",vs,[t[3]||(t[3]=e("h5",{class:"title is-6"},"Filtro status",-1)),e("div",ps,[(l(!0),r(h,null,R(Q.value,i=>(l(),r(h,null,[f(d).some(c=>c==f(u)[i])?(l(),r("div",_s,[X(e("input",{type:"checkbox",value:f(u)[i],"onUpdate:modelValue":t[0]||(t[0]=c=>k.value=c),name:i,id:i,class:"switch is-rounded is-info mr-1"},null,8,fs),[[Ht,k.value]]),e("label",{class:"checkbox mr-2",style:{"text-transform":"capitalize"},for:i},o(i.replaceAll("_"," ").toLowerCase()),9,hs)])):m("",!0)],64))),256))])]),e("div",gs,[(l(!0),r(h,null,R(v.value,i=>(l(),r(h,null,[(l(!0),r(h,null,R(i.pedidos,c=>{var D,z,U,V,j,G,Z,W;return l(),r(h,null,[k.value.includes(c.idStatus)?(l(),r("div",ys,[e("div",xs,[e("div",Cs,[e("div",ks,[e("p",bs,o(new Date(i.dataCompra).toBrShort()),1),e("p",Ss,"UCP-"+o(i.idPedido)+"-"+o(c.id),1)]),e("div",As,[((D=i.qrCode)!=null?D:"").length>5?(l(),S(w,{key:0,class:"is-link",label:"Pagar com PIX",onClick:O=>zt(i.qrCode,i.qrCodeImg)},null,8,["onClick"])):((z=i.boletoUrl)!=null?z:"").length>5?(l(),S(w,{key:1,class:"is-link",label:"Pagar com Boleto",onClick:O=>Ut(i.boletoUrl,i.boletoCodigoBarra,i.boletoLinha)},null,8,["onClick"])):ce(i)?(l(),S(w,{key:2,onClick:O=>ue(i),class:"is-small is-info",label:"Aberto"},null,8,["onClick"])):(l(),S(w,{key:3,onClick:O=>ve(c),class:H(["is-small",q.includes(c==null?void 0:c.idStatus)?"is-danger":c.idStatus==f(u).FINALIZADO?"is-success":"is-info"]),label:f(oe)(c.idStatus,!0)},null,8,["onClick","class","label"]))])]),i.isProdEstoque?m("",!0):(l(),r("div",Es,[t[4]||(t[4]=e("p",{class:"help has-text-grey-light"},"Destinat\xE1rio",-1)),e("p",null,o((U=c==null?void 0:c.endereco)==null?void 0:U.nome),1),e("p",null,o((V=c==null?void 0:c.endereco)==null?void 0:V.apelido),1)])),e("div",Os,[t[5]||(t[5]=e("p",{class:"help has-text-grey-light"},"Total do pedido",-1)),e("p",null,o((P(c,"preco")+c.valorFrete).toRS()),1)]),e("div",{class:H(["mt-2",((G=(j=c.codigoRastreio)==null?void 0:j.length)!=null?G:0)>0?"":"mb-6"])},[t[6]||(t[6]=e("p",{class:"help has-text-grey-light"},"Frete",-1)),e("p",null,[i.isProdEstoque?(l(),r("span",Rs,"Estoque")):(l(),r("span",{key:1,innerHTML:Dt(c.tipoFrete)},null,8,ws))])],2),((W=(Z=c.codigoRastreio)==null?void 0:Z.length)!=null?W:0)>0?(l(),r("div",Ns,[t[8]||(t[8]=e("p",{class:"help has-text-grey-light mb-1"},"C\xF3digo de Rastreio",-1)),e("div",$s,[e("div",Ts,[C(w,{icon:"mdi-truck",class:"is-static"})]),e("div",Is,[e("input",{class:"input",type:"text",value:c.codigoRastreio,readonly:""},null,8,Fs)]),e("div",Ms,[C(re,{"info-to-copy":c.codigoRastreio},null,8,["info-to-copy"])]),e("div",qs,[e("a",{href:y(c),target:"_blank",class:"button is-rounded"},[...t[7]||(t[7]=[e("span",{class:"icon"},[e("i",{class:"mdi mdi-open-in-new"})],-1)])],8,Ls)])])])):m("",!0),e("div",Bs,[Ft(i)?(l(),S(w,{key:0,onClick:O=>me(i),class:"is-size-7 is-info is-flex is-justify-content-center",label:"Realizar pagamento"},null,8,["onClick"])):ce(i)?(l(),S(w,{key:1,onClick:O=>ue(i),class:"is-size-7 is-success is-flex is-justify-content-center",label:"Finalizar pedido"},null,8,["onClick"])):(l(),r("div",Ds)),e("div",zs,[c.urlNF?(l(),r("div",Us,[e("a",{href:c.urlNF,target:"_blank",class:"button is-rounded is-black is-small mr-3"},[...t[9]||(t[9]=[e("span",{class:"icon"},[e("i",{class:"mdi mdi-text-box-outline"})],-1),e("span",{class:"mr-1"}
1,"Nfe",-1)])],8,Vs)])):m("",!0),C(w,{onClick:O=>ve(c),class:"is-black is-small",icon:"mdi-plus",label:"Detalhes"},null,8,["onClick"])])])])])):m("",!0)],64)}),256))],64))),256))]),C(wt,{ativo:te.value,"show-fecha":!0,"hide-overflow":!0,onFechaModal:t[1]||(t[1]=i=>te.value=!1)},{default:T(()=>[e("div",js,[e("img",{src:pe.value,class:"qr-code-img"},null,8,Gs)]),e("div",Zs,[e("div",Ws,[e("input",{type:"text",class:"input",readonly:"",value:se.value},null,8,Hs)]),e("div",Js,[C(re,{"info-to-copy":se.value},null,8,["info-to-copy"])])])]),_:1},8,["ativo"]),C(wt,{ativo:ae.value,"show-fecha":!0,"hide-overflow":!0,onFechaModal:t[2]||(t[2]=i=>ae.value=!1)},{default:T(()=>[e("div",Qs,[e("div",Xs,[e("img",{src:fe.value},null,8,Ks)]),e("div",Ys,[e("a",{href:_e.value,target:"_blank",class:"button is-success is-rounded"},"Abrir Boleto",8,Ps)]),e("div",ea,[e("div",ta,[e("input",{type:"text",class:"input",readonly:"",value:ne.value},null,8,sa)]),e("div",aa,[C(re,{"info-to-copy":ne.value},null,8,["info-to-copy"])])])])]),_:1},8,["ativo"]),C(Tt,{ativo:B.value,"card-class":"card-status",title:`Pedido: UCP-${(_=a.value)==null?void 0:_.idcompra}-${(b=a.value)==null?void 0:b.id}`,"show-close-button":!0,"is-full-width":!0,onCloseClick:qt},{body:T(()=>{var i,c,D,z,U,V,j,G,Z,W,O,he,ge,ye,xe,Ce,ke,be,Se,Ae,Ee,Oe,Re,we,Ne,$e,Te,Ie,Fe,Me,qe,Le,Be,De,ze,Ue,Ve,je,Ge,Ze,We,He,Je,Qe,Xe,Ke,Ye,Pe,et,tt,st,at,nt,lt,ot,rt,it,ct,ut,mt,dt,vt,pt,_t,ft,ht,gt,yt,xt,Ct,kt,bt,St,At,Et,Ot;return[jt(a.value)?(l(),S(Nt,{key:0,hideTrackingCodeMessage:!a.value.codigoRastreio},null,8,["hideTrackingCodeMessage"])):m("",!0),Y.value?(l(),r("div",na,[e("div",la,[e("div",oa,[e("div",ra,[t[11]||(t[11]=e("div",{class:"timeline-marker is-info is-icon tag"},null,-1)),e("div",ia,[e("p",ca,o(ee((i=a.value)==null?void 0:i.dataPedido)),1),t[10]||(t[10]=e("p",null,"Pedido realizado",-1))])]),(l(!0),r(h,null,R(a.value.status.filter(n=>n.idStatus!=f(u).EM_TRANSPORTE),n=>(l(),r(h,null,[(n==null?void 0:n.idStatus)!=f(u).AGUARDANDO_PGTO||a.value.status.every(x=>x.idStatus!=f(u).APROVADO&&x.idStatus!=f(u).REPROVADO)?(l(),r("div",{key:0,class:H(["timeline-item pb-3",q.includes(n==null?void 0:n.idStatus)?"is-danger":(n==null?void 0:n.idStatus)==f(u).FINALIZADO?"is-success":"is-info"])},[e("div",{class:H(["timeline-marker",q.includes(n==null?void 0:n.idStatus)?"is-danger":(n==null?void 0:n.idStatus)==f(u).FINALIZADO?"is-success":"is-info"])},null,2),e("div",ua,[(n==null?void 0:n.idStatus)!=f(u).AGUARDANDO_PGTO?(l(),r("p",ma,o(ee(n==null?void 0:n.dataEvento)),1)):m("",!0),e("p",null,o((n==null?void 0:n.status)&&n.status.length>0?n.status:f(oe)(n.idStatus,!1,a.value.isProdEstoque)),1),(n==null?void 0:n.mensagem)&&n.mensagem.length>0?(l(),r("p",da,o(n.mensagem),1)):m("",!0),n.idStatus==f(u).POSTADO?(l(),r(h,{key:2},[t[12]||(t[12]=e("p",{class:"heading"},"\xA0",-1)),(l(!0),r(h,null,R(It.value,x=>(l(),r(h,null,[e("p",va,o(ee(x.dataEvento)),1),e("p",pa,o(x.status),1)],64))),256))],64)):m("",!0)])],2)):m("",!0)],64))),256)),(l(!0),r(h,null,R(Lt.value,n=>(l(),r("div",_a,[t[13]||(t[13]=e("div",{class:"timeline-marker"},null,-1)),e("div",fa,[e("p",null,o(f(oe)(n,!1,a.value.isProdEstoque)),1)])]))),256)),e("header",ha,[e("span",{class:H(["tag",Bt.value])},"Finalizado",2)])])]),e("div",ga,[a.value.isProdEstoque?m("",!0):(l(),r("div",ya,[e("p",xa,o(((D=(c=a.value)==null?void 0:c.enderecoDestinatario)==null?void 0:D.id)==((U=(z=a.value)==null?void 0:z.enderecoCobranca)==null?void 0:U.id)?"Endere\xE7o de entrega / cobran\xE7a":"Endere\xE7o de entrega"),1),t[18]||(t[18]=e("p",{class:"help has-text-grey-light"},"Nome",-1)),e("p",null,o((j=(V=a.value)==null?void 0:V.enderecoDestinatario)==null?void 0:j.nome),1),t[19]||(t[19]=e("p",{class:"help has-text-grey-light"},"Apelido",-1)),e("p",null,o((Z=(G=a.value)==null?void 0:G.enderecoDestinatario)==null?void 0:Z.apelido),1),(O=(W=a.value)==null?void 0:W.enderecoDestinatario)!=null&&O.logradouro?(l(),r("div",Ca,[t[14]||(t[14]=e("p",{class:"help has-text-grey-light"},"Endere\xE7o",-1)),e("p",null,[J(o((ge=(he=a.value)==null?void 0:he.enderecoDestinatario)==null?void 0:ge.logradouro)+", ",1),e("span",null,o((xe=(ye=a.value)==null?void 0:ye.enderecoDestinatario)!=null&&xe.numero?(ke=(Ce=a.value)==null?void 0:Ce.enderecoDestinatario)==null?void 0:ke.numero:"s/n"),1),X(e("span",null,"- "+o((Se=(be=a.value)==null?void 0:be.enderecoDestinatario)==null?void 0:Se.complemento),513),[[le,(Ee=(Ae=a.value)==null?void 0:Ae.enderecoDestinatario)==null?void 0:Ee.complemento]])])])):m("",!0),(Re=(Oe=a.value)==null?void 0:Oe.enderecoDestinatario)!=null&&Re.bairro?(l(),r("div",ka,[t[15]||(t[15]=e("p",{class:"help has-text-grey-light"},"Bairro",-1)),e("p",null,o((Ne=(we=a.value)==null?void 0:we.enderecoDestinatario)==null?void 0:Ne.bairro),1)])):m("",!0),(Te=($e=a.value)==null?void 0:$e.enderecoDestinatario)!=null&&Te.cidade?(l(),r("div",ba,[t[16]||(t[16]=e("p",{class:"help has-text-grey-light"},"Cidade / UF",-1)),e("p",null,o((Fe=(Ie=a.value)==null?void 0:Ie.enderecoDestinatario)==null?void 0:Fe.cidade)+" / "+o((qe=(Me=a.value)==null?void 0:Me.enderecoDestinatario)==null?void 0:qe.uf),1)])):m("",!0),(Be=(Le=a.value)==null?void 0:Le.enderecoDestinatario)!=null&&Be.cep?(l(),r("div",Sa,[t[17]||(t[17]=e("p",{class:"help has-text-grey-light"},"CEP",-1)),e("p",null,o((ze=(De=a.value)==null?void 0:De.enderecoDestinatario)==null?void 0:ze.cep),1)])):m("",!0)])),((Ve=(Ue=a.value)==null?void 0:Ue.enderecoDestinatario)==null?void 0:Ve.id)!=((Ge=(je=a.value)==null?void 0:je.enderecoCobranca)==null?void 0:Ge.id)||a.value.isProdEstoque?(l(),r("div",Aa,[t[24]||(t[24]=e("p",{class:"title is-size-5"},"Endere\xE7o de Cobran\xE7a",-1)),t[25]||(t[25]=e("p",{class:"help has-text-grey-light"},"Nome",-1)),e("p",null,o((We=(Ze=a.value)==null?void 0:Ze.enderecoCobranca)==null?void 0:We.nome),1),t[26]||(t[26]=e("p",{class:"help has-text-grey-light"},"Apelido",-1)),e("p",null,o((Je=(He=a.value)==null?void 0:He.enderecoCobranca)==null?void 0:Je.apelido),1),(Xe=(Qe=a.value)==null?void 0:Qe.enderecoCobranca)!=null&&Xe.logradouro?(l(),r("div",Ea,[t[20]||(t[20]=e("p",{class:"help has-text-grey-light"},"Endere\xE7o",-1)),e("p",null,[J(o((Ye=(Ke=a.value)==null?void 0:Ke.enderecoCobranca)==null?void 0:Ye.logradouro)+", ",1),e("span",null,o((et=(Pe=a.value)==null?void 0:Pe.enderecoCobranca)!=null&&et.numero?(st=(tt=a.value)==null?void 0:tt.enderecoCobranca)==null?void 0:st.numero:"s/n"),1),X(e("span",null,"- "+o((nt=(at=a.value)==null?void 0:at.enderecoCobranca)==null?void 0:nt.complemento),513),[[le,(ot=(lt=a.value)==null?void 0:lt.enderecoCobranca)==null?void 0:ot.complemento]])])])):m("",!0),(it=(rt=a.value)==null?void 0:rt.enderecoCobranca)!=null&&it.bairro?(l(),r("div",Oa,[t[21]||(t[21]=e("p",{class:"help has-text-grey-light"},"Bairro",-1)),e("p",null,o((ut=(ct=a.value)==null?void 0:ct.enderecoCobranca)==null?void 0:ut.bairro),1)])):m("",!0),(dt=(mt=a.value)==null?void 0:mt.enderecoCobranca)!=null&&dt.cidade?(l(),r("div",Ra,[t[22]||(t[22]=e("p",{class:"help has-text-grey-light"},"Cidade / UF",-1)),e("p",null,o((pt=(vt=a.value)==null?void 0:vt.enderecoCobranca)==null?void 0:pt.cidade)+" / "+o((ft=(_t=a.value)==null?void 0:_t.enderecoCobranca)==null?void 0:ft.uf),1)])):m("",!0),(gt=(ht=a.value)==null?void 0:ht.enderecoCobranca)!=null&&gt.cep?(l(),r("div",wa,[t[23]||(t[23]=e("p",{class:"help has-text-grey-light"},"CEP",-1)),e("p",null,o((xt=(yt=a.value)==null?void 0:yt.enderecoCobranca)==null?void 0:xt.cep),1)])):m("",!0)])):m("",!0)]),e("div",Na,[e("div",$a,[t[28]||(t[28]=e("p",{class:"title is-size-5"},"Detalhes",-1)),t[29]||(t[29]=e("p",{class:"help has-text-grey-light mt-2"},"Livros",-1)),(l(!0),r(h,null,R(a.value.livros,n=>{var x;return l(),r("p",null,o(n==null?void 0:n.titulo)+" ["+o((x=n==null?void 0:n.valor)==null?void 0:x.toRS())+"] (
1x"+o(n==null?void 0:n.quantidade)+")",1)}),256)),t[30]||(t[30]=e("p",{class:"help has-text-grey-light mt-2"},"Frete",-1)),e("p",null,o(a.value.isProdEstoque?"Estoque":`${(Ct=a.value)==null?void 0:Ct.tipoFrete} (${a.value.operadoraFrete}): ${(bt=(kt=a.value)==null?void 0:kt.valorFrete)==null?void 0:bt.toRS()}`),1),t[31]||(t[31]=e("p",{class:"help has-text-grey-light mt-2"},"Total",-1)),e("p",Ta,o((P(a.value,"preco")+((St=a.value)==null?void 0:St.valorFrete)).toRS()),1),((Et=(At=a.value)==null?void 0:At.pgtos)==null?void 0:Et.length)>0?(l(),r("p",Ia,"Tipo de pagamento")):m("",!0),(l(!0),r(h,null,R((Ot=a.value)==null?void 0:Ot.pgtos,n=>{var x;return l(),r("p",null,[J(o(Vt(n==null?void 0:n.tipo))+" ",1),X(e("span",null,[t[27]||(t[27]=J("(",-1)),e("span",null,o(n==null?void 0:n.parcelas)+"x "+o(((n==null?void 0:n.valor)/(n==null?void 0:n.parcelas)).toRS())+")",1)],512),[[le,(n==null?void 0:n.valor)!=P(a.value,"preco")+((x=a.value)==null?void 0:x.valorFrete)]])])}),256)),a.value.pedidoUnico?m("",!0):(l(),r("p",Fa,"Este pagamento engloba mais de um pedido"))])])])):m("",!0)]}),_:1},8,["ativo","title"]),$.value?(l(),S(ms,{key:0,orderId:F.value,onCloseModal:de,onOnFinish:Mt},null,8,["orderId"])):m("",!0)],64)}}});const Ya=Xt(Ma,[["__scopeId","data-v-d030a2d0"]]);export{Ya as default};

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.