import{p as e,H as t,c as s,h as a,d as o,t as c}from"./p-yZBlG3YQ.js";const r=()=>`verdocs-tabs{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-tabs .tab{display:-ms-flexbox;display:flex;color:#111111;cursor:pointer;font-size:14px;font-weight:400;padding:5px 10px;-ms-flex-align:center;align-items:center;text-transform:none;-ms-flex-pack:center;justify-content:center;border-bottom:4px solid transparent}verdocs-tabs .tab:focus{border:none;outline:none}verdocs-tabs .tab.active{color:#000000;font-weight:500;border-bottom:4px solid #654dcb}verdocs-tabs .tab.disabled{color:#aaaaaa;cursor:default}`;const i=e(class e extends t{constructor(e){super();if(e!==false){this.__registerHost()}this.selectTab=s(this,"selectTab");this.tabs=[];this.selectedTab=0}handleSelectTab(e){var t;(t=this.selectTab)===null||t===void 0?void 0:t.emit({tab:this.tabs[e],index:e})}render(){return a(o,{key:"b78818a23892499517726f89f5cce6af6b7f42e1"},this.tabs.map(((e,t)=>a("div",{class:`tab ${t===this.selectedTab?"active":""} ${e.disabled?"disabled":""}`,onClick:e.disabled?()=>{}:()=>this.handleSelectTab(t)},e.label))),a("div",{key:"2105eefb878bc7237bd9c46d8533085d580b94f8",class:"flex flex-1"}),a("slot",{key:"c477b2f6880442e15bc3bc95f67dec12f1134074"},a("div",{key:"c6481423137eb98ee64cc9afedea6d43eca89b75"})))}static get style(){return r()}},[260,"verdocs-tabs",{tabs:[16],selectedTab:[2,"selected-tab"]}]);function n(){if(typeof customElements==="undefined"){return}const e=["verdocs-tabs"];e.forEach((e=>{switch(e){case"verdocs-tabs":if(!customElements.get(c(e))){customElements.define(c(e),i)}break}}))}const d=i;const l=n;export{d as VerdocsTabs,l as defineCustomElement};
//# sourceMappingURL=verdocs-tabs.js.map