@rxap/oauth 12.0.9-next.0 → 13.0.0-next.0

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 (108) hide show
  1. package/_theming.scss +1 -1
  2. package/esm2020/index.mjs +17 -0
  3. package/esm2020/lib/container/container.component.mjs +38 -0
  4. package/esm2020/lib/container/container.component.module.mjs +22 -0
  5. package/esm2020/lib/get-o-auth-profile.method.mjs +40 -0
  6. package/esm2020/lib/loading/loading.component.mjs +12 -0
  7. package/esm2020/lib/loading/loading.component.module.mjs +26 -0
  8. package/esm2020/lib/o-auth-extract.guard.mjs +55 -0
  9. package/esm2020/lib/o-auth-redirect.guard.mjs +31 -0
  10. package/esm2020/lib/o-auth-routing.module.mjs +25 -0
  11. package/esm2020/lib/o-auth.method.mjs +111 -0
  12. package/esm2020/lib/o-auth.module.mjs +27 -0
  13. package/esm2020/lib/o-auth.service.mjs +303 -0
  14. package/esm2020/lib/profile.resolve.mjs +37 -0
  15. package/esm2020/lib/routes.mjs +26 -0
  16. package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +47 -0
  17. package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.mjs +38 -0
  18. package/esm2020/lib/tokens.mjs +17 -0
  19. package/esm2020/rxap-oauth.mjs +5 -0
  20. package/esm2020/single-sign-on/lib/continue/continue.component.mjs +70 -0
  21. package/esm2020/single-sign-on/lib/continue/continue.component.module.mjs +42 -0
  22. package/esm2020/single-sign-on/lib/error/error.component.mjs +44 -0
  23. package/esm2020/single-sign-on/lib/error/error.component.module.mjs +30 -0
  24. package/esm2020/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +50 -0
  25. package/esm2020/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +69 -0
  26. package/esm2020/single-sign-on/lib/o-auth-single-sign-on.service.mjs +77 -0
  27. package/esm2020/single-sign-on/lib/routes.mjs +33 -0
  28. package/esm2020/single-sign-on/lib/tokens.mjs +10 -0
  29. package/esm2020/single-sign-on/public_api.mjs +10 -0
  30. package/esm2020/single-sign-on/rxap-oauth-single-sign-on.mjs +5 -0
  31. package/fesm2015/rxap-oauth-single-sign-on.mjs +408 -0
  32. package/fesm2015/rxap-oauth-single-sign-on.mjs.map +1 -0
  33. package/fesm2015/{rxap-oauth.js → rxap-oauth.mjs} +131 -141
  34. package/fesm2015/rxap-oauth.mjs.map +1 -0
  35. package/{fesm2015/rxap-oauth-single-sign-on.js → fesm2020/rxap-oauth-single-sign-on.mjs} +82 -91
  36. package/fesm2020/rxap-oauth-single-sign-on.mjs.map +1 -0
  37. package/fesm2020/rxap-oauth.mjs +801 -0
  38. package/fesm2020/rxap-oauth.mjs.map +1 -0
  39. package/package.json +41 -19
  40. package/single-sign-on/lib/error/error.component.d.ts +2 -0
  41. package/single-sign-on/lib/error/error.component.module.d.ts +2 -1
  42. package/single-sign-on/package.json +5 -5
  43. package/src/schematics/ng-add/index.js +1 -1
  44. package/src/schematics/ng-add/index.js.map +1 -1
  45. package/bundles/rxap-oauth-single-sign-on.umd.js +0 -790
  46. package/bundles/rxap-oauth-single-sign-on.umd.js.map +0 -1
  47. package/bundles/rxap-oauth.umd.js +0 -1349
  48. package/bundles/rxap-oauth.umd.js.map +0 -1
  49. package/esm2015/index.js +0 -17
  50. package/esm2015/index.js.map +0 -1
  51. package/esm2015/lib/container/container.component.js +0 -45
  52. package/esm2015/lib/container/container.component.js.map +0 -1
  53. package/esm2015/lib/container/container.component.module.js +0 -22
  54. package/esm2015/lib/container/container.component.module.js.map +0 -1
  55. package/esm2015/lib/get-o-auth-profile.method.js +0 -41
  56. package/esm2015/lib/get-o-auth-profile.method.js.map +0 -1
  57. package/esm2015/lib/loading/loading.component.js +0 -18
  58. package/esm2015/lib/loading/loading.component.js.map +0 -1
  59. package/esm2015/lib/loading/loading.component.module.js +0 -26
  60. package/esm2015/lib/loading/loading.component.module.js.map +0 -1
  61. package/esm2015/lib/o-auth-extract.guard.js +0 -55
  62. package/esm2015/lib/o-auth-extract.guard.js.map +0 -1
  63. package/esm2015/lib/o-auth-redirect.guard.js +0 -34
  64. package/esm2015/lib/o-auth-redirect.guard.js.map +0 -1
  65. package/esm2015/lib/o-auth-routing.module.js +0 -25
  66. package/esm2015/lib/o-auth-routing.module.js.map +0 -1
  67. package/esm2015/lib/o-auth.method.js +0 -115
  68. package/esm2015/lib/o-auth.method.js.map +0 -1
  69. package/esm2015/lib/o-auth.module.js +0 -28
  70. package/esm2015/lib/o-auth.module.js.map +0 -1
  71. package/esm2015/lib/o-auth.service.js +0 -317
  72. package/esm2015/lib/o-auth.service.js.map +0 -1
  73. package/esm2015/lib/profile.resolve.js +0 -40
  74. package/esm2015/lib/profile.resolve.js.map +0 -1
  75. package/esm2015/lib/routes.js +0 -26
  76. package/esm2015/lib/routes.js.map +0 -1
  77. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js +0 -54
  78. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js.map +0 -1
  79. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js +0 -38
  80. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js.map +0 -1
  81. package/esm2015/lib/tokens.js +0 -17
  82. package/esm2015/lib/tokens.js.map +0 -1
  83. package/esm2015/rxap-oauth.js +0 -5
  84. package/esm2015/rxap-oauth.js.map +0 -1
  85. package/esm2015/single-sign-on/lib/continue/continue.component.js +0 -77
  86. package/esm2015/single-sign-on/lib/continue/continue.component.js.map +0 -1
  87. package/esm2015/single-sign-on/lib/continue/continue.component.module.js +0 -42
  88. package/esm2015/single-sign-on/lib/continue/continue.component.module.js.map +0 -1
  89. package/esm2015/single-sign-on/lib/error/error.component.js +0 -38
  90. package/esm2015/single-sign-on/lib/error/error.component.js.map +0 -1
  91. package/esm2015/single-sign-on/lib/error/error.component.module.js +0 -26
  92. package/esm2015/single-sign-on/lib/error/error.component.module.js.map +0 -1
  93. package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js +0 -50
  94. package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js.map +0 -1
  95. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js +0 -72
  96. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js.map +0 -1
  97. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js +0 -85
  98. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js.map +0 -1
  99. package/esm2015/single-sign-on/lib/routes.js +0 -33
  100. package/esm2015/single-sign-on/lib/routes.js.map +0 -1
  101. package/esm2015/single-sign-on/lib/tokens.js +0 -10
  102. package/esm2015/single-sign-on/lib/tokens.js.map +0 -1
  103. package/esm2015/single-sign-on/public_api.js +0 -10
  104. package/esm2015/single-sign-on/public_api.js.map +0 -1
  105. package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js +0 -5
  106. package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js.map +0 -1
  107. package/fesm2015/rxap-oauth-single-sign-on.js.map +0 -1
  108. package/fesm2015/rxap-oauth.js.map +0 -1
