System.register(["./p-5b6828db.system.js"],(function(t){"use strict";var i,n,e,r;return{setters:[function(t){i=t.r;n=t.c;e=t.h;r=t.H}],execute:function(){var a="dvn-input{--width:inherit;--min-width:256px;--base-color:var(--color-primary);--border-color:var(--color-border);--margin:var(--spacing-unit) calc(1.5 * var(--spacing-unit));position:relative;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:var(--margin);width:var(--width);min-width:var(--min-width);}dvn-input.leaned{--margin:0}dvn-input.disabled{opacity:0.6;cursor:default}dvn-input.warning{--base-color:var(--color-warning);--border-color:var(--color-warning)}dvn-input.error{--base-color:var(--color-danger);--border-color:var(--color-danger)}dvn-input.small{--font-size:var(--font-size-small);--height:24px;--padding:calc(var(--spacing-unit) * 0.75) calc(1.5 * var(--spacing-unit))}dvn-input.medium{--font-size:var(--font-size-medium);--height:32px;--padding:var(--spacing-unit) calc(2 * var(--spacing-unit))}dvn-input.large{--font-size:var(--font-size-large);--height:40px;--padding:calc(1.5 * var(--spacing-unit)) calc(2.5 * var(--spacing-unit))}dvn-input.progressing.small{--padding:calc(var(--spacing-unit) * 0.75) calc(6 * var(--spacing-unit)) calc(var(--spacing-unit) * 0.75) calc(1.5 * var(--spacing-unit))}dvn-input.progressing.medium{--padding:var(--spacing-unit) calc(7 * var(--spacing-unit)) var(--spacing-unit) calc(2 * var(--spacing-unit))}dvn-input.progressing.large{--padding:calc(1.5 * var(--spacing-unit)) calc(8 * var(--spacing-unit)) calc(1.5 * var(--spacing-unit)) calc(2.5 * var(--spacing-unit))}dvn-input .progress-container{position:absolute;right:calc(2 * var(--spacing-unit));top:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}dvn-input input,dvn-input textarea{outline:none;width:var(--width);min-width:var(--min-width);-webkit-transition:all 0.3s;transition:all 0.3s;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text);font-family:var(--font-family);border:1px solid var(--border-color);border-radius:var(--corner-radius);background-color:var(--color-input-background);vertical-align:top;font-size:var(--font-size);height:var(--height);padding:var(--padding);-webkit-appearance:none}dvn-input textarea{height:unset;border-bottom-right-radius:3px}dvn-input input:disabled,dvn-input textarea:disabled{cursor:unset}dvn-input input:hover:enabled,dvn-input textarea:hover:enabled{border-color:var(--base-color)}dvn-input input:focus:enabled,dvn-input textarea:focus:enabled{border-color:var(--base-color);-webkit-box-shadow:0px 0px 0px 1px var(--base-color);box-shadow:0px 0px 0px 1px var(--base-color)}dvn-input input::-webkit-input-placeholder,dvn-input textarea::-webkit-input-placeholder{color:var(--color-text-secondary)}dvn-input input::-moz-placeholder,dvn-input textarea::-moz-placeholder{color:var(--color-text-secondary)}dvn-input input:-ms-input-placeholder,dvn-input textarea:-ms-input-placeholder{color:var(--color-text-secondary)}dvn-input input::-ms-input-placeholder,dvn-input textarea::-ms-input-placeholder{color:var(--color-text-secondary)}dvn-input input::placeholder,dvn-input textarea::placeholder{color:var(--color-text-secondary)}";var o={small:{size:14,strokeWidth:2},medium:{size:16,strokeWidth:2},large:{size:18,strokeWidth:2}};var s=function(t){var i=t.scale,n=i===void 0?"medium":i;return o[n]};var l=t("dvn_input",function(){function t(t){i(this,t);this.change=n(this,"change",7);this.blur=n(this,"blur",7);this.focus=n(this,"focus",7);this.leaned=false;this.scale="medium";this.type="text";this.disabled=false;this.progressing=false;this.readonly=false;this.autoComplete="on";this.long=false;this.overrideStyle={}}t.prototype.focusOnInput=function(){this.textInput.focus()};t.prototype.render=function(){var t;var i=this;var n=this,a=n.disabled,o=n.enableClear,l=n.feedback,c=n.leaned,d=n.name,p=n.placeholder,u=n.progressing,v=n.scale,g=n.type,h=n.value;var b=this.overrideStyle||{};if(this.width){b["--width"]=this.width;b["--min-width"]=this.width}var m=this.long?"textarea":"input";return e(r,{class:(t={leaned:c},t[v]=true,t[l]=!!l,t.progressing=u,t.disabled=a,t),style:b},e(m,{ref:function(t){return i.textInput=t},type:g,name:d,placeholder:p,disabled:a,value:h,onFocus:function(t){t.stopPropagation();i.focus.emit(t)},onBlur:function(t){t.stopPropagation();i.blur.emit(t)},onInput:function(t){t.stopPropagation();i.change.emit(t.target.value)},onChange:function(t){return t.stopPropagation()},readonly:this.readonly,autocomplete:this.autoComplete,style:this.overrideStyle}),u&&e("div",{class:"progress-container"},e("dvn-progress",{indefinite:true,leaned:true,tint:"neutral",size:s(this).size,strokeWidth:s(this).strokeWidth})),o&&h&&e("div",{class:"progress-container"},e("dvn-icon-button",{onClick:function(){return i.change.emit(undefined)},iconName:"uil uil-times",leaned:true,scale:"small",tint:"neutral",view:"flat"})))};return t}());l.style=a}}}));