(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,145473,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(533760),s=e.i(546446),l=e.i(581014),o=e.i(901351),n=e.i(422825),r=e.i(837879),u=e.i(725296),c=e.i(394481),m=e.i(576816),d=e.i(539353),p=e.i(553329),h=e.i(695881),g=e.i(143851),b=e.i(703123),f=e.i(61284);let v=(0,h.createLogger)("useGoogleLogin");var k=e.i(404893),w=e.i(62544),j=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:h=!0,isUserLoggedIn:y,redirectToCheckoutOnSignup:P,oneTapOnly:x=!1}){let _=(0,l.useTranslations)("GoogleLogin"),A=(0,s.useSetAtom)(k.googleLoginInitilizedAtom),{loginWithGoogle:C,error:I,clearError:E}=function(e=!1){let t=(0,l.useTranslations)("GoogleLogin"),[i,h]=(0,a.useState)(null),k=(0,s.useAtomValue)(b.gsiEmailStatesAtom),{updateEmailSubscriptions:w}=(0,n.useEmailPreferences)({skipStatus:!0}),{authSuccess:j,authRedirect:y}=(0,g.useUserLogin)(),P=(0,r.useSubscriptionsEnabled)(),x=(0,s.useAtomValue)(c.privacyRegimeAtom)??u.default.EXEMPT,_=P&&u.US_REGIMES.includes(x)&&x!==u.default.USA_CCPA,{newsletter:A,weekly:C}=k,I=_||k.onYourRadar,E=_||k.marketing,S=(0,m.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),T=(0,d.useSignupComplete)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===E}),L=(0,a.useCallback)(async t=>{let a=await o.upsxClient.auth.loginWithGoogle({google_id_token:t}),i=!!a.isFirstLogin;if(await j({email:a.email,userID:a.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:i}),!i)return y(),!0;let{error:s}=await (0,p.tryCatch)(S());return s&&v.warn("Failed to track signup-complete for Google signup",s),T(),await w({newsletter:A,weekly:C,onYourRadar:I,marketing:E}).catch(e=>{v.error("Failed to update email subscriptions",e)}),e&&P?y(f.PROMO_CHECKOUT_URL):y(),!0},[j,y,S,T,w,A,C,I,E,e,P]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{h(null);let{data:a,error:i}=await (0,p.tryCatch)(L(e));if(a)return!0;v.error("Failed to login with Google",i);let{messageCode:s}=i?.data??{};switch(s){case 1e3:case 1026:case 1033:h({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:h({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:h({header:t("somethingWentWrong")})}return!1},[L,t]),error:i,clearError:(0,a.useCallback)(()=>h(null),[])}}(P),S=(0,j.useRefMemo)(C),T=(0,a.useRef)(null);I&&(T.current=I);let L=T.current;return(0,t.jsxs)(t.Fragment,{children:[!(x&&y)&&(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=>{S.current?.(e)}}),A(!0)),e?.(),!y&&h&&t?.prompt()},id:"google-gsi-script",strategy:x?"lazyOnload":"afterInteractive"}),L&&(0,t.jsx)(w.Dialog,{open:!!I,onOpenChange:e=>!e&&E(),children:(0,t.jsx)(w.BasicDialog,{showCloseButton:!1,title:L.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:L.body||""}}),primaryAction:{label:_("cancel"),onClick:E}})})]})}],145473)},240279,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(730921),s=e.i(546446),l=e.i(429745),o=e.i(498076),n=e.i(269153),r=e.i(677691),u=e.i(949920),c=e.i(553329),m=e.i(695881),d=e.i(901351),p=e.i(528600);let h=(0,m.createLogger)("useWebToAppIntent");var g=e.i(598513),b=e.i(7150),f=e.i(521231);let v="wx-next/web-to-app-install-modal:shown-at",k="web-to-app-install-modal",w="both",j=(0,m.createLogger)("WebToAppInstallModal"),y=()=>{let e=(0,o.useIsMobile)(),m=(0,n.useIsSamsungPartner)(),y=(0,i.useLocale)(),[P,x]=(0,a.useState)(!1),[_,A]=(0,a.useState)(void 0),C=(0,a.useRef)(!1),I=(0,a.useRef)(!1),E=(0,a.useRef)(null),{href:S}=(0,r.useAppInstallLink)("web-to-app-install-modal","web-to-app-install-modal"),T=(0,g.useSendInteractionEvent)(),L=(0,s.useSetAtom)(b.pushlyPromptSuppressedAtom),O=e&&!m&&"en-US"===y;(0,a.useEffect)(()=>{A(!!O&&!function(){try{let e=localStorage.getItem(v);if(!e)return!1;return Date.now()-parseInt(e,10){var e;let a,i,{data:s,error:l}=await (0,c.tryCatch)(t.isUserLoggedIn?d.upsxClient.segmentation.getUserMetrics():d.upsxClient.segmentation.getAnonymousEndpointMetrics(t.anonId));return l?(h.warn("UPSx web-to-app lookup failed",{error:l}),!1):(e=s?.metrics,"number"==typeof(i="string"==typeof(a=e?.fpdprobwebtoapp)?Number(a):a)&&Number.isFinite(i)&&i>=.5)},{shouldRetryOnError:!1});return i}(!0===_);return((0,a.useEffect)(()=>{if(!_||!M||C.current)return;let e=setTimeout(()=>{C.current=!0;try{localStorage.setItem(v,Date.now().toString())}catch(e){j.warn("localStorage write failed, cooldown will not persist",{error:e})}x(!0),T({moduleId:k,interactionType:"shown",featureFocus:w})},5e3);return()=>clearTimeout(e)},[_,M,T]),(0,a.useEffect)(()=>{let e=void 0===_||_&&void 0===M;L(O&&(e||!0===_&&!0===M))},[O,_,M,L]),(0,a.useEffect)(()=>()=>L(!1),[L]),!0!==_)?null:(0,t.jsx)(l.InstallPromptSheet,{open:P,onOpenChange:e=>{e||I.current||T({moduleId:k,interactionType:"dismiss-click",interactionElement:E.current??"overlay-or-escape",featureFocus:w}),I.current=!1,E.current=null,x(e)},title:"",imageContent:(0,t.jsx)(f.default,{className:"size-12 text-[#003399]"}),headline:"The Weather Channel is better on the app",description:"Faster performance, severe notifications, and exclusive radar layers.",getAppHref:S,onGetAppClick:()=>{I.current=!0,T({moduleId:k,interactionType:"get-app-click",featureFocus:w}),x(!1)},dismissLabel:"Not now",onDismissClick:()=>{E.current="not-now"},onCloseClick:()=>{E.current="close-button"}})};e.s(["WebToAppInstallModal",0,y,"default",0,y],240279)},137688,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-6q4vxldh5oe.js"].map(t=>e.l(t))).then(()=>t(72990)))},855602,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(1567),s=e.i(782552),l=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:o,moduleKey:n,variant:r="frontend",children:u})=>{let c=(0,i.useTrackModuleViewed)(),m=(0,s.useTrackModuleViewed)(),d="admin"===r,p=(0,a.useCallback)(()=>{c({moduleId:e,modulePosition:o}),m({moduleId:e,modulePosition:o})},[c,m,e,o]),h=(0,a.useRef)(null),[g,b]=(0,a.useState)([]),f=(0,a.useCallback)(()=>{let e=h.current?Array.from(h.current.children):[];b(t=>t.length===e.length&&t.every((t,a)=>t===e[a])?t:e)},[]);return((0,a.useEffect)(()=>{let e=h.current;if(!e||(f(),"u"t.disconnect()},[f,d]),(0,l.useFullVisibilityOnce)(p,{targets:g,disabled:d}),d)?(0,t.jsx)(t.Fragment,{children:u}):(0,t.jsx)("div",{ref:h,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":o,children:u})}])},576816,703123,e=>{"use strict";var t=e.i(247865),a=e.i(293163),i=e.i(947118),s=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let l=(0,i.useIsInitialized)(),o=(0,s.useEventAttributes)(),[n,r]=(0,t.useState)(!1),u=(0,t.useRef)(!1),c=(0,t.useMemo)(()=>{let t={...o,formVariant:e.formVariant,sensitiveDataAuthorization:e.sensitiveDataAuthorization,deviceTimeZone:e.deviceTimeZone,sourcePage:e.sourcePage,sourceModule:e.sourceModule,sourceElement:e.sourceElement,sourcePosition:e.sourcePosition,mParticleGranted:e.mParticleGranted??!0};return void 0!==e.url&&(t.url=e.url),void 0===t.formVariant&&delete t.formVariant,void 0===t.sensitiveDataAuthorization&&delete t.sensitiveDataAuthorization,void 0===t.deviceTimeZone&&delete t.deviceTimeZone,void 0===t.sourcePage&&delete t.sourcePage,void 0===t.sourceModule&&delete t.sourceModule,void 0===t.sourceElement&&delete t.sourceElement,void 0===t.sourcePosition&&delete t.sourcePosition,t},[o,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,a.areObjectValuesDefined)(c)&&!n&&r(!0)},[c,n]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&n&&!u.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,c),u.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[l,c,n])}],576816);let l=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,l],703123)},853686,e=>{"use strict";var t=e.i(902875),a=e.i(333350),i=e.i(283366);let s=["cw12138"],l=["cw12648","cw13694","cw14216"];function o({flagKey:e,requireReachableFold:t=!0}){let s=a.default?function(e,t){let a=function(e){try{let t=window.localStorage.getItem(`amp-exp-$default_instance-${"client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6)}`);if(!t)return;let a=JSON.parse(t);if(!n(a))return;let i=a[e];if(!n(i)||!i.expKey||!i.key&&!i.value)return;return i}catch{return}}(e);if(a&&(!t||function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let a=!1,i=!1;for(let l of Object.values(t)){let t=l?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;a=!0;let o=n(e)?e[t]:void 0;if(void 0!==o){var s;n(o)&&"number"==typeof(s=o.interval)&&Number.isFinite(s)&&s>=1e4&&s(0,t.jsx)(o,{flagKey:e},e)),l.map(e=>(0,t.jsx)(o,{flagKey:e,requireReachableFold:!1},e))]})}],853686)},711899,e=>{e.v(t=>Promise.all(["static/immutable/chunks/445_zmhfgvc4k.js"].map(t=>e.l(t))).then(()=>t(758048)))},406752,e=>{"use strict";var t=e.i(247865),a=e.i(295553),i=e.i(991511),s=e.i(546446),l=e.i(726249),o=e.i(935807),n=e.i(919101),r=e.i(527091),u=e.i(767685),c=e.i(310847),m=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:d})=>{let p=(0,s.useAtomValue)(c.wxuUserRecentAddressesAtom),h=(0,s.useAtomValue)(c.wxuUserRecentLocationsDataAtom),[,g]=(0,s.useAtom)(a.pageLocationDataAtom),b=(0,s.useSetAtom)(m.activeLocationAtom),f=(0,t.useMemo)(()=>{let t,a;return d?(0,u.honorRecentLocationName)(d,h):(t=(0,n.getAddressForLocationData)(e.location,p),a=void 0,{displayName:t.displayName,adminDistrict:t.adminDistrict,geocode:(0,l.formatGeocode)(`${t.latitude},${t.longitude}`),placeId:t.placeId,featureId:t.featureId,city:t.city,countryCode:t.countryCode,adminDistrictCode:t.adminDistrictCode||"",presentationName:(0,o.getLocationPresentationName)(t,[],!1,a),name:(0,o.getLocationName)(t,[],!1,a),context:(0,o.getLocationContext)(t,[],!1,a),ianaTimeZone:(0,r.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[d,e,p,h]);(0,i.useRehydrateAtoms)([[a.pageLocationDataAtom,f]]);let v=(0,t.useRef)(null);return(0,t.useEffect)(()=>{g(f);let e=f.placeId;v.current!==e&&(b({placeId:f.placeId,geocode:f.geocode,featureId:f.featureId}),v.current=e)},[f,g,b]),null}],406752)},900635,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ayk9ykwa8-o3.js"].map(t=>e.l(t))).then(()=>t(629004)))},204395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_cfh3q2a9_ux.js","static/immutable/chunks/22pth7fask4qq.js"].map(t=>e.l(t))).then(()=>t(240535)))},226535,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3op85vy_1hwez.js"].map(t=>e.l(t))).then(()=>t(513722)))},276866,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3h1qv0m8wsfg8.js"].map(t=>e.l(t))).then(()=>t(848321)))},837309,e=>{e.v(t=>Promise.all(["static/immutable/chunks/40n3y7zbk-ys6.js"].map(t=>e.l(t))).then(()=>t(136535)))},143334,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_usjw6p835sg.js"].map(t=>e.l(t))).then(()=>t(499484)))},508545,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0wip5ujp2b_pb.js"].map(t=>e.l(t))).then(()=>t(364063)))},629719,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mzlbihuqhxhi.js"].map(t=>e.l(t))).then(()=>t(904504)))},557537,e=>{e.v(t=>Promise.all(["static/immutable/chunks/340clffmtbfk2.js"].map(t=>e.l(t))).then(()=>t(555575)))},739891,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0je5mdtiye9zj.js"].map(t=>e.l(t))).then(()=>t(507521)))},880074,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1l9v58ca07l60.js"].map(t=>e.l(t))).then(()=>t(95720)))},988740,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2p7jto3vb2yu0.js"].map(t=>e.l(t))).then(()=>t(4498)))},871210,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0zlb_v7w1u89a.js"].map(t=>e.l(t))).then(()=>t(682228)))},788045,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0j4pypx6iyzm6.js"].map(t=>e.l(t))).then(()=>t(370427)))},155484,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ijewk81pfh_u.js"].map(t=>e.l(t))).then(()=>t(268272)))},459658,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1krcywmtba0-q.js"].map(t=>e.l(t))).then(()=>t(741904)))},105879,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ltstna78iayh.js"].map(t=>e.l(t))).then(()=>t(538911)))},456925,e=>{e.v(t=>Promise.all(["static/immutable/chunks/290xuduen6d69.js"].map(t=>e.l(t))).then(()=>t(831433)))},961808,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3k8tubqkuatdv.js"].map(t=>e.l(t))).then(()=>t(331097)))},657044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/23tf9lhrq5i_m.js"].map(t=>e.l(t))).then(()=>t(737953)))},722501,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0---m13rxi7ax.js"].map(t=>e.l(t))).then(()=>t(210223)))},815637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ch-guj3pv3o0.js"].map(t=>e.l(t))).then(()=>t(359759)))},826256,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0c66jc1ds2lbn.js"].map(t=>e.l(t))).then(()=>t(3603)))},99975,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19venz0qfh71c.js"].map(t=>e.l(t))).then(()=>t(81906)))},110539,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3f331x3odryli.js"].map(t=>e.l(t))).then(()=>t(141096)))},109892,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ygy7o-8mf8b7.js"].map(t=>e.l(t))).then(()=>t(130980)))},587313,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2nw5w_6bbd3vj.js"].map(t=>e.l(t))).then(()=>t(698310)))},568089,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s06eipnjrsxn.js"].map(t=>e.l(t))).then(()=>t(849402)))},15859,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hr-ssyia3o_-.js","static/immutable/chunks/2-uv85ao1917f.js"].map(t=>e.l(t))).then(()=>t(831033)))},151775,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3bj1wx6iiebyo.js"].map(t=>e.l(t))).then(()=>t(585553)))},168876,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0jvala2yxtge4.js"].map(t=>e.l(t))).then(()=>t(69917)))},831163,e=>{e.v(t=>Promise.all(["static/immutable/chunks/4034s9n6fgdqg.js"].map(t=>e.l(t))).then(()=>t(53945)))},520848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/39y9lsbkqq0r7.js"].map(t=>e.l(t))).then(()=>t(721423)))},553277,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3r7p_o_xiv0x8.js"].map(t=>e.l(t))).then(()=>t(329823)))},850863,e=>{e.v(t=>Promise.all(["static/immutable/chunks/178d8bkimb550.js"].map(t=>e.l(t))).then(()=>t(539371)))},434989,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2r2p2_2aawrsg.js"].map(t=>e.l(t))).then(()=>t(7225)))},550029,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1lydokq4wc68h.js"].map(t=>e.l(t))).then(()=>t(906603)))},155945,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2-4kh5j1dnlip.js","static/immutable/chunks/0--ipd8r-c_gl.js"].map(t=>e.l(t))).then(()=>t(822342)))},403403,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3-ff2drazbhvq.js"].map(t=>e.l(t))).then(()=>t(749045)))},937491,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3lj6gmwfftg0v.js"].map(t=>e.l(t))).then(()=>t(416649)))},874846,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1xupowhjhdvn6.js"].map(t=>e.l(t))).then(()=>t(70726)))},298729,e=>{e.v(t=>Promise.all(["static/immutable/chunks/142ipf4bkzah-.js"].map(t=>e.l(t))).then(()=>t(775668)))},709637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1vhtbi1e131xd.js"].map(t=>e.l(t))).then(()=>t(589563)))},296976,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nxhlw2xwl4yp.js"].map(t=>e.l(t))).then(()=>t(208772)))},115284,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(533760),s=e.i(204782);let l=({pageTemplate:e,pageDashboard:l})=>{let o=(0,s.default)();return((0,a.useEffect)(()=>{o&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),l&&window._newsroom.push({pageDashboard:l}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[o,e,l]),o&&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,l,"default",0,l])},808110,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-lpegij-31-3.js"].map(t=>e.l(t))).then(()=>t(738587)))},460988,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0m22rdfpblrn0.js","static/immutable/chunks/1d2cgg3jflc7f.js","static/immutable/chunks/24x7926p0pxf9.js","static/immutable/chunks/3_h7ks2q_-lq4.js","static/immutable/chunks/40t94n8ckamzs.js","static/immutable/chunks/3gafvl6ujy1te.js"].map(t=>e.l(t))).then(()=>t(636705)))},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",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"])}]);