PageSourceSearch

https://dentaladelar.com.br/_next/static/chunks/pages/busca/[searchTerm]-d00d98d40a259d73.js

js dentaladelar.com.br collected 2026-09-30 15:23:54 UTC 13,361 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4236],{192:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/busca/[searchTerm]",function(){return n(51929)}])},59092:function(e,t,n){"use strict";var r=n(85893),i=n(56941),o=n(49915),s=n.n(o);t.Z=function(e){var t;let{initialProps:n,...o}=e,{themeSettings:a}=n||{},{children:l,style:c}=o;return(0,r.jsx)(i.Z,{className:"".concat(o.className," ").concat(s()[null==a?void 0:null===(t=a.components)||void 0===t?void 0:t.card]),style:c,children:l})}},6555:function(e,t,n){"use strict";var r=n(85893),i=n(30172),o=n(95186),s=n(22668),a=n(64249),l=n(67294),c=n(12589),u=n(69283),d=n(36955),f=n(33299),m=n(78058),p=n(52581);i.Z.use([o.Z]),t.Z=function(e){let{sellerId:t,initialProps:n,dataParameters:i,pageType:o}=e,{data:v}=(0,f.useSession)(),h="P8OPITpuFyJNIfnjeEHg"===t,[g,y]=(0,l.useState)([]),[x,j]=(0,l.useState)({}),[b,w]=(0,l.useState)(!0),S=(0,l.useRef)(!1);async function O(){try{w(!0),S.current=!1;let e=function(){var e,n;let r=null!==(n=null==v?void 0:null===(e=v.user)||void 0===e?void 0:e.id)&&void 0!==n?n:localStorage.getItem("SmartHint_AnonymousConsumer"),s="sellerId=".concat(t,"&costumerRef=").concat(r);return"product"===o&&(s+="&productIds=".concat(i.productIds)),"category"===o&&(s+="&category=".concat(i.category)),s+="&pageType=".concat(o)+"&pageIdentifier=".concat(window.location.href)}(),n=await (0,u.v)("".concat(c.Y,"/getShowcasesFromSmartHint?").concat(e),{method:"GET",requestedTokenType:"guest"});n=await n.json(),y(n.map(e=>(0,p.wK)(e)))}catch(e){console.log(e)}finally{w(!1)}}return((0,l.useEffect)(()=>{h&&O()},[h]),(0,l.useEffect)(()=>{(null==g?void 0:g.length)&&!S.current&&e();async function e(){S.current=!0;let e=g.map((e,t)=>({showcase:e,index:t})).filter(e=>{var t;let{showcase:n}=e;return(null===(t=n.items)||void 0===t?void 0:t.length)>0});if(0===e.length)return;let t={};e.forEach(e=>{let{index:n}=e;t[n]=!0}),j(t),e.forEach(async e=>{let{showcase:t,index:n}=e,r=t.items.map(e=>e.id).join(",");try{let e=await fetch("/api/products-list-specific-data?productIds=".concat(r,"&nationalities=").concat(m.nationalities,"&v=2"));if(200===e.status){let t=await e.json();y(e=>{var r;let i=[...e];return(null===(r=i[n])||void 0===r?void 0:r.items)&&(i[n]={...i[n],items:i[n].items.map(e=>({...e,...t[e.id]||{}}))}),i})}}catch(e){console.log("Erro ao buscar dados da vitrine SmartHint ".concat(n,":"),e)}finally{j(e=>{let t={...e};return delete t[n],t})}})}},[g]),h)?b?(0,r.jsx)("div",{className:"d-flex justify-content-center my-2",children:(0,r.jsx)(d.Z,{color:"success"})}):(0,r.jsx)("div",{children:g.map((e,t)=>(0,r.jsx)("div",{children:function(e,t){let i=(0,p.Ck)(e),o=x[t];return"buyTogether"===i?(0,r.jsx)(a.Z,{index:t,data:e,initialProps:n,isSmartHint:!0,isLoadingDynamicData:o}):(0,r.jsx)(s.Z,{index:t,data:e,initialProps:n,isSmartHint:!0,isLoadingDynamicData:o})}(e,t)},t))}):(0,r.jsx)("div",{})}},51929:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return E}});var r=n(85893),i=n(67294),o=n(9008),s=n.n(o),a=n(41664),l=n.n(a),c=n(11163),u=n(33299),d=n(51615),f=n(78058),m=n(63611),p=n(59092),v=n(49573),h=n(36955),g=n(98595),y=n(97975),x=n(91121),j=n(6555),b=n(76013),w=n(36895),S=n(13152),O=n(14972),E=!0;t.default=function(e){var t,n,o,a;let{serverSideProps:E,initialProps:P}=e,{t:N}=(0,v.$G)("common"),{dental:_,themeSettings:Z}=P||{},{data:k,searchTerm:T,url:H}=E||{},I=(0,c.useRouter)(),{data:C}=(0,u.useSession)(),[R,z]=(0,i.useState)((null==k?void 0:k.items)||[]),[L,F]=(0,i.useState)(!1),[M,D]=(0,i.useState)(!0),[B,W]=(0,i.useState)(0),[A,X]=(0,i.useState)((null==k?void 0:k.nextPage)||null),[Y,q]=(0,i.useState)(null),G=(0,i.useRef)(!1),V=(0,w.Z)(null==_?void 0:_.whats,null==_?void 0:null===(n=_.countryRules)||void 0===n?void 0:null===(t=n.phone)||void 0===t?void 0:t.countryCodePrefix),J=(null==_?void 0:_.id)==="8FmrfY5pgr83xh3ngXN2"?"https://fgmdentalgroup.com/shop-fgm-implants-whatsapp/":"https://api.whatsapp.com/send?phone=".concat(V,"&text=").concat(null==_?void 0:_.whatsMessage);return((0,i.useEffect)(()=>{if(q(null),I.asPath.includes("#"))try{let e=I.asPath.split("#")[1],t=decodeURIComponent(e);q(t)}catch(e){console.log("Erro ao decodificar termo original do hash:",e)}},[I.asPath]),(0,i.useEffect)(()=>{try{if(!(0,O.pV)(_))return;let e={search_term:T};(null==_?void 0:_.hasSmartHint)&&(e.category_event="SmartHint"),(0,O.L9)(_,"search",e)}catch(e){console.log(e)}},[T]),(0,i.useEffect)(()=>{try{if(!(0,O.pV)(_)||!(null==_?void 0:_.hasSmartHint)||!(null==R?void 0:R.length))return;(0,O.L9)(_,"view_item_list",{item_list_id:"smarthint-search",category_event:"SmartHint",items:R.map((e,t)=>{var n;return{item_id:e.id,item_name:e.title,item_brand:e.brand,price:e.price,item_category:(null===(n=e.categories)||void 0===n?void 0:n[0])||"",index:t}})})}catch(e){console.log("Erro ao disparar view_item_list SmartHint (busca):",e)}},[T,null==R?void 0:R.length,null==_?void 0:_.hasSmartHint,_]),(0,i.useEffect)(()=>{z((null==k?void 0:k.items)||[]),X((null==k?void 0:k.nextPage)||null),G.current=!1,D(!0)},[k]),(0,i.useEffect)(()=>{(null==R?void 0:R.length)&&!G.current&&e();async function e(){G.current=!0,D(!0);try{let e=R.map(e=>e.id).join(","),t=await fetch("/api/products-list-specific-data?productIds=".concat(e,"&nationalities=").concat(f.nationalities,"&v=2"));if(200===t.status){let e=await t.json();z(t=>t.map(t=>({...t,...e[t.id]||{}})))}}catch(e){console.log("Erro ao buscar dados din\xe2micos:",e)}finally{D(!1)}}},[R]),(0,i.useEffect)(()=>{0!==B&&e();async function e(){F(!0);try{var e,t;let n=await (0,b.t)({term:T,page:B,sellerId:f.fixId,nationalities:f.nationalities,anonymousSmartHint:window.SmartHint_AnonymousConsumer,hasSmartHint:null==_?void 0:_.hasSmartHint,userId:(null==C?void 0:null===(e=C.user)||void 0===e?void 0:e.id)||"",saveSearchResults:null==_?void 0:null===(t=_.iaSettings)||void 0===t?void 0:t.saveSearchResults});if(200!==n.status)return F(!1);return z([...R,...n.items]),X(n.nextPage),F(!1)}catch(e){console.log(e)}}},[B]),(0,i.useEffect)(()=>{W(0)},[I]),I.isFallback)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:null==_?void 0:_.name})}),(0,r.jsx)("div",{style:{minHeight:"600px"},className:"d-flex justify-content-center mt-3",children:(0,r.jsx)(h.Z,{color:"success",size:"200"})})]}):(0,r.jsxs)(d.Z,{initialProps:P,hasPageHeading:!0,children:[(0,r.jsxs)(s(),{children:[(0,r.jsxs)("title",{children:[N("searchPageTitle")," - ",null==_?void 0:_.name]}),H&&(0,r.jsx)("meta",{property:"og:url",content:H}),H&&(0,r.jsx)("link",{rel:"canonical",href:H})]}),(0,r.jsxs)(g.Z,{className:"ecommerce-application mt-3",children:[(0,r.jsxs)("div",{className:"mb-1",children:[(0,r.jsxs)("h1",{className:"customContentTitle content-header-title",children:['Busca por "',T,'"']}),Y&&Y!==T&&(0,r.jsxs)("p",{className:"text-muted font-small-3",children:["Em vez disso, pe
1squisar por:",(0,r.jsx)(l(),{href:"/busca/".concat(function(e){try{let t=e.split("%").join("%25");return t=t.split("/").join("%2F")}catch(t){return e}}(Y)),className:"text-decoration-underline ms-1",style:{color:"".concat(null==Z?void 0:null===(o=Z.colors)||void 0===o?void 0:o.layoutSecondary)},children:Y})]})]}),!(L&&0===B)&&(null==R?void 0:R.length)>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"customSearchedProducts ".concat(null==Z?void 0:null===(a=Z.components)||void 0===a?void 0:a.productCart),children:R.map((e,t)=>(0,r.jsx)(m.Z,{data:e,initialProps:P,isLoadingDynamicData:M,titleTag:"h2",smartHintData:(null==_?void 0:_.hasSmartHint)?{active:!0,cardIndex:t,itemListId:"smarthint-search",feature:"search"}:void 0},e.id))}),!L&&A&&(0,r.jsx)("div",{className:"d-flex justify-content-center mt-2",children:(0,r.jsx)(y.Z,{color:"secondary",size:"sm",onClick:()=>W(A),children:N("moreProducts")})})]}),!L&&(null==R?void 0:R.length)===0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.Z,{initialProps:P,children:(0,r.jsx)(x.Z,{className:"text-center py-3",children:(0,r.jsx)("p",{className:"mb-0",children:(0,r.jsxs)("a",{className:"text-black-50 trigger-gtm-whats",href:J,title:"WhatsApp",target:"_blank",onClick:e=>(0,S.Ec)(e,{href:J,dental:_}),children:[N("noProductsFound1"),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-success",children:N("noProductsFound2")})]})})})}),(0,r.jsx)(j.Z,{sellerId:null==_?void 0:_.id,initialProps:P,pageType:"search"})]}),L&&(0,r.jsx)("div",{className:"d-flex justify-content-center mt-2",children:(0,r.jsx)(h.Z,{color:"success"})})]})]})}},49915:function(e){e.exports={styled:"Card_styled__YoH6M"}},20210:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Minus",t.Z=a},61896:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),r.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Plus",t.Z=a},34588:function(e,t,n){"use strict";var r=n(67294),i=n(45697),o=n.n(i);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
1var a=(0,r.forwardRef)(function(e,t){var n=e.color,i=e.size,o=void 0===i?24:i,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===n?"currentColor":n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Zap",t.Z=a},56941:function(e,t,n){"use strict";var r=n(87462),i=n(63366),o=n(67294),s=n(45697),a=n.n(s),l=n(93967),c=n.n(l),u=n(23663),d=["className","cssModule","color","body","inverse","outline","tag","innerRef"],f={tag:u.iC,inverse:a().bool,color:a().string,body:a().bool,outline:a().bool,className:a().string,cssModule:a().object,innerRef:a().oneOfType([a().object,a().string,a().func])},m=function(e){var t=e.className,n=e.cssModule,s=e.color,a=e.body,l=e.inverse,f=e.outline,m=e.tag,p=e.innerRef,v=(0,i.Z)(e,d),h=(0,u.mx)(c()(t,"card",!!l&&"text-white",!!a&&"card-body",!!s&&(f?"border":"bg")+"-"+s),n);return o.createElement(m,(0,r.Z)({},v,{className:h,ref:p}))};m.propTypes=f,m.defaultProps={tag:"div"},t.Z=m},91121:function(e,t,n){"use strict";var r=n(87462),i=n(63366),o=n(67294),s=n(45697),a=n.n(s),l=n(93967),c=n.n(l),u=n(23663),d=["className","cssModule","innerRef","tag"],f={tag:u.iC,className:a().string,cssModule:a().object,innerRef:a().oneOfType([a().object,a().string,a().func])},m=function(e){var t=e.className,n=e.cssModule,s=e.innerRef,a=e.tag,l=(0,i.Z)(e,d),f=(0,u.mx)(c()(t,"card-body"),n);return o.createElement(a,(0,r.Z)({},l,{className:f,ref:s}))};m.propTypes=f,m.defaultProps={tag:"div"},t.Z=m}},function(e){e.O(0,[3714,3996,7795,9655,2923,4517,571,953,7644,2888,9774,179],function(){return e(e.s=192)}),_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.