(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),s=e.i(546446),l=e.i(581014),o=e.i(901351),n=e.i(422825),r=e.i(837879),u=e.i(725296),m=e.i(394481),c=e.i(576816),d=e.i(539353),h=e.i(553329),p=e.i(695881),g=e.i(143851),b=e.i(703123),v=e.i(61284);let f=(0,p.createLogger)("useGoogleLogin");var k=e.i(404893),j=e.i(62544),w=e.i(792461);e.s(["GoogleAuthScriptClient",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:P,redirectToCheckoutOnSignup:y,oneTapOnly:_=!1}){let x=(0,l.useTranslations)("GoogleLogin"),A=(0,s.useSetAtom)(k.googleLoginInitilizedAtom),{loginWithGoogle:C,error:E,clearError:I}=function(e=!1){let t=(0,l.useTranslations)("GoogleLogin"),[a,p]=(0,i.useState)(null),k=(0,s.useAtomValue)(b.gsiEmailStatesAtom),{updateEmailSubscriptions:j}=(0,n.useEmailPreferences)({skipStatus:!0}),{authSuccess:w,authRedirect:P}=(0,g.useUserLogin)(),y=(0,r.useSubscriptionsEnabled)(),_=(0,s.useAtomValue)(m.privacyRegimeAtom)??u.default.EXEMPT,x=y&&u.US_REGIMES.includes(_)&&_!==u.default.USA_CCPA,{newsletter:A,weekly:C}=k,E=x||k.onYourRadar,I=x||k.marketing,O=(0,c.useSignupComplete)({formVariant:"account page google",sensitiveDataAuthorization:!0,deviceTimeZone:"u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:void 0}),z=(0,d.useSignupComplete)({formVariant:"account page google",loginMethod:"Google",marketingOptedIn:!0===I}),L=(0,i.useCallback)(async t=>{let i=await o.upsxClient.auth.loginWithGoogle({google_id_token:t}),a=!!i.isFirstLogin;if(await w({email:i.email,userID:i.userID,type:a?"signup":"login"},!1,{skipSignupCompleteEvent:a}),!a)return P(),!0;let{error:s}=await (0,h.tryCatch)(O());return s&&f.warn("Failed to track signup-complete for Google signup",s),z(),await j({newsletter:A,weekly:C,onYourRadar:E,marketing:I}).catch(e=>{f.error("Failed to update email subscriptions",e)}),e&&y?P(v.PROMO_CHECKOUT_URL):P(),!0},[w,P,O,z,j,A,C,E,I,e,y]);return{loginWithGoogle:(0,i.useCallback)(async({credential:e})=>{p(null);let{data:i,error:a}=await (0,h.tryCatch)(L(e));if(i)return!0;f.error("Failed to login with Google",a);let{messageCode:s}=a?.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},[L,t]),error:a,clearError:(0,i.useCallback)(()=>p(null),[])}}(y),O=(0,w.useRefMemo)(C),z=(0,i.useRef)(null);E&&(z.current=E);let L=z.current;return(0,t.jsxs)(t.Fragment,{children:[!(_&&P)&&(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=>{O.current?.(e)}}),A(!0)),e?.(),!P&&p&&t?.prompt()},id:"google-gsi-script",strategy:_?"lazyOnload":"afterInteractive"}),L&&(0,t.jsx)(j.Dialog,{open:!!E,onOpenChange:e=>!e&&I(),children:(0,t.jsx)(j.BasicDialog,{showCloseButton:!1,title:L.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:L.body||""}}),primaryAction:{label:x("cancel"),onClick:I}})})]})}],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),s=e.i(782552),l=e.i(551699);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:o,moduleKey:n,variant:r="frontend",children:u})=>{let m=(0,a.useTrackModuleViewed)(),c=(0,s.useTrackModuleViewed)(),d="admin"===r,h=(0,i.useCallback)(()=>{m({moduleId:e,modulePosition:o}),c({moduleId:e,modulePosition:o})},[m,c,e,o]),p=(0,i.useRef)(null),[g,b]=(0,i.useState)([]),v=(0,i.useCallback)(()=>{let e=p.current?Array.from(p.current.children):[];b(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,d]),(0,l.useFullVisibilityOnce)(h,{targets:g,disabled:d}),d)?(0,t.jsx)(t.Fragment,{children:u}):(0,t.jsx)("div",{ref:p,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),i=e.i(293163),a=e.i(947118),s=e.i(737801);e.s(["useSignupComplete",0,(e={})=>{let l=(0,a.useIsInitialized)(),o=(0,s.useEventAttributes)(),[n,r]=(0,t.useState)(!1),u=(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,i.areObjectValuesDefined)(m)&&!n&&r(!0)},[m,n]),(0,t.useCallback)(async()=>{if((l||window.mParticle?.isInitialized?.())&&n&&!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)}},[l,m,n])}],576816);let l=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,l],703123)},853686,e=>{"use strict";var t=e.i(902875),i=e.i(333350),a=e.i(283366);let s=["cw12138"],l=["cw12648","cw13694","cw14216"];function o({flagKey:e,requireReachableFold:t=!0}){let s=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(!n(i))return;let a=i[e];if(!n(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 l of Object.values(t)){let t=l?.modules?.refresh?.bidMode;if("atf"!==t&&"btf"!==t)continue;i=!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),i=e.i(295553),a=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),m=e.i(310847),c=e.i(439766);e.s(["LocationBoundary",0,({locationPoint:e,canonicalLocation:d})=>{let h=(0,s.useAtomValue)(m.wxuUserRecentAddressesAtom),p=(0,s.useAtomValue)(m.wxuUserRecentLocationsDataAtom),[,g]=(0,s.useAtom)(i.pageLocationDataAtom),b=(0,s.useSetAtom)(c.activeLocationAtom),v=(0,t.useMemo)(()=>{let t,i;return d?(0,u.honorRecentLocationName)(d,p):(t=(0,n.getAddressForLocationData)(e.location,h),i=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,i),name:(0,o.getLocationName)(t,[],!1,i),context:(0,o.getLocationContext)(t,[],!1,i),ianaTimeZone:(0,r.sanitizeIanaTimeZone)(t.ianaTimeZone),postalCode:t.postalCode,address:t.address||"",type:t.type,dmaCd:t.dmaCd||"",isDisputedLocation:t.disputedArea})},[d,e,h,p]);(0,a.useRehydrateAtoms)([[i.pageLocationDataAtom,v]]);let f=(0,t.useRef)(null);return(0,t.useEffect)(()=>{g(v);let e=v.placeId;f.current!==e&&(b({placeId:v.placeId,geocode:v.geocode,featureId:v.featureId}),f.current=e)},[v,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),i=e.i(247865),a=e.i(533760),s=e.i(204782);let l=({pageTemplate:e,pageDashboard:l})=>{let o=(0,s.default)();return((0,i.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)(a.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"])}]);