(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253276,e=>{"use strict";var t=e.i(699173),r=e.i(592121);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:n="Remove your adblocker.",fetch:a,refresh:s,getCustomAccountInfo:o}){let[l,u]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),h=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==h.current[0]&&(h.current=[e.id],e.transactIDs&&h.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,r.useCallback)(()=>{try{a("/?adm_get_token=1").then(e=>{e.ok&&s()}).catch(()=>{u(i)})}catch{u(i)}},[a,i,s]),x=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(x.admiral=x.admiral||function(...e){(x.admiral.q=x.admiral.q||[]).push(e)},x.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(u(n),d(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!o;x.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?o().registered:r.status.registered)||m||(u(n),d(!0));else if("benefits"===e.requirement){let r=[];if(t)r=o().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void g(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?g(!0):(u(n),d(!0))}else u(n),d(!0)}})}}))},[]),(0,r.useEffect)(()=>{p&&(g(!1),v())},[p,v]),(0,r.useEffect)(()=>{m||!c||(f(!0),x.admiral("targeting","force",{candidateIDs:h.current}))},[m,c,h,x]),(0,t.jsxs)("div",{children:[l||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989);e.i(609717);var r=e.i(950771),i=e.i(695203),n=e.i(604323),a=e.i(797770),s=e.i(513539),o=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,o.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[n.metricsArticleDataAtom,e.metricsArticleData],[a.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"],[s.layoutStateAtom,e.layoutState??null],[s.activeEventAtom,e.activeEvent??null]]),null)])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(592121);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,n]=(0,t.useAtom)(i),a=(0,r.useCallback)((e,t)=>{n(r=>{let i=r?.[e]||{},n="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:n}})},[n]),s=(0,r.useCallback)((e,t)=>{n(r=>{let i=r||{timestamp:new Date().toISOString()},n=i.components||{};if(null===t){let t={...n};return delete t[e],{...i,components:t}}return{...i,components:{...n,[e]:t}}})},[n]),o=(0,r.useCallback)(e=>{a("page",e)},[a]),l=(0,r.useCallback)(e=>{a("route",e)},[a]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&a(e,t)})},[a]);return{debugData:e,updateSection:a,updateComponentData:s,setPageData:o,clearAllDebugData:(0,r.useCallback)(()=>{n({timestamp:new Date().toISOString()})},[n]),updateRouteInfo:l,updatePageDebug:u}}],609858)},752496,e=>{"use strict";var t=e.i(592121),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:n,page:a,onUpdateData:s,onSetPageData:o}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=s||l,m=o||u;return(0,t.useEffect)(()=>{if(n)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(n),hasPerformance:!!n.performance,hasContext:!!n.context}),d(e,{...n,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,n,d]),(0,t.useEffect)(()=>{a&&!c.current&&(i.lifecycle("Setting page metadata",{title:a.title,assetName:a.assetName,collection:a.collection}),m({...a,_updatedAt:new Date().toISOString()}),c.current=!0)},[a,m]),null}])},553329,e=>{"use strict";async function t(e){try{return{data:await e,error:null}}catch(e){return{data:null,error:e}}}e.s(["tryCatch",0,t])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),i=e.i(301904),n=e.i(901351),a=e.i(310847),s=e.i(528600),o=e.i(617874),l=e.i(864723),u=e.i(553329),c=e.i(592121),d=e.i(245943);let m=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:t}}=(0,s.useUser)();return{saveMapSettings:(0,c.useCallback)(async r=>{if(!t)return!1;let{error:i}=await (0,u.tryCatch)(n.upsxClient.preference.updateMapSettings(e,r));if(!i)return!0;if(i instanceof d.APIError&&404===i.code){let{error:t}=await (0,u.tryCatch)(n.upsxClient.preference.createMapSettings(e,r));return!t||(m.warn("Failed to create map settings",t),!1)}return m.warn("Failed to update map settings",i),!1},[t,e])}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,s.useUser)(),[c,d]=(0,t.useAtom)(r.userPreferencesAtom),[m,f]=(0,t.useAtom)(a.wxuUserPreferenceAtom),p=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(n.upsxClient.preference.getMapSettings("twc"));if(t||!e)return null;let{animationSpeed:r,autoplay:i,opacity:a,roadOverlay:s,style:o}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==i&&{autoplay:i},...void 0!==a&&{opacity:a},...void 0!==s&&{roadOverlay:s},...void 0!==o&&{style:o}};return Object.keys(l).length>0?l:null},g=async e=>{try{await n.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},h=async(t,r=!0)=>{try{let i,n=(i={...c,...t},d(i),f({...m,...t,locations:i.locations}),i);if(t?.unit){let e=(0,o.unitsSystemByName)(t.unit),r=e?.code||"e";(0,l.setCookie)(o.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await g(n),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([n.upsxClient.preference.getPreference(),p()]);if(!e?.userID)return null;let{mapSettings:r,...a}=e,s={...a,mapSettings:{...i.DEFAULT_MAP_SETTINGS,...t}};return h(s,!1),s}catch{return null}},updatePreferences:h}}],776169)},491045,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,i])},185312,(e,t,r)=>{t.exports=e.r(16129)},318849,e=>{"use strict";let t=!1,r="upsx-recent-purchase-at";e.s(["SWR_CACHE_LEGACY_STORAGE_KEY",0,"app-cache","SWR_CACHE_STORAGE_KEY",0,"wxu-swr-cache-v1","disableSwrPersist",0,()=>{t=!0},"hasRecentPurchase",0,e=>{try{let t=localStorage.getItem(r);if(!t)return!1;let i=Number(t);if(!Number.isFinite(i))return!1;return Date.now()-it,"markRecentPurchase",0,()=>{try{localStorage.setItem(r,String(Date.now()))}catch{}}])},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},806262,e=>{"use strict";e.i(592121);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var n;let a,s=(0,t.useStore)(i),o=(n=s,(a=r.get(n))||(a=new WeakSet,r.set(n,a)),a);for(let[t,...r]of e)(!o.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(o.add(t),s.set(t,...r))}])},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},513539,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(null),i=(0,t.atom)(null);e.s(["activeEventAtom",0,i,"layoutStateAtom",0,r])},991511,e=>{"use strict";var t=e.i(592121),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let n=(0,i.useStore)(),a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{for(let[e,t]of a.current)n.get(e)!==t&&n.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},742436,283366,e=>{"use strict";e.s(["ExperimentContext",()=>D,"ExperimentProvider",()=>T,"default",()=>R,"useExperimentContext",()=>O],742436);var t=e.i(546584),r=e.i(699173),i=e.i(592121),n=e.i(185312),a=e.i(333350),s=e.i(546446),o=e.i(737801),l=e.i(688070),u=e.i(158662),c=e.i(528600),d=e.i(553329);let m="production"!==t.default.env.VERCEL_TARGET_ENV,f=new Set;e.s(["getExposureVariantOverride",()=>E,"resetExposures",()=>_,"useExposure",()=>C],283366);var p=e.i(695881),g=e.i(358273);let h=(0,p.createLogger)("useExposure"),v="wxu-exp-exposed:",x=new Set,b=()=>{try{return(0,g.getMetricsSession)()?.sessionId||null}catch{return null}},y=e=>{try{let t=localStorage.getItem(v+e);return new Set(t?JSON.parse(t):[])}catch{return new Set}},w=(e,t)=>{try{for(let t=localStorage.length-1;t>=0;t--){let r=localStorage.key(t);r?.startsWith(v)&&r!==v+e&&localStorage.removeItem(r)}localStorage.setItem(v+e,JSON.stringify([...t]))}catch{}},S=e=>{if(0===x.size)return;let t=y(e);for(let e of x)t.add(e);w(e,t),x.clear()},A=e=>{let t=b();return t?(S(t),y(t).has(e)):x.has(e)},k=new Map;function E(e){return k.get(e)}function _(){x.clear(),k.clear();let e=b();if(e)try{localStorage.removeItem(v+e)}catch{}}function C(e,t){let r=void 0!==t,n=t?.variant,s=(0,i.useContext)(D);(0,i.useEffect)(()=>{if(!a.default||!s||A(e)||r&&void 0===n)return;let{client:t}=s;if(!t)return;let i=()=>{if(!A(e)){(e=>{let t=b();if(!t)return x.add(e);S(t);let r=y(t);r.add(e),w(t,r)})(e),void 0!==n&&k.set(e,n);try{t.exposure(e)}catch(e){h.error("Failed to track exposure:",e)}}};window.mParticle?.isInitialized?.()?i():window.mParticle?.ready?.(i)},[s,e,r,n])}let I="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",P="production"!==t.default.env.VERCEL_TARGET_ENV,D=(0,i.createContext)(null),T=({children:e,scriptSrc:t})=>{let p,g,h=(p=(0,o.useEventAttributes)(),g=(0,s.useAtomValue)(l.isWebViewOnlyAtom),(0,i.useCallback)((e,t={})=>{if(g)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!e)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!e.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${e.flag_key} - no experiment_key (feature flag only)`);try{let r={...p,newVariant:e.variant||"",newExperiment:e.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,r,t),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${e.flag_key||"unknown"}:${e.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[p,g])),v=(0,s.useSetAtom)(u.experimentJoinListAtom),{user:x}=(0,c.useUser)(),[b,y]=(0,i.useState)(!1),[w,S]=(0,i.useState)(!1),[,A]=(0,i.useState)(0),k=(0,i.useRef)(void 0),C=(0,i.useRef)(void 0);k.current=x.userID||void 0,C.current=x.anonId||void 0;let T=(0,i.useRef)(new Set),O=(0,i.useRef)({}),R=function(e,t){let r=(0,i.useRef)(null),[n,s]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!n&&a.default&&I&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{r.current=window.Experiment.initialize(I,{debug:P,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:t=>{try{e(t),P&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},source:"localStorage"}),s(!0),P&&console.debug("[Experiment] SDK initialized (will fetch from API)")}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[n,t,e]),r.current}((0,i.useCallback)(e=>{let t=E(e.flag_key),r=void 0!==t?{...e,variant:t}:e,i=`${r.flag_key}::${r.variant??""}`;if(T.current.has(i))return;T.current.add(i);let[n]=JSON.parse(JSON.stringify(Object.entries({[r.flag_key]:{key:r.variant}}).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})));n&&(O.current={...O.current,[r.flag_key]:n},v(JSON.stringify(Object.values(O.current)))),h(r),function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){m&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){m&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(f.has(i)){m&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}f.add(i);let n={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:m?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,d.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):m&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}({exposure:r,userId:k.current,deviceId:C.current})},[h,v]),b);return(0,i.useEffect)(()=>{(async()=>{if(!R)return;let e=x.anonId;if(!e&&!x.userID){P&&console.debug("[Experiment] No user identifier available"),S(!0);return}let t={device_id:e,...x.userID?{user_id:x.userID}:{},user_properties:{}};P&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await R.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{S(!0)}})()},[R,x.anonId,x.userID]),(0,i.useEffect)(()=>{T.current.clear(),f.clear(),_(),O.current={},v(null),A(e=>e+1)},[x.userID,v]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.default,{src:t,strategy:"afterInteractive",onLoad:()=>{y(!0),P&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(D.Provider,{value:{client:R,variant:(e,t)=>{if(!R)return t;let r=R.variant(e,t);return P&&console.debug("[Experiment] Current Variant:",r),r},fetch:e=>{if(!R)return Promise.resolve();if(!e){let e=x.anonId;if(e||x.userID){let t={device_id:e,...x.userID?{user_id:x.userID}:{},user_properties:{}};return R.fetch(t)}}return R.fetch(e)},isFetchComplete:w},children:e})]})},O=()=>{let e=(0,i.useContext)(D);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e},R=T},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},458001,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["cscCountryCodeAtom",0,t])},49893,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsKillswitchAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},235577,e=>{"use strict";var t=e.i(699173),r=e.i(523084),i=e.i(47524),n=e.i(632137),a=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:s,hidden:o,size:l="default",variant:u="light",className:c}){let d="sm"===l,m=(0,n.cn)("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)(a.Button,{type:"button",onClick:s,"aria-hidden":"true",tabIndex:-1,className:(0,n.cn)("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"===u?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===u?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===u?"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",c),children:"left"===e?(0,t.jsx)(r.ChevronLeft,{className:m}):(0,t.jsx)(i.ChevronRight,{className:m})})}])},315730,e=>{"use strict";var t=e.i(147732),r=e.i(592121);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:i=200,contentKey:n}={}){let a=(0,r.useRef)(null),s=(0,r.useRef)(null),o=(0,r.useRef)(!1),[l,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),m=(0,r.useCallback)(()=>{let t=a.current;if(!t||!e){u(!1),d(!1);return}let{scrollLeft:r,scrollWidth:i,clientWidth:n}=t,s=Math.abs(r),l=s>2,c=s+n(0,t.debounce)(m,150),[m]),p=(0,r.useCallback)(()=>{null===s.current&&(s.current=requestAnimationFrame(()=>{m(),s.current=null}))},[m]);(0,r.useEffect)(()=>{let t=a.current;return t&&(o.current="rtl"===getComputedStyle(t).direction),m(),e&&(t?.addEventListener("scroll",p),window.addEventListener("resize",f)),()=>{null!==s.current&&cancelAnimationFrame(s.current),s.current=null,t?.removeEventListener("scroll",p),f.cancel(),window.removeEventListener("resize",f)}},[e,m,p,f,n]);let g=(0,r.useCallback)(()=>a.current?.scrollBy({left:-i,behavior:"smooth"}),[i]),h=(0,r.useCallback)(()=>a.current?.scrollBy({left:i,behavior:"smooth"}),[i]);return{ref:a,showLeft:l,showRight:c,scrollLeft:g,scrollRight:h}}])},457492,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(632137),n=e.i(546446),a=e.i(663333),s=e.i(235577),o=e.i(315730),l=e.i(240058);let u=(0,i.cn)("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"),c=e=>{let{activeIndex:r,index:n,link:a}=e,s=r===n,o=(0,i.cn)(u,{"bg-gray-100 text-blue-500":s});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(n,a),className:(0,i.cn)("cursor-pointer",o),"aria-current":s?"page":void 0,children:a.label})}let{basePath:c,mpa:d}=e,m=a.href??("/"===a.slug?c||"/":`${c}/${a.slug}`);return(0,t.jsx)(l.default,{href:m,mpa:d,className:o,"aria-current":s?"page":void 0,sourceModule:"subnavigation",children:a.label})},d=(0,r.memo)(e=>{let{links:r,activeIndex:l,className:u,constrained:d=!0}=e,m=(0,n.useAtomValue)(a.deviceClassAtom),{ref:f,showLeft:p,showRight:g,scrollLeft:h,scrollRight:v}=(0,o.useHorizontalScroll)({enabled:"mobile"!==m&&"tablet"!==m,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,i.cn)("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%)]",u),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,i.cn)("pointer-events-none absolute top-0 -left-25 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":p}),"aria-hidden":"true"}),(0,t.jsx)(s.ScrollButton,{hidden:!p,onClick:h,direction:"left"}),(0,t.jsx)("div",{ref:f,className:(0,i.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,i)=>e.onSelect?(0,t.jsx)(c,{link:r,index:i,activeIndex:l,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(c,{link:r,index:i,activeIndex:l,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,i.cn)("pointer-events-none absolute top-0 -right-25 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":g}),"aria-hidden":"true"}),(0,t.jsx)(s.ScrollButton,{hidden:!g,onClick:v,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(["SubnavigationUI",0,d],457492)}]);