@tilde-nlp/ngx-menu 6.1.43 → 6.1.45

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.
@@ -0,0 +1,204 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/router";
4
+ import * as i2 from "@angular/common";
5
+ import * as i3 from "@angular/material/icon";
6
+ import * as i4 from "@angular/material/menu";
7
+ import * as i5 from "@ngx-translate/core";
8
+ const _forTrack0 = ($index, $item) => $item.label;
9
+ const _c0 = (a0, a1) => ({ icon: a0, label: a1 });
10
+ function MenuProfileComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵtext(0);
12
+ } if (rf & 2) {
13
+ const ctx_r0 = i0.ɵɵnextContext();
14
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.userInitials, " ");
15
+ } }
16
+ function MenuProfileComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
17
+ i0.ɵɵelementStart(0, "mat-icon");
18
+ i0.ɵɵtext(1, "person");
19
+ i0.ɵɵelementEnd();
20
+ } }
21
+ function MenuProfileComponent_ng_container_6_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
22
+ i0.ɵɵelementStart(0, "mat-icon", 11);
23
+ i0.ɵɵtext(1, "keyboard_arrow_down");
24
+ i0.ɵɵelementEnd();
25
+ } }
26
+ function MenuProfileComponent_ng_container_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {
27
+ i0.ɵɵelementStart(0, "mat-icon", 11);
28
+ i0.ɵɵtext(1, "keyboard_arrow_up");
29
+ i0.ɵɵelementEnd();
30
+ } }
31
+ function MenuProfileComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
32
+ i0.ɵɵelementContainerStart(0);
33
+ i0.ɵɵelementStart(1, "span", 9);
34
+ i0.ɵɵtext(2);
35
+ i0.ɵɵpipe(3, "translate");
36
+ i0.ɵɵelementEnd();
37
+ i0.ɵɵtemplate(4, MenuProfileComponent_ng_container_6_mat_icon_4_Template, 2, 0, "mat-icon", 10)(5, MenuProfileComponent_ng_container_6_ng_template_5_Template, 2, 0, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
38
+ i0.ɵɵelementContainerEnd();
39
+ } if (rf & 2) {
40
+ let tmp_5_0;
41
+ const iconDown_r2 = i0.ɵɵreference(6);
42
+ const ctx_r0 = i0.ɵɵnextContext();
43
+ const state_r3 = i0.ɵɵreference(2);
44
+ i0.ɵɵadvance(2);
45
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, (tmp_5_0 = ctx_r0.username) !== null && tmp_5_0 !== undefined ? tmp_5_0 : "MENU.ANONYMOUS"), " ");
46
+ i0.ɵɵadvance(2);
47
+ i0.ɵɵproperty("ngIf", state_r3.menuOpen)("ngIfElse", iconDown_r2);
48
+ } }
49
+ function MenuProfileComponent_For_10_Conditional_0_Conditional_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
50
+ i0.ɵɵelementContainer(0);
51
+ } }
52
+ function MenuProfileComponent_For_10_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
53
+ const _r4 = i0.ɵɵgetCurrentView();
54
+ i0.ɵɵelementStart(0, "a", 15);
55
+ i0.ɵɵlistener("click", function MenuProfileComponent_For_10_Conditional_0_Conditional_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r4); const item_r5 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.linkCallback(item_r5.link)); });
56
+ i0.ɵɵtemplate(1, MenuProfileComponent_For_10_Conditional_0_Conditional_0_ng_container_1_Template, 1, 0, "ng-container", 16);
57
+ i0.ɵɵelementEnd();
58
+ } if (rf & 2) {
59
+ const item_r5 = i0.ɵɵnextContext(2).$implicit;
60
+ i0.ɵɵnextContext();
61
+ const profileMenuItem_r6 = i0.ɵɵreference(12);
62
+ i0.ɵɵproperty("href", item_r5.link.href, i0.ɵɵsanitizeUrl);
63
+ i0.ɵɵadvance();
64
+ i0.ɵɵproperty("ngTemplateOutlet", profileMenuItem_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c0, item_r5.icon, item_r5.label));
65
+ } }
66
+ function MenuProfileComponent_For_10_Conditional_0_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
67
+ i0.ɵɵelementContainer(0);
68
+ } }
69
+ function MenuProfileComponent_For_10_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
70
+ const _r7 = i0.ɵɵgetCurrentView();
71
+ i0.ɵɵelementStart(0, "a", 17);
72
+ i0.ɵɵlistener("click", function MenuProfileComponent_For_10_Conditional_0_Conditional_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r7); const item_r5 = i0.ɵɵnextContext(2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.linkCallback(item_r5.link)); });
73
+ i0.ɵɵtemplate(1, MenuProfileComponent_For_10_Conditional_0_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 16);
74
+ i0.ɵɵelementEnd();
75
+ } if (rf & 2) {
76
+ const item_r5 = i0.ɵɵnextContext(2).$implicit;
77
+ i0.ɵɵnextContext();
78
+ const profileMenuItem_r6 = i0.ɵɵreference(12);
79
+ i0.ɵɵproperty("routerLink", item_r5.link.href);
80
+ i0.ɵɵadvance();
81
+ i0.ɵɵproperty("ngTemplateOutlet", profileMenuItem_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c0, item_r5.icon, item_r5.label));
82
+ } }
83
+ function MenuProfileComponent_For_10_Conditional_0_Template(rf, ctx) { if (rf & 1) {
84
+ i0.ɵɵtemplate(0, MenuProfileComponent_For_10_Conditional_0_Conditional_0_Template, 2, 6, "a", 13)(1, MenuProfileComponent_For_10_Conditional_0_Conditional_1_Template, 2, 6, "a", 14);
85
+ } if (rf & 2) {
86
+ const item_r5 = i0.ɵɵnextContext().$implicit;
87
+ i0.ɵɵconditional(item_r5.link.isExternal ? 0 : 1);
88
+ } }
89
+ function MenuProfileComponent_For_10_Conditional_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
90
+ i0.ɵɵelementContainer(0);
91
+ } }
92
+ function MenuProfileComponent_For_10_Conditional_1_Template(rf, ctx) { if (rf & 1) {
93
+ const _r8 = i0.ɵɵgetCurrentView();
94
+ i0.ɵɵelementStart(0, "button", 18);
95
+ i0.ɵɵlistener("click", function MenuProfileComponent_For_10_Conditional_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const item_r5 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(item_r5.button == null ? null : item_r5.button.callback()); });
96
+ i0.ɵɵtemplate(1, MenuProfileComponent_For_10_Conditional_1_ng_container_1_Template, 1, 0, "ng-container", 16);
97
+ i0.ɵɵelementEnd();
98
+ } if (rf & 2) {
99
+ const item_r5 = i0.ɵɵnextContext().$implicit;
100
+ i0.ɵɵnextContext();
101
+ const profileMenuItem_r6 = i0.ɵɵreference(12);
102
+ i0.ɵɵadvance();
103
+ i0.ɵɵproperty("ngTemplateOutlet", profileMenuItem_r6)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c0, item_r5.icon, item_r5.label));
104
+ } }
105
+ function MenuProfileComponent_For_10_Template(rf, ctx) { if (rf & 1) {
106
+ i0.ɵɵtemplate(0, MenuProfileComponent_For_10_Conditional_0_Template, 2, 1)(1, MenuProfileComponent_For_10_Conditional_1_Template, 2, 5, "button", 12);
107
+ } if (rf & 2) {
108
+ const item_r5 = ctx.$implicit;
109
+ i0.ɵɵconditional(item_r5.link ? 0 : 1);
110
+ } }
111
+ function MenuProfileComponent_ng_template_11_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) {
112
+ i0.ɵɵelementStart(0, "span", 21);
113
+ i0.ɵɵtext(1);
114
+ i0.ɵɵelementEnd();
115
+ } if (rf & 2) {
116
+ const icon_r9 = i0.ɵɵnextContext(2).icon;
117
+ i0.ɵɵclassProp("material-icons-outlined", icon_r9 == null ? null : icon_r9.isOutlined);
118
+ i0.ɵɵadvance();
119
+ i0.ɵɵtextInterpolate1(" ", icon_r9 == null ? null : icon_r9.name, " ");
120
+ } }
121
+ function MenuProfileComponent_ng_template_11_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
122
+ i0.ɵɵelement(0, "mat-icon", 20);
123
+ } if (rf & 2) {
124
+ const icon_r9 = i0.ɵɵnextContext(2).icon;
125
+ i0.ɵɵproperty("svgIcon", icon_r9 == null ? null : icon_r9.name);
126
+ } }
127
+ function MenuProfileComponent_ng_template_11_Conditional_0_Template(rf, ctx) { if (rf & 1) {
128
+ i0.ɵɵtemplate(0, MenuProfileComponent_ng_template_11_Conditional_0_Conditional_0_Template, 2, 3, "span", 19)(1, MenuProfileComponent_ng_template_11_Conditional_0_Conditional_1_Template, 1, 1, "mat-icon", 20);
129
+ } if (rf & 2) {
130
+ const icon_r9 = i0.ɵɵnextContext().icon;
131
+ i0.ɵɵconditional(!(icon_r9 == null ? null : icon_r9.isCustom) ? 0 : 1);
132
+ } }
133
+ function MenuProfileComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
134
+ i0.ɵɵtemplate(0, MenuProfileComponent_ng_template_11_Conditional_0_Template, 2, 1);
135
+ i0.ɵɵtext(1);
136
+ i0.ɵɵpipe(2, "translate");
137
+ } if (rf & 2) {
138
+ const icon_r9 = ctx.icon;
139
+ const label_r10 = ctx.label;
140
+ i0.ɵɵconditional(icon_r9 ? 0 : -1);
141
+ i0.ɵɵadvance();
142
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, label_r10), "\n");
143
+ } }
144
+ export class MenuProfileComponent {
145
+ constructor() {
146
+ this.linkCallbackEvent = new EventEmitter();
147
+ }
148
+ ngOnInit() {
149
+ this.setUserInitials();
150
+ }
151
+ linkCallback(link) {
152
+ this.linkCallbackEvent.emit(link);
153
+ }
154
+ setUserInitials() {
155
+ if (!this.username) {
156
+ return;
157
+ }
158
+ // displaying first letters of name and surname
159
+ const splittedUsername = this.username.split(' ');
160
+ if (splittedUsername.length === 1) {
161
+ // If there's only one word, use the first letter
162
+ this.userInitials = splittedUsername[0][0];
163
+ return;
164
+ }
165
+ // If there are more than one word, use the first letter of the first two names
166
+ this.userInitials = splittedUsername[0][0] + splittedUsername[1][0];
167
+ }
168
+ static { this.ɵfac = function MenuProfileComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuProfileComponent)(); }; }
169
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuProfileComponent, selectors: [["lib-menu-profile"]], inputs: { collapsed: "collapsed", username: "username", userOptions: "userOptions" }, outputs: { linkCallbackEvent: "linkCallbackEvent" }, decls: 13, vars: 3, consts: [["state", "matMenuTrigger"], ["menu", "matMenu"], ["profileMenuItem", ""], ["iconDown", ""], [1, "profile"], [1, "profile-wrapper", 3, "matMenuTriggerFor"], [1, "profile-icon"], [4, "ngIf"], [1, "profile-menu"], [1, "profile-name"], ["class", "profile-arrow spin", 4, "ngIf", "ngIfElse"], [1, "profile-arrow", "spin"], ["mat-menu-item", "", 1, "profile-option"], ["target", "_blank", 1, "mat-mdc-menu-item", 3, "href"], [1, "mat-mdc-menu-item", 3, "routerLink"], ["target", "_blank", 1, "mat-mdc-menu-item", 3, "click", "href"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "mat-mdc-menu-item", 3, "click", "routerLink"], ["mat-menu-item", "", 1, "profile-option", 3, "click"], [1, "material-icons", "profile-option-icon", 3, "material-icons-outlined"], [1, "profile-option-icon", 3, "svgIcon"], [1, "material-icons", "profile-option-icon"]], template: function MenuProfileComponent_Template(rf, ctx) { if (rf & 1) {
170
+ i0.ɵɵelementStart(0, "div", 4)(1, "button", 5, 0)(3, "div", 6);
171
+ i0.ɵɵtemplate(4, MenuProfileComponent_Conditional_4_Template, 1, 1)(5, MenuProfileComponent_Conditional_5_Template, 2, 0, "mat-icon");
172
+ i0.ɵɵelementEnd();
173
+ i0.ɵɵtemplate(6, MenuProfileComponent_ng_container_6_Template, 7, 5, "ng-container", 7);
174
+ i0.ɵɵelementEnd();
175
+ i0.ɵɵelementStart(7, "mat-menu", 8, 1);
176
+ i0.ɵɵrepeaterCreate(9, MenuProfileComponent_For_10_Template, 2, 1, null, null, _forTrack0);
177
+ i0.ɵɵelementEnd()();
178
+ i0.ɵɵtemplate(11, MenuProfileComponent_ng_template_11_Template, 3, 4, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
179
+ } if (rf & 2) {
180
+ const menu_r11 = i0.ɵɵreference(8);
181
+ i0.ɵɵadvance();
182
+ i0.ɵɵproperty("matMenuTriggerFor", menu_r11);
183
+ i0.ɵɵadvance(3);
184
+ i0.ɵɵconditional(ctx.userInitials ? 4 : 5);
185
+ i0.ɵɵadvance(2);
186
+ i0.ɵɵproperty("ngIf", !ctx.collapsed);
187
+ i0.ɵɵadvance(3);
188
+ i0.ɵɵrepeater(ctx.userOptions);
189
+ } }, dependencies: [i1.RouterLink, i2.NgIf, i2.NgTemplateOutlet, i3.MatIcon, i4.MatMenu, i4.MatMenuItem, i4.MatMenuTrigger, i5.TranslatePipe], styles: ["a[_ngcontent-%COMP%]{text-decoration:none}.profile[_ngcontent-%COMP%]{position:relative;margin-top:100px}.profile-wrapper[_ngcontent-%COMP%]{background:none;color:var(--base-30);display:flex;align-items:center;justify-content:start;width:100%;position:absolute;bottom:0;margin:32px 0}.profile-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-width:40px;height:40px;border-radius:100%;color:var(--base-0);background-color:var(--base-70);font-size:16px;font-weight:600}.profile-name[_ngcontent-%COMP%]{max-width:145px;overflow:hidden;margin-left:12px;text-overflow:ellipsis}.profile-option-icon[_ngcontent-%COMP%]{vertical-align:middle;margin:0 5px 5px 0}.profile-arrow[_ngcontent-%COMP%]{position:absolute;right:0;margin-right:8px}.mobile[_ngcontent-%COMP%] .profile-arrow[_ngcontent-%COMP%]{margin-right:20px}.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spinArrow .3s forwards} .profile-menu a{font-weight:400!important;display:flex;align-items:center;gap:5px} .profile-menu a:hover{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))!important;text-decoration:inherit}@keyframes _ngcontent-%COMP%_spinArrow{to{transform:rotate(180deg)}}"] }); }
190
+ }
191
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuProfileComponent, [{
192
+ type: Component,
193
+ args: [{ selector: 'lib-menu-profile', template: "<div class=\"profile\">\r\n <button #state=\"matMenuTrigger\" [matMenuTriggerFor]=\"menu\" class=\"profile-wrapper\">\r\n <div class=\"profile-icon\">\r\n @if (userInitials) {\r\n {{userInitials}}\r\n } @else {\r\n <mat-icon>person</mat-icon>\r\n }\r\n </div>\r\n\r\n <ng-container *ngIf=\"!collapsed\">\r\n <span class=\"profile-name\">\r\n {{ username ?? 'MENU.ANONYMOUS' | translate }}\r\n </span>\r\n\r\n <mat-icon *ngIf=\"state.menuOpen; else iconDown\" class=\"profile-arrow spin\">keyboard_arrow_down</mat-icon>\r\n\r\n <ng-template #iconDown>\r\n <mat-icon class=\"profile-arrow spin\">keyboard_arrow_up</mat-icon>\r\n </ng-template>\r\n </ng-container>\r\n </button>\r\n\r\n <mat-menu #menu=\"matMenu\" class=\"profile-menu\">\r\n @for (item of userOptions; track item.label) {\r\n @if (item.link) {\r\n @if (item.link.isExternal) {\r\n <a class=\"mat-mdc-menu-item\" [href]=\"item.link.href\" target=\"_blank\" (click)=\"linkCallback(item.link)\">\r\n <ng-container\r\n *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\">\r\n </ng-container>\r\n </a>\r\n } @else {\r\n <a class=\"mat-mdc-menu-item\" [routerLink]=\"item.link.href\" (click)=\"linkCallback(item.link)\">\r\n <ng-container\r\n *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\">\r\n </ng-container>\r\n </a>\r\n }\r\n } @else {\r\n <button\r\n mat-menu-item\r\n class=\"profile-option\"\r\n (click)=\"item.button?.callback()\"\r\n >\r\n <ng-container\r\n *ngTemplateOutlet=\"profileMenuItem; context: { icon: item.icon, label: item.label }\">\r\n </ng-container>\r\n </button>\r\n }\r\n }\r\n </mat-menu>\r\n</div>\r\n\r\n<ng-template #profileMenuItem let-icon=\"icon\" let-label=\"label\">\r\n @if (icon) {\r\n @if (!icon?.isCustom) {\r\n <span class=\"material-icons profile-option-icon\" [class.material-icons-outlined]=\"icon?.isOutlined\">\r\n {{icon?.name}}\r\n </span>\r\n } @else {\r\n <mat-icon class=\"profile-option-icon\" [svgIcon]=\"icon?.name\"></mat-icon>\r\n }\r\n }\r\n {{ label | translate }}\r\n</ng-template>", styles: ["a{text-decoration:none}.profile{position:relative;margin-top:100px}.profile-wrapper{background:none;color:var(--base-30);display:flex;align-items:center;justify-content:start;width:100%;position:absolute;bottom:0;margin:32px 0}.profile-icon{display:flex;justify-content:center;align-items:center;min-width:40px;height:40px;border-radius:100%;color:var(--base-0);background-color:var(--base-70);font-size:16px;font-weight:600}.profile-name{max-width:145px;overflow:hidden;margin-left:12px;text-overflow:ellipsis}.profile-option-icon{vertical-align:middle;margin:0 5px 5px 0}.profile-arrow{position:absolute;right:0;margin-right:8px}.mobile .profile-arrow{margin-right:20px}.spin{animation:spinArrow .3s forwards}::ng-deep .profile-menu a{font-weight:400!important;display:flex;align-items:center;gap:5px}::ng-deep .profile-menu a:hover{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))!important;text-decoration:inherit}@keyframes spinArrow{to{transform:rotate(180deg)}}\n"] }]
194
+ }], null, { collapsed: [{
195
+ type: Input
196
+ }], username: [{
197
+ type: Input
198
+ }], userOptions: [{
199
+ type: Input
200
+ }], linkCallbackEvent: [{
201
+ type: Output
202
+ }] }); })();
203
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MenuProfileComponent, { className: "MenuProfileComponent", filePath: "lib\\components\\menu-profile\\menu-profile.component.ts", lineNumber: 10 }); })();
204
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS1wcm9maWxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1tZW51L3NyYy9saWIvY29tcG9uZW50cy9tZW51LXByb2ZpbGUvbWVudS1wcm9maWxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1tZW51L3NyYy9saWIvY29tcG9uZW50cy9tZW51LXByb2ZpbGUvbWVudS1wcm9maWxlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7Ozs7SUNJdkUsWUFDRjs7O0lBREUsb0RBQ0Y7OztJQUNFLGdDQUFVO0lBQUEsc0JBQU07SUFBQSxpQkFBVzs7O0lBUzdCLG9DQUEyRTtJQUFBLG1DQUFtQjtJQUFBLGlCQUFXOzs7SUFHdkcsb0NBQXFDO0lBQUEsaUNBQWlCO0lBQUEsaUJBQVc7OztJQVJyRSw2QkFBaUM7SUFDL0IsK0JBQTJCO0lBQ3pCLFlBQ0Y7O0lBQUEsaUJBQU87SUFJUCxBQUZBLCtGQUEyRSx3SEFFcEQ7Ozs7Ozs7SUFMckIsZUFDRjtJQURFLGlKQUNGO0lBRVcsZUFBc0I7SUFBQSxBQUF0Qix3Q0FBc0IseUJBQWE7OztJQWF4Qyx3QkFFZTs7OztJQUhqQiw2QkFBdUc7SUFBbEMsdVBBQVMsaUNBQXVCLEtBQUM7SUFDcEcsMkhBQ3VGO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VwiIFtocmVmXT1cIml0ZW0ubGluay5ocmVmXCIgdGFyZ2V0PVwiX2JsYW5rXCIgKGNsaWNrKT1cImxpbmtDYWxsYmFjayhpdGVtLmxpbmspXCI+XHJcbiAgICAgICAgICAgIDxuZy1jb250YWluZXJcclxuICAgICAgICAgICAgICAqbmdUZW1wbGF0ZU91dGxldD1cInByb2ZpbGVNZW51SXRlbTsgY29udGV4dDogeyBpY29uOiBpdGVtLmljb24sIGxhYmVsOiBpdGVtLmxhYmVsIH1cIj5cclxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICA8L2E+XHJcbiAgICAgICAgfSBAZWxzZSB7XHJcbiAgICAgICAgICA8YSBjbGFzcz1cIm1hdC1tZGMtbWVudS1pdGVtXCIgW3JvdXRlckxpbmtdPVwiaXRlbS5saW5rLmhyZWZcIiAoY2xpY2spPVwibGlua0NhbGxiYWNrKGl0ZW0ubGluaylcIj5cclxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lclxyXG4gICAgICAgICAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwicHJvZmlsZU1lbnVJdGVtOyBjb250ZXh0OiB7IGljb246IGl0ZW0uaWNvbiwgbGFiZWw6IGl0ZW0ubGFiZWwgfVwiPlxyXG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgICAgICAgIDwvYT5cclxuICAgICAgICB9XHJcbiAgICAgIH0gQGVsc2Uge1xyXG4gICAgICAgIDxidXR0b25cclxuICAgICAgICAgIG1hdC1tZW51LWl0ZW1cclxuICAgICAgICAgIGNsYXNzPVwicHJvZmlsZS1vcHRpb25cIlxyXG4gICAgICAgICAgKGNsaWNrKT1cIml0ZW0uYnV0dG9uPy5jYWxsYmFjaygpXCJcclxuICAgICAgPlxyXG4gICAgICAgIDxuZy1jb250YWluZXJcclxuICAgICAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwicHJvZmlsZU1lbnVJdGVtOyBjb250ZXh0OiB7IGljb246IGl0ZW0uaWNvbiwgbGFiZWw6IGl0ZW0ubGFiZWwgfVwiPlxyXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxyXG4gICAgICA8L2J1dHRvbj5cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIDwvbWF0LW1lbnU+XHJcbjwvZGl2PlxyXG5cclxuPG5nLXRlbXBsYXRlICNwcm9maWxlTWVudUl0ZW0gbGV0LWljb249XCJpY29uXCIgbGV0LWxhYmVsPVwibGFiZWxcIj5cclxuICBAaWYgKGljb24pIHtcclxuICAgIEBpZiAoIWljb24/LmlzQ3VzdG9tKSB7XHJcbiAgICAgIDxzcGFuIGNsYXNzPVwibWF0ZXJpYWwtaWNvbnMgcHJvZmlsZS1vcHRpb24taWNvblwiIFtjbGFzcy5tYXRlcmlhbC1pY29ucy1vdXRsaW5lZF09XCJpY29uPy5pc091dGxpbmVkXCI+XHJcbiAgICAgICAge3tpY29uPy5uYW1lfX1cclxuICAgICAgPC9zcGFuPlxyXG4gICAgfSBAZWxzZSB7XHJcbiAgICAgIDxtYXQtaWNvbiBjbGFzcz1cInByb2ZpbGUtb3B0aW9uLWljb25cIiBbc3ZnSWNvbl09XCJpY29uPy5uYW1lXCI+PC9tYXQtaWNvbj5cclxuICAgIH1cclxuICB9XHJcbiAge3sgbGFiZWwgfCB0cmFuc2xhdGUgfX1cclxuPC9uZy10ZW1wbGF0ZT4iXX0=
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZS1uYXYtc2V0dGluZ3MubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbWVudS9zcmMvbGliL2NvbXBvbmVudHMvc2lkZS1uYXYtbWVudS9tb2RlbHMvc2lkZS1uYXYtc2V0dGluZ3MubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBw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