iptdevs-design-system 2.6.56 → 2.7.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.
Files changed (118) hide show
  1. package/README.md +24 -24
  2. package/esm2020/iptdevs-design-system.mjs +4 -4
  3. package/esm2020/lib/components/atoms/aside-button/aside-button.component.mjs +50 -50
  4. package/esm2020/lib/components/atoms/button/button.component.mjs +64 -64
  5. package/esm2020/lib/components/atoms/checkbox/checkbox.component.mjs +47 -47
  6. package/esm2020/lib/components/atoms/datalist/datalist.component.mjs +94 -94
  7. package/esm2020/lib/components/atoms/input/input.component.mjs +145 -145
  8. package/esm2020/lib/components/atoms/level-button/level-button.component.mjs +64 -64
  9. package/esm2020/lib/components/atoms/level-text/level-text.component.mjs +19 -19
  10. package/esm2020/lib/components/atoms/loader/loader.component.mjs +48 -48
  11. package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
  12. package/esm2020/lib/components/atoms/select/select.component.mjs +102 -102
  13. package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
  14. package/esm2020/lib/components/components.module.mjs +118 -118
  15. package/esm2020/lib/components/forms/create-user-form/create-user-form.component.mjs +228 -228
  16. package/esm2020/lib/components/forms/login-form/login-form.component.mjs +93 -93
  17. package/esm2020/lib/components/material.module.mjs +19 -19
  18. package/esm2020/lib/components/molecules/sidenav/sidenav.component.mjs +150 -150
  19. package/esm2020/lib/core/core.module.mjs +52 -52
  20. package/esm2020/lib/core/models/activities/activities.interface.mjs +2 -2
  21. package/esm2020/lib/core/models/attendance/attendance.interface.mjs +2 -2
  22. package/esm2020/lib/core/models/budget/budget.model.mjs +2 -2
  23. package/esm2020/lib/core/models/calendar/calendar-rq.models.mjs +2 -2
  24. package/esm2020/lib/core/models/classroom/classroom-rq.model.mjs +2 -2
  25. package/esm2020/lib/core/models/cod/cod-rq.model.mjs +2 -2
  26. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
  27. package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
  28. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  29. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
  30. package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
  31. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  32. package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
  33. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
  34. package/esm2020/lib/core/models/test/test.model.mjs +2 -2
  35. package/esm2020/lib/core/models/url/url.model.mjs +2 -2
  36. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
  37. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
  38. package/esm2020/lib/core/services/activity-service/activity.service.mjs +87 -92
  39. package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +64 -69
  40. package/esm2020/lib/core/services/budget-service/budget-service.mjs +36 -41
  41. package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +55 -59
  42. package/esm2020/lib/core/services/classroom-service/classroom-service.service.mjs +31 -36
  43. package/esm2020/lib/core/services/course-service/course-service.model.mjs +70 -75
  44. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +52 -57
  45. package/esm2020/lib/core/services/notes-service/notes.service.mjs +46 -50
  46. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +117 -114
  47. package/esm2020/lib/core/services/service-enviroments.mjs +26 -0
  48. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
  49. package/esm2020/lib/core/services/student-service/student.service.mjs +26 -30
  50. package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
  51. package/esm2020/lib/core/services/test-service/test.service.mjs +131 -136
  52. package/esm2020/lib/core/services/user-service/user-service.mjs +80 -86
  53. package/esm2020/lib/core/utils/base-service/base.service.mjs +186 -186
  54. package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
  55. package/esm2020/lib/design-system.module.mjs +36 -36
  56. package/esm2020/public-api.mjs +61 -61
  57. package/fesm2015/iptdevs-design-system.mjs +2278 -2309
  58. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  59. package/fesm2020/iptdevs-design-system.mjs +2275 -2306
  60. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  61. package/iptdevs-design-system.d.ts +5 -5
  62. package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
  63. package/lib/components/atoms/button/button.component.d.ts +13 -13
  64. package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
  65. package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
  66. package/lib/components/atoms/input/input.component.d.ts +26 -26
  67. package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
  68. package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
  69. package/lib/components/atoms/loader/loader.component.d.ts +7 -7
  70. package/lib/components/atoms/radio/radio.component.d.ts +11 -11
  71. package/lib/components/atoms/select/select.component.d.ts +26 -26
  72. package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
  73. package/lib/components/components.module.d.ts +24 -24
  74. package/lib/components/forms/create-user-form/create-user-form.component.d.ts +36 -36
  75. package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
  76. package/lib/components/material.module.d.ts +11 -11
  77. package/lib/components/molecules/sidenav/sidenav.component.d.ts +25 -25
  78. package/lib/core/core.module.d.ts +6 -6
  79. package/lib/core/models/activities/activities.interface.d.ts +12 -12
  80. package/lib/core/models/attendance/attendance.interface.d.ts +62 -62
  81. package/lib/core/models/budget/budget.model.d.ts +69 -69
  82. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -27
  83. package/lib/core/models/classroom/classroom-rq.model.d.ts +18 -18
  84. package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
  85. package/lib/core/models/course/course-rq.model.d.ts +86 -86
  86. package/lib/core/models/cronogram/cronogram.models.d.ts +183 -183
  87. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  88. package/lib/core/models/notes/notes.interface.d.ts +89 -89
  89. package/lib/core/models/response/response.interface.d.ts +10 -10
  90. package/lib/core/models/session/session.model.d.ts +5 -5
  91. package/lib/core/models/student/student.interface.d.ts +4 -4
  92. package/lib/core/models/table/table-rs.model.d.ts +7 -7
  93. package/lib/core/models/test/test.model.d.ts +219 -219
  94. package/lib/core/models/url/url.model.d.ts +8 -8
  95. package/lib/core/models/user/user-rq.model.d.ts +86 -86
  96. package/lib/core/models/user/user-rs.model.d.ts +35 -35
  97. package/lib/core/services/activity-service/activity.service.d.ts +25 -26
  98. package/lib/core/services/attendance-service/attendance.service.d.ts +22 -23
  99. package/lib/core/services/budget-service/budget-service.d.ts +15 -16
  100. package/lib/core/services/calendar-service/calendar.service.d.ts +21 -22
  101. package/lib/core/services/classroom-service/classroom-service.service.d.ts +14 -15
  102. package/lib/core/services/course-service/course-service.model.d.ts +23 -24
  103. package/lib/core/services/marketing-service/marketing-service.d.ts +19 -20
  104. package/lib/core/services/notes-service/notes.service.d.ts +18 -19
  105. package/lib/core/services/parameters-service/parameters.service.d.ts +35 -34
  106. package/lib/core/services/service-enviroments.d.ts +5 -0
  107. package/lib/core/services/storage-service/storage-service.d.ts +18 -18
  108. package/lib/core/services/student-service/student.service.d.ts +13 -14
  109. package/lib/core/services/switch-service/switch.service.d.ts +8 -8
  110. package/lib/core/services/test-service/test.service.d.ts +34 -35
  111. package/lib/core/services/user-service/user-service.d.ts +25 -26
  112. package/lib/core/utils/base-service/base.service.d.ts +22 -22
  113. package/lib/core/utils/route-service/route.service.d.ts +9 -9
  114. package/lib/design-system.module.d.ts +9 -9
  115. package/package.json +1 -1
  116. package/public-api.d.ts +52 -52
  117. package/environments/environment.d.ts +0 -5
  118. package/esm2020/environments/environment.mjs +0 -6
@@ -20,2389 +20,2358 @@ import { MatIconModule } from '@angular/material/icon';
20
20
  import { MatButtonModule } from '@angular/material/button';
21
21
  import * as i1$3 from '@angular/router';
22
22
 
