(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[c,l]=(0,s.useState)(""),[u,d]=(0,s.useState)(!1),[m,g]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!1),p=(0,s.useRef)([]);(0,s.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,s.useCallback)(()=>{try{r("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{l(i)})}catch{l(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?(l(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||(l(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):(l(a),d(!0))}else l(a),d(!0)}})}}))},[]),(0,s.useEffect)(()=>{h&&(f(!1),w())},[h,w]),(0,s.useEffect)(()=>{m||!u||(g(!0),k.admiral("targeting","force",{candidateIDs:p.current}))},[m,u,p,k]),(0,t.jsxs)("div",{children:[c||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var s=e.i(950771),i=e.i(695203),a=e.i(604323),r=e.i(797770),n=e.i(513539),o=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,o.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[s.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[r.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[n.layoutStateAtom,e.layoutState??null],[n.activeEventAtom,e.activeEvent??null]]),null)])},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:c})=>{let l=(0,i.useTrackModuleViewed)(),u="admin"===o,d=(0,s.useCallback)(()=>{l({moduleId:e,modulePosition:r})},[l,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:c}):(0,t.jsx)("div",{ref:m,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":r,children:c})}])},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])},61284,e=>{"use strict";e.s(["PROMO_CHECKOUT_URL",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])},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),c=e.i(310847),l=e.i(776169),u=e.i(422825),d=e.i(837879),m=e.i(143851),g=e.i(703123),h=e.i(61284),f=e.i(404893),p=e.i(367810),w=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:k=!0,isUserLoggedIn:b,redirectToCheckoutOnSignup:j}){let y=(0,r.useTranslations)("GoogleLogin"),v=(0,a.useSetAtom)(f.googleLoginInitilizedAtom),{loginWithGoogle:A,error:_,clearError:x}=function(e=!1){let t=(0,r.useTranslations)("GoogleLogin"),[i,f]=(0,s.useState)(null),p=(0,a.useSetAtom)(c.userHasLoggedInBeforeAtom),w=(0,a.useAtomValue)(g.gsiEmailStatesAtom),{updateEmailSubscriptions:k}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:b}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:j}=(0,l.usePreferences)(),{authSuccess:y,authRedirect:v}=(0,m.useUserLogin)(),A=(0,d.useSubscriptionsEnabled)();return{loginWithGoogle:(0,s.useCallback)(async s=>{let{credential:i}=s;f(null);try{let t=await o.upsxClient.auth.loginWithGoogle({google_id_token:i}),s=t?.isFirstLogin;await y({email:t.email,userID:t.userID,type:s?"signup":"login"},!1);let{newsletter:a,weekly:r,onYourRadar:n,marketing:c,alwaysSubscribe:l}=w||{};return(s||l)&&await k({newsletter:a,weekly:r,onYourRadar:n,marketing:c}).catch(e=>{console.error("Failed to update email subscriptions",e)}),s&&e&&A?v(h.PROMO_CHECKOUT_URL):v(),!0}catch(e){console.error("Failed to login with Google",e);try{let s=e?.data,i=s?.messageCode;if(!i)throw Error("No Error Message");switch(i){case 1e3:case 1026:case 1033:f({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:f({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(e){f({header:t("somethingWentWrong")})}return!1}},[p,j,b,y,v,k,w,e,A]),error:i,clearError:(0,s.useCallback)(()=>{f(null)},[])}}(j),C=(0,w.useRefMemo)(A),E=(0,s.useRef)(null);_&&(E.current=_);let S=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=>{C.current?.(e)}}),v(!0)),e?.(),!b&&k&&t?.prompt()},id:"google-gsi-script"}),S&&(0,t.jsx)(p.Dialog,{open:!!_,onOpenChange:e=>!e&&x(),children:(0,t.jsx)(p.BasicDialog,{showCloseButton:!1,title:S.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:S.body||""}}),primaryAction:{label:y("cancel"),onClick:x}})})]})}],874905)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3h5d4ldkyb10q.js"].map(t=>e.l(t))).then(()=>t(758048)))},460988,e=>{e.v(t=>Promise.all(["static/chunks/2bqbjxorsplul.js","static/chunks/25v6-g2g4732g.js","static/chunks/0oz6wpni3qqor.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/40-ucou5e-s2-.js","static/chunks/06xt5pmddjmc1.js","static/chunks/12ss66w2jz5v6.js","static/chunks/1g9rt823dw_nm.js","static/chunks/3ez2p7_irinam.js","static/chunks/346zwbsmbxc-r.js","static/chunks/33g99s3__c2lb.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/0xv2he4yq3odp.js","static/chunks/0blq8ymacdr_q.js","static/chunks/0oz6wpni3qqor.js","static/chunks/166u4dtn19uxp.js","static/chunks/1r4mw2atr0nii.js","static/chunks/00cycl48jrw9g.js","static/chunks/3ez2p7_irinam.js","static/chunks/06xt5pmddjmc1.js","static/chunks/2xpk6gjlitq54.js","static/chunks/1g9rt823dw_nm.js","static/chunks/346zwbsmbxc-r.js","static/chunks/12ss66w2jz5v6.js","static/chunks/40-ucou5e-s2-.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);