iptdevs-design-system 2.6.24 → 2.6.25

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 (108) 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 -0
  11. package/esm2020/lib/components/atoms/radio/radio.component.mjs +47 -47
  12. package/esm2020/lib/components/atoms/select/select.component.mjs +92 -92
  13. package/esm2020/lib/components/atoms/text-link/text-link.component.mjs +39 -39
  14. package/esm2020/lib/components/components.module.mjs +118 -113
  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 +146 -146
  19. package/esm2020/lib/core/core.module.mjs +46 -46
  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/cod/cod-rq.model.mjs +2 -2
  25. package/esm2020/lib/core/models/course/course-rq.model.mjs +2 -2
  26. package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +2 -2
  27. package/esm2020/lib/core/models/marketing/marketing.model.mjs +2 -2
  28. package/esm2020/lib/core/models/notes/notes.interface.mjs +2 -2
  29. package/esm2020/lib/core/models/response/response.interface.mjs +2 -2
  30. package/esm2020/lib/core/models/session/session.model.mjs +3 -3
  31. package/esm2020/lib/core/models/student/student.interface.mjs +2 -2
  32. package/esm2020/lib/core/models/table/table-rs.model.mjs +2 -2
  33. package/esm2020/lib/core/models/test/test.model.mjs +2 -2
  34. package/esm2020/lib/core/models/url/url.model.mjs +2 -2
  35. package/esm2020/lib/core/models/user/user-rq.model.mjs +2 -2
  36. package/esm2020/lib/core/models/user/user-rs.model.mjs +5 -5
  37. package/esm2020/lib/core/services/attendance-service/attendance.service.mjs +17 -17
  38. package/esm2020/lib/core/services/budget-service/budget-service.mjs +41 -41
  39. package/esm2020/lib/core/services/calendar-service/calendar.service.mjs +34 -49
  40. package/esm2020/lib/core/services/course-service/course-service.model.mjs +75 -75
  41. package/esm2020/lib/core/services/marketing-service/marketing-service.mjs +57 -57
  42. package/esm2020/lib/core/services/notes-service/notes.service.mjs +50 -50
  43. package/esm2020/lib/core/services/parameters-service/parameters.service.mjs +114 -114
  44. package/esm2020/lib/core/services/storage-service/storage-service.mjs +50 -50
  45. package/esm2020/lib/core/services/student-service/student.service.mjs +30 -30
  46. package/esm2020/lib/core/services/switch-service/switch.service.mjs +16 -16
  47. package/esm2020/lib/core/services/test-service/test.service.mjs +136 -136
  48. package/esm2020/lib/core/services/user-service/user-service.mjs +84 -84
  49. package/esm2020/lib/core/utils/base-service/base.service.mjs +153 -153
  50. package/esm2020/lib/core/utils/route-service/route.service.mjs +18 -18
  51. package/esm2020/lib/design-system.module.mjs +36 -36
  52. package/esm2020/public-api.mjs +58 -57
  53. package/fesm2015/iptdevs-design-system.mjs +2063 -2029
  54. package/fesm2015/iptdevs-design-system.mjs.map +1 -1
  55. package/fesm2020/iptdevs-design-system.mjs +2060 -2026
  56. package/fesm2020/iptdevs-design-system.mjs.map +1 -1
  57. package/iptdevs-design-system.d.ts +5 -5
  58. package/lib/components/atoms/aside-button/aside-button.component.d.ts +11 -11
  59. package/lib/components/atoms/button/button.component.d.ts +13 -13
  60. package/lib/components/atoms/checkbox/checkbox.component.d.ts +11 -11
  61. package/lib/components/atoms/datalist/datalist.component.d.ts +20 -20
  62. package/lib/components/atoms/input/input.component.d.ts +26 -26
  63. package/lib/components/atoms/level-button/level-button.component.d.ts +11 -11
  64. package/lib/components/atoms/level-text/level-text.component.d.ts +7 -7
  65. package/lib/components/atoms/loader/loader.component.d.ts +7 -0
  66. package/lib/components/atoms/radio/radio.component.d.ts +11 -11
  67. package/lib/components/atoms/select/select.component.d.ts +24 -24
  68. package/lib/components/atoms/text-link/text-link.component.d.ts +12 -12
  69. package/lib/components/components.module.d.ts +24 -23
  70. package/lib/components/forms/create-user-form/create-user-form.component.d.ts +36 -36
  71. package/lib/components/forms/login-form/login-form.component.d.ts +13 -13
  72. package/lib/components/material.module.d.ts +11 -11
  73. package/lib/components/molecules/sidenav/sidenav.component.d.ts +22 -22
  74. package/lib/core/core.module.d.ts +6 -6
  75. package/lib/core/models/activities/activities.interface.d.ts +6 -6
  76. package/lib/core/models/attendance/attendance.interface.d.ts +45 -45
  77. package/lib/core/models/budget/budget.model.d.ts +69 -69
  78. package/lib/core/models/calendar/calendar-rq.models.d.ts +27 -71
  79. package/lib/core/models/cod/cod-rq.model.d.ts +51 -51
  80. package/lib/core/models/course/course-rq.model.d.ts +86 -86
  81. package/lib/core/models/cronogram/cronogram.models.d.ts +71 -71
  82. package/lib/core/models/marketing/marketing.model.d.ts +104 -104
  83. package/lib/core/models/notes/notes.interface.d.ts +73 -73
  84. package/lib/core/models/response/response.interface.d.ts +10 -10
  85. package/lib/core/models/session/session.model.d.ts +5 -5
  86. package/lib/core/models/student/student.interface.d.ts +4 -4
  87. package/lib/core/models/table/table-rs.model.d.ts +7 -7
  88. package/lib/core/models/test/test.model.d.ts +219 -219
  89. package/lib/core/models/url/url.model.d.ts +8 -8
  90. package/lib/core/models/user/user-rq.model.d.ts +91 -91
  91. package/lib/core/models/user/user-rs.model.d.ts +35 -35
  92. package/lib/core/services/attendance-service/attendance.service.d.ts +8 -8
  93. package/lib/core/services/budget-service/budget-service.d.ts +16 -16
  94. package/lib/core/services/calendar-service/calendar.service.d.ts +15 -18
  95. package/lib/core/services/course-service/course-service.model.d.ts +24 -24
  96. package/lib/core/services/marketing-service/marketing-service.d.ts +20 -20
  97. package/lib/core/services/notes-service/notes.service.d.ts +19 -19
  98. package/lib/core/services/parameters-service/parameters.service.d.ts +34 -34
  99. package/lib/core/services/storage-service/storage-service.d.ts +18 -18
  100. package/lib/core/services/student-service/student.service.d.ts +14 -14
  101. package/lib/core/services/switch-service/switch.service.d.ts +8 -8
  102. package/lib/core/services/test-service/test.service.d.ts +35 -35
  103. package/lib/core/services/user-service/user-service.d.ts +26 -26
  104. package/lib/core/utils/base-service/base.service.d.ts +18 -18
  105. package/lib/core/utils/route-service/route.service.d.ts +9 -9
  106. package/lib/design-system.module.d.ts +9 -9
  107. package/package.json +1 -1
  108. package/public-api.d.ts +49 -48
@@ -20,2101 +20,2135 @@ 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>
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
+ }] } });
446
465
 
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
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
464
481
  }] } });
465
482
 
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
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: "app-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}.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}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: 'app-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}.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}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
481
526
  }] } });
482
527
 
483
- class RadioComponent {
484
- constructor() {
485
- this.radioOption = false;
486
- this.onSelected = new EventEmitter();
487
- }
488
- set control(value) {
489
- if (this.formControl !== value) {
490
- this.formControl = value;
491
- }
492
- }
493
- }
494
- RadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
495
- 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: `
496
- <label class="cont">
497
- <input
498
- class="radio"
499
- [formControl]="formControl"
500
- [checked]="radioOption"
501
- (click)="onSelected.emit($event)"
502
- type="radio">
503
- <span></span>
504
- </label>
505
- `, 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"] }] });
506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RadioComponent, decorators: [{
507
- type: Component,
508
- args: [{ selector: 'ipt-radio', template: `
509
- <label class="cont">
510
- <input
511
- class="radio"
512
- [formControl]="formControl"
513
- [checked]="radioOption"
514
- (click)="onSelected.emit($event)"
515
- type="radio">
516
- <span></span>
517
- </label>
518
- `, styles: [""] }]
519
- }], propDecorators: { radioOption: [{
520
- type: Input
521
- }], control: [{
522
- type: Input
523
- }], onSelected: [{
524
- 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
525
570
  }] } });
526
571
 
527
- class SelectComponent {
528
- constructor() {
529
- this.boxShadow = 0;
530
- this.clicked = false;
531
- this.disabledSel = false;
532
- this.eventSelect = new EventEmitter();
533
- }
534
- // type viene de otro componente -> indica de que tipo es el arreglo si pregrade, posgrade o modo
535
- set control(value) {
536
- if (this.formControl !== value) {
537
- this.formControl = value;
538
- }
539
- }
540
- ngOnChanges(changes) {
541
- if (changes['data']) {
542
- this.binding = this.defaultText;
543
- }
544
- }
545
- seleccionar(evt) {
546
- if (this.eventSelect.emit(evt) !== this.defaultText) {
547
- this.boxShadow = 1;
548
- }
549
- else {
550
- this.boxShadow = 2;
551
- }
552
- }
553
- click(value) {
554
- this.clicked = value.isTrusted;
555
- }
556
- ngOnInit() {
557
- this.binding = this.defaultText;
558
- }
559
- get textClass() {
560
- return this.defaultText === '' ? 'selected' : 'select';
561
- }
562
- get labelClass() {
563
- return this.clicked === false ? 'label' : 'labelUp';
564
- }
565
- }
566
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
567
- 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", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
568
- <div class="select-container">
569
- <label [ngClass]="labelClass">{{ defaultText }}</label>
570
- <select
571
- [(ngModel)]="binding"
572
- (ngModelChange)="seleccionar($event)"
573
- (click)="click($event)"
574
- [ngClass]="textClass"
575
- [disabled]="disabledSel">
576
- <option *ngFor="let item of data; index as i" [value]="item.code">
577
- {{ item.name }} {{ item.prefix }}
578
- </option>
579
- </select>
580
- </div>
581
- `, 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"] }] });
582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
583
- type: Component,
584
- args: [{ selector: 'ipt-select', template: `
585
- <div class="select-container">
586
- <label [ngClass]="labelClass">{{ defaultText }}</label>
587
- <select
588
- [(ngModel)]="binding"
589
- (ngModelChange)="seleccionar($event)"
590
- (click)="click($event)"
591
- [ngClass]="textClass"
592
- [disabled]="disabledSel">
593
- <option *ngFor="let item of data; index as i" [value]="item.code">
594
- {{ item.name }} {{ item.prefix }}
595
- </option>
596
- </select>
597
- </div>
598
- `, 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"] }]
599
- }], propDecorators: { isRequired: [{
600
- type: Input
601
- }], data: [{
602
- type: Input
603
- }], defaultText: [{
604
- type: Input
605
- }], selectCode: [{
606
- type: Input
607
- }], disabledSel: [{
608
- type: Input
609
- }], eventSelect: [{
610
- type: Output
611
- }], control: [{
612
- 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.binding = this.defaultText;
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
+ click(value) {
599
+ this.clicked = value.isTrusted;
600
+ }
601
+ ngOnInit() {
602
+ this.binding = this.defaultText;
603
+ }
604
+ get textClass() {
605
+ return this.defaultText === '' ? 'selected' : 'select';
606
+ }
607
+ get labelClass() {
608
+ return this.clicked === false ? 'label' : 'labelUp';
609
+ }
610
+ }
611
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
612
+ 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", control: "control" }, outputs: { eventSelect: "eventSelect" }, usesOnChanges: true, ngImport: i0, template: `
613
+ <div class="select-container">
614
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
615
+ <select
616
+ [(ngModel)]="binding"
617
+ (ngModelChange)="seleccionar($event)"
618
+ (click)="click($event)"
619
+ [ngClass]="textClass"
620
+ [disabled]="disabledSel">
621
+ <option *ngFor="let item of data; index as i" [value]="item.code">
622
+ {{ item.name }} {{ item.prefix }}
623
+ </option>
624
+ </select>
625
+ </div>
626
+ `, 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"] }] });
627
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SelectComponent, decorators: [{
628
+ type: Component,
629
+ args: [{ selector: 'ipt-select', template: `
630
+ <div class="select-container">
631
+ <label [ngClass]="labelClass">{{ defaultText }}</label>
632
+ <select
633
+ [(ngModel)]="binding"
634
+ (ngModelChange)="seleccionar($event)"
635
+ (click)="click($event)"
636
+ [ngClass]="textClass"
637
+ [disabled]="disabledSel">
638
+ <option *ngFor="let item of data; index as i" [value]="item.code">
639
+ {{ item.name }} {{ item.prefix }}
640
+ </option>
641
+ </select>
642
+ </div>
643
+ `, 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"] }]
644
+ }], propDecorators: { isRequired: [{
645
+ type: Input
646
+ }], data: [{
647
+ type: Input
648
+ }], defaultText: [{
649
+ type: Input
650
+ }], selectCode: [{
651
+ type: Input
652
+ }], disabledSel: [{
653
+ type: Input
654
+ }], eventSelect: [{
655
+ type: Output
656
+ }], control: [{
657
+ type: Input
613
658
  }] } });
614
659
 
615
- class TextLinkComponent {
616
- constructor() {
617
- this.isClicked = new EventEmitter();
618
- }
619
- isLinkClicked() {
620
- this.isClicked.emit(true);
621
- }
622
- }
623
- TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
624
- 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: `
625
- <a class="text-link" (click)='isLinkClicked()'>
626
- <p class="text-link__paragraph">
627
- <i class="{{icon}}" aria-hidden="true"></i>
628
- {{text}}
629
- </p>
630
- </a>
631
- `, 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"] });
632
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
633
- type: Component,
634
- args: [{ selector: 'ipt-text-link', template: `
635
- <a class="text-link" (click)='isLinkClicked()'>
636
- <p class="text-link__paragraph">
637
- <i class="{{icon}}" aria-hidden="true"></i>
638
- {{text}}
639
- </p>
640
- </a>
641
- `, 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"] }]
642
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
643
- type: Input
644
- }], blank: [{
645
- type: Input
646
- }], icon: [{
647
- type: Input
648
- }], isClicked: [{
649
- type: Output
660
+ class TextLinkComponent {
661
+ constructor() {
662
+ this.isClicked = new EventEmitter();
663
+ }
664
+ isLinkClicked() {
665
+ this.isClicked.emit(true);
666
+ }
667
+ }
668
+ TextLinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
669
+ 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: `
670
+ <a class="text-link" (click)='isLinkClicked()'>
671
+ <p class="text-link__paragraph">
672
+ <i class="{{icon}}" aria-hidden="true"></i>
673
+ {{text}}
674
+ </p>
675
+ </a>
676
+ `, 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"] });
677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TextLinkComponent, decorators: [{
678
+ type: Component,
679
+ args: [{ selector: 'ipt-text-link', 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
+ `, 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
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
688
+ type: Input
689
+ }], blank: [{
690
+ type: Input
691
+ }], icon: [{
692
+ type: Input
693
+ }], isClicked: [{
694
+ type: Output
650
695
  }] } });
