System.register(["./p-dde863a3.system.js","./p-1095b4e8.system.js","./p-ed9e4708.system.js"],function(t){"use strict";var e,i,n,o,r,s;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.g},function(){},function(t){r=t.T;s=t.f}],execute:function(){var a=function(){function t(t){e(this,t);this.submitLabel="LOGIN";this.forgotPasswordLabel="PASSWORD FORGOTTEN?";this.language="en";this.type="name-password";this.translate=r.instance;this.formSubmit=i(this,"formSubmit",7)}t.prototype.componentWillLoad=function(){this.data=s.loginForm.data.attributes;this.definitions=s.loginForm.data.meta.definitions};t.prototype.componentDidLoad=function(){var t=this;this.host.getElementsByTagName("ema-form")[0].addEventListener("formSubmit",function(e){t.loginHandler(e)})};t.prototype.componentDidUnload=function(){this.host.getElementsByTagName("ema-form")[0].removeEventListener("formSubmit",this.loginHandler)};t.prototype.loginHandler=function(t){t.preventDefault();this.formSubmit.emit(t.detail)};t.prototype.alterForm=function(t){if(t==="email-password"){this.definitions.username.label="EMAIL ADDRESS";this.definitions.username.constraints={email:{message:"^"+this.translate.get("EMAIL ERROR")},presence:true}}};t.prototype.render=function(){this.alterForm(this.type);return n("ema-form",{"data-json":JSON.stringify(this.data),"definitions-json":JSON.stringify(this.definitions),language:this.language,"submit-label":this.submitLabel,"submit-error":this.submitError})};Object.defineProperty(t.prototype,"host",{get:function(){return o(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-login-form .forgot{margin-top:15px}ema-login-form .error{color:red;margin-top:15px}"},enumerable:true,configurable:true});return t}();t("ema_login_form",a)}}});