(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4036],{316:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-72x72.1b13d775.png",height:72,width:72,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEUAMplnhcIDNptHa7UxWawAK5U9Y7J3kslWd7spU6kWRKIdSqWZrdbvJZKdAAAACXBIWXMAARlAAAEZQAGA43XUAAAAN0lEQVR4nB3GyQ3AMAwEsVndstN/vQHMFwHjMct8iValGZyagAT/pG4tK58ov9S0RlpuuIf7+QEauQD1QEq+AwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},1194:(e,l,t)=>{"use strict";t.d(l,{default:()=>C});var r=t(62024),a=t(80891),n=t(47107),i=t(26404),s=t(91592);let o=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Video"}):t?(0,r.jsx)("title",{id:a,children:t}):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"})]})}),c=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:o,...e}));c.displayName="PlaylistVideo";let d=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Calendar"}):t?(0,r.jsx)("title",{id:a,children:t}):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=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:d,...e}));u.displayName="Calendar";let h=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Time"}):t?(0,r.jsx)("title",{id:a,children:t}):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"})]})]})}),m=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:h,...e}));m.displayName="Time";let f=(0,i.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Radar"}):t?(0,r.jsx)("title",{id:a,children:t}):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"})]})}),v=i.forwardRef((e,l)=>(0,r.jsx)(s.h,{ref:l,icon:f,...e}));v.displayName="Radar";var x=t(51707),p=t(74743),w=t(19982),g=t(44344),A=t(29145),b=t(17565),y=t(92829),j=t(68434);function C(e){var l;let{location:t}=e,i=(0,y.z)()&&j.A,{effectiveLocation:s,isLocationLoading:o}=(0,n.s)({location:t,fallbackOrder:n.i.PREFER_RECENT}),d=(0,p.md)(w.X),{data:h}=(0,g.Ay)(i?["navigation/getVideoLink",d]:null,e=>{let[l,t]=e;return(0,A.A)(t)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),{data:f}=(0,g.Ay)(i?["navigation/getQuickNav",d]:null,()=>(0,b.p)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3});if(!i)return null;let C=null==f||null==(l=f.videoLinkLocaleInclude)?void 0:l["en-US"],N=(null==C?void 0:C.override)?"?".concat(null==C?void 0:C.adRef):"",E=!o&&s?[{name:"My Dashboard",href:"/mydashboard",isNew:!1},{name:"Today",href:"/weather/today/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Hourly",href:"/weather/hourbyhour/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(m,{className:"h-8 w-8"}),isMobile:!0},{name:"10 Day",href:"/weather/tenday/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(u,{className:"h-8 w-8"}),isMobile:!0},{name:"Weekend",href:"/weather/weekend/l/".concat(s.placeId)},{name:"Monthly",href:"/weather/monthly/l/".concat(s.placeId)},{name:"Radar",href:"/weather/radar/interactive/l/".concat(s.placeId),mobileIcon:(0,r.jsx)(v,{className:"h-8 w-8"}),isMobile:!0},{name:"Video",href:"".concat(h).concat(N)||"",icon:(0,r.jsx)(c,{className:"h-4 w-4"}),mobileIcon:(0,r.jsx)(c,{className:"h-8 w-8"}),isMobile:!0}]:[],R=new Date().getDate();return(0,r.jsx)("nav",{className:"fixed right-0 bottom-0 left-0 z-101 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:o||!s?null:(0,r.jsx)("div",{className:"flex h-15 w-full md:h-10",children:(0,r.jsx)("div",{className:"relative flex w-full flex-wrap items-stretch justify-around overflow-hidden",children:E.map(e=>(0,r.jsxs)(a.default,{href:e.href,className:(0,x.cn)("relative mt-[1px] flex h-[calc(100%-2px)] items-center justify-center gap-[5px] px-[15px] text-xs text-nowrap 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 top-3 left-0 w-full text-center text-xs",children:R})]}),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))})})})})}},2628:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/favicon-16x16.fa33ffac.png",height:16,width:16,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUCM5o8Y7FmhMIvWKxdfr9Lb7cAK5Z2kckYRqMjTaeesdncOZfDAAAACXBIWXMAARlAAAEZQAGA43XUAAAANElEQVR4nEXGxw3AMBDEwE0XpP4LNqCP+RkCf90Pj/huGQMN1FVmZBxVkXXASMkYaxbJ/QAUiwC6gMzB9gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},2858:(e,l,t)=>{"use strict";t.d(l,{G:()=>s});var r=t(62024),a=t(26404),n=t(91592);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"External Link"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{d:"m19.395 3.83-6.82.145c-.423.009-.759-.327-.75-.75s.359-.774.783-.783l8.67-.184a.73.73 0 0 1 .75.75l-.184 8.67c-.009.423-.359.774-.783.783s-.759-.327-.75-.75l.145-6.82-8.625 8.625c-.306.306-.791.316-1.084.023s-.283-.778.023-1.084z"}),(0,r.jsx)("path",{d:"M2.614 7.334h8.966c.857 0 .857 1.348 0 1.348H3.954V20.06h11.657v-5.798c0-.921 1.337-.921 1.337 0v7.143H2.614z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ExternalLink"},3178:(e,l,t)=>{"use strict";t.d(l,{LivePreviewListener:()=>i});var r=t(62024);t(26404);var a=t(83201),n=t(12565);let i=e=>{let l=(0,n.useRouter)();return(0,r.jsx)(a.p,{...e,refresh:l.refresh})}},3418:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-60x60.648d9dc2.png",height:60,width:60,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUBM5ljgsA4YK9EabQrVKpWeLsAKpR4kskXRqKhtNk+qzM6AAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nEXGuRHAMAwDQRAPSfffsEdKtMkd8HTfeIr3VjHQgL5kpgyXImbBOsZYUqT2BxRoALNzyWwDAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},4610:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-120x120.f557f572.png",height:120,width:120,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUAMJgFNppnhcJJbrY3Xq9Wd7spVKk+ZLIZR6Nzj8eTqNOyk1hyAAAACXBIWXMAARlAAAEZQAGA43XUAAAAM0lEQVR4nB2HyREAIBDCENjL/gt21nySADgHy+pXTvhf1wYAXcYlEzmSrEQFyaDRaZWrHxWNANLNCfvsAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},5813:(e,l,t)=>{"use strict";t.d(l,{AdminHeaderWrapper:()=>j});var r=t(62024),a=t(26404),n=t(74906),i=t(17879),s=t(74743),o=t(52421),c=t(68736),d=t(12565),u=t(71842),h=t(32638);let m=(0,u.h)("AtomDebugHydrationBoundaries"),f=e=>{let{debugData:l}=e,{updateSection:t}=(0,h.K)(),r=(0,d.usePathname)();return m.info("Initial props received",{hasDebugData:!!l,currentPath:r}),(0,o.RH)([[c.B,l||{timestamp:new Date().toISOString()}]]),(0,a.useEffect)(()=>{m.lifecycle("Path changed",r);let e=sessionStorage.getItem("lastPath"),a=!e||e===r;m.info("Navigation type",a?"Direct load/refresh":"Client-side navigation"),t("route",r),a&&!l?t("meta",{dataState:"stale",lastConfirmedPath:e||null,currentPath:r,isDirectLoad:!0,timestamp:new Date().toISOString()}):(t("components",{}),l&&(m.info("Updating with new debug data for path",r),l.page&&t("page",l.page),l.match&&t("match",l.match),l.timestamp&&t("timestamp",l.timestamp),l.headers&&t("headers",l.headers),l.environment&&t("environment",l.environment),l.location&&t("location",{...l.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),t("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:a,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",null!=r?r:"")},[r,l,t]),m.lifecycle("Hydration complete",{debugData:l,pathname:r}),null};var v=t(57623);let x=(0,v.createServerReference)("404b3ea83c23dab0ad439a62390843a1c1da26ee2f",v.callServer,void 0,v.findSourceMapURL,"translateDebugDataAction");var p=t(47107);let w=(0,u.h)("LocationCollector"),g=(0,u.h)("DataCollector");function A(e){let{pageProps:l,userRoles:t}=e,r=(0,d.usePathname)(),n=(0,d.useSearchParams)(),{updateSection:i}=(0,h.K)(),s=(0,a.useRef)(!1);!function(){let{updateSection:e}=(0,h.K)(),{effectiveLocation:l,isLocationLoading:t}=(0,p.s)({});(0,a.useEffect)(()=>{l&&!t&&(w.info("Location data updated",l.displayName),e("location",{...l,_observedFrom:"useLocationSource",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[l,t,e])}(),(0,a.useEffect)(()=>{if(t&&t.length>0){let e=Array.isArray(t)?t:[];i("userRoles",e),g.info("DataCollector","User roles updated",e)}},[t,i]);let o=(0,a.useCallback)(async()=>{try{g.info("DataCollector","Collecting data for route:",{path:r,paramsCount:n?Array.from(n.keys()).length:0});let e={};null==n||n.forEach((l,t)=>{e[t]=l}),g.lifecycle("DataCollector","Calling translateDebugDataAction");let t=await x({route:null!=r?r:"",params:e,pageProps:l});t&&(g.info("DataCollector","Debug data received",{route:t.route,hasPage:!!t.page,hasMatch:!!t.match,hasHeaders:!!t.headers,hasEnvironment:!!t.environment}),t.route&&(i("route",t.route),g.info("DataCollector","Route updated",t.route)),t.page&&(i("page",t.page),g.info("DataCollector","Page data updated",{title:t.page.title,id:t.page.id}),i("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:!1,timestamp:new Date().toISOString()})),t.match&&(i("match",t.match),g.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(t.match||{})})),t.headers&&(i("headers",t.headers),g.info("DataCollector","Headers updated",{headerCount:Object.keys(t.headers||{}).length})),t.environment&&(i("environment",t.environment),g.info("DataCollector","Environment data updated",{envVarCount:Object.keys(t.environment||{}).length})),i("timestamp",new Date().toISOString()))}catch(e){g.error("DataCollector","Error collecting debug data:",e),i("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[r,n,l,i]);return(0,a.useEffect)(()=>{g.lifecycle("DataCollector","Setting up data collection for path",r),s.current||(s.current=!0);let e=setTimeout(()=>{o()},200);return()=>{clearTimeout(e),g.lifecycle("DataCollector","Cleanup for path",r)}},[o,r]),null}function b(e){let{children:l,pageProps:t}=e;return(0,r.jsxs)(s.Kq,{children:[(0,r.jsx)(f,{debugData:null}),(0,r.jsx)(A,{pageProps:t}),l]})}let y=(0,n.default)(()=>t.e(2177).then(t.bind(t,22177)).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{webpack:()=>[22177]},ssr:!1,loading:()=>null});function j(e){let{children:l}=e,[t,n]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).has("debug"),l="true"===(0,i.getCookie)("twc-debug-mode");e&&(0,i.setCookie)("twc-debug-mode","true",{maxAge:2592e3}),n(e||l)},[]),!0===t)?(0,r.jsxs)(b,{children:[(0,r.jsx)(y,{}),l]}):(0,r.jsx)(r.Fragment,{children:l})}},6252:(e,l,t)=>{"use strict";t.d(l,{default:()=>d});var r=t(62024);t(26404);var a=t(19982),n=t(51707),i=t(74743);let s=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:"/_next/static/media/focusLogo.d2f298c8.svg"}];var o=t(10436),c=t(80891);let d=e=>{let{classname:l,divider:t}=e,d=(0,i.md)(a.X),{url:u,cobrandIconSrc:h}=s.find(e=>e.locales.includes(d))||{};return u&&h?(0,r.jsxs)("span",{className:"flex",children:[t&&(0,r.jsx)("div",{className:"mx-[15px] h-[27px] border-l-2 border-l-[#2524221A]"}),(0,r.jsx)(c.default,{href:u,target:"_blank",className:(0,n.cn)("relative p-0",l,{"de-DE":"de-DE"===d}),children:(0,r.jsx)(o.A,{className:"h-6 w-auto",src:h,alt:"focus logo",rounded:!1})})]}):null}},6838:(e,l,t)=>{"use strict";t.d(l,{F:()=>s});var r=t(62024),a=t(26404),n=t(91592);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Star"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"m8 3.26 1.38 2.79.23.5.5.075 3.08.445L11 9.22l-.374.365.09.5.525 3.065-2.755-1.445L8 11.5l-.465.245L4.78 13.17l.5-3.065.09-.5L5 9.22 2.79 7.045 5.87 6.6l.5-.075.23-.5zM8 1 5.727 5.61.64 6.345l3.68 3.59L3.45 15 8 12.61 12.55 15l-.87-5.065 3.68-3.585-5.085-.74z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="Star"},7695:(e,l,t)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.getCMSCollectionsUrlConfig=function(e){let{collectionId:l,locale:t="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/collections/".concat(t,"/").concat(l)}},l.getCMSAssetByIDUrlConfig=function(e){let{language:l,assetId:t}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/a/".concat(l,"/").concat(t)}},l.getCMSOrderedCollectionsUrlConfig=function(e){let{collectionId:l,language:t="en_US"}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/ordered-collections/".concat(t,"/").concat(l)}},l.getCMSOrderedListUrlConfig=function(e){let{collectionId:l,language:t,collectionType:r}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/orderedlist/".concat(t,"/").concat(r,"/").concat(l)}},l.getCMSAssetsUrlConfig=function(e){let{language:l="en_US",query:t={},skip:n=0,limit:i=10,sort:s="-publishdate"}=e,o={q:Object.keys(t).reduce((e,l)=>{let r=t[l];return r instanceof Array?[...e,...r.map(e=>a(l,e))]:[...e,a(l,r)]},[]).join(";"),pg:"".concat(n,",").concat(i),format:"json",sort:s},c=(0,r.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(l),search:"?".concat(c)}},l.getCMSAssetsRawQueryUrlConfig=function(e){let{language:l="en_US",query:t="",skip:a=0,limit:n=10,sort:i="-publishdate"}=e,s={q:t,pg:"".concat(a,",").concat(n),format:"json",sort:i},o=(0,r.queryStringToSearchParams)(s).toString();return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/assets/".concat(l),search:"?".concat(o)}},l.getCMSAssetsSlideshowUrlConfig=function(e){let{offset:l=0,assetId:t,limit:r=500}=e;return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/assets/slideshow/".concat(t,"/").concat(l,",").concat(r)}},l.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let r=t(79714);function a(e,l){let t="'".concat(l.$in,"'");return l.$in instanceof Array&&(t=l.$in.map(e=>"'".concat(e,"'")).join(",")),"".concat(e,":$in(").concat(t,")")}},9859:(e,l,t)=>{"use strict";var r=t(37811);Object.defineProperty(l,"__esModule",{value:!0}),l.getMediaAssetsByIdUrlConfig=function(e){let{assetId:l,limit:t,language:a}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,assetId:l,language:a,limit:t||void 0}}},l.getMediaAssetsByPlaylistIdUrlConfig=function(e){let{playlistId:l,limit:t,locale:a}=e,n=a?a.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:l,...void 0!==t?{limit:t.toString()}:{}}}}},10084:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/favicon-32x32.bbf0a733.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEUCNJo9ZLI2Xq8cSaRlg8JMb7hdfb8AK5VwjMYxWa2AmcymuNvf8HwwAAAACXBIWXMAARlAAAEZQAGA43XUAAAANklEQVR4nEXGSQ4AMQwCQTB4S/7/35Fymb5UA3/djz2Od2It0EBe+8ws5EwyhXBV1QQUzCD1ARoaANnqff9JAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},10975:(e,l,t)=>{"use strict";t.d(l,{g:()=>d});var r=t(74743),a=t(84530),n=t(46053),i=t(33526),s=t(25890),o=t(85759),c=t(33561);function d(){let{user:{isUserLoggedIn:e}}=(0,s.J)(),[l,t]=(0,r.fp)(a.JK),[d,u]=(0,r.fp)(i.YA),h=async e=>{try{await n._.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},m=async function(r){let a=!(arguments.length>1)||void 0===arguments[1]||arguments[1];try{let n=(e=>{let r={...l,...e};return t(r),u({...d,...e}),r})(r);if(null==r?void 0:r.unit){let e=(0,o.xP)(r.unit),l=(null==e?void 0:e.code)||"e";l&&(0,c.setCookie)(o.lr,l,{domain:"weather.com"})}return a&&e&&await h(n),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let e=await n._.preference.getPreference();if(!(null==e?void 0:e.userID))return null;return m(e,!1),e}catch(e){return null}},updatePreferences:m}}},12164:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-76x76.e05fe180.png",height:76,width:76,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEUBM5kzW60/ZbNnhcJcfL53kskWRaJMb7gAKpUmUaiGn8+gs9mdmm37AAAACXBIWXMAARlAAAEZQAGA43XUAAAANElEQVR4nEWItw3AMBDELny099/XsBqxIUHgMnPENE+UgsAA/TqezMVaErvAcDhyUVT/5wMU/wDHmTo4nAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},12558:(e,l,t)=>{"use strict";t.d(l,{B:()=>s});var r=t(62024),a=t(26404),n=t(91592);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Star"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8 1 5.727 5.61.64 6.345l3.68 3.59L3.45 15 8 12.61 12.55 15l-.87-5.065 3.68-3.585-5.085-.74z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="StarFilled"},13050:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-114x114.46b335fc.png",height:114,width:114,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAMZgzW61igcBDaLQPP599lstwjMUeSqVNcLilttsQcWCRAAAACXBIWXMAARlAAAEZQAGA43XUAAAAMElEQVR4nDXIxxEAIAzEwAtO9N8wD4NeOwJ+EQ9McY9n4SNVFtHykNNwSVISTZp2XA/JAJeZDGRwAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},15869:(e,l,t)=>{"use strict";t.d(l,{h:()=>u});var r=t(74743),a=t(84300),n=t(17879),i=t(93395),s=t(84530),o=t(18663),c=t(33526),d=t(8177);function u(){let e=(0,r.Xr)(s.UU),l=(0,r.Xr)(s.JK),[,t]=(0,r.fp)(c.lr),{refresh:u}=(0,i.b)();return async()=>{try{return await o._.auth.logout(),(0,a.j)(e=>"string"==typeof e&&e.startsWith("/upsx"),void 0,{revalidate:!1}),e(d.Ut),l(d.Ut),t(null),(0,n.deleteCookie)("twc-user",{domain:".weather.com"}),u({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}},17388:(e,l,t)=>{"use strict";l.vd=i;let r=t(7695),a=t(79714),n=t(4843);async function i(e,l){let t=l?l.split("-").join("_"):"en_US",i=(0,a.urlFrom)((0,r.getCMSOrderedListUrlConfig)({language:t,collectionId:e,collectionType:"video"})),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return(0,n.handleFetchResponse)(s)}},17565:(e,l,t)=>{"use strict";l.p=void 0;let r=t(4843),a=t(79714),n=t(7695);l.p=async()=>{let e=(0,a.urlFrom)((0,n.getCMSQuickNavUrlConfig)()),l=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,r.handleFetchResponse)(l)}},18663:(e,l,t)=>{"use strict";t.d(l,{_:()=>r});let r=new(t(99499)).UPSXClient({baseUrl:"https://upsx.weather.com"})},19389:(e,l,t)=>{"use strict";t.d(l,{FlagsBoundaryClient:()=>o});var r=t(48579);let a=(0,t(63955).eU)();var n=t(24717),i=t(11525),s=t(84530);let o=e=>{let{params:l}=e;return(0,r.u)([[a,l.privacyRegime],[n.u,l.deviceClass],[s.zs,l.userTier],[i.a,l.adsKillswitch]]),null}},20752:(e,l,t)=>{"use strict";t.d(l,{Analytics:()=>N});var r=t(62024),a=t(26404),n=t(99242),i=t(68434);if(i.A){let e=(0,n.kB)();(!e||(0,n.IN)())&&(0,n.Hg)(),(0,n.Wy)(e)}let s=()=>null;var o=t(23504),c=t(74743),d=t(27792),u=t(33526),h=t(78555),m=t(25890),f=t(67318),v=t(23708),x=t(38131),p=t(47107),w=t(12565),g=t(92670),A=t(17457);let b=new Date().getTime(),y=(0,A.s)(()=>{window.scrollY>j&&(j=window.scrollY)},250);i.A&&window.addEventListener("scroll",y);let j=i.A&&window.innerHeight>0?window.innerHeight:0,C=e=>{let{scriptSrc:l}=e;(()=>{let e="us2-fb061d169ced8343850163112c402d41",l=(0,d.G)(),t=(0,a.useRef)(l),{user:{isUserLoggedIn:r,userID:n}}=(0,m.J)(),i=(0,c.md)(h.tX),s=r?n:null,o=r?i:"",f=(0,c.md)(u.pX),v=(e=>{let{hasInvokedMPInit:l,apiKey:t,isUserLoggedIn:r,customerid:a,email:n,other:i}=e;return!l&&t&&i&&(r&&a&&n||!r)})({hasInvokedMPInit:t.current,apiKey:e,isUserLoggedIn:r,customerid:s,email:o,other:f});(0,a.useEffect)(()=>{if(!e)return void console.error("MParticle API key is required");if(v){var l,r;t.current=!0;let a={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:o,customerid:s,other:f}},v1SecureServiceUrl:"mparticle.weather.com/webevents/v1/JS/",v2SecureServiceUrl:"mparticle.weather.com/webevents/v2/JS/",v3SecureServiceUrl:"mparticle.weather.com/webevents/v3/JS/",configUrl:"mparticle.weather.com/tags/JS/v2/",identityUrl:"mparticle.weather.com/identity/v1/",aliasUrl:"mparticle.weather.com/webevents/v1/identity/",dataPlan:{planId:"weather_web",planVersion:2},identityCallback:e=>{if(null==e?void 0:e.getUser()){let l=e.getUser().getMPID();l&&(console.debug("MParticle: Identity callback triggered",l),localStorage.setItem("wxu-web/keyval:mparticleUser",JSON.stringify({value:{mpid:l},updatedAt:Date.now()})))}}};console.debug("Mparticle initialized with config:",a),null==(r=window.mParticle)||null==(l=r.init)||l.call(r,e,a)}},[v,e,!1,s,o,f])})();let{setUserAttributes:t}=(0,f.e)(),s=(()=>{let e=(0,d.G)(),l=(0,x.N)(),[t,r]=(0,a.useState)(!1),i=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>({...l}),[l]);return(0,a.useEffect)(()=>{(0,v.Js)(s)&&!t&&r(!0)},[s,t]),(0,a.useCallback)(async()=>{if((0,n.mj)()&&e&&t&&!i.current)try{var l,r,a,o;null==(o=window.mParticle)||null==(a=o.logEvent)||a.call(o,"session-start",null==(r=window.mParticle)||null==(l=r.EventType)?void 0:l.Other,s),i.current=!0,(0,n.SZ)(),console.debug('MParticle: Event "session-start" tracked - sessionId: '.concat(s.sessionId))}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[e,s,t])})(),A=(()=>{let e=(0,d.G)(),l=(0,w.usePathname)(),t=(0,x.N)(),r=(0,g.A)(),[n,i]=(0,a.useState)(!1),s=(0,a.useRef)(!1),o=(0,a.useMemo)(()=>({author:(null==r?void 0:r.author)||"",contentId:null==r?void 0:r.contentId,publishDate:null==r?void 0:r.publishDate,provider:null==r?void 0:r.provider,collection:null==r?void 0:r.collection,entitlements:null==r?void 0:r.entitlements,createdDate:null==r?void 0:r.createdDate,...t,url:l?(0,v.EY)(l):""}),[t,r,l]);return(0,a.useEffect)(()=>{(0,v.Js)(o)&&!n&&i(!0)},[o,n]),(0,a.useCallback)(async()=>{if((null==o?void 0:o.pageId)==="article"&&e&&n&&!s.current)try{var l,t,r,a;null==(a=window.mParticle)||null==(r=a.logEvent)||r.call(a,"article-viewed",null==(t=window.mParticle)||null==(l=t.EventType)?void 0:l.Other,o),console.debug('MParticle: Event "article-viewed" tracked - '.concat(null==o?void 0:o.pageId)),s.current=!0}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[e,o,n])})(),y=(()=>{let e=(0,d.G)(),l=(0,x.N)(),[t,r]=(0,a.useState)(!1),i=(0,a.useRef)(!1),s=(0,a.useMemo)(()=>({...l}),[l]);return(0,a.useEffect)(()=>{(0,v.Js)(s)&&!t&&r(!0)},[s,t]),(0,a.useCallback)(async()=>{if(e&&t&&!i.current)try{var l,r,a,o;null==(o=window.mParticle)||null==(a=o.logEvent)||a.call(o,"page-viewed",null==(r=window.mParticle)||null==(l=r.EventType)?void 0:l.Other,s),i.current=!0,(0,n.C)(),console.debug('MParticle: Event "page-viewed" tracked - '.concat(s.pageId))}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[e,s,t])})(),C=(()=>{var e,l;let{effectiveLocation:t}=(0,p.s)({}),r=(0,d.G)(),s=(0,x.N)(),[o,c]=(0,a.useState)(!1),u=(0,a.useRef)(!1),h=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{(null==t?void 0:t.geocode)&&(h.current=t.geocode)},[null==t?void 0:t.geocode]);let m=null==t||null==(l=t.geocode)||null==(e=l.split)?void 0:e.call(l,","),f=(null==m?void 0:m[0])?parseFloat(m[0]):void 0,w=(null==m?void 0:m[1])?parseFloat(m[1]):void 0,g=i.A&&(0,n.mj)(),A=(0,a.useMemo)(()=>({...s,latitude:f,longitude:w}),[s,f,w]);return(0,a.useEffect)(()=>{(0,v.Js)(A)&&!o&&c(!0)},[A,o]),(0,a.useCallback)(async()=>{let e=A.latitude,l=A.longitude;if(r&&o&&!u.current&&e&&l&&g)try{var a,n,i,s;null==(s=window.mParticle)||null==(i=s.logEvent)||i.call(s,"location-viewed",null==(n=window.mParticle)||null==(a=n.EventType)?void 0:a.Other,A),u.current=!0,console.debug('MParticle: Event "location-viewed" tracked - '.concat((null==t?void 0:t.displayName)||"Unknown location"))}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[r,A,o,t,g])})();return(()=>{let e=(0,x.N)();(0,a.useEffect)(()=>{let l=()=>{var l,t,r,a,n,i;if(null==(t=window.mParticle)||null==(l=t.isInitialized)?void 0:l.call(t)){let l=(new Date().getTime()-b)/1e3,t=function(){let e=document.documentElement.scrollHeight,l=window.innerHeight;j=j||window.scrollY;let t=e===l?100:Math.round(j/(e-l)*100);return t>100?t=100:t{window.removeEventListener("beforeunload",l),window.removeEventListener("blur",l)}},[e])})(),(0,a.useEffect)(()=>{t()},[t]),(0,a.useEffect)(()=>{s()},[s]),(0,a.useEffect)(()=>{A()},[A]),(0,a.useEffect)(()=>{y()},[y]),(0,a.useEffect)(()=>{C()},[C]),(0,r.jsx)(o.default,{src:l,strategy:"beforeInteractive"})},N=e=>{let{scriptSrc:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{}),(0,r.jsx)(C,{scriptSrc:l})]})}},22852:(e,l,t)=>{"use strict";t.d(l,{default:()=>S});var r=t(62024),a=t(26404),n=t(19196),i=t(47107),s=t(25890),o=t(15869),c=t(51707),d=t(70309),u=t(44344),h=t(29145),m=t(74743),f=t(53517),v=t(19982),x=t(80891),p=t(2858),w=t(25133);let g=e=>{let{url:l,action:t,name:a,isNew:n,isExternal:i,isInGroup:s}=e;if(!l&&!t)return null;let o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"relative flex items-center",children:[a,n&&(0,r.jsx)(w.A,{})]}),i&&(0,r.jsx)(p.G,{size:"sm","data-testid":"external-link-icon"})]}),d=(0,c.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600 py-2.5",s?"px-10":"px-6");return(0,r.jsx)("li",{className:s?"border-b border-[rgba(37,36,34,0.10)]":"",children:l?(0,r.jsx)(x.default,{href:l,className:d,target:i?"_blank":void 0,children:o}):(0,r.jsx)("button",{onClick:t,className:(0,c.cn)(d,"cursor-pointer"),children:o})},a)};var A=t(20848),b=t(79928);let y=e=>{let{isExpanded:l,toggleCategory:t,name:a,links:n}=e;return(0,r.jsxs)("div",{className:"w-full md:mb-6",children:[(0,r.jsxs)("div",{className:(0,c.cn)("flex cursor-pointer items-center justify-between px-6 py-2.5 md:cursor-default"),onClick:t,role:"button",tabIndex:0,"aria-label":"Toggle Menu Category",children:[(0,r.jsx)("h2",{className:(0,c.cn)("text-gray-900 md:font-bold"),children:a}),(0,r.jsx)("span",{"aria-label":l?"Collapse":"Expand",children:l?(0,r.jsx)(A.H,{size:"md",className:"text-black"}):(0,r.jsx)(b.F,{size:"md",className:"text-black"})})]}),(0,r.jsx)("ul",{className:(0,c.cn)("bg-[#ebecee] md:space-y-2",!l&&"hidden"),children:n.map(e=>(0,r.jsx)(g,{...e,isInGroup:!0},e.name))})]},a)},j=(0,a.forwardRef)((e,l)=>{let[t,n]=(0,a.useState)(!1),{effectiveLocation:x}=(0,i.s)({}),{user:{isUserLoggedIn:p}}=(0,s.J)(),w=(0,o.h)(),A=(0,d.X)(w),b=(null==x?void 0:x.placeId)||"",j=(0,m.md)(v.X),{data:C}=(0,u.Ay)(["navigation/getVideoLink",j],e=>{let[l,t]=e;return(0,h.A)(t)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[N,E]=(0,a.useState)({}),R=(0,a.useMemo)(()=>[{name:"Weather Forecasts",links:[{name:"My Dashboard",url:"/mydashboard",isNew:!1},{name:"Today",url:"/weather/today/l/".concat(b)},{name:"Hourly",url:"/weather/hourbyhour/l/".concat(b)},{name:"10 Day",url:"/weather/tenday/l/".concat(b)}]},{name:"Radar & Maps",links:[{name:"Interactive Radar Map",url:"/weather/radar/interactive/l/".concat(b,"?animation=true")},{name:"US Forecast",url:"/maps/currentusweather"},{name:"US Satellite & Radar",url:"/maps/ussatellitemap"},{name:"World Satellite",url:"/maps/satellite/caribbeanweathermap"},{name:"US Severe Alerts",url:"/maps/severealerts"},{name:"US Health",url:"/maps/health/allergies/treepollen"}]},{name:"News & Media",links:[{name:"Top Weather Stories",url:"/news"},{name:"Hurricane Central",url:"/storms/hurricane-central"},{name:"Tornado Central",url:"/storms/tornado-central",isNew:1757808e6>Date.now()},{name:"Safety & Prep",url:"/safety/index"},{name:"Space & Skywatching",url:"/science/space"},...C?[{name:"Videos",url:C}]:[]]},{name:"Products & Account",links:[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0},...p?[{name:"Manage Account",url:"/member/settings"},{name:"Logout",action:A.current}]:[{name:"Create An Account",url:"/signup"},{name:"Sign in",url:"/login"}]]},{name:"Lifestyle",links:[{name:"Atmosphere Reviews",url:"/atmosphere"},{name:"Recipes",url:"/home-garden/recipes"},{name:"Home & Garden",url:"/home-garden"},{name:"Travel & Outdoors",url:"/travel"},{name:"Pets & Animals",url:"/pets"},{name:"Health",url:"/health"},{name:"Allergy Tracker",url:"/forecast/allergy/l/".concat(b)},{name:"Air Quality Index",url:"/forecast/air-quality/l/".concat(b)},{name:"Cold & Flu Tracker",url:"/forecast/cold-flu/l/".concat(b)},{name:"Skin Health",url:"/health/skin-health"}]},{name:"Explore",url:"/snow/ski",isNew:17723196e5>Date.now()}],[p,A,b,C]);return(0,r.jsxs)("nav",{ref:l,className:(0,c.cn)("md:h-unset absolute top-full right-0 left-0 z-40 h-[calc(100vh-56px)] w-full overflow-y-auto bg-white shadow-md md:py-8"),"data-testid":"header-nav-menu",children:[(0,r.jsxs)("div",{className:"relative flex items-center justify-between px-6 pt-4",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Menu"}),(0,r.jsx)(f.default,{inNavigation:!0,onDropdownToggle:n})]}),!t&&(0,r.jsx)("div",{className:"mx-auto flex w-full max-w-7xl flex-col justify-center md:flex-row md:gap-3 md:px-4","data-testid":"header-nav-content",children:R.map((e,l)=>(0,r.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.links?(0,r.jsx)(y,{isExpanded:N[e.name],toggleCategory:()=>(e=>{E(l=>({...l,[e]:!l[e]}))})(e.name),...e}):(0,r.jsx)(g,{...e})},l))})]})});j.displayName="Navigation";var C=t(31620),N=t(91592);let E=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:l,"aria-labelledby":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Hamburger"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M20 16a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 11a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zM20 6a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z"})]})}),R=a.forwardRef((e,l)=>(0,r.jsx)(N.h,{ref:l,icon:E,...e}));function S(){let[e,l]=(0,a.useState)(!1),t=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var l,t;e?null==(l=document.querySelector("html"))||l.classList.add("overflow-hidden"):null==(t=document.querySelector("html"))||t.classList.remove("overflow-hidden")},[e]),(0,a.useEffect)(()=>{function r(r){e&&t.current&&i.current&&!t.current.contains(r.target)&&!i.current.contains(r.target)&&l(!1)}return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.$n,{ref:t,variant:"ghost",size:"icon","aria-label":"Menu",className:"h-10 w-10 shrink-0 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>l(!e),"data-testid":"header-menu-button",children:e?(0,r.jsx)(C.b,{}):(0,r.jsx)(R,{})}),e&&(0,r.jsx)(j,{ref:i})]})}R.displayName="Hamburger"},23284:(e,l,t)=>{"use strict";t.d(l,{default:()=>U});var r=t(62024),a=t(26404),n=t(91592);let i=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Left"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M6.44 12.855a.499.499 0 0 0 .706-.705L3.708 8.707h9.585a.5.5 0 1 0 0-1H3.708l3.438-3.442a.499.499 0 0 0-.706-.705L2.5 7.5a1 1 0 0 0 0 1.415z"})]})}),s=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:i,...e}));s.displayName="ArrowLeft";let o=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,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":a,"aria-describedby":i,...s,children:[n?(0,r.jsx)("desc",{id:i,children:n}):null,void 0===t?(0,r.jsx)("title",{id:a,children:"Arrow Right"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M9.56 3.56a.499.499 0 0 0-.706.705l3.438 3.443H2.707a.5.5 0 0 0 0 1h9.585L8.854 12.15a.499.499 0 0 0 .706.705l3.94-3.94a1 1 0 0 0 0-1.415z"})]})}),c=a.forwardRef((e,l)=>(0,r.jsx)(n.h,{ref:l,icon:o,...e}));c.displayName="ArrowRight";var d=t(25890),u=t(51707),h=t(41460),m=t.n(h),f=t(22192),v=t.n(f),x=t(12558),p=t(6838),w=t(95889),g=t(50972),A=t(93395),b=t(19982),y=t(93117),j=t(47107),C=t(74743),N=t(12565);let E=e=>{let{isFavorite:l,placeId:t,name:a,coordinate:n}=e,{user:i}=(0,d.J)(),{isUserLoggedIn:s}=i,{navigate:o}=(0,A.A)(),c=(e=>{let{effectiveLocation:l}=(0,j.s)({}),t=(null==l?void 0:l.placeId)||"",r=(0,N.usePathname)(),a=(0,C.md)(b.X),n=(0,y.n)({key:"today",interpolationArgs:{locId:e,locale:a}});return r.includes(e)?r.replace(t,e):n})(t),{addFavoriteLocation:u,removeFavoriteLocation:h,removeRecentLocation:m}=(0,g.A)();return(0,r.jsxs)("div",{className:"flex h-full max-w-75 shrink-[0] items-center gap-3 border-r-1 border-[#2524221A] px-3 text-nowrap",children:[(0,r.jsx)(v(),{href:c,children:a}),l?(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>h(t),children:(0,r.jsx)(x.B,{className:"h-[18px] w-[18px] text-[#fdc107]"})}):(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>{s?u({name:a,coordinate:n,placeID:t}):o("/signup")},children:(0,r.jsx)(p.F,{className:"h-[18px] w-[18px]"})}),(0,r.jsx)(R,{onDelete:()=>{h(t),m(t)}})]})};function R(e){let{onDelete:l}=e,t=(0,a.useRef)(null),[n,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e;return n&&(e=e=>{var l;(null==(l=t.current)?void 0:l.contains(e.target))?e.stopPropagation():i(!1)},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[n]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("button",{className:"flex cursor-pointer items-center justify-center",onClick:e=>{e.stopPropagation(),i(!0)},children:(0,r.jsx)(w.C,{className:"h-5 w-5"})}),(0,r.jsx)("button",{ref:t,className:(0,u.cn)("bg-brand-400 invisible absolute -top-full -right-full !m-0 h-10 cursor-pointer rounded-lg border border-[#1b4de4] px-[14px] py-[6px] text-sm font-medium text-nowrap text-white opacity-0 transition-[right,opacity] duration-300 ease-out hover:bg-white hover:text-black",n&&"visible top-1/2 right-[10px] -translate-y-1/2 opacity-100"),onClick:l,children:"Delete"})]})}var S=t(27708),M=t(44344);let P=e=>{let{placeId:l}=e,t=(0,C.md)(b.X),{data:a}=(0,M.Ay)(l?["location-data",l]:null,()=>(0,S.$M)(l,t),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!a)return null;let{city:n,latitude:i,longitude:s}=a.location;return(0,r.jsx)(E,{placeId:l,name:n,coordinate:"".concat(i,",").concat(s)})},U=()=>{let{user:e}=(0,d.J)(),{isUserLoggedIn:l}=e,{favoriteLocations:t,recentLocations:n}=(0,g.A)(),i=l?n:n.slice(0,1);i=i.filter(e=>!t.some(l=>{let{placeID:t}=l;return t===e}));let{effectiveLocation:o}=(0,j.s)({}),[h,f]=(0,a.useState)(0),v=(0,a.useRef)(null),x=(0,a.useRef)(null),p=((e,l)=>{if(!e.current)return 0;let t=Array.from(e.current.children);return 0===t.length?0:t[l].offsetLeft})(v,h),[,w]=(0,a.useState)(0),A=()=>w(e=>e+1);(0,a.useEffect)(()=>(window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)),[]),(0,a.useEffect)(()=>{A(),f(0)},[i.length,t.length]);let b=v.current&&x.current&&x.current.clientWidth+p