@aws-amplify/ui-angular 1.0.26-unstable.2 → 2.0.1-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/aws-amplify-ui-angular.d.ts +22 -0
  2. package/aws-amplify-ui-angular.metadata.json +1 -0
  3. package/bundles/aws-amplify-ui-angular.umd.js +3587 -0
  4. package/bundles/aws-amplify-ui-angular.umd.js.map +1 -0
  5. package/bundles/aws-amplify-ui-angular.umd.min.js +2 -0
  6. package/bundles/aws-amplify-ui-angular.umd.min.js.map +1 -0
  7. package/esm2015/aws-amplify-ui-angular.js +23 -0
  8. package/esm2015/index.js +12 -0
  9. package/esm2015/lib/common/helpers.js +3 -0
  10. package/esm2015/lib/common/index.js +3 -0
  11. package/esm2015/lib/common/types/auth-types.js +2 -0
  12. package/esm2015/lib/common/types/component-types.js +2 -0
  13. package/esm2015/lib/common/types/index.js +3 -0
  14. package/esm2015/lib/components/amplify-authenticator/amplify-authenticator.component.js +66 -0
  15. package/esm2015/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.js +91 -0
  16. package/esm2015/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.js +102 -0
  17. package/esm2015/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.js +37 -0
  18. package/esm2015/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.js +27 -0
  19. package/esm2015/lib/components/amplify-force-new-password/amplify-force-new-password.component.js +83 -0
  20. package/esm2015/lib/components/amplify-reset-password/amplify-reset-password.component.js +68 -0
  21. package/esm2015/lib/components/amplify-setup-totp/amplify-setup-totp.component.js +100 -0
  22. package/esm2015/lib/components/amplify-sign-in/amplify-sign-in.component.js +82 -0
  23. package/esm2015/lib/components/amplify-sign-up/amplify-sign-up.component.js +92 -0
  24. package/esm2015/lib/components/amplify-verify-user/amplify-verify-user.component.js +73 -0
  25. package/esm2015/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.js +76 -0
  26. package/esm2015/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.js +63 -0
  27. package/esm2015/lib/components/index.js +14 -0
  28. package/esm2015/lib/directives/amplify-override.directive.js +21 -0
  29. package/esm2015/lib/primitives/amplify-error/amplify-error.component.js +10 -0
  30. package/esm2015/lib/primitives/amplify-input/amplify-input.component.js +82 -0
  31. package/esm2015/lib/primitives/amplify-select/amplify-select.component.js +17 -0
  32. package/esm2015/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.js +35 -0
  33. package/esm2015/lib/primitives/index.js +3 -0
  34. package/esm2015/lib/proxies.js +1839 -0
  35. package/esm2015/lib/services/authenticator-context.service.js +28 -0
  36. package/esm2015/lib/services/state-machine.service.js +46 -0
  37. package/esm2015/lib/ui-angular.module.js +91 -0
  38. package/fesm2015/aws-amplify-ui-angular.js +2989 -0
  39. package/fesm2015/aws-amplify-ui-angular.js.map +1 -0
  40. package/index.d.ts +8 -0
  41. package/lib/common/helpers.d.ts +2 -0
  42. package/lib/common/index.d.ts +2 -0
  43. package/lib/common/types/auth-types.d.ts +6 -0
  44. package/lib/common/types/component-types.d.ts +23 -0
  45. package/lib/common/types/index.d.ts +2 -0
  46. package/lib/components/amplify-authenticator/amplify-authenticator.component.d.ts +31 -0
  47. package/lib/components/amplify-confirm-sign-in/amplify-confirm-sign-in.component.d.ts +31 -0
  48. package/lib/components/amplify-confirm-sign-up/amplify-confirm-sign-up.component.d.ts +37 -0
  49. package/lib/components/amplify-federated-sign-in/amplify-federated-sign-in.component.d.ts +16 -0
  50. package/lib/components/amplify-federated-sign-in-button/amplify-federated-sign-in-button.component.d.ts +9 -0
  51. package/lib/components/amplify-force-new-password/amplify-force-new-password.component.d.ts +31 -0
  52. package/lib/components/amplify-reset-password/amplify-reset-password.component.d.ts +30 -0
  53. package/lib/components/amplify-setup-totp/amplify-setup-totp.component.d.ts +31 -0
  54. package/lib/components/amplify-sign-in/amplify-sign-in.component.d.ts +34 -0
  55. package/lib/components/amplify-sign-up/amplify-sign-up.component.d.ts +35 -0
  56. package/lib/components/amplify-verify-user/amplify-verify-user.component.d.ts +31 -0
  57. package/lib/components/confirm-reset-password/amplify-confirm-reset-password.component.d.ts +34 -0
  58. package/lib/components/confirm-verify-user/amplify-confirm-verify-user.component.d.ts +26 -0
  59. package/lib/components/index.d.ts +13 -0
  60. package/lib/directives/amplify-override.directive.d.ts +7 -0
  61. package/lib/primitives/amplify-error/amplify-error.component.d.ts +2 -0
  62. package/lib/primitives/amplify-input/amplify-input.component.d.ts +31 -0
  63. package/lib/primitives/amplify-select/amplify-select.component.d.ts +7 -0
  64. package/lib/primitives/amplify-user-name-alias/amplify-user-name-alias.component.d.ts +15 -0
  65. package/lib/primitives/index.d.ts +2 -0
  66. package/{dist/directives → lib}/proxies.d.ts +0 -0
  67. package/lib/services/authenticator-context.service.d.ts +10 -0
  68. package/lib/services/state-machine.service.d.ts +29 -0
  69. package/lib/ui-angular.module.d.ts +2 -0
  70. package/package.json +27 -49
  71. package/theme.css +99 -0
  72. package/CHANGELOG.md +0 -536
  73. package/LICENSE +0 -201
  74. package/README.md +0 -1
  75. package/dist/amplify-module.d.ts +0 -2
  76. package/dist/core.d.ts +0 -4
  77. package/dist/core.metadata.json +0 -1
  78. package/dist/fesm2015.js +0 -1532
  79. package/dist/fesm5.js +0 -1319
  80. package/dist/index.d.ts +0 -2
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@aws-amplify/ui"),require("xstate"),require("aws-amplify"),require("qrcode"),require("rxjs"),require("@aws-amplify/ui-components/dist/components")):"function"==typeof define&&define.amd?define("@aws-amplify/ui-angular",["exports","@angular/core","@angular/common","@aws-amplify/ui","xstate","aws-amplify","qrcode","rxjs","@aws-amplify/ui-components/dist/components"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self)["aws-amplify"]=t["aws-amplify"]||{},t["aws-amplify"]["ui-angular"]={}),t.ng.core,t.ng.common,t.ui,t.xstate,t["aws-amplify"],t.QRCode,t.rxjs,t.components)}(this,(function(t,e,n,o,a,r,i,s,c){"use strict";function p(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function u(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var l=u(e),m=p(i),f=function(){function t(t){this.template=t}return Object.defineProperty(t.prototype,"amplifyOverride",{set:function(t){this.name=t},enumerable:!1,configurable:!0}),t}();f.decorators=[{type:e.Directive,args:[{selector:"[amplifyOverride]"}]}],f.ctorParameters=function(){return[{type:e.TemplateRef}]},f.propDecorators={amplifyOverride:[{type:e.Input}]};var h=function(){function t(){var t=this,e=a.interpret(o.authMachine,{devTools:!0}).onTransition((function(e){t._user=e.context.user,t._authState=e})).start();this._services=o.getSendEventAliases(e.send),this._authService=e}return Object.defineProperty(t.prototype,"services",{get:function(){return this._services},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authState",{get:function(){return this._authState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authService",{get:function(){return this._authService},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this._user},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._authState.context},enumerable:!1,configurable:!0}),t.prototype.send=function(t){this.authService.send(t)},t}();h.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new h},token:h,providedIn:"root"}),h.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[]};var d=function(){function t(){this._customComponents={},this._props={}}return Object.defineProperty(t.prototype,"customComponents",{get:function(){return this._customComponents},set:function(t){this._customComponents=Object.assign(Object.assign({},this._customComponents),t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"props",{get:function(){return this._props},set:function(t){this._props=Object.assign(Object.assign({},this._props),t)},enumerable:!1,configurable:!0}),t}();d.ɵprov=l.ɵɵdefineInjectable({factory:function(){return new d},token:d,providedIn:"root"}),d.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[]};var g=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.initialAuthState="signIn",this.dataAttr="",this.customComponentQuery=null,this.customComponents={}}return t.prototype.ngAfterContentInit=function(){this.contextService.customComponents=this.mapCustomComponents(this.customComponentQuery),this.customComponents=this.contextService.customComponents},Object.defineProperty(t.prototype,"context",{get:function(){return{signOut:this.stateMachine.services.signOut,user:this.stateMachine.user}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actorState",{get:function(){return o.getActorState(this.stateMachine.authState)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authenticatorState",{get:function(){return this.stateMachine.authState},enumerable:!1,configurable:!0}),t.prototype.mapCustomComponents=function(t){if(!t)return{};var e={};return t.forEach((function(t){e[t.name]=t.template})),e},t}();g.decorators=[{type:e.Component,args:[{selector:"amplify-authenticator",template:'\x3c!-- \n Define default contents here.\n--\x3e\n<ng-template #signIn>\n <amplify-sign-in></amplify-sign-in>\n</ng-template>\n<ng-template #signUp>\n <amplify-sign-up></amplify-sign-up>\n</ng-template>\n<ng-template #confirmSignUp>\n <amplify-confirm-sign-up></amplify-confirm-sign-up>\n</ng-template>\n<ng-template #confirmSignIn>\n <amplify-confirm-sign-in></amplify-confirm-sign-in>\n</ng-template>\n<ng-template #authenticated> <ng-content></ng-content> </ng-template>\n<ng-template #setupTOTP>\n <amplify-setup-totp></amplify-setup-totp>\n</ng-template>\n<ng-template #forceNewPassword>\n <amplify-force-new-password></amplify-force-new-password>\n</ng-template>\n<ng-template #resetPassword>\n <amplify-reset-password></amplify-reset-password>\n</ng-template>\n<ng-template #confirmResetPassword>\n <amplify-confirm-reset-password></amplify-confirm-reset-password>\n</ng-template>\n<ng-template #verifyUser>\n <amplify-verify-user></amplify-verify-user>\n</ng-template>\n<ng-template #confirmVerifyUser>\n <amplify-confirm-verify-user></amplify-confirm-verify-user>\n</ng-template>\n\n\x3c!-- \n Next, we render respective auth subcomponent respective to the current authState.\n If customer is overriding that component, we render customer\'s template instead.\n--\x3e\n\n\x3c!-- signIn component --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.signIn || signIn"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'signIn\')"\n>\n</ng-container>\n\n\x3c!-- signUp component --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.signUp || signUp"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'signUp\')"\n>\n</ng-container>\n\n\x3c!-- confirmSignUp content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.confirmSignUp || confirmSignUp"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'confirmSignUp\')"\n>\n</ng-container>\n\n\x3c!-- confirmSignIn content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.confirmSignIn || confirmSignIn"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'confirmSignIn\')"\n>\n</ng-container>\n\n\x3c!-- setupTotp content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.setupTOTP || setupTOTP"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'setupTOTP\')"\n>\n</ng-container>\n\n\x3c!-- forceNewPassword content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.forceNewPassword || forceNewPassword"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'forceNewPassword\')"\n>\n</ng-container>\n\n\x3c!-- resetPassword content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.resetPassword || resetPassword"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'resetPassword\')"\n>\n</ng-container>\n\n\x3c!-- confirmResetPassword content --\x3e\n<ng-container\n [ngTemplateOutlet]="\n customComponents.confirmResetPassword || confirmResetPassword\n "\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'confirmResetPassword\')"\n>\n</ng-container>\n\n\x3c!-- verifyUser content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.verifyUser || verifyUser"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'verifyUser\')"\n>\n</ng-container>\n\n\x3c!-- confirmVerifyUser content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.confirmVerifyUser || confirmVerifyUser"\n [ngTemplateOutletContext]="context"\n *ngIf="actorState?.matches(\'confirmVerifyUser\')"\n>\n</ng-container>\n\n\x3c!-- signedIn content --\x3e\n<ng-container\n [ngTemplateOutlet]="customComponents.authenticated || authenticated"\n [ngTemplateOutletContext]="context"\n *ngIf="authenticatorState.matches(\'authenticated\')"\n>\n</ng-container>\n',providers:[d],encapsulation:e.ViewEncapsulation.None}]}],g.ctorParameters=function(){return[{type:h},{type:d}]},g.propDecorators={initialAuthState:[{type:e.Input}],dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator"]}],customComponentQuery:[{type:e.ContentChildren,args:[f]}]};function y(t,e,n,o){var a,r=arguments.length,i=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r<3?a(i):r>3?a(e,n,i):a(e,n))||i);return r>3&&i&&Object.defineProperty(e,n,i),i}function b(t,e,n,o){return new(n||(n=Promise))((function(a,r){function i(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,s)}c((o=o.apply(t,e||[])).next())}))}function v(t,e){var n,o,a,r,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,o=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){i=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(6===r[0]&&i.label<a[1]){i.label=a[1],a=r;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(r);break}a[2]&&i.ops.pop(),i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t],o=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;Object.create;var C=new r.Logger("SignIn"),S=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Sign in to your account"),this.customComponents={},this.remoteError="",this.isPending=!1,this.forgotPasswordText=o.translate("Forgot your password? "),this.signInButtonText=o.translate("Sign in"),this.noAccountText=o.translate("No account? "),this.createAccountText=o.translate("Create account")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){C.log("sign in destroyed, unsubscribing from state machine..."),this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("signIn.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.resetPassword,o=t.signUp,a=t.submit;return{change:e,remoteError:this.remoteError,resetPassword:n,signUp:o,submit:a}},enumerable:!1,configurable:!0}),t.prototype.toSignUp=function(){this.stateMachine.send("SIGN_UP")},t.prototype.toResetPassword=function(){this.stateMachine.send("RESET_PASSWORD")},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){return b(this,void 0,void 0,(function(){return v(this,(function(e){return t.preventDefault(),this.stateMachine.send({type:"SUBMIT"}),[2]}))}))},t}();S.decorators=[{type:e.Component,args:[{selector:"amplify-sign-in",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #signInButton>\n <button data-amplify-button type="submit">{{ signInButtonText }}</button>\n</ng-template>\n\n<ng-template #signInForm>\n <amplify-federated-sign-in></amplify-federated-sign-in>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-user-name-alias></amplify-user-name-alias>\n <amplify-form-input\n data-amplify-password\n name="password"\n type="password"\n autocomplete="current-password"\n ></amplify-form-input>\n <button type="button" (click)="toResetPassword()">\n {{ forgotPasswordText }}\n </button>\n <div data-amplify-footer>\n <div>\n {{ noAccountText }}\n <button type="button" (click)="toSignUp()">\n {{ createAccountText }}\n </button>\n </div>\n <ng-container\n [ngTemplateOutlet]="customComponents.signInButton || signInButton"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render sign in component\n--\x3e\n\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.signInForm || signInForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],S.ctorParameters=function(){return[{type:h},{type:d}]},S.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-signin"]}],headerText:[{type:e.Input}]};var x=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Create a new account"),this.remoteError="",this.isPending=!1,this.primaryAlias="",this.secondaryAliases=[],this.validationError={},this.createAccountText=o.translate("Back to Sign In"),this.haveAccountText=o.translate("Have an account? "),this.signInText=o.translate("Sign in")}return Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.signIn,o=t.submit;return{change:e,remoteError:this.remoteError,signIn:n,submit:o,validationError:this.validationError}},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}));var e=this.stateMachine.context,n=o.getConfiguredAliases(e),a=n.primaryAlias,r=n.secondaryAliases;this.primaryAlias=a,this.secondaryAliases=r},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t),n=o.getActorContext(t);this.remoteError=n.remoteError,this.validationError=n.validationError,this.isPending=!e.matches({signUp:{submission:"idle"}})},t.prototype.onSubmit=function(t){return b(this,void 0,void 0,(function(){return v(this,(function(e){return t.preventDefault(),this.stateMachine.send("SUBMIT"),[2]}))}))},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t}();x.decorators=[{type:e.Component,args:[{selector:"amplify-sign-up",template:'<ng-template #signUpButton>\n <button data-amplify-button type="submit">{{ createAccountText }}</button>\n</ng-template>\n\n<ng-template #signUpUsername>\n <amplify-user-name-alias [name]="primaryAlias"></amplify-user-name-alias>\n</ng-template>\n\n<ng-template #signUpPassword>\n <amplify-form-input\n name="password"\n autocomplete="new-password"\n ></amplify-form-input>\n</ng-template>\n\n<ng-template #signUpConfirmPassword>\n <amplify-form-input\n name="confirm_password"\n label="Confirm Password"\n type="password"\n autocomplete="new-password"\n ></amplify-form-input>\n</ng-template>\n\n<ng-template #signUpFieldset>\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-federated-sign-in></amplify-federated-sign-in>\n <ng-container\n [ngTemplateOutlet]="customComponents.signUpUsername || signUpUsername"\n [ngTemplateOutletContext]="context"\n ></ng-container>\n\n <ng-container\n [ngTemplateOutlet]="customComponents.signUpPassword || signUpPassword"\n [ngTemplateOutletContext]="context"\n ></ng-container>\n\n <ng-container\n [ngTemplateOutlet]="\n customComponents.signUpConfirmPassword || signUpConfirmPassword\n "\n [ngTemplateOutletContext]="context"\n ></ng-container>\n\n <ng-container *ngFor="let secondaryAlias of secondaryAliases">\n <amplify-form-input [name]="secondaryAlias"></amplify-form-input>\n </ng-container>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n</ng-template>\n\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <ng-container\n [ngTemplateOutlet]="customComponents.signUpFieldset || signUpFieldset"\n [ngTemplateOutletContext]="context"\n ></ng-container>\n\n <div data-amplify-footer>\n <div>\n {{ haveAccountText }}\n <button type="button" (click)="toSignIn()">{{ signInText }}</button>\n </div>\n <ng-container\n [ngTemplateOutlet]="customComponents.signUpButton || signUpButton"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </form>\n</div>\n'}]}],x.ctorParameters=function(){return[{type:h},{type:d}]},x.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-signup"]}],headerText:[{type:e.Input}]};var T=function(){return o.authInputAttributes},P=function(){function t(t){this.stateMachine=t,this.required=!0,this.placeholder="",this.label="",this.initialValue="",this.disabled=!1,this.autocomplete="",this.countryDialCodes=o.countryDialCodes}return t.prototype.ngOnInit=function(){var t=this.stateMachine.authState,e=o.getActorContext(t).country_code;this.defaultCountryCode=e,this.isTelInput()&&this.stateMachine.send({type:"CHANGE",data:{name:"country_code",value:e}})},Object.defineProperty(t.prototype,"attributeMap",{get:function(){return T()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"error",{get:function(){return o.getActorContext(this.stateMachine.authState).validationError[this.name]},enumerable:!1,configurable:!0}),t.prototype.isTelInput=function(){return"tel"===this.inferType()},t.prototype.inferLabel=function(){var t,e=this.label||(null===(t=this.attributeMap[this.name])||void 0===t?void 0:t.label);return o.translate(e)},t.prototype.inferPlaceholder=function(){var t,e=this.placeholder||(null===(t=this.attributeMap[this.name])||void 0===t?void 0:t.placeholder)||this.inferLabel();return o.translate(e)},t.prototype.inferType=function(){var t,e,n;return null!==(n=null!==(t=this.type)&&void 0!==t?t:null===(e=this.attributeMap[this.name])||void 0===e?void 0:e.type)&&void 0!==n?n:"text"},t}();P.decorators=[{type:e.Component,args:[{selector:"amplify-form-input",template:'\x3c!-- Country code field --\x3e\n<amplify-form-select\n *ngIf="isTelInput()"\n name="country_code"\n label="Country Code"\n [id]="\'country-code\'"\n [items]="countryDialCodes"\n [initialValue]="defaultCountryCode"\n></amplify-form-select>\n\x3c!-- Textbox field --\x3e\n<label>\n <div data-amplify-label>{{ inferLabel() }}</div>\n <input\n data-amplify-form-input\n [type]="inferType()"\n [name]="name"\n [placeholder]="inferPlaceholder()"\n [required]="required"\n [value]="initialValue"\n [attr.disabled]="disabled ? \'\' : null"\n [autocomplete]="autocomplete"\n />\n <amplify-error *ngIf="error">\n {{ error }}\n </amplify-error>\n</label>\n'}]}],P.ctorParameters=function(){return[{type:h}]},P.propDecorators={name:[{type:e.Input}],type:[{type:e.Input}],required:[{type:e.Input}],placeholder:[{type:e.Input}],label:[{type:e.Input}],initialValue:[{type:e.Input}],disabled:[{type:e.Input}],autocomplete:[{type:e.Input}]};var I=function(){};I.decorators=[{type:e.Component,args:[{selector:"amplify-error",template:"<span data-amplify-error>\n <ng-content></ng-content>\n</span>\n"}]}];var A=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Confirm Sign Up"),this.customComponents={},this.remoteError="",this.isPending=!1,this.signInText=o.translate("Sign in"),this.resendCodeText=o.translate("Resend Code"),this.lostCodeText=o.translate("Lost your code? "),this.confirmText=o.translate("Confirm")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)})),this.setUsername()},t.prototype.setUsername=function(){var t,e=this.stateMachine.authState,n=o.getActorContext(e),a=n.user,r=n.authAttributes,i=null!==(t=null==a?void 0:a.username)&&void 0!==t?t:null==r?void 0:r.username;i&&(this.username=i,this.stateMachine.send({type:"CHANGE",data:{name:"username",value:this.username}}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("confirmSignUp.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.resend,o=t.signIn,a=t.submit;return{change:e,remoteError:this.remoteError,resend:n,signIn:o,submit:a,username:this.username}},enumerable:!1,configurable:!0}),t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t.prototype.resend=function(){this.stateMachine.send({type:"RESEND",data:{username:this.username}})},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){t.preventDefault();var e=this.stateMachine.authState,n=o.getActorContext(e).formValues,a=n.username,r=n.confirmation_code;this.stateMachine.send({type:"SUBMIT",data:{username:a,confirmation_code:r}})},t}();A.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-sign-up",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #confirmSignUpButton>\n <button data-amplify-button type="submit">{{ confirmText }}</button>\n</ng-template>\n\n<ng-template #confirmSignUpForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="username"\n [initialValue]="username ? username : null"\n [disabled]="!!username"\n ></amplify-form-input>\n <amplify-form-input\n name="confirmation_code"\n type="number"\n autocomplete="one-time-code"\n ></amplify-form-input>\n\n <div data-amplify-resend>\n {{ lostCodeText }}\n <a data-amplify-link (click)="resend()">{{ resendCodeText }}</a>\n </div>\n\n <div data-amplify-footer>\n <div>\n Back to{{ \' \' }}\n <a data-amplify-link (click)="toSignIn()">{{ signInText }}</a>\n </div>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmSignUpButton || confirmSignUpButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render confirm sign up component\n--\x3e\n\n<div data-amplify-container>\n <h2 data-amplify-header>{{ headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.confirmSignUpForm || confirmSignUpForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],A.ctorParameters=function(){return[{type:h},{type:d}]},A.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-confirmsignup"]}],headerText:[{type:e.Input}]};var E=function(){function t(t){this.stateMachine=t,this.name="username",this.disabled=!1,this.initialValue="",this.required=!0}return t.prototype.ngOnInit=function(){var t=this.stateMachine.context,e=o.getAliasInfoFromContext(t),n=e.label,a=e.type;this.label=n,this.type=a,this.placeholder=n},t}();E.decorators=[{type:e.Component,args:[{selector:"amplify-user-name-alias",template:'<amplify-form-input\n data-amplify-usernamealias\n [name]="name"\n [label]="label"\n [type]="type"\n [placeholder]="placeholder"\n [initialValue]="initialValue"\n [disabled]="disabled"\n [required]="required"\n autocomplete="username"\n>\n</amplify-form-input>\n'}]}],E.ctorParameters=function(){return[{type:h}]},E.propDecorators={name:[{type:e.Input}],disabled:[{type:e.Input}],initialValue:[{type:e.Input}],required:[{type:e.Input}]};var D=new r.Logger("ConfirmSignIn"),O=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.customComponents={},this.remoteError="",this.isPending=!1,this.confirmText=o.translate("Confirm"),this.backToSignInText=o.translate("Back to Sign In")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){t.onStateUpdate(e)})),this.setHeaderText()},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.signIn,o=t.submit;return{change:e,remoteError:this.remoteError,signIn:n,submit:o}},enumerable:!1,configurable:!0}),t.prototype.setHeaderText=function(){var t=this.stateMachine.authState,e=o.getActorContext(t).challengeName;switch(e){case o.AuthChallengeNames.SOFTWARE_TOKEN_MFA:this.headerText=o.translate("Confirm TOTP Code");break;case o.AuthChallengeNames.SMS_MFA:this.headerText=o.translate("Confirm SMS Code");break;default:D.error("Unexpected challengeName",e)}},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("confirmSignIn.edit")},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){t.preventDefault();var e=new FormData(t.target);this.stateMachine.send({type:"SUBMIT",data:Object.fromEntries(e)})},t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t}();O.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-sign-in",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #confirmSignInButton>\n <button data-amplify-button type="submit">{{ confirmText }}</button>\n</ng-template>\n\n<ng-template #confirmSignInForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="confirmation_code"\n type="number"\n autocomplete="one-time-code"\n ></amplify-form-input>\n\n <div data-amplify-footer>\n <button type="button" (click)="toSignIn()">\n {{ backToSignInText }}\n </button>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmSignInButton || confirmSignInButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render sign in component\n--\x3e\n\n<div data-amplify-container>\n <h2 data-amplify-header>{{ headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.signInForm || confirmSignInForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],O.ctorParameters=function(){return[{type:h},{type:d}]},O.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-confirmsignin"]}]};var w=new r.Logger("SetupTotp"),R=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.customComponents={},this.remoteError="",this.isPending=!1,this.headerText=o.translate("Setup TOTP"),this.qrCodeSource="",this.backToSignInText=o.translate("Back to Sign In"),this.confirmText=o.translate("Confirm")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){t.onStateUpdate(e)})),this.generateQRCode()},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("setupTOTP.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.submit;return{change:e,remoteError:this.remoteError,submit:n,user:this.stateMachine.user}},enumerable:!1,configurable:!0}),t.prototype.generateQRCode=function(){var t;return b(this,void 0,void 0,(function(){var e,n,a,i,s,c,p,u;return v(this,(function(l){switch(l.label){case 0:e=this.stateMachine.authState,n=o.getActorContext(e),a=n.user,l.label=1;case 1:return l.trys.push([1,4,,5]),[4,r.Auth.setupTOTP(a)];case 2:return i=l.sent(),s="AWSCognito",c="otpauth://totp/AWSCognito:"+a.username+"?secret="+i+"&issuer="+s,w.info("totp code was generated:",c),p=this,[4,m.default.toDataURL(c)];case 3:return p.qrCodeSource=l.sent(),[3,5];case 4:return u=l.sent(),this.remoteError=null!==(t=u.message)&&void 0!==t?t:u,w.error(u),[3,5];case 5:return[2]}}))}))},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){t.preventDefault();var e=new FormData(t.target);this.stateMachine.send({type:"SUBMIT",data:Object.fromEntries(e)})},t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t}();R.decorators=[{type:e.Component,args:[{selector:"amplify-setup-totp",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #setupTotpButton>\n <button data-amplify-button type="submit">{{ confirmText }}</button>\n</ng-template>\n\n<ng-template #setupTotpForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <p *ngIf="!qrCodeSource">Loading...</p>\n <img *ngIf="qrCodeSource" [src]="qrCodeSource" alt="qr code" />\n <amplify-form-input\n name="confirmation_code"\n type="number"\n autocomplete="one-time-code"\n ></amplify-form-input>\n\n <div data-amplify-footer>\n <button (click)="toSignIn()">{{ backToSignInText }}</button>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.setupTotpButton || setupTotpButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render sign in component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.setupTotpForm || setupTotpForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],R.ctorParameters=function(){return[{type:h},{type:d}]},R.propDecorators={customComponents:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-setup-totp"]}]};var k=new r.Logger("ForceNewPassword"),M=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Reset your password"),this.customComponents={},this.remoteError="",this.isPending=!1,this.changePasswordText=o.translate("Change Password"),this.backToSignInText=o.translate("Back to Sign In")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){k.log("sign in destroyed, unsubscribing from state machine..."),this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=e.matches({signUp:{submission:"idle"}})},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.signIn,o=t.submit,a=this.stateMachine.user;return{change:e,remoteError:this.remoteError,signIn:n,submit:o,user:a}},enumerable:!1,configurable:!0}),t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){t.preventDefault();var e=this.stateMachine.authState,n=o.getActorContext(e).formValues;this.stateMachine.send({type:"SUBMIT",data:n})},t}();M.decorators=[{type:e.Component,args:[{selector:"amplify-force-new-password",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #forceNewPasswordSubmitButton>\n <button data-amplify-button type="submit">{{ changePasswordText }}</button>\n</ng-template>\n\n<ng-template #signInForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="password"\n type="password"\n autocomplete="new-password"\n ></amplify-form-input>\n\n <amplify-form-input\n name="confirm_password"\n label="Confirm Password"\n type="password"\n autocomplete="new-password"\n ></amplify-form-input>\n\n <div data-amplify-footer>\n <button type="button" (click)="toSignIn()">\n {{ backToSignInText }}\n </button>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.forceNewPasswordSubmitButton ||\n forceNewPasswordSubmitButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render sign in component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.signInForm || signInForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],M.ctorParameters=function(){return[{type:h},{type:d}]},M.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-forcenewpassword"]}],headerText:[{type:e.Input}]};var U=function(){function t(t){this.stateMachine=t,this.FederatedProviders=o.FederatedIdentityProviders,this.includeFacebook=!1,this.includeGoogle=!1,this.includeAmazon=!1,this.shouldShowFederatedSignIn=!1,this.signInFacebookText=o.translate("Sign In with Facebook"),this.signInGoogleText=o.translate("Sign In with Google"),this.signInAmazonText=o.translate("Sign In with Amazon")}return t.prototype.ngOnInit=function(){var t,e,n=null===(e=null===(t=this.stateMachine.context)||void 0===t?void 0:t.config)||void 0===e?void 0:e.login_mechanisms;this.includeFacebook=null==n?void 0:n.includes("facebook"),this.includeGoogle=null==n?void 0:n.includes("google"),this.includeAmazon=null==n?void 0:n.includes("amazon"),this.shouldShowFederatedSignIn=this.includeFacebook||this.includeGoogle||this.includeAmazon},t}();U.decorators=[{type:e.Component,args:[{selector:"amplify-federated-sign-in",template:'<div data-amplify-federated>\n <amplify-federated-sign-in-button\n *ngIf="includeFacebook"\n [text]="signInFacebookText"\n [provider]="FederatedProviders.Facebook"\n ></amplify-federated-sign-in-button>\n\n <amplify-federated-sign-in-button\n *ngIf="includeGoogle"\n [text]="signInGoogleText"\n [provider]="FederatedProviders.Google"\n ></amplify-federated-sign-in-button>\n\n <amplify-federated-sign-in-button\n *ngIf="includeAmazon"\n [text]="signInAmazonText"\n [provider]="FederatedProviders.Amazon"\n ></amplify-federated-sign-in-button>\n</div>\n'}]}],U.ctorParameters=function(){return[{type:h}]};var N=function(t){var e=this;this.stateMachine=t,this.onClick=function(){e.stateMachine.send({type:"FEDERATED_SIGN_IN",data:{provider:e.provider}})}};N.decorators=[{type:e.Component,args:[{selector:"amplify-federated-sign-in-button",template:'<button data-amplify-button (click)="onClick()">{{ text }}</button>\n'}]}],N.ctorParameters=function(){return[{type:h}]},N.propDecorators={provider:[{type:e.Input}],text:[{type:e.Input}]};var F=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Reset your password"),this.customComponents={},this.remoteError="",this.isPending=!1,this.sendCodeText=o.translate("Send Code"),this.backToSignInText=o.translate("Back to Sign In")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("resetPassword.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.signIn,o=t.submit;return{change:e,remoteError:this.remoteError,signIn:n,submit:o}},enumerable:!1,configurable:!0}),t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){t.preventDefault(),this.stateMachine.send("SUBMIT")},t}();F.decorators=[{type:e.Component,args:[{selector:"amplify-reset-password",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #resetPasswordSubmitButton>\n <button data-amplify-button type="submit">{{ sendCodeText }}</button>\n</ng-template>\n\n<ng-template #resetPasswordFooter>\n <div data-amplify-footer>\n <button type="button" (click)="toSignIn()">{{ backToSignInText }}</button>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.resetPasswordSubmitButton || resetPasswordSubmitButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #resetPasswordForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="username"\n type="username"\n autocomplete="username"\n ></amplify-form-input>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.resetPasswordFooter || resetPasswordFooter\n "\n [ngTemplateOutletContext]="context"\n ></ng-container>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render reset passsword component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.resetPasswordForm || resetPasswordForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],F.ctorParameters=function(){return[{type:h},{type:d}]},F.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-resetPassword"]}],headerText:[{type:e.Input}]};var B=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Account recovery requires verified contact information"),this.customComponents={},this.unverifiedAttributes={},this.remoteError="",this.isPending=!1,this.skipText=o.translate("Skip"),this.verifyText=o.translate("Verify")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.unverifiedAttributes=e.context.unverifiedAttributes,this.remoteError=e.context.remoteError,this.isPending=!e.matches("verifyUser.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.skip,o=t.submit;return{change:e,remoteError:this.remoteError,skip:n,submit:o}},enumerable:!1,configurable:!0}),t.prototype.skipVerify=function(){this.stateMachine.send("SKIP")},t.prototype.translate=function(t){return o.translate(t)},t.prototype.onSubmit=function(t){return b(this,void 0,void 0,(function(){var e;return v(this,(function(n){return t.preventDefault(),e=new FormData(t.target),this.stateMachine.send({type:"SUBMIT",data:Object.fromEntries(e)}),[2]}))}))},t}();B.decorators=[{type:e.Component,args:[{selector:"amplify-verify-user",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #verifyUserFooter>\n <div data-amplify-footer>\n <button data-amplify-button (click)="skipVerify()">{{ skipText }}</button>\n <button data-amplify-button type="submit">{{ verifyText }}</button>\n </div>\n</ng-template>\n\n<ng-template #verifyUserForm>\n <form data-amplify-form (submit)="onSubmit($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <ng-container\n *ngFor="let unverifiedAttribute of unverifiedAttributes | keyvalue"\n >\n <input\n name="unverifiedAttr"\n type="radio"\n [value]="unverifiedAttribute.key"\n />\n <span>{{ translate(unverifiedAttribute.key) }}</span>\n </ng-container>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.verifyUserFooter || verifyUserFooter\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render verify user component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="customComponents.verifyUserForm || verifyUserForm"\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],B.ctorParameters=function(){return[{type:h},{type:d}]},B.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-verifyuser"]}],headerText:[{type:e.Input}]};var z=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText=o.translate("Reset your password"),this.customComponents={},this.remoteError="",this.isPending=!1,this.sendCodeText=o.translate("Send Code"),this.backToSignInText=o.translate("Back to Sign In"),this.lostCodeText=o.translate("Lost your code? "),this.resendCodeText=o.translate("Resend Code")}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("confirmResetPassword.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.change,n=t.resend,o=t.signIn,a=t.submit;return{change:e,resend:n,remoteError:this.remoteError,signIn:o,submit:a}},enumerable:!1,configurable:!0}),t.prototype.toSignIn=function(){this.stateMachine.send("SIGN_IN")},t.prototype.resend=function(){this.stateMachine.send("RESEND")},t.prototype.onInput=function(t){t.preventDefault();var e=t.target,n=e.name,o=e.value;this.stateMachine.send({type:"CHANGE",data:{name:n,value:o}})},t.prototype.onSubmit=function(t){return b(this,void 0,void 0,(function(){return v(this,(function(e){return t.preventDefault(),this.stateMachine.send("SUBMIT"),[2]}))}))},t}();z.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-reset-password",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #confirmResetPasswordSubmitButton>\n <button data-amplify-button type="submit">{{ sendCodeText }}</button>\n</ng-template>\n\n<ng-template #confirmResetPasswordFooter>\n <div data-amplify-footer>\n <div>\n <button type="button" (click)="toSignIn()">{{ backToSignInText }}</button>\n </div>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmResetPasswordSubmitButton ||\n confirmResetPasswordSubmitButton\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #confirmResetPasswordForm>\n <form data-amplify-form (submit)="onSubmit($event)" (input)="onInput($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="confirmation_code"\n type="number"\n autocomplete="one-time-code"\n ></amplify-form-input>\n <amplify-form-input\n name="password"\n label="New password"\n autocomplete="new-password"\n ></amplify-form-input>\n\n <div data-amplify-resend>\n {{ lostCodeText }}\n <button type="button" (click)="resend()">{{ resendCodeText }}</button>\n </div>\n\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmResetPasswordFooter ||\n confirmResetPasswordFooter\n "\n [ngTemplateOutletContext]="context"\n ></ng-container>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render confirm reset password component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmResetPasswordForm || confirmResetPasswordForm\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],z.ctorParameters=function(){return[{type:h},{type:d}]},z.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-confirmsignin"]}],headerText:[{type:e.Input}]};var Z=function(){function t(t,e){this.stateMachine=t,this.contextService=e,this.dataAttr="",this.headerText="Account recovery requires verified contact information",this.customComponents={},this.remoteError="",this.isPending=!1}return t.prototype.ngOnInit=function(){var t=this;this.authSubscription=this.stateMachine.authService.subscribe((function(e){return t.onStateUpdate(e)}))},t.prototype.ngAfterContentInit=function(){this.customComponents=this.contextService.customComponents},t.prototype.ngOnDestroy=function(){this.authSubscription.unsubscribe()},t.prototype.onStateUpdate=function(t){var e=o.getActorState(t);this.remoteError=e.context.remoteError,this.isPending=!e.matches("confirmVerifyUser.edit")},Object.defineProperty(t.prototype,"context",{get:function(){var t=this.stateMachine.services,e=t.skip,n=t.submit;return{remoteError:this.remoteError,skip:e,submit:n}},enumerable:!1,configurable:!0}),t.prototype.skipVerify=function(){this.stateMachine.send("SKIP")},t.prototype.onSubmit=function(t){return b(this,void 0,void 0,(function(){var e;return v(this,(function(n){return t.preventDefault(),e=new FormData(t.target),this.stateMachine.send({type:"SUBMIT",data:Object.fromEntries(e)}),[2]}))}))},t}();Z.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-verify-user",template:'\x3c!-- \n Define default contents here\n--\x3e\n<ng-template #verifyUserFooter>\n <div data-amplify-footer>\n <button data-amplify-button (click)="skipVerify()">Skip</button>\n <button data-amplify-button type="submit">Submit</button>\n </div>\n</ng-template>\n\n<ng-template #confirmVerifyUserForm>\n <form data-amplify-form (submit)="onSubmit($event)">\n <fieldset data-amplify-fieldset [disabled]="isPending">\n <amplify-form-input\n name="confirmation_code"\n type="number"\n autocomplete="one-time-code"\n ></amplify-form-input>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.verifyUserFooter || verifyUserFooter\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n </fieldset>\n\n <amplify-error *ngIf="remoteError">\n {{ remoteError }}\n </amplify-error>\n </form>\n</ng-template>\n\n\x3c!-- \n Render confirm reset password component\n--\x3e\n<div data-amplify-container>\n <h2 data-amplify-header>{{ this.headerText }}</h2>\n <ng-container\n [ngTemplateOutlet]="\n customComponents.confirmVerifyUserForm || confirmVerifyUserForm\n "\n [ngTemplateOutletContext]="context"\n >\n </ng-container>\n</div>\n'}]}],Z.ctorParameters=function(){return[{type:h},{type:d}]},Z.propDecorators={dataAttr:[{type:e.HostBinding,args:["attr.data-amplify-authenticator-confirmverifyuser"]}],headerText:[{type:e.Input}]};var j=function(){};j.decorators=[{type:e.Component,args:[{selector:"amplify-form-select",template:'<select [id]="id" [name]="name" [attr.aria-label]="label">\n <option\n *ngFor="let item of items"\n [value]="item"\n [selected]="item === initialValue"\n >\n {{ item }}\n </option>\n</select>\n'}]}],j.propDecorators={items:[{type:e.Input}],name:[{type:e.Input}],label:[{type:e.Input}],id:[{type:e.Input}],initialValue:[{type:e.Input}]};function _(t){return function(e){var n,o,a;return t.inputs&&(n=e,o=t.inputs,a=n.prototype,o.forEach((function(t){Object.defineProperty(a,t,{get:function(){return this.el[t]},set:function(e){var n=this;this.z.runOutsideAngular((function(){return n.el[t]=e}))}})}))),t.methods&&function(t,e){var n=t.prototype;e.forEach((function(t){n[t]=function(){var e=this,n=arguments;return this.z.runOutsideAngular((function(){return e.el[t].apply(e.el,n)}))}}))}(e,t.methods),e}}var q=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};q.decorators=[{type:e.Component,args:[{selector:"amplify-amazon-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["clientId","handleAuthStateChange"]}]}],q.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},q=y([_({inputs:["clientId","handleAuthStateChange"]})],q);var H=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};H.decorators=[{type:e.Component,args:[{selector:"amplify-auth-container",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],H.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]};var V=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};V.decorators=[{type:e.Component,args:[{selector:"amplify-auth-fields",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields"]}]}],V.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},V=y([_({inputs:["formFields"]})],V);var G=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};G.decorators=[{type:e.Component,args:[{selector:"amplify-auth0-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["config","handleAuthStateChange"]}]}],G.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},G=y([_({inputs:["config","handleAuthStateChange"]})],G);var $=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};$.decorators=[{type:e.Component,args:[{selector:"amplify-authenticator",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["federated","handleAuthStateChange","hideToast","initialAuthState","usernameAlias"]}]}],$.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},$=y([_({inputs:["federated","handleAuthStateChange","hideToast","initialAuthState","usernameAlias"]})],$),t.AmplifyButton=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyButton.decorators=[{type:e.Component,args:[{selector:"amplify-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["disabled","handleButtonClick","icon","type","variant"]}]}],t.AmplifyButton.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyButton=y([_({inputs:["disabled","handleButtonClick","icon","type","variant"]})],t.AmplifyButton),t.AmplifyChatbot=function(t,e,n){var o,a;this.z=n,t.detach(),this.el=e.nativeElement,o=this,a=this.el,["chatCompleted"].forEach((function(t){return o[t]=s.fromEvent(a,t)}))},t.AmplifyChatbot.decorators=[{type:e.Component,args:[{selector:"amplify-chatbot",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["botName","botTitle","clearOnComplete","conversationModeOn","silenceThreshold","silenceTime","textEnabled","voiceEnabled","welcomeMessage"]}]}],t.AmplifyChatbot.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyChatbot=y([_({inputs:["botName","botTitle","clearOnComplete","conversationModeOn","silenceThreshold","silenceTime","textEnabled","voiceEnabled","welcomeMessage"]})],t.AmplifyChatbot);var L=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};L.decorators=[{type:e.Component,args:[{selector:"amplify-checkbox",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["checked","disabled","fieldId","label","name","value"]}]}],L.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},L=y([_({inputs:["checked","disabled","fieldId","label","name","value"]})],L);var K=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};K.decorators=[{type:e.Component,args:[{selector:"amplify-code-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}]}],K.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},K=y([_({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]})],K);var Q=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Q.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-sign-in",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]}]}],Q.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Q=y([_({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]})],Q);var W=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};W.decorators=[{type:e.Component,args:[{selector:"amplify-confirm-sign-up",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user","usernameAlias"]}]}],W.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},W=y([_({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user","usernameAlias"]})],W);var J=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};J.decorators=[{type:e.Component,args:[{selector:"amplify-container",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],J.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]};var X=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};X.decorators=[{type:e.Component,args:[{selector:"amplify-country-dial-code",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["dialCode","fieldId","handleInputChange","options"]}]}],X.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},X=y([_({inputs:["dialCode","fieldId","handleInputChange","options"]})],X);var Y=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Y.decorators=[{type:e.Component,args:[{selector:"amplify-email-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}]}],Y.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Y=y([_({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]})],Y);var tt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};tt.decorators=[{type:e.Component,args:[{selector:"amplify-facebook-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["appId","handleAuthStateChange"]}]}],tt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},tt=y([_({inputs:["appId","handleAuthStateChange"]})],tt);var et=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};et.decorators=[{type:e.Component,args:[{selector:"amplify-federated-buttons",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["authState","federated","handleAuthStateChange"]}]}],et.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},et=y([_({inputs:["authState","federated","handleAuthStateChange"]})],et);var nt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};nt.decorators=[{type:e.Component,args:[{selector:"amplify-federated-sign-in",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["authState","federated"]}]}],nt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},nt=y([_({inputs:["authState","federated"]})],nt);var ot=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};ot.decorators=[{type:e.Component,args:[{selector:"amplify-forgot-password",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields","handleAuthStateChange","handleSend","handleSubmit","headerText","sendButtonText","submitButtonText","usernameAlias"]}]}],ot.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},ot=y([_({inputs:["formFields","handleAuthStateChange","handleSend","handleSubmit","headerText","sendButtonText","submitButtonText","usernameAlias"]})],ot);var at=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};at.decorators=[{type:e.Component,args:[{selector:"amplify-form-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["description","disabled","fieldId","handleInputChange","hint","inputProps","label","name","placeholder","required","type","value"]}]}],at.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},at=y([_({inputs:["description","disabled","fieldId","handleInputChange","hint","inputProps","label","name","placeholder","required","type","value"]})],at);var rt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};rt.decorators=[{type:e.Component,args:[{selector:"amplify-form-section",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["handleSubmit","headerText","loading","secondaryFooterContent","submitButtonText","testDataPrefix"]}]}],rt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},rt=y([_({inputs:["handleSubmit","headerText","loading","secondaryFooterContent","submitButtonText","testDataPrefix"]})],rt);var it=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};it.decorators=[{type:e.Component,args:[{selector:"amplify-google-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["clientId","handleAuthStateChange"]}]}],it.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},it=y([_({inputs:["clientId","handleAuthStateChange"]})],it);var st=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};st.decorators=[{type:e.Component,args:[{selector:"amplify-greetings",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["handleAuthStateChange","logo","username"]}]}],st.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},st=y([_({inputs:["handleAuthStateChange","logo","username"]})],st);var ct=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};ct.decorators=[{type:e.Component,args:[{selector:"amplify-hint",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],ct.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]};var pt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};pt.decorators=[{type:e.Component,args:[{selector:"amplify-icon",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["name"]}]}],pt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},pt=y([_({inputs:["name"]})],pt);var ut=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};ut.decorators=[{type:e.Component,args:[{selector:"amplify-icon-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["autoShowTooltip","name","tooltip"]}]}],ut.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},ut=y([_({inputs:["autoShowTooltip","name","tooltip"]})],ut),t.AmplifyInput=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyInput.decorators=[{type:e.Component,args:[{selector:"amplify-input",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["description","disabled","fieldId","handleInputChange","inputProps","name","placeholder","required","type","value"]}]}],t.AmplifyInput.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyInput=y([_({inputs:["description","disabled","fieldId","handleInputChange","inputProps","name","placeholder","required","type","value"]})],t.AmplifyInput);var lt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};lt.decorators=[{type:e.Component,args:[{selector:"amplify-label",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["htmlFor"]}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},lt=y([_({inputs:["htmlFor"]})],lt);var mt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};mt.decorators=[{type:e.Component,args:[{selector:"amplify-link",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["role"]}]}],mt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},mt=y([_({inputs:["role"]})],mt);var ft=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};ft.decorators=[{type:e.Component,args:[{selector:"amplify-loading-spinner",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],ft.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]};var ht=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};ht.decorators=[{type:e.Component,args:[{selector:"amplify-nav",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],ht.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]};var dt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};dt.decorators=[{type:e.Component,args:[{selector:"amplify-oauth-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["config"]}]}],dt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},dt=y([_({inputs:["config"]})],dt);var gt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};gt.decorators=[{type:e.Component,args:[{selector:"amplify-password-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}]}],gt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},gt=y([_({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]})],gt);var yt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};yt.decorators=[{type:e.Component,args:[{selector:"amplify-phone-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["dialCode","disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}]}],yt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},yt=y([_({inputs:["dialCode","disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]})],yt),t.AmplifyPhotoPicker=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyPhotoPicker.decorators=[{type:e.Component,args:[{selector:"amplify-photo-picker",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["buttonText","handleClick","headerHint","headerTitle","placeholderHint","previewSrc"]}]}],t.AmplifyPhotoPicker.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyPhotoPicker=y([_({inputs:["buttonText","handleClick","headerHint","headerTitle","placeholderHint","previewSrc"]})],t.AmplifyPhotoPicker),t.AmplifyPicker=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyPicker.decorators=[{type:e.Component,args:[{selector:"amplify-picker",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["acceptValue","inputHandler","pickerText"]}]}],t.AmplifyPicker.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyPicker=y([_({inputs:["acceptValue","inputHandler","pickerText"]})],t.AmplifyPicker);var bt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};bt.decorators=[{type:e.Component,args:[{selector:"amplify-radio-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["checked","disabled","fieldId","handleInputChange","inputProps","label","name","placeholder","value"]}]}],bt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},bt=y([_({inputs:["checked","disabled","fieldId","handleInputChange","inputProps","label","name","placeholder","value"]})],bt);var vt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};vt.decorators=[{type:e.Component,args:[{selector:"amplify-require-new-password",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]}]}],vt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},vt=y([_({inputs:["formFields","handleAuthStateChange","handleSubmit","headerText","submitButtonText","user"]})],vt),t.AmplifyS3Album=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyS3Album.decorators=[{type:e.Component,args:[{selector:"amplify-s3-album",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["contentType","fileToKey","filter","handleOnError","handleOnLoad","identityId","level","path","picker","pickerText","sort","track"]}]}],t.AmplifyS3Album.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyS3Album=y([_({inputs:["contentType","fileToKey","filter","handleOnError","handleOnLoad","identityId","level","path","picker","pickerText","sort","track"]})],t.AmplifyS3Album),t.AmplifyS3Image=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyS3Image.decorators=[{type:e.Component,args:[{selector:"amplify-s3-image",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["alt","body","contentType","handleOnError","handleOnLoad","identityId","imgKey","imgProps","level","path","track"]}]}],t.AmplifyS3Image.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyS3Image=y([_({inputs:["alt","body","contentType","handleOnError","handleOnLoad","identityId","imgKey","imgProps","level","path","track"]})],t.AmplifyS3Image),t.AmplifyS3ImagePicker=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyS3ImagePicker.decorators=[{type:e.Component,args:[{selector:"amplify-s3-image-picker",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["buttonText","contentType","fileToKey","headerHint","headerTitle","identityId","level","path","placeholderHint","track"]}]}],t.AmplifyS3ImagePicker.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyS3ImagePicker=y([_({inputs:["buttonText","contentType","fileToKey","headerHint","headerTitle","identityId","level","path","placeholderHint","track"]})],t.AmplifyS3ImagePicker),t.AmplifyS3Text=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyS3Text.decorators=[{type:e.Component,args:[{selector:"amplify-s3-text",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["body","contentType","fallbackText","identityId","level","path","textKey","track"]}]}],t.AmplifyS3Text.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyS3Text=y([_({inputs:["body","contentType","fallbackText","identityId","level","path","textKey","track"]})],t.AmplifyS3Text),t.AmplifyS3TextPicker=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyS3TextPicker.decorators=[{type:e.Component,args:[{selector:"amplify-s3-text-picker",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["contentType","fallbackText","fileToKey","identityId","level","path","track"]}]}],t.AmplifyS3TextPicker.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyS3TextPicker=y([_({inputs:["contentType","fallbackText","fileToKey","identityId","level","path","track"]})],t.AmplifyS3TextPicker);var Ct=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Ct.decorators=[{type:e.Component,args:[{selector:"amplify-section",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["role"]}]}],Ct.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Ct=y([_({inputs:["role"]})],Ct);var St=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};St.decorators=[{type:e.Component,args:[{selector:"amplify-select",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["fieldId","handleInputChange","options","selected"]}]}],St.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},St=y([_({inputs:["fieldId","handleInputChange","options","selected"]})],St);var xt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};xt.decorators=[{type:e.Component,args:[{selector:"amplify-select-mfa-type",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["MFATypes","authData","handleSubmit"]}]}],xt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},xt=y([_({inputs:["MFATypes","authData","handleSubmit"]})],xt);var Tt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Tt.decorators=[{type:e.Component,args:[{selector:"amplify-sign-in",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["federated","formFields","handleAuthStateChange","handleSubmit","headerText","hideSignUp","submitButtonText","usernameAlias"]}]}],Tt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Tt=y([_({inputs:["federated","formFields","handleAuthStateChange","handleSubmit","headerText","hideSignUp","submitButtonText","usernameAlias"]})],Tt);var Pt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Pt.decorators=[{type:e.Component,args:[{selector:"amplify-sign-in-button",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["provider"]}]}],Pt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Pt=y([_({inputs:["provider"]})],Pt);var It=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};It.decorators=[{type:e.Component,args:[{selector:"amplify-sign-out",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["buttonText","handleAuthStateChange"]}]}],It.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},It=y([_({inputs:["buttonText","handleAuthStateChange"]})],It);var At=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};At.decorators=[{type:e.Component,args:[{selector:"amplify-sign-up",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["formFields","handleAuthStateChange","handleSignUp","handleSubmit","haveAccountText","headerText","signInText","submitButtonText","usernameAlias","validationErrors"]}]}],At.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},At=y([_({inputs:["formFields","handleAuthStateChange","handleSignUp","handleSubmit","haveAccountText","headerText","signInText","submitButtonText","usernameAlias","validationErrors"]})],At);var Et=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Et.decorators=[{type:e.Component,args:[{selector:"amplify-strike",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],Et.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyToast=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement},t.AmplifyToast.decorators=[{type:e.Component,args:[{selector:"amplify-toast",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["handleClose","message"]}]}],t.AmplifyToast.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},t.AmplifyToast=y([_({inputs:["handleClose","message"]})],t.AmplifyToast);var Dt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Dt.decorators=[{type:e.Component,args:[{selector:"amplify-tooltip",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["shouldAutoShow","text"]}]}],Dt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Dt=y([_({inputs:["shouldAutoShow","text"]})],Dt);var Ot=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Ot.decorators=[{type:e.Component,args:[{selector:"amplify-totp-setup",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["handleAuthStateChange","handleComplete","headerText","issuer","standalone","user"]}]}],Ot.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Ot=y([_({inputs:["handleAuthStateChange","handleComplete","headerText","issuer","standalone","user"]})],Ot);var wt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};wt.decorators=[{type:e.Component,args:[{selector:"amplify-username-field",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]}]}],wt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},wt=y([_({inputs:["disabled","fieldId","handleInputChange","hint","inputProps","label","placeholder","required","value"]})],wt);var Rt=function(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement};Rt.decorators=[{type:e.Component,args:[{selector:"amplify-verify-contact",changeDetection:e.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>",inputs:["handleAuthStateChange","user"]}]}],Rt.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.NgZone}]},Rt=y([_({inputs:["handleAuthStateChange","user"]})],Rt),customElements.define("amplify-button",c.AmplifyButton),customElements.define("amplify-input",c.AmplifyInput),customElements.define("amplify-toast",c.AmplifyToast),customElements.define("amplify-chatbot",c.AmplifyChatbot),customElements.define("amplify-s3-album",c.AmplifyS3Album),customElements.define("amplify-s3-image-picker",c.AmplifyS3ImagePicker),customElements.define("amplify-s3-text",c.AmplifyS3Text),customElements.define("amplify-s3-text-picker",c.AmplifyS3TextPicker),customElements.define("amplify-s3-image",c.AmplifyS3Image),customElements.define("amplify-picker",c.AmplifyPicker),customElements.define("amplify-photo-picker",c.AmplifyPhotoPicker);var kt=function(){};kt.decorators=[{type:e.NgModule,args:[{declarations:[t.AmplifyChatbot,t.AmplifyToast,t.AmplifyInput,t.AmplifyButton,t.AmplifyS3Album,t.AmplifyS3ImagePicker,t.AmplifyS3Text,t.AmplifyS3TextPicker,t.AmplifyS3Image,t.AmplifyPicker,t.AmplifyPhotoPicker,g,S,x,P,I,f,A,E,O,R,M,U,N,F,B,z,Z,j],imports:[n.CommonModule],exports:[t.AmplifyChatbot,t.AmplifyToast,t.AmplifyInput,t.AmplifyButton,t.AmplifyS3Album,t.AmplifyS3ImagePicker,t.AmplifyS3Text,t.AmplifyS3TextPicker,t.AmplifyS3Image,t.AmplifyPicker,t.AmplifyPhotoPicker,g,S,P,I,f],schemas:[e.CUSTOM_ELEMENTS_SCHEMA]}]}],t.AmplifyAuthenticatorComponent=g,t.AmplifyConfirmSignInComponent=O,t.AmplifyConfirmSignUpComponent=A,t.AmplifyErrorComponent=I,t.AmplifyFederatedSignInButtonComponent=N,t.AmplifyFederatedSignInComponent=U,t.AmplifyForceNewPasswordComponent=M,t.AmplifyInputComponent=P,t.AmplifyOverrideDirective=f,t.AmplifyResetPasswordComponent=F,t.AmplifySetupTotpComponent=R,t.AmplifySignInComponent=S,t.AmplifySignUpComponent=x,t.AmplifyVerifyUserComponent=B,t.AuthPropService=d,t.ConfirmResetPasswordComponent=z,t.ConfirmVerifyUserComponent=Z,t.StateMachineService=h,t.UiAngularModule=kt,t.getAttributeMap=T,t.ɵa=_,t.ɵb=g,t.ɵc=S,t.ɵd=x,t.ɵe=P,t.ɵf=I,t.ɵg=A,t.ɵh=E,t.ɵi=O,t.ɵj=R,t.ɵk=M,t.ɵl=U,t.ɵm=N,t.ɵn=F,t.ɵo=B,t.ɵp=z,t.ɵq=Z,t.ɵr=j,Object.defineProperty(t,"__esModule",{value:!0})}));
2
+ //# sourceMappingURL=aws-amplify-ui-angular.umd.min.js.map