(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4036],{7192:e=>{e.exports={leftArrowGradient:"SavedLocationsBar_leftArrowGradient__soBkY",rightArrowGradient:"SavedLocationsBar_rightArrowGradient__gE4Zm"}},10804:(e,l,t)=>{"use strict";l.p=void 0;let r=t(36762),a=t(17681),n=t(94770);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)}},18586:(e,l,t)=>{"use strict";t.d(l,{u:()=>i});var r=t(42292),a=t(75302),n=t(11854);let i=e=>{let l=(0,a.Pj)(),t=(0,a.Xr)((0,r.useMemo)(()=>(0,n.eU)(null,(t,r)=>{for(let[t,a]of e)l.get(t)!==a&&(console.debug("Atom change detected, updating - store value:",l.get(t),"new value:",a),r(t,a))}),[e,l]));(0,r.useEffect)(()=>{t()},[t])}},22395:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>r});let r={src:"/_next/static/media/apple-icon-152x152.7dd6518b.png",height:152,width:152,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAHlBMVEUAMZg6YbBkgsFHbLVTdbocSaQtV6t2kcgMPZ6Sp9OJ9+/PAAAACXBIWXMAARlAAAEZQAGA43XUAAAAMElEQVR4nDXGQQ4AIAgDsI0xwP9/2Gi0pwLfzEt18sZ60YpcHQW3JKbBjKPgokh6AxNmAKXMzsRIAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},24223:(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}},24238:(e,l,t)=>{"use strict";t.d(l,{WxApp:()=>rQ});var r=t(76792),a=t(42292),n=t(41439),i=t(24847),s=t(75302),o=t(34884),c=t(74155),d=t(55198),u=t(23803),h=t(44237);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 x=t(58820);let v=(0,x.createServerReference)("403ca161886a5541eb8a3916efd28c93447488c29b",x.callServer,void 0,x.findSourceMapURL,"translateDebugDataAction");var p=t(81100);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 v({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(211).then(t.bind(t,70211)).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{webpack:()=>[70211]},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})}var C=t(9198),N=t(47421),S=t(53876),R=t(94591),E=t(44615),M=t(83531),U=t(46178);let P="en-US";var B=t(93387);let k=()=>{let{getLocationName:e,getLocationContext:l,getLocationPresentationName:t}=(0,B.p)();return{buildSearchItem:(0,a.useCallback)(r=>({placeId:r.placeId,temperature:0,iconCode:44,geocode:"".concat(r.latitude,",").concat(r.longitude),presentationName:t(r),name:e(r),nameContext:l(r),displayName:r.displayName}),[l,e,t])}};var I=t(70412),T=t(77722),D=t(14725),L=t(83249),V=t(23043),z=t(89170),_=t(28430),H=t(87103),O=t(77976),K=t(23233);let F=(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:"Location"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsxs)("g",{fill:"currentColor",children:[(0,r.jsx)("path",{d:"M8 9a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5m0-4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}),(0,r.jsx)("path",{d:"m8 15-4.218-4.974-.174-.226A5.44 5.44 0 0 1 2.5 6.5a5.5 5.5 0 1 1 11 0 5.44 5.44 0 0 1-1.107 3.299h-.001s-.15.198-.172.225zM4.406 9.198s.117.154.144.187L8 13.454l3.455-4.075.14-.183A4.45 4.45 0 0 0 12.5 6.5a4.5 4.5 0 1 0-9 0 4.45 4.45 0 0 0 .906 2.698"})]})]})}),W=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:F,...e}));W.displayName="Location";var X=t(68751),G=t(93989),Q=t(48260);function J(e){let{open:l,onClick:t,onDismiss:n,onDelete:i}=e,s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;return l&&(e=e=>{var l;(null==(l=s.current)?void 0:l.contains(e.target))?e.stopPropagation():null==n||n()},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[l,n]),(0,r.jsxs)("div",{className:"relative flex items-center",children:[(0,r.jsx)("button",{className:"flex cursor-pointer items-center justify-center p-2",onClick:e=>{e.stopPropagation(),null==t||t()},children:(0,r.jsx)(G.A,{})}),(0,r.jsx)("button",{ref:s,className:(0,Q.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",l&&"visible top-1/2 right-[10px] -translate-y-1/2 opacity-100"),onClick:e=>{e.stopPropagation(),null==i||i(),null==n||n()},children:"Delete"})]})}let Z=(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"})]})}),q=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:Z,...e}));q.displayName="StarFilled";let Y=(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"})]})}),$=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:Y,...e}));function ee(e){let{isFavorite:l,onClick:t}=e,a=(0,N.c3)("Header");return(0,r.jsxs)("div",{className:"group/favorite relative",children:[(0,r.jsx)("span",{className:(0,Q.cn)("bg-brand-400 absolute hidden -translate-x-full items-center text-xs text-nowrap capitalize group-hover/favorite:inline-flex","top-0 bottom-0 pl-1"),children:a(l?"removeLocation":"saveLocation")}),(0,r.jsx)("button",{onClick:t,className:"flex cursor-pointer items-center justify-center p-2",children:l?(0,r.jsx)(q,{className:"size-6 text-[#fdc107]",title:"Favorite"}):(0,r.jsx)($,{className:"size-6 group-hover:text-white hover:text-[#fdc107]",title:"Favorite"})})]})}$.displayName="Star";var el=t(86942),et=t(11340),er=t(32035),ea=t(71666),en=t(55406);let ei=()=>{let e=(0,d.useParams)();return(null==e?void 0:e.locale)||"en-US"};function es(e){var l,t;let{search:a}=e,n=(0,s.md)(er.Yt),i=null==(l=(0,ea.xP)(n))?void 0:l.code,o=ei(),{data:c}=(0,E.Ay)(a.geocode?["currentConditions",a.geocode,i]:null,async e=>{let[,l,t]=e;return l?(0,el.z)({geocode:l,units:t,language:o}):null},{revalidateIfStale:!0,revalidateOnFocus:!0,dedupingInterval:3e5}),d=null!=(t=null==c?void 0:c.iconCode)?t:a.iconCode,u=c?c.temperature:a.temperature;return(0,r.jsxs)("div",{className:"flex items-center gap-1","data-testid":"location-search-weather",children:[(0,r.jsx)("div",{className:"flex items-center justify-center text-gray-400",children:(0,r.jsx)(et.WxIcon,{iconCode:d,className:"lightBG",iconTheme:"lightBG",size:"md"})}),(0,r.jsx)("div",{className:"text-l text-black group-hover:text-white",children:(0,r.jsx)(en.B,{value:u})})]})}function eo(e){let{placeId:l,locationData:t,onSelect:n,showMoreButton:i,onToggleSave:s,onClickMore:o,onDismissMore:c,openMore:d,onRemove:u,disabledFavorites:h,isFavorite:m,showWeather:f}=e,x=ei(),{buildSearchItem:v}=k(),p=((e,l)=>{let{data:t}=(0,E.Ay)(e?["location-data",e,l]:null,e=>{let[l,t,r]=e;return(0,H.$M)(t,r)},{revalidateOnFocus:!1,dedupingInterval:3e5});return null==t?void 0:t.location})((null==t?void 0:t.nameContext)?null:l,x),w=(0,a.useMemo)(()=>t||(p?v(p):null),[v,p,t]);return w?(0,r.jsxs)("div",{className:"hover:bg-brand-400 group flex flex-1 items-center hover:text-white",children:[(0,r.jsxs)("div",{className:"flex flex-1 cursor-pointer items-center gap-4 py-2 pl-1",onClick:()=>{null==n||n(w)},children:[f?(0,r.jsx)(es,{search:w}):(0,r.jsx)(W,{className:"size-4 text-current"}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)(X.Ay,{variant:"Body.M",className:"group:text-blue-500 text-nowrap group-hover:text-white",children:w.name}),(0,r.jsx)(X.Ay,{variant:"Body.S",color:"secondary",className:"text-nowrap group-hover:text-white",children:w.nameContext})]})]}),!h&&(0,r.jsx)(ee,{isFavorite:m,onClick:()=>null==s?void 0:s(w)}),i&&o&&c&&u&&(0,r.jsx)(J,{open:d,onClick:()=>o(l),onDismiss:c,onDelete:()=>u(l)})]}):null}function ec(e){let{location:l,onSelect:t,onRemove:a,onDismissMore:n,openMore:i,showMoreButton:s,onClickMore:o,onToggleSave:c}=e,{attributes:d,listeners:u,setNodeRef:h,transform:m,transition:f,isDragging:x}=(0,L.gl)({id:l.placeID||""}),v={transform:O.Ks.Transform.toString(m),transition:f,opacity:x?.5:1,zIndex:x?10:1};return(0,r.jsx)("div",{ref:h,style:v,className:"flex flex-1 items-center ".concat(x?"bg-gray-50 shadow-lg":""),children:(0,r.jsx)("div",{className:"flex flex-1",...d,...u,children:(0,r.jsx)(eo,{placeId:l.placeID,disabledFavorites:!1,showMoreButton:null!=s&&s,onSelect:t,openMore:i,onClickMore:o,onDismissMore:n,onRemove:a,onToggleSave:c,showWeather:!0,isFavorite:!0})})})}let ed=e=>{let{key:l,includeEnUsLocale:t=!1,interpolationArgs:r}=e,a=(0,N.c3)("Urls"),n=l&&a(l,r)||"";return t?n:n.replace("/en-US/","/")};function eu(e){let{title:l,onClearAll:t,testId:a}=e,n=(0,N.c3)("Header");return(0,r.jsxs)("div",{className:"flex items-center justify-between py-4","data-testid":a,children:[(0,r.jsx)(X.Ay,{elementType:"h2",variant:"Body.S.Bold",children:l}),t&&(0,r.jsx)("button",{onClick:t,className:"cursor-pointer text-sm font-medium",children:n("clear")})]})}function eh(e){let{searches:l,searching:t,onSelectSearch:n,showFavorites:i=!0,recentLocations:o=[],onClearRecentLocations:c,onRemoveRecentSearchLocation:d}=e,u=(0,N.c3)("Header"),{user:h}=(0,z.J)(),{isUserLoggedIn:m}=h,{updatePreferences:f}=(0,_.g)(),{openMore:x,dismissMore:v,isOpen:p}=function(){let[e,l]=(0,a.useState)(null);return{openMore:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";l(t?"".concat(t,"-").concat(e):e)},dismissMore:()=>{l(null)},isOpen:function(l){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e===(t?"".concat(t,"-").concat(l):l)}}}(),{navigate:w}=(0,S.A)(),g=ed({key:"memberSignup",interpolationArgs:{locale:ei()}}),A=(0,s.md)(V.nU),b=(0,a.useMemo)(()=>m&&(null==A?void 0:A.map(e=>({...e,geocode:e.coordinate,placeId:e.placeID})).sort((e,l)=>(e.position||0)-(l.position||0)))||[],[m,A]),y=(0,a.useMemo)(()=>o.filter(e=>!b.some(l=>l.placeID===e)),[o,b]),j=(0,D.FR)((0,D.MS)(D.AN,{activationConstraint:{distance:8}}),(0,D.MS)(D.uN,{coordinateGetter:L.JR})),C=async e=>{if(!m)return void w(g);if(b.some(l=>l.placeID===e.placeId))f({locations:b.filter(l=>l.placeID!==e.placeId)});else{let l=e.geocode,t=e.displayName||"";if(!l&&e.placeId)try{let r=await (0,H.$M)(e.placeId,"en-US");(null==r?void 0:r.location)&&(l="".concat(r.location.latitude,",").concat(r.location.longitude),t=r.location.displayName)}catch(e){console.error("Failed to fetch location data for favoriting:",e)}if(l){let r={placeID:e.placeId,coordinate:l,name:t,position:b.length+1};f({locations:[...b,r]})}else console.debug("Unable to get geocode for location:",e.name||e.placeId)}},R=e=>{f({locations:b.filter(l=>l.placeID!==e)})};return(0,r.jsx)("div",{"data-testid":"location-search-results-dropdown",className:"overflow-x-hidden",children:t?(0,r.jsx)(X.Ay,{children:u("loadingResults")}):i&&0===o.length&&0===b.length?(0,r.jsx)("div",{className:"p-6 text-center text-gray-500","data-testid":"location-search-empty-message",children:u("noRecentLocations")}):i?(0,r.jsxs)(r.Fragment,{children:[b.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{title:u("favoritesTitle"),testId:"location-search-favorites-header"}),(0,r.jsx)(D.Mp,{sensors:j,collisionDetection:D.fp,onDragEnd:e=>{let{active:l,over:t}=e;if(t&&l.id!==t.id){let e=b.findIndex(e=>e.placeID===l.id),r=b.findIndex(e=>e.placeID===t.id);f({locations:(0,L.be)([...b],e,r)})}},children:(0,r.jsx)(L.gB,{items:b.map(e=>e.placeID||""),children:(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-favorites-list",children:b.map(e=>(0,r.jsx)(ec,{location:e,onToggleSave:C,onSelect:n,onRemove:R,openMore:p(e.placeID||"","favorites"),onClickMore:e=>x(e,"favorites"),onDismissMore:v,showMoreButton:!0},e.placeID))})})})]}),y.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{title:u("recentLocationsTitle"),onClearAll:c,testId:"location-search-recent-header"}),(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-recent-list",children:y.map(e=>(0,r.jsx)(eo,{placeId:e,showMoreButton:o.length>1,onSelect:n,onToggleSave:C,onDismissMore:v,onClickMore:e=>x(e,"recents"),openMore:p(e,"recents"),onRemove:d},e))})]})]}):0===l.length?(0,r.jsx)(X.Ay,{children:u("noResults")}):(0,r.jsx)("div",{className:"flex flex-1 flex-col divide-y","data-testid":"location-search-results-list",children:l.map(e=>{let l=b.some(l=>l.placeID===e.placeId);return(0,r.jsx)(eo,{placeId:e.placeId,locationData:e,onSelect:n,onToggleSave:C,isFavorite:l},e.placeId)})})})}let em=(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:"Search"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"m14.5 13.793-3.776-3.776a5.509 5.509 0 1 0-.707.707l3.776 3.776zM2 6.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0"})]})}),ef=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:em,...e}));ef.displayName="Search";var ex=t(27370);let ev=(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:"Chevron Left"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M5.586 8.586a.667.667 0 0 1 0-.943l4.178-4.179a.495.495 0 0 1 .7.7l-3.95 3.95 3.95 3.95a.495.495 0 1 1-.7.7z"})]})}),ep=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:ev,...e}));ep.displayName="ChevronLeft";var ew=t(11181);let eg=(0,a.memo)(e=>{let{recentLocationsLength:l}=e,t=(0,N.c3)("Header"),{navigate:a}=(0,S.A)(),n=ei(),i=((0,I.z)(),ed({key:"memberSignup",interpolationArgs:{locale:n}})),{user:{isUserLoggedIn:s}}=(0,z.J)();return s||l{a(i)},children:[(0,r.jsxs)("div",{className:"items-center justify-between",children:[(0,r.jsx)(X.EY,{variant:"Body.M.Bold",children:t("upsellTitle".concat(l>=4?"2":"1"))}),(0,r.jsx)(X.EY,{variant:"Body.S",children:t("upsellSubtitle".concat(l>=4?"2":"1"))})]}),(0,r.jsx)(ew.A,{className:"size-5"})]})});var eA=t(1843);function eb(e){var l;let{className:t,searchContainerRef:a,searchInputRef:n,searchQuery:i,placeholderText:s,searchOpen:o,isMobile:c,canSearch:d,showFavorites:u,searching:h,recentSearches:m,recentLocations:f,setSearchQuery:x,onSearchOpen:v,onSelectSearch:p,onClearRecentLocations:w,onRemoveRecentSearchLocation:g}=e;return(0,r.jsxs)("div",{ref:a,className:(0,Q.cn)("mx-auto w-full md:max-w-104",o&&"z-50",c&&o&&"fixed top-0 right-0 bottom-0 left-0 h-full bg-white"),"data-testid":"header-search",children:[eA.A&&c&&(0,r.jsx)("div",{className:"flex w-full justify-end",children:(0,r.jsx)(ex.$n,{variant:"ghostUI",className:(0,Q.cn)("twcSearchTrigger m-0 p-1",o&&"hidden"),onClick:()=>v(!0),children:(0,r.jsx)(ef,{className:"h-5 w-5 text-gray-900"})})}),(0,r.jsxs)("div",{className:(0,Q.cn)("relative m-auto w-full md:flex md:flex-1",!o&&"max-md:hidden",t),children:[(0,r.jsxs)("div",{className:"flex w-full items-center gap-2 border-b-1 border-gray-900/10 px-3 py-2 md:border-none md:p-0",children:[o&&(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(ex.$n,{variant:"ghostUI",className:"m-0 p-2",onClick:()=>v(!1),children:(0,r.jsx)(ep,{className:"size-6"})})}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)(T.p,{ref:n,value:i,placeholder:s,onChange:e=>x(e.target.value),onClick:()=>v(!0),className:(0,Q.cn)("h-10 w-full cursor-pointer rounded-sm border-none !bg-gray-100 text-[1rem] overflow-ellipsis text-gray-900 transition-colors focus-visible:ring-2 focus-visible:ring-white md:h-12 md:cursor-auto md:rounded-lg md:text-[1rem]","px-4 py-[5px] max-md:pl-9 md:pr-10","placeholder:placeholder-opacity-100 placeholder:text-gray-600 placeholder:transition-all focus:placeholder:opacity-0")}),(0,r.jsx)("div",{className:"absolute top-1/2 flex -translate-y-1/2 transform items-center max-md:left-3 md:right-3",children:(0,r.jsx)(ef,{className:"size-4 text-gray-900 md:size-5"})})]})]}),o&&(d||u)&&(0,r.jsxs)("div",{className:(0,Q.cn)("relative mt-1 w-full overflow-y-auto rounded-md bg-white px-3 pb-2.5 text-gray-800 shadow-lg md:mx-auto md:mt-2 md:max-w-md","md:absolute md:top-full md:z-80 md:max-h-130"),children:[(0,r.jsx)(eh,{searches:m,searching:h,showFavorites:u,recentLocations:f,onClearAll:()=>{x("")},onSelectSearch:p,onClearRecentLocations:w,onRemoveRecentSearchLocation:g}),u&&(0,r.jsx)(eg,{recentLocationsLength:null!=(l=null==f?void 0:f.length)?l:0})]})]})]})}function ey(e){let{locale:l,className:t}=e,{navigate:n}=(0,S.b)(),[i,o]=(0,a.useState)(""),c=(0,U.d)(i,200),[d,u]=(0,a.useState)(!1),h=(0,I.z)(),[m,f]=(0,s.fp)(M.I6),x=(0,a.useRef)(null),v=(0,a.useRef)(null),p=(0,N.c3)("Header")("searchPlaceholderText"),w=c.length>=3,g=!c,{data:A,isLoading:b}=(0,E.Ay)(w?["locations",c,"city,locality,neighborhood,postal,airport",l]:null,e=>{let[l,t,r,a]=e;return(0,R.$$)(t,r,a)},{revalidateOnFocus:!1,dedupingInterval:2e3}),{buildSearchItem:y}=k(),j=(0,a.useMemo)(()=>A?A.map(e=>y(e)):[],[y,A]);(0,a.useEffect)(()=>{function e(e){x.current&&!x.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.useEffect)(()=>{var e;document.body.style.overflow=h&&d?"hidden":"",h&&d&&(null==(e=v.current)||e.focus())},[h,d]);let C=(0,a.useCallback)(()=>{f([])},[f]),B=(0,a.useCallback)(e=>{u(!1),e.placeId&&e.geocode&&f(l=>{let t=(null==l?void 0:l.filter(l=>l!==e.placeId))||[];return[e.placeId,...t].slice(0,5)}),e.placeId&&n("".concat(l===P?"":"/"+l,"/weather/today/l/").concat(e.placeId))},[n,l,f]),T=(0,a.useCallback)(e=>{f(l=>null==l?void 0:l.filter(l=>l!==e))},[f]);return(0,r.jsx)(eb,{className:t,searchContainerRef:x,searchInputRef:v,searchQuery:i,placeholderText:p,searchOpen:d,isMobile:h,canSearch:w,showFavorites:g,searching:b,recentSearches:j,recentLocations:m,setSearchQuery:o,onSearchOpen:u,onSelectSearch:B,onClearRecentLocations:C,onRemoveRecentSearchLocation:T})}var ej=t(82600),eC=t(33845),eN=t(73923),eS=t(20156);function eR(){let e=(0,s.Xr)(eC.UU),l=(0,s.Xr)(eC.JK),[,t]=(0,s.fp)(M.lr),{refresh:r}=(0,S.b)();return async()=>{try{return await eN._.auth.logout(),(0,ej.j)(e=>"string"==typeof e&&e.startsWith("/upsx"),void 0,{revalidate:!1}),e(eS.Ut),l(eS.Ut),t(null),(0,i.deleteCookie)("twc-user",{domain:".weather.com"}),r({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}let eE=(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"})]})}),eM=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:eE,...e}));eM.displayName="ExternalLink";var eU=t(14999),eP=t(745),eB=t(55680),ek=t(29520),eI=t(10804),eT=t(66163);let eD={"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"},eL=async e=>{var l,t,r;let a=await (0,eI.p)(),n=null==a||null==(l=a.videoLinkLocaleInclude)?void 0:l[e],i=null==n?void 0:n.launchPlaylist;if((null==n?void 0:n.override)&&i){let l=await (0,eT.vd)(i,e);return(null==l||null==(r=l[0])?void 0:r.url)||null}let s=eD[e];if(!s)return null;let o=await (0,ek.O)(s,"1");return(null==o||null==(t=o[0])?void 0:t.url)||null},eV=(0,a.forwardRef)((e,l)=>{let{title:t,titleId:a,desc:n,descId:i,...s}=e;return(0,r.jsxs)("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:"Globe"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{d:"M14.227 8.016h-.141c-.047-.023-.352.305-.352.305s-.234.094-.258.141c0 .047-.07 0-.023.07.023.07.164.023.234-.07.094-.07.258-.117.328-.164.07-.07.094-.047.234-.117.141-.047.234-.07.188-.141-.023-.023-.07-.023-.117-.023h-.117zm-1.243-.375c-.117 0-.258.047-.328.164-.047.117 0 .305-.023.398s-.047.305.07.328c.141.023.141-.188.117-.234s-.023-.281.047-.328c.047-.047.117-.164.258-.164.141-.023.258.094.234.211s.023.234.07.234.211-.094.164-.164.047-.352.047-.258.117.164.188.141-.07-.258-.164-.258c-.094-.023-.281-.023-.328 0-.023 0-.094 0-.164-.023s-.141-.023-.188-.023h-.023zm-.679-.305c-.164.07-.234.047-.234.141 0 .07.141.07.211.047a.7.7 0 0 1 .258-.07c.047-.023.023.07.141.07s.281.047.305.023.164-.164.047-.188c-.094-.023-.234-.117-.328-.188-.023-.023-.023-.023-.047-.023-.094 0-.234.141-.398.188zM6.68 7.242c.07.047.211.047.211.117s.047.234.117.211.07-.164.023-.211-.258-.211-.305-.211-.117-.07-.164-.094h-.023c-.07 0 .07.164.117.211zM2.953 5.555c-.141.094-.211.047-.281.117s-.281.141-.211-.023.07-.188-.047-.141-.141.141-.141.211-.188.164-.188.164.164.023.234 0 .023.141-.047.188-.164.141-.281.117-.117-.117-.188-.141c-.047 0-.094.023-.188.07A11.9 11.9 0 0 0 .045 12c0 6.563 5.344 11.93 11.93 11.906.984 0 1.945-.141 2.859-.375a.174.174 0 0 1-.117-.211c.047-.141-.07-.141-.141-.211-.07-.094.094-.141.07-.188s-.141-.023-.164-.117.094-.258.117-.281c0-.047-.094-.141-.117-.188 0-.047.047-.117.164-.234.094-.094.164-.234.164-.281s-.07-.164-.07-.281c0-.094.07-.141.094-.305 0-.141-.094-.117-.094-.211 0-.117.141-.07.117-.211-.023-.117.07-.211.117-.281s.07-.211.141-.305c.047-.094-.047-.305-.047-.352s.164-.094.094-.188c-.094-.07.023-.141.117-.211.07-.07-.023-.258.047-.516.047-.234.07-.656.07-.703s0-.211-.047-.305c-.07-.117-.141-.188-.234-.234s-.211-.164-.281-.188c-.07 0-.398-.117-.398-.328 0-.188-.234-.328-.258-.469s-.211-.422-.234-.563c0-.117-.305-.164-.328-.328-.047-.164.141-.258.164-.352s-.094-.305-.117-.375c0-.047.211-.258.281-.305s.141-.211.188-.211.047-.141.094-.305c.047-.141-.023-.352-.07-.375s-.094-.188-.141-.258c-.07-.047-.188-.023-.188-.023s.023.141-.094.188c-.141.047-.164-.023-.188-.047-.047-.047-.188-.047-.258-.117s-.164-.164-.258-.188c-.07-.047-.211-.07-.188-.234 0-.164-.164-.258-.234-.281-.047-.023-.164-.094-.234-.047-.047.023-.094 0-.141-.023s-.094-.047-.141-.047c-.094 0-.281-.164-.352-.234s-.117-.164-.234-.164-.141.047-.211.141c-.094.094-.211-.07-.234-.117-.047-.047-.141-.047-.281-.047-.164 0-.258-.211-.305-.234l-.516-.258c-.094-.047-.188-.258-.141-.305s-.07-.234-.07-.234-.188-.211-.258-.211-.281-.375-.398-.492-.398-.352-.445-.469-.07-.305-.188-.211c-.141.094-.023.188.117.305s.117.211.305.352.117.305.188.352c.07.07.352.234.234.328-.117.117-.234-.141-.305-.141-.047-.023-.164-.047-.164-.117.023-.07-.094-.141-.188-.258s-.141-.047-.258-.047 0-.141.047-.211c.07-.07-.07-.164-.141-.188s-.188-.328-.305-.516-.188-.281-.305-.258-.164-.141-.258-.188c-.07-.047-.211-.305-.328-.445-.141-.141-.258-.398-.234-.539s.047-.516.047-.609-.07-.328-.07-.352c0-.047-.07-.117-.117-.117-.047-.023-.211-.211-.328-.211s-.188-.141-.164-.234c.047-.094-.117-.258-.164-.258-.07 0-.164-.164-.211-.258s-.141-.094-.117-.047 0 .141.047.164c.07.023.117.234.07.281-.047.023-.188-.094-.305-.141-.141-.07-.07-.328-.07-.398s-.188-.141-.281-.141c-.07 0-.164.023-.164-.164 0-.164-.258-.258-.328-.258-.094 0-.516-.164-.656-.164s-.375-.117-.445-.07-.234-.094-.305-.094-.07.047-.234.141zm11.203 6.703c.117-.023.211.188.047.211h-.023c-.117 0-.141-.211-.023-.234zm1.782-.141c.117-.023.211.164.047.211h-.023c-.117 0-.141-.211-.023-.234zm-.774.164c-.07-.047-.117-.094-.234-.094-.07 0-.234-.023-.234-.023s.234-.211.328-.211c.094-.023.211-.047.305-.023.117.023.281.094.281.281-.023.164-.094.023-.141.023-.023 0-.141.07-.234.07h-.047zm-2.062-.773s.328-.094.398-.094.281 0 .398.094.305.211.398.188.258.141.234.188-.234.047-.305-.023c-.07-.047-.305-.164-.375-.234-.047-.07-.352-.047-.492-.047h-.164c-.07 0-.141-.023-.117-.094zm1.007-.375c.117-.023.211.117.047.141h-.023c-.117 0-.141-.117-.023-.141zm-.375-5.86c.117-.047.164.07.094.117h-.047c-.094 0-.164-.07-.047-.117m-.515-.093c.094-.094.234 0 .188.047 0 .023-.023.023-.07.023-.07 0-.164-.047-.141-.07zm-2.578-1.711c.07-.023.305-.047.352 0 .07.047.117.234.07.258-.047 0-.023.07-.188.164-.164.07-.211-.164-.234-.211 0-.023-.07-.023-.141 0-.047 0-.094.023-.141.023-.094 0-.141-.141-.07-.188.047-.047.141-.023.211-.023h.141zm.656.094c-.023-.07.258-.188.328-.211s.141.047.234.07c.094 0 .07.141 0 .164-.07 0-.258.023-.375.047h-.047c-.094 0-.141-.047-.141-.047zm-.024-.375c.047-.117.281-.07.305.047.023.047-.047.07-.094.07-.094 0-.234-.047-.211-.094zm-.539-.211c.164-.023.234.07.234.117s-.117.188-.234.164h-.07c-.047 0-.047 0-.094-.07-.047-.094-.328-.047-.375-.047s-.094.164-.164.188-.117-.07-.07-.07c.023-.023-.047-.211.023-.258.047-.047.281-.047.469-.023zm-3.468-.071c.047 0 .398-.117.586-.141s.258.07.281.117.445.07.445.07.211.117.234.141c.047.023.141 0 .188-.047s.07-.117.211-.141.141.117.234.141c.07.023.117 0 .188-.047.094-.047.141.047.141.047s-.047.164-.047.234c0 .047-.094.07-.117.117s-.305 0-.422-.023c-.094-.023-.328-.023-.398 0s-.258.023-.328 0-.07-.141-.141-.188c-.047-.047-.188.07-.258.094s-.188-.117-.164-.188c0-.07-.258-.023-.305 0s-.234.023-.352.023-.211 0-.188-.047c.023-.07.117-.07.188-.07s-.047-.117 0-.117zm4.922.399s-.258-.07-.305-.164c-.07-.094-.305-.094-.422-.141s-.281-.117-.375-.164-.047-.188-.047-.164.188.07.305.094c.234.047.211.047.305.07s.281.164.375.211c.07.047.164.117.258.117h1.102c.07 0 .422.07.398.094s-.047.094-.211.094-.469-.023-.68-.047-.398.023-.398.023l-.281-.023zm-3.61-.586c.164-.047.305-.164.422-.164s.047.188.047.234c.023.047-.117.07-.188.047-.047-.047-.234.023-.305.023s-.094-.094 0-.141zm1.195-.117c.023-.117.141-.094.258-.117.117 0 .281 0 .422.047.164.047.141.047.211.117s.094.188.023.188-.117-.023-.258-.047c-.117-.023-.094-.047-.117-.094s-.258 0-.352 0-.188-.047-.188-.117zM3.234 3.961c.188.023.469.023.516.023s.328.094.492.047.258.023.305.047.07.023.141.094.141.023.234-.047c.094-.047.07-.117.07-.117l.094-.023c.07-.023.141.023.352.047.234.023.164-.047.328-.094a.5.5 0 0 1 .258.023c.047.023.094.047.117.023.047-.023.117-.117.164-.07s.117.164.117.164.164-.141.211-.141.211.047.305.047c.094-.023.445-.023.539.047.07.07.281.047.398.117s.211-.047.164-.07-.188-.141-.188-.141-.211-.234-.234-.281-.07-.047-.117.07-.258.117-.492.117-.07-.117-.328-.117c-.258-.023-.164-.117-.07-.117.07 0 .141-.164.164-.258s.117-.07.305-.07h.422c.094.023.141 0 .188-.023s.094-.047.188-.023c.188.023.094.047.188.117.117.07.164.047.328.117.141.07.094.07.164.07.07.023.281-.023.422-.047s.234-.023.305.047.047.164.141.234-.047-.234-.047-.352.188-.023.305-.023.258-.047.281.023c.023.047-.188.141-.07.258s.211.164.305.164.352.023.234.164-.398.141-.492.141-.258.047-.211.141c.047.07.258.047.398.047s.609.047.727 0 .094-.188-.047-.234-.023-.117.117-.094c.07.023.117 0 .164 0s.094-.023.07 0c-.023.047.023.141.023.234q0 .175.141.141c.141-.034.117-.047.211-.047.094-.023.047-.234-.023-.352-.047-.117-.094-.188-.07-.258 0-.07.164-.07.234-.023.07.07.188.211.188.211s.164.094.211.211.07.07.188.023c.117-.07.141-.047.234.023s.023.211.023.234c0 .047.117 0 .141-.07 0-.094.141-.094.188-.117.07-.023.07-.188.07-.188s-.164-.047-.352-.023c-.164.023-.234-.023-.375-.117s-.047-.164-.117-.258.211-.141.398-.234c.164-.07.328-.023.305.164-.023.211-.047.164.141.141.164-.047-.047-.211.07-.234a3 3 0 0 1 .398-.047c.094.023.516-.047.633-.047s.281.094.398.164c.141.07.469.164.539.211.094.047.633.117.703.141.047.023.047.188.117.328.047.141.188.047.258.047.047 0 .234.094.281.164s.445.117.445.117-.117.117-.141.164c-.047.047-.164.07-.211.117-.094.047-.164-.023-.281-.07-.094-.07-.281-.117-.328-.094s0 .07.023.117c.047.047.211.094.328.188.141.07.094.164.117.258 0 .117-.094-.047-.234-.07s-.141.117-.141.117-.164-.023-.234-.023c-.094 0 0 0-.164-.117-.07-.07-.117-.023-.141 0s-.023.047-.07.023c-.094-.047-.164-.141-.188-.117s-.07-.023-.117-.047-.094-.07-.141-.047h-.211c-.117 0-.234-.023-.281 0-.07.023-.141.023-.211.047-.094.023-.094-.188-.07-.258.047-.07.141-.07.328-.047.164.047.188 0 .234-.07s.07-.141.258-.188 0-.094-.07-.117c-.047-.023-.117-.07-.164 0s-.141.164-.141.164-.094 0-.258-.023-.047-.07.023-.094c.047-.023.141-.188.07-.234s-.094-.07-.211-.047-.047-.094-.117-.141c-.094-.047-.047.023-.047.07s-.117.047-.117.047-.188-.023-.258 0-.188.07-.141.117.164.047.211.164-.164.141-.211.164c-.047 0-.188.07-.188.07s-.164-.047-.305-.047-.164.023-.141.07.094.023.141.023.047.07.141.047c.117-.023.094-.07.211.047s.211.094.398.188-.023.211-.117.211-.094-.07-.141-.164c-.07-.07-.281.023-.281.023s-.188.094-.281.094-.164-.023-.047-.117-.141-.094-.141-.234-.047.141-.047.211c0 .047-.047.047-.117.023h-.211c-.234.023-.188.117-.492.305-.281.188-.352.234-.328.398s.094.117.211.164c.117.023.07.234.188.211.094-.023.164-.07.352.023s.281.117.516.164.375.117.492.07c.141-.023.188 0 .188.117 0 .094.094.117.07.234 0 .117.141-.117.141-.117s.07.211.023.234c-.07.023.023.141.07.141h.07c.047 0 .117.023.164-.023.07-.07-.047-.258-.047-.352 0-.07-.07-.117-.117-.211-.047-.07.094-.094.164-.023.047.07.141.023.234-.047s.094-.188.094-.188-.164-.211-.281-.258-.047-.07.07-.094 0-.07.023-.211c.047-.141.047-.234.117-.234.047 0 .305-.047.492-.023s.305.164.422.164c.141 0 .352.047.398.117s-.164.07-.047.188c.094.117.094.094.188.141s.211.023.328-.141c.094-.164.164-.164.211-.117.047.023.305.328.375.398s.188.211.211.281.188.07.258.07c.047 0 .258.141.281.234 0 .094.047.117.234.141.188.047 0 .188-.023.281-.047.07-.047.117-.117.211-.023.047-.023.047 0 .047s.047-.023.07 0c.07.047.094.094.188.07s.141 0 .188.094c.047.07.117.141.141.211s0 .164-.07.117c-.07-.07-.234-.023-.234-.023s-.094.07-.117.047c-.023-.047-.07-.094-.188-.07a.2.2 0 0 1-.164 0h-.117c-.094.023-.141-.047-.07-.117.07-.047.07-.258.211-.328s.094-.211 0-.211-.141.117-.188.141c-.07.023-.141.023-.258.094-.094.07-.352.047-.234.07.094.023-.164.141-.211.141-.094 0-.07-.164-.07-.234s-.117.047-.117.047-.211-.117-.281-.047-.188.117-.305.211c-.094.07-.328.211-.328.211s.094-.047.234-.07c.164-.047.141-.023.281-.094s.258-.094.375.023c.094.117-.023.188-.023.188s.047.094.117.117c.047.023.047-.023.141-.07s.047.117.07.164c.047.047.117.047.188 0 .07-.07.094-.117.141-.07s.07.141.117.234-.258.117-.328.141c-.07 0-.305.07-.352.07-.047.023-.164.141-.281.141s-.094-.164-.117-.258c0-.094-.117.023-.141.047-.023.047-.141.023-.234.047-.094 0-.258.094-.258.211s.094.164.07.211-.258.094-.352.07-.234.047-.188.094.047.141-.07.117c-.094 0-.094.094-.07.164.047.07-.117.211-.141.141-.047-.047-.117-.07-.117 0s.023.141.117.258c.07.117-.164.164-.281.258-.094.07-.398.352-.539.398s-.141.234-.07.305c.094.07.141.352.188.445s-.023.352-.141.352c-.117-.023-.07-.164-.188-.211s-.188-.281-.211-.445c-.047-.164-.07-.07-.141-.023-.094.047-.164-.117-.188-.141s-.117 0-.211 0c-.07 0-.164.023-.234.023-.164-.023-.211.07-.211.094 0 .047-.023.164-.188.07-.141-.07-.164-.07-.328-.07-.141 0-.281 0-.305.047s-.164.164-.258.188-.281.164-.188.188c.07.023.07.211.023.328s-.047.305-.023.492.188.305.328.422.211.164.352.047.211-.047.234-.023c.047.023.141-.07.117-.188-.047-.117.047-.234.188-.211.047 0 .117 0 .188-.023.07 0 .141-.023.188-.023.117 0 .141.258 0 .375-.164.117-.07.281-.094.398s-.141.141 0 .141.094.023.188.047.164-.07.281-.094c.094 0 .328.211.281.305a1 1 0 0 0-.07.469c.047.164.07.164.117.234.023.047.141.164.258.117s.234-.094.281-.141.305.094.281.141c-.023.023.094.07.164.023.094-.023.117-.094.188-.211a.7.7 0 0 1 .281-.211c.047 0 .211-.164.328-.141.094.023-.047.164-.047.234 0 .094 0 .305.047.328.07 0 .047-.164.117-.281.07-.141.211-.188.281-.188s.117.258.211.211c.094-.07.281-.047.328.023.023.07.07.117.07.117s.07-.047.07-.117c0-.094.211-.141.352-.07s.094.094.164.117c.07 0 .141-.164.164-.188.047-.023 0 .211-.094.328-.117.094.07.07.094.117.023.023.047.023.094 0 .047 0 .117 0 .141.023.047.047.164.094.234.258.094.117.211.094.375.07s.375.07.539.258c.164.164.117.305.234.305s.141.141.141.188-.234.164-.352.188c-.141 0-.141.141.07.117.211-.047.117-.117.258-.141.141-.047.258.047.164.211-.141.164-.375.164-.164.188s.094-.047.211-.188c.117-.164.117-.117.188-.117.094 0 .258.047.328.094s.234.141.352.188c.117.07.258.047.328.023s.328.07.398.188c.07.094.258.117.375.164.094.047.234.188.234.328.023.141-.141.422-.141.492-.023.047-.234.305-.422.469s-.07.352-.07.422c.023.07-.141.375-.094.445s-.047.211-.141.328c-.094.094-.141.258-.188.352-.07.094-.234.07-.398.117-.164.023-.234.07-.234.07s-.305.117-.445.234c-.164.117.047.305-.023.445s-.164.141-.234.305c-.047.117-.094.094-.117.07-.023 0-.047-.023-.07 0-.07.047-.117.141-.117.258-.023.094-.141.211-.328.375-.164.164-.281.141-.469.07-.188-.047-.164-.516-.188-.445s-.023.305.023.352c.023.047.117.211.164.234.07.047.047.117 0 .164-.047.07-.211.305-.258.328s-.469.07-.563.023c-.07-.047-.117.094-.117.188.023.094.094.164-.07.141s-.352-.117-.352-.047.047.211.117.211.164-.047.117.047-.141.164-.211.211c-.047.047-.117.164-.258.258s-.141.141-.117.188.234.023.281.047-.047.211-.094.258-.281.234-.375.281-.094.211-.047.328c4.453-1.406 7.781-5.344 8.273-10.125-.117-.094-.047-.211-.07-.328-.023-.141-.164-.188-.094-.211s.047-.094.234-.281c0-.141.023-.281.023-.422v-.094c-.047-.094-.117-.258-.023-.422a11.77 11.77 0 0 0-2.766-7.125 6 6 0 0 1-.398.047c-.094 0-.234.211-.258.258s-.328 0-.422 0-.188.117-.375.141c-.164.023-.094.141-.07.234 0 .094-.047.141-.141.117-.117-.023-.094.047-.117.117s.023.188-.094.281c-.094.07-.141.117-.258.094-.117 0-.117-.211-.141-.188-.047 0-.234.141-.281.07s-.281-.234-.375-.258c-.094-.047-.164-.188-.188-.258-.047-.07.117-.07.07-.07-.047-.023-.211-.047-.258-.094s-.141-.258-.164-.328c0-.07.141-.164.141-.211 0-.023-.141-.023-.188-.023s-.117-.141-.047-.281.211-.094.211-.094h.117c.07 0 .047.164.023.234s.047.07.094.094.07-.07.07-.117c0-.07-.117-.211-.188-.281-.047-.07-.234-.094-.258-.047s-.164.234-.211.188-.047-.445-.117-.563-.328-.141-.445-.211c-.094-.047-.492-.117-.563-.117-.023 0-.094 0-.141.023a.5.5 0 0 1-.258 0c-.094-.023-.094-.211-.094-.211s-.07.188-.094.234c-.047.047-.141.07-.188.047s-.164-.234-.281-.258h-.117c-.047 0-.094 0-.164-.047-.141-.117.258-.094.281-.094s.328-.07.352-.141c0-.094.094-.188.234-.141.141.023.211-.094.188-.211s.258-.234.305-.164c.047.047.281 0 .211-.117s.281-.211.609-.234.422.023.492.07.281.047.398-.023A11.9 11.9 0 0 0 11.992.304c-3.469 0-6.586 1.5-8.766 3.867z"})]})}),ez=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:eV,...e}));ez.displayName="Globe";let e_=(0,a.forwardRef)((e,l)=>{let{isImperial:t,isMetric:n,isHybrid:i,expandedRegions:s,LOCALE_DATA:o,handleUnitChange:c,toggleRegion:d,handleLocaleChange:u,inNavigation:h=!1}=e,[m,f]=(0,a.useState)(1);(0,a.useEffect)(()=>{let e=()=>{f(window.innerWidth>=1024?3:window.innerWidth>=768?2:1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let x=[{label:"Imperial",unitName:ea.tE,active:t,symbol:"\xb0F"},{label:"Metric",unitName:ea.cl,active:n,symbol:"\xb0C"},{label:"Hybrid",unitName:ea.Uo,active:i,symbol:"Hybrid"}];return(0,r.jsx)("div",{ref:l,className:(0,Q.cn)("absolute top-full right-0 left-0 w-full overflow-auto border-b-1 border-[#2524221A] bg-white",{"z-40 max-h-[calc(100vh-56px)] md:max-h-[calc(100vh-73px)]":!h}),children:(0,r.jsxs)("div",{className:(0,Q.cn)("mx-auto max-w-screen-xl",{"px-[15px] py-[10px]":!h}),children:[(0,r.jsx)("div",{className:"flex justify-center border-b",children:x.map(e=>{let{unitName:l,active:t,symbol:a}=e;return(0,r.jsx)(ex.$n,{onClick:()=>c(l),variant:"ghost",className:(0,Q.cn)("text-brand-400 cursor-pointer rounded-none border-b-2 border-transparent",t&&"border-brand-400 border-black"),children:a},l)})}),(0,r.jsxs)("div",{className:"py-3 text-center text-xs text-[#6f7585]",children:[t&&"Imperial - F / mph / miles / inches",n&&"Metric - C / millimeters / km / kmh / millibars",i&&"Hybrid - C / millimeters / miles / mph / millibars"]}),(0,r.jsx)("div",{className:"",children:o.map(e=>(0,r.jsxs)("div",{className:"border-b last:border-b-0",children:[(0,r.jsxs)(ex.$n,{onClick:()=>d(e.title),variant:"ghost",className:"flex w-full items-center justify-between rounded-none p-6",children:[(0,r.jsx)(X.Ay,{className:"text-lg font-bold uppercase",children:e.title}),s[e.title]?(0,r.jsx)(eU.H,{className:"h-[18px] w-[18px] text-black"}):(0,r.jsx)(eP.F,{className:"h-[18px] w-[18px] text-black"})]}),s[e.title]&&(0,r.jsx)("div",{className:"grid grid-cols-1 bg-gray-50 px-[21px] md:grid-cols-2 lg:grid-cols-3",style:{gridAutoFlow:"column",gridTemplateRows:"repeat(".concat(Math.ceil(e.countries.length/m),", auto)")},children:e.countries.map(e=>(0,r.jsxs)(ex.$n,{variant:"link",onClick:()=>u(e.locale),className:"flex h-auto items-center justify-between py-2 text-left no-underline hover:underline",children:[e.name," | ",e.language]},e.locale))})]},e.title))})]})})});e_.displayName="SettingsMenuContent";var eH=t(60170);let eO=(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:"Chevron Up"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8.471 5.7a.667.667 0 0 0-.942 0L3.35 9.88a.495.495 0 1 0 .7.7L8 6.629l3.95 3.95a.495.495 0 0 0 .7-.7z"})]})}),eK=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:eO,...e}));eK.displayName="ChevronUp";let eF=(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:"Chevron Down"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M8.471 10.529a.667.667 0 0 1-.942 0L3.35 6.35a.495.495 0 1 1 .7-.7L8 9.6l3.95-3.95a.495.495 0 1 1 .7.7z"})]})}),eW=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:eF,...e}));function eX(e){var l;let{inNavigation:t=!1,onDropdownToggle:n}=e,[o,c]=(0,a.useState)(!1),u=(0,a.useCallback)(e=>{let l=null!=e?e:!o;n&&n(l),c(l)},[o,n]),h=(0,a.useRef)(null),m=(0,a.useRef)(null),[f,x]=(0,a.useState)({}),v=(0,s.md)(er.c2),p=(0,s.md)(er.PF),w=(0,s.md)(er.Vp),g=(null==(l=(0,d.useParams)())?void 0:l.locale)||"en-US",A=g.split("-")[1],{updatePreferences:b}=(0,_.g)(),y=(0,s.md)(eC.JK);(0,a.useEffect)(()=>{var e;let l=null==(e=(0,i.getCookie)("unitOfMeasurement"))?void 0:e.toString();if(console.log("UNITS_COOKIE",l),l){let e=(0,ea.Bu)(l),t=null==e?void 0:e.name,r=null==y?void 0:y.unit;t&&t!==r&&b({unit:t})}},[b,null==y?void 0:y.unit]);let j=async e=>{try{await b({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},C=async e=>{try{let l=(0,eH.vL)(e);await b({locale:l}),(0,i.setCookie)("sitePref",e,{domain:".".concat(window.location.hostname)}),u(!1);let t=e===P?"":e;window.location.href="/".concat(t)}catch(e){console.error("Failed to update locale preference:",e)}};return(0,a.useEffect)(()=>{function e(e){o&&h.current&&m.current&&!h.current.contains(e.target)&&!m.current.contains(e.target)&&u(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u,o]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ex.$n,{ref:h,variant:"ghostUI",className:(0,Q.cn)("text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900"),onClick:()=>{u()},children:[(0,r.jsx)(ez,{size:"md",className:"fill-brand-active md:fill-gray-900"}),(0,r.jsx)("span",{className:"px-[8px] text-[13px] md:text-lg md:font-bold",children:A}),(0,r.jsx)("span",{className:"border-l-brand-active border-l-[1px] pr-1 pl-2 text-[13px] md:border-l-gray-900 md:text-lg md:font-bold",children:v?"\xb0F":"\xb0C"}),o?(0,r.jsx)(eK,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,r.jsx)(eW,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),o&&(0,r.jsx)(e_,{ref:m,isImperial:v,isMetric:p,isHybrid:w,locale:g,expandedRegions:f,LOCALE_DATA:eH.mg,handleUnitChange:j,toggleRegion:e=>{x(l=>{if(l[e])return{...l,[e]:!1};let t={};return Object.keys(l).forEach(e=>{t[e]=!1}),{...t,[e]:!0}})},handleLocaleChange:C,inNavigation:t})]})}eW.displayName="ChevronDown";var eG=t(9645);let eQ=(0,a.forwardRef)((e,l)=>{let[t,n]=(0,a.useState)(!1),{effectiveLocation:i}=(0,p.s)({}),{user:{isUserLoggedIn:o}}=(0,z.J)(),c=eR(),d=(0,eB.X)(c),u=(null==i?void 0:i.placeId)||"",h=(0,s.md)(eG.X),{data:m}=(0,E.Ay)(["navigation/getVideoLink",h],e=>{let[l,t]=e;return eL(t)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[f,x]=(0,a.useState)({}),v=(0,I.z)(),w=(0,a.useMemo)(()=>({"Weather Forecasts":[{name:"My Dashboard",url:"/mydashboard",isNew:!1},{name:"Today",url:"/weather/today/l/".concat(u)},{name:"Hourly",url:"/weather/hourbyhour/l/".concat(u)},{name:"10 Day",url:"/weather/tenday/l/".concat(u)}],"Radar & Maps":[{name:"Interactive Radar Map",url:"/weather/radar/interactive/l/".concat(u,"?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"}],"News & Media":[{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"},...m?[{name:"Videos",url:m}]:[]],Lifestyle:[{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(u)},{name:"Air Quality Index",url:"/forecast/air-quality/l/".concat(u)},{name:"Cold & Flu Tracker",url:"/forecast/cold-flu/l/".concat(u)},{name:"Skin Health",url:"/health/skin-health"}],skip:[],skip2:[],"Products & Account":[{name:"Alexa Skill",url:"https://www.amazon.com/The-Weather-Company-Channel/dp/B07YPYHQ1Q",isExternal:!0},...o?[{name:"Manage Account",url:"/member/settings"},{name:"Logout",action:d.current}]:[{name:"Create An Account",url:"/signup"},{name:"Sign in",url:"/login"}]]}),[o,d,u,m]),g=(0,a.useMemo)(()=>Object.entries(w).reduce((e,l,t)=>{var r;return null==(r=e[t%4])||r.push(l),e},Array.from({length:4},()=>[])),[w,4]);return(0,r.jsxs)("nav",{ref:l,className:(0,Q.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:[v&&(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)(eX,{inNavigation:!0,onDropdownToggle:n})]}),(!t||!v)&&(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:g.map((e,l)=>(0,r.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.map(e=>{let[l,t]=e;return(null==t?void 0:t.length)?(0,r.jsxs)("div",{className:"w-full md:mb-6",children:[(0,r.jsxs)("div",{className:(0,Q.cn)(v&&"px-6 py-2.5","flex cursor-pointer items-center justify-between md:cursor-default"),...v&&{onClick:()=>(e=>{x(l=>({...l,[e]:!l[e]}))})(l),role:"button",tabIndex:0,"aria-label":"Toggle Menu Category"},children:[(0,r.jsx)("h2",{className:(0,Q.cn)(!v&&"mb-4","text-gray-900 md:font-bold"),children:l}),v&&(0,r.jsx)("span",{"aria-label":f[l]?"Collapse":"Expand",children:f[l]?(0,r.jsx)(eU.H,{size:"md",className:"text-black"}):(0,r.jsx)(eP.F,{size:"md",className:"text-black"})})]}),(0,r.jsx)("ul",{className:(0,Q.cn)("md:space-y-2",v&&"bg-[#ebecee]",v&&!f[l]&&"hidden"),children:t.map(e=>{if(!e.url&&!e.action)return null;let l=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"relative flex items-center",children:[e.name,e.isNew&&(0,r.jsx)("span",{className:"ml-2 inline-block rounded bg-black px-1.5 py-0.5 text-xs font-medium text-white",children:"NEW"})]}),e.isExternal&&(0,r.jsx)(eM,{size:"sm","data-testid":"external-link-icon"})]}),t=(0,Q.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600",v&&"px-10 py-2.5");return(0,r.jsx)("li",{className:v?"border-b border-[rgba(37,36,34,0.10)]":"",children:e.url?(0,r.jsx)(C.default,{href:e.url,className:t,target:e.isExternal?"_blank":void 0,children:l}):(0,r.jsx)("button",{onClick:e.action,className:(0,Q.cn)(t,"cursor-pointer"),children:l})},e.name)})})]},l):null})},l))})]})});eQ.displayName="Navigation";var eJ=t(72527);let eZ=(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"})]})}),eq=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:eZ,...e}));function eY(){let[e,l]=(0,a.useState)(!1),t=(0,a.useRef)(null),n=(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&&n.current&&!t.current.contains(r.target)&&!n.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)(ex.$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)(eJ.b,{}):(0,r.jsx)(eq,{})}),e&&(0,r.jsx)(eQ,{ref:n})]})}function e$(e){var l;let{firstName:t,isPremium:a}=e,n=null==t||null==(l=t.charAt(0))?void 0:l.toUpperCase();return(0,r.jsxs)("div",{className:(0,Q.cn)("relative flex h-8 w-8 items-center justify-center rounded-full border-1 border-gray-900 md:h-12 md:w-12"),children:[(0,r.jsx)("span",{className:(0,Q.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":a}),children:n}),a&&(0,r.jsx)("span",{className:(0,Q.cn)("absolute bottom-[-1px] left-[-1px] h-[9px] w-8 bg-white text-[6.25px] uppercase md:h-[13px] md:w-12 md:text-[10px]"),children:"Premium"})]})}eq.displayName="Hamburger";var e0=t(99551);function e1(){let{user:e,userProfile:l}=(0,z.J)(),t=eR(),n=(0,s.md)(M.P9),{isUserLoggedIn:i,isUserPremium:o}=e,[c,d]=(0,a.useState)(!1);return(0,r.jsx)("div",{"data-testid":"header-profile",children:i?(0,r.jsxs)(e0.AM,{trigger:"hover",openDelay:100,closeDelay:300,open:c,onOpenChange:d,children:[(0,r.jsx)(e0.Wv,{asChild:!0,children:(0,r.jsx)("button",{className:"flex cursor-pointer bg-transparent","data-testid":"header-profile-button",children:(0,r.jsx)(e$,{firstName:null==l?void 0:l.firstName,isPremium:o})})}),(0,r.jsx)(e0.hl,{className:"z-2000001 p-0",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(C.default,{href:"/member/settings","data-testid":"header-profile-account",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,r.jsx)(e$,{firstName:null==l?void 0:l.firstName,isPremium:o}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(X.Ay,{variant:"Body.S",children:null==l?void 0:l.firstName}),(0,r.jsx)(X.Ay,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:"Manage Account"})]})]})}),!o&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)(X.Ay,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,r.jsx)(X.Ay,{children:"Try our best radar and forecasting features for weather planning."}),(0,r.jsx)(C.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:(0,r.jsx)(ex.$n,{variant:"default",children:"Go Premium"})})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,r.jsx)(ex.$n,{variant:"link",onClick:t,"data-testid":"header-profile-signout",children:"Sign Out"})})]})})]}):(0,r.jsx)(C.default,{href:n?"/login":"/signup",children:(0,r.jsx)(ex.$n,{variant:"default",className:"whitespace-nowrap text-sm md:text-base py-0 px-3 md:px-4 h-8 md:h-12 font-bold bg-gray-900",children:n?"Sign in":"Sign up"})})})}function e2(){let{user:e}=(0,z.J)(),{isUserPremium:l}=e;return!l&&(0,r.jsx)(ex.$n,{variant:"outline",className:"hidden h-8 px-3 py-0 text-sm font-bold whitespace-nowrap md:inline-flex md:h-12 md:px-4 md:text-base",asChild:!0,children:(0,r.jsx)(C.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",children:"Go Premium"})})}var e4=t(15574),e5=function(e){return e.CA="ca",e.CA_QC="ca-qc",e.EXEMPT="exempt",e.GDPR="gdpr",e.JP="jp",e.KR="kr",e.LATAM_CO="latam-co",e.LATAM_DO="latam-do",e.LATAM_PE="latam-pe",e.LGPD="lgpd",e.PIPL="pipl",e.TR_KVKK="tr-kvkk",e.USA="usa",e.USA_CCPA="usa-ccpa",e.USA_CO="usa-co",e.USA_CT="usa-ct",e.USA_VA="usa-va",e.USA_UT="usa-ut",e}({});let e3=["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],e7=["usa","usa-ccpa","usa-co","usa-ct","usa-va"],e8=Object.values(e5),e6=()=>(0,i.getCookie)("twc-privacy")||"exempt";var e9=t(8950);let[le,ll]=(0,e4.A)(e5.EXEMPT),[lt,lr]=(0,e4.A)(e9.C0.none),[la,ln]=(0,e4.A)("mobile"),[li,ls]=(0,e4.A)(null),[lo,lc]=(0,e4.A)("en-US"),[ld,lu]=(0,e4.A)(!1);var lh=t(26198);let lm=["VA","SO"],lf=e=>{let{className:l}=e,t=(0,s.md)(lh.HJ);return lm.includes(t)?(0,r.jsxs)("svg",{className:l,viewBox:"0 0 24 24",children:[(0,r.jsx)("title",{children:"The Weather Channel"}),(0,r.jsx)("path",{d:"M0 0h24v24H0V0zm2.0433 6.807v.657h.9629v3.2794h.8043V7.464h.9402l.1303-.657H2.0433zm3.0982-.0794c.034.119.0567.3908.0567.6627v3.3531h.7703V8.6647c.1699-.1529.4134-.2662.6003-.2662.2153 0 .2946.1076.2946.3965v1.9484h.742V8.7157c0-.3285-.017-.3738-.0737-.538-.0906-.2436-.3965-.4136-.7533-.4136-.2945 0-.623.1246-.8213.3116 0-.034.0114-.153.0114-.2436v-.5777c0-.2776-.017-.5494-.051-.708l-.776.1812zm5.1655 3.2455c-.2322.1926-.4758.2889-.7363.2889-.3908 0-.6117-.2549-.6117-.7024V9.537h1.6765v-.1756c0-.606-.119-.9969-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3852 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4022l-.2945-.453zm-8.241 2.1964l.9402 3.9704h.9005l.323-1.6142c.1132-.5778.1925-1.1328.1925-1.1328.0057.034.051.5324.1869 1.1441l.3512 1.6029h.8666l.9515-3.9704h-.8326l-.3228 1.4952c-.068.3286-.204 1.1838-.2153 1.3084 0 0-.0963-.674-.1699-1.0421l-.3625-1.7615h-.8666l-.3512 1.5915c-.1189.5438-.1869 1.1045-.2039 1.2575 0 0-.0453-.5608-.2095-1.2971l-.3399-1.552H2.066zm7.0172 3.1661c-.2322.1926-.4758.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.119-.9968-.3851-1.2687-.187-.1926-.5041-.3059-.8383-.3059-.3851 0-.674.1246-.9119.3908-.2549.2832-.3625.6287-.3625 1.1498 0 .912.538 1.501 1.3707 1.501.4078 0 .759-.1303 1.0931-.4021l-.2945-.4532zm.742-1.7841l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1076.3398.4305v.119c-.0792-.0058-.1132-.0058-.1699-.0058-.9232 0-1.3933.3172-1.3933.9969 0 .5777.3511.9063.9968.9063.238 0 .4418-.0567.5834-.1586.0567-.0397.068-.051.1756-.153.0737.1473.2323.2776.4078.3512l.4022-.4644c-.221-.1643-.2719-.2833-.2719-.5948v-.051l.017-.9742c0-.3115-.0113-.402-.051-.521-.1133-.3229-.4474-.5041-.9345-.5041-.2663 0-.5098.051-.793.1699-.204.0793-.2832.119-.4701.2379zm4.4009-.3512h-.6797c0-.2945.017-.606.0453-.8723l-.7703.1926c-.0283.2152-.0283.4078-.0283.691h-.2889v.4928h.2889v1.5973c0 .2661.0056.3228.051.4474.085.2549.3964.4248.7816.4248.1982 0 .3965-.0396.6174-.1303l-.0964-.453c-.1359.0396-.2038.0566-.2718.0566-.2606 0-.3285-.0963-.3285-.4645v-1.4783h.4871l.1926-.5041zm.2095-1.1101c.034.1189.0566.3908.0566.6626v3.3531h.7703v-2.0787c.17-.1529.4135-.2662.6004-.2662.2152 0 .2945.1077.2945.3965v1.9484h.742v-2.0277c0-.3285-.017-.3738-.0736-.538-.0907-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm5.1654 3.2454c-.2322.1926-.4757.289-.7363.289-.3908 0-.6117-.255-.6117-.7024v-.0227h1.6765v-.1756c0-.606-.1189-.9968-.385-1.2687-.187-.1926-.5042-.3059-.8383-.3059-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1498 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1303 1.0932-.4021l-.2946-.4532zm.7817-2.0163c.0623.1642.1076.4587.1076.8495v1.9371h.759v-2.0503c.1415-.1643.2945-.2436.4644-.2436.085 0 .1472.017.2209.0567l.2096-.6684c-.119-.051-.17-.0623-.2833-.0623-.085 0-.1869.017-.2492.0453-.1415.068-.3228.221-.4304.3682-.0113-.1643-.051-.2945-.119-.4135l-.6796.1813zM4.9489 17.7585c-.2152-.1869-.606-.3115-.9968-.3115-.6344 0-1.2008.3399-1.5067.912-.1812.3398-.2662.7306-.2662 1.2233 0 .5778.1586 1.0536.4758 1.4104.3229.3682.742.5437 1.2857.5437.4475 0 .7817-.1132 1.0932-.3681l-.3625-.4985a3.6136 3.6136 0 0 1-.0793.0624c-.1926.1302-.3795.1925-.5947.1925-.3399 0-.6004-.1529-.759-.4418-.119-.2152-.1642-.5154-.1642-1.0535 0-.4588.068-.7873.2209-1.0138.1416-.2096.402-.3399.6683-.3399.2209 0 .4305.0737.6287.221l.3568-.5382zm.3908-.3058c.034.119.0566.3908.0566.6627v3.353h.7703v-2.0786c.17-.153.4135-.2662.6004-.2662.2152 0 .2945.1076.2945.3964v1.9485h.742v-2.0277c0-.3286-.017-.3739-.0736-.5381-.0906-.2436-.3965-.4135-.7533-.4135-.2946 0-.623.1246-.8213.3115 0-.034.0113-.153.0113-.2435v-.5778c0-.2775-.017-.5494-.051-.708l-.776.1813zm3.0755 1.4613l.3228.5437c.3115-.2095.5947-.3285.8383-.3285.2775 0 .3398.1077.3398.4305v.119c-.0793-.0057-.1133-.0057-.17-.0057-.9231 0-1.3932.3171-1.3932.9968 0 .5778.3511.9063.9968.9063.2379 0 .4418-.0567.5834-.1586.0566-.0397.068-.051.1756-.153.0736.1473.2322.2776.4078.3512l.4021-.4644c-.2209-.1643-.2718-.2832-.2718-.5947v-.051l.017-.9742c0-.3116-.0114-.4022-.051-.5211-.1133-.3229-.4475-.5041-.9346-.5041-.2662 0-.5097.051-.793.17-.2038.0792-.2831.1189-.47.2378zm2.8546-.2266c.068.1926.102.4305.102.6797v2.1014h.7589V19.418c.1756-.1586.3738-.2606.5267-.2606.1983 0 .255.0963.255.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0567-.4134-.0906-.2493-.3738-.4192-.6966-.4192-.17 0-.3682.0453-.5211.1246-.1246.068-.1586.0907-.3342.2152 0-.1189-.0397-.2435-.1076-.3624l-.674.1925zm3.0188 0c.068.1926.102.4305.102.6797v2.1014h.759V19.418c.1755-.1586.3737-.2606.5267-.2606.1982 0 .2549.0963.2549.4248v1.8862h.7476V19.35c0-.1812-.017-.3058-.0566-.4134-.0906-.2493-.3739-.4192-.6967-.4192-.17 0-.3681.0453-.521.1246-.1247.068-.1587.0907-.3342.2152 0-.1189-.0397-.2435-.1077-.3624l-.674.1925zm5.0806 2.0108c-.2323.1925-.4758.2888-.7364.2888-.3908 0-.6117-.2548-.6117-.7023v-.0226h1.6766v-.1757c0-.606-.119-.9968-.3852-1.2687-.1869-.1926-.504-.3058-.8382-.3058-.3852 0-.674.1246-.912.3908-.2548.2832-.3625.6287-.3625 1.1497 0 .912.5381 1.501 1.3707 1.501.4078 0 .759-.1302 1.0932-.4021l-.2945-.4531zm1.5859-3.421l-.776.1755c.0283.2605.0397.4927.0397.8722v2.1637c0 .4135.0113.504.068.6513.0905.2436.3511.3965.674.3965.1642 0 .3228-.0283.453-.0792l-.1302-.4532c-.0396.0113-.0566.0113-.085.0113-.0623 0-.1246-.0283-.1529-.0792-.0453-.0793-.051-.1473-.051-.6458v-2.2599c0-.4078-.0113-.5947-.0396-.7533zM8.9703 8.9818h.878v-.034c0-.2152-.0227-.3285-.0907-.4361-.0736-.1133-.1813-.17-.3342-.17-.2888 0-.453.2266-.453.6288v.0113zm-1.2238 5.3625h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3342-.17-.2888 0-.4531.2266-.4531.6287v.0113zm3.5683.4928h-.034c-.5267 0-.708.0963-.708.4418 0 .2265.1416.3795.3342.3795.1416 0 .2832-.0737.3965-.1983l.0113-.623zm6.9495-.4928h.878v-.034c0-.2152-.0227-.3285-.0907-.436-.0736-.1134-.1812-.17-.3341-.17-.2889 0-.4532.2266-.4532.6287v.0113zm-8.3595 5.8553h-.034c-.5268 0-.708.0963-.708.4418 0 .2266.1416.3795.3342.3795.1416 0 .2832-.0736.3965-.1982l.0113-.623zm8.1277-.4927h.8779v-.034c0-.2153-.0227-.3285-.0906-.4361-.0737-.1133-.1813-.17-.3342-.17-.2889 0-.4531.2266-.4531.6287v.0114z",fill:"currentColor",fillRule:"evenodd"})]}):(0,r.jsxs)("svg",{className:l,fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 48",children:[(0,r.jsx)("title",{children:"The Weather Company"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48 48H0V0h48v48ZM19.197 37.414c-.548 0-1.05.105-1.633.35-.42.163-.583.245-.967.49l.665 1.119c.64-.431 1.224-.676 1.725-.676.571 0 .7.222.7.886v.245a4.025 4.025 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.722 1.865 2.051 1.865.49 0 .91-.116 1.202-.326.116-.081.14-.104.361-.314.152.303.479.57.84.722l.827-.956c-.455-.338-.56-.583-.56-1.224v-.105l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.921-1.038-1.924-1.038Zm18.107.012c-.793 0-1.388.257-1.877.804-.525.583-.747 1.295-.747 2.368 0 1.877 1.108 3.09 2.822 3.09.84 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.979.595-1.515.595-.805 0-1.259-.526-1.259-1.447v-.047h3.451v-.361c0-1.247-.245-2.052-.793-2.611-.384-.397-1.038-.63-1.725-.63ZM7.409 35.234c-1.306 0-2.472.7-3.101 1.877-.373.7-.548 1.505-.548 2.519 0 1.189.326 2.169.98 2.903.664.758 1.527 1.12 2.646 1.12.92 0 1.61-.234 2.25-.758l-.745-1.027a7.262 7.262 0 0 1-.164.128c-.397.268-.781.396-1.224.397-.7 0-1.236-.315-1.563-.91-.244-.443-.337-1.06-.337-2.168 0-.945.139-1.621.454-2.087.291-.432.828-.7 1.376-.7.454 0 .886.152 1.294.455l.735-1.108c-.443-.385-1.248-.64-2.053-.64Zm33.404.012c.059.536.081 1.014.081 1.795l.002 4.714c.005.634.035.812.138 1.08.187.502.723.817 1.388.817.338 0 .664-.058.933-.163l-.268-.933a.519.519 0 0 1-.175.023c-.128 0-.257-.058-.315-.163-.093-.163-.105-.304-.105-1.33v-4.945c-.006-.64-.03-.972-.082-1.257l-1.596.362Zm-30.547 0c.07.245.117.804.117 1.363v6.903h1.585v-4.279c.35-.314.851-.547 1.236-.547.443 0 .606.22.606.815v4.01h1.528v-4.173c0-.676-.035-.77-.151-1.108-.187-.5-.817-.851-1.551-.851-.607 0-1.283.257-1.69.642 0-.07.022-.315.022-.502V36.33c0-.57-.035-1.13-.105-1.457l-1.597.373Zm12.207 2.541c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .526.199.526.875v3.882h1.539v-4.36c0-.373-.036-.63-.118-.851-.186-.513-.769-.863-1.433-.864-.35 0-.759.094-1.073.257-.257.14-.327.186-.688.443a1.53 1.53 0 0 0-.222-.746l-1.387.396Zm6.215 0c.14.397.21.886.21 1.4v4.325h1.562V39.29c.361-.326.77-.536 1.084-.536.408 0 .524.199.524.875v3.882h1.54v-4.36c0-.373-.035-.63-.117-.851-.186-.513-.77-.864-1.434-.864-.35 0-.758.094-1.073.257a5.28 5.28 0 0 0-.688.443c0-.245-.081-.502-.22-.746l-1.389.396ZM19.663 40.9l-.023 1.283c-.233.256-.525.408-.817.408-.396 0-.687-.315-.687-.781 0-.711.373-.91 1.457-.91h.07Zm17.664-2.332c.315 0 .536.117.688.35.14.221.186.455.186.898v.07h-1.806v-.023c0-.828.337-1.295.932-1.295ZM22.1 26.375c-.548 0-1.05.106-1.633.35a4.44 4.44 0 0 0-.968.49l.665 1.119c.641-.431 1.224-.676 1.726-.676.57 0 .699.222.699.886v.245a3.99 3.99 0 0 0-.35-.012c-1.9 0-2.868.653-2.868 2.052 0 1.19.723 1.866 2.052 1.866.49 0 .91-.117 1.201-.327.117-.081.14-.105.361-.314.152.303.479.57.84.722l.827-.956c-.454-.338-.56-.583-.56-1.223v-.106l.036-2.006c0-.64-.023-.827-.105-1.072-.233-.664-.92-1.038-1.923-1.038Zm-5.97.012c-.793 0-1.387.257-1.877.804-.525.583-.746 1.295-.746 2.368 0 1.877 1.107 3.09 2.821 3.09.84 0 1.562-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.516.594-.804 0-1.259-.525-1.259-1.446v-.046h3.451v-.361c0-1.248-.245-2.053-.793-2.612-.384-.397-1.037-.63-1.725-.63Zm21.651 0c-.793 0-1.388.256-1.878.804-.524.583-.746 1.295-.746 2.368 0 1.877 1.109 3.09 2.823 3.09.839 0 1.562-.27 2.25-.829l-.607-.932c-.478.396-.98.594-1.516.594-.804 0-1.26-.525-1.26-1.446v-.046H40.3v-.361c0-1.248-.244-2.053-.792-2.612-.385-.397-1.038-.63-1.726-.63Zm-12.114-1.294c-.058.443-.059.84-.059 1.423h-.594v1.013h.594l.001 3.498c.004.374.025.492.105.712.175.525.816.874 1.608.874a3.28 3.28 0 0 0 1.272-.268l-.199-.933c-.28.082-.42.117-.56.117-.535 0-.676-.198-.676-.956V27.53h1.003l.397-1.037h-1.4c0-.606.036-1.248.094-1.796l-1.586.397Zm-22.14-.723 1.935 8.173h1.854l.664-3.322c.232-1.18.394-2.315.397-2.332.012.07.105 1.097.385 2.355l.722 3.299h1.785l1.958-8.173h-1.713l-.665 3.078c-.14.677-.42 2.437-.443 2.694 0 0-.199-1.388-.35-2.146L9.31 24.37H7.526l-.723 3.276a27.537 27.537 0 0 0-.42 2.588 21.687 21.687 0 0 0-.43-2.67l-.7-3.194H3.527Zm25.463-.163c.07.245.116.805.116 1.364v6.903h1.586v-4.28c.35-.314.851-.547 1.236-.547.443 0 .606.221.606.816v4.01h1.528V28.3c0-.676-.035-.77-.152-1.108-.186-.5-.816-.85-1.55-.85-.607 0-1.283.256-1.691.64 0-.07.023-.314.023-.5v-1.19c0-.571-.035-1.13-.105-1.457l-1.597.373Zm15.285 2.157c-.175 0-.385.035-.513.093-.292.14-.665.455-.886.758a1.918 1.918 0 0 0-.245-.85l-1.399.372c.129.338.221.944.221 1.748v3.989h1.563v-4.221c.291-.338.606-.502.956-.502a.89.89 0 0 1 .455.117l.431-1.376c-.244-.105-.35-.128-.583-.128Zm-21.71 3.497-.023 1.284c-.233.256-.524.408-.815.408-.397 0-.689-.315-.689-.782 0-.71.374-.91 1.458-.91h.07Zm-6.412-2.332c.315 0 .536.118.688.35.14.222.186.455.186.898v.07h-1.806v-.023c0-.828.338-1.295.932-1.295Zm21.65 0c.316 0 .538.118.69.35.139.222.186.455.186.898v.07H36.87v-.023c0-.827.338-1.295.933-1.295ZM18.65 15.35c-.793 0-1.388.256-1.878.804-.524.583-.746 1.294-.746 2.367 0 1.877 1.108 3.09 2.822 3.09.84 0 1.563-.27 2.25-.829l-.606-.932c-.478.396-.98.594-1.515.594-.805 0-1.26-.524-1.26-1.445v-.047h3.451v-.361c0-1.248-.244-2.053-.792-2.613-.385-.396-1.038-.628-1.726-.628ZM3.48 13.33v1.353h1.982v6.75h1.656v-6.75h1.936l.267-1.353h-5.84Zm6.378-.163c.07.245.117.805.117 1.364v6.903h1.585v-4.28c.35-.314.851-.547 1.236-.548.443 0 .606.222.606.817v4.01h1.528V17.26c0-.676-.035-.77-.152-1.108-.186-.501-.816-.851-1.55-.851-.607 0-1.283.257-1.69.641 0-.07.022-.315.022-.502v-1.189c0-.571-.035-1.13-.105-1.457l-1.597.373Zm8.814 3.323c.315 0 .537.117.688.35.14.221.187.454.187.897v.07h-1.808v-.023c0-.828.338-1.294.933-1.294Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M49.97 2.175V.791h.691a.45.45 0 0 1 .203.05.422.422 0 0 1 .24.397.443.443 0 0 1-.25.416.468.468 0 0 1-.213.054h-.492V1.47h.405c.045 0 .09-.02.133-.058.046-.039.068-.096.068-.173 0-.08-.023-.135-.068-.165a.226.226 0 0 0-.127-.045h-.268v1.146h-.323Zm.85-.649.336.649h-.354l-.323-.649h.342ZM50.5 3c-.208 0-.402-.039-.583-.116A1.507 1.507 0 0 1 49 1.5c0-.208.039-.402.116-.583A1.508 1.508 0 0 1 50.5 0c.208 0 .402.039.583.116a1.507 1.507 0 0 1 .8 1.967 1.51 1.51 0 0 1-.8.8A1.467 1.467 0 0 1 50.5 3Zm0-.371c.208 0 .396-.05.566-.152a1.17 1.17 0 0 0 .409-.409c.101-.171.152-.36.152-.568 0-.208-.05-.396-.152-.566a1.144 1.144 0 0 0-.409-.409A1.075 1.075 0 0 0 50.5.371c-.208 0-.397.051-.568.154a1.144 1.144 0 0 0-.409.409c-.101.17-.152.358-.152.566 0 .208.05.397.152.568.101.17.238.306.409.409.171.101.36.152.568.152Z",fill:"currentColor"})]})},lx=[{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 lv=t(22627);let lp=e=>{let{classname:l,divider:t}=e,a=(0,s.md)(eG.X),{url:n,cobrandIconSrc:i}=lx.find(e=>e.locales.includes(a))||{};return n&&i?(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:n,target:"_blank",className:(0,Q.cn)("relative p-0",l,{"de-DE":"de-DE"===a}),children:(0,r.jsx)(lv.A,{className:"h-6 w-auto",src:i,alt:"focus logo",rounded:!1})})]}):null},lw=(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"})]})}),lg=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:lw,...e}));lg.displayName="ArrowLeft";let lA=(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"})]})}),lb=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:lA,...e}));lb.displayName="ArrowRight";var ly=t(7192),lj=t.n(ly),lC=t(83357),lN=t.n(lC);let lS=(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:"Overflow Menu Vertical"}):t?(0,r.jsx)("title",{id:a,children:t}):null,(0,r.jsx)("g",{fill:"currentColor",children:(0,r.jsx)("path",{d:"M8 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})]})}),lR=a.forwardRef((e,l)=>(0,r.jsx)(K.h,{ref:l,icon:lS,...e}));lR.displayName="OverflowMenuVertical";let lE=e=>{let{isFavorite:l,placeId:t,name:n,coordinate:i}=e,{user:o}=(0,z.J)(),{isUserLoggedIn:c}=o,{navigate:u}=(0,S.A)(),h=(e=>{let{effectiveLocation:l}=(0,p.s)({}),t=(null==l?void 0:l.placeId)||"",r=(0,d.usePathname)(),a=ed({key:"today",interpolationArgs:{locId:e,locale:(0,s.md)(eG.X)}});return r.includes(e)?r.replace(t,e):a})(t),{addFavoriteLocation:m,removeFavoriteLocation:f,removeRecentLocation:x}=(()=>{let{updatePreferences:e}=(0,_.g)(),l=(0,s.md)(V.nU)||[],[t,r]=(0,s.fp)(M.I6),n=(0,a.useCallback)(t=>{let r={...t,position:l.length+1};e({locations:[...l,r]})},[l,e]),i=(0,a.useCallback)(t=>{e({locations:l.filter(e=>e.placeID!==t)})},[l,e]);return{addFavoriteLocation:n,removeFavoriteLocation:i,addRecentLocation:(0,a.useCallback)(e=>{r(l=>[...l||[],e])},[r]),removeRecentLocation:(0,a.useCallback)(e=>{r(l=>(l||[]).filter(l=>l!==e))},[r]),recentLocations:t||[],favoriteLocations:l.sort((e,l)=>e.position-l.position)}})();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)(lN(),{href:h,children:n}),l?(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>f(t),children:(0,r.jsx)(q,{className:"h-[18px] w-[18px] text-[#fdc107]"})}):(0,r.jsx)("button",{className:"contents cursor-pointer",onClick:()=>{c?m({name:n,coordinate:i,placeID:t}):u("/signup")},children:(0,r.jsx)($,{className:"h-[18px] w-[18px]"})}),(0,r.jsx)(lM,{onDelete:()=>{f(t),x(t)}})]})};function lM(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)(lR,{className:"h-5 w-5"})}),(0,r.jsx)("button",{ref:t,className:(0,Q.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"})]})}let lU=e=>{let{placeId:l}=e,t=(0,s.md)(eG.X),{data:a}=(0,E.Ay)(l?["location-data",l]:null,()=>(0,H.$M)(l,t),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!a)return null;let{city:n,latitude:i,longitude:o}=a.location;return(0,r.jsx)(lE,{placeId:l,name:n,coordinate:"".concat(i,",").concat(o)})},lP=()=>{let{user:e}=(0,z.J)(),{isUserLoggedIn:l}=e,t=(0,s.md)(V.nU)||[];t=l?t:[];let n=(0,s.md)(M.I6)||[];n=(n=l?n:n.slice(0,1)).filter(e=>!t.some(l=>{let{placeID:t}=l;return t===e}));let[i,o]=(0,a.useState)(0),c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=((e,l)=>{if(!e.current)return 0;let t=Array.from(e.current.children);return 0===t.length?0:t[l].offsetLeft})(c,i),[,h]=(0,a.useState)(0),m=()=>h(e=>e+1);(0,a.useEffect)(()=>(window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[]),(0,a.useEffect)(()=>{m(),o(0)},[n.length,t.length]);let f=c.current&&d.current&&d.current.clientWidth+u