(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),o=e.i(901351),n=e.i(422825),r=e.i(837879),c=e.i(725296),m=e.i(394481),u=e.i(576816),d=e.i(539353),h=e.i(553329),p=e.i(695881),g=e.i(143851),f=e.i(703123),b=e.i(61284);let v=(0,p.createLogger)("useGoogleLogin");var k=e.i(404893),j=e.i(367810),w=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:P,redirectToCheckoutOnSignup:y,oneTapOnly:_=!1}){let x=(0,l.r)("GoogleLogin"),I=(0,s.F)(k.f),{loginWithGoogle:z,error:C,clearError:T}=function(e=!1){let t=(0,l.r)("GoogleLogin"),[i,p]=(0,a.useState)(null),k=(0,s.y)(f.f),{updateEmailSubscriptions:j}=(0,n.f)({skipStatus:!0}),{authSuccess:w,authRedirect:P}=(0,g.f)(),y=(0,r.f)(),_=(0,s.y)(m.f)??c.U.EXEMPT,x=y&&c.D.includes(_)&&_!==c.U.USA_CCPA,{newsletter:I,weekly:z}=k,C=x||k.onYourRadar,T=x||k.marketing,A=(0,u.f)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),E=(0,d.f)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===T}),D=(0,a.useCallback)(async t=>{let a=await o.f.auth.loginWithGoogle({google_id_token:t}),i=!!a.isFirstLogin;if(await w({email:a.email,userID:a.userID,type:i?"signup":"login"},!1,{skipSignupCompleteEvent:i}),!i)return P(),!0;let{error:s}=await (0,h.f)(A());return s&&v.warn("Failed to track signup-complete for Google signup",s),E(),await j({newsletter:I,weekly:z,onYourRadar:C,marketing:T}).catch(e=>{v.error("Failed to update email subscriptions",e)}),e&&y?P(b.f):P(),!0},[w,P,A,E,j,I,z,C,T,e,y]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{p(null);let{data:a,error:i}=await (0,h.f)(D(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:p({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:p({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:p({header:t("somethingWentWrong")})}return!1},[D,t]),error:i,clearError:(0,a.useCallback)(()=>p(null),[])}}(y),A=(0,w.f)(z),E=(0,a.useRef)(null);C&&(E.current=C);let D=E.current;return(0,t.jsxs)(t.Fragment,{children:[!(_&&P)&&(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=>{A.current?.(e)}}),I(!0)),e?.(),!P&&p&&t?.prompt()},id:"google-gsi-script",strategy:_?"lazyOnload":"afterInteractive"}),D&&(0,t.jsx)(j.N,{open:!!C,onOpenChange:e=>!e&&T(),children:(0,t.jsx)(j.J,{showCloseButton:!1,title:D.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:D.body||""}}),primaryAction:{label:x("cancel"),onClick:T}})})]})}],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),o=e.i(498076),n=e.i(269153),r=e.i(677691),c=e.i(42318),m=e.i(553329),u=e.i(695881),d=e.i(901351),h=e.i(528600);let p=(0,u.createLogger)("useWebToAppIntent");var g=e.i(598513),f=e.i(7150),b=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,o.f)(),u=(0,n.f)(),P=(0,i.X)(),[y,_]=(0,a.useState)(!1),[x,I]=(0,a.useState)(void 0),z=(0,a.useRef)(!1),C=(0,a.useRef)(!1),T=(0,a.useRef)(null),{href:A}=(0,r.f)("web-to-app-install-modal","web-to-app-install-modal"),E=(0,g.f)(),D=(0,s.F)(f.f),F=e&&!u&&"en-US"===P;(0,a.useEffect)(()=>{I(!!F&&!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?d.f.segmentation.getUserMetrics():d.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||!G||z.current)return;let e=setTimeout(()=>{z.current=!0;try{localStorage.setItem(v,Date.now().toString())}catch(e){w.warn("localStorage write failed, cooldown will not persist",{error:e})}_(!0),E({moduleId:k,interactionType:"shown",featureFocus:j})},5e3);return()=>clearTimeout(e)},[x,G,E]),(0,a.useEffect)(()=>{let e=void 0===x||x&&void 0===G;D(F&&(e||!0===x&&!0===G))},[F,x,G,D]),(0,a.useEffect)(()=>()=>D(!1),[D]),!0!==x)?null:(0,t.jsx)(l.f,{open:y,onOpenChange:e=>{e||C.current||E({moduleId:k,interactionType:"dismiss-click",interactionElement:T.current??"overlay-or-escape",featureFocus:j}),C.current=!1,T.current=null,_(e)},title:"",imageContent:(0,t.jsx)(b.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:()=>{C.current=!0,E({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)(),o=(0,s.f)(),[n,r]=(0,t.useState)(!1),c=(0,t.useRef)(!1),m=(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.k)(m)&&!n&&r(!0)},[m,n]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&n&&!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,n])}],576816);let l=(0,e.i(144683).g)({});e.s(["f",0,l],703123)},711899,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0dbjs_srx7ito.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(726249),o=e.i(935807),n=e.i(919101),r=e.i(527091),c=e.i(767685),m=e.i(310847),u=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:d})=>{let h=(0,s.y)(m.d),p=(0,s.y)(m.z),[,g]=(0,s.q)(a.f),f=(0,s.F)(u.f),b=(0,t.useMemo)(()=>{let t,a;return d?(0,c.f)(d,p):(t=(0,n.f)(e.location,h),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.e)(t,[],!1,a),name:(0,o.P)(t,[],!1,a),context:(0,o.d)(t,[],!1,a),ianaTimeZone:(0,r.f)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[d,e,h,p]);(0,i.f)([[a.f,b]]);let v=(0,t.useRef)(null);return(0,t.useEffect)(()=>{g(b);let e=b.placeId;v.current!==e&&(f({placeId:b.placeId,geocode:b.geocode,featureId:b.featureId}),v.current=e)},[b,g,f]),null}],406752)},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/0hyn6o6gvz5t9.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/1z7jsox9xbr0f.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/2yymprig7i9fy.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/1baxyfyk0uw4a.js","static/immutable/chunks/3-h4hg5wwe65o.js"].map(t=>e.l(t))).then(()=>t(831033)))},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/1nfc0ajazn6nt.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/02dxn84xlk515.js","static/immutable/chunks/0e6gkttc7gwwl.js"].map(t=>e.l(t))).then(()=>t(822342)))},403403,e=>{e.v(t=>Promise.all(["static/immutable/chunks/04afuedyil20q.js"].map(t=>e.l(t))).then(()=>t(749045)))},937491,e=>{e.v(t=>Promise.all(["static/immutable/chunks/44w-7e3akhzd3.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/3rm7equawfb9m.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 o=(0,s.f)();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}])},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/21ul0r6rwg-o8.js","static/immutable/chunks/0_linbrivktz5.js","static/immutable/chunks/27pfmgqfs7ct6.js","static/immutable/chunks/44_4h5svnh4t5.js","static/immutable/chunks/11esi59vuay38.js","static/immutable/chunks/090e7z7gx_-1n.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"])}]);