System.register(["./p-dcda33a3.system.js"],(function(t){"use strict";var e,s,i;return{setters:[function(t){e=t.r;s=t.h;i=t.H}],execute:function(){var r=t("cc_input",function(){function t(t){var s=this;e(this,t);this.color="primary";this.type="text";this.disabled=false;this.error=false;this.success=false;this.focusInput=function(){s.inputEl.focus()};this.setInputRef=function(t){s.inputEl=t;if(s.inputRef){s.inputRef(s.inputEl)}}}t.prototype.render=function(){return s(i,{class:{input:true,"input--primary":this.color==="primary","input--secondary":this.color==="secondary","input--success":this.success&&!this.error&&!this.disabled,"input--error":this.error&&!this.success&&!this.disabled,"input--disabled":this.disabled},"data-testid":"cc-input"},this.label&&s("label",{class:"input__label",onClick:this.focusInput},this.label),s("input",{class:"input__field",type:this.type,placeholder:this.placeholder,disabled:this.disabled,name:this.name,value:this.value,ref:this.setInputRef}),this.helperText&&this.error&&!this.success&&!this.disabled&&s("span",{class:"input__helperText",onClick:this.focusInput},this.helperText))};Object.defineProperty(t,"style",{get:function(){return".input{display:block}.input__field{width:100%;border-radius:.4rem;border-width:1px;border-color:var(--neutral-02);padding-left:1.6rem;padding-right:1.6rem;padding-top:.8rem;padding-bottom:.8rem;background-color:var(--neutral-04);font-size:1.4rem;display:block;line-height:1.625}.input__field:disabled{border-color:var(--disabled-background)}.input--success .input__field{border-color:var(--success)}.input--error .input__field{border-color:var(--error)}.input__field:focus{outline:0}.input--primary .input__field:focus{border-color:var(--primary)}.input--secondary .input__field:focus{border-color:var(--secondary)}.input--success .input__field:focus{border-color:var(--success)}.input--error .input__field:focus{border-color:var(--error)}.input__helperText{display:block;font-size:1.1rem;margin-top:.4rem;color:var(--error)}.input__label{display:block;padding-top:.4rem;padding-bottom:.4rem;font-size:1.1rem;font-weight:900;color:var(--neutral-03)}.textarea--disabled .input__label{color:var(--disabled-text)}"},enumerable:true,configurable:true});return t}())}}}));