(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,867775,e=>{"use strict";var t=e.i(699173),r=e.i(592121),n=e.i(730921),a=e.i(683903),i=e.i(877957),s=e.i(367810),l=e.i(901351),o=e.i(313983),c=e.i(725296),u=e.i(521350),d=e.i(611540);let f=({isUserLoggedIn:e,regime:f,deviceClass:p,experience:h,isPremiumUser:m})=>{let g=(0,a.useTranslations)("PrivacyConsentModal"),v=(0,n.useLocale)(),b=(0,d.interpolateUrl)(d.URLS.privacyPolicy,{locale:v}),[x,w]=(0,r.useState)(!1),[y,A]=(0,r.useState)(!1),[C,S]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!c.US_REGIMES.includes(f)||m||!(0,u.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),r=localStorage.getItem("saleOfDataConflict");t?(A(!0),w(!0)):e&&r&&(S(!0),w(!0))},[f,m,e]);let E=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await l.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&window.location.reload()}catch(e){console.error("Failed to update UPSX consent:",e)}},j=t=>{let r=window,n=window.top,a=r.DprSdk||n?.DprSdk;a?(a.setUserConsents({[o.Purpose.SALE_OF_DATA]:t}),e&&E({purpose:o.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0}),y?((0,u.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||window.location.reload()):C&&(0,u.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),w(!1)):console.error("Unable to fix conflict, missing DprSdk.")},_="",R="";if(y?(_="gpcConflictHeader",R="gpcConflictParagraph",f===c.Regime.USA_CCPA&&(R+="_usa-ccpa")):C&&(_="saleOfDataConflictHeader",R="saleOfDataConflictParagraph",f===c.Regime.USA_CCPA&&(R+="_usa-ccpa")),R)return(0,t.jsx)(s.Dialog,{open:x,onOpenChange:w,children:(0,t.jsxs)(s.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:[_&&(0,t.jsx)(s.DialogHeader,{children:(0,t.jsx)(s.DialogTitle,{className:"text-xl font-semibold",children:g(_)})}),(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:b,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(s.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(i.Button,{onClick:()=>{j(!0)},variant:"default",className:"w-full sm:w-auto",children:g("optInButtonText")}),(0,t.jsx)(i.Button,{onClick:()=>{j(!1)},variant:"secondary",className:"w-full sm:w-auto",children:g("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModal",0,f,"default",0,f])},520362,e=>{"use strict";var t=e.i(699173),r=e.i(592121);let n=e=>{let{apiRoute:t,depth:n,refresh:a,serverURL:i}=e,s=(0,r.useRef)(!1),l=(0,r.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,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",l),s.current||(s.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",l)}),[i,l,n,t,a]),null};var a=e.i(961123);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),s={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"},l=e=>{let r=(0,a.useRouter)();return(0,t.jsx)(n,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,l],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),a=(0,r.useRef)(null),l=(0,r.useRef)(null),o=(0,r.useCallback)(()=>{if("u"{let r=t.current,a=e.current;if(!r||!a)return;if(!r.isConnected){t.current=null,a.style.opacity="0",n.current?.disconnect();return}let i=r.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"},[]),u=(0,r.useCallback)(()=>{t.current=null,l.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===a.current&&(a.current=requestAnimationFrame(()=>{a.current=null,c()}))},[c]),f=(0,r.useCallback)(e=>{if(e===l.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void i.debug("No element found for block ID",{blockId:e});let a=(e=>{let t=e,r=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):u())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==a.current&&cancelAnimationFrame(a.current),n.current?.disconnect(),e.current?.remove()}},[f,u,d]),null},"LivePreviewListener",0,l],520362)},104777,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return i.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(836549),s=e.r(560716),l=e.r(544383)},313983,e=>{"use strict";var t,r=((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",()=>r])},647872,279791,494889,928083,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let r=(0,t.atom)(!1);e.s(["showOpenWebCommentsAtom",0,r],279791);let n=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,n],494889);let a=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,a],928083),e.s([],647872)},567277,e=>{"use strict";var t=e.i(546584),r=e.i(592121),n=e.i(961123);function a(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.current(e.route);else{let r=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 r=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*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),a()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.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});r&&(n.current=r.setRoute)}},[e.route]),null}function l(e){let a=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let a=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!a)return r;let s=r;try{let e=Object.entries(a);for(let[t,r]of e)if(!Array.isArray(r)){let e=i(r);e.test(s)&&(s=s.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=i(r.join("/"));e.test(s)&&(s=s.replace(e,`/[...${t}]`))}return s}catch(e){return r}})();return r.default.createElement(s,{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 r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(l,{...e}))}])},540039,e=>{"use strict";var t,r=e.i(546584),n={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_BoNWnK8JhbgE8WpNXUMFCJ2YAv8T":void 0},a=e.i(592121),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,a.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[a,i]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))i&&r.setAttribute(a,i);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],540039)},556441,e=>{"use strict";var t=e.i(699173),r=e.i(961123),n=e.i(240058),a=e.i(877957),i=e.i(368847),s=e.i(132084),l=e.i(528600),o=e.i(837879),c=e.i(498076),u=e.i(37429),d=e.i(683199);e.s(["default",0,()=>{let e=(0,r.useSearchParams)(),f=e.get("par")||e.get("partner"),p=(0,c.useIsMobile)(),h=(0,o.useSubscriptionsEnabled)(),{user:m}=(0,l.useUser)(),{isUserPremium:g}=m,v=(0,d.usePremiumSource)();return f===s.Partner.TIKTOK&&p&&h&&!g?(0,t.jsxs)("div",{className:"relative mb-4 overflow-hidden bg-[#590462]",children:[(0,t.jsx)(u.default,{src:"https://s.w-x.co/tt-banner.jpg",alt:"",fill:!0,priority:!0,isFetchPriority:!0,rounded:!1,objectFit:"cover",className:"object-center",wrapperClassName:"absolute inset-0","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"relative z-10 p-6 text-center",children:[(0,t.jsx)(i.default,{variant:"Title.S",className:"mb-2.5 text-white",children:"Your TikTok Exclusive"}),(0,t.jsx)(i.default,{variant:"Body.S.Bold",className:"mb-2.5 text-white",children:"Get The Weather Channel Premium FREE for 1 month — turn ads off now, plus much more!"}),(0,t.jsx)(a.Button,{className:"rounded-lg px-8 py-2 text-sm font-bold",variant:"secondary",asChild:!0,children:(0,t.jsx)(n.default,{href:"/subscribe/checkout?products=e251f39b-afd7-4ad9-9c87-5e2a8ed63fbb&promoCode=t934k258j742&tpcc=mktg-today-tiktok-banner",onClick:()=>v({sourceModule:"tiktok-banner",sourceElement:"claim-now"}),children:"Claim Now"})})]})]}):null}])},10993,e=>{e.q("/_next/static/media/focusLogo.2pi2rjgfr3x4_.svg")},348501,e=>{e.q("/_next/static/media/dlpg-you.0o6zs2s1qinws.png")},718043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},r.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},r.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},r.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:r}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${r}/${e}`}},r.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:r=0,limit:i=10,sort:s="-publishdate"}){let l={q:Object.keys(t).reduce((e,r)=>{let n=t[r];return n instanceof Array?[...e,...n.map(e=>a(r,e))]:[...e,a(r,n)]},[]).join(";"),pg:`${r},${i}`,format:"json",sort:s},o=(0,n.queryStringToSearchParams)(l).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},r.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:r=0,limit:a=10,sort:i="-publishdate"}){let s={q:t,pg:`${r},${a}`,format:"json",sort:i},l=(0,n.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${l}`}},r.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:r=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${r}`}},r.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let n=e.r(678651);function a(e,t){let r=`'${t.$in}'`;return t.$in instanceof Array&&(r=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${r})`}},427977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getQuickNav=void 0;let n=e.r(414655),a=e.r(678651),i=e.r(718043);r.getQuickNav=async()=>{let e=(0,a.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,n.handleFetchResponse)(t)}},429745,e=>{"use strict";var t=e.i(699173),r=e.i(367810),n=e.i(226602),a=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:i,title:s,headline:l,description:o,imageUrl:c,imageAlt:u="",imageContent:d,getAppHref:f,getAppLabel:p="Get the app",onGetAppClick:h,learnMoreHref:m,learnMoreLabel:g="Learn more",onLearnMoreClick:v,closeLabel:b="Close"})=>(0,t.jsx)(r.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(r.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)(r.DialogClose,{"aria-label":b,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)(n.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),(0,t.jsx)(r.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:s}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,t.jsx)("div",{className:"relative h-40 w-full",children:d||(c?(0,t.jsx)("img",{src:c,alt:u,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:l}),(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",r="id295646461",n="https://app.appsflyer.com",a="weather.com",i=`https://apps.apple.com/us/app/the-weather-channel/${r}`,s=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,a,"APPSFLYER_HOST",0,n,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,i,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,r,"PLAY_STORE_URL",0,s],726812),e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:i,currentUrl:s,allowAppsFlyer:l,deepLinkValue:o}){if(!l||!i||null===e)return"";let c="android"===e?t:r,u=encodeURIComponent(i.replace(/ /g,"_")),d=`${n}/${c}?pid=WWW&af_adset=${u}&c=${a}`;return o&&(d+=`&deep_link_value=${encodeURIComponent(o)}`),"ios"===e&&s&&(d+=`&af_ios_fallback=${encodeURIComponent(s)}`),d}],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),r=e.i(726812),n=e.i(16730),a=e.i(881282);e.s(["useAppInstallLink",0,function(e,i){let[s,l]=(0,t.useState)(null),[o,c]=(0,t.useState)(null),[u,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{l((0,a.getPlatform)(navigator.userAgent)),c(window.location.href),d(!!window.DprSdk?.getFeatureFlags()?.appsFlyer)},[]);let f=(0,n.getAppsFlyerLink)({platform:s,trackAdset:e,currentUrl:o,allowAppsFlyer:u,deepLinkValue:i}),p="android"===s?r.PLAY_STORE_URL:r.APP_STORE_URL;return{href:f||p,platform:s}}])},738426,e=>{"use strict";var t=e.i(592121),r=e.i(598513);let n={"you-hub":"you-hub-web-to-app-install","24-hour-radar":"radar-24hour-web-to-app-install","floating-button":"floating-button-web-to-app-install"},a={"you-hub":{"get-the-app":"Get the app","learn-more":"Learn more"},"24-hour-radar":{"get-the-app":"Get the app","learn-more":"Learn more"},"floating-button":{"get-the-app":"Get the App"}};e.s(["useTrackInstallPromptClick",0,function(e){let i=(0,r.useSendInteractionEvent)();return(0,t.useCallback)(t=>{i({moduleId:n[e],interactionType:"click",interactionElement:a[e][t]},{flushImmediately:!0})},[i,e])}])},677997,e=>{"use strict";var t=e.i(699173),r=e.i(592121),n=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:n,descId:a,...i},s)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:s,"aria-labelledby":r,"aria-describedby":a,...i,children:[n?(0,t.jsx)("desc",{id:a,children:n}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"lightning"}):e?(0,t.jsx)("title",{id:r,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=r.default.forwardRef((e,r)=>(0,t.jsx)(n.BaseIcon,{ref:r,icon:a,...e}));i.displayName="Lightning",e.s(["Lightning",0,i])},606703,103e3,e=>{"use strict";var t=e.i(699173),r=e.i(592121);e.s(["Card",0,function({src:e,alt:r,top:n,left:a,width:i}){return(0,t.jsx)("img",{src:e,alt:r,className:"absolute rounded-xl",style:{top:n,left:a,width:i}})},"CompositeFrame",0,function({left:e,top:r,width:n,height:a,children:i}){return(0,t.jsx)("div",{className:"absolute",style:{left:e,top:r,width:n,height:a},children:i})},"Glow",0,function({viewBoxWidth:e,viewBoxHeight:n,color:a,cx:i,cy:s,rx:l,ry:o}){let c=(0,r.useId)();return(0,t.jsxs)("svg",{"aria-hidden":"true",className:"absolute inset-0 size-full",viewBox:`0 0 ${e} ${n}`,preserveAspectRatio:"none",children:[(0,t.jsx)("g",{opacity:.32,filter:`url(#${c})`,children:(0,t.jsx)("ellipse",{cx:i,cy:s,rx:l,ry:o,fill:a})}),(0,t.jsx)("defs",{children:(0,t.jsxs)("filter",{id:c,x:"0",y:"0",width:e,height:n,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 n={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,n],103e3)},460581,e=>{"use strict";var t=e.i(699173),r=e.i(592121),n=e.i(240058),a=e.i(64412),i=e.i(677997),s=e.i(995113),l=e.i(702957),o=e.i(489408),c=e.i(113016),u=e.i(312401),d=e.i(807215),f=e.i(876329),p=e.i(524574),h=e.i(248730),m=e.i(632137),g=e.i(546446);e.i(609717);var v=e.i(950771),b=e.i(537989);e.i(647872);var x=e.i(494889),w=e.i(611540),y=e.i(738426),A=e.i(381477),C=e.i(190344),S=e.i(427977),E=e.i(961123),j=e.i(559421),_=e.i(388706),R=e.i(498076),N=e.i(683903),I=e.i(304116),L=e.i(269153),k=e.i(528600),P=e.i(837879),O=e.i(683199),T=e.i(677691),U=e.i(429745),D=e.i(606703),B=e.i(103e3),$=e.i(226602),F=e.i(697380),M=e.i(512134),H=e.i(521350),G=e.i(358273);let V="wx-next/get-app-button:dismissed-session",z=["/hourbyhour"];function Y(){let e=(0,R.useIsMobile)(),n=(0,E.usePathname)(),a=(0,g.useAtomValue)(F.fixedBottomAdHeightAtom),{isDismissed:i,dismiss:s}=function(){let e=(0,M.useIsClient)(),[t,n]=(0,r.useState)(!1);return{isDismissed:!e||t||function(){let e=function(){if(!(0,H.isLocalStorageAvailable)())return null;try{return localStorage.getItem(V)}catch{return null}}();if(!e)return!1;let t=(0,G.getMetricsSession)()?.sessionId;return!!t&&t===e}(),dismiss:(0,r.useCallback)(()=>{let e=(0,G.getMetricsSession)()?.sessionId;if(e&&(0,H.isLocalStorageAvailable)())try{localStorage.setItem(V,e)}catch{}n(!0)},[])}}(),{href:l}=(0,T.useAppInstallLink)("floating-button","floating-button"),o=(0,y.useTrackInstallPromptClick)("floating-button");if(!e||i||n.endsWith("/download/you")||z.some(e=>n.includes(e)))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(to right, #204794, #007094)"},className:"group relative flex h-10 items-center overflow-hidden rounded-full shadow-lg",children:[(0,t.jsx)("a",{href:l,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)("span",{className:"text-sm whitespace-nowrap",children:"Get the App"})}),(0,t.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:s,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)($.Close,{size:"sm",ariaHidden:!0,className:"size-4 text-white"})})]})})}e.s(["default",0,function(){let e=(0,R.useIsMobile)(),$=(0,E.usePathname)(),F=(0,j.useCanonicalBasePath)(),[M,H]=(0,r.useState)(!1),{href:G}=(0,T.useAppInstallLink)("you-hub","you-hub"),V=(0,y.useTrackInstallPromptClick)("you-hub"),z=(0,L.useIsSamsungPartner)(),W=(0,g.useAtomValue)(b.pageIdAtom),q=(0,N.useTranslations)("SidebarNavigation"),{user:Q}=(0,k.useUser)(),{isUserPremium:K}=Q,X=(0,P.useSubscriptionsEnabled)(),J=(0,O.usePremiumSource)(),{location:Z,isLoading:ee}=(0,a.useLocation)(),et=(0,g.useAtomValue)(v.pageLocaleAtom),er=(0,g.useAtomValue)(x.newsHubEnabledAtom),en=(0,C.useVideoNavUrl)(),{data:ea}=(0,A.default)(["navigation/getQuickNav",et],()=>(0,S.getQuickNav)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),ei=(0,r.useMemo)(()=>{if(ee||!Z)return[];let e=Z.placeId||"",r=Z.featureId,n=Z.canonicalID,a=(0,I.buildLocationPageHref)({pageType:"today",locale:et,canonicalID:n,featureId:r,placeId:e,canonicalBasePath:F,skipCanonical:z}),m=(0,I.buildLocationPageHref)({pageType:"radar",locale:et,canonicalID:n,featureId:r,placeId:e,canonicalBasePath:F,skipCanonical:z}),g=F?$.split("/").pop():null,v=F?_.CANONICAL_PAGE_TYPES.includes(g):$.includes("/weather/today/")||$.includes("/weather/hourbyhour/")||$.includes("/weather/tenday/")||$.includes("/weather/monthly/")||$.includes("/forecast/allergy/")||$.includes("/forecast/air-quality/")||$.includes("/forecast/cold-flu/"),b=$.includes("/weather/radar/")||$.includes("/weather/maps/"),x=$.includes("/subscribe"),y="video"===W,A="news"===W,C="en-US"===et&&er,S=ea?.videoLinkLocaleInclude?.["en-US"],E=S?.override?`?${S?.adRef}`:"",j=en?`${en}${E}`:"",R="h-6 w-6 text-inherit";return[{name:q("forecast"),href:a,icon:(0,t.jsx)(l.PartlyCloudyBold,{className:R}),activeIcon:(0,t.jsx)(o.PartlyCloudyBoldFilled,{className:R}),isActive:v},...C?[{name:"News",href:w.URLS.news,icon:(0,t.jsx)(p.HomeBold,{className:R}),activeIcon:(0,t.jsx)(h.HomeBoldFilled,{className:R}),isActive:A}]:en?[{name:q("video"),href:j,icon:(0,t.jsx)(c.VideoPlayerBold,{className:R}),activeIcon:(0,t.jsx)(u.VideoPlayerBoldFilled,{className:R}),isActive:y}]:[],{name:q("radar"),href:m,icon:(0,t.jsx)(d.RadarBold,{className:R}),activeIcon:(0,t.jsx)(f.RadarBoldFilled,{className:R}),isActive:b},...X&&!K&&[{name:"Upgrade",href:"/subscribe?tpcc=mktg-localsuite-nav-subscribe",icon:(0,t.jsx)(i.Lightning,{className:R}),activeIcon:(0,t.jsx)(s.LightningFilled,{className:R}),isActive:x,onClick:()=>J({sourceModule:"localsuite-nav",sourceElement:"upgrade"})}]||[]]},[ee,Z,et,$,W,er,en,ea,F,J,z]);if(!e)return null;let es="en-US"===et;return 0===ei.length?es?(0,t.jsx)(Y,{}):null:(0,t.jsxs)(t.Fragment,{children:[es&&(0,t.jsx)(Y,{}),(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:ei.map(e=>{let r=(0,m.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,m.cn)("text-[11px] leading-tight",e.isActive&&"font-semibold");return e.href?(0,t.jsxs)(n.default,{href:e.href,className:r,"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:r,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)(U.InstallPromptSheet,{open:M,onOpenChange:H,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)(D.CompositeFrame,{left:"0%",top:"-40.84%",width:"100%",height:"181.69%",children:[(0,t.jsx)(D.Glow,{viewBoxWidth:480,viewBoxHeight:408,color:"#679CED",cx:240,cy:204,rx:160,ry:124}),(0,t.jsx)(D.Card,{src:B.default.src,alt:"You Hub cards showing a saved commute activity and flight status",top:"26.2%",left:"23.5%",width:"53.3%"})]}),getAppHref:G,onGetAppClick:()=>V("get-the-app"),learnMoreHref:"/download/you#you-hub",onLearnMoreClick:()=>V("learn-more")})]})}],460581)}]);