text: var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{l(a.next(t))}catch(t){r(t)}}function s(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?i(t.value):n(t.value).then(o,s)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ddd3d159.system.js","./p-7e283b4e.system.js","./p-5e4b8ffe.system.js"],(function(t){"use strict";var e,i,a,n,r,o,s,l,d,p,c;return{setters:[function(t){e=t.r;i=t.c;a=t.i;n=t.h;r=t.H;o=t.g},function(t){s=t.j;l=t.i;d=t.r;p=t.f},function(t){c=t.s}],execute:function(){var h=".sc-bkkr-textarea-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--padding-top:10px;--padding-end:calc(var(--bkkr-spacer, 16px) / 2);--padding-bottom:10px;--padding-start:0;--background:transparent;--color:initial;padding-left:0 !important;padding-right:0 !important;padding-top:0 !important;padding-bottom:0 !important;display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;width:100%;background:var(--background);color:var(--color);font-family:var(--bkkr-font-family);white-space:pre-wrap;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-bkkr-textarea-h{padding-left:unset;padding-right:unset;-webkit-padding-start:0 !important;padding-inline-start:0 !important;-webkit-padding-end:0 !important;padding-inline-end:0 !important}}bkkr-item.sc-bkkr-textarea-h,bkkr-item .sc-bkkr-textarea-h{-ms-flex-item-align:baseline;align-self:baseline}bkkr-item.sc-bkkr-textarea-h:not(.item-label),bkkr-item:not(.item-label) .sc-bkkr-textarea-h{--padding-start:0}.textarea-wrapper.sc-bkkr-textarea{width:100%;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit}.native-textarea.sc-bkkr-textarea{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;white-space:inherit;display:block;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.native-textarea.sc-bkkr-textarea{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.native-textarea.sc-bkkr-textarea::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-moz-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-textarea.sc-bkkr-textarea::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-textarea.sc-bkkr-textarea::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-textarea.sc-bkkr-textarea:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-ms-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-textarea.sc-bkkr-textarea::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);transition:opacity 0.15s cubic-bezier(0.32, 0.72, 0, 1);-webkit-transition-delay:var(--placeholder-transition-delay, none);transition-delay:var(--placeholder-transition-delay, none);color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity, 0.5)}.native-textarea[disabled].sc-bkkr-textarea{cursor:initial;opacity:0.3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.textarea-counter.sc-bkkr-textarea{right:calc(var(--bkkr-spacer, 16px) / 2);bottom:4px;position:absolute;color:var(--placeholder-color);font-size:0.8rem;opacity:0.5}.textarea-has-counter.sc-bkkr-textarea .native-textarea.sc-bkkr-textarea{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:calc(var(--padding-bottom) + 10px)}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.textarea-has-counter.sc-bkkr-textarea .native-textarea.sc-bkkr-textarea{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.cloned-input.sc-bkkr-textarea{top:0;left:0;position:absolute;pointer-events:none}";var u=t("bkkr_textarea",function(){function t(t){var a=this;e(this,t);this.bkkrChange=i(this,"bkkrChange",7);this.bkkrInput=i(this,"bkkrInput",7);this.bkkrStyle=i(this,"bkkrStyle",7);this.bkkrBlur=i(this,"bkkrBlur",7);this.bkkrFocus=i(this,"bkkrFocus",7);this.inputId="bkkr-textarea-"+b++;this.didBlurAfterEdit=false;this.inheritedAttributes={};this.fireFocusEvents=true;this.hasFocus=false;this.autocapitalize="none";this.autofocus=false;this.clearOnEdit=false;this.debounce=0;this.disabled=false;this.name=this.inputId;this.readonly=false;this.required=false;this.spellcheck=false;this.autoGrow=false;this.value="";this.onInput=function(t){if(a.nativeInput){a.value=a.nativeInput.value}a.emitStyle();a.bkkrInput.emit(t)};this.onFocus=function(t){a.hasFocus=true;a.focusChange();if(a.fireFocusEvents){a.bkkrFocus.emit(t)}};this.onBlur=function(t){a.hasFocus=false;a.focusChange();if(a.fireFocusEvents){a.bkkrBlur.emit(t)}};this.onKeyDown=function(){a.checkClearOnEdit()}}t.prototype.debounceChanged=function(){this.bkkrChange=s(this.bkkrChange,this.debounce)};t.prototype.disabledChanged=function(){this.emitStyle()};t.prototype.valueChanged=function(){var t=this.nativeInput;var e=this.getValue();if(t&&t.value!==e){t.value=e}this.runAutoGrow();this.emitStyle();this.bkkrChange.emit({value:e})};t.prototype.connectedCallback=function(){this.emitStyle();this.debounceChanged();{document.dispatchEvent(new CustomEvent("bkkrInputDidLoad",{detail:this.el}))}};t.prototype.disconnectedCallback=function(){{document.dispatchEvent(new CustomEvent("bkkrInputDidUnload",{detail:this.el}))}};t.prototype.componentWillLoad=function(){this.inheritedAttributes=l(this.el,["title"])};t.prototype.componentDidLoad=function(){var t=this;d((function(){return t.runAutoGrow()}))};t.prototype.runAutoGrow=function(){var t=this;var e=this.nativeInput;if(e&&this.autoGrow){a((function(){e.style.height="auto";e.style.height=e.scrollHeight+"px";if(t.textareaWrapper){t.textareaWrapper.style.height=e.scrollHeight+"px"}}))}};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus()}return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.blur()}return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.emitStyle=function(){this.bkkrStyle.emit({interactive:true,textarea:true,input:true,"interactive-disabled":this.disabled,"has-placeholder":this.placeholder!=null,"has-value":this.hasValue(),"has-focus":this.hasFocus})};t.prototype.checkClearOnEdit=function(){if(!this.clearOnEdit){return}if(this.didBlurAfterEdit&&this.hasValue()){this.value=""}this.didBlurAfterEdit=false};t.prototype.focusChange=function(){if(this.clearOnEdit&&!this.hasFocus&&this.hasValue()){this.didBlurAfterEdit=true}this.emitStyle()};t.prototype.hasValue=function(){return this.getValue()!==""};t.prototype.getValue=function(){return this.value||""};t.prototype.render=function(){var t=this;var e=this.getValue();var i=this.inputId+"-lbl";var a=p(this.el);var o=this.maxlength?this.maxlength-e.length:null;if(a){a.id=i}return n(r,{"aria-disabled":this.disabled?"true":null,class:c(this.color)},n("div",{class:{"textarea-wrapper":true,"textarea-has-counter":this.maxlength>0},ref:function(e){return t.textareaWrapper=e}},n("textarea",Object.assign({class:"native-textarea","aria-labelledby":a?i:null,ref:function(e){return t.nativeInput=e},autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),e),this.maxlength&&n("span",{class:"textarea-counter"},o)))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return t}());var b=0;u.style=h}}}));