651
696
 
652
- class UserService {
653
- constructor(http) {
654
- this.http = http;
655
- this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
656
- }
657
- login(userLogin) {
658
- let serviceUrl = this.SERVICE_URL + 'post/login';
659
- this.generateRequestParams(userLogin);
660
- return this.http.post(serviceUrl, this.httpOptions);
661
- }
662
- resetPassword(resetPassword) {
663
- let serviceUrl = this.SERVICE_URL + 'reset/password';
664
- this.generateRequestParams(resetPassword);
665
- return this.http.post(serviceUrl, this.httpOptions);
666
- }
667
- register(user) {
668
- let serviceUrl = this.SERVICE_URL + 'post/create/web';
669
- this.generateRequestParams(user);
670
- return this.http.post(serviceUrl, this.httpOptions);
671
- }
672
- registerIndex(register) {
673
- let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
674
- this.generateRequestParams(register);
675
- return this.http.post(serviceUrl, this.httpOptions);
676
- }
677
- registerDashboard(user) {
678
- let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
679
- this.generateRequestParams(user);
680
- return this.http.post(serviceUrl, this.httpOptions);
681
- }
682
- getAvailableTeachers(token) {
683
- let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
684
- this.generateRequestParams(token);
685
- return this.http.post(serviceUrl, this.httpOptions);
686
- }
687
- getAllAdvisor(userToken) {
688
- let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
689
- this.generateRequestParams(userToken);
690
- return this.http.post(serviceUrl, this.httpOptions);
691
- }
692
- getByRoleUser(codeRole) {
693
- let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
694
- return this.http.get(serviceUrl);
695
- }
696
- getUserStatistics(userToken) {
697
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
698
- this.generateRequestParams(userToken);
699
- return this.http.post(serviceUrl, this.httpOptions);
700
- }
701
- getRoutesForRole(token) {
702
- let serviceUrl = this.SERVICE_URL + 'post/routes/role';
703
- this.generateRequestParams(token);
704
- return this.http.post(serviceUrl, this.httpOptions);
705
- }
706
- getStudents(token) {
707
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
708
- this.generateRequestParams(token);
709
- return this.http.post(serviceUrl, this.httpOptions);
710
- }
711
- getStudent(token) {
712
- let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
713
- this.generateRequestParams(token);
714
- return this.http.post(serviceUrl, this.httpOptions);
715
- }
716
- generateRequestParams(param) {
717
- this.httpOptions = {
718
- header: new HttpHeaders(),
719
- params: param,
720
- };
721
- }
722
- }
723
- 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 });
724
- UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
725
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
726
- type: Injectable,
727
- args: [{
728
- providedIn: 'root',
729
- }]
697
+ class UserService {
698
+ constructor(http) {
699
+ this.http = http;
700
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/users/api/';
701
+ }
702
+ login(userLogin) {
703
+ let serviceUrl = this.SERVICE_URL + 'post/login';
704
+ this.generateRequestParams(userLogin);
705
+ return this.http.post(serviceUrl, this.httpOptions);
706
+ }
707
+ resetPassword(resetPassword) {
708
+ let serviceUrl = this.SERVICE_URL + 'reset/password';
709
+ this.generateRequestParams(resetPassword);
710
+ return this.http.post(serviceUrl, this.httpOptions);
711
+ }
712
+ register(user) {
713
+ let serviceUrl = this.SERVICE_URL + 'post/create/web';
714
+ this.generateRequestParams(user);
715
+ return this.http.post(serviceUrl, this.httpOptions);
716
+ }
717
+ registerIndex(register) {
718
+ let serviceUrl = this.SERVICE_URL + 'post/create/marketing';
719
+ this.generateRequestParams(register);
720
+ return this.http.post(serviceUrl, this.httpOptions);
721
+ }
722
+ registerDashboard(user) {
723
+ let serviceUrl = this.SERVICE_URL + 'post/create/dashboard';
724
+ this.generateRequestParams(user);
725
+ return this.http.post(serviceUrl, this.httpOptions);
726
+ }
727
+ getAvailableTeachers(token) {
728
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/teachers';
729
+ this.generateRequestParams(token);
730
+ return this.http.post(serviceUrl, this.httpOptions);
731
+ }
732
+ getAllAdvisor(userToken) {
733
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/all/user/commercial';
734
+ this.generateRequestParams(userToken);
735
+ return this.http.post(serviceUrl, this.httpOptions);
736
+ }
737
+ getByRoleUser(codeRole) {
738
+ let serviceUrl = this.SERVICE_URL + 'get/obtain/by/role/user/' + codeRole;
739
+ return this.http.get(serviceUrl);
740
+ }
741
+ getUserStatistics(userToken) {
742
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
743
+ this.generateRequestParams(userToken);
744
+ return this.http.post(serviceUrl, this.httpOptions);
745
+ }
746
+ getRoutesForRole(token) {
747
+ let serviceUrl = this.SERVICE_URL + 'post/routes/role';
748
+ this.generateRequestParams(token);
749
+ return this.http.post(serviceUrl, this.httpOptions);
750
+ }
751
+ getStudents(token) {
752
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students';
753
+ this.generateRequestParams(token);
754
+ return this.http.post(serviceUrl, this.httpOptions);
755
+ }
756
+ getStudent(token) {
757
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/student';
758
+ this.generateRequestParams(token);
759
+ return this.http.post(serviceUrl, this.httpOptions);
760
+ }
761
+ generateRequestParams(param) {
762
+ this.httpOptions = {
763
+ header: new HttpHeaders(),
764
+ params: param,
765
+ };
766
+ }
767
+ }
768
+ 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 });
769
+ UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: UserService, decorators: [{
771
+ type: Injectable,
772
+ args: [{
773
+ providedIn: 'root',
774
+ }]
730
775
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
731
776
 
732
- class StorageService {
733
- constructor() {
734
- this.currentSession = null;
735
- this.localStorageService = localStorage;
736
- this.currentSession = this.loadSessionData();
737
- }
738
- setCurrentSession(session) {
739
- this.currentSession = session;
740
- this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
741
- }
742
- loadSessionData() {
743
- var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
744
- return (sessionStr) ? JSON.parse(sessionStr) : null;
745
- }
746
- getCurrentSession() {
747
- return this.currentSession;
748
- }
749
- removeCurrentSession() {
750
- this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
751
- this.currentSession = null;
752
- }
753
- getCurrentUser() {
754
- var session = this.getCurrentSession();
755
- return (session && session.user) ? session.user : null;
756
- }
757
- ;
758
- isAuthenticated() {
759
- return (this.getCurrentToken() != null) ? true : false;
760
- }
761
- ;
762
- getCurrentToken() {
763
- var session = this.getCurrentSession();
764
- return (session && session.token) ? session.token : null;
765
- }
766
- ;
767
- logout() {
768
- this.removeCurrentSession();
769
- }
770
- }
771
- StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
772
- StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
773
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
774
- type: Injectable,
775
- args: [{
776
- providedIn: 'root',
777
- }]
777
+ class StorageService {
778
+ constructor() {
779
+ this.currentSession = null;
780
+ this.localStorageService = localStorage;
781
+ this.currentSession = this.loadSessionData();
782
+ }
783
+ setCurrentSession(session) {
784
+ this.currentSession = session;
785
+ this.localStorageService.setItem('606a7d4e73650b75ebb06972e77d6cc4', JSON.stringify(session));
786
+ }
787
+ loadSessionData() {
788
+ var sessionStr = this.localStorageService.getItem('606a7d4e73650b75ebb06972e77d6cc4');
789
+ return (sessionStr) ? JSON.parse(sessionStr) : null;
790
+ }
791
+ getCurrentSession() {
792
+ return this.currentSession;
793
+ }
794
+ removeCurrentSession() {
795
+ this.localStorageService.removeItem('606a7d4e73650b75ebb06972e77d6cc4');
796
+ this.currentSession = null;
797
+ }
798
+ getCurrentUser() {
799
+ var session = this.getCurrentSession();
800
+ return (session && session.user) ? session.user : null;
801
+ }
802
+ ;
803
+ isAuthenticated() {
804
+ return (this.getCurrentToken() != null) ? true : false;
805
+ }
806
+ ;
807
+ getCurrentToken() {
808
+ var session = this.getCurrentSession();
809
+ return (session && session.token) ? session.token : null;
810
+ }
811
+ ;
812
+ logout() {
813
+ this.removeCurrentSession();
814
+ }
815
+ }
816
+ StorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
817
+ StorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, providedIn: 'root' });
818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StorageService, decorators: [{
819
+ type: Injectable,
820
+ args: [{
821
+ providedIn: 'root',
822
+ }]
778
823
  }], ctorParameters: function () { return []; } });
779
824
 
780
- class BaseService {
781
- constructor(userService, storageService) {
782
- this.userService = userService;
783
- this.storageService = storageService;
784
- }
785
- webLogin(user, password) {
786
- let request = {
787
- user: user,
788
- password: password
789
- };
790
- let service = this.userService;
791
- let storage = this.storageService;
792
- return new Promise(function (resolve, reject) {
793
- service.login(request).subscribe(response => {
794
- switch (response.message.code) {
795
- case 1:
796
- Swal.fire({
797
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
798
- 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
799
- 'icon': 'success',
800
- });
801
- const loginRegisterUser = {
802
- token: response.data.token,
803
- user: response.data,
804
- };
805
- storage.setCurrentSession(loginRegisterUser);
806
- resolve(true);
807
- break;
808
- case 2:
809
- Swal.fire({
810
- 'title': '<p style="font-family: Poppins"">Warning!</p>',
811
- 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
812
- 'icon': 'warning',
813
- });
814
- resolve(false);
815
- break;
816
- case 3:
817
- Swal.fire({
818
- 'title': '<p style="font-family: Poppins"">Error!</p>',
819
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
820
- 'icon': 'error',
821
- });
822
- resolve(false);
823
- break;
824
- default:
825
- Swal.fire({
826
- 'title': '<p style="font-family: Poppins"">Error!</p>',
827
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
828
- 'icon': 'error',
829
- });
830
- resolve(false);
831
- break;
832
- }
833
- reject('Unhandled exception');
834
- });
835
- });
836
- }
837
- getUserRole() {
838
- let user = this.storageService.getCurrentUser()?.role;
839
- return user === undefined ? -1 : user;
840
- }
841
- getUserToken() {
842
- let token = this.storageService.getCurrentUser()?.token;
843
- return token === undefined ? '-1' : token;
844
- }
845
- getUserName() {
846
- let user = this.storageService.getCurrentUser();
847
- let response = user === null ? '' : user.name;
848
- return response;
849
- }
850
- registerUserFromDashboard(registerDashboardRq) {
851
- let request = registerDashboardRq;
852
- let service = this.userService;
853
- return new Promise(function (resolve, reject) {
854
- service.registerDashboard(request).subscribe((response) => {
855
- switch (response.message.code) {
856
- case 1:
857
- Swal.fire({
858
- 'title': '<p style="font-family: Poppins"">Perfect!</p>',
859
- 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
860
- 'icon': 'success',
861
- });
862
- resolve(true);
863
- break;
864
- case 3:
865
- Swal.fire({
866
- 'title': '<p style="font-family: Poppins"">Error!</p>',
867
- 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
868
- 'icon': 'error',
869
- });
870
- resolve(false);
871
- break;
872
- case 4:
873
- Swal.fire({
874
- 'title': '<p style="font-family: Poppins">Ups!</p>',
875
- 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
876
- 'icon': 'warning',
877
- });
878
- resolve(false);
879
- break;
880
- default:
881
- Swal.fire({
882
- 'title': '<p style="font-family: Poppins"">Error!</p>',
883
- 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
884
- 'icon': 'error',
885
- });
886
- resolve(false);
887
- break;
888
- }
889
- reject('Unhandled exception');
890
- });
891
- });
892
- }
893
- jsonToArray(data) {
894
- var response = [];
895
- data.forEach((element) => {
896
- var object = [];
897
- for (var clave in element) {
898
- if (element.hasOwnProperty(clave)) {
899
- if (typeof element[clave] == 'object') {
900
- element[clave] = this.subJsonToArray(element[clave]);
901
- }
902
- object.push(element[clave]);
903
- }
904
- }
905
- response.push(object);
906
- });
907
- return response;
908
- }
909
- subJsonToArray(data) {
910
- var object = '';
911
- for (var clave in data) {
912
- if (clave != 'code') {
913
- object += '\n' + data[clave];
914
- }
915
- }
916
- return object;
917
- }
918
- }
919
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
920
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
921
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
922
- type: Injectable,
923
- args: [{
924
- providedIn: 'root',
925
- }]
825
+ class BaseService {
826
+ constructor(userService, storageService) {
827
+ this.userService = userService;
828
+ this.storageService = storageService;
829
+ }
830
+ webLogin(user, password) {
831
+ let request = {
832
+ user: user,
833
+ password: password
834
+ };
835
+ let service = this.userService;
836
+ let storage = this.storageService;
837
+ return new Promise(function (resolve, reject) {
838
+ service.login(request).subscribe(response => {
839
+ switch (response.message.code) {
840
+ case 1:
841
+ Swal.fire({
842
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
843
+ 'html': '<p style="font-family: Poppins"">Succesfull login</p>',
844
+ 'icon': 'success',
845
+ });
846
+ const loginRegisterUser = {
847
+ token: response.data.token,
848
+ user: response.data,
849
+ };
850
+ storage.setCurrentSession(loginRegisterUser);
851
+ resolve(true);
852
+ break;
853
+ case 2:
854
+ Swal.fire({
855
+ 'title': '<p style="font-family: Poppins"">Warning!</p>',
856
+ 'html': '<p style="font-family: Poppins"">The data does not correspond to a user registered in our system, please review them.</p>',
857
+ 'icon': 'warning',
858
+ });
859
+ resolve(false);
860
+ break;
861
+ case 3:
862
+ Swal.fire({
863
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
864
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
865
+ 'icon': 'error',
866
+ });
867
+ resolve(false);
868
+ break;
869
+ default:
870
+ Swal.fire({
871
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
872
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
873
+ 'icon': 'error',
874
+ });
875
+ resolve(false);
876
+ break;
877
+ }
878
+ reject('Unhandled exception');
879
+ });
880
+ });
881
+ }
882
+ getUserRole() {
883
+ let user = this.storageService.getCurrentUser()?.role;
884
+ return user === undefined ? -1 : user;
885
+ }
886
+ getUserToken() {
887
+ let token = this.storageService.getCurrentUser()?.token;
888
+ return token === undefined ? '-1' : token;
889
+ }
890
+ getUserName() {
891
+ let user = this.storageService.getCurrentUser();
892
+ let response = user === null ? '' : user.name;
893
+ return response;
894
+ }
895
+ registerUserFromDashboard(registerDashboardRq) {
896
+ let request = registerDashboardRq;
897
+ let service = this.userService;
898
+ return new Promise(function (resolve, reject) {
899
+ service.registerDashboard(request).subscribe((response) => {
900
+ switch (response.message.code) {
901
+ case 1:
902
+ Swal.fire({
903
+ 'title': '<p style="font-family: Poppins"">Perfect!</p>',
904
+ 'html': '<p style="font-family: Poppins"">Sucesfull register!</p>',
905
+ 'icon': 'success',
906
+ });
907
+ resolve(true);
908
+ break;
909
+ case 3:
910
+ Swal.fire({
911
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
912
+ 'html': '<p style="font-family: Poppins"">The input data does not meet the established parameters.</p>',
913
+ 'icon': 'error',
914
+ });
915
+ resolve(false);
916
+ break;
917
+ case 4:
918
+ Swal.fire({
919
+ 'title': '<p style="font-family: Poppins">Ups!</p>',
920
+ 'html': '<p style="font-family: Poppins">The input data has a high relation with a user that already exists!</p>',
921
+ 'icon': 'warning',
922
+ });
923
+ resolve(false);
924
+ break;
925
+ default:
926
+ Swal.fire({
927
+ 'title': '<p style="font-family: Poppins"">Error!</p>',
928
+ 'html': '<p style="font-family: Poppins"">An unexpected error has occurred</p>',
929
+ 'icon': 'error',
930
+ });
931
+ resolve(false);
932
+ break;
933
+ }
934
+ reject('Unhandled exception');
935
+ });
936
+ });
937
+ }
938
+ jsonToArray(data) {
939
+ var response = [];
940
+ data.forEach((element) => {
941
+ var object = [];
942
+ for (var clave in element) {
943
+ if (element.hasOwnProperty(clave)) {
944
+ if (typeof element[clave] == 'object') {
945
+ element[clave] = this.subJsonToArray(element[clave]);
946
+ }
947
+ object.push(element[clave]);
948
+ }
949
+ }
950
+ response.push(object);
951
+ });
952
+ return response;
953
+ }
954
+ subJsonToArray(data) {
955
+ var object = '';
956
+ for (var clave in data) {
957
+ if (clave != 'code') {
958
+ object += '\n' + data[clave];
959
+ }
960
+ }
961
+ return object;
962
+ }
963
+ }
964
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
965
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, providedIn: 'root' });
966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BaseService, decorators: [{
967
+ type: Injectable,
968
+ args: [{
969
+ providedIn: 'root',
970
+ }]
926
971
  }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; } });
