(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),m=e.i(422825),n=e.i(837879),r=e.i(87809),c=e.i(358233),u=e.i(394481),h=e.i(576816),d=e.i(539353),p=e.i(553329),b=e.i(695881),g=e.i(143851),v=e.i(703123),k=e.i(61284);let j=(0,b.createLogger)("useGoogleLogin");var f=e.i(404893),P=e.i(367810),w=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:b=!0,isUserLoggedIn:y,redirectToCheckoutOnSignup:_,oneTapOnly:x=!1}){let z=(0,l.r)("GoogleLogin"),A=(0,s.F)(f.f),{loginWithGoogle:G,error:C,clearError:E}=function(e=!1){let t=(0,l.r)("GoogleLogin"),[i,b]=(0,a.useState)(null),f=(0,s.y)(v.f),{updateEmailSubscriptions:P}=(0,m.f)({skipStatus:!0}),{authSuccess:w,authRedirect:y}=(0,g.f)(),_=(0,n.f)(),x=(0,s.y)(u.f)??r.U.EXEMPT,z=_&&c.D.includes(x)&&x!==r.U.USA_CCPA,{newsletter:A,weekly:G}=f,C=z||f.onYourRadar,E=z||f.marketing,T=(0,h.f)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),q=(0,d.f)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===E}),F=(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 y(),!0;let{error:s}=await (0,p.f)(T());return s&&j.warn("Failed to track signup-complete for Google signup",s),q(),await P({newsletter:A,weekly:G,onYourRadar:C,marketing:E}).catch(e=>{j.error("Failed to update email subscriptions",e)}),e&&_?y(k.f):y(),!0},[w,y,T,q,P,A,G,C,E,e,_]);return{loginWithGoogle:(0,a.useCallback)(async({credential:e})=>{b(null);let{data:a,error:i}=await (0,p.f)(F(e));if(a)return!0;j.error("Failed to login with Google",i);let{messageCode:s}=i?.data??{};switch(s){case 1e3:case 1026:case 1033:b({header:t("emailAlreadyUsedGoogleHeader"),body:t.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:b({header:t("emailAlreadyRegisteredGoogleHeader"),body:t("emailAlreadyRegisteredGoogleBody")});break;default:b({header:t("somethingWentWrong")})}return!1},[F,t]),error:i,clearError:(0,a.useCallback)(()=>b(null),[])}}(_),T=(0,w.f)(G),q=(0,a.useRef)(null);C&&(q.current=C);let F=q.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=>{T.current?.(e)}}),A(!0)),e?.(),!y&&b&&t?.prompt()},id:"google-gsi-script",strategy:x?"lazyOnload":"afterInteractive"}),F&&(0,t.jsx)(P.N,{open:!!C,onOpenChange:e=>!e&&E(),children:(0,t.jsx)(P.J,{showCloseButton:!1,title:F.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:F.body||""}}),primaryAction:{label:z("cancel"),onClick:E}})})]})}],145473)},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)(),[m,n]=(0,t.useState)(!1),r=(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.k)(c)&&!m&&n(!0)},[c,m]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&m&&!r.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,c),r.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${c.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[l,c,m])}],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)))},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/0ofj3juodel-p.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/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/3xahgkohcgafj.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/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/08sj08624qcmg.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/2mxmecum0d5be.js","static/immutable/chunks/27pfmgqfs7ct6.js","static/immutable/chunks/05crlne1d1azy.js","static/immutable/chunks/11esi59vuay38.js","static/immutable/chunks/0d9ytp_ai0ss7.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"])}]);