"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8557],{18275:(e,l,a)=>{a.d(l,{default:()=>I});var r=a(66695),t=a(97839),n=a(88504),i=a(79023),s=a(38389),d=a(89010);let c=(0,t.forwardRef)((e,l)=>{let{title:a,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Arrow Up"}):a?(0,r.jsx)("title",{id:t,children:a}):null,(0,r.jsx)("path",{d:"M.235 18.833h23.53L12.015 5.167.236 18.833z"})]})}),o=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:c,...e}));o.displayName="TriangleUp";let h=(0,t.forwardRef)((e,l)=>{let{title:a,titleId:t,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Arrow down"}):a?(0,r.jsx)("title",{id:t,children:a}):null,(0,r.jsx)("path",{d:"M23.765 5.167H.235l11.75 13.666L23.764 5.167z"})]})}),x=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:h,...e}));x.displayName="TriangleDown";let f=(0,t.forwardRef)((e,l)=>{let{title:a,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:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"External Link"}):a?(0,r.jsx)("title",{id:t,children:a}):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"})]})]})}),m=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:f,...e}));m.displayName="ExternalLink";let w=(0,t.forwardRef)((e,l)=>{let{title:a,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:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Video"}):a?(0,r.jsx)("title",{id:t,children:a}):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,l)=>(0,r.jsx)(d.h,{ref:l,icon:w,...e}));v.displayName="PlaylistVideo";let u=(0,t.forwardRef)((e,l)=>{let{title:a,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:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Calendar"}):a?(0,r.jsx)("title",{id:t,children:a}):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"})]})}),j=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:u,...e}));j.displayName="Calendar";let p=(0,t.forwardRef)((e,l)=>{let{title:a,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:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Time"}):a?(0,r.jsx)("title",{id:t,children:a}):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"})]})]})}),b=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:p,...e}));b.displayName="Time";let R=(0,t.forwardRef)((e,l)=>{let{title:a,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:l,"aria-labelledby":t,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===a?(0,r.jsx)("title",{id:t,children:"Radar"}):a?(0,r.jsx)("title",{id:t,children:a}):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"})]})}),y=t.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:R,...e}));y.displayName="Radar";var N=a(64070),E=a(20108),g=a(72711),V=a(38051),C=a(99290),_=a(94658);function T(e){let{placeId:l}=e,a=[{name:"Yesterday's Weather",href:"https://www.wunderground.com/history/daily/".concat(l,"/yesterday"),icon:(0,r.jsx)(m,{className:"h-4 w-4"})},{name:"Allergy Tracker",href:"/forecast/allergy/l/".concat(l)},{name:"Cold & Flu",href:"/forecast/cold-flu/l/".concat(l)},{name:"Air Quality Forecast",href:"/forecast/air-quality/l/".concat(l)}];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:a.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 I(e){var l;let{location:a}=e,[d,c]=t.useState(!1),{effectiveLocation:h,isLocationLoading:f}=(0,i.s)({location:a,fallbackOrder:i.i.PREFER_RECENT}),m=(0,E.md)(g.X),{data:w}=(0,V.Ay)(["navigation/getVideoLink",m],e=>{let[l,a]=e;return(0,C.A)(a)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:u}=(0,V.Ay)(["navigation/getQuickNav",m],()=>(0,_.p)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),p=null==u||null==(l=u.videoLinkLocaleInclude)?void 0:l["en-US"],R=(null==p?void 0:p.override)?"?".concat(null==p?void 0:p.adRef):"",I=!f&&h?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(j,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(b,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(h.placeId),mobileIcon:(0,r.jsx)(j,{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)(y,{className:"h-8 w-8"}),isMobile:!0},{name:"Video",href:"".concat(w).concat(R)||"",icon:(0,r.jsx)(v,{className:"h-4 w-4"}),mobileIcon:(0,r.jsx)(v,{className:"h-8 w-8"}),isMobile:!0}]:[],L=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:f||!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:I.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:L})]}),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)(x,{className:"ml-1 h-4 w-4"})]})}),(0,r.jsx)(s.hl,{showArrow:!1,children:(0,r.jsx)(T,{placeId:h.placeId})})]})})]})})})}},64263:(e,l,a)=>{a.d(l,{j:()=>t,w:()=>n});var r=a(37811);let t=e=>{var l,a,t,n;let i,s=null==(l=null!=(a=r.env.VERCEL_TARGET_ENV)?a:"production")?void 0:l.toLowerCase();r.env.VERCEL_TARGET_ENV,"preview"!==s&&r.env.VERCEL_TARGET_ENV_URL;let d=null!=(t=r.env.VERCEL_URL)?t:"wx-next-b9i1m9q5g.vercel.weather.com",c=null!=(n=r.env.VERCEL_TARGET_ENV_URL)?n:"weather.com",o="true"===r.env.NEXT_DEV_SERVER_INSECURE||"true"===r.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":i="https://".concat(d);break;case"development":i=o?"http://".concat(c):"https://".concat(c);break;default:i="https://".concat(c)}return e?new URL(e,i).toString():i},n=e=>{var l,a;r.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let t=null!=(l=r.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?l:"weather.com",n=null!=(a=r.env.VERCEL_PROJECT_PRODUCTION_URL)?a:"wxnext.weather.com",i="https://".concat(null!=t?t:n);return e?new URL(e,i).toString():i}}}]);