(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),i=e.i(695203),n=e.i(604323),s=e.i(797770),a=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,a.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[n.metricsArticleDataAtom,e.metricsArticleData],[s.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},86773,e=>{"use strict";var t=e.i(155252),r=e.i(206507);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:n="Remove your adblocker.",fetch:s,refresh:a,getCustomAccountInfo:o}){let[l,c]=(0,r.useState)(""),[u,d]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!1),[h,p]=(0,r.useState)(!1),g=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==g.current[0]&&(g.current=[e.id],e.transactIDs&&g.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let b=(0,r.useCallback)(()=>{try{s("/?adm_get_token=1").then(e=>{e.ok&&a()}).catch(()=>{c(i)})}catch{c(i)}},[s,i,a]),w=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(w.admiral=w.admiral||function(...e){(w.admiral.q=w.admiral.q||[]).push(e)},w.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(n),d(!0)):p(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;w.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?o().registered:r.status.registered)||m||(c(n),d(!0));else if("benefits"===e.requirement){let r=[];if(t)r=o().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void p(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?p(!0):(c(n),d(!0))}else c(n),d(!0)}})}}))},[]),(0,r.useEffect)(()=>{h&&(p(!1),b())},[h,b]),(0,r.useEffect)(()=>{m||!u||(f(!0),w.admiral("targeting","force",{candidateIDs:g.current}))},[m,u,g,w]),(0,t.jsxs)("div",{children:[l||null," "]})}])},18358,e=>{"use strict";var t=e.i(947118),r=e.i(737801),i=e.i(206507);e.s(["useTrackEvent",0,()=>{let e=(0,t.useIsInitialized)(),n=(0,r.useEventAttributes)(),s=(0,i.useCallback)((t,r={})=>{let i={...n,...r};if(!e)return void console.warn("MParticle is not initialized");try{window.mParticle.logEvent(t,window.mParticle.EventType.Other,i),console.debug(`MParticle: Event "${t}" tracked`,i)}catch(e){console.error(`MParticle: Event "${t}" failed`,e)}return s},[n,e]);return s}])},899507,e=>{"use strict";e.s(["isNil",0,function(e){return null==e}])},449928,760430,355200,e=>{"use strict";e.s(["isPrimitive",0,function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}],449928),e.s(["isTypedArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],760430),e.s(["isUnsafeProperty",0,function(e){return"__proto__"===e}],355200)},370220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatusUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/status"}},r.getEmailPreferencesSetUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/set"}},r.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/change-email"}};let i="weather.com"},454307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setEmailPreferences=a,r.updateSubscription=o;let i=e.r(678651),n=e.r(414655),s=e.r(370220);async function a(e){let t=(0,s.getEmailPreferencesSetUrlConfig)(),r=(0,i.urlFrom)(t),a=JSON.stringify(function(e){let{subscriptions:t,email:r,mParticleId:i}=e,n={};return t&&(n.subscriptions=t),r&&(n.email=r),i&&(n.mParticleId=i),n}(e)),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:a});return 200===o.status||400===o.status?await o.json():(0,n.handleFetchResponse)(o)}async function o(e,t,r){return a({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...r&&{attributes:r}}]})}},451086,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatus=a;let i=e.r(678651),n=e.r(414655),s=e.r(370220);async function a(){let e=(0,s.getEmailPreferencesStatusUrlConfig)(),t=(0,i.urlFrom)(e),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(r)}},952582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_SUBSCRIPTIONS=r.ON_YOUR_RADAR_GROUP=r.MARKETING_EMAILS_GROUP=r.WEEKLY_BRIEF_GROUP=r.DAILY_NEWSLETTERS_GROUP=void 0,r.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",r.WEEKLY_BRIEF_GROUP="weekly-brief",r.MARKETING_EMAILS_GROUP="marketing-emails-1",r.ON_YOUR_RADAR_GROUP="on-your-radar",r.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:r.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:r.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.ON_YOUR_RADAR_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(546446),r=e.i(381477),i=e.i(899507),n=e.i(449928),s=e.i(760430);function a(e){if((0,n.isPrimitive)(e))return e;if(Array.isArray(e)||(0,s.isTypedArray)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t=new r(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}return"u">typeof File&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}var o=e.i(355200);function l(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t,r){let i=Object.keys(t);for(let n=0;n"boolean"==typeof e?{isSubscribed:e}:e;e.s(["useEmailPreferences",0,(e=!1)=>{let[n,s]=(0,t.useAtom)(m),{user:o}=(0,f.useUser)(),w=(0,g.useSubscriptionsEnabled)()||e,y=o?.userID||null,v=o?.isUserLoggedIn||!1,I=(0,p.useCallback)(e=>{if(y){var t;let r,i;s({userId:y,expiry:Date.now()+9e5,subscriptions:(t=n?.subscriptions,r=t?.length?t:h.DEFAULT_SUBSCRIPTIONS,i={},e?(r?.forEach(e=>{i[e.subscriptionGroupName]=e}),e.forEach(e=>{let t=i[e.subscriptionGroupName]||{};i[e.subscriptionGroupName]=c(a(t),e,function e(t,r){if(Array.isArray(r))if(Array.isArray(t))return c(a(t),r,e);else return c([],r,e);if(l(r))if(l(t))return c(a(t),r,e);else return c({},r,e)})}),Object.values(i)):r)})}},[y,s,n?.subscriptions]),x=n&&n.userId===y&&n.expiry&&n.expiry>Date.now(),A=w&&y&&v&&!x,{isLoading:k}=(0,r.default)(A?`getEmailPreferencesStatus/${y}`:void 0,d.getEmailPreferencesStatus,{shouldRetryOnError:e=>!(e instanceof Error&&e.message.includes("401")),revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{y&&e&&I(e.subscriptions)}}),E=(0,p.useCallback)(async(e,t)=>{if(!w)return{status:"error",error:"Subscription is not enabled!"};let r=await (0,u.setEmailPreferences)({subscriptions:e,email:v?void 0:t});return"success"===r.status&&I(e),r},[I,w,v,n?.subscriptions]),j=(0,p.useCallback)(async({newsletter:e,weekly:t,onYourRadar:r,marketing:n})=>{let s=[!(0,i.isNil)(e)&&{subscriptionGroupName:"daily-newsletters-1",...b(e)},!(0,i.isNil)(t)&&{subscriptionGroupName:"weekly-brief",...b(t)},!(0,i.isNil)(r)&&{subscriptionGroupName:"on-your-radar",...b(r)},!(0,i.isNil)(n)&&{subscriptionGroupName:"marketing-emails-1",...b(n)}].filter(Boolean);return await E(s)},[E]);return{emailSubscriptions:y&&n?n.subscriptions:null,updateEmailSubscriptions:j,updateEmailPreference:E,isLoadingPreferences:k}}],422825)},143851,e=>{"use strict";var t=e.i(546446),r=e.i(897892),i=e.i(45846),n=e.i(310847),s=e.i(776169),a=e.i(671525),o=e.i(206507),l=e.i(947118),c=e.i(491240),u=e.i(18358),d=e.i(521350),m=e.i(391174),f=e.i(358273);e.s(["useUserLogin",0,function(){let e,h,p=(0,t.useSetAtom)(n.userHasLoggedInBeforeAtom),g=(0,t.useAtomValue)(n.wxuLoginRedirectPageAtom),b=(0,t.useAtomValue)(n.wxuUserAnonymousIdAtom),w=(0,r.useGetCookie)(),{syncPreferencesFromUpsx:y,updatePreferences:v}=(0,s.usePreferences)(),{navigate:I}=(0,a.default)(),{login:x}=(e=(0,l.useIsInitialized)(),h=(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,other:(0,c.truncateIdentityValue)(t.other)}};return window.mParticle?.Identity?.identify?.(r)},[e]),{identify:h,login:(0,o.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:(0,c.truncateIdentityValue)(t.other),other2:(0,c.truncateIdentityValue)(t.other2),other3:(0,c.truncateIdentityValue)(t.other3),other4:(0,c.truncateIdentityValue)(t.other4),twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(r)},[e]),logout:(0,o.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}),A=(0,u.useTrackEvent)(),k=async()=>{try{if(w("premium"))return null;return await i.upsxClient.purchase.getPurchaseToken(),!0}catch(e){return console.error("Failed to get UPSX token:",e),!1}},E=()=>{(0,f.regenerateMetricsSession)();let e=new URLSearchParams(window.location.search).get("ref");I((e&&`https://${e}`)??g)},j=async(e,t=!0)=>{(0,m.invalidateUpsxCache)(),(0,d.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),p(!0),await y()||await v({}),k(),e?.userID&&(x({email:e.email,customerid:e.userID,other:b}),A("login"===e.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),t&&E()};return{login:async(e,t)=>{try{let r=await i.upsxClient.auth.login({email:e,password:t});return r&&await j({email:r.email,userID:r.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:j,authRedirect:E}}],143851)},855602,e=>{"use strict";var t=e.i(155252),r=e.i(206507),i=e.i(1567),n=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:s,moduleKey:a,variant:o="frontend",children:l})=>{let c=(0,r.useRef)(null),[u,d]=(0,r.useState)(!1),m=(0,r.useRef)(null),f=(0,i.useTrackModuleViewed)();return"admin"===o?(0,t.jsx)(t.Fragment,{children:l}):((0,r.useEffect)(()=>{if(u||!n.default||!c.current)return;let t=c.current,r=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{f({moduleId:e,modulePosition:s}),d(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});r.observe(t);let i=t.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom{f({moduleId:e,modulePosition:s}),d(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),r.disconnect()}},[u,e,s,f]),(0,t.jsx)("div",{ref:c,className:"hide-empty","data-module-id":e,"data-module-key":a,"data-item-position":s,children:l}))}])},670279,e=>{"use strict";var t=e.i(155252),r=e.i(206507),i=e.i(585683),n=e.i(204782);let s=({pageTemplate:e,pageDashboard:s})=>{let a=(0,n.default)();return((0,r.useEffect)(()=>{a&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),s&&window._newsroom.push({pageDashboard:s}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[a,e,s]),a&&e)?(0,t.jsx)(i.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(571195);var t=e.i(155252),r=e.i(206507),i=e.i(585683),n=e.i(546446),s=e.i(659334),a=e.i(671525),o=e.i(901351),l=e.i(310847),c=e.i(776169),u=e.i(422825),d=e.i(143851),m=e.i(703123),f=e.i(404893),h=e.i(367810),p=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:g=!0,isUserLoggedIn:b}){let w=(0,s.useTranslations)("GoogleLogin"),y=(0,n.useSetAtom)(f.googleLoginInitilizedAtom),{loginWithGoogle:v,error:I,clearError:x}=function(){let e=(0,s.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),f=(0,n.useSetAtom)(l.userHasLoggedInBeforeAtom),h=(0,n.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:p}=(0,u.useEmailPreferences)(),{refresh:g}=(0,a.usePageNavigation)(),{syncPreferencesFromUpsx:b}=(0,c.usePreferences)(),{authSuccess:w,authRedirect:y}=(0,d.useUserLogin)();return{loginWithGoogle:(0,r.useCallback)(async t=>{let{credential:r}=t;i(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:r}),t=e?.isFirstLogin;await w({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:i,weekly:n,onYourRadar:s,marketing:a,alwaysSubscribe:l}=h||{};return(t||l)&&await p({newsletter:i,weekly:n,onYourRadar:s,marketing:a}).catch(e=>{console.error("Failed to update email subscriptions",e)}),y(),!0}catch(t){console.error("Failed to login with Google",t);try{let r=t?.data,n=r?.messageCode;if(!n)throw Error("No Error Message");switch(n){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[f,b,g,w,y,p,h]),error:t,clearError:(0,r.useCallback)(()=>{i(null)},[])}}(),A=(0,p.useRefMemo)(v),k=(0,r.useRef)(null);I&&(k.current=I);let E=k.current;return(0,t.jsxs)(t.Fragment,{children:[(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)}}),y(!0)),e?.(),!b&&g&&t?.prompt()},id:"google-gsi-script"}),E&&(0,t.jsx)(h.Dialog,{open:!!I,onOpenChange:e=>!e&&x(),children:(0,t.jsx)(h.BasicDialog,{showCloseButton:!1,title:E.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:E.body||""}}),primaryAction:{label:w("cancel"),onClick:x}})})]})}],874905)},499746,e=>{"use strict";var t=e.i(155252),r=e.i(206507),i=e.i(546446);e.i(304158);var n=e.i(485737),s=e.i(65816),a=e.i(145651),o=e.i(249725),l=e.i(292980),c=e.i(663333),u=e.i(147732),d=e.i(381477),m=e.i(240058),f=e.i(316078),h=e.i(180193),p=e.i(368847),g=e.i(889951),b=e.i(726249),w=e.i(674885),y=e.i(617874),v=e.i(184154),I=e.i(325974),x=e.i(526456),A=e.i(525936);let k=({identifier:e})=>{let n=(0,v.useParams)(),s=n?.locale||"en-US",a=(0,i.useAtomValue)(w.userUnitPreferenceAtom),l=(0,y.unitsSystemByName)(a)?.code,{recordFeatureId:c}=(0,o.useLocationFeatureIds)(),u=e.placeId?void 0:e.geocode,{location:k,isLoading:E}=function(e,t){let{location:r,isLoading:i}=(0,I.useResolveCanonical)(e,t);return{location:r,isLoading:i}}(e.featureId||e.placeId||e.geocode?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode?(0,b.formatGeocode)(e.geocode):void 0}:null,{sourceGeocode:u});(0,r.useEffect)(()=>{k?.placeId&&c({placeId:k.placeId,geocode:k.geocode},k.featureId??null)},[k,c]);let{data:j,isLoading:P}=(0,d.default)(k&&["currentObservations",k.geocode,l,s],([e,t,r,i])=>(0,g.getCurrentObservations)({geocode:t,units:r,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4}),S=k?.placeId??e.placeId,{path:N,isGeolocationLoading:_}=(0,A.default)(S||"",{targetGeocode:k?.geocode??e.geocode,featureId:e.featureId??k?.featureId,canonicalID:k?.canonicalID}),C=E||P||!k||_,R=j?.temperature,L=j?.wxPhraseLong,G=j?.iconCode??-1,O=e.name||k?.name||k?.city||k?.displayName,U=(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":O?`${O} 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.jsxs)(p.default,{isLoading:C,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(x.CurrentLocationFilled,{className:"mr-2 h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:O})]}),(0,t.jsx)(f.WxIcon,{isLoading:C,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:G,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(p.default,{isLoading:C,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(h.Temperature,{value:R})})," ",(C||L)&&(0,t.jsx)(p.default,{isLoading:C,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:L})]})]}),(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.jsxs)(p.default,{isLoading:C,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(x.CurrentLocationFilled,{className:"mr-2 h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:O})]}),(C||L)&&(0,t.jsx)(p.default,{isLoading:C,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:L})]}),(0,t.jsx)(f.WxIcon,{isLoading:C,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:G,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(p.default,{isLoading:C,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(h.Temperature,{value:R})})]})]});return N?(0,t.jsx)(m.default,{href:N,className:"no-underline md:block md:w-full",children:U}):U};var E=e.i(523084),j=e.i(47524),P=e.i(632137);let S={left:E.ChevronLeft,right:j.ChevronRight},N=({buttonClassName:e,containerClassName:i,onClick:n,tabIndex:s,direction:a,...o})=>{let[l,c]=(0,r.useState)(!1),u=S[a];return(0,t.jsx)("div",{className:(0,P.cn)("absolute",i),children:(0,t.jsx)("button",{className:(0,P.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),n?.()},tabIndex:s,...o,children:(0,t.jsx)(u,{className:(0,P.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")})})})},_=({locationIdentifiers:e,showScrollButtons:i})=>{let[n,s]=(0,r.useState)(!1),[a,o]=(0,r.useState)(!1),l=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useRef)(!1),m=(0,r.useCallback)(()=>{let e=l.current;if(!e||!i){s(!1),o(!1);return}let{scrollLeft:t,offsetWidth:r,scrollWidth:n}=e,a=Math.abs(t),c=a>0,u=a+r(0,u.debounce)(m,150),[m]);(0,r.useEffect)(()=>{let e=l.current;return e&&(d.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",f),()=>{null!==c.current&&cancelAnimationFrame(c.current),f.cancel(),window.removeEventListener("resize",f)}},[m,f]);let h=(0,r.useCallback)(()=>{null===c.current&&(c.current=requestAnimationFrame(()=>{m(),c.current=null}))},[m]),p=(0,r.useCallback)(()=>{l.current?.scrollBy({left:-200,behavior:"smooth"})},[]),g=(0,r.useCallback)(()=>{l.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[i&&(0,t.jsx)(N,{containerClassName:(0,P.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":n}),onClick:p,tabIndex:n?0:-1,"aria-hidden":!n,"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:h,ref:l,children:e.map((e,r)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(k,{identifier:e})},e.placeId??e.geocode??r))}),i&&(0,t.jsx)(N,{containerClassName:(0,P.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":a}),onClick:g,tabIndex:a?0:-1,"aria-hidden":!a,"aria-label":"Scroll right",direction:"right"})]})},C=()=>{let e,u,d=(e=(0,s.useHtml5Geocode)(),u=(0,i.useAtomValue)(n.geoipGeocode),e||u||void 0),{favoriteLocations:m,recentLocations:f}=(0,a.default)(),{resolveFeatureId:h}=(0,o.useLocationFeatureIds)(),{resolveDetails:p}=(0,l.useRecentLocationDetails)(),g=(0,i.useAtomValue)(c.deviceClassAtom),w=(0,r.useMemo)(()=>(function({detectedGeocode:e,favoriteLocations:t,recentLocations:r,resolveFeatureId:i,resolveDetails:n=()=>void 0}){let s=[],a=new Set,o=e=>{let t=[];if(e.featureId?t.push(`f:${e.featureId}`):(e.placeId&&t.push(`p:${e.placeId}`),e.geocode&&t.push(`g:${(0,b.formatGeocode)(e.geocode)}`)),0===t.length)return!0;let r=t.some(e=>a.has(e));for(let e of t)a.add(e);return!r};if(e){let t=(0,b.formatGeocode)(e),r=i({geocode:t});o({featureId:r,geocode:t}),s.push({geocode:t,isGeoIPLocation:!0,featureId:r})}for(let e of t){if(s.length>=5)break;if(!e.coordinate)continue;let t=(0,b.formatGeocode)(e.coordinate),r=e.placeID??void 0,a=(r?n(r)?.featureId:void 0)??i({placeId:r,geocode:t});o({featureId:a,placeId:r,geocode:t})&&s.push({geocode:t,placeId:r,name:e.name??void 0,featureId:a})}for(let e of r){if(s.length>=5)break;let t=n(e),r=t?.featureId??i({placeId:e});o({featureId:r,placeId:e})&&s.push({placeId:e,name:t?.name,featureId:r})}return s})({detectedGeocode:d,favoriteLocations:m,recentLocations:f,resolveFeatureId:h,resolveDetails:p}),[d,m,f,h,p]);return 0===w.length?null:(0,t.jsx)(_,{locationIdentifiers:w,showScrollButtons:"mobile"!==g&&"tablet"!==g})};e.s(["ForecastModule",0,C,"default",0,C],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/0ods0-bjat5jt.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/1sx0pote8w3bv.js","static/chunks/31prg3gkhi6in.js","static/chunks/3ez2p7_irinam.js","static/chunks/3rm_nwiiv1nec.js","static/chunks/1_l90skce875o.js"].map(t=>e.l(t))).then(()=>t(469120)))}]);