(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),s=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:r,refresh:n,getCustomAccountInfo:o}){let[l,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(!1),[m,g]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),w=(0,s.useRef)([]);(0,s.useEffect)(()=>{e.id!==w.current[0]&&(w.current=[e.id],e.transactIDs&&w.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let p=(0,s.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(i)})}catch{c(i)}},[r,i,n]),k=(0,s.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,s.useEffect)(()=>{typeof window>"u"||(k.admiral=k.admiral||function(...e){(k.admiral.q=k.admiral.q||[]).push(e)},k.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),d(!0)):f(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;k.admiral("after","visitor.latest",function(s){var i;if("account"===e.requirement)(t?o().registered:s.status.registered)||m||(c(a),d(!0));else if("benefits"===e.requirement){let s=[];if(t)s=o().benefits;else{let e=document.cookie.split(";");e&&(s=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(s){let t=e.benefits??[];if(0==t.length)return void f(!0);let i=!1;for(let e of t)s.includes(e)&&(i=!0);i?f(!0):(c(a),d(!0))}else c(a),d(!0)}})}}))},[]),(0,s.useEffect)(()=>{h&&(f(!1),p())},[h,p]),(0,s.useEffect)(()=>{m||!u||(g(!0),k.admiral("targeting","force",{candidateIDs:w.current}))},[m,u,w,k]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),s=e.i(827049),i=e.i(695203),a=e.i(604323),r=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[s.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},1567,e=>{"use strict";var t=e.i(947118),s=e.i(737801),i=e.i(592121);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",a=(0,t.useIsInitialized)(),r=(0,s.useEventAttributes)();return(0,i.useCallback)(({moduleId:t,modulePosition:s})=>{if(!a)return void console.warn("MParticle is not initialized");let i={module_id:t,module_position:s,...r};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,i),console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[r,a])}])},855602,e=>{"use strict";var t=e.i(699173),s=e.i(592121),i=e.i(1567),a=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:r,moduleKey:n,variant:o="frontend",children:l})=>{let c=(0,i.useTrackModuleViewed)(),u="admin"===o,d=(0,s.useCallback)(()=>{c({moduleId:e,modulePosition:r})},[c,e,r]),m=(0,s.useRef)(null),[g,h]=(0,s.useState)([]),f=(0,s.useCallback)(()=>{let e=m.current?Array.from(m.current.children):[];h(t=>t.length===e.length&&t.every((t,s)=>t===e[s])?t:e)},[]);return((0,s.useEffect)(()=>{let e=m.current;if(!e||(f(),"u"t.disconnect()},[f,u]),(0,a.useFullVisibilityOnce)(d,{targets:g,disabled:u}),u)?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":r,children:l})}])},115284,e=>{"use strict";var t=e.i(699173),s=e.i(592121),i=e.i(185312),a=e.i(204782);let r=({pageTemplate:e,pageDashboard:r})=>{let n=(0,a.default)();return((0,s.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),r&&window._newsroom.push({pageDashboard:r}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,r]),n&&e)?(0,t.jsx)(i.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,r,"default",0,r])},703123,e=>{"use strict";let t=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(546584);var t=e.i(699173),s=e.i(592121),i=e.i(185312),a=e.i(546446),r=e.i(683903),n=e.i(671525),o=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),h=e.i(367810),f=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:w=!0,isUserLoggedIn:p}){let k=(0,r.useTranslations)("GoogleLogin"),v=(0,a.useSetAtom)(g.googleLoginInitilizedAtom),{loginWithGoogle:y,error:j,clearError:b}=function(){let e=(0,r.useTranslations)("GoogleLogin"),[t,i]=(0,s.useState)(null),g=(0,a.useSetAtom)(l.userHasLoggedInBeforeAtom),h=(0,a.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:f}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:w}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:p}=(0,c.usePreferences)(),{authSuccess:k,authRedirect:v}=(0,d.useUserLogin)();return{loginWithGoogle:(0,s.useCallback)(async t=>{let{credential:s}=t;i(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:s}),t=e?.isFirstLogin;await k({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:i,weekly:a,onYourRadar:r,marketing:n,alwaysSubscribe:l}=h||{};return(t||l)&&await f({newsletter:i,weekly:a,onYourRadar:r,marketing:n}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let s=t?.data,a=s?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[g,p,w,k,v,f,h]),error:t,clearError:(0,s.useCallback)(()=>{i(null)},[])}}(),A=(0,f.useRefMemo)(y),_=(0,s.useRef)(null);j&&(_.current=j);let E=_.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.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=>{A.current?.(e)}}),v(!0)),e?.(),!p&&w&&t?.prompt()},id:"google-gsi-script"}),E&&(0,t.jsx)(h.Dialog,{open:!!j,onOpenChange:e=>!e&&b(),children:(0,t.jsx)(h.BasicDialog,{showCloseButton:!1,title:E.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:E.body||""}}),primaryAction:{label:k("cancel"),onClick:b}})})]})}],874905)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3ulw-v-wqqzid.js"].map(t=>e.l(t))).then(()=>t(171714)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/065vkvwffw_kh.js","static/chunks/3z-hm61whmv7z.js","static/chunks/0sgw10bv3m1wr.js","static/chunks/1g9rt823dw_nm.js","static/chunks/00cycl48jrw9g.js","static/chunks/2-916_ez485np.js","static/chunks/3ez2p7_irinam.js","static/chunks/0ddma8lx4gaku.js","static/chunks/2r4lgx7woy7mq.js","static/chunks/3u40opytfu3al.js","static/chunks/1u6m0razmb56c.js"].map(t=>e.l(t))).then(()=>t(636705)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/2pz2-5xjnibsl.js"].map(t=>e.l(t))).then(()=>t(72990)))},467814,e=>{e.v(t=>Promise.all(["static/chunks/2erl34w6o_is1.css","static/chunks/2rwx-m1d-dcw-.js","static/chunks/00cycl48jrw9g.js","static/chunks/3z-hm61whmv7z.js","static/chunks/0sgw10bv3m1wr.js","static/chunks/1u6m0razmb56c.js","static/chunks/1g9rt823dw_nm.js","static/chunks/2-916_ez485np.js","static/chunks/0ddma8lx4gaku.js","static/chunks/3ryahola27ls6.js","static/chunks/3u40opytfu3al.js","static/chunks/38ag59k-4gk89.js","static/chunks/3ez2p7_irinam.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);