@acorex/components 17.1.2 → 17.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/common/lib/classes/components.class.d.ts +3 -2
- package/common/lib/components/value-component.class.d.ts +2 -1
- package/esm2022/collapse/lib/collapse-group.component.mjs +11 -9
- package/esm2022/common/lib/classes/components.class.mjs +1 -1
- package/esm2022/common/lib/components/selection-base.component.class.mjs +2 -2
- package/esm2022/common/lib/components/value-component.class.mjs +5 -2
- package/esm2022/form/lib/form-field.component.mjs +1 -2
- package/esm2022/form/lib/form.component.mjs +7 -4
- package/esm2022/number-box/lib/number-box.component.mjs +8 -28
- package/esm2022/otp/lib/otp.component.mjs +3 -3
- package/esm2022/select-box/lib/select-box.component.mjs +17 -11
- package/fesm2022/acorex-components-collapse.mjs +9 -7
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +5 -2
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +6 -4
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +7 -27
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +2 -2
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +16 -10
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/form/lib/form.component.d.ts +2 -1
- package/number-box/lib/number-box.component.d.ts +1 -1
- package/otp/lib/otp.component.d.ts +1 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
|
+
import { AXValidationRuleOptions, AXValidationSummary } from '@acorex/core/validation';
|
1
2
|
import { EventEmitter } from '@angular/core';
|
2
3
|
import { AXEvent, AXValueChangedEvent } from './events.class';
|
3
|
-
import { AXValidationRuleOptions, AXValidationSummary } from '@acorex/core/validation';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare const TAB_META_KEY = "__meta__";
|
6
6
|
export declare class AXComponentCloseEvent extends AXEvent {
|
@@ -58,7 +58,8 @@ export declare abstract class AXValuableComponent extends AXComponent {
|
|
58
58
|
abstract addValidationRule(rule: AXFormValidationRule): any;
|
59
59
|
abstract removeValidationRule(rule: AXFormValidationRule): any;
|
60
60
|
abstract validate(): Promise<AXValidationSummary>;
|
61
|
-
abstract
|
61
|
+
abstract reset(e: boolean): void;
|
62
|
+
abstract resetErrors(): void;
|
62
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXValuableComponent, never>;
|
63
64
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXValuableComponent>;
|
64
65
|
}
|
@@ -61,7 +61,8 @@ export declare class MXValueComponent<T = any> extends MXInteractiveComponent im
|
|
61
61
|
registerOnChange(fn: (value: T) => void): void;
|
62
62
|
writeValue(value: T): void;
|
63
63
|
commitValue(value: T, u?: boolean): void;
|
64
|
-
|
64
|
+
reset(e?: boolean): void;
|
65
|
+
resetErrors(): void;
|
65
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<MXValueComponent<any>, never>;
|
66
67
|
static ɵprov: i0.ɵɵInjectableDeclaration<MXValueComponent<any>>;
|
67
68
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MXBaseComponent, MXLookComponent, MXLookableComponent
|
1
|
+
import { MXBaseComponent, MXLookComponent, MXLookableComponent } from '@acorex/components/common';
|
2
2
|
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, HostBinding, Input, Output, QueryList, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import { classes } from 'polytype';
|
4
4
|
import { AXCollapseComponent } from './collapse.component';
|
@@ -23,10 +23,12 @@ export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookCom
|
|
23
23
|
name: 'accordion',
|
24
24
|
value,
|
25
25
|
afterCallback: (oldValue, newValue) => {
|
26
|
-
if (newValue)
|
26
|
+
if (newValue) {
|
27
27
|
this.applyAccordion();
|
28
|
-
|
28
|
+
}
|
29
|
+
else {
|
29
30
|
this.removeAccordion();
|
31
|
+
}
|
30
32
|
},
|
31
33
|
});
|
32
34
|
}
|
@@ -55,13 +57,15 @@ export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookCom
|
|
55
57
|
});
|
56
58
|
}
|
57
59
|
ngAfterViewInit() {
|
58
|
-
this.
|
60
|
+
if (this.accordion) {
|
61
|
+
this.applyAccordion();
|
62
|
+
}
|
59
63
|
}
|
60
64
|
applyAccordion() {
|
61
65
|
if (!this.look)
|
62
66
|
return;
|
63
67
|
if (this._items && this._items.length > 1) {
|
64
|
-
const activeIndex = this._items.get(this.activeIndex) || this._items
|
68
|
+
const activeIndex = this._items.get(this.activeIndex) || this._items.get(0);
|
65
69
|
this._items.forEach((c) => (c.isCollapsed = true));
|
66
70
|
if (activeIndex)
|
67
71
|
activeIndex.isCollapsed = false;
|
@@ -72,9 +76,7 @@ export class AXCollapseGroupComponent extends classes(MXBaseComponent, MXLookCom
|
|
72
76
|
c1.onClick.subscribe((e) => {
|
73
77
|
if (!e.handled) {
|
74
78
|
this._activeIndex = list.indexOf(c1);
|
75
|
-
list
|
76
|
-
.filter((c2) => c2 != c1)
|
77
|
-
.forEach((c) => (c.isCollapsed = true));
|
79
|
+
list.filter((c2) => c2 != c1).forEach((c) => (c.isCollapsed = true));
|
78
80
|
}
|
79
81
|
}));
|
80
82
|
});
|
@@ -128,4 +130,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
128
130
|
type: HostBinding,
|
129
131
|
args: ['class']
|
130
132
|
}] } });
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
133
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFwc2UtZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbGxhcHNlL3NyYy9saWIvY29sbGFwc2UtZ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JzY3JpYmUoKGUpID0+IHtcbiAgICAgICAgICAgIGlmICghZS5oYW5kbGVkKSB7XG4gICAgICAgICAgICAgIHRoaXMuX2FjdGl2ZUluZGV4ID0gbGlzdC5pbmRleE9mKGMxKTtcbiAgICAgICAgICAgICAgbGlzdC5maWx0ZXIoKGMyKSA9PiBjMiAhPSBjMSkuZm9yRWFjaCgoYykgPT4gKGMuaXNDb2xsYXBzZWQgPSB0cnVlKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSksXG4gICAgICAgICk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIHJlbW92ZUFjY29yZGlvbigpIHtcbiAgICB0aGlzLl9zdWJzLmZvckVhY2goKHMpID0+IHMudW5zdWJzY3JpYmUoKSk7XG4gICAgdGhpcy5fc3VicyA9IFtdO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5yZW1vdmVBY2NvcmRpb24oKTtcbiAgfVxuXG4gIEBIb3N0QmluZGluZygnY2xhc3MnKVxuICBwcml2YXRlIGdldCBfX2hvc3RDbGFzcygpOiBzdHJpbmdbXSB7XG4gICAgcmV0dXJuIFsnYXgtY29sbGFwc2UtZ3JvdXAnLCBgYXgtbG9vay0ke3RoaXMubG9va31gXTtcbiAgfVxufVxuIl19
|
@@ -73,4 +73,4 @@ export class AXPagedComponent extends AXComponent {
|
|
73
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPagedComponent, decorators: [{
|
74
74
|
type: Injectable
|
75
75
|
}] });
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy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OiBudW1iZXI7XG4gIGFic3RyYWN0IG9uUGFnZUNoYW5nZWQ6IEV2ZW50RW1pdHRlcjxBWFZhbHVlQ2hhbmdlZEV2ZW50PG51bWJlcj4+O1xufVxuIl19
|
@@ -58,7 +58,7 @@ export class MXSelectionValueComponent extends MXValueComponent {
|
|
58
58
|
name: 'multiple',
|
59
59
|
value: v,
|
60
60
|
afterCallback: () => {
|
61
|
-
this.
|
61
|
+
this.reset(false);
|
62
62
|
},
|
63
63
|
});
|
64
64
|
}
|
@@ -193,4 +193,4 @@ export class MXSelectionValueComponent extends MXValueComponent {
|
|
193
193
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionValueComponent, decorators: [{
|
194
194
|
type: Injectable
|
195
195
|
}] });
|
196
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWJhc2UuY29tcG9uZW50LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL2NvbXBvbmVudHMvc2VsZWN0aW9uLWJhc2UuY29tcG9uZW50LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzlELE9BQU8sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQzs7QUFHM0QsTUFBTSxPQUFPLHdCQUF3QjtJQURyQztRQUVTLGtCQUFhLEdBQWMsRUFBRSxDQUFDO1FBQzlCLGNBQVMsR0FBd0MsRUFBRSxDQUFDO0tBQzVEOzhHQUh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kgPT09IHRydWUgfHxcbiAgICAgICh0aGlzLmRpc2FibGVkQ2FsbGJhY2sgPyB0aGlzLmRpc2FibGVkQ2FsbGJhY2soeyBpdGVtLCBpbmRleDogLTEgfSkgOiBmYWxzZSlcbiAgICApO1xuICB9XG5cbiAgcHJvdGVjdGVkIGdldERpc3BsYXlUZXh0KGl0ZW06IFQpIHtcbiAgICBjb25zdCBub3JtYWxpemVJdGVtID0gdGhpcy5ub3JtYWxpemVJdGVtKGl0ZW0pIGFzIGFueTtcbiAgICByZXR1cm4gbm9ybWFsaXplSXRlbVt0aGlzLnRleHRGaWVsZF0gfHwgbm9ybWFsaXplSXRlbVt0aGlzLnZhbHVlRmllbGRdO1xuICB9XG5cbiAgcHJvdGVjdGVkIGdldFZhbHVlKGl0ZW06IFQpIHtcbiAgICBjb25zdCBub3JtYWxpemVJdGVtID0gdGhpcy5ub3JtYWxpemVJdGVtKGl0ZW0pIGFzIGFueTtcbiAgICByZXR1cm4gbm9ybWFsaXplSXRlbVt0aGlzLnZhbHVlRmllbGRdO1xuICB9XG5cbiAgcHJvdGVjdGVkIGNsZWFyU2VsZWN0aW9uQ2FjaGUoKSB7XG4gICAgdGhpcy5kYXRhU2VydmljZS5jYWNoZUxpc3QgPSB7fTtcbiAgICB0aGlzLmRhdGFTZXJ2aWNlLnNlbGVjdGVkSXRlbXMgPSBbXTtcbiAgfVxufVxuIl19
|
@@ -211,13 +211,16 @@ export class MXValueComponent extends MXInteractiveComponent {
|
|
211
211
|
}
|
212
212
|
this.writeValue(value);
|
213
213
|
}
|
214
|
-
|
214
|
+
reset(e = false) {
|
215
215
|
this.commitValue(null, e);
|
216
216
|
}
|
217
|
+
resetErrors() {
|
218
|
+
this.setState('clear');
|
219
|
+
}
|
217
220
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
218
221
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent }); }
|
219
222
|
}
|
220
223
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent, decorators: [{
|
221
224
|
type: Injectable
|
222
225
|
}] });
|
223
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtY29tcG9uZW50LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2NvbW1vbi9zcmMvbGliL2NvbXBvbmVudHMvdmFsdWUtY29tcG9uZW50LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUNsRCxPQUFPLEVBQUUsbUJBQW1CLEVBQXVCLE1BQU0seUJBQXlCLENBQUM7QUFDbkYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpFLE9BQU8sRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQzNDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFJNUIsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sK0JBQStCLENBQUM7O0FBR3ZFLE1BQU0sT0FBTyxnQkFBMEIsU0FBUSxzQkFBc0I7SUFEckU7O1FBRUU7OztXQUdHO1FBQ0gsbUJBQWMsR0FBMkMsSUFBSSxZQUFZLEVBQTRCLENBQUM7UUFFdEc7O1dBRUc7UUFDSCxnQkFBVyxHQU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N0aW9uID0gdHJ1ZTtcbiAgICB9XG4gICAgdGhpcy53cml0ZVZhbHVlKHZhbHVlKTtcbiAgfVxuXG4gIHJlc2V0KGUgPSBmYWxzZSkge1xuICAgIHRoaXMuY29tbWl0VmFsdWUobnVsbCwgZSk7XG4gIH1cblxuICByZXNldEVycm9ycygpIHtcbiAgICB0aGlzLnNldFN0YXRlKCdjbGVhcicpO1xuICB9XG59XG4iXX0=
|
@@ -20,7 +20,6 @@ export class AXFormFieldComponent extends MXBaseComponent {
|
|
20
20
|
});
|
21
21
|
effect(() => {
|
22
22
|
this.setLabelMode();
|
23
|
-
console.log('setLabelMode');
|
24
23
|
}, { allowSignalWrites: true });
|
25
24
|
}
|
26
25
|
calcIndentSize() {
|
@@ -89,4 +88,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
89
88
|
type: HostBinding,
|
90
89
|
args: ['class']
|
91
90
|
}] } });
|
92
|
-
//# sourceMappingURL=data:application/json;base64,
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZm9ybS9zcmMvbGliL2Zvcm0tZmllbGQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxlQUFlLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNqRixPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUM1RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDcEQsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLFdBQVcsRU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N0RWxlbWVudCgpLnN0eWxlLmluc2V0SW5saW5lU3RhcnQgPSAnaW5oZXJpdCc7XG5cbiAgLy8gICAgICAgYnJlYWs7XG4gIC8vICAgICBjYXNlICdibHVyJzpcbiAgLy8gICAgICAgX2hvc3QuY2xhc3NMaXN0LnJlbW92ZSgnYXgtc3RhdGUtZmxvYXRpbmcnKTtcblxuICAvLyAgICAgICBicmVhaztcbiAgLy8gICB9XG4gIC8vIH1cblxuICBwcml2YXRlIGF1dG9TZXRSZXF1aXJlZCgpIHtcbiAgICBpZiAodGhpcy5sYWJlbCAmJiB0aGlzLmlucHV0KSB7XG4gICAgICBpZiAodGhpcy5sYWJlbC5yZXF1aXJlZCA9PSBudWxsIHx8IHRoaXMubGFiZWxbJ2F1dG9TZXRSZXF1aXJlZCddKSB7XG4gICAgICAgIHRoaXMubGFiZWwucmVxdWlyZWQgPSB0aGlzLmlucHV0LmlzUmVxdWlyZWQ7XG4gICAgICAgIHRoaXMubGFiZWxbJ2F1dG9TZXRSZXF1aXJlZCddID0gdHJ1ZTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBASG9zdEJpbmRpbmcoJ2NsYXNzJylcbiAgZ2V0IF9faG9zdENsYXNzKCk6IHN0cmluZ1tdIHtcbiAgICByZXR1cm4gW2BheC1zdGF0ZS0ke3RoaXMuX2xhYmVsTW9kZSgpfS1sYWJlbGAsIGAke3RoaXMuaW5wdXQudmFsdWUgPyAnYXgtc3RhdGUtaGFzLXZhbHVlJyA6ICcnfWBdO1xuICB9XG59XG4iXX0=
|
@@ -30,7 +30,7 @@ export class AXFormComponent extends MXBaseComponent {
|
|
30
30
|
await this.validate();
|
31
31
|
}
|
32
32
|
_handleReset() {
|
33
|
-
this.
|
33
|
+
this.reset();
|
34
34
|
}
|
35
35
|
constructor() {
|
36
36
|
super();
|
@@ -91,8 +91,11 @@ export class AXFormComponent extends MXBaseComponent {
|
|
91
91
|
htmlElement: this.getHostElement(),
|
92
92
|
});
|
93
93
|
}
|
94
|
-
|
95
|
-
this.fields.forEach((c) => c.
|
94
|
+
reset() {
|
95
|
+
this.fields.forEach((c) => c.reset(false));
|
96
|
+
}
|
97
|
+
resetErrors() {
|
98
|
+
this.fields.forEach((c) => c.resetErrors());
|
96
99
|
}
|
97
100
|
ngOnDestroy() {
|
98
101
|
this._clearSubs();
|
@@ -119,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImpor
|
|
119
122
|
}], updateOn: [{
|
120
123
|
type: Input
|
121
124
|
}] } });
|
122
|
-
//# sourceMappingURL=data:application/json;base64,
|
125
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvZm9ybS9zcmMvbGliL2Zvcm0uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQXVCLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRTFGLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUNOLGlCQUFpQixFQUNqQixLQUFLLEdBQ04sTUFBTSxlQUFlLENBQUM7O0FBR3ZCOzs7R0FHRztBQUNILE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxPQUFPO0NBRWpEO0FBVUQ7Ozs7R0FJRztBQVNILE1BQU0sT0FBTyxlQUFnQixTQUFRLGVBQWU7SUFZbEQsSUFDVyxRQUFRO1FBQ2pCLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQztJQUN4QixDQUFDO0lBQ0QsSUFBVyxRQUFRLENBQUMsQ0FBaUI7UUFDbkMsSUFBSSxDQUFDLFNBQVMsQ0FBQztZQUN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