(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),i=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:o="Authentication failed. Please try again.",protectMessage:s="Remove your adblocker.",fetch:a,refresh:r,getCustomAccountInfo:n}){let[c,l]=(0,i.useState)(""),[u,d]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[h,f]=(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{a("/?adm_get_token=1").then(e=>{e.ok&&r()}).catch(()=>{l(o)})}catch{l(o)}},[a,o,r]),A=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(A.admiral=A.admiral||function(...e){(A.admiral.q=A.admiral.q||[]).push(e)},A.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(l(s),d(!0)):f(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!n;A.admiral("after","visitor.latest",function(i){var o;if("account"===e.requirement)(t?n().registered:i.status.registered)||m||(l(s),d(!0));else if("benefits"===e.requirement){let i=[];if(t)i=n().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 f(!0);let o=!1;for(let e of t)i.includes(e)&&(o=!0);o?f(!0):(l(s),d(!0))}else l(s),d(!0)}})}}))},[]),(0,i.useEffect)(()=>{h&&(f(!1),w())},[h,w]),(0,i.useEffect)(()=>{m||!u||(g(!0),A.admiral("targeting","force",{candidateIDs:p.current}))},[m,u,p,A]),(0,t.jsxs)("div",{children:[c||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),o=e.i(695203),s=e.i(604323),a=e.i(797770),r=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,r.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[o.deviceClassAtom,e.deviceClass],[s.metricsArticleDataAtom,e.metricsArticleData],[a.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},1567,e=>{"use strict";var t=e.i(947118),i=e.i(737801),o=e.i(592121);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",s=(0,t.useIsInitialized)(),a=(0,i.useEventAttributes)();return(0,o.useCallback)(({moduleId:t,modulePosition:i})=>{if(!s)return void console.warn("MParticle is not initialized");let o={module_id:t,module_position:i,...a};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)}},[a,s])}])},855602,e=>{"use strict";var t=e.i(699173),i=e.i(592121),o=e.i(1567),s=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:a,moduleKey:r,variant:n="frontend",children:c})=>{let l=(0,i.useRef)(null),[u,d]=(0,i.useState)(!1),m=(0,i.useRef)(null),g=(0,o.useTrackModuleViewed)();return"admin"===n?(0,t.jsx)(t.Fragment,{children:c}):((0,i.useEffect)(()=>{if(u||!s.default||!l.current)return;let t=l.current,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{g({moduleId:e,modulePosition:a}),d(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});i.observe(t);let o=t.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth;return o.top>=0&&o.left>=0&&o.bottom{g({moduleId:e,modulePosition:a}),d(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),i.disconnect()}},[u,e,a,g]),(0,t.jsx)("div",{ref:l,className:"hide-empty","data-module-id":e,"data-module-key":r,"data-item-position":a,children:c}))}])},670279,e=>{"use strict";var t=e.i(699173),i=e.i(592121),o=e.i(185312),s=e.i(204782);let a=({pageTemplate:e,pageDashboard:a})=>{let r=(0,s.default)();return((0,i.useEffect)(()=>{r&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),a&&window._newsroom.push({pageDashboard:a}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[r,e,a]),r&&e)?(0,t.jsx)(o.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,a,"default",0,a])},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),i=e.i(592121),o=e.i(185312),s=e.i(546446),a=e.i(683903),r=e.i(671525),n=e.i(901351),c=e.i(310847),l=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:p=!0,isUserLoggedIn:w}){let A=(0,a.useTranslations)("GoogleLogin"),y=(0,s.useSetAtom)(g.googleLoginInitilizedAtom),{loginWithGoogle:k,error:v,clearError:b}=function(){let e=(0,a.useTranslations)("GoogleLogin"),[t,o]=(0,i.useState)(null),g=(0,s.useSetAtom)(c.userHasLoggedInBeforeAtom),h=(0,s.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:f}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:p}=(0,r.usePageNavigation)(),{syncPreferencesFromUpsx:w}=(0,l.usePreferences)(),{authSuccess:A,authRedirect:y}=(0,d.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;o(null);try{let e=await n.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await A({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:o,weekly:s,onYourRadar:a,marketing:r,alwaysSubscribe:c}=h||{};return(t||c)&&await f({newsletter:o,weekly:s,onYourRadar:a,marketing:r}).catch(e=>{console.error("Failed to update email subscriptions",e)}),y(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,s=i?.messageCode;if(!s)throw Error("No Error Message");switch(s){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,A,y,f,h]),error:t,clearError:(0,i.useCallback)(()=>{o(null)},[])}}(),j=(0,f.useRefMemo)(k),I=(0,i.useRef)(null);v&&(I.current=v);let _=I.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=>{j.current?.(e)}}),y(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script"}),_&&(0,t.jsx)(h.Dialog,{open:!!v,onOpenChange:e=>!e&&b(),children:(0,t.jsx)(h.BasicDialog,{showCloseButton:!1,title:_.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:_.body||""}}),primaryAction:{label:A("cancel"),onClick:b}})})]})}],874905)},406752,e=>{"use strict";var t=e.i(592121),i=e.i(295553),o=e.i(991511),s=e.i(546446),a=e.i(726249),r=e.i(935807),n=e.i(919101),c=e.i(527091),l=e.i(767685),u=e.i(310847),d=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:m})=>{let g=(0,s.useAtomValue)(u.wxuUserRecentAddressesAtom),h=(0,s.useAtomValue)(u.wxuUserRecentLocationsDataAtom),[,f]=(0,s.useAtom)(i.pageLocationDataAtom),p=(0,s.useSetAtom)(d.activeLocationAtom),w=(0,t.useMemo)(()=>{let t,i;return m?(0,l.honorRecentLocationName)(m,h):(t=(0,n.getAddressForLocationData)(e.location,g),i=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,a.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,r.getLocationPresentationName)(t,[],!1,i),name:(0,r.getLocationName)(t,[],!1,i),context:(0,r.getLocationContext)(t,[],!1,i),ianaTimeZone:(0,c.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[m,e,g,h]);(0,o.useRehydrateAtoms)([[i.pageLocationDataAtom,w]]);let A=(0,t.useRef)(null);return(0,t.useEffect)(()=>{f(w);let e=w.placeId;A.current!==e&&(p({placeId:w.placeId,geocode:w.geocode,featureId:w.featureId}),A.current=e)},[w,f,p]),null}],406752)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3ulw-v-wqqzid.js"].map(t=>e.l(t))).then(()=>t(171714)))},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/109qgu9tjsd_w.js","static/chunks/3z-hm61whmv7z.js","static/chunks/1u6m0razmb56c.js","static/chunks/1hemsf225twh-.js","static/chunks/00cycl48jrw9g.js","static/chunks/42urmzzxjk9mg.js","static/chunks/1g9rt823dw_nm.js","static/chunks/0p6j81gi5ako-.js","static/chunks/0i9zkl9cmn-3k.js","static/chunks/41oh9e1kiir-l.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);