var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function u(t){try{s(r.next(t))}catch(t){a(t)}}function o(t){try{s(r["throw"](t))}catch(t){a(t)}}function s(t){t.done?n(t.value):i(t.value).then(u,o)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return s([t,e])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-38846ea9.system.js"],(function(t){"use strict";var e,n,r,i,a;return{setters:[function(t){e=t.r;n=t.c;r=t.h;i=t.H;a=t.g}],execute:function(){var u="@-webkit-keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.sc-bal-input-h{display:block}";var o=t("bal_input",function(){function t(t){var r=this;e(this,t);this.balInput=n(this,"balInput",7);this.balBlur=n(this,"balBlur",7);this.balClick=n(this,"balClick",7);this.balKeyPress=n(this,"balKeyPress",7);this.balFocus=n(this,"balFocus",7);this.inputId="bal-in-"+s++;this.name=this.inputId;this.type="text";this.placeholder="";this.balTabindex=0;this.maxLength=undefined;this.minLength=undefined;this.inverted=false;this.readonly=false;this.disabled=false;this.clickable=false;this.autoComplete=false;this.numberKeyboard=false;this.onlyNumbers=false;this.value="";this.onInput=function(t){var e;var n=t.target&&((e=t.target)===null||e===void 0?void 0:e.value);if(r.onlyNumbers){n=r.filterNumbers(n)}if(r.value!==n){r.value=n;r.balInput.emit(r.value)}else{r.updateInputValue()}}}t.prototype.valueChanged=function(){this.updateInputValue()};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.inputEl.focus();return[2]}))}))};t.prototype.render=function(){var t=this;return r(i,null,r("input",{class:{input:true,"is-inverted":this.inverted,clickable:this.clickable},autoComplete:this.autoComplete?"on":"off",id:this.inputId,type:this.type,placeholder:this.placeholder,name:this.name,value:this.value,tabindex:this.balTabindex,disabled:this.disabled,readonly:this.readonly,pattern:this.numberKeyboard?"[0-9]*":"",maxLength:this.maxLength,minLength:this.minLength,onInput:function(e){return t.onInput(e)},onBlur:function(e){return t.balBlur.emit(e)},onClick:function(e){return t.balClick.emit(e)},onKeyPress:function(e){return t.balKeyPress.emit(e)},onFocus:function(e){return t.balFocus.emit(e)},ref:function(e){return t.inputEl=e}}))};t.prototype.updateInputValue=function(){if(this.inputEl.value!==this.value){this.inputEl.value=this.value}};t.prototype.filterNumbers=function(t){if(t&&typeof t==="string"){t=t.replace(/[^\d]/g,"")}return t};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());var s=0;o.style=u}}}));