import{c as n}from"./9wDxnFtt.js";import{Y as i,Z as o,_ as c}from"./pvhYMo2c.js";const r={},l={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 512 512"};function a(s,t){return o(),i("svg",l,t[0]||(t[0]=[c("path",{d:`M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7\r
     376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208\r
      352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z`},null,-1)]))}const p=n(r,[["render",a]]);class m{constructor(t="Select an option",e=[]){this.isOpen=!1,this.selected=t,this.items=e,this.name=t,this.id=`dropdown-${Math.random().toString(36)}`}toggle(){this.isOpen=!this.isOpen}select(t){this.selected=t}select2(t){this.selected=t,this.isOpen=!1}select3(t){}handleClickOutside(t){const e=document.getElementById(this.id);this.isOpen&&e&&!e.contains(t.target)&&(this.isOpen=!1)}}export{m as D,p as _};
