var __awaiter=this&&this.__awaiter||function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-2bf16536.js";var tabCss=".bds-tab{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:content-box;box-sizing:content-box;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;max-width:270px;height:46px;max-height:48px;cursor:pointer;text-align:center;color:var(--color-content-disable, #636363);border-bottom:2px solid transparent}.bds-tab:not(:last-child){margin-right:32px}.bds-tab:hover{color:var(--color-content-default, #454545)}.bds-tab--selected{-webkit-animation-name:selectFade;animation-name:selectFade;-webkit-animation-duration:0.75s;animation-duration:0.75s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.bds-tab__text{min-width:90px;max-width:270px}@-webkit-keyframes selectFade{from{border-bottom:2px solid transparent;color:var(--color-content-default, #454545)}to{border-bottom:2px solid var(--color-brand, #0096fa);color:var(--color-content-default, #454545)}}@keyframes selectFade{from{border-bottom:2px solid transparent;color:var(--color-content-default, #454545)}to{border-bottom:2px solid var(--color-brand, #0096fa);color:var(--color-content-default, #454545)}}@media (max-width: 599px){.bds-tab{min-width:110px;text-overflow:ellipsis}}";var BdsTabStyle0=tabCss;var Tab=function(){function t(t){registerInstance(this,t);this.bdsTabChange=createEvent(this,"bdsTabChange",7);this.group=undefined;this.label=undefined;this.active=false;this.isActive=false}t.prototype.handleTabChange=function(t){this.isActive=t.detail==this.group};t.prototype.onClick=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.bdsTabChange.emit(this.group);return[2]}))}))};t.prototype.render=function(){var t;var e=this.isActive?"bold":"regular";return h(Host,{key:"14c5bb836e3f09bcdb5ffc122a74f4d1c7fc9b33",class:(t={"bds-tab":true},t["bds-tab--selected"]=this.isActive,t),onClick:this.onClick.bind(this)},h("div",{key:"848d08d4938a5eebc1c503cbe8956bc6014a8264",class:"bds-tab__text"},h("bds-typo",{key:"67a59a4d8f2f6c0846197f5cd01df36a0e4ac7d5",variant:"fs-16",bold:e},this.label)))};return t}();Tab.style=BdsTabStyle0;export{Tab as bds_tab};
//# sourceMappingURL=bds-tab.entry.js.map