(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4036],{2747:(e,l,t)=>{"use strict";t.d(l,{G:()=>s});var r=t(76792),a=t(42292),n=t(23233);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"},7192:e=>{e.exports={leftArrowGradient:"SavedLocationsBar_leftArrowGradient__soBkY",rightArrowGradient:"SavedLocationsBar_rightArrowGradient__gE4Zm"}},8527:(e,l,t)=>{"use strict";t.d(l,{SWRProvider:()=>i});var r=t(76792),a=t(42292),n=t(44615);let i=e=>{let{children:l,fallback:t={}}=e,[i]=(0,a.useState)(()=>new Map);return(0,a.useEffect)(()=>{try{let e=localStorage.getItem("app-cache");if(e){let l=JSON.parse(e);Array.isArray(l)&&l.forEach(e=>{let[l,t]=e;i.get(l)||i.set(l,t)})}}catch(e){console.error("Failed to load cache from localStorage:",e)}let e=()=>{try{let e=Array.from(i.entries());localStorage.setItem("app-cache",JSON.stringify(e))}catch(e){console.error("Failed to persist cache to localStorage:",e)}};window.addEventListener("beforeunload",e);let l=setInterval(e,3e4);return()=>{window.removeEventListener("beforeunload",e),clearInterval(l)}},[i]),(0,r.jsx)(n.BE,{value:{provider:()=>i,fallback:t},children:l})}},8720:(e,l,t)=>{"use strict";t.d(l,{Ay:()=>n,Eq:()=>s,Ub:()=>c,Y6:()=>i,Yv:()=>o,uV:()=>a});var r=t(24847),a=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 n=a,i=["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],s=["usa","usa-ccpa","usa-co","usa-ct","usa-va"],o=Object.values(a),c=()=>(0,r.getCookie)("twc-privacy")||"exempt"},9198:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>i});var r=t(76792),a=t(83357),n=t.n(a);t(42292);let i=e=>{let{mpa:l=!0,...t}=e;if(l){let{href:e,children:l,...a}=t;return(0,r.jsx)("a",{href:e.toString(),...a,children:l})}return(0,r.jsx)(n(),{...t})}},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)}},11878:(e,l,t)=>{"use strict";t.d(l,{default:()=>er});var r=t(76792),a=t(42292),n=t(47421),i=t(53876),s=t(94591),o=t(44615),c=t(75302),d=t(83531),u=t(46178),h=t(20031),m=t(93387);let f=()=>{let{getLocationName:e,getLocationContext:l,getLocationPresentationName:t}=(0,m.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 v=t(70412),x=t(77722),p=t(14725),w=t(83249),g=t(28430),A=t(87103),b=t(77976),y=t(23233);let j=(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"})]})]})}),C=a.forwardRef((e,l)=>(0,r.jsx)(y.h,{ref:l,icon:j,...e}));C.displayName="Location";var N=t(68751),E=t(48260),S=t(38580);function R(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)(S.C,{className:"text-current",title:"More"})}),(0,r.jsx)("button",{ref:s,className:(0,E.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"})]})}var M=t(30175),U=t(98679);function P(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,E.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)(M.B,{className:"size-6 text-[#fdc107]",title:"Unfavorite"}):(0,r.jsx)(U.F,{className:"size-6 text-inherit hover:text-[#fdc107]",title:"Favorite"})})]})}var B=t(11340),I=t(55406),D=t(86942),k=t(32035),T=t(71666),L=t(55198);let V=()=>{let e=(0,L.useParams)();return(null==e?void 0:e.locale)||"en-US"};function z(e){var l;let{search:t}=e,a=(e=>{var l;let t=(0,c.md)(k.Yt),r=null==(l=(0,T.xP)(t))?void 0:l.code,a=V(),{data:n}=(0,o.Ay)(e?["currentConditions",e,r,a]:null,async e=>{let[,l,t,r]=e;return(0,D.z)({geocode:l,units:t,language:r})},{revalidateIfStale:!0,revalidateOnFocus:!0,dedupingInterval:3e5});return n})(t.geocode),n=null!=(l=null==a?void 0:a.iconCode)?l:t.iconCode,i=a?a.temperature:t.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)(B.WxIcon,{iconCode:n,className:"lightBG",iconTheme:"lightBG",size:"md"})}),(0,r.jsx)("div",{className:"text-l text-inherit",children:(0,r.jsx)(I.B,{value:i})})]})}let H=(e,l)=>{let{data:t}=(0,o.Ay)(e?["location-data",e,l]:null,e=>{let[l,t,r]=e;return(0,A.$M)(t,r)},{revalidateOnFocus:!1,dedupingInterval:3e5});return null==t?void 0:t.location};function O(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:v,attributes:x,isFocused:p,isSortable:w}=e,g=V(),{buildSearchItem:A}=f(),b=(0,a.useRef)(null),y=H((null==t?void 0:t.nameContext)?null:l,g),j=(0,a.useMemo)(()=>t||(y?A(y):null),[A,y,t]);return((0,a.useEffect)(()=>{let e=b.current;return p&&(null==e||e.focus()),()=>null==e?void 0:e.blur()},[p]),j)?(0,r.jsxs)("div",{className:(0,E.cn)("group flex w-full flex-1 items-center","hover:bg-brand-400 hover:text-white",p&&"bg-brand-400 text-white"),children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,...x,ref:b,className:(0,E.cn)("flex flex-1 cursor-pointer items-center gap-4 py-2 pl-1",p&&"outline-0",null==x?void 0:x.className),onClick:()=>null==n?void 0:n(j),onKeyDown:e=>{var l;null==x||null==(l=x.onKeyDown)||l.call(x,e),("Enter"===e.key||" "===e.key)&&(" "!==e.key||!w)&&j&&(e.preventDefault(),null==n||n(j))},children:[v?(0,r.jsx)(z,{search:j}):(0,r.jsx)(C,{className:"size-4 text-current"}),(0,r.jsxs)("div",{className:"text-left",children:[(0,r.jsx)(N.Ay,{variant:"Body.M",className:"text-nowrap text-inherit",children:j.name}),(0,r.jsx)(N.Ay,{variant:"Body.S",color:"secondary",className:(0,E.cn)("text-nowrap group-hover:text-inherit",p&&"text-inherit"),children:j.nameContext})]})]}),!h&&(0,r.jsx)(P,{isFavorite:m,onClick:()=>null==s?void 0:s(j)}),i&&o&&c&&u&&(0,r.jsx)(R,{open:d,onClick:()=>o(l),onDismiss:c,onDelete:()=>u(l)})]}):null}function _(e){let{location:l,onSelect:t,onRemove:n,onDismissMore:i,openMore:s,showMoreButton:o,onClickMore:c,onToggleSave:d,isFocused:u=!1}=e,h=V(),{buildSearchItem:m}=f(),v=H(l.placeID||null,h),x=(0,a.useMemo)(()=>v?m(v):null,[m,v]),{attributes:p,listeners:g,setNodeRef:A,transform:y,transition:j,isDragging:C}=(0,w.gl)({id:l.placeID||""}),N={transform:b.Ks.Transform.toString(y),transition:j};return x?(0,r.jsx)("div",{ref:A,style:N,className:C?"relative z-10 bg-gray-50 opacity-50 shadow-lg":void 0,children:(0,r.jsx)(O,{placeId:l.placeID,locationData:x,disabledFavorites:!1,showMoreButton:null!=o&&o,onSelect:t,openMore:s,onClickMore:c,onDismissMore:i,onRemove:n,onToggleSave:d,showWeather:!0,isFavorite:!0,attributes:{...p,...g},isFocused:u,isSortable:!0})}):null}var K=t(74728);function F(e){let{title:l,onClearAll:t,testId:a}=e,i=(0,n.c3)("Header");return(0,r.jsxs)("div",{className:"flex items-center justify-between py-4","data-testid":a,children:[(0,r.jsx)(N.Ay,{elementType:"h2",variant:"Body.S.Bold",children:l}),t&&(0,r.jsx)("button",{onClick:t,className:"cursor-pointer text-sm font-medium",children:i("clear")})]})}function W(e){let{searches:l,searching:t,onSelectSearch:s,showFavorites:o=!0,recentLocations:c=[],favoriteLocations:d,isUserLoggedIn:u,onClearRecentLocations:h,onRemoveRecentSearchLocation:m,focusedIndex:f=-1}=e,v=(0,n.c3)("Header"),{updatePreferences:x}=(0,g.g)(),{openMore:b,dismissMore:y,isOpen:j}=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:C}=(0,i.A)(),E=V(),S=(0,K.n)({key:"memberSignup",interpolationArgs:{locale:E}}),R=(0,a.useMemo)(()=>u&&(null==d?void 0:d.map(e=>({...e,geocode:e.coordinate,placeId:e.placeID})).sort((e,l)=>(e.position||0)-(l.position||0)))||[],[u,d]),M=(0,a.useMemo)(()=>c.filter(e=>!R.some(l=>l.placeID===e)),[c,R]),U=(0,p.FR)((0,p.MS)(p.AN,{activationConstraint:{distance:8}}),(0,p.MS)(p.uN,{coordinateGetter:w.JR})),P=async e=>{if(!u)return void C(S);if(R.some(l=>l.placeID===e.placeId))x({locations:R.filter(l=>l.placeID!==e.placeId)});else{let l=e.geocode,t=e.displayName||"";if(!l&&e.placeId)try{let r=await (0,A.$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:R.length+1};x({locations:[...R,r]})}else console.debug("Unable to get geocode for location:",e.name||e.placeId)}},B=e=>{x({locations:R.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)(N.Ay,{children:v("loadingResults")}):o&&0===c.length&&0===R.length?(0,r.jsx)("div",{className:"p-6 text-center text-gray-500","data-testid":"location-search-empty-message",children:v("noRecentLocations")}):o?(0,r.jsxs)(r.Fragment,{children:[R.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{title:v("favoritesTitle"),testId:"location-search-favorites-header"}),(0,r.jsx)(p.Mp,{sensors:U,collisionDetection:p.fp,onDragEnd:e=>{let{active:l,over:t}=e;if(t&&l.id!==t.id){let e=R.findIndex(e=>e.placeID===l.id),r=R.findIndex(e=>e.placeID===t.id);x({locations:(0,w.be)([...R],e,r)})}},children:(0,r.jsx)(w.gB,{items:R.map(e=>e.placeID||""),children:(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-favorites-list",children:R.map((e,l)=>(0,r.jsx)(_,{location:e,onToggleSave:P,onSelect:s,onRemove:B,openMore:j(e.placeID||"","favorites"),onClickMore:e=>b(e,"favorites"),onDismissMore:y,showMoreButton:!0,isFocused:l===f},e.placeID))})})})]}),M.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{title:v("recentLocationsTitle"),onClearAll:h,testId:"location-search-recent-header"}),(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-recent-list",children:M.map((e,l)=>{let t=R.length+l;return(0,r.jsx)(O,{placeId:e,showMoreButton:c.length>1,onSelect:s,onToggleSave:P,onDismissMore:y,onClickMore:e=>b(e,"recents"),openMore:j(e,"recents"),onRemove:m,isFocused:t===f},e)})})]})]}):0===l.length?(0,r.jsx)(N.Ay,{children:v("noResults")}):(0,r.jsx)("div",{className:"flex flex-1 flex-col divide-y","data-testid":"location-search-results-list",children:l.map((e,l)=>{let t=R.some(l=>l.placeID===e.placeId);return(0,r.jsx)(O,{placeId:e.placeId,locationData:e,onSelect:s,onToggleSave:P,isFavorite:t,isFocused:l===f},e.placeId)})})})}let X=(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"})]})}),G=a.forwardRef((e,l)=>(0,r.jsx)(y.h,{ref:l,icon:X,...e}));G.displayName="Search";var Q=t(27370);let J=(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"})]})}),Z=a.forwardRef((e,l)=>(0,r.jsx)(y.h,{ref:l,icon:J,...e}));Z.displayName="ChevronLeft";var q=t(89170),Y=t(11181);let $=(0,a.memo)(e=>{let{recentLocationsLength:l}=e,t=(0,n.c3)("Header"),{navigate:a}=(0,i.A)(),s=V(),o=((0,v.z)(),(0,K.n)({key:"memberSignup",interpolationArgs:{locale:s}})),{user:{isUserLoggedIn:c}}=(0,q.J)();return c||l{a(o)},children:[(0,r.jsxs)("div",{className:"items-center justify-between",children:[(0,r.jsx)(N.EY,{variant:"Body.M.Bold",children:t("upsellTitle".concat(l>=4?"2":"1"))}),(0,r.jsx)(N.EY,{variant:"Body.S",children:t("upsellSubtitle".concat(l>=4?"2":"1"))})]}),(0,r.jsx)(Y.A,{className:"size-5"})]})});var ee=t(1843);function el(e){var l;let{className:t,searchContainerRef:n,searchInputRef:i,searchQuery:s,placeholderText:o,searchOpen:c,isMobile:d,canSearch:u,showFavorites:h,searching:m,recentSearches:f,recentLocations:v,favoriteLocations:p,isUserLoggedIn:w=!1,setSearchQuery:g,onSearchOpen:A,onSelectSearch:b,onClearRecentLocations:y,onRemoveRecentSearchLocation:j}=e,[C,N]=(0,a.useState)(-1),[S,R]=(0,a.useState)(!1),M=(0,a.useMemo)(()=>{if(!h)return f.length;let e=w&&(null==p?void 0:p.length)||0,l=new Set(null==p?void 0:p.map(e=>e.placeID));return e+((null==v?void 0:v.filter(e=>!l.has(e)).length)||0)},[h,f.length,w,p,v]);(0,a.useEffect)(()=>{N(-1)},[s,c,M]);let U=(0,a.useCallback)(e=>{c&&0!==M&&("ArrowDown"===e.key?(e.preventDefault(),N(e=>{if(-1===e)return 0;let l=e+1;return l>=M?M-1:l})):"ArrowUp"===e.key&&(e.preventDefault(),N(e=>{let l=e-1;if(l{if(!c)return;let e=e=>{"ArrowDown"===e.key||"ArrowUp"===e.key?(R(!1),U(e)):"Tab"===e.key&&R(!0)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,U]),(0,r.jsxs)("div",{ref:n,className:(0,E.cn)("mx-auto w-full md:max-w-104",c&&"z-50",d&&c&&"fixed top-0 right-0 bottom-0 left-0 h-full bg-white"),"data-testid":"header-search",children:[ee.A&&d&&(0,r.jsx)("div",{className:"flex w-full justify-end",children:(0,r.jsx)(Q.$n,{variant:"ghostUI",className:(0,E.cn)("twcSearchTrigger m-0 p-1",c&&"hidden"),onClick:()=>A(!0),children:(0,r.jsx)(G,{className:"h-5 w-5 text-gray-900"})})}),(0,r.jsxs)("div",{className:(0,E.cn)("relative m-auto w-full md:flex md:flex-1",!c&&"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:[c&&(0,r.jsx)("div",{className:"md:hidden",children:(0,r.jsx)(Q.$n,{variant:"ghostUI",className:"m-0 p-2",onClick:()=>A(!1),children:(0,r.jsx)(Z,{className:"size-6"})})}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)(x.p,{ref:i,value:s,placeholder:o,onChange:e=>g(e.target.value),onClick:()=>A(!0),className:(0,E.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)(G,{className:"size-4 text-gray-900 md:size-5"})})]})]}),c&&(u||h)&&(0,r.jsxs)("div",{className:(0,E.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)(W,{searches:f,searching:m,showFavorites:h,recentLocations:v,onClearAll:()=>g(""),favoriteLocations:p||[],isUserLoggedIn:w,onSelectSearch:b,onClearRecentLocations:y,onRemoveRecentSearchLocation:j,focusedIndex:S?-1:C}),h&&(0,r.jsx)($,{recentLocationsLength:null!=(l=null==v?void 0:v.length)?l:0})]})]})]})}var et=t(56665);function er(e){let{locale:l,className:t}=e,{navigate:m}=(0,i.b)(),[x,p]=(0,a.useState)(""),w=(0,u.d)(x,200),[g,A]=(0,a.useState)(!1),b=(0,v.z)(),[,y]=(0,c.fp)(d.I6),j=(0,a.useRef)(null),C=(0,a.useRef)(null),N=(0,n.c3)("Header"),{recentLocations:E,favoriteLocations:S,clearRecentLocations:R,removeRecentLocation:M}=(0,et.A)(),{user:U}=(0,q.J)(),{isUserLoggedIn:P}=U,B=N("searchPlaceholderText"),I=w.length>=3,D=!w,{data:k,isLoading:T}=(0,o.Ay)(I?["locations",w,"city,locality,neighborhood,postal,airport",l]:null,e=>{let[l,t,r,a]=e;return(0,s.$$)(t,r,a)},{revalidateOnFocus:!1,dedupingInterval:2e3}),{buildSearchItem:L}=f(),V=(0,a.useMemo)(()=>k?k.map(e=>L(e)):[],[L,k]);(0,a.useEffect)(()=>{function e(e){j.current&&!j.current.contains(e.target)&&A(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.useEffect)(()=>{var e;document.body.style.overflow=b&&g?"hidden":"",b&&g&&(null==(e=C.current)||e.focus())},[b,g]);let z=(0,a.useCallback)(e=>{A(!1),e.placeId&&e.geocode&&y(l=>{let t=(null==l?void 0:l.filter(l=>l!==e.placeId))||[];return[e.placeId,...t].slice(0,5)}),e.placeId&&m("".concat(l===h.q?"":"/"+l,"/weather/today/l/").concat(e.placeId))},[m,l,y]);return(0,r.jsx)(el,{className:t,searchContainerRef:j,searchInputRef:C,searchQuery:x,placeholderText:B,searchOpen:g,isMobile:b,canSearch:I,showFavorites:D,searching:T,recentSearches:V,recentLocations:E,favoriteLocations:S,isUserLoggedIn:P,setSearchQuery:p,onSearchOpen:A,onSelectSearch:z,onClearRecentLocations:R,onRemoveRecentSearchLocation:M})}},13737:(e,l,t)=>{"use strict";t.d(l,{Analytics:()=>N});var r=t(76792),a=t(42292),n=t(47193),i=t(1843);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(73675),c=t(75302),d=t(16151),u=t(83531),h=t(79296),m=t(89170),f=t(22154),v=t(95913),x=t(92700),p=t(61e3),w=t(55198),g=t(153),A=t(10997);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})]})}},14260:(e,l,t)=>{"use strict";t.d(l,{default:()=>v});var r=t(76792),a=t(42292),n=t(48260);function i(e){var l;let{firstName:t,isPremium:a}=e,i=null==t||null==(l=t.charAt(0))?void 0:l.toUpperCase();return(0,r.jsxs)("div",{className:(0,n.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,n.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":a}),children:i}),a&&(0,r.jsx)("span",{className:(0,n.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"})]})}var s=t(68751),o=t(9198),c=t(99551),d=t(27370),u=t(89170),h=t(75302),m=t(83531),f=t(26752);function v(){let{user:e,userProfile:l}=(0,u.J)(),t=(0,f.h)(),n=(0,h.md)(m.P9),{isUserLoggedIn:v,isUserPremium:x}=e,[p,w]=(0,a.useState)(!1);return(0,r.jsx)("div",{"data-testid":"header-profile",children:v?(0,r.jsxs)(c.AM,{trigger:"hover",openDelay:100,closeDelay:300,open:p,onOpenChange:w,children:[(0,r.jsx)(c.Wv,{asChild:!0,children:(0,r.jsx)("button",{className:"flex cursor-pointer bg-transparent","data-testid":"header-profile-button",children:(0,r.jsx)(i,{firstName:null==l?void 0:l.firstName,isPremium:x})})}),(0,r.jsx)(c.hl,{className:"z-2000001 p-0",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(o.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)(i,{firstName:null==l?void 0:l.firstName,isPremium:x}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(s.Ay,{variant:"Body.S",children:null==l?void 0:l.firstName}),(0,r.jsx)(s.Ay,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:"Manage Account"})]})]})}),!x&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)(s.Ay,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,r.jsx)(s.Ay,{children:"Try our best radar and forecasting features for weather planning."}),(0,r.jsx)(o.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:(0,r.jsx)(d.$n,{variant:"default",children:"Go Premium"})})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,r.jsx)(d.$n,{variant:"link",onClick:t,"data-testid":"header-profile-signout",children:"Sign Out"})})]})})]}):(0,r.jsx)(o.default,{href:n?"/login":"/signup",children:(0,r.jsx)(d.$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"})})})}},15229:(e,l,t)=>{"use strict";t.d(l,{default:()=>E});var r=t(76792),a=t(42292),n=t(75302),i=t(23233);let s=(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"})]})}),o=a.forwardRef((e,l)=>(0,r.jsx)(i.h,{ref:l,icon:s,...e}));o.displayName="Globe";var c=t(14999),d=t(745),u=t(68751),h=t(27370),m=t(71666),f=t(48260);let v=(0,a.forwardRef)((e,l)=>{let{isImperial:t,isMetric:n,isHybrid:i,expandedRegions:s,LOCALE_DATA:o,handleUnitChange:v,toggleRegion:x,handleLocaleChange:p,inNavigation:w=!1}=e,[g,A]=(0,a.useState)(1);(0,a.useEffect)(()=>{let e=()=>{A(window.innerWidth>=1024?3:window.innerWidth>=768?2:1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let b=[{label:"Imperial",unitName:m.tE,active:t,symbol:"\xb0F"},{label:"Metric",unitName:m.cl,active:n,symbol:"\xb0C"},{label:"Hybrid",unitName:m.Uo,active:i,symbol:"Hybrid"}];return(0,r.jsx)("div",{ref:l,className:(0,f.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)]":!w}),children:(0,r.jsxs)("div",{className:(0,f.cn)("mx-auto max-w-screen-xl",{"px-[15px] py-[10px]":!w}),children:[(0,r.jsx)("div",{className:"flex justify-center border-b",children:b.map(e=>{let{unitName:l,active:t,symbol:a}=e;return(0,r.jsx)(h.$n,{onClick:()=>v(l),variant:"ghost",className:(0,f.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)(h.$n,{onClick:()=>x(e.title),variant:"ghost",className:"flex w-full items-center justify-between rounded-none p-6",children:[(0,r.jsx)(u.Ay,{className:"text-lg font-bold uppercase",children:e.title}),s[e.title]?(0,r.jsx)(c.H,{className:"h-[18px] w-[18px] text-black"}):(0,r.jsx)(d.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/g),", auto)")},children:e.countries.map(e=>(0,r.jsxs)(h.$n,{variant:"link",onClick:()=>p(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))})]})})});v.displayName="SettingsMenuContent";var x=t(32035),p=t(60170),w=t(24847),g=t(33845),A=t(28430),b=t(20031);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:"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"})]})}),j=a.forwardRef((e,l)=>(0,r.jsx)(i.h,{ref:l,icon:y,...e}));j.displayName="ChevronUp";var C=t(52350),N=t(55198);function E(e){var l;let{inNavigation:t=!1,onDropdownToggle:i}=e,[s,c]=(0,a.useState)(!1),d=(0,a.useCallback)(e=>{let l=null!=e?e:!s;i&&i(l),c(l)},[s,i]),u=(0,a.useRef)(null),y=(0,a.useRef)(null),[E,S]=(0,a.useState)({}),R=(0,n.md)(x.c2),M=(0,n.md)(x.PF),U=(0,n.md)(x.Vp),P=(null==(l=(0,N.useParams)())?void 0:l.locale)||"en-US",B=P.split("-")[1],{updatePreferences:I}=(0,A.g)(),D=(0,n.md)(g.JK);(0,a.useEffect)(()=>{var e;let l=null==(e=(0,w.getCookie)("unitOfMeasurement"))?void 0:e.toString();if(console.log("UNITS_COOKIE",l),l){let e=(0,m.Bu)(l),t=null==e?void 0:e.name,r=null==D?void 0:D.unit;t&&t!==r&&I({unit:t})}},[I,null==D?void 0:D.unit]);let k=async e=>{try{await I({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},T=async e=>{try{let l=(0,p.vL)(e);await I({locale:l}),(0,w.setCookie)("sitePref",e,{domain:".".concat(window.location.hostname)}),d(!1);let t=e===b.q?"":e;window.location.href="/".concat(t)}catch(e){console.error("Failed to update locale preference:",e)}};return(0,a.useEffect)(()=>{function e(e){s&&u.current&&y.current&&!u.current.contains(e.target)&&!y.current.contains(e.target)&&d(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[d,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.$n,{ref:u,variant:"ghostUI",className:(0,f.cn)("text-brand-active ml-[10px] flex cursor-pointer items-center px-0 md:px-[6px] md:text-gray-900"),onClick:()=>{d()},children:[(0,r.jsx)(o,{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:B}),(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:R?"\xb0F":"\xb0C"}),s?(0,r.jsx)(j,{className:"text-brand-active h-5 w-auto md:text-gray-900"}):(0,r.jsx)(C.y,{className:"text-brand-active h-5 w-auto md:text-gray-900"})]}),s&&(0,r.jsx)(v,{ref:y,isImperial:R,isMetric:M,isHybrid:U,locale:P,expandedRegions:E,LOCALE_DATA:p.mg,handleUnitChange:k,toggleRegion:e=>{S(l=>{if(l[e])return{...l,[e]:!1};let t={};return Object.keys(l).forEach(e=>{t[e]=!1}),{...t,[e]:!0}})},handleLocaleChange:T,inNavigation:t})]})}},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])}},20031:(e,l,t)=>{"use strict";t.d(l,{q:()=>r});let r="en-US"},20398:(e,l,t)=>{"use strict";t.d(l,{AdminHeaderWrapper:()=>j});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 v=t(58820);let x=(0,v.createServerReference)("409f687d113788292d7946a38133ebf77942cc753f",v.callServer,void 0,v.findSourceMapURL,"translateDebugDataAction");var p=t(61e3);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(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})}},22154:(e,l,t)=>{"use strict";t.d(l,{e:()=>m});var r=t(42292),a=t(16151),n=t(75302),i=t(95913),s=t(8950),o=t(79296),c=t(1313),d=t(83531),u=t(1843),h=t(89170);let m=()=>{var e,l,t,m,f;let v=(0,a.G)(),{user:{isUserLoggedIn:x,isUserPremium:p,subscriptionTier:w}}=(0,h.J)(),[g,A]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),j=null!=p&&p,C=function(e){var l;return null!=(l=s.pj[e])?l:s.pj[s.C0.none]}(w),N=(0,n.md)(o.Mu),E=(0,n.md)(o.cc),S=(0,n.md)(d.pX),R=(0,n.md)(d.P9),M=u.A?(null==(l=window)||null==(e=l.DprSdk)?void 0:e.getUserConsent("sale-of-data"))!==!1:void 0,U=u.A?(null==(m=window)||null==(t=m.DprSdk)?void 0:t.getUserConsent("sensitive-data"))!==!1:void 0,P=null!=(f=(0,c.getCookie)("subscription"))?f:"",{productID:B=null,expirationDateTime:I=null,transactionDateTime:D=null,firstTransactionDateTime:k=null,autoRenew:T=null,price:L=null,productName:V=null}=(0,i.mT)(P)||{},z=(0,r.useMemo)(()=>({premium:j,premiumProductTier:C,premiumExpiration:I,premiumStart:D,premiumFirstTransactionDate:k,premiumProductId:B,premiumProductAutoRenew:T,premiumPrice:L,premiumProductName:V,isRegisteredUser:x||R||!1,isLoggedIn:x,"Amplitude.device_id":S,$Gender:E,$FirstName:N,saleOfDataAuthorization:M,sensitiveDataAuthorization:U,devUser:!1}),[j,C,I,D,k,B,T,L,V,S,x,R,N,E,M,U]);(0,r.useEffect)(()=>{(0,i.Js)(z)&&!g&&A(!0)},[z,g]);let H=(0,r.useCallback)(()=>{for(let e in z)void 0===z[e]&&delete z[e];if(v&&g&&!b){var e,l,t;let r=null==(t=window.mParticle)||null==(l=t.Identity)||null==(e=l.getCurrentUser)?void 0:e.call(l);if(!r)return void console.warn("MParticle: No current user");r.setUserAttributes(z),y(!0),console.debug("MParticle: User attributes set - ",z)}},[v,z,g,b]);return{userAttributes:z,setUserAttribute:(0,r.useCallback)((e,l)=>{var t,r,a;if(!v)return void console.warn("MParticle is not initialized");let n=null==(a=window.mParticle)||null==(r=a.Identity)||null==(t=r.getCurrentUser)?void 0:t.call(r);if(!n)return void console.warn("MParticle: No current user");n.setUserAttribute(e,l),console.debug("MParticle: User attribute set - ".concat(e))},[v]),setUserAttributes:H,removeUserAttribute:(0,r.useCallback)(e=>{var l,t,r;if(!v)return void console.warn("MParticle is not initialized");let a=null==(r=window.mParticle)||null==(t=r.Identity)||null==(l=t.getCurrentUser)?void 0:l.call(t);if(!a)return void console.warn("MParticle: No current user");a.removeUserAttribute(e),console.debug("MParticle: User attribute removed - ".concat(e))},[v])}}},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}},23322:(e,l,t)=>{"use strict";t.d(l,{default:()=>P});var r=t(76792),a=t(42292),n=t(23233);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(89170),u=t(48260),h=t(7192),m=t.n(h),f=t(83357),v=t.n(f),x=t(30175),p=t(98679),w=t(38580),g=t(56665),A=t(53876),b=t(9645),y=t(74728),j=t(61e3),C=t(75302),N=t(55198);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)(S,{onDelete:()=>{h(t),m(t)}})]})};function S(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 R=t(87103),M=t(44615);let U=e=>{let{placeId:l}=e,t=(0,C.md)(b.X),{data:a}=(0,M.Ay)(l?["location-data",l]:null,()=>(0,R.$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)})},P=()=>{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