"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3503],{7416:(e,t,a)=>{t.p=void 0;let l=a(86078),r=a(41661),n=a(58294);t.p=async()=>{let e=(0,r.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,l.handleFetchResponse)(t)}},23212:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(57740),r=a(7416),n=a(24935);let i={"en-US":"b5b00612-dcab-47fe-aa37-7edcc198c3eb","es-US":"79e3a66a-ee77-47a2-a93d-84931a413924","de-DE":"ef0cb00f-bd97-4636-b2b2-b7d0fcd7dc30","en-IN":"b784ec68-382d-4b45-8eb0-47f3d677d6c6",en:"85d5d0c0-c26b-420a-8bd5-788bba2ec0bb"},s=async e=>{var t,a,s;let c=await (0,r.p)(),o=null==c||null==(t=c.videoLinkLocaleInclude)?void 0:t[e],d=null==o?void 0:o.launchPlaylist;if((null==o?void 0:o.override)&&d){let t=await (0,n.vd)(d,e);return(null==t||null==(s=t[0])?void 0:s.url)||null}let h=i[e];if(!h)return null;let f=await (0,l.O)(h,"1");return(null==f||null==(a=f[0])?void 0:a.url)||null}},24935:(e,t,a)=>{t.vd=i;let l=a(58294),r=a(41661),n=a(86078);async function i(e,t){let a=t?t.split("-").join("_"):"en_US",i=(0,r.urlFrom)((0,l.getCMSOrderedListUrlConfig)({language:a,collectionId:e,collectionType:"video"})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,n.handleFetchResponse)(s)}},53503:(e,t,a)=>{a.d(t,{default:()=>_});var l=a(16852),r=a(77976),n=a(38850),i=a(68779),s=a(72603),c=a(1990);let o=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{viewBox:"0 0 24 24",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Arrow Up"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsx)("path",{d:"M.235 18.833h23.53L12.015 5.167.236 18.833z"})]})}),d=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:o,...e}));d.displayName="TriangleUp";let h=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{viewBox:"0 0 24 24",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Arrow down"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsx)("path",{d:"M23.765 5.167H.235l11.75 13.666L23.764 5.167z"})]})}),f=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:h,...e}));f.displayName="TriangleDown";let x=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"External Link"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsxs)("g",{fill:"currentColor",children:[(0,l.jsx)("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h5v1H3v10h10V8h1v5a1 1 0 0 1-1 1"}),(0,l.jsx)("path",{d:"M10 1v1h3.293L9 6.293 9.707 7 14 2.707V6h1V1z"})]})]})}),u=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:x,...e}));u.displayName="ExternalLink";let m=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",className:"styles--videoIcon--1DwjO Icon--icon--ySD-o Icon--lightTheme--Mqfrs",viewBox:"0 0 24 24",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Video"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M21 5.75H3a1.5 1.5 0 0 0-1.5 1.5v13.5a1.5 1.5 0 0 0 1.5 1.5h18a1.5 1.5 0 0 0 1.5-1.5V7.25a1.5 1.5 0 0 0-1.5-1.5M3 7.25h9.75v13.5H3zm9.75 13.5V7.25H21l.002 13.5z"}),(0,l.jsx)("path",{fill:"currentColor",d:"M9.5 17a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3A.5.5 0 0 1 9.5 17M19 2.77H4v1.384h15zM15.5 0H8v1.385h7.5z"})]})}),p=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:m,...e}));p.displayName="PlaylistVideo";let v=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Calendar"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M13 2h-2v-.5a.5.5 0 0 0-1 0V2H6v-.5a.5.5 0 0 0-1 0V2H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v.5a.5.5 0 0 0 1 0V3h4v.5a.5.5 0 0 0 1 0V3h2z"})]})}),w=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:v,...e}));w.displayName="Calendar";let j=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Time"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsxs)("g",{fill:"currentColor",children:[(0,l.jsx)("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"}),(0,l.jsx)("path",{d:"M10.648 10.647a.5.5 0 0 1-.706 0L7.5 8.205V4a.5.5 0 0 1 1 0v3.79l2.148 2.152a.5.5 0 0 1 0 .705"})]})]})}),b=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:j,...e}));b.displayName="Time";let g=(0,r.forwardRef)((e,t)=>{let{title:a,titleId:r,desc:n,descId:i,...s}=e;return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...s,children:[n?(0,l.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,l.jsx)("title",{id:r,children:"Radar"}):a?(0,l.jsx)("title",{id:r,children:a}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M15 1.707 14.293 1 7.647 7.647a.5.5 0 0 0 .707.707l2.09-2.09A2.998 2.998 0 1 1 7.502 5.04C7.774 4.996 8 4.776 8 4.5c0-.275-.224-.503-.498-.469a4.006 4.006 0 1 0 3.656 1.519l1.424-1.424A5.94 5.94 0 0 1 14 8a6 6 0 1 1-6.5-5.98.534.534 0 0 0 .5-.52.473.473 0 0 0-.5-.482A7 7 0 1 0 15 8a6.93 6.93 0 0 0-1.711-4.582z"})]})}),y=r.forwardRef((e,t)=>(0,l.jsx)(c.h,{ref:t,icon:g,...e}));y.displayName="Radar";var N=a(71232),C=a(4100),M=a(6977),A=a(62468),I=a(23212),R=a(7416);function S(e){let{placeId:t}=e,a=[{name:"Yesterday's Weather",href:"https://www.wunderground.com/history/daily/".concat(t,"/yesterday"),icon:(0,l.jsx)(u,{className:"h-4 w-4"})},{name:"Allergy Tracker",href:"/forecast/allergy/l/".concat(t)},{name:"Cold & Flu",href:"/forecast/cold-flu/l/".concat(t)},{name:"Air Quality Forecast",href:"/forecast/air-quality/l/".concat(t)}];return(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"mb-4 text-lg font-bold",children:"SPECIALTY FORECASTS"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4",children:a.map(e=>(0,l.jsx)(n.default,{href:e.href,className:"hover:underline",children:(0,l.jsxs)("span",{className:"text-base font-normal text-[#252422]",children:[e.name,(0,l.jsx)("span",{children:e.icon})]})},e.name))})]})}function _(e){var t;let{location:a}=e,[c,o]=r.useState(!1),{effectiveLocation:h,isLocationLoading:x}=(0,i.s)({location:a,fallbackOrder:i.i.PREFER_RECENT}),u=(0,C.md)(M.X),{data:m}=(0,A.Ay)(["navigation/getVideoLink",u],e=>{let[t,a]=e;return(0,I.A)(a)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:v}=(0,A.Ay)(["navigation/getQuickNav",u],()=>(0,R.p)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),j=null==v||null==(t=v.videoLinkLocaleInclude)?void 0:t["en-US"],g=(null==j?void 0:j.override)?"?".concat(null==j?void 0:j.adRef):"",_=!x&&h?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(h.placeId),mobileIcon:(0,l.jsx)(w,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(h.placeId),mobileIcon:(0,l.jsx)(b,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(h.placeId),mobileIcon:(0,l.jsx)(w,{className:"h-8 w-8"}),isMobile:!0},{name:"Weekend",href:"/weather/weekend/l/".concat(h.placeId)},{name:"Monthly",href:"/weather/monthly/l/".concat(h.placeId)},{name:"Radar",href:"/weather/radar/interactive/l/".concat(h.placeId),mobileIcon:(0,l.jsx)(y,{className:"h-8 w-8"}),isMobile:!0},{name:"Video",href:"".concat(m).concat(g)||"",icon:(0,l.jsx)(p,{className:"h-4 w-4"}),mobileIcon:(0,l.jsx)(p,{className:"h-8 w-8"}),isMobile:!0}]:[],E=new Date().getDate();return(0,l.jsx)("nav",{className:"z-100 fixed bottom-0 left-0 right-0 border-b border-[#2524221a] bg-[var(--background)] md:relative md:z-10",children:(0,l.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:x||!h?null:(0,l.jsxs)("div",{className:"h-15 flex w-full md:h-10",children:[(0,l.jsx)("div",{className:"relative flex w-full flex-wrap items-stretch justify-around overflow-hidden",children:_.map(e=>(0,l.jsxs)(n.default,{href:e.href,className:(0,N.cn)("relative mt-[1px] flex h-[calc(100%-2px)] items-center justify-center gap-[5px] text-nowrap px-[15px] text-xs text-[#676767] outline-offset-0","md:text-base md:text-gray-800","after:absolute after:bottom-[-1px] after:left-1/2 after:h-[2px] after:w-0 after:-translate-x-1/2 after:bg-gray-800 after:transition-[width] after:duration-300 after:content-[''] hover:after:w-[calc(100%-10px)]",{"hidden md:flex":!e.isMobile}),children:[(0,l.jsx)("span",{className:"hidden md:inline",children:e.icon}),(0,l.jsxs)("span",{className:"flex flex-col items-center",children:[e.mobileIcon&&(0,l.jsxs)("span",{className:"relative md:hidden",children:[e.mobileIcon,"Today"===e.name&&(0,l.jsx)("span",{className:"absolute left-0 top-3 w-full text-center text-xs",children:E})]}),e.name,e.isNew&&(0,l.jsx)("span",{className:"ml-2 rounded bg-black px-1.5 py-0.5 text-xs text-white",children:"NEW"})]})]},e.name))}),(0,l.jsx)("div",{className:"flex hidden shrink-0 items-center justify-center md:inline",children:(0,l.jsxs)(s.AM,{open:c,onOpenChange:o,children:[(0,l.jsx)(s.Wv,{asChild:!0,children:(0,l.jsxs)("button",{className:"relative mt-[1px] flex h-[calc(100%-2px)] cursor-pointer items-center px-[15px] after:absolute after:bottom-[-1px] after:left-1/2 after:h-[2px] after:w-0 after:-translate-x-1/2 after:bg-gray-800 after:transition-[width] after:duration-300 after:content-[''] hover:after:w-[calc(100%-10px)]",children:[(0,l.jsxs)("span",{className:"text-nowrap text-gray-800",children:["More ",(0,l.jsx)("span",{className:"hidden lg:inline",children:"Forecasts"})]}),c?(0,l.jsx)(d,{className:"ml-1 h-4 w-4"}):(0,l.jsx)(f,{className:"ml-1 h-4 w-4"})]})}),(0,l.jsx)(s.hl,{showArrow:!1,children:(0,l.jsx)(S,{placeId:h.placeId})})]})})]})})})}},57740:(e,t,a)=>{t.O=i;let l=a(86078),r=a(41661),n=a(82764);async function i(e,t){let a=(0,r.urlFrom)((0,n.getMediaAssetsByIdUrlConfig)({assetId:e,limit:t})),i=await fetch(a,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return await (0,l.handleFetchResponse)(i)}},58294:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCMSCollectionsUrlConfig=function(e){let{collectionId:t,locale:a="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/collections/".concat(a,"/").concat(t)}},t.getCMSAssetByIDUrlConfig=function(e){let{language:t,assetId:a}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/a/".concat(t,"/").concat(a)}},t.getCMSOrderedCollectionsUrlConfig=function(e){let{collectionId:t,language:a="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/ordered-collections/".concat(a,"/").concat(t)}},t.getCMSOrderedListUrlConfig=function(e){let{collectionId:t,language:a,collectionType:l}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/orderedlist/".concat(a,"/").concat(l,"/").concat(t)}},t.getCMSAssetsUrlConfig=function(e){let{language:t="en_US",query:a={},skip:n=0,limit:i=10,sort:s="-publishdate"}=e,c={q:Object.keys(a).reduce((e,t)=>{let l=a[t];return l instanceof Array?[...e,...l.map(e=>r(t,e))]:[...e,r(t,l)]},[]).join(";"),pg:"".concat(n,",").concat(i),format:"json",sort:s},o=(0,l.queryStringToSearchParams)(c).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(t),search:"?".concat(o)}},t.getCMSAssetsSlideshowUrlConfig=function(e){let{offset:t=0,assetId:a,limit:l=500}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/assets/slideshow/".concat(a,"/").concat(t,",").concat(l)}},t.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let l=a(41661);function r(e,t){let a="'".concat(t.$in,"'");return t.$in instanceof Array&&(a=t.$in.map(e=>"'".concat(e,"'")).join(",")),"".concat(e,":$in(").concat(a,")")}},82764:(e,t,a)=>{var l=a(37811);Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaAssetsByIdUrlConfig=function(e){let{assetId:t,limit:a}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:l.env.WX_CONTENT_MEDIA_API_KEY,assetId:t,limit:a||void 0}}},t.getMediaAssetsByPlaylistIdUrlConfig=function(e){let{playlistId:t,limit:a}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:l.env.WX_CONTENT_MEDIA_API_KEY,playlistId:t,...void 0!==a?{limit:a.toString()}:{}}}}}}]);