function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./WdsDropdownMenu-inLHd048.js","./index-Zr2uxkwm.js","./index-DOkRxd0H.css","./WdsDropdownMenu-BBEUy1kG.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
import{d as g,av as v,r as _,l as d,at as b,aw as i,ax as h,w as B,I as S,o as c,e as k,s as M,x,f as z,W as C,b as I,H as D,N as u,X as P,ae as A,M as N,_ as V}from"./index-Zr2uxkwm.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:()=>[v({allowedPlacements:["bottom-end","top-end"]})]}},emits:{select:e=>typeof e=="string"},setup(e,{emit:m}){const f=A(()=>N(()=>import("./WdsDropdownMenu-inLHd048.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)),s=e,p=m,t=_(!1),a=d("trigger"),n=d("dropdown"),{floatingStyles:w}=b(a,n,{placement:i(s,"dropdownPlacement"),middleware:i(s,"floatingMiddleware")}),r=h(a);B(r,()=>{r.value||S().then(()=>t.value=!1)},{immediate:!0});function y(l){t.value=!1,p("select",l)}return(l,o)=>(c(),k("div",{ref_key:"trigger",ref:a,class:"BuilderMoreDropdown"},[M(C,{variant:"neutral",size:"smallIcon",disabled:e.disabled,"custom-size":e.triggerCustomSize,onClick:o[0]||(o[0]=q=>t.value=!t.value)},{default:x(()=>o[1]||(o[1]=[z("i",{class:"material-symbols-outlined"},"more_horiz",-1)])),_:1},8,["disabled","custom-size"]),t.value?(c(),I(u(f),{key:0,ref_key:"dropdown",ref:n,class:"BuilderMoreDropdown__dropdown",options:e.options,style:D(u(w)),"hide-icons":e.hideIcons,onSelect:y},null,8,["options","style","hide-icons"])):P("",!0)],512))}}),F=V(W,[["__scopeId","data-v-bba41b69"]]);export{F as default};