927
972
 
928
- class LoginFormComponent {
929
- constructor(fb, baseService) {
930
- this.baseService = baseService;
931
- this.isLogged = new EventEmitter();
932
- this.loginForm = fb.group({
933
- email: ['', [Validators.required]],
934
- password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
935
- });
936
- }
937
- login(data) {
938
- this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
939
- this.isLogged.emit(isLogged);
940
- });
941
- }
942
- }
943
- 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 });
944
- LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
945
- <div class="form-container">
946
-
947
- <h2 style="text-align: center;">IPT PLATFORM</h2>
948
- <hr>
949
-
950
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
951
- <ipt-input
952
- [inputType]="'text'"
953
- [placeHolder]="'Email'"
954
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
955
- [control]="loginForm.controls['email']"
956
- ></ipt-input>
957
-
958
- <ipt-input
959
- [inputType]="'password'"
960
- [placeHolder]="'Password'"
961
- [control]="loginForm.controls['password']"
962
- ></ipt-input>
963
- </form>
964
-
965
- <div class="button-container">
966
- <ipt-button
967
- [label]="'Login'"
968
- [primary]="true"
969
- [isEnabled]="loginForm.valid"
970
- (onClick)="login(loginForm)"
971
- ></ipt-button>
972
- </div>
973
-
974
- </div>
975
- `, 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"] }] });
976
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
977
- type: Component,
978
- args: [{ selector: 'ipt-login-form', template: `
979
- <div class="form-container">
980
-
981
- <h2 style="text-align: center;">IPT PLATFORM</h2>
982
- <hr>
983
-
984
- <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
985
- <ipt-input
986
- [inputType]="'text'"
987
- [placeHolder]="'Email'"
988
- [validateText]="'Debe ser @inglesparatodos.edu.co'"
989
- [control]="loginForm.controls['email']"
990
- ></ipt-input>
991
-
992
- <ipt-input
993
- [inputType]="'password'"
994
- [placeHolder]="'Password'"
995
- [control]="loginForm.controls['password']"
996
- ></ipt-input>
997
- </form>
998
-
999
- <div class="button-container">
1000
- <ipt-button
1001
- [label]="'Login'"
1002
- [primary]="true"
1003
- [isEnabled]="loginForm.valid"
1004
- (onClick)="login(loginForm)"
1005
- ></ipt-button>
1006
- </div>
1007
-
1008
- </div>
1009
- `, 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"] }]
1010
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1011
- type: Output
973
+ class LoginFormComponent {
974
+ constructor(fb, baseService) {
975
+ this.baseService = baseService;
976
+ this.isLogged = new EventEmitter();
977
+ this.loginForm = fb.group({
978
+ email: ['', [Validators.required]],
979
+ password: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(15)]],
980
+ });
981
+ }
982
+ login(data) {
983
+ this.baseService.webLogin(data.controls['email'].value, data.controls['password'].value).then((isLogged) => {
984
+ this.isLogged.emit(isLogged);
985
+ });
986
+ }
987
+ }
988
+ 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 });
989
+ LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: LoginFormComponent, selector: "ipt-login-form", outputs: { isLogged: "isLogged" }, ngImport: i0, template: `
990
+ <div class="form-container">
991
+
992
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
993
+ <hr>
994
+
995
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
996
+ <ipt-input
997
+ [inputType]="'text'"
998
+ [placeHolder]="'Email'"
999
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1000
+ [control]="loginForm.controls['email']"
1001
+ ></ipt-input>
1002
+
1003
+ <ipt-input
1004
+ [inputType]="'password'"
1005
+ [placeHolder]="'Password'"
1006
+ [control]="loginForm.controls['password']"
1007
+ ></ipt-input>
1008
+ </form>
1009
+
1010
+ <div class="button-container">
1011
+ <ipt-button
1012
+ [label]="'Login'"
1013
+ [primary]="true"
1014
+ [isEnabled]="loginForm.valid"
1015
+ (onClick)="login(loginForm)"
1016
+ ></ipt-button>
1017
+ </div>
1018
+
1019
+ </div>
1020
+ `, 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"] }] });
1021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: LoginFormComponent, decorators: [{
1022
+ type: Component,
1023
+ args: [{ selector: 'ipt-login-form', template: `
1024
+ <div class="form-container">
1025
+
1026
+ <h2 style="text-align: center;">IPT PLATFORM</h2>
1027
+ <hr>
1028
+
1029
+ <form (ngSubmit)="login(loginForm)" [formGroup]="loginForm">
1030
+ <ipt-input
1031
+ [inputType]="'text'"
1032
+ [placeHolder]="'Email'"
1033
+ [validateText]="'Debe ser @inglesparatodos.edu.co'"
1034
+ [control]="loginForm.controls['email']"
1035
+ ></ipt-input>
1036
+
1037
+ <ipt-input
1038
+ [inputType]="'password'"
1039
+ [placeHolder]="'Password'"
1040
+ [control]="loginForm.controls['password']"
1041
+ ></ipt-input>
1042
+ </form>
1043
+
1044
+ <div class="button-container">
1045
+ <ipt-button
1046
+ [label]="'Login'"
1047
+ [primary]="true"
1048
+ [isEnabled]="loginForm.valid"
1049
+ (onClick)="login(loginForm)"
1050
+ ></ipt-button>
1051
+ </div>
1052
+
1053
+ </div>
1054
+ `, 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"] }]
1055
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: BaseService }]; }, propDecorators: { isLogged: [{
1056
+ type: Output
1012
1057
  }] } });
1013
1058
 
1014
- class ParameterService {
1015
- constructor(http) {
1016
- this.http = http;
1017
- this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1018
- }
1019
- getIndicatives() {
1020
- let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1021
- return this.http.get(serviceUrl);
1022
- }
1023
- getCardTypes(country) {
1024
- let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1025
- return this.http.get(serviceUrl);
1026
- }
1027
- getCountries() {
1028
- let serviceUrl = this.SERVICE_URL + 'get/countries';
1029
- return this.http.get(serviceUrl);
1030
- }
1031
- getStatesByCountry(country) {
1032
- let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1033
- return this.http.get(serviceUrl);
1034
- }
1035
- getCitiesByState(state) {
1036
- let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1037
- return this.http.get(serviceUrl);
1038
- }
1039
- getAllPlans() {
1040
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1041
- return this.http.get(serviceUrl);
1042
- }
1043
- getLevels() {
1044
- let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1045
- return this.http.get(serviceUrl);
1046
- }
1047
- getAgreements() {
1048
- let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1049
- return this.http.get(serviceUrl);
1050
- }
1051
- getAgreementByCategory(typeCategory) {
1052
- let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1053
- return this.http.get(serviceUrl);
1054
- }
1055
- getAllClassrooms() {
1056
- let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1057
- return this.http.get(serviceUrl);
1058
- }
1059
- getCoursesTypes() {
1060
- let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1061
- return this.http.get(serviceUrl);
1062
- }
1063
- getCoursesTypesByPlan(typePlan) {
1064
- let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1065
- return this.http.get(serviceUrl);
1066
- }
1067
- getDegrees() {
1068
- let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1069
- return this.http.get(serviceUrl);
1070
- }
1071
- getProgramsByDegree(typeDegree) {
1072
- let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1073
- return this.http.get(serviceUrl);
1074
- }
1075
- getMarketingReasons() {
1076
- let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1077
- return this.http.get(serviceUrl);
1078
- }
1079
- getStudyReasons() {
1080
- let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1081
- return this.http.get(serviceUrl);
1082
- }
1083
- getAcademicUnits() {
1084
- let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1085
- return this.http.get(serviceUrl);
1086
- }
1087
- getStatusContact() {
1088
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1089
- return this.http.get(serviceUrl);
1090
- }
1091
- getTypePlan() {
1092
- let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1093
- return this.http.get(serviceUrl);
1094
- }
1095
- getTypePlanDiscount() {
1096
- let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1097
- return this.http.get(serviceUrl);
1098
- }
1099
- getContactedType() {
1100
- let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1101
- return this.http.get(serviceUrl);
1102
- }
1103
- getStatusByCode(codeStatus) {
1104
- let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1105
- return this.http.get(serviceUrl);
1106
- }
1107
- getAllTypeDiscount() {
1108
- let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1109
- return this.http.get(serviceUrl);
1110
- }
1111
- getAllCourseModality() {
1112
- let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1113
- return this.http.get(serviceUrl);
1114
- }
1115
- }
1116
- 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 });
1117
- ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1119
- type: Injectable,
1120
- args: [{
1121
- providedIn: 'root',
1122
- }]
1059
+ class ParameterService {
1060
+ constructor(http) {
1061
+ this.http = http;
1062
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/parameters/api/';
1063
+ }
1064
+ getIndicatives() {
1065
+ let serviceUrl = this.SERVICE_URL + 'get/indicatives';
1066
+ return this.http.get(serviceUrl);
1067
+ }
1068
+ getCardTypes(country) {
1069
+ let serviceUrl = this.SERVICE_URL + 'get/id/card/type/country/' + country;
1070
+ return this.http.get(serviceUrl);
1071
+ }
1072
+ getCountries() {
1073
+ let serviceUrl = this.SERVICE_URL + 'get/countries';
1074
+ return this.http.get(serviceUrl);
1075
+ }
1076
+ getStatesByCountry(country) {
1077
+ let serviceUrl = this.SERVICE_URL + 'get/state/country/iso/' + country;
1078
+ return this.http.get(serviceUrl);
1079
+ }
1080
+ getCitiesByState(state) {
1081
+ let serviceUrl = this.SERVICE_URL + 'get/cities/state/' + state;
1082
+ return this.http.get(serviceUrl);
1083
+ }
1084
+ getAllPlans() {
1085
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1086
+ return this.http.get(serviceUrl);
1087
+ }
1088
+ getLevels() {
1089
+ let serviceUrl = this.SERVICE_URL + 'get/english/levels';
1090
+ return this.http.get(serviceUrl);
1091
+ }
1092
+ getAgreements() {
1093
+ let serviceUrl = this.SERVICE_URL + 'get/all/agreement';
1094
+ return this.http.get(serviceUrl);
1095
+ }
1096
+ getAgreementByCategory(typeCategory) {
1097
+ let serviceUrl = this.SERVICE_URL + 'get/agreement/by/category/' + typeCategory;
1098
+ return this.http.get(serviceUrl);
1099
+ }
1100
+ getAllClassrooms() {
1101
+ let serviceUrl = this.SERVICE_URL + 'get/all/classroom';
1102
+ return this.http.get(serviceUrl);
1103
+ }
1104
+ getCoursesTypes() {
1105
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/type';
1106
+ return this.http.get(serviceUrl);
1107
+ }
1108
+ getCoursesTypesByPlan(typePlan) {
1109
+ let serviceUrl = this.SERVICE_URL + 'get/course/by/plan/' + typePlan;
1110
+ return this.http.get(serviceUrl);
1111
+ }
1112
+ getDegrees() {
1113
+ let serviceUrl = this.SERVICE_URL + 'get/all/degrees';
1114
+ return this.http.get(serviceUrl);
1115
+ }
1116
+ getProgramsByDegree(typeDegree) {
1117
+ let serviceUrl = this.SERVICE_URL + 'get/programs/by/degree/' + typeDegree;
1118
+ return this.http.get(serviceUrl);
1119
+ }
1120
+ getMarketingReasons() {
1121
+ let serviceUrl = this.SERVICE_URL + 'get/all/mkt/reasons';
1122
+ return this.http.get(serviceUrl);
1123
+ }
1124
+ getStudyReasons() {
1125
+ let serviceUrl = this.SERVICE_URL + 'get/all/study/reasons';
1126
+ return this.http.get(serviceUrl);
1127
+ }
1128
+ getAcademicUnits() {
1129
+ let serviceUrl = this.SERVICE_URL + 'get/academic/units';
1130
+ return this.http.get(serviceUrl);
1131
+ }
1132
+ getStatusContact() {
1133
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/all';
1134
+ return this.http.get(serviceUrl);
1135
+ }
1136
+ getTypePlan() {
1137
+ let serviceUrl = this.SERVICE_URL + 'get/all/plans';
1138
+ return this.http.get(serviceUrl);
1139
+ }
1140
+ getTypePlanDiscount() {
1141
+ let serviceUrl = this.SERVICE_URL + 'get/discount/all/plans';
1142
+ return this.http.get(serviceUrl);
1143
+ }
1144
+ getContactedType() {
1145
+ let serviceUrl = this.SERVICE_URL + 'get/contact/contacted/all';
1146
+ return this.http.get(serviceUrl);
1147
+ }
1148
+ getStatusByCode(codeStatus) {
1149
+ let serviceUrl = this.SERVICE_URL + 'get/contact/status/bycode/' + codeStatus;
1150
+ return this.http.get(serviceUrl);
1151
+ }
1152
+ getAllTypeDiscount() {
1153
+ let serviceUrl = this.SERVICE_URL + 'get/commercial/typediscounts/all';
1154
+ return this.http.get(serviceUrl);
1155
+ }
1156
+ getAllCourseModality() {
1157
+ let serviceUrl = this.SERVICE_URL + 'get/all/course/modality';
1158
+ return this.http.get(serviceUrl);
1159
+ }
1160
+ }
1161
+ 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 });
1162
+ ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, providedIn: 'root' });
1163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ParameterService, decorators: [{
1164
+ type: Injectable,
1165
+ args: [{
1166
+ providedIn: 'root',
1167
+ }]
1123
1168
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1124
1169
 
1125
- class CreateUserFormComponent {
1126
- constructor(fb, parameterService, userService) {
1127
- this.fb = fb;
1128
- this.parameterService = parameterService;
1129
- this.userService = userService;
1130
- this.visibility = false;
1131
- this.userCreated = new EventEmitter(false);
1132
- this.onHide = new EventEmitter(false);
1133
- this.loader = false;
1134
- this.photo = '';
1135
- }
1136
- ngOnInit() {
1137
- this.initForm();
1138
- this.getParameters();
1139
- }
1140
- closeModal() {
1141
- this.visibility = false;
1142
- this.onHide.emit(true);
1143
- }
1144
- createUser() {
1145
- this.loader = true;
1146
- let request = {
1147
- name: this.createUserForm.controls['name'].value,
1148
- last_name: this.createUserForm.controls['last_name'].value,
1149
- id_card_type: this.createUserForm.controls['id_card_type'].value,
1150
- id_card: this.createUserForm.controls['id_card'].value,
1151
- phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1152
- phone_number: this.createUserForm.controls['phone_number'].value,
1153
- email: this.createUserForm.controls['email'].value,
1154
- city: this.createUserForm.controls['city'].value,
1155
- service_hour: this.createUserForm.controls['service_hour'].value,
1156
- role: this.createUserForm.controls['role'].value,
1157
- password: this.createUserForm.controls['password'].value,
1158
- };
1159
- this.userService.registerDashboard(request).subscribe((response) => {
1160
- console.log(response.message);
1161
- switch (response.message.code) {
1162
- case 1:
1163
- this.userCreated.emit(true);
1164
- this.initForm();
1165
- break;
1166
- case 2:
1167
- throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1168
- case 3:
1169
- throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1170
- default:
1171
- break;
1172
- }
1173
- this.loader = false;
1174
- });
1175
- }
1176
- getParameters() {
1177
- this.parameterService.getIndicatives().subscribe((response) => {
1178
- this.phoneNumberIndicatives = response.data;
1179
- });
1180
- this.parameterService.getCardTypes('col').subscribe((response) => {
1181
- this.idTypes = response.data;
1182
- });
1183
- this.parameterService.getStatesByCountry('col').subscribe((response) => {
1184
- this.states = response.data;
1185
- });
1186
- }
1187
- getRolesOptions() {
1188
- // Estudiante
1189
- if (this.userType === 'student') {
1190
- this.setPhoto('student');
1191
- return [
1192
- { code: '13', name: 'Student' },
1193
- ];
1194
- }
1195
- // Académico
1196
- if (this.userType === 'academic') {
1197
- this.setPhoto('academic');
1198
- return [
1199
- { code: '11', name: 'Teacher PRO' },
1200
- { code: '12', name: 'Teacher' },
1201
- ];
1202
- }
1203
- // Administrativo
1204
- if (this.userType === 'administrative') {
1205
- this.setPhoto('administrative');
1206
- return [
1207
- { code: '31', name: 'Administrative Supervisor' },
1208
- { code: '32', name: 'Administrative Advisor' },
1209
- ];
1210
- }
1211
- // Marketing
1212
- if (this.userType === 'marketing') {
1213
- this.setPhoto('marketing');
1214
- return [
1215
- { code: '21', name: 'Marketing Supervisor' },
1216
- { code: '22', name: 'Marketing Advisor' },
1217
- ];
1218
- }
1219
- // Comercial
1220
- if (this.userType === 'commercial') {
1221
- this.setPhoto('commercial');
1222
- return [
1223
- { code: '41', name: 'Commercial Supervisor' },
1224
- { code: '42', name: 'Commercial Advisor' },
1225
- ];
1226
- }
1227
- // Cartera
1228
- if (this.userType === 'treasure') {
1229
- this.setPhoto('treasure');
1230
- return [
1231
- { code: '51', name: 'Treauser Supervisor' },
1232
- { code: '52', name: 'Treauser Advisor' },
1233
- ];
1234
- }
1235
- }
1236
- initForm() {
1237
- this.createUserForm = this.fb.group({
1238
- name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1239
- last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1240
- email: ['', [Validators.required, Validators.maxLength(300)]],
1241
- id_card_type: ['', [Validators.required]],
1242
- id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1243
- phone_indicative: ['', [Validators.required]],
1244
- city: ['', [Validators.required]],
1245
- role: ['', [Validators.required]],
1246
- service_hour: ['', [Validators.required]],
1247
- phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1248
- password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1249
- re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1250
- state: [''],
1251
- });
1252
- }
1253
- setPhoto(type) {
1254
- if (type === 'student')
1255
- this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1256
- if (type === 'academic')
1257
- this.photo = '../../../assets/user-form-assets/academico.png';
1258
- if (type === 'administrative')
1259
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1260
- if (type === 'marketing')
1261
- this.photo = '../../../assets/user-form-assets/marketing.jpg';
1262
- if (type === 'commercial')
1263
- this.photo = '../../../assets/user-form-assets/comercial.jpg';
1264
- if (type === 'treasure')
1265
- this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1266
- }
1267
- selectRol(role) {
1268
- if (role !== 'Seleccione el rol') {
1269
- this.createUserForm.controls['role'].setValue(role);
1270
- }
1271
- else {
1272
- this.createUserForm.controls['role'].setValue(null);
1273
- }
1274
- }
1275
- selectIndicatives(indicative) {
1276
- if (indicative !== 'Seleccione el indicativo') {
1277
- this.createUserForm.controls['phone_indicative'].setValue(indicative);
1278
- }
1279
- else {
1280
- this.createUserForm.controls['phone_indicative'].setValue(null);
1281
- }
1282
- }
1283
- selectIdType(idType) {
1284
- if (idType !== 'Ingrese el tipo de documento') {
1285
- this.createUserForm.controls['id_card_type'].setValue(idType);
1286
- }
1287
- else {
1288
- this.createUserForm.controls['id_card_type'].setValue(null);
1289
- }
1290
- }
1291
- selectState(state) {
1292
- if (state !== 'Seleccione el departamento') {
1293
- this.createUserForm.controls['state'].setValue(state);
1294
- this.parameterService.getCitiesByState(state).subscribe((response) => {
1295
- this.cities = response.data;
1296
- });
1297
- }
1298
- else {
1299
- this.createUserForm.controls['state'].setValue(null);
1300
- this.createUserForm.controls['city'].setValue(null);
1301
- this.cities = [];
1302
- }
1303
- }
1304
- selectCity(city) {
1305
- if (city !== 'Ciudad de residencia') {
1306
- this.createUserForm.controls['city'].setValue(city);
1307
- }
1308
- else {
1309
- this.createUserForm.controls['city'].setValue(null);
1310
- }
1311
- }
1312
- }
1313
- 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 });
1314
- 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;top:0;left:0;bottom:0;right: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", "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: [
1315
- trigger('fade', [
1316
- transition('void => *', [
1317
- style({ opacity: 0 }),
1318
- animate(200, style({ opacity: 1 }))
1319
- ])
1320
- ])
1321
- ] });
1322
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1323
- type: Component,
1324
- args: [{ selector: 'ipt-create-user-form', animations: [
1325
- trigger('fade', [
1326
- transition('void => *', [
1327
- style({ opacity: 0 }),
1328
- animate(200, style({ opacity: 1 }))
1329
- ])
1330
- ])
1331
- ], 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;top:0;left:0;bottom:0;right: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"] }]
1332
- }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1333
- type: Input
1334
- }], visibility: [{
1335
- type: Input
1336
- }], userCreated: [{
1337
- type: Output
1338
- }], onHide: [{
1339
- type: Output
1170
+ class CreateUserFormComponent {
1171
+ constructor(fb, parameterService, userService) {
1172
+ this.fb = fb;
1173
+ this.parameterService = parameterService;
1174
+ this.userService = userService;
1175
+ this.visibility = false;
1176
+ this.userCreated = new EventEmitter(false);
1177
+ this.onHide = new EventEmitter(false);
1178
+ this.loader = false;
1179
+ this.photo = '';
1180
+ }
1181
+ ngOnInit() {
1182
+ this.initForm();
1183
+ this.getParameters();
1184
+ }
1185
+ closeModal() {
1186
+ this.visibility = false;
1187
+ this.onHide.emit(true);
1188
+ }
1189
+ createUser() {
1190
+ this.loader = true;
1191
+ let request = {
1192
+ name: this.createUserForm.controls['name'].value,
1193
+ last_name: this.createUserForm.controls['last_name'].value,
1194
+ id_card_type: this.createUserForm.controls['id_card_type'].value,
1195
+ id_card: this.createUserForm.controls['id_card'].value,
1196
+ phone_indicative: this.createUserForm.controls['phone_indicative'].value,
1197
+ phone_number: this.createUserForm.controls['phone_number'].value,
1198
+ email: this.createUserForm.controls['email'].value,
1199
+ city: this.createUserForm.controls['city'].value,
1200
+ service_hour: this.createUserForm.controls['service_hour'].value,
1201
+ role: this.createUserForm.controls['role'].value,
1202
+ password: this.createUserForm.controls['password'].value,
1203
+ };
1204
+ this.userService.registerDashboard(request).subscribe((response) => {
1205
+ console.log(response.message);
1206
+ switch (response.message.code) {
1207
+ case 1:
1208
+ this.userCreated.emit(true);
1209
+ this.initForm();
1210
+ break;
1211
+ case 2:
1212
+ throw new Error("Los datos ingresados no corresponden a un usuario registrado en nuestro sistema, por favor reviselos.");
1213
+ case 3:
1214
+ throw new Error("Los datos ingresados no cumplen los parámetros establecidos");
1215
+ default:
1216
+ break;
1217
+ }
1218
+ this.loader = false;
1219
+ });
1220
+ }
1221
+ getParameters() {
1222
+ this.parameterService.getIndicatives().subscribe((response) => {
1223
+ this.phoneNumberIndicatives = response.data;
1224
+ });
1225
+ this.parameterService.getCardTypes('col').subscribe((response) => {
1226
+ this.idTypes = response.data;
1227
+ });
1228
+ this.parameterService.getStatesByCountry('col').subscribe((response) => {
1229
+ this.states = response.data;
1230
+ });
1231
+ }
1232
+ getRolesOptions() {
1233
+ // Estudiante
1234
+ if (this.userType === 'student') {
1235
+ this.setPhoto('student');
1236
+ return [
1237
+ { code: '13', name: 'Student' },
1238
+ ];
1239
+ }
1240
+ // Académico
1241
+ if (this.userType === 'academic') {
1242
+ this.setPhoto('academic');
1243
+ return [
1244
+ { code: '11', name: 'Teacher PRO' },
1245
+ { code: '12', name: 'Teacher' },
1246
+ ];
1247
+ }
1248
+ // Administrativo
1249
+ if (this.userType === 'administrative') {
1250
+ this.setPhoto('administrative');
1251
+ return [
1252
+ { code: '31', name: 'Administrative Supervisor' },
1253
+ { code: '32', name: 'Administrative Advisor' },
1254
+ ];
1255
+ }
1256
+ // Marketing
1257
+ if (this.userType === 'marketing') {
1258
+ this.setPhoto('marketing');
1259
+ return [
1260
+ { code: '21', name: 'Marketing Supervisor' },
1261
+ { code: '22', name: 'Marketing Advisor' },
1262
+ ];
1263
+ }
1264
+ // Comercial
1265
+ if (this.userType === 'commercial') {
1266
+ this.setPhoto('commercial');
1267
+ return [
1268
+ { code: '41', name: 'Commercial Supervisor' },
1269
+ { code: '42', name: 'Commercial Advisor' },
1270
+ ];
1271
+ }
1272
+ // Cartera
1273
+ if (this.userType === 'treasure') {
1274
+ this.setPhoto('treasure');
1275
+ return [
1276
+ { code: '51', name: 'Treauser Supervisor' },
1277
+ { code: '52', name: 'Treauser Advisor' },
1278
+ ];
1279
+ }
1280
+ }
1281
+ initForm() {
1282
+ this.createUserForm = this.fb.group({
1283
+ name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)],],
1284
+ last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32),],],
1285
+ email: ['', [Validators.required, Validators.maxLength(300)]],
1286
+ id_card_type: ['', [Validators.required]],
1287
+ id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20),]],
1288
+ phone_indicative: ['', [Validators.required]],
1289
+ city: ['', [Validators.required]],
1290
+ role: ['', [Validators.required]],
1291
+ service_hour: ['', [Validators.required]],
1292
+ phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
1293
+ password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1294
+ re_password: ['', [Validators.required, Validators.minLength(7), Validators.maxLength(32)]],
1295
+ state: [''],
1296
+ });
1297
+ }
1298
+ setPhoto(type) {
1299
+ if (type === 'student')
1300
+ this.photo = '../../../assets/user-form-assets/estudiante.jpg';
1301
+ if (type === 'academic')
1302
+ this.photo = '../../../assets/user-form-assets/academico.png';
1303
+ if (type === 'administrative')
1304
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1305
+ if (type === 'marketing')
1306
+ this.photo = '../../../assets/user-form-assets/marketing.jpg';
1307
+ if (type === 'commercial')
1308
+ this.photo = '../../../assets/user-form-assets/comercial.jpg';
1309
+ if (type === 'treasure')
1310
+ this.photo = '../../../assets/user-form-assets/administrativo.jpg';
1311
+ }
1312
+ selectRol(role) {
1313
+ if (role !== 'Seleccione el rol') {
1314
+ this.createUserForm.controls['role'].setValue(role);
1315
+ }
1316
+ else {
1317
+ this.createUserForm.controls['role'].setValue(null);
1318
+ }
1319
+ }
1320
+ selectIndicatives(indicative) {
1321
+ if (indicative !== 'Seleccione el indicativo') {
1322
+ this.createUserForm.controls['phone_indicative'].setValue(indicative);
1323
+ }
1324
+ else {
1325
+ this.createUserForm.controls['phone_indicative'].setValue(null);
1326
+ }
1327
+ }
1328
+ selectIdType(idType) {
1329
+ if (idType !== 'Ingrese el tipo de documento') {
1330
+ this.createUserForm.controls['id_card_type'].setValue(idType);
1331
+ }
1332
+ else {
1333
+ this.createUserForm.controls['id_card_type'].setValue(null);
1334
+ }
1335
+ }
1336
+ selectState(state) {
1337
+ if (state !== 'Seleccione el departamento') {
1338
+ this.createUserForm.controls['state'].setValue(state);
1339
+ this.parameterService.getCitiesByState(state).subscribe((response) => {
1340
+ this.cities = response.data;
1341
+ });
1342
+ }
1343
+ else {
1344
+ this.createUserForm.controls['state'].setValue(null);
1345
+ this.createUserForm.controls['city'].setValue(null);
1346
+ this.cities = [];
1347
+ }
1348
+ }
1349
+ selectCity(city) {
1350
+ if (city !== 'Ciudad de residencia') {
1351
+ this.createUserForm.controls['city'].setValue(city);
1352
+ }
1353
+ else {
1354
+ this.createUserForm.controls['city'].setValue(null);
1355
+ }
1356
+ }
1357
+ }
1358
+ 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 });
1359
+ 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", "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: [
1360
+ trigger('fade', [
1361
+ transition('void => *', [
1362
+ style({ opacity: 0 }),
1363
+ animate(200, style({ opacity: 1 }))
1364
+ ])
1365
+ ])
1366
+ ] });
1367
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CreateUserFormComponent, decorators: [{
1368
+ type: Component,
1369
+ args: [{ selector: 'ipt-create-user-form', animations: [
1370
+ trigger('fade', [
1371
+ transition('void => *', [
1372
+ style({ opacity: 0 }),
1373
+ animate(200, style({ opacity: 1 }))
1374
+ ])
1375
+ ])
1376
+ ], 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"] }]
1377
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: ParameterService }, { type: UserService }]; }, propDecorators: { userType: [{
1378
+ type: Input
1379
+ }], visibility: [{
1380
+ type: Input
1381
+ }], userCreated: [{
1382
+ type: Output
1383
+ }], onHide: [{
1384
+ type: Output
1340
1385
  }] } });
1341
1386
 
1342
- class SidenavComponent {
1343
- constructor(userService, storageService) {
1344
- this.userService = userService;
1345
- this.storageService = storageService;
1346
- this.pageChangeEvent = new EventEmitter();
1347
- this.routes = [];
1348
- this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1349
- this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1350
- this.hour = new Date().getHours();
1351
- }
1352
- ngOnInit() {
1353
- let user = this.storageService.getCurrentUser()?.token;
1354
- let token = user === undefined ? '' : user;
1355
- let request = {
1356
- token: token,
1357
- };
1358
- this.userService.getRoutesForRole(request).subscribe((response) => {
1359
- this.routes = response.data;
1360
- });
1361
- }
1362
- clickPage(event) {
1363
- this.pageChangeEvent.emit(event);
1364
- }
1365
- logout() {
1366
- this.storageService.logout();
1367
- this.pageChangeEvent.emit('logout');
1368
- }
1369
- }
1370
- SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1371
- 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: `
1372
- <mat-sidenav #sidenav mode="push" >
1373
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1374
- <span style="font-size: 15px;">{{department}}</span>
1375
- <span class="menu-icon-close"></span>
1376
- </mat-toolbar>
1377
-
1378
- <mat-nav-list *ngFor="let route of routes">
1379
- <nav class="flex-container-menu">
1380
- <ipt-aside-button
1381
- [buttonActive]="this.setPage === route.page"
1382
- [icon]="route.icon"
1383
- [text]="route.text"
1384
- (isClicked)="clickPage(route.page)"
1385
- (click)="sidenav.toggle()"
1386
- >
1387
- </ipt-aside-button>
1388
- </nav>
1389
- </mat-nav-list>
1390
- </mat-sidenav>
1391
-
1392
- <mat-toolbar class="header">
1393
- <div class="menu-container" (click)="sidenav.toggle()">
1394
- <p>Menu</p>
1395
- <div class="menu-icon"></div>
1396
- </div>
1397
-
1398
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1399
-
1400
- <div class="text-container">
1401
- <span class="p1">{{ currentDay }}</span>
1402
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1403
- Hey {{ userName }}, Good moorning!
1404
- </span>
1405
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1406
- Hey {{ userName }}, Good afternoon!
1407
- </p>
1408
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1409
- Hey {{ userName }}, Good evening!
1410
- </p>
1411
- </div>
1412
-
1413
- <div class="logout-container" (click)="logout()">
1414
- <p class="logout-button">Cerrar sesión</p>
1415
- <div class="photo-logout"></div>
1416
- </div>
1417
- </mat-toolbar>
1418
- `, 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: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.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"] }] });
1419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1420
- type: Component,
1421
- args: [{ selector: 'ipt-sidenav', template: `
1422
- <mat-sidenav #sidenav mode="push" >
1423
- <mat-toolbar color="primary" (click)="sidenav.toggle()">
1424
- <span style="font-size: 15px;">{{department}}</span>
1425
- <span class="menu-icon-close"></span>
1426
- </mat-toolbar>
1427
-
1428
- <mat-nav-list *ngFor="let route of routes">
1429
- <nav class="flex-container-menu">
1430
- <ipt-aside-button
1431
- [buttonActive]="this.setPage === route.page"
1432
- [icon]="route.icon"
1433
- [text]="route.text"
1434
- (isClicked)="clickPage(route.page)"
1435
- (click)="sidenav.toggle()"
1436
- >
1437
- </ipt-aside-button>
1438
- </nav>
1439
- </mat-nav-list>
1440
- </mat-sidenav>
1441
-
1442
- <mat-toolbar class="header">
1443
- <div class="menu-container" (click)="sidenav.toggle()">
1444
- <p>Menu</p>
1445
- <div class="menu-icon"></div>
1446
- </div>
1447
-
1448
- <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1449
-
1450
- <div class="text-container">
1451
- <span class="p1">{{ currentDay }}</span>
1452
- <span *ngIf="hour >= 0 && hour < 12" class="p2">
1453
- Hey {{ userName }}, Good moorning!
1454
- </span>
1455
- <p *ngIf="hour >= 12 && hour < 18" class="p2">
1456
- Hey {{ userName }}, Good afternoon!
1457
- </p>
1458
- <p *ngIf="hour >= 18 && hour < 24" class="p2">
1459
- Hey {{ userName }}, Good evening!
1460
- </p>
1461
- </div>
1462
-
1463
- <div class="logout-container" (click)="logout()">
1464
- <p class="logout-button">Cerrar sesión</p>
1465
- <div class="photo-logout"></div>
1466
- </div>
1467
- </mat-toolbar>
1468
- `, 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"] }]
1469
- }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1470
- type: Input
1471
- }], setPage: [{
1472
- type: Input
1473
- }], userName: [{
1474
- type: Input
1475
- }], pageChangeEvent: [{
1476
- type: Output
1387
+ class SidenavComponent {
1388
+ constructor(userService, storageService) {
1389
+ this.userService = userService;
1390
+ this.storageService = storageService;
1391
+ this.pageChangeEvent = new EventEmitter();
1392
+ this.routes = [];
1393
+ this.options = { weekday: 'long', month: 'long', day: 'numeric' };
1394
+ this.currentDay = new Date().toLocaleDateString('en-EN', this.options);
1395
+ this.hour = new Date().getHours();
1396
+ }
1397
+ ngOnInit() {
1398
+ let user = this.storageService.getCurrentUser()?.token;
1399
+ let token = user === undefined ? '' : user;
1400
+ let request = {
1401
+ token: token,
1402
+ };
1403
+ this.userService.getRoutesForRole(request).subscribe((response) => {
1404
+ this.routes = response.data;
1405
+ });
1406
+ }
1407
+ clickPage(event) {
1408
+ this.pageChangeEvent.emit(event);
1409
+ }
1410
+ logout() {
1411
+ this.storageService.logout();
1412
+ this.pageChangeEvent.emit('logout');
1413
+ }
1414
+ }
1415
+ SidenavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, deps: [{ token: UserService }, { token: StorageService }], target: i0.ɵɵFactoryTarget.Component });
1416
+ 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: `
1417
+ <mat-sidenav #sidenav mode="push" >
1418
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1419
+ <span style="font-size: 15px;">{{department}}</span>
1420
+ <span class="menu-icon-close"></span>
1421
+ </mat-toolbar>
1422
+
1423
+ <mat-nav-list *ngFor="let route of routes">
1424
+ <nav class="flex-container-menu">
1425
+ <ipt-aside-button
1426
+ [buttonActive]="this.setPage === route.page"
1427
+ [icon]="route.icon"
1428
+ [text]="route.text"
1429
+ (isClicked)="clickPage(route.page)"
1430
+ (click)="sidenav.toggle()"
1431
+ >
1432
+ </ipt-aside-button>
1433
+ </nav>
1434
+ </mat-nav-list>
1435
+ </mat-sidenav>
1436
+
1437
+ <mat-toolbar class="header">
1438
+ <div class="menu-container" (click)="sidenav.toggle()">
1439
+ <p>Menu</p>
1440
+ <div class="menu-icon"></div>
1441
+ </div>
1442
+
1443
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1444
+
1445
+ <div class="text-container">
1446
+ <span class="p1">{{ currentDay }}</span>
1447
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1448
+ Hey {{ userName }}, Good moorning!
1449
+ </span>
1450
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1451
+ Hey {{ userName }}, Good afternoon!
1452
+ </p>
1453
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1454
+ Hey {{ userName }}, Good evening!
1455
+ </p>
1456
+ </div>
1457
+
1458
+ <div class="logout-container" (click)="logout()">
1459
+ <p class="logout-button">Cerrar sesión</p>
1460
+ <div class="photo-logout"></div>
1461
+ </div>
1462
+ </mat-toolbar>
1463
+ `, 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: i3$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i5.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"] }] });
1464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SidenavComponent, decorators: [{
1465
+ type: Component,
1466
+ args: [{ selector: 'ipt-sidenav', template: `
1467
+ <mat-sidenav #sidenav mode="push" >
1468
+ <mat-toolbar color="primary" (click)="sidenav.toggle()">
1469
+ <span style="font-size: 15px;">{{department}}</span>
1470
+ <span class="menu-icon-close"></span>
1471
+ </mat-toolbar>
1472
+
1473
+ <mat-nav-list *ngFor="let route of routes">
1474
+ <nav class="flex-container-menu">
1475
+ <ipt-aside-button
1476
+ [buttonActive]="this.setPage === route.page"
1477
+ [icon]="route.icon"
1478
+ [text]="route.text"
1479
+ (isClicked)="clickPage(route.page)"
1480
+ (click)="sidenav.toggle()"
1481
+ >
1482
+ </ipt-aside-button>
1483
+ </nav>
1484
+ </mat-nav-list>
1485
+ </mat-sidenav>
1486
+
1487
+ <mat-toolbar class="header">
1488
+ <div class="menu-container" (click)="sidenav.toggle()">
1489
+ <p>Menu</p>
1490
+ <div class="menu-icon"></div>
1491
+ </div>
1492
+
1493
+ <img class="img-logo" src="http://qa.iptdev.com.co/assets/logos/IPT-logo.png" alt="" />
1494
+
1495
+ <div class="text-container">
1496
+ <span class="p1">{{ currentDay }}</span>
1497
+ <span *ngIf="hour >= 0 && hour < 12" class="p2">
1498
+ Hey {{ userName }}, Good moorning!
1499
+ </span>
1500
+ <p *ngIf="hour >= 12 && hour < 18" class="p2">
1501
+ Hey {{ userName }}, Good afternoon!
1502
+ </p>
1503
+ <p *ngIf="hour >= 18 && hour < 24" class="p2">
1504
+ Hey {{ userName }}, Good evening!
1505
+ </p>
1506
+ </div>
1507
+
1508
+ <div class="logout-container" (click)="logout()">
1509
+ <p class="logout-button">Cerrar sesión</p>
1510
+ <div class="photo-logout"></div>
1511
+ </div>
1512
+ </mat-toolbar>
1513
+ `, 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"] }]
1514
+ }], ctorParameters: function () { return [{ type: UserService }, { type: StorageService }]; }, propDecorators: { department: [{
1515
+ type: Input
1516
+ }], setPage: [{
1517
+ type: Input
1518
+ }], userName: [{
1519
+ type: Input
1520
+ }], pageChangeEvent: [{
1521
+ type: Output
1477
1522
  }] } });
1478
1523
 
1479
- class MaterialModule {
1480
- }
1481
- MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1482
- MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1483
- MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1485
- type: NgModule,
1486
- args: [{
1487
- exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1488
- }]
1524
+ class MaterialModule {
1525
+ }
1526
+ MaterialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1527
+ MaterialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1528
+ MaterialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, imports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule] });
1529
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MaterialModule, decorators: [{
1530
+ type: NgModule,
1531
+ args: [{
1532
+ exports: [MatSidenavModule, MatToolbarModule, MatIconModule, MatListModule, MatButtonModule],
1533
+ }]
1489
1534
  }] });
1490
1535
 
1491
- class ComponentsModule {
1492
- }
1493
- ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1494
- ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1495
- ButtonComponent,
1496
- CheckboxComponent,
1497
- CreateUserFormComponent,
1498
- DatalistComponent,
1499
- InputComponent,
1500
- LevelButtonComponent,
1501
- LevelTextComponent,
1502
- LoginFormComponent,
1503
- RadioComponent,
1504
- SelectComponent,
1505
- SidenavComponent,
1506
- TextLinkComponent], imports: [CommonModule,
1507
- // BrowserModule, // Para evitar doble carga de BrowserModule
1508
- FormsModule,
1509
- ReactiveFormsModule,
1510
- MaterialModule,
1511
- CurrencyMaskModule], exports: [AsideButtonComponent,
1512
- ButtonComponent,
1513
- CheckboxComponent,
1514
- CreateUserFormComponent,
1515
- DatalistComponent,
1516
- InputComponent,
1517
- LevelButtonComponent,
1518
- LevelTextComponent,
1519
- RadioComponent,
1520
- SelectComponent,
1521
- TextLinkComponent,
1522
- LoginFormComponent,
1523
- SidenavComponent,
1524
- CurrencyMaskModule] });
1525
- ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1526
- CurrencyPipe,
1527
- TitleCasePipe
1528
- ], imports: [[
1529
- CommonModule,
1530
- // BrowserModule, // Para evitar doble carga de BrowserModule
1531
- FormsModule,
1532
- ReactiveFormsModule,
1533
- MaterialModule,
1534
- CurrencyMaskModule
1535
- ], CurrencyMaskModule] });
1536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1537
- type: NgModule,
1538
- args: [{
1539
- declarations: [
1540
- AsideButtonComponent,
1541
- ButtonComponent,
1542
- CheckboxComponent,
1543
- CreateUserFormComponent,
1544
- DatalistComponent,
1545
- InputComponent,
1546
- LevelButtonComponent,
1547
- LevelTextComponent,
1548
- LoginFormComponent,
1549
- RadioComponent,
1550
- SelectComponent,
1551
- SidenavComponent,
1552
- TextLinkComponent,
1553
- ],
1554
- imports: [
1555
- CommonModule,
1556
- // BrowserModule, // Para evitar doble carga de BrowserModule
1557
- FormsModule,
1558
- ReactiveFormsModule,
1559
- MaterialModule,
1560
- CurrencyMaskModule
1561
- ],
1562
- exports: [
1563
- AsideButtonComponent,
1564
- ButtonComponent,
1565
- CheckboxComponent,
1566
- CreateUserFormComponent,
1567
- DatalistComponent,
1568
- InputComponent,
1569
- LevelButtonComponent,
1570
- LevelTextComponent,
1571
- RadioComponent,
1572
- SelectComponent,
1573
- TextLinkComponent,
1574
- LoginFormComponent,
1575
- SidenavComponent,
1576
- CurrencyMaskModule
1577
- ],
1578
- providers: [
1579
- CurrencyPipe,
1580
- TitleCasePipe
1581
- ]
1582
- }]
1536
+ class ComponentsModule {
1537
+ }
1538
+ ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1539
+ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, declarations: [AsideButtonComponent,
1540
+ ButtonComponent,
1541
+ CheckboxComponent,
1542
+ CreateUserFormComponent,
1543
+ DatalistComponent,
1544
+ InputComponent,
1545
+ LevelButtonComponent,
1546
+ LevelTextComponent,
1547
+ LoginFormComponent,
1548
+ LoaderComponent,
1549
+ RadioComponent,
1550
+ SelectComponent,
1551
+ SidenavComponent,
1552
+ TextLinkComponent], imports: [CommonModule,
1553
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1554
+ FormsModule,
1555
+ ReactiveFormsModule,
1556
+ MaterialModule,
1557
+ CurrencyMaskModule], exports: [AsideButtonComponent,
1558
+ ButtonComponent,
1559
+ CheckboxComponent,
1560
+ CreateUserFormComponent,
1561
+ DatalistComponent,
1562
+ InputComponent,
1563
+ LevelButtonComponent,
1564
+ LevelTextComponent,
1565
+ LoaderComponent,
1566
+ RadioComponent,
1567
+ SelectComponent,
1568
+ TextLinkComponent,
1569
+ LoginFormComponent,
1570
+ SidenavComponent,
1571
+ CurrencyMaskModule] });
1572
+ ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1573
+ CurrencyPipe,
1574
+ TitleCasePipe
1575
+ ], imports: [[
1576
+ CommonModule,
1577
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1578
+ FormsModule,
1579
+ ReactiveFormsModule,
1580
+ MaterialModule,
1581
+ CurrencyMaskModule
1582
+ ], CurrencyMaskModule] });
1583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
1584
+ type: NgModule,
1585
+ args: [{
1586
+ declarations: [
1587
+ AsideButtonComponent,
1588
+ ButtonComponent,
1589
+ CheckboxComponent,
1590
+ CreateUserFormComponent,
1591
+ DatalistComponent,
1592
+ InputComponent,
1593
+ LevelButtonComponent,
1594
+ LevelTextComponent,
1595
+ LoginFormComponent,
1596
+ LoaderComponent,
1597
+ RadioComponent,
1598
+ SelectComponent,
1599
+ SidenavComponent,
1600
+ TextLinkComponent,
1601
+ ],
1602
+ imports: [
1603
+ CommonModule,
1604
+ // BrowserModule, // Para evitar doble carga de BrowserModule
1605
+ FormsModule,
1606
+ ReactiveFormsModule,
1607
+ MaterialModule,
1608
+ CurrencyMaskModule
1609
+ ],
1610
+ exports: [
1611
+ AsideButtonComponent,
1612
+ ButtonComponent,
1613
+ CheckboxComponent,
1614
+ CreateUserFormComponent,
1615
+ DatalistComponent,
1616
+ InputComponent,
1617
+ LevelButtonComponent,
1618
+ LevelTextComponent,
1619
+ LoaderComponent,
1620
+ RadioComponent,
1621
+ SelectComponent,
1622
+ TextLinkComponent,
1623
+ LoginFormComponent,
1624
+ SidenavComponent,
1625
+ CurrencyMaskModule
1626
+ ],
1627
+ providers: [
1628
+ CurrencyPipe,
1629
+ TitleCasePipe
1630
+ ]
1631
+ }]
1583
1632
  }] });
1584
1633
 
1585
- class CourseService {
1586
- constructor(http) {
1587
- this.http = http;
1588
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1589
- }
1590
- createCourse(course) {
1591
- let serviceUrl = this.SERVICE_URL + 'post/course';
1592
- this.generateRequestParams(course);
1593
- return this.http.post(serviceUrl, this.httpOptions);
1594
- }
1595
- editCourse(course) {
1596
- let serviceUrl = this.SERVICE_URL + 'put/course';
1597
- this.generateRequestParams(course);
1598
- return this.http.put(serviceUrl, this.httpOptions);
1599
- }
1600
- getAllCourses(params) {
1601
- let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1602
- this.generateRequestParams(params);
1603
- return this.http.post(serviceUrl, this.httpOptions);
1604
- }
1605
- getCoursesByLevel(params) {
1606
- let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1607
- this.generateRequestParams(params);
1608
- return this.http.post(serviceUrl, this.httpOptions);
1609
- }
1610
- getAvailibleCourses(availibleCourses) {
1611
- let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1612
- this.generateRequestParams(availibleCourses);
1613
- return this.http.post(serviceUrl, this.httpOptions);
1614
- }
1615
- getCourseByCode(params) {
1616
- let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1617
- this.generateRequestParams(params);
1618
- return this.http.post(serviceUrl, this.httpOptions);
1619
- }
1620
- getCoursesByTeacher(params) {
1621
- let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1622
- this.generateRequestParams(params);
1623
- return this.http.post(serviceUrl, this.httpOptions);
1624
- }
1625
- getFilteredCoursesByTeacher(params) {
1626
- let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1627
- this.generateRequestParams(params);
1628
- return this.http.post(serviceUrl, this.httpOptions);
1629
- }
1630
- getCoursesByStartDate(params) {
1631
- let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1632
- this.generateRequestParams(params);
1633
- return this.http.post(serviceUrl, this.httpOptions);
1634
- }
1635
- numberClassByCode(idCode) {
1636
- let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1637
- return this.http.get(serviceUrl);
1638
- }
1639
- // construye los headers y params
1640
- generateRequestParams(param) {
1641
- this.httpOptions = {
1642
- header: new HttpHeaders(),
1643
- params: param,
1644
- };
1645
- }
1646
- }
1647
- 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 });
1648
- CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1649
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1650
- type: Injectable,
1651
- args: [{
1652
- providedIn: 'root',
1653
- }]
1634
+ class CourseService {
1635
+ constructor(http) {
1636
+ this.http = http;
1637
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
1638
+ }
1639
+ createCourse(course) {
1640
+ let serviceUrl = this.SERVICE_URL + 'post/course';
1641
+ this.generateRequestParams(course);
1642
+ return this.http.post(serviceUrl, this.httpOptions);
1643
+ }
1644
+ editCourse(course) {
1645
+ let serviceUrl = this.SERVICE_URL + 'put/course';
1646
+ this.generateRequestParams(course);
1647
+ return this.http.put(serviceUrl, this.httpOptions);
1648
+ }
1649
+ getAllCourses(params) {
1650
+ let serviceUrl = this.SERVICE_URL + 'post/all/courses';
1651
+ this.generateRequestParams(params);
1652
+ return this.http.post(serviceUrl, this.httpOptions);
1653
+ }
1654
+ getCoursesByLevel(params) {
1655
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/level';
1656
+ this.generateRequestParams(params);
1657
+ return this.http.post(serviceUrl, this.httpOptions);
1658
+ }
1659
+ getAvailibleCourses(availibleCourses) {
1660
+ let serviceUrl = this.SERVICE_URL + 'post/course/for/cod';
1661
+ this.generateRequestParams(availibleCourses);
1662
+ return this.http.post(serviceUrl, this.httpOptions);
1663
+ }
1664
+ getCourseByCode(params) {
1665
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/code';
1666
+ this.generateRequestParams(params);
1667
+ return this.http.post(serviceUrl, this.httpOptions);
1668
+ }
1669
+ getCoursesByTeacher(params) {
1670
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/teacher';
1671
+ this.generateRequestParams(params);
1672
+ return this.http.post(serviceUrl, this.httpOptions);
1673
+ }
1674
+ getFilteredCoursesByTeacher(params) {
1675
+ let serviceUrl = this.SERVICE_URL + 'post/course/filtered/by/teacher';
1676
+ this.generateRequestParams(params);
1677
+ return this.http.post(serviceUrl, this.httpOptions);
1678
+ }
1679
+ getCoursesByStartDate(params) {
1680
+ let serviceUrl = this.SERVICE_URL + 'post/course/by/startdate';
1681
+ this.generateRequestParams(params);
1682
+ return this.http.post(serviceUrl, this.httpOptions);
1683
+ }
1684
+ numberClassByCode(idCode) {
1685
+ let serviceUrl = this.SERVICE_URL + 'get/coursetype/numclass/by/code/' + idCode;
1686
+ return this.http.get(serviceUrl);
1687
+ }
1688
+ // construye los headers y params
1689
+ generateRequestParams(param) {
1690
+ this.httpOptions = {
1691
+ header: new HttpHeaders(),
1692
+ params: param,
1693
+ };
1694
+ }
1695
+ }
1696
+ 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 });
1697
+ CourseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, providedIn: 'root' });
1698
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CourseService, decorators: [{
1699
+ type: Injectable,
1700
+ args: [{
1701
+ providedIn: 'root',
1702
+ }]
1654
1703
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1655
1704
 
1656
- class RedirectGuard {
1657
- constructor(router) {
1658
- this.router = router;
1659
- }
1660
- canActivate(route, state) {
1661
- window.location.href = route.data['externalUrl'];
1662
- return true;
1663
- }
1664
- }
1665
- 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 });
1666
- RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1667
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1668
- type: Injectable
1705
+ class RedirectGuard {
1706
+ constructor(router) {
1707
+ this.router = router;
1708
+ }
1709
+ canActivate(route, state) {
1710
+ window.location.href = route.data['externalUrl'];
1711
+ return true;
1712
+ }
1713
+ }
1714
+ 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 });
1715
+ RedirectGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard });
1716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: RedirectGuard, decorators: [{
1717
+ type: Injectable
1669
1718
  }], ctorParameters: function () { return [{ type: i1$3.Router }]; } });
1670
1719
 
1671
- class SwitchService {
1672
- constructor() {
1673
- this.$modal = new EventEmitter();
1674
- }
1675
- }
1676
- SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1677
- SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1679
- type: Injectable,
1680
- args: [{
1681
- providedIn: 'root'
1682
- }]
1720
+ class SwitchService {
1721
+ constructor() {
1722
+ this.$modal = new EventEmitter();
1723
+ }
1724
+ }
1725
+ SwitchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1726
+ SwitchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, providedIn: 'root' });
1727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: SwitchService, decorators: [{
1728
+ type: Injectable,
1729
+ args: [{
1730
+ providedIn: 'root'
1731
+ }]
1683
1732
  }], ctorParameters: function () { return []; } });
1684
1733
 
1685
- class TestService {
1686
- constructor(http) {
1687
- this.http = http;
1688
- this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1689
- }
1690
- // ---------------------- EXÁMENES ---------------------- //
1691
- createExam(exam) {
1692
- let serviceUrl = this.SERVICE_URL + 'post/exam';
1693
- this.generateRequestParams(exam);
1694
- return this.http.post(serviceUrl, this.httpOptions);
1695
- }
1696
- getAllExams(params) {
1697
- let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1698
- this.generateRequestParams(params);
1699
- return this.http.post(serviceUrl, this.httpOptions);
1700
- }
1701
- updateExam(params) {
1702
- let serviceUrl = this.SERVICE_URL + 'update/exam';
1703
- this.generateRequestParams(params);
1704
- return this.http.put(serviceUrl, this.httpOptions);
1705
- }
1706
- updateExamStatus(params) {
1707
- let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1708
- this.generateRequestParams(params);
1709
- return this.http.put(serviceUrl, this.httpOptions);
1710
- }
1711
- copyExam(params) {
1712
- let serviceUrl = this.SERVICE_URL + 'copy/exam';
1713
- this.generateRequestParams(params);
1714
- return this.http.put(serviceUrl, this.httpOptions);
1715
- }
1716
- getExamByCode(code) {
1717
- let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1718
- return this.http.get(serviceUrl);
1719
- }
1720
- getExamByAuthor(code) {
1721
- let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1722
- return this.http.get(serviceUrl);
1723
- }
1724
- // ---------------------- SECCIONES ---------------------- //
1725
- createSectionWithAll(params) {
1726
- let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1727
- this.generateRequestParams(params);
1728
- return this.http.post(serviceUrl, this.httpOptions);
1729
- }
1730
- createSection(params) {
1731
- let serviceUrl = this.SERVICE_URL + 'post/section';
1732
- this.generateRequestParams(params);
1733
- return this.http.post(serviceUrl, this.httpOptions);
1734
- }
1735
- getAllSections(params) {
1736
- let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1737
- this.generateRequestParams(params);
1738
- return this.http.post(serviceUrl, this.httpOptions);
1739
- }
1740
- updateSection(params) {
1741
- let serviceUrl = this.SERVICE_URL + 'update/section';
1742
- this.generateRequestParams(params);
1743
- return this.http.put(serviceUrl, this.httpOptions);
1744
- }
1745
- updateSectionMedia(params) {
1746
- let serviceUrl = this.SERVICE_URL + 'post/section/media';
1747
- this.generateRequestParams(params);
1748
- return this.http.post(serviceUrl, this.httpOptions);
1749
- }
1750
- updateSectionState(params) {
1751
- let serviceUrl = this.SERVICE_URL + 'update/section/state';
1752
- this.generateRequestParams(params);
1753
- return this.http.put(serviceUrl, this.httpOptions);
1754
- }
1755
- getSectionsByExam(code) {
1756
- let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1757
- return this.http.get(serviceUrl);
1758
- }
1759
- // ---------------------- PREGUNTAS ---------------------- //
1760
- createQuestion(params) {
1761
- let serviceUrl = this.SERVICE_URL + 'post/question';
1762
- this.generateRequestParams(params);
1763
- return this.http.post(serviceUrl, this.httpOptions);
1764
- }
1765
- updateQuestion(params) {
1766
- let serviceUrl = this.SERVICE_URL + 'update/question';
1767
- this.generateRequestParams(params);
1768
- return this.http.put(serviceUrl, this.httpOptions);
1769
- }
1770
- getQuestionsBySections(params) {
1771
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1772
- this.generateRequestParams(params);
1773
- return this.http.post(serviceUrl, this.httpOptions);
1774
- }
1775
- getQuestionsBySection(params) {
1776
- let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1777
- this.generateRequestParams(params);
1778
- return this.http.post(serviceUrl, this.httpOptions);
1779
- }
1780
- // ---------------------- RESPUESTAS ---------------------- //
1781
- createAnswer(params) {
1782
- let serviceUrl = this.SERVICE_URL + 'post/answer';
1783
- this.generateRequestParams(params);
1784
- return this.http.post(serviceUrl, this.httpOptions);
1785
- }
1786
- updateAnswer(params) {
1787
- let serviceUrl = this.SERVICE_URL + 'update/answer';
1788
- this.generateRequestParams(params);
1789
- return this.http.put(serviceUrl, this.httpOptions);
1790
- }
1791
- getAnswersByQuestion(code) {
1792
- let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1793
- return this.http.get(serviceUrl, this.httpOptions);
1794
- }
1795
- updateQuestionState(params) {
1796
- let serviceUrl = this.SERVICE_URL + 'update/question/state';
1797
- this.generateRequestParams(params);
1798
- return this.http.put(serviceUrl, this.httpOptions);
1799
- }
1800
- // construye los headers y params
1801
- generateRequestParams(param) {
1802
- this.httpOptions = {
1803
- header: new HttpHeaders(),
1804
- params: param,
1805
- };
1806
- }
1807
- }
1808
- 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 });
1809
- TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1810
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1811
- type: Injectable,
1812
- args: [{
1813
- providedIn: 'root',
1814
- }]
1734
+ class TestService {
1735
+ constructor(http) {
1736
+ this.http = http;
1737
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/test/api/';
1738
+ }
1739
+ // ---------------------- EXÁMENES ---------------------- //
1740
+ createExam(exam) {
1741
+ let serviceUrl = this.SERVICE_URL + 'post/exam';
1742
+ this.generateRequestParams(exam);
1743
+ return this.http.post(serviceUrl, this.httpOptions);
1744
+ }
1745
+ getAllExams(params) {
1746
+ let serviceUrl = this.SERVICE_URL + 'post/all/exam';
1747
+ this.generateRequestParams(params);
1748
+ return this.http.post(serviceUrl, this.httpOptions);
1749
+ }
1750
+ updateExam(params) {
1751
+ let serviceUrl = this.SERVICE_URL + 'update/exam';
1752
+ this.generateRequestParams(params);
1753
+ return this.http.put(serviceUrl, this.httpOptions);
1754
+ }
1755
+ updateExamStatus(params) {
1756
+ let serviceUrl = this.SERVICE_URL + 'update/exam/status';
1757
+ this.generateRequestParams(params);
1758
+ return this.http.put(serviceUrl, this.httpOptions);
1759
+ }
1760
+ copyExam(params) {
1761
+ let serviceUrl = this.SERVICE_URL + 'copy/exam';
1762
+ this.generateRequestParams(params);
1763
+ return this.http.put(serviceUrl, this.httpOptions);
1764
+ }
1765
+ getExamByCode(code) {
1766
+ let serviceUrl = this.SERVICE_URL + 'get/exam/by/code/' + code;
1767
+ return this.http.get(serviceUrl);
1768
+ }
1769
+ getExamByAuthor(code) {
1770
+ let serviceUrl = this.SERVICE_URL + 'get/exams/by/author/' + code;
1771
+ return this.http.get(serviceUrl);
1772
+ }
1773
+ // ---------------------- SECCIONES ---------------------- //
1774
+ createSectionWithAll(params) {
1775
+ let serviceUrl = this.SERVICE_URL + 'post/section/with/all';
1776
+ this.generateRequestParams(params);
1777
+ return this.http.post(serviceUrl, this.httpOptions);
1778
+ }
1779
+ createSection(params) {
1780
+ let serviceUrl = this.SERVICE_URL + 'post/section';
1781
+ this.generateRequestParams(params);
1782
+ return this.http.post(serviceUrl, this.httpOptions);
1783
+ }
1784
+ getAllSections(params) {
1785
+ let serviceUrl = this.SERVICE_URL + 'post/all/sections';
1786
+ this.generateRequestParams(params);
1787
+ return this.http.post(serviceUrl, this.httpOptions);
1788
+ }
1789
+ updateSection(params) {
1790
+ let serviceUrl = this.SERVICE_URL + 'update/section';
1791
+ this.generateRequestParams(params);
1792
+ return this.http.put(serviceUrl, this.httpOptions);
1793
+ }
1794
+ updateSectionMedia(params) {
1795
+ let serviceUrl = this.SERVICE_URL + 'post/section/media';
1796
+ this.generateRequestParams(params);
1797
+ return this.http.post(serviceUrl, this.httpOptions);
1798
+ }
1799
+ updateSectionState(params) {
1800
+ let serviceUrl = this.SERVICE_URL + 'update/section/state';
1801
+ this.generateRequestParams(params);
1802
+ return this.http.put(serviceUrl, this.httpOptions);
1803
+ }
1804
+ getSectionsByExam(code) {
1805
+ let serviceUrl = this.SERVICE_URL + 'get/sections/by/exam/' + code;
1806
+ return this.http.get(serviceUrl);
1807
+ }
1808
+ // ---------------------- PREGUNTAS ---------------------- //
1809
+ createQuestion(params) {
1810
+ let serviceUrl = this.SERVICE_URL + 'post/question';
1811
+ this.generateRequestParams(params);
1812
+ return this.http.post(serviceUrl, this.httpOptions);
1813
+ }
1814
+ updateQuestion(params) {
1815
+ let serviceUrl = this.SERVICE_URL + 'update/question';
1816
+ this.generateRequestParams(params);
1817
+ return this.http.put(serviceUrl, this.httpOptions);
1818
+ }
1819
+ getQuestionsBySections(params) {
1820
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/sections';
1821
+ this.generateRequestParams(params);
1822
+ return this.http.post(serviceUrl, this.httpOptions);
1823
+ }
1824
+ getQuestionsBySection(params) {
1825
+ let serviceUrl = this.SERVICE_URL + 'get/questions/by/section';
1826
+ this.generateRequestParams(params);
1827
+ return this.http.post(serviceUrl, this.httpOptions);
1828
+ }
1829
+ // ---------------------- RESPUESTAS ---------------------- //
1830
+ createAnswer(params) {
1831
+ let serviceUrl = this.SERVICE_URL + 'post/answer';
1832
+ this.generateRequestParams(params);
1833
+ return this.http.post(serviceUrl, this.httpOptions);
1834
+ }
1835
+ updateAnswer(params) {
1836
+ let serviceUrl = this.SERVICE_URL + 'update/answer';
1837
+ this.generateRequestParams(params);
1838
+ return this.http.put(serviceUrl, this.httpOptions);
1839
+ }
1840
+ getAnswersByQuestion(code) {
1841
+ let serviceUrl = this.SERVICE_URL + 'get/answers/by/question/' + code;
1842
+ return this.http.get(serviceUrl, this.httpOptions);
1843
+ }
1844
+ updateQuestionState(params) {
1845
+ let serviceUrl = this.SERVICE_URL + 'update/question/state';
1846
+ this.generateRequestParams(params);
1847
+ return this.http.put(serviceUrl, this.httpOptions);
1848
+ }
1849
+ // construye los headers y params
1850
+ generateRequestParams(param) {
1851
+ this.httpOptions = {
1852
+ header: new HttpHeaders(),
1853
+ params: param,
1854
+ };
1855
+ }
1856
+ }
1857
+ 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 });
1858
+ TestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, providedIn: 'root' });
1859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: TestService, decorators: [{
1860
+ type: Injectable,
1861
+ args: [{
1862
+ providedIn: 'root',
1863
+ }]
1815
1864
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1816
1865
 
1817
- class MarketingService {
1818
- constructor(http) {
1819
- this.http = http;
1820
- this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1821
- }
1822
- getStrategyByUserCommercial(user) {
1823
- let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1824
- this.generateRequestParams(user);
1825
- return this.http.post(serviceUrl, this.httpOptions);
1826
- }
1827
- getObservationsContact(codeContact) {
1828
- let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1829
- return this.http.get(serviceUrl);
1830
- }
1831
- createObservations(params) {
1832
- let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1833
- this.generateRequestParams(params);
1834
- return this.http.post(serviceUrl, this.httpOptions);
1835
- }
1836
- getUserStatistics(userToken) {
1837
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1838
- this.generateRequestParams(userToken);
1839
- return this.http.post(serviceUrl, this.httpOptions);
1840
- }
1841
- getTopAdviser() {
1842
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1843
- return this.http.get(serviceUrl, this.httpOptions);
1844
- }
1845
- getMovementStatus() {
1846
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1847
- return this.http.get(serviceUrl, this.httpOptions);
1848
- }
1849
- getgroupSignupStatus() {
1850
- let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1851
- return this.http.get(serviceUrl, this.httpOptions);
1852
- }
1853
- //Construye los headers y paramns
1854
- generateRequestParams(param) {
1855
- this.httpOptions = {
1856
- header: new HttpHeaders(),
1857
- params: param,
1858
- };
1859
- }
1860
- }
1861
- 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 });
1862
- MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1864
- type: Injectable,
1865
- args: [{
1866
- providedIn: 'root'
1867
- }]
1866
+ class MarketingService {
1867
+ constructor(http) {
1868
+ this.http = http;
1869
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/commercial/api/';
1870
+ }
1871
+ getStrategyByUserCommercial(user) {
1872
+ let serviceUrl = this.SERVICE_URL + 'post/contact/strategy/byaviser';
1873
+ this.generateRequestParams(user);
1874
+ return this.http.post(serviceUrl, this.httpOptions);
1875
+ }
1876
+ getObservationsContact(codeContact) {
1877
+ let serviceUrl = this.SERVICE_URL + 'get/contact/observation/strategy/bycode/' + codeContact;
1878
+ return this.http.get(serviceUrl);
1879
+ }
1880
+ createObservations(params) {
1881
+ let serviceUrl = this.SERVICE_URL + 'post/contact/observation/create';
1882
+ this.generateRequestParams(params);
1883
+ return this.http.post(serviceUrl, this.httpOptions);
1884
+ }
1885
+ getUserStatistics(userToken) {
1886
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/statistics';
1887
+ this.generateRequestParams(userToken);
1888
+ return this.http.post(serviceUrl, this.httpOptions);
1889
+ }
1890
+ getTopAdviser() {
1891
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/topadviser';
1892
+ return this.http.get(serviceUrl, this.httpOptions);
1893
+ }
1894
+ getMovementStatus() {
1895
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/movements/status';
1896
+ return this.http.get(serviceUrl, this.httpOptions);
1897
+ }
1898
+ getgroupSignupStatus() {
1899
+ let serviceUrl = this.SERVICE_URL + 'get/contact/strategy/group/signup';
1900
+ return this.http.get(serviceUrl, this.httpOptions);
1901
+ }
1902
+ //Construye los headers y paramns
1903
+ generateRequestParams(param) {
1904
+ this.httpOptions = {
1905
+ header: new HttpHeaders(),
1906
+ params: param,
1907
+ };
1908
+ }
1909
+ }
1910
+ 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 });
1911
+ MarketingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, providedIn: 'root' });
1912
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MarketingService, decorators: [{
1913
+ type: Injectable,
1914
+ args: [{
1915
+ providedIn: 'root'
1916
+ }]
1868
1917
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1869
1918
 
1870
- class BudgetService {
1871
- constructor(http) {
1872
- this.http = http;
1873
- this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1874
- }
1875
- getAllDiscount(user) {
1876
- let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1877
- this.generateRequestParams(user);
1878
- return this.http.post(serviceUrl, this.httpOptions);
1879
- }
1880
- createDiscount(params) {
1881
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1882
- this.generateRequestParams(params);
1883
- return this.http.post(serviceUrl, this.httpOptions);
1884
- }
1885
- updateDiscount(params) {
1886
- let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1887
- this.generateRequestParams(params);
1888
- return this.http.post(serviceUrl, this.httpOptions);
1889
- }
1890
- //Construye los headers y paramns
1891
- generateRequestParams(param) {
1892
- this.httpOptions = {
1893
- header: new HttpHeaders(),
1894
- params: param,
1895
- };
1896
- }
1897
- }
1898
- 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 });
1899
- BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1900
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1901
- type: Injectable,
1902
- args: [{
1903
- providedIn: 'root'
1904
- }]
1919
+ class BudgetService {
1920
+ constructor(http) {
1921
+ this.http = http;
1922
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/budget/api/';
1923
+ }
1924
+ getAllDiscount(user) {
1925
+ let serviceUrl = this.SERVICE_URL + 'post/discounts/coupon/all';
1926
+ this.generateRequestParams(user);
1927
+ return this.http.post(serviceUrl, this.httpOptions);
1928
+ }
1929
+ createDiscount(params) {
1930
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/create';
1931
+ this.generateRequestParams(params);
1932
+ return this.http.post(serviceUrl, this.httpOptions);
1933
+ }
1934
+ updateDiscount(params) {
1935
+ let serviceUrl = this.SERVICE_URL + 'post/discount/coupon/update';
1936
+ this.generateRequestParams(params);
1937
+ return this.http.post(serviceUrl, this.httpOptions);
1938
+ }
1939
+ //Construye los headers y paramns
1940
+ generateRequestParams(param) {
1941
+ this.httpOptions = {
1942
+ header: new HttpHeaders(),
1943
+ params: param,
1944
+ };
1945
+ }
1946
+ }
1947
+ 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 });
1948
+ BudgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, providedIn: 'root' });
1949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: BudgetService, decorators: [{
1950
+ type: Injectable,
1951
+ args: [{
1952
+ providedIn: 'root'
1953
+ }]
1905
1954
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1906
1955
 
1907
- class CoreModule {
1908
- }
1909
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1910
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1911
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1912
- ParameterService,
1913
- CourseService,
1914
- StorageService,
1915
- UserService,
1916
- SwitchService,
1917
- RedirectGuard,
1918
- BaseService,
1919
- TestService,
1920
- MarketingService,
1921
- BudgetService
1922
- ] });
1923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1924
- type: NgModule,
1925
- args: [{
1926
- providers: [
1927
- ParameterService,
1928
- CourseService,
1929
- StorageService,
1930
- UserService,
1931
- SwitchService,
1932
- RedirectGuard,
1933
- BaseService,
1934
- TestService,
1935
- MarketingService,
1936
- BudgetService
1937
- ]
1938
- }]
1956
+ class CoreModule {
1957
+ }
1958
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1959
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule });
1960
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, providers: [
1961
+ ParameterService,
1962
+ CourseService,
1963
+ StorageService,
1964
+ UserService,
1965
+ SwitchService,
1966
+ RedirectGuard,
1967
+ BaseService,
1968
+ TestService,
1969
+ MarketingService,
1970
+ BudgetService
1971
+ ] });
1972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CoreModule, decorators: [{
1973
+ type: NgModule,
1974
+ args: [{
1975
+ providers: [
1976
+ ParameterService,
1977
+ CourseService,
1978
+ StorageService,
1979
+ UserService,
1980
+ SwitchService,
1981
+ RedirectGuard,
1982
+ BaseService,
1983
+ TestService,
1984
+ MarketingService,
1985
+ BudgetService
1986
+ ]
1987
+ }]
1939
1988
  }] });
1940
1989
 
1941
- class DesignSystemModule {
1942
- }
1943
- DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1944
- DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1945
- CoreModule,
1946
- CurrencyMaskModule], exports: [ComponentsModule,
1947
- CoreModule,
1948
- CurrencyMaskModule] });
1949
- DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1950
- ComponentsModule,
1951
- CoreModule,
1952
- CurrencyMaskModule
1953
- ], ComponentsModule,
1954
- CoreModule,
1955
- CurrencyMaskModule] });
1956
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
1957
- type: NgModule,
1958
- args: [{
1959
- imports: [
1960
- ComponentsModule,
1961
- CoreModule,
1962
- CurrencyMaskModule
1963
- ],
1964
- exports: [
1965
- ComponentsModule,
1966
- CoreModule,
1967
- CurrencyMaskModule
1968
- ],
1969
- }]
1990
+ class DesignSystemModule {
1991
+ }
1992
+ DesignSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1993
+ DesignSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [ComponentsModule,
1994
+ CoreModule,
1995
+ CurrencyMaskModule], exports: [ComponentsModule,
1996
+ CoreModule,
1997
+ CurrencyMaskModule] });
1998
+ DesignSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, imports: [[
1999
+ ComponentsModule,
2000
+ CoreModule,
2001
+ CurrencyMaskModule
2002
+ ], ComponentsModule,
2003
+ CoreModule,
2004
+ CurrencyMaskModule] });
2005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: DesignSystemModule, decorators: [{
2006
+ type: NgModule,
2007
+ args: [{
2008
+ imports: [
2009
+ ComponentsModule,
2010
+ CoreModule,
2011
+ CurrencyMaskModule
2012
+ ],
2013
+ exports: [
2014
+ ComponentsModule,
2015
+ CoreModule,
2016
+ CurrencyMaskModule
2017
+ ],
2018
+ }]
1970
2019
  }] });
1971
2020
 
1972
- class AttendanceService {
1973
- constructor(http) {
1974
- this.http = http;
1975
- }
1976
- }
1977
- 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 });
1978
- AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
1980
- type: Injectable,
1981
- args: [{
1982
- providedIn: 'root'
1983
- }]
2021
+ class AttendanceService {
2022
+ constructor(http) {
2023
+ this.http = http;
2024
+ }
2025
+ }
2026
+ 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 });
2027
+ AttendanceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, providedIn: 'root' });
2028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: AttendanceService, decorators: [{
2029
+ type: Injectable,
2030
+ args: [{
2031
+ providedIn: 'root'
2032
+ }]
1984
2033
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
1985
2034
 
1986
- class CalendarService {
1987
- constructor(http) {
1988
- this.http = http;
1989
- this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
1990
- }
1991
- getEventByIdCalendar(idCalendar) {
1992
- let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
1993
- return this.http.get(serviceUrl);
1994
- }
1995
- postEventByDayTime(params) {
1996
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
1997
- this.generateRequestParams(params);
1998
- return this.http.post(serviceUrl, this.httpOptions);
1999
- }
2000
- postEventByCourse(params) {
2001
- let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/course';
2002
- this.generateRequestParams(params);
2003
- return this.http.post(serviceUrl, this.httpOptions);
2004
- }
2005
- postAddNewEvent(params) {
2006
- let serviceUrl = this.SERVICE_URL + 'post/add/event/calendar/by/daytime';
2007
- this.generateRequestParams(params);
2008
- return this.http.post(serviceUrl, this.httpOptions);
2009
- }
2010
- postCreateQueryEvent(params) {
2011
- let serviceUrl = this.SERVICE_URL + 'post/event/create/query';
2012
- this.generateRequestParams(params);
2013
- return this.http.post(serviceUrl, this.httpOptions);
2014
- }
2015
- generateRequestParams(param) {
2016
- this.httpOptions = {
2017
- header: new HttpHeaders(),
2018
- params: param,
2019
- };
2020
- }
2021
- }
2022
- 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 });
2023
- CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
2024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
2025
- type: Injectable,
2026
- args: [{
2027
- providedIn: 'root',
2028
- }]
2035
+ class CalendarService {
2036
+ constructor(http) {
2037
+ this.http = http;
2038
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/calendar/api/';
2039
+ }
2040
+ getEventByIdCalendar(idCalendar) {
2041
+ let serviceUrl = this.SERVICE_URL + 'get/event/calendar/idcalendar/all/' + idCalendar;
2042
+ return this.http.get(serviceUrl);
2043
+ }
2044
+ postEventByDayTime(params) {
2045
+ let serviceUrl = this.SERVICE_URL + 'post/event/calendar/idcalendar/by/datetime';
2046
+ this.generateRequestParams(params);
2047
+ return this.http.post(serviceUrl, this.httpOptions);
2048
+ }
2049
+ generateRequestParams(param) {
2050
+ this.httpOptions = {
2051
+ header: new HttpHeaders(),
2052
+ params: param,
2053
+ };
2054
+ }
2055
+ }
2056
+ 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 });
2057
+ CalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
2058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: CalendarService, decorators: [{
2059
+ type: Injectable,
2060
+ args: [{
2061
+ providedIn: 'root',
2062
+ }]
2029
2063
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2030
2064
 
2031
- class NotesService {
2032
- constructor(http) {
2033
- this.http = http;
2034
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2035
- }
2036
- getNotesByGroup(params) {
2037
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2038
- this.generateRequestParams(params);
2039
- return this.http.post(serviceUrl, this.httpOptions);
2040
- }
2041
- getNotesByStudent(params) {
2042
- let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2043
- this.generateRequestParams(params);
2044
- return this.http.post(serviceUrl, this.httpOptions);
2045
- }
2046
- createNewNote(params) {
2047
- let serviceUrl = this.SERVICE_URL + 'post/create/note';
2048
- this.generateRequestParams(params);
2049
- return this.http.post(serviceUrl, this.httpOptions);
2050
- }
2051
- updateStudentNote(params) {
2052
- let serviceUrl = this.SERVICE_URL + 'update/note';
2053
- this.generateRequestParams(params);
2054
- return this.http.put(serviceUrl, this.httpOptions);
2055
- }
2056
- calculateFinalNote(params) {
2057
- let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2058
- this.generateRequestParams(params);
2059
- return this.http.post(serviceUrl, this.httpOptions);
2060
- }
2061
- generateRequestParams(param) {
2062
- this.httpOptions = {
2063
- header: new HttpHeaders(),
2064
- params: param,
2065
- };
2066
- }
2067
- }
2068
- 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 });
2069
- NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2070
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2071
- type: Injectable,
2072
- args: [{
2073
- providedIn: 'root'
2074
- }]
2065
+ class NotesService {
2066
+ constructor(http) {
2067
+ this.http = http;
2068
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2069
+ }
2070
+ getNotesByGroup(params) {
2071
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/course';
2072
+ this.generateRequestParams(params);
2073
+ return this.http.post(serviceUrl, this.httpOptions);
2074
+ }
2075
+ getNotesByStudent(params) {
2076
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/notes/by/student';
2077
+ this.generateRequestParams(params);
2078
+ return this.http.post(serviceUrl, this.httpOptions);
2079
+ }
2080
+ createNewNote(params) {
2081
+ let serviceUrl = this.SERVICE_URL + 'post/create/note';
2082
+ this.generateRequestParams(params);
2083
+ return this.http.post(serviceUrl, this.httpOptions);
2084
+ }
2085
+ updateStudentNote(params) {
2086
+ let serviceUrl = this.SERVICE_URL + 'update/note';
2087
+ this.generateRequestParams(params);
2088
+ return this.http.put(serviceUrl, this.httpOptions);
2089
+ }
2090
+ calculateFinalNote(params) {
2091
+ let serviceUrl = this.SERVICE_URL + 'post/calculate/final/note';
2092
+ this.generateRequestParams(params);
2093
+ return this.http.post(serviceUrl, this.httpOptions);
2094
+ }
2095
+ generateRequestParams(param) {
2096
+ this.httpOptions = {
2097
+ header: new HttpHeaders(),
2098
+ params: param,
2099
+ };
2100
+ }
2101
+ }
2102
+ 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 });
2103
+ NotesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
2104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: NotesService, decorators: [{
2105
+ type: Injectable,
2106
+ args: [{
2107
+ providedIn: 'root'
2108
+ }]
2075
2109
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2076
2110
 
2077
- class StudentService {
2078
- constructor(http) {
2079
- this.http = http;
2080
- this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2081
- }
2082
- getStudentsByCourse(params) {
2083
- let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2084
- this.generateRequestParams(params);
2085
- return this.http.post(serviceUrl, this.httpOptions);
2086
- }
2087
- generateRequestParams(param) {
2088
- this.httpOptions = {
2089
- header: new HttpHeaders(),
2090
- params: param,
2091
- };
2092
- }
2093
- }
2094
- 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 });
2095
- StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2097
- type: Injectable,
2098
- args: [{
2099
- providedIn: 'root'
2100
- }]
2111
+ class StudentService {
2112
+ constructor(http) {
2113
+ this.http = http;
2114
+ this.SERVICE_URL = 'https://iptdev.com.co/lab/academic/api/';
2115
+ }
2116
+ getStudentsByCourse(params) {
2117
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/students/by/course';
2118
+ this.generateRequestParams(params);
2119
+ return this.http.post(serviceUrl, this.httpOptions);
2120
+ }
2121
+ generateRequestParams(param) {
2122
+ this.httpOptions = {
2123
+ header: new HttpHeaders(),
2124
+ params: param,
2125
+ };
2126
+ }
2127
+ }
2128
+ 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 });
2129
+ StudentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, providedIn: 'root' });
2130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: StudentService, decorators: [{
2131
+ type: Injectable,
2132
+ args: [{
2133
+ providedIn: 'root'
2134
+ }]
2101
2135
  }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
2102
2136
 
2103
- class Session {
2137
+ class Session {
2104
2138
  }
2105
2139
 
2106
- class UserRs {
2107
- }
2108
- class UserLoginRs {
2140
+ class UserRs {
2141
+ }
2142
+ class UserLoginRs {
2109
2143
  }
2110
2144
 
2111
- /*
2112
- * Public API Surface of design-system
2145
+ /*
2146
+ * Public API Surface of design-system
2113
2147
  */
2114
2148
 
2115
- /**
2116
- * Generated bundle index. Do not edit.
2149
+ /**
2150
+ * Generated bundle index. Do not edit.
2117
2151
  */
2118
2152
 
2119
- export { AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, ComponentsModule, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserLoginRs, UserRs, UserService };
2153
+ export { AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalendarService, CheckboxComponent, 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 };
2120
2154
  //# sourceMappingURL=iptdevs-design-system.mjs.map