!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms")):"function"==typeof define&&define.amd?define("glb-components",["exports","@angular/core","@angular/forms"],e):e(n["glb-components"]={},n.ng.core,n.ng.forms)}(this,function(n,e,o){"use strict";var t=function(){function n(){}return n.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[]},n.ngInjectableDef=e.defineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n}(),r=function(){function n(){}return n.prototype.ngOnInit=function(){},n.decorators=[{type:e.Component,args:[{selector:"glb-glb-components",template:"\n    <p>\n      glb-components works!\n    </p>\n  "}]}],n.ctorParameters=function(){return[]},n}(),s=function(){function n(){this.model={},this.submitted=!0}return n.prototype.ngOnInit=function(){this.submitted=!0},n.prototype.onSubmit=function(){"globant"===this.model.username&&"globant"===this.model.password?(this.submitted=!0,alert("Logged in successfully!!")):this.submitted=!1},n.decorators=[{type:e.Component,args:[{selector:"glb-login-form",template:'<div class="container">\n  <div class="card">\n    <div class="card-body">\n      <form #loginForm="ngForm">\n        <div class="form-group">\n          <label for="name">Username</label>\n          <input type="text" class="form-control" id="username" required [(ngModel)]="model.username" name="username" #username="ngModel">\n          <div [hidden]="username.valid || username.pristine" class="alert alert-danger">\n            Username is required\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="password">Password</label>\n          <input type="password" class="form-control" id="password" [(ngModel)]="model.password" required name="password" #password="ngModel">\n          <div [hidden]="password.valid || password.pristine" class="alert alert-danger">\n            Password is required\n          </div>\n        </div>\n        <div [hidden]="submitted" class="alert alert-danger">\n          Invalid credentials !!\n        </div>\n        <div class="text-center">\n          <button (click)="onSubmit()" style="margin-right:15px" class="btn btn-success" [disabled]="!loginForm.form.valid">Login</button>\n        </div>\n      </form>\n    </div>\n  </div>\n</div>',styles:[".container{width:50%;padding-top:10%}"]}]}],n.ctorParameters=function(){return[]},n}(),i=function(){function n(){}return n.decorators=[{type:e.NgModule,args:[{declarations:[r,s],imports:[o.FormsModule],exports:[r,s]}]}],n}();n.GlbComponentsService=t,n.GlbComponentsComponent=r,n.GlbComponentsModule=i,n.ɵa=s,Object.defineProperty(n,"__esModule",{value:!0})});
//# sourceMappingURL=glb-components.umd.min.js.map