23
- class AsideButtonComponent {
24
- constructor() {
25
- this.isClicked = new EventEmitter();
26
- }
27
- clickAction() {
28
- this.isClicked.emit(true);
29
- }
30
- }
31
- AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
- AsideButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: AsideButtonComponent, selector: "ipt-aside-button", inputs: { icon: "icon", text: "text", buttonActive: "buttonActive" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
33
- <div [ngSwitch]="buttonActive">
34
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
35
- <img src="{{ icon }}" alt="icon_url" />
36
- <p>{{ text }}</p>
37
- </a>
38
-
39
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
40
- <img src="{{ icon }}" alt="icon_url" />
41
- <p>{{ text }}</p>
42
- </a>
43
- </div>
44
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
46
- type: Component,
47
- args: [{ selector: 'ipt-aside-button', template: `
48
- <div [ngSwitch]="buttonActive">
49
- <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
50
- <img src="{{ icon }}" alt="icon_url" />
51
- <p>{{ text }}</p>
52
- </a>
53
-
54
- <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
55
- <img src="{{ icon }}" alt="icon_url" />
56
- <p>{{ text }}</p>
57
- </a>
58
- </div>
59
- `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"] }]
60
- }], propDecorators: { icon: [{
61
- type: Input
62
- }], text: [{
63
- type: Input
64
- }], buttonActive: [{
65
- type: Input
66
- }], isClicked: [{
67
- type: Output
23
+ class AsideButtonComponent {
24
+ constructor() {
25
+ this.isClicked = new EventEmitter();
26
+ }
27
+ clickAction() {
28
+ this.isClicked.emit(true);
29
+ }
30
+ }
31
+ AsideButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
+ AsideButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: AsideButtonComponent, selector: "ipt-aside-button", inputs: { icon: "icon", text: "text", buttonActive: "buttonActive" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
33
+ <div [ngSwitch]="buttonActive">
34
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
35
+ <img src="{{ icon }}" alt="icon_url" />
36
+ <p>{{ text }}</p>
37
+ </a>
38
+
39
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
40
+ <img src="{{ icon }}" alt="icon_url" />
41
+ <p>{{ text }}</p>
42
+ </a>
43
+ </div>
44
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AsideButtonComponent, decorators: [{
46
+ type: Component,
47
+ args: [{ selector: 'ipt-aside-button', template: `
48
+ <div [ngSwitch]="buttonActive">
49
+ <a *ngSwitchCase="0" class="flex-item-menu__link" (click)="clickAction()">
50
+ <img src="{{ icon }}" alt="icon_url" />
51
+ <p>{{ text }}</p>
52
+ </a>
53
+
54
+ <a *ngSwitchCase="1" class="flex-item-menu__link flex-item-active" (click)="clickAction()">
55
+ <img src="{{ icon }}" alt="icon_url" />
56
+ <p>{{ text }}</p>
57
+ </a>
58
+ </div>
59
+ `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.flex-item-menu__link{cursor:pointer;width:-webkit-fill-available;width:-moz-available;text-decoration:none;display:flex;justify-items:center;padding:.4rem 1rem;transition:all .3s ease 0s;border-radius:30px;margin:15px}.flex-item-menu__link img{cursor:pointer;width:1.4rem;height:1.4rem}.flex-item-menu__link p{cursor:pointer;display:inline;font-weight:500;font-family:Poppins,sans-serif;font-size:.8rem;padding:0 .8rem;margin:auto 0;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px;border-radius:50px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}.flex-item-active{box-shadow:#0006 0 30px 90px;background:transparent;border:1px solid white}}@media (min-width: 1024px){.flex-item-menu__link{padding:.4rem 1rem}.flex-item-menu__link:focus{border:1px solid white}.flex-item-menu__link img{cursor:pointer;width:1.6rem;height:1.6rem}.flex-item-menu__link p{font-size:1rem;color:#fff}a:hover,a:focus,.flex-item-menu__link:hover,.flex-item-menu__link p:focus{color:#fff;background-color:#ffffff4f;-webkit-backdrop-filter:blur(100px);backdrop-filter:blur(100px);box-shadow:#0006 0 30px 90px}.flex-item-img{width:2.5rem;height:2.5rem;padding:.4rem}}\n"] }]
60
+ }], propDecorators: { icon: [{
61
+ type: Input
62
+ }], text: [{
63
+ type: Input
64
+ }], buttonActive: [{
65
+ type: Input
66
+ }], isClicked: [{
67
+ type: Output
68
68
  }] } });
69
69
 
70
- class ButtonComponent {
71
- constructor() {
72
- this.primary = false;
73
- this.size = 'medium';
74
- this.label = 'Button';
75
- this.isEnabled = true;
76
- this.onClick = new EventEmitter();
77
- }
78
- get classes() {
79
- const mode = this.primary && this.isEnabled === true
80
- ? 'ipt-button--primary'
81
- : this.isEnabled === false ? 'ipt-button--primary-disabled'
82
- : 'ipt-button--secondary';
83
- return ['ipt-button', `ipt-button--${this.size}`, mode];
84
- }
85
- }
86
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
- ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ButtonComponent, selector: "ipt-button", inputs: { primary: "primary", size: "size", label: "label", buttonType: "buttonType", isEnabled: "isEnabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `<button *ngIf="isEnabled"
88
- type="{{ buttonType }}"
89
- (click)="onClick.emit($event)"
90
- [ngClass]="classes"
91
- >
92
- {{ label }}
93
- </button>
94
-
95
- <button *ngIf="!isEnabled"
96
- type="{{ buttonType }}"
97
- [ngClass]="classes"
98
- >
99
- {{ label }}
100
- </button>`, isInline: true, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
102
- type: Component,
103
- args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
104
- type="{{ buttonType }}"
105
- (click)="onClick.emit($event)"
106
- [ngClass]="classes"
107
- >
108
- {{ label }}
109
- </button>
110
-
111
- <button *ngIf="!isEnabled"
112
- type="{{ buttonType }}"
113
- [ngClass]="classes"
114
- >
115
- {{ label }}
116
- </button>`, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"] }]
117
- }], propDecorators: { primary: [{
118
- type: Input
119
- }], size: [{
120
- type: Input
121
- }], label: [{
122
- type: Input
123
- }], buttonType: [{
124
- type: Input
125
- }], isEnabled: [{
126
- type: Input
127
- }], onClick: [{
128
- type: Output
70
+ class ButtonComponent {
71
+ constructor() {
72
+ this.primary = false;
73
+ this.size = 'medium';
74
+ this.label = 'Button';
75
+ this.isEnabled = true;
76
+ this.onClick = new EventEmitter();
77
+ }
78
+ get classes() {
79
+ const mode = this.primary && this.isEnabled === true
80
+ ? 'ipt-button--primary'
81
+ : this.isEnabled === false ? 'ipt-button--primary-disabled'
82
+ : 'ipt-button--secondary';
83
+ return ['ipt-button', `ipt-button--${this.size}`, mode];
84
+ }
85
+ }
86
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
87
+ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: ButtonComponent, selector: "ipt-button", inputs: { primary: "primary", size: "size", label: "label", buttonType: "buttonType", isEnabled: "isEnabled" }, outputs: { onClick: "onClick" }, ngImport: i0, template: `<button *ngIf="isEnabled"
88
+ type="{{ buttonType }}"
89
+ (click)="onClick.emit($event)"
90
+ [ngClass]="classes"
91
+ >
92
+ {{ label }}
93
+ </button>
94
+
95
+ <button *ngIf="!isEnabled"
96
+ type="{{ buttonType }}"
97
+ [ngClass]="classes"
98
+ >
99
+ {{ label }}
100
+ </button>`, isInline: true, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ButtonComponent, decorators: [{
102
+ type: Component,
103
+ args: [{ selector: 'ipt-button', template: `<button *ngIf="isEnabled"
104
+ type="{{ buttonType }}"
105
+ (click)="onClick.emit($event)"
106
+ [ngClass]="classes"
107
+ >
108
+ {{ label }}
109
+ </button>
110
+
111
+ <button *ngIf="!isEnabled"
112
+ type="{{ buttonType }}"
113
+ [ngClass]="classes"
114
+ >
115
+ {{ label }}
116
+ </button>`, styles: [".ipt-button{font-family:Poppins,sans-serif;font-weight:700;border:0;border-radius:12px;cursor:pointer;display:inline-block;line-height:1;transition:.4s;width:100%;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button:hover{box-shadow:0 10px 20px #1b1b1b80;transform:translateY(-3px)}.ipt-button:active{transform:scale(.99)}.ipt-button--primary{color:#fff;background-color:#1c77f7}.ipt-button--primary-disabled{color:gray;background-color:#fff;border:1px solid gray;box-shadow:none;cursor:not-allowed}.ipt-button--primary-disabled:hover{box-shadow:none;transform:translateY(0)}.ipt-button--secondary{color:#1c77f7;background-color:#fff;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.ipt-button--small{font-size:12px;padding:10px 16px}.ipt-button--medium{font-size:14px;padding:11px 20px}.ipt-button--large{font-size:16px;padding:12px 24px}\n"] }]
117
+ }], propDecorators: { primary: [{
118
+ type: Input
119
+ }], size: [{
120
+ type: Input
121
+ }], label: [{
122
+ type: Input
123
+ }], buttonType: [{
124
+ type: Input
125
+ }], isEnabled: [{
126
+ type: Input
127
+ }], onClick: [{
128
+ type: Output
129
129
  }] } });
130
130
 
131
- class CheckboxComponent {
132
- constructor() {
133
- this.checkboxOption = false;
134
- this.onChecked = new EventEmitter();
135
- }
136
- set control(value) {
137
- if (this.formControl !== value) {
138
- this.formControl = value;
139
- }
140
- }
141
- }
142
- CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
- CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckboxComponent, selector: "ipt-checkbox", inputs: { checkboxOption: "checkboxOption", control: "control" }, outputs: { onChecked: "onChecked" }, ngImport: i0, template: `
144
- <label class="cont">
145
- <input
146
- class="checkbox"
147
- [formControl]="formControl"
148
- [checked]="checkboxOption"
149
- (click)="onChecked.emit($event)"
150
- type="checkbox">
151
- <span></span>
152
- </label>
153
- `, isInline: true, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"], directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
155
- type: Component,
156
- args: [{ selector: 'ipt-checkbox', template: `
157
- <label class="cont">
158
- <input
159
- class="checkbox"
160
- [formControl]="formControl"
161
- [checked]="checkboxOption"
162
- (click)="onChecked.emit($event)"
163
- type="checkbox">
164
- <span></span>
165
- </label>
166
- `, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"] }]
167
- }], propDecorators: { checkboxOption: [{
168
- type: Input
169
- }], control: [{
170
- type: Input
171
- }], onChecked: [{
172
- type: Output
131
+ class CheckboxComponent {
132
+ constructor() {
133
+ this.checkboxOption = false;
134
+ this.onChecked = new EventEmitter();
135
+ }
136
+ set control(value) {
137
+ if (this.formControl !== value) {
138
+ this.formControl = value;
139
+ }
140
+ }
141
+ }
142
+ CheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
143
+ CheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CheckboxComponent, selector: "ipt-checkbox", inputs: { checkboxOption: "checkboxOption", control: "control" }, outputs: { onChecked: "onChecked" }, ngImport: i0, template: `
144
+ <label class="cont">
145
+ <input
146
+ class="checkbox"
147
+ [formControl]="formControl"
148
+ [checked]="checkboxOption"
149
+ (click)="onChecked.emit($event)"
150
+ type="checkbox">
151
+ <span></span>
152
+ </label>
153
+ `, isInline: true, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"], directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CheckboxComponent, decorators: [{
155
+ type: Component,
156
+ args: [{ selector: 'ipt-checkbox', template: `
157
+ <label class="cont">
158
+ <input
159
+ class="checkbox"
160
+ [formControl]="formControl"
161
+ [checked]="checkboxOption"
162
+ (click)="onChecked.emit($event)"
163
+ type="checkbox">
164
+ <span></span>
165
+ </label>
166
+ `, styles: [".cont{display:flex;align-items:center;transform:scale(1)}@media screen and (min-width: 320px){input[type=checkbox]{height:1rem;width:1.1rem;margin:5px;display:inline-block;-webkit-appearance:none;appearance:none;position:relative;background-color:#1c77f733;border-radius:15%;cursor:pointer;overflow:hidden}input[type=checkbox]:after{content:\"\";display:block;height:.4rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white;opacity:0;transform:rotate(45deg) translate(-50%,-50%);position:absolute;top:50%;left:20%;transition:.25s ease}input[type=checkbox]:before{content:\"\";display:block;height:0;width:0;background-color:#1c77f7;border-radius:50%;opacity:.5;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%;transition:.3s ease}input[type=checkbox]:checked:before{height:130%;width:130%;opacity:100%}input[type=checkbox]:checked:after{opacity:100%}span{font-size:1rem}}@media screen and (min-width: 375px){input[type=checkbox]{height:1.2rem;width:1.3rem}input[type=checkbox]:after{height:.5rem;width:.2rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}@media screen and (min-width: 1024px){input[type=checkbox]{height:1.3rem;width:1.4rem}input[type=checkbox]:after{height:.6rem;width:.3rem;border-bottom:.21rem solid white;border-right:.21rem solid white}}\n"] }]
167
+ }], propDecorators: { checkboxOption: [{
168
+ type: Input
169
+ }], control: [{
170
+ type: Input
171
+ }], onChecked: [{
172
+ type: Output
173
173
  }] } });
174
174
 
175
- class DatalistComponent {
176
- constructor(fb) {
177
- this.disabledSel = false;
178
- this.isChanged = new EventEmitter();
179
- this.clicked = false;
180
- }
181
- optionChanged(event) {
182
- let selectOption = this.datalistData.find(element => element.name == event.target.value);
183
- if (typeof (selectOption) != 'undefined') {
184
- this.isChanged.emit(selectOption.code);
185
- }
186
- else {
187
- this.isChanged.emit('-1');
188
- }
189
- }
190
- click(value) {
191
- this.clicked = value.isTrusted;
192
- }
193
- setDataListValue() {
194
- let selectOption = this.datalistData.find(element => element.code == this.initalData);
195
- if (typeof (selectOption) != 'undefined') {
196
- return selectOption.name;
197
- }
198
- else {
199
- return '';
200
- }
201
- }
202
- get labelClass() {
203
- return this.clicked === false ? 'label' : 'labelUp';
204
- }
205
- }
206
- DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
207
- 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: `
208
- <div class="input-container">
209
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
210
- <input
211
- type="text"
212
- class="input"
213
- (click)="click($event)"
214
- [attr.list]="datalistId"
215
- (change)="optionChanged($event)"
216
- [disabled]="disabledSel"
217
- [value]="setDataListValue()"
218
- />
219
-
220
- <datalist id="{{ datalistId }}">
221
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
222
- {{item.id_card}} {{item.name}}
223
- </option>
224
- </datalist>
225
- </div>
226
- `, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
228
- type: Component,
229
- args: [{ selector: 'ipt-datalist', template: `
230
- <div class="input-container">
231
- <label [ngClass]="labelClass">{{ placeHolder }}</label>
232
- <input
233
- type="text"
234
- class="input"
235
- (click)="click($event)"
236
- [attr.list]="datalistId"
237
- (change)="optionChanged($event)"
238
- [disabled]="disabledSel"
239
- [value]="setDataListValue()"
240
- />
241
-
242
- <datalist id="{{ datalistId }}">
243
- <option *ngFor="let item of datalistData; index as i" [value]="item.name">
244
- {{item.id_card}} {{item.name}}
245
- </option>
246
- </datalist>
247
- </div>
248
- `, 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"] }]
249
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
250
- type: Input
251
- }], datalistData: [{
252
- type: Input
253
- }], placeHolder: [{
254
- type: Input
255
- }], validateText: [{
256
- type: Input
257
- }], initalData: [{
258
- type: Input
259
- }], disabledSel: [{
260
- type: Input
261
- }], isChanged: [{
262
- type: Output
175
+ class DatalistComponent {
176
+ constructor(fb) {
177
+ this.disabledSel = false;
178
+ this.isChanged = new EventEmitter();
179
+ this.clicked = false;
180
+ }
181
+ optionChanged(event) {
182
+ let selectOption = this.datalistData.find(element => element.name == event.target.value);
183
+ if (typeof (selectOption) != 'undefined') {
184
+ this.isChanged.emit(selectOption.code);
185
+ }
186
+ else {
187
+ this.isChanged.emit('-1');
188
+ }
189
+ }
190
+ click(value) {
191
+ this.clicked = value.isTrusted;
192
+ }
193
+ setDataListValue() {
194
+ let selectOption = this.datalistData.find(element => element.code == this.initalData);
195
+ if (typeof (selectOption) != 'undefined') {
196
+ return selectOption.name;
197
+ }
198
+ else {
199
+ return '';
200
+ }
201
+ }
202
+ get labelClass() {
203
+ return this.clicked === false ? 'label' : 'labelUp';
204
+ }
205
+ }
206
+ DatalistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
207
+ 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: `
208
+ <div class="input-container">
209
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
210
+ <input
211
+ type="text"
212
+ class="input"
213
+ (click)="click($event)"
214
+ [attr.list]="datalistId"
215
+ (change)="optionChanged($event)"
216
+ [disabled]="disabledSel"
217
+ [value]="setDataListValue()"
218
+ />
219
+
220
+ <datalist id="{{ datalistId }}">
221
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
222
+ {{item.id_card}} {{item.name}}
223
+ </option>
224
+ </datalist>
225
+ </div>
226
+ `, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DatalistComponent, decorators: [{
228
+ type: Component,
229
+ args: [{ selector: 'ipt-datalist', template: `
230
+ <div class="input-container">
231
+ <label [ngClass]="labelClass">{{ placeHolder }}</label>
232
+ <input
233
+ type="text"
234
+ class="input"
235
+ (click)="click($event)"
236
+ [attr.list]="datalistId"
237
+ (change)="optionChanged($event)"
238
+ [disabled]="disabledSel"
239
+ [value]="setDataListValue()"
240
+ />
241
+
242
+ <datalist id="{{ datalistId }}">
243
+ <option *ngFor="let item of datalistData; index as i" [value]="item.name">
244
+ {{item.id_card}} {{item.name}}
245
+ </option>
246
+ </datalist>
247
+ </div>
248
+ `, 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"] }]
249
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { datalistId: [{
250
+ type: Input
251
+ }], datalistData: [{
252
+ type: Input
253
+ }], placeHolder: [{
254
+ type: Input
255
+ }], validateText: [{
256
+ type: Input
257
+ }], initalData: [{
258
+ type: Input
259
+ }], disabledSel: [{
260
+ type: Input
261
+ }], isChanged: [{
262
+ type: Output
263
263
  }] } });
264
264
 
265
- class InputComponent {
266
- constructor() {
267
- this.data = [];
268
- this.clicked = false;
269
- this.withPipe = false;
270
- this.prefix = '$';
271
- this.thousands = '.';
272
- this.decimal = ',';
273
- this.dateSelected = new EventEmitter();
274
- }
275
- set control(value) {
276
- if (this.formControl !== value) {
277
- this.formControl = value;
278
- }
279
- }
280
- ngOnInit() { }
281
- selectedDate(evt) {
282
- this.dateSelected.emit(evt);
283
- }
284
- click(value) {
285
- this.clicked = value.isTrusted;
286
- }
287
- }
288
- InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
289
- 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" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
290
- <div class="input-container">
291
- <input *ngIf="inputType === 'date'"
292
- class="input"
293
- type="{{ inputType ? 'text' : 'date' }}"
294
- [formControl]="formControl"
295
- (ngModelChange)="selectedDate($event)"
296
- onfocus="this.type='date';"
297
- onblur="javascript: if( !this.value ) this.type='text';"
298
- uib-datepicker-popup="dd/MM/yyyy"
299
- ng-model="inputType"/>
300
-
301
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
302
- class="input"
303
- type="{{ inputType }}"
304
- [formControl]="formControl"
305
- [attr.list]="list"/>
306
-
307
- <input *ngIf="inputType === 'text' && withPipe"
308
- class="input"
309
- currencyMask
310
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
311
- type="{{ inputType }}"
312
- [formControl]="formControl"
313
- [attr.list]="list"/>
314
-
315
- <input *ngIf="inputType === 'time'"
316
- class="input"
317
- type="time"
318
- [formControl]="formControl"
319
- [min]="'06:00:00'"
320
- max="22:00:00"
321
- step="900"
322
- autocomplete="on"
323
- value="08:00:00"
324
- (click)="click($event)"
325
- />
326
-
327
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
328
-
329
- <p *ngIf="(formControl.invalid && formControl.value !== '')">
330
- {{ validateText }}
331
- </p>
332
- </div>
333
- `, 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: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.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"] }] });
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
335
- type: Component,
336
- args: [{ selector: 'ipt-input', template: `
337
- <div class="input-container">
338
- <input *ngIf="inputType === 'date'"
339
- class="input"
340
- type="{{ inputType ? 'text' : 'date' }}"
341
- [formControl]="formControl"
342
- (ngModelChange)="selectedDate($event)"
343
- onfocus="this.type='date';"
344
- onblur="javascript: if( !this.value ) this.type='text';"
345
- uib-datepicker-popup="dd/MM/yyyy"
346
- ng-model="inputType"/>
347
-
348
- <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
349
- class="input"
350
- type="{{ inputType }}"
351
- [formControl]="formControl"
352
- [attr.list]="list"/>
353
-
354
- <input *ngIf="inputType === 'text' && withPipe"
355
- class="input"
356
- currencyMask
357
- [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
358
- type="{{ inputType }}"
359
- [formControl]="formControl"
360
- [attr.list]="list"/>
361
-
362
- <input *ngIf="inputType === 'time'"
363
- class="input"
364
- type="time"
365
- [formControl]="formControl"
366
- [min]="'06:00:00'"
367
- max="22:00:00"
368
- step="900"
369
- autocomplete="on"
370
- value="08:00:00"
371
- (click)="click($event)"
372
- />
373
-
374
- <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
375
-
376
- <p *ngIf="(formControl.invalid && formControl.value !== '')">
377
- {{ validateText }}
378
- </p>
379
- </div>
380
- `, 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"] }]
381
- }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
382
- type: Input
383
- }], placeHolder: [{
384
- type: Input
385
- }], validateText: [{
386
- type: Input
387
- }], withPipe: [{
388
- type: Input
389
- }], list: [{
390
- type: Input
391
- }], iconUrl: [{
392
- type: Input
393
- }], control: [{
394
- type: Input
395
- }], prefix: [{
396
- type: Input
397
- }], thousands: [{
398
- type: Input
399
- }], decimal: [{
400
- type: Input
401
- }], dateSelected: [{
402
- type: Output
265
+ class InputComponent {
266
+ constructor() {
267
+ this.data = [];
268
+ this.clicked = false;
269
+ this.withPipe = false;
270
+ this.prefix = '$';
271
+ this.thousands = '.';
272
+ this.decimal = ',';
273
+ this.dateSelected = new EventEmitter();
274
+ }
275
+ set control(value) {
276
+ if (this.formControl !== value) {
277
+ this.formControl = value;
278
+ }
279
+ }
280
+ ngOnInit() { }
281
+ selectedDate(evt) {
282
+ this.dateSelected.emit(evt);
283
+ }
284
+ click(value) {
285
+ this.clicked = value.isTrusted;
286
+ }
287
+ }
288
+ InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
289
+ 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" }, outputs: { dateSelected: "dateSelected" }, ngImport: i0, template: `
290
+ <div class="input-container">
291
+ <input *ngIf="inputType === 'date'"
292
+ class="input"
293
+ type="{{ inputType ? 'text' : 'date' }}"
294
+ [formControl]="formControl"
295
+ (ngModelChange)="selectedDate($event)"
296
+ onfocus="this.type='date';"
297
+ onblur="javascript: if( !this.value ) this.type='text';"
298
+ uib-datepicker-popup="dd/MM/yyyy"
299
+ ng-model="inputType"/>
300
+
301
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
302
+ class="input"
303
+ type="{{ inputType }}"
304
+ [formControl]="formControl"
305
+ [attr.list]="list"/>
306
+
307
+ <input *ngIf="inputType === 'text' && withPipe"
308
+ class="input"
309
+ currencyMask
310
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
311
+ type="{{ inputType }}"
312
+ [formControl]="formControl"
313
+ [attr.list]="list"/>
314
+
315
+ <input *ngIf="inputType === 'time'"
316
+ class="input"
317
+ type="time"
318
+ [formControl]="formControl"
319
+ [min]="'06:00:00'"
320
+ max="22:00:00"
321
+ step="900"
322
+ autocomplete="on"
323
+ value="08:00:00"
324
+ (click)="click($event)"
325
+ />
326
+
327
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
328
+
329
+ <p *ngIf="(formControl.invalid && formControl.value !== '')">
330
+ {{ validateText }}
331
+ </p>
332
+ </div>
333
+ `, 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: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.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"] }] });
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: InputComponent, decorators: [{
335
+ type: Component,
336
+ args: [{ selector: 'ipt-input', template: `
337
+ <div class="input-container">
338
+ <input *ngIf="inputType === 'date'"
339
+ class="input"
340
+ type="{{ inputType ? 'text' : 'date' }}"
341
+ [formControl]="formControl"
342
+ (ngModelChange)="selectedDate($event)"
343
+ onfocus="this.type='date';"
344
+ onblur="javascript: if( !this.value ) this.type='text';"
345
+ uib-datepicker-popup="dd/MM/yyyy"
346
+ ng-model="inputType"/>
347
+
348
+ <input *ngIf="inputType !== 'date' && inputType !== 'time' && !withPipe"
349
+ class="input"
350
+ type="{{ inputType }}"
351
+ [formControl]="formControl"
352
+ [attr.list]="list"/>
353
+
354
+ <input *ngIf="inputType === 'text' && withPipe"
355
+ class="input"
356
+ currencyMask
357
+ [options]="{ prefix: prefix, thousands: thousands, decimal: decimal, allowNegative: false }"
358
+ type="{{ inputType }}"
359
+ [formControl]="formControl"
360
+ [attr.list]="list"/>
361
+
362
+ <input *ngIf="inputType === 'time'"
363
+ class="input"
364
+ type="time"
365
+ [formControl]="formControl"
366
+ [min]="'06:00:00'"
367
+ max="22:00:00"
368
+ step="900"
369
+ autocomplete="on"
370
+ value="08:00:00"
371
+ (click)="click($event)"
372
+ />
373
+
374
+ <label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
375
+
376
+ <p *ngIf="(formControl.invalid && formControl.value !== '')">
377
+ {{ validateText }}
378
+ </p>
379
+ </div>
380
+ `, 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"] }]
381
+ }], ctorParameters: function () { return []; }, propDecorators: { inputType: [{
382
+ type: Input
383
+ }], placeHolder: [{
384
+ type: Input
385
+ }], validateText: [{
386
+ type: Input
387
+ }], withPipe: [{
388
+ type: Input
389
+ }], list: [{
390
+ type: Input
391
+ }], iconUrl: [{
392
+ type: Input
393
+ }], control: [{
394
+ type: Input
395
+ }], prefix: [{
396
+ type: Input
397
+ }], thousands: [{
398
+ type: Input
399
+ }], decimal: [{
400
+ type: Input
401
+ }], dateSelected: [{
402
+ type: Output
403
403
  }] } });
404
404
 
405
- class LevelButtonComponent {
406
- constructor() {
407
- this.isClicked = new EventEmitter();
408
- }
409
- clickAction() {
410
- this.isClicked.emit(true);
411
- }
412
- }
413
- LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
414
- LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
415
- <div [ngSwitch]="buttonActive">
416
- <button
417
- *ngSwitchCase="0"
418
- (click)="clickAction()"
419
- id="level"
420
- class="courses"
421
- >
422
- <p class="p-level">{{ level }}</p>
423
- </button>
424
-
425
- <button
426
- *ngSwitchCase="1"
427
- (click)="clickAction()"
428
- id="{{ idColor }}"
429
- class="courses">
430
- <p class="p-level p-level-active">{{ level }}</p>
431
- </button>
432
- </div>
433
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
435
- type: Component,
436
- args: [{ selector: 'ipt-level-button', template: `
437
- <div [ngSwitch]="buttonActive">
438
- <button
439
- *ngSwitchCase="0"
440
- (click)="clickAction()"
441
- id="level"
442
- class="courses"
443
- >
444
- <p class="p-level">{{ level }}</p>
445
- </button>
446
-
447
- <button
448
- *ngSwitchCase="1"
449
- (click)="clickAction()"
450
- id="{{ idColor }}"
451
- class="courses">
452
- <p class="p-level p-level-active">{{ level }}</p>
453
- </button>
454
- </div>
455
- `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
456
- }], propDecorators: { level: [{
457
- type: Input
458
- }], buttonActive: [{
459
- type: Input
460
- }], idColor: [{
461
- type: Input
462
- }], isClicked: [{
463
- type: Output
405
+ class LevelButtonComponent {
406
+ constructor() {
407
+ this.isClicked = new EventEmitter();
408
+ }
409
+ clickAction() {
410
+ this.isClicked.emit(true);
411
+ }
412
+ }
413
+ LevelButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
414
+ LevelButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelButtonComponent, selector: "ipt-level-button", inputs: { level: "level", buttonActive: "buttonActive", idColor: "idColor" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
415
+ <div [ngSwitch]="buttonActive">
416
+ <button
417
+ *ngSwitchCase="0"
418
+ (click)="clickAction()"
419
+ id="level"
420
+ class="courses"
421
+ >
422
+ <p class="p-level">{{ level }}</p>
423
+ </button>
424
+
425
+ <button
426
+ *ngSwitchCase="1"
427
+ (click)="clickAction()"
428
+ id="{{ idColor }}"
429
+ class="courses">
430
+ <p class="p-level p-level-active">{{ level }}</p>
431
+ </button>
432
+ </div>
433
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"], directives: [{ type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelButtonComponent, decorators: [{
435
+ type: Component,
436
+ args: [{ selector: 'ipt-level-button', template: `
437
+ <div [ngSwitch]="buttonActive">
438
+ <button
439
+ *ngSwitchCase="0"
440
+ (click)="clickAction()"
441
+ id="level"
442
+ class="courses"
443
+ >
444
+ <p class="p-level">{{ level }}</p>
445
+ </button>
446
+
447
+ <button
448
+ *ngSwitchCase="1"
449
+ (click)="clickAction()"
450
+ id="{{ idColor }}"
451
+ class="courses">
452
+ <p class="p-level p-level-active">{{ level }}</p>
453
+ </button>
454
+ </div>
455
+ `, styles: ["*{font-family:Poppins,sans-serif}@media (min-width: 320px){.courses{cursor:pointer;text-decoration:none;display:flex;border-radius:6px;width:100%;height:30px;box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset;border:none;outline:none;align-items:center;background-color:transparent;color:#1c77f7}.p-level{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px}#level-1{background-color:#02eed8}#level-2{background-color:#61acff}#level-3{background-color:#f168f4}#level-4{background-color:#ff3737}#level-5{background-color:#004dfa}#level-6{background-color:#14c25a}#level-7{background-color:#a052da}#level-8{background-color:#f2583d}#level-9{background-color:#291d26}#level-10{background-color:#1c77f7}.p-level-active{color:#fff}}@media (min-width: 375px){.courses{height:40px}.p-level{font-size:18px}}@media (min-width: 425px){.courses{height:30px}}@media (min-width: 768px){.courses{height:40px}}@media (min-width: 1024px){.courses{transition:.6s}.courses:active{transform:scale(1.05);box-shadow:#06182c66 0 0 0 2px,#06182ca6 0 4px 6px -1px,#ffffff14 0 1px inset}.p-level{font-weight:700}}@media (min-width: 1440px){.p-level{font-weight:600}}\n"] }]
456
+ }], propDecorators: { level: [{
457
+ type: Input
458
+ }], buttonActive: [{
459
+ type: Input
460
+ }], idColor: [{
461
+ type: Input
462
+ }], isClicked: [{
463
+ type: Output
464
464
  }] } });
465
465
 
466
- class LevelTextComponent {
467
- }
468
- LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
469
- LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
470
- <p class="p-table-course">{{ level }}: {{ total }}</p>
471
- `, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
473
- type: Component,
474
- args: [{ selector: 'ipt-level-button', template: `
475
- <p class="p-table-course">{{ level }}: {{ total }}</p>
476
- `, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
477
- }], propDecorators: { level: [{
478
- type: Input
479
- }], total: [{
480
- type: Input
466
+ class LevelTextComponent {
467
+ }
468
+ LevelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
469
+ LevelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LevelTextComponent, selector: "ipt-level-button", inputs: { level: "level", total: "total" }, ngImport: i0, template: `
470
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
471
+ `, isInline: true, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] });
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LevelTextComponent, decorators: [{
473
+ type: Component,
474
+ args: [{ selector: 'ipt-level-button', template: `
475
+ <p class="p-table-course">{{ level }}: {{ total }}</p>
476
+ `, styles: ["@media (min-width: 320px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 375px){.p-table-course{background-color:#4b4a4a;color:#fff;font-size:14px;font-weight:700;padding:5px;width:100%;text-align:center}}@media (min-width: 425px){.p-table-course{font-size:18px}}@media (min-width: 1024px){.p-table-course{font-size:20px}}\n"] }]
477
+ }], propDecorators: { level: [{
478
+ type: Input
479
+ }], total: [{
480
+ type: Input
481
481
  }] } });
482
482
 
483
- class LoaderComponent {
484
- constructor() {
485
- this.message = '';
486
- this.isDialog = false;
487
- }
488
- }
489
- LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
490
- LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoaderComponent, selector: "ipt-loader", inputs: { message: "message", isDialog: "isDialog" }, ngImport: i0, template: `
491
- <div [ngClass]="{'dialog': isDialog}">
492
- <div [ngClass]="{'loader_container' : isDialog}">
493
- <span>{{ message }}</span>
494
- <div class="container">
495
- <div class="spinner">
496
- <div class="dot"></div>
497
- <div class="dot"></div>
498
- <div class="dot"></div>
499
- <div class="dot"></div>
500
- <div class="dot"></div>
501
- </div>
502
- </div>
503
- </div>
504
- </div>`, isInline: true, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
505
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, decorators: [{
506
- type: Component,
507
- args: [{ selector: 'ipt-loader', template: `
508
- <div [ngClass]="{'dialog': isDialog}">
509
- <div [ngClass]="{'loader_container' : isDialog}">
510
- <span>{{ message }}</span>
511
- <div class="container">
512
- <div class="spinner">
513
- <div class="dot"></div>
514
- <div class="dot"></div>
515
- <div class="dot"></div>
516
- <div class="dot"></div>
517
- <div class="dot"></div>
518
- </div>
519
- </div>
520
- </div>
521
- </div>`, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"] }]
522
- }], propDecorators: { message: [{
523
- type: Input
524
- }], isDialog: [{
525
- type: Input
483
+ class LoaderComponent {
484
+ constructor() {
485
+ this.message = '';
486
+ this.isDialog = false;
487
+ }
488
+ }
489
+ LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
490
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoaderComponent, selector: "ipt-loader", inputs: { message: "message", isDialog: "isDialog" }, ngImport: i0, template: `
491
+ <div [ngClass]="{'dialog': isDialog}">
492
+ <div [ngClass]="{'loader_container' : isDialog}">
493
+ <span>{{ message }}</span>
494
+ <div class="container">
495
+ <div class="spinner">
496
+ <div class="dot"></div>
497
+ <div class="dot"></div>
498
+ <div class="dot"></div>
499
+ <div class="dot"></div>
500
+ <div class="dot"></div>
501
+ </div>
502
+ </div>
503
+ </div>
504
+ </div>`, isInline: true, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoaderComponent, decorators: [{
506
+ type: Component,
507
+ args: [{ selector: 'ipt-loader', template: `
508
+ <div [ngClass]="{'dialog': isDialog}">
509
+ <div [ngClass]="{'loader_container' : isDialog}">
510
+ <span>{{ message }}</span>
511
+ <div class="container">
512
+ <div class="spinner">
513
+ <div class="dot"></div>
514
+ <div class="dot"></div>
515
+ <div class="dot"></div>
516
+ <div class="dot"></div>
517
+ <div class="dot"></div>
518
+ </div>
519
+ </div>
520
+ </div>
521
+ </div>`, styles: [".dialog{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s;z-index:9999}.loader_container{height:-moz-fit-content;height:fit-content;width:-moz-fit-content;width:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px;padding:1rem;z-index:9999}span{display:flex;justify-content:center;color:#1c77f7;font:bold;margin-bottom:1rem}.container{display:flex;justify-content:center}.spinner{width:60px;height:60px;position:relative}.spinner .dot{position:absolute;inset:0;display:flex;justify-content:center}.spinner .dot:after{content:\"\";width:7px;height:7px;border-radius:50%;background-color:#1c77f7}@keyframes spin{to{transform:rotate(360deg)}}.spinner .dot{animation:spin 2s infinite}.spinner .dot:nth-child(2){animation-delay:.1s}.spinner .dot:nth-child(3){animation-delay:.2s}.spinner .dot:nth-child(4){animation-delay:.3s}.spinner .dot:nth-child(5){animation-delay:.4s}\n"] }]
522
+ }], propDecorators: { message: [{
523
+ type: Input
524
+ }], isDialog: [{
525
+ type: Input
526
526
  }] } });
527
527
 
528
- class RadioComponent {
529
- constructor() {
530
- this.radioOption = false;
531
- this.onSelected = new EventEmitter();
532
- }
533
- set control(value) {
534
- if (this.formControl !== value) {
535
- this.formControl = value;
536
- }
537
- }
538
- }
539
- RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
540
- RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
541
- <label class="cont">
542
- <input
543
- class="radio"
544
- [formControl]="formControl"
545
- [checked]="radioOption"
546
- (click)="onSelected.emit($event)"
547
- type="radio">
548
- <span></span>
549
- </label>
550
- `, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
552
- type: Component,
553
- args: [{ selector: 'ipt-radio', template: `
554
- <label class="cont">
555
- <input
556
- class="radio"
557
- [formControl]="formControl"
558
- [checked]="radioOption"
559
- (click)="onSelected.emit($event)"
560
- type="radio">
561
- <span></span>
562
- </label>
563
- `, styles: [""] }]
564
- }], propDecorators: { radioOption: [{
565
- type: Input
566
- }], control: [{
567
- type: Input
568
- }], onSelected: [{
569
- type: Output
528
+ class RadioComponent {
529
+ constructor() {
530
+ this.radioOption = false;
531
+ this.onSelected = new EventEmitter();
532
+ }
533
+ set control(value) {
534
+ if (this.formControl !== value) {
535
+ this.formControl = value;
536
+ }
537
+ }
538
+ }
539
+ RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
540
+ RadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: RadioComponent, selector: "ipt-radio", inputs: { radioOption: "radioOption", control: "control" }, outputs: { onSelected: "onSelected" }, ngImport: i0, template: `
541
+ <label class="cont">
542
+ <input
543
+ class="radio"
544
+ [formControl]="formControl"
545
+ [checked]="radioOption"
546
+ (click)="onSelected.emit($event)"
547
+ type="radio">
548
+ <span></span>
549
+ </label>
550
+ `, isInline: true, styles: [""], directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$1.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: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
552
+ type: Component,
553
+ args: [{ selector: 'ipt-radio', template: `
554
+ <label class="cont">
555
+ <input
556
+ class="radio"
557
+ [formControl]="formControl"
558
+ [checked]="radioOption"
559
+ (click)="onSelected.emit($event)"
560
+ type="radio">
561
+ <span></span>
562
+ </label>
563
+ `, styles: [""] }]
564
+ }], propDecorators: { radioOption: [{
565
+ type: Input
566
+ }], control: [{
567
+ type: Input
568
+ }], onSelected: [{
569
+ type: Output
570
570
  }] } });
571
571
 
572
- class SelectComponent {
573
- constructor() {
574
- this.boxShadow = 0;
575
- this.clicked = false;
576
- this.disabledSel = false;
577
- this.eventSelect = new EventEmitter();
578
- }
579
- // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
580
- set control(value) {
581
- if (this.formControl !== value) {
582
- this.formControl = value;
583
- }
584
- }
585
- ngOnChanges(changes) {
586
- if (changes['data']) {
587
- this.setBinding();
588
- }
589
- }
590
- seleccionar(evt) {
591
- if (this.eventSelect.emit(evt) !== this.defaultText) {
592
- this.boxShadow = 1;
593
- }
594
- else {
595
- this.boxShadow = 2;
596
- }
597
- }
598
- setBinding() {
599
- if (this.initialValue !== '') {
600
- this.binding = this.initialValue;
601
- }
602
- else {
603
- this.binding = this.defaultText;
604
- }
605
- }
606
- click(value) {
607
- this.clicked = value.isTrusted;
608
- }
609
- ngOnInit() {
610
- this.setBinding();
611
- }
612
- get textClass() {
613
- return this.defaultText === '' ? 'selected' : 'select';
614
- }
615
- get labelClass() {
616
- return this.clicked === false ? 'label' : 'labelUp';
617
- }
618
- }
619
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
620
- SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", initialValue: "initialValue", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
621
- <div class="select-container">
622
- <label [ngClass]="labelClass">{{ defaultText }}</label>
623
- <select
624
- [(ngModel)]="binding"
625
- (ngModelChange)="seleccionar($event)"
626
- (click)="click($event)"
627
- [ngClass]="textClass"
628
- [disabled]="disabledSel">
629
- <option *ngFor="let item of data; index as i" [value]="item.code">
630
- {{ item.name }} {{ item.prefix }}
631
- </option>
632
- </select>
633
- </div>
634
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
635
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
636
- type: Component,
637
- args: [{ selector: 'ipt-select', template: `
638
- <div class="select-container">
639
- <label [ngClass]="labelClass">{{ defaultText }}</label>
640
- <select
641
- [(ngModel)]="binding"
642
- (ngModelChange)="seleccionar($event)"
643
- (click)="click($event)"
644
- [ngClass]="textClass"
645
- [disabled]="disabledSel">
646
- <option *ngFor="let item of data; index as i" [value]="item.code">
647
- {{ item.name }} {{ item.prefix }}
648
- </option>
649
- </select>
650
- </div>
651
- `, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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"] }]
652
- }], propDecorators: { isRequired: [{
653
- type: Input
654
- }], data: [{
655
- type: Input
656
- }], defaultText: [{
657
- type: Input
658
- }], selectCode: [{
659
- type: Input
660
- }], disabledSel: [{
661
- type: Input
662
- }], initialValue: [{
663
- type: Input
664
- }], eventSelect: [{
665
- type: Output
666
- }], control: [{
667
- type: Input
572
+ class SelectComponent {
573
+ constructor() {
574
+ this.boxShadow = 0;
575
+ this.clicked = false;
576
+ this.disabledSel = false;
577
+ this.eventSelect = new EventEmitter();
578
+ }
579
+ // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
580
+ set control(value) {
581
+ if (this.formControl !== value) {
582
+ this.formControl = value;
583
+ }
584
+ }
585
+ ngOnChanges(changes) {
586
+ if (changes['data']) {
587
+ this.setBinding();
588
+ }
589
+ }
590
+ seleccionar(evt) {
591
+ if (this.eventSelect.emit(evt) !== this.defaultText) {
592
+ this.boxShadow = 1;
593
+ }
594
+ else {
595
+ this.boxShadow = 2;
596
+ }
597
+ }
598
+ setBinding() {
599
+ if (this.initialValue !== '') {
600
+ this.binding = this.initialValue;
601
+ }
602
+ else {
603
+ this.binding = this.defaultText;
604
+ }
605
+ }
606
+ click(value) {
607
+ this.clicked = value.isTrusted;
608
+ }
609
+ ngOnInit() {
610
+ this.setBinding();
611
+ }
612
+ get textClass() {
613
+ return this.defaultText === '' ? 'selected' : 'select';
614
+ }
615
+ get labelClass() {
616
+ return this.clicked === false ? 'label' : 'labelUp';
617
+ }
618
+ }
619
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
620
+ SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SelectComponent, selector: "ipt-select", inputs: { isRequired: "isRequired", data: "data", defaultText: "defaultText", selectCode: "selectCode", disabledSel: "disabledSel", initialValue: "initialValue", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
621
+ <div class="select-container">
622
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
623
+ <select
624
+ [(ngModel)]="binding"
625
+ (ngModelChange)="seleccionar($event)"
626
+ (click)="click($event)"
627
+ [ngClass]="textClass"
628
+ [disabled]="disabledSel">
629
+ <option *ngFor="let item of data; index as i" [value]="item.code">
630
+ {{ item.name }} {{ item.prefix }}
631
+ </option>
632
+ </select>
633
+ </div>
634
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
636
+ type: Component,
637
+ args: [{ selector: 'ipt-select', template: `
638
+ <div class="select-container">
639
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
640
+ <select
641
+ [(ngModel)]="binding"
642
+ (ngModelChange)="seleccionar($event)"
643
+ (click)="click($event)"
644
+ [ngClass]="textClass"
645
+ [disabled]="disabledSel">
646
+ <option *ngFor="let item of data; index as i" [value]="item.code">
647
+ {{ item.name }} {{ item.prefix }}
648
+ </option>
649
+ </select>
650
+ </div>
651
+ `, styles: ["*{font-family:Poppins,sans-serif}.select-container{position:relative;margin-top:30px}.select{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}.selected{box-shadow:#64646f33 0 7px 29px;border-radius:6px;border:none;outline:none;transition:.5s;font-weight:300;width:-webkit-fill-available;width:-moz-available;height:28px;background-color:#fff;padding-left:10px}select:hover{box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.select: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"] }]
652
+ }], propDecorators: { isRequired: [{
653
+ type: Input
654
+ }], data: [{
655
+ type: Input
656
+ }], defaultText: [{
657
+ type: Input
658
+ }], selectCode: [{
659
+ type: Input
660
+ }], disabledSel: [{
661
+ type: Input
662
+ }], initialValue: [{
663
+ type: Input
664
+ }], eventSelect: [{
665
+ type: Output
666
+ }], control: [{
667
+ type: Input
668
668
  }] } });
669
669
 
670
- class TextLinkComponent {
671
- constructor() {
672
- this.isClicked = new EventEmitter();
673
- }
674
- isLinkClicked() {
675
- this.isClicked.emit(true);
676
- }
677
- }
678
- TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
679
- TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
680
- <a class="text-link" (click)='isLinkClicked()'>
681
- <p class="text-link__paragraph">
682
- <i class="{{icon}}" aria-hidden="true"></i>
683
- {{text}}
684
- </p>
685
- </a>
686
- `, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
687
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
688
- type: Component,
689
- args: [{ selector: 'ipt-text-link', template: `
690
- <a class="text-link" (click)='isLinkClicked()'>
691
- <p class="text-link__paragraph">
692
- <i class="{{icon}}" aria-hidden="true"></i>
693
- {{text}}
694
- </p>
695
- </a>
696
- `, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
697
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
698
- type: Input
699
- }], blank: [{
700
- type: Input
701
- }], icon: [{
702
- type: Input
703
- }], isClicked: [{
704
- type: Output
670
+ class TextLinkComponent {
671
+ constructor() {
672
+ this.isClicked = new EventEmitter();
673
+ }
674
+ isLinkClicked() {
675
+ this.isClicked.emit(true);
676
+ }
677
+ }
678
+ TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
679
+ TextLinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: TextLinkComponent, selector: "ipt-text-link", inputs: { text: "text", blank: "blank", icon: "icon" }, outputs: { isClicked: "isClicked" }, ngImport: i0, template: `
680
+ <a class="text-link" (click)='isLinkClicked()'>
681
+ <p class="text-link__paragraph">
682
+ <i class="{{icon}}" aria-hidden="true"></i>
683
+ {{text}}
684
+ </p>
685
+ </a>
686
+ `, isInline: true, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] });
687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
688
+ type: Component,
689
+ args: [{ selector: 'ipt-text-link', template: `
690
+ <a class="text-link" (click)='isLinkClicked()'>
691
+ <p class="text-link__paragraph">
692
+ <i class="{{icon}}" aria-hidden="true"></i>
693
+ {{text}}
694
+ </p>
695
+ </a>
696
+ `, styles: [".text-link{font-family:Poppins,sans-serif;font-size:1.1rem;color:gray;display:flex;flex-direction:row}.text-link__image{height:1rem;background-position:center;fill:#0ff;-webkit-print-color-adjust:aqua;color-adjust:aqua}.text-link__paragraph{margin:0;text-align:end}a:hover,a:focus,.text-link:hover,.text-link:focus{color:#1c77f7;cursor:pointer}@media (max-width: 1200px){.text-link{font-size:.9rem;width:160px}}@media (max-width: 450px){.text-link{font-size:.9rem;width:150px}}\n"] }]
697
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
698
+ type: Input
699
+ }], blank: [{
700
+ type: Input
701
+ }], icon: [{
702
+ type: Input
703
+ }], isClicked: [{
704
+ type: Output
705
705
  }] } });
706
706
 
707
- const environment = {
708
- production: false,
709
- baseUrl: 'https://lab.iptdev.com.co/',
710
- assets: 'https://qa.iptdev.com.co/assets/'
711
- };
712
-
713
- class UserService {
714
- constructor(http) {
715
- this.http = http;
716
- // private SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
717
- this.SERVICE_URL = environment.baseUrl + 'users/api/';
718
- }
719
- login(userLogin) {
720
- let serviceUrl = this.SERVICE_URL + 'post/login';
721
- this.generateRequestParams(userLogin);
722
- return this.http.post(serviceUrl, this.httpOptions);
723
- }
724
- resetPassword(resetPassword) {
725
- let serviceUrl = this.SERVICE_URL + 'reset/password';
726
- this.generateRequestParams(resetPassword);
727
- return this.http.post(serviceUrl, this.httpOptions);
728
- }
729
- register(user) {
730
- let serviceUrl = this.SERVICE_URL + 'post/create/web';
731
- this.generateRequestParams(user);
732
- return this.http.post(serviceUrl, this.httpOptions);
733
- }
734
- registerIndex(register) {
735
- let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
736
- this.generateRequestParams(register);
737
- return this.http.post(serviceUrl, this.httpOptions);
738
- }
739
- registerDashboard(user) {
740
- let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
741
- this.generateRequestParams(user);
742
- return this.http.post(serviceUrl, this.httpOptions);
743
- }
744
- getAvailableTeachers(token) {
745
- let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
746
- this.generateRequestParams(token);
747
- return this.http.post(serviceUrl, this.httpOptions);
748
- }
749
- getAllAdvisor(userToken) {
750
- let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
751
- this.generateRequestParams(userToken);
752
- return this.http.post(serviceUrl, this.httpOptions);
753
- }
754
- getByRoleUser(codeRole) {
755
- let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
756
- return this.http.get(serviceUrl);
757
- }
758
- getUserStatistics(userToken) {
759
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
760
- this.generateRequestParams(userToken);
761
- return this.http.post(serviceUrl, this.httpOptions);
762
- }
763
- getRoutesForRole(token) {
764
- let serviceUrl = this.SERVICE_URL + 'post/routes/role';
765
- this.generateRequestParams(token);
766
- return this.http.post(serviceUrl, this.httpOptions);
767
- }
768
- getStudents(token) {
769
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
770
- this.generateRequestParams(token);
771
- return this.http.post(serviceUrl, this.httpOptions);
772
- }
773
- getStudent(token) {
774
- let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
775
- this.generateRequestParams(token);
776
- return this.http.post(serviceUrl, this.httpOptions);
777
- }
778
- generateRequestParams(param) {
779
- this.httpOptions = {
780
- header: new HttpHeaders(),
781
- params: param,
782
- };
783
- }
784
- }
785
- UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
786
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
788
- type: Injectable,
789
- args: [{
790
- providedIn: 'root',
791
- }]
707
+ class IPTGeneralService {
708
+ baseUrl() {
709
+ let url = window.location.href;
710
+ if (url.includes('localhost')) {
711
+ return 'https://lab.iptdev.com.co';
712
+ }
713
+ else if (url.includes('inglesparatodos.edu.co') || url.includes('qa')) {
714
+ return 'https://iptdev.com.co';
715
+ }
716
+ else if (url.includes('inglesparatodos.us')) {
717
+ return 'https://iptdev.com.co';
718
+ }
719
+ else {
720
+ return 'error.com';
721
+ }
722
+ }
723
+ // construye los headers y params
724
+ generateRequestParams(param) {
725
+ this.httpOptions = {
726
+ header: new HttpHeaders(),
727
+ params: param,
728
+ };
729
+ }
730
+ }
731
+
732
+ class UserService extends IPTGeneralService {
733
+ constructor(http) {
734
+ super();
735
+ this.http = http;
736
+ this.SERVICE_URL = 'users/api/';
737
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
738
+ }
739
+ login(userLogin) {
740
+ let serviceUrl = this.SERVICE_URL + 'post/login';
741
+ this.generateRequestParams(userLogin);
742
+ return this.http.post(serviceUrl, this.httpOptions);
743
+ }
744
+ resetPassword(resetPassword) {
745
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
746
+ this.generateRequestParams(resetPassword);
747
+ return this.http.post(serviceUrl, this.httpOptions);
748
+ }
749
+ register(user) {
750
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
751
+ this.generateRequestParams(user);
752
+ return this.http.post(serviceUrl, this.httpOptions);
753
+ }
754
+ registerIndex(register) {
755
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
756
+ this.generateRequestParams(register);
757
+ return this.http.post(serviceUrl, this.httpOptions);
758
+ }
759
+ registerDashboard(user) {
760
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
761
+ this.generateRequestParams(user);
762
+ return this.http.post(serviceUrl, this.httpOptions);
763
+ }
764
+ getAvailableTeachers(token) {
765
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
766
+ this.generateRequestParams(token);
767
+ return this.http.post(serviceUrl, this.httpOptions);
768
+ }
769
+ getAllAdvisor(userToken) {
770
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
771
+ this.generateRequestParams(userToken);
772
+ return this.http.post(serviceUrl, this.httpOptions);
773
+ }
774
+ getByRoleUser(codeRole) {
775
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
776
+ return this.http.get(serviceUrl);
777
+ }
778
+ getUserStatistics(userToken) {
779
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
780
+ this.generateRequestParams(userToken);
781
+ return this.http.post(serviceUrl, this.httpOptions);
782
+ }
783
+ getRoutesForRole(token) {
784
+ let serviceUrl = this.SERVICE_URL + 'post/routes/role';
785
+ this.generateRequestParams(token);
786
+ return this.http.post(serviceUrl, this.httpOptions);
787
+ }
788
+ getStudents(token) {
789
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
790
+ this.generateRequestParams(token);
791
+ return this.http.post(serviceUrl, this.httpOptions);
792
+ }
793
+ getStudent(token) {
794
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
795
+ this.generateRequestParams(token);
796
+ return this.http.post(serviceUrl, this.httpOptions);
797
+ }
798
+ }
799
+ UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
800
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
802
+ type: Injectable,
803
+ args: [{
804
+ providedIn: 'root',
805
+ }]
792
806
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
793
807
 
794
- class StorageService {
795
- constructor() {
796
- this.currentSession = null;
797
- this.localStorageService = localStorage;
798
- this.currentSession = this.loadSessionData();
799
- }
800
- setCurrentSession(session) {
801
- this.currentSession = session;
802
- this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
803
- }
804
- loadSessionData() {
805
- var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
806
- return (sessionStr) ? JSON.parse(sessionStr) : null;
807
- }
808
- getCurrentSession() {
809
- return this.currentSession;
810
- }
811
- removeCurrentSession() {
812
- this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
813
- this.currentSession = null;
814
- }
815
- getCurrentUser() {
816
- var session = this.getCurrentSession();
817
- return (session && session.user) ? session.user : null;
818
- }
819
- ;
820
- isAuthenticated() {
821
- return (this.getCurrentToken() != null) ? true : false;
822
- }
823
- ;
824
- getCurrentToken() {
825
- var session = this.getCurrentSession();
826
- return (session && session.token) ? session.token : null;
827
- }
828
- ;
829
- logout() {
830
- this.removeCurrentSession();
831
- }
832
- }
833
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
834
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
835
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
836
- type: Injectable,
837
- args: [{
838
- providedIn: 'root',
839
- }]
808
+ class StorageService {
809
+ constructor() {
810
+ this.currentSession = null;
811
+ this.localStorageService = localStorage;
812
+ this.currentSession = this.loadSessionData();
813
+ }
814
+ setCurrentSession(session) {
815
+ this.currentSession = session;
816
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
817
+ }
818
+ loadSessionData() {
819
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
820
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
821
+ }
822
+ getCurrentSession() {
823
+ return this.currentSession;
824
+ }
825
+ removeCurrentSession() {
826
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
827
+ this.currentSession = null;
828
+ }
829
+ getCurrentUser() {
830
+ var session = this.getCurrentSession();
831
+ return (session && session.user) ? session.user : null;
832
+ }
833
+ ;
834
+ isAuthenticated() {
835
+ return (this.getCurrentToken() != null) ? true : false;
836
+ }
837
+ ;
838
+ getCurrentToken() {
839
+ var session = this.getCurrentSession();
840
+ return (session && session.token) ? session.token : null;
841
+ }
842
+ ;
843
+ logout() {
844
+ this.removeCurrentSession();
845
+ }
846
+ }
847
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
848
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
850
+ type: Injectable,
851
+ args: [{
852
+ providedIn: 'root',
853
+ }]
840
854
  }], ctorParameters: function () { return []; } });
841
855
 
842
- class CalendarService {
843
- constructor(http) {
844
- this.http = http;
845
- this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
846
- }
847
- postCreateQueryEvent(params) {
848
- let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
849
- this.generateRequestParams(params);
850
- return this.http.post(serviceUrl, this.httpOptions);
851
- }
852
- getEventByIdCalendar(idCalendar) {
853
- let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
854
- return this.http.get(serviceUrl);
855
- }
856
- postEventByDayTime(params) {
857
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
858
- this.generateRequestParams(params);
859
- return this.http.post(serviceUrl, this.httpOptions);
860
- }
861
- getEventsByCourse(params) {
862
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/course';
863
- this.generateRequestParams(params);
864
- return this.http.post(serviceUrl, this.httpOptions);
865
- }
866
- getEventByDateTime(params) {
867
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
868
- this.generateRequestParams(params);
869
- return this.http.post(serviceUrl, this.httpOptions);
870
- }
871
- getAvailability(params) {
872
- let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
873
- this.generateRequestParams(params);
874
- return this.http.post(serviceUrl, this.httpOptions);
875
- }
876
- addNewEvent(params) {
877
- let serviceUrl = this.SERVICE_URL + 'post/add/event/calendar/by/daytime';
878
- this.generateRequestParams(params);
879
- return this.http.post(serviceUrl, this.httpOptions);
880
- }
881
- generateRequestParams(param) {
882
- this.httpOptions = {
883
- header: new HttpHeaders(),
884
- params: param,
885
- };
886
- }
887
- }
888
- CalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
889
- CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
890
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
891
- type: Injectable,
892
- args: [{
893
- providedIn: 'root',
894
- }]
856
+ class CalendarService extends IPTGeneralService {
857
+ constructor(http) {
858
+ super();
859
+ this.http = http;
860
+ this.SERVICE_URL = 'calendar/api/';
861
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
862
+ }
863
+ postCreateQueryEvent(params) {
864
+ let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
865
+ this.generateRequestParams(params);
866
+ return this.http.post(serviceUrl, this.httpOptions);
867
+ }
868
+ getEventByIdCalendar(idCalendar) {
869
+ let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
870
+ return this.http.get(serviceUrl);
871
+ }
872
+ postEventByDayTime(params) {
873
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
874
+ this.generateRequestParams(params);
875
+ return this.http.post(serviceUrl, this.httpOptions);
876
+ }
877
+ getEventsByCourse(params) {
878
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/course';
879
+ this.generateRequestParams(params);
880
+ return this.http.post(serviceUrl, this.httpOptions);
881
+ }
882
+ getEventByDateTime(params) {
883
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
884
+ this.generateRequestParams(params);
885
+ return this.http.post(serviceUrl, this.httpOptions);
886
+ }
887
+ getAvailability(params) {
888
+ let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
889
+ this.generateRequestParams(params);
890
+ return this.http.post(serviceUrl, this.httpOptions);
891
+ }
892
+ addNewEvent(params) {
893
+ let serviceUrl = this.SERVICE_URL + 'post/add/event/calendar/by/daytime';
894
+ this.generateRequestParams(params);
895
+ return this.http.post(serviceUrl, this.httpOptions);
896
+ }
897
+ }
898
+ CalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
899
+ CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
901
+ type: Injectable,
902
+ args: [{
903
+ providedIn: 'root',
904
+ }]
895
905
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
896
906
 
897
- class BaseService {
898
- constructor(userService, storageService, calendarService) {
899
- this.userService = userService;
900
- this.storageService = storageService;
901
- this.calendarService = calendarService;
902
- }
903
- webLogin(user, password) {
904
- let request = {
905
- user: user,
906
- password: password
907
- };
908
- let service = this.userService;
909
- let storage = this.storageService;
910
- let appUser = this.isAnAppUser();
911
- return new Promise(function (resolve, reject) {
912
- service.login(request).subscribe(response => {
913
- switch (response.message.code) {
914
- case 1:
915
- if (!appUser) {
916
- Swal.fire({
917
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
918
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
919
- 'icon': 'success',
920
- });
921
- }
922
- const loginRegisterUser = {
923
- token: response.data.token,
924
- user: response.data,
925
- };
926
- storage.setCurrentSession(loginRegisterUser);
927
- resolve(true);
928
- break;
929
- case 2:
930
- Swal.fire({
931
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
932
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
933
- 'icon': 'warning',
934
- });
935
- resolve(false);
936
- break;
937
- case 3:
938
- Swal.fire({
939
- 'title': '<p style="font-family: Poppins"">Error!</p>',
940
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
941
- 'icon': 'error',
942
- });
943
- resolve(false);
944
- break;
945
- default:
946
- Swal.fire({
947
- 'title': '<p style="font-family: Poppins"">Error!</p>',
948
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
949
- 'icon': 'error',
950
- });
951
- resolve(false);
952
- break;
953
- }
954
- reject('Unhandled exception');
955
- });
956
- });
957
- }
958
- getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
959
- let request = {
960
- isTeacher: isTeacher,
961
- code: code,
962
- startDate: startDate,
963
- numClass: numClass,
964
- weekDays: weekDays,
965
- startTime: startTime,
966
- endTime: endTime,
967
- };
968
- let service = this.calendarService;
969
- return new Promise(function (resolve, reject) {
970
- service.postCreateQueryEvent(request).subscribe((response) => {
971
- switch (response.message.code) {
972
- case 1:
973
- resolve(response.data);
974
- break;
975
- default:
976
- reject('Unhandled exception');
977
- }
978
- reject('Unhandled exception');
979
- });
980
- });
981
- }
982
- isAnAppUser() {
983
- const userAgent = window.navigator.userAgent;
984
- return userAgent.includes('Flutter IPT APP');
985
- }
986
- getUserRole() {
987
- var _a;
988
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
989
- return user === undefined ? -1 : user;
990
- }
991
- getUserToken() {
992
- var _a;
993
- let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
994
- return token === undefined ? '-1' : token;
995
- }
996
- getUserName() {
997
- let user = this.storageService.getCurrentUser();
998
- let response = user === null ? '' : user.name;
999
- return response;
1000
- }
1001
- registerUserFromDashboard(registerDashboardRq) {
1002
- let request = registerDashboardRq;
1003
- let service = this.userService;
1004
- return new Promise(function (resolve, reject) {
1005
- service.registerDashboard(request).subscribe((response) => {
1006
- switch (response.message.code) {
1007
- case 1:
1008
- Swal.fire({
1009
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
1010
- 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
1011
- 'icon': 'success',
1012
- });
1013
- resolve(true);
1014
- break;
1015
- case 3:
1016
- Swal.fire({
1017
- 'title': '<p style="font-family: Poppins"">Error!</p>',
1018
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
1019
- 'icon': 'error',
1020
- });
1021
- resolve(false);
1022
- break;
1023
- case 4:
1024
- Swal.fire({
1025
- 'title': '<p style="font-family: Poppins">Ups!</p>',
1026
- 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1027
- 'icon': 'warning',
1028
- });
1029
- resolve(false);
1030
- break;
1031
- default:
1032
- Swal.fire({
1033
- 'title': '<p style="font-family: Poppins"">Error!</p>',
1034
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1035
- 'icon': 'error',
1036
- });
1037
- resolve(false);
1038
- break;
1039
- }
1040
- reject('Unhandled exception');
1041
- });
1042
- });
1043
- }
1044
- jsonToArray(data) {
1045
- var response = [];
1046
- data.forEach((element) => {
1047
- var object = [];
1048
- for (var clave in element) {
1049
- if (element.hasOwnProperty(clave)) {
1050
- if (typeof element[clave] == 'object') {
1051
- element[clave] = this.subJsonToArray(element[clave]);
1052
- }
1053
- object.push(element[clave]);
1054
- }
1055
- }
1056
- response.push(object);
1057
- });
1058
- return response;
1059
- }
1060
- subJsonToArray(data) {
1061
- var object = '';
1062
- for (var clave in data) {
1063
- if (clave != 'code') {
1064
- object += '\n' + data[clave];
1065
- }
1066
- }
1067
- return object;
1068
- }
1069
- }
1070
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }, { token: CalendarService }], target: i0.ɵɵFactoryTarget.Injectable });
1071
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1072
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1073
- type: Injectable,
1074
- args: [{
1075
- providedIn: 'root',
1076
- }]
907
+ class BaseService {
908
+ constructor(userService, storageService, calendarService) {
909
+ this.userService = userService;
910
+ this.storageService = storageService;
911
+ this.calendarService = calendarService;
912
+ }
913
+ webLogin(user, password) {
914
+ let request = {
915
+ user: user,
916
+ password: password
917
+ };
918
+ let service = this.userService;
919
+ let storage = this.storageService;
920
+ let appUser = this.isAnAppUser();
921
+ return new Promise(function (resolve, reject) {
922
+ service.login(request).subscribe(response => {
923
+ switch (response.message.code) {
924
+ case 1:
925
+ if (!appUser) {
926
+ Swal.fire({
927
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
928
+ 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
929
+ 'icon': 'success',
930
+ });
931
+ }
932
+ const loginRegisterUser = {
933
+ token: response.data.token,
934
+ user: response.data,
935
+ };
936
+ storage.setCurrentSession(loginRegisterUser);
937
+ resolve(true);
938
+ break;
939
+ case 2:
940
+ Swal.fire({
941
+ 'title': '<p style="font-family: Poppins"">Warning!</p>',
942
+ 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
943
+ 'icon': 'warning',
944
+ });
945
+ resolve(false);
946
+ break;
947
+ case 3:
948
+ Swal.fire({
949
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
950
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
951
+ 'icon': 'error',
952
+ });
953
+ resolve(false);
954
+ break;
955
+ default:
956
+ Swal.fire({
957
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
958
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
959
+ 'icon': 'error',
960
+ });
961
+ resolve(false);
962
+ break;
963
+ }
964
+ reject('Unhandled exception');
965
+ });
966
+ });
967
+ }
968
+ getCronogramAvailability(isTeacher, code, startDate, numClass, weekDays, startTime, endTime) {
969
+ let request = {
970
+ isTeacher: isTeacher,
971
+ code: code,
972
+ startDate: startDate,
973
+ numClass: numClass,
974
+ weekDays: weekDays,
975
+ startTime: startTime,
976
+ endTime: endTime,
977
+ };
978
+ let service = this.calendarService;
979
+ return new Promise(function (resolve, reject) {
980
+ service.postCreateQueryEvent(request).subscribe((response) => {
981
+ switch (response.message.code) {
982
+ case 1:
983
+ resolve(response.data);
984
+ break;
985
+ default:
986
+ reject('Unhandled exception');
987
+ }
988
+ reject('Unhandled exception');
989
+ });
990
+ });
991
+ }
992
+ isAnAppUser() {
993
+ const userAgent = window.navigator.userAgent;
994
+ return userAgent.includes('Flutter IPT APP');
995
+ }
996
+ getUserRole() {
997
+ var _a;
998
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.role;
999
+ return user === undefined ? -1 : user;
1000
+ }
1001
+ getUserToken() {
1002
+ var _a;
1003
+ let token = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1004
+ return token === undefined ? '-1' : token;
1005
+ }
1006
+ getUserName() {
1007
+ let user = this.storageService.getCurrentUser();
1008
+ let response = user === null ? '' : user.name;
1009
+ return response;
1010
+ }
1011
+ registerUserFromDashboard(registerDashboardRq) {
1012
+ let request = registerDashboardRq;
1013
+ let service = this.userService;
1014
+ return new Promise(function (resolve, reject) {
1015
+ service.registerDashboard(request).subscribe((response) => {
1016
+ switch (response.message.code) {
1017
+ case 1:
1018
+ Swal.fire({
1019
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
1020
+ 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
1021
+ 'icon': 'success',
1022
+ });
1023
+ resolve(true);
1024
+ break;
1025
+ case 3:
1026
+ Swal.fire({
1027
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
1028
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
1029
+ 'icon': 'error',
1030
+ });
1031
+ resolve(false);
1032
+ break;
1033
+ case 4:
1034
+ Swal.fire({
1035
+ 'title': '<p style="font-family: Poppins">Ups!</p>',
1036
+ 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
1037
+ 'icon': 'warning',
1038
+ });
1039
+ resolve(false);
1040
+ break;
1041
+ default:
1042
+ Swal.fire({
1043
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
1044
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
1045
+ 'icon': 'error',
1046
+ });
1047
+ resolve(false);
1048
+ break;
1049
+ }
1050
+ reject('Unhandled exception');
1051
+ });
1052
+ });
1053
+ }
1054
+ jsonToArray(data) {
1055
+ var response = [];
1056
+ data.forEach((element) => {
1057
+ var object = [];
1058
+ for (var clave in element) {
1059
+ if (element.hasOwnProperty(clave)) {
1060
+ if (typeof element[clave] == 'object') {
1061
+ element[clave] = this.subJsonToArray(element[clave]);
1062
+ }
1063
+ object.push(element[clave]);
1064
+ }
1065
+ }
1066
+ response.push(object);
1067
+ });
1068
+ return response;
1069
+ }
1070
+ subJsonToArray(data) {
1071
+ var object = '';
1072
+ for (var clave in data) {
1073
+ if (clave != 'code') {
1074
+ object += '\n' + data[clave];
1075
+ }
1076
+ }
1077
+ return object;
1078
+ }
1079
+ }
1080
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }, { token: CalendarService }], target: i0.ɵɵFactoryTarget.Injectable });
1081
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
1082
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
1083
+ type: Injectable,
1084
+ args: [{
1085
+ providedIn: 'root',
1086
+ }]
1077
1087
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }, { type: CalendarService }]; } });
1078
1088
 
