(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,316810,e=>{"use strict";var l=e.i(699173),t=e.i(632137);e.s(["default",0,({className:e})=>(0,l.jsx)("span",{className:(0,t.cn)("text-xxs bg-brand-200 ml-2 inline-flex h-[19px] items-center justify-center rounded-md border-2 border-white px-[3px] py-1 font-bold text-white",e),children:"New"})])},843612,(e,l,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTENT_SEARCH_MIN_QUERY_LENGTH=void 0,t.isSearchableContentQuery=function(e){let l=e.trim();return l.split(/\s+/).filter(Boolean).length>=2||l.length>=t.CONTENT_SEARCH_MIN_QUERY_LENGTH},t.searchContent=i;let r=e.r(414655);async function i({query:e,locale:l="en-US",limit:t=10,signal:a}){let n=new URLSearchParams({query:e,type:"content",locale:l,limit:String(t)}),o=await fetch(`/api/universal-search?${n}`,{signal:a,cache:"no-store"}),s=await (0,r.handleFetchResponse)(o);return Array.isArray(s?.content)?s.content:[]}t.CONTENT_SEARCH_MIN_QUERY_LENGTH=3},89022,(e,l,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchUniversal=i;let r=e.r(414655);async function i({query:e,locale:l="en-US",limit:t=10,signal:a}){let n=new URLSearchParams({query:e,type:"universal",locale:l,limit:String(t)}),o=await fetch(`/api/universal-search?${n}`,{signal:a,cache:"no-store"}),s=await (0,r.handleFetchResponse)(o);return{locations:Array.isArray(s?.locations)?s.locations:[],content:Array.isArray(s?.content)?s.content:[]}}t.default=i},906361,e=>{"use strict";var l=e.i(699173),t=e.i(592121),r=e.i(632137),i=e.i(730921),a=e.i(683903),n=e.i(611540);e.i(609717);var o=e.i(950771),s=e.i(546446);let d=[{locales:["de-DE"],url:"https://www.focus.de/?utm_source=weather.com&utm_medium=referral&utm_campaign=unser+netzwerk",cobrandIconSrc:{src:e.i(10993).default,width:208,height:74,blurWidth:0,blurHeight:0}.src}];var c=e.i(37429),u=e.i(240058);let f=e=>{let{classname:t}=e,i=(0,s.useAtomValue)(o.pageLocaleAtom),{url:a,cobrandIconSrc:n}=d.find(e=>e.locales.includes(i))||{};return a&&n?(0,l.jsx)("span",{className:"flex",children:(0,l.jsx)(u.default,{href:a,target:"_blank",className:(0,r.cn)("relative p-0",t,{"de-DE":"de-DE"===i}),children:(0,l.jsx)(c.default,{className:"h-6 w-auto max-w-none",src:n,alt:"focus logo",rounded:!1})})}):null};var h=e.i(458645),x=e.i(368847),m=e.i(113016),p=e.i(312401),g=e.i(51398),v=e.i(240027),b=e.i(747961);let w=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Playlist"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M9.5 11.395a.5.5 0 0 1 .762-.426l5.046 3.105a.5.5 0 0 1 0 .852l-5.046 3.105a.5.5 0 0 1-.762-.425z"}),(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm-17 13h17V9h-17z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"currentColor",d:"M18.25 4a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5zM14.75 1a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5z"})]})),y=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:w,...e}));y.displayName="PlaylistVideoBold";let j=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Playlist"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.5 7a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-17a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm-10.238 3.969a.5.5 0 0 0-.762.426v6.21a.5.5 0 0 0 .762.426l5.046-3.105a.5.5 0 0 0 0-.852z",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"currentColor",d:"M18.25 4a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5zM14.75 1a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5z"})]})),N=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:j,...e}));N.displayName="PlaylistVideoBoldFilled";var A=e.i(807215),C=e.i(876329);let B=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Close"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5a1 1 0 0 1 1 1V3H19a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5v-.5a1 1 0 0 1 2 0V3h5v-.5a1 1 0 0 1 1-1M5 10v9h14v-9zm0-2h14V5h-2.5v.5a1 1 0 1 1-2 0V5h-5v.5a1 1 0 0 1-2 0V5H5z",clipRule:"evenodd"})]})),S=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:B,...e}));S.displayName="CalendarBold";let R=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Daily"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.5 1.5a1 1 0 0 1 1 1V3H19a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h2.5v-.5a1 1 0 0 1 2 0V3h5v-.5a1 1 0 0 1 1-1M5 8h14V5h-2.5v.5a1 1 0 1 1-2 0V5h-5v.5a1 1 0 0 1-2 0V5H5z",clipRule:"evenodd"})]})),k=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:R,...e}));k.displayName="CalendarBoldFilled";let T=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Hourly"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M12 6a1 1 0 0 1 1 1v4.586l2.707 2.707a1 1 0 1 1-1.414 1.414l-3-3A1 1 0 0 1 11 12V7a1 1 0 0 1 1-1"}),(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16",clipRule:"evenodd"})]})),L=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:T,...e}));L.displayName="TimeBold";let M=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Hourly"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 4a1 1 0 0 0-1 1v5a1 1 0 0 0 .293.707l3 3a1 1 0 1 0 1.414-1.414L13 11.586V7a1 1 0 0 0-1-1",clipRule:"evenodd"})]})),P=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:M,...e}));P.displayName="TimeBoldFilled";var V=e.i(129932),E=e.i(800177);let U=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Breathing"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M15.1 13.5c1.103 0 1.991-.001 2.709.058.728.06 1.368.185 1.96.487a5 5 0 0 1 2.186 2.185c.302.593.428 1.233.487 1.961.059.718.058 1.606.058 2.71V21a1 1 0 1 1-2 0v-.1c0-1.136 0-1.929-.05-2.545-.05-.606-.143-.954-.277-1.217a3 3 0 0 0-1.31-1.31c-.264-.135-.612-.228-1.218-.277-.616-.05-1.409-.051-2.545-.051h-.2c-1.136 0-1.929 0-2.546.05-.605.05-.953.143-1.216.277a3 3 0 0 0-1.31 1.31c-.135.264-.228.612-.277 1.218-.05.616-.051 1.409-.051 2.545v.1a1 1 0 1 1-2 0v-.1c0-1.103-.001-1.991.058-2.709.06-.728.185-1.368.487-1.96a5 5 0 0 1 2.185-2.186c.593-.302 1.233-.428 1.961-.487.718-.059 1.606-.058 2.71-.058z"}),(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10m0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6",clipRule:"evenodd"}),(0,l.jsx)("path",{fill:"currentColor",d:"M8 8a.75.75 0 0 1 0 1.5H4.5a.75.75 0 0 0-.75.75v.5a.75.75 0 0 1-1.5 0v-.5A2.25 2.25 0 0 1 4.5 8zM3 3.5a.75.75 0 0 1 .75.75v.5c0 .414.336.75.75.75H8A.75.75 0 0 1 8 7H4.5a2.25 2.25 0 0 1-2.25-2.25v-.5A.75.75 0 0 1 3 3.5"})]})),H=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:U,...e}));H.displayName="BreathingBold";let I=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Breathing"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M15.1 13.5c1.103 0 1.991-.001 2.709.058.728.06 1.368.185 1.96.487a5 5 0 0 1 2.186 2.185c.302.593.428 1.233.487 1.961.059.718.058 1.606.058 2.71 0 .092 0 .138-.003.177a1 1 0 0 1-.919.92C21.54 22 21.493 22 21.4 22H8.6c-.093 0-.14 0-.178-.003a1 1 0 0 1-.92-.919C7.5 21.04 7.5 20.993 7.5 20.9c0-1.103-.001-1.991.058-2.709.06-.728.185-1.368.487-1.96a5 5 0 0 1 2.185-2.186c.593-.302 1.233-.428 1.961-.487.718-.059 1.606-.058 2.71-.058zM8 8a1 1 0 0 1 0 2H4.5a.5.5 0 0 0-.5.5v.5a1 1 0 1 1-2 0v-.5A2.5 2.5 0 0 1 4.5 8zM15 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10M3 3a1 1 0 0 1 1 1v.5a.5.5 0 0 0 .5.5H8a1 1 0 0 1 0 2H4.5A2.5 2.5 0 0 1 2 4.5V4a1 1 0 0 1 1-1"})]})),z=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:I,...e}));z.displayName="BreathingBoldFilled";let F=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Virus"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M12.75 14a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M8.75 11.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M12 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2M15.25 10a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M11.25 7.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5"}),(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 1.5a1 1 0 1 1 0 2H13v1.067a7.46 7.46 0 0 1 3.547 1.47l.757-.755-.354-.353a1 1 0 1 1 1.414-1.414l2.121 2.12a1 1 0 0 1-1.414 1.415l-.353-.354-.756.756A7.46 7.46 0 0 1 19.432 11H20.5v-.5a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0V13h-1.068a7.46 7.46 0 0 1-1.47 3.547l.756.757.353-.354a1 1 0 1 1 1.414 1.414l-2.12 2.121a1 1 0 0 1-1.415-1.414l.354-.353-.757-.756A7.46 7.46 0 0 1 13 19.432V20.5h.5a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2h.5v-1.068a7.46 7.46 0 0 1-3.548-1.47l-.756.756.354.353a1 1 0 1 1-1.414 1.414l-2.121-2.12a1 1 0 0 1 1.414-1.415l.353.354.755-.757A7.46 7.46 0 0 1 4.568 13H3.5v.5a1 1 0 1 1-2 0v-3a1 1 0 0 1 2 0v.5h1.068a7.46 7.46 0 0 1 1.47-3.548l-.756-.756-.353.354a1 1 0 1 1-1.414-1.414l2.12-2.121A1 1 0 0 1 7.05 4.929l-.354.353.756.755A7.46 7.46 0 0 1 11 4.567V3.5h-.5a1 1 0 0 1 0-2zm-1.5 5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11",clipRule:"evenodd"})]})),_=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:F,...e}));_.displayName="FluBold";let O=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Virus"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 1.5a1 1 0 1 1 0 2H13v1.067a7.46 7.46 0 0 1 3.547 1.47l.757-.755-.354-.353a1 1 0 1 1 1.414-1.414l2.121 2.12a1 1 0 0 1-1.414 1.415l-.353-.354-.756.756A7.46 7.46 0 0 1 19.432 11H20.5v-.5a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0V13h-1.068a7.46 7.46 0 0 1-1.47 3.547l.756.757.353-.354a1 1 0 1 1 1.414 1.414l-2.12 2.121a1 1 0 0 1-1.415-1.414l.354-.353-.757-.756A7.46 7.46 0 0 1 13 19.432V20.5h.5a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2h.5v-1.068a7.46 7.46 0 0 1-3.548-1.47l-.756.756.354.353a1 1 0 1 1-1.414 1.414l-2.121-2.12a1 1 0 0 1 1.414-1.415l.353.354.755-.757A7.46 7.46 0 0 1 4.568 13H3.5v.5a1 1 0 1 1-2 0v-3a1 1 0 0 1 2 0v.5h1.068a7.46 7.46 0 0 1 1.47-3.548l-.756-.756-.353.354a1 1 0 1 1-1.414-1.414l2.12-2.121A1 1 0 0 1 7.05 4.929l-.354.353.756.755A7.46 7.46 0 0 1 11 4.567V3.5h-.5a1 1 0 0 1 0-2zm-.25 13a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m-5-2.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2m3.75-1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m-5-2.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5",clipRule:"evenodd"})]})),D=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:O,...e}));D.displayName="FluBoldFilled";let $=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Hurricane"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M4 11.5c0-4.926 3.82-7.286 7.19-8.388 1.712-.56 3.41-.836 4.67-.973a25 25 0 0 1 1.972-.137l.12-.002H18a1 1 0 0 1 .815 1.581l-1.962 2.745c.336.307.753.72 1.17 1.226C18.964 8.697 20 10.418 20 12.5c0 4.926-3.82 7.286-7.19 8.388-1.712.56-3.41.836-4.67.973a25 25 0 0 1-1.972.137l-.12.002H6a1 1 0 0 1-.814-1.581l1.96-2.746a12 12 0 0 1-1.168-1.225C5.036 15.303 4 13.582 4 11.5m10.918-4.187a1 1 0 0 1-.231-1.394l1.27-1.778c-1.162.132-2.66.386-4.147.872C8.68 6.036 6 7.926 6 11.5c0 1.418.714 2.697 1.521 3.677A10 10 0 0 0 8.968 16.6q.061.048.092.07l.02.015.001.002a1 1 0 0 1 .232 1.394l-1.27 1.777c1.161-.132 2.66-.385 4.147-.87C15.32 17.963 18 16.073 18 12.5c0-1.418-.714-2.697-1.521-3.677A10 10 0 0 0 15.032 7.4l-.092-.07-.02-.016z"})]})),q=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:$,...e}));q.displayName="HurricaneBold";let K=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Hurricane"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M4 11.5c0-4.926 3.82-7.286 7.19-8.388 1.712-.56 3.41-.836 4.67-.973a25 25 0 0 1 1.972-.137l.12-.002H18a1 1 0 0 1 .815 1.581l-1.962 2.745c.336.307.753.72 1.17 1.226C18.964 8.697 20 10.418 20 12.5c0 4.926-3.82 7.286-7.19 8.388-1.712.56-3.41.836-4.67.973a25 25 0 0 1-1.972.137l-.12.002H6a1 1 0 0 1-.814-1.581l1.96-2.746a12 12 0 0 1-1.168-1.225C5.036 15.303 4 13.582 4 11.5"})]})),Q=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:K,...e}));Q.displayName="HurricaneBoldFilled";var G=e.i(702957),W=e.i(489408);let Y=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Allergy"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 3.05c-.133 2.644-.8 4.637-1.783 6.126a8.23 8.23 0 0 1-3.488 2.983 9.9 9.9 0 0 1-3.729.86v6.044c2.101.257 3.941 1.315 5.019 2.867a1 1 0 0 1-1.643 1.14C14.547 21.876 12.933 21 11 21c-1.553 0-2.911.568-3.813 1.42a1 1 0 0 1-1.373-1.454c1.08-1.02 2.551-1.704 4.186-1.905v-6.015h-.033c-.673-.017-1.598-.121-2.525-.492-.94-.376-1.897-1.033-2.57-2.146-.672-1.11-1.005-2.578-.869-4.48L4.07 5H5c2.827 0 4.586.886 5.637 2.063a7.1 7.1 0 0 1 1.516-2.442C13.786 2.914 16.348 2 20 2h1.052zM5.978 7.045c.04 1.06.286 1.804.603 2.328.405.668.979 1.074 1.602 1.323.627.251 1.29.334 1.816.349V11l.006-.379a3.84 3.84 0 0 0-.444-1.64c-.426-.775-1.355-1.721-3.583-1.936m12.929-3.012c-2.687.164-4.32.937-5.31 1.97-1.06 1.109-1.541 2.682-1.593 4.637q.004.083.004.152 0 .13-.006.208l-.002.015c.082-.004.168-.005.258-.012a7.9 7.9 0 0 0 2.638-.662 6.23 6.23 0 0 0 2.652-2.267c.63-.953 1.14-2.256 1.359-4.04",clipRule:"evenodd"})]})),J=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:Y,...e}));J.displayName="PollenBold";let X=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Allergy"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 3.05c-.133 2.644-.8 4.637-1.783 6.126a8.23 8.23 0 0 1-3.488 2.983 9.9 9.9 0 0 1-3.729.86v6.044c2.101.257 3.941 1.315 5.019 2.867a1 1 0 0 1-1.643 1.14C14.547 21.876 12.933 21 11 21c-1.553 0-2.911.568-3.813 1.42a1 1 0 0 1-1.373-1.454c1.08-1.02 2.551-1.704 4.186-1.905v-6.015h-.033c-.673-.017-1.598-.121-2.525-.492-.94-.376-1.897-1.033-2.57-2.146-.672-1.11-1.005-2.578-.869-4.48L4.07 5H5c2.827 0 4.586.886 5.637 2.063a7.1 7.1 0 0 1 1.516-2.442C13.786 2.914 16.348 2 20 2h1.052z",clipRule:"evenodd"})]})),Z=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:X,...e}));Z.displayName="PollenBoldFilled";let ee=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Storm"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M11.124 11.519a1 1 0 1 1 1.752.962L10.94 16h4.77l-3.089 5.49a1 1 0 1 1-1.742-.98L12.29 18H7.559z"}),(0,l.jsx)("path",{fill:"currentColor",d:"M12 2.5a7 7 0 0 1 6.626 4.747 5.5 5.5 0 0 1-.404 10.616 1 1 0 0 1-.444-1.95 3.5 3.5 0 0 0-.133-6.853l-.635-.118-.154-.629a5 5 0 0 0-9.713 0l-.154.628-.635.12a3.5 3.5 0 0 0-.909 6.576 1 1 0 0 1-.89 1.79 5.5 5.5 0 0 1 .817-10.18A7 7 0 0 1 12 2.5"})]})),el=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:ee,...e}));el.displayName="ThunderstormsBold";let et=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Storm"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M11.124 11.519a1 1 0 1 1 1.752.962L10.94 16h4.77l-3.089 5.49a1 1 0 1 1-1.742-.98L12.29 18H7.559z"}),(0,l.jsx)("path",{fill:"currentColor",d:"M12 2a7 7 0 0 1 6.626 4.747 5.5 5.5 0 0 1-1.464 10.748l1.129-2.005A1 1 0 0 0 17.42 14h-3.097l.305-.555A3 3 0 0 0 9.45 10.42l-.077.134-3.728 6.776a5.5 5.5 0 0 1-.271-10.584A7 7 0 0 1 12 2"})]})),er=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:et,...e}));er.displayName="ThunderstormsBoldFilled";let ei=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Tornado"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M13 19a1 1 0 1 1 0 2h-3a1 1 0 1 1 0-2zM12 16a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2zM13 13a1 1 0 1 1 0 2H5.5a1 1 0 1 1 0-2zM14 10a1 1 0 1 1 0 2H6a1 1 0 1 1 0-2zM17 7a1 1 0 1 1 0 2H4.5a1 1 0 0 1 0-2zM19 4a1 1 0 1 1 0 2H6a1 1 0 0 1 0-2z"})]})),ea=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:ei,...e}));ea.displayName="TornadoBold";let en=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Tornado"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("path",{fill:"currentColor",d:"M12.5 18.5a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0-3h-2a1.5 1.5 0 0 1 0-3H6a1.5 1.5 0 0 1 0-3h.5a1.5 1.5 0 0 1 0-3H5a1.5 1.5 0 1 1 0-3h1.5a1.5 1.5 0 1 1 0-3h12a1.5 1.5 0 0 1 0 3h-2a1.5 1.5 0 0 1 0 3h-3a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0 3h-1a1.5 1.5 0 0 1 0 3z"})]})),eo=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:en,...e}));eo.displayName="TornadoBoldFilled";var es=e.i(132084);let ed={VideoPlayerBold:m.VideoPlayerBold,VideoPlayerBoldActive:p.VideoPlayerBoldFilled,PlaylistVideoBold:y,PlaylistVideoBoldActive:N,RadarBold:A.RadarBold,RadarBoldActive:C.RadarBoldFilled,News:g.News,NewsActive:v.NewsFilled,CalendarBold:S,CalendarBoldActive:k,TimeBold:L,TimeBoldActive:P,SkincareBold:V.SkincareBold,SkincareBoldActive:E.SkincareBoldFilled,BreathingBold:H,BreathingBoldActive:z,FluBold:_,FluBoldActive:D,HurricaneBold:q,HurricaneBoldActive:Q,PartlyCloudyBold:G.PartlyCloudyBold,PartlyCloudyBoldActive:W.PartlyCloudyBoldFilled,PollenBold:J,PollenBoldActive:Z,ThunderstormsBold:el,ThunderstormsBoldActive:er,TornadoBold:ea,TornadoBoldActive:eo},ec=[{url:n.URLS.today,titleTranslationKey:"today",icon:"PartlyCloudyBold"},{url:n.URLS.hourly,titleTranslationKey:"hourly",icon:"TimeBold"},{url:n.URLS.tenday,titleTranslationKey:"tenday",excludePartners:["oppo_widget"],icon:"CalendarBold"},{url:n.URLS.tenday,titleTranslationKey:"fifteenday",includePartners:["oppo_widget"],icon:"CalendarBold"},{url:n.URLS.radar,titleTranslationKey:"radar",excludePartners:[es.SAMSUNG_VIETNAM_PARTNER],icon:"RadarBold"},{title:"News",url:n.URLS.news,includeLocales:["en-US"],includeGeoIP:["US"],icon:"News",requiresNewsHub:!0},{dynamicVideoUrl:!0,title:"Video",includeLocales:["en-US","es-US"],icon:"VideoPlayerBold",requiresNewsHub:!1},{url:n.URLS.allergy,titleTranslationKey:"allergyTracker",excludeLocales:["de-DE","en-US"],icon:"PollenBold"},{url:n.URLS.airQuality,titleTranslationKey:"airQualityIndex",excludeLocales:["de-DE","en-US"],icon:"BreathingBold"},{title:"Severe Weather",includeLocales:["en-US"],includePartners:[es.Partner.SAMSUNG],links:[{url:n.URLS.hurricaneCentral,title:"Hurricane Central",icon:"HurricaneBold"},{url:n.URLS.tornadoCentral,title:"Tornado Central",icon:"TornadoBold"},{url:n.URLS.safetyIndex,title:"Safety & Prep",icon:"ThunderstormsBold"}]},{title:"Health & Wellness",includeLocales:["en-US"],includePartners:[es.Partner.SAMSUNG],links:[{url:n.URLS.allergy,titleTranslationKey:"allergyTracker",icon:"PollenBold"},{url:n.URLS.airQuality,titleTranslationKey:"airQualityIndex",icon:"BreathingBold"},{url:n.URLS.coldFlu,title:"Cold & Flu Tracker",icon:"FluBold"},{url:n.URLS.skinHealth,title:"Skin Health",icon:"PlaylistVideoBold"}]},{title:"Lifestyle",includeLocales:["en-US"],includePartners:[es.Partner.SAMSUNG],links:[{url:n.URLS.homeGarden,title:"Home & Garden",icon:"PlaylistVideoBold"},{url:n.URLS.pets,title:"Pets & Animals",icon:"PlaylistVideoBold"},{url:n.URLS.recipes,title:"Recipes",icon:"PlaylistVideoBold"},{url:n.URLS.spaceSkywatching,title:"Space & Skywatching",icon:"PlaylistVideoBold"},{url:n.URLS.travel,title:"Travel & Outdoors",icon:"PlaylistVideoBold"},{url:n.URLS.atmosphere,title:"Product Reviews & Deals",icon:"SkincareBold"},{url:n.URLS.shop,title:"Shop",openInNewWindow:!0,icon:"SkincareBold"}]}];var eu=e.i(316810),ef=e.i(436066);function eh(e=!1){let l=(0,t.useRef)(null),[r,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=l.current;if(!e)return;let t=0,r=()=>{t=0;let l=document.querySelectorAll("[data-fullbleed-dark]");if(0===l.length)return void i(!1);let r=e.getBoundingClientRect(),a=r.top+r.height/2;i(Array.from(l).some(e=>{let l=e.getBoundingClientRect();return l.bottom>l.top&&a>=l.top&&a{t||(t=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),window.addEventListener("fullbleed:change",a),()=>{t&&cancelAnimationFrame(t),window.removeEventListener("scroll",a),window.removeEventListener("resize",a),window.removeEventListener("fullbleed:change",a)}},[]),{ref:l,isOverDark:r&&!e}}let ex=({link:e,role:t,forceCollapsedNavbar:i,iconOnly:a})=>{let n=(0,s.useAtomValue)(ef.sidebarMoreOpenAtom),o=(0,s.useAtomValue)(ef.sidebarContentSearchOpenAtom),d=e.isActive&&!n&&!o,c=ed[`${e.icon}${d?"Active":""}`],{ref:f,isOverDark:h}=eh((0,s.useAtomValue)(ef.sidebarSuppressDarkAtom));return(0,l.jsx)("li",{ref:f,children:(0,l.jsxs)(u.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":a,"pointer-events-none bg-gray-100 font-bold text-blue-500":d,"text-white hover:bg-white/10 focus-visible:bg-white/10":h&&!d,"bg-[#252422] text-white":h&&d}),role:t,sourceModule:"sidebarNavigation",children:[(0,l.jsx)(c,{"aria-hidden":"true",className:(0,r.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!i})}),(0,l.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":d,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!i,"pointer-events-none opacity-0":a}),lineClamp:1,children:e.title}),e.showNewBadge&&(0,l.jsx)(eu.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":d})})]})},e.title)};var em=e.i(961123),ep=e.i(281687),eg=e.i(559421),ev=e.i(388706),eb=e.i(304116),ew=e.i(269153),ey=e.i(537989),ej=e.i(495110);e.i(647872);var eN=e.i(494889),eA=e.i(190344),eC=e.i(959194);e.i(304158);var eB=e.i(485737),eS=e.i(258990);let eR=Object.fromEntries(ev.SIDEBAR_CANONICAL_LINKS.map(e=>[n.URLS[e.urlKey],e.segment])),ek=({navigationData:e,locale:l,geoIPCountry:t,partner:r,theme:i,videoUrl:a,pathname:o,locId:s,featureId:d,pageId:c,tSidebarNavigation:u,canonicalBasePath:f,canonicalID:h,skipCanonical:x})=>e.reduce((e,m)=>{if("links"in m){let n=ek({navigationData:m.links,locale:l,geoIPCountry:t,partner:r,theme:i,videoUrl:a,pathname:o,locId:s,featureId:d,pageId:c,tSidebarNavigation:u,canonicalBasePath:f,canonicalID:h,skipCanonical:x});e.push({title:m.title,links:n})}else{let t;if(m.dynamicVideoUrl)t=a;else{let e=eR[m.url];t=e?(0,eb.buildLocationPageHref)({pageType:e,locale:l,canonicalID:h,featureId:d,placeId:s,canonicalBasePath:f,skipCanonical:x}):(0,n.interpolateLocationUrl)(m.url,{locale:l,locId:s,featureId:d})}if(!t)return e;let r=m.titleTranslationKey?u(m.titleTranslationKey):m.title,i=m.dynamicVideoUrl?"video"===c:m.matchNestedPaths?o===t||o.startsWith(`${t}/`):o===t;e.push({title:r,url:t,icon:m.icon,showNewBadge:m.showNewBadge,...i&&{isActive:i}})}return e},[]),eT=({filteredPropName:e,filteredPropValue:l})=>t=>{let r=Array.isArray(l)?l:[l],i=t[`exclude${e}`];if(i&&i.some(e=>r.includes(e)))return!1;let a=t[`include${e}`];return!a||!!a.some(e=>r.includes(e))},eL=e=>l=>void 0===l.requiresNewsHub||l.requiresNewsHub===e,eM=/\/radar\/?$/,eP=["/weather/today/","/weather/hourbyhour/","/weather/tenday/"];var eV=e.i(995113),eE=e.i(47524),eU=e.i(598513),eH=e.i(513513),eI=e.i(889753),ez=e.i(837879),eF=e.i(683199);let e_=({forceCollapsedNavbar:e,iconOnly:t})=>{let i=(0,s.useAtomValue)(eI.userTierAtom),a=(0,eH.isUserTierPremium)(i),n=(0,eU.useSendInteractionEvent)(),o=(0,ez.useSubscriptionsEnabled)(),d=(0,eF.usePremiumSource)();return a||!o?null:(0,l.jsx)("li",{children:(0,l.jsxs)(u.default,{href:"/subscribe?tpcc=mktg-leftrail-menu-upgrade",style:{background:"linear-gradient(90deg, #3A61CC 0%, #6549D4 50%, #935EC3 100%)"},onClick:()=>{n({interactionElement:"sidebar-nav-go-to-checkout-button",interactionType:"click",moduleId:"SidebarNavigation"}),d({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":t}),sourceModule:"sidebarNavigation",children:[(0,l.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,l.jsx)(eV.LightningFilled,{className:(0,r.cn)("relative z-2 w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,l.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":t}),lineClamp:1,children:[(0,l.jsx)("span",{className:(0,r.cn)("hidden",{"xl:contents":!e}),children:"Get Premium"}),(0,l.jsx)("span",{className:(0,r.cn)("contents xl:hidden",{"xl:contents":e}),children:"Upgrade"})]}),(0,l.jsx)(eE.ChevronRight,{className:(0,r.cn)("relative z-2 ml-auto hidden w-4 shrink-0 text-white",{"xl:block":!e})})]})})},eO=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Overflow Menu Horizontal"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("g",{fill:"currentColor",children:(0,l.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"})})]})),eD=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:eO,...e}));eD.displayName="OverflowMenuHorizontal";let e$=({forceCollapsedNavbar:e,iconOnly:t})=>{let i=(0,a.useTranslations)("SidebarNavigation"),[n,o]=(0,s.useAtom)(ef.sidebarMoreOpenAtom),{ref:d,isOverDark:c}=eh((0,s.useAtomValue)(ef.sidebarSuppressDarkAtom));return(0,l.jsx)("li",{ref:d,children:(0,l.jsxs)("button",{type:"button","data-settings-menu-trigger":!0,"aria-haspopup":"menu","aria-expanded":n,onClick:()=>o(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":t,"bg-gray-100 font-bold text-blue-500 hover:bg-gray-100 focus-visible:bg-gray-100":n,"text-white hover:bg-white/10 focus-visible:bg-white/10":c&&!n,"bg-[#252422] text-white hover:bg-[#252422] focus-visible:bg-[#252422]":c&&n}),children:[(0,l.jsx)(eD,{className:(0,r.cn)("w-6 shrink-0 text-inherit",{"xl:mr-3":!e})}),(0,l.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":n,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":t}),lineClamp:1,children:i("more")})]})})};var eq=e.i(646341),eK=e.i(553329),eQ=e.i(226602),eG=e.i(617874),eW=e.i(166763),eY=e.i(314552),eJ=e.i(674885),eX=e.i(776169),eZ=e.i(35137),e0=e.i(121301);let e1=new Set(["article","video","index"]);function e2(){let e=(0,a.useTranslations)("SidebarNavigation"),i=(0,s.useAtomValue)(ef.sidebarMoreOpenAtom),o=(0,s.useSetAtom)(ef.sidebarMoreOpenAtom),d=(0,s.useAtomValue)(eJ.isImperialUnitsAtom),c=(0,s.useAtomValue)(eJ.isMetricUnitsAtom),u=(0,s.useAtomValue)(eJ.isHybridUnitsAtom),f=(0,em.useParams)(),h=f?.locale||eY.defaultLocale,m=f?.locId,p=(0,s.useAtomValue)(ey.pageIdAtom),{updatePreferences:g}=(0,eX.usePreferences)(),v=(0,s.useAtomValue)(eI.userPreferencesAtom),b=(0,t.useRef)(null),[w,y]=(0,t.useState)(!1),[j,N]=(0,t.useState)(i),[A,C]=(0,t.useState)(!1),B=(0,t.useCallback)(()=>o(!1),[o]);(0,t.useEffect)(()=>{let e=(0,eq.getCookie)("unitOfMeasurement")?.toString();if(!e)return;let l=(0,eG.unitsSystemByCode)(e),t=l?.name;t&&t!==v?.unit&&g({unit:t})},[g,v?.unit]);let S=async e=>{let{error:l}=await (0,eK.tryCatch)(g({unit:e}));l&&console.error("Failed to update unit preference:",l)},R=async e=>{let l=(0,eW.convertLocaleFormat)(e),{error:t}=await (0,eK.tryCatch)(g({locale:l}));if(t)return void console.error("Failed to update locale preference:",t);if((0,eq.setCookie)("sitePref",e,{domain:`.${window.location.hostname}`}),B(),p&&e1.has(p)){window.location.href=e===eY.defaultLocale?"/":`/${e}`;return}let r=p?n.URLS[p]:void 0,i=r&&m?(0,n.interpolateUrl)(r,{locale:e,locId:m}):null;if(i){window.location.href=i;return}let a=h!==eY.defaultLocale&&window.location.pathname.startsWith(`/${h}`)?window.location.pathname.slice(`/${h}`.length)||"/":window.location.pathname;window.location.href=e===eY.defaultLocale?a:`/${e}${a}`};return((0,t.useEffect)(()=>{if(i){N(!0);let e=0,l=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>C(!0))});return()=>{cancelAnimationFrame(l),e&&cancelAnimationFrame(e)}}C(!1);let e=setTimeout(()=>{N(!1),y(!1)},150);return()=>clearTimeout(e)},[i]),(0,t.useEffect)(()=>{if(!i)return;let e=e=>{"Escape"===e.key&&(w?y(!1):B())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i,w,B]),(0,t.useEffect)(()=>{if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){let l=e.target;b.current&&l&&!b.current.contains(l)&&!l.closest("[data-settings-menu-trigger]")&&B()}},[i,B]),j)?(0,l.jsx)("div",{ref:b,role:"dialog","aria-label":e(w?"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",A?"translate-x-0 opacity-100":"pointer-events-none -translate-x-6 opacity-0 rtl:translate-x-6"),children:w?(0,l.jsx)(eZ.default,{locale:h,LOCALE_DATA:eW.LOCALE_DATA,handleLocaleChange:R,onBack:()=>y(!1),onClose:B}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 pt-5 pb-2",children:[(0,l.jsx)(x.default,{elementType:"h2",variant:"Title.S",className:"text-gray-900",children:e("more")}),(0,l.jsx)("button",{type:"button",onClick:B,"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,l.jsx)(eQ.Close,{className:"h-4 w-4"})})]}),(0,l.jsx)(e0.default,{isImperial:d,isMetric:c,isHybrid:u,locale:h,LOCALE_DATA:eW.LOCALE_DATA,handleUnitChange:S,onOpenLocationLanguage:()=>y(!0)})]})}):null}let e5=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"User Avatar"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsxs)("g",{fill:"currentColor",children:[(0,l.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,l.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"})]})]})),e3=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:e5,...e}));function e4({firstName:e,isPremium:t,isAdFree:i}){let a=e?.charAt(0)?.toUpperCase();return(0,l.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,l.jsx)("span",{className:(0,r.cn)("text-sm font-bold text-gray-900 md:text-base",{"translate-y-[-2.5px] md:translate-y-[-3px]":t}),children:a}),t&&(0,l.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"})]})}e3.displayName="UserAvatar";var e7=e.i(809058),e6=e.i(877957),e8=e.i(528600),e9=e.i(731672);let le=({forceCollapsedNavbar:e,iconOnly:o})=>{let{user:d,userProfile:c}=(0,e8.useUser)(),{isUserLoggedIn:f,isUserPremium:h,isUserAdFree:m}=d,p=(0,e9.useUserLogout)(),g=(0,ez.useSubscriptionsEnabled)(),v=(0,a.useTranslations)("SidebarNavigation"),b=(0,a.useTranslations)("UserRegistration"),w=(0,i.useLocale)(),y=(0,eF.usePremiumSource)(),[j,N]=(0,s.useAtom)(ef.sidebarAccountOpenAtom);(0,t.useEffect)(()=>()=>N(!1),[N]);let{ref:A,isOverDark:C}=eh((0,s.useAtomValue)(ef.sidebarSuppressDarkAtom));return f?(0,l.jsx)("li",{ref:A,children:(0,l.jsxs)(e7.Popover,{open:j,onOpenChange:N,children:[(0,l.jsx)(e7.PopoverTrigger,{asChild:!0,children:(0,l.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":j,"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":o,"bg-gray-100 font-bold text-blue-500 hover:bg-gray-100 focus-visible:bg-gray-100":j,"text-white hover:bg-white/10 focus-visible:bg-white/10":C&&!j,"bg-[#252422] text-white hover:bg-[#252422] focus-visible:bg-[#252422]":C&&j}),children:[(0,l.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:c?.firstName?.charAt(0)?.toUpperCase()}),(0,l.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":j,"xl:mt-0 xl:h-auto xl:text-sm xl:leading-none":!e,"pointer-events-none opacity-0":o}),lineClamp:1,children:v("myAccount")})]})}),(0,l.jsx)(e7.PopoverContent,{side:"right",align:"end",className:"z-9996 p-0",showArrow:!1,children:(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(u.default,{href:(0,n.interpolateUrl)(n.URLS.memberSettings,{locale:w}),"data-testid":"sidebar-profile-account",children:(0,l.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,l.jsx)(e4,{firstName:c?.firstName,isPremium:h,isAdFree:m}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(x.default,{variant:"Body.S",children:c?.firstName}),(0,l.jsx)(x.default,{className:"text-sm text-gray-500 hover:text-gray-700",children:b("manageAccount")})]})]})}),!h&&g&&(0,l.jsxs)("div",{className:"flex flex-col gap-3 border-t border-gray-200 p-4",children:[(0,l.jsx)(x.default,{variant:"Body.L",className:"font-semibold",children:"Unlock our full potential"}),(0,l.jsx)(x.default,{children:"Try our best radar and forecasting features for weather planning."}),(0,l.jsx)(u.default,{href:"/subscribe?tpcc=mktg-today-mainmenu-flyout",onClick:()=>y({sourceModule:"leftrail-menu",sourceElement:"get-premium"}),children:(0,l.jsx)(e6.Button,{variant:"default",children:"Go Premium"})})]})]}),(0,l.jsx)("div",{className:"border-t border-gray-200 p-2",children:(0,l.jsx)(e6.Button,{variant:"link",onClick:p,"data-testid":"sidebar-profile-signout",children:b("signOut")})})]})})]})}):(0,l.jsx)("li",{ref:A,children:(0,l.jsxs)(u.default,{href:(0,n.interpolateUrl)(n.URLS.memberLogin,{locale:w}),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":o,"bg-[#252422]":C}),children:[(0,l.jsx)(e3,{className:(0,r.cn)("w-6 shrink-0 text-white",{"xl:mr-3":!e})}),(0,l.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":o}),lineClamp:1,children:b("logIn")})]})})};var ll=e.i(663333),lt=e.i(274432),lr=e.i(792461),li=e.i(18358),la=e.i(768864),ln=e.i(123590),lo=e.i(957174),ls=e.i(956667);let ld=(0,t.forwardRef)(({title:e,titleId:t,desc:r,descId:i,...a},n)=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":t,"aria-describedby":i,...a,children:[r?(0,l.jsx)("desc",{id:i,children:r}):null,void 0===e?(0,l.jsx)("title",{id:t,children:"Blog"}):e?(0,l.jsx)("title",{id:t,children:e}):null,(0,l.jsx)("g",{fill:"currentColor",children:(0,l.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"})})]})),lc=t.default.forwardRef((e,t)=>(0,l.jsx)(b.BaseIcon,{ref:t,icon:ld,...e}));lc.displayName="Blog";let lu={article:lo.Book,video:ls.VideoPlayer,liveblog:lc};function lf({item:e,showDate:n,dateStyle:o,onSelect:s}){let d=(0,a.useTranslations)("ContentSearch"),f=(0,a.useFormatter)(),h=(0,i.useNow)(),x=(0,ln.useTrackContentLinkClick)(),m=lu[e.kind]??lo.Book,p=(0,t.useCallback)(()=>{x({linkType:"internal",linkURL:e.url,linkText:e.title,moduleId:"content-search"}),s()},[x,e.url,e.title,s]),g=function(e,{showDate:l,dateStyle:t,now:r,t:i,formatRelativeTime:a,formatDate:n}){let o=[],s=function(e,l){switch(e.kind){case"article":if(!e.readTimeMinutes)return null;return l("readTime",{minutes:e.readTimeMinutes});case"video":{let t=e.durationSeconds;if(t&&tf.relativeTime(e,h),formatDate:e=>f.dateTime(e,{month:"short",day:"numeric",year:"numeric"})});return(0,l.jsx)("li",{children:(0,l.jsxs)(u.default,{href:e.url,onClick:p,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,l.jsx)(c.default,{src:e.thumbnailUrl,alt:"",width:64,height:64,fill:!1,objectFit:"cover",className:"size-16 shrink-0 rounded-lg object-cover"}):(0,l.jsx)("div",{"aria-hidden":"true",className:"size-16 shrink-0 rounded-lg bg-gray-200"}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,l.jsx)("span",{className:"line-clamp-2 text-sm leading-[1.15] font-semibold tracking-[-0.28px] text-gray-900",children:e.title}),g&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)(m,{"aria-hidden":"true",className:"size-4 shrink-0 text-gray-500"}),(0,l.jsx)("span",{className:"truncate text-xs font-medium text-gray-500",children:g})]})]})]})})}function lh({item:e,onSelect:i}){let a=(0,eU.useSendInteractionEvent)(),n=(0,t.useCallback)(()=>{a({interactionType:"click",interactionElement:"content-search-location-result",moduleId:"content-search"}),i()},[a,i]);return(0,l.jsx)("li",{children:(0,l.jsx)(u.default,{href:e.url,onClick:n,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,l.jsx)("span",{className:"line-clamp-2 text-sm leading-[1.15] font-semibold tracking-[-0.28px] text-gray-900",children:e.title})})})}let lx="control",lm="all-metadata",lp="69175b02ea24c7c105fbb4fc";function lg({visible:e,query:t,rows:i,showDate:n,dateStyle:o,showTrendingHeading:s,showNoResults:d,showSkeleton:c,locationRows:u,panelRef:f,inputRef:h,onQueryChange:m,onClear:p,onClose:g,onSelectRow:v}){let b=(0,a.useTranslations)("ContentSearch");return(0,l.jsx)("div",{ref:f,role:"dialog","aria-label":b("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,l.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 pt-6 pr-3 pb-4 pl-6",children:[(0,l.jsx)(x.default,{elementType:"h2",variant:"Body.L.ExtraBold",className:"flex-1 leading-normal text-gray-900",children:b("title")}),(0,l.jsx)("button",{type:"button",onClick:g,"aria-label":b("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,l.jsx)(eQ.Close,{className:"size-4"})})]}),(0,l.jsx)("div",{className:"px-4 pt-6 pb-2",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(lt.Search,{"aria-hidden":"true",className:"pointer-events-none absolute start-4 top-1/2 size-4 -translate-y-1/2 text-gray-900"}),(0,l.jsx)("input",{ref:h,type:"search",value:t,onChange:e=>m(e.target.value),placeholder:b("placeholder"),"aria-label":b("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")}),t&&(0,l.jsx)("button",{type:"button",onClick:p,"aria-label":b("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,l.jsx)(la.CloseFilled,{className:"size-4"})})]})}),(0,l.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto px-3 py-2",children:[s&&(0,l.jsx)(lv,{children:b("trendingStories")}),(0,l.jsx)("p",{"aria-live":"polite",className:"sr-only",children:!t||d||c?"":b("resultCount",{count:i.length})}),c?(0,l.jsx)(lb,{}):d?(0,l.jsx)("div",{className:"flex items-center px-4 pt-4 pb-2",children:(0,l.jsx)("p",{"aria-live":"polite",className:"flex-1 text-center text-sm leading-[1.15] font-medium tracking-[-0.28px] text-gray-900",children:b("noResults",{query:t})})}):(0,l.jsxs)(l.Fragment,{children:[u.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(lv,{children:b("locationsHeading")}),(0,l.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1 p-0",children:u.map(e=>(0,l.jsx)(lh,{item:e,onSelect:v},e.url))})]}),u.length>0&&i.length>0&&(0,l.jsx)(lv,{children:b("contentHeading")}),(0,l.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1 p-0",children:i.map(e=>(0,l.jsx)(lf,{item:e,showDate:n,dateStyle:o,onSelect:v},e.id))})]})]})]})})}function lv({children:e}){return(0,l.jsx)("div",{className:"flex items-center px-2 pt-4 pb-2",children:(0,l.jsx)(x.default,{elementType:"h3",variant:"Body.S.Bold",className:"flex-1 leading-[1.15] text-gray-900",children:e})})}function lb(){return(0,l.jsx)("div",{"aria-hidden":"true",className:"flex animate-pulse flex-col gap-1 motion-reduce:animate-none",children:Array.from({length:6},(e,t)=>(0,l.jsxs)("div",{className:"flex items-center gap-4 py-2 pr-4 pl-2",children:[(0,l.jsx)("div",{className:"size-16 shrink-0 rounded-lg bg-gray-200"}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,l.jsx)("div",{className:"h-3.5 w-full rounded bg-gray-200"}),(0,l.jsx)("div",{className:"h-3.5 w-3/5 rounded bg-gray-200"}),(0,l.jsx)("div",{className:"mt-1 h-3 w-2/5 rounded bg-gray-200"})]})]},t))})}var lw=e.i(381477),ly=e.i(612977),lj=e.i(695881),lN=e.i(843612),lA=e.i(89022);let lC=(0,lj.createLogger)("ContentSearch");var lB=e.i(763886),lS=e.i(780708),lR=e.i(647292),lk=e.i(97506);function lT(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 lL(e){let l=lP(e.overrideTitle,e.title,e.headline),t=lP(e.url,e.assetName);if(!l||!t)return null;let r="video"===e.contentType;return{id:e.id,title:l,url:t,thumbnailUrl:lP(e.overrideThumbnail,e.thumbnail,e.src)??null,kind:r?"video":"article",readTimeMinutes:r?null:lV(e.readTime),watchTimeMinutes:null,durationSeconds:r?lV(e.durationSeconds):null,timestamp:lP(e.publishdate,e.createddate)??null}}function lM(e){let l=lP(e?.pageTitle),t=lP(e?.pageUrl);return l&&t?{url:t,title:l}:null}function lP(...e){for(let l of e)if("string"==typeof l&&l.trim())return l;return null}function lV(e){return"number"==typeof e&&Number.isFinite(e)?e:null}let lE=(0,lj.createLogger)("ContentSearch:trending");function lU({showDate:e,blended:r}){let a,[n,d]=(0,s.useAtom)(ef.sidebarContentSearchOpenAtom),c=(0,eU.useSendInteractionEvent)(),u=(0,lr.useRefMemo)(c),[f,h]=(0,t.useState)(""),x=(0,t.useRef)(null),m=(0,t.useRef)(null),[p,g]=(0,t.useState)(n),[v,b]=(0,t.useState)(!1),w=(0,t.useCallback)(()=>d(!1),[d]),{results:y,locations:j,settledQuery:N,isSearching:A,isQueryPending:C,hasQuery:B}=function(e,l=!1){let r=(0,i.useLocale)(),a=e.trim(),n=(0,ly.useDebounce)(e,300).trim(),o=(0,lN.isSearchableContentQuery)(n),s=(0,t.useRef)(new Set),d=(0,t.useCallback)(()=>{for(let e of s.current)e.abort();s.current.clear()},[]);(0,t.useEffect)(()=>()=>d(),[d]);let{data:c,error:u,isValidating:f}=(0,lw.default)(o?["content-search",l?"universal":"content",n,r]:null,([,e,l,t])=>{d();let r=new AbortController;s.current.add(r);let i={query:l,locale:t,limit:10,signal:r.signal};return("universal"===e?(0,lA.searchUniversal)(i):(0,lN.searchContent)(i).then(e=>({content:e,locations:[]}))).finally(()=>s.current.delete(r))},{revalidateOnFocus:!1,dedupingInterval:2e3,keepPreviousData:!0,shouldRetryOnError:!1});return u&&u?.name!=="AbortError"&&lC.error("content search failed",{query:n,error:u}),{results:c?.content??[],locations:c?.locations??[],settledQuery:n,isSearching:o&&f,isQueryPending:(0,lN.isSearchableContentQuery)(a)&&a!==n,hasQuery:o}}(f,r),{items:S}=function(e){let l=(0,s.useAtomValue)(lB.partnerAtom),t=(0,s.useAtomValue)(lR.webViewPlatformAtom),r=(0,s.useAtomValue)(o.pageLocaleAtom),i=(0,lS.resolveContentChannel)(l??"",t??""),a=e&&!!lp,{data:n,error:d,isLoading:c}=(0,lw.default)(a?["content-search-trending",lp,i,r]:null,([,e,l,t])=>(0,lk.getContentQueryMedia)({queryId:e,channel:l,language:t,limit:6}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0,shouldRetryOnError:!1});return d&&lE.error("trending content query failed",{channel:i,locale:r,error:d}),{items:(n??[]).map(lL).filter(e=>null!==e).slice(0,6),isLoading:a&&c}}(n&&!B);(0,t.useEffect)(()=>{if(n){g(!0),u.current({interactionType:"open",interactionElement:"content-search-modal",moduleId:"content-search"});let e=0,l=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>b(!0))});return()=>{cancelAnimationFrame(l),e&&cancelAnimationFrame(e)}}b(!1);let e=setTimeout(()=>{g(!1),h("")},150);return()=>clearTimeout(e)},[n,u]),(0,t.useEffect)(()=>{v&&m.current?.focus()},[v]);let R=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(n){R.current=document.activeElement;return}let e=R.current;R.current=null,e&&x.current?.contains(document.activeElement)&&e.focus()},[n]);let k=(0,t.useRef)(null);(0,t.useEffect)(()=>{B&&k.current!==N&&(k.current=N,u.current({interactionType:"type",interactionElement:"content-search-typeahead",moduleId:"content-search"}))},[B,N,u]);let T=(a=(0,li.useTrackEvent)(),(0,t.useCallback)(({searchTerm:e,resultCount:l})=>{a("content-search",{searchQuery:e,searchResultCount:l})},[a])),L=(0,t.useRef)(null);if((0,t.useEffect)(()=>{!B||A||L.current!==N&&(L.current=N,T({searchTerm:N,resultCount:y.length}))},[B,A,N,T,y]),(0,t.useEffect)(()=>{n||(L.current=null,k.current=null)},[n]),(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"===e.key&&w()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,w]),(0,t.useEffect)(()=>{if(n)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){let l=e.target;x.current&&l&&!x.current.contains(l)&&!l.closest("[data-content-search-trigger]")&&w()}},[n,w]),!p)return null;let M=B?y.map(lT).filter(e=>null!==e):S,P=B?j.map(lM).filter(e=>null!==e).slice(0,5):[],V=0===M.length&&0===P.length,E=C||B&&A;return(0,l.jsx)(lg,{visible:v,query:f,rows:M,showDate:e,dateStyle:B?"absolute":"relative",showTrendingHeading:!B&&M.length>0,showNoResults:B&&!E&&V,showSkeleton:E,locationRows:P,panelRef:x,inputRef:m,onQueryChange:h,onClear:()=>{h(""),m.current?.focus()},onClose:w,onSelectRow:w})}var lH=e.i(645968),lI=e.i(624432);function lz({forceCollapsedNavbar:e}){let t=(0,a.useTranslations)("ContentSearch"),{isEnabled:i,showDate:n}=function(){var e;let{value:l}=(0,lH.default)("content-search-desktop-web",lx),t=(e=l)===lx||e===lm||"no-date"===e?l:lx;return{variant:t,isEnabled:t!==lx,showDate:t===lm}}(),o=(0,s.useAtomValue)(lI.contentSearchUniversalAtom),[d,c]=(0,s.useAtom)(ef.sidebarContentSearchOpenAtom),{ref:u,isOverDark:f}=eh((0,s.useAtomValue)(ef.sidebarSuppressDarkAtom)),h=(0,eU.useSendInteractionEvent)();if(!i)return null;let x=!e;return(0,l.jsxs)("div",{ref:u,className:"w-full px-3",children:[(0,l.jsxs)("button",{type:"button","data-content-search-trigger":!0,"data-testid":"content-search-trigger","aria-label":t("triggerLabel"),"aria-haspopup":"dialog","aria-expanded":d,onClick:()=>{h({interactionType:"click",interactionElement:"content-search-entry",moduleId:"SidebarNavigation",lockedContent:"false"}),c(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",x&&"xl:w-full xl:justify-start xl:gap-2 xl:ps-3 xl:pe-2",{"border-transparent bg-gray-100 text-blue-500":d,"border-black/10 bg-white text-gray-600 hover:border-transparent hover:bg-gray-100":!d&&!f,"border-white/20 bg-transparent text-white hover:border-transparent hover:bg-white/10":f&&!d,"border-transparent bg-[#252422] text-white hover:bg-[#252422]":f&&d}),children:[(0,l.jsx)(lt.Search,{"aria-hidden":"true",className:"size-6 shrink-0 text-inherit"}),x&&(0,l.jsx)("span",{className:"hidden truncate text-base font-medium tracking-[-0.32px] text-inherit xl:inline",children:t("triggerLabel")})]}),(0,l.jsx)(lU,{showDate:n,blended:o})]})}let lF=()=>{let e,d,c,x,m,p,g,v,b,w,y,j,N,A,C,B,S,R,k,T,L=(e=(0,ep.useChromeLocation)(),d=(0,eS.decodeLocId)(e?.placeId||""),c=(0,em.useParams)(),m="string"==typeof(x=c?.featureId)?x:void 0,p=e?.featureId??m,g=e?.canonicalID,v=(0,em.usePathname)(),b=(0,s.useAtomValue)(o.pageLocaleAtom),w=(0,s.useAtomValue)(ey.pageIdAtom),y=(0,ej.useIsHydratingRender)(),j=(0,s.useAtomValue)(eB.geoipCountry),N=(y?"":j)||"",A=(0,s.useAtomValue)(eN.newsHubEnabledAtom),C=[(0,eC.getPartner)(),(0,eC.getSamsungVietnamPartner)()].filter(Boolean),B=(0,a.useTranslations)("SidebarNavigation"),S=(0,eA.useVideoNavUrl)(),R=(0,eg.useCanonicalBasePath)(),k=(0,ew.useIsSamsungPartner)(),(0,t.useMemo)(()=>{var e,l,t,r,i,a,n,o,s;let c,u,f,h,x,m,y,j,T=(({navigationData:e,locale:l,geoIPCountry:t,partner:r,theme:i,videoUrl:a,pathname:n,locId:o,featureId:s,pageId:d,newsHubEnabled:c,tSidebarNavigation:u,canonicalBasePath:f,canonicalID:h,skipCanonical:x})=>{let m=e.filter(eT({filteredPropName:"Locales",filteredPropValue:l})).filter(eT({filteredPropName:"Partners",filteredPropValue:r})).filter(eT({filteredPropName:"Themes",filteredPropValue:i})).filter(eT({filteredPropName:"GeoIP",filteredPropValue:t})).filter(eL(c)).map(e=>"links"in e?{...e,links:e.links.filter(eT({filteredPropName:"Locales",filteredPropValue:l})).filter(eT({filteredPropName:"Partners",filteredPropValue:r})).filter(eT({filteredPropName:"Themes",filteredPropValue:i})).filter(eT({filteredPropName:"GeoIP",filteredPropValue:t})).filter(eL(c))}:e);return ek({navigationData:m=m.filter(e=>!("links"in e)||e.links.length>0),locale:l,geoIPCountry:t,partner:r,theme:i,videoUrl:a,pathname:n,locId:o,featureId:s,pageId:d,tSidebarNavigation:u,canonicalBasePath:f,canonicalID:h,skipCanonical:x})})({locId:d,featureId:p,pathname:v,videoUrl:S,navigationData:JSON.parse(JSON.stringify(ec)),locale:b,pageId:w,newsHubEnabled:A,geoIPCountry:N,partner:C,tSidebarNavigation:B,canonicalBasePath:R,canonicalID:g,skipCanonical:k,theme:""});return e=T,l=d,t=b,r=v,i=B,a=R,n=p,o=g,s=k,c=e.filter(e=>"links"in e||!eP.some(l=>e.url.includes(l))),u=(0,eb.buildLocationPageHref)({pageType:"today",locale:t,canonicalID:o,featureId:n,placeId:l,canonicalBasePath:a,skipCanonical:s}),f=a?["today","hourbyhour","tenday"].includes(r.split("/").pop()??""):r.includes("/weather/today/")||r.includes("/weather/hourbyhour/")||r.includes("/weather/tenday/"),x=r===(h="en-US"===t?"/":`/${t}`)||r===`${h}/`,m={title:i("forecasts"),url:u,icon:"PartlyCloudyBold",isActive:f||x},y=new Set([h,`/${t}`]),j=c.findIndex(e=>!("links"in e)&&y.has(e.url)),c.splice(j>=0?j+1:0,0,m),T=c},[d,p,g,v,S,b,w,A,C,R,k])),M=(T=(0,em.usePathname)()).includes("/subscribe")||T.includes("/radar/interactive")||eM.test(T)||T.includes("/signup"),P=(0,i.useLocale)(),V=(0,n.interpolateUrl)(n.URLS.home,{locale:P}),E=(0,a.useTranslations)("SidebarNavigation"),U=(0,s.useSetAtom)(ef.sidebarHoveredAtom),H=(0,s.useSetAtom)(ef.sidebarFocusedAtom),I=(0,s.useAtomValue)(ef.sidebarSuppressDarkAtom);(0,t.useEffect)(()=>()=>{U(!1),H(!1)},[U,H]);let{ref:z,isOverDark:F}=eh(I),_="desktop"===(0,s.useAtomValue)(ll.deviceClassAtom),O=(0,ew.useIsSamsungPartner)(),D=_&&!O&&"en-US"===P,$=(0,s.useAtomValue)(ef.sidebarContentSearchOpenAtom),q=M||$;return(0,l.jsxs)("div",{className:"z-nav sticky top-0 hidden md:block",children:[(0,l.jsxs)("nav",{onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1),onFocusCapture:()=>H(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||H(!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",I?"bg-white":"bg-white/0",{"xl:w-[200px]":!M}),"data-component":"sidebar-navigation","data-testid":"sidebar-navigation","aria-label":E("siteNavigationLinks"),children:[(0,l.jsxs)("div",{ref:z,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":!M}),children:[(0,l.jsx)(u.default,{href:V,sourceModule:"sidebarNavigation",children:(0,l.jsx)(h.default,{className:(0,r.cn)("h-12 w-auto transition-colors duration-200",F?"text-white":"text-[#003399]")})}),(0,l.jsx)(f,{})]}),D&&(0,l.jsx)(lz,{forceCollapsedNavbar:q}),(0,l.jsxs)("ul",{className:(0,r.cn)("m-0 flex w-full flex-col gap-1 px-3",{"xl:w-20":M}),children:[L.filter(e=>!e.links).map(e=>(0,l.jsx)(ex,{link:e,forceCollapsedNavbar:M,iconOnly:$},e.title)),(0,l.jsx)(e$,{forceCollapsedNavbar:M,iconOnly:$})]}),(0,l.jsxs)("ul",{className:(0,r.cn)("m-0 flex w-full flex-col gap-1 px-3",{"xl:w-20":M}),children:[(0,l.jsx)(le,{forceCollapsedNavbar:M,iconOnly:$}),(0,l.jsx)(e_,{forceCollapsedNavbar:M,iconOnly:$})]})]}),(0,l.jsx)(e2,{})]})};e.s(["SidebarNavigation",0,lF,"default",0,lF],906361)}]);