(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,520362,e=>{"use strict";var t=e.i(699173),n=e.i(592121);let r=e=>{let{apiRoute:t,depth:r,refresh:a,serverURL:i}=e,l=(0,n.useRef)(!1),s=(0,n.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof a?a():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[a,i]);return(0,n.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),l.current||(l.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:i}),a()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[i,s,r,t,a]),null};var a=e.i(961123);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),l={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let n=(0,a.useRouter)();return(0,t.jsx)(r,{...e,refresh:n.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,n.useRef)(null),t=(0,n.useRef)(null),r=(0,n.useRef)(null),a=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{if("u"{let n=t.current,a=e.current;if(!n||!a)return;if(!n.isConnected){t.current=null,a.style.opacity="0",r.current?.disconnect();return}let i=n.getBoundingClientRect();a.style.top=`${i.top+window.scrollY}px`,a.style.left=`${i.left+window.scrollX}px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.opacity="1"},[]),d=(0,n.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),u=(0,n.useCallback)(()=>{t.current&&null===a.current&&(a.current=requestAnimationFrame(()=>{a.current=null,c()}))},[c]),f=(0,n.useCallback)(e=>{if(e===s.current)return;let n=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!n)return void i.debug("No element found for block ID",{blockId:e});let a=(e=>{let t=e,n=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==a.current&&cancelAnimationFrame(a.current),r.current?.disconnect(),e.current?.remove()}},[f,d,u]),null},"LivePreviewListener",0,s],520362)},313983,e=>{"use strict";var t,n=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>n])},104777,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(836549),l=e.r(560716),s=e.r(544383)},567277,e=>{"use strict";var t=e.i(546584),n=e.i(592121),r=e.i(961123);function a(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let n=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let n=e.scriptSrc?e.scriptSrc:a()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),a()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});n&&(r.current=n.setRoute)}},[e.route]),null}function s(e){let a=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,n=(0,r.usePathname)();if(!e)return null;let a=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!a)return n;let l=n;try{let e=Object.entries(a);for(let[t,n]of e)if(!Array.isArray(n)){let e=i(n);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=i(n.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return n}})();return n.default.createElement(l,{route:a,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(s,{...e}))}])},540039,e=>{"use strict";var t,n=e.i(546584),r={scriptHostname:("u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof n.default?"dpl_7ETf9aCraSq25Mc9zeyGVae7V5Yn":void 0},a=e.i(592121),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:n}){return(0,a.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let n=document.createElement("script");for(let[a,i]of(n.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,n.setAttribute("data-explicit-opt-in","true"),e.nonce&&n.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))i&&n.setAttribute(a,i);(document.head||document.documentElement).appendChild(n)}}({nonce:n}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},718043,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},n.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},n.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},n.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:n}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${n}/${e}`}},n.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:n=0,limit:i=10,sort:l="-publishdate"}){let s={q:Object.keys(t).reduce((e,n)=>{let r=t[n];return r instanceof Array?[...e,...r.map(e=>a(n,e))]:[...e,a(n,r)]},[]).join(";"),pg:`${n},${i}`,format:"json",sort:l},o=(0,r.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},n.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:n=0,limit:a=10,sort:i="-publishdate"}){let l={q:t,pg:`${n},${a}`,format:"json",sort:i},s=(0,r.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},n.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:n=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${n}`}},n.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let r=e.r(678651);function a(e,t){let n=`'${t.$in}'`;return t.$in instanceof Array&&(n=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${n})`}},427977,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getQuickNav=void 0;let r=e.r(414655),a=e.r(678651),i=e.r(718043);n.getQuickNav=async()=>{let e=(0,a.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(t)}},867775,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(730921),a=e.i(683903),i=e.i(877957),l=e.i(367810),s=e.i(901351),o=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(611540);let f=({isUserLoggedIn:e,regime:f,deviceClass:p,experience:h,isPremiumUser:m})=>{let g=(0,a.useTranslations)("PrivacyConsentModal"),v=(0,r.useLocale)(),x=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:v}),[b,w]=(0,n.useState)(!1),[y,A]=(0,n.useState)(!1),[C,S]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!c.US_REGIMES.includes(f)||m||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),n=localStorage.getItem("saleOfDataConflict");t?(A(!0),w(!0)):e&&n&&(S(!0),w(!0))},[f,m,e]);let E=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},_=t=>{let n=window,r=window.top,a=n.DprSdk||r?.DprSdk;a?(a.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&E({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):C&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},j="",R="";if(y?(j="gpcConflictHeader",R="gpcConflictParagraph",f===c.Regime.USA_CCPA&&(R+="_usa-ccpa")):C&&(j="saleOfDataConflictHeader",R="saleOfDataConflictParagraph",f===c.Regime.USA_CCPA&&(R+="_usa-ccpa")),R)return(0,t.jsx)(l.Dialog,{open:b,onOpenChange:w,children:(0,t.jsxs)(l.DialogContent,{className:`text-center ${"desktop"!==p?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===h?"wu-theme":""} `,onEscapeKeyDown:e=>{(C||y)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[j&&(0,t.jsx)(l.DialogHeader,{children:(0,t.jsx)(l.DialogTitle,{className:"text-xl font-semibold",children:g(j)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:g.rich(R,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:x,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(l.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(i.Button,{onClick:()=>{_(!0)},variant:"default",className:"w-full sm:w-auto",children:g("optInButtonText")}),(0,t.jsx)(i.Button,{onClick:()=>{_(!1)},variant:"secondary",className:"w-full sm:w-auto",children:g("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,f,"default",0,f])},429745,e=>{"use strict";var t=e.i(699173),n=e.i(367810),r=e.i(226602),a=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:i,title:l,headline:s,description:o,imageUrl:c,imageAlt:d="",imageContent:u,getAppHref:f,getAppLabel:p="Get the app",onGetAppClick:h,learnMoreHref:m,learnMoreLabel:g="Learn more",onLearnMoreClick:v,closeLabel:x="Close"})=>(0,t.jsx)(n.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(n.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,className:(0,a.cn)("flex flex-col gap-12 overflow-y-auto border-0 border-b border-black/10 bg-white p-6","pb-[calc(1.5rem+env(safe-area-inset-bottom))]","fixed inset-x-0 top-auto bottom-0 max-h-[90dvh] w-full max-w-none translate-x-0 translate-y-0 sm:max-w-none","rounded-t-3xl rounded-b-none","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[(0,t.jsx)(n.DialogClose,{"aria-label":x,className:"absolute top-4 left-4 z-10 flex size-8 cursor-pointer items-center justify-center rounded-2xl bg-[#f5f5f5] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(r.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),(0,t.jsx)(n.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:l}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,t.jsx)("div",{className:"relative h-40 w-full",children:u||(c?(0,t.jsx)("img",{src:c,alt:d,className:"size-full rounded-lg object-cover"}):(0,t.jsx)("div",{className:"size-full rounded-lg bg-gradient-to-br from-rose-100 via-sky-100 to-violet-100"}))}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 px-4 text-center",children:[(0,t.jsx)("p",{className:"text-2xl font-extrabold text-[#252422]",children:s}),(0,t.jsx)("p",{className:"text-base font-medium text-[#676767]",children:o})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("a",{href:f,onClick:h,className:"flex h-12 w-full items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:p}),(0,t.jsx)("a",{href:m,onClick:v,className:"flex h-12 w-full items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:g})]})]})})])},726812,16730,e=>{"use strict";let t="com.weather.Weather",n="id295646461",r="https://app.appsflyer.com",a="weather.com",i=`https://apps.apple.com/us/app/the-weather-channel/${n}`,l=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,a,"APPSFLYER_HOST",0,r,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,i,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,n,"PLAY_STORE_URL",0,l],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:i,currentUrl:l,allowAppsFlyer:s,deepLinkValue:o}){if(!s||!i||null===e)return"";let c="android"===e?t:n,d=encodeURIComponent(i.replace(/ /g,"_")),u=`${r}/${c}?pid=WWW&af_adset=${d}&c=${a}`;return o&&(u+=`&deep_link_value=${encodeURIComponent(o)}`),"ios"===e&&l&&(u+=`&af_ios_fallback=${encodeURIComponent(l)}`),u}],16730)},881282,e=>{"use strict";e.s(["getPlatform",0,function(e){return/iPhone|iPod|iPad/.test(e)?"ios":/Android/.test(e)?"android":null}])},677691,e=>{"use strict";var t=e.i(592121),n=e.i(726812),r=e.i(16730),a=e.i(881282);e.s(["useAppInstallLink",0,function(e,i){let[l,s]=(0,t.useState)(null),[o,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s((0,a.getPlatform)(navigator.userAgent)),c(window.location.href),u(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)},[]);let f=(0,r.getAppsFlyerLink)({platform:l,trackAdset:e,currentUrl:o,allowAppsFlyer:d,deepLinkValue:i}),p="android"===l?n.PLAY_STORE_URL:n.APP_STORE_URL;return{href:f||p,platform:l}}])},738426,e=>{"use strict";var t=e.i(592121),n=e.i(18358);e.s(["useTrackInstallPromptClick",0,function(e){let r=(0,n.useTrackEvent)();return(0,t.useCallback)(t=>{r("web-to-app-install-prompt-click",{entry_point:e,cta_type:t,link_id:`${e}-${t}`})},[r,e])}])},677997,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(747961);let a=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":a,...i,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"lightning"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.468 14.608a.56.56 0 0 0 .054.328c.05.1.13.178.224.223q.086.04.18.04a.43.43 0 0 0 .207-.064.5.5 0 0 0 .159-.162l6.017-8.742a.565.565 0 0 0 .05-.514.5.5 0 0 0-.17-.21.43.43 0 0 0-.246-.079H9.745l.8-4a.57.57 0 0 0-.092-.438.5.5 0 0 0-.161-.14.4.4 0 0 0-.2-.05H5.463a.43.43 0 0 0-.294.107.52.52 0 0 0-.168.289L3.612 7.882a.57.57 0 0 0 .091.443q.069.092.166.142a.4.4 0 0 0 .206.047H6.31zm5.49-8.18H8.526L9.45 1.8H5.896L4.71 7.514h2.748l-.692 5.007zm-5.022 8.31v-.01l.001-.055m-.03.097v-.028l-.004-.074m.005.102-.014-.021zm0 0v.027z",clipRule:"evenodd"})]})),i=n.default.forwardRef((e,n)=>(0,t.jsx)(r.BaseIcon,{ref:n,icon:a,...e}));i.displayName="Lightning",e.s(["Lightning",0,i])},606703,103e3,e=>{"use strict";var t=e.i(699173),n=e.i(592121);e.s(["Card",0,function({src:e,alt:n,top:r,left:a,width:i}){return(0,t.jsx)("img",{src:e,alt:n,className:"absolute rounded-xl",style:{top:r,left:a,width:i}})},"CompositeFrame",0,function({left:e,top:n,width:r,height:a,children:i}){return(0,t.jsx)("div",{className:"absolute",style:{left:e,top:n,width:r,height:a},children:i})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:r,color:a,cx:i,cy:l,rx:s,ry:o}){let c=(0,n.useId)();return(0,t.jsxs)("svg",{"aria-hidden":"true",className:"absolute inset-0 size-full",viewBox:`0 0 ${e} ${r}`,preserveAspectRatio:"none",children:[(0,t.jsx)("g",{opacity:.32,filter:`url(#${c})`,children:(0,t.jsx)("ellipse",{cx:i,cy:l,rx:s,ry:o,fill:a})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:c,x:"0",y:"0",width:e,height:r,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:40})]})})]})}],606703);let r={src:e.i(348501).default,width:516,height:380,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAoklEQVR42h3Lyw6CMBRF0f7/ZzFxZEKiMYKiJjz6oAVuW4Fc0WPDYM/WFodTl12LG5flnavHk4eRePKRpe75WNhMnCubN02Dtm33jDEg7+GGAZfXmAtlXKjrGl3XQimFdV2xzDMiTQm+gxgnYqcV4mAxx4CQbu8MFl1jpYkFJTBqCW86UEJSSoQEtkj4MLMIYaa+t9xbx9rYPR8ib1/wwj/6A1qGsw/Ra/bcAAAAAElFTkSuQmCC"};e.s(["default",0,r],103e3)},460581,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(240058),a=e.i(64412),i=e.i(677997),l=e.i(995113),s=e.i(702957),o=e.i(489408),c=e.i(113016),d=e.i(312401),u=e.i(807215),f=e.i(876329),p=e.i(632137),h=e.i(546446);e.i(609717);var m=e.i(950771),g=e.i(537989),v=e.i(738426),x=e.i(381477),b=e.i(190344),w=e.i(427977),y=e.i(961123),A=e.i(559421),C=e.i(388706),S=e.i(498076),E=e.i(683903),_=e.i(304116),j=e.i(269153),R=e.i(528600),N=e.i(837879),L=e.i(683199),I=e.i(677691),k=e.i(429745),P=e.i(606703),O=e.i(103e3),T=e.i(226602),D=e.i(747961);let U=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:a,...i},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":n,"aria-describedby":a,...i,children:[r?(0,t.jsx)("desc",{id:a,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Download"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M13 12v2H3v-2H2v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2zM13 7l-.705-.705-3.795 3.79V1h-1v9.085l-3.795-3.79L3 7l5 5z"})})]})),$=n.default.forwardRef((e,n)=>(0,t.jsx)(D.BaseIcon,{ref:n,icon:U,...e}));$.displayName="Download";var B=e.i(697380),M=e.i(512134),F=e.i(521350),H=e.i(358273);let V="wx-next/get-app-button:dismissed-session";function z(){let e=(0,S.useIsMobile)(),r=(0,y.usePathname)(),a=(0,h.useAtomValue)(B.fixedBottomAdHeightAtom),{isDismissed:i,dismiss:l}=function(){let e=(0,M.useIsClient)(),[t,r]=(0,n.useState)(!1);return{isDismissed:!e||t||function(){let e=function(){if(!(0,F.isLocalStorageAvailable)())return null;try{return localStorage.getItem(V)}catch{return null}}();if(!e)return!1;let t=(0,H.getMetricsSession)()?.sessionId;return!!t&&t===e}(),dismiss:(0,n.useCallback)(()=>{let e=(0,H.getMetricsSession)()?.sessionId;if(e&&(0,F.isLocalStorageAvailable)())try{localStorage.setItem(V,e)}catch{}r(!0)},[])}}(),{href:s}=(0,I.useAppInstallLink)("floating-button","floating-button"),o=(0,v.useTrackInstallPromptClick)("floating-button");if(!e||i||r.includes("/download/you"))return null;let c=`calc(3.5rem + ${a}px + 0.75rem)`;return(0,t.jsx)("div",{className:"z-sticky fixed left-1/2 -translate-x-1/2 md:hidden",style:{bottom:c},"data-testid":"get-app-button",children:(0,t.jsxs)("div",{style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},className:"group relative flex h-12 items-center overflow-hidden rounded-full shadow-lg",children:[(0,t.jsx)("div",{"aria-hidden":"true",style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"}),(0,t.jsxs)("a",{href:s,onClick:()=>o("get-the-app"),className:"relative z-2 flex h-full items-center gap-2 pr-2 pl-4 font-semibold text-white no-underline focus:outline-none",children:[(0,t.jsx)($,{ariaHidden:!0,className:"size-5 shrink-0 text-white"}),(0,t.jsx)("span",{className:"text-sm whitespace-nowrap",children:"Get the App"})]}),(0,t.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:l,className:"relative z-2 flex h-full items-center pr-4 pl-1 text-white focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(T.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e=(0,S.useIsMobile)(),T=(0,y.usePathname)(),D=(0,A.useCanonicalBasePath)(),[U,$]=(0,n.useState)(!1),{href:B}=(0,I.useAppInstallLink)("you-hub","you-hub"),M=(0,v.useTrackInstallPromptClick)("you-hub"),F=(0,j.useIsSamsungPartner)(),H=(0,h.useAtomValue)(g.pageIdAtom),V=(0,E.useTranslations)("SidebarNavigation"),{user:G}=(0,R.useUser)(),{isUserPremium:Y}=G,q=(0,N.useSubscriptionsEnabled)(),W=(0,L.usePremiumSource)(),{location:Q,isLoading:X}=(0,a.useLocation)(),K=(0,h.useAtomValue)(m.pageLocaleAtom),J=(0,b.useVideoNavUrl)(),{data:Z}=(0,x.default)(["navigation/getQuickNav",K],()=>(0,w.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),ee=(0,n.useMemo)(()=>{if(X||!Q)return[];let e=Q.placeId||"",n=Q.featureId,r=Q.canonicalID,a=(0,_.buildLocationPageHref)({pageType:"today",locale:K,canonicalID:r,featureId:n,placeId:e,canonicalBasePath:D,skipCanonical:F}),p=(0,_.buildLocationPageHref)({pageType:"radar",locale:K,canonicalID:r,featureId:n,placeId:e,canonicalBasePath:D,skipCanonical:F}),h=D?T.split("/").pop():null,m=D?C.CANONICAL_PAGE_TYPES.includes(h):T.includes("/weather/today/")||T.includes("/weather/hourbyhour/")||T.includes("/weather/tenday/")||T.includes("/weather/monthly/")||T.includes("/forecast/allergy/")||T.includes("/forecast/air-quality/")||T.includes("/forecast/cold-flu/"),g=T.includes("/weather/radar/")||T.includes("/weather/maps/"),v=T.includes("/subscribe"),x="video"===H,b=Z?.videoLinkLocaleInclude?.["en-US"],w=b?.override?`?${b?.adRef}`:"",y=J?`${J}${w}`:"",A="h-6 w-6 text-inherit";return[{name:V("forecast"),href:a,icon:(0,t.jsx)(s.PartlyCloudyBold,{className:A}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:A}),isActive:m},...J?[{name:V("video"),href:y,icon:(0,t.jsx)(c.VideoPlayerBold,{className:A}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:A}),isActive:x}]:[],{name:V("radar"),href:p,icon:(0,t.jsx)(u.RadarBold,{className:A}),activeIcon:(0,t.jsx)(f.RadarBoldFilled,{className:A}),isActive:g},...q&&!Y&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(i.Lightning,{className:A}),activeIcon:(0,t.jsx)(l.LightningFilled,{className:A}),isActive:v,onClick:()=>W({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[X,Q,K,T,H,J,Z,D,W,F]);if(!e)return null;let et="en-US"===K&&!1;return 0===ee.length?null:(0,t.jsxs)(t.Fragment,{children:[et&&(0,t.jsx)(z,{}),(0,t.jsx)("nav",{className:"z-sticky fixed right-0 bottom-0 left-0 bg-white md:hidden","aria-label":"Mobile navigation","data-component":"localsuite-nav","data-testid":"localsuite-nav",children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:(0,t.jsx)("div",{className:"flex h-14 w-full items-stretch justify-around px-4 py-1",children:ee.map(e=>{let n=(0,p.cn)("flex flex-1 flex-col items-center justify-center gap-0.5 rounded-3xl text-xs text-gray-900 transition-colors","hover:bg-gray-100 active:bg-gray-200",{"bg-gray-100 text-blue-500":e.isActive}),a=(0,p.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold");return e.href?(0,t.jsxs)(r.default,{href:e.href,className:n,"aria-current":e.isActive?"page":void 0,sourceModule:"localsuite-nav",onClick:e.onClick,children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.isActive?e.activeIcon:e.icon}),(0,t.jsx)("span",{className:a,children:e.name})]},e.name):(0,t.jsxs)("button",{type:"button",className:n,onClick:e.onClick,children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.icon}),(0,t.jsx)("span",{className:a,children:e.name})]},e.name)})})})}),(0,t.jsx)(k.InstallPromptSheet,{open:U,onOpenChange:$,title:"You Hub",headline:"Weather Your Way",description:"Save your favorite locations and unlock custom forecasts tailored to your daily travel, plans and routines.",imageContent:(0,t.jsxs)(P.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(P.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(P.Card,{src:O.default.src,alt:"You Hub cards showing a saved commute activity and flight status",top:"26.2%",left:"23.5%",width:"53.3%"})]}),getAppHref:B,onGetAppClick:()=>M("get-the-app"),learnMoreHref:"/download/you#you-hub",onLearnMoreClick:()=>M("learn-more")})]})}],460581)}]);