1import{a6 as M,L as P,a7 as A,av as C,M as g,aw as u,Z as O}from"./DrctnP21.js";import{a as D,b as j,c as F}from"./DKv9PeQl.js";import V from"./BgquZQsB.js";import{x as R,L as $,y as f,h as N,e as o,c as s,w as a,u as t,n as U,j as x,a as h,g as E,D as G,B as H,G as b,H as y,v,M as w}from"./CdHCLhiy.js";import"./DkSJeJy0.js";import"./Zw0_1MwW.js";import"./DYCZwdqg.js";import"./Ntie5UCs.js";import"./DG1FduNR.js";import"./-IFd_4Fj.js";import"./BshOeUjT.js";import"./CarlKNvT.js";import"./BSH3KNZF.js";import"./BwPUpEfI.js";import"./BTtArB4J.js";import"./BSMZFi82.js";import"./BaZhhsKL.js";import"./xm30D9s3.js";import"./6fsQqEkh.js";import"./kRIii9yh.js";import"./D3ap6utq.js";import"./DoVH7WAN.js";import"./B6HqlD75.js";import"./Bju2fmSH.js";import"./aQj_cDlF.js";import"./Br9Xkj5-.js";import"./C93hsqmR.js";import"./D-pctMGk.js";import"./DSKcgptH.js";import"./jFYhBC76.js";import"./C_7Sg8WX.js";import"./w8BUS3O9.js";import"./BoX-JSak.js";import"./CZPXhdit.js";const W={slots:{content:"min-w-32 max-h-(--reka-dropdown-menu-content-available-height) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col",input:"border-b border-default",empty:"text-center text-muted",viewport:"relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",arrow:"fill-bg stroke-default",group:"p-1 isolate",label:"w-full flex items-center font-semibold text-highlighted",separator:"-mx-1 my-1 h-px bg-border",item:"group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",itemLeadingIcon:"shrink-0",itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemTrailing:"ms-auto inline-flex gap-1.5 items-center",itemTrailingIcon:"shrink-0",itemTrailingKbds:"hidden lg:inline-flex items-center shrink-0",itemTrailingKbdsSize:"",itemWrapper:"flex-1 flex flex-col text-start min-w-0",itemLabel:"truncate",itemDescription:"truncate text-muted",itemLabelExternalIcon:"inline-block size-3 align-top text-dimmed"},variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},active:{true:{item:"text-highlighted before:bg-elevated",itemLeadingIcon:"text-default"},false:{item:["text-default data-highlighted:text-highlighted data-[state=open]:text-highlighted data-highlighted:before:bg-elevated/50 data-[state=open]:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["text-dimmed group-data-highlighted:text-default group-data-[state=open]:text-default","transition-colors"]}},loading:{true:{itemLeadingIcon:"animate-spin"}},size:{xs:{label:"p-1 text-xs gap-1",item:"p-1 text-xs gap-1",empty:"p-2 text-xs",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemTrailingIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},sm:{label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-xs gap-1.5",empty:"p-2.5 text-xs",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemTrailingIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},md:{label:"p-1.5 text-sm gap-1.5",item:"p-1.5 text-sm gap-1.5",empty:"p-2.5 text-sm",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemTrailingIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},lg:{label:"p-2 text-sm gap-2",item:"p-2 text-sm gap-2",empty:"p-3 text-sm",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemTrailingIcon:"size-5",itemTrailingKbds:"gap-1",itemTrailingKbdsSize:"md"},xl:{label:"p-2 text-base gap-2",item:"p-2 text-base gap-2",empty:"p-3 text-base",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemTrailingIcon:"size-6",itemTrailingKbds:"gap-1",itemTrailingKbdsSize:"lg"}}},compoundVariants:[{color:"primary",active:!1,class:{item:"text-primary data-highlighted:text-primary data-highlighted:before:bg-primary/10 data-[state=open]:before:bg-primary/10",itemLeadingIcon:"text-primary/75 group-data-highlighted:text-primary group-data-[state=open]:text-primary"}}
1,{color:"secondary",active:!1,class:{item:"text-secondary data-highlighted:text-secondary data-highlighted:before:bg-secondary/10 data-[state=open]:before:bg-secondary/10",itemLeadingIcon:"text-secondary/75 group-data-highlighted:text-secondary group-data-[state=open]:text-secondary"}},{color:"success",active:!1,class:{item:"text-success data-highlighted:text-success data-highlighted:before:bg-success/10 data-[state=open]:before:bg-success/10",itemLeadingIcon:"text-success/75 group-data-highlighted:text-success group-data-[state=open]:text-success"}},{color:"info",active:!1,class:{item:"text-info data-highlighted:text-info data-highlighted:before:bg-info/10 data-[state=open]:before:bg-info/10",itemLeadingIcon:"text-info/75 group-data-highlighted:text-info group-data-[state=open]:text-info"}},{color:"warning",active:!1,class:{item:"text-warning data-highlighted:text-warning data-highlighted:before:bg-warning/10 data-[state=open]:before:bg-warning/10",itemLeadingIcon:"text-warning/75 group-data-highlighted:text-warning group-data-[state=open]:text-warning"}},{color:"error",active:!1,class:{item:"text-error data-highlighted:text-error data-highlighted:before:bg-error/10 data-[state=open]:before:bg-error/10",itemLeadingIcon:"text-error/75 group-data-highlighted:text-error group-data-[state=open]:text-error"}},{color:"primary",active:!0,class:{item:"text-primary before:bg-primary/10",itemLeadingIcon:"text-primary"}},{color:"secondary",active:!0,class:{item:"text-secondary before:bg-secondary/10",itemLeadingIcon:"text-secondary"}},{color:"success",active:!0,class:{item:"text-success before:bg-success/10",itemLeadingIcon:"text-success"}},{color:"info",active:!0,class:{item:"text-info before:bg-info/10",itemLeadingIcon:"text-info"}},{color:"warning",active:!0,class:{item:"text-warning before:bg-warning/10",itemLeadingIcon:"text-warning"}},{color:"error",active:!0,class:{item:"text-error before:bg-error/10",itemLeadingIcon:"text-error"}}],defaultVariants:{size:"md"}},Ke={__name:"UDropdownMenu",props:w({size:{type:null,required:!1},items:{type:null,required:!1},checkedIcon:{type:null,required:!1},loadingIcon:{type:null,required:!1},externalIcon:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},filter:{type:[Boolean,Object],required:!1,default:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},modal:{type:Boolean,required:!1,default:!0}},{searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:w(["update:open"],["update:searchTerm"]),setup(n,{emit:z}){const I=n,L=z,i=R(),l=$(n,"searchTerm",{type:String,default:""}),e=M("dropdownMenu",I),T=P(),k=A(C(e,"defaultOpen","open","modal"),L),S=f(()=>g(e.content,{side:"bottom",sideOffset:8,collisionPadding:8})),q=f(()=>g(e.arrow,{rounded:!0})),K=()=>O(i,["default"]),r=N(()=>u({extend:u(W),...T.ui?.dropdownMenu||{}})({size:e.size}));return(d,c)=>(o(),s(t(F),b(y(t(k))),{default:a(({open:_})=>[i.default?(o(),s(t(D),{key:0,"as-child":"",class:U(t(e).class),disabled:t(e).disabled},{default:a(()=>[x(d.$slots,"default",{open:_})]),_:2},1032,["class","disabled"])):h("",!0),E(V,v({"search-term":l.value,"onUpdate:searchTerm":c[0]||(c[0]=m=>l.value=m),class:r.value.content({class:[!i.default&&t(e).class,t(e).ui?.content]}),ui:r.value,"ui-override":t(e).ui},S.value,{items:t(e).items,portal:t(e).portal,"label-key":t(e).labelKey,"description-key":t(e).descriptionKey,"checked-icon":t(e).checkedIcon,"loading-icon":t(e).loadingIcon,"external-icon":t(e).externalIcon,size:t(e).size,filter:t(e).filter,"filter-fields":t(e).filterFields,"ignore-filter":t(e).ignoreFilter}),G({default:a(()=>[t(e).arrow?(o(),s(t(j),v({key:0},q.value,{"data-slot":"arrow",class:r.value.arrow({class:t(e).ui?.arrow})}),null,16,["class"])):h("",!0)]),_:2},[H(K(),(m,p)=>({name:p,fn:a(B=>[x(d.$slots,p,b(y(B)))])}))]),1040,["search-term","class","ui","ui-override","items","portal","label-key","description-key","checked-icon","loading-icon","external-icon","size","filter","filter-fields","ignore-filter"])]),_:3},16))}};export{Ke as default};
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.