(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,906361,e=>{"use strict";var t=e.i(902875),n=e.i(247865),r=e.i(632137),i=e.i(730921),l=e.i(581014),a=e.i(611540);e.i(609717);var s=e.i(950771),o=e.i(546446);let c={src:e.i(10993).default,width:208,height:74,blurWidth:0,blurHeight:0},u=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:c.src,cobrandIconWidth:c.width,cobrandIconHeight:c.height}];var d=e.i(37429),m=e.i(240058);let h=e=>{let{classname:n}=e,i=(0,o.useAtomValue)(s.pageLocaleAtom),{url:l,cobrandIconSrc:a,cobrandIconWidth:c,cobrandIconHeight:h}=u.find(e=>e.locales.includes(i))||{};return l&&a?(0,t.jsx)("span",{className:"flex",children:(0,t.jsx)(m.default,{href:l,target:"_blank",className:(0,r.cn)("relative p-0",n,{"de-DE":"de-DE"===i}),children:(0,t.jsx)(d.default,{className:"h-6 w-auto max-w-none",src:a,alt:"focus logo",width:c,height:h,rounded:!1})})}):null};var f=e.i(521231),x=e.i(368847),p=e.i(379276),g=e.i(316810),b=e.i(436066);function v(e=!1){let t=(0,n.useRef)(null),[r,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=t.current;if(!e)return;let n=0,r=()=>{n=0;let t=document.querySelectorAll("[data-fullbleed-dark]");if(0===t.length)return void i(!1);let r=e.getBoundingClientRect(),l=r.top+r.height/2;i(Array.from(t).some(e=>{let t=e.getBoundingClientRect();return t.bottom>t.top&&l>=t.top&&l{n||(n=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),window.addEventListener("fullbleed:change",l),()=>{n&&cancelAnimationFrame(n),window.removeEventListener("scroll",l),window.removeEventListener("resize",l),window.removeEventListener("fullbleed:change",l)}},[]),{ref:t,isOverDark:r&&!e}}let y=({link:e,role:n,forceCollapsedNavbar:i,iconOnly:l})=>{let a=(0,o.useAtomValue)(b.sidebarMoreOpenAtom),s=(0,o.useAtomValue)(b.sidebarContentSearchOpenAtom),c=e.isActive&&!a&&!s,u=p.navigationIconsMap[`${e.icon}${c?"Active":""}`],{ref:d,isOverDark:h}=v((0,o.useAtomValue)(b.sidebarSuppressDarkAtom));return(0,t.jsx)("li",{ref:d,children:(0,t.jsxs)(m.default,{href:e.url||"",className:(0,r.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl px-3 font-semibold text-gray-900 no-underline transition-[color,background-color,border-color,width,height,padding] duration-200 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!i,"size-12 overflow-hidden":l,"bg-gray-100 font-bold text-blue-500":c,"pointer-events-none":c&&e.lockWhenActive,"text-white hover:bg-white/10 focus-visible:bg-white/10":h&&!c,"bg-[#252422] text-white":h&&c}),role:n,sourceModule:"sidebarNavigation",sourceElement:e.title,children:[(0,t.jsx)(u,{"aria-hidden":"true",className:(0,r.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!i})}),(0,t.jsx)(x.default,{className:(0,r.cn)("text-xxs mt-1 h-[13px] pb-0 font-semibold text-inherit transition-opacity duration-200",{"font-bold":c,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!i,"pointer-events-none opacity-0":l}),lineClamp:1,children:e.title}),e.showNewBadge&&(0,t.jsx)(g.default,{className:(0,r.cn)("transition duration-200 group-hover:border-gray-100 group-focus-visible:border-gray-100","absolute top-0 right-0",{"xl:static":!i,"border-gray-100":c})})]})},e.title)};var w=e.i(725287),j=e.i(281687),N=e.i(559421),A=e.i(4085),k=e.i(388706),C=e.i(304116),S=e.i(269153),E=e.i(942400),T=e.i(537989),L=e.i(495110);e.i(647872);var P=e.i(494889),M=e.i(190344),R=e.i(293163);e.i(304158);var _=e.i(485737),I=e.i(258990);let U=Object.fromEntries(k.SIDEBAR_CANONICAL_LINKS.map(e=>[a.URLS[e.urlKey],e.segment])),O=({navigationData:e,locale:t,geoIPCountry:n,partner:r,theme:i,videoUrl:l,pathname:s,locId:o,featureId:c,pageId:u,tSidebarNavigation:d,canonicalBasePath:m,linkBasePath:h,canonicalID:f,skipCanonical:x})=>e.reduce((e,p)=>{if("links"in p){let a=O({navigationData:p.links,locale:t,geoIPCountry:n,partner:r,theme:i,videoUrl:l,pathname:s,locId:o,featureId:c,pageId:u,tSidebarNavigation:d,canonicalBasePath:m,linkBasePath:h,canonicalID:f,skipCanonical:x});e.push({title:p.title,links:a})}else{let n,r;if(p.dynamicVideoUrl)r=n=l;else{let e=U[p.url],i=n=>e?(0,C.buildLocationPageHref)({pageType:e,locale:t,canonicalID:f,featureId:c,placeId:o,canonicalBasePath:n,skipCanonical:x}):(0,a.interpolateLocationUrl)(p.url,{locale:t,locId:o,featureId:c});n=i(h??m),r=h?i(m):n}if(!n)return e;let i=p.titleTranslationKey?d(p.titleTranslationKey):p.title,g=(p.matchNestedPaths?s===r||s.startsWith(`${r}/`):s===r)||!!p.activePageIds?.includes(u??"");e.push({title:i,url:n,icon:p.icon,showNewBadge:p.showNewBadge,lockWhenActive:p.lockWhenActive,...g&&{isActive:g}})}return e},[]),V=({filteredPropName:e,filteredPropValue:t})=>n=>{let r=Array.isArray(t)?t:[t],i=n[`exclude${e}`];if(i&&i.some(e=>r.includes(e)))return!1;let l=n[`include${e}`];return!l||!!l.some(e=>r.includes(e))},B=e=>t=>void 0===t.requiresNewsHub||t.requiresNewsHub===e,D=/\/radar\/?$/,z=["/weather/today/","/weather/hourbyhour/","/weather/tenday/"];var F=e.i(995113),H=e.i(47524),$=e.i(598513),q=e.i(513513),Q=e.i(889753),G=e.i(837879),W=e.i(683199);let K=({forceCollapsedNavbar:e,iconOnly:n})=>{let i=(0,o.useAtomValue)(Q.userTierAtom),l=(0,q.isUserTierPremium)(i),a=(0,$.useSendInteractionEvent)(),s=(0,G.useSubscriptionsEnabled)(),c=(0,W.usePremiumSource)();return l||!s?null:(0,t.jsx)("li",{children:(0,t.jsxs)(m.default,{href:"/subscribe?tpcc=mktg-leftrail-menu-upgrade",style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>{a({interactionElement:"sidebar-nav-go-to-checkout-button",interactionType:"click",moduleId:"SidebarNavigation"}),c({sourceModule:"leftrail-menu",sourceElement:"get-premium"})},className:(0,r.cn)("group relative flex h-14 w-full flex-col items-center justify-center overflow-hidden rounded-2xl px-3 font-semibold text-white no-underline transition-[width,height,padding] duration-200 focus:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"size-12":n}),sourceModule:"sidebarNavigation",children:[(0,t.jsx)("div",{style:{background:"linear-gradient(90deg, #4872E5 0%, #785CEB 50%, #A86EDD 100%)"},className:"pointer-events-none absolute top-0 left-0 h-full w-full opacity-0 bg-blend-soft-light transition-opacity group-hover:opacity-100 group-focus:opacity-100"}),(0,t.jsx)(F.LightningFilled,{className:(0,r.cn)("relative z-2 w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,t.jsxs)(x.default,{className:(0,r.cn)("text-xxs relative z-2 mt-1 h-[13px] pb-0 font-semibold whitespace-nowrap text-white transition-opacity duration-200",{"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":n}),lineClamp:1,children:[(0,t.jsx)("span",{className:(0,r.cn)("hidden",{"xl:contents":!e}),children:"Get Premium"}),(0,t.jsx)("span",{className:(0,r.cn)("contents xl:hidden",{"xl:contents":e}),children:"Upgrade"})]}),(0,t.jsx)(H.ChevronRight,{className:(0,r.cn)("relative z-2 ml-auto hidden w-4 shrink-0 text-white",{"xl:block":!e})})]})})};var Y=e.i(747961);let J=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...l},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Overflow Menu Horizontal"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M4 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M8 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})})]})),X=n.default.forwardRef((e,n)=>(0,t.jsx)(Y.BaseIcon,{ref:n,icon:J,...e}));X.displayName="OverflowMenuHorizontal";let Z=({forceCollapsedNavbar:e,iconOnly:n})=>{let i=(0,l.useTranslations)("SidebarNavigation"),[a,s]=(0,o.useAtom)(b.sidebarMoreOpenAtom),{ref:c,isOverDark:u}=v((0,o.useAtomValue)(b.sidebarSuppressDarkAtom));return(0,t.jsx)("li",{ref:c,children:(0,t.jsxs)("button",{type:"button","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":a,onClick:()=>s(e=>!e),className:(0,r.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl bg-transparent px-3 font-semibold text-gray-900 no-underline transition-[color,background-color,border-color,width,height,padding] duration-200 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"size-12 overflow-hidden":n,"bg-gray-100 font-bold text-blue-500 hover:bg-gray-100 focus-visible:bg-gray-100":a,"text-white hover:bg-white/10 focus-visible:bg-white/10":u&&!a,"bg-[#252422] text-white hover:bg-[#252422] focus-visible:bg-[#252422]":u&&a}),children:[(0,t.jsx)(X,{className:(0,r.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!e})}),(0,t.jsx)(x.default,{className:(0,r.cn)("text-xxs mt-1 h-[13px] pb-0 font-semibold text-inherit transition-opacity duration-200",{"font-bold":a,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":n}),lineClamp:1,children:i("more")})]})})};var ee=e.i(965586),et=e.i(553329),en=e.i(226602),er=e.i(617874),ei=e.i(166763),el=e.i(314552),ea=e.i(674885),es=e.i(776169),eo=e.i(35137),ec=e.i(121301);let eu=new Set(["article","video","index"]);function ed(){let e=(0,l.useTranslations)("SidebarNavigation"),i=(0,o.useAtomValue)(b.sidebarMoreOpenAtom),s=(0,o.useSetAtom)(b.sidebarMoreOpenAtom),c=(0,o.useAtomValue)(ea.isImperialUnitsAtom),u=(0,o.useAtomValue)(ea.isMetricUnitsAtom),d=(0,o.useAtomValue)(ea.isHybridUnitsAtom),m=(0,w.useParams)(),h=m?.locale||el.defaultLocale,f=m?.locId,p=(0,o.useAtomValue)(T.pageIdAtom),{updatePreferences:g}=(0,es.usePreferences)(),v=(0,o.useAtomValue)(Q.userPreferencesAtom),y=(0,n.useRef)(null),[j,N]=(0,n.useState)(!1),[A,k]=(0,n.useState)(i),[C,S]=(0,n.useState)(!1),E=(0,n.useCallback)(()=>s(!1),[s]);(0,n.useEffect)(()=>{let e=(0,ee.getCookie)("unitOfMeasurement")?.toString();if(!e)return;let t=(0,er.unitsSystemByCode)(e),n=t?.name;n&&n!==v?.unit&&g({unit:n})},[g,v?.unit]);let L=async e=>{let{error:t}=await (0,et.tryCatch)(g({unit:e}));t&&console.error("Failed to update unit preference:",t)},P=async e=>{let t=(0,ei.convertLocaleFormat)(e),{error:n}=await (0,et.tryCatch)(g({locale:t}));if(n)return void console.error("Failed to update locale preference:",n);if((0,ee.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),E(),p&&eu.has(p)){window.location.href=e===el.defaultLocale?"/":`/${e}`;return}let r=p?a.URLS[p]:void 0,i=r&&f?(0,a.interpolateUrl)(r,{locale:e,locId:f}):null;if(i){window.location.href=i;return}let l=h!==el.defaultLocale&&window.location.pathname.startsWith(`/${h}`)?window.location.pathname.slice(`/${h}`.length)||"/":window.location.pathname;window.location.href=e===el.defaultLocale?l:`/${e}${l}`};return((0,n.useEffect)(()=>{if(i){k(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>S(!0))});return()=>{cancelAnimationFrame(t),e&&cancelAnimationFrame(e)}}S(!1);let e=setTimeout(()=>{k(!1),N(!1)},150);return()=>clearTimeout(e)},[i]),(0,n.useEffect)(()=>{if(!i)return;let e=e=>{"Escape"===e.key&&(j?N(!1):E())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i,j,E]),(0,n.useEffect)(()=>{if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){let t=e.target;y.current&&t&&!y.current.contains(t)&&!t.closest("[data-settings-menu-trigger]")&&E()}},[i,E]),A)?(0,t.jsx)("div",{ref:y,role:"dialog","aria-label":e(j?"locationAndLanguage":"more"),className:(0,r.cn)("absolute top-0 bottom-0 z-105 flex w-[340px] flex-col bg-white","border-s border-black/10","shadow-[8px_0_30px_rgba(0,0,0,0.08)] rtl:shadow-[-8px_0_30px_rgba(0,0,0,0.08)]","left-full","transition-[opacity,translate] duration-150 ease-out",C?"translate-x-0 opacity-100":"pointer-events-none -translate-x-6 opacity-0 rtl:translate-x-6"),children:j?(0,t.jsx)(eo.default,{locale:h,LOCALE_DATA:ei.LOCALE_DATA,handleLocaleChange:P,onBack:()=>N(!1),onClose:E}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-5 pt-5 pb-2",children:[(0,t.jsx)(x.default,{elementType:"h2",variant:"Title.S",className:"text-gray-900",children:e("more")}),(0,t.jsx)("button",{type:"button",onClick:E,"aria-label":e("close"),className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-gray-100 text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(en.Close,{className:"h-4 w-4"})})]}),(0,t.jsx)(ec.default,{isImperial:c,isMetric:u,isHybrid:d,locale:h,LOCALE_DATA:ei.LOCALE_DATA,handleUnitChange:L,onOpenLocationLanguage:()=>N(!0)})]})}):null}let em=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...l},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"User Avatar"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8 4a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"}),(0,t.jsx)("path",{d:"M8 1a7 7 0 1 0 7 7 7.01 7.01 0 0 0-7-7M5 13.188V12.5A1.5 1.5 0 0 1 6.5 11h3a1.5 1.5 0 0 1 1.5 1.5v.688a5.95 5.95 0 0 1-6 0m6.996-.725A2.5 2.5 0 0 0 9.5 10h-3a2.5 2.5 0 0 0-2.496 2.463 6 6 0 1 1 7.992 0"})]})]})),eh=n.default.forwardRef((e,n)=>(0,t.jsx)(Y.BaseIcon,{ref:n,icon:em,...e}));function ef({firstName:e,isPremium:n,isAdFree:i}){let l=e?.charAt(0)?.toUpperCase();return(0,t.jsxs)("div",{className:(0,r.cn)("relative flex h-8 w-8 items-center justify-center rounded-full border-1 border-gray-900 md:h-12 md:w-12"),children:[(0,t.jsx)("span",{className:(0,r.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":n}),children:l}),n&&(0,t.jsx)("span",{className:(0,r.cn)("absolute bottom-[-1px] left-[-1px] h-[9px] w-8 bg-white text-[6.25px] uppercase md:h-[13px] md:w-12 md:text-[10px]"),children:i?"Ad Free":"Premium"})]})}eh.displayName="UserAvatar";var ex=e.i(809058),ep=e.i(877957),eg=e.i(528600),eb=e.i(731672);let ev=({forceCollapsedNavbar:e,iconOnly:s})=>{let{user:c,userProfile:u}=(0,eg.useUser)(),{isUserLoggedIn:d,isUserPremium:h,isUserAdFree:f}=c,p=(0,eb.useUserLogout)(),g=(0,G.useSubscriptionsEnabled)(),y=(0,l.useTranslations)("SidebarNavigation"),w=(0,l.useTranslations)("UserRegistration"),j=(0,i.useLocale)(),N=(0,W.usePremiumSource)(),[A,k]=(0,o.useAtom)(b.sidebarAccountOpenAtom);(0,n.useEffect)(()=>()=>k(!1),[k]);let{ref:C,isOverDark:S}=v((0,o.useAtomValue)(b.sidebarSuppressDarkAtom));return d?(0,t.jsx)("li",{ref:C,children:(0,t.jsxs)(ex.Popover,{open:A,onOpenChange:k,children:[(0,t.jsx)(ex.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":A,"data-testid":"sidebar-profile-button",className:(0,r.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl bg-transparent px-3 font-semibold text-gray-900 no-underline transition-[color,background-color,border-color,width,height,padding] duration-200 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"size-12 overflow-hidden":s,"bg-gray-100 font-bold text-blue-500 hover:bg-gray-100 focus-visible:bg-gray-100":A,"text-white hover:bg-white/10 focus-visible:bg-white/10":S&&!A,"bg-[#252422] text-white hover:bg-[#252422] focus-visible:bg-[#252422]":S&&A}),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-current text-[10px] leading-none font-bold text-inherit",{"xl:mr-3":!e}),children:u?.firstName?.charAt(0)?.toUpperCase()}),(0,t.jsx)(x.default,{className:(0,r.cn)("text-xxs mt-1 h-[13px] pb-0 font-semibold text-inherit transition-opacity duration-200",{"font-bold":A,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":s}),lineClamp:1,children:y("myAccount")})]})}),(0,t.jsx)(ex.PopoverContent,{side:"right",align:"end",className:"z-9996 p-0",showArrow:!1,children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(m.default,{href:(0,a.interpolateUrl)(a.URLS.memberSettings,{locale:j}),"data-testid":"sidebar-profile-account",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,t.jsx)(ef,{firstName:u?.firstName,isPremium:h,isAdFree:f}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)(x.default,{variant:"Body.S",children:u?.firstName}),(0,t.jsx)(x.default,{className:"text-sm text-gray-500 hover:text-gray-700",children:w("manageAccount")})]})]})}),!h&&g&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,t.jsx)(x.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,t.jsx)(x.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,t.jsx)(m.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>N({sourceModule:"leftrail-menu",sourceElement:"get-premium"}),children:(0,t.jsx)(ep.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,t.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,t.jsx)(ep.Button,{variant:"link",onClick:p,"data-testid":"sidebar-profile-signout",children:w("signOut")})})]})})]})}):(0,t.jsx)("li",{ref:C,children:(0,t.jsxs)(m.default,{href:(0,a.interpolateUrl)(a.URLS.memberLogin,{locale:j}),sourceModule:"sidebarNavigation",className:(0,r.cn)("group relative box-border flex h-14 w-full cursor-pointer flex-col items-center justify-center rounded-2xl bg-gray-900 px-3 font-semibold text-white no-underline transition-[opacity,width,height,padding] duration-200 hover:opacity-90 focus-visible:opacity-90 focus-visible:outline-none",{"xl:h-12 xl:flex-row xl:justify-start":!e,"size-12 overflow-hidden":s,"bg-[#252422]":S}),children:[(0,t.jsx)(eh,{className:(0,r.cn)("w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,t.jsx)(x.default,{className:(0,r.cn)("text-xxs mt-1 h-[13px] pb-0 font-semibold text-white transition-opacity duration-200",{"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":s}),lineClamp:1,children:w("logIn")})]})})};var ey=e.i(663333),ew=e.i(274432),ej=e.i(792461),eN=e.i(18358),eA=e.i(768864),ek=e.i(123590),eC=e.i(333761),eS=e.i(957174),eE=e.i(956667);let eT=(0,n.forwardRef)(({title:e,titleId:n,desc:r,descId:i,...l},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":i,...l,children:[r?(0,t.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Blog"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M7 12H2v1h5zM7 9H2v1h5zM13 7H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1M3 3v3h10V3zM13 14h-3a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1m-3-4v3h3v-3z"})})]})),eL=n.default.forwardRef((e,n)=>(0,t.jsx)(Y.BaseIcon,{ref:n,icon:eT,...e}));eL.displayName="Blog";let eP={article:eS.Book,video:eE.VideoPlayer,liveblog:eL};function eM({item:e,showDate:a,dateStyle:s,onSelect:o}){let c=(0,l.useTranslations)("ContentSearch"),u=(0,l.useFormatter)(),h=(0,i.useNow)(),f=(0,ek.useTrackContentLinkClick)(),x=(0,eC.useTrackContentLinkClick)(),p=eP[e.kind]??eS.Book,g=(0,n.useCallback)(()=>{let t={linkType:"internal",linkURL:e.url,linkText:e.title,moduleId:"content-search"};f(t),x(t),o()},[f,x,e.url,e.title,o]),b=function(e,{showDate:t,dateStyle:n,now:r,t:i,formatRelativeTime:l,formatDate:a}){let s=[],o=function(e,t){switch(e.kind){case"article":if(!e.readTimeMinutes)return null;return t("readTime",{minutes:e.readTimeMinutes});case"video":{let n=e.durationSeconds;if(n&&nu.relativeTime(e,h),formatDate:e=>u.dateTime(e,{month:"short",day:"numeric",year:"numeric"})});return(0,t.jsx)("li",{children:(0,t.jsxs)(m.default,{href:e.url,onClick:g,sourceModule:"content-search",sourceElement:"content-search-result",className:(0,r.cn)("flex items-center gap-4 overflow-hidden rounded-2xl py-2 pr-4 pl-2 no-underline","transition-colors hover:bg-gray-100 active:bg-gray-200","focus-visible:bg-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none"),children:[e.thumbnailUrl?(0,t.jsx)(d.default,{src:e.thumbnailUrl,alt:"",width:64,height:64,fill:!1,objectFit:"cover",className:"size-16 shrink-0 rounded-lg object-cover"}):(0,t.jsx)("div",{"aria-hidden":"true",className:"size-16 shrink-0 rounded-lg bg-gray-200"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("span",{className:"line-clamp-2 text-sm leading-[1.15] font-semibold tracking-[-0.28px] text-gray-900",children:e.title}),b&&(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(p,{"aria-hidden":"true",className:"size-4 shrink-0 text-gray-500"}),(0,t.jsx)("span",{className:"truncate text-xs font-medium text-gray-500",children:b})]})]})]})})}function eR({item:e,onSelect:i}){let l=(0,$.useSendInteractionEvent)(),a=(0,n.useCallback)(()=>{l({interactionType:"click",interactionElement:"content-search-location-result",moduleId:"content-search"}),i()},[l,i]);return(0,t.jsx)("li",{children:(0,t.jsx)(m.default,{href:e.url,onClick:a,sourceModule:"content-search",sourceElement:"content-search-location-result",className:(0,r.cn)("flex items-center overflow-hidden rounded-2xl py-2 pr-4 pl-2 no-underline","transition-colors hover:bg-gray-100 active:bg-gray-200","focus-visible:bg-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none"),children:(0,t.jsx)("span",{className:"line-clamp-2 text-sm leading-[1.15] font-semibold tracking-[-0.28px] text-gray-900",children:e.title})})})}let e_="control",eI="all-metadata",eU="69175b02ea24c7c105fbb4fc";function eO({visible:e,query:n,rows:i,showDate:a,dateStyle:s,showTrendingHeading:o,showNoResults:c,showSkeleton:u,locationRows:d,panelRef:m,inputRef:h,onQueryChange:f,onClear:p,onClose:g,onSelectRow:b}){let v=(0,l.useTranslations)("ContentSearch");return(0,t.jsx)("div",{ref:m,role:"dialog","aria-label":v("panelLabel"),className:(0,r.cn)("absolute top-0 bottom-0 left-20 z-105 flex w-[360px] flex-col bg-white","border-s border-black/10","shadow-[8px_0_30px_rgba(0,0,0,0.08)] rtl:shadow-[-8px_0_30px_rgba(0,0,0,0.08)]","transition-[opacity,translate] duration-150 ease-out",e?"translate-x-0 opacity-100":"pointer-events-none -translate-x-6 opacity-0 rtl:translate-x-6"),children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-6 pr-3 pb-4 pl-6",children:[(0,t.jsx)(x.default,{elementType:"h2",variant:"Body.L.ExtraBold",className:"flex-1 leading-normal text-gray-900",children:v("title")}),(0,t.jsx)("button",{type:"button",onClick:g,"aria-label":v("close"),className:"flex size-8 cursor-pointer items-center justify-center rounded-full bg-gray-100 text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(en.Close,{className:"size-4"})})]}),(0,t.jsx)("div",{className:"px-4 pt-6 pb-2",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(ew.Search,{"aria-hidden":"true",className:"pointer-events-none absolute start-4 top-1/2 size-4 -translate-y-1/2 text-gray-900"}),(0,t.jsx)("input",{ref:h,type:"search",value:n,onChange:e=>f(e.target.value),placeholder:v("placeholder"),"aria-label":v("inputLabel"),"data-testid":"content-search-input",className:(0,r.cn)("box-border h-12 w-full rounded-3xl border-2 border-gray-100 bg-white ps-10 pe-10","text-base font-medium tracking-[-0.32px] text-gray-900","placeholder:text-gray-400","transition-colors hover:border-blue-500 focus:border-blue-500 focus:outline-none","[&::-webkit-search-cancel-button]:appearance-none")}),n&&(0,t.jsx)("button",{type:"button",onClick:p,"aria-label":v("clear"),className:"absolute end-2 top-1/2 flex size-8 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full text-gray-900 transition-colors hover:bg-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(eA.CloseFilled,{className:"size-4"})})]})}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto px-3 py-2",children:[o&&(0,t.jsx)(eV,{children:v("trendingStories")}),(0,t.jsx)("p",{"aria-live":"polite",className:"sr-only",children:!n||c||u?"":v("resultCount",{count:i.length})}),u?(0,t.jsx)(eB,{}):c?(0,t.jsx)("div",{className:"flex items-center px-4 pt-4 pb-2",children:(0,t.jsx)("p",{"aria-live":"polite",className:"flex-1 text-center text-sm leading-[1.15] font-medium tracking-[-0.28px] text-gray-900",children:v("noResults",{query:n})})}):(0,t.jsxs)(t.Fragment,{children:[d.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eV,{children:v("locationsHeading")}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1 p-0",children:d.map(e=>(0,t.jsx)(eR,{item:e,onSelect:b},e.url))})]}),d.length>0&&i.length>0&&(0,t.jsx)(eV,{children:v("contentHeading")}),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1 p-0",children:i.map(e=>(0,t.jsx)(eM,{item:e,showDate:a,dateStyle:s,onSelect:b},e.id))})]})]})]})})}function eV({children:e}){return(0,t.jsx)("div",{className:"flex items-center px-2 pt-4 pb-2",children:(0,t.jsx)(x.default,{elementType:"h3",variant:"Body.S.Bold",className:"flex-1 leading-[1.15] text-gray-900",children:e})})}function eB(){return(0,t.jsx)("div",{"aria-hidden":"true",className:"flex animate-pulse flex-col gap-1 motion-reduce:animate-none",children:Array.from({length:6},(e,n)=>(0,t.jsxs)("div",{className:"flex items-center gap-4 py-2 pr-4 pl-2",children:[(0,t.jsx)("div",{className:"size-16 shrink-0 rounded-lg bg-gray-200"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("div",{className:"h-3.5 w-full rounded bg-gray-200"}),(0,t.jsx)("div",{className:"h-3.5 w-3/5 rounded bg-gray-200"}),(0,t.jsx)("div",{className:"mt-1 h-3 w-2/5 rounded bg-gray-200"})]})]},n))})}var eD=e.i(381477),ez=e.i(612977),eF=e.i(695881),eH=e.i(843612),e$=e.i(89022);let eq=(0,eF.createLogger)("ContentSearch");var eQ=e.i(763886),eG=e.i(780708),eW=e.i(647292),eK=e.i(97506);function eY(e){return e.url&&e.title?{id:e.id,title:e.title,url:e.url,thumbnailUrl:e.thumbnailUrl,kind:function(e){switch(e){case"videos":return"video";case"liveblogs":return"liveblog";default:return"article"}}(e.collection),readTimeMinutes:e.readTimeMinutes,watchTimeMinutes:e.watchTimeMinutes,durationSeconds:e.durationSeconds,timestamp:e.publishDate??e.updatedAt}:null}function eJ(e){let t=eZ(e.overrideTitle,e.title,e.headline),n=eZ(e.url,e.assetName);if(!t||!n)return null;let r="video"===e.contentType;return{id:e.id,title:t,url:n,thumbnailUrl:eZ(e.overrideThumbnail,e.thumbnail,e.src)??null,kind:r?"video":"article",readTimeMinutes:r?null:e0(e.readTime),watchTimeMinutes:null,durationSeconds:r?e0(e.durationSeconds):null,timestamp:eZ(e.publishdate,e.createddate)??null}}function eX(e){let t=eZ(e?.pageTitle),n=eZ(e?.pageUrl);return t&&n?{url:n,title:t}:null}function eZ(...e){for(let t of e)if("string"==typeof t&&t.trim())return t;return null}function e0(e){return"number"==typeof e&&Number.isFinite(e)?e:null}let e1=(0,eF.createLogger)("ContentSearch:trending");function e2({showDate:e,blended:r}){let l,[a,c]=(0,o.useAtom)(b.sidebarContentSearchOpenAtom),u=(0,$.useSendInteractionEvent)(),d=(0,ej.useRefMemo)(u),[m,h]=(0,n.useState)(""),f=(0,n.useRef)(null),x=(0,n.useRef)(null),[p,g]=(0,n.useState)(a),[v,y]=(0,n.useState)(!1),w=(0,n.useCallback)(()=>c(!1),[c]),{results:j,locations:N,settledQuery:A,isSearching:k,isQueryPending:C,hasQuery:S}=function(e,t=!1){let r=(0,i.useLocale)(),l=e.trim(),a=(0,ez.useDebounce)(e,300).trim(),s=(0,eH.isSearchableContentQuery)(a),o=(0,n.useRef)(new Set),c=(0,n.useCallback)(()=>{for(let e of o.current)e.abort();o.current.clear()},[]);(0,n.useEffect)(()=>()=>c(),[c]);let{data:u,error:d,isValidating:m}=(0,eD.default)(s?["content-search",t?"universal":"content",a,r]:null,([,e,t,n])=>{c();let r=new AbortController;o.current.add(r);let i={query:t,locale:n,limit:10,signal:r.signal};return("universal"===e?(0,e$.searchUniversal)(i):(0,eH.searchContent)(i).then(e=>({content:e,locations:[]}))).finally(()=>o.current.delete(r))},{revalidateOnFocus:!1,dedupingInterval:2e3,keepPreviousData:!0,shouldRetryOnError:!1});return d&&d?.name!=="AbortError"&&eq.error("content search failed",{query:a,error:d}),{results:u?.content??[],locations:u?.locations??[],settledQuery:a,isSearching:s&&m,isQueryPending:(0,eH.isSearchableContentQuery)(l)&&l!==a,hasQuery:s}}(m,r),{items:E}=function(e){let t=(0,o.useAtomValue)(eQ.partnerAtom),n=(0,o.useAtomValue)(eW.webViewPlatformAtom),r=(0,o.useAtomValue)(s.pageLocaleAtom),i=(0,eG.resolveContentChannel)(t??"",n??""),l=e&&!!eU,{data:a,error:c,isLoading:u}=(0,eD.default)(l?["content-search-trending",eU,i,r]:null,([,e,t,n])=>(0,eK.getContentQueryMedia)({queryId:e,channel:t,language:n,limit:6}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0,shouldRetryOnError:!1});return c&&e1.error("trending content query failed",{channel:i,locale:r,error:c}),{items:(a??[]).map(eJ).filter(e=>null!==e).slice(0,6),isLoading:l&&u}}(a&&!S);(0,n.useEffect)(()=>{if(a){g(!0),d.current({interactionType:"open",interactionElement:"content-search-modal",moduleId:"content-search"});let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>y(!0))});return()=>{cancelAnimationFrame(t),e&&cancelAnimationFrame(e)}}y(!1);let e=setTimeout(()=>{g(!1),h("")},150);return()=>clearTimeout(e)},[a,d]),(0,n.useEffect)(()=>{v&&x.current?.focus()},[v]);let T=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(a){T.current=document.activeElement;return}let e=T.current;T.current=null,e&&f.current?.contains(document.activeElement)&&e.focus()},[a]);let L=(0,n.useRef)(null);(0,n.useEffect)(()=>{S&&L.current!==A&&(L.current=A,d.current({interactionType:"type",interactionElement:"content-search-typeahead",moduleId:"content-search"}))},[S,A,d]);let P=(l=(0,eN.useTrackEvent)(),(0,n.useCallback)(({searchTerm:e,resultCount:t})=>{l("content-search",{searchQuery:e,searchResultCount:t})},[l])),M=(0,n.useRef)(null);if((0,n.useEffect)(()=>{!S||k||M.current!==A&&(M.current=A,P({searchTerm:A,resultCount:j.length}))},[S,k,A,P,j]),(0,n.useEffect)(()=>{a||(M.current=null,L.current=null)},[a]),(0,n.useEffect)(()=>{if(!a)return;let e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a,w]),(0,n.useEffect)(()=>{if(a)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){let t=e.target;f.current&&t&&!f.current.contains(t)&&!t.closest("[data-content-search-trigger]")&&w()}},[a,w]),!p)return null;let R=S?j.map(eY).filter(e=>null!==e):E,_=S?N.map(eX).filter(e=>null!==e).slice(0,5):[],I=0===R.length&&0===_.length,U=C||S&&k;return(0,t.jsx)(eO,{visible:v,query:m,rows:R,showDate:e,dateStyle:S?"absolute":"relative",showTrendingHeading:!S&&R.length>0,showNoResults:S&&!U&&I,showSkeleton:U,locationRows:_,panelRef:f,inputRef:x,onQueryChange:h,onClear:()=>{h(""),x.current?.focus()},onClose:w,onSelectRow:w})}var e5=e.i(645968),e3=e.i(624432);function e6({forceCollapsedNavbar:e}){let n=(0,l.useTranslations)("ContentSearch"),{isEnabled:i,showDate:a}=function(){var e;let{value:t}=(0,e5.default)("content-search-desktop-web",e_),n=(e=t)===e_||e===eI||"no-date"===e?t:e_;return{variant:n,isEnabled:n!==e_,showDate:n===eI}}(),s=(0,o.useAtomValue)(e3.contentSearchUniversalAtom),[c,u]=(0,o.useAtom)(b.sidebarContentSearchOpenAtom),{ref:d,isOverDark:m}=v((0,o.useAtomValue)(b.sidebarSuppressDarkAtom)),h=(0,$.useSendInteractionEvent)();if(!i)return null;let f=!e;return(0,t.jsxs)("div",{ref:d,className:"w-full px-3",children:[(0,t.jsxs)("button",{type:"button","data-content-search-trigger":!0,"data-testid":"content-search-trigger","aria-label":n("triggerLabel"),"aria-haspopup":"dialog","aria-expanded":c,onClick:()=>{h({interactionType:"click",interactionElement:"content-search-entry",moduleId:"SidebarNavigation",lockedContent:"false"}),u(e=>!e)},className:(0,r.cn)("box-border flex h-12 cursor-pointer items-center rounded-3xl border transition-colors duration-200","focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none","w-12 justify-center",f&&"xl:w-full xl:justify-start xl:gap-2 xl:ps-3 xl:pe-2",{"border-transparent bg-gray-100 text-blue-500":c,"border-black/10 bg-white text-gray-600 hover:border-transparent hover:bg-gray-100":!c&&!m,"border-white/20 bg-transparent text-white hover:border-transparent hover:bg-white/10":m&&!c,"border-transparent bg-[#252422] text-white hover:bg-[#252422]":m&&c}),children:[(0,t.jsx)(ew.Search,{"aria-hidden":"true",className:"size-6 shrink-0 text-inherit"}),f&&(0,t.jsx)("span",{className:"hidden truncate text-base font-medium tracking-[-0.32px] text-inherit xl:inline",children:n("triggerLabel")})]}),(0,t.jsx)(e2,{showDate:a,blended:s})]})}let e4=()=>{let e,s,c,u,d,x,g,k,U,F,H,$,q,Q,G,W,Y,J,X,ee,et,en=(e=(0,j.useChromeLocation)(),s=(0,I.decodeLocId)(e?.placeId||""),c=(0,w.useParams)(),d="string"==typeof(u=c?.featureId)?u:void 0,x=e?.featureId??d,g=e?.canonicalID,k=(0,w.usePathname)(),U=(0,E.usePageLocale)(),F=(0,o.useAtomValue)(T.pageIdAtom),H=(0,L.useIsHydratingRender)(),$=(0,o.useAtomValue)(_.geoipCountry),q=(H?"":$)||"",Q=(0,o.useAtomValue)(P.newsHubEnabledAtom),G=[(0,R.getPartner)(),(0,R.getSamsungVietnamPartner)()].filter(Boolean),W=(0,l.useTranslations)("SidebarNavigation"),Y=(0,M.useVideoNavUrl)(),J=(0,N.useCanonicalBasePath)(),X=(0,A.useRouteCanonicalBase)(),ee=(0,S.useIsSamsungPartner)(),(0,n.useMemo)(()=>{var e,t,n,r,i,l,a,o,c,u;let d,m,h,f,b,v,y,w,j=(({navigationData:e,locale:t,geoIPCountry:n,partner:r,theme:i,videoUrl:l,pathname:a,locId:s,featureId:o,pageId:c,newsHubEnabled:u,tSidebarNavigation:d,canonicalBasePath:m,linkBasePath:h,canonicalID:f,skipCanonical:x})=>{let p=e.filter(V({filteredPropName:"Locales",filteredPropValue:t})).filter(V({filteredPropName:"Partners",filteredPropValue:r})).filter(V({filteredPropName:"Themes",filteredPropValue:i})).filter(V({filteredPropName:"GeoIP",filteredPropValue:n})).filter(B(u)).map(e=>"links"in e?{...e,links:e.links.filter(V({filteredPropName:"Locales",filteredPropValue:t})).filter(V({filteredPropName:"Partners",filteredPropValue:r})).filter(V({filteredPropName:"Themes",filteredPropValue:i})).filter(V({filteredPropName:"GeoIP",filteredPropValue:n})).filter(B(u))}:e);return O({navigationData:p=p.filter(e=>!("links"in e)||e.links.length>0),locale:t,geoIPCountry:n,partner:r,theme:i,videoUrl:l,pathname:a,locId:s,featureId:o,pageId:c,tSidebarNavigation:d,canonicalBasePath:m,linkBasePath:h,canonicalID:f,skipCanonical:x})})({locId:s,featureId:x,pathname:k,videoUrl:Y,navigationData:JSON.parse(JSON.stringify(p.NAVIGATION_DATA)),locale:U,pageId:F,newsHubEnabled:Q,geoIPCountry:q,partner:G,tSidebarNavigation:W,canonicalBasePath:J,linkBasePath:X,canonicalID:g,skipCanonical:ee,theme:""});return e=j,t=s,n=U,r=k,i=W,l=J,a=x,o=g,c=ee,u=X,d=e.filter(e=>"links"in e||!z.some(t=>e.url.includes(t))),m=(0,C.buildLocationPageHref)({pageType:"today",locale:n,canonicalID:o,featureId:a,placeId:t,canonicalBasePath:u??l,skipCanonical:c}),h=l?["today","hourbyhour","tenday"].includes(r.split("/").pop()??""):r.includes("/weather/today/")||r.includes("/weather/hourbyhour/")||r.includes("/weather/tenday/"),b=r===(f="en-US"===n?"/":`/${n}`)||r===`${f}/`,v={title:i("forecasts"),url:m,icon:"PartlyCloudyBold",isActive:h||b},y=new Set([f,`/${n}`]),w=d.findIndex(e=>!("links"in e)&&y.has(e.url)),d.splice(w>=0?w+1:0,0,v),j=d},[s,x,g,k,Y,U,F,Q,G,J,X,ee])),er=(et=(0,w.usePathname)()).includes("/subscribe")||et.includes("/radar/interactive")||D.test(et)||et.includes("/signup"),ei=(0,i.useLocale)(),el=(0,a.interpolateUrl)(a.URLS.home,{locale:ei}),ea=(0,l.useTranslations)("SidebarNavigation"),es=(0,o.useSetAtom)(b.sidebarHoveredAtom),eo=(0,o.useSetAtom)(b.sidebarFocusedAtom),ec=(0,o.useAtomValue)(b.sidebarSuppressDarkAtom);(0,n.useEffect)(()=>()=>{es(!1),eo(!1)},[es,eo]);let{ref:eu,isOverDark:em}=v(ec),eh="desktop"===(0,o.useAtomValue)(ey.deviceClassAtom),ef=(0,S.useIsSamsungPartner)(),ex=eh&&!ef&&"en-US"===ei,ep=(0,o.useAtomValue)(b.sidebarContentSearchOpenAtom),eg=er||ep;return(0,t.jsxs)("div",{className:"z-nav sticky top-0 hidden md:block",children:[(0,t.jsxs)("nav",{onMouseEnter:()=>es(!0),onMouseLeave:()=>es(!1),onFocusCapture:()=>eo(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||eo(!1)},className:(0,r.cn)("relative top-0 box-content flex h-full h-screen w-20 flex-col gap-8 leading-none transition-colors duration-200 max-xl:items-center",ec?"bg-white":"bg-white/0",{"xl:w-[200px]":!er}),"data-component":"sidebar-navigation","data-testid":"sidebar-navigation","aria-label":ea("siteNavigationLinks"),children:[(0,t.jsxs)("div",{ref:eu,className:(0,r.cn)("mb-0 flex flex-wrap items-center justify-center gap-4 pt-4 leading-none xl:px-4",{"xl:justify-start":!er}),children:[(0,t.jsx)(m.default,{href:el,sourceModule:"sidebarNavigation",children:(0,t.jsx)(f.default,{className:(0,r.cn)("h-12 w-auto transition-colors duration-200",em?"text-white":"text-[#003399]")})}),(0,t.jsx)(h,{})]}),ex&&(0,t.jsx)(e6,{forceCollapsedNavbar:eg}),(0,t.jsxs)("ul",{className:(0,r.cn)("m-0 flex w-full flex-col gap-1 px-3",{"xl:w-20":er}),children:[en.filter(e=>!e.links).map(e=>(0,t.jsx)(y,{link:e,forceCollapsedNavbar:er,iconOnly:ep},e.title)),(0,t.jsx)(Z,{forceCollapsedNavbar:er,iconOnly:ep})]}),(0,t.jsxs)("ul",{className:(0,r.cn)("m-0 flex w-full flex-col gap-1 px-3",{"xl:w-20":er}),children:[(0,t.jsx)(ev,{forceCollapsedNavbar:er,iconOnly:ep}),(0,t.jsx)(K,{forceCollapsedNavbar:er,iconOnly:ep})]})]}),(0,t.jsx)(ed,{})]})};e.s(["SidebarNavigation",0,e4,"default",0,e4],906361)},843612,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.CONTENT_SEARCH_MIN_QUERY_LENGTH=void 0,n.isSearchableContentQuery=function(e){let t=e.trim();return t.split(/\s+/).filter(Boolean).length>=2||t.length>=n.CONTENT_SEARCH_MIN_QUERY_LENGTH},n.searchContent=i;let r=e.r(414655);async function i({query:e,locale:t="en-US",limit:n=10,signal:l}){let a=new URLSearchParams({query:e,type:"content",locale:t,limit:String(n)}),s=await fetch(`/api/universal-search?${a}`,{signal:l,cache:"no-store"}),o=await (0,r.handleFetchResponse)(s);return Array.isArray(o?.content)?o.content:[]}n.CONTENT_SEARCH_MIN_QUERY_LENGTH=3},89022,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.searchUniversal=i;let r=e.r(414655);async function i({query:e,locale:t="en-US",limit:n=10,signal:l}){let a=new URLSearchParams({query:e,type:"universal",locale:t,limit:String(n)}),s=await fetch(`/api/universal-search?${a}`,{signal:l,cache:"no-store"}),o=await (0,r.handleFetchResponse)(s);return{locations:Array.isArray(o?.locations)?o.locations:[],content:Array.isArray(o?.content)?o.content:[]}}n.default=i}]);