import{r as t,h as i,H as e,g as s}from"./p-2b0a6102.js";const n=class{constructor(i){t(this,i);this.activeTabId=undefined;this.hidden=false;this.panelId=undefined}get isActive(){return this.activeTabId&&this.activeTabId===this.hostEl.id}get panelIdComputed(){return this.panelId||`${this.hostEl.id}-panel`}validSiblingOrNull(t){var i,e;return((i=t===null||t===void 0?void 0:t.dataset)===null||i===void 0?void 0:i.hidden)===""||((e=t===null||t===void 0?void 0:t.dataset)===null||e===void 0?void 0:e.hidden)==="true"?null:t}componentShouldUpdate(t,i,e){if(t===i)return false;if(e==="activeTabId"){return t===this.hostEl.id||i===this.hostEl.id}}handleKeydown(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();t.stopPropagation();this.hostEl.click()}}render(){return i(e,{"aria-controls":this.panelIdComputed,"aria-selected":this.isActive?"true":"false","data-hidden":this.hidden||undefined,role:"tab",tabindex:"0"},i("slot",null))}get hostEl(){return s(this)}};export{n as bs_tab};
//# sourceMappingURL=p-be9962ce.entry.js.map