(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(458201),a=e.i(538167),i=e.i(526932),s=e.i(282446),l=e.i(789422),n=e.i(901351),o=e.i(422825),r=e.i(837879),c=e.i(87809),m=e.i(358233),u=e.i(394481),h=e.i(576816),d=e.i(539353),p=e.i(553329),g=e.i(695881),b=e.i(143851),f=e.i(703123),v=e.i(61284);let k=(0,g.createLogger)("useGoogleLogin");var j=e.i(404893),w=e.i(367810),P=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:g=!0,isUserLoggedIn:y,redirectToCheckoutOnSignup:_,oneTapOnly:x=!1}){let z=(0,l.r)("GoogleLogin"),I=(0,s.F)(j.f),{loginWithGoogle:E,error:T,clearError:A}=function(e=!1){let t=(0,l.r)("GoogleLogin"),[i,g]=(0,a.useState)(null),j=(0,s.y)(f.f),{updateEmailSubscriptions:w}=(0,o.f)({skipStatus:!0}),{authSuccess:P,authRedirect:y}=(0,b.f)(),_=(0,r.f)(),x=(0,s.y)(u.f)??c.U.EXEMPT,z=_&&m.D.includes(x)&&x!==c.U.USA_CCPA,{newsletter:I,weekly:E}=j,T=z||j.onYourRadar,A=z||j.marketing,C=(0,h.f)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),F=(0,d.f)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===A}),G=(0,a.useCallback)(async t=>{let a=await n.f.auth.loginWithGoogle({google_id_token:t}),i=!!a.isFirstLogin;if(await P({email:a.email,userID:a.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:i}),!i)return y(),!0;let{error:s}=await (0,p.f)(C());return s&&k.warn("Failed to track signup-complete for Google signup",s),F(),await w({newsletter:I,weekly:E,onYourRadar:T,marketing:A}).catch(e=>{k.error("Failed to update email subscriptions",e)}),e&&_?y(v.f):y(),!0},[P,y,C,F,w,I,E,T,A,e,_]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{g(null);let{data:a,error:i}=await (0,p.f)(G(e));if(a)return!0;k.error("Failed to login with Google",i);let{messageCode:s}=i?.data??{};switch(s){case 1e3:case 1026:case 1033:g({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:g({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:g({header:t("somethingWentWrong")})}return!1},[G,t]),error:i,clearError:(0,a.useCallback)(()=>g(null),[])}}(_),C=(0,P.f)(E),F=(0,a.useRef)(null);T&&(F.current=T);let G=F.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=>{C.current?.(e)}}),I(!0)),e?.(),!y&&g&&t?.prompt()},id:"google-gsi-script",strategy:x?"lazyOnload":"afterInteractive"}),G&&(0,t.jsx)(w.N,{open:!!T,onOpenChange:e=>!e&&A(),children:(0,t.jsx)(w.J,{showCloseButton:!1,title:G.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:G.body||""}}),primaryAction:{label:z("cancel"),onClick:A}})})]})}],145473)},240279,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(580547),s=e.i(282446),l=e.i(429745),n=e.i(498076),o=e.i(269153),r=e.i(677691),c=e.i(42318),m=e.i(553329),u=e.i(695881),h=e.i(901351),d=e.i(528600);let p=(0,u.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",j="both",w=(0,u.createLogger)("WebToAppInstallModal");e.s(["WebToAppInstallModal",0,()=>{let e=(0,n.f)(),u=(0,o.f)(),P=(0,i.X)(),[y,_]=(0,a.useState)(!1),[x,z]=(0,a.useState)(void 0),I=(0,a.useRef)(!1),E=(0,a.useRef)(!1),T=(0,a.useRef)(null),{href:A}=(0,r.f)("web-to-app-install-modal","web-to-app-install-modal"),C=(0,g.f)(),F=(0,s.F)(b.f),G=e&&!u&&"en-US"===P;(0,a.useEffect)(()=>{z(!!G&&!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,m.f)(t.isUserLoggedIn?h.f.segmentation.getUserMetrics():h.f.segmentation.getAnonymousEndpointMetrics(t.anonId));return l?(p.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===x);return((0,a.useEffect)(()=>{if(!x||!S||I.current)return;let e=setTimeout(()=>{I.current=!0;try{localStorage.setItem(v,Date.now().toString())}catch(e){w.warn("localStorage write failed, cooldown will not persist",{error:e})}_(!0),C({moduleId:k,interactionType:"shown",featureFocus:j})},5e3);return()=>clearTimeout(e)},[x,S,C]),(0,a.useEffect)(()=>{let e=void 0===x||x&&void 0===S;F(G&&(e||!0===x&&!0===S))},[G,x,S,F]),(0,a.useEffect)(()=>()=>F(!1),[F]),!0!==x)?null:(0,t.jsx)(l.f,{open:y,onOpenChange:e=>{e||E.current||C({moduleId:k,interactionType:"dismiss-click",interactionElement:T.current??"overlay-or-escape",featureFocus:j}),E.current=!1,T.current=null,_(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:A,onGetAppClick:()=>{E.current=!0,C({moduleId:k,interactionType:"get-app-click",featureFocus:j}),_(!1)},dismissLabel:"Not now",onDismissClick:()=>{T.current="not-now"},onCloseClick:()=>{T.current="close-button"}})}],240279)},137688,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1dgd-1au-uut5.js"].map(t=>e.l(t))).then(()=>t(72990)))},576816,703123,e=>{"use strict";var t=e.i(538167),a=e.i(293163),i=e.i(947118),s=e.i(737801);e.s(["f",0,(e={})=>{let l=(0,i.f)(),n=(0,s.f)(),[o,r]=(0,t.useState)(!1),c=(0,t.useRef)(!1),m=(0,t.useMemo)(()=>{let t={...n,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},[n,e.formVariant,e.url,e.sensitiveDataAuthorization,e.deviceTimeZone,e.sourcePage,e.sourceModule,e.sourceElement,e.sourcePosition,e.mParticleGranted]);return(0,t.useEffect)(()=>{(0,a.k)(m)&&!o&&r(!0)},[m,o]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&o&&!c.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,m),c.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${m.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[l,m,o])}],576816);let l=(0,e.i(144683).g)({});e.s(["f",0,l],703123)},711899,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bkm8ddpbq6fr.js"].map(t=>e.l(t))).then(()=>t(758048)))},406752,e=>{"use strict";var t=e.i(538167),a=e.i(295553),i=e.i(991511),s=e.i(282446),l=e.i(710402),n=e.i(767685),o=e.i(310847),r=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:c})=>{let m=(0,s.y)(o.d),u=(0,s.y)(o.z),[,h]=(0,s.q)(a.f),d=(0,s.F)(r.f),p=(0,t.useMemo)(()=>c?(0,n.f)(c,u):(0,l.f)(e,m),[c,e,m,u]);(0,i.f)([[a.f,p]]);let g=(0,t.useRef)(null);return(0,t.useEffect)(()=>{h(p);let e=p.placeId;g.current!==e&&(d({placeId:p.placeId,geocode:p.geocode,featureId:p.featureId}),g.current=e)},[p,h,d]),null}])},900635,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hzjbmj0sm36b.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/11zbnxs9co_20.js"].map(t=>e.l(t))).then(()=>t(240535)))},226535,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0cbht9sgy1_ye.js"].map(t=>e.l(t))).then(()=>t(513722)))},276866,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2f0asrk37n3-g.js"].map(t=>e.l(t))).then(()=>t(848321)))},837309,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tn67n6ibb-89.js"].map(t=>e.l(t))).then(()=>t(136535)))},143334,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2cqwpxxquic82.js"].map(t=>e.l(t))).then(()=>t(499484)))},629719,e=>{e.v(t=>Promise.all(["static/immutable/chunks/187zhvpo5j7j3.js"].map(t=>e.l(t))).then(()=>t(904504)))},557537,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2au6lyv-fe4ih.js"].map(t=>e.l(t))).then(()=>t(555575)))},739891,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2yyhhymxklvfs.js"].map(t=>e.l(t))).then(()=>t(507521)))},880074,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0jed3vfk2do11.js"].map(t=>e.l(t))).then(()=>t(95720)))},988740,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2lzn6800es7f9.js"].map(t=>e.l(t))).then(()=>t(4498)))},871210,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e_xdm1m_t55y.js"].map(t=>e.l(t))).then(()=>t(682228)))},788045,e=>{e.v(t=>Promise.all(["static/immutable/chunks/20x21m2n43t8u.js"].map(t=>e.l(t))).then(()=>t(370427)))},155484,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3jyi7humgjpl5.js"].map(t=>e.l(t))).then(()=>t(268272)))},459658,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3zuida-zbpgc9.js"].map(t=>e.l(t))).then(()=>t(741904)))},105879,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0rfzc9yx3jr2z.js"].map(t=>e.l(t))).then(()=>t(538911)))},456925,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2gs_09g-f6_n5.js"].map(t=>e.l(t))).then(()=>t(831433)))},961808,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2m1ot2izdp8u3.js"].map(t=>e.l(t))).then(()=>t(331097)))},657044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1cvsvt1hyxe9t.js"].map(t=>e.l(t))).then(()=>t(737953)))},722501,e=>{e.v(t=>Promise.all(["static/immutable/chunks/310u75tuyk7e8.js"].map(t=>e.l(t))).then(()=>t(210223)))},815637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0oqqcly9ii8yz.js"].map(t=>e.l(t))).then(()=>t(359759)))},826256,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1rtdkwvb2ckg3.js"].map(t=>e.l(t))).then(()=>t(3603)))},99975,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p6dtrtmk2gko.js"].map(t=>e.l(t))).then(()=>t(81906)))},110539,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s5d2a1j84j7k.js"].map(t=>e.l(t))).then(()=>t(141096)))},109892,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22qnd1fep5g3m.js"].map(t=>e.l(t))).then(()=>t(130980)))},587313,e=>{e.v(t=>Promise.all(["static/immutable/chunks/08-t9shuexxkb.js"].map(t=>e.l(t))).then(()=>t(698310)))},568089,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44s2f0dc_191a.js"].map(t=>e.l(t))).then(()=>t(849402)))},15859,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3g261onasnavv.js","static/immutable/chunks/24lbsealucf_i.js"].map(t=>e.l(t))).then(()=>t(831033)))},626428,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1v50n19fcc8my.js"].map(t=>e.l(t))).then(()=>t(962491)))},151775,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2bw_cre76r-hr.js"].map(t=>e.l(t))).then(()=>t(585553)))},168876,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ajpfq-tvwzpt.js"].map(t=>e.l(t))).then(()=>t(69917)))},831163,e=>{e.v(t=>Promise.all(["static/immutable/chunks/18bqem20n7n97.js"].map(t=>e.l(t))).then(()=>t(53945)))},520848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3aq8xfrgbzfcq.js"].map(t=>e.l(t))).then(()=>t(721423)))},553277,e=>{e.v(t=>Promise.all(["static/immutable/chunks/25z3mbe3eowc8.js"].map(t=>e.l(t))).then(()=>t(329823)))},850863,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1g6px_w8rpzj_.js"].map(t=>e.l(t))).then(()=>t(539371)))},434989,e=>{e.v(t=>Promise.all(["static/immutable/chunks/43m7bj8q63cl6.js"].map(t=>e.l(t))).then(()=>t(7225)))},550029,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0e8v-uozy8bi5.js"].map(t=>e.l(t))).then(()=>t(906603)))},155945,e=>{e.v(t=>Promise.all(["static/immutable/chunks/36g_d6wdm_9x_.js","static/immutable/chunks/0sgemuch-62p2.js"].map(t=>e.l(t))).then(()=>t(822342)))},403403,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2gpgeyz0-jn2d.js"].map(t=>e.l(t))).then(()=>t(749045)))},937491,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17vnr3nhz97sj.js"].map(t=>e.l(t))).then(()=>t(416649)))},874846,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0_jljhmarjnhq.js"].map(t=>e.l(t))).then(()=>t(70726)))},298729,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3axlzpioqzicz.js"].map(t=>e.l(t))).then(()=>t(775668)))},709637,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2_e3bv20ia8s-.js"].map(t=>e.l(t))).then(()=>t(589563)))},296976,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yts2r8va3dd5.js"].map(t=>e.l(t))).then(()=>t(208772)))},670279,e=>{"use strict";var t=e.i(458201),a=e.i(538167),i=e.i(526932),s=e.i(204782);e.s(["Newsroom",0,({pageTemplate:e,pageDashboard:l})=>{let n=(0,s.f)();return((0,a.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),l&&window._newsroom.push({pageDashboard:l}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,l]),n&&e)?(0,t.jsx)(i.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null}])},808110,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3xed0rr42a2uw.js"].map(t=>e.l(t))).then(()=>t(738587)))},460988,e=>{e.v(t=>Promise.all(["static/immutable/chunks/14r-bjpbp2n_5.js","static/immutable/chunks/2mxmecum0d5be.js","static/immutable/chunks/27pfmgqfs7ct6.js","static/immutable/chunks/05crlne1d1azy.js","static/immutable/chunks/11esi59vuay38.js","static/immutable/chunks/3yo6srxomvd--.js"].map(t=>e.l(t))).then(()=>t(636705)))},404893,e=>{"use strict";let t=(0,e.i(144683).g)(!1);e.s(["f",0,t])},61284,e=>{"use strict";e.s(["f",0,"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=5OFF&tpcc=mktg-5OFF-reg"])}]);