import{r as t,h as e,H as i,e as a}from"./p-ee1e0eb4.js";import{a as s}from"./p-05c032dd.js";import"./p-d68092b7.js";const n=class{constructor(e){t(this,e),this.loaded=!1,this.active=!1}async componentWillLoad(){this.active&&await this.setActive()}async setActive(){await this.prepareLazyLoaded(),this.active=!0}changeActive(t){t&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return s(this.delegate,this.el,this.component,["ion-page"])}catch(t){console.error(t)}}return Promise.resolve(void 0)}render(){const{tab:t,active:a,component:s}=this;return e(i,{role:"tabpanel","aria-hidden":a?null:"true","aria-labelledby":`tab-button-${t}`,class:{"ion-page":void 0===s,"tab-hidden":!a}},e("slot",null))}get el(){return a(this)}static get watchers(){return{active:["changeActive"]}}};n.style=":host(.tab-hidden){display:none !important}";export{n as ion_tab}