(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),i=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:a="Authentication failed. Please try again.",protectMessage:r="Remove your adblocker.",fetch:s,refresh:n,getCustomAccountInfo:o}){let[l,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(!1),[m,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),p=(0,i.useRef)([]);(0,i.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let w=(0,i.useCallback)(()=>{try{s("/?adm_get_token=1").then(e=>{e.ok&&n()}).catch(()=>{c(a)})}catch{c(a)}},[s,a,n]),x=(0,i.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,i.useEffect)(()=>{typeof window>"u"||(x.admiral=x.admiral||function(...e){(x.admiral.q=x.admiral.q||[]).push(e)},x.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(r),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;x.admiral("after","visitor.latest",function(i){var a;if("account"===e.requirement)(t?o().registered:i.status.registered)||m||(c(r),u(!0));else if("benefits"===e.requirement){let i=[];if(t)i=o().benefits;else{let e=document.cookie.split(";");e&&(i=(null==(a=e.find(e=>e.startsWith("admbenefits=")))?void 0:a.split(","))??[])}if(i){let t=e.benefits??[];if(0==t.length)return void g(!0);let a=!1;for(let e of t)i.includes(e)&&(a=!0);a?g(!0):(c(r),u(!0))}else c(r),u(!0)}})}}))},[]),(0,i.useEffect)(()=>{f&&(g(!1),w())},[f,w]),(0,i.useEffect)(()=>{m||!d||(h(!0),x.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,x]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),i=e.i(827049),a=e.i(695203),r=e.i(604323),s=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[i.pageLocaleAtom,e.pageLocale],[a.deviceClassAtom,e.deviceClass],[r.metricsArticleDataAtom,e.metricsArticleData],[s.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},855602,e=>{"use strict";var t=e.i(699173),i=e.i(592121),a=e.i(1567),r=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:s,moduleKey:n,variant:o="frontend",children:l})=>{let c=(0,i.useRef)(null),[d,u]=(0,i.useState)(!1),m=(0,i.useRef)(null),h=(0,a.useTrackModuleViewed)();return"admin"===o?(0,t.jsx)(t.Fragment,{children:l}):((0,i.useEffect)(()=>{if(d||!r.default||!c.current)return;let t=c.current,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{h({moduleId:e,modulePosition:s}),u(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});i.observe(t);let a=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return a.top>=0&&a.left>=0&&a.bottom{h({moduleId:e,modulePosition:s}),u(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),i.disconnect()}},[d,e,s,h]),(0,t.jsx)("div",{ref:c,className:"hide-empty","data-module-id":e,"data-module-key":n,"data-item-position":s,children:l}))}])},115284,e=>{"use strict";var t=e.i(699173),i=e.i(592121),a=e.i(185312),r=e.i(204782);let s=({pageTemplate:e,pageDashboard:s})=>{let n=(0,r.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])},703123,e=>{"use strict";let t=(0,e.i(981030).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(546584);var t=e.i(699173),i=e.i(592121),a=e.i(185312),r=e.i(546446),s=e.i(683903),n=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),f=e.i(367810),g=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:w}){let x=(0,s.useTranslations)("GoogleLogin"),b=(0,r.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:v,error:k,clearError:j}=function(){let e=(0,s.useTranslations)("GoogleLogin"),[t,a]=(0,i.useState)(null),h=(0,r.useSetAtom)(l.userHasLoggedInBeforeAtom),f=(0,r.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:g}=(0,d.useEmailPreferences)({skipStatus:!0}),{refresh:p}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:w}=(0,c.usePreferences)(),{authSuccess:x,authRedirect:b}=(0,u.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;a(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:a,weekly:r,onYourRadar:s,marketing:n,alwaysSubscribe:l}=f||{};return(t||l)&&await g({newsletter:a,weekly:r,onYourRadar:s,marketing:n}).catch(e=>{console.error("Failed to update email subscriptions",e)}),b(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,r=i?.messageCode;if(!r)throw Error("No Error Message");switch(r){case 1e3:case 1026:case 1033:a({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:a({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){a({header:e("somethingWentWrong")})}return!1}},[h,w,p,x,b,g,f]),error:t,clearError:(0,i.useCallback)(()=>{a(null)},[])}}(),I=(0,g.useRefMemo)(v),y=(0,i.useRef)(null);k&&(y.current=k);let C=y.current;return(0,t.jsxs)(t.Fragment,{children:[(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=>{I.current?.(e)}}),b(!0)),e?.(),!w&&p&&t?.prompt()},id:"google-gsi-script"}),C&&(0,t.jsx)(f.Dialog,{open:!!k,onOpenChange:e=>!e&&j(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:C.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:C.body||""}}),primaryAction:{label:x("cancel"),onClick:j}})})]})}],874905)},654075,e=>{"use strict";var t=e.i(699173);e.s(["TableAdminBlock",0,function(e){return(0,t.jsx)("div",{children:"Table"})}])},499746,e=>{"use strict";var t=e.i(699173),i=e.i(592121),a=e.i(546446),r=e.i(145651),s=e.i(249725),n=e.i(292980),o=e.i(663333),l=e.i(147732),c=e.i(381477),d=e.i(240058),u=e.i(316078),m=e.i(180193),h=e.i(368847),f=e.i(889951),g=e.i(726249),p=e.i(674885),w=e.i(617874),x=e.i(961123),b=e.i(325974),v=e.i(525936);let k=(0,i.memo)(({identifier:e})=>{let r=(0,x.useParams)(),n=r?.locale||"en-US",o=(0,a.useAtomValue)(p.userUnitPreferenceAtom),l=(0,w.unitsSystemByName)(o)?.code,k=(0,s.useRecordFeatureId)(),j=e.placeId?void 0:e.geocode,{location:I,isLoading:y}=function(e,t){let{location:i,isLoading:a}=(0,b.useResolveCanonical)(e,t);return{location:i,isLoading:a}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,g.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:j});(0,i.useEffect)(()=>{I?.placeId&&k({placeId:I.placeId,geocode:I.geocode},I.featureId??null)},[I,k]);let{data:C,isLoading:N}=(0,c.default)(I&&["currentObservations",I.geocode,l,n],([e,t,i,a])=>(0,f.getCurrentObservations)({geocode:t,units:i,language:a}),{revalidateOnFocus:!1,dedupingInterval:6e4}),A=I?.placeId??e.placeId,{path:L,isGeolocationLoading:_}=(0,v.default)(A||"",{targetGeocode:I?.geocode??e.geocode,featureId:e.featureId??I?.featureId,canonicalID:I?.canonicalID}),S=y||N||!I||_,E=C?.temperature,R=C?.wxPhraseLong,T=C?.iconCode??-1,B=e.name||I?.name||I?.city||I?.displayName,G=(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":B?`${B} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:B})}),(0,t.jsx)(u.WxIcon,{isLoading:S,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:T,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(m.Temperature,{value:E})})," ",(S||R)&&(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:R})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:(0,t.jsx)("span",{className:"min-w-0 truncate",children:B})}),(S||R)&&(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:R})]}),(0,t.jsx)(u.WxIcon,{isLoading:S,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:T,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(h.default,{isLoading:S,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(m.Temperature,{value:E})})]})]});return L?(0,t.jsx)(d.default,{href:L,className:"no-underline md:block md:w-full",children:G}):G},(e,t)=>{let i,a;return i=e.identifier,a=t.identifier,i.geocode===a.geocode&&i.placeId===a.placeId&&i.featureId===a.featureId&&i.name===a.name});var j=e.i(523084),I=e.i(47524),y=e.i(632137);let C={left:j.ChevronLeft,right:I.ChevronRight},N=({buttonClassName:e,containerClassName:a,onClick:r,tabIndex:s,direction:n,...o})=>{let[l,c]=(0,i.useState)(!1),d=C[n];return(0,t.jsx)("div",{className:(0,y.cn)("absolute",a),children:(0,t.jsx)("button",{className:(0,y.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",l&&"!h-11 !w-11"),onClick:()=>{c(!0),setTimeout(()=>c(!1),75),r?.()},tabIndex:s,...o,children:(0,t.jsx)(d,{className:(0,y.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",l&&"!h-6 !w-6")})})})},A=({locationIdentifiers:e,showScrollButtons:a})=>{let[r,s]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),c=(0,i.useRef)(null),d=(0,i.useRef)(null),u=(0,i.useRef)(!1),m=(0,i.useCallback)(()=>{let e=c.current;if(!e||!a){s(!1),o(!1);return}let{scrollLeft:t,offsetWidth:i,scrollWidth:r}=e,n=Math.abs(t),l=n>0,d=n+i(0,l.debounce)(m,150),[m]);(0,i.useEffect)(()=>{let e=c.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",h),()=>{null!==d.current&&cancelAnimationFrame(d.current),h.cancel(),window.removeEventListener("resize",h)}},[m,h]);let f=(0,i.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,i.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(0,i.useCallback)(()=>{c.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[a&&(0,t.jsx)(N,{containerClassName:(0,y.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":r}),onClick:g,tabIndex:r?0:-1,"aria-hidden":!r,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",role:"list","data-testid":"forecast-module",onScroll:f,ref:c,children:e.map((e,i)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(k,{identifier:e})},e.placeId??e.geocode??i))}),a&&(0,t.jsx)(N,{containerClassName:(0,y.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":n}),onClick:p,tabIndex:n?0:-1,"aria-hidden":!n,"aria-label":"Scroll right",direction:"right"})]})},L=()=>{let{favoriteLocations:e,recentLocations:l}=(0,r.default)(),{resolveFeatureId:c}=(0,s.useLocationFeatureIds)(),{resolveDetails:d}=(0,n.useRecentLocationDetails)(),u=(0,a.useAtomValue)(o.deviceClassAtom),m=(0,i.useMemo)(()=>(function({favoriteLocations:e,recentLocations:t,resolveFeatureId:i,resolveDetails:a=()=>void 0}){let r=[],s=new Set,n=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,g.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let i=t.some(e=>s.has(e));for(let e of t)s.add(e);return!i};for(let t of e){if(r.length>=5)break;if(!t.coordinate)continue;let e=(0,g.formatGeocode)(t.coordinate),s=t.placeID??void 0,o=(s?a(s)?.featureId:void 0)??i({placeId:s,geocode:e});n({featureId:o,placeId:s,geocode:e})&&r.push({geocode:e,placeId:s,name:t.name??void 0,featureId:o})}for(let e of t){if(r.length>=5)break;let t=a(e),s=t?.featureId??i({placeId:e});n({featureId:s,placeId:e})&&r.push({placeId:e,name:t?.name,featureId:s})}return r})({favoriteLocations:e,recentLocations:l,resolveFeatureId:c,resolveDetails:d}),[e,l,c,d]);return 0===m.length?null:(0,t.jsx)(A,{locationIdentifiers:m,showScrollButtons:"mobile"!==u&&"tablet"!==u})};e.s(["ForecastModule",0,L,"default",0,L],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/3ulw-v-wqqzid.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/2pz2-5xjnibsl.js"].map(t=>e.l(t))).then(()=>t(72990)))},467814,e=>{e.v(t=>Promise.all(["static/chunks/2erl34w6o_is1.css","static/chunks/1_dz1kmp1kr9g.js","static/chunks/00cycl48jrw9g.js","static/chunks/3z-hm61whmv7z.js","static/chunks/1g9rt823dw_nm.js","static/chunks/1u6m0razmb56c.js","static/chunks/3u40opytfu3al.js","static/chunks/3ez2p7_irinam.js","static/chunks/20_77tuha2yf4.js","static/chunks/0sgw10bv3m1wr.js","static/chunks/00x1l1ecy9j9d.js","static/chunks/2r4lgx7woy7mq.js","static/chunks/2-916_ez485np.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);