(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,190344,e=>{"use strict";var t=e.i(794120),r=e.i(282446),l=e.i(763886),a=e.i(132084),i=e.i(456215),n=e.i(647292);e.i(609717);var o=e.i(950771),s=e.i(328895);let c=(0,e.i(695881).createLogger)("useVideoNavUrl");e.s(["f",0,function(){var e,u;let d=(0,r.y)(l.f),f=(0,r.y)(n.f),h=(0,r.y)(o.f),m=(e=d??"",u=f??"",e===a.p.SAMSUNG?"weather-com-mobile-web-samsung":(0,i.x)(u)?"twc-snowcast":u?"weather-com-mobile-web":"weather-com-web"),{data:g,error:p}=(0,t.U)(["navigation/video-nav",m,h,d],()=>(0,s.getVideoNavLink)({channel:m,language:h,partner:d||void 0}),{dedupingInterval:3e5,revalidateOnFocus:!1,keepPreviousData:!0});return p&&c.error("video nav url fetch failed",{channel:m,locale:h,partner:d,error:p}),g}],190344)},995181,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(282446),a=e.i(580547),i=e.i(789422),n=e.i(584169),o=e.i(632137),s=e.i(710746),c=e.i(611540);let u=(0,e.i(144683).g)(!1),d="tou-notice-dismissed",f=new Date("2027-04-30");var h=e.i(498076);e.i(87809);var m=e.i(358233),g=e.i(1567),p=e.i(947118),b=e.i(782552);let y=[m.Q.GDPR,m.Q.LGPD,m.Q.EXEMPT,m.Q.LATAM_CO,m.Q.LATAM_DO,m.Q.LATAM_PE,m.Q.USA,m.Q.USA_CCPA,m.Q.USA_CO,m.Q.USA_CT,m.Q.USA_VA,m.Q.CA,m.Q.TR_KVKK,m.Q.KR,m.Q.JP,m.Q.CA_QC],v=new Date("2026-05-30");e.s(["PrivacyTOUNoticeClient",0,({regime:e,className:m})=>{let w=(0,i.r)("TouNotice"),x=(0,a.X)(),C=(0,c.R)(c.e.termsOfUse,{locale:x}),k=(0,c.R)(c.e.privacyPolicy,{locale:x}),[S,j]=(0,l.q)(u),$=(0,r.useRef)(null),N=(0,r.useRef)(!1),_=(0,h.f)(),A=(0,p.f)(),P=(0,g.f)(),U=(0,b.f)(),I=(0,r.useRef)(!1),[E,R]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=(0,n.getCookie)("partner")?.toString().toLowerCase();R(e?.includes("samsung")??!1)},[]);let L=y.includes(e),D=new Date{L&&D&&((0,n.getCookie)(d)||j(!0))},[L,D,j]),(0,r.useEffect)(()=>{S&&L&&D&&A&&!N.current&&(N.current=!0,P({moduleId:"PP and TOU pop-up notification",modulePosition:0}))},[S,L,D,A,P]),(0,r.useEffect)(()=>{S&&L&&D&&!I.current&&(I.current=!0,U({moduleId:"PP and TOU pop-up notification",modulePosition:0}))},[S,L,D,U]);let Q=(0,r.useCallback)(()=>{(0,n.setCookie)(d,"true",{expires:f}),j(!1)},[j]);if((0,r.useEffect)(()=>{if(!S||_)return;let e=e=>{$.current&&!$.current.contains(e.target)&&Q()},t=setTimeout(()=>{window.addEventListener("click",e)},100);return()=>{clearTimeout(t),window.removeEventListener("click",e)}},[S,_,Q]),!S||!L||!D)return null;let B=w("heading"),T="text-[#252422] underline hover:text-[#252422]/80",M=w.rich("message",{updatedTerms:e=>(0,t.jsx)("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:T,children:e}),privacyPolicy:e=>(0,t.jsx)("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:T,children:e})}),O=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-2 flex items-start justify-between",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("h4",{className:"m-0 text-base font-bold text-[#252422]",children:B})}),(0,t.jsx)("button",{onClick:Q,className:"ml-2 flex h-6 w-6 items-center justify-center rounded-full text-[#252422] hover:bg-[#252422]/10 focus-visible:ring-2 focus-visible:ring-[#252422]/40 focus-visible:outline-none","aria-label":"Dismiss notice",children:(0,t.jsx)(s.f,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:"text-sm leading-tight font-medium text-[#252422]",children:M})]});return _?(0,t.jsx)("div",{className:(0,o.f)(E?"bg-white":"bg-[#CBDEF0]","mx-4 mt-4 rounded-2xl p-4",m),"aria-label":"Privacy and Terms of Use Notice",children:O}):(0,t.jsx)("div",{"aria-label":"Privacy and Terms of Use Notice",className:(0,o.f)("relative",m),children:(0,t.jsx)("div",{ref:$,className:(0,o.f)("z-toast fixed right-5 bottom-5 w-full max-w-[432px] rounded-2xl p-6 shadow-lg",E?"bg-white":"bg-[#CBDEF0]"),children:O})})}],995181)},247977,748315,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(789422),a=e.i(935251),i=e.i(388706),n=e.i(304116),o=e.i(269153),s=e.i(457492),c=e.i(258990);e.s(["f",0,function({placeId:e,featureId:u,placeQuery:d,canonicalPath:f,canonicalID:h,locale:m,showHealthTabs:g}){let p=(0,l.r)("SidebarNavigation"),b=(0,a.usePathname)(),y=(0,o.f)(),v=e?(0,c.f)(e):e,{links:w,basePath:x}=(0,r.useMemo)(()=>{if(f&&!y){let e=g?[{label:"Allergies",slug:"allergy"},{label:"Air Quality",slug:"air-quality"},{label:"Cold & Flu",slug:"cold-flu"}]:[];return{links:[{label:p("today"),slug:"today"},{label:p("hourly"),slug:"hourbyhour"},{label:p("tenday"),slug:"tenday"},{label:p("monthly"),slug:"monthly"},...e],basePath:f}}let e="en-US"===m?"/weather":`/${m}/weather`,t=v??"",r=d?`?${d}`:"",l=e=>`${(0,n.f)({pageType:e,locale:m,canonicalID:h,featureId:u,placeId:t,skipCanonical:y})}${r}`,a=g?[{label:"Allergies",slug:"allergy",href:l("allergy")},{label:"Air Quality",slug:"air-quality",href:l("air-quality")},{label:"Cold & Flu",slug:"cold-flu",href:l("cold-flu")}]:[];return{links:[{label:p("today"),slug:"today",href:l("today")},{label:p("hourly"),slug:"hourbyhour",href:l("hourbyhour")},{label:p("tenday"),slug:"tenday",href:l("tenday")},{label:p("monthly"),slug:"monthly",href:l("monthly")},...a],basePath:e}},[f,h,v,u,d,m,g,y,p]),C=(0,r.useMemo)(()=>{let e=b.replace(/\/day-\d+$/,"");if(e!==b||b.includes("/byCanonicalPathDay/")){let e=w.findIndex(e=>"tenday"===e.slug);if(-1!==e)return e}let t=w.findIndex(t=>{let{slug:r}=t,l=i.t[r];return!!l&&(b.includes(`${l}byFeatureId/`)||b.includes(`${l}byCanonicalPath/`)||b.includes(`${l}byCanonicalPathDay/`))||b.includes(`/weather/${r}/`)||b.includes(`/forecast/${r}/`)||e.endsWith(`/${r}`)});return -1!==t?t:0},[b,w]);return(0,t.jsx)(s.f,{links:w,basePath:x,activeIndex:C})}],247977);var u=e.i(293163),d=e.i(132084);e.s(["f",0,function(e){return"en-US"===e&&(0,u.n)()!==d.p.SAMSUNG}],748315)},345715,e=>{"use strict";var t=e.i(458201),r=e.i(789422),l=e.i(281687),a=e.i(457492),i=e.i(247977),n=e.i(748315),o=e.i(475823);let s=["en-US"];function c(){return(0,t.jsx)("div",{className:"relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)] md:rounded-[28px]","data-testid":"forecast-subnav-placeholder","aria-hidden":"true",children:(0,t.jsxs)("div",{className:"flex h-10 items-center gap-1 md:h-12",children:[(0,t.jsx)("span",{className:"h-8 w-16 animate-pulse rounded-full bg-gray-200"}),(0,t.jsx)("span",{className:"h-8 w-14 animate-pulse rounded-full bg-gray-200"}),(0,t.jsx)("span",{className:"h-8 w-18 animate-pulse rounded-full bg-gray-200"}),(0,t.jsx)("span",{className:"h-8 w-20 animate-pulse rounded-full bg-gray-200"})]})})}e.s(["HomeForecastSubnav",0,function({locale:e}){let u=(0,r.r)("SidebarNavigation"),d=(0,l.f)(),f=d?.placeId;if(!f){if(!s.includes(e))return(0,t.jsx)(c,{});let r=[{label:u("today"),slug:"today",href:(0,o.t)("today",e)},{label:u("hourly"),slug:"hourbyhour",href:(0,o.t)("hourly",e)},{label:u("tenday"),slug:"tenday",href:(0,o.t)("tenday",e)},{label:u("monthly"),slug:"monthly",href:(0,o.t)("monthly",e)},{label:"Allergies",slug:"allergy",href:(0,o.t)("allergy",e)},{label:"Air Quality",slug:"air-quality",href:(0,o.t)("air-quality",e)},{label:"Cold & Flu",slug:"cold-flu",href:(0,o.t)("cold-flu",e)}];return(0,t.jsx)(a.f,{links:r,basePath:"",activeIndex:0})}return(0,t.jsx)(i.f,{placeId:f,featureId:d?.featureId,canonicalID:d?.canonicalID,locale:e,showHealthTabs:(0,n.f)(e)})}])},947118,221085,e=>{"use strict";let t;var r=e.i(538167);let l=new Set,a=0,i=()=>"function"==typeof window.mParticle?.init,n=()=>{void 0!==t&&(clearInterval(t),t=void 0)},o=()=>{if(!i()||(n(),0===l.size))return;let e=[...l];for(let t of(l.clear(),e))t()},s=()=>{void 0===t&&(a=0,t=setInterval(()=>{a+=100,o(),a>=3e4&&n()},100))},c=e=>(l.add(e),s(),()=>{l.delete(e)}),u=e=>i()?(e(),()=>{}):c(e),d=e=>i()?()=>{}:c(e),f=()=>!1;e.s(["h",0,u,"s",0,()=>(0,r.useSyncExternalStore)(d,i,f),"x",0,e=>{if("u"{};if(i())return o(),()=>{};s();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let r=()=>o();return t.addEventListener("load",r),()=>{t.removeEventListener("load",r)}}],221085);let h=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):u(()=>{window.mParticle?.ready?.(e),e()}),m=()=>!!window.mParticle?.isInitialized?.(),g=()=>!1;e.s(["f",0,()=>(0,r.useSyncExternalStore)(h,m,g)],947118)},427977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getQuickNav=void 0;let l=e.r(414655),a=e.r(678651),i=e.r(718043);r.getQuickNav=async()=>{let e=(0,a.urlFrom)((0,i.getCMSQuickNavUrlConfig)()),t=await fetch(e,{headers:{"Accept-Encoding":"gzip"}});return await (0,l.handleFetchResponse)(t)}},718043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCMSCollectionsUrlConfig=function({collectionId:e,locale:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/collections/${t}/${e}`}},r.getCMSAssetByIDUrlConfig=function({language:e,assetId:t}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/a/${e}/${t}`}},r.getCMSOrderedCollectionsUrlConfig=function({collectionId:e,language:t="en_US"}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/ordered-collections/${t}/${e}`}},r.getCMSOrderedListUrlConfig=function({collectionId:e,language:t,collectionType:r}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/orderedlist/${t}/${r}/${e}`}},r.getCMSAssetsUrlConfig=function({language:e="en_US",query:t={},skip:r=0,limit:i=10,sort:n="-publishdate"}){let o={q:Object.keys(t).reduce((e,r)=>{let l=t[r];return l instanceof Array?[...e,...l.map(e=>a(r,e))]:[...e,a(r,l)]},[]).join(";"),pg:`${r},${i}`,format:"json",sort:n},s=(0,l.queryStringToSearchParams)(o).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${s}`}},r.getCMSAssetsRawQueryUrlConfig=function({language:e="en_US",query:t="",skip:r=0,limit:a=10,sort:i="-publishdate"}){let n={q:t,pg:`${r},${a}`,format:"json",sort:i},o=(0,l.queryStringToSearchParams)(n).toString();return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/v4/assets/${e}`,search:`?${o}`}},r.getCMSAssetsSlideshowUrlConfig=function({offset:e=0,assetId:t,limit:r=500}){return{host:"dsx.weather.com",protocol:"https",pathname:`/cms/assets/slideshow/${t}/${e},${r}`}},r.getCMSQuickNavUrlConfig=function(){return{host:"dsx.weather.com",protocol:"https",pathname:"/cms/v4/settings/en_US/web/quick_nav"}};let l=e.r(678651);function a(e,t){let r=`'${t.$in}'`;return t.$in instanceof Array&&(r=t.$in.map(e=>`'${e}'`).join(",")),`${e}:$in(${r})`}},281687,e=>{"use strict";var t=e.i(64412),r=e.i(512134);e.s(["f",0,function(){let{location:e}=(0,t.f)();return(0,r.f)()?e:void 0}])},935807,e=>{"use strict";function t(e,r=[],a=!1,i="US",n){let o,s=r.find(t=>t.placeID===e.placeId);if(s&&a){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,a=l(e,i,""),n="address"===e.type?e.address:void 0;if(t!==r&&t!==a&&t!==n)return t}}if(e?.disputedCountries)o=e.displayName||"";else{switch(e?.type){case"address":o=e?.address?.split(",")[0]?.trim()||"";break;case"city":o=e?.locale?.locale2||"";break;case"locality":o=e?.locale?.locale3||"";break;case"neighborhood":o=e?.locale?.locale4||"";break;case"airport":o=e?.airportName||"";break;case"postal":{let t=e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",r=e?.postalCode||"";o=n?`${t} ${r}`.trim():`${t}`.trim();break}default:o=e?.displayName||""}0===o.length&&(o=e?.displayName||"")}return o}function r(e,t=[],a=!1,i="US",n){let o,s=t.find(t=>t.placeID===e.placeId);if(s&&a){let t=s.userTag||s.name;if(t&&"Other"!==t){let r=e.displayName,a=l(e,i,"");if(t!==r&&t!==a)return function(e,t="US"){if(e?.disputedCountries)return e?.displayName||"";let r=t===e?.countryCode?"":e?.country||"";switch(e?.type){case"city":{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"locality":{let t=e?.adminDistrict||e?.locale?.locale2||"";return[e.locale?.locale3||"",t,r].filter(Boolean).join(", ")}case"neighborhood":{let t=e?.adminDistrict||"";return[e?.locale?.locale4||"",e?.locale?.locale3||e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}case"postal":{let t=e?.adminDistrict||"",l=e?.postalCode||"";return[e?.locale?.locale4||e?.locale?.locale3||e?.locale?.locale2||"",`${t} ${l}`.trim(),r].filter(Boolean).join(", ")}default:{let t=e?.adminDistrict||"";return[e?.locale?.locale2||"",t,r].filter(Boolean).join(", ")}}}(e,i)}}if(e?.disputedCountries)o=e?.displayName||"";else{let t=i===e?.countryCode?"":e?.country||"",r=e?.adminDistrict||"",l=e?.postalCode||"",a=e.city||"";switch(e?.type){case"address":o=[a,r,t].filter(Boolean).join(", ");break;case"city":default:o=[r,t].filter(Boolean).join(", ");break;case"locality":o=[e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"neighborhood":o=[e?.locale?.locale3||e?.locale?.locale2||"",r,t].filter(Boolean).join(", ");break;case"postal":{let a=r||e?.locale?.locale2||"";o=[n?`${a} ${l}`.trim():a,t].filter(Boolean).join(", ")}}}return o}function l(e,t,r){let{displayName:l,adminDistrictCode:a,adminDistrict:i,countryCode:n,disputedArea:o,country:s}=e,c=[];return l&&c.push(l),"IL"!==t&&(a?c.push(a):i&&c.push(i)),n!==t&&!1===o&&s&&c.push(s),c.join(r)}e.s(["d",0,r,"P",0,t,"e",0,function(e,l=[],a=!1,i="US"){let n=t(e,l,a,i,!1),o=r(e,l,a,i,!0),s=e?.separator?e?.separator:n&&o?", ":"";return`${n}${s}${o}`.trim()}])},919101,e=>{"use strict";e.s(["f",0,(e,t)=>{if(!e||!Array.isArray(t))return e;let r=t.find(t=>t.placeId===e.placeId);return r?{...e,displayName:r.address,address:r.address}:e}])},520362,e=>{"use strict";var t=e.i(458201),r=e.i(538167);let l=e=>{let{apiRoute:t,depth:l,refresh:a,serverURL:i}=e,n=(0,r.useRef)(!1),o=(0,r.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof a?a():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[a,i]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",o),n.current||(n.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:i}),a()),()=>{"u">typeof window&&window.removeEventListener("message",o)}),[i,o,l,t,a]),null};var a=e.i(935251);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),n={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"};e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),l=(0,r.useRef)(null),a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useCallback)(()=>{if("u"{let r=t.current,a=e.current;if(!r||!a)return;if(!r.isConnected){t.current=null,a.style.opacity="0",l.current?.disconnect();return}let i=r.getBoundingClientRect();a.style.top=`${i.top+window.scrollY}px`,a.style.left=`${i.left+window.scrollX}px`,a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.opacity="1"},[]),u=(0,r.useCallback)(()=>{t.current=null,o.current=null,e.current&&(e.current.style.opacity="0"),l.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===a.current&&(a.current=requestAnimationFrame(()=>{a.current=null,c()}))},[c]),f=(0,r.useCallback)(e=>{if(e===o.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void i.debug("No element found for block ID",{blockId:e});let a=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):u())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==a.current&&cancelAnimationFrame(a.current),l.current?.disconnect(),e.current?.remove()}},[f,u,d]),null},"LivePreviewListener",0,e=>{let r=(0,a.useRouter)();return(0,t.jsx)(l,{...e,refresh:r.refresh})}],520362)},235577,e=>{"use strict";var t=e.i(458201),r=e.i(523084),l=e.i(47524),a=e.i(632137),i=e.i(877957);e.s(["f",0,function({direction:e,onClick:n,hidden:o,size:s="default",variant:c="light",className:u}){let d="sm"===s,f=(0,a.f)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(i.f,{type:"button",onClick:n,"aria-hidden":"true",tabIndex:-1,className:(0,a.f)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",o&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",o&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",o&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(r.f,{className:f}):(0,t.jsx)(l.f,{className:f})})}])},457492,e=>{"use strict";var t=e.i(458201),r=e.i(538167),l=e.i(632137),a=e.i(282446),i=e.i(663333),n=e.i(235577),o=e.i(315730),s=e.i(240058);let c=(0,l.f)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:r,index:a,link:i}=e,n=r===a,o=(0,l.f)(c,{"bg-gray-100 text-blue-500":n});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(a,i),className:(0,l.f)("cursor-pointer",o),"aria-current":n?"page":void 0,children:i.label})}let{basePath:u,mpa:d}=e,f=i.href??("/"===i.slug?u||"/":`${u}/${i.slug}`);return(0,t.jsx)(s.default,{href:f,mpa:d,className:o,"aria-current":n?"page":void 0,sourceModule:"subnavigation",children:i.label})},d=(0,r.memo)(e=>{let{links:r,activeIndex:s,className:c,constrained:d=!0}=e,f=(0,a.y)(i.f),{ref:h,showLeft:m,showRight:g,scrollLeft:p,scrollRight:b}=(0,o.f)({enabled:"mobile"!==f&&"tablet"!==f,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,l.f)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",d&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,l.f)("pointer-events-none absolute top-0 -left-1 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-transform md:-top-1 md:h-14 md:rounded-s-[28px]",{"-translate-x-24":!m}),"aria-hidden":"true"}),(0,t.jsx)(n.f,{hidden:!m,onClick:p,direction:"left"}),(0,t.jsx)("div",{ref:h,className:(0,l.f)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,l)=>e.onSelect?(0,t.jsx)(u,{link:r,index:l,activeIndex:s,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(u,{link:r,index:l,activeIndex:s,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,l.f)("pointer-events-none absolute top-0 -right-1 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-transform md:-top-1 md:h-14 md:rounded-e-[28px]",{"translate-x-24":!g}),"aria-hidden":"true"}),(0,t.jsx)(n.f,{hidden:!g,onClick:b,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));d.displayName="SubnavigationUI",e.s(["f",0,d],457492)},315730,e=>{"use strict";var t=e.i(147732),r=e.i(538167);e.s(["f",0,function({enabled:e=!0,scrollAmount:l=200,contentKey:a}={}){let i=(0,r.useRef)(null),n=(0,r.useRef)(null),o=(0,r.useRef)(!1),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),f=(0,r.useCallback)(()=>{let t=i.current;if(!t||!e){c(!1),d(!1);return}let{scrollLeft:r,scrollWidth:l,clientWidth:a}=t,n=Math.abs(r),s=n>2,u=n+a(0,t.f)(f,150),[f]),m=(0,r.useCallback)(()=>{null===n.current&&(n.current=requestAnimationFrame(()=>{f(),n.current=null}))},[f]);(0,r.useEffect)(()=>{let t=i.current;return t&&(o.current="rtl"===getComputedStyle(t).direction),f(),e&&(t?.addEventListener("scroll",m),window.addEventListener("resize",h)),()=>{null!==n.current&&cancelAnimationFrame(n.current),n.current=null,t?.removeEventListener("scroll",m),h.cancel(),window.removeEventListener("resize",h)}},[e,f,m,h,a]);let g=(0,r.useCallback)(()=>i.current?.scrollBy({left:-l,behavior:"smooth"}),[l]),p=(0,r.useCallback)(()=>i.current?.scrollBy({left:l,behavior:"smooth"}),[l]);return{ref:i,showLeft:s,showRight:u,scrollLeft:g,scrollRight:p}}])}]);