(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7854],{7548:(e,t,l)=>{"use strict";l.d(t,{f:()=>i});var r=l(19948),a=l(91712),n=l(80889);let s=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Facebook"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{fill:"currentColor",d:"M8 0a8 8 0 0 0-1.932 15.765v-5.32h-1.65V8h1.65V6.947c0-2.723 1.232-3.985 3.905-3.985.507 0 1.382.1 1.74.198v2.216c-.19-.02-.518-.03-.925-.03-1.312 0-1.818.498-1.818 1.79V8h2.613l-.45 2.445H8.97v5.496A8 8 0 0 0 8 0"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})}),i=a.forwardRef((e,t)=>(0,r.jsx)(n.h,{ref:t,icon:s,...e}));i.displayName="Facebook"},9602:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>r});let r={src:"/_next/static/media/georgia.335ca970.svg",height:34,width:100,blurWidth:0,blurHeight:0}},11566:(e,t,l)=>{"use strict";l.d(t,{default:()=>_});var r=l(19948),a=l(78702),n=l(91712),s=l(29225),i=l(79591),o=l(34025),c=l(24484),d=l(48886),u=l(80889);let h=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered Premium"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M.612 23.523v-1.505h1.012q.525 0 .812-.309c.287-.309.287-.482.287-.828q0-.52-.287-.828c-.287-.308-.462-.309-.812-.309H0v3.779zm.974-2.041H.611V20.28h.975q.232 0 .363.122c.131.122.13.198.13.349v.26q0 .228-.13.349c-.13.121-.208.122-.363.122m2.42 2.041v-1.527h.753l.758 1.527h.682l-.817-1.592q.363-.109.55-.376c.187-.267.187-.403.187-.674q0-.525-.292-.831c-.292-.306-.462-.306-.801-.306h-1.63v3.779h.612zm.975-2.041h-.975V20.28h.975q.232 0 .363.122c.131.122.13.198.13.349v.26q0 .228-.13.349c-.13.121-.208.122-.363.122m4.38 2.041v-.541H7.553v-1.104h1.64v-.541h-1.64v-1.05h1.808v-.541h-2.42v3.779h2.42zm1.375 0v-2.891h.027l.298.612.828 1.51.828-1.51.298-.612h.027v2.891h.585v-3.779h-.693l-1.012 1.922h-.032l-1.012-1.922h-.725v3.779h.585zm5.306 0v-.498h-.52v-2.783h.52v-.498h-1.646v.498h.514v2.783h-.514v.498zm2.16.065q.39 0 .658-.097c.268-.097.324-.163.436-.295q.168-.198.244-.501c.076-.303.076-.442.076-.72v-2.231h-.601v2.328q0 .482-.184.725c-.184.243-.332.244-.628.244s-.505-.081-.628-.244-.184-.404-.184-.725v-2.328h-.601v2.231q0 .417.076.72c.076.303.132.369.244.501q.168.198.436.295c.268.097.398.097.658.097zm2.907-.065v-2.891h.027l.298.612.828 1.51.828-1.51.298-.612h.027v2.891H24v-3.779h-.693l-1.012 1.922h-.032l-1.012-1.922h-.725v3.779h.585zM12 0c5.891 0 10.667 4.776 10.667 10.667 0 2.907-1.163 5.543-3.049 7.467H4.384a10.63 10.63 0 0 1-3.049-7.467C1.335 4.776 6.111 0 12.002 0z"})]})}),m=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:h,...e}));m.displayName="AvatarRegisteredPremiumFilled";let f=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered Premium"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M.812 23.912v-2.007h1.35q.7 0 1.083-.411c.383-.411.383-.642.383-1.104q0-.693-.383-1.104c-.383-.411-.616-.411-1.083-.411H-.004v5.039h.816zm1.299-2.722H.812v-1.603h1.299q.31 0 .484.162c.174.162.173.263.173.466v.346q0 .303-.173.466c-.173.163-.277.162-.484.162zm3.227 2.722v-2.036h1.003l1.011 2.036h.91l-1.09-2.122q.484-.144.733-.502c.249-.358.249-.538.249-.899q0-.7-.39-1.108c-.39-.408-.616-.408-1.068-.408H4.523v5.039zm1.299-2.722H5.338v-1.603h1.299q.31 0 .484.162c.174.162.173.263.173.466v.346q0 .303-.173.466c-.173.163-.277.162-.484.162zm5.84 2.722v-.722h-2.411v-1.473h2.187v-.722h-2.187v-1.4h2.411v-.722H9.25v5.039zm1.834 0v-3.855h.036l.397.816 1.104 2.014 1.104-2.014.397-.816h.036v3.855h.78v-5.039h-.924l-1.35 2.563h-.043l-1.35-2.563h-.967v5.039zm7.074 0v-.664h-.693v-3.71h.693v-.664h-2.194v.664h.686v3.71h-.686v.664zm2.88.086q.52 0 .877-.13c.357-.13.432-.218.581-.393q.223-.264.325-.668c.102-.404.101-.59.101-.96v-2.974h-.801v3.104q0 .643-.245.967c-.245.324-.443.325-.837.325q-.592 0-.837-.325c-.245-.325-.245-.539-.245-.967v-3.104h-.801v2.974q0 .556.101.96c.101.404.176.492.325.668q.224.264.581.393c.357.129.531.13.877.13zm3.876-.086v-3.855h.036l.397.816 1.104 2.014 1.104-2.014.397-.816h.036v3.855h.78v-5.039h-.924l-1.35 2.563h-.043l-1.35-2.563h-.967v5.039zM15.996.002c5.891 0 10.667 4.776 10.667 10.667 0 2.322-.742 4.471-2.002 6.223h-1.53a9.43 9.43 0 0 0 2.332-6.223c0-5.228-4.238-9.467-9.467-9.467S6.529 5.44 6.529 10.669a9.43 9.43 0 0 0 2.333 6.223h-1.53a10.62 10.62 0 0 1-2.002-6.223C5.33 4.778 10.106.002 15.997.002z"})]})}),v=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:f,...e}));v.displayName="AvatarRegisteredPremium";let x=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered Ad Free"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"m6.264 23.997-1.737-5.119H3.429l-1.737 5.119h.823l.458-1.372h1.921l.458 1.372h.911zm-1.556-2.102H3.154l.73-2.286.823 2.286zm2.286 2.102h1.828c1.279 0 2.193-.823 2.193-2.561s-.823-2.561-2.193-2.561H6.994zm.824-.732v-3.656h1.005c.73 0 1.279.458 1.279 1.372v.823c0 .914-.549 1.372-1.279 1.372H7.818zm6.766.732v-2.193h2.103v-.73h-2.103v-1.463h2.377v-.73h-3.2V24zm4.114-2.102h1.005l1.005 2.103h.914l-1.098-2.193c.64-.184 1.005-.73 1.005-1.463 0-.914-.549-1.554-1.463-1.554h-2.193V24h.823zm0-.642v-1.647h1.279c.458 0 .64.184.64.64v.365c0 .365-.274.64-.64.64l-1.279.003zm7.222 2.744v-.73h-2.468v-1.463h2.286v-.73h-2.193v-1.463h2.468v-.73h-3.291V24zm4.388 0v-.73H27.84v-1.463h2.193v-.73H27.84v-1.463h2.468v-.73h-3.291V24zM8.134 15.422a9.6 9.6 0 0 1-1.069-3.949q-.014-.264-.016-.528 0-.725.101-1.442a9.4 9.4 0 0 1 .596-2.214A9.3 9.3 0 0 1 9.564 4.42a9.48 9.48 0 0 1 5.07-2.851 10 10 0 0 1 1.383-.181 10 10 0 0 1 1.248.005 9.5 9.5 0 0 1 4.573 1.53q.764.501 1.419 1.134a9.5 9.5 0 0 1 2.698 4.891q.12.567.168 1.147a9.6 9.6 0 0 1-.137 2.652A9.7 9.7 0 0 1 25.261 15a9.6 9.6 0 0 1-.963 1.636h1.644a10.9 10.9 0 0 0 1.357-3.451q.123-.594.181-1.196.033-.318.039-.64.002-.03.008-.06v-.733c-.003-.031-.01-.065-.01-.096a9.4 9.4 0 0 0-.135-1.352 10.8 10.8 0 0 0-.88-2.83 10.8 10.8 0 0 0-1.724-2.615 10.9 10.9 0 0 0-3.053-2.398 10.7 10.7 0 0 0-2.83-1.028q-.637-.136-1.282-.194c-.645-.058-.86-.049-1.289-.041a11 11 0 0 0-4.466 1.059 10.82 10.82 0 0 0-6.119 8.736q-.04.39-.049.779c-.003.137-.016.274-.01.409q.015.462.047.924c.023.347.075.691.137 1.033a11 11 0 0 0 1.382 3.69h1.642a9 9 0 0 1-.751-1.212z"})]})}),p=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:x,...e}));p.displayName="UserRegisteredAdfree";let w=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered Ad Free"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"m4.767 22.931-1.269-3.723h-.757l-1.269 3.723h.613l.325-1.008h1.392l.336 1.008zm-1.114-1.526H2.554l.539-1.643h.027zm1.691 1.526h1.317c.949 0 1.573-.619 1.573-1.861s-.624-1.861-1.573-1.861H5.344zm.603-.534v-2.656h.715c.555 0 .928.357.928 1.029v.597c0 .672-.373 1.029-.928 1.029zm4.901.534V21.31h1.531v-.533h-1.531v-1.035h1.723v-.533h-2.325v3.723zm3.041-1.505h.741l.747 1.504h.672l-.805-1.568c.475-.139.725-.507.725-1.035 0-.688-.411-1.12-1.077-1.12h-1.605v3.723h.603zm0-.506v-1.184h.96c.304 0 .485.165.485.464v.256c0 .299-.181.464-.485.464zm5.277 2.011v-.533h-1.781V21.31h1.616v-.533h-1.616v-1.035h1.781v-.533h-2.384v3.723zm3.161 0v-.533h-1.781V21.31h1.616v-.533h-1.616v-1.035h1.781v-.533h-2.384v3.723zm-2.068-5.264H3.741a10.56 10.56 0 0 1-2.408-6.727C1.333 5.07 6.109.312 12 .312S22.667 5.07 22.667 10.94c0 2.552-.903 4.894-2.408 6.727"})]})}),g=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:w,...e}));g.displayName="UserRegisteredAdfreeFilled";let y=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User anonymous"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M11.999 11.337a3.669 3.669 0 1 0 0-7.337 3.669 3.669 0 0 0 0 7.337m0 1.57c-3.796 0-6.874 2.565-6.874 5.33v.774c0 .546.493.99 1.102.99h11.545c.609 0 1.103-.444 1.103-.99v-.774c0-2.765-3.079-5.33-6.876-5.33"})]})}),b=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:y,...e}));b.displayName="UserAnonymous";let j=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0m0 1.35C6.118 1.35 1.35 6.118 1.35 12S6.118 22.65 12 22.65 22.65 17.882 22.65 12 17.882 1.35 12 1.35"})]})}),N=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:j,...e}));N.displayName="UserRegisteredStroke";let C=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Registered"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12"})]})}),A=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:C,...e}));A.displayName="UserRegisteredBackground";let S=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"User Anonymous"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0m0 1.35C6.118 1.35 1.35 6.118 1.35 12c0 3.249 1.455 6.159 3.75 8.112V19.8l.005-.213A4.4 4.4 0 0 1 9.5 15.4l5.213.005A4.4 4.4 0 0 1 18.9 19.8l.001.312A10.63 10.63 0 0 0 22.65 12c0-5.882-4.768-10.65-10.65-10.65m0 3.8a4.3 4.3 0 1 1 0 8.6 4.3 4.3 0 0 1 0-8.6"})]})}),k=n.forwardRef((e,t)=>(0,r.jsx)(u.h,{ref:t,icon:S,...e}));k.displayName="UserAvatarFilledAlt";let U=(0,o.F)("w-auto",{variants:{variant:{default:"fill-white text-white",brand:"fill-[#005986] text-[#005986]"},size:{default:"h-[27px]",sm:"h-[18px]",lg:"h-[56px]"}},defaultVariants:{variant:"default",size:"default"}}),T=(0,o.F)("absolute font-medium text-white",{variants:{variant:{default:"",premium:"",standard:""},size:{default:"",sm:"",lg:""}},defaultVariants:{size:"default"},compoundVariants:[{variant:"premium",size:"sm",className:"top-[2px] text-[8px]"},{variant:"premium",size:"default",className:"top-[5px] text-xs"},{variant:"premium",size:"lg",className:"top-3 text-xl"},{variant:"standard",size:"sm",className:"top-[3px] text-[8px]"},{variant:"standard",size:"default",className:"top-[7px] text-xs"},{variant:"standard",size:"lg",className:"top-[17px] text-xl"}]});function P(e){var t;let{firstName:l,isLoggedIn:a,isPremium:n,subscriptionTier:s,stroke:i=!0,variant:o,size:u,className:h}=e,f=null==l||null==(t=l.charAt(0))?void 0:t.toUpperCase(),{type:x,Icon:w}=function(e){let{isPremium:t,isLoggedIn:l,initial:r,subscriptionTier:a,stroke:n}=e;if(t){let e={type:"premium",Icon:m};switch(a){case d.C.premium:n?e.Icon=v:e.Icon=m;break;case d.C.adFree:n?e.Icon=p:e.Icon=g}return e}let s={type:"standard",Icon:b};return!0===(r&&l)?n?s.Icon=N:s.Icon=A:n?s.Icon=k:s.Icon=b,s}({isPremium:n,isLoggedIn:a,initial:f,subscriptionTier:s,stroke:i});return(0,r.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,r.jsx)(w,{className:(0,c.cn)(U({variant:o,size:u}),h)}),f?(0,r.jsx)("span",{className:(0,c.cn)(T({variant:x,size:u})),children:f}):null]})}var I=l(81999),E=l(17343),L=l(152),M=l(97387);let R=e=>{let{href:t,children:l,className:n}=e;return(0,r.jsx)(a.default,{href:t,className:(0,c.cn)("flex h-6 cursor-pointer items-center justify-center gap-0.5 text-nowrap rounded-lg p-2 text-[0.625rem] font-semibold uppercase sm:border sm:border-white",n),children:l})};function D(){let e=(0,L.md)(M.P9),[t,l]=(0,n.useState)(!1);return e?(0,r.jsxs)("div",{children:[(0,r.jsxs)(R,{href:"/login",className:"hidden sm:flex",children:[(0,r.jsx)(P,{isLoggedIn:!1,stroke:!1,size:"sm"}),"SIGN IN"]}),(0,r.jsx)(R,{href:"/login",className:"flex items-center sm:hidden",children:(0,r.jsx)(P,{isLoggedIn:!1})})]}):(0,r.jsxs)(E.AM,{trigger:"hover",openDelay:0,closeDelay:300,open:t,onOpenChange:l,children:[(0,r.jsx)(E.Wv,{asChild:!0,children:(0,r.jsxs)("button",{className:"flex items-center",children:[(0,r.jsxs)("div",{className:(0,c.cn)("flex h-6 cursor-pointer items-center justify-center gap-0.5 text-nowrap rounded-lg p-2 text-[0.625rem] font-semibold uppercase md:border md:border-white","hidden md:flex"),children:[(0,r.jsx)(P,{isLoggedIn:!1,stroke:!1,size:"sm"}),"SIGN UP"]}),(0,r.jsx)("div",{className:"flex items-center justify-center md:hidden",children:(0,r.jsx)(P,{isLoggedIn:!1})})]})}),(0,r.jsx)(E.hl,{align:"end",alignOffset:-8,className:"px-0 pb-0",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 border-b p-4",children:[(0,r.jsx)(I.Ay,{variant:"Title.S",className:"font-bold",children:"Create account"}),(0,r.jsx)(I.Ay,{children:"Save your favourite locations and forecast preferences, and set up your own weather dashboard."}),(0,r.jsx)("div",{className:"py-1",children:(0,r.jsx)(a.default,{href:"/signup",children:(0,r.jsx)(s.$n,{className:"bg-[#252422] px-4 py-2.5 text-sm",children:"Create Account"})})}),(0,r.jsxs)(I.Ay,{variant:"Body.S",children:["Already have an account? ",(0,r.jsx)(a.default,{href:"/login",children:"Sign In"})]})]}),(0,r.jsx)("div",{className:"p-4",children:(0,r.jsx)(a.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:"Try Premium For Free"})})]})})]})}function z(e){let{user:t,userProfile:l,logout:i}=e,[o,c]=(0,n.useState)(!1),{isUserLoggedIn:d,isUserPremium:u,subscriptionTier:h}=t,m=async()=>{try{await i()}catch(e){console.error("Logout failed:",e)}};return(0,r.jsxs)(E.AM,{trigger:"hover",openDelay:100,closeDelay:300,open:o,onOpenChange:c,children:[(0,r.jsx)(E.Wv,{asChild:!0,children:(0,r.jsx)("button",{className:"flex cursor-pointer items-center rounded-md border-white bg-transparent hover:border-white hover:bg-transparent hover:text-white","data-testid":"header-profile-button",children:(0,r.jsx)(P,{firstName:null==l?void 0:l.firstName,isLoggedIn:d,isPremium:u,subscriptionTier:h})})}),(0,r.jsx)(E.hl,{className:"p-0",children:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(a.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)(P,{firstName:null==l?void 0:l.firstName,isLoggedIn:d,isPremium:u,subscriptionTier:h,stroke:!1,size:"lg",variant:"brand"}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(I.Ay,{variant:"Body.S",children:null==l?void 0:l.firstName}),(0,r.jsx)(I.Ay,{className:"text-sm text-gray-500 hover:text-gray-700","data-testid":"header-profile-account",children:"Manage Account"})]})]})}),!u&&(0,r.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,r.jsx)(I.Ay,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,r.jsx)(I.Ay,{children:"Try our best radar and forecasting features for weather planning."}),(0,r.jsx)(a.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",children:(0,r.jsx)(s.$n,{variant:"default",children:"Go Premium"})})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,r.jsx)(s.$n,{variant:"link",onClick:m,"data-testid":"header-profile-signout",children:"Sign Out"})})]})})]})}function _(){let{user:e,userProfile:t,logout:l}=(0,i.J)(),{isUserLoggedIn:a}=e;return(0,r.jsx)("div",{"data-testid":"header-profile",children:a?(0,r.jsx)(z,{user:e,userProfile:t,logout:l}):(0,r.jsx)(D,{})})}},13861:(e,t,l)=>{"use strict";l.d(t,{l:()=>u});var r=l(152),a=l(23733),n=l(30651),s=l(97387),i=l(79591),o=l(6482),c=l(33949),d=l(55184);function u(){let{user:{isUserLoggedIn:e}}=(0,i.J)(),[t,l]=(0,r.fp)(a.J),[u,h]=(0,r.fp)(s.YA);(0,d.Ay)(e?"upsx/preferences":null,()=>n._.preference.getPreference(),{onSuccess(e){m(e)}});let m=e=>{let r={...t,...e};return l(r),h({...u,...e}),r},f=async t=>{if(!e)return null;try{await n._.preference.updatePreference(t)}catch(e){return console.error("Failed to sync preferences with server:",e),null}};return async t=>{try{let l=m(t);if(null==t?void 0:t.unit){let e=(0,o.xP)(t.unit),l=(null==e?void 0:e.code)||"e";l&&(0,c.setCookie)(o.lr,l,{domain:"weather.com"})}return e&&await f(l),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}}}},14231:(e,t,l)=>{"use strict";l.d(t,{H:()=>i});var r=l(19948),a=l(91712),n=l(80889);let s=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Minus"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H4.8a.8.8 0 1 0 0 1.6h6.4a.8.8 0 0 0 .8-.8"})]})}),i=a.forwardRef((e,t)=>(0,r.jsx)(n.h,{ref:t,icon:s,...e}));i.displayName="Minus"},15632:(e,t,l)=>{"use strict";t.O=s;let r=l(54714),a=l(82737),n=l(58704);async function s(e,t){let l=(0,a.urlFrom)((0,n.getMediaAssetsByIdUrlConfig)({assetId:e,limit:t})),s=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300,tags:[e]}});return await (0,r.handleFetchResponse)(s)}},22670:(e,t,l)=>{"use strict";l.d(t,{Analytics:()=>T});var r=l(19948),a=l(91712),n=l(48537),s=l(80531);if(s.A){let e=(0,n.kB)();e||(0,n.Hg)(),(0,n.Wy)(e)}let i=()=>null;var o=l(4461),c=l(152),d=l(48439),u=l(97387),h=l(27472),m=l(23733);let f=(0,h.eU)(e=>{var t;return null==(t=e(m.U))?void 0:t.email}),v=(0,h.eU)(e=>{var t;return null==(t=e(m.U))?void 0:t.firstName}),x=(0,h.eU)(e=>{var t;return null==(t=e(m.U))?void 0:t.gender});(0,h.eU)(e=>{var t;return null==(t=e(m.U))?void 0:t.emailVerified});var p=l(79591),w=l(76361),g=l(33949),y=l(99580),b=l(6681),j=l(34158),N=l(72185),C=l(47139);let A=new Date().getTime(),S=(0,C.s)(()=>{window.scrollY>k&&(k=window.scrollY)},250);s.A&&window.addEventListener("scroll",S);let k=s.A&&window.innerHeight>0?window.innerHeight:0,U=()=>{(()=>{let e="us2-fb061d169ced8343850163112c402d41",t=(0,d.G)(),l=(0,a.useRef)(t),{user:{isUserLoggedIn:r,userID:n}}=(0,p.J)(),s=(0,c.md)(f),i=r?n:null,h=r?s:"",m=(0,c.md)(u.pX),v=(e=>{let{hasInvokedMPInit:t,apiKey:l,isUserLoggedIn:r,customerid:a,email:n,other:s}=e;return!t&&l&&s&&(r&&a&&n||!r)})({hasInvokedMPInit:l.current,apiKey:e,isUserLoggedIn:r,customerid:i,email:h,other:m});(0,a.useEffect)(()=>{if(!e)return void console.error("MParticle API key is required");if(v){l.current=!0;let t={isDevelopmentMode:!1,logLevel:"warning",identifyRequest:{userIdentities:{email:h,customerid:i,other:m}},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:1},identityCallback:e=>{if(null==e?void 0:e.getUser()){let t=e.getUser().getMPID();t&&(console.debug("MParticle: Identity callback triggered",t),localStorage.setItem("wxu-web/keyval:mparticleUser",JSON.stringify({value:{mpid:t},updatedAt:Date.now()})))}}};console.debug("Mparticle initialized with config:",t),o.A.init(e,t)}},[v,e,!1,i,h,m])})();let{setUserAttributes:e}=(()=>{var e,t,l,r,n;let i=(0,d.G)(),{user:{isUserLoggedIn:h,isUserPremium:m,subscriptionTier:f}}=(0,p.J)(),[y,b]=(0,a.useState)(!1),[j,N]=(0,a.useState)(!1),C=null!=m&&m,A=(0,w.AI)(f),S=(0,c.md)(v),k=(0,c.md)(x),U=(0,c.md)(u.pX),T=(0,c.md)(u.P9),P=s.A?(null==(t=window)||null==(e=t.DprSdk)?void 0:e.getUserConsent("sale-of-data"))!==!1:void 0,I=s.A?(null==(r=window)||null==(l=r.DprSdk)?void 0:l.getUserConsent("sensitive-data"))!==!1:void 0,E=null!=(n=(0,g.getCookie)("subscription"))?n:"",{productID:L=null,expirationDateTime:M=null,transactionDateTime:R=null,firstTransactionDateTime:D=null,autoRenew:z=null,price:_=null,productName:K=null}=(0,w.mT)(E)||{},F=(0,a.useMemo)(()=>({premium:C,premiumProductTier:A,premiumExpiration:M,premiumStart:R,premiumFirstTransactionDate:D,premiumProductId:L,premiumProductAutoRenew:z,premiumPrice:_,premiumProductName:K,isRegisteredUser:h||T||!1,isLoggedIn:h,"Amplitude.device_id":U,$Gender:k,$FirstName:S,saleOfDataAuthorization:P,sensitiveDataAuthorization:I,devUser:!1}),[C,A,M,R,D,L,z,_,K,U,h,T,S,k,P,I]);(0,a.useEffect)(()=>{(0,w.Js)(F)&&!y&&b(!0)},[F,y]);let H=(0,a.useCallback)(()=>{for(let e in F)void 0===F[e]&&delete F[e];if(i&&y&&!j){var e,t;let l=null===o.A||void 0===o.A||null==(t=o.A.Identity)||null==(e=t.getCurrentUser)?void 0:e.call(t);if(!l)return void console.warn("MParticle: No current user");l.setUserAttributes(F),N(!0),console.debug("MParticle: User attributes set - ",F)}},[i,F,y,j]);return{setUserAttribute:(0,a.useCallback)((e,t)=>{var l,r;if(!i)return void console.warn("MParticle is not initialized");let a=null===o.A||void 0===o.A||null==(r=o.A.Identity)||null==(l=r.getCurrentUser)?void 0:l.call(r);if(!a)return void console.warn("MParticle: No current user");a.setUserAttribute(e,t),console.debug("MParticle: User attribute set - ".concat(e))},[i]),setUserAttributes:H,removeUserAttribute:(0,a.useCallback)(e=>{var t,l;if(!i)return void console.warn("MParticle is not initialized");let r=null===o.A||void 0===o.A||null==(l=o.A.Identity)||null==(t=l.getCurrentUser)?void 0:t.call(l);if(!r)return void console.warn("MParticle: No current user");r.removeUserAttribute(e),console.debug("MParticle: User attribute removed - ".concat(e))},[i])}})(),t=(()=>{let e=(0,d.G)(),t=(0,y.N)(),[l,r]=(0,a.useState)(!1),s=(0,a.useRef)(!1),i=(0,a.useMemo)(()=>({...t}),[t]);return(0,a.useEffect)(()=>{(0,w.Js)(i)&&!l&&r(!0)},[i,l]),(0,a.useCallback)(async()=>{if((0,n.mj)()&&e&&l&&!s.current)try{var t;null===o.A||void 0===o.A||null==(t=o.A.logEvent)||t.call(o.A,"session-start",o.A.EventType.Other,i),s.current=!0,(0,n.SZ)(),console.debug('MParticle: Event "session-start" tracked - sessionId: '.concat(i.sessionId))}catch(e){console.error('MParticle: Event "session-start" failed',e)}},[e,i,l])})(),l=(()=>{let e=(0,d.G)(),t=(0,j.usePathname)(),l=(0,y.N)(),r=(0,N.A)(),[n,s]=(0,a.useState)(!1),i=(0,a.useRef)(!1),c=(0,a.useMemo)(()=>({author:(null==r?void 0:r.author)||"",contentId:null==r?void 0:r.contentId,publishDate:null==r?void 0:r.publishDate,collection:null==r?void 0:r.collection,entitlements:null==r?void 0:r.entitlements,createdDate:null==r?void 0:r.createdDate,teaserTitle:"",title:"",seoTitle:"",...l,url:t?(0,w.EY)(t):""}),[l,r,t]);return(0,a.useEffect)(()=>{(0,w.Js)(c)&&!n&&s(!0)},[c,n]),(0,a.useCallback)(async()=>{if((null==c?void 0:c.pageId)==="article"&&e&&n&&!i.current)try{var t;null===o.A||void 0===o.A||null==(t=o.A.logEvent)||t.call(o.A,"article-viewed",o.A.EventType.Other,c),console.debug('MParticle: Event "article-viewed" tracked - '.concat(null==c?void 0:c.pageId)),i.current=!0}catch(e){console.error('MParticle: Event "article-viewed" failed',e)}},[e,c,n])})(),r=(()=>{let e=(0,d.G)(),t=(0,y.N)(),[l,r]=(0,a.useState)(!1),s=(0,a.useRef)(!1),i=(0,a.useMemo)(()=>({...t}),[t]);return(0,a.useEffect)(()=>{(0,w.Js)(i)&&!l&&r(!0)},[i,l]),(0,a.useCallback)(async()=>{if(e&&l&&!s.current)try{var t;null===o.A||void 0===o.A||null==(t=o.A.logEvent)||t.call(o.A,"page-viewed",o.A.EventType.Other,i),s.current=!0,(0,n.C)(),console.debug('MParticle: Event "page-viewed" tracked - '.concat(i.pageId))}catch(e){console.error('MParticle: Event "page-viewed" failed',e)}},[e,i,l])})(),i=(()=>{var e,t;let{effectiveLocation:l}=(0,b.s)({}),r=(0,d.G)(),i=(0,y.N)(),[c,u]=(0,a.useState)(!1),h=(0,a.useRef)(!1),m=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{(null==l?void 0:l.geocode)&&(m.current=l.geocode)},[null==l?void 0:l.geocode]);let f=null==l||null==(t=l.geocode)||null==(e=t.split)?void 0:e.call(t,","),v=(null==f?void 0:f[0])?parseFloat(f[0]):void 0,x=(null==f?void 0:f[1])?parseFloat(f[1]):void 0,p=s.A&&(0,n.mj)(),g=(0,a.useMemo)(()=>({...i,latitude:v,longitude:x}),[i,v,x]);return(0,a.useEffect)(()=>{(0,w.Js)(g)&&!c&&u(!0)},[g,c]),(0,a.useCallback)(async()=>{let e=g.latitude,t=g.longitude;if(r&&c&&!h.current&&e&&t&&p)try{var a;null===o.A||void 0===o.A||null==(a=o.A.logEvent)||a.call(o.A,"location-viewed",o.A.EventType.Other,g),h.current=!0,console.debug('MParticle: Event "location-viewed" tracked - '.concat((null==l?void 0:l.displayName)||"Unknown location"))}catch(e){console.error('MParticle: Event "location-viewed" failed',e)}},[r,g,c,l,p])})();return(()=>{let e=(0,y.N)();(0,a.useEffect)(()=>{let t=()=>{if(o.A.isInitialized()){let l=(new Date().getTime()-A)/1e3,r=function(){let e=document.documentElement.scrollHeight,t=window.innerHeight;k=k||window.scrollY;let l=e===t?100:Math.round(k/(e-t)*100);return l>100?l=100:l{window.removeEventListener("beforeunload",t),window.removeEventListener("blur",t)}},[e])})(),(0,a.useEffect)(()=>{e()},[e]),(0,a.useEffect)(()=>{t()},[t]),(0,a.useEffect)(()=>{l()},[l]),(0,a.useEffect)(()=>{r()},[r]),(0,a.useEffect)(()=>{i()},[i]),null},T=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i,{}),(0,r.jsx)(U,{})]})},29021:(e,t,l)=>{"use strict";l.d(t,{default:()=>f});var r=l(19948),a=l(81999),n=l(91712),s=l(80889);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Phone Icon"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("rect",{width:7.636,height:12.727,x:1.182,y:.636,stroke:"currentColor",strokeWidth:1.273,rx:1.909}),(0,r.jsx)("rect",{width:4,height:2,x:3,y:10,fill:"currentColor",rx:1})]})}),o=n.forwardRef((e,t)=>(0,r.jsx)(s.h,{ref:t,icon:i,...e}));o.displayName="Phone";var c=l(79591),d=l(78702),u=l(17343),h=l(3491);function m(){return(0,r.jsxs)("div",{className:"flex flex-col gap-4 py-4 pb-0",children:[(0,r.jsx)(a.Ay,{variant:"Title.S",className:"text-center font-bold",children:"Your weather, wherever you are."}),(0,r.jsx)(a.Ay,{className:"text-center",children:"The forecast you love, plus real time notifications, widgets, activites forecast, and more."}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("div",{className:"h-auto w-full",children:(0,r.jsx)(h.A,{src:"https://s.w-x.co/twc-app-overview.png",width:320,sizes:"180px",alt:"app view"})}),(0,r.jsxs)("div",{className:"flex w-full flex-col items-center justify-center gap-1",children:[(0,r.jsx)(h.A,{src:"https://s.w-x.co/twc-app-qr-code.png",width:320,sizes:"180px",alt:"qr code"}),(0,r.jsx)(a.Ay,{variant:"Body.S",children:"Scan to download"})]})]})]})}function f(){let{user:e}=(0,c.J)(),{isUserPremium:t}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[!t&&(0,r.jsx)(d.default,{href:"/subscribe?tpcc=mktg-home-mainmenu-subscribe",children:(0,r.jsx)("button",{className:"flex h-6 cursor-pointer items-center justify-center text-nowrap rounded-lg border-white bg-white p-2 text-[0.625rem] font-semibold uppercase text-[#252422]",children:"Go Premium"})}),(0,r.jsxs)(u.AM,{trigger:"hover",openDelay:0,children:[(0,r.jsx)(u.Wv,{asChild:!0,children:(0,r.jsxs)("button",{className:"flex h-full max-h-6 cursor-pointer items-center justify-center gap-1 text-nowrap rounded-lg border-white bg-white p-2 text-[0.625rem] font-semibold uppercase text-[#252422]",children:[(0,r.jsx)(o,{className:"h-3.5 w-auto"}),"Download App"]})}),(0,r.jsx)(u.hl,{className:"w-md",children:(0,r.jsx)(m,{})})]})]})}},30955:(e,t,l)=>{"use strict";l.d(t,{q:()=>r});let r="en-US"},32506:(e,t,l)=>{"use strict";l.d(t,{default:()=>C});var r=l(19948),a=l(91712),n=l(29225),s=l(60735),i=l(6681),o=l(79591),c=l(24484),d=l(80889);let u=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"External Link"}):l?(0,r.jsx)("title",{id:a,children:l}):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"})]})}),h=a.forwardRef((e,t)=>(0,r.jsx)(d.h,{ref:t,icon:u,...e}));h.displayName="ExternalLink";var m=l(14231),f=l(85865),v=l(63305),x=l(55184),p=l(15632);let w={"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"},g=async e=>{var t;let l=w[e];if(!l)return null;let r=await (0,p.O)(l,"1");return(null==r||null==(t=r[0])?void 0:t.url)||null};var y=l(152),b=l(84189),j=l(11981);let N=(0,a.forwardRef)((e,t)=>{let[l,n]=(0,a.useState)(!1),{effectiveLocation:d}=(0,i.s)({}),{user:{isUserLoggedIn:u},logout:p}=(0,o.J)(),w=(e=>{let t=(0,a.useRef)(e);return t.current=e,t})(p),N=(null==d?void 0:d.placeId)||"",C=(0,y.md)(j.X),{data:A}=(0,x.Ay)(["navigation/getVideoLink",C],e=>{let[t,l]=e;return g(l)},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!0,errorRetryCount:2,errorRetryInterval:2e3}),[S,k]=(0,a.useState)({}),U=(0,v.i)(),T=(0,a.useMemo)(()=>({"Weather Forecasts":[{name:"My Dashboard",url:"/mydashboard",isNew:!1},{name:"Today",url:"/weather/today/l/".concat(N)},{name:"Hourly",url:"/weather/hourbyhour/l/".concat(N)},{name:"10 Day",url:"/weather/tenday/l/".concat(N)}],"Radar & Maps":[{name:"Interactive Radar Map",url:"/weather/radar/interactive/l/".concat(N,"?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"},...A?[{name:"Videos",url:A}]:[]],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(N)},{name:"Air Quality Index",url:"/forecast/air-quality/l/".concat(N)},{name:"Cold & Flu Tracker",url:"/forecast/cold-flu/l/".concat(N)},{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},...u?[{name:"Manage Account",url:"/member/settings"},{name:"Logout",action:w.current}]:[{name:"Create An Account",url:"/signup"},{name:"Sign in",url:"/login"}]]}),[u,w,N,A]),P=(0,a.useMemo)(()=>Object.entries(T).reduce((e,t,l)=>{var r;return null==(r=e[l%4])||r.push(t),e},Array.from({length:4},()=>[])),[T,4]);return(0,r.jsxs)("nav",{ref:t,className:"max-h-(--nav-menu-height) md:max-h-(--nav-menu-height-md) absolute left-0 right-0 top-full z-40 w-full overflow-y-auto border-t border-gray-200 bg-white shadow-md md:py-8","data-testid":"header-nav-menu",children:[U&&(0,r.jsxs)("div",{className:"px-6 pt-4",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold text-gray-900",children:"Menu"}),(0,r.jsx)(b.default,{inNavigation:!0,onDropdownToggle:n})]}),(!l||!U)&&(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:P.map((e,t)=>(0,r.jsx)("div",{className:"flex w-full flex-col md:w-1/4",children:e.map(e=>{let[t,l]=e;return(null==l?void 0:l.length)?(0,r.jsxs)("div",{className:"w-full md:mb-6",children:[(0,r.jsxs)("div",{className:(0,c.cn)(U&&"px-6 py-2.5","flex cursor-pointer items-center justify-between md:cursor-default"),...U&&{onClick:()=>(e=>{k(t=>({...t,[e]:!t[e]}))})(t),role:"button",tabIndex:0,"aria-label":"Toggle Menu Category"},children:[(0,r.jsx)("h2",{className:(0,c.cn)(!U&&"mb-4","text-gray-900 md:font-bold"),children:t}),U&&(0,r.jsx)("span",{"aria-label":S[t]?"Collapse":"Expand",children:S[t]?(0,r.jsx)(m.H,{size:"md",className:"text-black"}):(0,r.jsx)(f.F,{size:"md",className:"text-black"})})]}),(0,r.jsx)("ul",{className:(0,c.cn)("md:space-y-2",U&&"bg-[#ebecee]",U&&!S[t]&&"hidden"),children:l.map(e=>{if(!e.url&&!e.action)return null;let t=(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)(h,{size:"sm","data-testid":"external-link-icon"})]}),l=(0,c.cn)("group flex items-center gap-1 text-gray-700 hover:text-blue-600",U&&"px-10 py-2.5");return(0,r.jsx)("li",{className:U?"border-b border-[rgba(37,36,34,0.10)]":"",children:e.url?(0,r.jsx)(s.N_,{href:e.url,className:l,target:e.isExternal?"_blank":void 0,children:t}):(0,r.jsx)("button",{onClick:e.action,className:(0,c.cn)(l,"cursor-pointer"),children:t})},e.name)})})]},t):null})},t))})]})});function C(){let[e,t]=(0,a.useState)(!1),l=(0,a.useRef)(null),s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{function r(r){e&&l.current&&s.current&&!l.current.contains(r.target)&&!s.current.contains(r.target)&&t(!1)}return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.$n,{ref:l,variant:"ghost",size:"icon","aria-label":"Menu",className:"relative flex h-8 w-8 cursor-pointer flex-col items-center justify-center p-0 hover:bg-transparent",onClick:()=>t(!e),"data-testid":"header-menu-button",children:[(0,r.jsx)("span",{className:"h-0.75 rounded-xs absolute block w-[30px] bg-white transition-all duration-300 ease-in-out ".concat(e?"translate-y-0 rotate-45":"-translate-y-[9px]"),"data-testid":"header-menu-button-bar-1"}),(0,r.jsx)("span",{className:"h-0.75 rounded-xs absolute block w-[30px] bg-white transition-all duration-300 ease-in-out ".concat(e?"opacity-0":"opacity-100"),"data-testid":"header-menu-button-bar-2"}),(0,r.jsx)("span",{className:"h-0.75 rounded-xs absolute block w-[30px] bg-white transition-all duration-300 ease-in-out ".concat(e?"translate-y-0 -rotate-45":"translate-y-[9px]"),"data-testid":"header-menu-button-bar-3"})]}),e&&(0,r.jsx)(N,{ref:s})]})}N.displayName="Navigation"},38362:(e,t,l)=>{"use strict";l.d(t,{AdminHeaderWrapper:()=>N});var r=l(19948),a=l(91712),n=l(81135),s=l(58475),i=l(152),o=l(78470),c=l(1355),d=l(34158),u=l(6139),h=l(41741);let m=(0,u.h)("AtomDebugHydrationBoundaries"),f=e=>{let{debugData:t}=e,{updateSection:l}=(0,h.K)(),r=(0,d.usePathname)();return m.info("Initial props received",{hasDebugData:!!t,currentPath:r}),(0,o.RH)([[c.B,t||{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"),l("route",r),a&&!t?l("meta",{dataState:"stale",lastConfirmedPath:e||null,currentPath:r,isDirectLoad:!0,timestamp:new Date().toISOString()}):(l("components",{}),t&&(m.info("Updating with new debug data for path",r),t.page&&l("page",t.page),t.match&&l("match",t.match),t.timestamp&&l("timestamp",t.timestamp),t.headers&&l("headers",t.headers),t.environment&&l("environment",t.environment),t.location&&l("location",{...t.location,source:"server-hydration",_updatedAt:new Date().toISOString()}),l("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:a,timestamp:new Date().toISOString()}))),sessionStorage.setItem("lastPath",null!=r?r:"")},[r,t,l]),m.lifecycle("Hydration complete",{debugData:t,pathname:r}),null};var v=l(99124);let x=(0,v.createServerReference)("40a3f9c925588981047ffa4c368ad1586405cc0e8d",v.callServer,void 0,v.findSourceMapURL,"translateDebugDataAction");var p=l(6681);let w=(0,u.h)("LocationCollector"),g=(0,u.h)("DataCollector");function y(e){let{pageProps:t,userRoles:l}=e,r=(0,d.usePathname)(),n=(0,d.useSearchParams)(),{updateSection:s}=(0,h.K)(),i=(0,a.useRef)(!1);!function(){let{updateSection:e}=(0,h.K)(),{effectiveLocation:t,isLocationLoading:l}=(0,p.s)({});(0,a.useEffect)(()=>{t&&!l&&(w.info("Location data updated",t.displayName),e("location",{...t,_observedFrom:"useLocationSource",_collectedBy:"LocationCollector",_updatedAt:new Date().toISOString()}))},[t,l,e])}(),(0,a.useEffect)(()=>{if(l&&l.length>0){let e=Array.isArray(l)?l:[];s("userRoles",e),g.info("DataCollector","User roles updated",e)}},[l,s]);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((t,l)=>{e[l]=t}),g.lifecycle("DataCollector","Calling translateDebugDataAction");let l=await x({route:null!=r?r:"",params:e,pageProps:t});l&&(g.info("DataCollector","Debug data received",{route:l.route,hasPage:!!l.page,hasMatch:!!l.match,hasHeaders:!!l.headers,hasEnvironment:!!l.environment}),l.route&&(s("route",l.route),g.info("DataCollector","Route updated",l.route)),l.page&&(s("page",l.page),g.info("DataCollector","Page data updated",{title:l.page.title,id:l.page.id}),s("meta",{dataState:"fresh",lastConfirmedPath:r,currentPath:r,isDirectLoad:!1,timestamp:new Date().toISOString()})),l.match&&(s("match",l.match),g.info("DataCollector","Match data updated",{hasMatch:!0,matchKeys:Object.keys(l.match||{})})),l.headers&&(s("headers",l.headers),g.info("DataCollector","Headers updated",{headerCount:Object.keys(l.headers||{}).length})),l.environment&&(s("environment",l.environment),g.info("DataCollector","Environment data updated",{envVarCount:Object.keys(l.environment||{}).length})),s("timestamp",new Date().toISOString()))}catch(e){g.error("DataCollector","Error collecting debug data:",e),s("errors",{dataCollection:{message:e.message,timestamp:new Date().toISOString()}})}},[r,n,t,s]);return(0,a.useEffect)(()=>{g.lifecycle("DataCollector","Setting up data collection for path",r),i.current||(i.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:t,pageProps:l}=e;return(0,r.jsxs)(i.Kq,{children:[(0,r.jsx)(f,{debugData:null}),(0,r.jsx)(y,{pageProps:l}),t]})}let j=(0,n.default)(()=>l.e(3923).then(l.bind(l,13923)).then(e=>({default:e.FrontendAdminHeader})),{loadableGenerated:{webpack:()=>[13923]},ssr:!1,loading:()=>null});function N(e){let{children:t}=e,[l,n]=(0,a.useState)(null);return((0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).has("debug"),t="true"===(0,s.getCookie)("twc-debug-mode");e&&(0,s.setCookie)("twc-debug-mode","true",{maxAge:2592e3}),n(e||t)},[]),!0===l)?(0,r.jsxs)(b,{children:[(0,r.jsx)(j,{}),t]}):(0,r.jsx)(r.Fragment,{children:t})}},50354:()=>{},58704:(e,t,l)=>{"use strict";var r=l(37811);Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaAssetsByIdUrlConfig=function(e){let{assetId:t,limit:l}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,assetId:t,limit:l||void 0}}},t.getMediaAssetsByPlaylistIdUrlConfig=function(e){let{playlistId:t,limit:l}=e;return{host:"weather.com",protocol:"https",pathname:"api/v2/content-media",query:{apiKey:r.env.WX_CONTENT_MEDIA_API_KEY,playlistId:t,...void 0!==l?{limit:l.toString()}:{}}}}},58866:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>r});let r={src:"/_next/static/media/eSSENTIAL.3d0fc761.svg",height:23,width:60,blurWidth:0,blurHeight:0}},74789:(e,t,l)=>{"use strict";l.d(t,{K:()=>i});var r=l(19948),a=l(91712),n=l(80889);let s=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Twitter"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12.217 1.27h2.249L9.552 6.884l5.78 7.642h-4.525L7.262 9.892l-4.056 4.635H.956L6.21 8.52.666 1.27h4.64l3.205 4.236zm-.79 11.91h1.247L4.63 2.546H3.292z"})]})}),i=a.forwardRef((e,t)=>(0,r.jsx)(n.h,{ref:t,icon:s,...e}));i.displayName="Twitter"},79228:(e,t,l)=>{"use strict";l.d(t,{CorporateFooterLinks:()=>L,LegalFooterLinks:()=>M,PrivacyFooterLinks:()=>R,SocialFooterLinks:()=>D});var r=l(19948),a=l(152),n=l(78702),s=l(3491);let i=function(e){let{links:t,hasSeparators:l=!1,className:a,itemClassName:i,linkClassName:o,separatorDirChanges:c,separatorColorClass:d}=e;return(0,r.jsx)("ul",{className:"flex flex-wrap items-center ".concat(a||""),children:t.map(e=>(0,r.jsx)("li",{className:"flex items-center ".concat(((e,t,l)=>{if(!e)return"";let r="string"==typeof l?[l]:l||[];return"".concat(r[0]||"border-gray-600"," ").concat(r[1]||""," last:border-0 ")+("column"===e?t?"sm:border-b max-sm:border-r":"border-b":t?"sm:border-r max-sm:border-b":"border-r")})(l,c,d)," ").concat(i||""),children:(0,r.jsxs)(n.default,{href:e.url,className:"flex items-center justify-center text-center text-sm text-gray-600 hover:underline ".concat(o||""),target:e.target,rel:e.rel,children:[!e.iconOnly&&(0,r.jsx)("span",{children:e.title}),e.IconComponent?(0,r.jsx)(e.IconComponent,{className:e.iconClassName||"h-6","aria-label":e.iconOnly?e.title:""}):e.iconUrl&&(0,r.jsx)(s.A,{unoptimized:!0,src:e.iconUrl,alt:e.iconOnly?e.title:"",className:e.iconClassName||"h-6"})]})},e.title))})},o="termsOfUse",c={title:"California Notice",titleTranslationKey:"californiaNotice",url:"/en-US/twc/privacy-policy#us-ccpa-notice-current",includeLocales:["en-US"],target:"_blank",rel:"nofollow",newWindow:!0};var d=l(7548),u=l(74789),h=l(91712),m=l(80889);let f=(0,h.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Instagram"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsxs)("g",{fill:"currentColor",clipPath:"url(#a)",children:[(0,r.jsx)("path",{d:"M8 1.44c2.137 0 2.39.01 3.231.048.781.034 1.203.165 1.485.274.372.144.64.32.918.597.282.282.454.547.597.92.11.28.24.705.275 1.484.038.843.047 1.096.047 3.23 0 2.138-.01 2.391-.047 3.232-.034.781-.165 1.203-.275 1.484-.143.372-.319.641-.597.92a2.46 2.46 0 0 1-.918.596c-.282.11-.707.24-1.485.275-.844.037-1.097.047-3.231.047-2.137 0-2.39-.01-3.231-.047-.782-.034-1.203-.166-1.485-.275a2.5 2.5 0 0 1-.918-.597 2.46 2.46 0 0 1-.597-.919c-.11-.28-.24-.706-.275-1.484-.038-.844-.047-1.097-.047-3.231 0-2.138.01-2.39.047-3.231.034-.782.165-1.204.275-1.485.144-.372.319-.64.597-.919a2.46 2.46 0 0 1 .918-.596c.282-.11.707-.241 1.485-.275C5.609 1.45 5.862 1.44 8 1.44M8 0C5.828 0 5.556.01 4.703.047c-.85.037-1.434.175-1.94.372a3.9 3.9 0 0 0-1.42.925A3.9 3.9 0 0 0 .42 2.759C.222 3.27.084 3.85.047 4.7.009 5.556 0 5.828 0 8s.01 2.444.047 3.297c.037.85.175 1.434.372 1.94.206.529.478.976.925 1.42.444.443.89.718 1.415.921.51.197 1.091.335 1.941.372.853.038 1.125.047 3.297.047s2.444-.01 3.297-.047c.85-.037 1.434-.175 1.94-.372a3.9 3.9 0 0 0 1.416-.922 3.9 3.9 0 0 0 .922-1.415c.197-.51.334-1.091.372-1.941.037-.853.047-1.125.047-3.297s-.01-2.444-.047-3.297c-.038-.85-.175-1.434-.372-1.94a3.75 3.75 0 0 0-.916-1.422 3.9 3.9 0 0 0-1.415-.922C12.73.225 12.15.088 11.3.05 10.444.01 10.172 0 8 0"}),(0,r.jsx)("path",{d:"M8 3.89a4.11 4.11 0 0 0 0 8.22 4.11 4.11 0 0 0 0-8.22m0 6.776a2.666 2.666 0 1 1 0-5.332 2.666 2.666 0 0 1 0 5.332M13.231 3.728a.96.96 0 1 1-1.919 0 .96.96 0 0 1 1.92 0"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M0 0h16v16H0z"})})})]})}),v=h.forwardRef((e,t)=>(0,r.jsx)(m.h,{ref:t,icon:f,...e}));v.displayName="Instagram";let x=(0,h.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"YouTube"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M15.84 4.8s-.156-1.103-.637-1.587c-.61-.638-1.29-.641-1.603-.679-2.237-.162-5.597-.162-5.597-.162h-.006s-3.36 0-5.597.162c-.312.038-.994.041-1.603.679C.316 3.697.162 4.8.162 4.8S0 6.097 0 7.39v1.213c0 1.294.16 2.59.16 2.59s.156 1.104.634 1.588c.61.638 1.41.616 1.765.685 1.282.122 5.441.16 5.441.16s3.363-.007 5.6-.167c.313-.037.994-.04 1.603-.678.481-.484.638-1.587.638-1.587S16 9.9 16 8.604V7.39c0-1.294-.16-2.59-.16-2.59m-9.493 5.275V5.578l4.322 2.256z"})]})}),p=h.forwardRef((e,t)=>(0,r.jsx)(m.h,{ref:t,icon:x,...e}));p.displayName="YouTube";let w=[{title:"Feedback",titleTranslationKey:"feedback",url:"//support.weather.com/s/",queryString:"language=${lang}&type=TWC",wuQueryString:"language=${lang}&type=WU",target:"_blank",rel:"noopener nofollow"},{title:"Weather API",titleTranslationKey:"weatherAPI",url:"https://www.wunderground.com/weather/api/?ref=twc-DE",includeLocales:["de-DE"],excludePartners:["samsungVietnam"],target:"_self",rel:"nofollow"},{title:"Weather API",titleTranslationKey:"weatherAPI",url:"https://www.wunderground.com/weather/api",excludeLocales:["de-DE","en-US"],excludePartners:["samsungVietnam"],target:"_self",rel:"nofollow"},{title:"Mission",titleTranslationKey:"mission",url:"/mission",includeLocales:["en-US"],target:"_blank",rel:"noopener nofollow"},{title:"Careers",titleTranslationKey:"careers",url:"https://www.weathercompany.com/careers",includeLocales:["en-US"],target:"_blank",rel:"noopener nofollow"},{title:"News Room",titleTranslationKey:"pressRoom",url:"https://www.weathercompany.com/newsroom",target:"_blank",rel:"noopener nofollow"},{title:"Advertise With Us",titleTranslationKey:"advertiseWithUs",url:"https://www.weathercompany.com/advertising/",includeLocales:["en-US","de-DE"],target:"_blank",rel:"noopener nofollow"},{title:"TV",titleTranslationKey:"tv",url:"https://www.weathergroup.com/brands/the-weather-channel/",includeLocales:["en-US"],target:"_blank",rel:"nofollow"},{title:"Newsletter Sign Up",titleTranslationKey:"newsletterSignUp",url:"https://weather.com/newsletter?cm_ven=dnt_newsletter_footer",includeLocales:["en-US"],target:"_self",rel:"nofollow"},{title:"Impressum",titleTranslationKey:"impressum",url:"/weather.com/de-DE/impressum",includeLocales:["de-DE"],target:"_blank",rel:"noopener nofollow"},{title:"Weather Data APIs",titleTranslationKey:"weatherDataAPIs",url:"https://www.weathercompany.com/weather-data-apis/",target:"_blank",rel:"noopener nofollow"}],g=[{title:"Terms of Use",titleTranslationKey:o,url:"/${locale}/legal",wuUrl:"//www.wunderground.com/company/legal",excludeLocales:["de-DE","en-GB","en-IN","ca-ES","cs-CZ","es-ES","fr-FR","hr-HR","hu-HU","it-IT","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","sk-SK","da-DK"],includeEnUsLocale:!1,target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/de-DE/agb",includeLocales:["de-DE"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/ca-ES/termes",includeLocales:["ca-ES"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/cs-CZ/smluvnipodminky",includeLocales:["cs-CZ"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/es-ES/terminos",includeLocales:["es-ES"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/fr-FR/conditions",includeLocales:["fr-FR"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/hr-HR/uvjetiiodredbe",includeLocales:["hr-HR"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/hu-HU/altalanosfeltetelek",includeLocales:["hu-HU"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/it-IT/termini",includeLocales:["it-IT"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/nl-NL/voorwaarden",includeLocales:["nl-NL"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/pl-PL/zastrzezenia",includeLocales:["pl-PL"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/${locale}/termos",includeLocales:["pt-BR","pt-PT"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/ro-RO/termeni",includeLocales:["ro-RO"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/sk-SK/podmienky",includeLocales:["sk-SK"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/da-DK/vilkarbetingelser",includeLocales:["da-DK"],target:"_self",rel:"nofollow"},{title:"Terms of Use",titleTranslationKey:o,url:"/${locale}/terms",includeLocales:["en-IN","en-GB"],target:"_self",rel:"nofollow"},{title:"Privacy Policy",titleTranslationKey:"privacyPolicy",url:"/en-US/twc/privacy-policy",wuUrl:"//www.wunderground.com/company/privacy-policy",includeLocales:["en-US"],target:"_self",rel:"nofollow"},{title:"Privacy Policy",titleTranslationKey:"privacyPolicy",url:"/de-DE/datenschutz",includeLocales:["de-DE"],target:"_self",rel:"nofollow"},{title:"Privacy Policy",titleTranslationKey:"privacyPolicy",url:"/${locale}/intl-privacy",excludeLocales:["de-DE","en-US"],target:"_self",rel:"nofollow"},{title:"Cookie Notice",titleTranslationKey:"cookieNotice",url:"/en-US/twc/privacy-policy#us-data-coll-tech-current",includeLocales:["en-US"],target:"_blank",rel:"nofollow",newWindow:!0},{title:"AdChoices",titleTranslationKey:"adChoices",url:"/${locale}/services/ad-choices",wuUrl:"//www.wunderground.com/company/ad-choices",includeLocales:["en-US","es-US","en-CA","fr-CA"],includeEnUsLocale:!1,target:"_self",rel:"nofollow",iconUrl:"/_next/static/media/adChoices.1890427d.svg"},{title:"Accessibility Statement",titleTranslationKey:"accessibilityStatement",url:"/${locale}/accessibility-statement",wuUrl:"//www.wunderground.com/accessibility-statement",includeEnUsLocale:!1,target:"_self",rel:"nofollow"},{title:"Data Vendors",titleTranslationKey:"dataVendors",url:"/${locale}/data-vendors",wuUrl:"//www.wunderground.com/data-vendors",includeEnUsLocale:!1,target:"_self",rel:"nofollow"}],y=[{title:"Privacy Settings",titleTranslationKey:"privacySettings",url:"/${locale}/privacy-settings",target:"_self",rel:"noopener noreferrer nofollow",wuUrl:"//www.wunderground.com/${locale}/privacy-settings"},{title:"Data Purposes",titleTranslationKey:"dataPurposes",url:"/${locale}/data-purposes?regime=jp",wuUrl:"//www.wunderground.com/${locale}/data-purposes?regime=jp",target:"_self",rel:"noopener noreferrer nofollow"},{title:"Do Not Sell or Share My Personal Information",titleTranslationKey:"doNotSell",url:"/${locale}/privacy-settings#do-not-sell",target:"_self",rel:"noopener noreferrer nofollow",wuUrl:"//www.wunderground.com/${locale}/privacy-settings#do-not-sell"},{title:"Limit Use of My Sensitive Personal Information",titleTranslationKey:"sensitiveData",url:"/${locale}/privacy-settings#sensitive-data",target:"_self",rel:"noopener noreferrer nofollow"},{title:"Data Rights",titleTranslationKey:"dataRights",url:"/${locale}/data-rights",wuUrl:"//www.wunderground.com/${locale}/data-rights",target:"_self",rel:"noopener noreferrer nofollow"}],b=[{url:"https://www.facebook.com/TheWeatherChannel",title:"Facebook",IconComponent:d.f,iconOnly:!0},{url:"http://www.twitter.com/weatherchannel",title:"X",IconComponent:u.K,iconOnly:!0,iconClassName:"p-0.5"},{url:"http://instagram.com/weatherchannel",title:"Instagram",IconComponent:v,iconOnly:!0},{url:"http://www.youtube.com/user/TheWeatherChannel/",title:"Youtube",IconComponent:p,iconOnly:!0}],j=[{url:"https://www.weathercompany.com/",title:"The Weather Company",iconUrl:"/_next/static/media/the-weather-company.a3c2e80d.svg",iconOnly:!0,iconClassName:"w-[50px]"},{url:"https://weather.com/",title:"The Weather Channel",iconUrl:"/_next/static/media/the-weather-channel.091fb64c.svg",iconOnly:!0,iconClassName:"w-[35px]"},{url:"https://www.wunderground.com/",title:"Weather Underground",iconUrl:"/_next/static/media/weather-underground.b51dc537.svg",iconOnly:!0,iconClassName:"w-[50px]"},{url:"https://weather.com/storm-radar",title:"Storm Radar",iconUrl:"https://s.w-x.co/Storm-Radar-App-Icon.png",iconOnly:!0,iconClassName:"w-[36px]"}];var N=l(11981),C=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 A=["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],S=["usa","usa-ccpa","usa-co","usa-ct","usa-va"],k=["ca",...S,...A],U=function(e,t,l,r){for(var a=arguments.length,n=Array(a>4?a-4:0),s=4;s!(e.includeLocales&&!e.includeLocales.includes(t)||e.excludeLocales&&e.excludeLocales.includes(t)));return(i=n.reduce((e,a)=>a(e,t,l,r),i)).map(e=>{let l=e.url?e.url.replace(/\${locale}/g,t):e.url;return{...e,url:l}})},T=(e,t,l,r)=>e.map(e=>{if("privacySettings"===e.titleTranslationKey||"privacySettingsMenu"===e.titleTranslationKey){if(!k.includes(r))return null;if(A.includes(r))return{...e,title:"Cookie Settings",titleTranslationKey:"cookieSettings",url:""};if(S.includes(r)&&"privacySettings"===e.titleTranslationKey)return{...e,title:"Review All Privacy and Ad Settings",titleTranslationKey:"reviewAdsSettings"}}else if("dataPurposes"===e.titleTranslationKey&&r!==C.JP)return null;else if("doNotSell"===e.titleTranslationKey){if(!S.includes(r))return null;if(r!==C.USA_CCPA)return{...e,title:"Choose how my information is shared",titleTranslationKey:"saleOfData"}}else if("sensitiveData"===e.titleTranslationKey&&(r!==C.USA_CCPA||!l))return null;else if("cookieNotice"===e.titleTranslationKey){if(!S.includes(r))return null;if(r===C.USA_CCPA)return c}return e}).filter(Boolean);var P=l(58475);let I=()=>(0,P.getCookie)("twc-privacy")||C.EXEMPT;var E=l(79591);let L=()=>{let e=(0,a.md)(N.X),{user:t}=(0,E.J)(),{isUserLoggedIn:l}=t,n=U(w,e,l,I());return(0,r.jsx)(i,{links:n,className:"mb-4 mt-9 sm:justify-center",itemClassName:"py-1.5 basis-1/2 sm-py-0 sm:px-2 sm:basis-auto"})},M=()=>{let e=(0,a.md)(N.X),{user:t}=(0,E.J)(),{isUserLoggedIn:l}=t,n=U(g,e,l,I());return(0,r.jsx)(i,{links:n,hasSeparators:!0,className:"mt-2.5 sm:justify-center",itemClassName:"font-bold px-2 mt-2.5 sm:mt-0"})},R=()=>{let e=(0,a.md)(N.X),{user:t}=(0,E.J)(),{isUserLoggedIn:l}=t,n=U(y,e,l,I(),T);return(0,r.jsx)(i,{className:"justify-center",links:n,hasSeparators:!0,separatorDirChanges:!0,separatorColorClass:["border-[#dedede]","sm:border-gray-600"],itemClassName:"sm:min-w-[200px] sm:max-w-[220px] sm:px-5 max-sm:mt-2 max-sm:pb-2 font-bold w-full sm:w-auto"})},D=()=>(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between sm:flex-row",children:[(0,r.jsxs)("div",{className:"hidden items-center sm:flex",children:[(0,r.jsx)("h3",{className:"font-medium text-gray-700",children:"Connect With Us"}),(0,r.jsx)(i,{links:b,itemClassName:"ml-2.5",linkClassName:"bg-[rgba(53,45,35,0.102)] rounded-full p-2.5 flex items-center justify-center w-[44px] h-[44px]"})]}),(0,r.jsx)("div",{className:"flex items-center space-x-4",children:(0,r.jsx)(i,{links:j,itemClassName:"ml-2.5 first:ml-0",linkClassName:"flex items-center justify-center"})})]})},84189:(e,t,l)=>{"use strict";l.d(t,{default:()=>T});var r=l(19948),a=l(91712),n=l(152),s=l(80889);let i=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{fill:"currentColor",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Globe"}):l?(0,r.jsx)("title",{id:a,children:l}):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,t)=>(0,r.jsx)(s.h,{ref:t,icon:i,...e}));o.displayName="Globe";let c=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Arrow Up"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M.235 18.833h23.53L12.015 5.167.236 18.833z"})]})}),d=a.forwardRef((e,t)=>(0,r.jsx)(s.h,{ref:t,icon:c,...e}));d.displayName="TriangleUp";let u=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Arrow down"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{d:"M23.765 5.167H.235l11.75 13.666L23.764 5.167z"})]})}),h=a.forwardRef((e,t)=>(0,r.jsx)(s.h,{ref:t,icon:u,...e}));h.displayName="TriangleDown";var m=l(14231),f=l(85865),v=l(81999),x=l(29225),p=l(6482),w=l(24484);let g=(0,a.forwardRef)((e,t)=>{let{isImperial:l,isMetric:n,isHybrid:s,expandedRegions:i,LOCALE_DATA:o,handleUnitChange:c,toggleRegion:d,handleLocaleChange:u,inNavigation:h=!1}=e,[g,y]=(0,a.useState)(1);(0,a.useEffect)(()=>{let e=()=>{y(window.innerWidth>=1024?3:window.innerWidth>=768?2:1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let b=[{label:"Imperial",unitName:p.tE,active:l,symbol:"\xb0F"},{label:"Metric",unitName:p.cl,active:n,symbol:"\xb0C"},{label:"Hybrid",unitName:p.Uo,active:s,symbol:"Hybrid"}];return(0,r.jsx)("div",{ref:t,className:(0,w.cn)("overflow-auto bg-white",h?"relative":"absolute left-0 right-0 top-full z-40 max-h-[calc(100vh-60px)] w-full shadow-md md:max-h-[calc(100vh-82px)]"),children:(0,r.jsxs)("div",{className:(0,w.cn)("mx-auto max-w-screen-xl",{"px-[15px] py-[10px]":!h}),children:[(0,r.jsx)("div",{className:"flex justify-center border-b pt-4",children:b.map(e=>{let{unitName:t,active:l,symbol:a}=e;return(0,r.jsx)(x.$n,{onClick:()=>c(t),variant:"ghost",className:(0,w.cn)("text-brand-400 cursor-pointer rounded-none border-b-2 border-transparent",l&&"border-brand-400 border-black"),children:a},t)})}),(0,r.jsxs)("div",{className:"py-3 text-center text-xs text-[#6f7585]",children:[l&&"Imperial - F / mph / miles / inches",n&&"Metric - C / millimeters / km / kmh / millibars",s&&"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)(x.$n,{onClick:()=>d(e.title),variant:"ghost",className:"flex w-full items-center justify-between rounded-none p-6",children:[(0,r.jsx)(v.Ay,{className:"text-lg font-bold uppercase",children:e.title}),i[e.title]?(0,r.jsx)(m.H,{className:"h-[18px] w-[18px] text-black"}):(0,r.jsx)(f.F,{className:"h-[18px] w-[18px] text-black"})]}),i[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)(x.$n,{variant:"link",onClick:()=>u(e.locale),className:"flex items-center justify-between",children:[e.name," | ",e.language]},e.locale))})]},e.title))})]})})});g.displayName="SettingsMenuContent";var y=l(47523),b=l(27472),j=l(23733);let N=(0,b.eU)(e=>{var t;return(null==(t=e(j.J))?void 0:t.locale)||"en_US"});(0,b.eU)(e=>e(N).split("_")[0]);let C=(0,b.eU)(e=>e(N).split("_")[1]);var A=l(47178),S=l(58475),k=l(13861),U=l(30955);function T(e){let{inNavigation:t=!1,onDropdownToggle:l}=e,[s,i]=(0,a.useState)(!1),c=(0,a.useCallback)(e=>{let t=null!=e?e:!s;i(t),l&&l(t)},[s,l]),u=(0,a.useRef)(null),m=(0,a.useRef)(null),[f,b]=(0,a.useState)({}),T=(0,n.md)(y.c2),P=(0,n.md)(y.PF),I=(0,n.md)(y.Vp),E=(0,n.md)(N),L=(0,n.md)(C),M=(0,k.l)(),R=(0,n.md)(j.J);(0,a.useEffect)(()=>{var e;let t=null==(e=(0,S.getCookie)("unitOfMeasurement"))?void 0:e.toString();if(console.log("UNITS_COOKIE",t),t){let e=(0,p.Bu)(t),l=null==e?void 0:e.name,r=null==R?void 0:R.unit;l&&l!==r&&M({unit:l})}},[M,null==R?void 0:R.unit]);let D=async e=>{try{await M({unit:e})}catch(e){console.error("Failed to update unit preference:",e)}},z=async e=>{try{let t=(0,A.vL)(e);await M({locale:t}),(0,S.setCookie)("sitePref",e,{domain:".".concat(window.location.hostname)}),c(!1);let l=e===U.q?"":e;window.location.href="/".concat(l)}catch(e){console.error("Failed to update locale preference:",e)}};return(0,a.useEffect)(()=>{function e(e){s&&u.current&&m.current&&!u.current.contains(e.target)&&!m.current.contains(e.target)&&c(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(x.$n,{ref:u,variant:"ghostUI",className:(0,w.cn)("flex cursor-pointer items-center px-2 py-1",{"px-0 pt-2":t}),onClick:()=>{c()},children:[(0,r.jsx)(o,{size:"md",className:t?"fill-gray-900":"fill-white"}),(0,r.jsx)(v.Ay,{elementType:"span",color:t?"default":"inverse",variant:"Body.M",className:"px-[10px]",children:L}),(0,r.jsx)(v.Ay,{elementType:"span",color:t?"default":"inverse",variant:"Body.M",className:(0,w.cn)("border-l-[1px] px-[10px] font-mono",t?"border-l-gray-300":"border-l-white"),children:T?"\xb0F":"\xb0C"}),(0,r.jsx)("div",{className:"ml-[5px]",children:s?(0,r.jsx)(d,{size:"sm",className:t?"fill-gray-900":"fill-white"}):(0,r.jsx)(h,{size:"sm",className:t?"fill-gray-900":"fill-white"})})]}),s&&(0,r.jsx)(g,{ref:m,isImperial:T,isMetric:P,isHybrid:I,locale:E,expandedRegions:f,LOCALE_DATA:A.mg,handleUnitChange:D,toggleRegion:e=>{b(t=>{if(t[e])return{...t,[e]:!1};let l={};return Object.keys(t).forEach(e=>{l[e]=!1}),{...l,[e]:!0}})},handleLocaleChange:z,inNavigation:t})]})}},85865:(e,t,l)=>{"use strict";l.d(t,{F:()=>i});var r=l(19948),a=l(91712),n=l(80889);let s=(0,a.forwardRef)((e,t)=>{let{title:l,titleId:a,desc:n,descId:s,...i}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":a,"aria-describedby":s,...i,children:[n?(0,r.jsx)("desc",{id:s,children:n}):null,void 0===l?(0,r.jsx)("title",{id:a,children:"Plus"}):l?(0,r.jsx)("title",{id:a,children:l}):null,(0,r.jsx)("path",{fill:"currentColor",d:"M12 8.5a.8.8 0 0 0-.8-.8H8.8V5.3a.8.8 0 1 0-1.6 0v2.4H4.8a.8.8 0 1 0 0 1.6h2.4v2.4a.8.8 0 0 0 1.6 0V9.3h2.4a.8.8 0 0 0 .8-.8"})]})}),i=a.forwardRef((e,t)=>(0,r.jsx)(n.h,{ref:t,icon:s,...e}));i.displayName="Plus"},94760:(e,t,l)=>{"use strict";l.d(t,{default:()=>q});var r=l(19948),a=l(91712),n=l(95732),s=l(65274),i=l(59329),o=l(152),c=l(64035),d=l(6952),u=l(97639),h=l(20183),m=l(4318),f=l(13720),v=l(55184),x=l(86981),p=l(84780),w=l(69214),g=l(24484),y=l(79591),b=l(81999),j=l(47523),N=l(6482),C=l(18303),A=l(13861),S=l(34158),k=l(28238);function U(e){let{isFavorite:t,onClick:l}=e;return(0,r.jsxs)("div",{className:"group/favorite relative flex items-center",children:[(0,r.jsx)("span",{className:"absolute hidden -translate-x-full text-nowrap text-xs capitalize group-hover/favorite:inline-block",children:t?"Remove Location":"Save Location"}),(0,r.jsx)("button",{onClick:l,className:"flex cursor-pointer items-center justify-center p-2",children:(0,r.jsx)("span",{className:"h-6 w-6",children:t?(0,r.jsxs)("svg",{name:"favorite",className:"h-full w-full fill-[#fdc107]",viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"Favorite"}),(0,r.jsx)("path",{d:"M10 15.27L16.18 19l-1.64-7.03L20 7.24l-7.19-.61L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19z",fillRule:"evenodd"})]}):(0,r.jsxs)("svg",{name:"favorite-stroke",className:"h-full w-full hover:fill-[#fdc107] group-hover:fill-white",viewBox:"0 0 20 19",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"Favorite"}),(0,r.jsx)("path",{d:"M12.81 6.62L10 0 7.19 6.63 0 7.24l5.46 4.73L3.82 19 10 15.27 16.18 19l-1.63-7.03L20 7.24l-7.19-.62zm-6.57 9.05l1-4.28-3.32-2.88 4.38-.38L10 4.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L10 13.4l-3.76 2.27z",fillRule:"evenodd"})]})})})]})}function T(e){let{title:t,onClearAll:l,testId:a}=e;return(0,r.jsxs)("div",{className:"flex items-center justify-between p-4","data-testid":a,children:[(0,r.jsx)("h2",{className:"text-xl font-medium leading-none text-black",children:t}),l&&(0,r.jsx)("button",{onClick:l,className:"cursor-pointer text-sm font-medium",children:"Clear All"})]})}function P(e){var t,l;let{search:a}=e,n=(0,o.md)(j.Yt),s=null==(t=(0,N.xP)(n))?void 0:t.code,i=(0,S.useParams)(),c=null==i?void 0:i.locale,{data:d}=(0,v.Ay)(a.geocode?["currentConditions",a.geocode,s]:null,async e=>{let[,t,l]=e;return t?(0,m.z)({geocode:t,units:l,language:c}):null},{revalidateIfStale:!0,revalidateOnFocus:!0,dedupingInterval:3e5}),u=null!=(l=null==d?void 0:d.iconCode)?l:a.iconCode,h=d?Math.round(d.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:"number"==typeof u&&"na"!==(f.ICON_CODE_MAP[u]||"na")?(0,r.jsx)(p.WxIcon,{iconCode:u,className:"lightBG","aria-label":f.ICON_CODE_MAP[u]||"Weather condition ".concat(u),iconTheme:"lightBG",size:"md"}):(0,r.jsx)(w.Y,{className:"lightBG","aria-label":"not available",size:"md"})}),(0,r.jsxs)("div",{className:"text-l text-black group-hover:text-white",children:[h,"\xb0"]})]})}function I(e){let{search:t,onClick:l}=e;return(0,r.jsxs)("div",{className:"flex flex-1 cursor-pointer items-center gap-4 p-2",onClick:()=>{null==l||l(t)},children:[(0,r.jsx)(P,{search:t}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,r.jsx)("div",{className:"flex items-center gap-1 text-left",children:(0,r.jsxs)("h3",{className:"font-bold text-black group-hover:text-white",children:[t.city,!!t.isPrimary&&(0,r.jsx)("span",{className:"ml-[5px] rounded-[20px] bg-[#ff7b0f] px-[7px] text-sm text-white",style:{textShadow:"0 1px 1px #00000080"},children:"1"})]})}),(0,r.jsx)("p",{className:"text-gray-500 group-hover:text-white",children:t.location})]})]})}function E(e){let{location:t,onSelect:l,onRemove:a,onDismissMore:n,openMore:s,showMoreButton:i,onClickMore:o}=e,{attributes:c,listeners:d,setNodeRef:m,transform:f,transition:v,isDragging:x}=(0,u.gl)({id:t.placeID||""}),p={transform:h.Ks.Transform.toString(f),transition:v,opacity:x?.5:1,zIndex:x?10:1};return(0,r.jsx)("div",{ref:m,style:p,className:"flex flex-1 items-center ".concat(x?"bg-gray-50 shadow-lg":""),children:(0,r.jsx)("div",{className:"flex flex-1",...c,...d,children:(0,r.jsx)(M,{location:t,onSelect:l,onRemove:a,onDismissMore:n,openMore:s,showMoreButton:i,onClickMore:o})})})}function L(e){let{children:t}=e;return(0,r.jsx)("div",{className:"hover:bg-brand-400 group flex flex-1 cursor-pointer px-2 hover:text-white",children:t})}function M(e){let{location:t,onSelect:l,onRemove:a,onClickMore:n,onDismissMore:s,openMore:i,showMoreButton:o}=e,c=t.placeID||"",d=t.coordinate||"",u=t.name||"Unknown Location",h={id:c,city:u,location:u,geocode:d,temperature:0},m=()=>{a(c)};return(0,r.jsxs)(L,{children:[(0,r.jsx)(I,{search:h,onClick:l}),(0,r.jsx)(U,{isFavorite:!0,onClick:m}),o&&(0,r.jsx)(D,{open:i,onClick:()=>{null==n||n(h.id)},onDismiss:s,onDelete:m})]})}function R(e){let{item:t,disabledFavorites:l,onSelect:a,onToggleSave:n}=e,{presentationName:s}=t;return(0,r.jsx)("button",{onClick:()=>{null==a||a(t)},children:(0,r.jsx)(L,{children:(0,r.jsxs)("div",{className:"flex flex-1 items-center",children:[(0,r.jsx)("div",{className:"flex flex-1 p-4 px-2",children:(0,r.jsx)(b.Ay,{variant:"Body.S",className:"text-left text-black group-hover:text-white",children:s})}),!l&&(0,r.jsx)(U,{onClick:e=>{e.stopPropagation(),null==n||n(t)}})]})})})}function D(e){let{open:t,onClick:l,onDismiss:n,onDelete:s}=e,i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;return t&&(e=e=>{var t;(null==(t=i.current)?void 0:t.contains(e.target))?e.stopPropagation():null==n||n()},document.addEventListener("click",e)),()=>{e&&document.removeEventListener("click",e)}},[t,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==l||l()},children:(0,r.jsx)(x.A,{})}),(0,r.jsx)("button",{ref:i,className:(0,g.cn)("bg-brand-400 invisible absolute -right-full -top-full !m-0 h-10 cursor-pointer text-nowrap rounded-lg border border-[#1b4de4] px-[14px] py-[6px] text-sm font-medium text-white opacity-0 transition-[right,opacity] duration-300 ease-out hover:bg-white hover:text-black",t&&"visible right-[10px] top-1/2 -translate-y-1/2 opacity-100"),onClick:e=>{e.stopPropagation(),null==s||s(),n()},children:"Delete"})]})}function z(e){let t,{id:l,onSelect:a,showMoreButton:n,onSaveToFavorites:s,onClickMore:i,onDismissMore:o,openMore:c,onDelete:d,disabledFavorites:u}=e,h=(0,S.useParams)(),m=null==h?void 0:h.locale,{data:f}=(0,v.Ay)(l?["location-data",l]:null,()=>(0,C.$M)(l,m),{revalidateOnFocus:!1,dedupingInterval:3e5});if(!f)return null;{let{location:e}=f;t={id:e.placeId,city:e.city||e.displayName||"Unknown",location:e.adminDistrict?"".concat(e.adminDistrict).concat(e.country?", "+e.country:""):e.country||"",geocode:"".concat(e.latitude,",").concat(e.longitude)}}return(0,r.jsxs)(L,{children:[(0,r.jsx)(I,{search:t,onClick:a}),!u&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{onClick:()=>s(t)}),n&&(0,r.jsx)(D,{open:c,onClick:()=>{null==i||i(t.id)},onDismiss:o,onDelete:()=>{null==d||d(t)}})]})]})}function _(e){let{searches:t,onSelectSearch:l,showFavorites:n=!0,recentLocations:s=[],onClearRecentLocations:i,onRemoveRecentSearchLocation:h}=e,m=(0,k.c3)("Header"),{user:f}=(0,y.J)(),{isUserLoggedIn:v}=f,x=(0,A.l)(),[p,w]=(0,a.useState)(null),g=(0,o.md)(c.nU)||[],b=(0,d.FR)((0,d.MS)(d.AN,{activationConstraint:{distance:8}}),(0,d.MS)(d.uN,{coordinateGetter:u.JR})),j=e=>{if(!g.some(t=>t.placeID===e.id)&&e.geocode){let t={placeID:e.id,coordinate:e.geocode,name:e.city,position:g.length+1};x({locations:[...g,t]})}else console.debug("Location already favorited or missing geocode:",e.city)},N=e=>{x({locations:g.filter(t=>t.placeID!==e)})};return(0,r.jsxs)("div",{"data-testid":"location-search-results-dropdown",className:"overflow-x-hidden",children:[n&&g.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T,{title:"Favorites",testId:"location-search-favorites-header"}),(0,r.jsx)(d.Mp,{sensors:b,collisionDetection:d.fp,onDragEnd:e=>{let{active:t,over:l}=e;if(l&&t.id!==l.id){let e=g.findIndex(e=>e.placeID===t.id),r=g.findIndex(e=>e.placeID===l.id);x({locations:(0,u.be)([...g],e,r)})}},children:(0,r.jsx)(u.gB,{items:g.map(e=>e.placeID||""),children:(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-favorites-list",children:g.map(e=>(0,r.jsx)(E,{location:e,onSelect:l,onRemove:N,openMore:"favorites-".concat(e.placeID)===p,onClickMore:e=>{w("favorites-".concat(e))},onDismissMore:()=>w(null),showMoreButton:!0},e.placeID))})})})]}),!t.length&&s.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T,{title:m("recentLocationsTitle"),onClearAll:i,testId:"location-search-recent-header"}),(0,r.jsx)("div",{className:"divide-y","data-testid":"location-search-recent-list",children:s.map(e=>(0,r.jsx)(z,{id:e,disabledFavorites:!v,showMoreButton:s.length>1,onSelect:l,onSaveToFavorites:j,openMore:"recents-".concat(e)===p,onClickMore:e=>{w("recents-".concat(e))},onDismissMore:()=>w(null),onDelete:h},e))})]}),(!n||0===g.length)&&0===s.length&&0===t.length&&(0,r.jsx)("div",{className:"p-6 text-center text-gray-500","data-testid":"location-search-empty-message",children:m("noRecentLocations")}),t.length>0&&(0,r.jsx)("div",{className:"flex flex-1 flex-col divide-y","data-testid":"location-search-results-list",children:t.map(e=>(0,r.jsx)(R,{disabledFavorites:!v,item:e,onSelect:l,onToggleSave:j},e.id))})]})}var K=l(65407),F=l(97387),H=l(63202),O=l(6306),B=l(30955);function q(e){let{className:t}=e,{navigate:l}=(0,n.b)(),[c,d]=(0,a.useState)(""),u=(0,H.d)(c,200),[h,m]=(0,a.useState)(!1),[f,x]=(0,o.fp)(F.I6),p=(0,a.useRef)(null),w=(0,k.c3)("Header"),y=(0,S.useParams)(),b=null==y?void 0:y.locale,j=w("searchPlaceholderText"),{data:N}=(0,v.Ay)(u.length>=2?["locations",u]:null,e=>(0,K.SK)(e[1],b),{revalidateOnFocus:!1,dedupingInterval:2e3}),C=(0,a.useMemo)(()=>N?N.slice(0,5).map((e,t)=>({id:e.placeId,city:e.city||e.displayName||"Unknown",location:e.adminDistrictCode?"".concat(e.adminDistrictCode).concat(e.country?", "+e.country:""):e.country||"",presentationName:(0,O.r)(e),temperature:0,iconCode:44,geocode:"".concat(e.latitude,",").concat(e.longitude),isPrimary:0===t})):[],[N]);(0,a.useEffect)(()=>{function e(e){p.current&&!p.current.contains(e.target)&&m(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let A=(0,a.useCallback)(()=>{x([])},[x]),U=(0,a.useCallback)(e=>{var t,r,a,n;m(!1),e.id&&e.geocode&&x(t=>{let l=(null==t?void 0:t.filter(t=>t!==e.id))||[];return[e.id,...l].slice(0,5)});let s=(null==(t=window.location.href)||null==(n=t.match)||null==(a=n.call(t,RegExp("(?[a-z]{2}-[A-Z]{2})")))||null==(r=a.groups)?void 0:r.locale)||"en-US";e.id&&l("".concat(s===B.q?"":"/"+s,"/weather/today/l/").concat(e.id))},[l,x]),T=(0,a.useCallback)(e=>{x(t=>null==t?void 0:t.filter(t=>t!==e.id))},[x]);return(0,r.jsx)("div",{className:(0,g.cn)(h&&"bg-brand-400 fixed left-0 right-0 z-50 px-2 sm:static sm:bg-transparent sm:p-0","w-full transition-all sm:transition-none"),"data-testid":"header-search",children:(0,r.jsxs)("div",{ref:p,className:(0,g.cn)("relative w-full sm:flex sm:max-w-md sm:flex-1",t),children:[(0,r.jsx)(s.p,{value:c,placeholder:j,onChange:e=>{d(e.target.value)},onClick:()=>{m(!0)},className:"w-full cursor-pointer overflow-ellipsis rounded-sm border-none !bg-[#293248] py-2 pl-4 pr-10 text-center text-[1rem] text-white transition-colors placeholder:text-white focus:placeholder-transparent focus-visible:ring-2 focus-visible:ring-white sm:h-[50px] md:cursor-auto md:rounded-lg md:text-[1rem]"}),(0,r.jsx)("div",{className:"absolute right-3 top-1/2 flex -translate-y-1/2 transform items-center",children:h?(0,r.jsx)("button",{tabIndex:0,className:"cursor-pointer",onClick:e=>{e.stopPropagation(),m(!1),d("")},children:(0,r.jsx)(i.A,{className:"h-6 w-6 text-white"})}):(0,r.jsx)("svg",{name:"location-2",className:"h-6 w-6 text-white",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.757 3.54c2.284 0 4.142 1.866 4.142 4.16 0 2.293-1.858 4.16-4.142 4.16-2.283 0-4.141-1.867-4.141-4.16 0-2.294 1.858-4.16 4.141-4.16Zm4.467 8.18a6.016 6.016 0 0 0 1.54-4.02c0-3.327-2.694-6.034-6.007-6.034-3.312 0-6.007 2.707-6.007 6.034s2.695 6.033 6.007 6.033a5.943 5.943 0 0 0 3.023-.828l4.327 5.1a.93.93 0 0 0 1.316.104.94.94 0 0 0 .104-1.32l-4.303-5.07Z",fill:"#fff"})})}),h&&(0,r.jsx)("div",{className:"absolute left-0 right-0 top-full z-[80] mt-1 max-h-96 overflow-y-auto rounded-md bg-white text-gray-800 shadow-lg sm:mx-auto sm:mt-2 sm:max-w-md",children:(0,r.jsx)(_,{searches:C,showFavorites:!C.length,recentLocations:f,onClearAll:()=>{d("")},onSelectSearch:U,onClearRecentLocations:A,onRemoveRecentSearchLocation:T})})]})})}},99983:(e,t,l)=>{"use strict";l.d(t,{SWRProvider:()=>s});var r=l(19948),a=l(91712),n=l(55184);let s=e=>{let{children:t,fallback:l={}}=e,[s]=(0,a.useState)(()=>new Map);return(0,a.useEffect)(()=>{try{let e=localStorage.getItem("app-cache");if(e){let t=JSON.parse(e);Array.isArray(t)&&t.forEach(e=>{let[t,l]=e;s.set(t,l)})}}catch(e){console.error("Failed to load cache from localStorage:",e)}let e=()=>{try{let e=Array.from(s.entries());localStorage.setItem("app-cache",JSON.stringify(e))}catch(e){console.error("Failed to persist cache to localStorage:",e)}};window.addEventListener("beforeunload",e);let t=setInterval(e,3e4);return()=>{window.removeEventListener("beforeunload",e),clearInterval(t)}},[s]),(0,r.jsx)(n.BE,{value:{provider:()=>s,fallback:l},children:t})}}}]);