1079
- class LoginFormComponent {
1080
- constructor(fb, baseService) {
1081
- this.baseService = baseService;
1082
- this.isLogged = new EventEmitter();
1083
- this.loginForm = fb.group({
1084
- email: ['', [Validators.required]],
1085
- password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1086
- });
1087
- }
1088
- login(data) {
1089
- this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1090
- this.isLogged.emit(isLogged);
1091
- });
1092
- }
1093
- }
1094
- LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }], target: i0.ɵɵFactoryTarget.Component });
1095
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1096
- <div class="form-container">
1097
-
1098
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1099
- <hr>
1100
-
1101
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1102
- <ipt-input
1103
- [inputType]="'text'"
1104
- [placeHolder]="'Email'"
1105
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1106
- [control]="loginForm.controls['email']"
1107
- ></ipt-input>
1108
-
1109
- <ipt-input
1110
- [inputType]="'password'"
1111
- [placeHolder]="'Password'"
1112
- [control]="loginForm.controls['password']"
1113
- ></ipt-input>
1114
- </form>
1115
-
1116
- <div class="button-container">
1117
- <ipt-button
1118
- [label]="'Login'"
1119
- [primary]="true"
1120
- [isEnabled]="loginForm.valid"
1121
- (onClick)="login(loginForm)"
1122
- ></ipt-button>
1123
- </div>
1124
-
1125
- </div>
1126
- `, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
1127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1128
- type: Component,
1129
- args: [{ selector: 'ipt-login-form', template: `
1130
- <div class="form-container">
1131
-
1132
- <h2 style="text-align: center;">IPT PLATFORM</h2>
1133
- <hr>
1134
-
1135
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1136
- <ipt-input
1137
- [inputType]="'text'"
1138
- [placeHolder]="'Email'"
1139
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
1140
- [control]="loginForm.controls['email']"
1141
- ></ipt-input>
1142
-
1143
- <ipt-input
1144
- [inputType]="'password'"
1145
- [placeHolder]="'Password'"
1146
- [control]="loginForm.controls['password']"
1147
- ></ipt-input>
1148
- </form>
1149
-
1150
- <div class="button-container">
1151
- <ipt-button
1152
- [label]="'Login'"
1153
- [primary]="true"
1154
- [isEnabled]="loginForm.valid"
1155
- (onClick)="login(loginForm)"
1156
- ></ipt-button>
1157
- </div>
1158
-
1159
- </div>
1160
- `, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"] }]
1161
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1162
- type: Output
1089
+ class LoginFormComponent {
1090
+ constructor(fb, baseService) {
1091
+ this.baseService = baseService;
1092
+ this.isLogged = new EventEmitter();
1093
+ this.loginForm = fb.group({
1094
+ email: ['', [Validators.required]],
1095
+ password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
1096
+ });
1097
+ }
1098
+ login(data) {
1099
+ this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
1100
+ this.isLogged.emit(isLogged);
1101
+ });
1102
+ }
1103
+ }
1104
+ LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }], target: i0.ɵɵFactoryTarget.Component });
1105
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
1106
+ <div class="form-container">
1107
+
1108
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1109
+ <hr>
1110
+
1111
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1112
+ <ipt-input
1113
+ [inputType]="'text'"
1114
+ [placeHolder]="'Email'"
1115
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1116
+ [control]="loginForm.controls['email']"
1117
+ ></ipt-input>
1118
+
1119
+ <ipt-input
1120
+ [inputType]="'password'"
1121
+ [placeHolder]="'Password'"
1122
+ [control]="loginForm.controls['password']"
1123
+ ></ipt-input>
1124
+ </form>
1125
+
1126
+ <div class="button-container">
1127
+ <ipt-button
1128
+ [label]="'Login'"
1129
+ [primary]="true"
1130
+ [isEnabled]="loginForm.valid"
1131
+ (onClick)="login(loginForm)"
1132
+ ></ipt-button>
1133
+ </div>
1134
+
1135
+ </div>
1136
+ `, isInline: true, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
1137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1138
+ type: Component,
1139
+ args: [{ selector: 'ipt-login-form', template: `
1140
+ <div class="form-container">
1141
+
1142
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1143
+ <hr>
1144
+
1145
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1146
+ <ipt-input
1147
+ [inputType]="'text'"
1148
+ [placeHolder]="'Email'"
1149
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1150
+ [control]="loginForm.controls['email']"
1151
+ ></ipt-input>
1152
+
1153
+ <ipt-input
1154
+ [inputType]="'password'"
1155
+ [placeHolder]="'Password'"
1156
+ [control]="loginForm.controls['password']"
1157
+ ></ipt-input>
1158
+ </form>
1159
+
1160
+ <div class="button-container">
1161
+ <ipt-button
1162
+ [label]="'Login'"
1163
+ [primary]="true"
1164
+ [isEnabled]="loginForm.valid"
1165
+ (onClick)="login(loginForm)"
1166
+ ></ipt-button>
1167
+ </div>
1168
+
1169
+ </div>
1170
+ `, styles: [".form-container{display:grid;grid-template-columns:1fr;justify-items:center;width:350px}.with-background{background-color:#fff;border-radius:25px;box-shadow:#32325d40 0 50px 100px -20px,#0000004d 0 30px 60px -30px}h2{color:#1c77f7}hr{width:80%}form{margin-bottom:60px;display:grid;grid-template-columns:1fr;grid-gap:30px;gap:30px;width:100%}.button-container{margin-bottom:70px;align-items:center;display:flex;gap:50px}footer{background-color:#1c77f7;border-top-left-radius:25px;border-top-right-radius:25px;width:100%;height:100px;display:flex;align-items:center;justify-content:center}\n"] }]
1171
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1172
+ type: Output
1163
1173
  }] } });