@@ -4,7 +4,6 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
4
4
  import * as i5 from '@angular/router';
5
5
  import { Router, ActivatedRoute } from '@angular/router';
6
6
  import { take, map } from 'rxjs/operators';
7
- import { __awaiter } from 'tslib';
8
7
  import * as i1 from '@rxap/oauth';
9
8
  import { OAuthService, OAuthMethod, GetOAuthProfileMethod, PROFILE_AUTH_ENDPOINT, OAUTH_AUTH_ENDPOINT, OAUTH_SECRET, OAUTH_SSO_URL, RXAP_O_AUTH_REDIRECT_SIGN_OUT, RXAP_O_AUTH_REDIRECT_URL, RXAP_O_AUTH_REDIRECT_SIGN_IN, LoadingComponentModule, ContainerComponentModule, ContainerComponent, ProfileResolve, LoadingComponent } from '@rxap/oauth';
10
9
  import * as i1$1 from '@angular/material/button';
@@ -27,32 +26,25 @@ class OAuthSingleSignOnService extends OAuthService {
27
26
  this.payload = null;
28
27
  this.redirect = null;
29
28
  }
30
- signInWithEmailAndPassword(email, password, remember) {
31
- const _super = Object.create(null, {
32
- signInWithEmailAndPassword: { get: () => super.signInWithEmailAndPassword }
33
- });
34
- return __awaiter(this, void 0, void 0, function* () {
35
- const response = yield _super.signInWithEmailAndPassword.call(this, email, password, remember);
36
- this.redirectToClient();
37
- return response;
38
- });
29
+ async signInWithEmailAndPassword(email, password, remember) {
30
+ const response = await super.signInWithEmailAndPassword(email, password, remember);
31
+ this.redirectToClient();
32
+ return response;
39
33
  }
40
34
  redirectToClient() {
41
35
  window.location.replace(`${this.redirect}?accessToken=${this.accessToken}&refreshToken=${this.refreshToken}&expiresIn=${this.expiresIn}&payload=${this.payload}`);
42
36
  }
43
- signOut() {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- this.clearStorage();
46
- this.accessToken = null;
47
- this.refreshToken = null;
48
- this.expiresAt = null;
49
- this._isAuthenticated = false;
50
- });
37
+ async signOut() {
38
+ this.clearStorage();
39
+ this.accessToken = null;
40
+ this.refreshToken = null;
41
+ this.expiresAt = null;
42
+ this._isAuthenticated = false;
51
43
  }
