PageSourceSearch

https://youmaisdental.com.br/_next/static/chunks/571-63b2b552e81275bb.js

js youmaisdental.com.br collected 2026-10-04 12:24:22 UTC 29,889 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[571],{5488:function(e,t,n){"use strict";var r=n(85893),o=n(67294),i=n(33299),a=n(14416),u=n(46727),s=n(76484),c=n.n(s);t.Z=(0,a.$j)(e=>({sessionData:e.sessionData}),{setInitialSessionData:u.KN})(function(e){var t,n;let{sessionData:a,setInitialSessionData:u}=e,{data:s}=(0,i.useSession)();return((0,o.useEffect)(()=>{var e;(null==s?void 0:null===(e=s.user)||void 0===e?void 0:e.id)&&(null==a||!a.isLoaded)&&u({userId:s.user.id})},[s,a]),(null==s?void 0:null===(t=s.user)||void 0===t?void 0:t.id)&&(null==a?void 0:a.isLoggedAsCustomer))?(0,r.jsxs)("div",{className:c().loggedAsCustomer,children:[(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Aten\xe7\xe3o:"})}),(0,r.jsxs)("p",{children:["Voc\xea est\xe1 logado com o cliente: ",(0,r.jsx)("strong",{children:null==s?void 0:null===(n=s.user)||void 0===n?void 0:n.name}),"."]}),(0,r.jsx)("div",{className:"".concat(c().line," ").concat(c().right)}),(0,r.jsx)("div",{className:"".concat(c().line," ").concat(c().bottom)}),(0,r.jsx)("div",{className:"".concat(c().line," ").concat(c().left)})]}):(0,r.jsx)(r.Fragment,{})})},97714:function(e,t,n){"use strict";var r=n(85893),o=n(67294),i=n(4298),a=n.n(i),u=n(33299),s=n(11163),c=n(12589),l=n(69283),d=n(36955),f=n(20745);t.Z=function(e){let{sellerId:t,hasSmartHint:n}=e;if(!n)return;let{data:i}=(0,u.useSession)(),m=(0,s.useRouter)(),[w,g]=(0,o.useState)(!1);function p(){return"/"===m.asPath?"home":m.pathname.includes("[parentSlug]")||m.pathname.includes("[categorySlug]")?"category":m.pathname.includes("busca")?"searchWithResult":m.pathname.includes("carrinho")?"cart":m.pathname.includes("finalizar-pedido")||m.pathname.includes("pedido-enviado")||m.pathname.includes("sucesso")?"checkout":m.pathname.includes("404")?"notfound":m.pathname.includes("[productSlug]")?"product":"general"}function h(){m.pathname.includes("busca")&&setTimeout(()=>{[{container:".customSearchedProducts.undefined",feature:"search"},{container:".Category_products__uyzfJ.undefined.undefined",feature:"search"},{container:".swiper-wrapper",feature:"most-popular"}].forEach(e=>{let{container:t,feature:n}=e;document.querySelectorAll(t).forEach(e=>{e.querySelectorAll(".ecommerce-card").forEach((e,t)=>{let r=e.getAttribute("data-id")||"";e.querySelectorAll("a[href]").forEach(e=>{e.setAttribute("data-smarthintproductid",r),e.setAttribute("data-smarthintFeature",n),e.setAttribute("data-smarthintPosition",t+1),e.setAttribute("data-smarthintLocation",0),e.classList.add("smartHintClickClass")})})})})},500)}let y=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});async function M(e,t){try{let n=await (0,l.v)("".concat(c.Y,"/getOrderToSmartHint?sellerId=").concat(e,"&orderId=").concat(t),{method:"GET",requestedTokenType:"guest"});return(await n.json()).orderData}catch(e){return console.error("Erro ao obter dados do pedido:",e),null}}let j=()=>{var e;let t="SmartHint_AnonymousConsumer",n=(null==i?void 0:null===(e=i.user)||void 0===e?void 0:e.id)||localStorage.getItem(t);return n||(n=y(),localStorage.setItem(t,n)),n},T=()=>{{let e=document.createElement("div");e.id="smarthint-loading",e.style.cssText="\n        position: fixed;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        background: rgba(255, 255, 255, 0.9);\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        z-index: 9999;\n        font-family: Arial, sans-serif;\n      ";let t=document.createElement("div");e.appendChild(t),document.body.appendChild(e),(0,f.createRoot)(t).render((0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"10px"},children:(0,r.jsx)(d.Z,{color:"primary",style:{width:"3rem",height:"3rem"}})}))}},v=()=>{{let e=document.getElementById("smarthint-loading");e&&e.remove()}};return(0,o.useEffect)(()=>{window.smarthintkey="SH-546794",window.SmartHint_AnonymousConsumer=j(),window.SmartHint_Channel="padrao",window.SmartHint_SearchInput="form-control SmartHint_SearchInput",window.SmartHint_ClickClass="smartHintClickClass",window.SmartHint_PageType=p(),m.events.on("routeChangeComplete",h),h(),()=>m.events.off("routeChangeComplete",h)},[m]),(0,o.useEffect)(()=>{w&&e();async function e(){if((m.pathname.includes("pedido-enviado")||m.pathname.includes("sucesso"))&&m.query.orderCode)try{T();let e=m.query.orderCode,n=await M(t,e);n&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({Name:"SmartHintOrder",OrderId:n.OrderId,Total:n.Total,Date:n.Date,Freight:n.Freight,Items:n.Items})),window.SmartHint_PageType=p(),window.SmartHint&&window.SmartHint.Track&&await window.SmartHint.Track.Initialize(),setTimeout(()=>{v()},1e3)}catch(e){v(),console.error("Erro ao buscar e enviar orderData para o dataLayer",e)}else window.SmartHint_PageType=p(),window.SmartHint&&window.SmartHint.Track&&window.SmartHint.Track.Initialize()}},[w,m.query]),(0,r.jsx)(a(),{src:"https://static.smarthint.co/Scripts/i/SmartHintTrack.Full.min.js",strategy:"afterInteractive",onLoad:()=>{g(!0)}})}},81073:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),o=n(4298),i=n.n(o),a=n(14972);function u(e){let{dental:t}=e,{gaId:n,awId:o}=(0,a.BY)(t);return n||!o?null:(0,r.jsx)(i(),{id:"gtag-bootstrap-aw",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:'\n          window.dataLayer = window.dataLayer || [];\n          if (typeof window.gtag !== "function") {\n            window.gtag = function gtag(){ window.dataLayer.push(arguments); };\n            window.gtag("js", new Date());\n          }\n        '}})}},52278:function(e,t,n){"use strict";var r=n(85893),o=n(67294),i=n(58158),a=n.n(i),u=n(78268),s=n(6765),c=n.n(s),l=n(25675),d=n.n(l),f=n(41664),m=n.n(f),w=n(36895),g=n(30913),p=n(13152);t.Z=function(e){var t,n,i,s;let{initialProps:l,fixed:f,width:h=60,height:y=60}=e,{dental:M}=l||{},j=(0,w.Z)(null==M?void 0:M.whats,null==M?void 0:null===(n=M.countryRules)||void 0===n?void 0:null===(t=n.phone)||void 0===t?void 0:t.countryCodePrefix),[T,v]=(0,o.useState)(!1),L=(0,g.Z)({dental:M,formattedWhats:j}),S=e=>(0,p.Ec)(e,{href:L,dental:M});return(0,o.useEffect)(()=>{let e=JSON.parse(window.localStorage.getItem("showWhatsAppText"));v((null==e||!e.widgetWasClosed)&&!!M.textFixedWhatsApp)},[]),(0,r.jsxs)("div",{className:"".concat(c().whatsWidget," ").concat(f?c().fixed:""),children:[(0,r.jsx)(m(),{href:L,target:"_blank",onClick:S,children:(0,r.jsx)(d(),{src:a(),width:h,height:y,alt:"Logo Whatsapp"})}),T&&(0,r.jsxs)("div",{className:c().box,children:[(0,r.jsxs)(m(),{href:L,target:"_blank",onClick:S,children:[(0,r.jsx)("span",{children:null==M?void 0:null===(i=M.textFixedWhatsApp)||void 0===i?void 0:i.title}),(0,r.jsx)("span",{children:null==M?void 0:null===(s=M.textFixedWhatsApp)||void 0===s?void 0:s.description})]}),(0,r.jsx)("div",{className:c().close,onClick:function(){return localStorage.setItem("showWhatsAppText",JSON.stringify({widgetWasClosed:!0})),v(!1)},children:(0,r.jsx)(u.Z,{color:"#00a82d",size:20})})]})]})}},12589:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},q:function(){return u}});let r=n(83454).env.NEXT_PUBLIC_BACKEND_ENV||"prod",o="https://us-central1-catalogo-mais-odonto.cloudfunctions.net",i="https://us-central1-catalogo-mais-odonto-dev.cloudfunctions.net",a="sandbox"===r?i:o,u="sandbox"===r?i:o;console.log("[frontend-ecommerce] Firebase backend routing",{nodeEnv:"production",backendEnv:r,urlFunctions:a,urlBackendOrder:u})},14972:function(e,t,n){"use strict";function r(e){return{gaId:("string"==typeof(null==e?void 0:e.gaId)?e.gaId.trim():"")||null,awId:function(e){if("string"!=typeof e)return null;let t=e.trim();return/^AW-\d+$/.test(t)?t:null}(null==e?void 0:e.awId)}}function o(e){let{gaId:t,awId:n}=r(e);return!!(t||n)}function i(e){return r(e).gaId}function a(e,t,n){return!!o(e)&&"function"==typeof window.gtag&&(window.gtag("event",t,n),!0)}function u(e,t,n){return!!o(e)&&"function"==typeof window.gtag&&(window.gtag("set",t,n),!0)}function s(e){return(null==e?void 0:e.gtmPurchaseServerSide)===!0&&null!==function(e){if(e instanceof Date)return Number.isFinite(e.getTime())?e.getTime():null;if(e&&"object"==typeof e){var t;let n=null!==(t=e._seconds)&&void 0!==t?t:e.seconds;if("number"==typeof n&&Number.isFinite(n))return 1e3*n}if("number"==typeof e)return Number.isFinite(e)?e:null;if("string"==typeof e&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}(null==e?void 0:e.gtmPurchaseServerSideSince)}n.d(t,{w$:function(){return i},BY:function(){return r},pV:function(){return o},dN:function(){return s},L9:function(){return a},Y3:function(){return u}})},67423:function(e,t,n){"use strict";n.d(t,{$N:function(){return w},Bw:function(){return d},Du:function(){return s},I:function(){return c},Lr:function(){return g},cx:function(){return u},tU:function(){return i},ts:function(){return f}});var r=n(21876).Buffer;let o="sou_admin_id",i="sou_jwt_user";function a(e,t){let{maxAgeSeconds:n=86400,expire:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=["".concat(e,"=").concat(r?"":encodeURIComponent(t)),"Path=/","SameSite=Lax","Secure"];return r?o.push("Expires=Thu, 01 Jan 1970 00:00:00 UTC"):o.push("Max-Age=".concat(n)),o.join("; ")}function u(e){"undefined"!=typeof document&&e&&(document.cookie=a(o,String(e)))}function s(){"undefined"!=typeof document&&(document.cookie=a(o,"",{expire:!0}))}function c(){"undefined"!=typeof document&&(document.cookie=a(i,"",{expire:!0}))}function l(e,t){if(!e)return null;if("object"==typeof e&&!Array.isArray(e)){let n=e[t];if(!n)return null;try{return decodeURIComponent(n)}catch(e){return n}}if("string"!=typeof e)return null;let n=e.split(";").map(e=>e.trim()).find(e=>e.startsWith("".concat(t,"=")));if(!n)return null;let r=n.slice(t.length+1);try{return decodeURIComponent(r)}catch(e){return r}}function d(e){var t;return l(null==e?void 0:e.cookies,o)||l(null==e?void 0:null===(t=e.headers)||void 0===t?void 0:t.cookie,o)}function f(){return"undefined"==typeof document?null:l(document.cookie,o)}function m(e){if(!e||"string"!=typeof e)return null;let t=e.split(".");if(t.length<2)return null;try{let e=t[1].replace(/-/g,"+").replace(/_/g,"/"),n=e.padEnd(e.length+(4-e.length%4)%4,"="),o="function"==typeof atob?atob(n):r.from(n,"base64").toString("utf8");return JSON.parse(o)}catch(e){return null}}function w(e){let t=m(e);return!!(null==t?void 0:t.adm)}function g(e){let t=m(e);return"string"==typeof(null==t?void 0:t.sub)&&t.sub?t.sub:null}},69283:function(e,t,n){"use strict";n.d(t,{v:function(){return C}});var r=n(21379),o=n(82260),i=n(12589),a=n(78058),u=n(77489),s=n(404);n(62842);var c=n(73020),l=n(23368),d=n(24931),f=n(83454);function m(e,t){return"google"===e?null==t?void 0:t.id_token:null==t?void 0:t.access_token}async function w(e,t,n,r){let o=await C("".concat(i.Y,"/accessWithProvider"),{method:"POST",requestedTokenType:"guest",req:n,res:r,headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a.fixId,provider:e,nationalities:a.nationalities,...t})});if(200!==o.status)throw Error("genericError");return await o.json()||null}async function g(e,t,n){let r=await C("".concat(i.Y,"/login"),{method:"POST",requestedTokenType:"guest",req:t,res:n,headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a.fixId,email:e.email,password:e.password,...e.recaptchaToken&&{recaptchaToken:e.recaptchaToken},...!e.recaptchaToken&&s.iN.includes(e.captchaMissingReason)&&{captchaMissingReason:e.captchaMissingReason}})});if(404===r.status)throw Error("unregisteredEmail");if(409===r.status)throw Error("invalidData");if(200!==r.status)throw Error("genericError");return await r.json()||null}async function p(e,t,n){var r;let{user:o,auth:u,token:s}=e,c=await C("".concat(i.Y,"/loginAsCustomer"),{method:"POST",requestedTokenType:"guest",req:t,res:n,headers:{"Content-Type":"application/json"},body:JSON.stringify({appId:a.fixId,user:o,auth:u,token:s})});if(200!==c.status)throw Error("genericError");let l=await c.json();return l?{id:l.id,name:l.name,email:l.email,image:null!==(r=l.image)&&void 0!==r?r:null,adminId:l.adminId||u||null,adminGrant:"string"==typeof l.adminGrant?l.adminGrant:null}:null}let h={providers:[(0,c.Z)({clientId:f.env.GOOGLE_ID,clientSecret:f.env.GOOGLE_SECRET,profile:async(e,t)=>await w("google",{...e,providerToken:m("google",t)},null,null)}),(0,l.Z)({clientId:f.env.FACEBOOK_ID,clientSecret:f.env.FACEBOOK_SECRET,profile:async(e,t)=>await w("facebook",{...e,providerToken:m("facebook",t)},null,null)}),(0,d.Z)({name:"Credentials",authorize:async e=>"loginAsCustomer"===e.action?await p(e,null,null):await g(e,null,null)})],pages:{signIn:"/login",error:"/login"},callbacks:{async redirect(e){let{url:t,baseUrl:n}=e,r=decodeURIComponent(t);if(r.startsWith(n))return r;if(r.startsWith("/"))return"".concat(n).concat(r);let o=r.match(/[?&]destino=([^&]+)/);return(null==o?void 0:o[1])?"".concat(n).concat((0,u.resolveDestinoPath)(o[1])||"/ofertas"):"".concat(n,"/ofertas")},session(e){let{session:t,token:n}=e;if(t.user.id=n.sub,t.user){var r,o;t.user.image=null!==(r=t.user.image)&&void 0!==r?r:null,t.user.adminId=null!==(o=n.adminId)&&void 0!==o?o:null}return t},async jwt(e){let{token:t,user:n}=e;return(null==n?void 0:n.adminId)&&(t.adminId=n.adminId),(null==n?void 0:n.adminGrant)&&(t.adminGrant=n.adminGrant),t}}};async function y(e){try{return{}}catch(e){return{}}}n(83454),"undefined"!=typeof TextEncoder&&new TextEncoder;var M=n(83454);async function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{setCookieInResponse:u=!0,skipNextAuthSession:s=!1}=o;try{let o,c;let l=M.env.JWT_ISSUER_KEY;if(!l||""===l.trim())return console.error("[frontend-ecommerce] JWT_ISSUER_KEY environment variable is not configured",{requestedTokenType:e,hasRequest:!!t,setCookieInResponse:u,skipNextAuthSession:s}),null;let d=null;if(s)o="guest",c=null;else{let i=await (0,r.unstable_getServerSession)(t,n,h);"user"===e&&i&&i.user&&i.user.id?(o="user",c=i.user.id,d=await T(t)):(o="guest",c=null)}let f=a.fixId&&"undefined"!==a.fixId?a.fixId:null,m={tokenType:o,..."user"===o&&{userId:c},..."user"===o&&f&&{appId:f},..."user"===o&&d&&{adminGrant:d}};console.log("[frontend-ecommerce] Renewing JWT token",{requestedTokenType:e,tokenType:o,hasAdminGrant:!!d,hasRequest:!!t,hasResponse:!!n,setCookieInResponse:u,skipNextAuthSession:s,urlFunctions:i.Y});let w=await fetch("".concat(i.Y,"/renewToken"),{method:"POST",headers:{"Content-Type":"application/json",...await y(t),"X-JWT-ISSUER-KEY":l},body:JSON.stringify(m)});if(!w.ok){let t=await w.json().catch(()=>({error:"Unknown error"}));return console.error("[frontend-ecommerce] renewToken failed",{status:w.status,statusText:w.statusText,errorData:t,requestedTokenType:e,tokenType:o,urlFunctions:i.Y}),null}let{token:g,tokenType:p,expiresAt:j,maxAgeInSeconds:v}=await w.json();if(console.log("[frontend-ecommerce] JWT token renewed",{returnedTokenType:p,expiresAt:j,maxAgeInSeconds:v,hasAdminGrant:!!d,willSetCookie:!!((null==n?void 0:n.setHeader)&&u)}),n&&n.setHeader&&u){let e=["".concat("user"===p?"sou_jwt_user":"sou_jwt_guest","=").concat(g),"Path=/","SameSite=Lax","Secure","Max-Age=".concat(v)].join("; ");n.setHeader("Set-Cookie",e)}return{token:g,tokenType:p,expiresAt:j,maxAgeInSeconds:v}}catch(n){return console.error("[frontend-ecommerce] Error in renewJwtTokenServerSide",{requestedTokenType:e,hasRequest:!!t,setCookieInResponse:u,skipNextAuthSession:s,error:n}),null}}async function T(e){if(!e)return null;try{let t=await (0,o.getToken)({req:e});return"string"==typeof(null==t?void 0:t.adminGrant)?t.adminGrant:null}catch(e){return null}}async function v(e,t){var o,i;if(e){let n=await (0,r.unstable_getServerSession)(e,t,h);return(null==n?void 0:null===(o=n.user)||void 0===o?void 0:o.id)||null}{let{getSession:e}=await Promise.resolve().then(n.t.bind(n,33299,23)),t=await e();return(null==t?void 0:null===(i=t.user)||void 0===i?void 0:i.id)||null}}var L=n(67423);async function S(e){let{req:t,res:n,setCookieInResponse:r,skipNextAuthSession:o}=e;if(t&&t.cookies){delete t.cookies[L.tU];let e=await j("user",t,n,{setCookieInResponse:r,skipNextAuthSession:o});return(null==e?void 0:e.token)||null}{document.cookie="".concat(L.tU,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"
1);let e=await fetch("/api/jwt/renew",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({requestedTokenType:"user"})});if(!e.ok)return console.error("Failed to renew JWT token:",e.status),null;let{token:t}=await e.json();return t||null}}async function x(e,t){let{req:n,res:r,setCookieInResponse:o,skipNextAuthSession:i}=t;if(i||!function(e){let{token:t,sessionUserId:n,hasAdminId:r}=e,o=(0,L.Lr)(t);return!!n&&o!==n||!(0,L.$N)(t)&&!!r}({token:e,sessionUserId:await v(n,r),hasAdminId:n?!!(0,L.Bw)(n):!!(0,L.ts)()}))return e;try{return await S({req:n,res:r,setCookieInResponse:o,skipNextAuthSession:i})}catch(e){return console.error("Error renewing user JWT token",e),null}}async function A(e){let{req:t,res:n,requestedTokenType:r="guest",setCookieInResponse:o=!0,skipNextAuthSession:i=!1}=e,a="user"===r?"sou_jwt_user":"sou_jwt_guest";if(t&&t.cookies){let e=t.cookies[a];if(e)return"user"===r?await x(e,{req:t,res:n,setCookieInResponse:o,skipNextAuthSession:i}):e;try{let e=await j(r,t,n,{setCookieInResponse:o,skipNextAuthSession:i});if(!e||!e.token)return console.error("Failed to renew JWT token"),null;return e.token}catch(e){return console.error("Error renewing JWT token:",e),null}}{let e=document.cookie.split(";").reduce((e,t)=>{let[n,r]=t.trim().split("=");return e[n]=r,e},{})[a];if(e)return"user"===r?await x(e,{req:t,res:n,setCookieInResponse:o,skipNextAuthSession:i}):e;try{let e=await fetch("/api/jwt/renew",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({requestedTokenType:r})});if(!e.ok)return console.error("Failed to renew JWT token:",e.status),null;let{token:t}=await e.json();return t}catch(e){return console.error("Error renewing JWT token:",e),null}}return null}async function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{req:n,res:r,requestedTokenType:o="guest",hasRetried:i=!1,setCookieInResponse:a=!0,skipNextAuthSession:u=!1,...s}=t,c=await A({req:n,res:r,requestedTokenType:o,setCookieInResponse:a,skipNextAuthSession:u});if(!c)return console.error("[frontend-ecommerce] Failed to obtain JWT token before fetch",{url:e,requestedTokenType:o,hasRequest:!!n,hasRetried:i,setCookieInResponse:a,skipNextAuthSession:u}),{};let l=await y(n),d={...s.headers,...l,Authorization:"Bearer ".concat(c)};console.log("[frontend-ecommerce] Fetch with JWT started",{url:e,method:s.method||"GET",requestedTokenType:o,hasRequest:!!n,hasRetried:i,skipNextAuthSession:u});let f=await fetch(e,{...s,headers:d});if(console.log("[frontend-ecommerce] Fetch with JWT finished",{url:e,method:s.method||"GET",status:f.status,statusText:f.statusText,requestedTokenType:o,hasRetried:i}),401===f.status&&!i){if(console.error("[frontend-ecommerce] Fetch with JWT received 401, renewing token",{url:e,requestedTokenType:o,hasRequest:!!n}),n&&n.cookies){let e="user"===o?"sou_jwt_user":"sou_jwt_guest";delete n.cookies[e]}else{let e="user"===o?"sou_jwt_user":"sou_jwt_guest";document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}let t=await A({req:n,res:r,requestedTokenType:o,setCookieInResponse:a,skipNextAuthSession:u});if(!t)return console.error("[frontend-ecommerce] Failed to renew JWT token after 401",{url:e,requestedTokenType:o}),f;let i={...s.headers,...l,Authorization:"Bearer ".concat(t)};f=await fetch(e,{...s,headers:i}),console.log("[frontend-ecommerce] Fetch with JWT retry finished",{url:e,method:s.method||"GET",status:f.status,statusText:f.statusText,requestedTokenType:o})}return f}},404:function(e,t,n){"use strict";n.d(t,{YG:function(){return f},iB:function(){return l},iN:function(){return i},w6:function(){return d}});let r="6LcXSdItAAAAAL1xQ7eyTMQmEjlTAL6fY7MKm0sS",o=["https://www.google.com/recaptcha/enterprise.js","https://www.recaptcha.net/recaptcha/enterprise.js"],i=["script_blocked","timeout_load","timeout_ready","timeout_execute","exception"],a=null,u=Symbol("timeout"),s=(e,t)=>Promise.race([e,new Promise(e=>setTimeout(()=>e(u),Math.max(0,t)))]);function c(){var e;return window.__souAuthRecaptchaLoaded&&(null===(e=window.grecaptcha)||void 0===e?void 0:e.enterprise)?Promise.resolve({enterprise:window.grecaptcha.enterprise}):(a||(a=(async()=>{for(let t of o)if(await function(e){return new Promise(t=>{let n=document.createElement("script");n.src="".concat(e,"?render=").concat(r),n.async=!0,n.onload=()=>t(!0),n.onerror=()=>{n.remove(),t(!1)},document.head.appendChild(n)})}(t)){var e;return window.__souAuthRecaptchaLoaded=!0,(null===(e=window.grecaptcha)||void 0===e?void 0:e.enterprise)?{enterprise:window.grecaptcha.enterprise}:{reason:"exception"}}return a=null,{reason:"script_blocked"}})()),a)}function l(){c()}async function d(e){let t=Date.now()+5e3,n=()=>t-Date.now();try{let t=await s(c(),n());if(t===u)return{token:null,reason:"timeout_load"};if(!t.enterprise)return{token:null,reason:t.reason||"exception"};let o=t.enterprise;if("function"!=typeof o.execute)return{token:null,reason:"exception"};if(await s(new Promise(e=>o.ready(()=>e(!0))),n())===u)return{token:null,reason:"timeout_ready"};let i=await s(o.execute(r,{action:e}),n());if(i===u)return{token:null,reason:"timeout_execute"};return"string"==typeof i&&i?{token:i,reason:null}:{token:null,reason:"exception"}}catch(e){return{token:null,reason:"exception"}}}async function f(e){return(await d(e)).token}},30913:function(e,t,n){"use strict";function r(e){let t=null==e?void 0:e.whatsRedirect;if(!(null==t?void 0:t.active))return"";if("external"===t.type&&t.url)return t.url;if(t.slug){let n=(e.url||"").replace(/\/$/,"");return"".concat(n,"/").concat(t.slug)}return""}function o(e){let{dental:t,formattedWhats:n,text:o}=e,i=r(t);if(i)return i;if(!n||!(null==t?void 0:t.id))return"";let a=o||(null==t?void 0:t.whatsMessage)||"Ol\xe1,+Estou+no+site,+mas+preciso+de+ajuda!";
1return"https://api.whatsapp.com/send?phone=".concat(n,"&text=").concat(a)}n.d(t,{I:function(){return r},Z:function(){return o}})},36895:function(e,t,n){"use strict";function r(e,t){if(!e)return"";let n=String(e).replace(/[()\s-]/g,"");return n.startsWith("+")?n.replace(/\D/g,""):"".concat(null!=t?t:"").concat(n)}n.d(t,{Z:function(){return r}})},13152:function(e,t,n){"use strict";n.d(t,{Ec:function(){return d},NC:function(){return l},mq:function(){return c}});var r=n(9426);let o="ABCDEFGHJKLMNPQRSTUVWXYZ23456789";function i(){let e="";if("undefined"!=typeof crypto&&crypto.getRandomValues){let t=new Uint8Array(6);crypto.getRandomValues(t);for(let n=0;n<6;n++)e+=o[t[n]%o.length];return e}for(let t=0;t<6;t++)e+=o[Math.floor(Math.random()*o.length)];return e}function a(e,t,n){let r=function(e,t){var n;let r=(null==t?void 0:null===(n=t.googleAdsWhatsTracking)||void 0===n?void 0:n.label)||"Atendimento Ticket n\xba -";return"".concat(r," #").concat(e)}(t,n),o=(e||"").trimEnd();return o?"".concat(o," ").concat(r):r}function u(e){var t;return!!(null==e?void 0:null===(t=e.googleAdsWhatsTracking)||void 0===t?void 0:t.active)&&!!(0,r.w0)()}function s(e){let{dental:t,ref:n}=e,o=(0,r.w0)();if(!o)return!1;let i=JSON.stringify(function(e){let{dental:t,ref:n,adsParams:r}=e,{landingPage:o,capturedAt:i,...a}=r;return{ref:n,source:(null==t?void 0:t.url)||"",timestamp:new Date().toISOString(),landing_page:o||"",page_url:window.location.href,...a}}({dental:t,ref:n,adsParams:o}));try{if("function"==typeof fetch)return fetch(r.cr,{method:"POST",headers:{"Content-Type":"application/json"},body:i,keepalive:!0}).catch(()=>{}),!0;if("undefined"!=typeof navigator&&navigator.sendBeacon)return navigator.sendBeacon(r.cr,i)}catch(e){console.error("Error sending click event:",e)}return!1}function c(e){let{dental:t,message:n}=e,r=n||"";if(!u(t))return r;let o=i();return s({dental:t,ref:o}),a(r,o,t)}function l(e){let{href:t,dental:n}=e;if(!u(n)||!/(?:api\.whatsapp\.com\/send|wa\.me\/)/.test(t||""))return t;try{let e=new URL(t),r=i(),o=e.searchParams.get("text")||"";return e.searchParams.set("text",a(o,r,n)),s({dental:n,ref:r}),e.toString()}catch(e){return t}}function d(e,t){let{href:n,dental:r}=t,o=l({href:n,dental:r});o!==n&&(e.preventDefault(),window.open(o,"_blank","noopener"))}},46727:function(e,t,n){"use strict";n.d(t,{An:function(){return u},KN:function(){return a},XG:function(){return i}});var r=n(67423);let o={loggedAsCustomer:{}},i=e=>{if(!e)return;let{userId:t,adminId:n}=e,i=JSON.parse(window.localStorage.getItem("sessionData"))||o;return i.loggedAsCustomer[t]={adminId:n},window.localStorage.setItem("sessionData",JSON.stringify(i)),(0,r.cx)(n),(0,r.I)(),e=>{e({type:"CHANGE_SESSION_DATA",isLoggedAsCustomer:!0})}},a=e=>{var t,n;let{userId:i}=e,a=JSON.parse(window.localStorage.getItem("sessionData"))||o,u=null===(n=a.loggedAsCustomer)||void 0===n?void 0:null===(t=n[i])||void 0===t?void 0:t.adminId;return u&&(0,r.cx)(u),e=>{e({type:"CHANGE_SESSION_DATA",isLoggedAsCustomer:i in a.loggedAsCustomer})}},u=()=>(window.localStorage.setItem("sessionData",JSON.stringify(o)),(0,r.Du)(),(0,r.I)(),e=>{e({type:"CHANGE_SESSION_DATA",isLoggedAsCustomer:!1})})},77489:function(e,t,n){"use strict";let{language:r}=n(78058),o={cart:{ptbr:"carrinho",es:"carrito"},checkout:{ptbr:"finalizar-pedido",es:"finalizar-compra"},contact:{ptbr:"fale-conosco",es:"contacto"},recoverPass:{ptbr:"recuperar-senha",es:"recuperar-contrasena"},workWithUs:{ptbr:"trabalhe-conosco",es:"trabaja-con-nosotros"},students:{ptbr:"estudantes",es:"estudiantes",dynamic:!0},account:{ptbr:"minha-conta",es:"mi-cuenta"},accountAddresses:{ptbr:"minha-conta/meus-enderecos",es:"mi-cuenta/mis-direcciones"},accountOrders:{ptbr:"minha-conta/meus-pedidos",es:"mi-cuenta/mis-pedidos"},accountBankSlips:{ptbr:"minha-conta/meus-boletos",es:"mi-cuenta/mis-boletos"},accountInstallmentBankSlip:{ptbr:"minha-conta/dados-boleto-parcelado",es:"mi-cuenta/datos-boleto-en-cuotas"}};e.exports={SLUGS:o,route:function(e){let t=o[e];return t?"/"+(t[r]||t.ptbr):"/"},resolveDestinoPath:function(e){if(!e)return null;let t=String(e).replace(/^\/+/,"");for(let e of Object.values(o)){let n=e[r]||e.ptbr;if(t===e.ptbr||t===e.es)return"/".concat(n);let o="".concat(e.ptbr,"/"),i="".concat(n,"/");
1if(t.startsWith(o))return"/".concat(n).concat(t.slice(e.ptbr.length));if(e.es&&t.startsWith("".concat(e.es,"/")))return"/".concat(n).concat(t.slice(e.es.length));if(t.startsWith(i))break}return"/".concat(t)},isCheckoutDestino:function(e){if(!e)return!1;let t=String(e).replace(/^\/+/,"").split("?")[0].replace(/\/+$/,""),{checkout:n}=o;return t===n.ptbr||t===n.es},localizedRoutePairs:function(){return Object.values(o).map(e=>({ptbr:e.ptbr,localized:e[r]||e.ptbr,dynamic:!!e.dynamic})).filter(e=>e.localized!==e.ptbr)}}},76484:function(e){e.exports={loggedAsCustomer:"LoggedAsCustomer_loggedAsCustomer__47wIG",line:"LoggedAsCustomer_line__y6ozH",right:"LoggedAsCustomer_right__uP9aO",left:"LoggedAsCustomer_left__rTyNZ",bottom:"LoggedAsCustomer_bottom__n1HY8"}},6765:function(e){e.exports={whatsWidget:"WhatsWidget_what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I4NywtMC4xMTcgMC40MjQsLTAuMDQzYzAuNDIsMC4yMjggMS4zMTQsMC43MTIgMS42OTQsMC45MThjMC4xMTEsMC4wNiAwLjE4NSwwLjE3MiAwLjE5NiwwLjI5N2MwLjAyOSwwLjMxNyAwLjA4MywwLjg5NSAwLjA4MywwLjg5NWwtMC4wMDQsMC4wNDljLTAuMDQ0LDAuNTEgLTAuMzE1LDAuOTc0IC0wLjczOSwxLjI2MWMtMC40MjQsMC4yODggLTAuOTU1LDAuMzY4IC0xLjQ0NSwwLjIyYy0xLjc3MiwtMC41NDUgLTMuMzEzLC0xLjU4MSAtNC40NzksLTIuOTM3bC0wLjAyNywtMC4wMzJaIiBzdHlsZT0iZmlsbDojZjNmM2YzOyIvPjwvZz48L3N2Zz4="}}]);

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.