System.register(["./index-0425c4de.system.js"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.r;n=t.h}],execute:function(){var r;(function(t){t["Default"]="default";t["Warning"]="warning";t["Delete"]="delete"})(r||(r={}));var 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)}";var i=t("bds_counter_text",function(){function t(t){e(this,t);this.length=undefined;this.max=undefined;this.active=false;this.warning={max:20,min:2};this.delete={max:1,min:0}}t.prototype.getState=function(){var t=this.getActualLength();if(t>=this.warning.min&&t<=this.warning.max){return r.Warning}if(t<=this.delete.max){return r.Delete}return r.Default};t.prototype.getActualLength=function(){return this.max-this.length};t.prototype.render=function(){var t;var e=this.getState();var r=this.getActualLength();return n("div",{class:(t={"counter-text":true,"counter-text--active":this.active},t["counter-text--".concat(e)]=true,t)},n("bds-typo",{variant:"fs-10"},r))};return t}());i.style=o}}}));