var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(i.next(t))}catch(t){r(t)}}function c(t){try{o(i["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):a(t.value).then(s,c)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(t){return function(e){return o([t,e])}}function o(c){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,c[0]&&(n=0)),n)try{if(i=1,a&&(r=c[0]&2?a["return"]:c[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,c[1])).done)return r;if(a=0,r)c=[c[0]&2,r.value];switch(c[0]){case 0:case 1:r=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;a=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){n.label=c[1];break}if(c[0]===6&&n.label<r[1]){n.label=r[1];r=c;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(c);break}if(r[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];a=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-2bf16536.js";var tabItemCss=":host{display:none}:host(.is-open){display:block;height:100%}.tab_item{height:100%}.tab_item_content{display:none;height:100%}.tab_item_content--open{display:block}";var BdsTabItemStyle0=tabItemCss;var BdsTabItem=function(){function t(t){registerInstance(this,t);this.tabDisabled=createEvent(this,"tabDisabled",7);this.numberElement=null;this.label=null;this.disable=false;this.open=false;this.dataTest=null}t.prototype.reciveNumber=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.numberElement=t;return[2]}))}))};t.prototype.disableChanged=function(){this.tabDisabled.emit({item:this.numberElement,disable:this.disable})};t.prototype.render=function(){var t,e;return h(Host,{key:"b9762a805d818ee6b36b7a3cf3123436630d055b",class:(t={},t["is-open"]=this.disable===true?false:this.open,t)},h("div",{key:"d5463273cf90845fc23db0632f8c2dc58dc22a4d",class:{tab_item:true},"data-test":this.dataTest},h("div",{key:"c1ac885a6966dc16ed59460fd6d6edee5e670c3f",class:(e={tab_item_content:true},e["tab_item_content--open"]=this.open,e)},h("slot",{key:"1a8b4c214016a4e10dd85ed100c7e4bc68595e1a"}))))};Object.defineProperty(t,"watchers",{get:function(){return{disable:["disableChanged"]}},enumerable:false,configurable:true});return t}();BdsTabItem.style=BdsTabItemStyle0;export{BdsTabItem as bds_tab_item};
//# sourceMappingURL=bds-tab-item.entry.js.map