52
44
  }
53
- OAuthSingleSignOnService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnService, deps: [{ token: OAuthMethod }, { token: GetOAuthProfileMethod }, { token: Router }, { token: PROFILE_AUTH_ENDPOINT, optional: true }, { token: OAUTH_AUTH_ENDPOINT, optional: true }, { token: OAUTH_SECRET, optional: true }, { token: OAUTH_SSO_URL, optional: true }, { token: RXAP_O_AUTH_REDIRECT_SIGN_OUT, optional: true }, { token: RXAP_O_AUTH_REDIRECT_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
54
- OAuthSingleSignOnService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnService });
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnService, decorators: [{
45
+ OAuthSingleSignOnService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnService, deps: [{ token: OAuthMethod }, { token: GetOAuthProfileMethod }, { token: Router }, { token: PROFILE_AUTH_ENDPOINT, optional: true }, { token: OAUTH_AUTH_ENDPOINT, optional: true }, { token: OAUTH_SECRET, optional: true }, { token: OAUTH_SSO_URL, optional: true }, { token: RXAP_O_AUTH_REDIRECT_SIGN_OUT, optional: true }, { token: RXAP_O_AUTH_REDIRECT_URL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
46
+ OAuthSingleSignOnService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnService });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnService, decorators: [{
56
48
  type: Injectable
57
49
  }], ctorParameters: function () { return [{ type: i1.OAuthMethod, decorators: [{
58
50
  type: Inject,
@@ -115,8 +107,8 @@ class ContinueComponent {
115
107
  this.oAuthService.redirectToClient();
116
108
  }
117
109
  }
118
- ContinueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponent, deps: [{ token: ActivatedRoute }, { token: Router }, { token: OAuthService }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0.ɵɵFactoryTarget.Component });
119
- ContinueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ContinueComponent, selector: "rxap-continue", host: { classAttribute: "rxap-continue" }, ngImport: i0, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <div *ngIf=\"profile | async as p\" [name]=\"p.username\" [rxapAvatarBackgroundImage]=\"p.username\"\n class=\"avatar-icon\"></div>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <p><span i18n>Currently Sign In as:</span> <span class=\"username\"><br>{{(profile | async)?.username}}</span></p>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"8px\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"redirect()\" color=\"primary\" i18n mat-raised-button>Continue</button>\n </div>\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signOut()\" color=\"accent\" i18n mat-stroked-button>Change Account</button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px;border-radius:100%}.inner .content .email-input,.inner .content .password-input{width:320px}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: ["name", "rxapAvatarBackgroundImage"] }], pipes: { "async": i3.AsyncPipe }, animations: [
110
+ ContinueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponent, deps: [{ token: ActivatedRoute }, { token: Router }, { token: OAuthService }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0.ɵɵFactoryTarget.Component });
111
+ ContinueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ContinueComponent, selector: "rxap-continue", host: { classAttribute: "rxap-continue" }, ngImport: i0, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <div *ngIf=\"profile | async as p\" [name]=\"p.username\" [rxapAvatarBackgroundImage]=\"p.username\"\n class=\"avatar-icon\"></div>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <p><span i18n>Currently Sign In as:</span> <span class=\"username\"><br>{{(profile | async)?.username}}</span></p>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"8px\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"redirect()\" color=\"primary\" i18n mat-raised-button>Continue</button>\n </div>\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signOut()\" color=\"accent\" i18n mat-stroked-button>Change Account</button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px;border-radius:100%}.inner .content .email-input,.inner .content .password-input{width:320px}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"], components: [{ type: i1$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: ["name", "rxapAvatarBackgroundImage"] }], pipes: { "async": i3.AsyncPipe }, animations: [
120
112
  trigger('fadeAnimation', [
121
113
  // the "in" style determines the "resting" state of the element when it is visible.
122
114
  state('in', style({ opacity: 1 })),
@@ -126,15 +118,9 @@ ContinueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
126
118
  transition(':leave', animate(300, style({ opacity: 0 }))),
127
119
  ]),
128
120
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponent, decorators: [{
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponent, decorators: [{
130
122
  type: Component,
131
- args: [{
132
- selector: 'rxap-continue',
133
- templateUrl: './continue.component.html',
134
- styleUrls: ['./continue.component.scss'],
135
- changeDetection: ChangeDetectionStrategy.OnPush,
136
- host: { class: 'rxap-continue' },
137
- animations: [
123
+ args: [{ selector: 'rxap-continue', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-continue' }, animations: [
138
124
  trigger('fadeAnimation', [
139
125
  // the "in" style determines the "resting" state of the element when it is visible.
140
126
  state('in', style({ opacity: 1 })),
@@ -143,8 +129,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
143
129
  // fade out when destroyed. this could also be written as transition('void => *')
144
130
  transition(':leave', animate(300, style({ opacity: 0 }))),
145
131
  ]),
146
- ],
147
- }]
132
+ ], template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <div *ngIf=\"profile | async as p\" [name]=\"p.username\" [rxapAvatarBackgroundImage]=\"p.username\"\n class=\"avatar-icon\"></div>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <p><span i18n>Currently Sign In as:</span> <span class=\"username\"><br>{{(profile | async)?.username}}</span></p>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"8px\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"redirect()\" color=\"primary\" i18n mat-raised-button>Continue</button>\n </div>\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signOut()\" color=\"accent\" i18n mat-stroked-button>Change Account</button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px;border-radius:100%}.inner .content .email-input,.inner .content .password-input{width:320px}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"] }]
148
133
  }], ctorParameters: function () { return [{ type: i5.ActivatedRoute, decorators: [{
149
134
  type: Inject,
150
135
  args: [ActivatedRoute]
@@ -161,20 +146,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
161
146
 
162
147
  class ContinueComponentModule {
163
148
  }
164
- ContinueComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
165
- ContinueComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, declarations: [ContinueComponent], imports: [FlexLayoutModule,
149
+ ContinueComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
150
+ ContinueComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponentModule, declarations: [ContinueComponent], imports: [FlexLayoutModule,
166
151
  MatIconModule,
167
152
  MatButtonModule,
168
153
  CommonModule,
169
154
  AvatarBackgroundImageDirectiveModule], exports: [ContinueComponent] });
170
- ContinueComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, imports: [[
155
+ ContinueComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponentModule, imports: [[
171
156
  FlexLayoutModule,
172
157
  MatIconModule,
173
158
  MatButtonModule,
174
159
  CommonModule,
175
160
  AvatarBackgroundImageDirectiveModule
176
161
  ]] });
177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, decorators: [{
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ContinueComponentModule, decorators: [{
178
163
  type: NgModule,
179
164
  args: [{
180
165
  declarations: [
@@ -210,41 +195,39 @@ class OAuthSingleSignOnGuard {
210
195
  this.redirectLogin = redirectLogin;
211
196
  this.redirectContinueDisabled = redirectContinueDisabled;
212
197
  }
213
- canActivate(route) {
214
- return __awaiter(this, void 0, void 0, function* () {
215
- const redirect = route.queryParamMap.get('redirect');
216
- const secret = route.queryParamMap.get('secret');
217
- const payload = route.queryParamMap.get('payload');
218
- const action = route.queryParamMap.get('action');
219
- if (!redirect || !secret) {
220
- console.warn(`The query params 'redirect' or 'secret' is not defined!`);
221
- return this.router.createUrlTree(['error']);
222
- }
223
- this.authentication.redirect = atob(redirect);
224
- this.authentication.payload = payload;
225
- this.authentication.secret = secret;
226
- if (action) {
227
- if (action === 'signOut') {
228
- yield this.authentication.signOut();
229
- return this.router.createUrlTree(this.redirectLogin);
230
- }
198
+ async canActivate(route) {
199
+ const redirect = route.queryParamMap.get('redirect');
200
+ const secret = route.queryParamMap.get('secret');
201
+ const payload = route.queryParamMap.get('payload');
202
+ const action = route.queryParamMap.get('action');
203
+ if (!redirect || !secret) {
204
+ console.warn(`The query params 'redirect' or 'secret' is not defined!`);
205
+ return this.router.createUrlTree(['error']);
206
+ }
207
+ this.authentication.redirect = atob(redirect);
208
+ this.authentication.payload = payload;
209
+ this.authentication.secret = secret;
210
+ if (action) {
211
+ if (action === 'signOut') {
212
+ await this.authentication.signOut();
213
+ return this.router.createUrlTree(this.redirectLogin);
231
214
  }
232
- const isAuthenticated = yield this.authentication.isAuthenticated();
233
- console.log('isAuthenticated', isAuthenticated);
234
- if (isAuthenticated) {
235
- if (this.redirectContinueDisabled) {
236
- this.authentication.redirectToClient();
237
- return true;
238
- }
239
- return this.router.createUrlTree(this.redirectContinue);
215
+ }
216
+ const isAuthenticated = await this.authentication.isAuthenticated();
217
+ console.log('isAuthenticated', isAuthenticated);
218
+ if (isAuthenticated) {
219
+ if (this.redirectContinueDisabled) {
220
+ this.authentication.redirectToClient();
221
+ return true;
240
222
  }
241
- return this.router.createUrlTree(this.redirectLogin);
242
- });
223
+ return this.router.createUrlTree(this.redirectContinue);
224
+ }
225
+ return this.router.createUrlTree(this.redirectLogin);
243
226
  }
244
227
  }
245
- OAuthSingleSignOnGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard, deps: [{ token: OAuthService }, { token: Router }, { token: RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }, { token: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
246
- OAuthSingleSignOnGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard });
247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard, decorators: [{
228
+ OAuthSingleSignOnGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnGuard, deps: [{ token: OAuthService }, { token: Router }, { token: RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }, { token: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
229
+ OAuthSingleSignOnGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnGuard });
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnGuard, decorators: [{
248
231
  type: Injectable
249
232
  }], ctorParameters: function () { return [{ type: OAuthSingleSignOnService, decorators: [{
250
233
  type: Inject,
@@ -266,9 +249,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
266
249
  }] }]; } });
267
250
 
268
251
  class ErrorComponent {
252
+ get topLevelDomain() {
253
+ const match = location.hostname.match(/([^.]+\.[^.]+$)/);
254
+ if (match) {
255
+ return match[0];
256
+ }
257
+ else {
258
+ return location.hostname;
259
+ }
260
+ }
261
+ get mainApplicationUrl() {
262
+ return `${location.protocol}//${this.topLevelDomain}`;
263
+ }
269
264
  }
270
- ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
271
- ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ErrorComponent, selector: "rxap-error", host: { classAttribute: "rxap-error" }, ngImport: i0, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <h2 i18n=\"@@rxap-oauth.single-sign-on.error.title\">Error</h2>\n <p i18n=\"@@rxap-oauth.single-sign-on.error.message\">Please open the main application again.</p>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}"], directives: [{ type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], animations: [
265
+ ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
266
+ ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ErrorComponent, selector: "rxap-error", host: { classAttribute: "rxap-error" }, ngImport: i0, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\" fxLayoutGap=\"8px\">\n\n <h2 i18n=\"@@rxap-oauth.single-sign-on.error.title\">Error</h2>\n <p i18n=\"@@rxap-oauth.single-sign-on.error.message\">Please open the main application again.</p>\n <a [href]=\"mainApplicationUrl\" color=\"primary\" mat-raised-button>\n <ng-container i18n=\"@@rxap-oauth.single-sign-on.error.action\">Navigate to main application</ng-container>\n </a>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}\n"], components: [{ type: i1$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }], directives: [{ type: i2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }], animations: [
272
267
  trigger('fadeAnimation', [
273
268
  // the "in" style determines the "resting" state of the element when it is visible.
274
269
  state('in', style({ opacity: 1 })),
@@ -278,15 +273,9 @@ ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
278
273
  transition(':leave', animate(300, style({ opacity: 0 })))
279
274
  ])
280
275
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponent, decorators: [{
276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponent, decorators: [{
282
277
  type: Component,
283
- args: [{
284
- selector: 'rxap-error',
285
- templateUrl: './error.component.html',
286
- styleUrls: ['./error.component.scss'],
287
- changeDetection: ChangeDetectionStrategy.OnPush,
288
- host: { class: 'rxap-error' },
289
- animations: [
278
+ args: [{ selector: 'rxap-error', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-error' }, animations: [
290
279
  trigger('fadeAnimation', [
291
280
  // the "in" style determines the "resting" state of the element when it is visible.
292
281
  state('in', style({ opacity: 1 })),
@@ -295,25 +284,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
295
284
  // fade out when destroyed. this could also be written as transition('void => *')
296
285
  transition(':leave', animate(300, style({ opacity: 0 })))
297
286
  ])
298
- ]
299
- }]
287
+ ], template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\" fxLayoutGap=\"8px\">\n\n <h2 i18n=\"@@rxap-oauth.single-sign-on.error.title\">Error</h2>\n <p i18n=\"@@rxap-oauth.single-sign-on.error.message\">Please open the main application again.</p>\n <a [href]=\"mainApplicationUrl\" color=\"primary\" mat-raised-button>\n <ng-container i18n=\"@@rxap-oauth.single-sign-on.error.action\">Navigate to main application</ng-container>\n </a>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}\n"] }]
300
288
  }] });
301
289
 
302
290
  class ErrorComponentModule {
303
291
  }
304
- ErrorComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
305
- ErrorComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, declarations: [ErrorComponent], imports: [FlexLayoutModule], exports: [ErrorComponent] });
306
- ErrorComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, imports: [[
307
- FlexLayoutModule
292
+ ErrorComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
293
+ ErrorComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponentModule, declarations: [ErrorComponent], imports: [FlexLayoutModule,
294
+ MatButtonModule], exports: [ErrorComponent] });
295
+ ErrorComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponentModule, imports: [[
296
+ FlexLayoutModule,
297
+ MatButtonModule
308
298
  ]] });
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, decorators: [{
299
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ErrorComponentModule, decorators: [{
310
300
  type: NgModule,
311
301
  args: [{
312
302
  declarations: [
313
303
  ErrorComponent
314
304
  ],
315
305
  imports: [
316
- FlexLayoutModule
306
+ FlexLayoutModule,
307
+ MatButtonModule
317
308
  ],
318
309
  exports: [
319
310
  ErrorComponent
@@ -338,18 +329,18 @@ class OAuthSingleSignOnRoutingModule {
338
329
  };
339
330
  }
340
331
  }
341
- OAuthSingleSignOnRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
342
- OAuthSingleSignOnRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, exports: [ContinueComponentModule,
332
+ OAuthSingleSignOnRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
333
+ OAuthSingleSignOnRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnRoutingModule, exports: [ContinueComponentModule,
343
334
  LoadingComponentModule,
344
335
  ContainerComponentModule,
345
336
  ErrorComponentModule] });
346
- OAuthSingleSignOnRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, providers: [
337
+ OAuthSingleSignOnRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnRoutingModule, providers: [
347
338
  OAuthSingleSignOnGuard
348
339
  ], imports: [ContinueComponentModule,
349
340
  LoadingComponentModule,
350
341
  ContainerComponentModule,
351
342
  ErrorComponentModule] });
352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, decorators: [{
343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: OAuthSingleSignOnRoutingModule, decorators: [{
353
344
  type: NgModule,
354
345
  args: [{
355
346
  exports: [
@@ -398,4 +389,4 @@ const RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES = [
398
389
  */
399
390
 
400
391
  export { ContinueComponent, ContinueComponentModule, DefaultRedirectContinueFactory, ErrorComponent, ErrorComponentModule, OAuthSingleSignOnGuard, OAuthSingleSignOnRoutingModule, OAuthSingleSignOnService, RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE, RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES, RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED };
401
- //# sourceMappingURL=rxap-oauth-single-sign-on.js.map
392
+ //# sourceMappingURL=rxap-oauth-single-sign-on.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rxap-oauth-single-sign-on.mjs","sources":["../../../../libs/oauth/single-sign-on/src/lib/o-auth-single-sign-on.service.ts","../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.ts","../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.html","../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.module.ts","../../../../libs/oauth/single-sign-on/src/lib/tokens.ts","../../../../libs/oauth/single-sign-on/src/lib/o-auth-single-sign-on.guard.ts","../../../../libs/oauth/single-sign-on/src/lib/error/error.component.ts","../../../../libs/oauth/single-sign-on/src/lib/error/error.component.html","../../../../libs/oauth/single-sign-on/src/lib/error/error.component.module.ts","../../../../libs/oauth/single-sign-on/src/lib/o-auth-single-sign-on-routing.module.ts","../../../../libs/oauth/single-sign-on/src/lib/routes.ts","../../../../libs/oauth/single-sign-on/src/rxap-oauth-single-sign-on.ts"],"sourcesContent":["import {\n OAuthService,\n OAuthMethodResponse,\n OAuthMethod,\n GetOAuthProfileMethod,\n PROFILE_AUTH_ENDPOINT,\n OAUTH_AUTH_ENDPOINT,\n OAUTH_SECRET,\n OAUTH_SSO_URL,\n RXAP_O_AUTH_REDIRECT_SIGN_OUT,\n RXAP_O_AUTH_REDIRECT_URL\n} from '@rxap/oauth';\nimport {\n Injectable,\n Inject,\n Optional\n} from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Injectable()\nexport class OAuthSingleSignOnService extends OAuthService {\n\n public payload: string | null = null;\n public redirect: string | null = null;\n\n // It is required to define the constructor with the injection\n // definition. If not defined the constructor will be created by\n // typescript without an parameters, bc the payload and redirect\n // initialization is done in the constructor.\n constructor(\n @Inject(OAuthMethod)\n oAuthMethod: OAuthMethod,\n @Inject(GetOAuthProfileMethod)\n getOAuthProfileMethod: GetOAuthProfileMethod,\n @Inject(Router)\n router: Router,\n @Optional()\n @Inject(PROFILE_AUTH_ENDPOINT)\n profileEndpoint: string | null = null,\n @Optional()\n @Inject(OAUTH_AUTH_ENDPOINT)\n authEndpoint: string | null = null,\n @Optional()\n @Inject(OAUTH_SECRET)\n secret: string | null = null,\n @Optional()\n @Inject(OAUTH_SSO_URL)\n ssoUrl: string | null = null,\n @Optional()\n @Inject(RXAP_O_AUTH_REDIRECT_SIGN_OUT)\n redirectSignOut: string[] | null = null,\n @Optional()\n @Inject(RXAP_O_AUTH_REDIRECT_URL)\n redirectUrl: string | null = null\n ) {\n super(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint, authEndpoint, secret, ssoUrl, redirectSignOut, redirectUrl);\n }\n\n public async signInWithEmailAndPassword(\n email: string,\n password: string,\n remember: boolean\n ): Promise<OAuthMethodResponse> {\n const response = await super.signInWithEmailAndPassword(email, password, remember);\n this.redirectToClient();\n return response;\n }\n\n public redirectToClient() {\n window.location.replace(`${this.redirect}?accessToken=${this.accessToken}&refreshToken=${this.refreshToken}&expiresIn=${this.expiresIn}&payload=${this.payload}`);\n }\n\n public async signOut() {\n this.clearStorage();\n this.accessToken = null;\n this.refreshToken = null;\n this.expiresAt = null;\n this._isAuthenticated = false;\n }\n\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n OnInit\n} from '@angular/core';\nimport {\n animate,\n state,\n style,\n transition,\n trigger\n} from '@angular/animations';\nimport {\n ActivatedRoute,\n Router\n} from '@angular/router';\nimport {\n map,\n take\n} from 'rxjs/operators';\nimport { OAuthSingleSignOnService } from '../o-auth-single-sign-on.service';\nimport {\n RXAP_O_AUTH_REDIRECT_SIGN_IN,\n OAuthService\n} from '@rxap/oauth';\n\n@Component({\n selector: 'rxap-continue',\n templateUrl: './continue.component.html',\n styleUrls: [ './continue.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-continue' },\n animations: [\n trigger('fadeAnimation', [\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [style({ opacity: 0 }), animate(300)]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(':leave', animate(300, style({ opacity: 0 }))),\n ]),\n ],\n})\nexport class ContinueComponent<\n Profile extends Record<string, any> = Record<string, any>\n> implements OnInit\n{\n public profile!: Promise<Profile>;\n\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(Router)\n private readonly router: Router,\n @Inject(OAuthService)\n private readonly oAuthService: OAuthSingleSignOnService,\n @Inject(RXAP_O_AUTH_REDIRECT_SIGN_IN)\n private readonly redirectLogin: string[]\n ) {}\n\n public ngOnInit() {\n this.profile = this.route.data\n .pipe(\n take(1),\n map((data) => data.profile)\n )\n .toPromise();\n }\n\n signOut() {\n this.oAuthService.signOut();\n return this.router.navigate(this.redirectLogin);\n }\n\n redirect() {\n this.oAuthService.redirectToClient();\n }\n}\n","<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <div *ngIf=\"profile | async as p\" [name]=\"p.username\" [rxapAvatarBackgroundImage]=\"p.username\"\n class=\"avatar-icon\"></div>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <p><span i18n>Currently Sign In as:</span> <span class=\"username\"><br>{{(profile | async)?.username}}</span></p>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"8px\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"redirect()\" color=\"primary\" i18n mat-raised-button>Continue</button>\n </div>\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signOut()\" color=\"accent\" i18n mat-stroked-button>Change Account</button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n","import { NgModule } from '@angular/core';\nimport { ContinueComponent } from './continue.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { AvatarBackgroundImageDirectiveModule } from '@rxap/directives';\n\n\n@NgModule({\n declarations: [\n ContinueComponent\n ],\n imports: [\n FlexLayoutModule,\n MatIconModule,\n MatButtonModule,\n CommonModule,\n AvatarBackgroundImageDirectiveModule\n ],\n exports: [\n ContinueComponent\n ]\n})\nexport class ContinueComponentModule {\n}\n","import { InjectionToken } from '@angular/core';\n\nexport function DefaultRedirectContinueFactory(): string[] {\n return [ '/', 'continue' ];\n}\n\nexport const RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE = new InjectionToken('rxap/o-auth/single-sign-on/redirect-continue', {\n providedIn: 'root',\n factory: DefaultRedirectContinueFactory\n});\n\nexport const RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED = new InjectionToken('rxap/o-auth/single-sign-on/redirect-continue-disabled');\n","import {\n ActivatedRouteSnapshot,\n CanActivate,\n Router,\n UrlTree\n} from '@angular/router';\nimport {\n Inject,\n Injectable,\n Optional\n} from '@angular/core';\nimport { OAuthSingleSignOnService } from './o-auth-single-sign-on.service';\nimport {\n OAuthService,\n RXAP_O_AUTH_REDIRECT_SIGN_IN\n} from '@rxap/oauth';\nimport {\n RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE,\n RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED\n} from './tokens';\n\n@Injectable()\nexport class OAuthSingleSignOnGuard implements CanActivate {\n\n constructor(\n @Inject(OAuthService)\n private readonly authentication: OAuthSingleSignOnService,\n @Inject(Router)\n private readonly router: Router,\n @Inject(RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE)\n private readonly redirectContinue: string[],\n @Inject(RXAP_O_AUTH_REDIRECT_SIGN_IN)\n private readonly redirectLogin: string[],\n @Optional()\n @Inject(RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED)\n private readonly redirectContinueDisabled: boolean | null\n ) {\n }\n\n public async canActivate(route: ActivatedRouteSnapshot): Promise<boolean | UrlTree> {\n\n const redirect = route.queryParamMap.get('redirect');\n const secret = route.queryParamMap.get('secret');\n const payload = route.queryParamMap.get('payload');\n const action = route.queryParamMap.get('action');\n\n if (!redirect || !secret) {\n console.warn(`The query params 'redirect' or 'secret' is not defined!`);\n return this.router.createUrlTree([ 'error' ]);\n }\n\n this.authentication.redirect = atob(redirect);\n this.authentication.payload = payload;\n this.authentication.secret = secret;\n\n if (action) {\n if (action === 'signOut') {\n await this.authentication.signOut();\n return this.router.createUrlTree(this.redirectLogin);\n }\n }\n\n const isAuthenticated = await this.authentication.isAuthenticated();\n\n console.log('isAuthenticated', isAuthenticated);\n\n if (isAuthenticated) {\n if (this.redirectContinueDisabled) {\n this.authentication.redirectToClient();\n return true;\n }\n return this.router.createUrlTree(this.redirectContinue);\n }\n\n return this.router.createUrlTree(this.redirectLogin);\n }\n\n}\n","import {\n ChangeDetectionStrategy,\n Component\n} from '@angular/core';\nimport {\n animate,\n state,\n style,\n transition,\n trigger\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-error',\n templateUrl: './error.component.html',\n styleUrls: [ './error.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-error' },\n animations: [\n trigger('fadeAnimation', [\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [ style({ opacity: 0 }), animate(300) ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(':leave', animate(300, style({ opacity: 0 })))\n ])\n ]\n})\nexport class ErrorComponent {\n\n public get topLevelDomain() {\n const match = location.hostname.match(/([^.]+\\.[^.]+$)/);\n if (match) {\n return match[ 0 ];\n } else {\n return location.hostname;\n }\n }\n\n public get mainApplicationUrl() {\n return `${location.protocol}//${this.topLevelDomain}`;\n }\n\n}\n","<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\" fxLayoutGap=\"8px\">\n\n <h2 i18n=\"@@rxap-oauth.single-sign-on.error.title\">Error</h2>\n <p i18n=\"@@rxap-oauth.single-sign-on.error.message\">Please open the main application again.</p>\n <a [href]=\"mainApplicationUrl\" color=\"primary\" mat-raised-button>\n <ng-container i18n=\"@@rxap-oauth.single-sign-on.error.action\">Navigate to main application</ng-container>\n </a>\n\n </div>\n\n </div>\n\n</div>\n","import { NgModule } from '@angular/core';\nimport { ErrorComponent } from './error.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [\n ErrorComponent\n ],\n imports: [\n FlexLayoutModule,\n MatButtonModule\n ],\n exports: [\n ErrorComponent\n ]\n})\nexport class ErrorComponentModule {}\n","import {\n NgModule,\n ModuleWithProviders,\n Provider\n} from '@angular/core';\nimport {\n ContainerComponentModule,\n LoadingComponentModule\n} from '@rxap/oauth';\nimport { ContinueComponentModule } from './continue/continue.component.module';\nimport { RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED } from './tokens';\nimport { OAuthSingleSignOnGuard } from './o-auth-single-sign-on.guard';\nimport { ErrorComponentModule } from './error/error.component.module';\n\nexport interface OAuthSingleSignOnOptions {\n redirectContinueDisabled?: boolean\n}\n\n@NgModule({\n exports: [\n ContinueComponentModule,\n LoadingComponentModule,\n ContainerComponentModule,\n ErrorComponentModule\n ],\n providers: [\n OAuthSingleSignOnGuard\n ]\n})\nexport class OAuthSingleSignOnRoutingModule {\n\n public static forRouting(options: OAuthSingleSignOnOptions = {}): ModuleWithProviders<OAuthSingleSignOnRoutingModule> {\n const providers: Provider[] = [\n OAuthSingleSignOnGuard\n ];\n if (options.redirectContinueDisabled) {\n providers.push({\n provide: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED,\n useValue: options.redirectContinueDisabled\n });\n }\n return {\n ngModule: OAuthSingleSignOnRoutingModule,\n providers\n };\n }\n\n}\n","import { Routes } from '@angular/router';\nimport { ContinueComponent } from './continue/continue.component';\nimport {\n ProfileResolve,\n ContainerComponent,\n LoadingComponent\n} from '@rxap/oauth';\nimport { OAuthSingleSignOnGuard } from './o-auth-single-sign-on.guard';\nimport { ErrorComponent } from './error/error.component';\n\nexport const RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES: Routes = [\n {\n path: '',\n component: ContainerComponent,\n children: [\n {\n path: 'continue',\n component: ContinueComponent,\n resolve: {\n profile: ProfileResolve\n }\n },\n {\n path: 'error',\n component: ErrorComponent\n },\n {\n path: '',\n canActivate: [ OAuthSingleSignOnGuard ],\n component: LoadingComponent\n },\n {\n path: '**',\n redirectTo: ''\n }\n ]\n }\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAoBa,wBAAyB,SAAQ,YAAY;;;;;IASxD,YAEI,WAAwB,EAExB,qBAA4C,EAE5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