1164
1174
 
1165
- class ParameterService {
1166
- constructor(http) {
1167
- this.http = http;
1168
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1169
- }
1170
- getIndicatives() {
1171
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1172
- return this.http.get(serviceUrl);
1173
- }
1174
- getCardTypes(country) {
1175
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1176
- return this.http.get(serviceUrl);
1177
- }
1178
- getCountries() {
1179
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1180
- return this.http.get(serviceUrl);
1181
- }
1182
- getStatesByCountry(country) {
1183
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1184
- return this.http.get(serviceUrl);
1185
- }
1186
- getCitiesByState(state) {
1187
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1188
- return this.http.get(serviceUrl);
1189
- }
1190
- getAllPlans() {
1191
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1192
- return this.http.get(serviceUrl);
1193
- }
1194
- getLevels() {
1195
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1196
- return this.http.get(serviceUrl);
1197
- }
1198
- getAgreements() {
1199
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1200
- return this.http.get(serviceUrl);
1201
- }
1202
- getAgreementByCategory(typeCategory) {
1203
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1204
- return this.http.get(serviceUrl);
1205
- }
1206
- getAllClassrooms() {
1207
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1208
- return this.http.get(serviceUrl);
1209
- }
1210
- getCoursesTypes() {
1211
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1212
- return this.http.get(serviceUrl);
1213
- }
1214
- getCoursesTypesByPlan(typePlan) {
1215
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1216
- return this.http.get(serviceUrl);
1217
- }
1218
- getDegrees() {
1219
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1220
- return this.http.get(serviceUrl);
1221
- }
1222
- getProgramsByDegree(typeDegree) {
1223
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1224
- return this.http.get(serviceUrl);
1225
- }
1226
- getMarketingReasons() {
1227
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1228
- return this.http.get(serviceUrl);
1229
- }
1230
- getStudyReasons() {
1231
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1232
- return this.http.get(serviceUrl);
1233
- }
1234
- getAcademicUnits() {
1235
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1236
- return this.http.get(serviceUrl);
1237
- }
1238
- getStatusContact() {
1239
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1240
- return this.http.get(serviceUrl);
1241
- }
1242
- getTypePlan() {
1243
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1244
- return this.http.get(serviceUrl);
1245
- }
1246
- getTypePlanDiscount() {
1247
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1248
- return this.http.get(serviceUrl);
1249
- }
1250
- getContactedType() {
1251
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1252
- return this.http.get(serviceUrl);
1253
- }
1254
- getStatusByCode(codeStatus) {
1255
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1256
- return this.http.get(serviceUrl);
1257
- }
1258
- getAllTypeDiscount() {
1259
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1260
- return this.http.get(serviceUrl);
1261
- }
1262
- getAllCourseModality() {
1263
- let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1264
- return this.http.get(serviceUrl);
1265
- }
1266
- }
1267
- ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1268
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1270
- type: Injectable,
1271
- args: [{
1272
- providedIn: 'root',
1273
- }]
1175
+ class ParameterService extends IPTGeneralService {
1176
+ constructor(http) {
1177
+ super();
1178
+ this.http = http;
1179
+ this.SERVICE_URL = 'parameters/api/';
1180
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
1181
+ }
1182
+ getIndicatives() {
1183
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1184
+ return this.http.get(serviceUrl);
1185
+ }
1186
+ getCardTypes(country) {
1187
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1188
+ return this.http.get(serviceUrl);
1189
+ }
1190
+ getCountries() {
1191
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
1192
+ return this.http.get(serviceUrl);
1193
+ }
1194
+ getStatesByCountry(country) {
1195
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1196
+ return this.http.get(serviceUrl);
1197
+ }
1198
+ getCitiesByState(state) {
1199
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1200
+ return this.http.get(serviceUrl);
1201
+ }
1202
+ getAllPlans() {
1203
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1204
+ return this.http.get(serviceUrl);
1205
+ }
1206
+ getLevels() {
1207
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1208
+ return this.http.get(serviceUrl);
1209
+ }
1210
+ getAgreements() {
1211
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1212
+ return this.http.get(serviceUrl);
1213
+ }
1214
+ getAgreementByCategory(typeCategory) {
1215
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1216
+ return this.http.get(serviceUrl);
1217
+ }
1218
+ getAllClassrooms() {
1219
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1220
+ return this.http.get(serviceUrl);
1221
+ }
1222
+ getCoursesTypes() {
1223
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1224
+ return this.http.get(serviceUrl);
1225
+ }
1226
+ getCoursesTypesByPlan(typePlan) {
1227
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1228
+ return this.http.get(serviceUrl);
1229
+ }
1230
+ getDegrees() {
1231
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1232
+ return this.http.get(serviceUrl);
1233
+ }
1234
+ getProgramsByDegree(typeDegree) {
1235
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1236
+ return this.http.get(serviceUrl);
1237
+ }
1238
+ getMarketingReasons() {
1239
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1240
+ return this.http.get(serviceUrl);
1241
+ }
1242
+ getStudyReasons() {
1243
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1244
+ return this.http.get(serviceUrl);
1245
+ }
1246
+ getAcademicUnits() {
1247
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1248
+ return this.http.get(serviceUrl);
1249
+ }
1250
+ getStatusContact() {
1251
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1252
+ return this.http.get(serviceUrl);
1253
+ }
1254
+ getTypePlan() {
1255
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1256
+ return this.http.get(serviceUrl);
1257
+ }
1258
+ getTypePlanDiscount() {
1259
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1260
+ return this.http.get(serviceUrl);
1261
+ }
1262
+ getContactedType() {
1263
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1264
+ return this.http.get(serviceUrl);
1265
+ }
1266
+ getStatusByCode(codeStatus) {
1267
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1268
+ return this.http.get(serviceUrl);
1269
+ }
1270
+ getAllTypeDiscount() {
1271
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1272
+ return this.http.get(serviceUrl);
1273
+ }
1274
+ getAllCourseModality() {
1275
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1276
+ return this.http.get(serviceUrl);
1277
+ }
1278
+ }
1279
+ ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1280
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1282
+ type: Injectable,
1283
+ args: [{
1284
+ providedIn: 'root',
1285
+ }]
1274
1286
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1275
1287
 
