PageSourceSearch

https://ometac.com.br/_next/static/chunks/pages/[productSlug]-0950b6a2f7b479c9.js

js ometac.com.br collected 2026-09-30 15:25:05 UTC 49,724 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7312],{50578:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[productSlug]",function(){return l(37023)}])},37023:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return e0},default:function(){return e1}});var i=l(85893),n=l(67294),s=l(41664),o=l.n(s),a=l(9008),d=l.n(a),r=l(11163),c=l(4298),u=l.n(c),m=l(12589),v=l(78058),p=l(77489),h=l(14416),x=l(16218),g=l(51615),j=l(28898),y=l.n(j),f=l(76627),b=l.n(f),N=l(69283),w=l(40782),Z=l(15538),I=l(10267),_=l(51252),P=l(82669),C=l(67954),S=l(70474),k=l(97975),T=l(67421);let F={name:"",tel:"",email:"",doc:"",allow:"",city:"",uf:""};var B=function(e){let{data:t,className:l,handleSuccess:s,initialProps:a}=e,{dental:d}=a||{},[r,c]=(0,n.useState)(F),u={name:(0,n.useRef)(null),email:(0,n.useRef)(null),allow:(0,n.useRef)(null),city:(0,n.useRef)(null),uf:(0,n.useRef)(null)},[p,h]=(0,n.useState)(null),[x,g]=(0,n.useState)({name:"",doc:"",email:"",tel:"",city:"",uf:"",allow:!1}),[j,f]=(0,n.useState)(!1),B=(null==d?void 0:d.id)==="7XF8n0Zg25eUWpNaOa2k",q=(null==d?void 0:d.id)==="n36bgGeZl5dmDDqcleCd",{t:O}=(0,T.$G)("common"),E=O("quoteSubtitle");async function D(e){if(e.preventDefault(),!function(){var e,t,l,i;if(c(F),!(null===(e=x.name)||void 0===e?void 0:e.length))return u.name.current.blur(),u.name.current.focus(),c({...F,name:O("quoteValidationName")}),!1;if(!q&&(null===(t=x.doc)||void 0===t?void 0:t.length)!==14&&(null===(l=x.doc)||void 0===l?void 0:l.length)!==18){let e=document.getElementById("doc");return e.blur(),e.focus(),c({...F,doc:O("quoteValidationDocument")}),!1}if(x.tel.split("(").join("").split(")").join("").split(" ").join("").split("_").join("").split("-").join("").length<10)return p.blur(),p.focus(),c({...F,tel:O("quoteValidationPhone")}),!1;let n=x.email.split("@");return(n=null===(i=n[1])||void 0===i?void 0:i.split("."))&&!((null==n?void 0:n.length)<=1)?x.allow?!B||(null==x?void 0:x.city)?!B||null!=x&&!!x.uf||(u.uf.current.blur(),u.uf.current.focus(),c({...F,uf:O("quoteValidationUf")}),!1):(u.city.current.blur(),u.city.current.focus(),c({...F,city:O("quoteValidationCity")}),!1):(u.allow.current.blur(),u.allow.current.focus(),c({...F,allow:O("quoteValidationAllow")}),!1):(u.email.current.blur(),u.email.current.focus(),c({...F,email:O("quoteValidationEmail")}),!1)}())return;f(!0);let l={sellerId:v.fixId,name:x.name,doc:x.doc,tel:x.tel,email:x.email,city:x.city,uf:x.uf,product:{internalId:t.internalId,id:t.id,title:t.title}},i={sellerId:v.fixId,name:x.name,doc:x.doc,tel:x.tel,email:x.email,product:{internalId:t.internalId,id:t.id,title:t.title}};try{if(await (0,N.v)("".concat(m.Y,"/setProductBudget"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify(B?l:i)}),w.Am.success(O("quoteSuccessMessage")),f(!1),s)return s()}catch(e){console.log(e),w.Am.error(O("errorAction")),f(!1)}}return(0,i.jsxs)("div",{className:l,children:[(0,i.jsx)("p",{children:O("quoteTitle")}),E&&(0,i.jsx)("p",{children:E}),(0,i.jsxs)(Z.Z,{onSubmit:D,children:[(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"name",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelName")})}),(0,i.jsx)("input",{ref:u.name,className:"form-control",type:"text",id:"name",value:x.name,onChange:e=>g(t=>({...t,name:e.target.value}))}),r.name&&(0,i.jsx)(S.Z,{className:"d-block",children:r.name})]})}),(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"doc",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelDocument")})}),q?(0,i.jsx)("input",{id:"doc",type:"text",className:"form-control",autoComplete:"off",maxLength:13,value:x.doc,onChange:e=>{let t=e.target.value.toUpperCase().replace(/[^A-ZÑ&0-9]/g,"");g(e=>({...e,doc:t}))}}):(0,i.jsx)(y(),{id:"doc",className:"form-control",value:x.doc,onChange:e=>g(t=>({...t,doc:e.target.value}))}),r.doc&&(0,i.jsx)(S.Z,{className:"d-block",children:r.doc})]})})]}),(0,i.jsxs)(I.Z,{children:[(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"tel",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelPhone")})}),(0,i.jsx)(b(),{inputRef:e=>h(e),className:"form-control",type:"tel",autoComplete:"off",id:"tel",mask:"(99) 99999-9999",value:x.tel,onChange:e=>g(t=>({...t,tel:e.target.value}))}),r.tel&&(0,i.jsx)(S.Z,{className:"d-block",children:r.tel})]})}),(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"email",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelEmail")})}),(0,i.jsx)("input",{type:"email",ref:u.email,className:"form-control",id:"email",value:x.email,onChange:e=>g(t=>({...t,email:e.target.value}))}),r.email&&(0,i.jsx)(S.Z,{className:"d-block",children:r.email})]})}),B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"city",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelCity")})}),(0,i.jsx)("input",{className:"form-control",type:"text",id:"city",ref:u.city,value:x.city,onChange:e=>g({...x,city:e.target.value})}),r.city&&(0,i.jsx)(S.Z,{className:"d-block",children:r.city})]})}),(0,i.jsx)(_.Z,{xs:12,sm:6,children:(0,i.jsxs)(P.Z,{className:"mb-2",children:[(0,i.jsx)(C.Z,{for:"uf",className:"mb-25",children:(0,i.jsx)("strong",{children:O("quoteLabelUf")})}),(0,i.jsx)("input",{className:"form-control",type:"text",id:"uf",ref:u.uf,value:x.uf,onCh
1ange:e=>g({...x,uf:e.target.value})}),r.uf&&(0,i.jsx)(S.Z,{className:"d-block",children:r.uf})]})})]})]}),(0,i.jsxs)(P.Z,{check:!0,className:"mb-2",children:[(0,i.jsxs)(C.Z,{check:!0,children:[(0,i.jsx)("input",{ref:u.allow,type:"checkbox",className:"form-check-input",id:"allow",defaultChecked:!1,onChange:e=>g({...x,allow:e.target.checked})})," ",(0,i.jsxs)("span",{className:"font-small-2",children:[O("quotePrivacyAgreement0")," ",(0,i.jsx)(o(),{legacyBehavior:!0,href:q?"https://vamasa.com.mx/conteudo/politica-de-privacidad":"/conteudo/politica-de-privacidade",children:(0,i.jsx)("a",{target:"_blank",title:O("quotePrivacyAgreement1"),style:{textDecoration:"underline"},children:O("quotePrivacyAgreement1")})}),"."]})]}),r.allow&&(0,i.jsx)(S.Z,{className:"d-block",children:r.allow})]}),(0,i.jsx)(k.Z,{type:"submit",className:"btn-dental",disabled:j,children:q?O("actionRegisterCourse"):O("actionRequestBudget")})]})]})},q=l(45046),O=l(32701),E=l(10684),D=function(e){let{data:t,isOpen:l,handleToggle:n,initialProps:s}=e;return(0,i.jsxs)(q.Z,{isOpen:l,toggle:n,className:"modal-dialog-centered modal-lg",children:[(0,i.jsx)(O.Z,{toggle:n}),(0,i.jsx)(E.Z,{children:(0,i.jsx)(B,{data:t,handleSuccess:n,initialProps:s})})]})},A=l(56941),R=l(91121),M=l(78268),L=l(60329),W=l(63878),z=l.n(W),G=l(36895),V=l(13152),U=function(e){var t,l,s;let{initialProps:o,productTitle:a,onOpenFormModal:d}=e,{dental:r,themeSettings:c}=null!=o?o:{},{t:u}=(0,T.$G)("common"),m=(0,G.Z)(null==r?void 0:r.whats,null==r?void 0:null===(l=r.countryRules)||void 0===l?void 0:null===(t=l.phone)||void 0===t?void 0:t.countryCodePrefix),v="".concat(u("messageRequestBudgetViaWhatsapp"),' "').concat(a,'"'),p="https://api.whatsapp.com/send?phone=".concat(m,"&text=").concat(v),h=["7PhdaDMCZ5BDdkTIcE8Y","eJ9Eql8YtZ8F6YjUK2TJ","eJ1ff8kZxzhM96hxpLDU"].includes(r.id),[x,g]=(0,n.useState)(!h);function j(){if(null==r?void 0:r.budgetByWhatsapp)return window.open((0,V.NC)({href:p,dental:r}));if((null==r?void 0:r.budgetByForm)&&!h){d();return}return window.open((0,V.NC)({href:p,dental:r}))}return(0,i.jsxs)("div",{className:"".concat(z().widgetProductBudget),children:[x?(0,i.jsx)(A.Z,{className:z().card,children:(0,i.jsxs)(R.Z,{children:[(0,i.jsx)("button",{className:z().closeButton,onClick:function(){g(!1)},"aria-label":"Fechar",children:(0,i.jsx)(M.Z,{size:18})}),(0,i.jsxs)("p",{children:[(0,i.jsx)("strong",{children:(null==c?void 0:c.modalCallMeBudgetPage)?null==c?void 0:c.modalCallMeBudgetPage:u("modalCallMeBudgetPage")}),(0,i.jsx)("span",{children:u("clickHereToTalkToUs")})]}),(0,i.jsx)("a",{className:"btn btn-success trigger-gtm-whats",color:"success",onClick:j,target:"_blank",children:(0,i.jsx)("span",{children:u("actionSendMessage")})})]})}):"",(0,i.jsx)("a",{className:"".concat(z().button," ").concat(z()[null==c?void 0:null===(s=c.components)||void 0===s?void 0:s.bgWhite]),onClick:j,target:"_blank",children:(0,i.jsx)(L.Z,{color:"#FFF",size:30})})]})},H=l(92528),J=l(80628),Q=l(69447),Y=l(24002),X=l(30172),$=l(95186),K=l(58725),ee=l.n(K);X.Z.use([$.Z]);var et=function(e){let{isOpen:t,handleToggle:l,photoToZoom:s,images:o}=e,a=(0,n.useRef)(null);return(0,i.jsxs)(q.Z,{isOpen:t,toggle:l,className:"".concat(ee().photoGallery," modal-dialog-centered modal-xl"),children:[(0,i.jsx)(O.Z,{toggle:l,children:"Zoom"}),(0,i.jsx)(E.Z,{children:(0,i.jsxs)(Q.t,{navigation:{prevEl:".customPrevPhotoGallery",nextEl:".customNextPhotoGallery"},className:ee().swiper,ref:a,onInit:function(){a.current.swiper.slideTo(s)},children:[o.map((e,t)=>(0,i.jsx)(Y.o,{children:(0,i.jsx)("img",{src:e["800x800"]})},"".concat(t))),(0,i.jsx)(H.Z,{className:"".concat(ee().customNav," customNav customPrev customPrevPhotoGallery")}),(0,i.jsx)(J.Z,{className:"".concat(ee().customNav," customNav customNext customNextPhotoGallery")})]})})]})},el=l(7530),ei=l(59092),en=l(70506),es=l(22668),eo=l(36955),ea=l(49573),ed=function(e){var t;let{data:l,initialProps:s}=e,{categories:o}=s||{},{productId:a,categoryId:d}=l,[r,c]=(0,n.useState)({}),[u,p]=(0,n.useState)(!1),{t:h}=(0,ea.$G)("common");async function x(e){try{p(!0);let t=await (0,N.v)("".concat(m.Y,"/getProductShowcase?sellerId=").concat(v.fixId,"&productId=").concat(a,"&parentId=").concat(e,"&nationalities=").concat(v.nationalities),{method:"GET",requestedTokenType:"guest"});if(200!==t.status)return p(!1);t=await t.json(),c(t),p(!1)}catch(e){return p(!1)}}return((0,n.useEffect)(()=>{var e,t;if(a&&d&&(null==o?void 0:null===(e=o.categories)||void 0===e?void 0:e.length))try{let e=null==o?void 0:null===(t=o.categories.find(e=>(null==e?void 0:e.id)===d))||void 0===t?void 0:t.parent[0];if(!e)return;x(e)}catch(e){console.log(e)}},[a,d]),u)?(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)(eo.Z,{color:"success"})}):(null==r?void 0:null===(t=r.items)||void 0===t?void 0:t.length)?(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)(es.Z,{index:0,data:{...r,label:h("youCanLikeThisProductsToo")},initialProps:s})}):(0,i.jsx)("div",{})},er=l(58071),ec=l(6555),eu=l(98595),em=l(65881),ev=l(26238),ep=l(68103),eh=l(17354),ex=l(17834),eg=l(609),ej=l(36595),ey=l(78647),ef=l(73549),eb=l(34588),eN=l(46445),ew=l(73973),eZ=l(33299),eI=l(75090),e_=l(56528),eP=l(51906),eC=l.n(eP),eS=l(56392),ek=l(72929);let eT=e=>{let{product:t,quantity:l,quantityOptions:n,initialProps:s}=e,o="family"===t.type?Object.values(n).reduce((e,t)=>
1e+=Number(t),1):l;return(0,i.jsx)(ek.Z,{productsOnCart:[{...t,quantity:o}],isInProductPage:!0,totalInDiscounts:t.discounts,initialProps:s,callbackChange:()=>{}})};var eF=l(71061);function eB(e){var t;let{product:l,paymentMethods:n,priceMode:s,currencyRules:o}=e,a=null==n?void 0:null===(t=n.methods)||void 0===t?void 0:t.reduce((e,t)=>{let l=(null==e?void 0:e.discount)||0;return((null==t?void 0:t.discount)||0)>l?t:e},null==n?void 0:n.methods[0]),d=(null==l?void 0:l.price)-(null==l?void 0:l.price)*((null==a?void 0:a.discount)/100);return"discount"===(null!=s?s:"discount")&&a&&(null==a?void 0:a.discount)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"customProduct__price text-price",style:{fontWeight:"500"},children:[(0,i.jsx)("strong",{children:(0,eF.T)(d,o)})," ",(0,i.jsxs)("span",{className:"font-small-3 text-muted",children:["no ",a.title]})]}),(0,i.jsxs)("span",{className:"d-block font-small-3",children:["ou ",l.formattedPrice," nas demais condi\xe7\xf5es"]})]}):(0,i.jsx)(i.Fragment,{children:a&&(null==a?void 0:a.discount)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"customProduct__price text-price",children:l.formattedPrice}),(0,i.jsxs)("span",{className:"text-success font-small-3",style:{fontWeight:"500"},children:[(0,i.jsx)("b",{children:(0,eF.T)(d,o)})," ",(0,i.jsxs)("b",{children:["no ",a.title]})]})]}):(0,i.jsx)("span",{className:"customProduct__price text-price",children:l.formattedPrice})})}var eq=l(40171),eO=l(52278);function eE(e){var t,l,n,s;let{option:o,showConditions:a,priceMode:d}=e;return a?"discount"===(null!=d?d:"discount")&&o.biggerDiscount?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("strong",{className:"d-block font-small-2 text-muted",style:{whiteSpace:"nowrap"},children:null===(n=o.biggerDiscount)||void 0===n?void 0:n.price}),(0,i.jsxs)("span",{className:"d-block font-small-1 text-muted",children:[(0,i.jsxs)("strong",{children:["no ",null===(s=o.biggerDiscount)||void 0===s?void 0:s.method]})," ou ",o.formattedPrice," nas demais condi\xe7\xf5es"]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"d-block text-price",style:{whiteSpace:"nowrap"},children:o.formattedPrice}),o.biggerDiscount&&(0,i.jsxs)("strong",{className:"d-block font-small-2 text-success",children:[null===(t=o.biggerDiscount)||void 0===t?void 0:t.price," no ",null===(l=o.biggerDiscount)||void 0===l?void 0:l.method]})]}):(0,i.jsx)(i.Fragment,{})}var eD=l(36694);function eA(e){let{files:t}=e,{t:l}=(0,ea.$G)("common");return(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("p",{children:(0,i.jsxs)("strong",{children:[l("moreInfoAboutProduct"),":"]})}),(0,i.jsx)("ul",{style:{listStyle:"none",padding:0},children:t.map((e,t)=>(0,i.jsx)("li",{children:(0,i.jsxs)("a",{className:"text-primary",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,i.jsx)(eD.Z,{size:15})," ",function(e){let t={catalog:l("attachmentTypeCatalog"),manual:l("attachmentTypeManual"),colors:l("attachmentTypeColors")};return(console.log(e),console.log(t),"other"===e.category)?e.otherCategory||l("attachmentTypeOther"):t[e.category]||e.category}(e)]})},t))})]})}function eR(e){var t;let{product:l,paymentMethods:n,priceMode:s,isLoaded:o,currencyRules:a}=e,{t:d}=(0,T.$G)("common"),r=null==n?void 0:null===(t=n.methods)||void 0===t?void 0:t.reduce((e,t)=>{let l=(null==e?void 0:e.discount)||0;return((null==t?void 0:t.discount)||0)>l?t:e},null==n?void 0:n.methods[0]),c=(null==l?void 0:l.price)-(null==l?void 0:l.price)*((null==r?void 0:r.discount)/100);return o?!1===l.childrenAvailable?null:"discount"===(null!=s?s:"discount")&&r&&(null==r?void 0:r.discount)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-small-2 p-title-subtitle-color",children:l.titleInFamily?"".concat(d("productVariation"),": ").concat(l.titleInFamily):"".concat(d("priceFrom"),":")}),(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"customProduct__price text-price",style:{fontWeight:"500"},children:[(0,i.jsx)("strong",{children:(0,eF.T)(c,a)})," ",(0,i.jsxs)("span",{className:"font-small-3 text-muted p-title-subtitle-color",children:["no ",r.title]})]}),(0,i.jsxs)("span",{className:"d-block font-small-3 p-title-subtitle-color",children:["ou ",l.formattedPrice," nas demais condi\xe7\xf5es"]})]}):(0,i.jsx)(i.Fragment,{children:r&&(null==r?void 0:r.discount)>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-small-2",children:l.titleInFamily?"".concat(d("productVariation"),": ").concat(l.titleInFamily):"".concat(d("priceFrom"),":")}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"customProduct__price text-price",children:l.formattedPrice}),(0,i.jsxs)("span",{className:"text-success font-small-3",style:{fontWeight:"500"},children:[(0,i.jsx)("b",{children:(0,eF.T)(c,a)})," ",(0,i.jsxs)("b",{children:["no ",r.title]})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-small-2",children:l.titleInFamily?"".concat(d("productVariation"),": ").concat(l.titleInFamily):"".concat(d("priceFrom"),":")}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"customProduct__price text-price",children:l.formattedPrice})]})}):(0,i.jsx)(eo.Z,{color:"success"})}var eM=l(36656);let eL="https://schema.org/InStock",eW="https://schema.org/OutOfStock",ez="https://schema.org/NewCondition";function eG(e){let{basePrice:t,discount:l,priceMode:i}=e;return"discount"===(null!=i?i:"discount")&&l>0?l&&!(l<=0)?t-l/100*t:t:t}function eV(e){let{internalId:t,sellerId:l}=e;return"P8OPITpuFyJNIfnjeEHg"===l&&t?"".concat(t,"B"):t}function eU(){let e=new Date;return e.setDate(e.getDate()+2),e.toISOString().split("T")[0]}function eH(e){return(e.images||[]).map(e=>
1null==e?void 0:e["800x800"]).filter(Boolean)}function eJ(e){return!!(null==e?void 0:e.available)&&Number(null==e?void 0:e.units)>0&&!(null==e?void 0:e.needsBudget)}function eQ(e){return Number(null==e?void 0:e.price)>0&&!(null==e?void 0:e.needsBudget)}function eY(e){var t,l;let{product:n,paymentMethods:s,priceMode:o,url:a,currencyRules:d,sellerId:r,sellerName:c,isNotPriced:u}=e;if(u||!(null==n?void 0:n.reviewed)||!(null==n?void 0:n.active))return null;let m="family"===n.type;if(!m&&!n.internalId||m&&!((null===(t=n.options)||void 0===t?void 0:t.length)>0))return null;let v=(null==d?void 0:d.code)||"BRL",p=(null===(l=function(e){let t=null==e?void 0:e.methods;return(null==t?void 0:t.length)?t.reduce((e,t)=>{let l=(null==e?void 0:e.discount)||0;return((null==t?void 0:t.discount)||0)>l?t:e},t[0]):null}(s))||void 0===l?void 0:l.discount)||0,h=m?function(e){let{product:t,discount:l,priceMode:i,currency:n,url:s,sellerId:o,sellerName:a}=e,d=(t.options||[]).filter(eQ);return d.length?d.map(e=>{let t=eG({basePrice:e.price,discount:l,priceMode:i}),d=eV({internalId:e.internalId,sellerId:o}),r={"@type":"Offer",url:s,priceCurrency:n,...d&&{sku:d},itemCondition:ez,availability:eJ(e)?eL:eW,priceValidUntil:eU(),price:t.toFixed(2)};return a&&(r.seller={"@type":"Organization",name:a}),r}):null}({product:n,discount:p,priceMode:o,currency:v,url:a,sellerId:r,sellerName:c}):function(e){let{product:t,discount:l,priceMode:i,url:n,currency:s,sellerName:o}=e,a={"@type":"Offer",url:n,priceCurrency:s,itemCondition:ez,availability:eJ(t)?eL:eW,priceValidUntil:eU()};if(eQ(t)){let e=eG({basePrice:t.price,discount:l,priceMode:i});a.price=e.toFixed(2)}return o&&(a.seller={"@type":"Organization",name:o}),a}({product:n,discount:p,priceMode:o,url:a,currency:v,sellerName:c}),x=function(e){var t,l;let i=((l=null==e?void 0:e.description)?(0,eM.Jx)(l.replace(/<[^>]*>/g," ")).replace(/\s+/g," ").trim():"")||(null==e?void 0:null===(t=e.title)||void 0===t?void 0:t.trim())||"";return i.length>5e3?i.slice(0,5e3).trim():i}(n),g={"@context":"https://schema.org","@type":"Product",name:n.title,...x&&{description:x},...eH(n).length>0&&{image:eH(n)},...a&&{url:a},sku:m?n.id:eV({internalId:n.internalId,sellerId:r}),...n.providerCode&&{mpn:n.providerCode},...n.brand&&{brand:{"@type":"Brand",name:n.brand}},...h&&{offers:h}};return(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(g)}})}var eX=l(76931),e$=l(14972);function eK(e){var t;return(null==e?void 0:null===(t=e.replace("<iframe","<span class='responsiveVideo'><iframe"))||void 0===t?void 0:t.replace("/iframe>","/iframe></span>"))||""}var e0=!0,e1=(0,h.$j)(e=>({cart:e.cart}),{addToCart:x.Xq,setShowFooterWidgets:e=>t=>{t({type:"CHANGE_SHOW_FOOTER_WIDGETS",data:e})}})(function(e){var t,l,s,a,c,h,x,j,y,f,b,Z,P,C,S,T,F,q,O;let{serverSideProps:E,initialProps:A,...M}=e,{dental:L,categories:W,themeSettings:z,paymentMethods:H}=A||{},J=null==L?void 0:null===(t=L.countryRules)||void 0===t?void 0:t.currency,[Q,Y]=(0,n.useState)(()=>{var e;return(0,eS.D)(null==L?void 0:null===(e=L.google)||void 0===e?void 0:e.gtmId)});(0,n.useEffect)(()=>{Q||(0,eS.w)().then(e=>{let{gtmId:t}=e;return Y((0,eS.D)(t))})},[]);let{initialData:X,productComplementaryImage:$,url:K,seoData:ee}=E||{},{cart:es,addToCart:eP,setShowFooterWidgets:ek}=M,eF=(0,r.useRouter)(),{productSlug:eD,qtd:eM}=eF.query,{data:eL}=(0,eZ.useSession)(),[eW,ez]=(0,n.useState)(!0),[eG,eV]=(0,n.useState)(!1),[eU,eH]=(0,n.useState)(1),[eJ,eQ]=(0,n.useState)({}),[e0,e1]=(0,n.useState)(null),[e5,e2]=(0,n.useState)(X),[e9,e3]=(0,n.use
1State)(!1),[e6,e8]=(0,n.useState)({}),e7={photoToShow:{src:(null==X?void 0:null===(l=X.images)||void 0===l?void 0:l.length)>0?X.images[0]["300x300"]:null,index:0},idDynamicInfo:(null==X?void 0:X.options)&&(null==X?void 0:null===(s=X.options[0])||void 0===s?void 0:s.id)||null,breadcrumbItems:function(){try{if(!(null==X?void 0:X.id))return[];let e=null==W?void 0:W.categories.filter(e=>(null==e?void 0:e.id)===X.categories[0])[0],t=null==W?void 0:W.parentCategories.filter(t=>(null==t?void 0:t.id)===e.parent[0])[0],l=[{url:"/",label:"Home"}];return l.push({url:"/categoria/".concat(t.slug,"/index"),label:t.title}),l.push({url:"/categoria/".concat(t.slug,"/").concat(e.slug),label:e.title}),l.push({label:X.title,active:!0}),l}catch(e){return console.log(e),[]}}()},[e4,te]=(0,n.useState)(e7.photoToShow),[tt,tl]=(0,n.useState)(e7.idDynamicInfo),[ti,tn]=(0,n.useState)(e7.breadcrumbItems),[ts,to]=(0,n.useState)(null),[ta,td]=(0,n.useState)(!1),[tr,tc]=(0,n.useState)(null),[tu,tm]=(0,n.useState)(null),[tv,tp]=(0,n.useState)(!1),[th,tx]=(0,n.useState)(""),[tg,tj]=(0,n.useState)(""),ty=(null==L?void 0:L.id)==="P8OPITpuFyJNIfnjeEHg",tf=(null==L?void 0:L.id)!=="A6AzXXIB6Q6Yqa5lBlhE"||!e5.needsBudget,tb=(null==e5?void 0:e5.type)==="family"&&!((null==e5?void 0:null===(a=e5.options)||void 0===a?void 0:a.length)>0),{t:tN}=(0,ea.$G)("common"),{texts:tw}=z||{},tZ={title:"".concat((null==ee?void 0:ee.title)||"".concat((null==X?void 0:X.title)?"".concat(X.title," ").concat(null==X?void 0:X.brand," - "):"")," - ").concat(null==L?void 0:L.name),description:(null==ee?void 0:ee.description)||(null==X?void 0:X.legend),keywords:(null==ee?void 0:ee.keywords)||"",url:K,image:(null==X?void 0:null===(c=X.images)||void 0===c?void 0:c.length)>0?null==X?void 0:X.images[0]["800x800"]:"https://catalogomaisodonto.com.br/images/catalogo-mais-odonto.png"};async function tI(){try{var e,t;if(!(null==e5?void 0:e5.alert)||(null==L?void 0:L.type)!=="ecommerce")return!0;if(!(null==eL?void 0:null===(e=eL.user)||void 0===e?void 0:e.id)&&!(null==L?void 0:L.allowsCartWithoutLogin)||!(null==eL?void 0:null===(t=eL.user)||void 0===t?void 0:t.id))return!1;let l=await (0,N.v)("".concat(m.Y,"/getPermissionToAddToCart?userId=").concat(eL.user.id,"&sellerId=").concat(null==L?void 0:L.id),{method:"GET",requestedTokenType:"guest"});if(200!==l.status)return!1;return l=await l.json()}catch(e){return!1}}async function t_(e){var t;let{productId:l,quantity:i}=e,n=await (0,N.v)("".concat(m.Y,"/addToCart"),{method:"POST",requestedTokenType:"guest",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:null==eL?void 0:null===(t=eL.user)||void 0===t?void 0:t.id,sellerId:null==L?void 0:L.id,productId:l,quantity:i})});return await n.json()}async function tP(e,t,l,i,n){let{buyNow:s=!1}=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=s?tm:tc;try{var a,d,r,c,u,m;if((null==L?void 0:L.type)==="ecommerce"&&!(null==L?void 0:L.allowsCartWithoutLogin)&&!(null==eL?void 0:null===(a=eL.user)||void 0===a?void 0:a.id)||(null==L?void 0:L.type)==="ecommerce"&&(null==e5?void 0:e5.alert)&&!(null==eL?void 0:null===(d=eL.user)||void 0===d?void 0:d.id))return td(!0);if(o(e),!await tI())return o(null),w.Am.error(tN("messageNeedsDocToBuy"),{autoClose:2e4});if(((null===(c=es[v.fixId])||void 0===c?void 0:null===(r=c.products)||void 0===r?void 0:r[e])||0)+parseInt(l)>n)return o(null),w.Am.error(tN("messageOnlyUnitsAvailableInStock",{units:n}));let h=null;if((null==L?void 0:L.type)==="ecommerce"&&(null==eL?void 0:null===(u=eL.user)||void 0===u?void 0:u.id)&&(h=await t_({productId:e,quantity:l||1})),eP({dentalId:null==L?void 0:L.id,productId:e,quantityToAdd:l||1,unitPrice:i,cartUpdated:h}),function(e){try{var t,l,i,n;if(!(0,e$.pV)(L))return;let s=e.quantity?parseInt(e.quantity):1,o="family"===e5.type&&(null===(t=e5.options)||void 0===t?void 0:t.find(t=>t.id===e.id))||e5,a=null===(l=e5.categories)||void 0===l?void 0:l[0];(0,e$.L9)(L,"add_to_cart",{currency:(null==L?void 0:null===(n=L.countryRules)||void 0===n?void 0:null===(i=n.currency)||void 0===i?void 0:i.code)||"BRL",value:s*e.price,items:[{item_id:e.id,item_name:e.title,item_brand:e.brand,price:e.price,quantity:s,...tC(o,a)}]})}catch(e){console.log(e)}}({id:e,title:t,quantity:l||1,brand:e5.brand,price:i}),function(e){try{var t;let l=e.quantity?parseInt(e.quantity):1,i="family"===e5.type&&(null===(t=e5.options)||void 0===t?void 0:t.find(t=>
1t.id===e.id))||e5,n={product_id:e5.id,product_title:e5.title,quantity:l,price:e.price};e5.slug&&(n.product_url="".concat(v.fixUrl,"/").concat(e5.slug)),"family"===e5.type&&e.id!==e5.id&&(n.variant_id=e.id,n.variant_title=e.title);let s=i.internalId||e5.internalId;s&&(n.sku=s),n.viewed_at=window.location.href;let o=tS(e5);o.length&&(n.categories=o),(0,eX.f)("ECOMMERCE_PRODUCT_ADDED_TO_CART",n)}catch(e){console.error("RD Tracker add to cart failed",{error:e instanceof Error?e.message:e})}}({id:e,title:t,quantity:l||1,price:i}),s){let e=(null==L?void 0:L.type)==="ecommerce"&&!(null==eL?void 0:null===(m=eL.user)||void 0===m?void 0:m.id);return eF.push(e?"/login?destino=".concat("finalizar-pedido"):(0,p.route)("checkout"))}return o(null),w.Am.success(tN("messageAddToCart"))}catch(e){console.log(e),o(null),w.Am.error(tN("errorAction"))}}function tC(e,t){var l,i;let{item_category:n,item_category_id:s}=function(e){var t,l,i;if(!e)return{item_category:"",item_category_id:""};let n=null==W?void 0:null===(t=W.categories)||void 0===t?void 0:t.find(t=>(null==t?void 0:t.id)===e);if(!n)return{item_category:"",item_category_id:e};let s=null===(l=n.parent)||void 0===l?void 0:l[0],o=null==W?void 0:null===(i=W.parentCategories)||void 0===i?void 0:i.find(e=>(null==e?void 0:e.id)===s);return{item_category:o?"".concat(o.title,"~").concat(n.title):n.title,item_category_id:e}}(t),o=e.slug||e5.slug;return{item_category:n,item_category_id:s,image_url:(null===(i=e.images)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l["300x300"])||"",item_url:o?"".concat(v.fixUrl,"/").concat(o):""}}function tS(e){return Array.isArray(null==e?void 0:e.categoriesTitle)&&e.categoriesTitle.length?e.categoriesTitle:Array.isArray(null==e?void 0:e.categories)?e.categories.map(e=>{var t,l;return null==W?void 0:null===(l=W.categories)||void 0===l?void 0:null===(t=l.find(t=>(null==t?void 0:t.id)===e))||void 0===t?void 0:t.title}).filter(Boolean):[]}(0,n.useEffect)(()=>{!async function(){if(null==X?void 0:X.id){eV(!0);try{var e;let t=null==X?void 0:null===(e=X.options)||void 0===e?void 0:e.map(e=>e.id).join(","),l=new URLSearchParams({productId:X.id,nationalities:v.nationalities});t&&l.append("optionIds",t);let i=await fetch("/api/product-specific-data?".concat(l.toString()),{method:"GET"});if(200!==i.status){e2({...X,descriptionFormatted:eK(X.description)});return}let n=await i.json(),s={...X,...n,descriptionFormatted:eK(X.description)};(null==X?void 0:X.options)&&(null==n?void 0:n.options)&&(s.options=X.options.map(e=>{let t=n.options.find(t=>t.id===e.id);return t?{...e,...t}:e})),e2(s)}catch(e){console.log("Erro ao buscar dados din\xe2micos:",e),e2({...X,descriptionFormatted:eK(X.description)})}finally{te(e7.photoToShow),tl(e7.idDynamicInfo),tn(e7.breadcrumbItems),eV(!1)}}}()},[null==X?void 0:X.id]);let tk=(0,eI.st)(L);function tT(){if((null==L?void 0:L.budgetByWhatsapp)&&(null==L?void 0:L.budgetByForm)||!(null==L?void 0:L.budgetByWhatsapp)&&!(null==L?void 0:L.budgetByForm))return to({id:e5.id,title:"".concat(e5.title," - ").concat(e5.brand),internalId:e5.internalId});if(null==L?void 0:L.budgetByWhatsapp){var e,t;let l=(0,G.Z)(null==L?void 0:L.whats,null==L?void 0:null===(t=L.countryRules)||void 0===t?void 0:null===(e=t.phone)||void 0===e?void 0:e.countryCodePrefix),i="".concat(tN("messageRequestBudgetViaWhatsapp"),' "').concat(e5.title,'"'),n="https://api.whatsapp.com/send?phone=".concat(l,"&text=").concat(i);return window.open((0,V.NC)({href:n,dental:L}))}return to({id:e5.id,title:"".concat(e5.title," - ").concat(e5.brand),internalId:e5.internalId})}return((0,n.useEffect)(()=>{eM&&eH(parseInt(eM))},[eM]),(0,n.useEffect)(()=>{var e,t;if(null===(e=Object.keys(e5||{}))||void 0===e?void 0:e.length)return ek(!(e5.needsBudget||(null===(t=e5.options)||void 0===t?void 0:t.some(e=>null==e?void 0:e.needsBudget)))),()=>{ek(!0)}},[e5]),(0,n.useEffect)(()=>(null==L?void 0:L.isNotPriced)?tp(!1):(null==e5?void 0:e5.type)==="family"&&(null==e5?void 0:e5.available)&&!e5.options.every(e=>null==e?void 0:e.needsBudget)||(null==e5?void 0:e5.type)!=="family"&&(null==e5?void 0:e5.available)?tp(!0):void tp(!1),[e5,L]),(0,n.useEffect)(()=>{var e;let t=null==eL?void 0:null===(e=eL.user)||void 0===e?void 0:e.id;(null==L?void 0:L.hasSfmcBrowse)&&(null==e5?void 0:e5.id)&&t&&(null==L?void 0:L.id)&&(0,N.v)("".concat(m.q,"/registerProductView"),{method:"POST",requestedTokenType:"user",headers:{"Content-Type":"application/json"},body:JSON.stringify({sellerId:L.id,productId:e5.id,url:e5.slug?"".concat(v.fixUrl,"/").concat(e5.slug):void 0})}).catch(()=>{})},[null==e5?void 0:e5.id,null==e5?void 0:e5.slug,null==eL?void 0:null===(h=eL.user)||void 0===h?void 0:h.id,null==L?void 0:L.id,null==L?void 0:L.hasSfmcBrowse]),(0,n.useEffect)(()=>{var e;if(!e5||!Q)return;let t=null===(e=e5.categories)||void 0===e?void 0:e[0],l=JSON.stringify({event:"view_item",ecommerce:{items:[{id:e5.id,name:e5.title,item_name:e5.title,item_id:e5.id,item_brand:e5.brand,price:e5.price,quantity:1,...tC(e5,t)}]}});tx("\n          dataLayer.push({ ecommerce: null });\n          dataLayer.push(".concat(l,");\n        "))},[e5,Q]),(0,n.useEffect)(()=>{try{var e,t;if(!e5||!(0,e$.pV)(L))return;let l=null===(e=e5.categories)||void 0===e?void 0:e[0];if("family"!==e5.type){(0,e$.L9)(L,"view_item",{items:[{id:e5.id,name:e5.title,brand:e5.brand,price:e5.price,item_id:e5.id,item_name:e5.title,item_brand:e5.brand,quantity:1,...tC(e5,l)}]});return}(0,e$.L9)(L,"view_item",{items:null===(t=e5.options)||void 0===t?void 0:t.map(e=>({id:e.id,name:e.title,brand:e.brand,price:e.price,item_id:e.id,item_name:e.title,item_brand:e.brand,quantity:1,...tC(e,l)}))})}catch(e){console.log(e)}},[null==e5?void 0:e5.id]),(0,n.useEffect)(()=>{try{var e,t,l;if(!(null==e5?void 0:e5.id)||!(null==e5?void 0:e5.title))return;let i=null!==(l=e5.price)&&void 0!==l?l:null===(t=e5.options)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.price;if(null==i)return;let n={product_id:e5.id,product_title:e5.title,price:i};e5.slug&&(n.product_url="".concat(v.fixUrl,"/").concat(e5.slug)),e5.internalId&&(n.sku=e5.internalId),n.viewed_at=window.location.href;let s=tS(e5);s.length&&(n.categories=s),(0,eX.f)("ECOMMERCE_PRODUCT_VISITED",n)}catch(e){console.error("RD Tracker product visited failed",{error:e instanceof Error?e.message:e})}},[null==e5?void 0:e5.id]),(0,n.useEffect)(()=>
1{if(!ty||!(null==e5?void 0:e5.internalId))return;let e=document.createElement("script");return e.src="https://widgets.rr.skeepers.io/product/bc492d2f-d656-d644-d5c7-1d32a80ba216/78b867d0-e55b-4553-9fee-124904521c3d.js?cb=".concat(Date.now()),e.charset="utf-8",e.async=!0,document.body.appendChild(e),()=>{e.remove()}},[ty,null==e5?void 0:e5.internalId]),eF.isFallback)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d(),{children:(0,i.jsx)("title",{children:null==L?void 0:L.name})}),(0,i.jsx)("div",{style:{minHeight:"600px"},className:"d-flex justify-content-center mt-3",children:(0,i.jsx)(eo.Z,{color:"success",size:"200"})})]}):eF.isFallback||(null==e5?void 0:e5.reviewed)?(0,i.jsxs)(g.Z,{initialProps:A,hasPageHeading:!0,children:[(0,i.jsxs)(d(),{children:[(0,i.jsx)("title",{children:tZ.title}),(0,i.jsx)("meta",{name:"robots",content:"INDEX,FOLLOW"}),(0,i.jsx)("meta",{name:"title",content:tZ.title}),(0,i.jsx)("meta",{name:"description",content:tZ.description}),tZ.keywords&&(0,i.jsx)("meta",{name:"keywords",content:tZ.keywords}),(0,i.jsx)("meta",{property:"og:title",content:tZ.title}),(0,i.jsx)("meta",{property:"og:url",content:tZ.url}),(0,i.jsx)("meta",{property:"og:description",content:tZ.description}),(0,i.jsx)("meta",{property:"og:image",content:tZ.image}),(0,i.jsx)("meta",{property:"og:image:alt",content:null==L?void 0:L.name}),(0,i.jsx)("meta",{property:"og:type",content:"Website"}),(0,i.jsx)("meta",{property:"og:locale",content:v.ogLocale}),(0,i.jsx)("link",{rel:"canonical",href:tZ.url})]}),(0,i.jsx)(eY,{product:e5,paymentMethods:H,priceMode:null==z?void 0:z.priceMode,url:tZ.url,currencyRules:J,sellerId:null==L?void 0:L.id,sellerName:null==L?void 0:L.name,isNotPriced:null==L?void 0:L.isNotPriced}),(0,i.jsxs)(eu.Z,{className:"ecommerce-application mt-3",children:[(0,i.jsx)(el.Z,{initialProps:A,className:"mb-2",children:ti.map((e,t)=>(0,i.jsxs)(em.Z,{active:e.active,children:[e.url&&(0,i.jsx)(o(),{legacyBehavior:!0,href:e.url,className:"text-body",style:{textDecoration:"underline"},children:(0,i.jsxs)("a",{children:[" ",e.label," "]})}),!e.url&&(0,i.jsx)("span",{children:e.label})]},t))}),(0,i.jsx)(ei.Z,{initialProps:A,className:"overflow-hidden app-ecommerce-details customProduct",children:(0,i.jsxs)(R.Z,{children:[(null===(x=Object.keys(e5||{}))||void 0===x?void 0:x.length)>0&&e5.active&&(0,i.jsxs)(I.Z,{className:"my-lg-5",children:[(0,i.jsxs)(_.Z,{className:"d-flex justify-content-center mb-2 mb-md-0",sm:"12",lg:"4",children:[!eW&&(0,i.jsx)(eo.Z,{color:"success"}),eW&&(null===(j=e5.images)||void 0===j?void 0:j.length)>0&&(0,i.jsxs)("div",{className:eC().photos,children:[(0,i.jsx)("ul",{children:e5.images.map((e,t)=>(0,i.jsx)("li",{onClick:()=>te({src:e["300x300"],index:t}),onTouchEnd:()=>te({src:e["300x300"],index:t}),children:(0,i.jsxs)("div",{children:[(0,i.jsx)("img",{src:e["50x50"],alt:e5.title}),(0,i.jsx)("div",{})]})},t))}),(0,i.jsxs)("div",{className:eC().globalImgWrapper,children:[(0,i.jsxs)("div",{className:eC().globalImg,id:"target-zoom",children:[(0,i.jsx)("div",{}),(0,i.jsx)("img",{src:e4.src,alt:e5.title,onClick:()=>e1(e4.index)}),(0,i.jsx)(ey.Z,{className:eC().zoom}),(0,i.jsx)(ev.Z,{trigger:"hover",placement:"bottom-end",target:"target-zoom",children:(0,i.jsx)(ep.Z,{className:"px-1 py-50",children:tN("clickToZoom")})}),e5.smallStimulus&&(0,i.jsx)(eh.Z,{className:"".concat(eC().smallStimulus," ").concat(eC()[null==z?void 0:null===(y=z.components)||void 0===y?void 0:y.bgWhite]," ").concat(eC().stimulusAdjustment),color:"warning",children:e5.smallStimulus}),e5.discount>0&&(0,i.jsx)(eh.Z,{className:eC().discount,color:"warning",children:(0,i.jsxs)(i.Fragment,{children:["family"===e5.type&&"".concat(tN("until")," "),"-",e5.discount,"%"]})})]}),(null==z?void 0:null===(f=z.components)||void 0===f?void 0:f.showImageIllustrativeNote)&&(0,i.jsx)("p",{className:"font-small-2 text-muted mt-25 text-center mb-0",children:tN("imageIllustrativeNote")})]})]})]}),(0,i.jsxs)(_.Z,{lg:"8",sm:"12",children:[(0,i.jsxs)("h1",{className:"p-title-subtitle-color",children:[e5.title," - ",null==e5?void 0:e5.brand]}),(null==L?void 0:L.yourviewsCode)&&(0,i.jsx)("div",{id:"yv-review-quickreview",value:"family"!==e5.type?e5.internalId:e5.id}),eG&&(0,i.jsx)("div",{className:"mb-2",children:(0,i.jsx)(eo.Z,{color:"success",size:"sm"})}),!eW&&(0,i.jsx)(eo.Z,{color:"success"}),eW&&e5.legend&&(0,i.jsx)("p",{className:"mb-50 p-title-subtitle-color",children:e5.legend}
1),ty&&(null==e5?void 0:e5.internalId)&&(0,i.jsx)("div",{className:"skeepers_product__stars","data-product-id":e5.internalId}),e5.stimulus&&(0,i.jsx)(eh.Z,{className:"".concat(eC().stimulus," ").concat(eC()[null==z?void 0:null===(b=z.components)||void 0===b?void 0:b.bgWhite]," font-small-3 p-50 mb-1"),color:"warning",children:e5.stimulus}),(null==e5?void 0:e5.warning)&&(0,i.jsx)(ex.Z,{color:"info",children:e5.warning}),e5.alert&&(0,i.jsx)(ex.Z,{color:"danger",className:"font-small-3 p-50",children:e5.alert}),"family"!==e5.type&&e5.internalId&&(0,i.jsxs)("p",{className:"mb-50 font-small-2",children:[tN("productCode"),": ",e5.internalId]}),$&&(0,i.jsx)(i.Fragment,{children:$.link?(0,i.jsx)(o(),{legacyBehavior:!0,href:$.link,children:(0,i.jsx)("a",{target:"_blank",title:$.title||"",children:(0,i.jsx)("img",{className:eC().productComplementaryImage,src:$.src,alt:$.title||""})})}):(0,i.jsx)("img",{className:eC().productComplementaryImage,src:$.src,alt:$.title||""})}),"family"!==e5.type&&(0,i.jsxs)(i.Fragment,{children:[!eG&&!e5.available&&!e5.needsBudget&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"font-medium-5 text-muted d-block mb-50",children:tN("productSoldOut")}),tk.enabled&&(0,i.jsxs)("div",{className:"d-flex align-items-center",style:{gap:"0.5rem"},children:[(0,i.jsx)(eg.Z,{type:"number",min:"1",max:"9999",value:null!==(O=e6[e5.id])&&void 0!==O?O:1,onChange:e=>e8({...e6,[e5.id]:e.target.value}),"aria-label":tN("notifyMeQuantityLabel"),title:tN("notifyMeQuantityLabel"),style:{width:"5rem"}}),(0,i.jsx)(e_.Z,{dental:L,product:{id:e5.id,slug:e5.slug,title:e5.title},quantity:e6[e5.id],style:{whiteSpace:"nowrap"}})]})]}),e5.needsBudget&&(0,i.jsx)(i.Fragment,{children:(null==L?void 0:L.budgetByWhatsapp)&&!(null==L?void 0:L.budgetByForm)?(0,i.jsx)("div",{className:"d-flex w-100 justify-content-start",children:(0,i.jsxs)(k.Z,{onClick:tT,className:"btn-dental d-flex align-items-center",children:[(0,i.jsx)("div",{className:"mr-25",children:(0,i.jsx)(eO.Z,{initialProps:A,height:30,width:30})}),tN("requestBudgetViaWhatsapp")]})}):(0,i.jsx)(B,{data:{id:e5.id,title:"".concat(e5.title," - ").concat(e5.brand),internalId:e5.internalId},className:"bg-light p-2 mt-1",initialProps:A})}),!eG&&e5.available&&!e5.needsBudget&&(0,i.jsxs)(i.Fragment,{children:[tv&&(0,i.jsxs)(i.Fragment,{children:[e5.formattedOldPrice&&(0,i.jsxs)("span",{className:"d-block text-muted",children:[tN("priceFromFor0"),":"," ",(0,i.jsx)("span",{className:"font-small-4",style:{textDecoration:"line-through"},children:e5.formattedOldPrice})," ",tN("priceFromFor1"),":"]}),(0,i.jsx)(eB,{product:e5,paymentMethods:H,priceMode:null==z?void 0:z.priceMode,currencyRules:J}),(0,i.jsx)(eq.Z,{product:e5,paymentMethods:H,currencyRules:J}),(null==e5?void 0:e5.tax)&&(0,i.jsx)("p",{className:"mb-50 font-small-2",children:"*Impuesto incluido en el valor del producto"})]}),(0,i.jsxs)("div",{className:"mb-1 mt-3",children:[(0,i.jsxs)("span",{className:"d-block mb-25",children:[tN("quantity"),":"]}),(0,i.jsx)(eg.Z,{className:"customQtd",type:"number",min:"1",max:e5.units||"99",name:"number",id:"exampleNumber",value:eU,onChange:e=>eH(e.target.value)})]}),(0,i.jsxs)(k.Z,{className:"btnAddToCart",color:"success",disabled:null!==tr||null!==tu,onClick:()=>tP(e5.id,e5.title,eU,e5.price,(null==e5?void 0:e5.units)||99),children:[tr===e5.id?(0,i.jsx)(eo.Z,{color:"white",style:{width:"15px",height:"15px"}}):(0,i.jsx)(ef.Z,{size:15}),(0,i.jsx)("span",{className:"align-middle ml-50",children:(null==tw?void 0:tw.textAddProductButton)||tN("addToCart")})]}),!0===e5.buyNowEnabled&&(0,i.jsxs)(k.Z,{outline:!0,className:"btnBuyNow ml-50",color:"success",disabled:null!==tr||null!==tu,onClick:()=>tP(e5.id,e5.title,eU,e5.price,(null==e5?void 0:e5.units)||99,{buyNow:!0}),children:[tu===e5.id?(0,i.jsx)(eo.Z,{style:{width:"15px",height:"15px"}}):(0,i.jsx)(eb.Z,{size:15}),(0,i.jsx)("span",{className:"align-middle ml-50",children:tN("buyNow")})]})]})]}),"family"===e5.type&&e5.options.length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:eC().boxChildrens,children:[tv&&(0,i.jsxs)("div",{className:"mb-1",children:[(0,i.jsx)(eR,{paymentMethods:H,product:e5,priceMode:null==z?void 0:z.priceMode,isLoaded:eW,currencyRules:J}),(0,i.jsx)(eq.Z,{product:e5,paymentMethods:H,currencyRules:J}),e5.options.some(e=>null==e?void 0:e.tax)&&(0,i.jsx)("p",{className:"mb-50 font-small-2",children:"*Impuesto incluido en el valor del producto"})]}),(0,i.jsx)(ei.Z,{initialProps:A,className:eC().cardChildrens,children:(0,i.jsx)(R.Z,{className:"p-0",children:(0,i.jsx)(ej.Z,{className:"".concat(eC().table," m-0"),children:(0,i.jsx)("tbody",{children:e5.options.map(e=>{var t,l;return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{className:"font-small-2",children:(0,i.jsx)("div",{className:"d-flex align-items-start",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{style:{color:"#5e5873",fontWeight:"600"},className:"d-block",children:e.titleInFamily}),(0,i.jsxs)("span",{className:"d-block text-secondary",children:["C\xf3d. ",e.internalId]})]})})}),(0,i.jsx)("td",{className:eC().tdInfo,children:(0,i.jsx)("div",{children:(0,i.jsxs)(k.Z,{outline:!0,size:"sm",className:"d-flex align-items-center font-small-2 ".concat(eC().btnInfo),onClick:()=>(function(e){var t;tl(e);let l=e5.options.filter(t=>(null==t?void 0:t.id)===e)[0];e2({...e5,images:l.images||[],legend:l.legend,description:l.description,descriptionFormatted:eK(l.description),price:l.price,formattedPrice:l.formattedPrice,titleInFamily:l.titleInFamily,...void 0!==l.available&&{childrenAvailable:l.available}}
1),te({src:(null==l?void 0:null===(t=l.images)||void 0===t?void 0:t.length)>0?l.images[0]["300x300"]:null,index:0})})(e.id),children:[tt===e.id&&(0,i.jsx)(eN.Z,{size:"15",className:"mr-25",color:"#28c76f"}),tt!==e.id&&(0,i.jsx)(ew.Z,{size:"15",className:"mr-25"}),"Ver info"]})})}),e.smallStimulus?(0,i.jsxs)("td",{className:eC().columnStimulus,children:[(0,i.jsxs)(eh.Z,{id:"PopoverStimulus".concat(e.id),className:"".concat(eC().childrenStimulus," font-small-3 p-25"),color:"warning",children:[e.smallStimulus,e.stimulus&&(0,i.jsx)(ew.Z,{className:"ml-50 d-inline-flex",size:"15"})]}),e.stimulus&&(0,i.jsx)(ev.Z,{trigger:"hover",placement:"bottom",target:"PopoverStimulus".concat(e.id),children:(0,i.jsxs)(ep.Z,{children:[(0,i.jsx)("strong",{children:e.smallStimulus}),(0,i.jsx)("br",{}),e.stimulus]})})]}):(0,i.jsx)("td",{}),!eG&&!e.available&&!e.needsBudget&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("td",{className:"".concat(eC().tdOut," text-start"),colSpan:tk.enabled?"2":"3",children:(0,i.jsx)("span",{className:"text-muted",children:tN("productSoldOut")})}),tk.enabled&&(0,i.jsx)("td",{className:eC().tdAdd,children:(0,i.jsxs)("div",{className:"d-flex align-items-center",style:{gap:"0.25rem"},children:[(0,i.jsx)(eg.Z,{type:"number",bsSize:"sm",min:"1",max:"9999",value:null!==(t=e6[e.id])&&void 0!==t?t:1,onChange:t=>e8({...e6,[e.id]:t.target.value}),"aria-label":tN("notifyMeQuantityLabel"),title:tN("notifyMeQuantityLabel"),style:{width:"4rem"}}),(0,i.jsx)(e_.Z,{size:"sm",dental:L,product:{id:e.id,slug:e5.slug,title:e.title||e5.title},quantity:e6[e.id],style:{whiteSpace:"nowrap"}})]})})]}),eG&&!e.available&&!e.needsBudget&&(0,i.jsx)("td",{className:"".concat(eC().tdOut," text-start"),colSpan:tk.enabled?"3":"4",children:(0,i.jsx)("div",{className:"d-flex align-items-center",children:(0,i.jsx)(eo.Z,{color:"success",size:"sm"})})}),e.needsBudget&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("td",{className:eC().tdQtd,children:(0,i.jsx)("span",{className:"text-muted font-small-2",style:{whiteSpace:"nowrap"},children:"Produto sob encomenda"})}),(0,i.jsx)("td",{className:eC().tdQtd,colSpan:"2",children:(0,i.jsx)("div",{className:"d-flex w-100 justify-content-end",children:(0,i.jsx)(k.Z,{size:"sm",style:{whiteSpace:"nowrap"},onClick:tT,className:"btn-dental",children:(null==tw?void 0:tw.textBudgetProductButton)||tN("actionRequestBudget")})})})]}),!eG&&e.available&&!e.needsBudget&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("td",{className:eC().tdPrice,children:[e.formattedOldPrice&&tv&&(0,i.jsxs)("span",{className:"d-block font-small-2 text-muted",style:{whiteSpace:"nowrap"},children:[tN("priceFromFor0"),":"," ",(0,i.jsx)("span",{style:{textDecoration:"line-through"},children:e.formattedOldPrice})," ",tN("priceFromFor1"),":"]}),(0,i.jsx)(eE,{showConditions:tv,option:e,priceMode:null==z?void 0:z.priceMode})]}),(0,i.jsx)("td",{className:eC().tdQtd,children:(0,i.jsxs)("div",{className:"d-flex align-items-center",children:[(0,i.jsxs)("span",{className:"d-block mr-25 font-small-2",style:{color:"#6e6b7b"},children:[tN("abbreviationQty"),":"]}),(0,i.jsx)(eg.Z,{bsSize:"sm",className:"customQtd",type:"number",min:"1",max:e.units||"99",name:"number",value:null!==(l=eJ[e.id])&&void 0!==l?l:1,onChange:t=>eQ({...eJ,[e.id]:parseInt(t.target.value)})})]})}),(0,i.jsxs)("td",{className:eC().tdAdd,children:[(0,i.jsxs)(k.Z,{size:"sm",color:"success",disabled:null!==tr||null!==tu,className:"btnAddToCart",onClick:()=>tP(e.id,e.title,eJ[e.id],e.price,(null==e?void 0:e.units)||99),style:{whiteSpace:"nowrap"},children:[tr===e.id?(0,i.jsx)(eo.Z,{color:"white",style:{width:"15px",height:"15px"}}):(0,i.jsx)(ef.Z,{size:15}),(0,i.jsx)("span",{className:"align-middle ml-50",children:(null==tw?void 0:tw.textAddProductButton)||tN("addShortCase")})]}),!0===e.buyNowEnabled&&(0,i.jsxs)(k.Z,{size:"sm",outline:!0,color:"success",disabled:null!==tr||null!==tu,className:"btnBuyNow mt-25 d-block",onClick:()=>tP(e.id,e.title,eJ[e.id],e.price,(null==e?void 0:e.units)||99,{buyNow:!0}),style:{whiteSpace:"nowrap"},children:[tu===e.id?(0,i.jsx)(eo.Z,{style:{width:"15px",height:"15px"}}):(0,i.jsx)(eb.Z,{size:15}),(0,i.jsx)("span",{className:"align-middle ml-50",children:tN("buyNow")})]})]})]})]},e.id)})})})})})]})}),tb&&(0,i.jsx)("p",{className:"font-medium-2 text-muted my-2",children:tN("productUnavailable")}),(null==L?void 0:L.type)!=="catalog"&&tf&&!tb&&(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)(eT,{product:e5,quantity:eU,quantityOptions:eJ,initialProps:A})}),(e5.needsBudget||(null===(Z=e5.options)||void 0===Z?void 0:Z.some(e=>null==e?void 0:e.needsBudget)))&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U,{productTitle:"".concat(e5.title," - ").concat(e5.brand),initialProps:A,onOpenFormModal:()=>to({id:e5.id,title:"".concat(e5.title," - ").concat(e5.brand),internalId:e5.internalId})}),(0,i.jsx)(D,{data:{internalId:e5.internalId,...ts},isOpen:null!==ts,handleToggle:()=>to(null),initialProps:A})]}),!eW&&(0,i.jsx)("div",{className:"mt-2",children:(0,i.jsx)(eo.Z,{color:"success"})}),eW&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"".concat(eC().description," mt-2"),dangerouslySetInnerHTML:{__html:e5.descriptionFormatted}}),(null==e5?void 0:e5.youtubeVideoId)&&(0,i.jsx)("div",{className:"mt-2 ".concat(eC().responsiveVideo),children:(0,i.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(null==e5?void 0:e5.youtubeVideoId,"?feature=oembed"),width:"409",height:"230",frameBorder:"0",allowFullScreen:"allowfullscreen"})}),(null==e5?void 0:null===(P=e5.files)||void 0===P?void 0:P.length)>0&&(0,i.jsx)(eA,{files:e5.files})]})]}),(0,i.jsx)(_.Z,{children:(null==L?void 0:L.yourviewsCode)&&(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("div",{id:"yv-reviews"}),(0,i.jsx)("div",{className:"yv-qa"}),(0,i.jsx)(eg.Z,{id:"yv-productId",type:"hidden",value:(null==e5?void 0:e5.type)!=="family"?e5.internalId:e5.id}),(0,i.jsx)(eg.Z,{id:"yv-productName",type:"hidden",value:e5.title}),(0,i.jsx)(eg.Z,{id:"yv-productImage",type:"hidden",value:(null==e5?void 0:null===(C=e5.images)||void 0===C?void 0:C.length)>0?e5.images[0]["300x300"]:""}),(0,i.jsx)(eg.Z,{id:"yv-productPrice",type:"hidden",value:e5.formattedPrice}),(0,i.jsx)(eg.Z,{id:"yv-productCategory",type:"hidden",value:X.categories[0]})]})})]}
1),ty&&(null==e5?void 0:e5.internalId)&&(0,i.jsx)("div",{className:"skeepers_product__reviews","data-product-id":e5.internalId,"data-locale":"pt_BR","data-price":e5.price,"data-currency":"BRL","data-name":e5.title,"data-url":tZ.url,"data-image-url":(null===(T=e5.images)||void 0===T?void 0:null===(S=T[0])||void 0===S?void 0:S["300x300"])||""}),(null===(F=Object.keys(e5||{}))||void 0===F?void 0:F.length)===0||!e5.active&&(0,i.jsx)("p",{children:tN("productNotFoundOrDisabled")})]})}),(null==L?void 0:L.yourviewsCode)&&(0,i.jsxs)("div",{className:"mt-2",children:[(0,i.jsx)("div",{id:"yv-reviews"}),(0,i.jsx)("div",{className:"yv-qa"}),(0,i.jsx)(eg.Z,{id:"yv-productId",type:"hidden",value:"family"!==e5.type?e5.internalId:e5.id}),(0,i.jsx)(eg.Z,{id:"yv-productName",type:"hidden",value:e5.title}),(0,i.jsx)(eg.Z,{id:"yv-productImage",type:"hidden",value:(null==e5?void 0:null===(q=e5.images)||void 0===q?void 0:q.length)>0?e5.images[0]["300x300"]:""}),(0,i.jsx)(eg.Z,{id:"yv-productPrice",type:"hidden",value:e5.formattedPrice}),(0,i.jsx)(eg.Z,{id:"yv-productCategory",type:"hidden",value:X.categories[0]})]}),(0,i.jsx)(ec.Z,{sellerId:null==L?void 0:L.id,initialProps:A,dataParameters:{productIds:e5.id},pageType:"product"}),(0,i.jsx)(ed,{data:{productId:null==e5?void 0:e5.id,categoryId:null==e5?void 0:e5.categories[0]},initialProps:A})]}),null!==e0&&(0,i.jsx)(et,{isOpen:null!==e0,handleToggle:()=>e1(null),photoToZoom:e0,images:e5.images||[]}),(null==L?void 0:L.id)==="marketplace"&&(0,i.jsx)(en.Z,{from:"productPage",isOpen:e9,handleToggle:()=>e3(!1)}),ta&&(0,i.jsx)(er.Z,{isOpen:ta,toggle:()=>td(!1),urlToCallback:eD,initialProps:A}),th&&(0,i.jsx)(u(),{dangerouslySetInnerHTML:{__html:th}}),tg&&(0,i.jsx)(u(),{dangerouslySetInnerHTML:{__html:tg}})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d(),{children:(0,i.jsx)("title",{children:null==L?void 0:L.name})}),(0,i.jsx)(eu.Z,{className:"mt-3",children:(0,i.jsx)("p",{children:tN("productNotFound")})})]})})},58725:function(e){e.exports={photoGallery:"PhotoGallery_photoGallery__LnFB5",swiper:"PhotoGallery_swiper__jzbYc",customNav:"PhotoGallery_customNav__3EzC5"}},63878:function(e){e.exports={widgetProductBudget:"WidgetProductBudget_widgetProductBudget__q1I9k",card:"WidgetProductBudget_card__mEbOZ",closeButton:"WidgetProductBudget_closeButton__BGd9p",button:"WidgetProductBudget_button__6wdNy",bgWhite:"WidgetProductBudget_bgWhite__qNWpv"}}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,9194,4264,571,953,7644,4113,2888,9774,179],function(){return e(e.s=50578)}),_N_E=e.O()}]);

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