1import{c as d}from"./B9Z2me5G.js";import{_ as L}from"./DLWpToid.js";import{bn as T,bs as u,bv as B,bA as N,bg as o,bh as s,bi as f,bk as H,bI as i,bK as V,bN as $,bl as m,bC as b,bE as h,bF as O,bD as p,bm as k,bJ as g,bj as w,be as R,bP as j}from"./BY0le0Mu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"66ae88bc32f583d7b6c707ce22ecb093a4b9f88b"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="7eb355b7-3a59-4ccb-80e6-d0d269fc995e",e._sentryDebugIdIdentifier="sentry-dbid-7eb355b7-3a59-4ccb-80e6-d0d269fc995e")})()}catch{}const K=d("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const Y=d("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const Z=d("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const Q=d("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),q=["aria-expanded"],z={class:"pb-1"},S={key:0,class:"border-t border-slate-700/50 my-1"},F=["disabled","onClick"],G=T({__name:"DropdownMenu",props:{items:{},triggerClass:{default:"rounded-full flex items-left justify-start focus:outline-none bg-mirrorGlass/80 hover:shadow-blueMirrorHardOutline mr-2"},menuClass:{default:"reflection bg-mirrorGlass/90 rounded-md shadow-blueMirrorHardOutline overflow-hidden"},itemClass:{default:"block w-full text-left justify-start px-4 py-2 text-sm hover:bg-blueMirror/80 cursor-pointer sidebar-nav-button"},position:{default:"right"},width:{default:"w-40"}},emits:["itemClick"],setup(e,{emit:l}){const C=e,_=l,n=u(!1),c=u(),r=u({});B(()=>{const t=v=>{c.value&&!c.value.contains(v.target)&&(n.value=!1)};document.addEventListener("pointerdown",t),N(()=>{document.removeEventListener("pointerdown",t)})});const x=()=>{r.value={}},M=t=>{r.value[t]=!0,setTimeout(()=>{r.value[t]=!1},800)},D=()=>{n.value=!n.value,n.value||x()},y=async t=>{t.disabled||(M(t.id),n.value=!1,_("itemClick",t),t.action&&await t.action())},E=()=>C.position==="left"?"left-0":"right-0";return(t,v)=>{const I=L;return s(),o("div",{class:"relative z-50",ref_key:"dropdownRef",ref:c},[f("button",{class:i(e.triggerClass),onClick:D,"aria-expanded":n.value,"aria-label":"Dropdown menu"},[V(t.$slots,"trigger",{},void 0,!0)],10,q),H($,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform opacity-0 translate-y-1","enter-to-class":"transform opacity-100 translate-y-0","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform opacity-100 translate-y-0","leave-to-class":"transform opacity-0 translate-y-1"},{default:m(()=>[n.value?(s(),o("div",{key:0,class:i(`absolute ${E()} top-full pt-3 ${e.width} z-50 origin-top-${e.position}`)},[f("div",{class:i(e.menuClass)},[f("div",z,[(s(!0),o(h,null,O(e.items,a=>(s(),o(h,{key:a.id},[a.divider?(s(),o("div",S)):a.href?(s(),p(I,{key:1,to:a.href,class:i([e.itemClass,{"animate-nav":r.value[a.id]}]),onClick:A=>y(a)},{default:m(()=>[a.icon?(s(),p(g(a.icon),{key:0,class:"inline-block mr-2"})):b("",!0),k(" "+w(a.label),1)]),_:2},1032,["to","class","onClick"])):(s(),o("button",{key:2,disabled:a.disabled,class:i([e.itemClass,{"animate-nav":r.value[a.id]}]),onClick:A=>y(a)},[a.icon?(s(),p(g(a.icon),{key:0,class:"inline-block mr-2"})):b("",!0),k(" "+w(a.label),1)],10,F))],64))),128))])],2)],2)):b("",!0)]),_:1})],512)}}}),W=Object.assign(R(G,[["__scopeId","data-v-51f9b6dd"]]),{__name:"DropdownMenu"}),X=j("/icons/typescript.svg");export{K as B,Y as C,W as D,Z as E,Q as H,X as _};
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.