import{d as i,a0 as c,r as p,aV as u,o as m,m as f,aa as n,i as v,j as _,v as b,f as a,k,G as V,_ as B}from"./CCqMIw4K.js";const $=i({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=c(r,"modelValue",l,{passive:!0}),s=p();return u(s,()=>{e.value=!1}),(o,t)=>{const d=B;return m(),f("div",{ref_key:"el",ref:s,class:"relative"},[n(o.$slots,"trigger",{enabled:a(e),click:()=>e.value=!a(e)},()=>[v(d,{onClick:t[0]||(t[0]=g=>e.value=!a(e))},{default:_(()=>[b(" Dropdown ")]),_:1})]),k("div",{class:V(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[a(e)?"op-100":"op0 pointer-events-none -translate-y-1",o.direction==="end"?"right-0":"left-0"]])},[n(o.$slots,"default")],2)],512)}}});export{$ as _};
