(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,27230,e=>{"use strict";var i=e.i(902875),l=e.i(247865),t=e.i(725287),s=e.i(632137),a=e.i(368847),n=e.i(240058),r=e.i(546446),c=e.i(663333),o=e.i(235577),d=e.i(315730);let m="inline-flex h-8 items-center rounded-2xl text-sm leading-[1.15] font-semibold whitespace-nowrap text-gray-900 transition-colors focus-visible:outline-none",h={filled:(0,s.cn)(m,"bg-gray-100 px-3 hover:bg-gray-200 active:bg-gray-300 focus-visible:bg-gray-200"),divided:(0,s.cn)(m,"underline-offset-4 hover:underline focus-visible:underline active:opacity-75")},u=()=>(0,i.jsx)("span",{"aria-hidden":"true",className:"h-[15px] w-px shrink-0 bg-gray-300"}),x=({side:e,show:l})=>(0,i.jsx)("div",{"aria-hidden":"true",className:(0,s.cn)("pointer-events-none absolute top-0 h-full w-24 from-white from-0% via-white via-60% to-transparent","left"===e?(0,s.cn)("-left-25 bg-gradient-to-r transition-[left]",l&&"left-0"):(0,s.cn)("-right-25 bg-gradient-to-l transition-[right]",l&&"right-0"))}),p=(0,l.memo)(({items:e,basePath:t,activeIndex:a,wrap:m=!1,variant:p="filled",className:g,sourceModule:f})=>{let b="divided"===p,v=b?"gap-4":"gap-2",w=(0,r.useAtomValue)(c.deviceClassAtom),{ref:j,showLeft:y,showRight:N,scrollLeft:_,scrollRight:T}=(0,d.useHorizontalScroll)({enabled:"mobile"!==w&&"tablet"!==w&&!m,scrollAmount:200,contentKey:e}),k=e.map((e,r)=>(0,i.jsxs)(l.Fragment,{children:[b&&!m&&r>0&&(0,i.jsx)(u,{}),(0,i.jsx)(n.default,{href:`${t}/${e.slug}`,className:(0,s.cn)(h[p],r===a&&"bg-blue-100 text-blue-500 hover:bg-blue-200 focus-visible:bg-blue-200 active:bg-blue-300"),"aria-current":r===a?"page":void 0,sourceModule:f,children:e.label})]},`${e.label}_${e.slug}`));return m?(0,i.jsx)("div",{className:(0,s.cn)("flex min-w-0 flex-wrap items-center",v,g),children:k}):(0,i.jsxs)("div",{className:(0,s.cn)("relative min-w-0 overflow-hidden",g),children:[(0,i.jsx)("div",{ref:j,className:(0,s.cn)("scrollbar-hide flex items-center overflow-x-auto",b?"h-8":"h-12",v),children:k}),(0,i.jsx)(x,{side:"left",show:y}),(0,i.jsx)(x,{side:"right",show:N}),(0,i.jsx)(o.ScrollButton,{hidden:!y,onClick:_,direction:"left",size:"sm",className:"left-0"}),(0,i.jsx)(o.ScrollButton,{hidden:!N,onClick:T,direction:"right",size:"sm",className:"right-0"})]})});p.displayName="ChipStrip",e.s(["TopicChipsClient",0,function({links:e,sectionBasePath:n,wrap:r,heading:c,sectionKey:o,variant:d="default"}){let m=(0,t.useParams)(),h="string"==typeof m.locale?m.locale:"en-US",u=(0,l.useMemo)(()=>m.section===o?e.findIndex(e=>e.slug===m.slug):-1,[e,m.section,m.slug,o]),x=c?"nav":"div",g="en-US"===h?n:`/${h}${n}`;return"masthead"===d?(0,i.jsxs)(x,{"aria-label":c||void 0,className:"flex min-w-0 items-center",children:[c&&(0,i.jsx)(a.Text,{elementType:"span",variant:"Body.S",color:"primary",className:"mr-2 shrink-0 text-sm leading-[1.15] font-black tracking-normal",children:c}),(0,i.jsx)(p,{items:e,basePath:g,activeIndex:u,variant:"divided",sourceModule:"topic-chips",className:"min-w-0"})]}):(0,i.jsx)(x,{"aria-label":c||void 0,className:"@container/topicchips w-full min-w-0",children:(0,i.jsxs)("div",{className:(0,s.cn)("flex min-w-0",r?"flex-col gap-1 @lg/topicchips:flex-row @lg/topicchips:items-center @lg/topicchips:gap-0":"flex-row items-center"),children:[c&&(0,i.jsx)(a.Text,{elementType:"span",variant:"Title.S",color:"primary",className:(0,s.cn)("shrink-0 truncate text-sm @sm/topicchips:text-base @lg/topicchips:text-xl",!r&&"max-w-[40%] pr-3"),children:c}),(0,i.jsx)(p,{items:e,basePath:g,activeIndex:u,wrap:r,sourceModule:"topic-chips",className:(0,s.cn)("min-w-0",r?"w-full @lg/topicchips:flex-1":"flex-1")})]})})}],27230)},317139,function(e){e.n(e.i(27230))}]);