1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[953],{70506:function(e,t,l){"use strict";var n=l(85893),o=l(67294),i=l(12589),a=l(69283),s=l(40782),r=l(76627),c=l.n(r),d=l(45046),u=l(32701),m=l(10684),h=l(15538),v=l(82669),g=l(67954),p=l(70474),x=l(10267),j=l(51252),f=l(97985),y=l(97975),M=l(67421);t.Z=function(e){let{from:t,isOpen:l,handleToggle:r}=e,[N,C]=(0,o.useState)(!1),w={name:(0,o.useRef)(null),email:(0,o.useRef)(null),occupation:(0,o.useRef)(null),uf:(0,o.useRef)(null),city:(0,o.useRef)(null),allow:(0,o.useRef)(null)},[_,b]=(0,o.useState)(null),[S,I]=(0,o.useState)(!1),D={name:"",email:"",tel:"",allow:""},[L,T]=(0,o.useState)(D),{t:k}=(0,M.$G)("common"),E=(0,o.useRef)(null);async function A(e){if(e.preventDefault(),function(){if(T(D),!w.name.current.value)return w.name.current.blur(),w.name.current.focus(),T({...D,name:"Informe um nome v\xe1lido"}),!1;let e=w.email.current.value.split(".");return!w.email.current.value.includes("@")||e.filter(e=>e.length).length<2?(w.email.current.blur(),w.email.current.focus(),T({...D,email:"Informe um e-mail v\xe1lido"}),!1):_.value.split("(").join("").split(")").join("").split(" ").join("").split("_").join("").split("-").join("").length<10?(_.blur(),_.focus(),T({...D,tel:"Informe um telefone v\xe1lido"}),!1):w.uf.current.value?w.city.current.value?w.occupation.current.value?!!w.allow.current.checked||(w.allow.current.blur(),w.allow.current.focus(),T({...D,allow:"Voc\xea precisa autorizar para continuar."}),!1):(w.occupation.current.blur(),w.occupation.current.focus(),T({...D,occupation:"Informe sua profiss\xe3o"}),!1):(w.city.current.blur(),w.city.current.focus(),T({...D,city:"Informe sua cidade"}),!1):(w.uf.current.blur(),w.uf.current.focus(),T({...D,uf:"Informe seu estado"}),!1)}()){I(!0);try{var l;let e={website:(null===(l=E.current)||void 0===l?void 0:l.value)||"",name:w.name.current.value,email:w.email.current.value,tel:_.value,occupation:w.occupation.current.value,uf:w.uf.current.value,city:w.city.current.value,allow:w.allow.current.checked,leadType:"user",from:t};return await (0,a.v)("".concat(i.Y,"/setLeadFromMarketplace"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),function(){let e=JSON.parse(window.localStorage.getItem("leadCapture"));return window.localStorage.setItem("leadCapture",JSON.stringify({...e,leadWasCaptured:!0})),C(!0)}()}catch(e){console.log(e),s.Am.error(k("errorAction")),I(!1)}}}return(0,o.useEffect)(()=>{let e=JSON.parse(window.localStorage.getItem("leadCapture"));return C(!!e&&!!e.leadWasCaptured)},[]),(0,n.jsxs)(d.Z,{isOpen:l,toggle:r,className:"modal-dialog-centered",children:[N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{toggle:r,children:(0,n.jsx)("strong",{children:"Aguarde novidades! \uD83E\uDD17"})}),(0,n.jsx)(m.Z,{children:(0,n.jsx)("p",{children:"Voc\xea receber\xe1 um e-mail de confirma\xe7\xe3o do seu cadastro, verifique em sua caixa de entrada ou spam e adicione em seus contatos para saber de todas as novidades. \uD83E\uDD2B\uD83E\uDD11"})})]}),!N&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.Z,{toggle:r,children:"Quero ser avisado!"}),(0,n.jsxs)(h.Z,{onSubmit:A,children:[(0,n.jsx)("input",{type:"text",name:"website",ref:E,tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0}}),(0,n.jsxs)(m.Z,{children:[(0,n.jsx)("p",{children:"Esta chegando a sua nova influencer de comprinhas preferidas na odontologia! \uD83E\uDDB7\uD83E\uDD7C\uD83D\uDED2"}),(0,n.jsxs)("p",{children:["Prazer, eu sou a ",(0,n.jsx)("strong",{children:"Sou Odonto Marketplace"})," â¤ï¸"]}),(0,n.jsx)("p",{children:"Cadastre-se e receba em primeira m\xe3o o lan\xe7amento e as ofertas do maior site de compras de produtos odontol\xf3gicos do mundo."}),(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"name",className:"mb-25",children:(0,n.jsx)("strong",{children:"Seu nome:"})}),(0,n.jsx)("input",{ref:w.name,className:"form-control",type:"text",id:"name"}),L.name&&(0,n.jsx)(p.Z,{className:"d-block",children:L.name})]}),(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"email",className:"mb-25",children:(0,n.jsx)("strong",{children:"E-mail:"})}),(0,n.jsx)("input",{ref:w.email,className:"form-control",type:"text",id:"email"}),L.email&&(0,n.jsx)(p.Z,{className:"d-block",children:L.email})]}),(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"tel",className:"mb-25",children:(0,n.jsx)("strong",{children:"WhatsApp ou Celular:"})}),(0,n.jsx)(c(),{inputRef:e=>b(e),className:"form-control",type:"tel",autoComplete:"off",id:"tel",mask:"(99) 99999-9999"}),L.tel&&(0,n.jsx)(p.Z,{className:"d-block",children:L.tel})]}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)(j.Z,{sm:"4",children:(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"uf",className:"mb-25",children:(0,n.jsx)("strong",{children:"UF:"})}),(0,n.jsxs)("select",{ref:w.uf,className:"form-control",name:"uf",id:"uf",children:[(0,n.jsx)("option",{value:"",children:"Selecione"}),(0,n.jsx)("option",{value:"AC",children:"AC"}),(0,n.jsx)("option",{value:"AL",children:"AL"}),(0,n.jsx)("option",{value:"AP",children:"AP"}),(0,n.jsx)("option",{value:"AM",children:"AM"}),(0,n.jsx)("option",{value:"BA",children:"BA"}),(0,n.jsx)("option",{value:"CE",children:"CE"}),(0,n.jsx)("option",{value:"DF",children:"DF"}),(0,n.jsx)("option",{value:"ES",children:"ES"}),(0,n.jsx)("option",{value:"GO",children:"GO"}),(0,n.jsx)("option",{value:"MA",children:"MA"}),(0,n.jsx)("option",{value:"MS",children:"MS"}),(0,n.jsx)("option",{value:"MT",children:"MT"}),(0,n.jsx)("option",{value:"MG",children:"MG"}),(0,n.jsx)("option",{value:"PA",children:"PA"}),(0,n.jsx)("option",{value:"PB",children:"PB"}),(0,n.jsx)("option",{value:"PR",children:"PR"}),(0,n.jsx)("option",{value:"PE",children:"PE"}),(0,n.jsx)("option",{value:"PI",children:"PI"}),(0,n.jsx)("option",{value:"RJ",children:"RJ"}),(0,n.jsx)("option",{value:"RN",children:"RN"}),(0,n.jsx)("option",{value:"RS",children:"RS"}),(0,n.jsx)("option",{value:"RO",children:"RO"}),(0,n.jsx)("option",{value:"RR",children:"RR"}),(0,n.jsx)("option",{value:"SC",children:"SC"}),(0,n.jsx)("option",{value:"SP",children:"SP"}),(0,n.jsx)("option",{value:"SE",children:"SE"}),(0,n.jsx)("option",{value:"TO",children:"TO"})]}),L.uf&&(0,n.jsx)(p.Z,{className:"d-block",children:L.uf})]})}),(0,n.jsx)(j.Z,{sm:"8",children:(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"city",className:"mb-25",children:(0,n.jsx)("strong",{children:"Cidade:"})}),(0,n.jsx)("input",{ref:w.city,className:"form-control",type:"text",id:"city"}),L.city&&(0,n.jsx)(p.Z,{className:"d-block",children:L.city})]})})]}),(0,n.jsxs)(v.Z,{className:"mb-2",children:[(0,n.jsx)(g.Z,{for:"occupation",className:"mb-25",children:(0,n.jsx)("strong",{children:"Profiss\xe3o:"})}),(0,n.jsxs)("select",{ref:w.occupation,className:"form-control",type:"select",name:"occupation",id:"occupation",children:[(0,n.jsx)("option",{value:"",children:"Selecione uma profiss\xe3o"}),(0,n.jsxs)("optgroup",{label:"Pessoa f\xedsica",children:[(0,n.jsx)("option",{value:"cirurgiao-dentista",children:"Cirurgi\xe3o Dentista"}),(0,n.jsx)("option",{value:"estudante",children:"Estudante de Odontologia"}),(0,n.jsx)("option",{value:"protetico",children:"Prot\xe9tico"}),(0,n.jsx)("option",{value:"biomedico",children:"Biom\xe9dico"}),(0,n.jsx)("option",{value:"medico",children:"M\xe9dico"}),(0,n.jsx)("option",{value:"farmaceutico",children:"Farmac\xeautico"}),(0,n.jsx)("option",{value:"enfermeiro",children:"Enfermeiro"}),(0,n.jsx)("option",{value:"pf-outros",children:"Outros"})]}),(0,n.jsxs)("optgroup",{label:"Pessoa jur\xeddica",children:[(0,n.jsx)("option",{value:"clinica-odontologica",children:"Cl\xednica Odontol\xf3gica"}),(0,n.jsx)("option",{value:"laborat\xf3rio-de-protese",children:"Laborat\xf3rio de Pr\xf3tese"}),(0,n.jsx)("option",{value:"clinica-estetica",children:"Cl\xednica Est\xe9tica"}),(0,n.jsx)("option",{value:"clinica-medica",children:"Cl\xednica M\xe9dica"}),(0,n.jsx)("option",{value:"pj-outras",children:"Outras"})]})]}),L.occupation&&(0,n.jsx)(p.Z,{className:"d-block",children:L.occupation})]}),(0,n.jsxs)(v.Z,{check:!0,children:[(0,n.jsxs)(g.Z,{check:!0,children:[(0,n.jsx)("input",{ref:w.allow,className:"form-check-input",type:"checkbox",defaultChecked:!1}
1)," ",(0,n.jsxs)("span",{className:"font-small-2",children:["Autorizo que a ",(0,n.jsx)("strong",{children:"Sou Odonto Marketplace"})," entre em contato comigo atrav\xe9s dos canais acima e armazene os mesmos para o devido andamento da oferta."]})]}),L.allow&&(0,n.jsx)(p.Z,{className:"d-block",children:L.allow})]})]}),(0,n.jsx)(f.Z,{children:(0,n.jsx)(y.Z,{type:"submit",color:"success",disabled:S,children:"Solicitar contato"})})]})]})]})}},56528:function(e,t,l){"use strict";l.d(t,{Z:function(){return S}});var n=l(85893),o=l(67294),i=l(97975),a=l(77424),s=l(33299),r=l(40782),c=l(49573),d=l(45046),u=l(32701),m=l(15538),h=l(10684),v=l(82669),g=l(67954),p=l(609),x=l(97985),j=l(36955);let f=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;var y=function(e){let{isOpen:t,toggle:l,productTitle:a,initialContact:s,isSubmitting:r,onSubmit:y}=e,{t:M}=(0,c.$G)("common"),[N,C]=(0,o.useState)({name:"",email:"",phone:""}),[w,_]=(0,o.useState)("");function b(e){return t=>C({...N,[e]:t.target.value})}return(0,o.useEffect)(()=>{t&&(_(""),C({name:(null==s?void 0:s.name)||"",email:(null==s?void 0:s.email)||"",phone:(null==s?void 0:s.phone)||""}))},[t,null==s?void 0:s.name,null==s?void 0:s.email,null==s?void 0:s.phone]),(0,n.jsxs)(d.Z,{isOpen:t,toggle:l,className:"modal-dialog-centered",children:[(0,n.jsx)(u.Z,{toggle:l,children:M("notifyMeModalTitle")}),(0,n.jsxs)(m.Z,{onSubmit:function(e){e.preventDefault();let t=N.email.trim(),l=N.phone.replace(/\D/g,"");return t||l?t&&!f.test(t)?_(M("invalidEmail")):l&&l.length<8?_(M("notifyMeInvalidPhone")):(_(""),y({name:N.name.trim(),email:t,phone:N.phone.trim()})):_(M("notifyMeContactRequired"))},children:[(0,n.jsxs)(h.Z,{children:[(0,n.jsx)("p",{className:"mb-1",children:M("notifyMeModalIntro",{title:a||""})}),(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.Z,{htmlFor:"notifyMeName",children:M("budgetNameLabel")}),(0,n.jsx)(p.Z,{id:"notifyMeName",type:"text",maxLength:120,value:N.name,onChange:b("name")})]}),(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.Z,{htmlFor:"notifyMeEmail",children:M("budgetEmailLabel")}),(0,n.jsx)(p.Z,{id:"notifyMeEmail",type:"email",value:N.email,onChange:b("email")})]}),(0,n.jsxs)(v.Z,{children:[(0,n.jsx)(g.Z,{htmlFor:"notifyMePhone",children:M("notifyMePhoneLabel")}),(0,n.jsx)(p.Z,{id:"notifyMePhone",type:"tel",maxLength:25,value:N.phone,onChange:b("phone")})]}),w&&(0,n.jsx)("p",{className:"text-danger mb-0",role:"alert",children:w})]}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)(i.Z,{type:"button",color:"secondary",outline:!0,onClick:l,disabled:r,children:M("cancel")}),(0,n.jsx)(i.Z,{type:"submit",color:"success",disabled:r,children:r?(0,n.jsx)(j.Z,{size:"sm",color:"white"}):M("notifyMe")})]})]})]})},M=l(75090),N=l(36895),C=l(12589),w=l(69283);async function _(e){let{sellerId:t,productId:l,userId:n,contact:o,quantity:i,channel:a}=e,s=await (0,w.v)("".concat(C.Y,"/setNotifyMe"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({sellerId:t,productId:l,userId:n||null,contact:o||null,quantity:function(e){let t=Number(e);return!Number.isFinite(t)||t<1?1:Math.min(Math.floor(t),9999)}(i),channel:a||"form"})});if(200!==s.status)throw Error("setNotifyMe failed with status ".concat(s.status));return s}var b=l(13152),S=function(e){var t,l,d;let{dental:u,product:m,quantity:h,size:v,color:g="secondary",className:p="",showIcon:x=!1,label:j,style:f}=e,{t:C}=(0,c.$G)("common"),{data:w}=(0,s.useSession)(),{enabled:S,mode:I}=(0,M.st)(u),[D,L]=(0,o.useState)(!1),[T,k]=(0,o.useState)(!1);if(!S||!(null==m?void 0:m.id))return null;let E=(null==w?void 0:null===(t=w.user)||void 0===t?void 0:t.id)||null,A=E?{name:(null==w?void 0:null===(l=w.user)||void 0===l?void 0:l.name)||"",email:(null==w?void 0:null===(d=w.user)||void 0===d?void 0:d.email)||"",phone:""}:null;async function O(e){let{contact:t,channel:l}=e;return _({sellerId:null==u?void 0:u.id,productId:m.id,userId:E,contact:t,quantity:h,channel:l})}async function z(e){try{k(!0),await O({contact:e,channel:"form"}),L(!1),r.Am.success(C("notifyMeSuccess"))}catch(e){console.log(e),r.Am.error(C("errorAction"))}finally{k(!1)}}return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.Z,{type:"button",size:v,color:g,className:p,style:f,disabled:T,onClick:function(e){var t,l;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),null==e||null===(l=e.stopPropagation)||void 0===l||l.call(e),"whatsapp"===I&&function(){let e=C("notifyMeWhatsappMessage",{title:m.title||"",link:function(e,t){let l=((null==e?void 0:e.url)||(0,window.location.origin)||"").replace(/\/$/,"");return(null==t?void 0:t.slug)?"".concat(l,"/").concat(t.slug):l}(u,m)}),t=function(e){var t,l;let{dental:n,product:o,text:i}=e,a=(0,N.Z)(null==n?void 0:n.whats,null==n?void 0:null===(l=n.countryRules)||void 0===l?void 0:null===(t=l.phone)||void 0===t?void 0:t.countryCodePrefix);
1return a?"https://api.whatsapp.com/send?phone=".concat(a,"&text=").concat(encodeURIComponent(i||"")):""}({dental:u,product:m,text:e});return!!t&&(window.open((0,b.NC)({href:t,dental:u}),"_blank"),O({contact:A,channel:"whatsapp"}).catch(e=>{console.log(e)}),!0)}()||L(!0)},children:[x&&(0,n.jsx)(a.Z,{size:14,className:"mr-50"}),(0,n.jsx)("span",{children:j||C("notifyMe")})]}),(0,n.jsx)(y,{isOpen:D,toggle:()=>L(!1),productTitle:m.title,initialContact:A,isSubmitting:T,onSubmit:z})]})}},60043:function(e,t,l){"use strict";l.d(t,{LW:function(){return r},xQ:function(){return d}});var n=l(12589),o=l(69283);async function i(e,t){let{userId:l,sellerId:i}=t;try{if(!l||!i)return{success:!1,message:"Usu\xe1rio ou dental n\xe3o encontrados"};if(!(null==e?void 0:e.products)||0===Object.keys(e.products).length)return{success:!0,message:"Carrinho vazio, nada para salvar"};let t=Object.entries(e.products).map(e=>{let[t,l]=e;return{id:t,quantity:parseInt(l)||0}}).filter(e=>e.quantity>0),a={userId:l,sellerId:i,products:t,...e.studentListId&&{studentListId:e.studentListId}},s=await (0,o.v)("".concat(n.Y,"/addToCartBulk"),{method:"POST",requestedTokenType:"user",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(200!==s.status){let e=await s.text();throw console.error("Erro na API - Status:",s.status),console.error("Erro na API - Resposta:",e),Error("Erro na API: ".concat(s.status," - ").concat(e))}let r=await s.json();return{success:!0,data:r,message:"Carrinho salvo com sucesso no banco de dados"}}catch(e){return console.error("Erro ao salvar carrinho local no banco:",e),{success:!1,error:e.message,message:"Erro ao salvar carrinho no banco de dados"}}}let a="cart";function s(e){if(!e)return null;try{return(JSON.parse(window.localStorage.getItem(a))||{})[e]||null}catch(e){return null}}function r(e){let t=s(e);return Object.keys((null==t?void 0:t.products)||{}).length>0}let c=new Map;function d(e){let{dentalId:t,userId:l}=e;if(!t||!l)return Promise.resolve({success:!1,message:"Usu\xe1rio ou dental n\xe3o encontrados"});let n="".concat(t,":").concat(l);if(c.has(n))return c.get(n);let o=(async()=>{let e=s(t);if(!Object.keys((null==e?void 0:e.products)||{}).length)return{success:!0,skipped:!0,message:"Nenhum carrinho local encontrado"};let n=await i(e,{userId:l,sellerId:t});return(null==n?void 0:n.success)&&window.localStorage.removeItem(a),n})().finally(()=>c.delete(n));return c.set(n,o),o}},40054:function(e,t,l){"use strict";l.d(t,{Yz:function(){return r},jK:function(){return a},qd:function(){return o},uP:function(){return c},xG:function(){return i}});let n={locale:"pt-BR",code:"BRL"};function o(e){return{locale:(null==e?void 0:e.locale)||n.locale,code:(null==e?void 0:e.code)||n.code,symbol:null==e?void 0:e.symbol}}function i(e,t){let l=Number(e||0),n=o(t);return new Intl.NumberFormat(n.locale,{style:"currency",currency:n.code}).format(l)}function a(e){var t;let l=o(e);return(null===(t=new Intl.NumberFormat(l.locale,{style:"currency",currency:l.code}).formatToParts(0).find(e=>"currency"===e.type))||void 0===t?void 0:t.value)||l.symbol||""}function s(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function r(e){var t;return(null===(t=new Intl.NumberFormat(e).formatToParts(1.1).find(e=>"decimal"===e.type))||void 0===t?void 0:t.value)||"."}function c(e,t){var l,n;if(null==e||""===e)return 0;if("number"==typeof e)return e;let i=o(t),c=a(i),d=(l=i.locale,(null===(n=new Intl.NumberFormat(l).formatToParts(1e3).find(e=>"group"===e.type))||void 0===n?void 0:n.value)||","),u=r(i.locale),m=String(e).trim();c&&(m=m.replace(RegExp(s(c),"g"),"")),d&&(m=m.replace(RegExp(s(d),"g"),"")),m=m.replace(/\s/g,""),u&&"."!==u&&(m=m.replace(RegExp(s(u),"g"),"."));let h=Number(m=m.replace(/[^\d.-]/g,""));return Number.isNaN(h)?0:h}},75090:function(e,t,l){"use strict";l.d(t,{st:function(){return o}});let n=["form","whatsapp"];function o(e){let t=null==e?void 0:e.notifyMe;return{enabled:"boolean"==typeof(null==t?void 0:t.enabled)?t.enabled:(null==e?void 0:e.type)==="ecommerce",mode:n.includes(null==t?void 0:t.mode)?t.mode:"form"}}},76013:function(e,t,l){"use strict";l.d(t,{t:function(){return i}});var n=l(12589),o=l(69283);async function i(e){let{req:t,res:l}=e,i=function(e){var t;let{term:l,page:o=0,sellerId:i,nationalities:a,itemsPerPage:s=60}=e,r=!0===(t=e.searchingByInternalId)||"true"===t?"internalId=".concat(l):"term=".concat(l);return"".concat(n.Y,"/searchProductsV2?").concat([r,"sellerId=".concat(i),"page=".concat(o+1),"itemsPerPage=".concat(s),"nationalities=".concat(a),"engine=v2","origin=ecommerce","showOnlyActiveProducts=true"].join("&"))}(e),a=await (0,o.v)(i,{method:"GET",requestedTokenType:"guest",req:t,res:l});if(200!==a.status)return{status:a.status,items:[],nextPage:null};let s=await a.json(),r=s.nextPage?s.nextPage-1:null;return{status:200,items:s.items||[],nextPage:r}}},51615:function(e,t,l){"use strict";l.d(t,{Z:function(){return tn}});var n=l(85893),o=l(67294),i=l(9008),a=l.n(i),s=l(11163),r=l(41664),c=l.n(r),d=l(19692),u=l(14416),m=l(16218),h=l(33299),v=l(15829),g=l.n(v),p=function(e){var t;let{initialProps:l}=e,{headerBanner:o}=l||{},i=(null==(t=null==o?void 0:o.bgColor)?void 0:t.length)>1?{background:"linear-gradient(90deg, ".concat(t[0]," 0%, ").concat(t[1]," 100%)")}:{backgroundColor:(null==t?void 0:t.length)>0?t[0]:""},{src:a,title:s,link:r,target:c}=o||{};return 0===Object.keys(o||{}).length?(0,n.jsx)("div",{}):r?(0,n.jsx)("a",{href:r,target:"newTab"===c?"_blank":"",className:g().headerBanner,style:i,children:(0,n.jsx)("img",{src:a,alt:s})}):(0,n.jsx)("div",{className:g().headerBanner,style:i,children:(0,n.jsx)("img",{src:a,alt:s})})},x=l(38109),j=l.n(x),f=function(e){var t;let{className:l,initialProps:o}=e,{themeSettings:i,headerMenu:a}=o||{};return a&&(null==a?void 0:a.length)!==0?(0,n.jsx)("ul",{className:"".concat(l," ").concat(j().headerMenu," ").concat(j()[null==i?void 0:null===(t=i.components)||void 0===t?void 0:t.headerMenu]),children:null==a?void 0:a.map((e,t)=>(0,n.jsx)("li",{style:{background:null==e?void 0:e.bgColor},children:(0,n.jsx)("a",{href:e.url,target:"newTab"===e.target?"_blank":"",style:{color:null==e?void 0:e.textColor},children:e.label})},t))}):(0,n.jsx)("div",{})},y=l(82669),M=l(609),N=l(36955),C=l(67954),w=l(83206),_=l(70146),b=l.n(_),S=l(78058),I=l(49573),D=l(76013),L=l(56528),T=l(14972),k=function(e){var t;let{className:l,initialProps:i}=e,{dental:a,themeSettings:r}=i||{},d=(0,s.useRouter)(),{data:u}=(0,h.useSession)(),[m,v]=(0,o.useState)(!1),[g,p]=(0,o.useState)(""),[x,j]=(0,o.useState)([]),{t:f}=(0,I.$G)("common"),[_,k]=(0,o.useState)(!1),[E,A]=(0,o.useState)(!1);function O(e){try{let t=e.split("%").join("%25");return t=t.split("/").join("%2F")}catch(t){return e}}async function z(e){try{var t,l;let n=await fetch("/api/search/enhance-search-term",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({searchTerm:e,sellerId:null==a?void 0:a.id,userId:(null==u?void 0:null===(t=u.user)||void 0===t?void 0:t.id)||null,saveTermEnhance:(null==a?void 0:null===(l=a.iaSettings)||void 0===l?void 0:l.saveTermEnhance)||!1})});if(200!==n.status)throw Error("Erro ao melhorar termo de busca, Status: "+n.status);let o=await n.json();return{enhancedTerm:o.enhancedTerm,searchTerm:e,fromCache:o.fromCache,isRedirect:o.isRedirect,redirectUrl:o.redirectUrl}}catch(t){return console.log("Erro ao melhorar termo de busca:",t),{enhancedTerm:null,searchTerm:e,fromCache:!1}}}async function Z(e){var t;let l={originalSearchTerm:e,validSearchTerm:e,termEnhancedByAI:!1,fromCache:!1,isRedirect:!1,redirectUrl:null};if(null==a?void 0:null===(t=a.iaSettings)||void 0===t?void 0:t.hasEnhanceSearchWithAI)try{let t=await z(e);if(l.validSearchTerm=t.enhancedTerm,l.fromCache=t.fromCache,l.isRedirect=t.isRedirect,l.redirectUrl=t.redirectUrl,!l.validSearchTerm)throw Error("Retorno Inv\xe1lido");l.validSearchTerm=O(l.validSearchTerm),l.termEnhancedByAI=!0}catch(t){console.log("Erro ao melhorar termo de busca:",t),l.validSearchTerm=O(e)}else l.validSearchTerm=O(e);return l}async function P(){if(!g)return;if(p(""),E){let e=O(g);return d.push("/busca/".concat(e,"?searchingByInternalId=true"))}let e=await Z(g);if(e.isRedirect)return d.push(e.redirectUrl);if(e.originalSearchTerm!==e.validSearchTerm){let t=encodeURIComponent(e.originalSearchTerm);return d.push("/busca/".concat(e.validSearchTerm,"#").concat(t))}return d.push("/busca/".concat(e.validSearchTerm))}async function F(e){if("Enter"===e.key){if(!g)return;if(p(""),E){let e=O(g);return d.push("/busca/".concat(e,"?searchingByInternalId=true"))}let e=await Z(g);if(e.isRedirect)return d.push(e.redirectUrl);if(e.originalSearchTerm!==e.validSearchTerm){let t=encodeURIComponent(e.originalSearchTerm);return d.push("/busca/".concat(e.validSearchTerm,"#").concat(t))}return d.push("/busca/".concat(e.validSearchTerm))}}return(0,o.useEffect)(()=>{x.length&&g&&v(!0)},[x]),(0,o.useEffect)(()=>{var e;if(j([]),v(!1),!g||(null==a?void 0:null===(e=a.iaSettings)||void 0===e?void 0:e.hasEnhanceSearchWithAI))return;let t=setTimeout(async()=>{try{var e;k(!0);let t=await (0,D.t)({term:g,page:0,sellerId:null==a?void 0:a.id,nationalities:S.nationalities,searchingByInternalId:E,hasSmartHint:null==a?void 0:a.hasSmartHint,anonymousSmartHint:window.SmartHint_AnonymousConsumer});if(200!==t.status)return console.log("error 200");j(null===(e=t.items)||void 0===e?void 0:e.map(e=>({id:e.id,slug:e.slug,title:e.title,brand:e.brand,label:"".concat(e.title," - ").concat(e.brand),formattedOldPrice:e.formattedOldPrice,formattedPrice:e.formattedPrice,price:e.price,type:e.type,available:e.available,needsBudget:null==e?void 0:e.needsBudget,showConditions:!a.isNotPriced&&e.available&&!(null==e?void 0:e.needsBudget)})))}catch(e){console.log(e)}finally{k(!1)}},500);return()=>clearTimeout(t)},[g,E]),(0,o.useEffect)(()=>
1{if(m){var e=document.getElementById("globalSearch");return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function t(t){if(!e.contains(t.target))return v(!1)}},[m]),(0,o.useEffect)(()=>v(!1),[d]),(0,n.jsxs)("div",{className:"".concat(b().globalInputs," ").concat(l),children:[(0,n.jsxs)(y.Z,{id:"globalSearch",className:"".concat(b().globalSearch," ").concat(b()[null==r?void 0:null===(t=r.components)||void 0===t?void 0:t.headerSearch]," position-relative customSearch"),size:"lg",children:[(0,n.jsx)(M.Z,{type:"text",placeholder:f("placeholderSearch"),value:g,onChange:e=>p(e.target.value),onKeyDown:F,onFocus:()=>v(!0)}),(0,n.jsx)("div",{className:b().globalSearch__target,onClick:P,children:(0,n.jsx)(w.Z,{size:20})}),m&&x.length>0&&(0,n.jsx)("ul",{children:x.map((e,t)=>(0,n.jsxs)("li",{children:[(0,n.jsx)(c(),{legacyBehavior:!0,href:"/".concat(e.slug),children:(0,n.jsxs)("a",{onClick:()=>(function(e,t){try{if(!(0,T.pV)(a)||!(null==a?void 0:a.hasSmartHint))return;(0,T.L9)(a,"search",{search_term:g,category_event:"SmartHint"}),(0,T.L9)(a,"select_item",{item_list_id:"smarthint-search",category_event:"SmartHint",items:[{item_id:e.id,item_name:e.title||e.label,item_brand:e.brand,price:e.price,index:t}]})}catch(e){console.log("Erro ao disparar eventos SmartHint no autocomplete:",e)}})(e,t),children:[(0,n.jsx)("span",{className:"mb-25",children:e.label}),e.showConditions&&(0,n.jsxs)("span",{children:["singleProduct"===e.type&&e.formattedOldPrice&&(0,n.jsxs)("span",{className:"d-block text-muted",children:["de: ",(0,n.jsx)("span",{className:"font-small-4",style:{textDecoration:"line-through"},children:e.formattedOldPrice})," por:"]}),"family"===e.type&&(0,n.jsx)("span",{className:"d-block text-muted",children:"a partir de:"}),(0,n.jsx)("span",{className:"d-block text-success font-small-4",children:e.formattedPrice})]}),!e.available&&!(null==e?void 0:e.needsBudget)&&(0,n.jsx)("span",{className:"d-block text-muted font-small-4",children:f("productSoldOut")}),(null==e?void 0:e.needsBudget)&&(0,n.jsx)("span",{className:"d-block text-muted font-small-4",children:"Produto sob encomenda"})]})}),!e.available&&!(null==e?void 0:e.needsBudget)&&"family"!==e.type&&(0,n.jsx)("div",{className:"mt-50",children:(0,n.jsx)(L.Z,{size:"sm",dental:a,product:{id:e.id,slug:e.slug,title:e.title}})})]},e.id))})]}),(0,n.jsxs)("div",{className:b().widgets,children:[_&&(0,n.jsx)("div",{className:b().globalSearch__spinner,children:(0,n.jsx)(N.Z,{})}),(0,n.jsxs)(C.Z,{check:!0,className:b().checkbox,children:[(0,n.jsx)("input",{type:"checkbox",className:"form-check-input",id:"allow",defaultChecked:!1,onChange:e=>{A(e.target.checked)}})," ",(0,n.jsx)("span",{className:"font-small-2",children:"Buscar por c\xf3digo"})]})]})]})},E=l(58158),A=l.n(E),O=l(6624),z=l.n(O),Z=l(30913),P=l(13152),F=function(e){var t;let{className:l,formattedWhats:o,initialProps:i}=e,{t:a}=(0,I.$G)("common"),{dental:s,themeSettings:r}=i||{},c=(0,Z.Z)({dental:s,formattedWhats:o}),d=e=>(0,P.Ec)(e,{href:c,dental:s});return(null==r?void 0:null===(t=r.components)||void 0===t?void 0:t.headerWhats)==="styled"?(0,n.jsx)("div",{className:l,children:(0,n.jsx)("a",{className:"".concat(z().whats," d-flex align-items-center trigger-gtm-whats"),href:c,title:"WhatsApp",target:"_blank",onClick:d,children:(0,n.jsx)("img",{className:"mr-25",width:"50",height:"50",src:A(),alt:"WhatsApp"})})}):(0,n.jsx)("div",{className:l,children:(0,n.jsxs)("a",{className:"".concat(z().whats," d-flex align-items-center trigger-gtm-whats"),href:c,title:"WhatsApp",target:"_blank",onClick:d,children:[(0,n.jsx)("svg",{className:z().svgWhats,width:"30",height:"30",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"#82868B"})}),(0,n.jsxs)("span",{className:"ml-50",children:[a("headerWhatsAppHelp"),(0,n.jsx)("span",{className:"d-block font-small-2",children:a("headerWhatsAppCall")}
1)]})]})})},R=l(73752),W=l(2512),B=l.n(W),H=l(46727),U=l(77489),Q=(0,u.$j)(null,{resetSessionData:H.An,resetCartAfterSignOut:m.zu})(function(e){let{initialProps:t,resetSessionData:l,resetCartAfterSignOut:i}=e,a=(0,s.useRouter)(),{data:r}=(0,h.useSession)(),[d,u]=(0,o.useState)("/login"),{t:m}=(0,I.$G)("common");async function v(e){e.preventDefault(),await fetch("/api/auth/logout",{method:"POST"}),await (0,h.signOut)({redirect:!1}),l(),i(),a.push("/")}if((0,o.useEffect)(()=>{if(!r)return"/"===a.asPath?u("/login"):u("/login?destino=".concat(a.asPath.substring(1)))},[r]),r){var g,p;return(0,n.jsxs)("div",{className:B().myAccount,children:[(0,n.jsx)("div",{children:(0,n.jsx)(c(),{legacyBehavior:!0,href:(0,U.route)("account"),children:(0,n.jsx)("a",{children:(null===(g=r.user)||void 0===g?void 0:g.image)?(0,n.jsx)("img",{src:null===(p=r.user)||void 0===p?void 0:p.image,className:"w-100"}):(0,n.jsx)(R.Z,{size:26})})})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("strong",{children:[m("helloCustomer")," ",r.user.name||"Cliente"]}),(0,n.jsx)("br",{}),(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{children:(0,n.jsx)(c(),{legacyBehavior:!0,href:(0,U.route)("account"),children:(0,n.jsx)("a",{children:m("myAccount")})})}),(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:"/api/auth/signout",onClick:v,children:m("singOut")})})]})]})]})}return(0,n.jsx)(c(),{legacyBehavior:!0,href:d,children:(0,n.jsxs)("a",{className:B().myAccount,children:[(0,n.jsx)("div",{children:(0,n.jsx)(R.Z,{size:26})}),(0,n.jsx)("div",{children:(0,n.jsxs)("strong",{children:[m("makeLoginOrSignup0"),(0,n.jsx)("br",{}),m("makeLoginOrSignup1")]})})]})})}),Y=l(97975),J=l(17354),V=l(73549);l(51762);var q=l(40054),G=l(12908),$=l.n(G),X=(0,u.$j)(e=>({cart:e.cart}),null)(function(e){var t,l,i,a;let{initialProps:r,cart:c}=e,{dental:d,themeSettings:u}=r||{},m=(0,s.useRouter)(),h=(0,q.qd)(null==d?void 0:null===(t=d.countryRules)||void 0===t?void 0:t.currency),[v,g]=(0,o.useState)((0,q.xG)(0,h));return((0,o.useEffect)(()=>{var e;let t=null===(e=c[null==d?void 0:d.id])||void 0===e?void 0:e.price;g((0,q.xG)(t||0,h))},[c,null==d?void 0:d.id,h]),(null==u?void 0:null===(l=u.components)||void 0===l?void 0:l.cartWidget)==="styled")?(0,n.jsxs)("div",{className:$().styledCart,onClick:()=>m.push((0,U.route)("cart")),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:(0,n.jsx)("path",{d:"M1.75011 2.58984H4.58605C4.61284 2.58984 4.63561 2.60236 4.66167 2.6051C4.71605 2.61066 4.7669 2.61969 4.81786 2.63666C4.86052 2.65076 4.89904 2.66815 4.93792 2.68927C4.98265 2.71362 5.023 2.74005 5.062 2.77295C5.09789 2.8031 5.12835 2.83521 5.15801 2.8714C5.18859 2.90869 5.21471 2.94666 5.2379 2.98987C5.26189 3.03424 5.27874 3.07977 5.29345 3.12897C5.30144 3.15564 5.31871 3.17706 5.32384 3.20508L5.75335 5.55243L24.107 6.625C24.1774 6.62012 24.2394 6.63037 24.318 6.6377C24.7257 6.6748 25.0284 7.03223 24.9982 7.44043C24.9957 7.47119 24.9918 7.50098 24.986 7.53027L23.7071 14.5049C23.4147 15.5864 22.5138 16.6782 21.1588 16.6782H7.78923L8.07549 18.2427H19.3253C20.7496 18.2427 21.9088 19.4019 21.9088 20.8262C21.9088 22.251 20.7496 23.4102 19.3253 23.4102C17.901 23.4102 16.7418 22.251 16.7418 20.8262C16.7418 20.438 16.834 20.0733 16.9881 19.7427H10.08C10.2341 20.0733 10.3263 20.438 10.3263 20.8262C10.3263 22.251 9.1671 23.4102 7.74279 23.4102C6.31847 23.4102 5.15929 22.251 5.15929 20.8262C5.15929 19.8134 5.75072 18.9437 6.60143 18.5204L3.96087 4.08984H1.75011C1.33605 4.08984 1.00011 3.75391 1.00011 3.33984C1.00011 2.92578 1.33605 2.58984 1.75011 2.58984ZM6.97802 12.2448L10.1562 12.2947L9.98314 10.4528L6.6317 10.3524L6.97802 12.2448ZM22.8558 10.8387L19.6799 10.7435L19.4721 12.441L22.5536 12.4894L22.8558 10.8387ZM18.6766 10.7134L15.1857 10.6088V12.3737L18.467 12.4252L18.6766 10.7134ZM15.1857 9.60791L18.7986 9.71625L19.0295 7.83087L15.1857 7.60614V9.60791ZM14.1857 7.54767L10.6954 7.34357L10.8961 9.47931L14.1857 9.57794V7.54767ZM15.1857 13.3739V15.1782H18.1299L18.3448 13.4235L15.1857 13.3739ZM14.1857 13.3582L11.2563 13.3123L11.4316 15.1782H14.1857V13.3582ZM14.1857 12.358V10.5789L10.9904 10.483L11.1622 12.3105L14.1857 12.358ZM6.44756 9.34595L9.88884 9.4491L9.68548 7.28455L6.03124 7.07086L6.44756 9.34595ZM20.0293 7.88934L19.802 9.74628L23.0381 9.84332C23.1745 9.10248 23.2831 8.52673 23.3756 8.08496L20.0293 7.88934ZM22.2452 14.1743L22.3711 13.4868L19.3498 13.4393L19.137 15.1782H21.1588C21.8014 15.1782 22.1593 14.4819 22.2452 14.1743ZM10.4272 15.1782L10.2504 13.2964L7.16155 13.2479L7.51476 15.1782H10.4272V15.1782ZM18.2418 20.8262C18.2418 21.4238 18.7277 21.9102 19.3253 21.9102C19.923 21.9102 20.4088 21.4238 20.4088 20.8262C20.4088 20.2285 19.923 19.7427 19.3253 19.7427C18.7277 19.7427 18.2418 20.2285 18.2418 20.8262ZM7.74279 21.9102C8.34044 21.9102 8.82628 21.4238 8.82628 20.8262C8.82628 20.2285 8.34044 19.7427 7.74279 19.7427C7.14513 19.7427 6.65929 20.2285 6.65929 20.8262C6.65929 21.4238 7.14513 21.9102 7.74279 21.9102Z"})}),(0,n.jsx)("span",{children:(null===(a=c[null==d?void 0:d.id])||void 0===a?void 0:a.total)||0})]}),(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Carrinho"}),(0,n.jsx)("br",{}),v]})]}):(0,n.jsxs)(Y.Z,{className:"".concat($().cartWidget," position-relative btn-icon"),size:"lg",onClick:()=>
1m.push((0,U.route)("cart")),children:[(0,n.jsx)(V.Z,{size:20}),(0,n.jsx)(J.Z,{pill:!0,color:"success",className:"badge-up",children:null===(i=c[null==d?void 0:d.id])||void 0===i?void 0:i.total})]})}),K=l(70506),ee=l(37696),et=l.n(ee),el=function(){let[e,t]=(0,o.useState)(!1),[l,i]=(0,o.useState)(!1),{lead:a}=(0,s.useRouter)().query;return(0,o.useEffect)(()=>{a&&i(!0)},[a]),(0,o.useEffect)(()=>{let e=JSON.parse(window.localStorage.getItem("leadCapture"));t(null==e||!e.leadWasCaptured)},[l]),(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)("div",{className:et().secondary,children:(0,n.jsx)("img",{onClick:function(){return i(!0)},src:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/dental-shopee/banners/presentes-lancamento-mini.png"})}),(0,n.jsx)(K.Z,{from:"secondaryBanner",isOpen:l,handleToggle:()=>i(!1)})]})},en=l(97714),eo=l(12589);let ei=e=>{if(e)return window.localStorage.setItem("sessionAddress",JSON.stringify(e.address)),t=>{t({type:"CHANGE_SESSION_ADDRESS",isLoaded:!0,data:e})}};var ea=l(69283),es=l(48884),er=l.n(es),ec=l(76627),ed=l.n(ec),eu=l(45046),em=l(10684),eh=l(10267),ev=l(51252),eg=l(15538),ep=l(70474),ex=l(12581),ej=l.n(ex),ef=(0,u.$j)(null,{setSessionAddress:ei})(function(e){let{setSessionAddress:t,isOpen:l,data:i,toggle:a}=e,[s,r]=(0,o.useState)({cep:""}),[c,d]=(0,o.useState)({cep:""}),[u,m]=(0,o.useState)({cep:""}),[h,v]=(0,o.useState)(!1),[g,p]=(0,o.useState)(null),{t:x}=(0,I.$G)("common");return(0,o.useEffect)(()=>s.cep?(t({address:s}),v(!1),a()):v(!1),[s]),(0,n.jsx)(eu.Z,{isOpen:l,toggle:a,className:"".concat(ej().modal," modal-dialog-centered modal-lg"),children:(0,n.jsxs)(em.Z,{className:ej().body,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("img",{width:"128",src:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/marketplace/endereco.png",alt:""}),(0,n.jsx)("h1",{className:"mb-50",children:"Onde voc\xea quer receber seu pedido?"}),(null==i?void 0:i.triedAddOnCart)&&(0,n.jsx)("p",{className:"mb-50",children:"Para acessar produtos e ofertas da sua regi\xe3o precisamos do seu endere\xe7o de entrega."})]}),(0,n.jsx)(eh.Z,{children:(0,n.jsx)(ev.Z,{xs:12,lg:{size:5},children:(0,n.jsxs)(eg.Z,{className:"mt-1",onSubmit:function(e){var t;e.preventDefault();let l=null===(t=c.cep)||void 0===t?void 0:t.split("-").join("").split("_").join("");return(null==l?void 0:l.length)!==8?(g.blur(),g.focus(),v(!1),m({...u,cep:x("invalidZipCode")})):(v(!0),r({...s,cep:c.cep}))},children:[(0,n.jsxs)("div",{className:"mb-50",children:[(0,n.jsxs)(y.Z,{className:"w-100",size:"lg",children:[(0,n.jsx)(C.Z,{for:"cep",className:"text-center d-block mb-25",children:"Informe o seu CEP:"}),(0,n.jsx)(ed(),{inputRef:e=>p(e),placeholder:"Digite seu CEP",className:"form-control",type:"tel",autoComplete:"off",mask:"99999-999",value:c.cep,onChange:e=>d({...c,cep:e.target.value})})]}),u.cep&&(0,n.jsx)(ep.Z,{className:"d-block text-center",children:u.cep}),(0,n.jsx)(Y.Z,{className:"w-100 mt-50",type:"submit",color:"success",children:x("actionContinue")})]}),(0,n.jsx)("div",{className:"d-flex justify-content-center",children:(0,n.jsx)("a",{style:{textDecoration:"underline"},className:"mt-25 text-success font-small-3",href:"https://buscacepinter.correios.com.br/app/localidade_logradouro/index.php",title:"N\xe3o sabe o seu CEP? Procure aqui.",target:"_blank",children:"N\xe3o sabe o seu CEP? Procure aqui."})})]})})}),h&&(0,n.jsx)("div",{className:"d-flex justify-content-center mt-1",children:(0,n.jsx)(N.Z,{color:"success"})})]})})}),ey=l(98595),eM=l(64856),eN=(0,u.$j)(e=>({sessionAddress:e.sessionAddress}),{setSessionAddress:ei})(function(e){var t,l,i;let{initialProps:a,setSessionAddress:r,sessionAddress:c}=e,[d,u]=(0,o.useState)([]),[m,h]=(0,o.useState)(!1),{dental:v}=a||{},g=(0,s.useRouter)(),{initialCep:p,initialCity:x,initialUF:j}=g.query;return(0,o.useEffect)(()=>{var e;if(!c.isLoaded)return;let t=null==c?void 0:null===(e=c.address)||void 0===e?void 0:e.cep;if(!t)return h(!0);u([t].filter(e=>e).join(" - "))},[c]),(0,o.useEffect)(()=>{(null==c?void 0:c.isLoaded)&&(null==v?void 0:v.id)&&e();async function e(){try{let e=await (0,ea.v)("".concat(eo.Y,"/isNecessaryToRedirect"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({address:c.address,sellerId:v.id})});if((e=await e.json()).isNecessaryToRedirect)return window.location.href=e.urlToRedirect}catch(e){console.log(e)}}},[c]),(0,o.useEffect)(()=>{(null==v?void 0:v.id)&&(null==v?void 0:v.isRedirectableBetweenSellers)&&(null==c||!c.isLoaded)&&g.isReady&&function(){try{let e=function(){var e;if(p)return{cep:p,...x&&{city:x},...j&&{uf:j}};let t=null!==(e=window.localStorage.getItem("sessionAddress"))&&void 0!==e&&e;return t?JSON.parse(t):(h(!0),!1)}();if(!e)return h(!0);r({address:e})}catch(e){console.log(e)}}()},[v,c,g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(er().addressToolbar),children:(0,n.jsxs)(ey.Z,{children:[(0,n.jsx)(eM.Z,{size:20}),(0,n.jsxs)("div",{className:er().text,children:[(0,n.jsx)("span",{children:"Entregar em:"}),!c.isLoaded&&(0,n.jsx)("strong",{children:"Carregando..."}),c.isLoaded&&(0,n.jsx)("strong",{children:d}),c.isLoaded&&!(null==c?void 0:null===(t=c.address)||void 0===t?void 0:t.cep)&&(0,n.jsx)("span",{children:"Sem endere\xe7o"})]}),c.isLoaded&&(0,n.jsxs)("div",{className:er().globalPopover,children:[!(null==c?void 0:null===(l=c.address)||void 0===l?void 0:l.cep)&&(0,n.jsx)(Y.Z,{color:"success",size:"sm",onClick:()=>h(!0),children:(0,n.jsx)("strong",{children:"Informar endere\xe7o"})}),(null==c?void 0:null===(i=c.address)||void 0===i?void 0:i.cep)&&(0,n.jsx)(Y.Z,{color:"secondary",outline:!0,size:"sm",onClick:()=>h(!0),children:"Alterar"})]})]})}),null!==m?(0,n.jsx)(ef,{isOpen:!0===m,toggle:()=>h(!1),data:m}):""]})}),eC=l(5488),ew=l(30649),e_=l.n(ew),eb=l(32701),eS=l(97985),eI=function(e){let{text:t,isOpen:l,handleToggle:o}=e;return console.log(t),(0,n.jsxs)(eu.Z,{isOpen:l,toggle:o,className:"modal-dialog-centered",children:[(0,n.jsx)(eb.Z,{toggle:o,children:"Importante!"}),(0,n.jsx)(em.Z,{children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})}),(0,n.jsx)(eS.Z,{children:(0,n.jsx)(Y.Z,{color:"success",onClick:function(){return window.localStorage.setItem("modalInfo",!0),o(!1)},children:"De acordo"})})]})},eD=function(e){var t,l;let{initialProps:i}=e,[a,r]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),m=(0,s.useRouter)(),{popupBanners:h}=i||{};function v(){try{let e=JSON.parse(window.localStorage.getItem(null==h?void 0:h.cookieReference));(null==h?void 0:h.timeToShowAgain)?window.localStorage.setItem(null==h?void 0:h.cookieReference,JSON.stringify({...e,timeWasClosed:new Date})):window.localStorage.setItem(null==h?void 0:h.cookieReference,JSON.stringify({...e,modalWasClosed:!0}))}finally{r(!1)}}return((0,o.useEffect)(()=>{let e=!1;try{if(null==h?void 0:h.timeToShowAgain){let t=JSON.parse(window.localStorage.getItem(h.cookieReference)).timeWasClosed,l=new Date(t);l.setHours(l.getHours()+h.timeToShowAgain),e=new Date>l}else{var t;e=!(null===(t=JSON.parse(window.localStorage.getItem(h.cookieReference)))||void 0===t?void 0:t.modalWasClosed)}}catch(t){console.log(t),e=!0}finally{r(!!e)}},[]),(0,o.useEffect)(()=>{var e,t,l,n;!(!(null==h?void 0:h.active)||!(null==h?void 0:null===(e=h.items)||void 0===e?void 0:e.length)||(null==h?void 0:null===(t=h.items[0])||void 0===t?void 0:t.link)&&(null==m?void 0:null===(n=m.asPath)||void 0===n?void 0:n.includes(null==h?void 0:null===(l=h.items[0])||void 0===l?void 0:l.link)))?u(!0):u(!1)},[h,m]),d)?(0,n.jsxs)(eu.Z,{isOpen:a,toggle:v,className:"modal-dialog-centered",children:[(0,n.jsx)(eb.Z,{toggle:v}),(0,n.jsx)(em.Z,{children:(null==h?void 0:null===(t=h.items[0])||void 0===t?void 0:t.link)?(0,n.jsx)(c(),{legacyBehavior:!0,href:null==h?void 0:null===(l=h.items[0])||void 0===l?void 0:l.link,title:null==h?void 0:h.items[0].title,children:(0,n.jsx)("img",{style:{width:"100%",maxWidth:"max-content-width",cursor:"pointer"},src:null==h?void 0:h.items[0].src,alt:null==h?void 0:h.items[0].title})}):(0,n.jsx)("img",{style:{width:"100%",maxWidth:"max-content-width"},src:null==h?void 0:h.items[0].src,alt:null==h?void 0:h.items[0].title})})]}):(0,n.jsx)("div",{})},eL=l(52278);function eT(e){let{dental:t,formattedWhats:l}=e,{social:o}=null!=t?t:{},{t:i}=(0,I.$G)("common"),a=(0,Z.Z)({dental:t,formattedWhats:l});return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:e_().title,children:(0,n.jsxs)("strong",{children:[(0,n.jsx)("span",{children:i("followInSocialMedia0")})," ",i("followInSocialMedia1")]})}),(0,n.jsxs)("ul",{className:e_().social,children:[(null==t?void 0:t.whats)&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{className:"trigger-gtm-whats",href:a,title:"WhatsApp ".concat(null==t?void 0:t.name),target:"_blank",onClick:e=>(0,P.Ec)(e,{href:a,dental:t}),children:(0,n.jsx)("svg",{height:"56.6934px",version:"1.1",viewBox:"0 0 56.6934 56.6934",width:"56.6934px",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M29.7518,16.1734c-6.7766,0-12.2879,5.5108-12.2905,12.2844c-0.001,2.3214,0.6486,4.5821,1.8783,6.5381l0.2922,0.4648 l-1.2411,4.5334l4.6498-1.2197l0.4485,0.2662c1.8863,1.1193,4.0485,1.7116,6.2529,1.7125h0.005 c6.7715,0,12.2826-5.5113,12.2853-12.2855c0.0013-3.2826-1.2754-6.3693-3.5948-8.6915
1C36.1179,17.4541,33.0332,16.1744,29.7518,16.1734z M36.9781,33.7399c-0.3077,0.8626-1.7833,1.65-2.4929,1.756 c-0.6364,0.0952-1.4415,0.1348-2.3262-0.1463c-0.5364-0.1702-1.2243-0.3975-2.1055-0.778 c-3.7049-1.5998-6.1246-5.3301-6.3092-5.5767c-0.1846-0.2464-1.5081-2.0026-1.5081-3.8206c0-1.8177,0.9542-2.7113,1.2927-3.0811 c0.3384-0.3696,0.7386-0.4621,0.9848-0.4621c0.2462,0,0.4927,0.0023,0.7078,0.013c0.2267,0.0115,0.5312-0.0861,0.8311,0.634 c0.3077,0.7396,1.0463,2.5575,1.1387,2.7424c0.0924,0.1848,0.1539,0.4005,0.0308,0.647c-0.1231,0.2463-0.1846,0.4005-0.3693,0.6161 c-0.1846,0.2157-0.3879,0.4815-0.554,0.647c-0.1849,0.1842-0.3774,0.3841-0.162,0.7537c0.2155,0.3699,0.9567,1.5792,2.0547,2.5586 c1.4106,1.2582,2.6007,1.6482,2.97,1.8331c0.3693,0.185,0.5848,0.1539,0.8002-0.0924c0.2155-0.2465,0.9233-1.0785,1.1695-1.4482 c0.2462-0.3696,0.4924-0.308,0.8309-0.1848c0.3385,0.1234,2.1544,1.0167,2.5237,1.2015c0.3693,0.1849,0.6155,0.2774,0.7078,0.4315 C37.2859,32.1375,37.2859,32.877,36.9781,33.7399z"}),(0,n.jsx)("path",{d:"M29.2066,4.3736c-13.5996,0-24.625,11.0234-24.625,24.623s11.0254,24.625,24.625,24.625 c13.5986,0,24.624-11.0254,24.624-24.625S42.8052,4.3736,29.2066,4.3736z M29.747,43.2496 C29.7465,43.2496,29.7473,43.2496,29.747,43.2496h-0.0061c-2.4738-0.0009-4.9047-0.6216-7.0635-1.7991l-7.8357,2.0554l2.097-7.6594 c-1.2935-2.2416-1.9741-4.7843-1.973-7.3895c0.0032-8.1496,6.6341-14.78,14.7812-14.78c3.954,0.0016,7.6653,1.5409,10.4559,4.3348 c2.7907,2.7938,4.3268,6.5074,4.3253,10.457C44.5246,36.6185,37.8933,43.2496,29.747,43.2496z"})]})})})}),o.instagram&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.instagram,title:"Instagram ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",height:"56.7px",id:"Layer_1",enableBackground:"enable-background:new 0 0 56.7 56.7",version:"1.1",viewBox:"0 0 56.7 56.7",width:"56.7px",xmlSpace:"preserve",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("circle",{cx:"28.1",cy:"30",r:"4.4"}),(0,n.jsx)("path",{d:"M33.6,19.2h-11c-1.6,0-3,0.5-3.9,1.4c-0.9,0.9-1.4,2.3-1.4,3.9v11c0,1.6,0.5,3,1.5,4c1,0.9,2.3,1.4,3.9,1.4h10.9 c1.6,0,3-0.5,3.9-1.4c1-0.9,1.5-2.3,1.5-3.9v-11c0-1.6-0.5-2.9-1.4-3.9C36.6,19.7,35.3,19.2,33.6,19.2z M28.1,36.8 c-3.8,0-6.8-3.1-6.8-6.8c0-3.8,3.1-6.8,6.8-6.8S35,26.2,35,30C35,33.8,31.9,36.8,28.1,36.8z M35.2,24.5c-0.9,0-1.6-0.7-1.6-1.6 s0.7-1.6,1.6-1.6s1.6,0.7,1.6,1.6S36.1,24.5,35.2,24.5z"}),(0,n.jsx)("path",{d:"M28.3,5.2c-13.6,0-24.6,11-24.6,24.6c0,13.6,11,24.6,24.6,24.6c13.6,0,24.6-11,24.6-24.6C53,16.2,41.9,5.2,28.3,5.2z M41.4,35.6c0,2.3-0.8,4.3-2.2,5.7c-1.4,1.4-3.4,2.1-5.6,2.1H22.7c-2.2,0-4.2-0.7-5.6-2.1c-1.5-1.4-2.2-3.4-2.2-5.7v-11 c0-4.6,3.1-7.8,7.8-7.8h11c2.3,0,4.2,0.8,5.6,2.2c1.4,1.4,2.1,3.3,2.1,5.6V35.6z"})]})})})}),o.youtube&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.youtube,title:"Youtube ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsx)("svg",{height:"56.7px",width:"56.7px",version:"1.1",id:"Layer_1",viewBox:"0 0 56.7 56.7",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("polygon",{points:"24,20.5 24,36.2 35.7,28.35"}),(0,n.jsx)("path",{d:"M28.35,2.83c-14.1,0-25.52,11.42-25.52,25.52s11.42,25.52,25.52,25.52s25.52-11.42,25.52-25.52S42.45,2.83,28.35,2.83z M42.5,33.8c0,2.2-1.8,4-4,4H18.2c-2.2,0-4-1.8-4-4v-10.9c0-2.2,1.8-4,4-4h20.3c2.2,0,4,1.8,4,4V33.8z"})]})})})}),o.facebook&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.facebook,title:"Facebook ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 56.693 56.693",height:"56.693px",id:"Layer_1",version:"1.1",viewBox:"0 0 56.693 56.693",width:"56.693px",xmlSpace:"preserve",children:(0,n.jsx)("path",{d:"M28.347,5.157c-13.6,0-24.625,11.027-24.625,24.625c0,13.6,11.025,24.623,24.625,24.623c13.6,0,24.625-11.023,24.625-24.623 C52.972,16.184,41.946,5.157,28.347,5.157z M34.864,29.679h-4.264c0,6.814,0,15.207,0,15.207h-6.32c0,0,0-8.307,0-15.207h-3.006 V24.31h3.006v-3.479c0-2.49,1.182-6.377,6.379-6.377l4.68,0.018v5.215c0,0-2.846,0-3.398,0c-0.555,0-1.34,0.277-1.34,1.461v3.163 h4.818L34.864,29.679z"})})})}),o.twitter&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.twitter,title:"X ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsxs)("svg",{enableBackgroun
1d:"new 0 0 56.693 56.693",height:"56.693px",id:"Layer_1",version:"1.1",viewBox:"-5 -5 56.693 56.693",width:"56.693px",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,n.jsx)("polygon",{xmlns:"http://www.w3.org/2000/svg",class:"st0",points:"17.8 12.26 13.38 12.26 22.87 24.99 25.32 22.35 17.8 12.26"}),(0,n.jsx)("polygon",{xmlns:"http://www.w3.org/2000/svg",class:"st0",points:"24.1 26.64 32.42 37.79 36.84 37.79 26.55 24 24.1 26.64"}),(0,n.jsx)("path",{d:"M25,0C11.19,0,0,11.19,0,25s11.19,25,25,25,25-11.19,25-25S38.81,0,25,0ZM38.54,39.84h-7.11l-8.72-11.69-10.84,11.69h-2.76l12.37-13.34L9.29,10.17h1.77s7.59,0,7.59,0h0s.12,0,.12,0l7.96,10.67,9.89-10.67h2.76l-11.42,12.32,12.94,17.35h-2.36Z"})]})})}),o.tiktok&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.tiktok,title:"TikTok ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsx)("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M24.715 3C12.7221 3 3 12.7221 3 24.715C3 36.7079 12.7221 46.43 24.715 46.43C36.7079 46.43 46.43 36.7079 46.43 24.715C46.43 12.7221 36.7079 3 24.715 3ZM35.7099 22.7116C33.4041 22.7116 31.1605 21.9633 29.4329 20.697L29.4192 29.3067C29.4178 30.902 28.9298 32.459 28.0205 33.7698C27.1112 35.0806 25.8238 36.0829 24.33 36.643C22.8362 37.2031 21.2071 37.2943 19.6602 36.9045C18.1132 36.5147 16.7219 35.6623 15.672 34.4612C14.622 33.2601 13.9633 31.7673 13.7838 30.1821C13.6043 28.5969 13.9125 26.9947 14.6673 25.5892C15.422 24.1837 16.5875 23.0418 18.0081 22.316C19.4287 21.5901 21.0369 21.3147 22.6181 21.5265V25.7546C21.8723 25.5343 21.0759 25.5543 20.3421 25.812C19.6083 26.0697 18.9742 26.5518 18.5298 27.1901C18.0854 27.8284 17.8533 28.5904 17.8663 29.3681C17.8793 30.1457 18.1369 30.8995 18.6024 31.5225C19.0679 32.1456 19.7178 32.6063 20.4598 32.8392C21.2018 33.0722 21.9984 33.0656 22.7365 32.8203C23.4746 32.5751 24.1167 32.1038 24.5718 31.4731C25.027 30.8424 25.272 30.0845 25.2721 29.3067V12.2741H29.6215C29.6215 13.0736 29.779 13.8653 30.0849 14.6039C30.3909 15.3426 30.8393 16.0137 31.4047 16.579C31.97 17.1444 32.6412 17.5928 33.3798 17.8988C34.1185 18.2047 34.9102 18.3622 35.7097 18.3622L35.7099 22.7116Z"})})})}),o.linkedin&&(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:o.linkedin,title:"LinkedIn ".concat(null==t?void 0:t.name),target:"_blank",children:(0,n.jsx)("svg",{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M36.9022 34.9478V26.4703C36.9022 21.9282 34.4773 19.8146 31.2447 19.8146C28.636 19.8146 27.467 21.25 26.8156 22.2569V20.1621H21.9007C21.9659 21.5497 21.9007 34.9478 21.9007 34.9478H26.8156V26.6903C26.8156 26.2495 26.8474 25.808 26.9777 25.4924C27.3324 24.6093 28.1409 23.6951 29.4981 23.6951C31.2773 23.6951 31.9881 25.0509 31.9881 27.0378V34.9486H36.9022V34.9478ZM16.7232 18.144C18.4365 18.144 19.5041 17.0076 19.5041 15.5882C19.4723 14.1383 18.4365 13.0345 16.7557 13.0345C15.075 13.0345 13.9755 14.1376 13.9755 15.5882C13.9755 17.0076 15.0424 18.144 16.692 18.144H16.7232ZM24.715 46.43C12.7225 46.43 3 36.7075 3 24.715C3 12.7218 12.7225 3 24.715 3C36.7075 3 46.43 12.7218 46.43 24.715C46.43 36.7075 36.7075 46.43 24.715 46.43ZM19.1806 34.9478V20.1621H14.2665V34.9478H19.1806Z"})})})})]})]})}var ek=l(60329),eE=l(22774),eA=l(90791);function eO(e){let{dental:t,formattedWhats:l}=e,{t:o}=(0,I.$G)("common"),i=(0,Z.Z)({dental:t,formattedWhats:l});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("ul",{className:e_().phones,children:[(null==t?void 0:t.whats)&&(0,n.jsx)("li",{children:(0,n.jsxs)("a",{className:"trigger-gtm-whats",href:i,title:"WhatsApp",target:"_blank",onClick:e=>(0,P.Ec)(e,{href:i,dental:t}),children:[(0,n.jsx)("svg",{className:e_().svgWhats,width:"50",height:"50",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"#82868B"})}),(0,n.jsxs)("span",{children:[o("callOnWhatsApp")," ",(0,n.jsx)("strong",{children:"WhatsApp"})," ",(0,n.jsx)("span",{children:null==t?void 0:t.whats})]})]})}),(null==t?void 0:t.tel)&&(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:"tel:".concat(null==t?void 0:t.tel),title:"Atendimento",target:"_blank",children:[(0,n.jsx)(ek.Z,{size:50}),(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:o("customerService")})," ",(0,n.jsx)("span",{children:null==t?void 0:t.tel})]})]})})]}),(0,n.jsxs)("ul",{className:e_().others,children:[(null==t?void 0:t.email)&&(0,n.jsxs)("li",{children:[(0,n.jsx)(eE.Z,{size:20}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.email}})]}),(null==t?void 0:t.address)&&(0,n.jsxs)("li",{children:[(0,n.jsx)(eM.Z,{size:20}),(0,n.jsx)("address",{children:null==t?void 0:t.address})]}),(null==t?void 0:t.hours)&&(0,n.jsxs)("li",{children:[(0,n.jsx)("div",{children:(0,n.jsx)(eA.Z,{size:20})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("strong",{children:[o("openingHours"),":"]}),(0,n.jsx)("address",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.hours}})]})]})]})]})}function ez(e){var t,l;let{paymentMethods:o,themeSettings:i}=e,a=["aura","jcb","hiper","discover"],s="A6AzXXIB6Q6Yqa5lBlhE"===S.fixId,r=function(){var e,t,l;if(!(null==o?void 0:null===(e=o.creditCardFlags)||void 0===e?void 0:e.length))return[];let n=null==o?void 0:null===(t=o.methods)||void 0===t?void 0:t.some(e=>"bankSlip"===e.id),i=(null==o?void 0:null===(l=o.methods)||void 0===l?void 0:l.some(e=>"pix"===e.id))&&(null===S.nationalities||void 0===S.nationalities?void 0:S.nationalities.includes("br"));return[...null==o?void 0:o.creditCardFlags,...n?[{id:"bankSlip",src:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/payment/fenix-boleto.svg",label:"Boleto"}]:[],...i?[{id:"pix",src:"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/payment/pix.svg",label:"Pix"}]:[]]}(),{t:c}=(0,I.$G)("common");return(0,n.jsx)(n.Fragment,{children:Object.keys(o||{}).length>0&&(0,n.jsxs)("div",{children:[r&&(null==r?void 0:r.length)>0&&(0,n.jsx)("ul",{className:"".concat(e_().flags," ").concat(e_()[null==i?void 0:null===(t=i.components)||void 0===t?void 0:t.footerFlags]),children:r.map(e=>s&&a.includes(e.id)?"":(0,n.jsx)("li",{children:(0,n.jsx)("img",{src:e.src,alt:e.label})},e.id))}),o.methods&&(null===(l=o.methods)||void 0===l?void 0:l.length)>0&&(0,n.jsx)("ul",{className:e_().methods,children:o.methods.map((e,t)=>(0,n.jsxs)("li",{children:[(0,n.jsx)("strong",{className:"mr-50",children:c("paymentMethod_".concat(e.id))}),e.description&&(0,n.jsxs)(n.Fragment,{children:["-",(0,n.jsx)("span",{className:"ml-50",children:e.description})]})]},e.id))}),o.psPayment&&(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:o.psPayment},className:"mt-2"})]})})}function eZ(e){let{dental:t}=e,l=(null==t?void 0:t.id)==="7PhdaDMCZ5BDdkTIcE8Y",o=(null==t?void 0:t.id)==="YGyiWgDDbu9ZQ6nTWxgF",{t:i}=(0,I.$G)("common"),a=(null==t?void 0:t.id)==="eJ1ff8kZxzhM96hxpLDU",s=(null==t?void 0:t.id)==="eJ9Eql8YtZ8F6YjUK2TJ";return l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Ficou com alguma d\xfavida?"})," Fale com nosso time"]}),(0,n.jsx)(c(),{legacyBehavior:!0,href:"/conteudo/atendimento-por-whatsapp",className:"btn",children:(0,n.jsx)("a",{className:"btn",title:"Clique Aqui",children:"Clique Aqui"})})]}):o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Not\xedcias da Odonto?"})," Cadastre-se em nossa newsletter gowhite"]}
1),(0,n.jsx)(c(),{legacyBehavior:!0,href:(0,U.route)("contact"),className:"btn",children:(0,n.jsx)("a",{className:"btn",title:"Clique Aqui",children:"Clique Aqui"})})]}):a||s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"D\xfavidas, sugest\xf5es ou reclama\xe7\xf5es?"})," Envie sua mensagem aqui!"]}),(0,n.jsx)(c(),{legacyBehavior:!0,href:(0,U.route)("contact"),className:"btn",children:(0,n.jsx)("a",{className:"btn",title:"Clique Aqui",children:"Clique Aqui"})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:i("suggestProducts0")})," ",i("suggestProducts1")," ",null==t?void 0:t.name]}),(0,n.jsx)(c(),{legacyBehavior:!0,href:(0,U.route)("contact"),className:"btn",children:(0,n.jsx)("a",{className:"btn",title:"Sugerir produtos",children:i("actionSuggestProducts")})})]})}var eP=l(4298),eF=l.n(eP),eR=function(e){let{sellerId:t}=e,l="vrmZYMCJnFgi4xTeSGKP"===t,[i,a]=(0,o.useState)(!1);function s(){a(!1),window.localStorage.setItem("modalAtendareFormWasClosed",!0)}return((0,o.useEffect)(()=>{l&&a(!window.localStorage.getItem("modalAtendareFormWasClosed"))},[l]),l&&i)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eF(),{type:"text/javascript",src:"https://landing.dentalpaulista.com.br/js/v1/form/x0gFKEdXIGuRIrCc7BEiVbxP09FeX0y0xYCTQw3BNVjyxKnbQohq8Uux5OrjARpeAuY53Srp9HbMFHqTGEc7g13FBS45y1cBWDnL.js"}),(0,n.jsxs)(eu.Z,{isOpen:i,toggle:s,className:"modal-dialog-centered",children:[(0,n.jsx)(eb.Z,{toggle:s,children:"Fique por dentro das novidades!"}),(0,n.jsxs)(em.Z,{children:[(0,n.jsx)("p",{className:"font-small-2",children:"Receba em primeira m\xe3o lan\xe7amentos, ofertas exclusivas e conte\xfados pensados para quem vive o dia a dia do laborat\xf3rio prot\xe9tico."}),(0,n.jsx)("p",{className:"font-small-2",children:"Preencha seus dados e acompanhe tudo com a qualidade da Dental Paulista."}),(0,n.jsx)("div",{role:"main","data-atendare-form":"61da64c8_c291_4aff_bd2f_a2d973c51669"})]})]})]}):(0,n.jsx)(n.Fragment,{})},eW=l(25675),eB=l.n(eW),eH=l(36895),eU=(0,u.$j)(e=>({showFooterWidgets:e.showFooterWidgets}),null)(function(e){var t,l,i;let{initialProps:a,showFooterWidgets:s}=e,[r,d]=(0,o.useState)(!1),{dental:u,footerMenu:m,paymentMethods:h,themeSettings:v}=a||{},g=(0,eH.Z)(null==u?void 0:u.whats,null==u?void 0:null===(l=u.countryRules)||void 0===l?void 0:null===(t=l.phone)||void 0===t?void 0:t.countryCodePrefix);return(0,o.useEffect)(()=>{d(!JSON.parse(window.localStorage.getItem("modalInfo")))},[]),(0,n.jsxs)("footer",{className:e_().footer,id:"footer",children:[(0,n.jsxs)("div",{className:"".concat(e_().primary," mt-2"),children:[(0,n.jsx)("div",{className:e_().suggestion,children:(0,n.jsx)(ey.Z,{children:(0,n.jsx)(eZ,{dental:u})})}),(0,n.jsx)(ey.Z,{className:"py-3",children:(0,n.jsxs)(eh.Z,{children:[(0,n.jsxs)(ev.Z,{md:4,lg:3,children:[(0,n.jsx)(c(),{legacyBehavior:!0,href:"/",children:(0,n.jsx)("img",{className:e_().logo,src:null==u?void 0:null===(i=u.logo)||void 0===i?void 0:i.src,alt:null==u?void 0:u.name})}),(null==m?void 0:m.length)>0&&(0,n.jsx)("ul",{className:e_().menu,children:null==m?void 0:m.map((e,t)=>(0,n.jsxs)("li",{children:[(0,n.jsx)("p",{className:e_().title,children:(0,n.jsx)("strong",{children:null==e?void 0:e.title})}),(0,n.jsx)("ul",{children:null==e?void 0:e.items.map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:e.url,title:e.label,target:"newTab"===e.target?"_blank":"",children:e.label})},t))})]},t))})]}),(0,n.jsxs)(ev.Z,{md:8,lg:5,className:e_().colContent,children:[(null==u?void 0:u.social)&&(0,n.jsx)(eT,{dental:u,formattedWhats:g}),(0,n.jsx)(eO,{dental:u,formattedWhats:g})]}),(0,n.jsxs)(ev.Z,{lg:4,className:e_().colContent,children:[(0,n.jsx)(ez,{paymentMethods:h,themeSettings:v}),"eBydqSB3gHM7324qt8ak"===u.id&&(0,n.jsx)(c(),{href:"/libro-de-reclamaciones",children:(0,n.jsx)(eB(),{src:"https://firebasestorage.googleapis.com/v0/b/catalogo-mais-odonto.appspot.com/o/efident%2Flibro-recl-logo.png?alt=media&token=d6f55333-62a3-4bac-a6e3-14eb6b108610",width:140,height:80,className:"my-2"})})]})]})})]}),(0,n.jsxs)("div",{className:"".concat(e_().secondary," py-1"),children:[(0,n.jsx)(ey.Z,{children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:'\n <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 20px;">\n '.concat("string"==typeof(null==u?void 0:u.psFooterSelos)?u.psFooterSelos.replace(/^<div>([\s\S]*)<\/div>$/,"$1"):"",'\n <a title="Site seguro SLL certificado" href="https://transparencyreport.google.com/safe-browsing/search?url=').concat("string"==typeof(null==u?void 0:u.url)&&(null==u?void 0:u.url.trim())!==""?null==u?void 0:u.url.replace(/^https?:\/\//,""):window.location.href,'" target="_blank" rel="noopener">\n <img style="width: 200px;" src="').concat("es"===S.language?"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/selos/selo-site-seguro-google-ES.svg":"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/selos/selo-site-seguro-google.svg",'" alt="Site seguro SLL certificado" />\n </a>\n <a title="Site confi\xe1vel Sou Odonto" href="https://souodonto.com/ecommerce/lojaconfiavel" target="_blank" rel="noopener">\n <img style="width: 200px;" src="').concat("es"===S.language?"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/selos/selo-souodonto-ES.svg":"https://storage.googleapis.com/catalogo-mais-odonto.appspot.com/selos/selo-souodonto.svg",'" alt="Site confi\xe1vel Sou Odonto" />\n </a>\n </div>\n ')}})}),(0,n.jsxs)(ey.Z,{children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.psFooter}}),(0,n.jsx)("div",{className:e_().copyright,children:(0,n.jsxs)("span",{children:["E-commerce produzido por ",(null==u?void 0:u.noCopyright)?"Sou Odonto Ecommerce":(0,n.jsx)("a",{href:"https://souodonto.com/ecommerce",title:"Sou Odonto Ecommerce",target:"_blank",children:"Sou Odonto Ecommerce"}),"."]})})]})]}),(null==u?void 0:u.yourviewsCode)&&(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:'\n <!-- Script Yourviews -->\n (function () {\n var yvs = document.createElement("script");\n yvs.type = "text/javascript";\n yvs.async = true;\n yvs.id = "_yvsrc";\n yvs.src = "//service.yourviews.com.br/script/'.concat(null==u?void 0:u.yourviewsCode,'/yvapi.js";\n var yvs_script = document.getElementsByTagName("script")[0];\n yvs_script.parentNode.insertBefore(yvs, yvs_script);\n })();\n <!-- /Script Yourviews -->\n ')}}),s&&(0,n.jsx)("div",{className:e_().widgets,children:(null==u?void 0:u.showFixedWhatsApp)&&(0,n.jsx)("div",{children:(0,n.jsx)(eL.Z,{initialProps:a})})}),(null==u?void 0:u.hiBotCode)&&(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:null==u?void 0:u.hiBotCode}}),(null==u?void 0:u.modalInfo)&&(0,n.jsx)(eI,{text:null==u?void 0:u.modalInfo,isOpen:r,handleToggle:()=>d(!1)}),(0,n.jsx)(eD,{initialProps:a}),(0,n.jsx)(eR,{sellerId:null==u?void 0:u.id})]})}),eQ=l(90408),eY=l(27434),eJ=l(80628),eV=l(92528),eq=l(40782);l(37677);var eG=l(60043),e$=l(36257),eX=l.n(e$),eK=l(69447),e0=l(24002),e1=l(30172),e2=l(95186),e4=l(7649);l(2843),e1.Z.use([e2.Z,e4.Z]);var e3=function(e){var t;let{data:l}=e,o=(0,s.useRouter)();if(!(null===(t=Object.keys(l||{}))||void 0===t?void 0:t.length))return(0,n.jsx)("div",{});let i=null,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/^\/+/,"")};
1if(l.forEach(e=>{var t;let l=a(o.asPath);(null===(t=e.pages)||void 0===t?void 0:t.some(e=>a(e)===l))&&(i=e.banners[0].banners)}),!i)return(0,n.jsx)("div",{});let r=i.length>=2;return(0,n.jsx)(ey.Z,{className:"py-2",children:(0,n.jsxs)(eK.t,{navigation:{prevEl:".customPrevShowcaseIcon",nextEl:".customNextShowcaseIcon"},spaceBetween:10,slidesPerView:1,loop:r,className:"swiper-container",autoplay:{delay:5e3,disableOnInteraction:!0},children:[i.map((e,t)=>(0,n.jsx)(e0.o,{className:"swiper-slide",children:(0,n.jsx)("a",{href:e.link,target:"sameTab"===e.target?"_self":"_blank",rel:"noopener noreferrer",style:{display:"flex",justifyContent:"center",width:"100%"},children:(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{media:"(max-width: 768px)",srcSet:e.imageMobile}),(0,n.jsx)("img",{src:e.image,alt:e.title,className:"banner-image",style:{width:"100%"}})]})})},t)),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eV.Z,{className:"customNav customPrev customPrevShowcaseIcon",style:{opacity:1}}),(0,n.jsx)(eJ.Z,{className:"customNav customNext customNextShowcaseIcon",style:{opacity:1}})]})]})})},e9=l(28960),e5=l.n(e9),e6=l(31109),e8=l(39397),e7=l(98130);let te=e=>{let{days:t,hours:l,minutes:o,seconds:i,completed:a}=e;return(0,n.jsxs)("span",{children:[t,"D ",l.toString().padStart(2,"0"),":",o.toString().padStart(2,"0"),":",i.toString().padStart(2,"0")]})};var tt=function(e){var t;let{data:l}=e,o=(0,s.useRouter)(),{title:i,alignTitle:a,colorTitle:r,description:c,description2:d,date:u,pages:m}=l;return(null===(t=Object.keys(l||{}))||void 0===t?void 0:t.length)&&(null==m?void 0:m.includes(o.asPath))?(0,n.jsx)(ey.Z,{className:e5().countWidget,children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"".concat(e5().title," ").concat("center"===a?e5().titleInCenter:""),style:{...r&&{color:r}},children:null!=i?i:""}),(0,n.jsxs)("p",{children:[(0,n.jsx)("span",{children:"Termina em:"}),(0,n.jsx)(e7.ZP,{date:u,renderer:te})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("p",{children:[(0,n.jsx)(e6.Z,{}),null!=c?c:""]}),(0,n.jsxs)("p",{children:[(0,n.jsx)(e8.Z,{}),null!=d?d:""]})]})]})}):(0,n.jsx)("div",{})},tl=l(81073),tn=(0,u.$j)(e=>({cart:e.cart}),{setCart:m.RV})(function(e){var t,l,i,r,u,m,v,g,x,j,y,M,N,C,w,_,b,S,D,L,T,E,A,O,z,R,W,B,H,U,J,V,q,G,$,K,ee,et,ei,es,er,ec,ed,eu,em,eh,ev,eg,ep,ex,ej;let{children:ef,setCart:eM,initialProps:ew,hasPageHeading:e_=!1,...eb}=e,{dental:eS,categories:eI,menu:eD,themeSettings:eL,headerMenu:eT,offerCountDown:ek,bannerShowCasePages:eE}=ew||{},{cart:eA}=eb,{data:eO}=(0,h.useSession)(),ez=(0,s.useRouter)(),[eZ,eP]=(0,o.useState)(""),[eR,eW]=(0,o.useState)(!1),[eB,e$]=(0,o.useState)(null),[eK,e0]=(0,o.useState)({}),[e1,e2]=(0,o.useState)([]),[e4,e9]=(0,o.useState)(!1),[e5,e6]=(0,o.useState)(!1),{t:e8,i18n:e7}=(0,I.$G)("common"),te=(0,o.useRef)(null);function tn(e,t){let l=e=>{t(e)};return e4?e5?{onTouchEnd:l}:{onMouseDown:l}:{onMouseEnter:l}}(0,o.useEffect)(()=>{let e=()=>{e9(window.innerWidth<=991)};return e(),e6("ontouchstart"in window||navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,o.useEffect)(()=>{(null==eS?void 0:eS.gaId)&&(gtag("js",new Date),gtag("config",null==eS?void 0:eS.gaId,{allow_enhanced_conversions:!0}))},[eS]),(0,o.useEffect)(()=>{var e,t;if(null==eS||!eS.id||(null==eS?void 0:eS.type)!=="ecommerce"||(null==eO?void 0:null===(e=eO.user)||void 0===e?void 0:e.id)||(null==eS?void 0:eS.allowsCartWithoutLogin)||(window.localStorage.removeItem("cart"),eM({})),!(null==eO?void 0:null===(t=eO.user)||void 0===t?void 0:t.id)||!(null==eS?void 0:eS.id))return;let l=(0,eG.LW)(null==eS?void 0:eS.id);if(!l&&eA.isLoaded&&eM({isLoaded:!1}),!l||!(null==eS?void 0:eS.allowsCartWithoutLogin)||(null==eS?void 0:eS.type)!=="ecommerce")return;let n="".concat(eS.id,":").concat(eO.user.id);te.current!==n&&(te.current=n,(0,eG.xQ)({dentalId:eS.id,userId:eO.user.id}).then(e=>{(null==e?void 0:e.success)?eM({isLoaded:!1}):te.current=null}).catch(e=>{console.error("Erro ao migrar carrinho local ap\xf3s sess\xe3o:",e),te.current=null}))},[null==eO?void 0:null===(t=eO.user)||void 0===t?void 0:t.id,null==eS?void 0:eS.id]),(0,o.useEffect)(()=>{var e;async function t(){try{let e=await (0,ea.v)("".concat(eo.Y,"/getCart?userId=").concat(eO.user.id,"&sellerId=").concat(null==eS?void 0:eS.id),{method:"GET",requestedTokenType:"user"});if(200!==e.status)return!1;e=await e.json(),eM(e||{})}catch(e){console.log(e),eM({})}}(null==eS?void 0:eS.id)&&!eA.isLoaded&&(null==eO?void 0:null===(e=eO.user)||void 0===e?void 0:e.id)&&t()},[eS,eO,eA]),(0,o.useEffect)(()=>{var e;(null==eS?void 0:eS.id)&&!eA.isLoaded&&((null==eS?void 0:eS.type)==="ecommerce"&&null!=eO&&null!==(e=eO.user)&&void 0!==e&&e.id&&null!=eS&&eS.allowsCartWithoutLogin||eM(JSON.parse(window.localStorage.getItem("cart"))||{}))},[eS,eA,eO]),(0,o.useEffect)(()=>{"es"!==e7.language&&(window.localStorage.getItem("enableCookie")||eq.Am.dark((0,n.jsxs)("div",{className:"d-flex flex-column flex-sm-row justify-content-between align-items-center","data-nosnippet"
1:!0,children:[(0,n.jsxs)("div",{className:"mb-2 mb-sm-0",children:[null==eS?void 0:eS.name," usa cookies para personalizar an\xfancios e melhorar a sua experi\xeancia no site. Ao continuar navegando, voc\xea concorda com a nossa ",(0,n.jsx)("a",{href:"/conteudo/politica-de-privacidade",target:"_blank",children:"Pol\xedtica de Privacidade"}),"."]}),(0,n.jsx)(Y.Z,{color:"success ml-1",onClick:function(){window.localStorage.setItem("enableCookie","true"),eq.Am.dismiss()},children:"continuar e fechar"})]}),{position:"bottom-left",autoClose:!1,draggable:!1,closeOnClick:!1}))},[null==e7?void 0:e7.language]),(0,o.useEffect)(()=>{var e;if(!(null==eS?void 0:null===(e=eS.logo)||void 0===e?void 0:e.showLabel))return;let t=null==eS?void 0:eS.name.split(" ");eP(t=t.reduce((e,t)=>"".concat(e,"<br/> ").concat(t)))},[eS]),(0,o.useEffect)(()=>{eB&&(eW(!1),e$(null))},[ez]),(0,o.useEffect)(()=>{let e=0;function t(t){var l,n;let o=document.body.scrollTop||document.documentElement.scrollTop;if(o!==e){if(o<e)return null===(l=document.getElementById("header"))||void 0===l||l.classList.remove(eX().compact),e=document.body.scrollTop||document.documentElement.scrollTop;if(o>=100)return null===(n=document.getElementById("header"))||void 0===n||n.classList.add(eX().compact),e=document.body.scrollTop||document.documentElement.scrollTop}}return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,o.useEffect)(()=>{if(!eK.id)return;let e=[];e="all"!==eK.id?null==eI?void 0:eI.categories.filter(e=>{var t;return null===(t=e.parent)||void 0===t?void 0:t.includes(eK.id)}):null==eI?void 0:eI.parentCategories;let t=[],l=0,n=e.length,o=Math.ceil(e.length/4);for(;l<n;)t.push(e.slice(l,l+=o));e2(t)},[eK]);let to=(0,eH.Z)(null==eS?void 0:eS.whats,null==eS?void 0:null===(i=eS.countryRules)||void 0===i?void 0:null===(l=i.phone)||void 0===l?void 0:l.countryCodePrefix),ti=(0,Z.Z)({dental:eS,formattedWhats:to});return(0,n.jsxs)("div",{className:eX().layout,children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,n.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"}),(0,n.jsx)("link",{href:(null==eL?void 0:null===(r=eL.font)||void 0===r?void 0:r.src)||"https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap",rel:"stylesheet"}),(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n :root {\n --bg: ".concat((null==eL?void 0:null===(u=eL.colors)||void 0===u?void 0:u.bg)||"#f8f8f8",";\n --bgSecondary: ").concat((null==eL?void 0:null===(m=eL.colors)||void 0===m?void 0:m.bgSecondary)||"#f0f0f0",";\n --layoutPrimary: ").concat((null==eL?void 0:null===(v=eL.colors)||void 0===v?void 0:v.layoutPrimary)||"#FFF",";\n --layoutProductBtnBgColor: ").concat((null==eL?void 0:null===(g=eL.colors)||void 0===g?void 0:g.layoutProductBtnBgColor)||(null==eL?void 0:null===(x=eL.colors)||void 0===x?void 0:x.success),";\n --layoutSecondary: ").concat((null==eL?void 0:null===(j=eL.colors)||void 0===j?void 0:j.layoutSecondary)||"7, 135, 131",";\n --layoutTertiary: ").concat((null==eL?void 0:null===(y=eL.colors)||void 0===y?void 0:y.layoutTertiary)||"#F00",";\n --layoutQuarternary: ").concat((null==eL?void 0:null===(M=eL.colors)||void 0===M?void 0:M.layoutQuarternary)||"#F00",";\n --textColorProductTitle: ").concat((null==eL?void 0:null===(N=eL.colors)||void 0===N?void 0:N.textColorProductTitle)||"#6C757D",";\n --textLayoutPrimary: ").concat((null==eL?void 0:null===(C=eL.colors)||void 0===C?void 0:C.textLayoutPrimary)||"#999",";\n --textLayoutSecondary: ").concat((null==eL?void 0:null===(w=eL.colors)||void 0===w?void 0:w.textLayoutSecondary)||"#FFF",";\n --textLayoutTertiary: ").concat((null==eL?void 0:null===(_=eL.colors)||void 0===_?void 0:_.textLayoutTertiary)||"#999",";\n --textLayoutQuartenary: ").concat((null==eL?void 0:null===(b=eL.colors)||void 0===b?void 0:b.textLayoutQuartenary)||"#999",";\n --elementLayoutSecondary: ").concat((null==eL?void 0:null===(S=e
1L.colors)||void 0===S?void 0:S.elementLayoutSecondary)||"#000",";\n --textElementLayoutSecondary: ").concat((null==eL?void 0:null===(D=eL.colors)||void 0===D?void 0:D.textElementLayoutSecondary)||"#FFF",";\n --borderLayoutPrimary: ").concat((null==eL?void 0:null===(L=eL.colors)||void 0===L?void 0:L.borderLayoutPrimary)||"#CCC",";\n --borderLayoutSecondary: ").concat((null==eL?void 0:null===(T=eL.colors)||void 0===T?void 0:T.borderLayoutSecondary)||"#CCC",";\n --stimulusPrimary: ").concat((null==eL?void 0:null===(E=eL.colors)||void 0===E?void 0:E.stimulusPrimary)||(null==eL?void 0:null===(A=eL.colors)||void 0===A?void 0:A.layoutSecondary),";\n --textStimulusPrimary: ").concat((null==eL?void 0:null===(O=eL.colors)||void 0===O?void 0:O.textStimulusPrimary)||"#FFF",";\n ").concat((null==eL?void 0:null===(z=eL.colors)||void 0===z?void 0:z.textHighlightStimulusPrimary)?"--textHighlightStimulusPrimary: ".concat(null==eL?void 0:null===(R=eL.colors)||void 0===R?void 0:R.textHighlightStimulusPrimary,";"):"","\n --stimulusSecondary: ").concat((null==eL?void 0:null===(W=eL.colors)||void 0===W?void 0:W.stimulusSecondary)||"#FFC107",";\n --textStimulusSecondary: ").concat((null==eL?void 0:null===(B=eL.colors)||void 0===B?void 0:B.textStimulusSecondary)||"#212529",";\n --success: ").concat((null==eL?void 0:null===(H=eL.colors)||void 0===H?void 0:H.success)||"#000",";\n --textPrice: ").concat((null==eL?void 0:null===(U=eL.colors)||void 0===U?void 0:U.textPrice)||"#6e6b7b",";\n --textSuccess: ").concat((null==eL?void 0:null===(J=eL.colors)||void 0===J?void 0:J.textSuccess)||"#FFF",";\n --fontFamily: ").concat((null==eL?void 0:null===(V=eL.font)||void 0===V?void 0:V.family)||"Montserrat,sans-serif",";\n }\n ")}}),(null==eS?void 0:null===(q=eS.facebook)||void 0===q?void 0:q.domainVerification)&&(0,n.jsx)("meta",{name:"facebook-domain-verification",content:null==eS?void 0:eS.facebook.domainVerification}),(null==eS?void 0:null===(G=eS.google)||void 0===G?void 0:G.siteVerification)&&(0,n.jsx)("meta",{name:"google-site-verification",content:null==eS?void 0:eS.google.siteVerification}),(0,n.jsx)("link",{rel:"shortcut icon",href:(null==ew?void 0:null===($=ew.themeSettings)||void 0===$?void 0:$.favicon)||"/favicon2.ico"}),(null==eS?void 0:eS.name)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"author",content:eS.name}),(0,n.jsx)("meta",{name:"publisher",content:eS.name})]}),Array.isArray(null==eS?void 0:eS.scriptFilesInHead)&&(null==eS?void 0:null===(K=eS.scriptFilesInHead)||void 0===K?void 0:K.length)>0&&(null==eS?void 0:null===(ee=eS.scriptFilesInHead)||void 0===ee?void 0:ee.map((e,t)=>
1(0,n.jsx)("script",{type:"text/javascript",async:!0,src:e.fileUrl},t)))]}),(null==eS?void 0:null===(et=eS.facebook)||void 0===et?void 0:et.pixelId)&&(0,n.jsx)(eF(),{id:"meta-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', ".concat(eS.facebook.pixelId,");\n fbq('track', 'PageView');\n ")}}),(null==eS?void 0:eS.gaId)&&(0,n.jsx)(d.GoogleAnalytics,{gaId:eS.gaId}),(0,n.jsx)(tl.Z,{dental:eS}),(null==eS?void 0:null===(ei=eS.facebook)||void 0===ei?void 0:ei.pixelId)&&(0,n.jsx)("noscript",{children:(0,n.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(null==eS?void 0:null===(es=eS.facebook)||void 0===es?void 0:es.pixelId,"&ev=PageView&noscript=1")})}),(0,n.jsx)(eC.Z,{}),(0,n.jsxs)("header",{id:"header",className:eX().header,children:[(0,n.jsx)(p,{initialProps:ew}),(0,n.jsxs)("div",{className:"mb-0",children:[(0,n.jsxs)(ey.Z,{children:[(0,n.jsx)(f,{className:eX().headerMenu,initialProps:ew}),(0,n.jsxs)("div",{className:"".concat(eX().header__primary," d-flex justify-content-between align-items-stretch flex-wrap flex-md-nowrap py-50"),children:[(0,n.jsxs)("div",{className:"order-0 d-flex align-items-center",children:[(0,n.jsx)(Y.Z,{className:"".concat(eX().btnMenu," btn-icon mr-50 d-lg-none"),color:"flat-secondary",size:"lg",onClick:()=>eW(!0),children:(0,n.jsx)(eQ.Z,{size:26})}),!e_&&(0,n.jsx)("h1",{style:{display:"none"},children:null==eS?void 0:eS.name}),(0,n.jsx)(c(),{legacyBehavior:!0,href:"/",title:null==eS?void 0:eS.name,children:(0,n.jsxs)("a",{className:eX().logo,children:[(0,n.jsx)("img",{className:"mr-50",src:null==eS?void 0:null===(er=eS.logo)||void 0===er?void 0:er.src,alt:null==eS?void 0:eS.name,style:{maxHeight:(null==eS?void 0:null===(ec=eS.logo)||void 0===ec?void 0:ec.minHeight)||"auto"}}),(null==eS?void 0:null===(ed=eS.logo)||void 0===ed?void 0:ed.showLabel)&&(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:eZ},className:"d-none d-sm-block"})]})})]}),(0,n.jsx)(k,{className:"order-3 order-md-1 mb-0 mt-1 mt-md-0 mx-md-4 w-100 d-md-flex align-items-center",initialProps:ew}),(0,n.jsxs)("div",{className:"order-2 d-flex align-items-center",children:[(null==eS?void 0:eS.id)!=="marketplace"&&(null==eS?void 0:eS.type)!=="ecommerce"&&(0,n.jsx)("a",{className:"btn btn-flat-secondary btn-icon btn-lg d-md-none trigger-gtm-whats",color:"secondary",href:ti,target:"_blank",title:"WhatsApp",rel:"noopener noreferrer",onClick:e=>(0,P.Ec)(e,{href:ti,dental:eS}),children:(0,n.jsx)("svg",{className:eX().svgWhats,width:"26",height:"26",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",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",fill:"#82868B"})})}),(null==eS?void 0:eS.type)!=="ecommerce"&&(0,n.jsx)(F,{className:"d-none d-md-flex",formattedWhats:to,initialProps:ew}),(null==eS?void 0:eS.type)==="ecommerce"&&(0,n.jsx)(Q,{initialProps:ew}),(0,n.jsx)(X,{initialProps:ew})]})]})]}),(0,n.jsx)("div",{className:"".concat(eX().menu," ").concat(eR?eX().active:""),children:(0,n.jsxs)(ey.Z,{className:eX().menu__container,children:[(0,n.jsxs)("div",{className:eX().menu__content,children:[(0,n.jsxs)("button",{className:"".concat("categories"===eB?eX().active:""),onMouseEnter:()=>e$("categories"),onMouseLeave:()=>e$(null),children:[(0,n.jsx)(eQ.Z,{size:20,className:"mr-50"}),e8("categories"),(0,n.jsx)(eY.Z,{size:20,className:"ml-50"})]}),(0,n.jsxs)("div",{className:"".concat(eX().menu__menuCategories," ").concat("categories"===eB?eX().active:""," ").concat(eK.id?eX().departmentActive:""),...tn("action1",e=>
1{e$("categories")}),children:[(0,n.jsxs)("ul",{children:[null==eI?void 0:null===(eu=eI.parentCategories)||void 0===eu?void 0:eu.filter((e,t)=>t<=9).map((e,t)=>{var l;return(0,n.jsx)("li",{...tn("action2",t=>{t.preventDefault(),t.stopPropagation(),e0(e)}),className:"".concat(eK.id===e.id?eX().active:""," ").concat(eX()[null==eL?void 0:null===(l=eL.components)||void 0===l?void 0:l.bgWhite]),children:e4?(0,n.jsxs)("span",{children:[e.title," ",(0,n.jsx)(eJ.Z,{size:20})]}):(0,n.jsx)(c(),{legacyBehavior:!0,href:"/categoria/".concat(e.slug,"/index"),title:e.title,children:(0,n.jsxs)("a",{children:[e.title," ",(0,n.jsx)(eJ.Z,{size:20})]})})},t)}),(null==eI?void 0:null===(em=eI.parentCategories)||void 0===em?void 0:em.length)>10&&(0,n.jsx)("li",{...tn("action3",e=>{var t;return t={id:"all"},void(e.preventDefault(),e0(t))}),className:"".concat("all"===eK.id?eX().active:""," ").concat(eX()[null==eL?void 0:null===(eh=eL.components)||void 0===eh?void 0:eh.bgWhite]),children:(0,n.jsxs)("strong",{children:[e8("allCategories")," ",(0,n.jsx)(eJ.Z,{size:20})]})})]}),eK.id&&(0,n.jsxs)("div",{className:"".concat(eK.id?eX().active:""),children:[(0,n.jsxs)(Y.Z,{className:"mb-1",color:"secondary",outline:!0,size:"sm",type:"button",...tn("actionBack",e=>{e.preventDefault(),e0({})}),children:[(0,n.jsx)(eV.Z,{size:20,className:"mr-50"}),"Voltar"]}),"all"!==eK.id&&(0,n.jsx)("p",{className:eX().menuTitle,children:null==eI?void 0:eI.parentCategories.filter(e=>e.id===eK.id)[0].title}),"all"===eK.id&&(0,n.jsx)("p",{className:eX().menuTitle,children:e8("allCategories")}),(0,n.jsx)("div",{children:e1.map((e,t)=>(0,n.jsx)("ul",{children:e.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(c(),{legacyBehavior:!0,href:"all"!==eK.id?"/categoria/".concat(eK.slug,"/").concat(e.slug):"/categoria/".concat(e.slug,"/index"),title:e.title,children:(0,n.jsx)("a",{children:e.title})})},e.id))},t))})]})]}),(0,n.jsx)("ul",{className:eX().desktopMenu,children:null==eD?void 0:eD.map((e,t)=>(0,n.jsxs)("li",{className:"".concat(eB===t?eX().active:""),style:{background:null==e?void 0:e.bgColor},children:["link"===e.type&&(0,n.jsx)("a",{href:e.url,target:"newTab"===e.target?"_blank":"",title:e.label,style:{color:null==e?void 0:e.textColor},children:e.label}),"html"===e.type&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{onTouchEnd:()=>e$(t),onMouseEnter:()=>e$(t),onMouseLeave:()=>e$(null),children:[e.label," ",(0,n.jsx)(eJ.Z,{size:20})]}),(0,n.jsxs)("div",{onMouseEnter:()=>e$(t),children:[(0,n.jsx)("div",{className:"p-1 ".concat(eX().back),children:(0,n.jsxs)(Y.Z,{color:"secondary",outline:!0,size:"sm",type:"button",onTouchEnd:()=>e$(null),onClick:()=>e$(null),children:[(0,n.jsx)(eV.Z,{size:20,className:"mr-50"}),"Voltar"]})}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.html}})]})]})]},t))}),(0,n.jsx)("ul",{className:eX().mobileHeaderMenu,children:null==eT?void 0:eT.map((e,t)=>(0,n.jsx)("li",{style:{background:null==e?void 0:e.bgColor},children:(0,n.jsx)("a",{href:e.url,target:"newTab"===e.target?"_blank":"",title:e.label,style:{color:null==e?void 0:e.textColor},children:e.label})},t))})]}),(0,n.jsx)("div",{className:"".concat(eX().menu__mask," ").concat(eB?eX().active:""),onClick:()=>{eW(!1),e$(null)}})]})}),(null==eS?void 0:eS.isRedirectableBetweenSellers)&&(0,n.jsx)(eN,{initialProps:ew})]})]}),(0,n.jsxs)("div",{id:"layout-scrollable",className:eX().layout__scrollable,children:[(0,n.jsx)("div",{className:"".concat(eX().mask," ").concat(eB?eX().active:""),onClick:()=>e$(null)}),(0,n.jsx)(tt,{data:ek}),(0,n.jsx)(e3,{data:eE}),ef,(0,n.jsx)(eU,{initialProps:ew})]}),(0,n.jsx)(eq.Ix,{position:"bottom-right",newestOnTop:!0}),(null==eS?void 0:eS.id)==="marketplace"&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(el,{})}),(0,n.jsx)(en.Z,{sellerId:null==eS?void 0:eS.id,hasSmartHint:null==eS?void 0:eS.hasSmartHint}),Array.isArray(null==eS?void 0:eS.scriptFilesInBody)&&(null==eS?void 0:null===(ev=eS.scriptFilesInBody)||void 0===ev?void 0:ev.length)>0&&(null==eS?void 0:null===(eg=eS.scriptFilesInBody)||void 0===eg?void 0:eg.map((e,t)=>
1(0,n.jsx)(eF(),{type:"text/javascript",async:!0,src:e.fileUrl,...e.dataTracking&&{"data-tracking-id":e.dataTracking},...e.dataResources&&{"data-resources-url":e.dataResources},...e.dataWidget&&{"data-widget-id":e.dataWidget}},t))),(null==eS?void 0:null===(ep=eS.scriptJs)||void 0===ep?void 0:ep.length)>0&&(null==eS?void 0:null===(ex=eS.scriptJs)||void 0===ex?void 0:ex.map((e,t)=>(0,n.jsx)(eF(),{dangerouslySetInnerHTML:{__html:e}},t))),(null==eS?void 0:eS.id)==="PSe7cYupzN6GyvpraQ4K"&&(0,n.jsx)(eF(),{id:"beeviral-tracking-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n !function (f, b, e, v, n, t, s) {\n t = b.createElement(e); t.async = !0;\n t.src = v; s = b.getElementsByTagName(e)[0];\n t.onload = function () {\n beeviralTracking.Send({\n token: \"YWhrTExKMm9YREJ3ZmxBcTlFeVFGTldZUkFpM1B5QDIzWCpmTFc2MXhtcWM5RnlSZWpLbkJnc0ZPRHlERHRoZA==\"\n }, false, true);\n };\n s.parentNode.insertBefore(t, s)\n }(window, document, 'script', 'https://account.beeviral.app/Scripts/app/tracking.js');\n "}}),(null==eS?void 0:null===(ej=eS.rdStation)||void 0===ej?void 0:ej.trackerSrc)&&(0,n.jsx)(eF(),{type:"text/javascript",async:!0,src:eS.rdStation.trackerSrc})]})})},16218:function(e,t,l){"use strict";function n(e,t){var l;return!!(null==e?void 0:null===(l=e[t])||void 0===l?void 0:l.products)}function o(e,t){return console.warn("cart: cartUpdated com formato inv\xe1lido, ignorado e for\xe7ando refetch",{dentalId:t,cartUpdated:e}),e=>{e({type:"CHANGE_CART",data:{isLoaded:!1}})}}l.d(t,{Dr:function(){return r},LL:function(){return c},Od:function(){return s},RV:function(){return i},Xq:function(){return a},zu:function(){return d}});let i=e=>t=>{t({type:"CHANGE_CART",data:e})},a=e=>{var t,l,n,o;let{dentalId:i,productId:a,quantityToAdd:s,unitPrice:r,cartUpdated:c,studentListId:d=null}=e;if(c)return e=>{console.log(">>>HERE"),console.log(c),e({type:"CHANGE_CART",data:c})};console.log(">>>AND HERE");let u=JSON.parse(window.localStorage.getItem("cart"))||{},m=parseInt(s),h=r*s,v={...u,[i]:{products:{...null===(t=u[i])||void 0===t?void 0:t.products,[a]:(null===(l=u[i])||void 0===l?void 0:l.products)&&u[i].products[a]?u[i].products[a]+m:m},...d&&{studentListId:d},total:(null===(n=u[i])||void 0===n?void 0:n.total)?u[i].total+m:m,price:(null===(o=u[i])||void 0===o?void 0:o.price)?u[i].price+h:h}};return window.localStorage.setItem("cart",JSON.stringify(v)),e=>{e({type:"CHANGE_CART",data:v})}},s=e=>{var t;let{dentalId:l,productId:i,newQuantity:a,price:s,cartUpdated:r,studentListId:c}=e;if(r)return n(r,l)?e=>{e({type:"CHANGE_CART",data:r})}:o(r,l);let d=JSON.parse(window.localStorage.getItem("cart"))||{},u={...null===(t=d[l])||void 0===t?void 0:t.products,[i]:parseInt(a)},m=Object.values(u).reduce((e,t)=>e+t),h={...d,[l]:{products:u,total:m,price:s},...c&&{studentListId:c}};return window.localStorage.setItem("cart",JSON.stringify(h)),e=>{e({type:"CHANGE_CART",data:h})}},r=e=>{var t,l;let{dentalId:i,productId:a,listId:s,price:r,cartUpdated:c}=e;if(c)return n(c,i)?e=>{e({type:"CHANGE_CART",data:c})}:o(c,i);let d=JSON.parse(window.localStorage.getItem("cart"))||{};console.log(">>>old"),console.log(d[i]);let u=(null===(t=d[i])||void 0===t?void 0:t.products)||{},m=(null===(l=d[i])||void 0===l?void 0:l.productsFromStudentListWithPricesHidden)||{};a&&delete u[a],s&&delete m[s];let h=Object.keys(u||{}).length>0?Object.values(u).reduce((e,t)=>e+t):0,v=Object.keys(m||{}).length>0?Object.values(m).reduce((e,t)=>e+t):0,g={...d,[i]:{products:u,total:h+v,price:r}};return window.localStorage.setItem("cart",JSON.stringify(g)),e=>{e({type:"CHANGE_CART",data:g})}},c=e=>{let t={...JSON.parse(window.localStorage.getItem("cart"))||{},[e]:{products:{},total:0,price:0}};return window.localStorage.setItem("cart",JSON.stringify(t)),e=>{e({type:"CHANGE_CART",data:t})}},d=()=>(window.localStorage.removeItem("cart"),e=>{e({type:"CHANGE_CART",data:{isLoaded:!1}})})},48884:function(e){e.exports={addressToolbar:"AddressToolbar_addressToolbar__CcStl",text:"AddressToolbar_text__dzE9R",globalPopover:"AddressToolbar_globalPopover__yCIVZ"}},12908:function(e){e.exports={cartWidget:"CartWidget_cartWidget__9OL6z",styledCart:"CartWidget_styledCart__EXJgT"}},28960:function(e){e.exports={countWidget:"CountWidget_countWidget__Z4F0i",title:"CountWidget_title__k2qQp",titleInCenter:"CountWidget_titleInCenter__Ilz_8"}},15829:function(e){e.exports={headerBanner:"HeaderBanner_headerBanner__0eW9o"}},38109:function(e){e.exports={headerMenu:"HeaderMenu_headerMenu__ntOvW",styled:"HeaderMenu_styled__dvien"}},37696:function(e){e.exports={modal:"LeadCapture_modal__JC2q5",secondary:"LeadCapture_secondary__QyKGV"}},12581:function(e){e.exports={modal:"ModalGetUserCep_modal__Ub6o9",header:"ModalGetUserCep_header__EOdz1",body:"ModalGetUserCep_body__GpPu5",modalInput:"ModalGetUserCep_modalInput__vTkdd",globalIcon:"ModalGetUserCep_globalIcon__IvSei"}},2512:function(e){e.exports={myAccount:"MyAccount_myAccount___rEuI",login:"MyAccount_login__SVekO",loginMini:"MyAccount_loginMini__rdC9U"}},70146:function(e){e.exports={globalSearch:"SearchInput_globalSearch__4_Xke",globalSearch__target:"SearchInput_globalSearch__target__fR5Cu",globalSearch__spinner:"SearchInput_globalSearch__spinner__hJEXv",styled:"SearchInput_styled__elnuW",globalInputs:"SearchInput_globalInputs__8g_hM",checkbox:"SearchInput_checkbox__hvM68",widgets:"SearchInput_widgets__YwsDf"}},6624:function(e){e.exports={whats:"WhatsApp_whats__j13cv",svgWhats:"WhatsApp_svgWhats__Ll0i3",login:"WhatsApp_login__D_Lmi",loginMini:"WhatsApp_loginMini__Kg_qi"}},36257:function(e){e.exports={svgWhats:"DefaultLayout_svgWhats__efYbZ",layout__scrollable:"DefaultLayout_layout__scrollable__M2qjL",mask:"DefaultLayout_mask__h6g8O",active:"DefaultLayout_active__wW0n5",header:"DefaultLayout_header__AsU14",compact:"DefaultLayout_compact__H1f0z",headerMenu:"DefaultLayout_headerMenu__wsWo9",header__primary:"DefaultLayout_header__primary__E8ku0",logo:"DefaultLayout_logo__MRc3h",btnMenu:"DefaultLayout_btnMenu__UE4DL",menu:"DefaultLayout_menu__dBDSn",header__secondary__content:"DefaultLayout_header__secondary__content__8BxWv",showMenu:"DefaultLayout_showMenu__jmLO1",menu__container:"DefaultLayout_menu__container__dsDIF",menu__content:"DefaultLayout_menu__content__nzszK",desktopMenu:"DefaultLayout_desktopMenu__Hsotl",back:"DefaultLayout_back__AF7vP",mobileHeaderMenu:"DefaultLayout_mobileHeaderMenu__kNMSl",menu__mask:"DefaultLayout_menu__mask__pxww2",menu__menuCategories:"DefaultLayout_menu__menuCategories__zj7IV",departmentActive:"DefaultLayout_departmentActive__5BOl3",bgWhite:"DefaultLayout_bgWhite__9VW7P",menuTitle:"DefaultLayout_menuTitle__zumHt"}},30649:function(e){e.exports={footer:"Footer_footer__C4QQr",primary:"Footer_primary__eYnfQ",colContent:"Footer_colContent___srdz",title:"Footer_title__hFezP",logo:"Footer_logo__YSRgj",social:"Footer_social__kCTu_",phones:"Footer_phones__ngSaW",svgWhats:"Footer_svgWhats__SJEcw",others:"Footer_others__XxtKw",menu:"Footer_menu__HubkJ",flags:"Footer_flags__OB7bc",methods:"Footer_methods__x2iDk",secondary:"Footer_secondary__spQG5",copyright:"Footer_copyright__Cpvzz",suggestion:"Footer_suggestion__DMPHF",widgets:"Footer_widgets__3FDr9",ticket:"Footer_ticket__SbzJD",fixedWhatsApp:"Footer_fixedWhatsApp__ER9mK"}},51762:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjYiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuNzUwMTEgMi41ODk4NEg0LjU4NjA1QzQuNjEyODQgMi41ODk4NCA0LjYzNTYxIDIuNjAyMzYgNC42NjE2NyAyLjYwNTFDNC43MTYwNSAyLjYxMDY2IDQuNzY2OSAyLjYxOTY5IDQuODE3ODYgMi42MzY2NkM0Ljg2MDUyIDIuNjUwNzYgNC44OTkwNCAyLjY2ODE1IDQuOTM3OTIgMi42ODkyN0M0Ljk4MjY1IDIuNzEzNjIgNS4wMjMgMi43NDAwNSA1LjA2MiAyLjc3Mjk1QzUuMDk3ODkgMi44MDMxIDUuMTI4MzUgMi44MzUyMSA1LjE1ODAxIDIuODcxNEM1LjE4ODU5IDIuOTA4NjkgNS4yMTQ3MSAyLjk0NjY2IDUuMjM3O
1SAyLjk4OTg3QzUuMjYxODkgMy4wMzQyNCA1LjI3ODc0IDMuMDc5NzcgNS4yOTM0NSAzLjEyODk3QzUuMzAxNDQgMy4xNTU2NCA1LjMxODcxIDMuMTc3MDYgNS4zMjM4NCAzLjIwNTA4TDUuNzUzMzUgNS41NTI0M0wyNC4xMDcgNi42MjVDMjQuMTc3NCA2LjYyMDEyIDI0LjIzOTQgNi42MzAzNyAyNC4zMTggNi42Mzc3QzI0LjcyNTcgNi42NzQ4IDI1LjAyODQgNy4wMzIyMyAyNC45OTgyIDcuNDQwNDNDMjQuOTk1NyA3LjQ3MTE5IDI0Ljk5MTggNy41MDA5OCAyNC45ODYgNy41MzAyN0wyMy43MDcxIDE0LjUwNDlDMjMuNDE0NyAxNS41ODY0IDIyLjUxMzggMTYuNjc4MiAyMS4xNTg4IDE2LjY3ODJINy43ODkyM0w4LjA3NTQ5IDE4LjI0MjdIMTkuMzI1M0MyMC43NDk2IDE4LjI0MjcgMjEuOTA4OCAxOS40MDE5IDIxLjkwODggMjAuODI2MkMyMS45MDg4IDIyLjI1MSAyMC43NDk2IDIzLjQxMDIgMTkuMzI1MyAyMy40MTAyQzE3LjkwMSAyMy40MTAyIDE2Ljc0MTggMjIuMjUxIDE2Ljc0MTggMjAuODI2MkMxNi43NDE4IDIwLjQzOCAxNi44MzQgMjAuMDczMyAxNi45ODgxIDE5Ljc0MjdIMTAuMDhDMTAuMjM0MSAyMC4wNzMzIDEwLjMyNjMgMjAuNDM4IDEwLjMyNjMgMjAuODI2MkMxMC4zMjYzIDIyLjI1MSA5LjE2NzEgMjMuNDEwMiA3Ljc0Mjc5IDIzLjQxMDJDNi4zMTg0NyAyMy40MTAyIDUuMTU5MjkgMjIuMjUxIDUuMTU5MjkgMjAuODI2MkM1LjE1OTI5IDE5LjgxMzQgNS43NTA3MiAxOC45NDM3IDYuNjAxNDMgMTguNTIwNEwzLjk2MDg3IDQuMDg5ODRIMS43NTAxMUMxLjMzNjA1IDQuMDg5ODQgMS4wMDAxMSAzLjc1MzkxIDEuMDAwMTEgMy4zMzk4NEMxLjAwMDExIDIuOTI1NzggMS4zMzYwNSAyLjU4OTg0IDEuNzUwMTEgMi41ODk4NFpNNi45NzgwMiAxMi4yNDQ4TDEwLjE1NjIgMTIuMjk0N0w5Ljk4MzE0IDEwLjQ1MjhMNi42MzE3IDEwLjM1MjRMNi45NzgwMiAxMi4yNDQ4Wk0yMi44NTU4IDEwLjgzODdMMTkuNjc5OSAxMC43NDM1TDE5LjQ3MjEgMTIuNDQxTDIyLjU1MzYgMTIuNDg5NEwyMi44NTU4IDEwLjgzODdaTTE4LjY3NjYgMTAuNzEzNEwxNS4xODU3IDEwLjYwODhWMTIuMzczN0wxOC40NjcgMTIuNDI1MkwxOC42NzY2IDEwLjcxMzRaTTE1LjE4NTcgOS42MDc5MUwxOC43OTg2IDkuNzE2MjVMMTkuMDI5NSA3LjgzMDg3TDE1LjE4NTcgNy42MDYxNFY5LjYwNzkxWk0xNC4xODU3IDcuNTQ3NjdMMTAuNjk1NCA3LjM0MzU3TDEwLjg5NjEgOS40NzkzMUwxNC4xODU3IDkuNTc3OTRWNy41NDc2N1pNMTUuMTg1NyAxMy4zNzM5VjE1LjE3ODJIMTguMTI5OUwxOC4zNDQ4IDEzLjQyMzVMMTUuMTg1NyAxMy4zNzM5Wk0xNC4xODU3IDEzLjM1ODJMMTEuMjU2MyAxMy4zMTIzTDExLjQzMTYgMTUuMTc4MkgxNC4xODU3VjEzLjM1ODJaTTE0LjE4NTcgMTIuMzU4VjEwLjU3ODlMMTAuOTkwNCAxMC40ODNMMTEuMTYyMiAxMi4zMTA1TDE0LjE4NTcgMTIuMzU4Wk02LjQ0NzU2IDkuMzQ1OTVMOS44ODg4NCA5LjQ0OTFMOS42ODU0OCA3LjI4NDU1TDYuMDMxMjQgNy4wNzA4Nkw2LjQ0NzU2IDkuMzQ1OTVaTTIwLjAyOTMgNy44ODkzNEwxOS44MDIgOS43NDYyOEwyMy4wMzgxIDkuODQzMzJDMjMuMTc0NSA5LjEwMjQ4IDIzLjI4MzEgOC41MjY3MyAyMy4zNzU2IDguMDg0OTZMMjAuMDI5MyA3Ljg4OTM0Wk0yMi4yNDUyIDE0LjE3NDNMMjIuMzcxMSAxMy40ODY4TDE5LjM0OTggMTMuNDM5M0wxOS4xMzcgMTUuMTc4MkgyMS4xNTg4QzIxLjgwMTQgMTUuMTc4MiAyMi4xNTkzIDE0LjQ4MTkgMjIuMjQ1MiAxNC4xNzQzWk0xMC40MjcyIDE1LjE3ODJMMTAuMjUwNCAxMy4yOTY0TDcuMTYxNTUgMTMuMjQ3OUw3LjUxNDc2IDE1LjE3ODJIMTAuNDI3MlYxNS4xNzgyWk0xOC4yNDE4IDIwLjgyNjJDMTguMjQxOCAyMS40MjM4IDE4LjcyNzcgMjEuOTEwMiAxOS4zMjUzIDIxLjkxMDJDMTkuOTIzIDIxLjkxMDIgMjAuNDA4OCAyMS40MjM4IDIwLjQwODggMjAuODI2MkMyMC40MDg4IDIwLjIyODUgMTkuOTIzIDE5Ljc0MjcgMTkuMzI1MyAxOS43NDI3QzE4LjcyNzcgMTkuNzQyNyAxOC4yNDE4IDIwLjIyODUgMTguMjQxOCAyMC44MjYyWk03Ljc0Mjc5IDIxLjkxMDJDOC4zNDA0NCAyMS45MTAyIDguODI2MjggMjEuNDIzOCA4LjgyNjI4IDIwLjgyNjJDOC44MjYyOCAyMC4yMjg1IDguMzQwNDQgMTkuNzQyNyA3Ljc0Mjc5IDE5Ljc0MjdDNy4xNDUxMyAxOS43NDI3IDYuNjU5MjkgMjAuMjI4NSA2LjY1OTI5IDIwLjgyNjJDNi42NTkyOSAyMS40MjM4IDcuMTQ1MTMgMjEuOTEwMiA3Ljc0Mjc5IDIxLjkxMDJaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"}}]);
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.