1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9474],{23284:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/marca/[slug]",function(){return n(87108)}])},87108:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return l}});var a=n(85893),i=n(67294),u=n(11163),o=n(12589),c=n(66193),r=n(78058),s=n(69283),l=!0;t.default=function(e){let{initialProps:t,serverSideProps:n}=e,{slug:l}=(0,u.useRouter)().query,{content:d,rangePrice:f}=n||{},[p,_]=(0,i.useState)(!0),[g,m]=(0,i.useState)(null),[v,P]=(0,i.useState)(null),h=(0,i.useRef)(!1),E=(0,i.useRef)(l);(0,i.useEffect)(()=>{E.current!==l&&(E.current=l,h.current=!1,m(null),P(null),_(!0))},[l]),(0,i.useEffect)(()=>{var e;async function t(){h.current=!0,_(!0);try{let e=d.items.map(e=>e.id).join(","),t=null==l?void 0:l.toUpperCase(),[n,a]=await Promise.all([fetch("/api/products-list-specific-data?productIds=".concat(e,"&nationalities=").concat(r.nationalities,"&v=2"),{method:"GET"}),(0,s.v)("".concat(o.Y,"/getRangePrice?dentalId=").concat(r.fixId,"&categoryId=").concat(t,"&type=").concat("brand"),{method:"GET",requestedTokenType:"guest"})]);if(200===n.status){let e=await n.json(),t=d.items.map(t=>({...t,...e[t.id]||{}}));m({items:t,nextPage:d.nextPage})}else m(d);if(200===a.status){let e=await a.json();P(e||[])}else P(f||[])}catch(e){console.log("Erro ao buscar dados din\xe2micos:",e),m(d),P(f||[])}finally{_(!1)}}(null==d?void 0:null===(e=d.items)||void 0===e?void 0:e.length)&&!h.current&&t()},[d,l]);let w=g||d,y=null!==v?v:f;return(0,a.jsx)(c.Z,{initialProps:t,serverSideProps:{data:function(){try{return{id:null==l?void 0:l.toUpperCase(),title:null==l?void 0:l.toUpperCase()}}catch(e){return console.log(e),{}}}(),...n,content:w,rangePrice:y,isLoadingDynamicData:p}})}}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,5239,571,953,7644,24,2888,9774,179],function(){return e(e.s=23284)}),_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.