PageSourceSearch

https://www.lamassu.io/docs/assets/index-B_fYquv6.js

js lamassu.io collected 2026-10-02 14:59:19 UTC 19,927 bytes, 1 lines download raw bytes

vendor: 8,459 bytes, line 1
1import{t as R}from"./floating-ui.dom-Byb8K9FY.js";import{P as E,a as pe,c as A,d as j,e as $,f as he,D as He,h as U,i as $e,j as Ge,k,l as Ue,m as Ne,n as ce,o as We,p as F,q as Be,r as Ye,L as qe,T as le,s as ue,t as de,S as Xe,C as fe,v as Je,w as Qe,x as W,y as we}from"./layout.shared-GYvPzJWX.js";import{r as i,j as t}from"./index-prc0XQdj.js";import{R as Ze}from"./index-2SY5f-xs.js";function et(e){const n=i.useRef({value:e,previous:e});return i.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var tt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),nt="VisuallyHidden",Ce=i.forwardRef((e,n)=>t.jsx(E.span,{...e,ref:n,style:{...tt,...e.style}}));Ce.displayName=nt;var ot=Ce,S="NavigationMenu",[Z,ye,rt]=he(S),[B,at,st]=he(S),[ee]=Ge(S,[rt,st]),[it,T]=ee(S),[ct,lt]=ee(S),Me=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,value:o,onValueChange:a,defaultValue:s,delayDuration:c=200,skipDelayDuration:d=300,orientation:l="horizontal",dir:v,...u}=e,[g,y]=i.useState(null),M=A(n,w=>y(w)),p=Ue(v),h=i.useRef(0),C=i.useRef(0),b=i.useRef(0),[I,f]=i.useState(!0),[x,m]=Ne({prop:o,onChange:w=>{const P=w!=="",G=d>0;P?(window.clearTimeout(b.current),G&&f(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>f(!0),d)),a?.(w)},defaultProp:s??"",caller:S}),N=i.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>m(""),150)},[m]),_=i.useCallback(w=>{window.clearTimeout(C.current),m(w)},[m]),L=i.useCallback(w=>{x===w?window.clearTimeout(C.current):h.current=window.setTimeout(()=>{window.clearTimeout(C.current),m(w)},c)},[x,m,c]);return i.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(C.current),window.clearTimeout(b.current)},[]),t.jsx(be,{scope:r,isRootMenu:!0,value:x,dir:p,orientation:l,rootNavigationMenu:g,onTriggerEnter:w=>{window.clearTimeout(h.current),I?L(w):_(w)},onTriggerLeave:()=>{window.clearTimeout(h.current),N()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:N,onItemSelect:w=>{m(P=>P===w?"":w)},onItemDismiss:()=>m(""),children:t.jsx(E.nav,{"aria-label":"Main","data-orientation":l,dir:p,...u,ref:M})})});Me.displayName=S;var Y="NavigationMenuSub",ut=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,value:o,onValueChange:a,defaultValue:s,orientation:c="horizontal",...d}=e,l=T(Y,r),[v,u]=Ne({prop:o,onChange:a,defaultProp:s??"",caller:Y});return t.jsx(be,{scope:r,isRootMenu:!1,value:v,dir:l.dir,orientation:c,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:g=>u(g),onItemSelect:g=>u(g),onItemDismiss:()=>u(""),children:t.jsx(E.div,{"data-orientation":c,...d,ref:n})})});ut.displayName=Y;var be=e=>{const{scope:n,isRootMenu:r,rootNavigationMenu:o,dir:a,orientation:s,children:c,value:d,onItemSelect:l,onItemDismiss:v,onTriggerEnter:u,onTriggerLeave:g,onContentEnter:y,onContentLeave:M}=e,[p,h]=i.useState(null),[C,b]=i.useState(new Map),[I,f]=i.useState(null);return t.jsx(it,{scope:n,isRootMenu:r,rootNavigationMenu:o,value:d,previousValue:et(d),baseId:pe(),dir:a,orientation:s,viewport:p,onViewportChange:h,indicatorTrack:I,onIndicatorTrackChange:f,onTriggerEnter:k(u),onTriggerLeave:k(g),onContentEnter:k(y),onContentLeave:k(M),onItemSelect:k(l),onItemDismiss:k(v),onViewportContentChange:i.useCallback((x,m)=>{b(N=>(N.set(x,m),new Map(N)))},[]),onViewportContentRemove:i.useCallback(x=>{b(m=>m.has(x)?(m.delete(x),new Map(m)):m)},[]),children:t.jsx(Z.Provider,{scope:n,children:t.jsx(ct,{scope:n,items:C,children:c})})})},Re="NavigationMenuList",je=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,...o}=e,a=T(Re,r),s=t.jsx(E.ul,{"data-orientation":a.orientation,...o,ref:n});return t.jsx(E.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:t.jsx(Z.Slot,{scope:r,children:a.isRootMenu?t.jsx(Se,{asChild:!0,children:s}):s})})});je.displayName=Re;var Ee="NavigationMenuItem",[dt,Te]=ee(Ee),te=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,value:o,...a}=e,s=pe(),c=o||s||"LEGACY_REACT_AUTO_VALUE",d=i.useRef(null),l=i.useRef(null),v=i.useRef(null),u=i.useRef(()=>{}),g=i.useRef(!1),y=i.useCallback((p="start")=>{if(d.current){u.current();const h=X(d.current);h.length&&re(p==="start"?h:h.reverse())}},[]),M=i.useCallback(()=>{if(d.current){const p=X(d.current);p.length&&(u.current=Nt(p))}},[]);return t.jsx(dt,{scope:r,value:c,triggerRef:l,contentRef:d,focusProxyRef:v,wasEscapeCloseRef:g,onEntryKeyDown:y,onFocusProxyEnter:y,onRootContentClose:M,onContentFocusOutside:M,children:t.jsx(E.li,{...a,ref:n})})});te.displayName=Ee;var q="NavigationMenuTrigger",Ie=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,disabled:o,...a}=e,s=T(q,e.__scopeNavigationMenu),c=Te(q,e.__scopeNavigationMenu),d=i.useRef(null),l=A(d,c.triggerRef,n),v=Fe(s.baseId,c.value),u=Ae(s.baseId,c.value),g=i.useRef(!1),y=i.useRef(!1),M=c.value===s.value;return t.jsxs(t.Fragment,{children:[t.jsx(Z.ItemSlot,{scope:r,value:c.value,children:t.jsx(De,{asChild:!0,children:t.jsx(E.button,{id:v,disabled:o,"data-disabled":o?"":void 0,"data-state":ae(M),"aria-expanded":M,"aria-controls":u,...a,ref:l,onPointerEnter:j(e.onPointerEnter,()=>{y.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:j(e.onPointerMove,K(()=>{o||y.current||c.wasEscapeCloseRef.current||g.current||(s.onTriggerEnter(c.value),g.current=!0)})),onPointerLeave:j(e.onPointerLeave,K(()=>{o||(s.onTriggerLeave(),g.current=!1)})),onClick:j(e.onClick,()=>{s.onItemSelect(c.value),y.current=M}),onKeyDown:j(e.onKeyDown,p=>{const C={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];M&&p.key===C&&(c.onEntryKeyDown(),p.preventDefault())})})})}),M&&t.jsxs(t.Fragment,{children:[t.jsx(ot,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:p=>{const h=c.contentRef.current,C=p.relatedTarget,b=C===d.current,I=h?.contains(C);(b||!I)&&c.onFocusProxyEnter(b?"start":"end")}}),s.viewport&&t.jsx("span",{"aria-owns":u})]})]})});Ie.displayName=q;var ft="NavigationMenuLink",ve="navigationMenu.linkSelect",_e=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,active:o,onSelect:a,...s}=e;return t.jsx(De,{asChild:!0,children:t.jsx(E.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...s,ref:n,onClick:j(e.onClick,c=>{const d=c.target,l=new CustomEvent(ve,{bubbles:!0,cancelable:!0});if(d.addEventListener(ve,v=>a?.(v),{once:!0}),ce(d,l),!l.defaultPrevented&&!c.metaKey){const v=new CustomEvent(V,{bubbles:!0,cancelable:!0});ce(d,v)}},{checkForDefaultPrevented:!1})})})});_e.displayName=ft;var ne="NavigationMenuIndicator",vt=i.forwardRef((e,n)=>{const{forceMount:r,...o}=e,a=T(ne,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?Ze.createPortal(t.jsx($,{present:r||s,children:t.jsx(mt,{...o,ref:n})}),a.indicatorTrack):null});vt.displayName=ne;var mt=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,...o}=e,a=T(ne,r),s=ye(r),[c,d]=i.useState(null),[l,v]=i.useState(null),u=a.orientation==="horizontal",g=!!a.value;i.useEffect(()=>{const p=s().find(h=>h.value===a.value)?.ref.current;p&&d(p)},[s,a.value]);const y=()=>{c&&v({size:u?c.offsetWidth:c.offsetHeight,offset:u?c.offsetLeft:c.offsetTop})};return J(c,y),J(a.indicatorTrack,y),l?t.jsx(E.div,{"aria-hidden":!0,"data-state":g?"visible":"hidden","data-orientation":a.orientation,...o,ref:n,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...o.style}}):null}),D="NavigationMenuContent",Pe=i.forwardRef((e,n)=>{const{forceMount:r,...o}=e,a=T(D,e.__scopeNavigationMenu),s=Te(D,e.__scopeNavigationMenu),c=A(s.contentRef,n),d=s.value===a.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return a.viewport?t.jsx(gt,{forceMount:r,...l,ref:c}):t.jsx($,{present:r||d,children:t.jsx(Le,{"data-state":ae(d),...l,ref:c,onPointerEnter:j(e.onPointerEnter,a.onContentEnter),onPointerLeave:j(e.onPointerLeave,K(a.onContentLeave)),style:{pointerEvents:!d&&a.isRootMenu?"none":void 0,...l.style}})})});Pe.displayName=D;var gt=i.forwardRef((e,n)=>{const r=T(D,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:a}=r;return U(()=>{o(e.value,{ref:n,...e})},[e,n,o]),U(()=>()=>a(e.value),[e.value,a]),null}
1),V="navigationMenu.rootContentDismiss",Le=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,value:o,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:d,onContentFocusOutside:l,...v}=e,u=T(D,r),g=i.useRef(null),y=A(g,n),M=Fe(u.baseId,o),p=Ae(u.baseId,o),h=ye(r),C=i.useRef(null),{onItemDismiss:b}=u;i.useEffect(()=>{const f=g.current;if(u.isRootMenu&&f){const x=()=>{b(),d(),f.contains(document.activeElement)&&a.current?.focus()};return f.addEventListener(V,x),()=>f.removeEventListener(V,x)}},[u.isRootMenu,e.value,a,b,d]);const I=i.useMemo(()=>{const x=h().map(P=>P.value);u.dir==="rtl"&&x.reverse();const m=x.indexOf(u.value),N=x.indexOf(u.previousValue),_=o===u.value,L=N===x.indexOf(o);if(!_&&!L)return C.current;const w=(()=>{if(m!==N){if(_&&N!==-1)return m>N?"from-end":"from-start";if(L&&m!==-1)return m>N?"to-start":"to-end"}return null})();return C.current=w,w},[u.previousValue,u.value,u.dir,h,o]);return t.jsx(Se,{asChild:!0,children:t.jsx(He,{id:p,"aria-labelledby":M,"data-motion":I,"data-orientation":u.orientation,...v,ref:y,disableOutsidePointerEvents:!1,onDismiss:()=>{const f=new Event(V,{bubbles:!0,cancelable:!0});g.current?.dispatchEvent(f)},onFocusOutside:j(e.onFocusOutside,f=>{l();const x=f.target;u.rootNavigationMenu?.contains(x)&&f.preventDefault()}),onPointerDownOutside:j(e.onPointerDownOutside,f=>{const x=f.target,m=h().some(_=>_.ref.current?.contains(x)),N=u.isRootMenu&&u.viewport?.contains(x);(m||N||!u.isRootMenu)&&f.preventDefault()}),onKeyDown:j(e.onKeyDown,f=>{const x=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!x){const N=X(f.currentTarget),_=document.activeElement,L=N.findIndex(G=>G===_),P=f.shiftKey?N.slice(0,L).reverse():N.slice(L+1,N.length);re(P)?f.preventDefault():s.current?.focus()}}),onEscapeKeyDown:j(e.onEscapeKeyDown,f=>{c.current=!0})})})}),oe="NavigationMenuViewport",ke=i.forwardRef((e,n)=>{const{forceMount:r,...o}=e,s=!!T(oe,e.__scopeNavigationMenu).value;return t.jsx($,{present:r||s,children:t.jsx(xt,{...o,ref:n})})});ke.displayName=oe;var xt=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,children:o,...a}=e,s=T(oe,r),c=A(n,s.onViewportChange),d=lt(D,e.__scopeNavigationMenu),[l,v]=i.useState(null),[u,g]=i.useState(null),y=l?l?.width+"px":void 0,M=l?l?.height+"px":void 0,p=!!s.value,h=p?s.value:s.previousValue;return J(u,()=>{u&&v({width:u.offsetWidth,height:u.offsetHeight})}),t.jsx(E.div,{"data-state":ae(p),"data-orientation":s.orientation,...a,ref:c,style:{pointerEvents:!p&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":M,...a.style},onPointerEnter:j(e.onPointerEnter,s.onContentEnter),onPointerLeave:j(e.onPointerLeave,K(s.onContentLeave)),children:Array.from(d.items).map(([b,{ref:I,forceMount:f,...x}])=>{const m=h===b;return t.jsx($,{present:f||m,children:t.jsx(Le,{...x,ref:$e(I,N=>{m&&N&&g(N)})})},b)})})}),pt="FocusGroup",Se=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,...o}=e,a=T(pt,r);return t.jsx(B.Provider,{scope:r,children:t.jsx(B.Slot,{scope:r,children:t.jsx(E.div,{dir:a.dir,...o,ref:n})})})}),me=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ht="FocusGroupItem",De=i.forwardRef((e,n)=>{const{__scopeNavigationMenu:r,...o}=e,a=at(r),s=T(ht,r);return t.jsx(B.ItemSlot,{scope:r,children:t.jsx(E.button,{...o,ref:n,onKeyDown:j(e.onKeyDown,c=>{if(["Home","End",...me].includes(c.key)){let l=a().map(g=>g.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(c.key)&&l.reverse(),me.includes(c.key)){const g=l.indexOf(c.currentTarget);l=l.slice(g+1)}setTimeout(()=>re(l)),c.preventDefault()}})})})});function X(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function re(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}function Nt(e){return e.forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")}),()=>{e.forEach(n=>{const r=n.dataset.tabindex;
1n.setAttribute("tabindex",r)})}}function J(e,n){const r=k(n);U(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,r])}function ae(e){return e?"open":"closed"}function Fe(e,n){return`${e}-trigger-${n}`}function Ae(e,n){return`${e}-content-${n}`}function K(e){return n=>n.pointerType==="mouse"?e(n):void 0}var wt=Me,Ct=je,Oe=Ie,yt=_e,Ve=Pe,Ke=ke;const Mt=wt,bt=Ct,z=i.forwardRef(({className:e,children:n,...r},o)=>t.jsx(te,{ref:o,className:R("list-none",e),...r,children:n}));z.displayName=te.displayName;const se=i.forwardRef(({className:e,children:n,...r},o)=>t.jsx(Oe,{ref:o,className:R("data-[state=open]:bg-fd-accent/50",e),...r,children:n}));se.displayName=Oe.displayName;const ie=i.forwardRef(({className:e,...n},r)=>t.jsx(Ve,{ref:r,className:R("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft",e),...n}));
1ie.displayName=Ve.displayName;const H=yt,ze=i.forwardRef(({className:e,...n},r)=>t.jsx("div",{ref:r,className:"flex w-full justify-center",children:t.jsx(Ke,{...n,className:R("relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in",e)})}));ze.displayName=Ke.displayName;const ge=We("[&_svg]:size-4",{variants:{variant:{main:"inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",button:F({color:"secondary",className:"gap-1.5"}),icon:F({color:"ghost",size:"icon"})}},defaultVariants:{variant:"main"}});function Rt({nav:e={},i18n:n=!1,links:r,githubUrl:o,themeSwitch:a={},searchToggle:s={}}){const{navItems:c,menuItems:d}=Be({links:r,githubUrl:o});return t.jsxs(jt,{transparentMode:e.transparentMode,children:[Ye(e,{className:"inline-flex items-center gap-2.5 font-semibold"}),e.children,t.jsx("ul",{className:"flex flex-row items-center gap-2 px-6 max-sm:hidden",children:c.filter(l=>!O(l)).map((l,v)=>t.jsx(xe,{item:l,className:"text-sm"},v))}),t.jsxs("div",{className:"flex flex-row items-center justify-end gap-1.5 flex-1 max-lg:hidden",children:[s.enabled!==!1&&(s.components?.lg??t.jsx(qe,{className:"w-full rounded-full ps-2.5 max-w-[240px]",hideIfDisabled:!0})),a.enabled!==!1&&(a.component??t.jsx(le,{mode:a?.mode})),n&&t.jsx(ue,{children:t.jsx(de,{className:"size-5"})}),t.jsx("ul",{className:"flex flex-row gap-2 items-center empty:hidden",children:c.filter(O).map((l,v)=>t.jsx(xe,{className:R(l.type==="icon"&&"-mx-1 first:ms-0 last:me-0"),item:l},v))})]}),t.jsxs("div",{className:"flex flex-row items-center ms-auto -me-1.5 lg:hidden",children:[s.enabled!==!1&&(s.components?.sm??t.jsx(Xe,{className:"p-2",hideIfDisabled:!0})),t.jsx(z,{asChild:!0,children:t.jsxs("div",{children:[t.jsx(se,{"aria-label":"Toggle Menu",className:R(F({size:"icon",color:"ghost",className:"group [&_svg]:size-5.5"})),onPointerMove:e.enableHoverToOpen?void 0:l=>l.preventDefault(),children:t.jsx(fe,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180"})}),t.jsxs(ie,{className:"flex flex-col p-4 sm:flex-row sm:items-center sm:justify-end",children:[d.filter(l=>!O(l)).map((l,v)=>t.jsx(Q,{item:l,className:"sm:hidden"},v)),t.jsxs("div",{className:"-ms-1.5 flex flex-row items-center gap-2 max-sm:mt-2",children:[d.filter(O).map((l,v)=>t.jsx(Q,{item:l,className:R(l.type==="icon"&&"-mx-1 first:ms-0")},v)),t.jsx("div",{role:"separator",className:"flex-1"}),n&&t.jsxs(ue,{children:[t.jsx(de,{className:"size-5"}),t.jsx(Je,{}),t.jsx(fe,{className:"size-3 text-fd-muted-foreground"})]}),a.enabled!==!1&&(a.component??t.jsx(le,{mode:a?.mode}))]})]})]})})]})]})}function O(e){return"secondary"in e&&e.secondary!=null?e.secondary:e.type==="icon"}function jt({transparentMode:e="none",...n}){const[r,o]=i.useState(""),a=Qe({enabled:e==="top"})??!0,s=e==="top"?a:e==="always";return t.jsx(Mt,{value:r,onValueChange:o,asChild:!0,children:t.jsx("header",{id:"nd-nav",...n,className:R("sticky h-14 top-0 z-40",n.className),children:t.jsxs("div",{className:R("backdrop-blur-lg border-b transition-colors *:mx-auto *:max-w-(--fd-layout-width)",r.length>0&&"max-lg:shadow-lg max-lg:rounded-b-2xl",(!s||r.length>0)&&"bg-fd-background/80"),children:[t.jsx(bt,{className:"flex h-14 w-full items-center px-4",asChild:!0,children:t.jsx("nav",{children:n.children})}),t.jsx(ze,{})]})})})}function xe({item:e,...n}){if(e.type==="custom")return e.children;if(e.type==="menu"){const r=e.items.map((o,a)=>{if(o.type==="custom")return t.jsx(i.Fragment,{children:o.children},a);const{banner:s=o.icon?t.jsx("div",{className:"w-fit rounded-md border bg-fd-muted p-1 [&_svg]:size-4",children:o.icon}):null,...c}=o.menu??{};return t.jsx(H,{asChild:!0,children:t.jsx(W,{href:o.url,external:o.external,...c,className:R("flex flex-col gap-2 rounded-lg border bg-fd-card p-3 transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground",c.className),children:c.children??t.jsxs(t.Fragment,{children:[s,t.jsx("p",{className:"text-base font-medium",children:o.text}),t.jsx("p",{className:"text-sm text-fd-muted-foreground empty:hidden",children:o.description})]})})},`${a}-${o.url}`)});return t.jsxs(z,{...n,children:[t.jsx(se,{className:R(ge(),"rounded-md"),children:e.url?t.jsx(W,{href:e.url,external:e.external,children:e.text}):e.text}),t.jsx(ie,{className:"grid grid-cols-1 gap-2 p-4 md:grid-cols-2 lg:grid-cols-3",children:r})]})}return t.jsx(z,{...n,children:t.jsx(H,{asChild:!0,children:t.jsx(we,{item:e,"aria-label":e.type==="icon"?e.label:void 0,className:R(ge({variant:e.type})),children:e.type==="icon"?e.icon:e.text})})})}function Q({item:e,...n}){if(e.type==="custom")return t.jsx("div",{className:R("grid",n.className),children:e.children});if(e.type==="menu"){const r=t.jsxs(t.Fragment,{children:[e.icon,e.text]});return t.jsxs("div",{className:R("mb-4 flex flex-col",n.className),children:[t.jsx("p",{className:"mb-1 text-sm text-fd-muted-foreground",children:e.url?t.jsx(H,{asChild:!0,children:t.jsx(W,{href:e.url,external:e.external,children:r})}):r}),e.items.map((o,a)=>t.jsx(Q,{item:o},a))]})}return t.jsx(H,{asChild:!0,children:t.jsxs(we,{item:e,className:R({main:"inline-flex items-center gap-2 py-1.5 transition-colors hover:text-fd-popover-foreground
1/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",icon:F({size:"icon",color:"ghost"}),button:F({color:"secondary",className:"gap-1.5 [&_svg]:size-4"})}[e.type??"main"],n.className),"aria-label":e.type==="icon"?e.label:void 0,children:[e.icon,e.type==="icon"?void 0:e.text]})})}function Pt(e){const{nav:n={},links:r,githubUrl:o,i18n:a,themeSwitch:s={},searchToggle:c,...d}=e;return t.jsxs("main",{id:"nd-home-layout",...d,className:R("flex flex-1 flex-col [--fd-layout-width:1400px]",d.className),children:[n.enabled!==!1&&(n.component??t.jsx(Rt,{links:r,nav:n,themeSwitch:s,searchToggle:c,i18n:a,githubUrl:o})),e.children]})}export{Pt as H};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.