function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./WdsDropdownMenu-DlJ9nTHh.js","./index-ChhimAZ-.js","./index-_4WEo7c5.css","./WdsDropdownMenu-DJ-F3F9N.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as g,as as b,r as v,k as i,at as d,au as _,w as h,H as k,o as u,e as B,q as S,s as M,f as z,W as C,b as D,G as I,M as c,U as P,ab as x,L as q,_ as A}from"./index-ChhimAZ-.js";import{u as V}from"./floating-ui.vue-BNompikD.js";const W=g({__name:"SharedMoreDropdown",props:{options:{type:Array,default:()=>[]},triggerCustomSize:{type:String,default:"smallIcon"},disabled:{type:Boolean},hideIcons:{type:Boolean,required:!1},dropdownPlacement:{type:String,required:!1,default:"bottom-end"},floatingMiddleware:{type:Array,required:!1,default:()=>[b({allowedPlacements:["bottom-end","top-end"]})]}},emits:{select:e=>typeof e=="string"},setup(e,{emit:m}){const f=x(()=>q(()=>import("./WdsDropdownMenu-DlJ9nTHh.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),s=e,p=m,t=v(!1),a=i("trigger"),n=i("dropdown"),{floatingStyles:w}=V(a,n,{placement:d(s,"dropdownPlacement"),middleware:d(s,"floatingMiddleware")}),r=_(a);h(r,()=>{r.value||k().then(()=>t.value=!1)},{immediate:!0});function y(l){t.value=!1,p("select",l)}return(l,o)=>(u(),B("div",{ref_key:"trigger",ref:a,class:"BuilderMoreDropdown"},[S(C,{variant:"neutral",size:"smallIcon",disabled:e.disabled,"custom-size":e.triggerCustomSize,onClick:o[0]||(o[0]=E=>t.value=!t.value)},{default:M(()=>o[1]||(o[1]=[z("i",{class:"material-symbols-outlined"},"more_horiz",-1)])),_:1},8,["disabled","custom-size"]),t.value?(u(),D(c(f),{key:0,ref_key:"dropdown",ref:n,class:"BuilderMoreDropdown__dropdown",options:e.options,style:I(c(w)),"hide-icons":e.hideIcons,onSelect:y},null,8,["options","style","hide-icons"])):P("",!0)],512))}}),R=A(W,[["__scopeId","data-v-bba41b69"]]);export{R as default};
