(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,567277,e=>{"use strict";var t=e.i(546584),n=e.i(592121),i=e.i(961123);function r(){return false}function a(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 i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(i.current)e.route&&i.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:r()?"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 i=document.createElement("script");return i.src=n,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.3.1",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint?i.dataset.endpoint=e.endpoint:e.basePath&&(i.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(i.dataset.dsn=e.dsn),r()&&!1===e.debug&&(i.dataset.debug="false"),i.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(i),{setRoute:e=>{i.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&&(i.current=n.setRoute)}},[e.route]),null}function s(e){let r=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,n=(0,i.usePathname)();if(!e)return null;let r=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!r)return n;let l=n;try{let e=Object.entries(r);for(let[t,n]of e)if(!Array.isArray(n)){let e=a(n);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=a(n.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return n}})();return n.default.createElement(l,{route:r,...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),i={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},r=e.i(592121),a=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:n}){return(0,r.useEffect)(()=>(e&&a&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let n=document.createElement("script");for(let[r,a]of(n.src=`${i.scriptHostname}/_next-live/feedback/feedback.js`,n.setAttribute("data-explicit-opt-in","true"),e.nonce&&n.setAttribute("nonce",e.nonce),Object.entries((i.ownerId&&i.projectId?{"data-owner-id":i.ownerId,"data-project-id":i.projectId,"data-branch":t??i.branch}:i.deploymentId?{"data-deployment-id":i.deploymentId}:void 0)??{})))a&&n.setAttribute(r,a);(document.head||document.documentElement).appendChild(n)}}({nonce:n}),a=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},520362,e=>{"use strict";var t=e.i(699173),n=e.i(592121);let i=e=>{let{apiRoute:t,depth:i,refresh:r,serverURL:a}=e,l=(0,n.useRef)(!1),s=(0,n.useCallback)(e=>{e.origin===a&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof r?r():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[r,a]);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:a}),r()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[a,s,i,t,r]),null};var r=e.i(961123);let a=(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,r.useRouter)();return(0,t.jsx)(i,{...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),i=(0,n.useRef)(null),r=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{if("u"{let n=t.current,r=e.current;if(!n||!r)return;if(!n.isConnected){t.current=null,r.style.opacity="0",i.current?.disconnect();return}let a=n.getBoundingClientRect();r.style.top=`${a.top+window.scrollY}px`,r.style.left=`${a.left+window.scrollX}px`,r.style.width=`${a.width}px`,r.style.height=`${a.height}px`,r.style.opacity="1"},[]),d=(0,n.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),i.current?.disconnect()},[]),u=(0,n.useCallback)(()=>{t.current&&null===r.current&&(r.current=requestAnimationFrame(()=>{r.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 a.debug("No element found for block ID",{blockId:e});let r=(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!==r.current&&cancelAnimationFrame(r.current),i.current?.disconnect(),e.current?.remove()}},[f,d,u]),null},"LivePreviewListener",0,s],520362)},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:a=10,sort:l="-publishdate"}){let s={q:Object.keys(t).reduce((e,n)=>{let i=t[n];return i instanceof Array?[...e,...i.map(e=>r(n,e))]:[...e,r(n,i)]},[]).join(";"),pg:`${n},${a}`,format:"json",sort:l},o=(0,i.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:r=10,sort:a="-publishdate"}){let l={q:t,pg:`${n},${r}`,format:"json",sort:a},s=(0,i.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 i=e.r(678651);function r(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 i=e.r(414655),r=e.r(678651),a=e.r(718043);n.getQuickNav=async()=>{let e=(0,r.urlFrom)((0,a.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,i.handleFetchResponse)(t)}},867775,e=>{"use strict";var t=e.i(699173),n=e.i(592121),i=e.i(730921),r=e.i(683903),a=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,r.useTranslations)("PrivacyConsentModal"),v=(0,i.useLocale)(),x=(0,u.interpolateUrl)(u.URLS.privacyPolicy,{locale:v}),[b,w]=(0,n.useState)(!1),[y,C]=(0,n.useState)(!1),[A,j]=(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?(C(!0),w(!0)):e&&n&&(j(!0),w(!0))},[f,m,e]);let S=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)}},k=t=>{let n=window,i=window.top,r=n.DprSdk||i?.DprSdk;r?(r.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&S({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):A&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},E="",R="";if(y?(E="gpcConflictHeader",R="gpcConflictParagraph",f===c.Regime.USA_CCPA&&(R+="_usa-ccpa")):A&&(E="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=>{(A||y)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[E&&(0,t.jsx)(l.DialogHeader,{children:(0,t.jsx)(l.DialogTitle,{className:"text-xl font-semibold",children:g(E)})}),(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)(a.Button,{onClick:()=>{k(!0)},variant:"default",className:"w-full sm:w-auto",children:g("optInButtonText")}),(0,t.jsx)(a.Button,{onClick:()=>{k(!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),i=e.i(226602),r=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:a,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:a,children:(0,t.jsxs)(n.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,className:(0,r.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)(i.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",i="https://app.appsflyer.com",r="weather.com",a=`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,r,"APPSFLYER_HOST",0,i,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,a,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,n,"PLAY_STORE_URL",0,l],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:a,currentUrl:l,allowAppsFlyer:s,deepLinkValue:o}){if(!s||!a||null===e)return"";let c="android"===e?t:n,d=encodeURIComponent(a.replace(/ /g,"_")),u=`${i}/${c}?pid=WWW&af_adset=${d}&c=${r}`;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),i=e.i(16730),r=e.i(881282);e.s(["useAppInstallLink",0,function(e,a){let[l,s]=(0,t.useState)(null),[o,c]=(0,t.useState)(null),[d,u]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s((0,r.getPlatform)(navigator.userAgent)),c(window.location.href),u(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)},[]);let f=(0,i.getAppsFlyerLink)({platform:l,trackAdset:e,currentUrl:o,allowAppsFlyer:d,deepLinkValue:a}),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 i=(0,n.useTrackEvent)();return(0,t.useCallback)(t=>{i("web-to-app-install-prompt-click",{entry_point:e,cta_type:t,link_id:`${e}-${t}`})},[i,e])}])},677997,e=>{"use strict";var t=e.i(699173),n=e.i(592121),i=e.i(747961);let r=(0,n.forwardRef)(({title:e,titleId:n,desc:i,descId:r,...a},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":r,...a,children:[i?(0,t.jsx)("desc",{id:r,children:i}):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"})]})),a=n.default.forwardRef((e,n)=>(0,t.jsx)(i.BaseIcon,{ref:n,icon:r,...e}));a.displayName="Lightning",e.s(["Lightning",0,a])},606703,103e3,e=>{"use strict";var t=e.i(699173),n=e.i(592121);e.s(["Card",0,function({src:e,alt:n,top:i,left:r,width:a}){return(0,t.jsx)("img",{src:e,alt:n,className:"absolute rounded-xl",style:{top:i,left:r,width:a}})},"CompositeFrame",0,function({left:e,top:n,width:i,height:r,children:a}){return(0,t.jsx)("div",{className:"absolute",style:{left:e,top:n,width:i,height:r},children:a})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:i,color:r,cx:a,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} ${i}`,preserveAspectRatio:"none",children:[(0,t.jsx)("g",{opacity:.32,filter:`url(#${c})`,children:(0,t.jsx)("ellipse",{cx:a,cy:l,rx:s,ry:o,fill:r})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:c,x:"0",y:"0",width:e,height:i,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 i={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,i],103e3)},460581,e=>{"use strict";var t=e.i(699173),n=e.i(592121),i=e.i(240058),r=e.i(64412),a=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),C=e.i(559421),A=e.i(388706),j=e.i(498076),S=e.i(683903),k=e.i(304116),E=e.i(269153),R=e.i(528600),P=e.i(837879),L=e.i(683199),I=e.i(677691),_=e.i(429745),N=e.i(606703),$=e.i(103e3),B=e.i(226602),U=e.i(747961);let O=(0,n.forwardRef)(({title:e,titleId:n,desc:i,descId:r,...a},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":r,...a,children:[i?(0,t.jsx)("desc",{id:r,children:i}):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"})})]})),D=n.default.forwardRef((e,n)=>(0,t.jsx)(U.BaseIcon,{ref:n,icon:O,...e}));D.displayName="Download";var T=e.i(697380),F=e.i(512134),M=e.i(521350),H=e.i(358273);let z="wx-next/get-app-button:dismissed-session";function V(){let e=(0,j.useIsMobile)(),i=(0,y.usePathname)(),r=(0,h.useAtomValue)(T.fixedBottomAdHeightAtom),{isDismissed:a,dismiss:l}=function(){let e=(0,F.useIsClient)(),[t,i]=(0,n.useState)(!1);return{isDismissed:!e||t||function(){let e=function(){if(!(0,M.isLocalStorageAvailable)())return null;try{return localStorage.getItem(z)}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,M.isLocalStorageAvailable)())try{localStorage.setItem(z,e)}catch{}i(!0)},[])}}(),{href:s}=(0,I.useAppInstallLink)("floating-button","floating-button"),o=(0,v.useTrackInstallPromptClick)("floating-button");if(!e||a||i.includes("/download/you"))return null;let c=`calc(3.5rem + ${r}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)(D,{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)(B.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e=(0,j.useIsMobile)(),B=(0,y.usePathname)(),U=(0,C.useCanonicalBasePath)(),[O,D]=(0,n.useState)(!1),{href:T}=(0,I.useAppInstallLink)("you-hub","you-hub"),F=(0,v.useTrackInstallPromptClick)("you-hub"),M=(0,E.useIsSamsungPartner)(),H=(0,h.useAtomValue)(g.pageIdAtom),z=(0,S.useTranslations)("SidebarNavigation"),{user:Y}=(0,R.useUser)(),{isUserPremium:G}=Y,q=(0,P.useSubscriptionsEnabled)(),W=(0,L.usePremiumSource)(),{location:Q,isLoading:X}=(0,r.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,i=Q.canonicalID,r=(0,k.buildLocationPageHref)({pageType:"today",locale:K,canonicalID:i,featureId:n,placeId:e,canonicalBasePath:U,skipCanonical:M}),p=(0,k.buildLocationPageHref)({pageType:"radar",locale:K,canonicalID:i,featureId:n,placeId:e,canonicalBasePath:U,skipCanonical:M}),h=U?B.split("/").pop():null,m=U?A.CANONICAL_PAGE_TYPES.includes(h):B.includes("/weather/today/")||B.includes("/weather/hourbyhour/")||B.includes("/weather/tenday/")||B.includes("/weather/monthly/")||B.includes("/forecast/allergy/")||B.includes("/forecast/air-quality/")||B.includes("/forecast/cold-flu/"),g=B.includes("/weather/radar/")||B.includes("/weather/maps/"),v=B.includes("/subscribe"),x="video"===H,b=Z?.videoLinkLocaleInclude?.["en-US"],w=b?.override?`?${b?.adRef}`:"",y=J?`${J}${w}`:"",C="h-6 w-6 text-inherit";return[{name:z("forecast"),href:r,icon:(0,t.jsx)(s.PartlyCloudyBold,{className:C}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:C}),isActive:m},...J?[{name:z("video"),href:y,icon:(0,t.jsx)(c.VideoPlayerBold,{className:C}),activeIcon:(0,t.jsx)(d.VideoPlayerBoldFilled,{className:C}),isActive:x}]:[],{name:z("radar"),href:p,icon:(0,t.jsx)(u.RadarBold,{className:C}),activeIcon:(0,t.jsx)(f.RadarBoldFilled,{className:C}),isActive:g},...q&&!G&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(a.Lightning,{className:C}),activeIcon:(0,t.jsx)(l.LightningFilled,{className:C}),isActive:v,onClick:()=>W({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[X,Q,K,B,H,J,Z,U,W,M]);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)(V,{}),(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}),r=(0,p.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold");return e.href?(0,t.jsxs)(i.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:r,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:r,children:e.name})]},e.name)})})})}),(0,t.jsx)(_.InstallPromptSheet,{open:O,onOpenChange:D,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)(N.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(N.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(N.Card,{src:$.default.src,alt:"You Hub cards showing a saved commute activity and flight status",top:"26.2%",left:"23.5%",width:"53.3%"})]}),getAppHref:T,onGetAppClick:()=>F("get-the-app"),learnMoreHref:"/download/you#you-hub",onLearnMoreClick:()=>F("learn-more")})]})}],460581)}]);