"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6913],{26913:(e,l,a)=>{a.d(l,{default:()=>R});var r=a(7629),s=a(15545),i=a(84870),t=a(50009),n=a(20979),d=a(47251);let c=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Arrow Up"}):a?(0,r.jsx)("title",{id:s,children:a}):null,(0,r.jsx)("path",{d:"M.235 18.833h23.53L12.015 5.167.236 18.833z"})]})}),o=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:c,...e}));o.displayName="TriangleUp";let h=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Arrow down"}):a?(0,r.jsx)("title",{id:s,children:a}):null,(0,r.jsx)("path",{d:"M23.765 5.167H.235l11.75 13.666L23.764 5.167z"})]})}),x=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:h,...e}));x.displayName="TriangleDown";let f=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"External Link"}):a?(0,r.jsx)("title",{id:s,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=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:f,...e}));m.displayName="ExternalLink";let w=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=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":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Video"}):a?(0,r.jsx)("title",{id:s,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"})]})}),j=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:w,...e}));j.displayName="PlaylistVideo";let p=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Calendar"}):a?(0,r.jsx)("title",{id:s,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"})]})}),u=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:p,...e}));u.displayName="Calendar";let b=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Time"}):a?(0,r.jsx)("title",{id:s,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"})]})]})}),v=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:b,...e}));v.displayName="Time";let y=(0,s.forwardRef)((e,l)=>{let{title:a,titleId:s,desc:i,descId:t,...n}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":s,"aria-describedby":t,...n,children:[i?(0,r.jsx)("desc",{id:t,children:i}):null,void 0===a?(0,r.jsx)("title",{id:s,children:"Radar"}):a?(0,r.jsx)("title",{id:s,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"})]})}),g=s.forwardRef((e,l)=>(0,r.jsx)(d.h,{ref:l,icon:y,...e}));g.displayName="Radar";var N=a(35238);function M(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)(i.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 R(e){let{location:l}=e,[a,d]=s.useState(!1),{effectiveLocation:c,isLocationLoading:h}=(0,t.s)({location:l,fallbackOrder:t.i.PREFER_RECENT}),f=!h&&c?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(c.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(c.placeId),mobileIcon:(0,r.jsx)(v,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(c.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Weekend",href:"/weather/weekend/l/".concat(c.placeId)},{name:"Monthly",href:"/weather/monthly/l/".concat(c.placeId)},{name:"Radar",href:"/weather/radar/interactive/l/".concat(c.placeId),mobileIcon:(0,r.jsx)(g,{className:"h-8 w-8"}),isMobile:!0},{name:"Tropics",href:"/storms/hurricane/video/tropics-refresh-your-guide-to-tropical-terminology?adRef=nav",icon:(0,r.jsx)(j,{className:"h-4 w-4"}),mobileIcon:(0,r.jsx)(j,{className:"h-8 w-8"}),isMobile:!0}]:[],m=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:h||!c?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:f.map(e=>(0,r.jsxs)(i.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:[!e.mobileIcon&&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:m})]}),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)(n.AM,{open:a,onOpenChange:d,children:[(0,r.jsx)(n.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"})]}),a?(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)(n.hl,{showArrow:!1,children:(0,r.jsx)(M,{placeId:c.placeId})})]})})]})})})}}}]);