(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),i=e.i(247865),a=e.i(533760),l=e.i(546446),s=e.i(581014),n=e.i(901351),o=e.i(422825),r=e.i(837879),u=e.i(725296),m=e.i(394481),c=e.i(576816),h=e.i(539353),d=e.i(553329),p=e.i(695881),b=e.i(143851),g=e.i(703123),v=e.i(61284);let k=(0,p.createLogger)("useGoogleLogin");var f=e.i(404893),j=e.i(62544),P=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:w,redirectToCheckoutOnSignup:y,oneTapOnly:_=!1}){let x=(0,s.useTranslations)("GoogleLogin"),C=(0,l.useSetAtom)(f.googleLoginInitilizedAtom),{loginWithGoogle:A,error:E,clearError:O}=function(e=!1){let t=(0,s.useTranslations)("GoogleLogin"),[a,p]=(0,i.useState)(null),f=(0,l.useAtomValue)(g.gsiEmailStatesAtom),{updateEmailSubscriptions:j}=(0,o.useEmailPreferences)({skipStatus:!0}),{authSuccess:P,authRedirect:w}=(0,b.useUserLogin)(),y=(0,r.useSubscriptionsEnabled)(),_=(0,l.useAtomValue)(m.privacyRegimeAtom)??u.default.EXEMPT,x=y&&u.US_REGIMES.includes(_)&&_!==u.default.USA_CCPA,{newsletter:C,weekly:A}=f,E=x||f.onYourRadar,O=x||f.marketing,z=(0,c.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),M=(0,h.useSignupComplete)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===O}),S=(0,i.useCallback)(async t=>{let i=await n.upsxClient.auth.loginWithGoogle({google_id_token:t}),a=!!i.isFirstLogin;if(await P({email:i.email,userID:i.userID,type:a?"signup":"login"},!1,{skipSignupCompleteEvent:a}),!a)return w(),!0;let{error:l}=await (0,d.tryCatch)(z());return l&&k.warn("Failed to track signup-complete for Google signup",l),M(),await j({newsletter:C,weekly:A,onYourRadar:E,marketing:O}).catch(e=>{k.error("Failed to update email subscriptions",e)}),e&&y?w(v.PROMO_CHECKOUT_URL):w(),!0},[P,w,z,M,j,C,A,E,O,e,y]);return{loginWithGoogle:(0,i.useCallback)(async({credential:e})=>{p(null);let{data:i,error:a}=await (0,d.tryCatch)(S(e));if(i)return!0;k.error("Failed to login with Google",a);let{messageCode:l}=a?.data??{};switch(l){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},[S,t]),error:a,clearError:(0,i.useCallback)(()=>p(null),[])}}(y),z=(0,P.useRefMemo)(A),M=(0,i.useRef)(null);E&&(M.current=E);let S=M.current;return(0,t.jsxs)(t.Fragment,{children:[!(_&&w)&&(0,t.jsx)(a.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=>{z.current?.(e)}}),C(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script",strategy:_?"lazyOnload":"afterInteractive"}),S&&(0,t.jsx)(j.Dialog,{open:!!E,onOpenChange:e=>!e&&O(),children:(0,t.jsx)(j.BasicDialog,{showCloseButton:!1,title:S.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:S.body||""}}),primaryAction:{label:x("cancel"),onClick:O}})})]})}],145473)},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),i=e.i(247865),a=e.i(1567),l=e.i(782552),s=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:o,variant:r="frontend",children:u})=>{let m=(0,a.useTrackModuleViewed)(),c=(0,l.useTrackModuleViewed)(),h="admin"===r,d=(0,i.useCallback)(()=>{m({moduleId:e,modulePosition:n}),c({moduleId:e,modulePosition:n})},[m,c,e,n]),p=(0,i.useRef)(null),[b,g]=(0,i.useState)([]),v=(0,i.useCallback)(()=>{let e=p.current?Array.from(p.current.children):[];g(t=>t.length===e.length&&t.every((t,i)=>t===e[i])?t:e)},[]);return((0,i.useEffect)(()=>{let e=p.current;if(!e||(v(),"u"t.disconnect()},[v,h]),(0,s.useFullVisibilityOnce)(d,{targets:b,disabled:h}),h)?(0,t.jsx)(t.Fragment,{children:u}):(0,t.jsx)("div",{ref:p,className:"hide-empty","data-module-id":e,"data-module-key":o,"data-item-position":n,children:u})}])},576816,703123,e=>{"use strict";var t=e.i(247865),i=e.i(293163),a=e.i(947118),l=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let s=(0,a.useIsInitialized)(),n=(0,l.useEventAttributes)(),[o,r]=(0,t.useState)(!1),u=(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,i.areObjectValuesDefined)(m)&&!o&&r(!0)},[m,o]),(0,t.useCallback)(async()=>{if((s||window.mParticle?.isInitialized?.())&&o&&!u.current)try{window.mParticle?.logEvent?.("signup-complete",window.mParticle?.EventType?.Other,m),u.current=!0,console.debug(`MParticle: Event "signup-complete" tracked - ${m.pageId}`)}catch(e){console.error('MParticle: Event "signup-complete" failed',e)}},[s,m,o])}],576816);let s=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,s],703123)},853686,e=>{"use strict";var t=e.i(902875),i=e.i(333350),a=e.i(283366);let l=["cw12138"],s=["cw12648","cw13694","cw14216"];function n({flagKey:e,requireReachableFold:t=!0}){let l=i.default?function(e,t){let i=function(e){try{let t=window.localStorage.getItem(`amp-exp-$default_instance-${"client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV".slice(-6)}`);if(!t)return;let i=JSON.parse(t);if(!o(i))return;let a=i[e];if(!o(a)||!a.expKey||!a.key&&!a.value)return;return a}catch{return}}(e);if(i&&(!t||function(e){let t=window.__HeliosConfig?.slotsConfig;if(!t)return!1;let i=!1,a=!1;for(let s of Object.values(t)){let t=s?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;i=!0;let n=o(e)?e[t]:void 0;if(void 0!==n){var l;o(n)&&"number"==typeof(l=n.interval)&&Number.isFinite(l)&&l>=1e4&&l(0,t.jsx)(n,{flagKey:e},e)),s.map(e=>(0,t.jsx)(n,{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)))},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/3a20yxj37tybd.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/2dckhhvb224r7.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/2hlm394xu6o1h.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),i=e.i(247865),a=e.i(533760),l=e.i(204782);let s=({pageTemplate:e,pageDashboard:s})=>{let n=(0,l.default)();return((0,i.useEffect)(()=>{n&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),s&&window._newsroom.push({pageDashboard:s}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[n,e,s]),n&&e)?(0,t.jsx)(a.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"afterInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,s,"default",0,s])},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/3c6-xhabyd589.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"])}]);