1import{_ as m,b as _,c as d,o as r,Z as f,a as i,g as c,t as a,w as u,a1 as h,F as k,s as D,n as v,ak as g,T as C}from"./index-sUPB-bMu.js";const B={name:"Dropdown",props:{title:{type:String,default:null},items:{type:Array,default:null}},emits:["dropdown-click"],data(){return{showDropdown:!1}},mounted(){window.addEventListener("click",this.onClick)},beforeUnmount(){window.removeEventListener("click",this.onClick)},methods:{toogleDropdown(){this.showDropdown=!this.showDropdown},itemClicked(o){this.showDropdown=!1,this.$emit("dropdown-click",o)},onClick(o){const t=this.$refs.dropdown;!this.$refs.dropdownButton.contains(o.target)&&!t.contains(o.target)&&(this.showDropdown=!1)}}},E={class:"container input-item__field"},T={ref:"dropdown",class:"dropdown"},y=["onClick"];function N(o,t,s,S,w,n){const p=_("SvgElement");return r(),d("div",E,[f(a(s.title)+" ",1),i("a",{ref:"dropdownButton",onClick:t[0]||(t[0]=(...e)=>n.toogleDropdown&&n.toogleDropdown(...e))},[c(p,{name:"ThreeDots",class:"svg"})],512),c(C,{name:"fade",appear:""},{default:u(()=>[h(i("div",T,[(r(!0),d(k,null,D(s.items,(e,l)=>(r(),d("div",{key:l,class:v(["dropdown__item",{"dropdown__item--first":l===0}]),onClick:L=>n.itemClicked(e.id)},a(o.$t(e.title)),11,y))),128)),i("div",{class:"dropdown__item dropdown__item--last",onClick:t[1]||(t[1]=(...e)=>n.toogleDropdown&&n.toogleDropdown(...e))},a(o.$t("FORM.BUTTON.CANCEL")),1)],512),[[g,w.showDropdown]])]),_:1})])}const F=m(B,[["render",N],["__scopeId","data-v-ec210d74"]]);export{F 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.