import{j as t}from"./jsx-runtime-Byf2O5Qf.js";import{c as i}from"./clsx-B-dksMZM.js";import{N as b}from"./chunk-HA7DTUK3-Cv5eIhAv.js";import{R as a}from"./index-B6meePy9.js";const n=({children:x,to:r,target:s="_self",end:d=void 0,compact:o=!1,className:m})=>t.jsx(b,{to:r,target:s,end:d,className:({isActive:l})=>i(o?"line-clamp-1 flex h-full items-center overflow-hidden border-b-4 px-1.5 pt-0.5 pb-0.5 text-center text-xs text-ellipsis whitespace-nowrap transition":"line-clamp-1 flex h-full items-center overflow-hidden border-b-4 px-2 pt-1 pb-0.5 text-center text-sm text-ellipsis whitespace-nowrap transition",l?"border-blue-500 font-semibold text-white":"border-transparent text-white/75 hover:border-white/25 hover:text-white",m),children:x}),y=({links:x,linksXs:r,secondaryLinks:s,from:d,secondaryFrom:o})=>{const l=x.length+((s==null?void 0:s.length)??0)>8,f={sm:"flex",md:"hidden md:flex",lg:"hidden lg:flex",xl:"hidden xl:flex","2xl":"hidden 2xl:flex"},h={sm:"sticky",md:"md:sticky",lg:"lg:sticky",xl:"xl:sticky","2xl":"2xl:sticky"},p=i(f[d],h[d]),c=o?{sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex",xl:"hidden xl:flex","2xl":"hidden 2xl:flex"}[o]:"flex";return t.jsx("nav",{className:i("hide-scrollbar top-14 z-200 h-11 w-full items-end overflow-x-auto overflow-y-hidden bg-slate-800 px-5 text-white sm:overflow-visible",p),children:t.jsxs("div",{className:i("flex h-full w-full items-center justify-between px-1 sm:w-full sm:justify-between sm:px-4",l?"sm:gap-x-5":"sm:gap-x-6"),children:[t.jsx("div",{className:i("flex h-full w-full flex-shrink-0 justify-between sm:hidden"),children:(r??x).map(e=>t.jsx(n,{to:e.to,end:e.end,compact:l,children:t.jsx(a,{k:e.label})},e.to))}),t.jsx("div",{className:i("hidden h-full w-auto flex-shrink-0 sm:flex sm:justify-start",l?"sm:gap-x-5":"sm:gap-x-6"),children:x.map(e=>t.jsx(n,{to:e.to,end:e.end,compact:l,children:t.jsx(a,{k:e.label})},e.to))}),s&&t.jsx("div",{className:i("h-full flex-shrink-0",l?"gap-x-5":"gap-x-6",c),children:s.map(e=>t.jsx(n,{to:e.to,compact:l,children:t.jsx(a,{k:e.label})},e.to))})]})})};export{y as S};

AltStyle によって変換されたページ (->オリジナル) /