(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,a)=>{t.exports=e.r(76562)},41544,e=>{"use strict";var t=e.i(71645),a=e.i(18566);e.s(["useFacebookPixel",0,(i,n)=>{let s=(0,a.usePathname)(),o=(0,t.useRef)(new Set);(0,t.useEffect)(()=>{i.length&&n&&e.A(92149).then(({default:e})=>{i.forEach(t=>{o.current.has(t)||(e.init(t,void 0,{autoConfig:!0,debug:!1}),o.current.add(t))}),e.pageView()})},[i,n]),(0,t.useEffect)(()=>{i.length&&n&&e.A(92149).then(({default:e})=>{e.pageView()})},[s])}])},90716,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(18566),n=e.i(41544),s=e.i(28458),o=e.i(56989);function u(){let e=(0,i.usePathname)(),t=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!t.current){t.current=!0;return}window.scrollTo({top:0,behavior:"smooth"})},[e]),null}e.s(["default",0,function(){let r,{tags:c}=(0,s.useGtmTags)(),{analyticsEnabled:l}=(0,o.useCookieConsent)(),f=(0,i.usePathname)(),d=c.global.GTM,h=c.global.PIXEL,m=c.pages[f]?.GTM??[],g=c.pages[f]?.PIXEL??[],p=[...d,...m],b=[...h,...g];return(0,a.useEffect)(()=>{window.dataLayer=window.dataLayer??[];let e=l?"granted":"denied";window.dataLayer.push({event:"consent_update",analytics_storage:e,ad_storage:e,ad_user_data:e,ad_personalization:e})},[l]),(0,a.useEffect)(()=>{if(!l||!p.length)return;let t=!1;return(async()=>{let{default:a}=await e.A(5082);t||p.forEach(e=>{if(e){let t=e.startsWith("GTM-")?e:`GTM-${e}`;a.initialize({gtmId:t})}})})(),()=>{t=!0}},[d,m,l]),(0,n.useFacebookPixel)(b,l),r=(0,i.useSearchParams)(),(0,a.useEffect)(()=>{if(!l)return;let e=r.get("fbclid");if(e&&!document.cookie.includes("_fbc=")){let t=`fb.1.${Date.now()}.${e}`;document.cookie=`_fbc=${t}; path=/; domain=.maxlife.com; max-age=7776000; SameSite=Lax; Secure`}},[r,l]),(0,t.jsx)(u,{})}],90716)},57608,e=>{e.n(e.i(90716))},92149,e=>{e.v(t=>Promise.all(["static/chunks/0db1z5556mqmi.js"].map(t=>e.l(t))).then(()=>t(70842)))},5082,e=>{e.v(t=>Promise.all(["static/chunks/0xzgnhxfkcyyv.js"].map(t=>e.l(t))).then(()=>t(27778)))}]);