(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),o=e.i(13155),r=e.i(475566),n=e.i(547100),a=e.i(671525),s=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:p=!0,isUserLoggedIn:w}){let y=(0,n.useTranslations)("GoogleLogin"),A=(0,r.useSetAtom)(g.googleLoginInitilizedAtom),{loginWithGoogle:v,error:b,clearError:C}=function(){let e=(0,n.useTranslations)("GoogleLogin"),[t,o]=(0,i.useState)(null),g=(0,r.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,r.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:h}=(0,u.useEmailPreferences)(),{refresh:p}=(0,a.usePageNavigation)(),{syncPreferencesFromUpsx:w}=(0,c.usePreferences)(),{authSuccess:y,authRedirect:A}=(0,d.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;o(null);try{let e=await s.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await y({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:o,weekly:r,onYourRadar:n,marketing:a,alwaysSubscribe:l}=f||{};return(t||l)&&await h({newsletter:o,weekly:r,onYourRadar:n,marketing:a}).catch(e=>{console.error("Failed to update email subscriptions",e)}),A(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,r=i?.messageCode;if(!r)throw Error("No Error Message");switch(r){case 1e3:case 1026:case 1033:o({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:o({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){o({header:e("somethingWentWrong")})}return!1}},[g,w,p,y,A,h,f]),error:t,clearError:(0,i.useCallback)(()=>{o(null)},[])}}(),E=(0,h.useRefMemo)(v),_=(0,i.useRef)(null);b&&(_.current=b);let k=_.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.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=>{E.current?.(e)}}),A(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script"}),k&&(0,t.jsx)(f.Dialog,{open:!!b,onOpenChange:e=>!e&&C(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:k.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:k.body||""}}),primaryAction:{label:y("cancel"),onClick:C}})})]})}],874905)},907303,e=>{"use strict";var t=e.i(648198),i=e.i(539922);e.s(["default",0,function({candidate:e,failedMessage:o="Authentication failed. Please try again.",protectMessage:r="Remove your adblocker.",fetch:n,refresh:a,getCustomAccountInfo:s}){let[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),p=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,i.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&a()}).catch(()=>{c(o)})}catch{c(o)}},[n,o,a]),y=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(y.admiral=y.admiral||function(...e){(y.admiral.q=y.admiral.q||[]).push(e)},y.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(r),d(!0)):h(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!s;y.admiral("after","visitor.latest",function(i){var o;if("account"===e.requirement)(t?s().registered:i.status.registered)||m||(c(r),d(!0));else if("benefits"===e.requirement){let i=[];if(t)i=s().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(o=e.find(e=>e.startsWith("admbenefits=")))?void 0:o.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void h(!0);let o=!1;for(let e of t)i.includes(e)&&(o=!0);o?h(!0):(c(r),d(!0))}else c(r),d(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(h(!1),w())},[f,w]),(0,i.useEffect)(()=>{m||!u||(g(!0),y.admiral("targeting","force",{candidateIDs:p.current}))},[m,u,p,y]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),o=e.i(695203),r=e.i(604323),n=e.i(797770),a=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,a.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[o.deviceClassAtom,e.deviceClass],[r.metricsArticleDataAtom,e.metricsArticleData],[n.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},1567,e=>{"use strict";var t=e.i(947118),i=e.i(737801),o=e.i(539922);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",r=(0,t.useIsInitialized)(),n=(0,i.useEventAttributes)();return(0,o.useCallback)(({moduleId:t,modulePosition:i})=>{if(!r)return void console.warn("MParticle is not initialized");let o={module_id:t,module_position:i,...n};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,o),console.debug(`MParticle: Event "${e}" tracked`,o)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[n,r])}])},670279,e=>{"use strict";var t=e.i(648198),i=e.i(539922),o=e.i(13155),r=e.i(204782);let n=({pageTemplate:e,pageDashboard:n})=>{let a=(0,r.default)();return((0,i.useEffect)(()=>{a&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),n&&window._newsroom.push({pageDashboard:n}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[a,e,n]),a&&e)?(0,t.jsx)(o.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"beforeInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,n,"default",0,n])},855602,e=>{"use strict";var t=e.i(648198),i=e.i(539922),o=e.i(1567),r=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:a,variant:s="frontend",children:l})=>{let c=(0,i.useRef)(null),[u,d]=(0,i.useState)(!1),m=(0,i.useRef)(null),g=(0,o.useTrackModuleViewed)();return"admin"===s?(0,t.jsx)(t.Fragment,{children:l}):((0,i.useEffect)(()=>{if(u||!r.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 o=t.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth;return o.top>=0&&o.left>=0&&o.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":a,"data-item-position":n,children:l}))}])},406752,e=>{"use strict";var t=e.i(539922),i=e.i(295553),o=e.i(991511),r=e.i(475566),n=e.i(405052),a=e.i(935807),s=e.i(919101);function l(e,t,i){let o=(0,s.getAddressForLocationData)(e.location,t),r=i?.split("-")[1]||void 0;return{displayName:o.displayName,adminDistrict:o.adminDistrict,geocode:(0,n.formatGeocode)(`${o.latitude},${o.longitude}`),placeId:o.placeId,city:o.city,countryCode:o.countryCode,adminDistrictCode:o.adminDistrictCode||"",presentationName:(0,a.getLocationPresentationName)(o,[],!1,r),ianaTimeZone:o.ianaTimeZone,postalCode:o.postalCode,type:o.type,dmaCd:o.dmaCd||""}}var c=e.i(310847);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:n})=>{let a=(0,r.useAtomValue)(c.wxuUserRecentAddressesAtom),[,s]=(0,r.useAtom)(i.pageLocationDataAtom),u=(0,t.useMemo)(()=>n??l(e,a),[n,e,a]);(0,o.useRehydrateAtoms)([[i.pageLocationDataAtom,u]]);let d=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=n?n.placeId:e.location.placeId;d.current!==t&&(s(n??l(e,a)),d.current=t)},[n,e,a,s]),null}],406752)},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)))}]);