@osovitny/anatoly 3.16.68 → 3.16.70
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.
- package/esm2022/lib/ui/components/billing/buyaccess-button.component.mjs +3 -3
- package/esm2022/lib/ui/components/billing/subscribe-plan-button.component.mjs +3 -3
- package/esm2022/lib/ui/components/identity/signin-button.component.mjs +38 -30
- package/esm2022/lib/ui/components/identity/signout-button.component.mjs +38 -30
- package/esm2022/lib/ui/components/identity/signup-button.component.mjs +38 -30
- package/fesm2022/osovitny-anatoly.mjs +115 -91
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/identity/signin-button.component.d.ts +1 -1
- package/lib/ui/components/identity/signout-button.component.d.ts +1 -1
- package/lib/ui/components/identity/signup-button.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ export class BuyAccessButtonComponent {
|
|
|
91
91
|
this.planselect.emit(this.plan);
|
|
92
92
|
}
|
|
93
93
|
static ɵfac = function BuyAccessButtonComponent_Factory(t) { return new (t || BuyAccessButtonComponent)(i0.ɵɵdirectiveInject(i1.AppContextService)); };
|
|
94
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BuyAccessButtonComponent, selectors: [["anatoly-buyaccess-button"]], inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["
|
|
94
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BuyAccessButtonComponent, selectors: [["anatoly-buyaccess-button"]], inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["classes", "btn btn-block btn-primary"], ["class", "btn btn-block btn-success selectPlan", 4, "ngIf"], ["class", "btn btn-block btn-warning selectPlan", 3, "click", 4, "ngIf"], [1, "btn", "btn-block", "btn-success", "selectPlan"], [1, "btn", "btn-block", "btn-warning", "selectPlan", 3, "click"]], template: function BuyAccessButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
95
95
|
i0.ɵɵtemplate(0, BuyAccessButtonComponent_div_0_Template, 3, 2, "div", 0);
|
|
96
96
|
} if (rf & 2) {
|
|
97
97
|
i0.ɵɵproperty("ngIf", ctx.contextUpdated);
|
|
@@ -99,7 +99,7 @@ export class BuyAccessButtonComponent {
|
|
|
99
99
|
}
|
|
100
100
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BuyAccessButtonComponent, [{
|
|
101
101
|
type: Component,
|
|
102
|
-
args: [{ selector: 'anatoly-buyaccess-button', template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button
|
|
102
|
+
args: [{ selector: 'anatoly-buyaccess-button', template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classes=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\"\r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\"\r\n *ngIf=\"plan != currentPlan && currentPlan == 1\"\r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n" }]
|
|
103
103
|
}], function () { return [{ type: i1.AppContextService }]; }, { plan: [{
|
|
104
104
|
type: Input
|
|
105
105
|
}], planTitle: [{
|
|
@@ -109,4 +109,4 @@ export class BuyAccessButtonComponent {
|
|
|
109
109
|
}], planselect: [{
|
|
110
110
|
type: Output
|
|
111
111
|
}] }); })();
|
|
112
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
112
|
+
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uXHJcbiAgLy9FdmVudHNcclxuICBvblBsYW5TZWxlY3QoKSB7XHJcbiAgICB0aGlzLnBsYW5zZWxlY3QuZW1pdCh0aGlzLnBsYW4pO1xyXG4gIH1cclxufVxyXG4iLCI8ZGl2ICpuZ0lmPVwiY29udGV4dFVwZGF0ZWRcIj5cclxuICA8ZGl2ICpuZ0lmPVwiIWlzVXNlclNpZ25lZEluXCI+XHJcbiAgICA8YW5hdG9seS1zaWdudXAtYnV0dG9uIGNsYXNzZXM9XCJidG4gYnRuLWJsb2NrIGJ0bi1wcmltYXJ5XCI+PC9hbmF0b2x5LXNpZ251cC1idXR0b24+XHJcbiAgPC9kaXY+XHJcblxyXG4gIDxkaXYgKm5nSWY9XCJpc1VzZXJTaWduZWRJbiAmJiB2aXNpYmxlSWZVc2VyU2lnbmVkSW5cIj5cclxuICAgIDxidXR0b24gY2xhc3M9XCJidG4gYnRuLWJsb2NrIGJ0bi1zdWNjZXNzIHNlbGVjdFBsYW5cIlxyXG4gICAgICAgICAgICAqbmdJZj1cInBsYW4gPT0gY3VycmVudFBsYW5cIj5cclxuICAgICAgWW91ciBQbGFuXHJcbiAgICA8L2J1dHRvbj5cclxuXHJcbiAgICA8YnV0dG9uIGNsYXNzPVwiYnRuIGJ0bi1ibG9jayAgYnRuLXdhcm5pbmcgc2VsZWN0UGxhblwiXHJcbiAgICAgICAgICAgICpuZ0lmPVwicGxhbiAhPSBjdXJyZW50UGxhbiAmJiBjdXJyZW50UGxhbiA9PSAxXCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uUGxhblNlbGVjdCgpXCI+XHJcbiAgICAgIEJ1eSBOb3dcclxuICAgIDwvYnV0dG9uPlxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -103,7 +103,7 @@ export class SubscribePlanButtonComponent {
|
|
|
103
103
|
this.planselect.emit(this.plan);
|
|
104
104
|
}
|
|
105
105
|
static ɵfac = function SubscribePlanButtonComponent_Factory(t) { return new (t || SubscribePlanButtonComponent)(i0.ɵɵdirectiveInject(i1.AppContextService)); };
|
|
106
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubscribePlanButtonComponent, selectors: [["anatoly-subscribe-plan-button"]], inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["
|
|
106
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SubscribePlanButtonComponent, selectors: [["anatoly-subscribe-plan-button"]], inputs: { plan: "plan", planTitle: "planTitle", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["classes", "btn btn-block btn-primary"], ["class", "btn btn-block btn-success selectPlan", 4, "ngIf"], ["class", "btn btn-block btn-warning selectPlan", 4, "ngIf"], ["class", "btn btn-block btn-warning selectPlan", 3, "click", 4, "ngIf"], [1, "btn", "btn-block", "btn-success", "selectPlan"], [1, "btn", "btn-block", "btn-warning", "selectPlan"], [1, "btn", "btn-block", "btn-warning", "selectPlan", 3, "click"]], template: function SubscribePlanButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
107
107
|
i0.ɵɵtemplate(0, SubscribePlanButtonComponent_div_0_Template, 3, 2, "div", 0);
|
|
108
108
|
} if (rf & 2) {
|
|
109
109
|
i0.ɵɵproperty("ngIf", ctx.contextUpdated);
|
|
@@ -111,7 +111,7 @@ export class SubscribePlanButtonComponent {
|
|
|
111
111
|
}
|
|
112
112
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SubscribePlanButtonComponent, [{
|
|
113
113
|
type: Component,
|
|
114
|
-
args: [{ selector: "anatoly-subscribe-plan-button", template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button
|
|
114
|
+
args: [{ selector: "anatoly-subscribe-plan-button", template: "<div *ngIf=\"contextUpdated\">\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classes=\"btn btn-block btn-primary\"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\"\r\n *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\"\r\n *ngIf=\"plan == requestedPlan\">\r\n Requested\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\"\r\n *ngIf=\"plan != currentPlan && plan != requestedPlan\"\r\n (click)=\"onPlanSelect()\">\r\n Subscribe\r\n </button>\r\n </div>\r\n</div>\r\n" }]
|
|
115
115
|
}], function () { return [{ type: i1.AppContextService }]; }, { plan: [{
|
|
116
116
|
type: Input
|
|
117
117
|
}], planTitle: [{
|
|
@@ -121,4 +121,4 @@ export class SubscribePlanButtonComponent {
|
|
|
121
121
|
}], planselect: [{
|
|
122
122
|
type: Output
|
|
123
123
|
}] }); })();
|
|
124
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
124
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaWJlLXBsYW4tYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2JpbGxpbmcvc3Vic2NyaWJlLXBsYW4tYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2JpbGxpbmcvc3Vic2NyaWJlLXBsYW4tYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjp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yXG4gICAgPC9idXR0b24+XHJcblxyXG4gICAgPGJ1dHRvbiBjbGFzcz1cImJ0biBidG4tYmxvY2sgIGJ0bi13YXJuaW5nIHNlbGVjdFBsYW5cIlxyXG4gICAgICAgICAgICAqbmdJZj1cInBsYW4gIT0gY3VycmVudFBsYW4gJiYgcGxhbiAhPSByZXF1ZXN0ZWRQbGFuXCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uUGxhblNlbGVjdCgpXCI+XHJcbiAgICAgIFN1YnNjcmliZVxyXG4gICAgPC9idXR0b24+XHJcbiAgPC9kaXY+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -21,45 +21,52 @@ import { MSALConfig } from "../../../iam/consts";
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/common";
|
|
23
23
|
import * as i2 from "@angular/router";
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵtext(1, "Sign In");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
24
|
+
function SignInButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementContainer(0);
|
|
28
26
|
} }
|
|
29
27
|
function SignInButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "a",
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
28
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
29
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
34
30
|
i0.ɵɵelementEnd();
|
|
35
31
|
} if (rf & 2) {
|
|
36
|
-
const _r2 = i0.ɵɵreference(2);
|
|
37
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const _r2 = i0.ɵɵreference(3);
|
|
38
34
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
35
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵproperty("
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
42
38
|
} }
|
|
43
|
-
function
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵtext(1, "Sign In");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
39
|
+
function SignInButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainer(0);
|
|
47
41
|
} }
|
|
48
42
|
function SignInButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(4, SignInButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
43
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
44
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
53
45
|
i0.ɵɵelementEnd();
|
|
54
46
|
} if (rf & 2) {
|
|
55
|
-
const _r4 = i0.ɵɵreference(2);
|
|
56
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
const _r2 = i0.ɵɵreference(3);
|
|
57
49
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
50
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
-
i0.ɵɵadvance(
|
|
60
|
-
i0.ɵɵproperty("
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
53
|
+
} }
|
|
54
|
+
function SignInButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "span");
|
|
56
|
+
i0.ɵɵtext(1, "Sign In");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
} }
|
|
59
|
+
function SignInButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelementEnd();
|
|
63
|
+
i0.ɵɵtemplate(3, SignInButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const _r6 = i0.ɵɵreference(1);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
61
68
|
} }
|
|
62
|
-
const _c0 = ["*"
|
|
69
|
+
const _c0 = ["*"];
|
|
63
70
|
export class SignInButtonComponent extends ComponentBase {
|
|
64
71
|
url;
|
|
65
72
|
external = false;
|
|
@@ -69,18 +76,19 @@ export class SignInButtonComponent extends ComponentBase {
|
|
|
69
76
|
this.external = this.url?.indexOf('http') > -1;
|
|
70
77
|
}
|
|
71
78
|
static ɵfac = function SignInButtonComponent_Factory(t) { return new (t || SignInButtonComponent)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
73
|
-
i0.ɵɵprojectionDef(
|
|
74
|
-
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template,
|
|
75
|
-
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template,
|
|
79
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵprojectionDef();
|
|
81
|
+
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
82
|
+
i0.ɵɵtemplate(1, SignInButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
83
|
+
i0.ɵɵtemplate(2, SignInButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
86
|
i0.ɵɵadvance(1);
|
|
79
87
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
80
|
-
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
88
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.RouterLink], encapsulation: 2 });
|
|
81
89
|
}
|
|
82
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
83
91
|
type: Component,
|
|
84
|
-
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
92
|
+
args: [{ selector: "anatoly-signin-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</ng-template>\r\n" }]
|
|
85
93
|
}], function () { return []; }, null); })();
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmluLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvY29tcG9uZW50cy9pZGVudGl0eS9zaWduaW4tYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2lkZW50aXR5L3NpZ25pbi1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxLQUFLO0FBQ0wsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7Ozs7SUNwQi9DLHdCQUFpRTs7O0lBRG5FLDRCQUF1RDtJQUNyRCw0RkFBaUU7SUFDbkUsaUJBQUk7Ozs7SUFGWSw2QkFBcUI7SUFBbEMsbURBQVk7SUFDRSxlQUFpQztJQUFqQyxzQ0FBaUM7OztJQUloRCx3QkFBaUU7OztJQURuRSw0QkFBOEQ7SUFDNUQsNEZBQWlFO0lBQ25FLGlCQUFJOzs7O0lBRmtCLDZCQUFxQjtJQUF4Qyx1Q0FBa0I7SUFDSixlQUFpQztJQUFq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Km5nVGVtcGxhdGVPdXRsZXQ9XCJjb250ZW50VGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cclxuPC9hPlxyXG5cclxuPG5nLXRlbXBsYXRlICNjb250ZW50VGVtcGxhdGU+XHJcbiAgPHNwYW4gI3JlZj48bmctY29udGVudD48L25nLWNvbnRlbnQ+PC9zcGFuPlxyXG4gIDxzcGFuICpuZ0lmPVwiIXJlZi5pbm5lckhUTUwudHJpbSgpXCI+U2lnbiBJbjwvc3Bhbj5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
|
|
@@ -21,45 +21,52 @@ import { MSALConfig } from "../../../iam/consts";
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/common";
|
|
23
23
|
import * as i2 from "@angular/router";
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
24
|
+
function SignOutButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementContainer(0);
|
|
28
26
|
} }
|
|
29
27
|
function SignOutButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "a",
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
28
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
29
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
34
30
|
i0.ɵɵelementEnd();
|
|
35
31
|
} if (rf & 2) {
|
|
36
|
-
const _r2 = i0.ɵɵreference(2);
|
|
37
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const _r2 = i0.ɵɵreference(3);
|
|
38
34
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
35
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵproperty("
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
42
38
|
} }
|
|
43
|
-
function
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵtext(1, "Sign Out");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
39
|
+
function SignOutButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainer(0);
|
|
47
41
|
} }
|
|
48
42
|
function SignOutButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(4, SignOutButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
43
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
44
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
53
45
|
i0.ɵɵelementEnd();
|
|
54
46
|
} if (rf & 2) {
|
|
55
|
-
const _r4 = i0.ɵɵreference(2);
|
|
56
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
const _r2 = i0.ɵɵreference(3);
|
|
57
49
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
50
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
-
i0.ɵɵadvance(
|
|
60
|
-
i0.ɵɵproperty("
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
53
|
+
} }
|
|
54
|
+
function SignOutButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "span");
|
|
56
|
+
i0.ɵɵtext(1, "Sign Out");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
} }
|
|
59
|
+
function SignOutButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelementEnd();
|
|
63
|
+
i0.ɵɵtemplate(3, SignOutButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const _r6 = i0.ɵɵreference(1);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
61
68
|
} }
|
|
62
|
-
const _c0 = ["*"
|
|
69
|
+
const _c0 = ["*"];
|
|
63
70
|
export class SignOutButtonComponent extends ComponentBase {
|
|
64
71
|
url;
|
|
65
72
|
external = false;
|
|
@@ -69,18 +76,19 @@ export class SignOutButtonComponent extends ComponentBase {
|
|
|
69
76
|
this.external = this.url?.indexOf('http') > -1;
|
|
70
77
|
}
|
|
71
78
|
static ɵfac = function SignOutButtonComponent_Factory(t) { return new (t || SignOutButtonComponent)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
73
|
-
i0.ɵɵprojectionDef(
|
|
74
|
-
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template,
|
|
75
|
-
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template,
|
|
79
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵprojectionDef();
|
|
81
|
+
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
82
|
+
i0.ɵɵtemplate(1, SignOutButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
83
|
+
i0.ɵɵtemplate(2, SignOutButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
86
|
i0.ɵɵadvance(1);
|
|
79
87
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
80
|
-
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
88
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.RouterLink], encapsulation: 2 });
|
|
81
89
|
}
|
|
82
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
83
91
|
type: Component,
|
|
84
|
-
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
92
|
+
args: [{ selector: "anatoly-signout-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</ng-template>\r\n" }]
|
|
85
93
|
}], function () { return []; }, null); })();
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbm91dC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2NvbXBvbmVudHMvaWRlbnRpdHkvc2lnbm91dC1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2NvbXBvbmVudHMvaWRlbnRpdHkvc2lnbm91dC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxLQUFLO0FBQ0wsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7Ozs7SUNwQi9DLHdCQUFpRTs7O0lBRG5FLDRCQUF1RDtJQUNyRCw2RkFBaUU7SUFDbkUsaUJBQUk7Ozs7SUFGWSw2QkFBcUI7SUFBbEMsbURBQVk7SUFDRSxlQUFpQztJQUFqQyxzQ0FBaUM7OztJQUloRCx3QkFBaUU7OztJQURuRSw0QkFBOEQ7SUFDNUQsNkZBQWlFO0lBQ25FLGlCQUFJOzs7O0lBRmtCLDZCQUFxQjtJQUF4Qyx1Q0FBa0I7SUFDSixlQUFpQztJQUFqQyxzQ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yICpuZ1RlbXBsYXRlT3V0bGV0PVwiY29udGVudFRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XHJcbjwvYT5cclxuXHJcbjxuZy10ZW1wbGF0ZSAjY29udGVudFRlbXBsYXRlPlxyXG4gIDxzcGFuICNyZWY+PG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50Pjwvc3Bhbj5cclxuICA8c3BhbiAqbmdJZj1cIiFyZWYuaW5uZXJIVE1MLnRyaW0oKVwiPlNpZ24gT3V0PC9zcGFuPlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
|
|
@@ -21,45 +21,52 @@ import { MSALConfig } from "../../../iam/consts";
|
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
import * as i1 from "@angular/common";
|
|
23
23
|
import * as i2 from "@angular/router";
|
|
24
|
-
function
|
|
25
|
-
i0.ɵɵ
|
|
26
|
-
i0.ɵɵtext(1, "Sign Up");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
24
|
+
function SignUpButtonComponent_a_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementContainer(0);
|
|
28
26
|
} }
|
|
29
27
|
function SignUpButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelementStart(0, "a",
|
|
31
|
-
i0.ɵɵ
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
i0.ɵɵtemplate(4, SignUpButtonComponent_a_0_span_4_Template, 2, 0, "span", 4);
|
|
28
|
+
i0.ɵɵelementStart(0, "a", 3);
|
|
29
|
+
i0.ɵɵtemplate(1, SignUpButtonComponent_a_0_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
34
30
|
i0.ɵɵelementEnd();
|
|
35
31
|
} if (rf & 2) {
|
|
36
|
-
const _r2 = i0.ɵɵreference(2);
|
|
37
32
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
33
|
+
const _r2 = i0.ɵɵreference(3);
|
|
38
34
|
i0.ɵɵclassMap(ctx_r0.classes);
|
|
39
35
|
i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
|
|
40
|
-
i0.ɵɵadvance(
|
|
41
|
-
i0.ɵɵproperty("
|
|
36
|
+
i0.ɵɵadvance(1);
|
|
37
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
42
38
|
} }
|
|
43
|
-
function
|
|
44
|
-
i0.ɵɵ
|
|
45
|
-
i0.ɵɵtext(1, "Sign Up");
|
|
46
|
-
i0.ɵɵelementEnd();
|
|
39
|
+
function SignUpButtonComponent_a_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
i0.ɵɵelementContainer(0);
|
|
47
41
|
} }
|
|
48
42
|
function SignUpButtonComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
49
|
-
i0.ɵɵelementStart(0, "a", 5)
|
|
50
|
-
i0.ɵɵ
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
i0.ɵɵtemplate(4, SignUpButtonComponent_a_1_span_4_Template, 2, 0, "span", 4);
|
|
43
|
+
i0.ɵɵelementStart(0, "a", 5);
|
|
44
|
+
i0.ɵɵtemplate(1, SignUpButtonComponent_a_1_ng_container_1_Template, 1, 0, "ng-container", 4);
|
|
53
45
|
i0.ɵɵelementEnd();
|
|
54
46
|
} if (rf & 2) {
|
|
55
|
-
const _r4 = i0.ɵɵreference(2);
|
|
56
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
48
|
+
const _r2 = i0.ɵɵreference(3);
|
|
57
49
|
i0.ɵɵclassMap(ctx_r1.classes);
|
|
58
50
|
i0.ɵɵproperty("routerLink", ctx_r1.url);
|
|
59
|
-
i0.ɵɵadvance(
|
|
60
|
-
i0.ɵɵproperty("
|
|
51
|
+
i0.ɵɵadvance(1);
|
|
52
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2);
|
|
53
|
+
} }
|
|
54
|
+
function SignUpButtonComponent_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
+
i0.ɵɵelementStart(0, "span");
|
|
56
|
+
i0.ɵɵtext(1, "Sign Up");
|
|
57
|
+
i0.ɵɵelementEnd();
|
|
58
|
+
} }
|
|
59
|
+
function SignUpButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "span", null, 6);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelementEnd();
|
|
63
|
+
i0.ɵɵtemplate(3, SignUpButtonComponent_ng_template_2_span_3_Template, 2, 0, "span", 7);
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
const _r6 = i0.ɵɵreference(1);
|
|
66
|
+
i0.ɵɵadvance(3);
|
|
67
|
+
i0.ɵɵproperty("ngIf", !_r6.innerHTML.trim());
|
|
61
68
|
} }
|
|
62
|
-
const _c0 = ["*"
|
|
69
|
+
const _c0 = ["*"];
|
|
63
70
|
export class SignUpButtonComponent extends ComponentBase {
|
|
64
71
|
url;
|
|
65
72
|
external = false;
|
|
@@ -69,18 +76,19 @@ export class SignUpButtonComponent extends ComponentBase {
|
|
|
69
76
|
this.external = this.url?.indexOf('http') > -1;
|
|
70
77
|
}
|
|
71
78
|
static ɵfac = function SignUpButtonComponent_Factory(t) { return new (t || SignUpButtonComponent)(); };
|
|
72
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls:
|
|
73
|
-
i0.ɵɵprojectionDef(
|
|
74
|
-
i0.ɵɵtemplate(0, SignUpButtonComponent_a_0_Template,
|
|
75
|
-
i0.ɵɵtemplate(1, SignUpButtonComponent_a_1_Template,
|
|
79
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [[3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], ["contentTemplate", ""], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], ["ref", ""], [4, "ngIf"]], template: function SignUpButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
i0.ɵɵprojectionDef();
|
|
81
|
+
i0.ɵɵtemplate(0, SignUpButtonComponent_a_0_Template, 2, 5, "a", 0);
|
|
82
|
+
i0.ɵɵtemplate(1, SignUpButtonComponent_a_1_Template, 2, 5, "a", 1);
|
|
83
|
+
i0.ɵɵtemplate(2, SignUpButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
76
84
|
} if (rf & 2) {
|
|
77
85
|
i0.ɵɵproperty("ngIf", ctx.external);
|
|
78
86
|
i0.ɵɵadvance(1);
|
|
79
87
|
i0.ɵɵproperty("ngIf", !ctx.external);
|
|
80
|
-
} }, dependencies: [i1.NgIf, i2.RouterLink], encapsulation: 2 });
|
|
88
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.RouterLink], encapsulation: 2 });
|
|
81
89
|
}
|
|
82
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignUpButtonComponent, [{
|
|
83
91
|
type: Component,
|
|
84
|
-
args: [{ selector: "anatoly-signup-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <
|
|
92
|
+
args: [{ selector: "anatoly-signup-button", template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Up</span>\r\n</ng-template>\r\n" }]
|
|
85
93
|
}], function () { return []; }, null); })();
|
|
86
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbnVwLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvY29tcG9uZW50cy9pZGVudGl0eS9zaWdudXAtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9jb21wb25lbnRzL2lkZW50aXR5L3NpZ251cC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxLQUFLO0FBQ0wsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7Ozs7SUNwQi9DLHdCQUFpRTs7O0lBRG5FLDRCQUF1RDtJQUNyRCw0RkFBaUU7SUFDbkUsaUJBQUk7Ozs7SUFGWSw2QkFBcUI7SUFBbEMsbURBQVk7SUFDRSxlQUFpQztJQUFqQyxzQ0FBaUM7OztJQUloRCx3QkFBaUU7OztJQURuRSw0QkFBOEQ7SUFDNUQsNEZBQWlFO0lBQ25FLGlCQUFJOzs7O0lBRmtCLDZCQUFxQjtJQUF4Qyx1Q0FBa0I7SUFDSixlQUFpQztJQU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