iptdevs-design-system 2.4.3 → 5.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/README.md +24 -24
- package/esm2020/iptdevs-design-system.mjs +4 -4
- package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
- package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
- package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
- package/esm2020/lib/components/atoms/input/input.component.mjs +137 -137
- package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
- package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
- package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
- package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
- package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
- package/esm2020/lib/components/components.module.mjs +108 -108
- package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
- package/esm2020/lib/components/material.module.mjs +18 -18
- package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +146 -146
- package/esm2020/lib/core/core.module.mjs +46 -46
- package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -0
- package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -0
- package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
- package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -0
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -0
- package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
- package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -0
- package/esm2020/lib/core/models/response/response.interface.mjs +2 -0
- package/esm2020/lib/core/models/session/session.model.mjs +3 -3
- package/esm2020/lib/core/models/student/student.interface.mjs +2 -0
- package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
- package/esm2020/lib/core/models/test/test.model.mjs +2 -2
- package/esm2020/lib/core/models/url/url.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
- package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
- package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -0
- package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
- package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -0
- package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -56
- package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
- package/esm2020/lib/core/services/notes-service/notes.service.mjs +40 -0
- package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +110 -110
- package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
- package/esm2020/lib/core/services/student-service/student.service.mjs +30 -0
- package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
- package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
- package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
- package/esm2020/lib/core/utils/base-service/base.service.mjs +153 -153
- package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
- package/esm2020/lib/design-system.module.mjs +36 -36
- package/esm2020/public-api.mjs +56 -45
- package/fesm2015/iptdevs-design-system.mjs +1782 -1657
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +1779 -1654
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/iptdevs-design-system.d.ts +5 -5
- package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
- package/lib/components/atoms/button/button.component.d.ts +13 -13
- package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
- package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
- package/lib/components/atoms/input/input.component.d.ts +24 -24
- package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
- package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
- package/lib/components/atoms/radio/radio.component.d.ts +11 -11
- package/lib/components/atoms/select/select.component.d.ts +24 -24
- package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
- package/lib/components/components.module.d.ts +22 -22
- package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
- package/lib/components/material.module.d.ts +10 -10
- package/lib/components/molecules/sidenav/sidenav.component.d.ts +22 -22
- package/lib/core/core.module.d.ts +6 -6
- package/lib/core/models/activities/activities.interface.d.ts +6 -0
- package/lib/core/models/attendance/attendance.interface.d.ts +44 -0
- package/lib/core/models/budget/budget.model.d.ts +69 -69
- package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -0
- package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
- package/lib/core/models/course/course-rq.model.d.ts +86 -78
- package/lib/core/models/cronogram/cronogram.models.d.ts +71 -0
- package/lib/core/models/marketing/marketing.model.d.ts +104 -104
- package/lib/core/models/notes/notes.interface.d.ts +59 -0
- package/lib/core/models/response/response.interface.d.ts +10 -0
- package/lib/core/models/session/session.model.d.ts +5 -5
- package/lib/core/models/student/student.interface.d.ts +4 -0
- package/lib/core/models/table/table-rs.model.d.ts +7 -7
- package/lib/core/models/test/test.model.d.ts +219 -219
- package/lib/core/models/url/url.model.d.ts +8 -8
- package/lib/core/models/user/user-rq.model.d.ts +91 -72
- package/lib/core/models/user/user-rs.model.d.ts +35 -35
- package/lib/core/services/attendance-service/attendance.service.d.ts +8 -0
- package/lib/core/services/budget-service/budget-service.d.ts +16 -16
- package/lib/core/services/calendar-service/calendar.service.d.ts +15 -0
- package/lib/core/services/course-service/course-service.model.d.ts +24 -19
- package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
- package/lib/core/services/notes-service/notes.service.d.ts +17 -0
- package/lib/core/services/parameters-service/parameters.service.d.ts +33 -33
- package/lib/core/services/storage-service/storage-service.d.ts +18 -18
- package/lib/core/services/student-service/student.service.d.ts +14 -0
- package/lib/core/services/switch-service/switch.service.d.ts +8 -8
- package/lib/core/services/test-service/test.service.d.ts +35 -35
- package/lib/core/services/user-service/user-service.d.ts +26 -26
- package/lib/core/utils/base-service/base.service.d.ts +18 -18
- package/lib/core/utils/route-service/route.service.d.ts +9 -9
- package/lib/design-system.module.d.ts +9 -9
- package/package.json +3 -3
- package/public-api.d.ts +47 -36
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/forms";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
export class DatalistComponent {
|
|
6
|
-
constructor(fb) {
|
|
7
|
-
this.disabledSel = false;
|
|
8
|
-
this.isChanged = new EventEmitter();
|
|
9
|
-
this.clicked = false;
|
|
10
|
-
}
|
|
11
|
-
optionChanged(event) {
|
|
12
|
-
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
13
|
-
if (typeof (selectOption) != 'undefined') {
|
|
14
|
-
this.isChanged.emit(selectOption.code);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
this.isChanged.emit('-1');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
click(value) {
|
|
21
|
-
this.clicked = value.isTrusted;
|
|
22
|
-
}
|
|
23
|
-
setDataListValue() {
|
|
24
|
-
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
25
|
-
if (typeof (selectOption) != 'undefined') {
|
|
26
|
-
return selectOption.name;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return '';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
get labelClass() {
|
|
33
|
-
return this.clicked === false ? 'label' : 'labelUp';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
38
|
-
<div class="input-container">
|
|
39
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
40
|
-
<input
|
|
41
|
-
type="text"
|
|
42
|
-
class="input"
|
|
43
|
-
(click)="click($event)"
|
|
44
|
-
[attr.list]="datalistId"
|
|
45
|
-
(change)="optionChanged($event)"
|
|
46
|
-
[disabled]="disabledSel"
|
|
47
|
-
[value]="setDataListValue()"
|
|
48
|
-
/>
|
|
49
|
-
|
|
50
|
-
<datalist id="{{ datalistId }}">
|
|
51
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
52
|
-
{{item.id_card}} {{item.name}}
|
|
53
|
-
</option>
|
|
54
|
-
</datalist>
|
|
55
|
-
</div>
|
|
56
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
58
|
-
type: Component,
|
|
59
|
-
args: [{ selector: 'ipt-datalist', template: `
|
|
60
|
-
<div class="input-container">
|
|
61
|
-
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
62
|
-
<input
|
|
63
|
-
type="text"
|
|
64
|
-
class="input"
|
|
65
|
-
(click)="click($event)"
|
|
66
|
-
[attr.list]="datalistId"
|
|
67
|
-
(change)="optionChanged($event)"
|
|
68
|
-
[disabled]="disabledSel"
|
|
69
|
-
[value]="setDataListValue()"
|
|
70
|
-
/>
|
|
71
|
-
|
|
72
|
-
<datalist id="{{ datalistId }}">
|
|
73
|
-
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
74
|
-
{{item.id_card}} {{item.name}}
|
|
75
|
-
</option>
|
|
76
|
-
</datalist>
|
|
77
|
-
</div>
|
|
78
|
-
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
79
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], datalistData: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], placeHolder: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], validateText: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], initalData: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], disabledSel: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], isChanged: [{
|
|
92
|
-
type: Output
|
|
93
|
-
}] } });
|
|
94
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export class DatalistComponent {
|
|
6
|
+
constructor(fb) {
|
|
7
|
+
this.disabledSel = false;
|
|
8
|
+
this.isChanged = new EventEmitter();
|
|
9
|
+
this.clicked = false;
|
|
10
|
+
}
|
|
11
|
+
optionChanged(event) {
|
|
12
|
+
let selectOption = this.datalistData.find(element => element.name == event.target.value);
|
|
13
|
+
if (typeof (selectOption) != 'undefined') {
|
|
14
|
+
this.isChanged.emit(selectOption.code);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.isChanged.emit('-1');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
click(value) {
|
|
21
|
+
this.clicked = value.isTrusted;
|
|
22
|
+
}
|
|
23
|
+
setDataListValue() {
|
|
24
|
+
let selectOption = this.datalistData.find(element => element.code == this.initalData);
|
|
25
|
+
if (typeof (selectOption) != 'undefined') {
|
|
26
|
+
return selectOption.name;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return '';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get labelClass() {
|
|
33
|
+
return this.clicked === false ? 'label' : 'labelUp';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
DatalistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: DatalistComponent, selector: "ipt-datalist", inputs: { datalistId: "datalistId", datalistData: "datalistData", placeHolder: "placeHolder", validateText: "validateText", initalData: "initalData", disabledSel: "disabledSel" }, outputs: { isChanged: "isChanged" }, ngImport: i0, template: `
|
|
38
|
+
<div class="input-container">
|
|
39
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
40
|
+
<input
|
|
41
|
+
type="text"
|
|
42
|
+
class="input"
|
|
43
|
+
(click)="click($event)"
|
|
44
|
+
[attr.list]="datalistId"
|
|
45
|
+
(change)="optionChanged($event)"
|
|
46
|
+
[disabled]="disabledSel"
|
|
47
|
+
[value]="setDataListValue()"
|
|
48
|
+
/>
|
|
49
|
+
|
|
50
|
+
<datalist id="{{ datalistId }}">
|
|
51
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
52
|
+
{{item.id_card}} {{item.name}}
|
|
53
|
+
</option>
|
|
54
|
+
</datalist>
|
|
55
|
+
</div>
|
|
56
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
|
|
58
|
+
type: Component,
|
|
59
|
+
args: [{ selector: 'ipt-datalist', template: `
|
|
60
|
+
<div class="input-container">
|
|
61
|
+
<label [ngClass]="labelClass">{{ placeHolder }}</label>
|
|
62
|
+
<input
|
|
63
|
+
type="text"
|
|
64
|
+
class="input"
|
|
65
|
+
(click)="click($event)"
|
|
66
|
+
[attr.list]="datalistId"
|
|
67
|
+
(change)="optionChanged($event)"
|
|
68
|
+
[disabled]="disabledSel"
|
|
69
|
+
[value]="setDataListValue()"
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
<datalist id="{{ datalistId }}">
|
|
73
|
+
<option *ngFor="let item of datalistData; index as i" [value]="item.name">
|
|
74
|
+
{{item.id_card}} {{item.name}}
|
|
75
|
+
</option>
|
|
76
|
+
</datalist>
|
|
77
|
+
</div>
|
|
78
|
+
`, styles: ["*{font-family:Poppins,sans-serif}.input-container{position:relative;margin-top:30px}.input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;margin:10px 10px -30px;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff}.input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}.label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.labelUp{color:#1c77f7;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
79
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { datalistId: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], datalistData: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], placeHolder: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], validateText: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], initalData: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], disabledSel: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], isChanged: [{
|
|
92
|
+
type: Output
|
|
93
|
+
}] } });
|
|
94
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vZGVzaWduLXN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvYXRvbXMvZGF0YWxpc3QvZGF0YWxpc3QuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQTRCLE1BQU0sZUFBZSxDQUF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xuICB9XHJcblxyXG4gIHB1YmxpYyBnZXQgbGFiZWxDbGFzcygpOiBzdHJpbmcge1xyXG4gICAgcmV0dXJuIHRoaXMuY2xpY2tlZCA9PT0gZmFsc2UgPyAnbGFiZWwnIDogJ2xhYmVsVXAnO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "ng2-currency-mask";
|
|
6
|
-
export class InputComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.data = [];
|
|
9
|
-
this.clicked = false;
|
|
10
|
-
this.withPipe = false;
|
|
11
|
-
this.prefix = '$';
|
|
12
|
-
this.thousands = '.';
|
|
13
|
-
this.decimal = ',';
|
|
14
|
-
}
|
|
15
|
-
set control(value) {
|
|
16
|
-
if (this.formControl !== value) {
|
|
17
|
-
this.formControl = value;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
ngOnInit() { }
|
|
21
|
-
click(value) {
|
|
22
|
-
this.clicked = value.isTrusted;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, ngImport: i0, template: `
|
|
27
|
-
<div class="input-container">
|
|
28
|
-
<input *ngIf="inputType === 'date'"
|
|
29
|
-
class="input"
|
|
30
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
31
|
-
[formControl]="formControl"
|
|
32
|
-
onfocus="this.type='date';"
|
|
33
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
34
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
35
|
-
ng-model="inputType"/>
|
|
36
|
-
|
|
37
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
38
|
-
class="input"
|
|
39
|
-
type="{{ inputType }}"
|
|
40
|
-
[formControl]="formControl"
|
|
41
|
-
[attr.list]="list"/>
|
|
42
|
-
|
|
43
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
44
|
-
class="input"
|
|
45
|
-
currencyMask
|
|
46
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
47
|
-
type="{{ inputType }}"
|
|
48
|
-
[formControl]="formControl"
|
|
49
|
-
[attr.list]="list"/>
|
|
50
|
-
|
|
51
|
-
<input *ngIf="inputType === 'time'"
|
|
52
|
-
class="input"
|
|
53
|
-
type="time"
|
|
54
|
-
[formControl]="formControl"
|
|
55
|
-
[min]="'06:00:00'"
|
|
56
|
-
max="22:00:00"
|
|
57
|
-
step="900"
|
|
58
|
-
autocomplete="on"
|
|
59
|
-
value="08:00:00"
|
|
60
|
-
(click)="click($event)"
|
|
61
|
-
/>
|
|
62
|
-
|
|
63
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
64
|
-
|
|
65
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
66
|
-
{{ validateText }}
|
|
67
|
-
</p>
|
|
68
|
-
</div>
|
|
69
|
-
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
71
|
-
type: Component,
|
|
72
|
-
args: [{ selector: 'ipt-input', template: `
|
|
73
|
-
<div class="input-container">
|
|
74
|
-
<input *ngIf="inputType === 'date'"
|
|
75
|
-
class="input"
|
|
76
|
-
type="{{ inputType ? 'text' : 'date' }}"
|
|
77
|
-
[formControl]="formControl"
|
|
78
|
-
onfocus="this.type='date';"
|
|
79
|
-
onblur="javascript: if( !this.value ) this.type='text';"
|
|
80
|
-
uib-datepicker-popup="dd/MM/yyyy"
|
|
81
|
-
ng-model="inputType"/>
|
|
82
|
-
|
|
83
|
-
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
84
|
-
class="input"
|
|
85
|
-
type="{{ inputType }}"
|
|
86
|
-
[formControl]="formControl"
|
|
87
|
-
[attr.list]="list"/>
|
|
88
|
-
|
|
89
|
-
<input *ngIf="inputType === 'text' && withPipe"
|
|
90
|
-
class="input"
|
|
91
|
-
currencyMask
|
|
92
|
-
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
93
|
-
type="{{ inputType }}"
|
|
94
|
-
[formControl]="formControl"
|
|
95
|
-
[attr.list]="list"/>
|
|
96
|
-
|
|
97
|
-
<input *ngIf="inputType === 'time'"
|
|
98
|
-
class="input"
|
|
99
|
-
type="time"
|
|
100
|
-
[formControl]="formControl"
|
|
101
|
-
[min]="'06:00:00'"
|
|
102
|
-
max="22:00:00"
|
|
103
|
-
step="900"
|
|
104
|
-
autocomplete="on"
|
|
105
|
-
value="08:00:00"
|
|
106
|
-
(click)="click($event)"
|
|
107
|
-
/>
|
|
108
|
-
|
|
109
|
-
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
110
|
-
|
|
111
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
112
|
-
{{ validateText }}
|
|
113
|
-
</p>
|
|
114
|
-
</div>
|
|
115
|
-
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
116
|
-
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
117
|
-
type: Input
|
|
118
|
-
}], placeHolder: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], validateText: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], withPipe: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], list: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], iconUrl: [{
|
|
127
|
-
type: Input
|
|
128
|
-
}], control: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], prefix: [{
|
|
131
|
-
type: Input
|
|
132
|
-
}], thousands: [{
|
|
133
|
-
type: Input
|
|
134
|
-
}], decimal: [{
|
|
135
|
-
type: Input
|
|
136
|
-
}] } });
|
|
137
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "ng2-currency-mask";
|
|
6
|
+
export class InputComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.data = [];
|
|
9
|
+
this.clicked = false;
|
|
10
|
+
this.withPipe = false;
|
|
11
|
+
this.prefix = '$';
|
|
12
|
+
this.thousands = '.';
|
|
13
|
+
this.decimal = ',';
|
|
14
|
+
}
|
|
15
|
+
set control(value) {
|
|
16
|
+
if (this.formControl !== value) {
|
|
17
|
+
this.formControl = value;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() { }
|
|
21
|
+
click(value) {
|
|
22
|
+
this.clicked = value.isTrusted;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: InputComponent, selector: "ipt-input", inputs: { inputType: "inputType", placeHolder: "placeHolder", validateText: "validateText", withPipe: "withPipe", list: "list", iconUrl: "iconUrl", control: "control", prefix: "prefix", thousands: "thousands", decimal: "decimal" }, ngImport: i0, template: `
|
|
27
|
+
<div class="input-container">
|
|
28
|
+
<input *ngIf="inputType === 'date'"
|
|
29
|
+
class="input"
|
|
30
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
31
|
+
[formControl]="formControl"
|
|
32
|
+
onfocus="this.type='date';"
|
|
33
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
34
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
35
|
+
ng-model="inputType"/>
|
|
36
|
+
|
|
37
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
38
|
+
class="input"
|
|
39
|
+
type="{{ inputType }}"
|
|
40
|
+
[formControl]="formControl"
|
|
41
|
+
[attr.list]="list"/>
|
|
42
|
+
|
|
43
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
44
|
+
class="input"
|
|
45
|
+
currencyMask
|
|
46
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
47
|
+
type="{{ inputType }}"
|
|
48
|
+
[formControl]="formControl"
|
|
49
|
+
[attr.list]="list"/>
|
|
50
|
+
|
|
51
|
+
<input *ngIf="inputType === 'time'"
|
|
52
|
+
class="input"
|
|
53
|
+
type="time"
|
|
54
|
+
[formControl]="formControl"
|
|
55
|
+
[min]="'06:00:00'"
|
|
56
|
+
max="22:00:00"
|
|
57
|
+
step="900"
|
|
58
|
+
autocomplete="on"
|
|
59
|
+
value="08:00:00"
|
|
60
|
+
(click)="click($event)"
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
64
|
+
|
|
65
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
66
|
+
{{ validateText }}
|
|
67
|
+
</p>
|
|
68
|
+
</div>
|
|
69
|
+
`, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.CurrencyMaskDirective, selector: "[currencyMask]", inputs: ["max", "min", "options"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ selector: 'ipt-input', template: `
|
|
73
|
+
<div class="input-container">
|
|
74
|
+
<input *ngIf="inputType === 'date'"
|
|
75
|
+
class="input"
|
|
76
|
+
type="{{ inputType ? 'text' : 'date' }}"
|
|
77
|
+
[formControl]="formControl"
|
|
78
|
+
onfocus="this.type='date';"
|
|
79
|
+
onblur="javascript: if( !this.value ) this.type='text';"
|
|
80
|
+
uib-datepicker-popup="dd/MM/yyyy"
|
|
81
|
+
ng-model="inputType"/>
|
|
82
|
+
|
|
83
|
+
<input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
|
|
84
|
+
class="input"
|
|
85
|
+
type="{{ inputType }}"
|
|
86
|
+
[formControl]="formControl"
|
|
87
|
+
[attr.list]="list"/>
|
|
88
|
+
|
|
89
|
+
<input *ngIf="inputType === 'text' && withPipe"
|
|
90
|
+
class="input"
|
|
91
|
+
currencyMask
|
|
92
|
+
[options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
|
|
93
|
+
type="{{ inputType }}"
|
|
94
|
+
[formControl]="formControl"
|
|
95
|
+
[attr.list]="list"/>
|
|
96
|
+
|
|
97
|
+
<input *ngIf="inputType === 'time'"
|
|
98
|
+
class="input"
|
|
99
|
+
type="time"
|
|
100
|
+
[formControl]="formControl"
|
|
101
|
+
[min]="'06:00:00'"
|
|
102
|
+
max="22:00:00"
|
|
103
|
+
step="900"
|
|
104
|
+
autocomplete="on"
|
|
105
|
+
value="08:00:00"
|
|
106
|
+
(click)="click($event)"
|
|
107
|
+
/>
|
|
108
|
+
|
|
109
|
+
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
110
|
+
|
|
111
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '') || formControl.touched">
|
|
112
|
+
{{ validateText }}
|
|
113
|
+
</p>
|
|
114
|
+
</div>
|
|
115
|
+
`, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){p{color:#c73a3a;font-size:12px;padding-left:15px}}@media screen and (min-width: 768px){p{color:#c73a3a;font-size:13px;padding-left:15px}}@media screen and (min-width: 1024px){p{color:#c73a3a;font-size:13px;padding-left:15px}}.input-container{position:relative;margin-top:30px}input{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;display:block;transition:.2s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;padding-left:10px;background-color:#fff;-webkit-appearance:none}input:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}input:focus{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px;transition:0s;border:1.5px solid #1c77f7}label{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:7px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}.input:focus~label,.input:invalid~label{top:-20px;font-size:15px;color:#1c77f7}.labelUp{color:#999;font-size:15px;font-weight:400;position:absolute;pointer-events:none;left:20px;top:-20px;transition:.2s ease all;-moz-transition:.2s ease all;-webkit-transition:.2s ease all}\n"] }]
|
|
116
|
+
}], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], placeHolder: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], validateText: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], withPipe: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], list: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], iconUrl: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], control: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], prefix: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], thousands: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], decimal: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}] } });
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vZGVzaWduLXN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvYXRvbXMvaW5wdXQvaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFxRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFvRHBILE1BQU0sT0FBTyxjQUFjO0lBdUJ6QjtRQXBCQSxTQUFJLEdBQVUsRUFBRSxDQUFDO1FBRWpCLFlBQU8sR0FBWSxLQUFLLENBQUM7UUFLaEIsYUFBUSxHQUFhLEtBQUssQ0FBQztRQVMzQixXQUFNLEdBQVcsR0FBRyxDQUFDO1FBQ3JCLGNBQVMsR0FBVyxHQUFHLENBQUM7UUFDeEIsWUFBTyxHQUFXLEdBQUcsQ0FBQztJQUVoQixDQUFDO0lBVmhCLElBQWEsT0FBTyxDQUFDLEtBQStCO1FBQ2xELElBQ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