1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2766],{96487:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pedido-enviado/[orderCode]",function(){return i(30344)}])},30344:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSP:function(){return Y},default:function(){return Q}});var t=i(85893),o=i(67294),s=i(14416),l=i(33299),r=i(78058),a=i(11163),c=i(4298),d=i.n(c),u=i(56941),p=i(91121),m=i(97975),x=i(86426),h=i(6253),v=i(16218),f=i(46727),g=i(4868),b=i(9008),j=i.n(b),y=i(10267),C=i(51252),N=i(36955),w=i(609),k=i(59092),R=i(45697),Z=i.n(R);function O(){return(O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}var S=(0,o.forwardRef)(function(e,n){var i=e.color,t=e.size,s=void 0===t?24:t,l=function(e,n){if(null==e)return{};var i,t,o=function(e,n){if(null==e)return{};var i,t,o={},s=Object.keys(e);for(t=0;t<s.length;t++)i=s[t],n.indexOf(i)>=0||(o[i]=e[i]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(t=0;t<s.length;t++)i=s[t],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}(e,["color","size"]);return o.createElement("svg",O({ref:n,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:void 0===i?"currentColor":i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),o.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),o.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),o.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});S.propTypes={color:Z().string,size:Z().oneOfType([Z().string,Z().number])},S.displayName="Printer";var z=i(46445),P=i(71508),E=i(12589),_=i(69283),T=i(40782),M=i(25675),L=i.n(M),F=function(e){var n,i,s,l;let{orderData:a,initialProps:c}=e,{payment:{id:d,paymentUrl:u,pixCode:x,qrCodeImage:h,qrCodeBase64:v,paymentCountdown:f,fixedTransferData:g},transferData:b}=a,[j,R]=(0,o.useState)(!1),{dental:Z}=c,[O,M]=(0,o.useState)(!1),F=async()=>{M(!0);try{let e=await (0,_.v)("".concat(E.Y,"/pdfOrderOpenpay?sellerId=").concat(Z.id,"&orderId=").concat(a.id,"&dentalEmail=").concat(Z.email),{method:"GET",requestedTokenType:"guest"}),n=await e.blob(),i=window.URL.createObjectURL(n),t=document.createElement("a");t.href=i,t.download="instrucciones-de-pago-".concat(a.id,".pdf"),document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(i),T.Am.success("Informaci\xf3n de pago descargada!")}catch(e){console.log(e),T.Am.error("Error al descargar Informaci\xf3n de pago.")}finally{M(!1)}};return("pix"===d||"pix2"===d)&&((null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("mx"))||(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("pe")))&&b?(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("h2",{className:"text-success text-center mb-1",children:"Realice el pago para confirmar su pedido:"}),(0,t.jsx)(y.Z,{children:(0,t.jsx)(C.Z,{xs:12,lg:{offset:2,size:8},children:(0,t.jsx)(k.Z,{initialProps:c,children:(0,t.jsxs)(p.Z,{className:"relative py-2 d-flex flex-column align-items-center border border-3 border-opacity-75 border-success rounded-3",children:[(0,t.jsx)(m.Z,{style:{position:"absolute",right:"16px",top:"16px"},color:"success",disabled:O,onClick:F,children:O?(0,t.jsx)(N.Z,{size:"sm"}):(0,t.jsx)(S,{size:18})}),(0,t.jsx)("div",{className:"mb-2",children:(0,t.jsx)(L(),{src:"https://firebasestorage.googleapis.com/v0/b/catalogo-mais-odonto.appspot.com/o/openpay-color.png?alt=media&token=55a3ea5c-42ba-4a7c-9351-b4fff3c6ac88",alt:"logo openpay",width:140,height:32})}),(0,t.jsxs)("p",{className:"text-center mb-0",children:[(0,t.jsx)("span",{style:{display:"inline-block",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--success)",color:"#fff",textAlign:"center",lineHeight:"30px",marginRight:"10px",fontSize:"16px",fontWeight:"bold"},children:"1"}),"Efect\xfae la transferencia por el monto de ",(0,t.jsx)("strong",{children:null==a?void 0:null===(i=a.total)||void 0===i?void 0:null===(n=i.total)||void 0===n?void 0:n.formatted})," a la siguiente cuenta bancaria:"]}),(0,t.jsxs)("p",{className:"text-center mb-3",children:[(0,t.jsx)("strong",{children:"Banco:"})," ",(null==b?void 0:b.bank)||"BBVA Bancomer",(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"Clabe:"})," ",null==b?void 0:b.clabe,(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"Referencia:"})," ",b.reference]}),(0,t.jsxs)("p",{className:"text-center mb-0",children:[(0,t.jsx)("span",{style:{display:"inline-block",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--success)",color:"#fff",textAlign:"center",lineHeight:"30px",marginRight:"10px",fontSize:"16px",fontWeight:"bold"},children:"2"}),"Env\xede el comprobante al correo:"]}),(0,t.jsx)("p",{className:"text-center mb-0",children:(0,t.jsx)("strong",{children:null==Z?void 0:Z.email})})]})})})})]}
1):((null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("mx"))||(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("pe")))&&g?(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("h2",{className:"text-success text-center mb-1",children:"Realice el pago para confirmar su pedido:"}),(0,t.jsx)(y.Z,{children:(0,t.jsx)(C.Z,{xs:12,lg:{offset:2,size:8},children:(0,t.jsx)(k.Z,{initialProps:c,children:(0,t.jsxs)(p.Z,{className:"py-2 d-flex flex-column align-items-center border border-3 border-opacity-75 border-success rounded-3",children:[(0,t.jsxs)("p",{className:"text-center mb-0",children:[(0,t.jsx)("span",{style:{display:"inline-block",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--success)",color:"#fff",textAlign:"center",lineHeight:"30px",marginRight:"10px",fontSize:"16px",fontWeight:"bold"},children:"1"}),"Efect\xfae la transferencia por el monto de ",(0,t.jsx)("strong",{children:null==a?void 0:null===(l=a.total)||void 0===l?void 0:null===(s=l.total)||void 0===s?void 0:s.formatted})," a la siguiente cuenta bancaria:"]}),(0,t.jsxs)("p",{className:"text-center mb-3",children:[g.bank&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Banco:"})," ",g.bank,(0,t.jsx)("br",{})]}),g.account&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Cuenta:"})," ",g.account,(0,t.jsx)("br",{})]}),g.key&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("strong",{children:["Cuenta ",(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("pe"))?"interbancaria":"clabe",":"]})," ",g.key,(0,t.jsx)("br",{})]}),g.recipient&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Destinatario:"})," ",g.recipient,(0,t.jsx)("br",{})]}),g.ruc&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"RUC:"})," ",g.ruc,(0,t.jsx)("br",{})]})]}),(0,t.jsxs)("p",{className:"text-center mb-0",children:[(0,t.jsx)("span",{style:{display:"inline-block",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--success)",color:"#fff",textAlign:"center",lineHeight:"30px",marginRight:"10px",fontSize:"16px",fontWeight:"bold"},children:"2"}),"Env\xede el comprobante al correo:"]}),(0,t.jsx)("p",{className:"text-center mb-0",children:(0,t.jsx)("strong",{children:null==Z?void 0:Z.emailToBudget})})]})})})})]}):"pix"===d?(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h2",{className:"text-success text-center mb-1",children:"Realize o pagamento para confirmar seu pedido:"}),(0,t.jsx)(y.Z,{children:(0,t.jsx)(C.Z,{xs:12,lg:{offset:3,size:6},children:(0,t.jsx)(k.Z,{initialProps:c,children:(0,t.jsxs)(p.Z,{className:"py-2 d-flex flex-column align-items-center",children:[(0,t.jsxs)("p",{className:"text-center",children:[(h||v)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Escaneie o QR Code"})," abaixo"]}),(h||v)&&x?(0,t.jsxs)(t.Fragment,{children:[" ","ou"," "]}):(0,t.jsx)(t.Fragment,{children:":"}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{children:"Copie a Chave Pix"})," para efetuar o pagamento no seu banco de prefer\xeancia:"]})]}),h&&(0,t.jsx)("img",{src:h,alt:"QRCode Pix",className:"mb-2"}),v&&(0,t.jsx)("img",{src:"data:image/png;base64,".concat(v),alt:"QRCode Pix",className:"mb-2",style:{width:"100%",maxWidth:"325px"}}),!h&&!v&&x&&(0,t.jsx)("div",{className:"mb-2",children:(0,t.jsx)(P.t,{value:x})}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Z,{id:"qrcode",type:"text",value:x,readOnly:!0,className:"w-100 mb-50"}),(0,t.jsx)(m.Z,{color:"success",onClick:function(){try{let e=document.getElementById("qrcode");e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.setSelectionRange(0,0),R(!0)}catch(e){console.log(e)}},children:"Copiar chave PIX"}),j&&(0,t.jsxs)("p",{className:"text-info mt-50 mb-0",children:[(0,t.jsx)(z.Z,{className:"mr-50"}),"Chave pix copiada!"]})]}),f&&(0,t.jsxs)("p",{className:"text-center mt-2",children:["Prazo para pagamento: ",(0,t.jsxs)("strong",{children:[f," minutos"]}),"."]})]})})})})]}):"bankSlip"===d?(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)("h2",{className:"text-success text-center mb-1",children:"Realize o pagamento para confirmar seu pedido:"}),(0,t.jsx)(y.Z,{children:(0,t.jsx)(C.Z,{xs:12,lg:{offset:3,size:6},children:(0,t.jsx)(k.Z,{initialProps:c,children:(0,t.jsxs)(p.Z,{className:"py-2 d-flex flex-column align-items-center",children:[(0,t.jsxs)("p",{className:"text-center",children:["Efetue o pagamento ",(0,t.jsx)("strong",{children:"acessando o boleto"})," abaixo:"]}),(0,t.jsx)("a",{href:u,target:"blank",children:(0,t.jsx)("img",{src:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/boleto-banc%C3%A1rio.jpg",alt:"Abrir boleto banc\xe1rio",width:"216"})}),(0,t.jsx)("a",{href:u,target:"blank",className:"btn btn-success",children:"Acessar boleto"})]})})})})]}):(0,t.jsx)("div",{})},I=i(41664),H=i.n(I),A=i(77489),W=e=>{var n;let{payment:i,themeSettings:o}=e;return(null==i?void 0:i.id)!=="creditCard"?"":(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"d-flex justify-content-center",children:(0,t.jsxs)("div",{className:"text-center",style:{margin:"20px 0",padding:"15px",backgroundColor:null===(n=o.colors)||void 0===n?void 0:n.layoutPrimary,borderRadius:"8px",maxWidth:"600px",width:"100%"},children:[(0,t.jsx)("p",{className:"text-white fw-bold",style:{margin:"0 0 15px 0",fontSize:"16px"},children:"â ï¸ Pagamento em processamento"}),(0,t.jsxs)("p",{className:"text-white",style:{margin:"0 0 20px 0",fontSize:"14px",lineHeight:"1.4"},children:["Seu pedido foi registrado e estamos finalizando a confirma\xe7\xe3o do pagamento.",(0,t.jsx)("br",{}),"Isso pode levar alguns instantes.",(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),"Voc\xea pode acompanhar o status em ",(0,t.jsx)(H(),{href:(0,A.route)("accountOrders"),children:(0,t.jsx)("span",{style:{textDecoration:"underline"},children:"Minha Conta > Meus Pedidos"})}),"."]})]})})})},B=i(49573),U=e=>{let{url:n,onClose:i}=e;return n?(0,t.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},children:(0,t.jsxs)("div",{style:{background:"#fff",borderRadius:"8px",width:"95%",maxWidth:"520px",maxHeight:"90vh",display:"flex",flexDirection:"column",overflow:"hidden",boxShadow:"0 8px 30px rgba(0,0,0,0.25)"},children:[(0,t.jsxs)("div",{style:{padding:"20px 24px 12px",borderBottom:"1px solid #eee"},children:[(0,t.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,t.jsx)("h5",{style:{margin:0,fontWeight:600},children:"Confirme o pagamento para confirmar seu pedido"}),(0,t.jsx)("button",{onClick:i,style:{background:"none",border:"none",fontSize:"22px",cursor:"pointer",lineHeight:1,padding:"0 0 0 12px",color:"#666"},"aria-label":"Fechar",children:"\xd7"})]}),(0,t.jsx)("p",{style:{margin:"8px 0 0",fontSize:"14px",color:"#666"},children:"Complete a verifica\xe7\xe3o com o seu banco no quadro abaixo."})]}),(0,t.jsx)("div",{style:{flex:1,padding:"0"},children:(0,t.jsx)("iframe",{src:n,title:"Verifica\xe7\xe3o de pagamento",style:{width:"100%",height:"450px",border:"none",display:"block"}})})]})}):null},D=i(36895),q=i(13152),V=i(14972);let G={pix:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/dental-fenix/payment-icons/pix.png",bankSlipWithParcel:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/dental-fenix/payment-icons/boleto-a-prazo.png",bankSlip:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/dental-fenix/payment-icons/boleto-a-vista.png",creditCard:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/dental-fenix/payment-icons/cartao-credito.png"};
1var Y=!0,Q=(0,s.$j)(e=>({sessionData:e.sessionData}),{clearCart:v.LL,setDiscounts:h.h,resetSessionData:f.An})(function(e){var n,i,s,c,h,v,f,b,y,C,N,w,k,R,Z,O,S,z,P,E,_,T,M,L,I,H,A,Y;let{initialProps:Q,orderData:X,clearCart:$,sessionData:K,setDiscounts:J,resetSessionData:ee}=e,en=(0,a.useRouter)(),{data:ei}=(0,l.useSession)(),{orderCode:et}=en.query,{dental:eo,themeSettings:es}=Q,el=(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("br"))&&!(null==eo?void 0:eo.willPayAfterCheckout)&&(null==X?void 0:null===(n=X.payment)||void 0===n?void 0:n.paymentReference)||((null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("mx"))||(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("pe")))&&((null==X?void 0:null===(i=X.payment)||void 0===i?void 0:i.id)==="pix"||(null==X?void 0:null===(s=X.payment)||void 0===s?void 0:s.id)==="pix2"),[er,ea]=(0,o.useState)(""),{t:ec}=(0,B.$G)("common"),[ed,eu]=(0,o.useState)(!1);async function ep(e){e.preventDefault(),await fetch("/api/auth/logout",{method:"POST"}),await (0,l.signOut)({redirect:!1}),ee(),en.push("/")}return((0,o.useEffect)(()=>{var e;(null==X?void 0:null===(e=X.payment)||void 0===e?void 0:e.paymentChallengeUrl)&&eu(!0)},[null==X?void 0:null===(c=X.payment)||void 0===c?void 0:c.paymentChallengeUrl]),(0,o.useEffect)(()=>{$(null==eo?void 0:eo.id),J([])},[]),(0,o.useEffect)(()=>{try{var e,n,i,t,o,s,l,a,c,d,u,p;if(!X||!(0,V.pV)(eo))return;let m=(0,V.w$)(eo),x=null==X?void 0:null===(e=X.customer)||void 0===e?void 0:e.email;x&&(0,V.Y3)(eo,"user_data",{email:x}),(0,V.L9)(eo,"purchase",{transaction_id:et,affiliation:"Online Store From Gtag",value:null!==(u=null!==(d=null==X?void 0:null===(n=X.total)||void 0===n?void 0:n.price)&&void 0!==d?d:null==X?void 0:null===(t=X.total)||void 0===t?void 0:null===(i=t.subtotal)||void 0===i?void 0:i.raw)&&void 0!==u?u:0,currency:(null==eo?void 0:null===(s=eo.countryRules)||void 0===s?void 0:null===(o=s.currency)||void 0===o?void 0:o.code)||"BRL",shipping:null!==(p=null==X?void 0:null===(l=X.shipping)||void 0===l?void 0:l.price)&&void 0!==p?p:null==X?void 0:null===(a=X.freight)||void 0===a?void 0:a.price,...m&&{send_to:m},items:null===(c=X.products)||void 0===c?void 0:c.map(e=>{var n,i;return{item_id:e.id,item_name:e.title,brand:e.brand,item_brand:e.brand,quantity:e.quantity,price:e.price,image_url:e.thumb||"",item_url:e.slug?"".concat(r.fixUrl,"/").concat(e.slug):"",item_category:(null===(n=e.categoriesTitle)||void 0===n?void 0:n.join("~"))||"",item_category_id:(null===(i=e.categories)||void 0===i?void 0:i[0])||"",...(null==e?void 0:e.providerCode)&&{providerCode:null==e?void 0:e.providerCode}}})})}catch(e){console.log(e)}},[X]),(null===(h=Object.keys(X||{}))||void 0===h?void 0:h.length)===0)?(0,t.jsx)("div",{}):(0,t.jsxs)(x.Z,{initialProps:Q,children:[(0,t.jsxs)(j(),{children:[(0,t.jsx)("meta",{name:"robots",content:"noindex"}),(0,t.jsx)("title",{children:"ptbr"===r.language?"".concat(es.orderText||"Pedido"," Enviado! - ").concat(null==eo?void 0:eo.name):"".concat(ec("orderSuccessTitle")," - ").concat(null==eo?void 0:eo.name)})]}),(0,t.jsx)(u.Z,{initialProps:Q,children:(0,t.jsxs)(p.Z,{className:" py-3",children:[(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("br"))&&(0,t.jsx)("p",{id:"orderprice",style:{display:"none"},children:(null===(f=X.total)||void 0===f?void 0:null===(v=f.total)||void 0===v?void 0:v.toFixed(2))||"-"}),(0,t.jsx)("h2",{className:"".concat(el?"font-medium-4":"text-success"," text-center mb-1"),children:"ptbr"===r.language?(0,t.jsxs)(t.Fragment,{children:[es.orderText||"Pedido"," ",X.id," ",es.orderText2||"realizado com sucesso","!"]}):(0,t.jsx)(t.Fragment,{children:ec("orderSuccessTitle")})}),el&&(0,t.jsx)(F,{orderData:X,initialProps:Q}),(0,t.jsx)(W,{payment:X.payment,themeSettings:es}),(null===r.nationalities||void 0===r.nationalities?void 0:r.nationalities.includes("br"))&&(0,t.jsx)("div",{className:"d-flex justify-content-center",children:(0,t.jsxs)("div",{className:"border rounded w-100 p-1",style:{maxWidth:"600px"},children:[(0,t.jsxs)("p",{className:"font-small-3 mb-0",children:[(0,t.jsx)("strong",{children:"Nome ou Raz\xe3o Social:"})," ",null===(b=X.customer)||void 0===b?void 0:b.name," ",null===(y=X.customer)||void 0===y?void 0:y.lastName,(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"Endere\xe7o:"})," ",null==X?void 0:null===(C=X.address)||void 0===C?void 0:C.street,", ",null===(N=X.address)||void 0===N?void 0:N.number," - ",null===(w=X.address)||void 0===w?void 0:w.district,", ",null===(k=X.address)||void 0===k?void 0:k.city," - ",null===(R=X.address)||void 0===R?void 0:R.uf,(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"E-mail:"})," ",(0,t.jsx)("span",{id:"email",children:null===(Z=X.customer)||void 0===Z?void 0:Z.email}),(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:"Contato:"})," ",(null==X?void 0:null===(O=X.customer)||void 0===O?void 0:O.tel)||(null==X?void 0:null===(S=X.customer)||void 0===S?void 0:S.tel2)]}),(0,t.jsxs)("div",{className:"d-flex",children:[(0,t.jsx)("p",{className:"font-small-3 mb-0 mr-1",children:(0,t.jsx)("strong",{children:"Valor total:"})}),(0,t.jsx)("p",{className:"font-small-3 mb-0",children:null==X?void 0:null===(z=X.total)||void 0===z?void 0:z.totalToShow})]})]})}),(null===(P=X.freight)||void 0===P?void 0:P.id)==="pickUpInStore"&&(0,t.jsx)("div",{className:"mt-2 text-center",children:(0,t.jsxs)("p",{children:[ec("pickUpInStore",{deliveryTime:"".concat(null===(E=X.freight)||void 0===E?void 0:E.deliveryTime," ").concat((null===(_=X.freight)||void 0===_?void 0:_.deliveryTime)>1?ec("businessHours"):ec("businessHour"))}),(0,t.jsx)("br",{}),ec("pickUpInStoreAddress"),eo.address,(0,t.jsx)("br",{}),eo.hours]})}),(0,t.jsx)("p",{className:"mt-2 text-center",children:es.thankYouMessageSuccessScreen?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("strong",{children:es.thankYouMessageSuccessScreen})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("strong",{children:ec("thanksForPurchase",{sellerName:null==eo?void 0:eo.name})})})}),!el&&"ptbr"===r.language&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mt-2 text-center",children:"Aqui vai algumas dicas sobre o seu pagamento:"}),(0,t.jsx)("div",{className:"d-flex justify-content-center mb-2",children:(0,t.jsxs)("div",{className:"border rounded w-100 p-1",style:{maxWidth:"300px"},children:[G[null===(T=X.payment)||void 0===T?void 0:T.id]&&(0,t.jsx)("div",{className:"border rounded p-50 d-inline-block mb-50",children:(0,t.jsx)("img",{src:G[null===(M=X.payment)||void 0===M?void 0:M.id],alt:"Forma de pagamento"})}),(0,t.jsx)("h4",{children:(0,t.jsxs)("strong",{className:"",children:[null===(L=X.payment)||void 0===L?void 0:L.paymentMethod,":"]})}),(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:null==X?void 0:null===(I=X.payment)||void 0===I?void 0:I.descriptionCheckout},className:"font-small-3"})]})})]}),(null==eo?void 0:null===(H=eo.confirmedOrder)||void 0===H?void 0:H.showWhatsButton)&&(0,t.jsx)("div",{className:"d-flex justify-content-center mb-1",children:(0,t.jsxs)(m.Z,{color:"success",className:"rounded-pill",onClick:function(){var e,n;let i=(0,D.Z)(null==eo?void 0:eo.whats,null==eo?void 0:null===(n=eo.countryRules)||void 0===n?void 0:null===(e=n.phone)||void 0===e?void 0:e.countryCodePrefix),t="".concat(ec("orderConfirmationWhatsappMessage"),"\n\n");
1X.products.forEach(e=>{var n,i,o,s;let l=Number(e.price).toLocaleString((null==eo?void 0:null===(i=eo.countryRules)||void 0===i?void 0:null===(n=i.currency)||void 0===n?void 0:n.locale)||"pt-BR",{style:"currency",currency:(null==eo?void 0:null===(s=eo.countryRules)||void 0===s?void 0:null===(o=s.currency)||void 0===o?void 0:o.code)||"BRL"});t+="- ".concat(e.quantity," (").concat(ec("code"),": ").concat(e.internalId,") (").concat(ec("price"),": ").concat(l,") ").concat(e.title," \n")});let o=(0,q.mq)({dental:eo,message:t});window.open("https://wa.me/".concat(i,"?text=").concat(encodeURIComponent(o)))},children:[(0,t.jsx)("svg",{width:"25",height:"25",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",d:"M16.3038 3.61584C14.6199 1.92988 12.3803 1.00099 9.9944 1C5.07801 1 1.07679 5.00111 1.07482 9.91881C1.07416 11.4908 1.48483 13.0254 2.26541 14.3781L1 19L5.72841 17.7596C7.03127 18.4703 8.49806 18.8449 9.99077 18.8453H9.99451C14.9103 18.8453 18.912 14.8439 18.9139 9.92595C18.9149 7.54258 17.9879 5.3017 16.3038 3.61584ZM9.9944 17.339H9.99132C8.6611 17.3384 7.35647 16.9809 6.21807 16.3056L5.94747 16.1449L3.14157 16.881L3.8905 14.1453L3.71417 13.8648C2.97205 12.6844 2.58016 11.3201 2.58082 9.91936C2.58236 5.8319 5.90814 2.50645 9.99736 2.50645C11.9775 2.5071 13.839 3.27922 15.2386 4.68053C16.6383 6.08184 17.4086 7.94446 17.408 9.9254C17.4062 14.0132 14.0807 17.339 9.9944 17.339V17.339ZM14.0609 11.7866C13.8381 11.675 12.7423 11.136 12.538 11.0615C12.3338 10.9871 12.1851 10.9501 12.0366 11.1731C11.888 11.3961 11.461 11.8982 11.3309 12.0469C11.2008 12.1956 11.0709 12.2143 10.848 12.1027C10.6251 11.9912 9.90706 11.7557 9.05573 10.9965C8.39325 10.4055 7.946 9.67568 7.81592 9.45266C7.68606 9.22942 7.81482 9.12043 7.9137 8.99783C8.15496 8.69823 8.39655 8.38413 8.47081 8.23549C8.54519 8.08673 8.50795 7.95654 8.45214 7.84503C8.39655 7.73352 7.95083 6.63654 7.76516 6.19016C7.58411 5.75576 7.40052 5.81443 7.26364 5.80762C7.13378 5.80114 6.98513 5.79982 6.83649 5.79982C6.68795 5.79982 6.44647 5.85552 6.24213 6.07876C6.03789 6.30189 5.46221 6.84099 5.46221 7.93798C5.46221 9.03496 6.2608 10.0947 6.3722 10.2435C6.48361 10.3922 7.9438 12.6433 10.1794 13.6086C10.7111 13.8384 11.1262 13.9754 11.45 14.0781C11.9839 14.2478 12.4696 14.2238 12.8537 14.1665C13.2819 14.1024 14.1722 13.6272 14.3581 13.1067C14.5437 12.5861 14.5437 12.1399 14.4879 12.0469C14.4323 11.9539 14.2837 11.8982 14.0609 11.7866V11.7866Z"})}),(0,t.jsx)("span",{style:{marginLeft:"2px"},children:ec("sendOrderViaWhatsapp")})]})}),(0,t.jsx)("div",{className:"text-center mb-1",children:(null==es?void 0:es.outOfHoursOrderNotice)?(0,t.jsxs)("p",{children:[null==es?void 0:es.outOfHoursOrderNotice,(0,t.jsx)("br",{})]}):(0,t.jsxs)("p",{children:[ec("outOfHoursOrderNotice"),(0,t.jsx)("br",{}),(0,t.jsx)("strong",{children:(null==eo?void 0:eo.hours)&&"(".concat(eo.hours,")")})," ",ec("outOfHoursOrderNotice1")]})}),(0,t.jsx)("div",{className:"d-flex justify-content-center",style:{gap:"5px"},children:(0,t.jsx)(m.Z,{className:"rounded-pill",color:"secondary",onClick:()=>en.push("/"),children:ec("backToPurchase")})}),(null==K?void 0:K.isLoggedAsCustomer)&&(0,t.jsxs)(m.Z,{className:"ml-1",color:"danger",onClick:ep,children:[(0,t.jsx)(g.Z,{className:"mr-25",size:20})," Sair da conta de ",(0,t.jsx)("strong",{children:null==ei?void 0:null===(A=ei.user)||void 0===A?void 0:A.name})]})]})}),er&&(0,t.jsx)(d(),{dangerouslySetInnerHTML:{__html:er}}),ed&&(0,t.jsx)(U,{url:null==X?void 0:null===(Y=X.payment)||void 0===Y?void 0:Y.paymentChallengeUrl,onClose:()=>eu(!1)})]})})},97975:function(e,n,i){"use strict";var t=i(87462),o=i(63366),s=i(97326),l=i(75068),r=i(67294),a=i(45697),c=i.n(a),d=i(93967),u=i.n(d),p=i(23663),m=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],x={active:c().bool,"aria-label":c().string,block:c().bool,color:c().string,disabled:c().bool,outline:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),onClick:c().func,size:c().string,children:c().node,className:c().string,cssModule:c().object,close:c().bool},h=function(e){function n(n){var i;return(i=e.call(this,n)||this).onClick=i.onClick.bind((0,s.Z)(i)),i}(0,l.Z)(n,e);var i=n.prototype;return i.onClick=function(e){if(this.props.disabled){e.preventDefault();return}if(this.props.onClick)return this.props.onClick(e)},i.render=function(){var e=this.props,n=e.active,i=e["aria-label"],s=e.block,l=e.className,a=e.close,c=e.cssModule,d=e.color,x=e.outline,h=e.size,v=e.tag,f=e.innerRef,g=(0,o.Z)(e,m);a&&void 0===g.children&&(g.children=r.createElement("span",{"aria-hidden":!0},"\xd7"));var b=(0,p.mx)(u()(l,{close:a},a||"btn",a||"btn"+(x?"-outline":"")+"-"+d,!!h&&"btn-"+h,!!s&&"btn-block",{active:n,disabled:this.props.disabled}),c);g.href&&"button"===v&&(v="a");var j=a?"Close":null;return r.createElement(v,(0,t.Z)({type:"button"===v&&g.onClick?"button":void 0},g,{className:b,ref:f,onClick:this.onClick,"aria-label":i||j}))},n}(r.Component);h.propTypes=x,h.defaultProps={color:"secondary",tag:"button"},n.Z=h},51252:function(e,n,i){"use strict";var t=i(87462),o=i(63366),s=i(67294),l=i(45697),r=i.n(l),a=i(93967),c=i.n(a),d=i(23663),u=["className","cssModule","widths","tag"],p=r().oneOfType([r().number,r().string]),m=r().oneOfType([r().bool,r().number,r().string,r().shape({size:r().oneOfType([r().bool,r().number,r().string]),order:p,offset:p}
1)]),x={tag:d.iC,xs:m,sm:m,md:m,lg:m,xl:m,className:r().string,cssModule:r().object,widths:r().array},h=function(e,n,i){return!0===i||""===i?e?"col":"col-"+n:"auto"===i?e?"col-auto":"col-"+n+"-auto":e?"col-"+i:"col-"+n+"-"+i},v=function(e){var n=e.className,i=e.cssModule,l=e.widths,r=e.tag,a=(0,o.Z)(e,u),p=[];l.forEach(function(n,t){var o=e[n];if(delete a[n],o||""===o){var s=!t;if((0,d.Kn)(o)){var l,r=s?"-":"-"+n+"-",u=h(s,n,o.size);p.push((0,d.mx)(c()(((l={})[u]=o.size||""===o.size,l["order"+r+o.order]=o.order||0===o.order,l["offset"+r+o.offset]=o.offset||0===o.offset,l)),i))}else{var m=h(s,n,o);p.push(m)}}}),p.length||p.push("col");var m=(0,d.mx)(c()(n,p),i);return s.createElement(r,(0,t.Z)({},a,{className:m}))};v.propTypes=x,v.defaultProps={tag:"div",widths:["xs","sm","md","lg","xl"]},n.Z=v},609:function(e,n,i){"use strict";var t=i(87462),o=i(63366),s=i(97326),l=i(75068),r=i(67294),a=i(45697),c=i.n(a),d=i(93967),u=i.n(d),p=i(23663),m=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],x={children:c().node,type:c().string,size:c().oneOfType([c().number,c().string]),bsSize:c().string,valid:c().bool,invalid:c().bool,tag:p.iC,innerRef:c().oneOfType([c().object,c().func,c().string]),plaintext:c().bool,addon:c().bool,className:c().string,cssModule:c().object},h=function(e){function n(n){var i;return(i=e.call(this,n)||this).getRef=i.getRef.bind((0,s.Z)(i)),i.focus=i.focus.bind((0,s.Z)(i)),i}(0,l.Z)(n,e);var i=n.prototype;return i.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},i.focus=function(){this.ref&&this.ref.focus()},i.render=function(){var e=this.props,n=e.className,i=e.cssModule,s=e.type,l=e.bsSize,a=e.valid,c=e.invalid,d=e.tag,x=e.addon,h=e.plaintext,v=e.innerRef,f=(0,o.Z)(e,m),g=["radio","checkbox"].indexOf(s)>-1,b=RegExp("\\D","g"),j="file"===s,y="textarea"===s,C="select"===s,N="range"===s,w=d||(C||y?s:"input"),k="form-control";h?(k+="-plaintext",w=d||"input"):j?k+="-file":N?k+="-range":g&&(k=x?null:"form-check-input"),f.size&&b.test(f.size)&&((0,p.O4)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),l=f.size,delete f.size);var R=(0,p.mx)(u()(n,c&&"is-invalid",a&&"is-valid",!!l&&"form-control-"+l,k),i);return("input"===w||d&&"function"==typeof d)&&(f.type=s),f.children&&!(h||"select"===s||"string"!=typeof w||"select"===w)&&((0,p.O4)('Input with a type of "'+s+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete f.children),r.createElement(w,(0,t.Z)({},f,{ref:v,className:R,"aria-invalid":c}))},n}(r.Component);h.propTypes=x,h.defaultProps={type:"text"},n.Z=h},10267:function(e,n,i){"use strict";var t=i(87462),o=i(63366),s=i(67294),l=i(45697),r=i.n(l),a=i(93967),c=i.n(a),d=i(23663),u=["className","cssModule","noGutters","tag","form","widths"],p=r().oneOfType([r().number,r().string]),m={tag:d.iC,noGutters:r().bool,className:r().string,cssModule:r().object,form:r().bool,xs:p,sm:p,md:p,lg:p,xl:p},x=function(e){var n=e.className,i=e.cssModule,l=e.noGutters,r=e.tag,a=e.form,p=e.widths,m=(0,o.Z)(e,u),x=[];p.forEach(function(n,i){var t=e[n];delete m[n],t&&x.push(i?"row-cols-"+n+"-"+t:"row-cols-"+t)});var h=(0,d.mx)(c()(n,l?"no-gutters":null,a?"form-row":"row",x),i);return s.createElement(r,(0,t.Z)({},m,{className:h}))};x.propTypes=m,x.defaultProps={tag:"div",widths:["xs","sm","md","lg","xl"]},n.Z=x},97326:function(e,n,i){"use strict";function t(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(n,{Z:function(){return t}})},75068:function(e,n,i){"use strict";function t(e,n){return(t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function o(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}i.d(n,{Z:function(){return o}})}},function(e){e.O(0,[3714,3996,7795,7184,571,7322,2888,9774,179],function(){return e(e.s=96487)}),_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.