import{r as t,h as e}from"./p-a6030c6e.js";var n;(function(t){t["Default"]="default";t["Warning"]="warning";t["Delete"]="delete"})(n||(n={}));const o=".counter-text{background:var(--color-surface-2, #E0E0E0);color:var(--color-content-disable, #636363);-webkit-box-sizing:content-box;box-sizing:content-box;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:11px;padding:0 8px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.counter-text--active{background:var(--color-system, #B2DFFD);color:var(--color-content-din, #000000)}.counter-text--warning{background:var(--color-warning, #fde99b);color:var(--color-content-din, #000000)}.counter-text--delete{background:var(--color-delete, #e60f0f);color:var(--color-content-bright, #ffffff)}";const r=o;const c=class{constructor(e){t(this,e);this.length=undefined;this.max=undefined;this.active=false;this.warning={max:20,min:2};this.delete={max:1,min:0}}getState(){const t=this.getActualLength();if(t>=this.warning.min&&t<=this.warning.max){return n.Warning}if(t<=this.delete.max){return n.Delete}return n.Default}getActualLength(){return this.max-this.length}render(){const t=this.getState();const n=this.getActualLength();return e("div",{key:"b96b82654bcc78804ba9395ea9385985eb28cfc3",class:{"counter-text":true,"counter-text--active":this.active,[`counter-text--${t}`]:true}},e("bds-typo",{key:"ab8e617869e6e43510a1de607c70bbc5954b3f64",variant:"fs-10"},n))}};c.style=r;export{c as bds_counter_text};
//# sourceMappingURL=p-5e383663.entry.js.map