1276
- class CreateUserFormComponent {
1277
- constructor(fb, parameterService, userService) {
1278
- this.fb = fb;
1279
- this.parameterService = parameterService;
1280
- this.userService = userService;
1281
- this.visibility = false;
1282
- this.userCreated = new EventEmitter(false);
1283
- this.onHide = new EventEmitter(false);
1284
- this.loader = false;
1285
- this.photo = '';
1286
- }
1287
- ngOnInit() {
1288
- this.initForm();
1289
- this.getParameters();
1290
- }
1291
- closeModal() {
1292
- this.visibility = false;
1293
- this.onHide.emit(true);
1294
- }
1295
- createUser() {
1296
- this.loader = true;
1297
- let request = {
1298
- name: this.createUserForm.controls['name'].value,
1299
- last_name: this.createUserForm.controls['last_name'].value,
1300
- id_card_type: this.createUserForm.controls['id_card_type'].value,
1301
- id_card: this.createUserForm.controls['id_card'].value,
1302
- phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1303
- phone_number: this.createUserForm.controls['phone_number'].value,
1304
- email: this.createUserForm.controls['email'].value,
1305
- city: this.createUserForm.controls['city'].value,
1306
- service_hour: this.createUserForm.controls['service_hour'].value,
1307
- role: this.createUserForm.controls['role'].value,
1308
- password: this.createUserForm.controls['password'].value,
1309
- };
1310
- this.userService.registerDashboard(request).subscribe((response) => {
1311
- console.log(response.message);
1312
- switch (response.message.code) {
1313
- case 1:
1314
- this.userCreated.emit(true);
1315
- this.initForm();
1316
- break;
1317
- case 2:
1318
- throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1319
- case 3:
1320
- throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1321
- default:
1322
- break;
1323
- }
1324
- this.loader = false;
1325
- });
1326
- }
1327
- getParameters() {
1328
- this.parameterService.getIndicatives().subscribe((response) => {
1329
- this.phoneNumberIndicatives = response.data;
1330
- });
1331
- this.parameterService.getCardTypes('col').subscribe((response) => {
1332
- this.idTypes = response.data;
1333
- });
1334
- this.parameterService.getStatesByCountry('col').subscribe((response) => {
1335
- this.states = response.data;
1336
- });
1337
- }
1338
- getRolesOptions() {
1339
- // Estudiante
1340
- if (this.userType === 'student') {
1341
- this.setPhoto('student');
1342
- return [
1343
- { code: '13', name: 'Student' },
1344
- ];
1345
- }
1346
- // Académico
1347
- if (this.userType === 'academic') {
1348
- this.setPhoto('academic');
1349
- return [
1350
- { code: '11', name: 'Teacher PRO' },
1351
- { code: '12', name: 'Teacher' },
1352
- ];
1353
- }
1354
- // Administrativo
1355
- if (this.userType === 'administrative') {
1356
- this.setPhoto('administrative');
1357
- return [
1358
- { code: '31', name: 'Administrative Supervisor' },
1359
- { code: '32', name: 'Administrative Advisor' },
1360
- ];
1361
- }
1362
- // Marketing
1363
- if (this.userType === 'marketing') {
1364
- this.setPhoto('marketing');
1365
- return [
1366
- { code: '21', name: 'Marketing Supervisor' },
1367
- { code: '22', name: 'Marketing Advisor' },
1368
- ];
1369
- }
1370
- // Comercial
1371
- if (this.userType === 'commercial') {
1372
- this.setPhoto('commercial');
1373
- return [
1374
- { code: '41', name: 'Commercial Supervisor' },
1375
- { code: '42', name: 'Commercial Advisor' },
1376
- ];
1377
- }
1378
- // Cartera
1379
- if (this.userType === 'treasure') {
1380
- this.setPhoto('treasure');
1381
- return [
1382
- { code: '51', name: 'Treauser Supervisor' },
1383
- { code: '52', name: 'Treauser Advisor' },
1384
- ];
1385
- }
1386
- }
1387
- initForm() {
1388
- this.createUserForm = this.fb.group({
1389
- name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1390
- last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1391
- email: ['', [Validators.required, Validators.maxLength(300)]],
1392
- id_card_type: ['', [Validators.required]],
1393
- id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1394
- phone_indicative: ['', [Validators.required]],
1395
- city: ['', [Validators.required]],
1396
- role: ['', [Validators.required]],
1397
- service_hour: ['', [Validators.required]],
1398
- phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1399
- password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1400
- re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1401
- state: [''],
1402
- });
1403
- }
1404
- setPhoto(type) {
1405
- if (type === 'student')
1406
- this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1407
- if (type === 'academic')
1408
- this.photo = '../../../assets/user-form-assets/academico.png';
1409
- if (type === 'administrative')
1410
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1411
- if (type === 'marketing')
1412
- this.photo = '../../../assets/user-form-assets/marketing.jpg';
1413
- if (type === 'commercial')
1414
- this.photo = '../../../assets/user-form-assets/comercial.jpg';
1415
- if (type === 'treasure')
1416
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1417
- }
1418
- selectRol(role) {
1419
- if (role !== 'Seleccione el rol') {
1420
- this.createUserForm.controls['role'].setValue(role);
1421
- }
1422
- else {
1423
- this.createUserForm.controls['role'].setValue(null);
1424
- }
1425
- }
1426
- selectIndicatives(indicative) {
1427
- if (indicative !== 'Seleccione el indicativo') {
1428
- this.createUserForm.controls['phone_indicative'].setValue(indicative);
1429
- }
1430
- else {
1431
- this.createUserForm.controls['phone_indicative'].setValue(null);
1432
- }
1433
- }
1434
- selectIdType(idType) {
1435
- if (idType !== 'Ingrese el tipo de documento') {
1436
- this.createUserForm.controls['id_card_type'].setValue(idType);
1437
- }
1438
- else {
1439
- this.createUserForm.controls['id_card_type'].setValue(null);
1440
- }
1441
- }
1442
- selectState(state) {
1443
- if (state !== 'Seleccione el departamento') {
1444
- this.createUserForm.controls['state'].setValue(state);
1445
- this.parameterService.getCitiesByState(state).subscribe((response) => {
1446
- this.cities = response.data;
1447
- });
1448
- }
1449
- else {
1450
- this.createUserForm.controls['state'].setValue(null);
1451
- this.createUserForm.controls['city'].setValue(null);
1452
- this.cities = [];
1453
- }
1454
- }
1455
- selectCity(city) {
1456
- if (city !== 'Ciudad de residencia') {
1457
- this.createUserForm.controls['city'].setValue(city);
1458
- }
1459
- else {
1460
- this.createUserForm.controls['city'].setValue(null);
1461
- }
1462
- }
1463
- }
1464
- CreateUserFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });
1465
- CreateUserFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CreateUserFormComponent, selector: "ipt-create-user-form", inputs: { userType: "userType", visibility: "visibility" }, outputs: { userCreated: "userCreated", onHide: "onHide" }, ngImport: i0, template: "<main *ngIf=\"visibility\">\r\n <div @fade class=\"modal_container\">\r\n <div class=\"header_modal\">\r\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\r\n <button (click)=\"closeModal()\">x</button>\r\n </div>\r\n <div class=\"grid_container\">\r\n <div>\r\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Nombre completo'\"\r\n [control]=\"createUserForm.controls['name']\"\r\n [validateText]=\"'Debe ingresar el nombre'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Apellidos'\"\r\n [control]=\"createUserForm.controls['last_name']\"\r\n [validateText]=\"'Debe ingresar los apellidos'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Correo electr\u00F3nico'\"\r\n [control]=\"createUserForm.controls['email']\"\r\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [defaultText]=\"'Seleccione el rol'\"\r\n (eventSelect)=\"selectRol($event)\"\r\n [data]=\"getRolesOptions()\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"phoneNumberIndicatives\"\r\n (eventSelect)=\"selectIndicatives($event)\"\r\n [defaultText]=\"'Seleccione el indicativo'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\r\n [control]=\"createUserForm.controls['phone_number']\"\r\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"idTypes\"\r\n (eventSelect)=\"selectIdType($event)\"\r\n [defaultText]=\"'Ingrese el tipo de documento'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Documento de identidad'\"\r\n [control]=\"createUserForm.controls['id_card']\"\r\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectState($event)\"\r\n [data]=\"states\"\r\n [defaultText]=\"'Seleccione el departamento'\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectCity($event)\"\r\n [data]=\"cities\"\r\n [defaultText]=\"'Ciudad de residencia'\"\r\n ></ipt-select>\r\n <ipt-input *ngIf=\"!(userType === 'student')\"\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Ingrese las horas de servicio'\"\r\n [control]=\"createUserForm.controls['service_hour']\"\r\n [validateText]=\"'Debe ingresar las horas de servicio'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['password']\"\r\n >\r\n </ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['re_password']\"\r\n >\r\n </ipt-input>\r\n </form>\r\n\r\n <div class=\"buttons-container\">\r\n <ipt-button\r\n [label]=\"'Crear usuario'\"\r\n [isEnabled]=\"\r\n !loader &&\r\n createUserForm.value['re_password'] ===\r\n createUserForm.value['password']\r\n \"\r\n (onClick)=\"createUser()\"\r\n [primary]=\"true\"\r\n >\r\n </ipt-button>\r\n </div>\r\n </div>\r\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\r\n </div>\r\n </div>\r\n</main>\r\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "titlecase": i1.TitleCasePipe }, animations: [
1466
- trigger('fade', [
1467
- transition('void => *', [
1468
- style({ opacity: 0 }),
1469
- animate(200, style({ opacity: 1 }))
1470
- ])
1471
- ])
1472
- ] });
1473
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1474
- type: Component,
1475
- args: [{ selector: 'ipt-create-user-form', animations: [
1476
- trigger('fade', [
1477
- transition('void => *', [
1478
- style({ opacity: 0 }),
1479
- animate(200, style({ opacity: 1 }))
1480
- ])
1481
- ])
1482
- ], template: "<main *ngIf=\"visibility\">\r\n <div @fade class=\"modal_container\">\r\n <div class=\"header_modal\">\r\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\r\n <button (click)=\"closeModal()\">x</button>\r\n </div>\r\n <div class=\"grid_container\">\r\n <div>\r\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Nombre completo'\"\r\n [control]=\"createUserForm.controls['name']\"\r\n [validateText]=\"'Debe ingresar el nombre'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Apellidos'\"\r\n [control]=\"createUserForm.controls['last_name']\"\r\n [validateText]=\"'Debe ingresar los apellidos'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'text'\"\r\n [placeHolder]=\"'Correo electr\u00F3nico'\"\r\n [control]=\"createUserForm.controls['email']\"\r\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [defaultText]=\"'Seleccione el rol'\"\r\n (eventSelect)=\"selectRol($event)\"\r\n [data]=\"getRolesOptions()\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"phoneNumberIndicatives\"\r\n (eventSelect)=\"selectIndicatives($event)\"\r\n [defaultText]=\"'Seleccione el indicativo'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\r\n [control]=\"createUserForm.controls['phone_number']\"\r\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n [data]=\"idTypes\"\r\n (eventSelect)=\"selectIdType($event)\"\r\n [defaultText]=\"'Ingrese el tipo de documento'\"\r\n ></ipt-select>\r\n <ipt-input\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Documento de identidad'\"\r\n [control]=\"createUserForm.controls['id_card']\"\r\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\r\n ></ipt-input>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectState($event)\"\r\n [data]=\"states\"\r\n [defaultText]=\"'Seleccione el departamento'\"\r\n ></ipt-select>\r\n <ipt-select\r\n [isRequired]=\"true\"\r\n (eventSelect)=\"selectCity($event)\"\r\n [data]=\"cities\"\r\n [defaultText]=\"'Ciudad de residencia'\"\r\n ></ipt-select>\r\n <ipt-input *ngIf=\"!(userType === 'student')\"\r\n [inputType]=\"'number'\"\r\n [placeHolder]=\"'Ingrese las horas de servicio'\"\r\n [control]=\"createUserForm.controls['service_hour']\"\r\n [validateText]=\"'Debe ingresar las horas de servicio'\"\r\n ></ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['password']\"\r\n >\r\n </ipt-input>\r\n <ipt-input\r\n [inputType]=\"'password'\"\r\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\r\n [control]=\"createUserForm.controls['re_password']\"\r\n >\r\n </ipt-input>\r\n </form>\r\n\r\n <div class=\"buttons-container\">\r\n <ipt-button\r\n [label]=\"'Crear usuario'\"\r\n [isEnabled]=\"\r\n !loader &&\r\n createUserForm.value['re_password'] ===\r\n createUserForm.value['password']\r\n \"\r\n (onClick)=\"createUser()\"\r\n [primary]=\"true\"\r\n >\r\n </ipt-button>\r\n </div>\r\n </div>\r\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\r\n </div>\r\n </div>\r\n</main>\r\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"] }]
1483
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1484
- type: Input
1485
- }], visibility: [{
1486
- type: Input
1487
- }], userCreated: [{
1488
- type: Output
1489
- }], onHide: [{
1490
- type: Output
1288
+ class CreateUserFormComponent {
1289
+ constructor(fb, parameterService, userService) {
1290
+ this.fb = fb;
1291
+ this.parameterService = parameterService;
1292
+ this.userService = userService;
1293
+ this.visibility = false;
1294
+ this.userCreated = new EventEmitter(false);
1295
+ this.onHide = new EventEmitter(false);
1296
+ this.loader = false;
1297
+ this.photo = '';
1298
+ }
1299
+ ngOnInit() {
1300
+ this.initForm();
1301
+ this.getParameters();
1302
+ }
1303
+ closeModal() {
1304
+ this.visibility = false;
1305
+ this.onHide.emit(true);
1306
+ }
1307
+ createUser() {
1308
+ this.loader = true;
1309
+ let request = {
1310
+ name: this.createUserForm.controls['name'].value,
1311
+ last_name: this.createUserForm.controls['last_name'].value,
1312
+ id_card_type: this.createUserForm.controls['id_card_type'].value,
1313
+ id_card: this.createUserForm.controls['id_card'].value,
1314
+ phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1315
+ phone_number: this.createUserForm.controls['phone_number'].value,
1316
+ email: this.createUserForm.controls['email'].value,
1317
+ city: this.createUserForm.controls['city'].value,
1318
+ service_hour: this.createUserForm.controls['service_hour'].value,
1319
+ role: this.createUserForm.controls['role'].value,
1320
+ password: this.createUserForm.controls['password'].value,
1321
+ };
1322
+ this.userService.registerDashboard(request).subscribe((response) => {
1323
+ console.log(response.message);
1324
+ switch (response.message.code) {
1325
+ case 1:
1326
+ this.userCreated.emit(true);
1327
+ this.initForm();
1328
+ break;
1329
+ case 2:
1330
+ throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1331
+ case 3:
1332
+ throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1333
+ default:
1334
+ break;
1335
+ }
1336
+ this.loader = false;
1337
+ });
1338
+ }
1339
+ getParameters() {
1340
+ this.parameterService.getIndicatives().subscribe((response) => {
1341
+ this.phoneNumberIndicatives = response.data;
1342
+ });
1343
+ this.parameterService.getCardTypes('col').subscribe((response) => {
1344
+ this.idTypes = response.data;
1345
+ });
1346
+ this.parameterService.getStatesByCountry('col').subscribe((response) => {
1347
+ this.states = response.data;
1348
+ });
1349
+ }
1350
+ getRolesOptions() {
1351
+ // Estudiante
1352
+ if (this.userType === 'student') {
1353
+ this.setPhoto('student');
1354
+ return [
1355
+ { code: '13', name: 'Student' },
1356
+ ];
1357
+ }
1358
+ // Académico
1359
+ if (this.userType === 'academic') {
1360
+ this.setPhoto('academic');
1361
+ return [
1362
+ { code: '11', name: 'Teacher PRO' },
1363
+ { code: '12', name: 'Teacher' },
1364
+ ];
1365
+ }
1366
+ // Administrativo
1367
+ if (this.userType === 'administrative') {
1368
+ this.setPhoto('administrative');
1369
+ return [
1370
+ { code: '31', name: 'Administrative Supervisor' },
1371
+ { code: '32', name: 'Administrative Advisor' },
1372
+ ];
1373
+ }
1374
+ // Marketing
1375
+ if (this.userType === 'marketing') {
1376
+ this.setPhoto('marketing');
1377
+ return [
1378
+ { code: '21', name: 'Marketing Supervisor' },
1379
+ { code: '22', name: 'Marketing Advisor' },
1380
+ ];
1381
+ }
1382
+ // Comercial
1383
+ if (this.userType === 'commercial') {
1384
+ this.setPhoto('commercial');
1385
+ return [
1386
+ { code: '41', name: 'Commercial Supervisor' },
1387
+ { code: '42', name: 'Commercial Advisor' },
1388
+ ];
1389
+ }
1390
+ // Cartera
1391
+ if (this.userType === 'treasure') {
1392
+ this.setPhoto('treasure');
1393
+ return [
1394
+ { code: '51', name: 'Treauser Supervisor' },
1395
+ { code: '52', name: 'Treauser Advisor' },
1396
+ ];
1397
+ }
1398
+ }
1399
+ initForm() {
1400
+ this.createUserForm = this.fb.group({
1401
+ name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1402
+ last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1403
+ email: ['', [Validators.required, Validators.maxLength(300)]],
1404
+ id_card_type: ['', [Validators.required]],
1405
+ id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1406
+ phone_indicative: ['', [Validators.required]],
1407
+ city: ['', [Validators.required]],
1408
+ role: ['', [Validators.required]],
1409
+ service_hour: ['', [Validators.required]],
1410
+ phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1411
+ password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1412
+ re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1413
+ state: [''],
1414
+ });
1415
+ }
1416
+ setPhoto(type) {
1417
+ if (type === 'student')
1418
+ this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1419
+ if (type === 'academic')
1420
+ this.photo = '../../../assets/user-form-assets/academico.png';
1421
+ if (type === 'administrative')
1422
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1423
+ if (type === 'marketing')
1424
+ this.photo = '../../../assets/user-form-assets/marketing.jpg';
1425
+ if (type === 'commercial')
1426
+ this.photo = '../../../assets/user-form-assets/comercial.jpg';
1427
+ if (type === 'treasure')
1428
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1429
+ }
1430
+ selectRol(role) {
1431
+ if (role !== 'Seleccione el rol') {
1432
+ this.createUserForm.controls['role'].setValue(role);
1433
+ }
1434
+ else {
1435
+ this.createUserForm.controls['role'].setValue(null);
1436
+ }
1437
+ }
1438
+ selectIndicatives(indicative) {
1439
+ if (indicative !== 'Seleccione el indicativo') {
1440
+ this.createUserForm.controls['phone_indicative'].setValue(indicative);
1441
+ }
1442
+ else {
1443
+ this.createUserForm.controls['phone_indicative'].setValue(null);
1444
+ }
1445
+ }
1446
+ selectIdType(idType) {
1447
+ if (idType !== 'Ingrese el tipo de documento') {
1448
+ this.createUserForm.controls['id_card_type'].setValue(idType);
1449
+ }
1450
+ else {
1451
+ this.createUserForm.controls['id_card_type'].setValue(null);
1452
+ }
1453
+ }
1454
+ selectState(state) {
1455
+ if (state !== 'Seleccione el departamento') {
1456
+ this.createUserForm.controls['state'].setValue(state);
1457
+ this.parameterService.getCitiesByState(state).subscribe((response) => {
1458
+ this.cities = response.data;
1459
+ });
1460
+ }
1461
+ else {
1462
+ this.createUserForm.controls['state'].setValue(null);
1463
+ this.createUserForm.controls['city'].setValue(null);
1464
+ this.cities = [];
1465
+ }
1466
+ }
1467
+ selectCity(city) {
1468
+ if (city !== 'Ciudad de residencia') {
1469
+ this.createUserForm.controls['city'].setValue(city);
1470
+ }
1471
+ else {
1472
+ this.createUserForm.controls['city'].setValue(null);
1473
+ }
1474
+ }
1475
+ }
1476
+ CreateUserFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: ParameterService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });
1477
+ CreateUserFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: CreateUserFormComponent, selector: "ipt-create-user-form", inputs: { userType: "userType", visibility: "visibility" }, outputs: { userCreated: "userCreated", onHide: "onHide" }, ngImport: i0, template: "<main *ngIf=\"visibility\">\n <div @fade class=\"modal_container\">\n <div class=\"header_modal\">\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\n <button (click)=\"closeModal()\">x</button>\n </div>\n <div class=\"grid_container\">\n <div>\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombre completo'\"\n [control]=\"createUserForm.controls['name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"createUserForm.controls['last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"createUserForm.controls['email']\"\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [defaultText]=\"'Seleccione el rol'\"\n (eventSelect)=\"selectRol($event)\"\n [data]=\"getRolesOptions()\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"phoneNumberIndicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Seleccione el indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"createUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Ingrese el tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento de identidad'\"\n [control]=\"createUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Seleccione el departamento'\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input *ngIf=\"!(userType === 'student')\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Ingrese las horas de servicio'\"\n [control]=\"createUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"createUserForm.controls['password']\"\n >\n </ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"createUserForm.controls['re_password']\"\n >\n </ipt-input>\n </form>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Crear usuario'\"\n [isEnabled]=\"\n !loader &&\n createUserForm.value['re_password'] ===\n createUserForm.value['password']\n \"\n (onClick)=\"createUser()\"\n [primary]=\"true\"\n >\n </ipt-button>\n </div>\n </div>\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\n </div>\n </div>\n</main>\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }, { type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "control"], outputs: ["eventSelect"] }, { type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "titlecase": i1.TitleCasePipe }, animations: [
1478
+ trigger('fade', [
1479
+ transition('void => *', [
1480
+ style({ opacity: 0 }),
1481
+ animate(200, style({ opacity: 1 }))
1482
+ ])
1483
+ ])
1484
+ ] });
1485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1486
+ type: Component,
1487
+ args: [{ selector: 'ipt-create-user-form', animations: [
1488
+ trigger('fade', [
1489
+ transition('void => *', [
1490
+ style({ opacity: 0 }),
1491
+ animate(200, style({ opacity: 1 }))
1492
+ ])
1493
+ ])
1494
+ ], template: "<main *ngIf=\"visibility\">\n <div @fade class=\"modal_container\">\n <div class=\"header_modal\">\n <h1>Crear usuario de {{ userType | titlecase}}</h1>\n <button (click)=\"closeModal()\">x</button>\n </div>\n <div class=\"grid_container\">\n <div>\n <form autocomplete=\"off\" [formGroup]=\"createUserForm\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombre completo'\"\n [control]=\"createUserForm.controls['name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"createUserForm.controls['last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"createUserForm.controls['email']\"\n [validateText]=\"'Debe tener dominio @inglesparatodos.edu.co'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [defaultText]=\"'Seleccione el rol'\"\n (eventSelect)=\"selectRol($event)\"\n [data]=\"getRolesOptions()\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"phoneNumberIndicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Seleccione el indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"createUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Ingrese el tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento de identidad'\"\n [control]=\"createUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Seleccione el departamento'\"\n ></ipt-select>\n <ipt-select\n [isRequired]=\"true\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input *ngIf=\"!(userType === 'student')\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Ingrese las horas de servicio'\"\n [control]=\"createUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"createUserForm.controls['password']\"\n >\n </ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"createUserForm.controls['re_password']\"\n >\n </ipt-input>\n </form>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Crear usuario'\"\n [isEnabled]=\"\n !loader &&\n createUserForm.value['re_password'] ===\n createUserForm.value['password']\n \"\n (onClick)=\"createUser()\"\n [primary]=\"true\"\n >\n </ipt-button>\n </div>\n </div>\n <div [ngStyle]=\"{'background-image': 'url(' + photo + ')'}\" class=\"user_type_image\"></div>\n </div>\n </div>\n</main>\n", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:6px}.header_modal{display:flex;padding:0 15px;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr}form{display:grid;grid-template-columns:1fr;grid-gap:.25rem;gap:.25rem;justify-content:center;padding:0 1rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center;justify-items:center;align-content:center}.user_type_image{display:none}}@media screen and (min-width: 768px){form{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;justify-content:center}}@media screen and (min-width: 1366px){form{padding:0rem}.grid_container{display:grid;grid-template-columns:1fr 250px;grid-gap:1rem;gap:1rem;padding:1rem}.user_type_image{display:flex;background-size:cover;background-repeat:no-repeat;background-position:center;height:100%;border-radius:1rem;padding:1rem}}\n"] }]
1495
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1496
+ type: Input
1497
+ }], visibility: [{
1498
+ type: Input
1499
+ }], userCreated: [{
1500
+ type: Output
1501
+ }], onHide: [{
1502
+ type: Output
1491
1503
  }] } });
