@apipass/icons 0.2.15 → 1.0.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.
- package/assets/css/colors.scss +34 -34
- package/assets/css/icons.scss +30 -30
- package/{esm2015/apipass-icons.js → esm2020/apipass-icons.mjs} +4 -4
- package/esm2020/lib/icon.component.mjs +71 -0
- package/esm2020/lib/icons.module.mjs +37 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +2 -2
- package/fesm2015/apipass-icons.mjs +113 -0
- package/fesm2015/apipass-icons.mjs.map +1 -0
- package/fesm2020/apipass-icons.mjs +112 -0
- package/fesm2020/apipass-icons.mjs.map +1 -0
- package/{apipass-icons.d.ts → index.d.ts} +5 -5
- package/lib/icon.component.d.ts +21 -21
- package/lib/icons.module.d.ts +11 -10
- package/package.json +33 -23
- package/public-api.d.ts +2 -2
- package/bundles/apipass-icons.umd.js +0 -252
- package/bundles/apipass-icons.umd.js.map +0 -1
- package/bundles/apipass-icons.umd.min.js +0 -2
- package/bundles/apipass-icons.umd.min.js.map +0 -1
- package/esm2015/lib/icon.component.js +0 -173
- package/esm2015/lib/icons.module.js +0 -39
- package/fesm2015/apipass-icons.js +0 -210
- package/fesm2015/apipass-icons.js.map +0 -1
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { Component, Input, EventEmitter, Output } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/material/tooltip";
|
|
5
|
-
import * as i3 from "@angular/material/icon";
|
|
6
|
-
import * as i4 from "@angular/router";
|
|
7
|
-
const _c0 = function (a0) { return { "font-size": a0 }; };
|
|
8
|
-
function IconComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
10
|
-
i0.ɵɵelementStart(0, "i", 3);
|
|
11
|
-
i0.ɵɵlistener("click", function IconComponent_i_0_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.click(); });
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵproperty("matTooltip", ctx_r0.title || "")("ngClass", ctx_r0.getClass())("ngStyle", i0.ɵɵpureFunction1(3, _c0, ctx_r0.getFontSize()));
|
|
16
|
-
} }
|
|
17
|
-
function IconComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
19
|
-
i0.ɵɵelementStart(0, "mat-icon", 3);
|
|
20
|
-
i0.ɵɵlistener("click", function IconComponent_mat_icon_1_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.click(); });
|
|
21
|
-
i0.ɵɵtext(1);
|
|
22
|
-
i0.ɵɵelementEnd();
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
25
|
-
i0.ɵɵproperty("matTooltip", ctx_r1.title || "")("ngClass", ctx_r1.getClass())("ngStyle", i0.ɵɵpureFunction1(4, _c0, ctx_r1.getFontSize()));
|
|
26
|
-
i0.ɵɵadvance(1);
|
|
27
|
-
i0.ɵɵtextInterpolate(ctx_r1.name);
|
|
28
|
-
} }
|
|
29
|
-
function IconComponent_a_2_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
i0.ɵɵelement(0, "i", 6);
|
|
31
|
-
} if (rf & 2) {
|
|
32
|
-
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
33
|
-
i0.ɵɵproperty("ngClass", ctx_r8.getClass())("ngStyle", i0.ɵɵpureFunction1(2, _c0, ctx_r8.getFontSize()));
|
|
34
|
-
} }
|
|
35
|
-
function IconComponent_a_2_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
-
i0.ɵɵelementStart(0, "mat-icon", 6);
|
|
37
|
-
i0.ɵɵtext(1);
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
} if (rf & 2) {
|
|
40
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
41
|
-
i0.ɵɵproperty("ngClass", ctx_r9.getClass())("ngStyle", i0.ɵɵpureFunction1(3, _c0, ctx_r9.getFontSize()));
|
|
42
|
-
i0.ɵɵadvance(1);
|
|
43
|
-
i0.ɵɵtextInterpolate(ctx_r9.name);
|
|
44
|
-
} }
|
|
45
|
-
function IconComponent_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
47
|
-
i0.ɵɵelementStart(0, "a", 4);
|
|
48
|
-
i0.ɵɵlistener("click", function IconComponent_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.click(); });
|
|
49
|
-
i0.ɵɵtemplate(1, IconComponent_a_2_i_1_Template, 1, 4, "i", 5);
|
|
50
|
-
i0.ɵɵtemplate(2, IconComponent_a_2_mat_icon_2_Template, 2, 5, "mat-icon", 5);
|
|
51
|
-
i0.ɵɵelementEnd();
|
|
52
|
-
} if (rf & 2) {
|
|
53
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
54
|
-
i0.ɵɵproperty("matTooltip", ctx_r2.title || "")("routerLinkActive", ctx_r2.routerLinkActive || "")("routerLink", ctx_r2.routerLink);
|
|
55
|
-
i0.ɵɵadvance(1);
|
|
56
|
-
i0.ɵɵproperty("ngIf", !ctx_r2.isMaterialIcon);
|
|
57
|
-
i0.ɵɵadvance(1);
|
|
58
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isMaterialIcon);
|
|
59
|
-
} }
|
|
60
|
-
function IconComponent_a_3_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
-
i0.ɵɵelement(0, "i", 6);
|
|
62
|
-
} if (rf & 2) {
|
|
63
|
-
const ctx_r12 = i0.ɵɵnextContext(2);
|
|
64
|
-
i0.ɵɵproperty("ngClass", ctx_r12.getClass())("ngStyle", i0.ɵɵpureFunction1(2, _c0, ctx_r12.getFontSize()));
|
|
65
|
-
} }
|
|
66
|
-
function IconComponent_a_3_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
i0.ɵɵelementStart(0, "mat-icon", 6);
|
|
68
|
-
i0.ɵɵtext(1);
|
|
69
|
-
i0.ɵɵelementEnd();
|
|
70
|
-
} if (rf & 2) {
|
|
71
|
-
const ctx_r13 = i0.ɵɵnextContext(2);
|
|
72
|
-
i0.ɵɵproperty("ngClass", ctx_r13.getClass())("ngStyle", i0.ɵɵpureFunction1(3, _c0, ctx_r13.getFontSize()));
|
|
73
|
-
i0.ɵɵadvance(1);
|
|
74
|
-
i0.ɵɵtextInterpolate(ctx_r13.name);
|
|
75
|
-
} }
|
|
76
|
-
function IconComponent_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
78
|
-
i0.ɵɵelementStart(0, "a", 7);
|
|
79
|
-
i0.ɵɵlistener("click", function IconComponent_a_3_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.click(); });
|
|
80
|
-
i0.ɵɵtemplate(1, IconComponent_a_3_i_1_Template, 1, 4, "i", 5);
|
|
81
|
-
i0.ɵɵtemplate(2, IconComponent_a_3_mat_icon_2_Template, 2, 5, "mat-icon", 5);
|
|
82
|
-
i0.ɵɵelementEnd();
|
|
83
|
-
} if (rf & 2) {
|
|
84
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
85
|
-
i0.ɵɵproperty("matTooltip", ctx_r3.title || "")("routerLinkActive", ctx_r3.routerLinkActive || "")("href", ctx_r3.link, i0.ɵɵsanitizeUrl)("target", ctx_r3.target);
|
|
86
|
-
i0.ɵɵadvance(1);
|
|
87
|
-
i0.ɵɵproperty("ngIf", !ctx_r3.isMaterialIcon);
|
|
88
|
-
i0.ɵɵadvance(1);
|
|
89
|
-
i0.ɵɵproperty("ngIf", ctx_r3.isMaterialIcon);
|
|
90
|
-
} }
|
|
91
|
-
export class IconComponent {
|
|
92
|
-
constructor() {
|
|
93
|
-
this.type = 'primary';
|
|
94
|
-
this.isMaterialIcon = false;
|
|
95
|
-
this.materialOutline = false;
|
|
96
|
-
this.onClick = new EventEmitter();
|
|
97
|
-
}
|
|
98
|
-
click() {
|
|
99
|
-
this.onClick.emit(true);
|
|
100
|
-
}
|
|
101
|
-
getFontSize() {
|
|
102
|
-
return this.size ? `${this.size}px` : 'inherit';
|
|
103
|
-
}
|
|
104
|
-
getClass() {
|
|
105
|
-
var _a, _b;
|
|
106
|
-
const classValues = {};
|
|
107
|
-
if (!this.isMaterialIcon) {
|
|
108
|
-
classValues[this.name] = true;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
classValues['material-icon'] = true;
|
|
112
|
-
}
|
|
113
|
-
if (this.materialOutline) {
|
|
114
|
-
classValues['material-icons-outlined'] = true;
|
|
115
|
-
}
|
|
116
|
-
classValues[`apipass-icon-${this.type}`] = true;
|
|
117
|
-
if (this.isActive) {
|
|
118
|
-
classValues[`apipass-icon-${this.type}-active`] = true;
|
|
119
|
-
}
|
|
120
|
-
if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
121
|
-
classValues[`clickable`] = true;
|
|
122
|
-
}
|
|
123
|
-
return classValues;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
IconComponent.ɵfac = function IconComponent_Factory(t) { return new (t || IconComponent)(); };
|
|
127
|
-
IconComponent.ɵcmp = i0.ɵɵdefineComponent({ type: IconComponent, selectors: [["icon"]], inputs: { name: "name", title: "title", type: "type", size: "size", isMaterialIcon: "isMaterialIcon", materialOutline: "materialOutline", routerLinkActive: "routerLinkActive", routerLink: "routerLink", link: "link", target: "target", isActive: "isActive" }, outputs: { onClick: "onClick" }, decls: 4, vars: 4, consts: [[3, "matTooltip", "ngClass", "ngStyle", "click", 4, "ngIf"], [3, "matTooltip", "routerLinkActive", "routerLink", "click", 4, "ngIf"], [3, "matTooltip", "routerLinkActive", "href", "target", "click", 4, "ngIf"], [3, "matTooltip", "ngClass", "ngStyle", "click"], [3, "matTooltip", "routerLinkActive", "routerLink", "click"], [3, "ngClass", "ngStyle", 4, "ngIf"], [3, "ngClass", "ngStyle"], [3, "matTooltip", "routerLinkActive", "href", "target", "click"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
|
|
128
|
-
i0.ɵɵtemplate(0, IconComponent_i_0_Template, 1, 5, "i", 0);
|
|
129
|
-
i0.ɵɵtemplate(1, IconComponent_mat_icon_1_Template, 2, 6, "mat-icon", 0);
|
|
130
|
-
i0.ɵɵtemplate(2, IconComponent_a_2_Template, 3, 5, "a", 1);
|
|
131
|
-
i0.ɵɵtemplate(3, IconComponent_a_3_Template, 3, 6, "a", 2);
|
|
132
|
-
} if (rf & 2) {
|
|
133
|
-
i0.ɵɵproperty("ngIf", !ctx.isMaterialIcon && ctx.name && !ctx.routerLink && !ctx.link);
|
|
134
|
-
i0.ɵɵadvance(1);
|
|
135
|
-
i0.ɵɵproperty("ngIf", ctx.isMaterialIcon && ctx.name && !ctx.routerLink && !ctx.link);
|
|
136
|
-
i0.ɵɵadvance(1);
|
|
137
|
-
i0.ɵɵproperty("ngIf", ctx.name && ctx.routerLink);
|
|
138
|
-
i0.ɵɵadvance(1);
|
|
139
|
-
i0.ɵɵproperty("ngIf", ctx.name && ctx.link);
|
|
140
|
-
} }, directives: [i1.NgIf, i2.MatTooltip, i1.NgClass, i1.NgStyle, i3.MatIcon, i4.RouterLinkWithHref, i4.RouterLinkActive], styles: ["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary[_ngcontent-%COMP%]{color:var(--color-primary)}.apipass-icon-secondary[_ngcontent-%COMP%]{color:var(--color-secondary)}.apipass-icon-tertiary[_ngcontent-%COMP%]{color:var(--color-fonts-tertiary)}.apipass-icon-remove[_ngcontent-%COMP%]{color:var(--color_icon_remove)}.apipass-icon-success[_ngcontent-%COMP%]{color:var(--color_icon_success)}.apipass-icon-white[_ngcontent-%COMP%]{color:#fff}.apipass-icon-white-active[_ngcontent-%COMP%]{color:var(--color-secondary)}.clickable[_ngcontent-%COMP%]{cursor:pointer}.apipass-custom-icon[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"] });
|
|
141
|
-
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(IconComponent, [{
|
|
142
|
-
type: Component,
|
|
143
|
-
args: [{
|
|
144
|
-
selector: 'icon',
|
|
145
|
-
templateUrl: 'icon.component.html',
|
|
146
|
-
styleUrls: ['icon.component.scss']
|
|
147
|
-
}]
|
|
148
|
-
}], null, { name: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], title: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], type: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], size: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], isMaterialIcon: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], materialOutline: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], routerLinkActive: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], routerLink: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], link: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], target: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], isActive: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], onClick: [{
|
|
171
|
-
type: Output
|
|
172
|
-
}] }); })();
|
|
173
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9pY29ucy9zcmMvbGliL2ljb24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vcHJvamVjdHMvaWNvbnMvc3JjL2xpYi9pY29uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7OztJQ0F2RSw0QkFDeUY7SUFBdEIscUtBQWlCO0lBQUMsaUJBQUk7OztJQUQ5QiwrQ0FBMEIsOEJBQUEsNkRBQUE7Ozs7SUFHckYsbUNBQ29GO0lBQWxCLG1MQUFpQjtJQUFDLFlBQWE7SUFBQSxpQkFBVzs7O0lBRDNDLCtDQUEwQiw4QkFBQSw2REFBQTtJ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NYXRlcmlhbEljb25cIiBbbmdDbGFzc109XCJnZXRDbGFzcygpXCIgW25nU3R5bGVdPVwieydmb250LXNpemUnOiBnZXRGb250U2l6ZSgpfVwiPjwvaT5cbiAgPG1hdC1pY29uICpuZ0lmPVwiaXNNYXRlcmlhbEljb25cIiBbbmdDbGFzc109XCJnZXRDbGFzcygpXCIgW25nU3R5bGVdPVwieydmb250LXNpemUnOiBnZXRGb250U2l6ZSgpfVwiPnt7dGhpcy5uYW1lfX08L21hdC1pY29uPlxuPC9hPlxuXG48YSAqbmdJZj1cIm5hbWUgJiYgbGlua1wiIFttYXRUb29sdGlwXT1cInRpdGxlIHx8ICcnXCJcbiAgIFtyb3V0ZXJMaW5rQWN0aXZlXT1cInJvdXRlckxpbmtBY3RpdmUgfHwgJydcIiBbaHJlZl09XCJsaW5rXCIgW3RhcmdldF09XCJ0YXJnZXRcIiAoY2xpY2spPVwiY2xpY2soKVwiPlxuICA8aSAqbmdJZj1cIiFpc01hdGVyaWFsSWNvblwiIFtuZ0NsYXNzXT1cImdldENsYXNzKClcIiBbbmdTdHlsZV09XCJ7J2ZvbnQtc2l6ZSc6IGdldEZvbnRTaXplKCl9XCI+PC9pPlxuICA8bWF0LWljb24gKm5nSWY9XCJpc01hdGVyaWFsSWNvblwiIFtuZ0NsYXNzXT1cImdldENsYXNzKClcIiBbbmdTdHlsZV09XCJ7J2ZvbnQtc2l6ZSc6IGdldEZvbnRTaXplKCl9XCI+e3t0aGlzLm5hbWV9fTwvbWF0LWljb24+XG48L2E+XG4iXX0=
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
5
|
-
import { IconComponent } from './icon.component';
|
|
6
|
-
import { RouterModule } from '@angular/router';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/router";
|
|
9
|
-
export class IconsModule {
|
|
10
|
-
}
|
|
11
|
-
IconsModule.ɵmod = i0.ɵɵdefineNgModule({ type: IconsModule });
|
|
12
|
-
IconsModule.ɵinj = i0.ɵɵdefineInjector({ factory: function IconsModule_Factory(t) { return new (t || IconsModule)(); }, providers: [], imports: [[
|
|
13
|
-
CommonModule,
|
|
14
|
-
MatIconModule,
|
|
15
|
-
MatTooltipModule,
|
|
16
|
-
RouterModule.forChild([])
|
|
17
|
-
]] });
|
|
18
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IconsModule, { declarations: [IconComponent], imports: [CommonModule,
|
|
19
|
-
MatIconModule,
|
|
20
|
-
MatTooltipModule, i1.RouterModule], exports: [IconComponent] }); })();
|
|
21
|
-
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(IconsModule, [{
|
|
22
|
-
type: NgModule,
|
|
23
|
-
args: [{
|
|
24
|
-
imports: [
|
|
25
|
-
CommonModule,
|
|
26
|
-
MatIconModule,
|
|
27
|
-
MatTooltipModule,
|
|
28
|
-
RouterModule.forChild([])
|
|
29
|
-
],
|
|
30
|
-
declarations: [
|
|
31
|
-
IconComponent
|
|
32
|
-
],
|
|
33
|
-
exports: [
|
|
34
|
-
IconComponent
|
|
35
|
-
],
|
|
36
|
-
providers: []
|
|
37
|
-
}]
|
|
38
|
-
}], null, null); })();
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbnMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvaWNvbnMvc3JjL2xpYi9pY29ucy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsWUFBWSx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nQge01hdFRvb2x0aXBNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL3Rvb2x0aXAnO1xuaW1wb3J0IHtJY29uQ29tcG9uZW50fSBmcm9tICcuL2ljb24uY29tcG9uZW50JztcbmltcG9ydCB7Um91dGVyTW9kdWxlfSBmcm9tICdAYW5ndWxhci9yb3V0ZXInO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIE1hdEljb25Nb2R1bGUsXG4gICAgTWF0VG9vbHRpcE1vZHVsZSxcbiAgICBSb3V0ZXJNb2R1bGUuZm9yQ2hpbGQoW10pXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIEljb25Db21wb25lbnRcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEljb25Db21wb25lbnRcbiAgXSxcbiAgcHJvdmlkZXJzOiBbXVxufSlcbmV4cG9ydCBjbGFzcyBJY29uc01vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { ɵɵgetCurrentView, ɵɵelementStart, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelementEnd, ɵɵproperty, ɵɵpureFunction1, ɵɵtext, ɵɵadvance, ɵɵtextInterpolate, ɵɵelement, ɵɵtemplate, ɵɵsanitizeUrl, EventEmitter, ɵɵdefineComponent, ɵsetClassMetadata, Component, Input, Output, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
2
|
-
import { NgIf, NgClass, NgStyle, CommonModule } from '@angular/common';
|
|
3
|
-
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
5
|
-
import { RouterLinkWithHref, RouterLinkActive, RouterModule } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
const _c0 = function (a0) { return { "font-size": a0 }; };
|
|
8
|
-
function IconComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
const _r5 = ɵɵgetCurrentView();
|
|
10
|
-
ɵɵelementStart(0, "i", 3);
|
|
11
|
-
ɵɵlistener("click", function IconComponent_i_0_Template_i_click_0_listener() { ɵɵrestoreView(_r5); const ctx_r4 = ɵɵnextContext(); return ctx_r4.click(); });
|
|
12
|
-
ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = ɵɵnextContext();
|
|
15
|
-
ɵɵproperty("matTooltip", ctx_r0.title || "")("ngClass", ctx_r0.getClass())("ngStyle", ɵɵpureFunction1(3, _c0, ctx_r0.getFontSize()));
|
|
16
|
-
} }
|
|
17
|
-
function IconComponent_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
const _r7 = ɵɵgetCurrentView();
|
|
19
|
-
ɵɵelementStart(0, "mat-icon", 3);
|
|
20
|
-
ɵɵlistener("click", function IconComponent_mat_icon_1_Template_mat_icon_click_0_listener() { ɵɵrestoreView(_r7); const ctx_r6 = ɵɵnextContext(); return ctx_r6.click(); });
|
|
21
|
-
ɵɵtext(1);
|
|
22
|
-
ɵɵelementEnd();
|
|
23
|
-
} if (rf & 2) {
|
|
24
|
-
const ctx_r1 = ɵɵnextContext();
|
|
25
|
-
ɵɵproperty("matTooltip", ctx_r1.title || "")("ngClass", ctx_r1.getClass())("ngStyle", ɵɵpureFunction1(4, _c0, ctx_r1.getFontSize()));
|
|
26
|
-
ɵɵadvance(1);
|
|
27
|
-
ɵɵtextInterpolate(ctx_r1.name);
|
|
28
|
-
} }
|
|
29
|
-
function IconComponent_a_2_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
30
|
-
ɵɵelement(0, "i", 6);
|
|
31
|
-
} if (rf & 2) {
|
|
32
|
-
const ctx_r8 = ɵɵnextContext(2);
|
|
33
|
-
ɵɵproperty("ngClass", ctx_r8.getClass())("ngStyle", ɵɵpureFunction1(2, _c0, ctx_r8.getFontSize()));
|
|
34
|
-
} }
|
|
35
|
-
function IconComponent_a_2_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
-
ɵɵelementStart(0, "mat-icon", 6);
|
|
37
|
-
ɵɵtext(1);
|
|
38
|
-
ɵɵelementEnd();
|
|
39
|
-
} if (rf & 2) {
|
|
40
|
-
const ctx_r9 = ɵɵnextContext(2);
|
|
41
|
-
ɵɵproperty("ngClass", ctx_r9.getClass())("ngStyle", ɵɵpureFunction1(3, _c0, ctx_r9.getFontSize()));
|
|
42
|
-
ɵɵadvance(1);
|
|
43
|
-
ɵɵtextInterpolate(ctx_r9.name);
|
|
44
|
-
} }
|
|
45
|
-
function IconComponent_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
-
const _r11 = ɵɵgetCurrentView();
|
|
47
|
-
ɵɵelementStart(0, "a", 4);
|
|
48
|
-
ɵɵlistener("click", function IconComponent_a_2_Template_a_click_0_listener() { ɵɵrestoreView(_r11); const ctx_r10 = ɵɵnextContext(); return ctx_r10.click(); });
|
|
49
|
-
ɵɵtemplate(1, IconComponent_a_2_i_1_Template, 1, 4, "i", 5);
|
|
50
|
-
ɵɵtemplate(2, IconComponent_a_2_mat_icon_2_Template, 2, 5, "mat-icon", 5);
|
|
51
|
-
ɵɵelementEnd();
|
|
52
|
-
} if (rf & 2) {
|
|
53
|
-
const ctx_r2 = ɵɵnextContext();
|
|
54
|
-
ɵɵproperty("matTooltip", ctx_r2.title || "")("routerLinkActive", ctx_r2.routerLinkActive || "")("routerLink", ctx_r2.routerLink);
|
|
55
|
-
ɵɵadvance(1);
|
|
56
|
-
ɵɵproperty("ngIf", !ctx_r2.isMaterialIcon);
|
|
57
|
-
ɵɵadvance(1);
|
|
58
|
-
ɵɵproperty("ngIf", ctx_r2.isMaterialIcon);
|
|
59
|
-
} }
|
|
60
|
-
function IconComponent_a_3_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
61
|
-
ɵɵelement(0, "i", 6);
|
|
62
|
-
} if (rf & 2) {
|
|
63
|
-
const ctx_r12 = ɵɵnextContext(2);
|
|
64
|
-
ɵɵproperty("ngClass", ctx_r12.getClass())("ngStyle", ɵɵpureFunction1(2, _c0, ctx_r12.getFontSize()));
|
|
65
|
-
} }
|
|
66
|
-
function IconComponent_a_3_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
ɵɵelementStart(0, "mat-icon", 6);
|
|
68
|
-
ɵɵtext(1);
|
|
69
|
-
ɵɵelementEnd();
|
|
70
|
-
} if (rf & 2) {
|
|
71
|
-
const ctx_r13 = ɵɵnextContext(2);
|
|
72
|
-
ɵɵproperty("ngClass", ctx_r13.getClass())("ngStyle", ɵɵpureFunction1(3, _c0, ctx_r13.getFontSize()));
|
|
73
|
-
ɵɵadvance(1);
|
|
74
|
-
ɵɵtextInterpolate(ctx_r13.name);
|
|
75
|
-
} }
|
|
76
|
-
function IconComponent_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
77
|
-
const _r15 = ɵɵgetCurrentView();
|
|
78
|
-
ɵɵelementStart(0, "a", 7);
|
|
79
|
-
ɵɵlistener("click", function IconComponent_a_3_Template_a_click_0_listener() { ɵɵrestoreView(_r15); const ctx_r14 = ɵɵnextContext(); return ctx_r14.click(); });
|
|
80
|
-
ɵɵtemplate(1, IconComponent_a_3_i_1_Template, 1, 4, "i", 5);
|
|
81
|
-
ɵɵtemplate(2, IconComponent_a_3_mat_icon_2_Template, 2, 5, "mat-icon", 5);
|
|
82
|
-
ɵɵelementEnd();
|
|
83
|
-
} if (rf & 2) {
|
|
84
|
-
const ctx_r3 = ɵɵnextContext();
|
|
85
|
-
ɵɵproperty("matTooltip", ctx_r3.title || "")("routerLinkActive", ctx_r3.routerLinkActive || "")("href", ctx_r3.link, ɵɵsanitizeUrl)("target", ctx_r3.target);
|
|
86
|
-
ɵɵadvance(1);
|
|
87
|
-
ɵɵproperty("ngIf", !ctx_r3.isMaterialIcon);
|
|
88
|
-
ɵɵadvance(1);
|
|
89
|
-
ɵɵproperty("ngIf", ctx_r3.isMaterialIcon);
|
|
90
|
-
} }
|
|
91
|
-
class IconComponent {
|
|
92
|
-
constructor() {
|
|
93
|
-
this.type = 'primary';
|
|
94
|
-
this.isMaterialIcon = false;
|
|
95
|
-
this.materialOutline = false;
|
|
96
|
-
this.onClick = new EventEmitter();
|
|
97
|
-
}
|
|
98
|
-
click() {
|
|
99
|
-
this.onClick.emit(true);
|
|
100
|
-
}
|
|
101
|
-
getFontSize() {
|
|
102
|
-
return this.size ? `${this.size}px` : 'inherit';
|
|
103
|
-
}
|
|
104
|
-
getClass() {
|
|
105
|
-
var _a, _b;
|
|
106
|
-
const classValues = {};
|
|
107
|
-
if (!this.isMaterialIcon) {
|
|
108
|
-
classValues[this.name] = true;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
classValues['material-icon'] = true;
|
|
112
|
-
}
|
|
113
|
-
if (this.materialOutline) {
|
|
114
|
-
classValues['material-icons-outlined'] = true;
|
|
115
|
-
}
|
|
116
|
-
classValues[`apipass-icon-${this.type}`] = true;
|
|
117
|
-
if (this.isActive) {
|
|
118
|
-
classValues[`apipass-icon-${this.type}-active`] = true;
|
|
119
|
-
}
|
|
120
|
-
if (((_b = (_a = this.onClick) === null || _a === void 0 ? void 0 : _a.observers) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
121
|
-
classValues[`clickable`] = true;
|
|
122
|
-
}
|
|
123
|
-
return classValues;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
IconComponent.ɵfac = function IconComponent_Factory(t) { return new (t || IconComponent)(); };
|
|
127
|
-
IconComponent.ɵcmp = ɵɵdefineComponent({ type: IconComponent, selectors: [["icon"]], inputs: { name: "name", title: "title", type: "type", size: "size", isMaterialIcon: "isMaterialIcon", materialOutline: "materialOutline", routerLinkActive: "routerLinkActive", routerLink: "routerLink", link: "link", target: "target", isActive: "isActive" }, outputs: { onClick: "onClick" }, decls: 4, vars: 4, consts: [[3, "matTooltip", "ngClass", "ngStyle", "click", 4, "ngIf"], [3, "matTooltip", "routerLinkActive", "routerLink", "click", 4, "ngIf"], [3, "matTooltip", "routerLinkActive", "href", "target", "click", 4, "ngIf"], [3, "matTooltip", "ngClass", "ngStyle", "click"], [3, "matTooltip", "routerLinkActive", "routerLink", "click"], [3, "ngClass", "ngStyle", 4, "ngIf"], [3, "ngClass", "ngStyle"], [3, "matTooltip", "routerLinkActive", "href", "target", "click"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
|
|
128
|
-
ɵɵtemplate(0, IconComponent_i_0_Template, 1, 5, "i", 0);
|
|
129
|
-
ɵɵtemplate(1, IconComponent_mat_icon_1_Template, 2, 6, "mat-icon", 0);
|
|
130
|
-
ɵɵtemplate(2, IconComponent_a_2_Template, 3, 5, "a", 1);
|
|
131
|
-
ɵɵtemplate(3, IconComponent_a_3_Template, 3, 6, "a", 2);
|
|
132
|
-
} if (rf & 2) {
|
|
133
|
-
ɵɵproperty("ngIf", !ctx.isMaterialIcon && ctx.name && !ctx.routerLink && !ctx.link);
|
|
134
|
-
ɵɵadvance(1);
|
|
135
|
-
ɵɵproperty("ngIf", ctx.isMaterialIcon && ctx.name && !ctx.routerLink && !ctx.link);
|
|
136
|
-
ɵɵadvance(1);
|
|
137
|
-
ɵɵproperty("ngIf", ctx.name && ctx.routerLink);
|
|
138
|
-
ɵɵadvance(1);
|
|
139
|
-
ɵɵproperty("ngIf", ctx.name && ctx.link);
|
|
140
|
-
} }, directives: [NgIf, MatTooltip, NgClass, NgStyle, MatIcon, RouterLinkWithHref, RouterLinkActive], styles: ["[_ngcontent-%COMP%]:root{--color-body-light:#fff;--color-fonts-tertiary:#777;--color-inputs-background:#fff;--color-inputs-border:#ddd;--color-primary:#222d57;--color-primary-active:#29376a;--color-primary-hover:#18203d;--color-red:red;--color-secondary:#d3d921;--color-secondary-active:#dce13f;--color-secondary-hover:#b3b81c;--color-tertiary:#efefef;--color-tertiary-active:#f1f1f1;--color-tertiary-hover:#cbcbcb;--color_components_light:#fff;--color_disabled:#e0e0e0;--color_graph_error:#eb5757;--color_graph_error_hover:#c91717;--color_graph_primary:#1643ef;--color_graph_primary_hover:#0a2692;--color_icon_remove:var(--color-red);--color_icon_success:#070;--limit-plan-color:#ff6c00}.apipass-icon-primary[_ngcontent-%COMP%]{color:var(--color-primary)}.apipass-icon-secondary[_ngcontent-%COMP%]{color:var(--color-secondary)}.apipass-icon-tertiary[_ngcontent-%COMP%]{color:var(--color-fonts-tertiary)}.apipass-icon-remove[_ngcontent-%COMP%]{color:var(--color_icon_remove)}.apipass-icon-success[_ngcontent-%COMP%]{color:var(--color_icon_success)}.apipass-icon-white[_ngcontent-%COMP%]{color:#fff}.apipass-icon-white-active[_ngcontent-%COMP%]{color:var(--color-secondary)}.clickable[_ngcontent-%COMP%]{cursor:pointer}.apipass-custom-icon[_ngcontent-%COMP%]{background-repeat:no-repeat;background-size:100%;display:block;height:100%;width:100%}.apipass-custom-faq-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-faq-icon.png)}.apipass-custom-chat-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-chat-icon.png)}.apipass-custom-mouse-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-custom-mouse-icon.png)}.apipass-customization-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/icons/custom/apipass-customization-icon.png)}"] });
|
|
141
|
-
/*@__PURE__*/ (function () { ɵsetClassMetadata(IconComponent, [{
|
|
142
|
-
type: Component,
|
|
143
|
-
args: [{
|
|
144
|
-
selector: 'icon',
|
|
145
|
-
templateUrl: 'icon.component.html',
|
|
146
|
-
styleUrls: ['icon.component.scss']
|
|
147
|
-
}]
|
|
148
|
-
}], null, { name: [{
|
|
149
|
-
type: Input
|
|
150
|
-
}], title: [{
|
|
151
|
-
type: Input
|
|
152
|
-
}], type: [{
|
|
153
|
-
type: Input
|
|
154
|
-
}], size: [{
|
|
155
|
-
type: Input
|
|
156
|
-
}], isMaterialIcon: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], materialOutline: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], routerLinkActive: [{
|
|
161
|
-
type: Input
|
|
162
|
-
}], routerLink: [{
|
|
163
|
-
type: Input
|
|
164
|
-
}], link: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], target: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], isActive: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], onClick: [{
|
|
171
|
-
type: Output
|
|
172
|
-
}] }); })();
|
|
173
|
-
|
|
174
|
-
class IconsModule {
|
|
175
|
-
}
|
|
176
|
-
IconsModule.ɵmod = ɵɵdefineNgModule({ type: IconsModule });
|
|
177
|
-
IconsModule.ɵinj = ɵɵdefineInjector({ factory: function IconsModule_Factory(t) { return new (t || IconsModule)(); }, providers: [], imports: [[
|
|
178
|
-
CommonModule,
|
|
179
|
-
MatIconModule,
|
|
180
|
-
MatTooltipModule,
|
|
181
|
-
RouterModule.forChild([])
|
|
182
|
-
]] });
|
|
183
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(IconsModule, { declarations: [IconComponent], imports: [CommonModule,
|
|
184
|
-
MatIconModule,
|
|
185
|
-
MatTooltipModule, RouterModule], exports: [IconComponent] }); })();
|
|
186
|
-
/*@__PURE__*/ (function () { ɵsetClassMetadata(IconsModule, [{
|
|
187
|
-
type: NgModule,
|
|
188
|
-
args: [{
|
|
189
|
-
imports: [
|
|
190
|
-
CommonModule,
|
|
191
|
-
MatIconModule,
|
|
192
|
-
MatTooltipModule,
|
|
193
|
-
RouterModule.forChild([])
|
|
194
|
-
],
|
|
195
|
-
declarations: [
|
|
196
|
-
IconComponent
|
|
197
|
-
],
|
|
198
|
-
exports: [
|
|
199
|
-
IconComponent
|
|
200
|
-
],
|
|
201
|
-
providers: []
|
|
202
|
-
}]
|
|
203
|
-
}], null, null); })();
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Generated bundle index. Do not edit.
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
export { IconComponent, IconsModule };
|
|
210
|
-
//# sourceMappingURL=apipass-icons.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apipass-icons.js","sources":["../../../projects/icons/src/lib/icon.component.html","../../../projects/icons/src/lib/icon.component.ts","../../../projects/icons/src/lib/icons.module.ts","../../../projects/icons/src/apipass-icons.ts"],"sourcesContent":["<i *ngIf=\"!isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\"></i>\n\n<mat-icon *ngIf=\"isMaterialIcon && name && !routerLink && !link\" [matTooltip]=\"title || ''\"\n [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\" (click)=\"click()\">{{this.name}}</mat-icon>\n\n<a *ngIf=\"name && routerLink\" [matTooltip]=\"title || ''\"\n [routerLinkActive]=\"routerLinkActive || ''\" [routerLink]=\"routerLink\" (click)=\"click()\">\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\n</a>\n\n<a *ngIf=\"name && link\" [matTooltip]=\"title || ''\"\n [routerLinkActive]=\"routerLinkActive || ''\" [href]=\"link\" [target]=\"target\" (click)=\"click()\">\n <i *ngIf=\"!isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\"></i>\n <mat-icon *ngIf=\"isMaterialIcon\" [ngClass]=\"getClass()\" [ngStyle]=\"{'font-size': getFontSize()}\">{{this.name}}</mat-icon>\n</a>\n","import { Component, Input, EventEmitter, Output } from '@angular/core';\n\n@Component({\n selector: 'icon',\n templateUrl: 'icon.component.html',\n styleUrls: ['icon.component.scss']\n})\nexport class IconComponent {\n\n @Input() public name: any;\n @Input() public title: any;\n @Input() public type = 'primary';\n @Input() public size: any;\n @Input() public isMaterialIcon = false;\n @Input() public materialOutline = false;\n\n @Input() public routerLinkActive: any;\n @Input() public routerLink: any;\n\n @Input() public link: any;\n @Input() public target: any;\n @Input() public isActive: any;\n\n @Output() public onClick: EventEmitter<boolean> = new EventEmitter();\n\n public click(): void {\n this.onClick.emit(true);\n }\n\n getFontSize(): string {\n return this.size ? `${this.size}px` : 'inherit';\n }\n\n getClass(): any {\n const classValues: any = {};\n if (!this.isMaterialIcon) {\n classValues[this.name] = true;\n } else {\n classValues['material-icon'] = true;\n }\n if (this.materialOutline) {\n classValues['material-icons-outlined'] = true;\n }\n classValues[`apipass-icon-${this.type}`] = true;\n if (this.isActive) {\n classValues[`apipass-icon-${this.type}-active`] = true;\n }\n if (this.onClick?.observers?.length > 0) {\n classValues[`clickable`] = true;\n }\n return classValues;\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatTooltipModule} from '@angular/material/tooltip';\nimport {IconComponent} from './icon.component';\nimport {RouterModule} from '@angular/router';\n\n@NgModule({\n imports: [\n CommonModule,\n MatIconModule,\n MatTooltipModule,\n RouterModule.forChild([])\n ],\n declarations: [\n IconComponent\n ],\n exports: [\n IconComponent\n ],\n providers: []\n})\nexport class IconsModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i0.ɵɵelementStart","i0.ɵɵlistener","i0.ɵɵelementEnd","i0.ɵɵproperty","i0.ɵɵtext","i0.ɵɵadvance","i0.ɵɵtextInterpolate","i0.ɵɵelement","i0.ɵɵtemplate"],"mappings":";;;;;;;;;IAAAA,yBACyF;IAAtBC,4JAAiB;IAACC,cAAI;;;IAD9BC,4CAA0B,8BAAA,0DAAA;;;;IAGrFH,gCACoF;IAAlBC,0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