"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8275],{18275:(e,a,l)=>{l.d(a,{default:()=>k});var r=l(66695),t=l(97839),n=l(88504),i=l(79023),s=l(38389),d=l(89010);let c=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Arrow Up"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.jsx)("path",{d:"M.235 18.833h23.53L12.015 5.167.236 18.833z"})]})}),o=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:c,...e}));o.displayName="TriangleUp";let h=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Arrow down"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.jsx)("path",{d:"M23.765 5.167H.235l11.75 13.666L23.764 5.167z"})]})}),f=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:h,...e}));f.displayName="TriangleDown";let x=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"External Link"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h5v1H3v10h10V8h1v5a1 1 0 0 1-1 1"}),(0,r.jsx)("path",{d:"M10 1v1h3.293L9 6.293 9.707 7 14 2.707V6h1V1z"})]})]})}),u=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:x,...e}));u.displayName="ExternalLink";let m=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.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:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Video"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.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,r.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"})]})}),v=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:m,...e}));v.displayName="PlaylistVideo";let w=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Calendar"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.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"})]})}),p=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:w,...e}));p.displayName="Calendar";let b=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Time"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.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,r.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"})]})]})}),j=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:b,...e}));j.displayName="Time";let y=(0,t.forwardRef)((e,a)=>{let{title:l,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,r.jsx)("title",{id:t,children:"Radar"}):l?(0,r.jsx)("title",{id:t,children:l}):null,(0,r.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"})]})}),g=t.forwardRef((e,a)=>(0,r.jsx)(d.h,{ref:a,icon:y,...e}));g.displayName="Radar";var N=l(64070),M=l(20108),R=l(72711),I=l(38051),A=l(99290),C=l(94658);function E(e){let{placeId:a}=e,l=[{name:"Yesterday's Weather",href:"https://www.wunderground.com/history/daily/".concat(a,"/yesterday"),icon:(0,r.jsx)(u,{className:"h-4 w-4"})},{name:"Allergy Tracker",href:"/forecast/allergy/l/".concat(a)},{name:"Cold & Flu",href:"/forecast/cold-flu/l/".concat(a)},{name:"Air Quality Forecast",href:"/forecast/air-quality/l/".concat(a)}];return(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"mb-4 text-lg font-bold",children:"SPECIALTY FORECASTS"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-4",children:l.map(e=>(0,r.jsx)(n.default,{href:e.href,className:"hover:underline",children:(0,r.jsxs)("span",{className:"text-base font-normal text-[#252422]",children:[e.name,(0,r.jsx)("span",{children:e.icon})]})},e.name))})]})}function k(e){var a;let{location:l}=e,[d,c]=t.useState(!1),{effectiveLocation:h,isLocationLoading:x}=(0,i.s)({location:l,fallbackOrder:i.i.PREFER_RECENT}),u=(0,M.md)(R.X),{data:m}=(0,I.Ay)(["navigation/getVideoLink",u],e=>{let[a,l]=e;return(0,A.A)(l)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:w}=(0,I.Ay)(["navigation/getQuickNav",u],()=>(0,C.p)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),b=null==w||null==(a=w.videoLinkLocaleInclude)?void 0:a["en-US"],y=(null==b?void 0:b.override)?"?".concat(null==b?void 0:b.adRef):"",k=!x&&h?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(p,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(j,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(p,{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,r.jsx)(g,{className:"h-8 w-8"}),isMobile:!0},{name:"Video",href:"".concat(m).concat(y)||"",icon:(0,r.jsx)(v,{className:"h-4 w-4"}),mobileIcon:(0,r.jsx)(v,{className:"h-8 w-8"}),isMobile:!0}]:[],V=new Date().getDate();return(0,r.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,r.jsx)("div",{className:"mx-auto flex w-full max-w-7xl",children:x||!h?null:(0,r.jsxs)("div",{className:"h-15 flex w-full md:h-10",children:[(0,r.jsx)("div",{className:"relative flex w-full flex-wrap items-stretch justify-around overflow-hidden",children:k.map(e=>(0,r.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,r.jsx)("span",{className:"hidden md:inline",children:e.icon}),(0,r.jsxs)("span",{className:"flex flex-col items-center",children:[e.mobileIcon&&(0,r.jsxs)("span",{className:"relative md:hidden",children:[e.mobileIcon,"Today"===e.name&&(0,r.jsx)("span",{className:"absolute left-0 top-3 w-full text-center text-xs",children:V})]}),e.name,e.isNew&&(0,r.jsx)("span",{className:"ml-2 rounded bg-black px-1.5 py-0.5 text-xs text-white",children:"NEW"})]})]},e.name))}),(0,r.jsx)("div",{className:"flex hidden shrink-0 items-center justify-center md:inline",children:(0,r.jsxs)(s.AM,{open:d,onOpenChange:c,children:[(0,r.jsx)(s.Wv,{asChild:!0,children:(0,r.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,r.jsxs)("span",{className:"text-nowrap text-gray-800",children:["More ",(0,r.jsx)("span",{className:"hidden lg:inline",children:"Forecasts"})]}),d?(0,r.jsx)(o,{className:"ml-1 h-4 w-4"}):(0,r.jsx)(f,{className:"ml-1 h-4 w-4"})]})}),(0,r.jsx)(s.hl,{showArrow:!1,children:(0,r.jsx)(E,{placeId:h.placeId})})]})})]})})})}},72602:(e,a,l)=>{a.O=i;let r=l(71744),t=l(54435),n=l(82550);async function i(e,a,l){let i=(0,t.urlFrom)((0,n.getMediaAssetsByIdUrlConfig)({assetId:e,limit:l,language:a})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return await (0,r.handleFetchResponse)(s)}},82550:(e,a,l)=>{var r=l(37811);Object.defineProperty(a,"__esModule",{value:!0}),a.getMediaAssetsByIdUrlConfig=function(e){let{assetId:a,limit:l,language:t}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,assetId:a,language:t,limit:l||void 0}}},a.getMediaAssetsByPlaylistIdUrlConfig=function(e){let{playlistId:a,limit:l,locale:t}=e,n=t?t.split("-").join("_"):"en_US";return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,dsxLocale:n,playlistId:a,...void 0!==l?{limit:l.toString()}:{}}}}},94658:(e,a,l)=>{a.p=void 0;let r=l(71744),t=l(54435),n=l(91236);a.p=async()=>{let e=(0,t.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),a=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(a)}},99290:(e,a,l)=>{l.d(a,{A:()=>s});var r=l(72602),t=l(94658),n=l(99805);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 a,l,s;let d=await (0,t.p)(),c=null==d||null==(a=d.videoLinkLocaleInclude)?void 0:a[e],o=null==c?void 0:c.launchPlaylist;if((null==c?void 0:c.override)&&o){let a=await (0,n.vd)(o,e);return(null==a||null==(s=a[0])?void 0:s.url)||null}let h=i[e];if(!h)return null;let f=await (0,r.O)(h,"1");return(null==f||null==(l=f[0])?void 0:l.url)||null}}}]);