import{p as o,H as e,c as r,h as s,d,t as n}from"./p-yZBlG3YQ.js";import{randomString as t}from"@verdocs/js-sdk";import{d as i}from"./p-DQTI8vRX.js";const a=()=>`verdocs-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{height:26px;padding:0 4px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}`;const c=`<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>`;const p=o(class o extends e{constructor(o){super();if(o!==false){this.__registerHost()}this.optionSelected=r(this,"optionSelected");this.options=[];this.containerId=`verdocs-send-${Math.random().toString(36).substring(2,11)}`;this.showPicker=false}handleSelectOption(o,e){var r;o.stopPropagation();(r=this.optionSelected)===null||r===void 0?void 0:r.emit(e);this.showPicker=false}toggle(){this.showPicker=!this.showPicker}render(){const o=`verdocs-dropdown-${t(8)}`;return s(d,{key:"5b5977db34f3403485577d48abded1413ae747b3"},s("button",{key:"602cee4a041ed8c312a2af9681370b917334c00f",class:"arrow",innerHTML:c,"aria-label":"Open Menu",id:o,onClick:()=>this.showPicker=!this.showPicker}),this.showPicker&&s("verdocs-portal",{key:"852ced3bafef243933090dd1556aaa9c9b579a62",anchor:o,onClickAway:()=>this.showPicker=false,id:"verdocs-dropdown-menu-items"},this.options.map((o=>{if(!o.label){return s("div",{class:"verdocs-dropdown-menu-separator"})}else{return s("button",{class:"verdocs-dropdown-menu-option",disabled:o.disabled||false,onClick:e=>this.handleSelectOption(e,o)},o.label)}}))))}get el(){return this}static get style(){return a()}},[0,"verdocs-dropdown",{options:[16],containerId:[32],showPicker:[32]}]);function l(){if(typeof customElements==="undefined"){return}const o=["verdocs-dropdown","verdocs-portal"];o.forEach((o=>{switch(o){case"verdocs-dropdown":if(!customElements.get(n(o))){customElements.define(n(o),p)}break;case"verdocs-portal":if(!customElements.get(n(o))){i()}break}}))}export{p as V,l as d};
//# sourceMappingURL=p-DFXK-FYy.js.map