(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(426641);var t=e.i(648198),i=e.i(539922),r=e.i(13155),o=e.i(475566),n=e.i(547100),s=e.i(671525),a=e.i(901351),l=e.i(310847),c=e.i(776169),u=e.i(422825),d=e.i(143851),m=e.i(703123),g=e.i(404893),f=e.i(367810),h=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:w=!0,isUserLoggedIn:p}){let v=(0,n.useTranslations)("GoogleLogin"),b=(0,o.useSetAtom)(g.googleLoginInitilizedAtom),{loginWithGoogle:y,error:A,clearError:_}=function(){let e=(0,n.useTranslations)("GoogleLogin"),[t,r]=(0,i.useState)(null),g=(0,o.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,o.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:h}=(0,u.useEmailPreferences)(),{refresh:w}=(0,s.usePageNavigation)(),{syncPreferencesFromUpsx:p}=(0,c.usePreferences)(),{authSuccess:v,authRedirect:b}=(0,d.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;r(null);try{let e=await a.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await v({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:r,weekly:o,onYourRadar:n,marketing:s,alwaysSubscribe:l}=f||{};return(t||l)&&await h({newsletter:r,weekly:o,onYourRadar:n,marketing:s}).catch(e=>{console.error("Failed to update email subscriptions",e)}),b(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,o=i?.messageCode;if(!o)throw Error("No Error Message");switch(o){case 1e3:case 1026:case 1033:r({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:r({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){r({header:e("somethingWentWrong")})}return!1}},[g,p,w,v,b,h,f]),error:t,clearError:(0,i.useCallback)(()=>{r(null)},[])}}(),k=(0,h.useRefMemo)(y),E=(0,i.useRef)(null);A&&(E.current=A);let I=E.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{k.current?.(e)}}),b(!0)),e?.(),!p&&w&&t?.prompt()},id:"google-gsi-script"}),I&&(0,t.jsx)(f.Dialog,{open:!!A,onOpenChange:e=>!e&&_(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:I.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I.body||""}}),primaryAction:{label:v("cancel"),onClick:_}})})]})}],874905)},907303,e=>{"use strict";var t=e.i(648198),i=e.i(539922);e.s(["default",0,function({candidate:e,failedMessage:r="Authentication failed. Please try again.",protectMessage:o="Remove your adblocker.",fetch:n,refresh:s,getCustomAccountInfo:a}){let[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),w=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==w.current[0]&&(w.current=[e.id],e.transactIDs&&w.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let p=(0,i.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&s()}).catch(()=>{c(r)})}catch{c(r)}},[n,r,s]),v=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(v.admiral=v.admiral||function(...e){(v.admiral.q=v.admiral.q||[]).push(e)},v.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(o),d(!0)):h(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!a;v.admiral("after","visitor.latest",function(i){var r;if("account"===e.requirement)(t?a().registered:i.status.registered)||m||(c(o),d(!0));else if("benefits"===e.requirement){let i=[];if(t)i=a().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(r=e.find(e=>e.startsWith("admbenefits=")))?void 0:r.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void h(!0);let r=!1;for(let e of t)i.includes(e)&&(r=!0);r?h(!0):(c(o),d(!0))}else c(o),d(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(h(!1),p())},[f,p]),(0,i.useEffect)(()=>{m||!u||(g(!0),v.admiral("targeting","force",{candidateIDs:w.current}))},[m,u,w,v]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),r=e.i(695203),o=e.i(604323),n=e.i(797770),s=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,s.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[r.deviceClassAtom,e.deviceClass],[o.metricsArticleDataAtom,e.metricsArticleData],[n.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},1567,e=>{"use strict";var t=e.i(947118),i=e.i(737801),r=e.i(539922);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",o=(0,t.useIsInitialized)(),n=(0,i.useEventAttributes)();return(0,r.useCallback)(({moduleId:t,modulePosition:i})=>{if(!o)return void console.warn("MParticle is not initialized");let r={module_id:t,module_position:i,...n};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,r),console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[n,o])}])},855602,e=>{"use strict";var t=e.i(648198),i=e.i(539922),r=e.i(1567),o=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:s,variant:a="frontend",children:l})=>{let c=(0,i.useRef)(null),[u,d]=(0,i.useState)(!1),m=(0,i.useRef)(null),g=(0,r.useTrackModuleViewed)();return"admin"===a?(0,t.jsx)(t.Fragment,{children:l}):((0,i.useEffect)(()=>{if(u||!o.default||!c.current)return;let t=c.current,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{g({moduleId:e,modulePosition:n}),d(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});i.observe(t);let r=t.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth;return r.top>=0&&r.left>=0&&r.bottom{g({moduleId:e,modulePosition:n}),d(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),i.disconnect()}},[u,e,n,g]),(0,t.jsx)("div",{ref:c,className:"hide-empty","data-module-id":e,"data-module-key":s,"data-item-position":n,children:l}))}])},670279,e=>{"use strict";var t=e.i(648198),i=e.i(539922),r=e.i(13155),o=e.i(204782);let n=({pageTemplate:e,pageDashboard:n})=>{let s=(0,o.default)();return((0,i.useEffect)(()=>{s&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),n&&window._newsroom.push({pageDashboard:n}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[s,e,n]),s&&e)?(0,t.jsx)(r.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"beforeInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,n,"default",0,n])},711899,e=>{e.v(t=>Promise.all(["static/chunks/0ypuq.ev5a56~.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/0vd2x9hh4402h.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);