1492
1504
 
1493
- class SidenavComponent {
1494
- constructor(userService, baseService, storageService) {
1495
- this.userService = userService;
1496
- this.baseService = baseService;
1497
- this.storageService = storageService;
1498
- this.pageChangeEvent = new EventEmitter();
1499
- this.appUser = false;
1500
- this.routes = [];
1501
- this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1502
- this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1503
- this.hour = new Date().getHours();
1504
- }
1505
- ngOnInit() {
1506
- var _a;
1507
- let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1508
- let token = user === undefined ? '' : user;
1509
- let request = {
1510
- token: token,
1511
- };
1512
- this.userService.getRoutesForRole(request).subscribe((response) => {
1513
- this.routes = response.data;
1514
- });
1515
- this.appUser = this.baseService.isAnAppUser();
1516
- }
1517
- clickPage(event) {
1518
- this.pageChangeEvent.emit(event);
1519
- }
1520
- logout() {
1521
- this.storageService.logout();
1522
- this.pageChangeEvent.emit('logout');
1523
- }
1524
- }
1525
- SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: BaseService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1526
- SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
1527
- <mat-sidenav #sidenav mode="push" >
1528
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1529
- <span style="font-size: 15px;">{{department}}</span>
1530
- <span class="menu-icon-close"></span>
1531
- </mat-toolbar>
1532
-
1533
- <mat-nav-list *ngFor="let route of routes">
1534
- <nav class="flex-container-menu">
1535
- <ipt-aside-button
1536
- [buttonActive]="this.setPage === route.page"
1537
- [icon]="route.icon"
1538
- [text]="route.text"
1539
- (isClicked)="clickPage(route.page)"
1540
- (click)="sidenav.toggle()"
1541
- >
1542
- </ipt-aside-button>
1543
- </nav>
1544
- </mat-nav-list>
1545
- </mat-sidenav>
1546
-
1547
- <mat-toolbar class="header">
1548
- <div class="menu-container" (click)="sidenav.toggle()">
1549
- <p>Menu</p>
1550
- <div class="menu-icon"></div>
1551
- </div>
1552
-
1553
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1554
-
1555
- <div class="text-container">
1556
- <span class="p1">{{ currentDay }}</span>
1557
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1558
- Hey {{ userName }}, Good moorning!
1559
- </span>
1560
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1561
- Hey {{ userName }}, Good afternoon!
1562
- </p>
1563
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1564
- Hey {{ userName }}, Good evening!
1565
- </p>
1566
- </div>
1567
-
1568
- <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1569
- <p class="logout-button">Cerrar sesión</p>
1570
- <div class="photo-logout"></div>
1571
- </div>
1572
- </mat-toolbar>
1573
- `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1575
- type: Component,
1576
- args: [{ selector: 'ipt-sidenav', template: `
1577
- <mat-sidenav #sidenav mode="push" >
1578
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1579
- <span style="font-size: 15px;">{{department}}</span>
1580
- <span class="menu-icon-close"></span>
1581
- </mat-toolbar>
1582
-
1583
- <mat-nav-list *ngFor="let route of routes">
1584
- <nav class="flex-container-menu">
1585
- <ipt-aside-button
1586
- [buttonActive]="this.setPage === route.page"
1587
- [icon]="route.icon"
1588
- [text]="route.text"
1589
- (isClicked)="clickPage(route.page)"
1590
- (click)="sidenav.toggle()"
1591
- >
1592
- </ipt-aside-button>
1593
- </nav>
1594
- </mat-nav-list>
1595
- </mat-sidenav>
1596
-
1597
- <mat-toolbar class="header">
1598
- <div class="menu-container" (click)="sidenav.toggle()">
1599
- <p>Menu</p>
1600
- <div class="menu-icon"></div>
1601
- </div>
1602
-
1603
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1604
-
1605
- <div class="text-container">
1606
- <span class="p1">{{ currentDay }}</span>
1607
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1608
- Hey {{ userName }}, Good moorning!
1609
- </span>
1610
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1611
- Hey {{ userName }}, Good afternoon!
1612
- </p>
1613
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1614
- Hey {{ userName }}, Good evening!
1615
- </p>
1616
- </div>
1617
-
1618
- <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1619
- <p class="logout-button">Cerrar sesión</p>
1620
- <div class="photo-logout"></div>
1621
- </div>
1622
- </mat-toolbar>
1623
- `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
1624
- }], ctorParameters: function () { return [{ type: UserService }, { type: BaseService }, { type: StorageService }]; }, propDecorators: { department: [{
1625
- type: Input
1626
- }], setPage: [{
1627
- type: Input
1628
- }], userName: [{
1629
- type: Input
1630
- }], pageChangeEvent: [{
1631
- type: Output
1505
+ class SidenavComponent {
1506
+ constructor(userService, baseService, storageService) {
1507
+ this.userService = userService;
1508
+ this.baseService = baseService;
1509
+ this.storageService = storageService;
1510
+ this.pageChangeEvent = new EventEmitter();
1511
+ this.appUser = false;
1512
+ this.routes = [];
1513
+ this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1514
+ this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1515
+ this.hour = new Date().getHours();
1516
+ }
1517
+ ngOnInit() {
1518
+ var _a;
1519
+ let user = (_a = this.storageService.getCurrentUser()) === null || _a === void 0 ? void 0 : _a.token;
1520
+ let token = user === undefined ? '' : user;
1521
+ let request = {
1522
+ token: token,
1523
+ };
1524
+ this.userService.getRoutesForRole(request).subscribe((response) => {
1525
+ this.routes = response.data;
1526
+ });
1527
+ this.appUser = this.baseService.isAnAppUser();
1528
+ }
1529
+ clickPage(event) {
1530
+ this.pageChangeEvent.emit(event);
1531
+ }
1532
+ logout() {
1533
+ this.storageService.logout();
1534
+ this.pageChangeEvent.emit('logout');
1535
+ }
1536
+ }
1537
+ SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: BaseService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1538
+ SidenavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: SidenavComponent, selector: "ipt-sidenav", inputs: { department: "department", setPage: "setPage", userName: "userName" }, outputs: { pageChangeEvent: "pageChangeEvent" }, ngImport: i0, template: `
1539
+ <mat-sidenav #sidenav mode="push" >
1540
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1541
+ <span style="font-size: 15px;">{{department}}</span>
1542
+ <span class="menu-icon-close"></span>
1543
+ </mat-toolbar>
1544
+
1545
+ <mat-nav-list *ngFor="let route of routes">
1546
+ <nav class="flex-container-menu">
1547
+ <ipt-aside-button
1548
+ [buttonActive]="this.setPage === route.page"
1549
+ [icon]="route.icon"
1550
+ [text]="route.text"
1551
+ (isClicked)="clickPage(route.page)"
1552
+ (click)="sidenav.toggle()"
1553
+ >
1554
+ </ipt-aside-button>
1555
+ </nav>
1556
+ </mat-nav-list>
1557
+ </mat-sidenav>
1558
+
1559
+ <mat-toolbar class="header">
1560
+ <div class="menu-container" (click)="sidenav.toggle()">
1561
+ <p>Menu</p>
1562
+ <div class="menu-icon"></div>
1563
+ </div>
1564
+
1565
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1566
+
1567
+ <div class="text-container">
1568
+ <span class="p1">{{ currentDay }}</span>
1569
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1570
+ Hey {{ userName }}, Good moorning!
1571
+ </span>
1572
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1573
+ Hey {{ userName }}, Good afternoon!
1574
+ </p>
1575
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1576
+ Hey {{ userName }}, Good evening!
1577
+ </p>
1578
+ </div>
1579
+
1580
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1581
+ <p class="logout-button">Cerrar sesión</p>
1582
+ <div class="photo-logout"></div>
1583
+ </div>
1584
+ </mat-toolbar>
1585
+ `, isInline: true, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"], components: [{ type: i4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i5.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6.MatNavList, selector: "mat-nav-list", inputs: ["disableRipple", "disabled"], exportAs: ["matNavList"] }, { type: AsideButtonComponent, selector: "ipt-aside-button", inputs: ["icon", "text", "buttonActive"], outputs: ["isClicked"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1587
+ type: Component,
1588
+ args: [{ selector: 'ipt-sidenav', template: `
1589
+ <mat-sidenav #sidenav mode="push" >
1590
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1591
+ <span style="font-size: 15px;">{{department}}</span>
1592
+ <span class="menu-icon-close"></span>
1593
+ </mat-toolbar>
1594
+
1595
+ <mat-nav-list *ngFor="let route of routes">
1596
+ <nav class="flex-container-menu">
1597
+ <ipt-aside-button
1598
+ [buttonActive]="this.setPage === route.page"
1599
+ [icon]="route.icon"
1600
+ [text]="route.text"
1601
+ (isClicked)="clickPage(route.page)"
1602
+ (click)="sidenav.toggle()"
1603
+ >
1604
+ </ipt-aside-button>
1605
+ </nav>
1606
+ </mat-nav-list>
1607
+ </mat-sidenav>
1608
+
1609
+ <mat-toolbar class="header">
1610
+ <div class="menu-container" (click)="sidenav.toggle()">
1611
+ <p>Menu</p>
1612
+ <div class="menu-icon"></div>
1613
+ </div>
1614
+
1615
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1616
+
1617
+ <div class="text-container">
1618
+ <span class="p1">{{ currentDay }}</span>
1619
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1620
+ Hey {{ userName }}, Good moorning!
1621
+ </span>
1622
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1623
+ Hey {{ userName }}, Good afternoon!
1624
+ </p>
1625
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1626
+ Hey {{ userName }}, Good evening!
1627
+ </p>
1628
+ </div>
1629
+
1630
+ <div *ngIf="!this.appUser" class="logout-container" (click)="logout()">
1631
+ <p class="logout-button">Cerrar sesión</p>
1632
+ <div class="photo-logout"></div>
1633
+ </div>
1634
+ </mat-toolbar>
1635
+ `, styles: ["*{font-family:Poppins,sans-serif}@media screen and (min-width: 320px){.header{background-color:#fff;display:flex;justify-content:space-between;filter:drop-shadow(0px -1px 7px #000)}mat-sidenav{width:-moz-fit-content!important;width:fit-content!important;background-color:#1c77f7!important}.img-logo,.text-container{display:none}.mat-toolbar.mat-primary{background-color:#fff!important;color:#003d99!important;filter:drop-shadow(0px -1px 7px #000)}.logout-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:auto;border-radius:30px;display:flex;margin-left:10px}.logout-button{display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin-left:20px;text-align:center;width:150px}.photo-logout{background:url(http://qa.iptdev.com.co/assets/icons/exit.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon{background:url(http://qa.iptdev.com.co/assets/icons/icon-menu.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat}.menu-icon-close{background:url(http://qa.iptdev.com.co/assets/icons/cruz.png);background-size:25px 25px;background-position:center;background-repeat:no-repeat;width:35px;height:35px}.menu-container{box-shadow:#11111a1a 0 8px 24px,#11111a1a 0 16px 56px,#11111a1a 0 24px 80px;height:35px;width:52.5px;width:auto;border-radius:30px;display:flex}.menu-container:hover{cursor:pointer}.menu-container p{width:85px;display:flex;align-items:center;color:#1c77f7;font-weight:500;font-size:16px;margin:0 0 0 15px;text-align:center}}@media screen and (min-width: 768px){.img-logo{display:flex;width:120px;height:60px}.text-container{border-radius:40px;height:45px;width:100%;display:flex;gap:-100px;justify-content:center;flex-direction:column;align-items:flex-start}}.p1{color:gray;margin-left:30px;font-size:13px;height:20px}.p2{margin-left:30px;font-size:14px;font-weight:600;color:#1c77f7}.flex-container-menu{font-size:18px;color:#fff!important}.mat-nav-list{padding:0}\n"] }]
1636
+ }], ctorParameters: function () { return [{ type: UserService }, { type: BaseService }, { type: StorageService }]; }, propDecorators: { department: [{
1637
+ type: Input
1638
+ }], setPage: [{
1639
+ type: Input
1640
+ }], userName: [{
1641
+ type: Input
1642
+ }], pageChangeEvent: [{
1643
+ type: Output
1632
1644
  }] } });
1633
1645
 
1634
- class MaterialModule {
1635
- }
1636
- MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1637
- MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1638
- MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1639
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1640
- type: NgModule,
1641
- args: [{
1642
- exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1643
- }]
1646
+ class MaterialModule {
1647
+ }
1648
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1649
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1650
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1652
+ type: NgModule,
1653
+ args: [{
1654
+ exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1655
+ }]
1644
1656
  }] });
1645
1657
 
1646
- class ComponentsModule {
1647
- }
1648
- ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1649
- ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1650
- ButtonComponent,
1651
- CheckboxComponent,
1652
- CreateUserFormComponent,
1653
- DatalistComponent,
1654
- InputComponent,
1655
- LevelButtonComponent,
1656
- LevelTextComponent,
1657
- LoginFormComponent,
1658
- LoaderComponent,
1659
- RadioComponent,
1660
- SelectComponent,
1661
- SidenavComponent,
1662
- TextLinkComponent], imports: [CommonModule,
1663
- // BrowserModule, // Para evitar doble carga de BrowserModule
1664
- FormsModule,
1665
- ReactiveFormsModule,
1666
- MaterialModule,
1667
- CurrencyMaskModule], exports: [AsideButtonComponent,
1668
- ButtonComponent,
1669
- CheckboxComponent,
1670
- CreateUserFormComponent,
1671
- DatalistComponent,
1672
- InputComponent,
1673
- LevelButtonComponent,
1674
- LevelTextComponent,
1675
- LoaderComponent,
1676
- RadioComponent,
1677
- SelectComponent,
1678
- TextLinkComponent,
1679
- LoginFormComponent,
1680
- SidenavComponent,
1681
- CurrencyMaskModule] });
1682
- ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1683
- CurrencyPipe,
1684
- TitleCasePipe
1685
- ], imports: [[
1686
- CommonModule,
1687
- // BrowserModule, // Para evitar doble carga de BrowserModule
1688
- FormsModule,
1689
- ReactiveFormsModule,
1690
- MaterialModule,
1691
- CurrencyMaskModule
1692
- ], CurrencyMaskModule] });
1693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1694
- type: NgModule,
1695
- args: [{
1696
- declarations: [
1697
- AsideButtonComponent,
1698
- ButtonComponent,
1699
- CheckboxComponent,
1700
- CreateUserFormComponent,
1701
- DatalistComponent,
1702
- InputComponent,
1703
- LevelButtonComponent,
1704
- LevelTextComponent,
1705
- LoginFormComponent,
1706
- LoaderComponent,
1707
- RadioComponent,
1708
- SelectComponent,
1709
- SidenavComponent,
1710
- TextLinkComponent,
1711
- ],
1712
- imports: [
1713
- CommonModule,
1714
- // BrowserModule, // Para evitar doble carga de BrowserModule
1715
- FormsModule,
1716
- ReactiveFormsModule,
1717
- MaterialModule,
1718
- CurrencyMaskModule
1719
- ],
1720
- exports: [
1721
- AsideButtonComponent,
1722
- ButtonComponent,
1723
- CheckboxComponent,
1724
- CreateUserFormComponent,
1725
- DatalistComponent,
1726
- InputComponent,
1727
- LevelButtonComponent,
1728
- LevelTextComponent,
1729
- LoaderComponent,
1730
- RadioComponent,
1731
- SelectComponent,
1732
- TextLinkComponent,
1733
- LoginFormComponent,
1734
- SidenavComponent,
1735
- CurrencyMaskModule
1736
- ],
1737
- providers: [
1738
- CurrencyPipe,
1739
- TitleCasePipe
1740
- ]
1741
- }]
1658
+ class ComponentsModule {
1659
+ }
1660
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1661
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1662
+ ButtonComponent,
1663
+ CheckboxComponent,
1664
+ CreateUserFormComponent,
1665
+ DatalistComponent,
1666
+ InputComponent,
1667
+ LevelButtonComponent,
1668
+ LevelTextComponent,
1669
+ LoginFormComponent,
1670
+ LoaderComponent,
1671
+ RadioComponent,
1672
+ SelectComponent,
1673
+ SidenavComponent,
1674
+ TextLinkComponent], imports: [CommonModule,
1675
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1676
+ FormsModule,
1677
+ ReactiveFormsModule,
1678
+ MaterialModule,
1679
+ CurrencyMaskModule], exports: [AsideButtonComponent,
1680
+ ButtonComponent,
1681
+ CheckboxComponent,
1682
+ CreateUserFormComponent,
1683
+ DatalistComponent,
1684
+ InputComponent,
1685
+ LevelButtonComponent,
1686
+ LevelTextComponent,
1687
+ LoaderComponent,
1688
+ RadioComponent,
1689
+ SelectComponent,
1690
+ TextLinkComponent,
1691
+ LoginFormComponent,
1692
+ SidenavComponent,
1693
+ CurrencyMaskModule] });
1694
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1695
+ CurrencyPipe,
1696
+ TitleCasePipe
1697
+ ], imports: [[
1698
+ CommonModule,
1699
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1700
+ FormsModule,
1701
+ ReactiveFormsModule,
1702
+ MaterialModule,
1703
+ CurrencyMaskModule
1704
+ ], CurrencyMaskModule] });
1705
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1706
+ type: NgModule,
1707
+ args: [{
1708
+ declarations: [
1709
+ AsideButtonComponent,
1710
+ ButtonComponent,
1711
+ CheckboxComponent,
1712
+ CreateUserFormComponent,
1713
+ DatalistComponent,
1714
+ InputComponent,
1715
+ LevelButtonComponent,
1716
+ LevelTextComponent,
1717
+ LoginFormComponent,
1718
+ LoaderComponent,
1719
+ RadioComponent,
1720
+ SelectComponent,
1721
+ SidenavComponent,
1722
+ TextLinkComponent,
1723
+ ],
1724
+ imports: [
1725
+ CommonModule,
1726
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1727
+ FormsModule,
1728
+ ReactiveFormsModule,
1729
+ MaterialModule,
1730
+ CurrencyMaskModule
1731
+ ],
1732
+ exports: [
1733
+ AsideButtonComponent,
1734
+ ButtonComponent,
1735
+ CheckboxComponent,
1736
+ CreateUserFormComponent,
1737
+ DatalistComponent,
1738
+ InputComponent,
1739
+ LevelButtonComponent,
1740
+ LevelTextComponent,
1741
+ LoaderComponent,
1742
+ RadioComponent,
1743
+ SelectComponent,
1744
+ TextLinkComponent,
1745
+ LoginFormComponent,
1746
+ SidenavComponent,
1747
+ CurrencyMaskModule
1748
+ ],
1749
+ providers: [
1750
+ CurrencyPipe,
1751
+ TitleCasePipe
1752
+ ]
1753
+ }]
1742
1754
  }] });
1743
1755
 
1744
- class CourseService {
1745
- constructor(http) {
1746
- this.http = http;
1747
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1748
- }
1749
- createCourse(course) {
1750
- let serviceUrl = this.SERVICE_URL + 'post/course';
1751
- this.generateRequestParams(course);
1752
- return this.http.post(serviceUrl, this.httpOptions);
1753
- }
1754
- editCourse(course) {
1755
- let serviceUrl = this.SERVICE_URL + 'put/course';
1756
- this.generateRequestParams(course);
1757
- return this.http.put(serviceUrl, this.httpOptions);
1758
- }
1759
- getAllCourses(params) {
1760
- let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1761
- this.generateRequestParams(params);
1762
- return this.http.post(serviceUrl, this.httpOptions);
1763
- }
1764
- getCoursesByLevel(params) {
1765
- let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1766
- this.generateRequestParams(params);
1767
- return this.http.post(serviceUrl, this.httpOptions);
1768
- }
1769
- getAvailibleCourses(availibleCourses) {
1770
- let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1771
- this.generateRequestParams(availibleCourses);
1772
- return this.http.post(serviceUrl, this.httpOptions);
1773
- }
1774
- getCourseByCode(params) {
1775
- let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1776
- this.generateRequestParams(params);
1777
- return this.http.post(serviceUrl, this.httpOptions);
1778
- }
1779
- getCoursesByTeacher(params) {
1780
- let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1781
- this.generateRequestParams(params);
1782
- return this.http.post(serviceUrl, this.httpOptions);
1783
- }
1784
- getFilteredCoursesByTeacher(params) {
1785
- let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1786
- this.generateRequestParams(params);
1787
- return this.http.post(serviceUrl, this.httpOptions);
1788
- }
1789
- getCoursesByStartDate(params) {
1790
- let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1791
- this.generateRequestParams(params);
1792
- return this.http.post(serviceUrl, this.httpOptions);
1793
- }
1794
- numberClassByCode(idCode) {
1795
- let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1796
- return this.http.get(serviceUrl);
1797
- }
1798
- // construye los headers y params
1799
- generateRequestParams(param) {
1800
- this.httpOptions = {
1801
- header: new HttpHeaders(),
1802
- params: param,
1803
- };
1804
- }
1805
- }
1806
- CourseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1807
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1808
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1809
- type: Injectable,
1810
- args: [{
1811
- providedIn: 'root',
1812
- }]
1756
+ class CourseService extends IPTGeneralService {
1757
+ constructor(http) {
1758
+ super();
1759
+ this.http = http;
1760
+ this.SERVICE_URL = 'academic/api/';
1761
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
1762
+ }
1763
+ createCourse(course) {
1764
+ let serviceUrl = this.SERVICE_URL + 'post/course';
1765
+ this.generateRequestParams(course);
1766
+ return this.http.post(serviceUrl, this.httpOptions);
1767
+ }
1768
+ editCourse(course) {
1769
+ let serviceUrl = this.SERVICE_URL + 'put/course';
1770
+ this.generateRequestParams(course);
1771
+ return this.http.put(serviceUrl, this.httpOptions);
1772
+ }
1773
+ getAllCourses(params) {
1774
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1775
+ this.generateRequestParams(params);
1776
+ return this.http.post(serviceUrl, this.httpOptions);
1777
+ }
1778
+ getCoursesByLevel(params) {
1779
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1780
+ this.generateRequestParams(params);
1781
+ return this.http.post(serviceUrl, this.httpOptions);
1782
+ }
1783
+ getAvailibleCourses(availibleCourses) {
1784
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1785
+ this.generateRequestParams(availibleCourses);
1786
+ return this.http.post(serviceUrl, this.httpOptions);
1787
+ }
1788
+ getCourseByCode(params) {
1789
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1790
+ this.generateRequestParams(params);
1791
+ return this.http.post(serviceUrl, this.httpOptions);
1792
+ }
1793
+ getCoursesByTeacher(params) {
1794
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1795
+ this.generateRequestParams(params);
1796
+ return this.http.post(serviceUrl, this.httpOptions);
1797
+ }
1798
+ getFilteredCoursesByTeacher(params) {
1799
+ let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1800
+ this.generateRequestParams(params);
1801
+ return this.http.post(serviceUrl, this.httpOptions);
1802
+ }
1803
+ getCoursesByStartDate(params) {
1804
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1805
+ this.generateRequestParams(params);
1806
+ return this.http.post(serviceUrl, this.httpOptions);
1807
+ }
1808
+ numberClassByCode(idCode) {
1809
+ let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1810
+ return this.http.get(serviceUrl);
1811
+ }
1812
+ }
1813
+ CourseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1814
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1816
+ type: Injectable,
1817
+ args: [{
1818
+ providedIn: 'root',
1819
+ }]
1813
1820
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1814
1821
 
1815
- class RedirectGuard {
1816
- constructor(router) {
1817
- this.router = router;
1818
- }
1819
- canActivate(route, state) {
1820
- window.location.href = route.data['externalUrl'];
1821
- return true;
1822
- }
1823
- }
1824
- RedirectGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
1825
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1826
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1827
- type: Injectable
1822
+ class RedirectGuard {
1823
+ constructor(router) {
1824
+ this.router = router;
1825
+ }
1826
+ canActivate(route, state) {
1827
+ window.location.href = route.data['externalUrl'];
1828
+ return true;
1829
+ }
1830
+ }
1831
+ RedirectGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
1832
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1834
+ type: Injectable
1828
1835
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1829
1836
 
1830
- class SwitchService {
1831
- constructor() {
1832
- this.$modal = new EventEmitter();
1833
- }
1834
- }
1835
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1836
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1838
- type: Injectable,
1839
- args: [{
1840
- providedIn: 'root'
1841
- }]
1837
+ class SwitchService {
1838
+ constructor() {
1839
+ this.$modal = new EventEmitter();
1840
+ }
1841
+ }
1842
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1843
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1845
+ type: Injectable,
1846
+ args: [{
1847
+ providedIn: 'root'
1848
+ }]
1842
1849
  }], ctorParameters: function () { return []; } });
1843
1850
 
1844
- class TestService {
1845
- constructor(http) {
1846
- this.http = http;
1847
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1848
- }
1849
- // ---------------------- EXÁMENES ---------------------- //
1850
- createExam(exam) {
1851
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1852
- this.generateRequestParams(exam);
1853
- return this.http.post(serviceUrl, this.httpOptions);
1854
- }
1855
- getAllExams(params) {
1856
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1857
- this.generateRequestParams(params);
1858
- return this.http.post(serviceUrl, this.httpOptions);
1859
- }
1860
- updateExam(params) {
1861
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1862
- this.generateRequestParams(params);
1863
- return this.http.put(serviceUrl, this.httpOptions);
1864
- }
1865
- updateExamStatus(params) {
1866
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1867
- this.generateRequestParams(params);
1868
- return this.http.put(serviceUrl, this.httpOptions);
1869
- }
1870
- copyExam(params) {
1871
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1872
- this.generateRequestParams(params);
1873
- return this.http.put(serviceUrl, this.httpOptions);
1874
- }
1875
- getExamByCode(code) {
1876
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1877
- return this.http.get(serviceUrl);
1878
- }
1879
- getExamByAuthor(code) {
1880
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1881
- return this.http.get(serviceUrl);
1882
- }
1883
- // ---------------------- SECCIONES ---------------------- //
1884
- createSectionWithAll(params) {
1885
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1886
- this.generateRequestParams(params);
1887
- return this.http.post(serviceUrl, this.httpOptions);
1888
- }
1889
- createSection(params) {
1890
- let serviceUrl = this.SERVICE_URL + 'post/section';
1891
- this.generateRequestParams(params);
1892
- return this.http.post(serviceUrl, this.httpOptions);
1893
- }
1894
- getAllSections(params) {
1895
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1896
- this.generateRequestParams(params);
1897
- return this.http.post(serviceUrl, this.httpOptions);
1898
- }
1899
- updateSection(params) {
1900
- let serviceUrl = this.SERVICE_URL + 'update/section';
1901
- this.generateRequestParams(params);
1902
- return this.http.put(serviceUrl, this.httpOptions);
1903
- }
1904
- updateSectionMedia(params) {
1905
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1906
- this.generateRequestParams(params);
1907
- return this.http.post(serviceUrl, this.httpOptions);
1908
- }
1909
- updateSectionState(params) {
1910
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1911
- this.generateRequestParams(params);
1912
- return this.http.put(serviceUrl, this.httpOptions);
1913
- }
1914
- getSectionsByExam(code) {
1915
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1916
- return this.http.get(serviceUrl);
1917
- }
1918
- // ---------------------- PREGUNTAS ---------------------- //
1919
- createQuestion(params) {
1920
- let serviceUrl = this.SERVICE_URL + 'post/question';
1921
- this.generateRequestParams(params);
1922
- return this.http.post(serviceUrl, this.httpOptions);
1923
- }
1924
- updateQuestion(params) {
1925
- let serviceUrl = this.SERVICE_URL + 'update/question';
1926
- this.generateRequestParams(params);
1927
- return this.http.put(serviceUrl, this.httpOptions);
1928
- }
1929
- getQuestionsBySections(params) {
1930
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1931
- this.generateRequestParams(params);
1932
- return this.http.post(serviceUrl, this.httpOptions);
1933
- }
1934
- getQuestionsBySection(params) {
1935
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1936
- this.generateRequestParams(params);
1937
- return this.http.post(serviceUrl, this.httpOptions);
1938
- }
1939
- // ---------------------- RESPUESTAS ---------------------- //
1940
- createAnswer(params) {
1941
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1942
- this.generateRequestParams(params);
1943
- return this.http.post(serviceUrl, this.httpOptions);
1944
- }
1945
- updateAnswer(params) {
1946
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1947
- this.generateRequestParams(params);
1948
- return this.http.put(serviceUrl, this.httpOptions);
1949
- }
1950
- getAnswersByQuestion(code) {
1951
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1952
- return this.http.get(serviceUrl, this.httpOptions);
1953
- }
1954
- updateQuestionState(params) {
1955
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1956
- this.generateRequestParams(params);
1957
- return this.http.put(serviceUrl, this.httpOptions);
1958
- }
1959
- // construye los headers y params
1960
- generateRequestParams(param) {
1961
- this.httpOptions = {
1962
- header: new HttpHeaders(),
1963
- params: param,
1964
- };
1965
- }
1966
- }
1967
- TestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1968
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1970
- type: Injectable,
1971
- args: [{
1972
- providedIn: 'root',
1973
- }]
1851
+ class TestService extends IPTGeneralService {
1852
+ constructor(http) {
1853
+ super();
1854
+ this.http = http;
1855
+ this.SERVICE_URL = 'test/api/';
1856
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
1857
+ }
1858
+ // ---------------------- EXÁMENES ---------------------- //
1859
+ createExam(exam) {
1860
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1861
+ this.generateRequestParams(exam);
1862
+ return this.http.post(serviceUrl, this.httpOptions);
1863
+ }
1864
+ getAllExams(params) {
1865
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1866
+ this.generateRequestParams(params);
1867
+ return this.http.post(serviceUrl, this.httpOptions);
1868
+ }
1869
+ updateExam(params) {
1870
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1871
+ this.generateRequestParams(params);
1872
+ return this.http.put(serviceUrl, this.httpOptions);
1873
+ }
1874
+ updateExamStatus(params) {
1875
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1876
+ this.generateRequestParams(params);
1877
+ return this.http.put(serviceUrl, this.httpOptions);
1878
+ }
1879
+ copyExam(params) {
1880
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1881
+ this.generateRequestParams(params);
1882
+ return this.http.put(serviceUrl, this.httpOptions);
1883
+ }
1884
+ getExamByCode(code) {
1885
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1886
+ return this.http.get(serviceUrl);
1887
+ }
1888
+ getExamByAuthor(code) {
1889
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1890
+ return this.http.get(serviceUrl);
1891
+ }
1892
+ // ---------------------- SECCIONES ---------------------- //
1893
+ createSectionWithAll(params) {
1894
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1895
+ this.generateRequestParams(params);
1896
+ return this.http.post(serviceUrl, this.httpOptions);
1897
+ }
1898
+ createSection(params) {
1899
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1900
+ this.generateRequestParams(params);
1901
+ return this.http.post(serviceUrl, this.httpOptions);
1902
+ }
1903
+ getAllSections(params) {
1904
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1905
+ this.generateRequestParams(params);
1906
+ return this.http.post(serviceUrl, this.httpOptions);
1907
+ }
1908
+ updateSection(params) {
1909
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1910
+ this.generateRequestParams(params);
1911
+ return this.http.put(serviceUrl, this.httpOptions);
1912
+ }
1913
+ updateSectionMedia(params) {
1914
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1915
+ this.generateRequestParams(params);
1916
+ return this.http.post(serviceUrl, this.httpOptions);
1917
+ }
1918
+ updateSectionState(params) {
1919
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1920
+ this.generateRequestParams(params);
1921
+ return this.http.put(serviceUrl, this.httpOptions);
1922
+ }
1923
+ getSectionsByExam(code) {
1924
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1925
+ return this.http.get(serviceUrl);
1926
+ }
1927
+ // ---------------------- PREGUNTAS ---------------------- //
1928
+ createQuestion(params) {
1929
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1930
+ this.generateRequestParams(params);
1931
+ return this.http.post(serviceUrl, this.httpOptions);
1932
+ }
1933
+ updateQuestion(params) {
1934
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1935
+ this.generateRequestParams(params);
1936
+ return this.http.put(serviceUrl, this.httpOptions);
1937
+ }
1938
+ getQuestionsBySections(params) {
1939
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1940
+ this.generateRequestParams(params);
1941
+ return this.http.post(serviceUrl, this.httpOptions);
1942
+ }
1943
+ getQuestionsBySection(params) {
1944
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1945
+ this.generateRequestParams(params);
1946
+ return this.http.post(serviceUrl, this.httpOptions);
1947
+ }
1948
+ // ---------------------- RESPUESTAS ---------------------- //
1949
+ createAnswer(params) {
1950
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1951
+ this.generateRequestParams(params);
1952
+ return this.http.post(serviceUrl, this.httpOptions);
1953
+ }
1954
+ updateAnswer(params) {
1955
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1956
+ this.generateRequestParams(params);
1957
+ return this.http.put(serviceUrl, this.httpOptions);
1958
+ }
1959
+ getAnswersByQuestion(code) {
1960
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1961
+ return this.http.get(serviceUrl, this.httpOptions);
1962
+ }
1963
+ updateQuestionState(params) {
1964
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1965
+ this.generateRequestParams(params);
1966
+ return this.http.put(serviceUrl, this.httpOptions);
1967
+ }
1968
+ }
1969
+ TestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1970
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1971
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1972
+ type: Injectable,
1973
+ args: [{
1974
+ providedIn: 'root',
1975
+ }]
1974
1976
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1975
1977
 
1976
- class MarketingService {
1977
- constructor(http) {
1978
- this.http = http;
1979
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1980
- }
1981
- getStrategyByUserCommercial(user) {
1982
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1983
- this.generateRequestParams(user);
1984
- return this.http.post(serviceUrl, this.httpOptions);
1985
- }
1986
- getObservationsContact(codeContact) {
1987
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1988
- return this.http.get(serviceUrl);
1989
- }
1990
- createObservations(params) {
1991
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1992
- this.generateRequestParams(params);
1993
- return this.http.post(serviceUrl, this.httpOptions);
1994
- }
1995
- getUserStatistics(userToken) {
1996
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1997
- this.generateRequestParams(userToken);
1998
- return this.http.post(serviceUrl, this.httpOptions);
1999
- }
2000
- getTopAdviser() {
2001
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
2002
- return this.http.get(serviceUrl, this.httpOptions);
2003
- }
2004
- getMovementStatus() {
2005
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
2006
- return this.http.get(serviceUrl, this.httpOptions);
2007
- }
2008
- getgroupSignupStatus() {
2009
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
2010
- return this.http.get(serviceUrl, this.httpOptions);
2011
- }
2012
- //Construye los headers y paramns
2013
- generateRequestParams(param) {
2014
- this.httpOptions = {
2015
- header: new HttpHeaders(),
2016
- params: param,
2017
- };
2018
- }
2019
- }
2020
- MarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2021
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
2022
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
2023
- type: Injectable,
2024
- args: [{
2025
- providedIn: 'root'
2026
- }]
1978
+ class MarketingService extends IPTGeneralService {
1979
+ constructor(http) {
1980
+ super();
1981
+ this.http = http;
1982
+ this.SERVICE_URL = 'commercial/api/';
1983
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
1984
+ }
1985
+ getStrategyByUserCommercial(user) {
1986
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1987
+ this.generateRequestParams(user);
1988
+ return this.http.post(serviceUrl, this.httpOptions);
1989
+ }
1990
+ getObservationsContact(codeContact) {
1991
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1992
+ return this.http.get(serviceUrl);
1993
+ }
1994
+ createObservations(params) {
1995
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1996
+ this.generateRequestParams(params);
1997
+ return this.http.post(serviceUrl, this.httpOptions);
1998
+ }
1999
+ getUserStatistics(userToken) {
2000
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
2001
+ this.generateRequestParams(userToken);
2002
+ return this.http.post(serviceUrl, this.httpOptions);
2003
+ }
2004
+ getTopAdviser() {
2005
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
2006
+ return this.http.get(serviceUrl, this.httpOptions);
2007
+ }
2008
+ getMovementStatus() {
2009
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
2010
+ return this.http.get(serviceUrl, this.httpOptions);
2011
+ }
2012
+ getgroupSignupStatus() {
2013
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
2014
+ return this.http.get(serviceUrl, this.httpOptions);
2015
+ }
2016
+ }
2017
+ MarketingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2018
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
2019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
2020
+ type: Injectable,
2021
+ args: [{
2022
+ providedIn: 'root'
2023
+ }]
2027
2024
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2028
2025
 
2029
- class BudgetService {
2030
- constructor(http) {
2031
- this.http = http;
2032
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
2033
- }
2034
- getAllDiscount(user) {
2035
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2036
- this.generateRequestParams(user);
2037
- return this.http.post(serviceUrl, this.httpOptions);
2038
- }
2039
- createDiscount(params) {
2040
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2041
- this.generateRequestParams(params);
2042
- return this.http.post(serviceUrl, this.httpOptions);
2043
- }
2044
- updateDiscount(params) {
2045
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2046
- this.generateRequestParams(params);
2047
- return this.http.post(serviceUrl, this.httpOptions);
2048
- }
2049
- //Construye los headers y paramns
2050
- generateRequestParams(param) {
2051
- this.httpOptions = {
2052
- header: new HttpHeaders(),
2053
- params: param,
2054
- };
2055
- }
2056
- }
2057
- BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2058
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2059
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2060
- type: Injectable,
2061
- args: [{
2062
- providedIn: 'root'
2063
- }]
2026
+ class BudgetService extends IPTGeneralService {
2027
+ constructor(http) {
2028
+ super();
2029
+ this.http = http;
2030
+ this.SERVICE_URL = 'budget/api/';
2031
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2032
+ }
2033
+ getAllDiscount(user) {
2034
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
2035
+ this.generateRequestParams(user);
2036
+ return this.http.post(serviceUrl, this.httpOptions);
2037
+ }
2038
+ createDiscount(params) {
2039
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
2040
+ this.generateRequestParams(params);
2041
+ return this.http.post(serviceUrl, this.httpOptions);
2042
+ }
2043
+ updateDiscount(params) {
2044
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
2045
+ this.generateRequestParams(params);
2046
+ return this.http.post(serviceUrl, this.httpOptions);
2047
+ }
2048
+ }
2049
+ BudgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2050
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
2051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
2052
+ type: Injectable,
2053
+ args: [{
2054
+ providedIn: 'root'
2055
+ }]
2064
2056
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2065
2057
 
2066
- class ClassroomService {
2067
- constructor(http) {
2068
- this.http = http;
2069
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2070
- }
2071
- getClassroomsByModality(params) {
2072
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2073
- this.generateRequestParams(params);
2074
- return this.http.post(serviceUrl, this.httpOptions);
2075
- }
2076
- getClassroomByIdCalendar(params) {
2077
- let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2078
- this.generateRequestParams(params);
2079
- return this.http.post(serviceUrl, this.httpOptions);
2080
- }
2081
- // construye los headers y params
2082
- generateRequestParams(param) {
2083
- this.httpOptions = {
2084
- header: new HttpHeaders(),
2085
- params: param,
2086
- };
2087
- }
2088
- }
2089
- ClassroomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2090
- ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2091
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2092
- type: Injectable,
2093
- args: [{
2094
- providedIn: 'root',
2095
- }]
2058
+ class ClassroomService extends IPTGeneralService {
2059
+ constructor(http) {
2060
+ super();
2061
+ this.http = http;
2062
+ this.SERVICE_URL = 'academic/api/';
2063
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2064
+ }
2065
+ getClassroomsByModality(params) {
2066
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/modality';
2067
+ this.generateRequestParams(params);
2068
+ return this.http.post(serviceUrl, this.httpOptions);
2069
+ }
2070
+ getClassroomByIdCalendar(params) {
2071
+ let serviceUrl = this.SERVICE_URL + 'post/classroom/by/idcalendar';
2072
+ this.generateRequestParams(params);
2073
+ return this.http.post(serviceUrl, this.httpOptions);
2074
+ }
2075
+ }
2076
+ ClassroomService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2077
+ ClassroomService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, providedIn: 'root' });
2078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ClassroomService, decorators: [{
2079
+ type: Injectable,
2080
+ args: [{
2081
+ providedIn: 'root',
2082
+ }]
2096
2083
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2097
2084
 
2098
- class ActivityService {
2099
- constructor(http) {
2100
- this.http = http;
2101
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2102
- }
2103
- getActivityByCourse(params) {
2104
- let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2105
- this.generateRequestParams(params);
2106
- return this.http.post(serviceUrl, this.httpOptions);
2107
- }
2108
- getNoticesByCourse(codeCourse) {
2109
- let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2110
- return this.http.get(serviceUrl);
2111
- }
2112
- getUnitsByActivity(params) {
2113
- let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2114
- this.generateRequestParams(params);
2115
- return this.http.post(serviceUrl, this.httpOptions);
2116
- }
2117
- getElementsByUnit(params) {
2118
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2119
- this.generateRequestParams(params);
2120
- return this.http.post(serviceUrl, this.httpOptions);
2121
- }
2122
- getCourseTeacherByToken(params) {
2123
- let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2124
- this.generateRequestParams(params);
2125
- return this.http.post(serviceUrl, this.httpOptions);
2126
- }
2127
- getAllTypeResource() {
2128
- let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2129
- return this.http.get(serviceUrl);
2130
- }
2131
- getAllTypeElement() {
2132
- let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2133
- return this.http.get(serviceUrl);
2134
- }
2135
- getElementsByUnitNew(params) {
2136
- let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2137
- this.generateRequestParams(params);
2138
- return this.http.post(serviceUrl, this.httpOptions);
2139
- }
2140
- updateCourseByCronogram(params) {
2141
- let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2142
- this.generateRequestParams(params);
2143
- return this.http.post(serviceUrl, this.httpOptions);
2144
- }
2145
- getTemplateCourseByCourse(codeCourse) {
2146
- let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2147
- return this.http.get(serviceUrl);
2148
- }
2149
- saveMagnageActivity(params) {
2150
- let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2151
- this.generateRequestParams(params);
2152
- return this.http.post(serviceUrl, this.httpOptions);
2153
- }
2154
- postNotesActivityH5P(params) {
2155
- let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2156
- this.generateRequestParams(params);
2157
- return this.http.post(serviceUrl, this.httpOptions);
2158
- }
2159
- getMagnageActivity(params) {
2160
- let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2161
- this.generateRequestParams(params);
2162
- return this.http.post(serviceUrl, this.httpOptions);
2163
- }
2164
- getNoteActivityH5P(params) {
2165
- let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2166
- this.generateRequestParams(params);
2167
- return this.http.post(serviceUrl, this.httpOptions);
2168
- }
2169
- // construye los headers y params
2170
- generateRequestParams(param) {
2171
- this.httpOptions = {
2172
- header: new HttpHeaders(),
2173
- params: param,
2174
- };
2175
- }
2176
- }
2177
- ActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2178
- ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2180
- type: Injectable,
2181
- args: [{
2182
- providedIn: 'root',
2183
- }]
2085
+ class ActivityService extends IPTGeneralService {
2086
+ constructor(http) {
2087
+ super();
2088
+ this.http = http;
2089
+ this.SERVICE_URL = 'academic/api/';
2090
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2091
+ }
2092
+ getActivityByCourse(params) {
2093
+ let serviceUrl = this.SERVICE_URL + 'post/activities/by/course/code';
2094
+ this.generateRequestParams(params);
2095
+ return this.http.post(serviceUrl, this.httpOptions);
2096
+ }
2097
+ getNoticesByCourse(codeCourse) {
2098
+ let serviceUrl = this.SERVICE_URL + 'post/notices/by/course/code/' + codeCourse;
2099
+ return this.http.get(serviceUrl);
2100
+ }
2101
+ getUnitsByActivity(params) {
2102
+ let serviceUrl = this.SERVICE_URL + 'post/units/by/activity/code';
2103
+ this.generateRequestParams(params);
2104
+ return this.http.post(serviceUrl, this.httpOptions);
2105
+ }
2106
+ getElementsByUnit(params) {
2107
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code';
2108
+ this.generateRequestParams(params);
2109
+ return this.http.post(serviceUrl, this.httpOptions);
2110
+ }
2111
+ getCourseTeacherByToken(params) {
2112
+ let serviceUrl = this.SERVICE_URL + 'post/course/teacher/by/token';
2113
+ this.generateRequestParams(params);
2114
+ return this.http.post(serviceUrl, this.httpOptions);
2115
+ }
2116
+ getAllTypeResource() {
2117
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/resource/template';
2118
+ return this.http.get(serviceUrl);
2119
+ }
2120
+ getAllTypeElement() {
2121
+ let serviceUrl = this.SERVICE_URL + 'get/all/type/element/template';
2122
+ return this.http.get(serviceUrl);
2123
+ }
2124
+ getElementsByUnitNew(params) {
2125
+ let serviceUrl = this.SERVICE_URL + 'post/element/by/unit/code/new';
2126
+ this.generateRequestParams(params);
2127
+ return this.http.post(serviceUrl, this.httpOptions);
2128
+ }
2129
+ updateCourseByCronogram(params) {
2130
+ let serviceUrl = this.SERVICE_URL + 'post/update/course/by/code';
2131
+ this.generateRequestParams(params);
2132
+ return this.http.post(serviceUrl, this.httpOptions);
2133
+ }
2134
+ getTemplateCourseByCourse(codeCourse) {
2135
+ let serviceUrl = this.SERVICE_URL + 'get/template/course/by/course/code/' + codeCourse;
2136
+ return this.http.get(serviceUrl);
2137
+ }
2138
+ saveMagnageActivity(params) {
2139
+ let serviceUrl = this.SERVICE_URL + 'post/manage/activities/by/course/element';
2140
+ this.generateRequestParams(params);
2141
+ return this.http.post(serviceUrl, this.httpOptions);
2142
+ }
2143
+ postNotesActivityH5P(params) {
2144
+ let serviceUrl = this.SERVICE_URL + 'post/activity/h5p/notes';
2145
+ this.generateRequestParams(params);
2146
+ return this.http.post(serviceUrl, this.httpOptions);
2147
+ }
2148
+ getMagnageActivity(params) {
2149
+ let serviceUrl = this.SERVICE_URL + 'post/template/admin/by/course/element';
2150
+ this.generateRequestParams(params);
2151
+ return this.http.post(serviceUrl, this.httpOptions);
2152
+ }
2153
+ getNoteActivityH5P(params) {
2154
+ let serviceUrl = this.SERVICE_URL + 'post/note/activity/h5p';
2155
+ this.generateRequestParams(params);
2156
+ return this.http.post(serviceUrl, this.httpOptions);
2157
+ }
2158
+ }
2159
+ ActivityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2160
+ ActivityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, providedIn: 'root' });
2161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ActivityService, decorators: [{
2162
+ type: Injectable,
2163
+ args: [{
2164
+ providedIn: 'root',
2165
+ }]
2184
2166
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2185
2167
 
2186
- class CoreModule {
2187
- }
2188
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2189
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2190
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2191
- ParameterService,
2192
- CourseService,
2193
- StorageService,
2194
- UserService,
2195
- SwitchService,
2196
- RedirectGuard,
2197
- BaseService,
2198
- TestService,
2199
- MarketingService,
2200
- ClassroomService,
2201
- BudgetService,
2202
- ActivityService
2203
- ] });
2204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2205
- type: NgModule,
2206
- args: [{
2207
- providers: [
2208
- ParameterService,
2209
- CourseService,
2210
- StorageService,
2211
- UserService,
2212
- SwitchService,
2213
- RedirectGuard,
2214
- BaseService,
2215
- TestService,
2216
- MarketingService,
2217
- ClassroomService,
2218
- BudgetService,
2219
- ActivityService
2220
- ]
2221
- }]
2168
+ class CoreModule {
2169
+ }
2170
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2171
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
2172
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
2173
+ ParameterService,
2174
+ CourseService,
2175
+ StorageService,
2176
+ UserService,
2177
+ SwitchService,
2178
+ RedirectGuard,
2179
+ BaseService,
2180
+ TestService,
2181
+ MarketingService,
2182
+ ClassroomService,
2183
+ BudgetService,
2184
+ ActivityService
2185
+ ] });
2186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
2187
+ type: NgModule,
2188
+ args: [{
2189
+ providers: [
2190
+ ParameterService,
2191
+ CourseService,
2192
+ StorageService,
2193
+ UserService,
2194
+ SwitchService,
2195
+ RedirectGuard,
2196
+ BaseService,
2197
+ TestService,
2198
+ MarketingService,
2199
+ ClassroomService,
2200
+ BudgetService,
2201
+ ActivityService
2202
+ ]
2203
+ }]
2222
2204
  }] });
2223
2205
 
2224
- class DesignSystemModule {
2225
- }
2226
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2227
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2228
- CoreModule,
2229
- CurrencyMaskModule], exports: [ComponentsModule,
2230
- CoreModule,
2231
- CurrencyMaskModule] });
2232
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2233
- ComponentsModule,
2234
- CoreModule,
2235
- CurrencyMaskModule
2236
- ], ComponentsModule,
2237
- CoreModule,
2238
- CurrencyMaskModule] });
2239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2240
- type: NgModule,
2241
- args: [{
2242
- imports: [
2243
- ComponentsModule,
2244
- CoreModule,
2245
- CurrencyMaskModule
2246
- ],
2247
- exports: [
2248
- ComponentsModule,
2249
- CoreModule,
2250
- CurrencyMaskModule
2251
- ],
2252
- }]
2206
+ class DesignSystemModule {
2207
+ }
2208
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2209
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
2210
+ CoreModule,
2211
+ CurrencyMaskModule], exports: [ComponentsModule,
2212
+ CoreModule,
2213
+ CurrencyMaskModule] });
2214
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
2215
+ ComponentsModule,
2216
+ CoreModule,
2217
+ CurrencyMaskModule
2218
+ ], ComponentsModule,
2219
+ CoreModule,
2220
+ CurrencyMaskModule] });
2221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2222
+ type: NgModule,
2223
+ args: [{
2224
+ imports: [
2225
+ ComponentsModule,
2226
+ CoreModule,
2227
+ CurrencyMaskModule
2228
+ ],
2229
+ exports: [
2230
+ ComponentsModule,
2231
+ CoreModule,
2232
+ CurrencyMaskModule
2233
+ ],
2234
+ }]
2253
2235
  }] });
2254
2236
 
2255
- class AttendanceService {
2256
- constructor(http) {
2257
- this.http = http;
2258
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api';
2259
- }
2260
- addEventByCourseRq(params) {
2261
- let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2262
- this.generateRequestParams(params);
2263
- return this.http.post(serviceUrl, this.httpOptions);
2264
- }
2265
- getEventsByCourseCode(params) {
2266
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2267
- this.generateRequestParams(params);
2268
- return this.http.post(serviceUrl, this.httpOptions);
2269
- }
2270
- getEventByCode(params) {
2271
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2272
- this.generateRequestParams(params);
2273
- return this.http.post(serviceUrl, this.httpOptions);
2274
- }
2275
- registerNewAttendanceByEvent(params) {
2276
- let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2277
- this.generateRequestParams(params);
2278
- return this.http.post(serviceUrl, this.httpOptions);
2279
- }
2280
- getAttendaceByCourse(courseCode) {
2281
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2282
- return this.http.get(serviceUrl);
2283
- }
2284
- getCODCodeByStudentCode(studentCode) {
2285
- let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2286
- return this.http.get(serviceUrl);
2287
- }
2288
- getAttendanceHistoryByStudent(token, cod_code) {
2289
- let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2290
- this.generateRequestParams({ token, cod_code });
2291
- return this.http.post(serviceUrl, this.httpOptions);
2292
- }
2293
- getAllNotAttendancesByCod(params) {
2294
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2295
- this.generateRequestParams(params);
2296
- return this.http.post(serviceUrl, this.httpOptions);
2297
- }
2298
- getNotAttendancesOfLastWeekByCod(params) {
2299
- let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2300
- this.generateRequestParams(params);
2301
- return this.http.post(serviceUrl, this.httpOptions);
2302
- }
2303
- // construye los headers y params
2304
- generateRequestParams(param) {
2305
- this.httpOptions = {
2306
- header: new HttpHeaders(),
2307
- params: param,
2308
- };
2309
- }
2310
- }
2311
- AttendanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2312
- AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2313
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2314
- type: Injectable,
2315
- args: [{
2316
- providedIn: 'root'
2317
- }]
2237
+ class AttendanceService extends IPTGeneralService {
2238
+ constructor(http) {
2239
+ super();
2240
+ this.http = http;
2241
+ this.SERVICE_URL = 'academic/api/';
2242
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2243
+ }
2244
+ addEventByCourseRq(params) {
2245
+ let serviceUrl = `${this.SERVICE_URL}/post/event/by/course`;
2246
+ this.generateRequestParams(params);
2247
+ return this.http.post(serviceUrl, this.httpOptions);
2248
+ }
2249
+ getEventsByCourseCode(params) {
2250
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/events/by/course_code`;
2251
+ this.generateRequestParams(params);
2252
+ return this.http.post(serviceUrl, this.httpOptions);
2253
+ }
2254
+ getEventByCode(params) {
2255
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/event/by/code`;
2256
+ this.generateRequestParams(params);
2257
+ return this.http.post(serviceUrl, this.httpOptions);
2258
+ }
2259
+ registerNewAttendanceByEvent(params) {
2260
+ let serviceUrl = `${this.SERVICE_URL}/register/attendance/by/event`;
2261
+ this.generateRequestParams(params);
2262
+ return this.http.post(serviceUrl, this.httpOptions);
2263
+ }
2264
+ getAttendaceByCourse(courseCode) {
2265
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendances/by/course/${courseCode}`;
2266
+ return this.http.get(serviceUrl);
2267
+ }
2268
+ getCODCodeByStudentCode(studentCode) {
2269
+ let serviceUrl = `${this.SERVICE_URL}/get/cod_code/by/student_code/${studentCode}`;
2270
+ return this.http.get(serviceUrl);
2271
+ }
2272
+ getAttendanceHistoryByStudent(token, cod_code) {
2273
+ let serviceUrl = `${this.SERVICE_URL}/post/obtain/attendance/history/by/student`;
2274
+ this.generateRequestParams({ token, cod_code });
2275
+ return this.http.post(serviceUrl, this.httpOptions);
2276
+ }
2277
+ getAllNotAttendancesByCod(params) {
2278
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/by/cod`;
2279
+ this.generateRequestParams(params);
2280
+ return this.http.post(serviceUrl, this.httpOptions);
2281
+ }
2282
+ getNotAttendancesOfLastWeekByCod(params) {
2283
+ let serviceUrl = `${this.SERVICE_URL}/get/all/not/attendances/lastweek/by/cod`;
2284
+ this.generateRequestParams(params);
2285
+ return this.http.post(serviceUrl, this.httpOptions);
2286
+ }
2287
+ }
2288
+ AttendanceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2289
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2291
+ type: Injectable,
2292
+ args: [{
2293
+ providedIn: 'root'
2294
+ }]
2318
2295
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2319
2296
 
2320
- class NotesService {
2321
- constructor(http) {
2322
- this.http = http;
2323
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2324
- }
2325
- getNotesByGroup(params) {
2326
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2327
- this.generateRequestParams(params);
2328
- return this.http.post(serviceUrl, this.httpOptions);
2329
- }
2330
- getNotesByStudent(params) {
2331
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2332
- this.generateRequestParams(params);
2333
- return this.http.post(serviceUrl, this.httpOptions);
2334
- }
2335
- createNewNote(params) {
2336
- let serviceUrl = this.SERVICE_URL + 'post/create/note';
2337
- this.generateRequestParams(params);
2338
- return this.http.post(serviceUrl, this.httpOptions);
2339
- }
2340
- updateStudentNote(params) {
2341
- let serviceUrl = this.SERVICE_URL + 'update/note';
2342
- this.generateRequestParams(params);
2343
- return this.http.put(serviceUrl, this.httpOptions);
2344
- }
2345
- calculateFinalNote(params) {
2346
- let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2347
- this.generateRequestParams(params);
2348
- return this.http.post(serviceUrl, this.httpOptions);
2349
- }
2350
- generateRequestParams(param) {
2351
- this.httpOptions = {
2352
- header: new HttpHeaders(),
2353
- params: param,
2354
- };
2355
- }
2356
- }
2357
- NotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2358
- NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2360
- type: Injectable,
2361
- args: [{
2362
- providedIn: 'root'
2363
- }]
2297
+ class NotesService extends IPTGeneralService {
2298
+ constructor(http) {
2299
+ super();
2300
+ this.http = http;
2301
+ this.SERVICE_URL = 'academic/api/';
2302
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2303
+ }
2304
+ getNotesByGroup(params) {
2305
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2306
+ this.generateRequestParams(params);
2307
+ return this.http.post(serviceUrl, this.httpOptions);
2308
+ }
2309
+ getNotesByStudent(params) {
2310
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2311
+ this.generateRequestParams(params);
2312
+ return this.http.post(serviceUrl, this.httpOptions);
2313
+ }
2314
+ createNewNote(params) {
2315
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
2316
+ this.generateRequestParams(params);
2317
+ return this.http.post(serviceUrl, this.httpOptions);
2318
+ }
2319
+ updateStudentNote(params) {
2320
+ let serviceUrl = this.SERVICE_URL + 'update/note';
2321
+ this.generateRequestParams(params);
2322
+ return this.http.put(serviceUrl, this.httpOptions);
2323
+ }
2324
+ calculateFinalNote(params) {
2325
+ let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2326
+ this.generateRequestParams(params);
2327
+ return this.http.post(serviceUrl, this.httpOptions);
2328
+ }
2329
+ }
2330
+ NotesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2331
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2333
+ type: Injectable,
2334
+ args: [{
2335
+ providedIn: 'root'
2336
+ }]
2364
2337
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2365
2338
 
2366
- class StudentService {
2367
- constructor(http) {
2368
- this.http = http;
2369
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2370
- }
2371
- getStudentsByCourse(params) {
2372
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2373
- this.generateRequestParams(params);
2374
- return this.http.post(serviceUrl, this.httpOptions);
2375
- }
2376
- generateRequestParams(param) {
2377
- this.httpOptions = {
2378
- header: new HttpHeaders(),
2379
- params: param,
2380
- };
2381
- }
2382
- }
2383
- StudentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2384
- StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2386
- type: Injectable,
2387
- args: [{
2388
- providedIn: 'root'
2389
- }]
2339
+ class StudentService extends IPTGeneralService {
2340
+ constructor(http) {
2341
+ super();
2342
+ this.http = http;
2343
+ this.SERVICE_URL = 'academic/api/';
2344
+ this.SERVICE_URL = this.baseUrl() + this.SERVICE_URL;
2345
+ }
2346
+ getStudentsByCourse(params) {
2347
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2348
+ this.generateRequestParams(params);
2349
+ return this.http.post(serviceUrl, this.httpOptions);
2350
+ }
2351
+ }
2352
+ StudentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2353
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2355
+ type: Injectable,
2356
+ args: [{
2357
+ providedIn: 'root'
2358
+ }]
2390
2359
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2391
2360
 
2392
- class Session {
2361
+ class Session {
2393
2362
  }
2394
2363
 
2395
- class UserRs {
2396
- }
2397
- class UserLoginRs {
2364
+ class UserRs {
2365
+ }
2366
+ class UserLoginRs {
2398
2367
  }
2399
2368
 
2400
- /*
2401
- * Public API Surface of design-system
2369
+ /*
2370
+ * Public API Surface of design-system
2402
2371
  */
2403
2372
 
2404
- /**
2405
- * Generated bundle index. Do not edit.
2373
+ /**
2374
+ * Generated bundle index. Do not edit.
2406
2375
  */
2407
2376
 
2408
2377
  export { ActivityService, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ClassroomService, ComponentsModule, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };