import { tab_panel_styles_default } from "./chunk.7IRNCF65.js"; import { e } from "./chunk.3RBSSBZT.js"; import { watch } from "./chunk.JMZM2TDT.js"; import { component_styles_default } from "./chunk.INZSKSLC.js"; import { ShoelaceElement, n } from "./chunk.OGQ452CI.js"; import { x } from "./chunk.OOP2EFQH.js"; import { __decorateClass } from "./chunk.W27M6RDR.js"; // src/components/tab-panel/tab-panel.component.ts var id = 0; var SlTabPanel = class extends ShoelaceElement { constructor() { super(...arguments); this.attrId = ++id; this.componentId = `sl-tab-panel-${this.attrId}`; this.name = ""; this.active = false; } connectedCallback() { super.connectedCallback(); this.id = this.id.length > 0 ? this.id : this.componentId; this.setAttribute("role", "tabpanel"); } handleActiveChange() { this.setAttribute("aria-hidden", this.active ? "false" : "true"); } render() { return x` `; } }; SlTabPanel.styles = [component_styles_default, tab_panel_styles_default]; __decorateClass([ n({ reflect: true }) ], SlTabPanel.prototype, "name", 2); __decorateClass([ n({ type: Boolean, reflect: true }) ], SlTabPanel.prototype, "active", 2); __decorateClass([ watch("active") ], SlTabPanel.prototype, "handleActiveChange", 1); export { SlTabPanel };