(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:o,refresh:n,getCustomAccountInfo:r}){let[c,l]=(0,s.useState)(""),[u,d]=(0,s.useState)(!1),[m,g]=(0,s.useState)(!1),[h,p]=(0,s.useState)(!1),f=(0,s.useRef)([]);(0,s.useEffect)(()=>{e.id!==f.current[0]&&(f.current=[e.id],e.transactIDs&&f.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,s.useCallback)(()=>{try{o("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{l(i)})}catch{l(i)}},[o,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)):p(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!r;k.admiral("after","visitor.latest",function(s){var i;if("account"===e.requirement)(t?r().registered:s.status.registered)||m||(l(a),d(!0));else if("benefits"===e.requirement){let s=[];if(t)s=r().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 p(!0);let i=!1;for(let e of t)s.includes(e)&&(i=!0);i?p(!0):(l(a),d(!0))}else l(a),d(!0)}})}}))},[]),(0,s.useEffect)(()=>{h&&(p(!1),w())},[h,w]),(0,s.useEffect)(()=>{m||!u||(g(!0),k.admiral("targeting","force",{candidateIDs:f.current}))},[m,u,f,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),o=e.i(797770),n=e.i(513539),r=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,r.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[s.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[o.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:o,moduleKey:n,variant:r="frontend",children:c})=>{let l=(0,i.useTrackModuleViewed)(),u="admin"===r,d=(0,s.useCallback)(()=>{l({moduleId:e,modulePosition:o})},[l,e,o]),m=(0,s.useRef)(null),[g,h]=(0,s.useState)([]),p=(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||(p(),"u"t.disconnect()},[p,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":o,children:c})}])},115284,e=>{"use strict";var t=e.i(699173),s=e.i(592121),i=e.i(185312),a=e.i(204782);let o=({pageTemplate:e,pageDashboard:o})=>{let n=(0,a.default)();return((0,s.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),o&&window._newsroom.push({pageDashboard:o}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,o]),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,o,"default",0,o])},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),o=e.i(683903),n=e.i(671525),r=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),p=e.i(404893),f=e.i(367810),w=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:k=!0,isUserLoggedIn:y,redirectToCheckoutOnSignup:b}){let j=(0,o.useTranslations)("GoogleLogin"),A=(0,a.useSetAtom)(p.googleLoginInitilizedAtom),{loginWithGoogle:v,error:_,clearError:C}=function(e=!1){let t=(0,o.useTranslations)("GoogleLogin"),[i,p]=(0,s.useState)(null),f=(0,a.useSetAtom)(c.userHasLoggedInBeforeAtom),w=(0,a.useAtomValue)(g.gsiEmailStatesAtom),{updateEmailSubscriptions:k}=(0,u.useEmailPreferences)({skipStatus:!0}),{refresh:y}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:b}=(0,l.usePreferences)(),{authSuccess:j,authRedirect:A}=(0,m.useUserLogin)(),v=(0,d.useSubscriptionsEnabled)();return{loginWithGoogle:(0,s.useCallback)(async s=>{let{credential:i}=s;p(null);try{let t=await r.upsxClient.auth.loginWithGoogle({google_id_token:i}),s=t?.isFirstLogin;await j({email:t.email,userID:t.userID,type:s?"signup":"login"},!1);let{newsletter:a,weekly:o,onYourRadar:n,marketing:c,alwaysSubscribe:l}=w||{};return(s||l)&&await k({newsletter:a,weekly:o,onYourRadar:n,marketing:c}).catch(e=>{console.error("Failed to update email subscriptions",e)}),s&&e&&v?A(h.PROMO_CHECKOUT_URL):A(),!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:p({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:p({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(e){p({header:t("somethingWentWrong")})}return!1}},[f,b,y,j,A,k,w,e,v]),error:i,clearError:(0,s.useCallback)(()=>{p(null)},[])}}(b),x=(0,w.useRefMemo)(v),L=(0,s.useRef)(null);_&&(L.current=_);let I=L.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=>{x.current?.(e)}}),A(!0)),e?.(),!y&&k&&t?.prompt()},id:"google-gsi-script"}),I&&(0,t.jsx)(f.Dialog,{open:!!_,onOpenChange:e=>!e&&C(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:I.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:I.body||""}}),primaryAction:{label:j("cancel"),onClick:C}})})]})}],874905)},406752,e=>{"use strict";var t=e.i(592121),s=e.i(295553),i=e.i(991511),a=e.i(546446),o=e.i(726249),n=e.i(935807),r=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,a.useAtomValue)(u.wxuUserRecentAddressesAtom),h=(0,a.useAtomValue)(u.wxuUserRecentLocationsDataAtom),[,p]=(0,a.useAtom)(s.pageLocationDataAtom),f=(0,a.useSetAtom)(d.activeLocationAtom),w=(0,t.useMemo)(()=>{let t,s;return m?(0,l.honorRecentLocationName)(m,h):(t=(0,r.getAddressForLocationData)(e.location,g),s=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,o.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,n.getLocationPresentationName)(t,[],!1,s),name:(0,n.getLocationName)(t,[],!1,s),context:(0,n.getLocationContext)(t,[],!1,s),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,i.useRehydrateAtoms)([[s.pageLocationDataAtom,w]]);let k=(0,t.useRef)(null);return(0,t.useEffect)(()=>{p(w);let e=w.placeId;k.current!==e&&(f({placeId:w.placeId,geocode:w.geocode,featureId:w.featureId}),k.current=e)},[w,p,f]),null}],406752)},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)))}]);