var __awaiter=this&&this.__awaiter||function(i,t,n,o){function e(i){return i instanceof n?i:new n((function(t){t(i)}))}return new(n||(n=Promise))((function(n,r){function a(i){try{s(o.next(i))}catch(i){r(i)}}function l(i){try{s(o["throw"](i))}catch(i){r(i)}}function s(i){i.done?n(i.value):e(i.value).then(a,l)}s((o=o.apply(i,t||[])).next())}))};var __generator=this&&this.__generator||function(i,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,e,r,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(i){return function(t){return s([i,t])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,l[0]&&(n=0)),n)try{if(o=1,e&&(r=l[0]&2?e["return"]:l[0]?e["throw"]||((r=e["return"])&&r.call(e),0):e.next)&&!(r=r.call(e,l[1])).done)return r;if(e=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;e=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]0};i.prototype.renderHintText=function(){var i=this,t=i.helperText,n=i.errorText;return[o("div",{class:"helper-text"},t),o("div",{class:"error-text"},n)]};i.prototype.renderCounter=function(){var i=this,t=i.counter,n=i.maxlength,e=i.counterFormatter,r=i.value;if(t!==true||n===undefined){return}return o("div",{class:"counter"},h(r,n,e))};i.prototype.renderBottomContent=function(){var i=this,t=i.counter,n=i.helperText,e=i.errorText,r=i.maxlength;var a=!!n||!!e;var l=t===true&&r!==undefined;if(!a&&!l){return}return o("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())};i.prototype.renderLabel=function(){var i=this.label;return o("div",{class:{"label-text-wrapper":true,"label-text-wrapper-hidden":!this.hasLabel}},i===undefined?o("slot",{name:"label"}):o("div",{class:"label-text"},i))};Object.defineProperty(i.prototype,"labelSlot",{get:function(){return this.el.querySelector('[slot="label"]')},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"hasLabel",{get:function(){return this.label!==undefined||this.labelSlot!==null},enumerable:false,configurable:true});i.prototype.renderLabelContainer=function(){var i=this;var t=v(this);var n=t==="md"&&this.fill==="outline";if(n){return[o("div",{class:"input-outline-container"},o("div",{class:"input-outline-start"}),o("div",{class:{"input-outline-notch":true,"input-outline-notch-hidden":!this.hasLabel}},o("div",{class:"notch-spacer","aria-hidden":"true",ref:function(t){return i.notchSpacerEl=t}},this.label)),o("div",{class:"input-outline-end"})),this.renderLabel()]}return this.renderLabel()};i.prototype.render=function(){var i;var t=this;var n=this,r=n.disabled,a=n.fill,l=n.readonly,s=n.shape,p=n.inputId,c=n.labelPlacement,d=n.el,u=n.hasFocus;var h=v(this);var x=this.getValue();var w=m("ion-item",this.el);var y=h==="md"&&a!=="outline"&&!w;var k=this.hasValue();var z=d.querySelector('[slot="start"], [slot="end"]')!==null;var j=c==="stacked"||c==="floating"&&(k||u||z);return o(e,{key:"f1007469471c9610950749d87f1aa8165cea4dbb",class:b(this.color,(i={},i[h]=true,i["has-value"]=k,i["has-focus"]=u,i["label-floating"]=j,i["input-fill-".concat(a)]=a!==undefined,i["input-shape-".concat(s)]=s!==undefined,i["input-label-placement-".concat(c)]=true,i["in-item"]=w,i["in-item-color"]=m("ion-item.ion-color",this.el),i["input-disabled"]=r,i))},o("label",{key:"12a5a2a2b942e4d7420b7e10b98dc3f5b15c6e28",class:"input-wrapper",htmlFor:p},this.renderLabelContainer(),o("div",{key:"938381505753fbc842583215e32d74dd3a383742",class:"native-wrapper"},o("slot",{key:"0e835fd6b94f7407696d4ab097a02c6e4b742fc9",name:"start"}),o("input",Object.assign({key:"1835e2bbbdcaf8a80e3a7665536afb02d571bcb9",class:"native-input",ref:function(i){return t.nativeInput=i},id:p,disabled:r,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:l,required:this.required,spellcheck:this.spellcheck,step:this.step,type:this.type,value:x,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!l&&!r&&o("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:function(i){i.preventDefault()},onClick:this.clearTextInput},o("ion-icon",{"aria-hidden":"true",icon:h==="ios"?f:g})),o("slot",{key:"bdcffc81c8d07c793a06d9880a02d7b94ddfff2e",name:"end"})),y&&o("div",{class:"input-highlight"})),this.renderBottomContent())};Object.defineProperty(i.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{debounce:["debounceChanged"],type:["onTypeChange"],value:["valueChanged"]}},enumerable:false,configurable:true});return i}());var j=0;z.style={ios:w,md:k}}}}));