import{r as t,h as a}from"./p-b31dd0cc.js";class i{constructor(a){t(this,a),this.indicatorType="underline"}getIndicatorClasses(){return{"mdc-tab-indicator__content":!0,"mdc-tab-indicator__content--icon":"icon"===this.indicatorType,"mdc-tab-indicator__content--underline":"underline"===this.indicatorType,"material-icons":"icon"===this.indicatorType}}getTabClasses(){return{"mdc-tab":!0,"mdc-tab--active":this.active,"mdc-tab--min-width":this.minWidth}}async renderHtml(){return Promise.resolve(a("button",{class:this.getTabClasses(),role:"tab","aria-selected":"true",tabindex:this.active?"0":"-1"},a("span",{class:"mdc-tab__content"},this.icon&&a("span",{class:"mdc-tab__icon material-icons","aria-hidden":"true"},this.icon),a("span",{class:"mdc-tab__text-label"},this.label?this.label:a("slot",null))),a("span",{class:{"mdc-tab-indicator":!0,"mdc-tab-indicator--active":this.active}},a("span",{class:this.getIndicatorClasses()},"icon"===this.indicatorType&&"star")),a("span",{class:"mdc-tab__ripple"})))}render(){}static get style(){return""}}export{i as materials_tab};