visorus-erp-core 10.1.2 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/bundles/visorus-erp-core.umd.js +4966 -5331
  2. package/bundles/visorus-erp-core.umd.js.map +1 -1
  3. package/esm2015/lib/app.module.js +6 -5
  4. package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +3 -3
  5. package/esm2015/lib/components/acreedor/services/acreedor.service.js +12 -26
  6. package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +14 -12
  7. package/esm2015/lib/components/agente/models/Agente.js +1 -1
  8. package/esm2015/lib/components/agente/services/agente.service.js +18 -26
  9. package/esm2015/lib/components/almacen/models/Almacen.js +1 -1
  10. package/esm2015/lib/components/almacen/services/almacen.service.js +14 -27
  11. package/esm2015/lib/components/banco/models/Banco.js +1 -1
  12. package/esm2015/lib/components/banco/services/banco.service.js +11 -26
  13. package/esm2015/lib/components/caja/session-create/session-create.component.js +3 -3
  14. package/esm2015/lib/components/caja/sessionCaja.service.js +12 -26
  15. package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -1
  16. package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +11 -26
  17. package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -1
  18. package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +11 -26
  19. package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +11 -26
  20. package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -1
  21. package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +11 -26
  22. package/esm2015/lib/components/cliente/models/Cliente.js +1 -1
  23. package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -1
  24. package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -1
  25. package/esm2015/lib/components/cliente/select/select-cliente.component.js +3 -3
  26. package/esm2015/lib/components/cliente/services/cliente.service.js +12 -27
  27. package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +13 -27
  28. package/esm2015/lib/components/cliente/services/clienteFlete.service.js +13 -27
  29. package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -1
  30. package/esm2015/lib/components/contacto/services/datoContacto.service.js +11 -26
  31. package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -1
  32. package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +11 -26
  33. package/esm2015/lib/components/departamento/models/Departamento.js +1 -1
  34. package/esm2015/lib/components/departamento/services/departamento.service.js +11 -26
  35. package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -1
  36. package/esm2015/lib/components/empresa/models/Empresa.js +1 -1
  37. package/esm2015/lib/components/empresa/services/empresa.service.js +14 -27
  38. package/esm2015/lib/components/error404/error404.component.js +3 -3
  39. package/esm2015/lib/components/flete/models/Flete.js +1 -1
  40. package/esm2015/lib/components/flete/services/flete.service.js +12 -26
  41. package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -1
  42. package/esm2015/lib/components/formaPago/services/FormaPago.service.js +11 -26
  43. package/esm2015/lib/components/loading/loading.component.js +4 -4
  44. package/esm2015/lib/components/loading/loading.service.js +3 -3
  45. package/esm2015/lib/components/loading-screen/loading-screen.component.js +4 -4
  46. package/esm2015/lib/components/loading-screen/loading-screen.service.js +3 -3
  47. package/esm2015/lib/components/login-modal/login-modal.component.js +4 -4
  48. package/esm2015/lib/components/login-modal/login-modal.service.js +3 -3
  49. package/esm2015/lib/components/moneda/models/Moneda.js +1 -1
  50. package/esm2015/lib/components/moneda/services/moneda.service.js +12 -26
  51. package/esm2015/lib/components/pdfModal/pdf-modal.component.js +3 -3
  52. package/esm2015/lib/components/pdfModal/pdf-modal.service.js +3 -3
  53. package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -1
  54. package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -1
  55. package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -1
  56. package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -1
  57. package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +14 -13
  58. package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -1
  59. package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -1
  60. package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -1
  61. package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +3 -3
  62. package/esm2015/lib/components/proveedor/services/proveedor.service.js +12 -26
  63. package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +13 -27
  64. package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +12 -23
  65. package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +3 -3
  66. package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +13 -27
  67. package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +5 -5
  68. package/esm2015/lib/components/selecciona-articulo/stock.service.js +14 -16
  69. package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -1
  70. package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +14 -25
  71. package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -1
  72. package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +11 -26
  73. package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -1
  74. package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +11 -26
  75. package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +3 -3
  76. package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +5 -5
  77. package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -1
  78. package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -1
  79. package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +13 -27
  80. package/esm2015/lib/globalPrimeNg.js +1 -1
  81. package/esm2015/lib/httpInterceptor/httpInterceptor.js +3 -3
  82. package/esm2015/lib/importComponents.js +1 -1
  83. package/esm2015/lib/importComponetsConta.js +1 -1
  84. package/esm2015/lib/models/PersonaMoral.js +1 -1
  85. package/esm2015/lib/models/Usuario.js +1 -1
  86. package/esm2015/lib/models/auth.js +1 -1
  87. package/esm2015/lib/services/auth.service.js +3 -3
  88. package/esm2015/lib/services/authenticated.service.js +3 -3
  89. package/esm2015/lib/services/canActivateGuard.service.ts.js +3 -3
  90. package/esm2015/lib/services/catalogo-adicional.service.js +12 -26
  91. package/esm2015/lib/services/controlAcceso.service.js +3 -3
  92. package/esm2015/lib/services/crud.service.js +46 -0
  93. package/esm2015/lib/services/file.service.js +3 -3
  94. package/esm2015/lib/services/global.service.js +2 -13
  95. package/esm2015/lib/services/init.service.js +3 -3
  96. package/esm2015/lib/services/message.service.js +3 -3
  97. package/esm2015/lib/services/paginate.service.js +3 -3
  98. package/esm2015/lib/services/personaMoral.service.js +11 -26
  99. package/esm2015/lib/services/versionCheck.service.js +3 -3
  100. package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -1
  101. package/esm2015/public_api.js +3 -3
  102. package/esm2015/visorus-erp-core.js +1 -1
  103. package/fesm2015/visorus-erp-core.js +1488 -1923
  104. package/fesm2015/visorus-erp-core.js.map +1 -1
  105. package/lib/app.module.d.ts +3 -2
  106. package/lib/components/acreedor/select/select-acreedor.component.d.ts +2 -2
  107. package/lib/components/acreedor/services/acreedor.service.d.ts +7 -14
  108. package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +8 -8
  109. package/lib/components/agente/services/agente.service.d.ts +10 -16
  110. package/lib/components/almacen/services/almacen.service.d.ts +8 -15
  111. package/lib/components/banco/services/banco.service.d.ts +6 -14
  112. package/lib/components/caja/session-create/session-create.component.d.ts +2 -2
  113. package/lib/components/caja/sessionCaja.service.d.ts +7 -13
  114. package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +6 -14
  115. package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +6 -14
  116. package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +6 -13
  117. package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +6 -14
  118. package/lib/components/cliente/select/select-cliente.component.d.ts +2 -2
  119. package/lib/components/cliente/services/cliente.service.d.ts +7 -15
  120. package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +8 -15
  121. package/lib/components/cliente/services/clienteFlete.service.d.ts +8 -14
  122. package/lib/components/contacto/services/datoContacto.service.d.ts +6 -13
  123. package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +6 -13
  124. package/lib/components/departamento/services/departamento.service.d.ts +6 -13
  125. package/lib/components/empresa/services/empresa.service.d.ts +8 -14
  126. package/lib/components/error404/error404.component.d.ts +2 -2
  127. package/lib/components/flete/services/flete.service.d.ts +7 -13
  128. package/lib/components/formaPago/services/FormaPago.service.d.ts +6 -14
  129. package/lib/components/loading/loading.component.d.ts +2 -2
  130. package/lib/components/loading/loading.service.d.ts +2 -2
  131. package/lib/components/loading-screen/loading-screen.component.d.ts +2 -2
  132. package/lib/components/loading-screen/loading-screen.service.d.ts +2 -2
  133. package/lib/components/login-modal/login-modal.component.d.ts +2 -2
  134. package/lib/components/login-modal/login-modal.service.d.ts +2 -2
  135. package/lib/components/moneda/services/moneda.service.d.ts +7 -13
  136. package/lib/components/pdfModal/pdf-modal.component.d.ts +2 -2
  137. package/lib/components/pdfModal/pdf-modal.service.d.ts +2 -2
  138. package/lib/components/persona-fisica/services/personaFisica.service.d.ts +9 -10
  139. package/lib/components/proveedor/select/select-proveedor.component.d.ts +2 -2
  140. package/lib/components/proveedor/services/proveedor.service.d.ts +7 -13
  141. package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +8 -14
  142. package/lib/components/proveedor/services/proveedorFlete.service.d.ts +8 -13
  143. package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +2 -2
  144. package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +8 -14
  145. package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +2 -2
  146. package/lib/components/selecciona-articulo/stock.service.d.ts +7 -9
  147. package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +9 -14
  148. package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +6 -13
  149. package/lib/components/ubicacion/services/ubicacion.service.d.ts +6 -13
  150. package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +2 -2
  151. package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +2 -2
  152. package/lib/contabilidad/servicios/cuentacontable.service.d.ts +8 -14
  153. package/lib/httpInterceptor/httpInterceptor.d.ts +2 -2
  154. package/lib/services/auth.service.d.ts +2 -2
  155. package/lib/services/authenticated.service.d.ts +2 -2
  156. package/lib/services/canActivateGuard.service.ts.d.ts +2 -2
  157. package/lib/services/catalogo-adicional.service.d.ts +7 -13
  158. package/lib/services/controlAcceso.service.d.ts +2 -2
  159. package/lib/services/crud.service.d.ts +20 -0
  160. package/lib/services/file.service.d.ts +2 -2
  161. package/lib/services/global.service.d.ts +2 -4
  162. package/lib/services/init.service.d.ts +2 -2
  163. package/lib/services/message.service.d.ts +2 -2
  164. package/lib/services/paginate.service.d.ts +2 -2
  165. package/lib/services/personaMoral.service.d.ts +6 -13
  166. package/lib/services/versionCheck.service.d.ts +2 -2
  167. package/package.json +9 -9
  168. package/public_api.d.ts +2 -2
  169. package/bundles/visorus-erp-core.umd.min.js +0 -2
  170. package/bundles/visorus-erp-core.umd.min.js.map +0 -1
  171. package/esm2015/lib/services/api.service.js +0 -80
  172. package/lib/services/api.service.d.ts +0 -45
@@ -1,47 +1,84 @@
1
- import { HttpHeaders, HttpClient, HttpParams, HTTP_INTERCEPTORS } from '@angular/common/http';
2
- import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵstaticViewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
3
- import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, FormsModule } from '@angular/forms';
4
- import { InputText, InputTextModule } from 'primeng/inputtext';
5
- import { TreeTable, TreeTableToggler, TreeTableModule } from 'primeng/treetable';
6
- import { PrimeTemplate, Footer, ConfirmationService } from 'primeng/api';
7
- import { NgIf, NgStyle, NgForOf, CurrencyPipe, DecimalPipe, DatePipe, CommonModule } from '@angular/common';
8
- import { ButtonDirective, ButtonModule } from 'primeng/button';
9
- import { Dialog, DialogModule } from 'primeng/dialog';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
5
+ import * as i5 from '@angular/forms';
6
+ import { FormsModule } from '@angular/forms';
7
+ import * as i6 from 'primeng/inputtext';
8
+ import { InputTextModule } from 'primeng/inputtext';
9
+ import * as i4 from 'primeng/treetable';
10
+ import { TreeTableModule } from 'primeng/treetable';
11
+ import * as i4$1 from 'primeng/api';
12
+ import { ConfirmationService } from 'primeng/api';
13
+ import * as i8 from '@angular/common';
14
+ import { CommonModule } from '@angular/common';
15
+ import * as i7 from 'primeng/button';
16
+ import { ButtonModule } from 'primeng/button';
17
+ import * as i4$2 from 'primeng/dialog';
18
+ import { DialogModule } from 'primeng/dialog';
10
19
  import { Subject, throwError, of } from 'rxjs';
11
20
  import { catchError, tap } from 'rxjs/internal/operators';
12
- import { ToastrService, ToastrModule } from 'ngx-toastr';
13
- import { TranslatePipe, TranslateService, TranslateDirective, TranslateModule, TranslateLoader } from '@ngx-translate/core';
21
+ import * as i1$1 from 'ngx-toastr';
22
+ import { ToastrModule } from 'ngx-toastr';
23
+ import * as i3 from '@ngx-translate/core';
24
+ import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
14
25
  import { debounceTime } from 'rxjs/operators';
15
- import { DomSanitizer } from '@angular/platform-browser';
26
+ import * as i3$1 from '@angular/platform-browser';
16
27
  import { __awaiter } from 'tslib';
17
- import { Table, SelectableRow, ResizableColumn, TableModule } from 'primeng/table';
18
- import { Paginator, PaginatorModule } from 'primeng/paginator';
28
+ import * as i8$1 from 'primeng/table';
29
+ import { TableModule } from 'primeng/table';
30
+ import * as i10 from 'primeng/paginator';
31
+ import { PaginatorModule } from 'primeng/paginator';
32
+ import * as i23 from 'primeng/dropdown';
19
33
  import { DropdownModule } from 'primeng/dropdown';
34
+ import * as i24 from 'primeng/inputmask';
20
35
  import { InputMaskModule } from 'primeng/inputmask';
36
+ import * as i25 from 'primeng/messages';
21
37
  import { MessagesModule } from 'primeng/messages';
38
+ import * as i26 from 'primeng/message';
22
39
  import { MessageModule } from 'primeng/message';
40
+ import * as i28 from 'primeng/confirmdialog';
23
41
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
42
+ import * as i29 from 'primeng/progressbar';
24
43
  import { ProgressBarModule } from 'primeng/progressbar';
44
+ import * as i30 from 'primeng/tristatecheckbox';
25
45
  import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
46
+ import * as i31 from 'primeng/keyfilter';
26
47
  import { KeyFilterModule } from 'primeng/keyfilter';
48
+ import * as i32 from 'primeng/inputswitch';
27
49
  import { InputSwitchModule } from 'primeng/inputswitch';
50
+ import * as i34 from 'primeng/tabview';
28
51
  import { TabViewModule } from 'primeng/tabview';
52
+ import * as i20 from 'primeng/calendar';
29
53
  import { CalendarModule } from 'primeng/calendar';
54
+ import * as i35 from 'primeng/panel';
30
55
  import { PanelModule } from 'primeng/panel';
56
+ import * as i17 from 'primeng/autocomplete';
31
57
  import { AutoCompleteModule } from 'primeng/autocomplete';
58
+ import * as i38 from 'primeng/fieldset';
32
59
  import { FieldsetModule } from 'primeng/fieldset';
60
+ import * as i16 from 'primeng/checkbox';
33
61
  import { CheckboxModule } from 'primeng/checkbox';
62
+ import * as i39 from 'primeng/tree';
34
63
  import { TreeModule } from 'primeng/tree';
64
+ import * as i15 from 'primeng/radiobutton';
35
65
  import { RadioButtonModule } from 'primeng/radiobutton';
66
+ import * as i40 from 'primeng/tabmenu';
36
67
  import { TabMenuModule } from 'primeng/tabmenu';
68
+ import * as i14 from 'primeng/overlaypanel';
37
69
  import { OverlayPanelModule } from 'primeng/overlaypanel';
70
+ import * as i13 from 'primeng/tooltip';
38
71
  import { TooltipModule } from 'primeng/tooltip';
72
+ import * as i12 from 'primeng/card';
39
73
  import { CardModule } from 'primeng/card';
74
+ import * as i41 from 'primeng/menubar';
40
75
  import { MenubarModule } from 'primeng/menubar';
76
+ import * as i37 from 'primeng/splitbutton';
41
77
  import { SplitButtonModule } from 'primeng/splitbutton';
78
+ import * as i36 from 'primeng/toolbar';
42
79
  import { ToolbarModule } from 'primeng/toolbar';
43
80
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
44
- import { Router } from '@angular/router';
81
+ import * as i3$2 from '@angular/router';
45
82
 
46
83
  class GlobalService {
47
84
  constructor(http) {
@@ -95,195 +132,143 @@ class GlobalService {
95
132
  return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
96
133
  }
97
134
  }
98
- /** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(ɵɵinject(HttpClient)); };
99
- /** @nocollapse */ GlobalService.ɵprov = ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
100
- /*@__PURE__*/ (function () { ɵsetClassMetadata(GlobalService, [{
101
- type: Injectable,
102
- args: [{
103
- providedIn: 'root'
104
- }]
105
- }], function () { return [{ type: HttpClient }]; }, null); })();
106
135
 
107
- // projects/erp-core/src/lib/services/api.service.ts
108
- class ApiService {
109
- constructor(http,
110
- // Inyectamos GlobalService para usar sus métodos de ayuda (construir URL y cabeceras)
111
- global) {
112
- this.http = http;
113
- this.global = global;
114
- }
115
- /**
116
- * Realiza una petición GET genérica y autenticada usando HttpParams.
117
- * @param endpoint El endpoint del API (ej. '/FormaDePago')
118
- * @param queryParams Un objeto clave-valor para los parámetros de la URL.
119
- */
120
- get(endpoint, queryParams) {
121
- // 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
122
- const params = new HttpParams({ fromObject: queryParams });
123
- // 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
124
- const options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
125
- });
126
- const url = this.global.getUrl(endpoint);
127
- return this.http.get(url, options);
128
- }
129
- /**
130
- * Realiza una petición POST genérica y autenticada.
131
- * @param endpoint El endpoint del API
132
- * @param body El cuerpo de la petición
133
- */
134
- post(endpoint, body) {
135
- const url = this.global.getUrl(endpoint);
136
- const options = this.global.buildAuth();
137
- return this.http.post(url, body, options);
138
- }
139
- /**
140
- * Realiza una petición PUT genérica y autenticada.
141
- * @param endpoint El endpoint del API
142
- * @param id El ID del recurso a actualizar
143
- * @param body El cuerpo de la petición
144
- */
145
- put(endpoint, id, body) {
146
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
147
- const options = this.global.buildAuth();
148
- return this.http.put(url, body, options);
149
- }
150
- /**
151
- * Realiza una petición DELETE genérica y autenticada.
152
- * @param endpoint El endpoint del API
153
- * @param id El ID del recurso a eliminar
154
- */
155
- delete(endpoint, id) {
156
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
157
- const options = this.global.buildAuth();
158
- return this.http.delete(url, options);
159
- }
160
- /**
161
- * Realiza una petición PATCH genérica y autenticada.
162
- * @param endpoint El endpoint del API
163
- * @param id El ID del recurso a actualizar parcialmente
164
- * @param body El cuerpo con los campos a actualizar
165
- */
166
- patch(endpoint, id, body) {
167
- const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
168
- const options = this.global.buildAuth();
169
- return this.http.patch(url, body, options);
136
+ class CrudService extends GlobalService {
137
+ constructor(httpCliente, url) {
138
+ super(httpCliente);
139
+ this.httpCliente = httpCliente;
140
+ this.url = url;
141
+ this.urlComponente = this.url;
170
142
  }
171
- }
172
- /** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(ɵɵinject(HttpClient), ɵɵinject(GlobalService)); };
173
- /** @nocollapse */ ApiService.ɵprov = ɵɵdefineInjectable({ token: ApiService, factory: ApiService.ɵfac, providedIn: 'root' });
174
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ApiService, [{
175
- type: Injectable,
176
- args: [{
177
- providedIn: 'root'
178
- }]
179
- }], function () { return [{ type: HttpClient }, { type: GlobalService }]; }, null); })();
180
-
181
- class CuentaContableService {
182
- constructor(api) {
183
- this.api = api;
184
- this.endpoint = 'cuentaContable';
143
+ //Functions for ResourcesCrud [{ param: "max", value: 10}]
144
+ serializeParams(params) {
145
+ let serializeString = '';
146
+ params.map((e, index) => {
147
+ if (e.value !== undefined)
148
+ serializeString += ((index == 0) ? '?' : '&') + e.param + '=' + e.value;
149
+ });
150
+ return serializeString;
185
151
  }
186
- getAll(params) {
187
- return this.api.get(this.endpoint, params);
152
+ getHttp() {
153
+ return this.httpCliente;
188
154
  }
189
- obtieneCuentasContablesRecursivo() {
190
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
155
+ geturl() {
156
+ return this.getUrl(this.urlComponente);
157
+ }
158
+ getBaseUrl() {
159
+ return this.getUrl('');
160
+ }
161
+ getByUrl(url, params) {
162
+ return this.httpCliente.get(this.getUrl(url) + this.serializeParams(params), this.buildAuth());
163
+ }
164
+ getAll(params) {
165
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + (params ? (this.serializeParams(params)) : ('')), this.buildAuth());
191
166
  }
192
167
  get(id) {
193
- return this.api.get(`${this.endpoint}/${id}`);
168
+ return this.httpCliente.get(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
194
169
  }
195
170
  save(obj) {
196
- return this.api.post(this.endpoint, obj);
171
+ return this.httpCliente.post(this.getUrl(this.urlComponente), obj, this.buildAuth());
197
172
  }
198
173
  update(obj) {
199
- return this.api.put(this.endpoint, obj.id, obj);
174
+ return this.httpCliente.put(this.getUrl(this.urlComponente) + '/' + obj.id, obj, this.buildAuth());
200
175
  }
201
176
  delete(id) {
202
- return this.api.delete(this.endpoint, id);
177
+ return this.httpCliente.delete(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
178
+ }
179
+ }
180
+
181
+ class CuentaContableService extends CrudService {
182
+ constructor(httpClient) {
183
+ super(httpClient, 'cuentaContable');
184
+ this.httpClient = httpClient;
185
+ }
186
+ obtieneCuentasContablesRecursivo() {
187
+ return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
203
188
  }
204
189
  }
205
- /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(ApiService)); };
206
- /** @nocollapse */ CuentaContableService.ɵprov = ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
207
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CuentaContableService, [{
190
+ /** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(i0.ɵɵinject(i1.HttpClient)); };
191
+ /** @nocollapse */ CuentaContableService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
192
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CuentaContableService, [{
208
193
  type: Injectable,
209
194
  args: [{
210
195
  providedIn: 'root'
211
196
  }]
212
- }], function () { return [{ type: ApiService }]; }, null); })();
197
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
213
198
 
214
199
  function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
215
- ɵɵelementStart(0, "tr");
216
- ɵɵelementStart(1, "th", 5);
217
- ɵɵtext(2, "Cuenta contable");
218
- ɵɵelementEnd();
219
- ɵɵelementStart(3, "th", 5);
220
- ɵɵtext(4, "Descripci\u00F3n");
221
- ɵɵelementEnd();
222
- ɵɵelementStart(5, "th", 6);
223
- ɵɵtext(6, "Naturaleza");
224
- ɵɵelementEnd();
225
- ɵɵelementStart(7, "th", 7);
226
- ɵɵtext(8, "Tipo");
227
- ɵɵelementEnd();
228
- ɵɵelementStart(9, "th", 8);
229
- ɵɵtext(10, "Acciones");
230
- ɵɵelementEnd();
231
- ɵɵelementEnd();
200
+ i0.ɵɵelementStart(0, "tr");
201
+ i0.ɵɵelementStart(1, "th", 5);
202
+ i0.ɵɵtext(2, "Cuenta contable");
203
+ i0.ɵɵelementEnd();
204
+ i0.ɵɵelementStart(3, "th", 5);
205
+ i0.ɵɵtext(4, "Descripci\u00F3n");
206
+ i0.ɵɵelementEnd();
207
+ i0.ɵɵelementStart(5, "th", 6);
208
+ i0.ɵɵtext(6, "Naturaleza");
209
+ i0.ɵɵelementEnd();
210
+ i0.ɵɵelementStart(7, "th", 7);
211
+ i0.ɵɵtext(8, "Tipo");
212
+ i0.ɵɵelementEnd();
213
+ i0.ɵɵelementStart(9, "th", 8);
214
+ i0.ɵɵtext(10, "Acciones");
215
+ i0.ɵɵelementEnd();
216
+ i0.ɵɵelementEnd();
232
217
  } }
233
218
  function CclistaComponent_ng_template_4_button_12_Template(rf, ctx) { if (rf & 1) {
234
- const _r8 = ɵɵgetCurrentView();
235
- ɵɵelementStart(0, "button", 16);
236
- ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { ɵɵrestoreView(_r8); const rowData_r3 = ɵɵnextContext().rowData; const ctx_r6 = ɵɵnextContext(); return ctx_r6.selectCuentaContable(rowData_r3); });
237
- ɵɵelementEnd();
219
+ const _r8 = i0.ɵɵgetCurrentView();
220
+ i0.ɵɵelementStart(0, "button", 16);
221
+ i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.selectCuentaContable(rowData_r3); });
222
+ i0.ɵɵelementEnd();
238
223
  } }
239
224
  function CclistaComponent_ng_template_4_button_13_Template(rf, ctx) { if (rf & 1) {
240
- const _r11 = ɵɵgetCurrentView();
241
- ɵɵelementStart(0, "button", 16);
242
- ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { ɵɵrestoreView(_r11); const rowData_r3 = ɵɵnextContext().rowData; const ctx_r9 = ɵɵnextContext(); return ctx_r9.selectCuentaContable(rowData_r3); });
243
- ɵɵelementEnd();
225
+ const _r11 = i0.ɵɵgetCurrentView();
226
+ i0.ɵɵelementStart(0, "button", 16);
227
+ i0.ɵɵlistener("click", function CclistaComponent_ng_template_4_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const rowData_r3 = i0.ɵɵnextContext().rowData; const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.selectCuentaContable(rowData_r3); });
228
+ i0.ɵɵelementEnd();
244
229
  } }
245
230
  function CclistaComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
246
- ɵɵelementStart(0, "tr");
247
- ɵɵelementStart(1, "td", 9);
248
- ɵɵelement(2, "p-treeTableToggler", 10);
249
- ɵɵtext(3);
250
- ɵɵelementEnd();
251
- ɵɵelementStart(4, "td", 9);
252
- ɵɵtext(5);
253
- ɵɵelementEnd();
254
- ɵɵelementStart(6, "td", 11);
255
- ɵɵtext(7);
256
- ɵɵelementEnd();
257
- ɵɵelementStart(8, "td", 12);
258
- ɵɵtext(9);
259
- ɵɵelementEnd();
260
- ɵɵelementStart(10, "td", 13);
261
- ɵɵelementStart(11, "div", 14);
262
- ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15);
263
- ɵɵtemplate(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
264
- ɵɵelementEnd();
265
- ɵɵelementEnd();
266
- ɵɵelementEnd();
231
+ i0.ɵɵelementStart(0, "tr");
232
+ i0.ɵɵelementStart(1, "td", 9);
233
+ i0.ɵɵelement(2, "p-treeTableToggler", 10);
234
+ i0.ɵɵtext(3);
235
+ i0.ɵɵelementEnd();
236
+ i0.ɵɵelementStart(4, "td", 9);
237
+ i0.ɵɵtext(5);
238
+ i0.ɵɵelementEnd();
239
+ i0.ɵɵelementStart(6, "td", 11);
240
+ i0.ɵɵtext(7);
241
+ i0.ɵɵelementEnd();
242
+ i0.ɵɵelementStart(8, "td", 12);
243
+ i0.ɵɵtext(9);
244
+ i0.ɵɵelementEnd();
245
+ i0.ɵɵelementStart(10, "td", 13);
246
+ i0.ɵɵelementStart(11, "div", 14);
247
+ i0.ɵɵtemplate(12, CclistaComponent_ng_template_4_button_12_Template, 1, 0, "button", 15);
248
+ i0.ɵɵtemplate(13, CclistaComponent_ng_template_4_button_13_Template, 1, 0, "button", 15);
249
+ i0.ɵɵelementEnd();
250
+ i0.ɵɵelementEnd();
251
+ i0.ɵɵelementEnd();
267
252
  } if (rf & 2) {
268
253
  const rowNode_r2 = ctx.$implicit;
269
254
  const rowData_r3 = ctx.rowData;
270
- const ctx_r1 = ɵɵnextContext();
271
- ɵɵadvance(2);
272
- ɵɵproperty("rowNode", rowNode_r2);
273
- ɵɵadvance(1);
274
- ɵɵtextInterpolate1(" ", rowData_r3.cuentaContable, " ");
275
- ɵɵadvance(2);
276
- ɵɵtextInterpolate1(" ", rowData_r3.descripcion, " ");
277
- ɵɵadvance(2);
278
- ɵɵtextInterpolate1(" ", rowData_r3.naturaleza, " ");
279
- ɵɵadvance(2);
280
- ɵɵtextInterpolate1(" ", rowData_r3.tipo, " ");
281
- ɵɵadvance(3);
282
- ɵɵproperty("ngIf", ctx_r1.typeAccount == 1 && rowData_r3.cuentaRegistro);
283
- ɵɵadvance(1);
284
- ɵɵproperty("ngIf", ctx_r1.typeAccount == 2 && !rowData_r3.cuentaRegistro);
255
+ const ctx_r1 = i0.ɵɵnextContext();
256
+ i0.ɵɵadvance(2);
257
+ i0.ɵɵproperty("rowNode", rowNode_r2);
258
+ i0.ɵɵadvance(1);
259
+ i0.ɵɵtextInterpolate1(" ", rowData_r3.cuentaContable, " ");
260
+ i0.ɵɵadvance(2);
261
+ i0.ɵɵtextInterpolate1(" ", rowData_r3.descripcion, " ");
262
+ i0.ɵɵadvance(2);
263
+ i0.ɵɵtextInterpolate1(" ", rowData_r3.naturaleza, " ");
264
+ i0.ɵɵadvance(2);
265
+ i0.ɵɵtextInterpolate1(" ", rowData_r3.tipo, " ");
266
+ i0.ɵɵadvance(3);
267
+ i0.ɵɵproperty("ngIf", ctx_r1.typeAccount == 1 && rowData_r3.cuentaRegistro);
268
+ i0.ɵɵadvance(1);
269
+ i0.ɵɵproperty("ngIf", ctx_r1.typeAccount == 2 && !rowData_r3.cuentaRegistro);
285
270
  } }
286
- const _c0 = function () { return { width: "100%" }; };
271
+ const _c0$7 = function () { return { width: "100%" }; };
287
272
  class CclistaComponent {
288
273
  constructor(_cuentaContableService) {
289
274
  this._cuentaContableService = _cuentaContableService;
@@ -443,24 +428,24 @@ class CclistaComponent {
443
428
  }
444
429
  }
445
430
  }
446
- /** @nocollapse */ CclistaComponent.ɵfac = function CclistaComponent_Factory(t) { return new (t || CclistaComponent)(ɵɵdirectiveInject(CuentaContableService)); };
447
- /** @nocollapse */ CclistaComponent.ɵcmp = ɵɵdefineComponent({ type: CclistaComponent, selectors: [["lib-cclista"]], inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 5, vars: 8, consts: [["type", "text", "pInputText", "", "placeholder", "Cuenta o descripci\u00F3n", 2, "width", "100%", 3, "ngModel", "ngModelChange", "keyup"], [2, "padding", "10px"], [3, "value", "scrollable", "scrollHeight", "resizableColumns"], ["pTemplate", "header"], ["pTemplate", "body", "style", "width: 100%;"], [2, "width", "150px"], [2, "width", "90px"], [2, "width", "60px"], [2, "width", "200px"], [1, "ui-resizable-column", 2, "width", "150px"], [3, "rowNode"], [1, "ui-resizable-column", 2, "width", "90px"], [1, "ui-resizable-column", 2, "width", "60px"], [1, "ui-resizable-column", 2, "width", "200px"], [1, "button-row"], ["pButton", "", "type", "button", "icon", "pi pi-check", "class", "ui-button-raised ui-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "icon", "pi pi-check", 1, "ui-button-raised", "ui-button-success", 3, "click"]], template: function CclistaComponent_Template(rf, ctx) { if (rf & 1) {
448
- ɵɵelementStart(0, "input", 0);
449
- ɵɵlistener("ngModelChange", function CclistaComponent_Template_input_ngModelChange_0_listener($event) { return ctx.query = $event; })("keyup", function CclistaComponent_Template_input_keyup_0_listener($event) { return ctx.filterAccounts($event); });
450
- ɵɵelementEnd();
451
- ɵɵelementStart(1, "div", 1);
452
- ɵɵelementStart(2, "p-treeTable", 2);
453
- ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3);
454
- ɵɵtemplate(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
455
- ɵɵelementEnd();
456
- ɵɵelementEnd();
431
+ /** @nocollapse */ CclistaComponent.ɵfac = function CclistaComponent_Factory(t) { return new (t || CclistaComponent)(i0.ɵɵdirectiveInject(CuentaContableService)); };
432
+ /** @nocollapse */ CclistaComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CclistaComponent, selectors: [["lib-cclista"]], inputs: { isShared: "isShared", typeAccount: "typeAccount" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 5, vars: 8, consts: [["type", "text", "pInputText", "", "placeholder", "Cuenta o descripci\u00F3n", 2, "width", "100%", 3, "ngModel", "ngModelChange", "keyup"], [2, "padding", "10px"], [3, "value", "scrollable", "scrollHeight", "resizableColumns"], ["pTemplate", "header"], ["pTemplate", "body", "style", "width: 100%;"], [2, "width", "150px"], [2, "width", "90px"], [2, "width", "60px"], [2, "width", "200px"], [1, "ui-resizable-column", 2, "width", "150px"], [3, "rowNode"], [1, "ui-resizable-column", 2, "width", "90px"], [1, "ui-resizable-column", 2, "width", "60px"], [1, "ui-resizable-column", 2, "width", "200px"], [1, "button-row"], ["pButton", "", "type", "button", "icon", "pi pi-check", "class", "ui-button-raised ui-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "icon", "pi pi-check", 1, "ui-button-raised", "ui-button-success", 3, "click"]], template: function CclistaComponent_Template(rf, ctx) { if (rf & 1) {
433
+ i0.ɵɵelementStart(0, "input", 0);
434
+ i0.ɵɵlistener("ngModelChange", function CclistaComponent_Template_input_ngModelChange_0_listener($event) { return ctx.query = $event; })("keyup", function CclistaComponent_Template_input_keyup_0_listener($event) { return ctx.filterAccounts($event); });
435
+ i0.ɵɵelementEnd();
436
+ i0.ɵɵelementStart(1, "div", 1);
437
+ i0.ɵɵelementStart(2, "p-treeTable", 2);
438
+ i0.ɵɵtemplate(3, CclistaComponent_ng_template_3_Template, 11, 0, "ng-template", 3);
439
+ i0.ɵɵtemplate(4, CclistaComponent_ng_template_4_Template, 14, 7, "ng-template", 4);
440
+ i0.ɵɵelementEnd();
441
+ i0.ɵɵelementEnd();
457
442
  } if (rf & 2) {
458
- ɵɵproperty("ngModel", ctx.query);
459
- ɵɵadvance(2);
460
- ɵɵstyleMap(ɵɵpureFunction0(7, _c0));
461
- ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
462
- } }, directives: [DefaultValueAccessor, InputText, NgControlStatus, NgModel, TreeTable, PrimeTemplate, TreeTableToggler, NgIf, ButtonDirective], styles: [""] });
463
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CclistaComponent, [{
443
+ i0.ɵɵproperty("ngModel", ctx.query);
444
+ i0.ɵɵadvance(2);
445
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$7));
446
+ i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
447
+ } }, directives: [i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i4.TreeTable, i4$1.PrimeTemplate, i4.TreeTableToggler, i8.NgIf, i7.ButtonDirective], styles: [""] });
448
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
464
449
  type: Component,
465
450
  args: [{
466
451
  selector: 'lib-cclista',
@@ -475,8 +460,8 @@ class CclistaComponent {
475
460
  type: Output
476
461
  }] }); })();
477
462
 
478
- const _c0$1 = ["dialog"];
479
- const _c1 = function (a0) { return { "width": a0, "min-width": "200px" }; };
463
+ const _c0$6 = ["dialog"];
464
+ const _c1$3 = function (a0) { return { "width": a0, "min-width": "200px" }; };
480
465
  const _c2 = function (a0) { return { "height": a0 }; };
481
466
  class CcseleccionDialogComponent {
482
467
  constructor() {
@@ -500,29 +485,29 @@ class CcseleccionDialogComponent {
500
485
  }
501
486
  }
502
487
  /** @nocollapse */ CcseleccionDialogComponent.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); };
503
- /** @nocollapse */ CcseleccionDialogComponent.ɵcmp = ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
504
- ɵɵstaticViewQuery(_c0$1, true);
488
+ /** @nocollapse */ CcseleccionDialogComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
489
+ i0.ɵɵviewQuery(_c0$6, 7);
505
490
  } if (rf & 2) {
506
- var _t;
507
- ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.dialog = _t.first);
491
+ let _t;
492
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
508
493
  } }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable", "visibleChange", "onHide"], [1, "padding10", 3, "ngStyle"], [3, "isShared", "typeAccount", "evSelectedAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
509
- ɵɵelementStart(0, "p-dialog", 0);
510
- ɵɵlistener("visibleChange", function CcseleccionDialogComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.displayShowCuentas = $event; })("onHide", function CcseleccionDialogComponent_Template_p_dialog_onHide_0_listener($event) { return ctx.hiddenDialog($event); });
511
- ɵɵelementStart(1, "div", 1);
512
- ɵɵelementStart(2, "lib-cclista", 2);
513
- ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
514
- ɵɵelementEnd();
515
- ɵɵelementEnd();
516
- ɵɵelementEnd();
494
+ i0.ɵɵelementStart(0, "p-dialog", 0);
495
+ i0.ɵɵlistener("visibleChange", function CcseleccionDialogComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.displayShowCuentas = $event; })("onHide", function CcseleccionDialogComponent_Template_p_dialog_onHide_0_listener($event) { return ctx.hiddenDialog($event); });
496
+ i0.ɵɵelementStart(1, "div", 1);
497
+ i0.ɵɵelementStart(2, "lib-cclista", 2);
498
+ i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
499
+ i0.ɵɵelementEnd();
500
+ i0.ɵɵelementEnd();
501
+ i0.ɵɵelementEnd();
517
502
  } if (rf & 2) {
518
- ɵɵstyleMap(ɵɵpureFunction1(13, _c1, ctx.size + "px"));
519
- ɵɵproperty("visible", ctx.displayShowCuentas)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
520
- ɵɵadvance(1);
521
- ɵɵproperty("ngStyle", ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
522
- ɵɵadvance(1);
523
- ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
524
- } }, directives: [Dialog, NgStyle, CclistaComponent], styles: [""] });
525
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CcseleccionDialogComponent, [{
503
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$3, ctx.size + "px"));
504
+ i0.ɵɵproperty("visible", ctx.displayShowCuentas)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
505
+ i0.ɵɵadvance(1);
506
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
507
+ i0.ɵɵadvance(1);
508
+ i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
509
+ } }, directives: [i4$2.Dialog, i8.NgStyle, CclistaComponent], styles: [""] });
510
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
526
511
  type: Component,
527
512
  args: [{
528
513
  selector: 'lib-ccseleccion-dialog',
@@ -554,8 +539,8 @@ class LoginModalService {
554
539
  }
555
540
  }
556
541
  /** @nocollapse */ LoginModalService.ɵfac = function LoginModalService_Factory(t) { return new (t || LoginModalService)(); };
557
- /** @nocollapse */ LoginModalService.ɵprov = ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' });
558
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalService, [{
542
+ /** @nocollapse */ LoginModalService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' });
543
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalService, [{
559
544
  type: Injectable,
560
545
  args: [{
561
546
  providedIn: 'root'
@@ -584,8 +569,8 @@ class LoadingScreenService {
584
569
  }
585
570
  }
586
571
  /** @nocollapse */ LoadingScreenService.ɵfac = function LoadingScreenService_Factory(t) { return new (t || LoadingScreenService)(); };
587
- /** @nocollapse */ LoadingScreenService.ɵprov = ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' });
588
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenService, [{
572
+ /** @nocollapse */ LoadingScreenService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' });
573
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenService, [{
589
574
  type: Injectable,
590
575
  args: [{
591
576
  providedIn: 'root'
@@ -666,11 +651,11 @@ class httpInterceptor {
666
651
  }
667
652
  }
668
653
  }
669
- /** @nocollapse */ httpInterceptor.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(ɵɵinject(LoginModalService), ɵɵinject(ToastrService), ɵɵinject(LoadingScreenService)); };
670
- /** @nocollapse */ httpInterceptor.ɵprov = ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac });
671
- /*@__PURE__*/ (function () { ɵsetClassMetadata(httpInterceptor, [{
654
+ /** @nocollapse */ httpInterceptor.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(i0.ɵɵinject(LoginModalService), i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(LoadingScreenService)); };
655
+ /** @nocollapse */ httpInterceptor.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac });
656
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(httpInterceptor, [{
672
657
  type: Injectable
673
- }], function () { return [{ type: LoginModalService }, { type: ToastrService }, { type: LoadingScreenService }]; }, null); })();
658
+ }], function () { return [{ type: LoginModalService }, { type: i1$1.ToastrService }, { type: LoadingScreenService }]; }, null); })();
674
659
 
675
660
  class Error404Component {
676
661
  constructor() { }
@@ -678,25 +663,25 @@ class Error404Component {
678
663
  }
679
664
  }
680
665
  /** @nocollapse */ Error404Component.ɵfac = function Error404Component_Factory(t) { return new (t || Error404Component)(); };
681
- /** @nocollapse */ Error404Component.ɵcmp = ɵɵdefineComponent({ type: Error404Component, selectors: [["app-error404"]], decls: 9, vars: 0, consts: [[1, "col-md-12", "sec_sof"], [1, "row"], [1, "col", "col-center"], [1, "center"], [1, "error"], [1, "col-12"]], template: function Error404Component_Template(rf, ctx) { if (rf & 1) {
682
- ɵɵelementStart(0, "div", 0);
683
- ɵɵelementStart(1, "div", 1);
684
- ɵɵelementStart(2, "div", 2);
685
- ɵɵelementStart(3, "div", 3);
686
- ɵɵelementStart(4, "div", 4);
687
- ɵɵtext(5, " Error 404 ");
688
- ɵɵelementEnd();
689
- ɵɵelementStart(6, "div", 5);
690
- ɵɵelementStart(7, "p");
691
- ɵɵtext(8, "La pagina solicitada no fue encontrada");
692
- ɵɵelementEnd();
693
- ɵɵelementEnd();
694
- ɵɵelementEnd();
695
- ɵɵelementEnd();
696
- ɵɵelementEnd();
697
- ɵɵelementEnd();
666
+ /** @nocollapse */ Error404Component.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: Error404Component, selectors: [["app-error404"]], decls: 9, vars: 0, consts: [[1, "col-md-12", "sec_sof"], [1, "row"], [1, "col", "col-center"], [1, "center"], [1, "error"], [1, "col-12"]], template: function Error404Component_Template(rf, ctx) { if (rf & 1) {
667
+ i0.ɵɵelementStart(0, "div", 0);
668
+ i0.ɵɵelementStart(1, "div", 1);
669
+ i0.ɵɵelementStart(2, "div", 2);
670
+ i0.ɵɵelementStart(3, "div", 3);
671
+ i0.ɵɵelementStart(4, "div", 4);
672
+ i0.ɵɵtext(5, " Error 404 ");
673
+ i0.ɵɵelementEnd();
674
+ i0.ɵɵelementStart(6, "div", 5);
675
+ i0.ɵɵelementStart(7, "p");
676
+ i0.ɵɵtext(8, "La pagina solicitada no fue encontrada");
677
+ i0.ɵɵelementEnd();
678
+ i0.ɵɵelementEnd();
679
+ i0.ɵɵelementEnd();
680
+ i0.ɵɵelementEnd();
681
+ i0.ɵɵelementEnd();
682
+ i0.ɵɵelementEnd();
698
683
  } }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
699
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Error404Component, [{
684
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Error404Component, [{
700
685
  type: Component,
701
686
  args: [{
702
687
  selector: 'app-error404',
@@ -723,8 +708,8 @@ class LoadingService {
723
708
  }
724
709
  }
725
710
  /** @nocollapse */ LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
726
- /** @nocollapse */ LoadingService.ɵprov = ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
727
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingService, [{
711
+ /** @nocollapse */ LoadingService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
712
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingService, [{
728
713
  type: Injectable,
729
714
  args: [{
730
715
  providedIn: 'root'
@@ -752,38 +737,38 @@ class LoadingComponent {
752
737
  });
753
738
  }
754
739
  }
755
- /** @nocollapse */ LoadingComponent.ɵfac = function LoadingComponent_Factory(t) { return new (t || LoadingComponent)(ɵɵdirectiveInject(LoadingService)); };
756
- /** @nocollapse */ LoadingComponent.ɵcmp = ɵɵdefineComponent({ type: LoadingComponent, selectors: [["loading"]], inputs: { logo_loading: "logo_loading" }, decls: 14, vars: 4, consts: [["id", "modal_loading", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalScrollableTitle", "data-backdrop", "static", "data-keyboard", "false", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-scrollable"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], [1, "col-lg-4", "col-md-4", "col-sm-10"], [1, "loader"], [1, "box"], [1, "code"], ["width", "200px", 3, "src"], [1, "txt"]], template: function LoadingComponent_Template(rf, ctx) { if (rf & 1) {
757
- ɵɵelementStart(0, "div", 0);
758
- ɵɵelementStart(1, "div", 1);
759
- ɵɵelementStart(2, "div", 2);
760
- ɵɵelementStart(3, "div", 3);
761
- ɵɵelementStart(4, "div", 4);
762
- ɵɵelementStart(5, "div", 5);
763
- ɵɵelementStart(6, "div", 6);
764
- ɵɵelement(7, "span", 7);
765
- ɵɵelement(8, "span", 7);
766
- ɵɵelementStart(9, "div", 8);
767
- ɵɵelement(10, "img", 9);
768
- ɵɵelementEnd();
769
- ɵɵelementStart(11, "span", 10);
770
- ɵɵtext(12);
771
- ɵɵpipe(13, "translate");
772
- ɵɵelementEnd();
773
- ɵɵelementEnd();
774
- ɵɵelementEnd();
775
- ɵɵelementEnd();
776
- ɵɵelementEnd();
777
- ɵɵelementEnd();
778
- ɵɵelementEnd();
779
- ɵɵelementEnd();
740
+ /** @nocollapse */ LoadingComponent.ɵfac = function LoadingComponent_Factory(t) { return new (t || LoadingComponent)(i0.ɵɵdirectiveInject(LoadingService)); };
741
+ /** @nocollapse */ LoadingComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingComponent, selectors: [["loading"]], inputs: { logo_loading: "logo_loading" }, decls: 14, vars: 4, consts: [["id", "modal_loading", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalScrollableTitle", "data-backdrop", "static", "data-keyboard", "false", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-scrollable"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], [1, "col-lg-4", "col-md-4", "col-sm-10"], [1, "loader"], [1, "box"], [1, "code"], ["width", "200px", 3, "src"], [1, "txt"]], template: function LoadingComponent_Template(rf, ctx) { if (rf & 1) {
742
+ i0.ɵɵelementStart(0, "div", 0);
743
+ i0.ɵɵelementStart(1, "div", 1);
744
+ i0.ɵɵelementStart(2, "div", 2);
745
+ i0.ɵɵelementStart(3, "div", 3);
746
+ i0.ɵɵelementStart(4, "div", 4);
747
+ i0.ɵɵelementStart(5, "div", 5);
748
+ i0.ɵɵelementStart(6, "div", 6);
749
+ i0.ɵɵelement(7, "span", 7);
750
+ i0.ɵɵelement(8, "span", 7);
751
+ i0.ɵɵelementStart(9, "div", 8);
752
+ i0.ɵɵelement(10, "img", 9);
753
+ i0.ɵɵelementEnd();
754
+ i0.ɵɵelementStart(11, "span", 10);
755
+ i0.ɵɵtext(12);
756
+ i0.ɵɵpipe(13, "translate");
757
+ i0.ɵɵelementEnd();
758
+ i0.ɵɵelementEnd();
759
+ i0.ɵɵelementEnd();
760
+ i0.ɵɵelementEnd();
761
+ i0.ɵɵelementEnd();
762
+ i0.ɵɵelementEnd();
763
+ i0.ɵɵelementEnd();
764
+ i0.ɵɵelementEnd();
780
765
  } if (rf & 2) {
781
- ɵɵadvance(10);
782
- ɵɵpropertyInterpolate("src", ctx.logo_loading, ɵɵsanitizeUrl);
783
- ɵɵadvance(2);
784
- ɵɵtextInterpolate1("", ɵɵpipeBind1(13, 2, "cargando"), "...");
785
- } }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{height:170px;position:relative;width:130px}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{bottom:30px;content:\"\";height:0;left:15px;position:absolute;transform:scale(0);transition:all .2s ease;width:0;z-index:1}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{bottom:-30px;color:#fff;font-family:Abel,sans-serif;font-size:12px;left:-7%;letter-spacing:2px;position:absolute;text-align:center;width:120%}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{-webkit-animation-duration:.8s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:spaceboots;-webkit-animation-timing-function:linear;-webkit-transform-origin:50% 50%;bottom:-3px;position:absolute;z-index:99}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{color:#fff;display:block;height:140px;left:28px;overflow:hidden;position:absolute;width:100%;z-index:2}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;left:0;opacity:0;position:absolute;text-rendering:auto;top:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{animation:a 1.1s linear infinite;content:\"\\f13b\";font-size:20px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{animation:b 1.3s linear infinite;content:\"\\f13c\"}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{animation:c .9s linear infinite;content:\"\\f121\";font-size:25px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{animation:d .7s linear infinite;content:\"\\f19a \"}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{opacity:0;transform:translate(30px) rotate(30deg)}to{opacity:1;transform:translate(30px,150px) rotate(-50deg)}}@keyframes b{0%{opacity:0;transform:translate(50px) rotate(-40deg)}to{opacity:1;transform:translate(40px,150px) rotate(80deg)}}@keyframes c{0%{opacity:0;transform:translate(70px) rotate(10deg)}to{opacity:1;transform:translate(60px,150px) rotate(70deg)}}@keyframes d{0%{opacity:0;transform:translate(30px) rotate(-50deg)}to{opacity:1;transform:translate(45px,150px) rotate(30deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,0)!important;border:0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
786
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingComponent, [{
766
+ i0.ɵɵadvance(10);
767
+ i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
768
+ i0.ɵɵadvance(2);
769
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
770
+ } }, pipes: [i3.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:\"Abel\",sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
771
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
787
772
  type: Component,
788
773
  args: [{
789
774
  selector: 'loading',
@@ -818,30 +803,30 @@ class LoadingScreenComponent {
818
803
  this.loadingSubscription.unsubscribe();
819
804
  }
820
805
  }
821
- /** @nocollapse */ LoadingScreenComponent.ɵfac = function LoadingScreenComponent_Factory(t) { return new (t || LoadingScreenComponent)(ɵɵdirectiveInject(LoadingScreenService), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(LoadingService)); };
822
- /** @nocollapse */ LoadingScreenComponent.ɵcmp = ɵɵdefineComponent({ type: LoadingScreenComponent, selectors: [["app-loading-screen"]], inputs: { logo_loading: "logo_loading" }, decls: 10, vars: 0, consts: [[1, "loading-screen-wrapper"], [1, "loading-screen-icon"], [1, "blobs"], [1, "blob-center"], [1, "blob"]], template: function LoadingScreenComponent_Template(rf, ctx) { if (rf & 1) {
823
- ɵɵelementStart(0, "div", 0);
824
- ɵɵelementStart(1, "div", 1);
825
- ɵɵelementStart(2, "div", 2);
826
- ɵɵelement(3, "div", 3);
827
- ɵɵelement(4, "div", 4);
828
- ɵɵelement(5, "div", 4);
829
- ɵɵelement(6, "div", 4);
830
- ɵɵelement(7, "div", 4);
831
- ɵɵelement(8, "div", 4);
832
- ɵɵelement(9, "div", 4);
833
- ɵɵelementEnd();
834
- ɵɵelementEnd();
835
- ɵɵelementEnd();
836
- } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.384);display:block;height:100%;position:fixed;width:100%;z-index:100000}.loading-screen-icon[_ngcontent-%COMP%]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{border-radius:70px;filter:url(#goo);height:300px;overflow:hidden;position:relative;transform-style:preserve-3d;width:300px}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158;transform-origin:left top;transform-style:preserve-3d}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{background:#475158;border-radius:50%;height:30px;left:50%;position:absolute;top:50%;transform:scale(.9) translate(-50%,-50%);width:30px}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;opacity:0;transform-origin:center top}.blob[_ngcontent-%COMP%]:first-child{animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] });
837
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoadingScreenComponent, [{
806
+ /** @nocollapse */ LoadingScreenComponent.ɵfac = function LoadingScreenComponent_Factory(t) { return new (t || LoadingScreenComponent)(i0.ɵɵdirectiveInject(LoadingScreenService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(LoadingService)); };
807
+ /** @nocollapse */ LoadingScreenComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoadingScreenComponent, selectors: [["app-loading-screen"]], inputs: { logo_loading: "logo_loading" }, decls: 10, vars: 0, consts: [[1, "loading-screen-wrapper"], [1, "loading-screen-icon"], [1, "blobs"], [1, "blob-center"], [1, "blob"]], template: function LoadingScreenComponent_Template(rf, ctx) { if (rf & 1) {
808
+ i0.ɵɵelementStart(0, "div", 0);
809
+ i0.ɵɵelementStart(1, "div", 1);
810
+ i0.ɵɵelementStart(2, "div", 2);
811
+ i0.ɵɵelement(3, "div", 3);
812
+ i0.ɵɵelement(4, "div", 4);
813
+ i0.ɵɵelement(5, "div", 4);
814
+ i0.ɵɵelement(6, "div", 4);
815
+ i0.ɵɵelement(7, "div", 4);
816
+ i0.ɵɵelement(8, "div", 4);
817
+ i0.ɵɵelement(9, "div", 4);
818
+ i0.ɵɵelementEnd();
819
+ i0.ɵɵelementEnd();
820
+ i0.ɵɵelementEnd();
821
+ } }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:#00000062;width:100%;height:100%;display:block}.loading-screen-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{transform-style:preserve-3d;position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform-origin:left top;transform:scale(.9) translate(-50%,-50%);animation:blob-grow linear 3.4s infinite;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob[_ngcontent-%COMP%]{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;animation:blobs ease-out 3.4s infinite;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob[_ngcontent-%COMP%]:nth-child(1){animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] });
822
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingScreenComponent, [{
838
823
  type: Component,
839
824
  args: [{
840
825
  selector: 'app-loading-screen',
841
826
  templateUrl: './loading-screen.component.html',
842
827
  styleUrls: ['./loading-screen.component.scss']
843
828
  }]
844
- }], function () { return [{ type: LoadingScreenService }, { type: ElementRef }, { type: ChangeDetectorRef }, { type: LoadingService }]; }, { logo_loading: [{
829
+ }], function () { return [{ type: LoadingScreenService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: LoadingService }]; }, { logo_loading: [{
845
830
  type: Input
846
831
  }] }); })();
847
832
 
@@ -860,8 +845,8 @@ class PdfModalService {
860
845
  }
861
846
  }
862
847
  /** @nocollapse */ PdfModalService.ɵfac = function PdfModalService_Factory(t) { return new (t || PdfModalService)(); };
863
- /** @nocollapse */ PdfModalService.ɵprov = ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' });
864
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalService, [{
848
+ /** @nocollapse */ PdfModalService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' });
849
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalService, [{
865
850
  type: Injectable,
866
851
  args: [{
867
852
  providedIn: 'root'
@@ -925,26 +910,26 @@ class FileService {
925
910
  this.blobToDowload(this.base64ToBlob(base64, type), type, name);
926
911
  }
927
912
  }
928
- /** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(ɵɵinject(ToastrService), ɵɵinject(TranslateService)); };
929
- /** @nocollapse */ FileService.ɵprov = ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
930
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FileService, [{
913
+ /** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3.TranslateService)); };
914
+ /** @nocollapse */ FileService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
915
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileService, [{
931
916
  type: Injectable,
932
917
  args: [{
933
918
  providedIn: 'root'
934
919
  }]
935
- }], function () { return [{ type: ToastrService }, { type: TranslateService }]; }, null); })();
920
+ }], function () { return [{ type: i1$1.ToastrService }, { type: i3.TranslateService }]; }, null); })();
936
921
 
937
922
  function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
938
- ɵɵelementStart(0, "div", 2);
939
- ɵɵelement(1, "iframe", 3);
940
- ɵɵelementEnd();
923
+ i0.ɵɵelementStart(0, "div", 2);
924
+ i0.ɵɵelement(1, "iframe", 3);
925
+ i0.ɵɵelementEnd();
941
926
  } if (rf & 2) {
942
- const ctx_r0 = ɵɵnextContext();
943
- ɵɵadvance(1);
944
- ɵɵproperty("src", ctx_r0.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64," + ctx_r0.pdfBase64), ɵɵsanitizeResourceUrl);
927
+ const ctx_r0 = i0.ɵɵnextContext();
928
+ i0.ɵɵadvance(1);
929
+ i0.ɵɵproperty("src", ctx_r0.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64," + ctx_r0.pdfBase64), i0.ɵɵsanitizeResourceUrl);
945
930
  } }
946
- const _c0$2 = function (a0) { return { "width": a0, "min-width": "200px" }; };
947
- const _c1$1 = function () { return { "overflow": "visible" }; };
931
+ const _c0$5 = function (a0) { return { "width": a0, "min-width": "200px" }; };
932
+ const _c1$2 = function () { return { "overflow": "visible" }; };
948
933
  class PdfModalComponent {
949
934
  constructor(_pdfModalService, fileService, domSanitizer) {
950
935
  this._pdfModalService = _pdfModalService;
@@ -1009,26 +994,26 @@ class PdfModalComponent {
1009
994
  // iframe.contentWindow.print();
1010
995
  }
1011
996
  }
1012
- /** @nocollapse */ PdfModalComponent.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(ɵɵdirectiveInject(PdfModalService), ɵɵdirectiveInject(FileService), ɵɵdirectiveInject(DomSanitizer)); };
1013
- /** @nocollapse */ PdfModalComponent.ɵcmp = ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle", "visibleChange"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) { if (rf & 1) {
1014
- ɵɵelementStart(0, "p-dialog", 0);
1015
- ɵɵlistener("visibleChange", function PdfModalComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.display = $event; });
1016
- ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
1017
- ɵɵelementEnd();
997
+ /** @nocollapse */ PdfModalComponent.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$1.DomSanitizer)); };
998
+ /** @nocollapse */ PdfModalComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle", "visibleChange"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) { if (rf & 1) {
999
+ i0.ɵɵelementStart(0, "p-dialog", 0);
1000
+ i0.ɵɵlistener("visibleChange", function PdfModalComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.display = $event; });
1001
+ i0.ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
1002
+ i0.ɵɵelementEnd();
1018
1003
  } if (rf & 2) {
1019
- ɵɵstyleMap(ɵɵpureFunction1(12, _c0$2, ctx.size + "px"));
1020
- ɵɵproperty("visible", ctx.display)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", ɵɵpureFunction0(14, _c1$1));
1021
- ɵɵadvance(1);
1022
- ɵɵproperty("ngIf", ctx.pdfBase64);
1023
- } }, directives: [Dialog, NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
1024
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PdfModalComponent, [{
1004
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$5, ctx.size + "px"));
1005
+ i0.ɵɵproperty("visible", ctx.display)("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$2));
1006
+ i0.ɵɵadvance(1);
1007
+ i0.ɵɵproperty("ngIf", ctx.pdfBase64);
1008
+ } }, directives: [i4$2.Dialog, i8.NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
1009
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
1025
1010
  type: Component,
1026
1011
  args: [{
1027
1012
  selector: 'pdf-modal',
1028
1013
  templateUrl: './pdf-modal.component.html',
1029
1014
  styleUrls: ['./pdf-modal.component.css']
1030
1015
  }]
1031
- }], function () { return [{ type: PdfModalService }, { type: FileService }, { type: DomSanitizer }]; }, null); })();
1016
+ }], function () { return [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }]; }, null); })();
1032
1017
 
1033
1018
  class Usuario {
1034
1019
  }
@@ -1220,105 +1205,105 @@ class AuthService {
1220
1205
  return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
1221
1206
  }
1222
1207
  }
1223
- /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(ɵɵinject(HttpClient)); };
1224
- /** @nocollapse */ AuthService.ɵprov = ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
1225
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AuthService, [{
1208
+ /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.HttpClient)); };
1209
+ /** @nocollapse */ AuthService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
1210
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AuthService, [{
1226
1211
  type: Injectable,
1227
1212
  args: [{
1228
1213
  providedIn: 'root'
1229
1214
  }]
1230
- }], function () { return [{ type: HttpClient }]; }, { login: [{
1215
+ }], function () { return [{ type: i1.HttpClient }]; }, { login: [{
1231
1216
  type: Output
1232
1217
  }], seleccionEmpresa: [{
1233
1218
  type: Output
1234
1219
  }] }); })();
1235
1220
 
1236
1221
  function LoginModalComponent_div_6_label_4_Template(rf, ctx) { if (rf & 1) {
1237
- ɵɵelementStart(0, "label", 19);
1238
- ɵɵtext(1);
1239
- ɵɵpipe(2, "translate");
1240
- ɵɵelementEnd();
1222
+ i0.ɵɵelementStart(0, "label", 19);
1223
+ i0.ɵɵtext(1);
1224
+ i0.ɵɵpipe(2, "translate");
1225
+ i0.ɵɵelementEnd();
1241
1226
  } if (rf & 2) {
1242
- ɵɵadvance(1);
1243
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "Usuario.errorLogin"));
1227
+ i0.ɵɵadvance(1);
1228
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Usuario.errorLogin"));
1244
1229
  } }
1245
1230
  function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
1246
- const _r6 = ɵɵgetCurrentView();
1247
- ɵɵelementStart(0, "div", 7);
1248
- ɵɵelementStart(1, "div", 8);
1249
- ɵɵelementStart(2, "form", 9, 10);
1250
- ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { ɵɵrestoreView(_r6); const _r2 = ɵɵreference(3); const ctx_r5 = ɵɵnextContext(); return ctx_r5.entrar(_r2); });
1251
- ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 11);
1252
- ɵɵelementStart(5, "div", 12);
1253
- ɵɵelementStart(6, "label", 13);
1254
- ɵɵtext(7);
1255
- ɵɵpipe(8, "translate");
1256
- ɵɵelementEnd();
1257
- ɵɵelementStart(9, "input", 14, 15);
1258
- ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { ɵɵrestoreView(_r6); const ctx_r7 = ɵɵnextContext(); return ctx_r7.user.username = $event; });
1259
- ɵɵpipe(11, "translate");
1260
- ɵɵelementEnd();
1261
- ɵɵelementEnd();
1262
- ɵɵelementStart(12, "div", 12);
1263
- ɵɵelementStart(13, "label", 16);
1264
- ɵɵtext(14);
1265
- ɵɵpipe(15, "translate");
1266
- ɵɵelementEnd();
1267
- ɵɵelementStart(16, "input", 17);
1268
- ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { ɵɵrestoreView(_r6); const ctx_r8 = ɵɵnextContext(); return ctx_r8.user.password = $event; });
1269
- ɵɵpipe(17, "translate");
1270
- ɵɵelementEnd();
1271
- ɵɵelementEnd();
1272
- ɵɵelementStart(18, "button", 18);
1273
- ɵɵtext(19, "entrar");
1274
- ɵɵelementEnd();
1275
- ɵɵelementEnd();
1276
- ɵɵelementEnd();
1277
- ɵɵelementEnd();
1231
+ const _r6 = i0.ɵɵgetCurrentView();
1232
+ i0.ɵɵelementStart(0, "div", 7);
1233
+ i0.ɵɵelementStart(1, "div", 8);
1234
+ i0.ɵɵelementStart(2, "form", 9, 10);
1235
+ i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r6); const _r2 = i0.ɵɵreference(3); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.entrar(_r2); });
1236
+ i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 11);
1237
+ i0.ɵɵelementStart(5, "div", 12);
1238
+ i0.ɵɵelementStart(6, "label", 13);
1239
+ i0.ɵɵtext(7);
1240
+ i0.ɵɵpipe(8, "translate");
1241
+ i0.ɵɵelementEnd();
1242
+ i0.ɵɵelementStart(9, "input", 14, 15);
1243
+ i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.user.username = $event; });
1244
+ i0.ɵɵpipe(11, "translate");
1245
+ i0.ɵɵelementEnd();
1246
+ i0.ɵɵelementEnd();
1247
+ i0.ɵɵelementStart(12, "div", 12);
1248
+ i0.ɵɵelementStart(13, "label", 16);
1249
+ i0.ɵɵtext(14);
1250
+ i0.ɵɵpipe(15, "translate");
1251
+ i0.ɵɵelementEnd();
1252
+ i0.ɵɵelementStart(16, "input", 17);
1253
+ i0.ɵɵlistener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.user.password = $event; });
1254
+ i0.ɵɵpipe(17, "translate");
1255
+ i0.ɵɵelementEnd();
1256
+ i0.ɵɵelementEnd();
1257
+ i0.ɵɵelementStart(18, "button", 18);
1258
+ i0.ɵɵtext(19, "entrar");
1259
+ i0.ɵɵelementEnd();
1260
+ i0.ɵɵelementEnd();
1261
+ i0.ɵɵelementEnd();
1262
+ i0.ɵɵelementEnd();
1278
1263
  } if (rf & 2) {
1279
- const ctx_r0 = ɵɵnextContext();
1280
- ɵɵadvance(4);
1281
- ɵɵproperty("ngIf", ctx_r0.error);
1282
- ɵɵadvance(3);
1283
- ɵɵtextInterpolate(ɵɵpipeBind1(8, 7, "Usuario.username"));
1284
- ɵɵadvance(2);
1285
- ɵɵpropertyInterpolate("placeholder", ɵɵpipeBind1(11, 9, "Usuario.username"));
1286
- ɵɵproperty("ngModel", ctx_r0.user.username);
1287
- ɵɵadvance(5);
1288
- ɵɵtextInterpolate(ɵɵpipeBind1(15, 11, "Usuario.password"));
1289
- ɵɵadvance(2);
1290
- ɵɵpropertyInterpolate("placeholder", ɵɵpipeBind1(17, 13, "Usuario.password"));
1291
- ɵɵproperty("ngModel", ctx_r0.user.password);
1264
+ const ctx_r0 = i0.ɵɵnextContext();
1265
+ i0.ɵɵadvance(4);
1266
+ i0.ɵɵproperty("ngIf", ctx_r0.error);
1267
+ i0.ɵɵadvance(3);
1268
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 7, "Usuario.username"));
1269
+ i0.ɵɵadvance(2);
1270
+ i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(11, 9, "Usuario.username"));
1271
+ i0.ɵɵproperty("ngModel", ctx_r0.user.username);
1272
+ i0.ɵɵadvance(5);
1273
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 11, "Usuario.password"));
1274
+ i0.ɵɵadvance(2);
1275
+ i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(17, 13, "Usuario.password"));
1276
+ i0.ɵɵproperty("ngModel", ctx_r0.user.password);
1292
1277
  } }
1293
1278
  function LoginModalComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
1294
- ɵɵelementStart(0, "div", 22);
1295
- ɵɵelementStart(1, "div", 23);
1296
- ɵɵelementStart(2, "div", 24);
1297
- ɵɵelementStart(3, "h5");
1298
- ɵɵtext(4);
1299
- ɵɵelementEnd();
1300
- ɵɵelementEnd();
1301
- ɵɵelementEnd();
1302
- ɵɵelementEnd();
1279
+ i0.ɵɵelementStart(0, "div", 22);
1280
+ i0.ɵɵelementStart(1, "div", 23);
1281
+ i0.ɵɵelementStart(2, "div", 24);
1282
+ i0.ɵɵelementStart(3, "h5");
1283
+ i0.ɵɵtext(4);
1284
+ i0.ɵɵelementEnd();
1285
+ i0.ɵɵelementEnd();
1286
+ i0.ɵɵelementEnd();
1287
+ i0.ɵɵelementEnd();
1303
1288
  } if (rf & 2) {
1304
1289
  const empresa_r10 = ctx.$implicit;
1305
- ɵɵadvance(4);
1306
- ɵɵtextInterpolate1(" ", empresa_r10.nombre, " ");
1290
+ i0.ɵɵadvance(4);
1291
+ i0.ɵɵtextInterpolate1(" ", empresa_r10.nombre, " ");
1307
1292
  } }
1308
1293
  function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
1309
- ɵɵelementStart(0, "div", 7);
1310
- ɵɵelementStart(1, "div", 20);
1311
- ɵɵelementStart(2, "h4");
1312
- ɵɵtext(3, "Selecciona la empresa");
1313
- ɵɵelementEnd();
1314
- ɵɵelement(4, "hr");
1315
- ɵɵelementEnd();
1316
- ɵɵtemplate(5, LoginModalComponent_div_7_div_5_Template, 5, 1, "div", 21);
1317
- ɵɵelementEnd();
1294
+ i0.ɵɵelementStart(0, "div", 7);
1295
+ i0.ɵɵelementStart(1, "div", 20);
1296
+ i0.ɵɵelementStart(2, "h4");
1297
+ i0.ɵɵtext(3, "Selecciona la empresa");
1298
+ i0.ɵɵelementEnd();
1299
+ i0.ɵɵelement(4, "hr");
1300
+ i0.ɵɵelementEnd();
1301
+ i0.ɵɵtemplate(5, LoginModalComponent_div_7_div_5_Template, 5, 1, "div", 21);
1302
+ i0.ɵɵelementEnd();
1318
1303
  } if (rf & 2) {
1319
- const ctx_r1 = ɵɵnextContext();
1320
- ɵɵadvance(5);
1321
- ɵɵproperty("ngForOf", ctx_r1.empresas);
1304
+ const ctx_r1 = i0.ɵɵnextContext();
1305
+ i0.ɵɵadvance(5);
1306
+ i0.ɵɵproperty("ngForOf", ctx_r1.empresas);
1322
1307
  } }
1323
1308
  class LoginModalComponent {
1324
1309
  constructor(loginModalService, authService) {
@@ -1374,28 +1359,28 @@ class LoginModalComponent {
1374
1359
  });
1375
1360
  }
1376
1361
  }
1377
- /** @nocollapse */ LoginModalComponent.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(ɵɵdirectiveInject(LoginModalService), ɵɵdirectiveInject(AuthService)); };
1378
- /** @nocollapse */ LoginModalComponent.ɵcmp = ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["datoForm", "ngForm"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "name", "username", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["username", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["type", "submit", "translate", "", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
1379
- ɵɵelementStart(0, "div", 0);
1380
- ɵɵelementStart(1, "div", 1);
1381
- ɵɵelementStart(2, "div", 2);
1382
- ɵɵelementStart(3, "div", 3);
1383
- ɵɵelementStart(4, "div", 4);
1384
- ɵɵelement(5, "img", 5);
1385
- ɵɵelementEnd();
1386
- ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 6);
1387
- ɵɵtemplate(7, LoginModalComponent_div_7_Template, 6, 1, "div", 6);
1388
- ɵɵelementEnd();
1389
- ɵɵelementEnd();
1390
- ɵɵelementEnd();
1391
- ɵɵelementEnd();
1362
+ /** @nocollapse */ LoginModalComponent.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); };
1363
+ /** @nocollapse */ LoginModalComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["datoForm", "ngForm"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "name", "username", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["username", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "placeholder", "ngModel", "ngModelChange"], ["type", "submit", "translate", "", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
1364
+ i0.ɵɵelementStart(0, "div", 0);
1365
+ i0.ɵɵelementStart(1, "div", 1);
1366
+ i0.ɵɵelementStart(2, "div", 2);
1367
+ i0.ɵɵelementStart(3, "div", 3);
1368
+ i0.ɵɵelementStart(4, "div", 4);
1369
+ i0.ɵɵelement(5, "img", 5);
1370
+ i0.ɵɵelementEnd();
1371
+ i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 6);
1372
+ i0.ɵɵtemplate(7, LoginModalComponent_div_7_Template, 6, 1, "div", 6);
1373
+ i0.ɵɵelementEnd();
1374
+ i0.ɵɵelementEnd();
1375
+ i0.ɵɵelementEnd();
1376
+ i0.ɵɵelementEnd();
1392
1377
  } if (rf & 2) {
1393
- ɵɵadvance(6);
1394
- ɵɵproperty("ngIf", ctx.empresas.length == 0);
1395
- ɵɵadvance(1);
1396
- ɵɵproperty("ngIf", ctx.empresas.length);
1397
- } }, directives: [NgIf, ɵangular_packages_forms_forms_y, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1398
- /*@__PURE__*/ (function () { ɵsetClassMetadata(LoginModalComponent, [{
1378
+ i0.ɵɵadvance(6);
1379
+ i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
1380
+ i0.ɵɵadvance(1);
1381
+ i0.ɵɵproperty("ngIf", ctx.empresas.length);
1382
+ } }, directives: [i8.NgIf, i5.ɵNgNoValidate, i5.NgControlStatusGroup, i5.NgForm, i5.DefaultValueAccessor, i5.RequiredValidator, i5.NgControlStatus, i5.NgModel, i3.TranslateDirective, i8.NgForOf], pipes: [i3.TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
1383
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
1399
1384
  type: Component,
1400
1385
  args: [{
1401
1386
  selector: 'app-login-modal',
@@ -1404,108 +1389,93 @@ class LoginModalComponent {
1404
1389
  }]
1405
1390
  }], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
1406
1391
 
1407
- class SessionCajaService {
1408
- constructor(api) {
1409
- this.api = api;
1410
- this.endpoint = 'sessionCaja';
1411
- }
1412
- getAll(params) {
1413
- return this.api.get(this.endpoint, params);
1414
- }
1415
- get(id) {
1416
- return this.api.get(`${this.endpoint}/${id}`);
1417
- }
1418
- save(obj) {
1419
- return this.api.post(this.endpoint, obj);
1420
- }
1421
- update(obj) {
1422
- return this.api.put(this.endpoint, obj.id, obj);
1423
- }
1424
- delete(id) {
1425
- return this.api.delete(this.endpoint, id);
1392
+ class SessionCajaService extends CrudService {
1393
+ constructor(httpClient) {
1394
+ super(httpClient, 'sessionCaja');
1395
+ this.httpClient = httpClient;
1426
1396
  }
1427
1397
  }
1428
- /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(ApiService)); };
1429
- /** @nocollapse */ SessionCajaService.ɵprov = ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
1430
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCajaService, [{
1398
+ /** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(i0.ɵɵinject(i1.HttpClient)); };
1399
+ /** @nocollapse */ SessionCajaService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
1400
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCajaService, [{
1431
1401
  type: Injectable,
1432
1402
  args: [{
1433
1403
  providedIn: 'root'
1434
1404
  }]
1435
- }], function () { return [{ type: ApiService }]; }, null); })();
1405
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
1436
1406
 
1437
1407
  function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1438
- ɵɵelementStart(0, "a", 4);
1439
- ɵɵtext(1);
1440
- ɵɵelementEnd();
1408
+ i0.ɵɵelementStart(0, "a", 4);
1409
+ i0.ɵɵtext(1);
1410
+ i0.ɵɵelementEnd();
1441
1411
  } if (rf & 2) {
1442
- const ctx_r0 = ɵɵnextContext();
1443
- ɵɵadvance(1);
1444
- ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
1412
+ const ctx_r0 = i0.ɵɵnextContext();
1413
+ i0.ɵɵadvance(1);
1414
+ i0.ɵɵtextInterpolate1("", ctx_r0.labels.title, ": ");
1445
1415
  } }
1446
1416
  function SessionCreateComponent_div_2_Template(rf, ctx) { if (rf & 1) {
1447
- const _r4 = ɵɵgetCurrentView();
1448
- ɵɵelementStart(0, "div", 5);
1449
- ɵɵelementStart(1, "div", 6);
1450
- ɵɵelementStart(2, "label", 7);
1451
- ɵɵtext(3, "Nombre de caja: ");
1452
- ɵɵelementEnd();
1453
- ɵɵelementStart(4, "input", 8);
1454
- ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { ɵɵrestoreView(_r4); const ctx_r3 = ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
1455
- ɵɵelementEnd();
1456
- ɵɵelementEnd();
1457
- ɵɵelementStart(5, "div", 9);
1458
- ɵɵelementStart(6, "label", 10);
1459
- ɵɵtext(7, "Saldo: ");
1460
- ɵɵelementEnd();
1461
- ɵɵelementStart(8, "input", 11);
1462
- ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { ɵɵrestoreView(_r4); const ctx_r5 = ɵɵnextContext(); return ctx_r5.session.monto = $event; });
1463
- ɵɵelementEnd();
1464
- ɵɵelementEnd();
1465
- ɵɵelementStart(9, "div", 9);
1466
- ɵɵelementStart(10, "label", 12);
1467
- ɵɵtext(11, "Numero Z:");
1468
- ɵɵelementEnd();
1469
- ɵɵelementStart(12, "input", 13);
1470
- ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { ɵɵrestoreView(_r4); const ctx_r6 = ɵɵnextContext(); return ctx_r6.session.z = $event; });
1471
- ɵɵelementEnd();
1472
- ɵɵelementEnd();
1473
- ɵɵelementEnd();
1417
+ const _r4 = i0.ɵɵgetCurrentView();
1418
+ i0.ɵɵelementStart(0, "div", 5);
1419
+ i0.ɵɵelementStart(1, "div", 6);
1420
+ i0.ɵɵelementStart(2, "label", 7);
1421
+ i0.ɵɵtext(3, "Nombre de caja: ");
1422
+ i0.ɵɵelementEnd();
1423
+ i0.ɵɵelementStart(4, "input", 8);
1424
+ i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.caja.nombre = $event; });
1425
+ i0.ɵɵelementEnd();
1426
+ i0.ɵɵelementEnd();
1427
+ i0.ɵɵelementStart(5, "div", 9);
1428
+ i0.ɵɵelementStart(6, "label", 10);
1429
+ i0.ɵɵtext(7, "Saldo: ");
1430
+ i0.ɵɵelementEnd();
1431
+ i0.ɵɵelementStart(8, "input", 11);
1432
+ i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.session.monto = $event; });
1433
+ i0.ɵɵelementEnd();
1434
+ i0.ɵɵelementEnd();
1435
+ i0.ɵɵelementStart(9, "div", 9);
1436
+ i0.ɵɵelementStart(10, "label", 12);
1437
+ i0.ɵɵtext(11, "Numero Z:");
1438
+ i0.ɵɵelementEnd();
1439
+ i0.ɵɵelementStart(12, "input", 13);
1440
+ i0.ɵɵlistener("ngModelChange", function SessionCreateComponent_div_2_Template_input_ngModelChange_12_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.session.z = $event; });
1441
+ i0.ɵɵelementEnd();
1442
+ i0.ɵɵelementEnd();
1443
+ i0.ɵɵelementEnd();
1474
1444
  } if (rf & 2) {
1475
- const ctx_r1 = ɵɵnextContext();
1476
- ɵɵadvance(4);
1477
- ɵɵproperty("ngModel", ctx_r1.caja.nombre)("disabled", true);
1478
- ɵɵadvance(4);
1479
- ɵɵproperty("ngModel", ctx_r1.session.monto)("disabled", ctx_r1.editMode);
1480
- ɵɵadvance(4);
1481
- ɵɵproperty("ngModel", ctx_r1.session.z)("disabled", true);
1445
+ const ctx_r1 = i0.ɵɵnextContext();
1446
+ i0.ɵɵadvance(4);
1447
+ i0.ɵɵproperty("ngModel", ctx_r1.caja.nombre)("disabled", true);
1448
+ i0.ɵɵadvance(4);
1449
+ i0.ɵɵproperty("ngModel", ctx_r1.session.monto)("disabled", ctx_r1.editMode);
1450
+ i0.ɵɵadvance(4);
1451
+ i0.ɵɵproperty("ngModel", ctx_r1.session.z)("disabled", true);
1482
1452
  } }
1483
1453
  function SessionCreateComponent_ng_template_5_button_0_Template(rf, ctx) { if (rf & 1) {
1484
- const _r10 = ɵɵgetCurrentView();
1485
- ɵɵelementStart(0, "button", 17);
1486
- ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { ɵɵrestoreView(_r10); const ctx_r9 = ɵɵnextContext(2); return ctx_r9.save(); });
1487
- ɵɵelementEnd();
1454
+ const _r10 = i0.ɵɵgetCurrentView();
1455
+ i0.ɵɵelementStart(0, "button", 17);
1456
+ i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.save(); });
1457
+ i0.ɵɵelementEnd();
1488
1458
  } }
1489
1459
  function SessionCreateComponent_ng_template_5_button_1_Template(rf, ctx) { if (rf & 1) {
1490
- const _r12 = ɵɵgetCurrentView();
1491
- ɵɵelementStart(0, "button", 18);
1492
- ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(2); return ctx_r11.edit(); });
1493
- ɵɵelementEnd();
1460
+ const _r12 = i0.ɵɵgetCurrentView();
1461
+ i0.ɵɵelementStart(0, "button", 18);
1462
+ i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.edit(); });
1463
+ i0.ɵɵelementEnd();
1494
1464
  } }
1495
1465
  function SessionCreateComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
1496
- const _r14 = ɵɵgetCurrentView();
1497
- ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
1498
- ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
1499
- ɵɵelementStart(2, "button", 16);
1500
- ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { ɵɵrestoreView(_r14); const ctx_r13 = ɵɵnextContext(); return ctx_r13.closeModal(); });
1501
- ɵɵelementEnd();
1466
+ const _r14 = i0.ɵɵgetCurrentView();
1467
+ i0.ɵɵtemplate(0, SessionCreateComponent_ng_template_5_button_0_Template, 1, 0, "button", 14);
1468
+ i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_5_button_1_Template, 1, 0, "button", 15);
1469
+ i0.ɵɵelementStart(2, "button", 16);
1470
+ i0.ɵɵlistener("click", function SessionCreateComponent_ng_template_5_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.closeModal(); });
1471
+ i0.ɵɵelementEnd();
1502
1472
  } if (rf & 2) {
1503
- const ctx_r2 = ɵɵnextContext();
1504
- ɵɵproperty("ngIf", !ctx_r2.editMode && ctx_r2.caja);
1505
- ɵɵadvance(1);
1506
- ɵɵproperty("ngIf", ctx_r2.editMode && ctx_r2.caja);
1473
+ const ctx_r2 = i0.ɵɵnextContext();
1474
+ i0.ɵɵproperty("ngIf", !ctx_r2.editMode && ctx_r2.caja);
1475
+ i0.ɵɵadvance(1);
1476
+ i0.ɵɵproperty("ngIf", ctx_r2.editMode && ctx_r2.caja);
1507
1477
  } }
1508
- const _c0$3 = function () { return { width: "750px" }; };
1478
+ const _c0$4 = function () { return { width: "750px" }; };
1509
1479
  class SessionCreateComponent {
1510
1480
  constructor(sessionCajaService) {
1511
1481
  this.sessionCajaService = sessionCajaService;
@@ -1579,24 +1549,24 @@ class SessionCreateComponent {
1579
1549
  });
1580
1550
  }
1581
1551
  }
1582
- /** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(ɵɵdirectiveInject(SessionCajaService)); };
1583
- /** @nocollapse */ SessionCreateComponent.ɵcmp = ɵɵdefineComponent({ type: SessionCreateComponent, selectors: [["session-create"]], inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, decls: 6, vars: 9, consts: [[3, "visible", "modal", "closeOnEscape", "closable", "blockScroll", "visibleChange", "onHide", "onShow"], ["pTemplate", "header"], ["class", "grid grid-fluid", 4, "ngIf"], ["pTemplate", "footer"], [1, "text-primary"], [1, "grid", "grid-fluid"], [1, "p-field", "col-12"], ["for", "nombreCaja"], ["pInputText", "", "type", "text", "id", "nombreCaja", 3, "ngModel", "disabled", "ngModelChange"], [1, "p-field", "col-12", "md:col-6"], ["for", "saldoCaja"], ["pInputText", "", "type", "number", "id", "saldoCaja", 3, "ngModel", "disabled", "ngModelChange"], ["for", "numeroZ"], ["pInputText", "", "type", "number", "id", "numeroZ", 3, "ngModel", "disabled", "ngModelChange"], ["pButton", "", "type", "button", "label", "Guardar", "class", "p-button-sm", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cerrar session", "class", "p-button-sm p-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cancelar", 1, "p-button-sm", "p-button-danger", 3, "click"], ["pButton", "", "type", "button", "label", "Guardar", 1, "p-button-sm", 3, "click"], ["pButton", "", "type", "button", "label", "Cerrar session", 1, "p-button-sm", "p-button-success", 3, "click"]], template: function SessionCreateComponent_Template(rf, ctx) { if (rf & 1) {
1584
- ɵɵelementStart(0, "p-dialog", 0);
1585
- ɵɵlistener("visibleChange", function SessionCreateComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showCreateSession = $event; })("onHide", function SessionCreateComponent_Template_p_dialog_onHide_0_listener() { return ctx.closeModal(); })("onShow", function SessionCreateComponent_Template_p_dialog_onShow_0_listener() { return ctx.setSession(); });
1586
- ɵɵtemplate(1, SessionCreateComponent_ng_template_1_Template, 2, 1, "ng-template", 1);
1587
- ɵɵtemplate(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
1588
- ɵɵelementStart(3, "div");
1589
- ɵɵtext(4, " Este agente no esta asignado a una caja ");
1590
- ɵɵelementEnd();
1591
- ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
1592
- ɵɵelementEnd();
1552
+ /** @nocollapse */ SessionCreateComponent.ɵfac = function SessionCreateComponent_Factory(t) { return new (t || SessionCreateComponent)(i0.ɵɵdirectiveInject(SessionCajaService)); };
1553
+ /** @nocollapse */ SessionCreateComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SessionCreateComponent, selectors: [["session-create"]], inputs: { showCreateSession: "showCreateSession", caja: "caja", monedaDenominacionList: "monedaDenominacionList", sessionEdit: "sessionEdit" }, outputs: { status: "status", success: "success" }, decls: 6, vars: 9, consts: [[3, "visible", "modal", "closeOnEscape", "closable", "blockScroll", "visibleChange", "onHide", "onShow"], ["pTemplate", "header"], ["class", "grid grid-fluid", 4, "ngIf"], ["pTemplate", "footer"], [1, "text-primary"], [1, "grid", "grid-fluid"], [1, "p-field", "col-12"], ["for", "nombreCaja"], ["pInputText", "", "type", "text", "id", "nombreCaja", 3, "ngModel", "disabled", "ngModelChange"], [1, "p-field", "col-12", "md:col-6"], ["for", "saldoCaja"], ["pInputText", "", "type", "number", "id", "saldoCaja", 3, "ngModel", "disabled", "ngModelChange"], ["for", "numeroZ"], ["pInputText", "", "type", "number", "id", "numeroZ", 3, "ngModel", "disabled", "ngModelChange"], ["pButton", "", "type", "button", "label", "Guardar", "class", "p-button-sm", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cerrar session", "class", "p-button-sm p-button-success", 3, "click", 4, "ngIf"], ["pButton", "", "type", "button", "label", "Cancelar", 1, "p-button-sm", "p-button-danger", 3, "click"], ["pButton", "", "type", "button", "label", "Guardar", 1, "p-button-sm", 3, "click"], ["pButton", "", "type", "button", "label", "Cerrar session", 1, "p-button-sm", "p-button-success", 3, "click"]], template: function SessionCreateComponent_Template(rf, ctx) { if (rf & 1) {
1554
+ i0.ɵɵelementStart(0, "p-dialog", 0);
1555
+ i0.ɵɵlistener("visibleChange", function SessionCreateComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showCreateSession = $event; })("onHide", function SessionCreateComponent_Template_p_dialog_onHide_0_listener() { return ctx.closeModal(); })("onShow", function SessionCreateComponent_Template_p_dialog_onShow_0_listener() { return ctx.setSession(); });
1556
+ i0.ɵɵtemplate(1, SessionCreateComponent_ng_template_1_Template, 2, 1, "ng-template", 1);
1557
+ i0.ɵɵtemplate(2, SessionCreateComponent_div_2_Template, 13, 6, "div", 2);
1558
+ i0.ɵɵelementStart(3, "div");
1559
+ i0.ɵɵtext(4, " Este agente no esta asignado a una caja ");
1560
+ i0.ɵɵelementEnd();
1561
+ i0.ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
1562
+ i0.ɵɵelementEnd();
1593
1563
  } if (rf & 2) {
1594
- ɵɵstyleMap(ɵɵpureFunction0(8, _c0$3));
1595
- ɵɵproperty("visible", ctx.showCreateSession)("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
1596
- ɵɵadvance(2);
1597
- ɵɵproperty("ngIf", ctx.caja);
1598
- } }, directives: [Dialog, PrimeTemplate, NgIf, DefaultValueAccessor, InputText, NgControlStatus, NgModel, NumberValueAccessor, ButtonDirective], styles: [""] });
1599
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SessionCreateComponent, [{
1564
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$4));
1565
+ i0.ɵɵproperty("visible", ctx.showCreateSession)("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
1566
+ i0.ɵɵadvance(2);
1567
+ i0.ɵɵproperty("ngIf", ctx.caja);
1568
+ } }, directives: [i4$2.Dialog, i4$1.PrimeTemplate, i8.NgIf, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NumberValueAccessor, i7.ButtonDirective], styles: [""] });
1569
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
1600
1570
  type: Component,
1601
1571
  args: [{
1602
1572
  selector: 'session-create',
@@ -1656,38 +1626,22 @@ class Cliente {
1656
1626
  }
1657
1627
  }
1658
1628
 
1659
- class ClienteService {
1660
- constructor(api) {
1661
- this.api = api;
1662
- this.endpoint = 'cliente';
1663
- }
1664
- getAll(params) {
1665
- return this.api.get(this.endpoint, params);
1666
- }
1667
- get(id) {
1668
- return this.api.get(`${this.endpoint}/${id}`);
1669
- }
1670
- save(obj) {
1671
- return this.api.post(this.endpoint, obj);
1672
- }
1673
- update(obj) {
1674
- return this.api.put(this.endpoint, obj.id, obj);
1675
- }
1676
- delete(id) {
1677
- return this.api.delete(this.endpoint, id);
1629
+ class ClienteService extends CrudService {
1630
+ constructor(httpCliente) {
1631
+ super(httpCliente, '/cliente');
1678
1632
  }
1679
1633
  validar_archivos_bss(id) {
1680
- return this.api.get(`${this.endpoint}/validarClienteBss/${id}`);
1634
+ return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
1681
1635
  }
1682
1636
  }
1683
- /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(ApiService)); };
1684
- /** @nocollapse */ ClienteService.ɵprov = ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
1685
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteService, [{
1637
+ /** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); };
1638
+ /** @nocollapse */ ClienteService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
1639
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
1686
1640
  type: Injectable,
1687
1641
  args: [{
1688
1642
  providedIn: 'root'
1689
1643
  }]
1690
- }], function () { return [{ type: ApiService }]; }, null); })();
1644
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
1691
1645
 
1692
1646
  class PaginateService {
1693
1647
  constructor(translate) {
@@ -1734,124 +1688,124 @@ class PaginateService {
1734
1688
  return ordenar;
1735
1689
  }
1736
1690
  }
1737
- /** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(ɵɵinject(TranslateService)); };
1738
- /** @nocollapse */ PaginateService.ɵprov = ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
1739
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PaginateService, [{
1691
+ /** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3.TranslateService)); };
1692
+ /** @nocollapse */ PaginateService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
1693
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginateService, [{
1740
1694
  type: Injectable,
1741
1695
  args: [{
1742
1696
  providedIn: "root"
1743
1697
  }]
1744
- }], function () { return [{ type: TranslateService }]; }, null); })();
1698
+ }], function () { return [{ type: i3.TranslateService }]; }, null); })();
1745
1699
 
1746
1700
  function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1747
- ɵɵelementStart(0, "tr");
1748
- ɵɵelementStart(1, "th");
1749
- ɵɵtext(2);
1750
- ɵɵpipe(3, "translate");
1751
- ɵɵelementEnd();
1752
- ɵɵelementStart(4, "th");
1753
- ɵɵtext(5);
1754
- ɵɵpipe(6, "translate");
1755
- ɵɵelementEnd();
1756
- ɵɵelementStart(7, "th");
1757
- ɵɵtext(8);
1758
- ɵɵpipe(9, "translate");
1759
- ɵɵelementEnd();
1760
- ɵɵelementStart(10, "th");
1761
- ɵɵtext(11);
1762
- ɵɵpipe(12, "translate");
1763
- ɵɵelementEnd();
1764
- ɵɵelementStart(13, "th");
1765
- ɵɵtext(14);
1766
- ɵɵpipe(15, "translate");
1767
- ɵɵelementEnd();
1768
- ɵɵelementStart(16, "th");
1769
- ɵɵtext(17);
1770
- ɵɵpipe(18, "translate");
1771
- ɵɵelementEnd();
1772
- ɵɵelementEnd();
1701
+ i0.ɵɵelementStart(0, "tr");
1702
+ i0.ɵɵelementStart(1, "th");
1703
+ i0.ɵɵtext(2);
1704
+ i0.ɵɵpipe(3, "translate");
1705
+ i0.ɵɵelementEnd();
1706
+ i0.ɵɵelementStart(4, "th");
1707
+ i0.ɵɵtext(5);
1708
+ i0.ɵɵpipe(6, "translate");
1709
+ i0.ɵɵelementEnd();
1710
+ i0.ɵɵelementStart(7, "th");
1711
+ i0.ɵɵtext(8);
1712
+ i0.ɵɵpipe(9, "translate");
1713
+ i0.ɵɵelementEnd();
1714
+ i0.ɵɵelementStart(10, "th");
1715
+ i0.ɵɵtext(11);
1716
+ i0.ɵɵpipe(12, "translate");
1717
+ i0.ɵɵelementEnd();
1718
+ i0.ɵɵelementStart(13, "th");
1719
+ i0.ɵɵtext(14);
1720
+ i0.ɵɵpipe(15, "translate");
1721
+ i0.ɵɵelementEnd();
1722
+ i0.ɵɵelementStart(16, "th");
1723
+ i0.ɵɵtext(17);
1724
+ i0.ɵɵpipe(18, "translate");
1725
+ i0.ɵɵelementEnd();
1726
+ i0.ɵɵelementEnd();
1773
1727
  } if (rf & 2) {
1774
- ɵɵadvance(2);
1775
- ɵɵtextInterpolate(ɵɵpipeBind1(3, 6, "clave"));
1776
- ɵɵadvance(3);
1777
- ɵɵtextInterpolate(ɵɵpipeBind1(6, 8, "razonSocial"));
1778
- ɵɵadvance(3);
1779
- ɵɵtextInterpolate(ɵɵpipeBind1(9, 10, "tipo"));
1780
- ɵɵadvance(3);
1781
- ɵɵtextInterpolate(ɵɵpipeBind1(12, 12, "Cliente.limiteCredito"));
1782
- ɵɵadvance(3);
1783
- ɵɵtextInterpolate(ɵɵpipeBind1(15, 14, "Cliente.plazoCredito"));
1784
- ɵɵadvance(3);
1785
- ɵɵtextInterpolate(ɵɵpipeBind1(18, 16, "Cliente.diasPago"));
1728
+ i0.ɵɵadvance(2);
1729
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "clave"));
1730
+ i0.ɵɵadvance(3);
1731
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "razonSocial"));
1732
+ i0.ɵɵadvance(3);
1733
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
1734
+ i0.ɵɵadvance(3);
1735
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "Cliente.limiteCredito"));
1736
+ i0.ɵɵadvance(3);
1737
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "Cliente.plazoCredito"));
1738
+ i0.ɵɵadvance(3);
1739
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "Cliente.diasPago"));
1786
1740
  } }
1787
1741
  function SelectClienteComponent_ng_template_8_span_6_Template(rf, ctx) { if (rf & 1) {
1788
- ɵɵelementStart(0, "span");
1789
- ɵɵtext(1);
1790
- ɵɵpipe(2, "translate");
1791
- ɵɵelementEnd();
1742
+ i0.ɵɵelementStart(0, "span");
1743
+ i0.ɵɵtext(1);
1744
+ i0.ɵɵpipe(2, "translate");
1745
+ i0.ɵɵelementEnd();
1792
1746
  } if (rf & 2) {
1793
- ɵɵadvance(1);
1794
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "fisico"));
1747
+ i0.ɵɵadvance(1);
1748
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
1795
1749
  } }
1796
1750
  function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf & 1) {
1797
- ɵɵelementStart(0, "span");
1798
- ɵɵtext(1);
1799
- ɵɵpipe(2, "translate");
1800
- ɵɵelementEnd();
1751
+ i0.ɵɵelementStart(0, "span");
1752
+ i0.ɵɵtext(1);
1753
+ i0.ɵɵpipe(2, "translate");
1754
+ i0.ɵɵelementEnd();
1801
1755
  } if (rf & 2) {
1802
- ɵɵadvance(1);
1803
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "moral"));
1756
+ i0.ɵɵadvance(1);
1757
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
1804
1758
  } }
1805
1759
  function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1806
- ɵɵelementStart(0, "tr", 8);
1807
- ɵɵelementStart(1, "td");
1808
- ɵɵtext(2);
1809
- ɵɵelementEnd();
1810
- ɵɵelementStart(3, "td");
1811
- ɵɵtext(4);
1812
- ɵɵelementEnd();
1813
- ɵɵelementStart(5, "td");
1814
- ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9);
1815
- ɵɵtemplate(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
1816
- ɵɵelementEnd();
1817
- ɵɵelementStart(8, "td");
1818
- ɵɵtext(9);
1819
- ɵɵelementEnd();
1820
- ɵɵelementStart(10, "td");
1821
- ɵɵtext(11);
1822
- ɵɵelementEnd();
1823
- ɵɵelementStart(12, "td");
1824
- ɵɵtext(13);
1825
- ɵɵelementEnd();
1826
- ɵɵelementEnd();
1760
+ i0.ɵɵelementStart(0, "tr", 8);
1761
+ i0.ɵɵelementStart(1, "td");
1762
+ i0.ɵɵtext(2);
1763
+ i0.ɵɵelementEnd();
1764
+ i0.ɵɵelementStart(3, "td");
1765
+ i0.ɵɵtext(4);
1766
+ i0.ɵɵelementEnd();
1767
+ i0.ɵɵelementStart(5, "td");
1768
+ i0.ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9);
1769
+ i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
1770
+ i0.ɵɵelementEnd();
1771
+ i0.ɵɵelementStart(8, "td");
1772
+ i0.ɵɵtext(9);
1773
+ i0.ɵɵelementEnd();
1774
+ i0.ɵɵelementStart(10, "td");
1775
+ i0.ɵɵtext(11);
1776
+ i0.ɵɵelementEnd();
1777
+ i0.ɵɵelementStart(12, "td");
1778
+ i0.ɵɵtext(13);
1779
+ i0.ɵɵelementEnd();
1780
+ i0.ɵɵelementEnd();
1827
1781
  } if (rf & 2) {
1828
1782
  const cliente_r3 = ctx.$implicit;
1829
- ɵɵproperty("pSelectableRow", cliente_r3);
1830
- ɵɵadvance(2);
1831
- ɵɵtextInterpolate(cliente_r3.codigo);
1832
- ɵɵadvance(2);
1833
- ɵɵtextInterpolate(cliente_r3.descripcionRazonSocial);
1834
- ɵɵadvance(2);
1835
- ɵɵproperty("ngIf", cliente_r3.personaFisica);
1836
- ɵɵadvance(1);
1837
- ɵɵproperty("ngIf", cliente_r3.personaMoral);
1838
- ɵɵadvance(2);
1839
- ɵɵtextInterpolate(cliente_r3.limiteCredito);
1840
- ɵɵadvance(2);
1841
- ɵɵtextInterpolate(cliente_r3.plazoCredito);
1842
- ɵɵadvance(2);
1843
- ɵɵtextInterpolate(cliente_r3.diasPago);
1783
+ i0.ɵɵproperty("pSelectableRow", cliente_r3);
1784
+ i0.ɵɵadvance(2);
1785
+ i0.ɵɵtextInterpolate(cliente_r3.codigo);
1786
+ i0.ɵɵadvance(2);
1787
+ i0.ɵɵtextInterpolate(cliente_r3.descripcionRazonSocial);
1788
+ i0.ɵɵadvance(2);
1789
+ i0.ɵɵproperty("ngIf", cliente_r3.personaFisica);
1790
+ i0.ɵɵadvance(1);
1791
+ i0.ɵɵproperty("ngIf", cliente_r3.personaMoral);
1792
+ i0.ɵɵadvance(2);
1793
+ i0.ɵɵtextInterpolate(cliente_r3.limiteCredito);
1794
+ i0.ɵɵadvance(2);
1795
+ i0.ɵɵtextInterpolate(cliente_r3.plazoCredito);
1796
+ i0.ɵɵadvance(2);
1797
+ i0.ɵɵtextInterpolate(cliente_r3.diasPago);
1844
1798
  } }
1845
1799
  function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
1846
- ɵɵelementStart(0, "tr");
1847
- ɵɵelementStart(1, "td", 10);
1848
- ɵɵtext(2);
1849
- ɵɵpipe(3, "translate");
1850
- ɵɵelementEnd();
1851
- ɵɵelementEnd();
1800
+ i0.ɵɵelementStart(0, "tr");
1801
+ i0.ɵɵelementStart(1, "td", 10);
1802
+ i0.ɵɵtext(2);
1803
+ i0.ɵɵpipe(3, "translate");
1804
+ i0.ɵɵelementEnd();
1805
+ i0.ɵɵelementEnd();
1852
1806
  } if (rf & 2) {
1853
- ɵɵadvance(2);
1854
- ɵɵtextInterpolate(ɵɵpipeBind1(3, 1, "general.noRegistros"));
1807
+ i0.ɵɵadvance(2);
1808
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "general.noRegistros"));
1855
1809
  } }
1856
1810
  class SelectClienteComponent {
1857
1811
  constructor(clienteService, paginate) {
@@ -1908,38 +1862,38 @@ class SelectClienteComponent {
1908
1862
  this.visible = false;
1909
1863
  }
1910
1864
  }
1911
- /** @nocollapse */ SelectClienteComponent.ɵfac = function SelectClienteComponent_Factory(t) { return new (t || SelectClienteComponent)(ɵɵdirectiveInject(ClienteService), ɵɵdirectiveInject(PaginateService)); };
1912
- /** @nocollapse */ SelectClienteComponent.ɵcmp = ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars: 17, consts: [[3, "header", "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "scrollHeight", "350px", 3, "value", "lazy", "paginator", "rows", "totalRecords", "selection", "selectionMode", "scrollable", "loading", "onLazyLoad", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "pSelectableRow"], [4, "ngIf"], ["colspan", "6"]], template: function SelectClienteComponent_Template(rf, ctx) { if (rf & 1) {
1913
- ɵɵelementStart(0, "p-dialog", 0);
1914
- ɵɵlistener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
1915
- ɵɵpipe(1, "translate");
1916
- ɵɵelementStart(2, "div", 1);
1917
- ɵɵelementStart(3, "input", 2);
1918
- ɵɵlistener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
1919
- ɵɵpipe(4, "translate");
1920
- ɵɵelementEnd();
1921
- ɵɵelementStart(5, "button", 3);
1922
- ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
1923
- ɵɵelementEnd();
1924
- ɵɵelementEnd();
1925
- ɵɵelementStart(6, "p-table", 4);
1926
- ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); })("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.clienteSeleccionado = $event; })("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
1927
- ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5);
1928
- ɵɵtemplate(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6);
1929
- ɵɵtemplate(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
1930
- ɵɵelementEnd();
1931
- ɵɵelementEnd();
1865
+ /** @nocollapse */ SelectClienteComponent.ɵfac = function SelectClienteComponent_Factory(t) { return new (t || SelectClienteComponent)(i0.ɵɵdirectiveInject(ClienteService), i0.ɵɵdirectiveInject(PaginateService)); };
1866
+ /** @nocollapse */ SelectClienteComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars: 17, consts: [[3, "header", "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "scrollHeight", "350px", 3, "value", "lazy", "paginator", "rows", "totalRecords", "selection", "selectionMode", "scrollable", "loading", "onLazyLoad", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "pSelectableRow"], [4, "ngIf"], ["colspan", "6"]], template: function SelectClienteComponent_Template(rf, ctx) { if (rf & 1) {
1867
+ i0.ɵɵelementStart(0, "p-dialog", 0);
1868
+ i0.ɵɵlistener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
1869
+ i0.ɵɵpipe(1, "translate");
1870
+ i0.ɵɵelementStart(2, "div", 1);
1871
+ i0.ɵɵelementStart(3, "input", 2);
1872
+ i0.ɵɵlistener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
1873
+ i0.ɵɵpipe(4, "translate");
1874
+ i0.ɵɵelementEnd();
1875
+ i0.ɵɵelementStart(5, "button", 3);
1876
+ i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
1877
+ i0.ɵɵelementEnd();
1878
+ i0.ɵɵelementEnd();
1879
+ i0.ɵɵelementStart(6, "p-table", 4);
1880
+ i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); })("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.clienteSeleccionado = $event; })("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
1881
+ i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5);
1882
+ i0.ɵɵtemplate(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6);
1883
+ i0.ɵɵtemplate(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
1884
+ i0.ɵɵelementEnd();
1885
+ i0.ɵɵelementEnd();
1932
1886
  } if (rf & 2) {
1933
- ɵɵpropertyInterpolate("header", ɵɵpipeBind1(1, 13, "Seleccionar cliente "));
1934
- ɵɵproperty("visible", ctx.visible);
1935
- ɵɵadvance(3);
1936
- ɵɵpropertyInterpolate1("placeholder", "", ɵɵpipeBind1(4, 15, "buscar"), "...");
1937
- ɵɵproperty("ngModel", ctx.page.filtro);
1938
- ɵɵadvance(3);
1939
- ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1940
- ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
1941
- } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, SelectableRow, NgIf], pipes: [TranslatePipe], encapsulation: 2 });
1942
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectClienteComponent, [{
1887
+ i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 13, "Seleccionar cliente "));
1888
+ i0.ɵɵproperty("visible", ctx.visible);
1889
+ i0.ɵɵadvance(3);
1890
+ i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 15, "buscar"), "...");
1891
+ i0.ɵɵproperty("ngModel", ctx.page.filtro);
1892
+ i0.ɵɵadvance(3);
1893
+ i0.ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1894
+ i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
1895
+ } }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i8$1.SelectableRow, i8.NgIf], pipes: [i3.TranslatePipe], encapsulation: 2 });
1896
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
1943
1897
  type: Component,
1944
1898
  args: [{
1945
1899
  selector: 'select-cliente',
@@ -1968,81 +1922,66 @@ class Proveedor {
1968
1922
  }
1969
1923
  }
1970
1924
 
1971
- class ProveedorService {
1972
- constructor(api) {
1973
- this.api = api;
1974
- this.endpoint = 'proveedor';
1975
- }
1976
- getAll(params) {
1977
- return this.api.get(this.endpoint, params);
1978
- }
1979
- get(id) {
1980
- return this.api.get(`${this.endpoint}/${id}`);
1981
- }
1982
- save(obj) {
1983
- return this.api.post(this.endpoint, obj);
1984
- }
1985
- update(obj) {
1986
- return this.api.put(this.endpoint, obj.id, obj);
1987
- }
1988
- delete(id) {
1989
- return this.api.delete(this.endpoint, id);
1925
+ class ProveedorService extends CrudService {
1926
+ constructor(httpClient) {
1927
+ super(httpClient, '/proveedor');
1928
+ this.httpClient = httpClient;
1990
1929
  }
1991
1930
  }
1992
- /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(ApiService)); };
1993
- /** @nocollapse */ ProveedorService.ɵprov = ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
1994
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorService, [{
1931
+ /** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); };
1932
+ /** @nocollapse */ ProveedorService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
1933
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
1995
1934
  type: Injectable,
1996
1935
  args: [{
1997
1936
  providedIn: 'root'
1998
1937
  }]
1999
- }], function () { return [{ type: ApiService }]; }, null); })();
1938
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
2000
1939
 
2001
1940
  function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
2002
- ɵɵelementStart(0, "tr");
2003
- ɵɵelementStart(1, "th");
2004
- ɵɵtext(2);
2005
- ɵɵpipe(3, "translate");
2006
- ɵɵelementEnd();
2007
- ɵɵelementStart(4, "th");
2008
- ɵɵtext(5);
2009
- ɵɵpipe(6, "translate");
2010
- ɵɵelementEnd();
2011
- ɵɵelementStart(7, "th");
2012
- ɵɵtext(8);
2013
- ɵɵpipe(9, "translate");
2014
- ɵɵelementEnd();
2015
- ɵɵelementEnd();
1941
+ i0.ɵɵelementStart(0, "tr");
1942
+ i0.ɵɵelementStart(1, "th");
1943
+ i0.ɵɵtext(2);
1944
+ i0.ɵɵpipe(3, "translate");
1945
+ i0.ɵɵelementEnd();
1946
+ i0.ɵɵelementStart(4, "th");
1947
+ i0.ɵɵtext(5);
1948
+ i0.ɵɵpipe(6, "translate");
1949
+ i0.ɵɵelementEnd();
1950
+ i0.ɵɵelementStart(7, "th");
1951
+ i0.ɵɵtext(8);
1952
+ i0.ɵɵpipe(9, "translate");
1953
+ i0.ɵɵelementEnd();
1954
+ i0.ɵɵelementEnd();
2016
1955
  } if (rf & 2) {
2017
- ɵɵadvance(2);
2018
- ɵɵtextInterpolate(ɵɵpipeBind1(3, 3, "clave"));
2019
- ɵɵadvance(3);
2020
- ɵɵtextInterpolate(ɵɵpipeBind1(6, 5, "razonSocial"));
2021
- ɵɵadvance(3);
2022
- ɵɵtextInterpolate(ɵɵpipeBind1(9, 7, "rfc"));
1956
+ i0.ɵɵadvance(2);
1957
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "clave"));
1958
+ i0.ɵɵadvance(3);
1959
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 5, "razonSocial"));
1960
+ i0.ɵɵadvance(3);
1961
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, "rfc"));
2023
1962
  } }
2024
1963
  function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
2025
- ɵɵelementStart(0, "tr");
2026
- ɵɵelementStart(1, "td");
2027
- ɵɵtext(2);
2028
- ɵɵelementEnd();
2029
- ɵɵelementStart(3, "td");
2030
- ɵɵtext(4);
2031
- ɵɵelementEnd();
2032
- ɵɵelementStart(5, "td");
2033
- ɵɵtext(6);
2034
- ɵɵelementEnd();
2035
- ɵɵelementEnd();
1964
+ i0.ɵɵelementStart(0, "tr");
1965
+ i0.ɵɵelementStart(1, "td");
1966
+ i0.ɵɵtext(2);
1967
+ i0.ɵɵelementEnd();
1968
+ i0.ɵɵelementStart(3, "td");
1969
+ i0.ɵɵtext(4);
1970
+ i0.ɵɵelementEnd();
1971
+ i0.ɵɵelementStart(5, "td");
1972
+ i0.ɵɵtext(6);
1973
+ i0.ɵɵelementEnd();
1974
+ i0.ɵɵelementEnd();
2036
1975
  } if (rf & 2) {
2037
1976
  const proveedor_r2 = ctx.rowData;
2038
- ɵɵadvance(2);
2039
- ɵɵtextInterpolate(proveedor_r2.codigo);
2040
- ɵɵadvance(2);
2041
- ɵɵtextInterpolate(proveedor_r2.descripcionRazonSocial);
2042
- ɵɵadvance(2);
2043
- ɵɵtextInterpolate(proveedor_r2.descripcionRfc);
1977
+ i0.ɵɵadvance(2);
1978
+ i0.ɵɵtextInterpolate(proveedor_r2.codigo);
1979
+ i0.ɵɵadvance(2);
1980
+ i0.ɵɵtextInterpolate(proveedor_r2.descripcionRazonSocial);
1981
+ i0.ɵɵadvance(2);
1982
+ i0.ɵɵtextInterpolate(proveedor_r2.descripcionRfc);
2044
1983
  } }
2045
- const _c0$4 = function () { return [10, 25, 50, 100, 500]; };
1984
+ const _c0$3 = function () { return [10, 25, 50, 100, 500]; };
2046
1985
  class SelectProveedorComponent {
2047
1986
  constructor(proveedorService, paginanateService, translate) {
2048
1987
  this.proveedorService = proveedorService;
@@ -2082,47 +2021,47 @@ class SelectProveedorComponent {
2082
2021
  this.visible = false;
2083
2022
  }
2084
2023
  }
2085
- /** @nocollapse */ SelectProveedorComponent.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(ɵɵdirectiveInject(ProveedorService), ɵɵdirectiveInject(PaginateService), ɵɵdirectiveInject(TranslateService)); };
2086
- /** @nocollapse */ SelectProveedorComponent.ɵcmp = ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 16, consts: [[3, "header", "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "change"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "valueChange", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"]], template: function SelectProveedorComponent_Template(rf, ctx) { if (rf & 1) {
2087
- ɵɵelementStart(0, "p-dialog", 0);
2088
- ɵɵlistener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
2089
- ɵɵpipe(1, "translate");
2090
- ɵɵelementStart(2, "div", 1);
2091
- ɵɵelementStart(3, "input", 2);
2092
- ɵɵlistener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
2093
- ɵɵpipe(4, "translate");
2094
- ɵɵelementEnd();
2095
- ɵɵelementStart(5, "button", 3);
2096
- ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
2097
- ɵɵelementEnd();
2098
- ɵɵelementEnd();
2099
- ɵɵelementStart(6, "p-table", 4);
2100
- ɵɵlistener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { return ctx.proveedores = $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.proveedorSeleccionado = $event; })("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
2101
- ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5);
2102
- ɵɵtemplate(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
2103
- ɵɵelementEnd();
2104
- ɵɵelementStart(9, "p-paginator", 7);
2105
- ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
2106
- ɵɵelementEnd();
2107
- ɵɵelementEnd();
2024
+ /** @nocollapse */ SelectProveedorComponent.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
2025
+ /** @nocollapse */ SelectProveedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 16, consts: [[3, "header", "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "change"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "valueChange", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"]], template: function SelectProveedorComponent_Template(rf, ctx) { if (rf & 1) {
2026
+ i0.ɵɵelementStart(0, "p-dialog", 0);
2027
+ i0.ɵɵlistener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
2028
+ i0.ɵɵpipe(1, "translate");
2029
+ i0.ɵɵelementStart(2, "div", 1);
2030
+ i0.ɵɵelementStart(3, "input", 2);
2031
+ i0.ɵɵlistener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { return ctx.page.filtro = $event; })("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
2032
+ i0.ɵɵpipe(4, "translate");
2033
+ i0.ɵɵelementEnd();
2034
+ i0.ɵɵelementStart(5, "button", 3);
2035
+ i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
2036
+ i0.ɵɵelementEnd();
2037
+ i0.ɵɵelementEnd();
2038
+ i0.ɵɵelementStart(6, "p-table", 4);
2039
+ i0.ɵɵlistener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { return ctx.proveedores = $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { return ctx.proveedorSeleccionado = $event; })("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
2040
+ i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5);
2041
+ i0.ɵɵtemplate(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
2042
+ i0.ɵɵelementEnd();
2043
+ i0.ɵɵelementStart(9, "p-paginator", 7);
2044
+ i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
2045
+ i0.ɵɵelementEnd();
2046
+ i0.ɵɵelementEnd();
2108
2047
  } if (rf & 2) {
2109
- ɵɵpropertyInterpolate("header", ɵɵpipeBind1(1, 11, "ArticuloProveedor.proveedores"));
2110
- ɵɵproperty("visible", ctx.visible);
2111
- ɵɵadvance(3);
2112
- ɵɵpropertyInterpolate1("placeholder", "", ɵɵpipeBind1(4, 13, "buscar"), "...");
2113
- ɵɵproperty("ngModel", ctx.page.filtro);
2114
- ɵɵadvance(3);
2115
- ɵɵproperty("value", ctx.proveedores)("selection", ctx.proveedorSeleccionado)("scrollable", true);
2116
- ɵɵadvance(3);
2117
- ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(15, _c0$4));
2118
- } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator], pipes: [TranslatePipe], encapsulation: 2 });
2119
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectProveedorComponent, [{
2048
+ i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 11, "ArticuloProveedor.proveedores"));
2049
+ i0.ɵɵproperty("visible", ctx.visible);
2050
+ i0.ɵɵadvance(3);
2051
+ i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 13, "buscar"), "...");
2052
+ i0.ɵɵproperty("ngModel", ctx.page.filtro);
2053
+ i0.ɵɵadvance(3);
2054
+ i0.ɵɵproperty("value", ctx.proveedores)("selection", ctx.proveedorSeleccionado)("scrollable", true);
2055
+ i0.ɵɵadvance(3);
2056
+ i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(15, _c0$3));
2057
+ } }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i10.Paginator], pipes: [i3.TranslatePipe], encapsulation: 2 });
2058
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
2120
2059
  type: Component,
2121
2060
  args: [{
2122
2061
  templateUrl: 'select-proveedor.component.html',
2123
2062
  selector: 'select-proveedor'
2124
2063
  }]
2125
- }], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: TranslateService }]; }, { visible: [{
2064
+ }], function () { return [{ type: ProveedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
2126
2065
  type: Input
2127
2066
  }], proveedorSeleccionado: [{
2128
2067
  type: Input
@@ -2130,51 +2069,34 @@ class SelectProveedorComponent {
2130
2069
  type: Output
2131
2070
  }] }); })();
2132
2071
 
2133
- class AlmacenService {
2134
- constructor(api) {
2135
- this.api = api;
2136
- this.endpoint = 'almacen';
2137
- }
2138
- getAll(params) {
2139
- return this.api.get(this.endpoint, params);
2072
+ class AlmacenService extends CrudService {
2073
+ constructor(httpClient) {
2074
+ super(httpClient, '/almacen');
2075
+ this.httpClient = httpClient;
2140
2076
  }
2141
2077
  obtenerAlmacenEmpresa() {
2142
- return this.api.get(`${this.endpoint}/obtenerAlmacenEmpresa`);
2143
- }
2144
- get(id) {
2145
- return this.api.get(`${this.endpoint}/${id}`);
2146
- }
2147
- save(obj) {
2148
- return this.api.post(this.endpoint, obj);
2149
- }
2150
- update(obj) {
2151
- return this.api.put(this.endpoint, obj.id, obj);
2152
- }
2153
- delete(id) {
2154
- return this.api.delete(this.endpoint, id);
2078
+ let url = this.geturl() + '/obtenerAlmacenEmpresa';
2079
+ return this.getHttp().get(url, this.buildAuth());
2155
2080
  }
2156
2081
  }
2157
- /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(ApiService)); };
2158
- /** @nocollapse */ AlmacenService.ɵprov = ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
2159
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AlmacenService, [{
2082
+ /** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(i0.ɵɵinject(i1.HttpClient)); };
2083
+ /** @nocollapse */ AlmacenService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
2084
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlmacenService, [{
2160
2085
  type: Injectable,
2161
2086
  args: [{
2162
2087
  providedIn: 'root'
2163
2088
  }]
2164
- }], function () { return [{ type: ApiService }]; }, null); })();
2089
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
2165
2090
 
2166
- class StockService {
2167
- constructor(api) {
2168
- this.api = api;
2169
- this.endpoint = 'stock';
2170
- }
2171
- getAll(params) {
2172
- return this.api.get(this.endpoint, params);
2091
+ class StockService extends CrudService {
2092
+ constructor(httpClient) {
2093
+ super(httpClient, 'stock');
2094
+ this.httpClient = httpClient;
2173
2095
  }
2174
2096
  obtenerExistenciasArticulosDescripcion(parametros, params) {
2175
- const url = `${this.endpoint}/obtenerExistenciasArticulos`;
2097
+ const url = this.getBaseUrl() + '/stock/obtenerExistenciasArticulos';
2176
2098
  let promesa = new Promise((resolve, reject) => {
2177
- this.api.post(url, parametros).subscribe((data) => {
2099
+ this.httpClient.post(url + this.serializeParams(params), parametros, this.buildAuth()).subscribe((data) => {
2178
2100
  resolve(data);
2179
2101
  }, (err) => {
2180
2102
  reject(err);
@@ -2183,115 +2105,100 @@ class StockService {
2183
2105
  return promesa;
2184
2106
  }
2185
2107
  }
2186
- /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(ApiService)); };
2187
- /** @nocollapse */ StockService.ɵprov = ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
2188
- /*@__PURE__*/ (function () { ɵsetClassMetadata(StockService, [{
2108
+ /** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(i0.ɵɵinject(i1.HttpClient)); };
2109
+ /** @nocollapse */ StockService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
2110
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StockService, [{
2189
2111
  type: Injectable,
2190
2112
  args: [{
2191
2113
  providedIn: 'root'
2192
2114
  }]
2193
- }], function () { return [{ type: ApiService }]; }, null); })();
2115
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
2194
2116
 
2195
- class ArticuloInformacionService {
2196
- constructor(api) {
2197
- this.api = api;
2198
- this.endpoint = 'articulo';
2199
- }
2200
- getAll(params) {
2201
- return this.api.get(this.endpoint, params);
2117
+ class ArticuloInformacionService extends CrudService {
2118
+ constructor(httpClient) {
2119
+ super(httpClient, 'articulo');
2120
+ this.httpClient = httpClient;
2202
2121
  }
2203
2122
  obtenerExistencias(articulo) {
2204
2123
  let uRL = "/existenciasArticulo/" + articulo;
2205
- return this.api.get(`${this.endpoint}${uRL}`);
2206
- }
2207
- get(id) {
2208
- return this.api.get(`${this.endpoint}/${id}`);
2209
- }
2210
- save(obj) {
2211
- return this.api.post(this.endpoint, obj);
2212
- }
2213
- update(obj) {
2214
- return this.api.put(this.endpoint, obj.id, obj);
2215
- }
2216
- delete(id) {
2217
- return this.api.delete(this.endpoint, id);
2124
+ return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
2218
2125
  }
2219
2126
  }
2220
- /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(ApiService)); };
2221
- /** @nocollapse */ ArticuloInformacionService.ɵprov = ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
2222
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ArticuloInformacionService, [{
2127
+ /** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(i0.ɵɵinject(i1.HttpClient)); };
2128
+ /** @nocollapse */ ArticuloInformacionService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
2129
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArticuloInformacionService, [{
2223
2130
  type: Injectable,
2224
2131
  args: [{
2225
2132
  providedIn: 'root'
2226
2133
  }]
2227
- }], function () { return [{ type: ApiService }]; }, null); })();
2134
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
2228
2135
 
2229
2136
  function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
2230
- ɵɵelement(0, "col");
2137
+ i0.ɵɵelement(0, "col");
2231
2138
  } if (rf & 2) {
2232
2139
  const col_r5 = ctx.$implicit;
2233
- ɵɵstyleProp("width", col_r5.width);
2140
+ i0.ɵɵstyleProp("width", col_r5.width);
2234
2141
  } }
2235
2142
  function SeleccionArticuloInformacionComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
2236
- ɵɵelementStart(0, "colgroup");
2237
- ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template, 1, 2, "col", 7);
2238
- ɵɵelementEnd();
2143
+ i0.ɵɵelementStart(0, "colgroup");
2144
+ i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template, 1, 2, "col", 7);
2145
+ i0.ɵɵelementEnd();
2239
2146
  } if (rf & 2) {
2240
2147
  const columns_r3 = ctx.$implicit;
2241
- ɵɵadvance(1);
2242
- ɵɵproperty("ngForOf", columns_r3);
2148
+ i0.ɵɵadvance(1);
2149
+ i0.ɵɵproperty("ngForOf", columns_r3);
2243
2150
  } }
2244
2151
  function SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template(rf, ctx) { if (rf & 1) {
2245
- ɵɵelementStart(0, "th", 9);
2246
- ɵɵtext(1);
2247
- ɵɵelementEnd();
2152
+ i0.ɵɵelementStart(0, "th", 9);
2153
+ i0.ɵɵtext(1);
2154
+ i0.ɵɵelementEnd();
2248
2155
  } if (rf & 2) {
2249
2156
  const col_r8 = ctx.$implicit;
2250
- ɵɵadvance(1);
2251
- ɵɵtextInterpolate1(" ", col_r8.header, " ");
2157
+ i0.ɵɵadvance(1);
2158
+ i0.ɵɵtextInterpolate1(" ", col_r8.header, " ");
2252
2159
  } }
2253
2160
  function SeleccionArticuloInformacionComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
2254
- ɵɵelementStart(0, "tr");
2255
- ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template, 2, 1, "th", 8);
2256
- ɵɵelementEnd();
2161
+ i0.ɵɵelementStart(0, "tr");
2162
+ i0.ɵɵtemplate(1, SeleccionArticuloInformacionComponent_ng_template_3_th_1_Template, 2, 1, "th", 8);
2163
+ i0.ɵɵelementEnd();
2257
2164
  } if (rf & 2) {
2258
2165
  const columns_r6 = ctx.$implicit;
2259
- ɵɵadvance(1);
2260
- ɵɵproperty("ngForOf", columns_r6);
2166
+ i0.ɵɵadvance(1);
2167
+ i0.ɵɵproperty("ngForOf", columns_r6);
2261
2168
  } }
2262
2169
  function SeleccionArticuloInformacionComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
2263
- ɵɵelementStart(0, "tr");
2264
- ɵɵelementStart(1, "td");
2265
- ɵɵtext(2);
2266
- ɵɵelementEnd();
2267
- ɵɵelementStart(3, "td");
2268
- ɵɵtext(4);
2269
- ɵɵelementEnd();
2270
- ɵɵelementStart(5, "td");
2271
- ɵɵtext(6);
2272
- ɵɵelementEnd();
2273
- ɵɵelementStart(7, "td");
2274
- ɵɵtext(8);
2275
- ɵɵelementEnd();
2276
- ɵɵelementStart(9, "td");
2277
- ɵɵtext(10);
2278
- ɵɵelementEnd();
2279
- ɵɵelementEnd();
2170
+ i0.ɵɵelementStart(0, "tr");
2171
+ i0.ɵɵelementStart(1, "td");
2172
+ i0.ɵɵtext(2);
2173
+ i0.ɵɵelementEnd();
2174
+ i0.ɵɵelementStart(3, "td");
2175
+ i0.ɵɵtext(4);
2176
+ i0.ɵɵelementEnd();
2177
+ i0.ɵɵelementStart(5, "td");
2178
+ i0.ɵɵtext(6);
2179
+ i0.ɵɵelementEnd();
2180
+ i0.ɵɵelementStart(7, "td");
2181
+ i0.ɵɵtext(8);
2182
+ i0.ɵɵelementEnd();
2183
+ i0.ɵɵelementStart(9, "td");
2184
+ i0.ɵɵtext(10);
2185
+ i0.ɵɵelementEnd();
2186
+ i0.ɵɵelementEnd();
2280
2187
  } if (rf & 2) {
2281
2188
  const rowData_r9 = ctx.$implicit;
2282
- ɵɵadvance(2);
2283
- ɵɵtextInterpolate(rowData_r9.almacenCodigo);
2284
- ɵɵadvance(2);
2285
- ɵɵtextInterpolate(rowData_r9.almacenDescripcion);
2286
- ɵɵadvance(2);
2287
- ɵɵtextInterpolate(rowData_r9.ubicacionCodigo);
2288
- ɵɵadvance(2);
2289
- ɵɵtextInterpolate(rowData_r9.ubicacionDescripcion);
2290
- ɵɵadvance(2);
2291
- ɵɵtextInterpolate(rowData_r9.existencia);
2189
+ i0.ɵɵadvance(2);
2190
+ i0.ɵɵtextInterpolate(rowData_r9.almacenCodigo);
2191
+ i0.ɵɵadvance(2);
2192
+ i0.ɵɵtextInterpolate(rowData_r9.almacenDescripcion);
2193
+ i0.ɵɵadvance(2);
2194
+ i0.ɵɵtextInterpolate(rowData_r9.ubicacionCodigo);
2195
+ i0.ɵɵadvance(2);
2196
+ i0.ɵɵtextInterpolate(rowData_r9.ubicacionDescripcion);
2197
+ i0.ɵɵadvance(2);
2198
+ i0.ɵɵtextInterpolate(rowData_r9.existencia);
2292
2199
  } }
2293
- const _c0$5 = function (a0) { return { "width": a0, "min-width": "200px" }; };
2294
- const _c1$2 = function () { return { width: "600px" }; };
2200
+ const _c0$2 = function (a0) { return { "width": a0, "min-width": "200px" }; };
2201
+ const _c1$1 = function () { return { width: "600px" }; };
2295
2202
  class SeleccionArticuloInformacionComponent {
2296
2203
  constructor(articuloInformacionService) {
2297
2204
  this.articuloInformacionService = articuloInformacionService;
@@ -2332,31 +2239,31 @@ class SeleccionArticuloInformacionComponent {
2332
2239
  this.eventSelection.emit({ status: false, ubicacion: ubicacionRow });
2333
2240
  }
2334
2241
  }
2335
- /** @nocollapse */ SeleccionArticuloInformacionComponent.ɵfac = function SeleccionArticuloInformacionComponent_Factory(t) { return new (t || SeleccionArticuloInformacionComponent)(ɵɵdirectiveInject(ArticuloInformacionService)); };
2336
- /** @nocollapse */ SeleccionArticuloInformacionComponent.ɵcmp = ɵɵdefineComponent({ type: SeleccionArticuloInformacionComponent, selectors: [["lib-seleccion-articulo-informacion"]], inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, decls: 8, vars: 20, consts: [[3, "header", "visible", "modal", "minY", "baseZIndex", "draggable", "blockScroll", "maximizable", "breakpoint", "onShow", "visibleChange", "onHide", "resize"], ["scrollHeight", "350px", 3, "columns", "value", "scrollable", "responsive"], ["pTemplate", "colgroup"], ["pTemplate", "header"], ["pTemplate", "body"], [1, "container-end"], ["pButton", "", "type", "button", "icon", "pi pi-replay", "label", "Cerrar", 1, "ui-button-raised", "ui-button-secondary", 3, "click"], [3, "width", 4, "ngFor", "ngForOf"], ["pResizableColumn", "", 4, "ngFor", "ngForOf"], ["pResizableColumn", ""]], template: function SeleccionArticuloInformacionComponent_Template(rf, ctx) { if (rf & 1) {
2337
- ɵɵelementStart(0, "p-dialog", 0);
2338
- ɵɵlistener("onShow", function SeleccionArticuloInformacionComponent_Template_p_dialog_onShow_0_listener() { return ctx.OnShow(); })("visibleChange", function SeleccionArticuloInformacionComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showModal = $event; })("onHide", function SeleccionArticuloInformacionComponent_Template_p_dialog_onHide_0_listener() { return ctx.hiddenDialog(); })("resize", function SeleccionArticuloInformacionComponent_Template_p_dialog_resize_0_listener($event) { return ctx.OnResize($event); }, false, ɵɵresolveWindow);
2339
- ɵɵelementStart(1, "p-table", 1);
2340
- ɵɵtemplate(2, SeleccionArticuloInformacionComponent_ng_template_2_Template, 2, 1, "ng-template", 2);
2341
- ɵɵtemplate(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
2342
- ɵɵtemplate(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
2343
- ɵɵelementEnd();
2344
- ɵɵelementStart(5, "p-footer");
2345
- ɵɵelementStart(6, "div", 5);
2346
- ɵɵelementStart(7, "button", 6);
2347
- ɵɵlistener("click", function SeleccionArticuloInformacionComponent_Template_button_click_7_listener() { return ctx.hiddenDialog(); });
2348
- ɵɵelementEnd();
2349
- ɵɵelementEnd();
2350
- ɵɵelementEnd();
2351
- ɵɵelementEnd();
2242
+ /** @nocollapse */ SeleccionArticuloInformacionComponent.ɵfac = function SeleccionArticuloInformacionComponent_Factory(t) { return new (t || SeleccionArticuloInformacionComponent)(i0.ɵɵdirectiveInject(ArticuloInformacionService)); };
2243
+ /** @nocollapse */ SeleccionArticuloInformacionComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionArticuloInformacionComponent, selectors: [["lib-seleccion-articulo-informacion"]], inputs: { showModal: "showModal", articulo: "articulo" }, outputs: { eventSelection: "eventSelection" }, decls: 8, vars: 20, consts: [[3, "header", "visible", "modal", "minY", "baseZIndex", "draggable", "blockScroll", "maximizable", "breakpoint", "onShow", "visibleChange", "onHide", "resize"], ["scrollHeight", "350px", 3, "columns", "value", "scrollable", "responsive"], ["pTemplate", "colgroup"], ["pTemplate", "header"], ["pTemplate", "body"], [1, "container-end"], ["pButton", "", "type", "button", "icon", "pi pi-replay", "label", "Cerrar", 1, "ui-button-raised", "ui-button-secondary", 3, "click"], [3, "width", 4, "ngFor", "ngForOf"], ["pResizableColumn", "", 4, "ngFor", "ngForOf"], ["pResizableColumn", ""]], template: function SeleccionArticuloInformacionComponent_Template(rf, ctx) { if (rf & 1) {
2244
+ i0.ɵɵelementStart(0, "p-dialog", 0);
2245
+ i0.ɵɵlistener("onShow", function SeleccionArticuloInformacionComponent_Template_p_dialog_onShow_0_listener() { return ctx.OnShow(); })("visibleChange", function SeleccionArticuloInformacionComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showModal = $event; })("onHide", function SeleccionArticuloInformacionComponent_Template_p_dialog_onHide_0_listener() { return ctx.hiddenDialog(); })("resize", function SeleccionArticuloInformacionComponent_Template_p_dialog_resize_0_listener($event) { return ctx.OnResize($event); }, false, i0.ɵɵresolveWindow);
2246
+ i0.ɵɵelementStart(1, "p-table", 1);
2247
+ i0.ɵɵtemplate(2, SeleccionArticuloInformacionComponent_ng_template_2_Template, 2, 1, "ng-template", 2);
2248
+ i0.ɵɵtemplate(3, SeleccionArticuloInformacionComponent_ng_template_3_Template, 2, 1, "ng-template", 3);
2249
+ i0.ɵɵtemplate(4, SeleccionArticuloInformacionComponent_ng_template_4_Template, 11, 5, "ng-template", 4);
2250
+ i0.ɵɵelementEnd();
2251
+ i0.ɵɵelementStart(5, "p-footer");
2252
+ i0.ɵɵelementStart(6, "div", 5);
2253
+ i0.ɵɵelementStart(7, "button", 6);
2254
+ i0.ɵɵlistener("click", function SeleccionArticuloInformacionComponent_Template_button_click_7_listener() { return ctx.hiddenDialog(); });
2255
+ i0.ɵɵelementEnd();
2256
+ i0.ɵɵelementEnd();
2257
+ i0.ɵɵelementEnd();
2258
+ i0.ɵɵelementEnd();
2352
2259
  } if (rf & 2) {
2353
- ɵɵstyleMap(ɵɵpureFunction1(17, _c0$5, ctx.size + "px"));
2354
- ɵɵproperty("header", ctx.titulo)("visible", ctx.showModal)("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
2355
- ɵɵadvance(1);
2356
- ɵɵstyleMap(ɵɵpureFunction0(19, _c1$2));
2357
- ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
2358
- } }, directives: [Dialog, Table, PrimeTemplate, Footer, ButtonDirective, NgForOf, ResizableColumn], styles: [""] });
2359
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2260
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(17, _c0$2, ctx.size + "px"));
2261
+ i0.ɵɵproperty("header", ctx.titulo)("visible", ctx.showModal)("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
2262
+ i0.ɵɵadvance(1);
2263
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(19, _c1$1));
2264
+ i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
2265
+ } }, directives: [i4$2.Dialog, i8$1.Table, i4$1.PrimeTemplate, i4$1.Footer, i7.ButtonDirective, i8.NgForOf, i8$1.ResizableColumn], styles: [""] });
2266
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2360
2267
  type: Component,
2361
2268
  args: [{
2362
2269
  selector: 'lib-seleccion-articulo-informacion',
@@ -2372,321 +2279,321 @@ class SeleccionArticuloInformacionComponent {
2372
2279
  }] }); })();
2373
2280
 
2374
2281
  function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
2375
- ɵɵelementStart(0, "option", 22);
2376
- ɵɵtext(1);
2377
- ɵɵelementEnd();
2282
+ i0.ɵɵelementStart(0, "option", 22);
2283
+ i0.ɵɵtext(1);
2284
+ i0.ɵɵelementEnd();
2378
2285
  } if (rf & 2) {
2379
2286
  const almacen_r5 = ctx.$implicit;
2380
- ɵɵpropertyInterpolate("value", almacen_r5.id);
2381
- ɵɵadvance(1);
2382
- ɵɵtextInterpolate(almacen_r5.descripcion);
2287
+ i0.ɵɵpropertyInterpolate("value", almacen_r5.id);
2288
+ i0.ɵɵadvance(1);
2289
+ i0.ɵɵtextInterpolate(almacen_r5.descripcion);
2383
2290
  } }
2384
2291
  function SeleccionaArticuloComponent_ng_template_26_th_7_Template(rf, ctx) { if (rf & 1) {
2385
- ɵɵelementStart(0, "th", 31);
2386
- ɵɵtext(1, "existenciaSecundaria");
2387
- ɵɵelementEnd();
2292
+ i0.ɵɵelementStart(0, "th", 31);
2293
+ i0.ɵɵtext(1, "existenciaSecundaria");
2294
+ i0.ɵɵelementEnd();
2388
2295
  } }
2389
2296
  function SeleccionaArticuloComponent_ng_template_26_th_8_Template(rf, ctx) { if (rf & 1) {
2390
- ɵɵelementStart(0, "th", 25);
2391
- ɵɵtext(1, "Unidad");
2392
- ɵɵelementEnd();
2297
+ i0.ɵɵelementStart(0, "th", 25);
2298
+ i0.ɵɵtext(1, "Unidad");
2299
+ i0.ɵɵelementEnd();
2393
2300
  } }
2394
2301
  function SeleccionaArticuloComponent_ng_template_26_th_14_Template(rf, ctx) { if (rf & 1) {
2395
- ɵɵelementStart(0, "th", 23);
2396
- ɵɵtext(1, "Precio");
2397
- ɵɵelementEnd();
2302
+ i0.ɵɵelementStart(0, "th", 23);
2303
+ i0.ɵɵtext(1, "Precio");
2304
+ i0.ɵɵelementEnd();
2398
2305
  } }
2399
2306
  function SeleccionaArticuloComponent_ng_template_26_th_15_Template(rf, ctx) { if (rf & 1) {
2400
- ɵɵelementStart(0, "th", 23);
2401
- ɵɵtext(1, "Precio 2");
2402
- ɵɵelementEnd();
2307
+ i0.ɵɵelementStart(0, "th", 23);
2308
+ i0.ɵɵtext(1, "Precio 2");
2309
+ i0.ɵɵelementEnd();
2403
2310
  } }
2404
2311
  function SeleccionaArticuloComponent_ng_template_26_th_16_Template(rf, ctx) { if (rf & 1) {
2405
- ɵɵelementStart(0, "th", 23);
2406
- ɵɵtext(1, "Precio 3");
2407
- ɵɵelementEnd();
2312
+ i0.ɵɵelementStart(0, "th", 23);
2313
+ i0.ɵɵtext(1, "Precio 3");
2314
+ i0.ɵɵelementEnd();
2408
2315
  } }
2409
2316
  function SeleccionaArticuloComponent_ng_template_26_th_17_Template(rf, ctx) { if (rf & 1) {
2410
- ɵɵelementStart(0, "th", 23);
2411
- ɵɵtext(1, "Precio 4");
2412
- ɵɵelementEnd();
2317
+ i0.ɵɵelementStart(0, "th", 23);
2318
+ i0.ɵɵtext(1, "Precio 4");
2319
+ i0.ɵɵelementEnd();
2413
2320
  } }
2414
2321
  function SeleccionaArticuloComponent_ng_template_26_th_18_Template(rf, ctx) { if (rf & 1) {
2415
- ɵɵelementStart(0, "th", 23);
2416
- ɵɵtext(1, "Precio 5");
2417
- ɵɵelementEnd();
2322
+ i0.ɵɵelementStart(0, "th", 23);
2323
+ i0.ɵɵtext(1, "Precio 5");
2324
+ i0.ɵɵelementEnd();
2418
2325
  } }
2419
2326
  function SeleccionaArticuloComponent_ng_template_26_th_19_Template(rf, ctx) { if (rf & 1) {
2420
- ɵɵelementStart(0, "th", 25);
2421
- ɵɵtext(1, "Movimiento.costo");
2422
- ɵɵelementEnd();
2327
+ i0.ɵɵelementStart(0, "th", 25);
2328
+ i0.ɵɵtext(1, "Movimiento.costo");
2329
+ i0.ɵɵelementEnd();
2423
2330
  } }
2424
2331
  function SeleccionaArticuloComponent_ng_template_26_th_22_Template(rf, ctx) { if (rf & 1) {
2425
- ɵɵelementStart(0, "th", 23);
2426
- ɵɵtext(1);
2427
- ɵɵelementEnd();
2332
+ i0.ɵɵelementStart(0, "th", 23);
2333
+ i0.ɵɵtext(1);
2334
+ i0.ɵɵelementEnd();
2428
2335
  } if (rf & 2) {
2429
2336
  const item_r15 = ctx.$implicit;
2430
- ɵɵadvance(1);
2431
- ɵɵtextInterpolate(item_r15.descripcion);
2337
+ i0.ɵɵadvance(1);
2338
+ i0.ɵɵtextInterpolate(item_r15.descripcion);
2432
2339
  } }
2433
2340
  function SeleccionaArticuloComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
2434
- ɵɵelementStart(0, "tr");
2435
- ɵɵelementStart(1, "th", 23);
2436
- ɵɵtext(2, "C\u00F3digo Ubicacion");
2437
- ɵɵelementEnd();
2438
- ɵɵelementStart(3, "th", 24);
2439
- ɵɵtext(4, "Existencia");
2440
- ɵɵelementEnd();
2441
- ɵɵelementStart(5, "th", 25);
2442
- ɵɵtext(6, "Unidad");
2443
- ɵɵelementEnd();
2444
- ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26);
2445
- ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
2446
- ɵɵelementStart(9, "th", 23);
2447
- ɵɵtext(10, "C\u00F3digo");
2448
- ɵɵelementEnd();
2449
- ɵɵelementStart(11, "th", 28);
2450
- ɵɵtext(12, "Descripcion");
2451
- ɵɵelementEnd();
2452
- ɵɵelement(13, "th", 25);
2453
- ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29);
2454
- ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29);
2455
- ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29);
2456
- ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29);
2457
- ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29);
2458
- ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
2459
- ɵɵelementStart(20, "th", 25);
2460
- ɵɵtext(21, "Existencia por Unidad");
2461
- ɵɵelementEnd();
2462
- ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_26_th_22_Template, 2, 1, "th", 30);
2463
- ɵɵelementEnd();
2341
+ i0.ɵɵelementStart(0, "tr");
2342
+ i0.ɵɵelementStart(1, "th", 23);
2343
+ i0.ɵɵtext(2, "C\u00F3digo Ubicacion");
2344
+ i0.ɵɵelementEnd();
2345
+ i0.ɵɵelementStart(3, "th", 24);
2346
+ i0.ɵɵtext(4, "Existencia");
2347
+ i0.ɵɵelementEnd();
2348
+ i0.ɵɵelementStart(5, "th", 25);
2349
+ i0.ɵɵtext(6, "Unidad");
2350
+ i0.ɵɵelementEnd();
2351
+ i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_26_th_7_Template, 2, 0, "th", 26);
2352
+ i0.ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_26_th_8_Template, 2, 0, "th", 27);
2353
+ i0.ɵɵelementStart(9, "th", 23);
2354
+ i0.ɵɵtext(10, "C\u00F3digo");
2355
+ i0.ɵɵelementEnd();
2356
+ i0.ɵɵelementStart(11, "th", 28);
2357
+ i0.ɵɵtext(12, "Descripcion");
2358
+ i0.ɵɵelementEnd();
2359
+ i0.ɵɵelement(13, "th", 25);
2360
+ i0.ɵɵtemplate(14, SeleccionaArticuloComponent_ng_template_26_th_14_Template, 2, 0, "th", 29);
2361
+ i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_26_th_15_Template, 2, 0, "th", 29);
2362
+ i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_26_th_16_Template, 2, 0, "th", 29);
2363
+ i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_26_th_17_Template, 2, 0, "th", 29);
2364
+ i0.ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_26_th_18_Template, 2, 0, "th", 29);
2365
+ i0.ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_26_th_19_Template, 2, 0, "th", 27);
2366
+ i0.ɵɵelementStart(20, "th", 25);
2367
+ i0.ɵɵtext(21, "Existencia por Unidad");
2368
+ i0.ɵɵelementEnd();
2369
+ i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_26_th_22_Template, 2, 1, "th", 30);
2370
+ i0.ɵɵelementEnd();
2464
2371
  } if (rf & 2) {
2465
- const ctx_r2 = ɵɵnextContext();
2466
- ɵɵadvance(7);
2467
- ɵɵproperty("ngIf", ctx_r2.manejaUnidadSecundaria);
2468
- ɵɵadvance(1);
2469
- ɵɵproperty("ngIf", ctx_r2.manejaUnidadSecundaria);
2470
- ɵɵadvance(6);
2471
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2472
- ɵɵadvance(1);
2473
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2474
- ɵɵadvance(1);
2475
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2476
- ɵɵadvance(1);
2477
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2478
- ɵɵadvance(1);
2479
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2480
- ɵɵadvance(1);
2481
- ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio === "costo");
2482
- ɵɵadvance(3);
2483
- ɵɵproperty("ngForOf", ctx_r2.clasificadorList);
2372
+ const ctx_r2 = i0.ɵɵnextContext();
2373
+ i0.ɵɵadvance(7);
2374
+ i0.ɵɵproperty("ngIf", ctx_r2.manejaUnidadSecundaria);
2375
+ i0.ɵɵadvance(1);
2376
+ i0.ɵɵproperty("ngIf", ctx_r2.manejaUnidadSecundaria);
2377
+ i0.ɵɵadvance(6);
2378
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2379
+ i0.ɵɵadvance(1);
2380
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2381
+ i0.ɵɵadvance(1);
2382
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2383
+ i0.ɵɵadvance(1);
2384
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2385
+ i0.ɵɵadvance(1);
2386
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio !== "costo");
2387
+ i0.ɵɵadvance(1);
2388
+ i0.ɵɵproperty("ngIf", ctx_r2.configuracion.tipoPrecio === "costo");
2389
+ i0.ɵɵadvance(3);
2390
+ i0.ɵɵproperty("ngForOf", ctx_r2.clasificadorList);
2484
2391
  } }
2485
2392
  function SeleccionaArticuloComponent_ng_template_27_td_1_Template(rf, ctx) { if (rf & 1) {
2486
- ɵɵelementStart(0, "td", 23);
2487
- ɵɵtext(1, "Movimiento.NoAsignado");
2488
- ɵɵelementEnd();
2393
+ i0.ɵɵelementStart(0, "td", 23);
2394
+ i0.ɵɵtext(1, "Movimiento.NoAsignado");
2395
+ i0.ɵɵelementEnd();
2489
2396
  } }
2490
2397
  function SeleccionaArticuloComponent_ng_template_27_td_2_Template(rf, ctx) { if (rf & 1) {
2491
- ɵɵelementStart(0, "td", 39);
2492
- ɵɵtext(1);
2493
- ɵɵelementEnd();
2398
+ i0.ɵɵelementStart(0, "td", 39);
2399
+ i0.ɵɵtext(1);
2400
+ i0.ɵɵelementEnd();
2494
2401
  } if (rf & 2) {
2495
- const rowData_r16 = ɵɵnextContext().$implicit;
2496
- ɵɵadvance(1);
2497
- ɵɵtextInterpolate(rowData_r16.ubicacionCodigo);
2402
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2403
+ i0.ɵɵadvance(1);
2404
+ i0.ɵɵtextInterpolate(rowData_r16.ubicacionCodigo);
2498
2405
  } }
2499
2406
  function SeleccionaArticuloComponent_ng_template_27_td_7_Template(rf, ctx) { if (rf & 1) {
2500
- ɵɵelementStart(0, "td", 44);
2501
- ɵɵtext(1);
2502
- ɵɵelementEnd();
2407
+ i0.ɵɵelementStart(0, "td", 44);
2408
+ i0.ɵɵtext(1);
2409
+ i0.ɵɵelementEnd();
2503
2410
  } if (rf & 2) {
2504
- const rowData_r16 = ɵɵnextContext().$implicit;
2505
- ɵɵadvance(1);
2506
- ɵɵtextInterpolate(rowData_r16.existenciaSecundaria);
2411
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2412
+ i0.ɵɵadvance(1);
2413
+ i0.ɵɵtextInterpolate(rowData_r16.existenciaSecundaria);
2507
2414
  } }
2508
2415
  function SeleccionaArticuloComponent_ng_template_27_td_8_Template(rf, ctx) { if (rf & 1) {
2509
- ɵɵelementStart(0, "td", 36);
2510
- ɵɵtext(1);
2511
- ɵɵelementEnd();
2416
+ i0.ɵɵelementStart(0, "td", 36);
2417
+ i0.ɵɵtext(1);
2418
+ i0.ɵɵelementEnd();
2512
2419
  } if (rf & 2) {
2513
- const rowData_r16 = ɵɵnextContext().$implicit;
2514
- ɵɵadvance(1);
2515
- ɵɵtextInterpolate(rowData_r16.unidadSecundariaCodigo);
2420
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2421
+ i0.ɵɵadvance(1);
2422
+ i0.ɵɵtextInterpolate(rowData_r16.unidadSecundariaCodigo);
2516
2423
  } }
2517
2424
  function SeleccionaArticuloComponent_ng_template_27_td_15_Template(rf, ctx) { if (rf & 1) {
2518
- ɵɵelementStart(0, "td", 39);
2519
- ɵɵtext(1);
2520
- ɵɵpipe(2, "currency");
2521
- ɵɵelementEnd();
2425
+ i0.ɵɵelementStart(0, "td", 39);
2426
+ i0.ɵɵtext(1);
2427
+ i0.ɵɵpipe(2, "currency");
2428
+ i0.ɵɵelementEnd();
2522
2429
  } if (rf & 2) {
2523
- const rowData_r16 = ɵɵnextContext().$implicit;
2524
- ɵɵadvance(1);
2525
- ɵɵtextInterpolate1("", ɵɵpipeBind1(2, 1, rowData_r16.precioConImpuestos), " ");
2430
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2431
+ i0.ɵɵadvance(1);
2432
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, rowData_r16.precioConImpuestos), " ");
2526
2433
  } }
2527
2434
  function SeleccionaArticuloComponent_ng_template_27_td_16_Template(rf, ctx) { if (rf & 1) {
2528
- ɵɵelementStart(0, "td", 39);
2529
- ɵɵtext(1);
2530
- ɵɵpipe(2, "currency");
2531
- ɵɵelementEnd();
2435
+ i0.ɵɵelementStart(0, "td", 39);
2436
+ i0.ɵɵtext(1);
2437
+ i0.ɵɵpipe(2, "currency");
2438
+ i0.ɵɵelementEnd();
2532
2439
  } if (rf & 2) {
2533
- const rowData_r16 = ɵɵnextContext().$implicit;
2534
- ɵɵadvance(1);
2535
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, rowData_r16.precio2ConImpuestos));
2440
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2441
+ i0.ɵɵadvance(1);
2442
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio2ConImpuestos));
2536
2443
  } }
2537
2444
  function SeleccionaArticuloComponent_ng_template_27_td_17_Template(rf, ctx) { if (rf & 1) {
2538
- ɵɵelementStart(0, "td", 39);
2539
- ɵɵtext(1);
2540
- ɵɵpipe(2, "currency");
2541
- ɵɵelementEnd();
2445
+ i0.ɵɵelementStart(0, "td", 39);
2446
+ i0.ɵɵtext(1);
2447
+ i0.ɵɵpipe(2, "currency");
2448
+ i0.ɵɵelementEnd();
2542
2449
  } if (rf & 2) {
2543
- const rowData_r16 = ɵɵnextContext().$implicit;
2544
- ɵɵadvance(1);
2545
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, rowData_r16.precio3ConImpuestos));
2450
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2451
+ i0.ɵɵadvance(1);
2452
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio3ConImpuestos));
2546
2453
  } }
2547
2454
  function SeleccionaArticuloComponent_ng_template_27_td_18_Template(rf, ctx) { if (rf & 1) {
2548
- ɵɵelementStart(0, "td", 39);
2549
- ɵɵtext(1);
2550
- ɵɵpipe(2, "currency");
2551
- ɵɵelementEnd();
2455
+ i0.ɵɵelementStart(0, "td", 39);
2456
+ i0.ɵɵtext(1);
2457
+ i0.ɵɵpipe(2, "currency");
2458
+ i0.ɵɵelementEnd();
2552
2459
  } if (rf & 2) {
2553
- const rowData_r16 = ɵɵnextContext().$implicit;
2554
- ɵɵadvance(1);
2555
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, rowData_r16.precio4ConImpuestos));
2460
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2461
+ i0.ɵɵadvance(1);
2462
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio4ConImpuestos));
2556
2463
  } }
2557
2464
  function SeleccionaArticuloComponent_ng_template_27_td_19_Template(rf, ctx) { if (rf & 1) {
2558
- ɵɵelementStart(0, "td", 39);
2559
- ɵɵtext(1);
2560
- ɵɵpipe(2, "currency");
2561
- ɵɵelementEnd();
2465
+ i0.ɵɵelementStart(0, "td", 39);
2466
+ i0.ɵɵtext(1);
2467
+ i0.ɵɵpipe(2, "currency");
2468
+ i0.ɵɵelementEnd();
2562
2469
  } if (rf & 2) {
2563
- const rowData_r16 = ɵɵnextContext().$implicit;
2564
- ɵɵadvance(1);
2565
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, rowData_r16.precio5ConImpuestos));
2470
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2471
+ i0.ɵɵadvance(1);
2472
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio5ConImpuestos));
2566
2473
  } }
2567
2474
  function SeleccionaArticuloComponent_ng_template_27_td_20_Template(rf, ctx) { if (rf & 1) {
2568
- ɵɵelementStart(0, "td", 36);
2569
- ɵɵtext(1);
2570
- ɵɵpipe(2, "currency");
2571
- ɵɵelementEnd();
2475
+ i0.ɵɵelementStart(0, "td", 36);
2476
+ i0.ɵɵtext(1);
2477
+ i0.ɵɵpipe(2, "currency");
2478
+ i0.ɵɵelementEnd();
2572
2479
  } if (rf & 2) {
2573
- const rowData_r16 = ɵɵnextContext().$implicit;
2574
- ɵɵadvance(1);
2575
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, rowData_r16.precio));
2480
+ const rowData_r16 = i0.ɵɵnextContext().$implicit;
2481
+ i0.ɵɵadvance(1);
2482
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, rowData_r16.precio));
2576
2483
  } }
2577
2484
  function SeleccionaArticuloComponent_ng_template_27_div_22_Template(rf, ctx) { if (rf & 1) {
2578
- ɵɵelementStart(0, "div", 45);
2579
- ɵɵelementStart(1, "div", 46);
2580
- ɵɵelementStart(2, "label", 47);
2581
- ɵɵtext(3);
2582
- ɵɵelementEnd();
2583
- ɵɵelementEnd();
2584
- ɵɵelementStart(4, "div", 46);
2585
- ɵɵelementStart(5, "label", 47);
2586
- ɵɵtext(6);
2587
- ɵɵpipe(7, "number");
2588
- ɵɵelementEnd();
2589
- ɵɵelementEnd();
2590
- ɵɵelementEnd();
2485
+ i0.ɵɵelementStart(0, "div", 45);
2486
+ i0.ɵɵelementStart(1, "div", 46);
2487
+ i0.ɵɵelementStart(2, "label", 47);
2488
+ i0.ɵɵtext(3);
2489
+ i0.ɵɵelementEnd();
2490
+ i0.ɵɵelementEnd();
2491
+ i0.ɵɵelementStart(4, "div", 46);
2492
+ i0.ɵɵelementStart(5, "label", 47);
2493
+ i0.ɵɵtext(6);
2494
+ i0.ɵɵpipe(7, "number");
2495
+ i0.ɵɵelementEnd();
2496
+ i0.ɵɵelementEnd();
2497
+ i0.ɵɵelementEnd();
2591
2498
  } if (rf & 2) {
2592
2499
  const item_r39 = ctx.$implicit;
2593
- ɵɵadvance(3);
2594
- ɵɵtextInterpolate(item_r39.unidad_codigo);
2595
- ɵɵadvance(3);
2596
- ɵɵtextInterpolate(ɵɵpipeBind2(7, 2, item_r39.unidad_existencia, "1.2-2"));
2500
+ i0.ɵɵadvance(3);
2501
+ i0.ɵɵtextInterpolate(item_r39.unidad_codigo);
2502
+ i0.ɵɵadvance(3);
2503
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(7, 2, item_r39.unidad_existencia, "1.2-2"));
2597
2504
  } }
2598
2505
  function SeleccionaArticuloComponent_ng_template_27_td_23_Template(rf, ctx) { if (rf & 1) {
2599
- ɵɵelementStart(0, "td", 39);
2600
- ɵɵtext(1);
2601
- ɵɵelementEnd();
2506
+ i0.ɵɵelementStart(0, "td", 39);
2507
+ i0.ɵɵtext(1);
2508
+ i0.ɵɵelementEnd();
2602
2509
  } if (rf & 2) {
2603
2510
  const itemData_r40 = ctx.$implicit;
2604
- ɵɵadvance(1);
2605
- ɵɵtextInterpolate(itemData_r40.valor);
2511
+ i0.ɵɵadvance(1);
2512
+ i0.ɵɵtextInterpolate(itemData_r40.valor);
2606
2513
  } }
2607
2514
  function SeleccionaArticuloComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
2608
- const _r42 = ɵɵgetCurrentView();
2609
- ɵɵelementStart(0, "tr", 32);
2610
- ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33);
2611
- ɵɵtemplate(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
2612
- ɵɵelementStart(3, "td", 35);
2613
- ɵɵtext(4);
2614
- ɵɵelementEnd();
2615
- ɵɵelementStart(5, "td", 36);
2616
- ɵɵtext(6);
2617
- ɵɵelementEnd();
2618
- ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37);
2619
- ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
2620
- ɵɵelementStart(9, "td", 39);
2621
- ɵɵtext(10);
2622
- ɵɵelementEnd();
2623
- ɵɵelementStart(11, "td", 40);
2624
- ɵɵtext(12);
2625
- ɵɵelementEnd();
2626
- ɵɵelementStart(13, "td", 36);
2627
- ɵɵelementStart(14, "button", 41);
2628
- ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { ɵɵrestoreView(_r42); const rowData_r16 = ctx.$implicit; const ctx_r41 = ɵɵnextContext(); return ctx_r41.onShowInformacion(rowData_r16); });
2629
- ɵɵelementEnd();
2630
- ɵɵelementEnd();
2631
- ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
2632
- ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
2633
- ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34);
2634
- ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34);
2635
- ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34);
2636
- ɵɵtemplate(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
2637
- ɵɵelementStart(21, "td", 36);
2638
- ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_27_div_22_Template, 8, 5, "div", 42);
2639
- ɵɵelementEnd();
2640
- ɵɵtemplate(23, SeleccionaArticuloComponent_ng_template_27_td_23_Template, 2, 1, "td", 43);
2641
- ɵɵelementEnd();
2515
+ const _r42 = i0.ɵɵgetCurrentView();
2516
+ i0.ɵɵelementStart(0, "tr", 32);
2517
+ i0.ɵɵtemplate(1, SeleccionaArticuloComponent_ng_template_27_td_1_Template, 2, 0, "td", 33);
2518
+ i0.ɵɵtemplate(2, SeleccionaArticuloComponent_ng_template_27_td_2_Template, 2, 1, "td", 34);
2519
+ i0.ɵɵelementStart(3, "td", 35);
2520
+ i0.ɵɵtext(4);
2521
+ i0.ɵɵelementEnd();
2522
+ i0.ɵɵelementStart(5, "td", 36);
2523
+ i0.ɵɵtext(6);
2524
+ i0.ɵɵelementEnd();
2525
+ i0.ɵɵtemplate(7, SeleccionaArticuloComponent_ng_template_27_td_7_Template, 2, 1, "td", 37);
2526
+ i0.ɵɵtemplate(8, SeleccionaArticuloComponent_ng_template_27_td_8_Template, 2, 1, "td", 38);
2527
+ i0.ɵɵelementStart(9, "td", 39);
2528
+ i0.ɵɵtext(10);
2529
+ i0.ɵɵelementEnd();
2530
+ i0.ɵɵelementStart(11, "td", 40);
2531
+ i0.ɵɵtext(12);
2532
+ i0.ɵɵelementEnd();
2533
+ i0.ɵɵelementStart(13, "td", 36);
2534
+ i0.ɵɵelementStart(14, "button", 41);
2535
+ i0.ɵɵlistener("click", function SeleccionaArticuloComponent_ng_template_27_Template_button_click_14_listener() { const restoredCtx = i0.ɵɵrestoreView(_r42); const rowData_r16 = restoredCtx.$implicit; const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.onShowInformacion(rowData_r16); });
2536
+ i0.ɵɵelementEnd();
2537
+ i0.ɵɵelementEnd();
2538
+ i0.ɵɵtemplate(15, SeleccionaArticuloComponent_ng_template_27_td_15_Template, 3, 3, "td", 34);
2539
+ i0.ɵɵtemplate(16, SeleccionaArticuloComponent_ng_template_27_td_16_Template, 3, 3, "td", 34);
2540
+ i0.ɵɵtemplate(17, SeleccionaArticuloComponent_ng_template_27_td_17_Template, 3, 3, "td", 34);
2541
+ i0.ɵɵtemplate(18, SeleccionaArticuloComponent_ng_template_27_td_18_Template, 3, 3, "td", 34);
2542
+ i0.ɵɵtemplate(19, SeleccionaArticuloComponent_ng_template_27_td_19_Template, 3, 3, "td", 34);
2543
+ i0.ɵɵtemplate(20, SeleccionaArticuloComponent_ng_template_27_td_20_Template, 3, 3, "td", 38);
2544
+ i0.ɵɵelementStart(21, "td", 36);
2545
+ i0.ɵɵtemplate(22, SeleccionaArticuloComponent_ng_template_27_div_22_Template, 8, 5, "div", 42);
2546
+ i0.ɵɵelementEnd();
2547
+ i0.ɵɵtemplate(23, SeleccionaArticuloComponent_ng_template_27_td_23_Template, 2, 1, "td", 43);
2548
+ i0.ɵɵelementEnd();
2642
2549
  } if (rf & 2) {
2643
2550
  const rowData_r16 = ctx.$implicit;
2644
- const ctx_r3 = ɵɵnextContext();
2645
- ɵɵproperty("pSelectableRow", rowData_r16);
2646
- ɵɵadvance(1);
2647
- ɵɵproperty("ngIf", !rowData_r16.ubicacionCodigo);
2648
- ɵɵadvance(1);
2649
- ɵɵproperty("ngIf", rowData_r16.ubicacionCodigo);
2650
- ɵɵadvance(2);
2651
- ɵɵtextInterpolate(rowData_r16.existencia);
2652
- ɵɵadvance(2);
2653
- ɵɵtextInterpolate(rowData_r16.unidadCodigo);
2654
- ɵɵadvance(1);
2655
- ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
2656
- ɵɵadvance(1);
2657
- ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
2658
- ɵɵadvance(2);
2659
- ɵɵtextInterpolate(rowData_r16.articulo.codigo);
2660
- ɵɵadvance(2);
2661
- ɵɵtextInterpolate(rowData_r16.articulo.descripcion);
2662
- ɵɵadvance(3);
2663
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2664
- ɵɵadvance(1);
2665
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2666
- ɵɵadvance(1);
2667
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2668
- ɵɵadvance(1);
2669
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2670
- ɵɵadvance(1);
2671
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2672
- ɵɵadvance(1);
2673
- ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
2674
- ɵɵadvance(2);
2675
- ɵɵproperty("ngForOf", rowData_r16.existenciaUnidades);
2676
- ɵɵadvance(1);
2677
- ɵɵproperty("ngForOf", rowData_r16.articuloClasificadorList);
2551
+ const ctx_r3 = i0.ɵɵnextContext();
2552
+ i0.ɵɵproperty("pSelectableRow", rowData_r16);
2553
+ i0.ɵɵadvance(1);
2554
+ i0.ɵɵproperty("ngIf", !rowData_r16.ubicacionCodigo);
2555
+ i0.ɵɵadvance(1);
2556
+ i0.ɵɵproperty("ngIf", rowData_r16.ubicacionCodigo);
2557
+ i0.ɵɵadvance(2);
2558
+ i0.ɵɵtextInterpolate(rowData_r16.existencia);
2559
+ i0.ɵɵadvance(2);
2560
+ i0.ɵɵtextInterpolate(rowData_r16.unidadCodigo);
2561
+ i0.ɵɵadvance(1);
2562
+ i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
2563
+ i0.ɵɵadvance(1);
2564
+ i0.ɵɵproperty("ngIf", ctx_r3.manejaUnidadSecundaria);
2565
+ i0.ɵɵadvance(2);
2566
+ i0.ɵɵtextInterpolate(rowData_r16.articulo.codigo);
2567
+ i0.ɵɵadvance(2);
2568
+ i0.ɵɵtextInterpolate(rowData_r16.articulo.descripcion);
2569
+ i0.ɵɵadvance(3);
2570
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2571
+ i0.ɵɵadvance(1);
2572
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2573
+ i0.ɵɵadvance(1);
2574
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2575
+ i0.ɵɵadvance(1);
2576
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2577
+ i0.ɵɵadvance(1);
2578
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio !== "costo");
2579
+ i0.ɵɵadvance(1);
2580
+ i0.ɵɵproperty("ngIf", ctx_r3.configuracion.tipoPrecio === "costo");
2581
+ i0.ɵɵadvance(2);
2582
+ i0.ɵɵproperty("ngForOf", rowData_r16.existenciaUnidades);
2583
+ i0.ɵɵadvance(1);
2584
+ i0.ɵɵproperty("ngForOf", rowData_r16.articuloClasificadorList);
2678
2585
  } }
2679
2586
  function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template(rf, ctx) { if (rf & 1) {
2680
- const _r44 = ɵɵgetCurrentView();
2681
- ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
2682
- ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { ɵɵrestoreView(_r44); const ctx_r43 = ɵɵnextContext(); return ctx_r43.onEventInformacion($event); });
2683
- ɵɵelementEnd();
2587
+ const _r44 = i0.ɵɵgetCurrentView();
2588
+ i0.ɵɵelementStart(0, "lib-seleccion-articulo-informacion", 48);
2589
+ i0.ɵɵlistener("eventSelection", function SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template_lib_seleccion_articulo_informacion_eventSelection_0_listener($event) { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.onEventInformacion($event); });
2590
+ i0.ɵɵelementEnd();
2684
2591
  } if (rf & 2) {
2685
- const ctx_r4 = ɵɵnextContext();
2686
- ɵɵproperty("showModal", ctx_r4.showModalInformacion)("articulo", ctx_r4.articuloSelected);
2592
+ const ctx_r4 = i0.ɵɵnextContext();
2593
+ i0.ɵɵproperty("showModal", ctx_r4.showModalInformacion)("articulo", ctx_r4.articuloSelected);
2687
2594
  } }
2688
- const _c0$6 = function (a0) { return { "width": a0, "min-width": "200px" }; };
2689
- const _c1$3 = function () { return [10, 25, 50, 100, 500]; };
2595
+ const _c0$1 = function (a0) { return { "width": a0, "min-width": "200px" }; };
2596
+ const _c1 = function () { return [10, 25, 50, 100, 500]; };
2690
2597
  class SeleccionaArticuloComponent {
2691
2598
  constructor(_stockService, _paginateService, _almacenService) {
2692
2599
  this._stockService = _stockService;
@@ -2778,83 +2685,83 @@ class SeleccionaArticuloComponent {
2778
2685
  this.showModalInformacion = event.status;
2779
2686
  }
2780
2687
  }
2781
- /** @nocollapse */ SeleccionaArticuloComponent.ɵfac = function SeleccionaArticuloComponent_Factory(t) { return new (t || SeleccionaArticuloComponent)(ɵɵdirectiveInject(StockService), ɵɵdirectiveInject(PaginateService), ɵɵdirectiveInject(AlmacenService)); };
2782
- /** @nocollapse */ SeleccionaArticuloComponent.ɵcmp = ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 25, consts: [[3, "header", "visible", "maximizable", "baseZIndex", "blockScroll", "minY", "visibleChange", "onShow", "onHide"], [1, "grid", "grid-fluid"], [1, "col-12", "md:col-6", "lg:col-6"], [2, "display", "flex"], [2, "width", "115px"], ["pInputText", "", 3, "ngModel", "ngModelChange", "change"], ["value", "C"], ["value", "D"], ["value", "CD"], ["value", "CI"], ["type", "text", "pInputText", "", "id", "key", 2, "width", "200px", 3, "ngModel", "ngModelChange", "keypress"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], [2, "width", "100px"], ["for", "almacen"], ["pInputText", "", "disabled", "", "id", "almacen", 2, "width", "200px", 3, "ngModel", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["scrollHeight", "400px", "selectionMode", "single", 3, "value", "scrollable", "responsive", "onRowSelect"], ["dt", ""], ["pTemplate", "header"], ["pTemplate", "body"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "showModal", "articulo", "eventSelection", 4, "ngIf"], [3, "value"], ["translate", "", 2, "width", "80px"], ["translate", "", 2, "width", "70px"], ["translate", "", 2, "width", "40px"], ["style", "width: 50px", "translate", "", 4, "ngIf"], ["style", "width: 40px", "translate", "", 4, "ngIf"], ["translate", "", 2, "width", "120px"], ["style", "width: 80px", "translate", "", 4, "ngIf"], ["style", "width: 80px", "translate", "", 4, "ngFor", "ngForOf"], ["translate", "", 2, "width", "50px"], [3, "pSelectableRow"], ["style", "width: 80px;", "translate", "", 4, "ngIf"], ["style", "width: 80px;", 4, "ngIf"], [2, "width", "70px"], [2, "width", "40px"], ["style", "width: 50px;", 4, "ngIf"], ["style", "width: 40px;", 4, "ngIf"], [2, "width", "80px"], [2, "width", "120px"], ["pButton", "", "type", "button", "icon", "pi pi-eye", 1, "ui-button-raised", "ui-button-primary", 3, "click"], ["class", "row justify-content-between", 4, "ngFor", "ngForOf"], ["style", "width: 80px;", 4, "ngFor", "ngForOf"], [2, "width", "50px"], [1, "row", "justify-content-between"], [1, "col-lg-4"], ["for", ""], [3, "showModal", "articulo", "eventSelection"]], template: function SeleccionaArticuloComponent_Template(rf, ctx) { if (rf & 1) {
2783
- ɵɵelementStart(0, "p-dialog", 0);
2784
- ɵɵlistener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showArticulos = $event; })("onShow", function SeleccionaArticuloComponent_Template_p_dialog_onShow_0_listener() { return ctx.obtenerExistenciaArticulosShow(); })("onHide", function SeleccionaArticuloComponent_Template_p_dialog_onHide_0_listener() { ctx.busquedaArticulos = { tipoBusqueda: "" }; return ctx.emitirShowArticulos(); });
2785
- ɵɵpipe(1, "translate");
2786
- ɵɵelementStart(2, "div", 1);
2787
- ɵɵelementStart(3, "div", 2);
2788
- ɵɵelementStart(4, "div", 3);
2789
- ɵɵelementStart(5, "div", 4);
2790
- ɵɵelementStart(6, "select", 5);
2791
- ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_6_listener($event) { return ctx.busquedaArticulos.tipoBusqueda = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_6_listener() { return ctx.obtenerExistenciaArticulosVal(); });
2792
- ɵɵelementStart(7, "option", 6);
2793
- ɵɵtext(8, "Codigo");
2794
- ɵɵelementEnd();
2795
- ɵɵelementStart(9, "option", 7);
2796
- ɵɵtext(10, "Descripcion");
2797
- ɵɵelementEnd();
2798
- ɵɵelementStart(11, "option", 8);
2799
- ɵɵtext(12, "Coincidencia");
2800
- ɵɵelementEnd();
2801
- ɵɵelementStart(13, "option", 9);
2802
- ɵɵtext(14, "Igual a");
2803
- ɵɵelementEnd();
2804
- ɵɵelementEnd();
2805
- ɵɵelementEnd();
2806
- ɵɵelementStart(15, "input", 10);
2807
- ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { return ctx.busquedaArticulos.key = $event; })("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { return ctx.obtenerExistenciaArticulosKey($event); });
2808
- ɵɵelementEnd();
2809
- ɵɵelementStart(16, "button", 11);
2810
- ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { return ctx.obtenerExistenciaArticulos(); });
2811
- ɵɵelementEnd();
2812
- ɵɵelementEnd();
2813
- ɵɵelementEnd();
2814
- ɵɵelementStart(17, "div", 2);
2815
- ɵɵelementStart(18, "div", 3);
2816
- ɵɵelementStart(19, "div", 12);
2817
- ɵɵelementStart(20, "label", 13);
2818
- ɵɵtext(21, "Almacen:");
2819
- ɵɵelementEnd();
2820
- ɵɵelementEnd();
2821
- ɵɵelementStart(22, "select", 14);
2822
- ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { return ctx.movimiento.almacen = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { return ctx.obtenerExistenciaArticulosVal(); });
2823
- ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 15);
2824
- ɵɵelementEnd();
2825
- ɵɵelementEnd();
2826
- ɵɵelementEnd();
2827
- ɵɵelementEnd();
2828
- ɵɵelementStart(24, "p-table", 16, 17);
2829
- ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { return ctx.filaSeleccionada($event); });
2830
- ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18);
2831
- ɵɵtemplate(27, SeleccionaArticuloComponent_ng_template_27_Template, 24, 17, "ng-template", 19);
2832
- ɵɵelementEnd();
2833
- ɵɵelementStart(28, "p-paginator", 20);
2834
- ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { return ctx.pagina($event); });
2835
- ɵɵelementEnd();
2836
- ɵɵelementEnd();
2837
- ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
2688
+ /** @nocollapse */ SeleccionaArticuloComponent.ɵfac = function SeleccionaArticuloComponent_Factory(t) { return new (t || SeleccionaArticuloComponent)(i0.ɵɵdirectiveInject(StockService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(AlmacenService)); };
2689
+ /** @nocollapse */ SeleccionaArticuloComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SeleccionaArticuloComponent, selectors: [["app-selecciona-articulo"]], inputs: { configuracion: "configuracion", showArticulos: "showArticulos", movimiento: "movimiento", manejaUnidadSecundaria: "manejaUnidadSecundaria" }, outputs: { emitFilaSeleccionada: "emitFilaSeleccionada", emitShowArticulos: "emitShowArticulos" }, decls: 30, vars: 25, consts: [[3, "header", "visible", "maximizable", "baseZIndex", "blockScroll", "minY", "visibleChange", "onShow", "onHide"], [1, "grid", "grid-fluid"], [1, "col-12", "md:col-6", "lg:col-6"], [2, "display", "flex"], [2, "width", "115px"], ["pInputText", "", 3, "ngModel", "ngModelChange", "change"], ["value", "C"], ["value", "D"], ["value", "CD"], ["value", "CI"], ["type", "text", "pInputText", "", "id", "key", 2, "width", "200px", 3, "ngModel", "ngModelChange", "keypress"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], [2, "width", "100px"], ["for", "almacen"], ["pInputText", "", "disabled", "", "id", "almacen", 2, "width", "200px", 3, "ngModel", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["scrollHeight", "400px", "selectionMode", "single", 3, "value", "scrollable", "responsive", "onRowSelect"], ["dt", ""], ["pTemplate", "header"], ["pTemplate", "body"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "showModal", "articulo", "eventSelection", 4, "ngIf"], [3, "value"], ["translate", "", 2, "width", "80px"], ["translate", "", 2, "width", "70px"], ["translate", "", 2, "width", "40px"], ["style", "width: 50px", "translate", "", 4, "ngIf"], ["style", "width: 40px", "translate", "", 4, "ngIf"], ["translate", "", 2, "width", "120px"], ["style", "width: 80px", "translate", "", 4, "ngIf"], ["style", "width: 80px", "translate", "", 4, "ngFor", "ngForOf"], ["translate", "", 2, "width", "50px"], [3, "pSelectableRow"], ["style", "width: 80px;", "translate", "", 4, "ngIf"], ["style", "width: 80px;", 4, "ngIf"], [2, "width", "70px"], [2, "width", "40px"], ["style", "width: 50px;", 4, "ngIf"], ["style", "width: 40px;", 4, "ngIf"], [2, "width", "80px"], [2, "width", "120px"], ["pButton", "", "type", "button", "icon", "pi pi-eye", 1, "ui-button-raised", "ui-button-primary", 3, "click"], ["class", "row justify-content-between", 4, "ngFor", "ngForOf"], ["style", "width: 80px;", 4, "ngFor", "ngForOf"], [2, "width", "50px"], [1, "row", "justify-content-between"], [1, "col-lg-4"], ["for", ""], [3, "showModal", "articulo", "eventSelection"]], template: function SeleccionaArticuloComponent_Template(rf, ctx) { if (rf & 1) {
2690
+ i0.ɵɵelementStart(0, "p-dialog", 0);
2691
+ i0.ɵɵlistener("visibleChange", function SeleccionaArticuloComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.showArticulos = $event; })("onShow", function SeleccionaArticuloComponent_Template_p_dialog_onShow_0_listener() { return ctx.obtenerExistenciaArticulosShow(); })("onHide", function SeleccionaArticuloComponent_Template_p_dialog_onHide_0_listener() { ctx.busquedaArticulos = { tipoBusqueda: "" }; return ctx.emitirShowArticulos(); });
2692
+ i0.ɵɵpipe(1, "translate");
2693
+ i0.ɵɵelementStart(2, "div", 1);
2694
+ i0.ɵɵelementStart(3, "div", 2);
2695
+ i0.ɵɵelementStart(4, "div", 3);
2696
+ i0.ɵɵelementStart(5, "div", 4);
2697
+ i0.ɵɵelementStart(6, "select", 5);
2698
+ i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_6_listener($event) { return ctx.busquedaArticulos.tipoBusqueda = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_6_listener() { return ctx.obtenerExistenciaArticulosVal(); });
2699
+ i0.ɵɵelementStart(7, "option", 6);
2700
+ i0.ɵɵtext(8, "Codigo");
2701
+ i0.ɵɵelementEnd();
2702
+ i0.ɵɵelementStart(9, "option", 7);
2703
+ i0.ɵɵtext(10, "Descripcion");
2704
+ i0.ɵɵelementEnd();
2705
+ i0.ɵɵelementStart(11, "option", 8);
2706
+ i0.ɵɵtext(12, "Coincidencia");
2707
+ i0.ɵɵelementEnd();
2708
+ i0.ɵɵelementStart(13, "option", 9);
2709
+ i0.ɵɵtext(14, "Igual a");
2710
+ i0.ɵɵelementEnd();
2711
+ i0.ɵɵelementEnd();
2712
+ i0.ɵɵelementEnd();
2713
+ i0.ɵɵelementStart(15, "input", 10);
2714
+ i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_input_ngModelChange_15_listener($event) { return ctx.busquedaArticulos.key = $event; })("keypress", function SeleccionaArticuloComponent_Template_input_keypress_15_listener($event) { return ctx.obtenerExistenciaArticulosKey($event); });
2715
+ i0.ɵɵelementEnd();
2716
+ i0.ɵɵelementStart(16, "button", 11);
2717
+ i0.ɵɵlistener("click", function SeleccionaArticuloComponent_Template_button_click_16_listener() { return ctx.obtenerExistenciaArticulos(); });
2718
+ i0.ɵɵelementEnd();
2719
+ i0.ɵɵelementEnd();
2720
+ i0.ɵɵelementEnd();
2721
+ i0.ɵɵelementStart(17, "div", 2);
2722
+ i0.ɵɵelementStart(18, "div", 3);
2723
+ i0.ɵɵelementStart(19, "div", 12);
2724
+ i0.ɵɵelementStart(20, "label", 13);
2725
+ i0.ɵɵtext(21, "Almacen:");
2726
+ i0.ɵɵelementEnd();
2727
+ i0.ɵɵelementEnd();
2728
+ i0.ɵɵelementStart(22, "select", 14);
2729
+ i0.ɵɵlistener("ngModelChange", function SeleccionaArticuloComponent_Template_select_ngModelChange_22_listener($event) { return ctx.movimiento.almacen = $event; })("change", function SeleccionaArticuloComponent_Template_select_change_22_listener() { return ctx.obtenerExistenciaArticulosVal(); });
2730
+ i0.ɵɵtemplate(23, SeleccionaArticuloComponent_option_23_Template, 2, 2, "option", 15);
2731
+ i0.ɵɵelementEnd();
2732
+ i0.ɵɵelementEnd();
2733
+ i0.ɵɵelementEnd();
2734
+ i0.ɵɵelementEnd();
2735
+ i0.ɵɵelementStart(24, "p-table", 16, 17);
2736
+ i0.ɵɵlistener("onRowSelect", function SeleccionaArticuloComponent_Template_p_table_onRowSelect_24_listener($event) { return ctx.filaSeleccionada($event); });
2737
+ i0.ɵɵtemplate(26, SeleccionaArticuloComponent_ng_template_26_Template, 23, 9, "ng-template", 18);
2738
+ i0.ɵɵtemplate(27, SeleccionaArticuloComponent_ng_template_27_Template, 24, 17, "ng-template", 19);
2739
+ i0.ɵɵelementEnd();
2740
+ i0.ɵɵelementStart(28, "p-paginator", 20);
2741
+ i0.ɵɵlistener("onPageChange", function SeleccionaArticuloComponent_Template_p_paginator_onPageChange_28_listener($event) { return ctx.pagina($event); });
2742
+ i0.ɵɵelementEnd();
2743
+ i0.ɵɵelementEnd();
2744
+ i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
2838
2745
  } if (rf & 2) {
2839
- ɵɵstyleMap(ɵɵpureFunction1(22, _c0$6, ctx.size + "px"));
2840
- ɵɵpropertyInterpolate("header", ɵɵpipeBind1(1, 20, "Articulos"));
2841
- ɵɵproperty("visible", ctx.showArticulos)("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
2842
- ɵɵadvance(6);
2843
- ɵɵproperty("ngModel", ctx.busquedaArticulos.tipoBusqueda);
2844
- ɵɵadvance(9);
2845
- ɵɵproperty("ngModel", ctx.busquedaArticulos.key);
2846
- ɵɵadvance(7);
2847
- ɵɵproperty("ngModel", ctx.movimiento.almacen);
2848
- ɵɵadvance(1);
2849
- ɵɵproperty("ngForOf", ctx.almacenList);
2850
- ɵɵadvance(1);
2851
- ɵɵproperty("value", ctx.articulosList)("scrollable", true)("responsive", true);
2852
- ɵɵadvance(4);
2853
- ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(24, _c1$3));
2854
- ɵɵadvance(1);
2855
- ɵɵproperty("ngIf", ctx.showModalInformacion);
2856
- } }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_x, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2857
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2746
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(22, _c0$1, ctx.size + "px"));
2747
+ i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 20, "Articulos"));
2748
+ i0.ɵɵproperty("visible", ctx.showArticulos)("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
2749
+ i0.ɵɵadvance(6);
2750
+ i0.ɵɵproperty("ngModel", ctx.busquedaArticulos.tipoBusqueda);
2751
+ i0.ɵɵadvance(9);
2752
+ i0.ɵɵproperty("ngModel", ctx.busquedaArticulos.key);
2753
+ i0.ɵɵadvance(7);
2754
+ i0.ɵɵproperty("ngModel", ctx.movimiento.almacen);
2755
+ i0.ɵɵadvance(1);
2756
+ i0.ɵɵproperty("ngForOf", ctx.almacenList);
2757
+ i0.ɵɵadvance(1);
2758
+ i0.ɵɵproperty("value", ctx.articulosList)("scrollable", true)("responsive", true);
2759
+ i0.ɵɵadvance(4);
2760
+ i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(24, _c1));
2761
+ i0.ɵɵadvance(1);
2762
+ i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
2763
+ } }, directives: [i4$2.Dialog, i5.SelectControlValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i5.NgSelectOption, i5.ɵNgSelectMultipleOption, i5.DefaultValueAccessor, i7.ButtonDirective, i8.NgForOf, i8$1.Table, i4$1.PrimeTemplate, i10.Paginator, i8.NgIf, i3.TranslateDirective, i8$1.SelectableRow, SeleccionArticuloInformacionComponent], pipes: [i3.TranslatePipe, i8.CurrencyPipe, i8.DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
2764
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2858
2765
  type: Component,
2859
2766
  args: [{
2860
2767
  selector: 'app-selecciona-articulo',
@@ -2875,150 +2782,135 @@ class SeleccionaArticuloComponent {
2875
2782
  type: Output
2876
2783
  }] }); })();
2877
2784
 
2878
- class AcreedorService {
2879
- constructor(api) {
2880
- this.api = api;
2881
- this.endpoint = 'acreedor';
2882
- }
2883
- getAll(params) {
2884
- return this.api.get(this.endpoint, params);
2885
- }
2886
- get(id) {
2887
- return this.api.get(`${this.endpoint}/${id}`);
2888
- }
2889
- save(obj) {
2890
- return this.api.post(this.endpoint, obj);
2891
- }
2892
- update(obj) {
2893
- return this.api.put(this.endpoint, obj.id, obj);
2894
- }
2895
- delete(id) {
2896
- return this.api.delete(this.endpoint, id);
2785
+ class AcreedorService extends CrudService {
2786
+ constructor(httpClient) {
2787
+ super(httpClient, 'acreedor');
2788
+ this.httpClient = httpClient;
2897
2789
  }
2898
2790
  }
2899
- /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(ApiService)); };
2900
- /** @nocollapse */ AcreedorService.ɵprov = ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
2901
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorService, [{
2791
+ /** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); };
2792
+ /** @nocollapse */ AcreedorService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
2793
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
2902
2794
  type: Injectable,
2903
2795
  args: [{
2904
2796
  providedIn: 'root'
2905
2797
  }]
2906
- }], function () { return [{ type: ApiService }]; }, null); })();
2798
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
2907
2799
 
2908
2800
  function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
2909
- ɵɵelementStart(0, "tr");
2910
- ɵɵelementStart(1, "th");
2911
- ɵɵtext(2);
2912
- ɵɵpipe(3, "translate");
2913
- ɵɵelementEnd();
2914
- ɵɵelementStart(4, "th");
2915
- ɵɵtext(5);
2916
- ɵɵpipe(6, "translate");
2917
- ɵɵelementEnd();
2918
- ɵɵelementStart(7, "th");
2919
- ɵɵtext(8);
2920
- ɵɵpipe(9, "translate");
2921
- ɵɵelementEnd();
2922
- ɵɵelementStart(10, "th");
2923
- ɵɵtext(11);
2924
- ɵɵpipe(12, "translate");
2925
- ɵɵelementEnd();
2926
- ɵɵelementStart(13, "th");
2927
- ɵɵtext(14);
2928
- ɵɵpipe(15, "translate");
2929
- ɵɵelementEnd();
2930
- ɵɵelementStart(16, "th");
2931
- ɵɵtext(17);
2932
- ɵɵpipe(18, "translate");
2933
- ɵɵelementEnd();
2934
- ɵɵelementEnd();
2801
+ i0.ɵɵelementStart(0, "tr");
2802
+ i0.ɵɵelementStart(1, "th");
2803
+ i0.ɵɵtext(2);
2804
+ i0.ɵɵpipe(3, "translate");
2805
+ i0.ɵɵelementEnd();
2806
+ i0.ɵɵelementStart(4, "th");
2807
+ i0.ɵɵtext(5);
2808
+ i0.ɵɵpipe(6, "translate");
2809
+ i0.ɵɵelementEnd();
2810
+ i0.ɵɵelementStart(7, "th");
2811
+ i0.ɵɵtext(8);
2812
+ i0.ɵɵpipe(9, "translate");
2813
+ i0.ɵɵelementEnd();
2814
+ i0.ɵɵelementStart(10, "th");
2815
+ i0.ɵɵtext(11);
2816
+ i0.ɵɵpipe(12, "translate");
2817
+ i0.ɵɵelementEnd();
2818
+ i0.ɵɵelementStart(13, "th");
2819
+ i0.ɵɵtext(14);
2820
+ i0.ɵɵpipe(15, "translate");
2821
+ i0.ɵɵelementEnd();
2822
+ i0.ɵɵelementStart(16, "th");
2823
+ i0.ɵɵtext(17);
2824
+ i0.ɵɵpipe(18, "translate");
2825
+ i0.ɵɵelementEnd();
2826
+ i0.ɵɵelementEnd();
2935
2827
  } if (rf & 2) {
2936
- ɵɵadvance(2);
2937
- ɵɵtextInterpolate(ɵɵpipeBind1(3, 6, "razonSocial"));
2938
- ɵɵadvance(3);
2939
- ɵɵtextInterpolate(ɵɵpipeBind1(6, 8, "rfc"));
2940
- ɵɵadvance(3);
2941
- ɵɵtextInterpolate(ɵɵpipeBind1(9, 10, "tipo"));
2942
- ɵɵadvance(3);
2943
- ɵɵtextInterpolate(ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
2944
- ɵɵadvance(3);
2945
- ɵɵtextInterpolate(ɵɵpipeBind1(15, 14, "limiteCredito"));
2946
- ɵɵadvance(3);
2947
- ɵɵtextInterpolate(ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
2828
+ i0.ɵɵadvance(2);
2829
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
2830
+ i0.ɵɵadvance(3);
2831
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "rfc"));
2832
+ i0.ɵɵadvance(3);
2833
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
2834
+ i0.ɵɵadvance(3);
2835
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
2836
+ i0.ɵɵadvance(3);
2837
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "limiteCredito"));
2838
+ i0.ɵɵadvance(3);
2839
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
2948
2840
  } }
2949
2841
  function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf & 1) {
2950
- ɵɵelementStart(0, "span");
2951
- ɵɵtext(1);
2952
- ɵɵpipe(2, "translate");
2953
- ɵɵelementEnd();
2842
+ i0.ɵɵelementStart(0, "span");
2843
+ i0.ɵɵtext(1);
2844
+ i0.ɵɵpipe(2, "translate");
2845
+ i0.ɵɵelementEnd();
2954
2846
  } if (rf & 2) {
2955
- ɵɵadvance(1);
2956
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "moral"));
2847
+ i0.ɵɵadvance(1);
2848
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
2957
2849
  } }
2958
2850
  function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
2959
- ɵɵelementStart(0, "span");
2960
- ɵɵtext(1);
2961
- ɵɵpipe(2, "translate");
2962
- ɵɵelementEnd();
2851
+ i0.ɵɵelementStart(0, "span");
2852
+ i0.ɵɵtext(1);
2853
+ i0.ɵɵpipe(2, "translate");
2854
+ i0.ɵɵelementEnd();
2963
2855
  } if (rf & 2) {
2964
- ɵɵadvance(1);
2965
- ɵɵtextInterpolate(ɵɵpipeBind1(2, 1, "fisico"));
2856
+ i0.ɵɵadvance(1);
2857
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
2966
2858
  } }
2967
2859
  function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
2968
- ɵɵelementStart(0, "tr", 9);
2969
- ɵɵelementStart(1, "td");
2970
- ɵɵtext(2);
2971
- ɵɵelementEnd();
2972
- ɵɵelementStart(3, "td");
2973
- ɵɵtext(4);
2974
- ɵɵelementEnd();
2975
- ɵɵelementStart(5, "td");
2976
- ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10);
2977
- ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
2978
- ɵɵelementEnd();
2979
- ɵɵelementStart(8, "td");
2980
- ɵɵtext(9);
2981
- ɵɵelementEnd();
2982
- ɵɵelementStart(10, "td");
2983
- ɵɵtext(11);
2984
- ɵɵelementEnd();
2985
- ɵɵelementStart(12, "td");
2986
- ɵɵtext(13);
2987
- ɵɵpipe(14, "date");
2988
- ɵɵelementEnd();
2989
- ɵɵelementEnd();
2860
+ i0.ɵɵelementStart(0, "tr", 9);
2861
+ i0.ɵɵelementStart(1, "td");
2862
+ i0.ɵɵtext(2);
2863
+ i0.ɵɵelementEnd();
2864
+ i0.ɵɵelementStart(3, "td");
2865
+ i0.ɵɵtext(4);
2866
+ i0.ɵɵelementEnd();
2867
+ i0.ɵɵelementStart(5, "td");
2868
+ i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10);
2869
+ i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
2870
+ i0.ɵɵelementEnd();
2871
+ i0.ɵɵelementStart(8, "td");
2872
+ i0.ɵɵtext(9);
2873
+ i0.ɵɵelementEnd();
2874
+ i0.ɵɵelementStart(10, "td");
2875
+ i0.ɵɵtext(11);
2876
+ i0.ɵɵelementEnd();
2877
+ i0.ɵɵelementStart(12, "td");
2878
+ i0.ɵɵtext(13);
2879
+ i0.ɵɵpipe(14, "date");
2880
+ i0.ɵɵelementEnd();
2881
+ i0.ɵɵelementEnd();
2990
2882
  } if (rf & 2) {
2991
2883
  const acreedor_r3 = ctx.$implicit;
2992
- ɵɵproperty("pSelectableRow", acreedor_r3);
2993
- ɵɵadvance(2);
2994
- ɵɵtextInterpolate(acreedor_r3.descripcionRazonSocial);
2995
- ɵɵadvance(2);
2996
- ɵɵtextInterpolate(acreedor_r3.descripcionRfc);
2997
- ɵɵadvance(2);
2998
- ɵɵproperty("ngIf", acreedor_r3.personaMoral);
2999
- ɵɵadvance(1);
3000
- ɵɵproperty("ngIf", acreedor_r3.personaFisica);
3001
- ɵɵadvance(2);
3002
- ɵɵtextInterpolate(acreedor_r3.atrasoDiasEntrega);
3003
- ɵɵadvance(2);
3004
- ɵɵtextInterpolate(acreedor_r3.limiteCredito);
3005
- ɵɵadvance(2);
3006
- ɵɵtextInterpolate(ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
2884
+ i0.ɵɵproperty("pSelectableRow", acreedor_r3);
2885
+ i0.ɵɵadvance(2);
2886
+ i0.ɵɵtextInterpolate(acreedor_r3.descripcionRazonSocial);
2887
+ i0.ɵɵadvance(2);
2888
+ i0.ɵɵtextInterpolate(acreedor_r3.descripcionRfc);
2889
+ i0.ɵɵadvance(2);
2890
+ i0.ɵɵproperty("ngIf", acreedor_r3.personaMoral);
2891
+ i0.ɵɵadvance(1);
2892
+ i0.ɵɵproperty("ngIf", acreedor_r3.personaFisica);
2893
+ i0.ɵɵadvance(2);
2894
+ i0.ɵɵtextInterpolate(acreedor_r3.atrasoDiasEntrega);
2895
+ i0.ɵɵadvance(2);
2896
+ i0.ɵɵtextInterpolate(acreedor_r3.limiteCredito);
2897
+ i0.ɵɵadvance(2);
2898
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r3.fechaUltimaCompra, "dd/MM/yyyy"));
3007
2899
  } }
3008
2900
  function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
3009
- ɵɵelementStart(0, "tr");
3010
- ɵɵelementStart(1, "td");
3011
- ɵɵtext(2);
3012
- ɵɵpipe(3, "translate");
3013
- ɵɵelementEnd();
3014
- ɵɵelementEnd();
2901
+ i0.ɵɵelementStart(0, "tr");
2902
+ i0.ɵɵelementStart(1, "td");
2903
+ i0.ɵɵtext(2);
2904
+ i0.ɵɵpipe(3, "translate");
2905
+ i0.ɵɵelementEnd();
2906
+ i0.ɵɵelementEnd();
3015
2907
  } if (rf & 2) {
3016
- ɵɵadvance(1);
3017
- ɵɵattribute("colspan", 6);
3018
- ɵɵadvance(1);
3019
- ɵɵtextInterpolate(ɵɵpipeBind1(3, 2, "general.noRegistros"));
2908
+ i0.ɵɵadvance(1);
2909
+ i0.ɵɵattribute("colspan", 6);
2910
+ i0.ɵɵadvance(1);
2911
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
3020
2912
  } }
3021
- const _c0$7 = function () { return [10, 25, 50, 100, 500]; };
2913
+ const _c0 = function () { return [10, 25, 50, 100, 500]; };
3022
2914
  class SelectAcreedorComponent {
3023
2915
  constructor(acreedorService, paginanateService, translate) {
3024
2916
  this.acreedorService = acreedorService;
@@ -3058,46 +2950,46 @@ class SelectAcreedorComponent {
3058
2950
  this.visible = false;
3059
2951
  }
3060
2952
  }
3061
- /** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(ɵɵdirectiveInject(AcreedorService), ɵɵdirectiveInject(PaginateService), ɵɵdirectiveInject(TranslateService)); };
3062
- /** @nocollapse */ SelectAcreedorComponent.ɵcmp = ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
3063
- ɵɵelementStart(0, "p-dialog", 0);
3064
- ɵɵlistener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
3065
- ɵɵelementStart(1, "div", 1);
3066
- ɵɵelementStart(2, "input", 2);
3067
- ɵɵlistener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
3068
- ɵɵpipe(3, "translate");
3069
- ɵɵelementEnd();
3070
- ɵɵelementStart(4, "button", 3);
3071
- ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
3072
- ɵɵelementEnd();
3073
- ɵɵelementEnd();
3074
- ɵɵelementStart(5, "p-table", 4);
3075
- ɵɵlistener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { return ctx.acreedorSeleccionado = $event; })("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
3076
- ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
3077
- ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6);
3078
- ɵɵtemplate(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
3079
- ɵɵelementEnd();
3080
- ɵɵelementStart(9, "p-paginator", 8);
3081
- ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
3082
- ɵɵelementEnd();
3083
- ɵɵelementEnd();
2953
+ /** @nocollapse */ SelectAcreedorComponent.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3.TranslateService)); };
2954
+ /** @nocollapse */ SelectAcreedorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visible", "visibleChange", "onHide", "onShow"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "placeholder", "ngModel", "ngModelChange", "keyup"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", 3, "value", "selection", "scrollable", "responsive", "selectionChange", "onRowSelect"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions", "onPageChange"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
2955
+ i0.ɵɵelementStart(0, "p-dialog", 0);
2956
+ i0.ɵɵlistener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { return ctx.visible = $event; })("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
2957
+ i0.ɵɵelementStart(1, "div", 1);
2958
+ i0.ɵɵelementStart(2, "input", 2);
2959
+ i0.ɵɵlistener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { return ctx.page.filtro = $event; })("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
2960
+ i0.ɵɵpipe(3, "translate");
2961
+ i0.ɵɵelementEnd();
2962
+ i0.ɵɵelementStart(4, "button", 3);
2963
+ i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
2964
+ i0.ɵɵelementEnd();
2965
+ i0.ɵɵelementEnd();
2966
+ i0.ɵɵelementStart(5, "p-table", 4);
2967
+ i0.ɵɵlistener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { return ctx.acreedorSeleccionado = $event; })("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
2968
+ i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5);
2969
+ i0.ɵɵtemplate(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6);
2970
+ i0.ɵɵtemplate(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
2971
+ i0.ɵɵelementEnd();
2972
+ i0.ɵɵelementStart(9, "p-paginator", 8);
2973
+ i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
2974
+ i0.ɵɵelementEnd();
2975
+ i0.ɵɵelementEnd();
3084
2976
  } if (rf & 2) {
3085
- ɵɵproperty("visible", ctx.visible);
3086
- ɵɵadvance(2);
3087
- ɵɵpropertyInterpolate1("placeholder", "", ɵɵpipeBind1(3, 11, "buscar"), "...");
3088
- ɵɵproperty("ngModel", ctx.page.filtro);
3089
- ɵɵadvance(3);
3090
- ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
3091
- ɵɵadvance(4);
3092
- ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(13, _c0$7));
3093
- } }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator, SelectableRow, NgIf], pipes: [TranslatePipe, DatePipe], encapsulation: 2 });
3094
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SelectAcreedorComponent, [{
2977
+ i0.ɵɵproperty("visible", ctx.visible);
2978
+ i0.ɵɵadvance(2);
2979
+ i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
2980
+ i0.ɵɵproperty("ngModel", ctx.page.filtro);
2981
+ i0.ɵɵadvance(3);
2982
+ i0.ɵɵproperty("value", ctx.acreedores)("selection", ctx.acreedorSeleccionado)("scrollable", true)("responsive", true);
2983
+ i0.ɵɵadvance(4);
2984
+ i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
2985
+ } }, directives: [i4$2.Dialog, i5.DefaultValueAccessor, i6.InputText, i5.NgControlStatus, i5.NgModel, i7.ButtonDirective, i8$1.Table, i4$1.PrimeTemplate, i10.Paginator, i8$1.SelectableRow, i8.NgIf], pipes: [i3.TranslatePipe, i8.DatePipe], encapsulation: 2 });
2986
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
3095
2987
  type: Component,
3096
2988
  args: [{
3097
2989
  templateUrl: 'select-acreedor.component.html',
3098
2990
  selector: 'select-acreedor'
3099
2991
  }]
3100
- }], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: TranslateService }]; }, { visible: [{
2992
+ }], function () { return [{ type: AcreedorService }, { type: PaginateService }, { type: i3.TranslateService }]; }, { visible: [{
3101
2993
  type: Input
3102
2994
  }], acreedorSeleccionado: [{
3103
2995
  type: Input
@@ -3160,8 +3052,9 @@ function HttpLoaderFactory(http) {
3160
3052
  }
3161
3053
  class CoreLibModule {
3162
3054
  }
3163
- /** @nocollapse */ CoreLibModule.ɵmod = ɵɵdefineNgModule({ type: CoreLibModule });
3164
- /** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ factory: function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); }, providers: [
3055
+ /** @nocollapse */ CoreLibModule.ɵfac = function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); };
3056
+ /** @nocollapse */ CoreLibModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CoreLibModule });
3057
+ /** @nocollapse */ CoreLibModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [
3165
3058
  primeNgServices,
3166
3059
  { provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
3167
3060
  ], imports: [[
@@ -3177,8 +3070,7 @@ class CoreLibModule {
3177
3070
  }
3178
3071
  })
3179
3072
  ]] });
3180
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, CardModule, TooltipModule, OverlayPanelModule, RadioButtonModule, CheckboxModule, AutoCompleteModule, TableModule, TreeTableModule, CalendarModule, TableModule, ButtonModule, InputTextModule, DropdownModule, InputMaskModule, MessagesModule, MessageModule, PaginatorModule, ConfirmDialogModule, ProgressBarModule, TriStateCheckboxModule, KeyFilterModule, InputSwitchModule, DialogModule, TabViewModule, PanelModule, ToolbarModule, SplitButtonModule, FieldsetModule, TreeModule, TabMenuModule, MenubarModule, FormsModule, ToastrModule, TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
3181
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CoreLibModule, [{
3073
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoreLibModule, [{
3182
3074
  type: NgModule,
3183
3075
  args: [{
3184
3076
  declarations: [
@@ -3207,6 +3099,7 @@ class CoreLibModule {
3207
3099
  exports: [components, contaComponents]
3208
3100
  }]
3209
3101
  }], null, null); })();
3102
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i8$1.TableModule, i4.TreeTableModule, i20.CalendarModule, i8$1.TableModule, i7.ButtonModule, i6.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i10.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i4$2.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, FormsModule, i1$1.ToastrModule, i3.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
3210
3103
 
3211
3104
  class ControlAccesoService {
3212
3105
  constructor(authService) {
@@ -3234,9 +3127,9 @@ class ControlAccesoService {
3234
3127
  return permiso;
3235
3128
  }
3236
3129
  }
3237
- /** @nocollapse */ ControlAccesoService.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(ɵɵinject(AuthService)); };
3238
- /** @nocollapse */ ControlAccesoService.ɵprov = ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' });
3239
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ControlAccesoService, [{
3130
+ /** @nocollapse */ ControlAccesoService.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(i0.ɵɵinject(AuthService)); };
3131
+ /** @nocollapse */ ControlAccesoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' });
3132
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ControlAccesoService, [{
3240
3133
  type: Injectable,
3241
3134
  args: [{
3242
3135
  providedIn: 'root'
@@ -3283,14 +3176,14 @@ class InitService {
3283
3176
  });
3284
3177
  }
3285
3178
  }
3286
- /** @nocollapse */ InitService.ɵfac = function InitService_Factory(t) { return new (t || InitService)(ɵɵinject(HttpClient), ɵɵinject(AuthService)); };
3287
- /** @nocollapse */ InitService.ɵprov = ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' });
3288
- /*@__PURE__*/ (function () { ɵsetClassMetadata(InitService, [{
3179
+ /** @nocollapse */ InitService.ɵfac = function InitService_Factory(t) { return new (t || InitService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(AuthService)); };
3180
+ /** @nocollapse */ InitService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' });
3181
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InitService, [{
3289
3182
  type: Injectable,
3290
3183
  args: [{
3291
3184
  providedIn: 'root'
3292
3185
  }]
3293
- }], function () { return [{ type: HttpClient }, { type: AuthService }]; }, null); })();
3186
+ }], function () { return [{ type: i1.HttpClient }, { type: AuthService }]; }, null); })();
3294
3187
 
3295
3188
  class MessageService {
3296
3189
  constructor(toastr) {
@@ -3358,44 +3251,28 @@ class MessageService {
3358
3251
  return msgs;
3359
3252
  }
3360
3253
  }
3361
- /** @nocollapse */ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(ɵɵinject(ToastrService)); };
3362
- /** @nocollapse */ MessageService.ɵprov = ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
3363
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MessageService, [{
3254
+ /** @nocollapse */ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0.ɵɵinject(i1$1.ToastrService)); };
3255
+ /** @nocollapse */ MessageService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
3256
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MessageService, [{
3364
3257
  type: Injectable,
3365
3258
  args: [{
3366
3259
  providedIn: 'root'
3367
3260
  }]
3368
- }], function () { return [{ type: ToastrService }]; }, null); })();
3261
+ }], function () { return [{ type: i1$1.ToastrService }]; }, null); })();
3369
3262
 
3370
- class PersonaMoralService {
3371
- constructor(api) {
3372
- this.api = api;
3373
- this.endpoint = 'personaMoral';
3374
- }
3375
- getAll(params) {
3376
- return this.api.get(this.endpoint, params);
3377
- }
3378
- get(id) {
3379
- return this.api.get(`${this.endpoint}/${id}`);
3380
- }
3381
- save(obj) {
3382
- return this.api.post(this.endpoint, obj);
3383
- }
3384
- update(obj) {
3385
- return this.api.put(this.endpoint, obj.id, obj);
3386
- }
3387
- delete(id) {
3388
- return this.api.delete(this.endpoint, id);
3263
+ class PersonaMoralService extends CrudService {
3264
+ constructor(http) {
3265
+ super(http, '/personaMoral');
3389
3266
  }
3390
3267
  }
3391
- /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(ApiService)); };
3392
- /** @nocollapse */ PersonaMoralService.ɵprov = ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
3393
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaMoralService, [{
3268
+ /** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(i0.ɵɵinject(i1.HttpClient)); };
3269
+ /** @nocollapse */ PersonaMoralService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
3270
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaMoralService, [{
3394
3271
  type: Injectable,
3395
3272
  args: [{
3396
3273
  providedIn: 'root'
3397
3274
  }]
3398
- }], function () { return [{ type: ApiService }]; }, null); })();
3275
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3399
3276
 
3400
3277
  class CanActivateGuard {
3401
3278
  constructor(controlAccesoService) {
@@ -3410,44 +3287,29 @@ class CanActivateGuard {
3410
3287
  this.rol = rol;
3411
3288
  }
3412
3289
  }
3413
- /** @nocollapse */ CanActivateGuard.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(ɵɵinject(ControlAccesoService)); };
3414
- /** @nocollapse */ CanActivateGuard.ɵprov = ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' });
3415
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CanActivateGuard, [{
3290
+ /** @nocollapse */ CanActivateGuard.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(i0.ɵɵinject(ControlAccesoService)); };
3291
+ /** @nocollapse */ CanActivateGuard.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' });
3292
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CanActivateGuard, [{
3416
3293
  type: Injectable,
3417
3294
  args: [{
3418
3295
  providedIn: 'root'
3419
3296
  }]
3420
3297
  }], function () { return [{ type: ControlAccesoService }]; }, null); })();
3421
3298
 
3422
- class CatalogoAdicionalService {
3423
- constructor(api) {
3424
- this.api = api;
3425
- this.endpoint = 'catalogoAdicional';
3426
- }
3427
- getAll(params) {
3428
- return this.api.get(this.endpoint, params);
3429
- }
3430
- get(id) {
3431
- return this.api.get(`${this.endpoint}/${id}`);
3432
- }
3433
- save(obj) {
3434
- return this.api.post(this.endpoint, obj);
3435
- }
3436
- update(obj) {
3437
- return this.api.put(this.endpoint, obj.id, obj);
3438
- }
3439
- delete(id) {
3440
- return this.api.delete(this.endpoint, id);
3299
+ class CatalogoAdicionalService extends CrudService {
3300
+ constructor(httpClient) {
3301
+ super(httpClient, 'catalogoAdicional');
3302
+ this.httpClient = httpClient;
3441
3303
  }
3442
3304
  }
3443
- /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(ApiService)); };
3444
- /** @nocollapse */ CatalogoAdicionalService.ɵprov = ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
3445
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoAdicionalService, [{
3305
+ /** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(i0.ɵɵinject(i1.HttpClient)); };
3306
+ /** @nocollapse */ CatalogoAdicionalService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
3307
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoAdicionalService, [{
3446
3308
  type: Injectable,
3447
3309
  args: [{
3448
3310
  providedIn: 'root'
3449
3311
  }]
3450
- }], function () { return [{ type: ApiService }]; }, null); })();
3312
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3451
3313
 
3452
3314
  class Authenticated {
3453
3315
  constructor(authService, controlAccesoService, router) {
@@ -3509,14 +3371,14 @@ class Authenticated {
3509
3371
  window.location.href = host;
3510
3372
  }
3511
3373
  }
3512
- /** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(ɵɵinject(AuthService), ɵɵinject(ControlAccesoService), ɵɵinject(Router)); };
3513
- /** @nocollapse */ Authenticated.ɵprov = ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
3514
- /*@__PURE__*/ (function () { ɵsetClassMetadata(Authenticated, [{
3374
+ /** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$2.Router)); };
3375
+ /** @nocollapse */ Authenticated.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
3376
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Authenticated, [{
3515
3377
  type: Injectable,
3516
3378
  args: [{
3517
3379
  providedIn: 'root'
3518
3380
  }]
3519
- }], function () { return [{ type: AuthService }, { type: ControlAccesoService }, { type: Router }]; }, null); })();
3381
+ }], function () { return [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$2.Router }]; }, null); })();
3520
3382
 
3521
3383
  class VersionCheckService {
3522
3384
  constructor(http) {
@@ -3557,50 +3419,41 @@ class VersionCheckService {
3557
3419
  return currentHash === newHash;
3558
3420
  }
3559
3421
  }
3560
- /** @nocollapse */ VersionCheckService.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(ɵɵinject(HttpClient)); };
3561
- /** @nocollapse */ VersionCheckService.ɵprov = ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' });
3562
- /*@__PURE__*/ (function () { ɵsetClassMetadata(VersionCheckService, [{
3422
+ /** @nocollapse */ VersionCheckService.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(i0.ɵɵinject(i1.HttpClient)); };
3423
+ /** @nocollapse */ VersionCheckService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' });
3424
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VersionCheckService, [{
3563
3425
  type: Injectable,
3564
3426
  args: [{
3565
3427
  providedIn: 'root'
3566
3428
  }]
3567
- }], function () { return [{ type: HttpClient }]; }, null); })();
3429
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3568
3430
 
3569
- class AgenteService {
3570
- constructor(api) {
3571
- this.api = api;
3572
- this.endpoint = 'agente';
3431
+ class AgenteService extends CrudService {
3432
+ constructor(httpClient) {
3433
+ super(httpClient, 'agente');
3434
+ this.httpClient = httpClient;
3573
3435
  }
3574
3436
  saveUsuarioAgente(usuario) {
3575
- return this.api.post(`${this.endpoint}/usuario`, usuario);
3437
+ let url = this.getUrl('agente') + '/usuario';
3438
+ return this.getHttp().post(url, usuario, this.buildAuth());
3576
3439
  }
3577
3440
  getUsuarioAgente(id) {
3578
- return this.api.get(`${this.endpoint}/usuario/${id}`);
3441
+ let url = this.getUrl('agente') + '/usuario/' + id;
3442
+ return this.getHttp().get(url, this.buildAuth());
3579
3443
  }
3580
3444
  obtenerAgenteEmpresa() {
3581
- return this.api.get(`${this.endpoint}/obtenerAgenteEmpresa`);
3582
- }
3583
- get(id) {
3584
- return this.api.get(`${this.endpoint}/${id}`);
3585
- }
3586
- save(obj) {
3587
- return this.api.post(this.endpoint, obj);
3588
- }
3589
- update(obj) {
3590
- return this.api.put(this.endpoint, obj.id, obj);
3591
- }
3592
- delete(id) {
3593
- return this.api.delete(this.endpoint, id);
3445
+ let url = this.geturl() + '/obtenerAgenteEmpresa';
3446
+ return this.getHttp().get(url, this.buildAuth());
3594
3447
  }
3595
3448
  }
3596
- /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(ApiService)); };
3597
- /** @nocollapse */ AgenteService.ɵprov = ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
3598
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AgenteService, [{
3449
+ /** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(i0.ɵɵinject(i1.HttpClient)); };
3450
+ /** @nocollapse */ AgenteService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
3451
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AgenteService, [{
3599
3452
  type: Injectable,
3600
3453
  args: [{
3601
3454
  providedIn: 'root'
3602
3455
  }]
3603
- }], function () { return [{ type: ApiService }]; }, null); })();
3456
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3604
3457
 
3605
3458
  class Almacen {
3606
3459
  constructor() { }
@@ -3617,133 +3470,69 @@ class Banco {
3617
3470
  }
3618
3471
  }
3619
3472
 
3620
- class BancoService {
3621
- constructor(api) {
3622
- this.api = api;
3623
- this.endpoint = 'banco';
3624
- }
3625
- getAll(params) {
3626
- return this.api.get(this.endpoint, params);
3627
- }
3628
- get(id) {
3629
- return this.api.get(`${this.endpoint}/${id}`);
3630
- }
3631
- save(obj) {
3632
- return this.api.post(this.endpoint, obj);
3633
- }
3634
- update(obj) {
3635
- return this.api.put(this.endpoint, obj.id, obj);
3636
- }
3637
- delete(id) {
3638
- return this.api.delete(this.endpoint, id);
3473
+ class BancoService extends CrudService {
3474
+ constructor(http) {
3475
+ super(http, '/banco');
3639
3476
  }
3640
3477
  }
3641
- /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(ApiService)); };
3642
- /** @nocollapse */ BancoService.ɵprov = ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
3643
- /*@__PURE__*/ (function () { ɵsetClassMetadata(BancoService, [{
3478
+ /** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(i0.ɵɵinject(i1.HttpClient)); };
3479
+ /** @nocollapse */ BancoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
3480
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BancoService, [{
3644
3481
  type: Injectable,
3645
3482
  args: [{
3646
3483
  providedIn: 'root'
3647
3484
  }]
3648
- }], function () { return [{ type: ApiService }]; }, null); })();
3485
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3649
3486
 
3650
3487
  class CatalogoTipo {
3651
3488
  constructor() { }
3652
3489
  }
3653
3490
 
3654
- class CatalogoTipoService {
3655
- constructor(api) {
3656
- this.api = api;
3657
- this.endpoint = 'catalogoTipo';
3658
- }
3659
- getAll(params) {
3660
- return this.api.get(this.endpoint, params);
3661
- }
3662
- get(id) {
3663
- return this.api.get(`${this.endpoint}/${id}`);
3664
- }
3665
- save(obj) {
3666
- return this.api.post(this.endpoint, obj);
3667
- }
3668
- update(obj) {
3669
- return this.api.put(this.endpoint, obj.id, obj);
3670
- }
3671
- delete(id) {
3672
- return this.api.delete(this.endpoint, id);
3491
+ class CatalogoTipoService extends CrudService {
3492
+ constructor(htt) {
3493
+ super(htt, '/catalogoTipo');
3673
3494
  }
3674
3495
  }
3675
- /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(ApiService)); };
3676
- /** @nocollapse */ CatalogoTipoService.ɵprov = ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
3677
- /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogoTipoService, [{
3496
+ /** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(i0.ɵɵinject(i1.HttpClient)); };
3497
+ /** @nocollapse */ CatalogoTipoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
3498
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogoTipoService, [{
3678
3499
  type: Injectable,
3679
3500
  args: [{
3680
3501
  providedIn: 'root'
3681
3502
  }]
3682
- }], function () { return [{ type: ApiService }]; }, null); })();
3503
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3683
3504
 
3684
- class ClasificadorTipoService {
3685
- constructor(api) {
3686
- this.api = api;
3687
- this.endpoint = 'clasificadorTipo';
3688
- }
3689
- getAll(params) {
3690
- return this.api.get(this.endpoint, params);
3691
- }
3692
- get(id) {
3693
- return this.api.get(`${this.endpoint}/${id}`);
3694
- }
3695
- save(obj) {
3696
- return this.api.post(this.endpoint, obj);
3697
- }
3698
- update(obj) {
3699
- return this.api.put(this.endpoint, obj.id, obj);
3700
- }
3701
- delete(id) {
3702
- return this.api.delete(this.endpoint, id);
3505
+ class ClasificadorTipoService extends CrudService {
3506
+ constructor(http) {
3507
+ super(http, '/clasificadorTipo');
3703
3508
  }
3704
3509
  }
3705
- /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(ApiService)); };
3706
- /** @nocollapse */ ClasificadorTipoService.ɵprov = ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
3707
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClasificadorTipoService, [{
3510
+ /** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(i0.ɵɵinject(i1.HttpClient)); };
3511
+ /** @nocollapse */ ClasificadorTipoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
3512
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClasificadorTipoService, [{
3708
3513
  type: Injectable,
3709
3514
  args: [{
3710
3515
  providedIn: 'root'
3711
3516
  }]
3712
- }], function () { return [{ type: ApiService }]; }, null); })();
3517
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3713
3518
 
3714
3519
  class ClaveMovimiento {
3715
3520
  constructor() { }
3716
3521
  }
3717
3522
 
3718
- class ClaveMovimientoService {
3719
- constructor(api) {
3720
- this.api = api;
3721
- this.endpoint = 'claveMovimiento';
3722
- }
3723
- getAll(params) {
3724
- return this.api.get(this.endpoint, params);
3725
- }
3726
- get(id) {
3727
- return this.api.get(`${this.endpoint}/${id}`);
3728
- }
3729
- save(obj) {
3730
- return this.api.post(this.endpoint, obj);
3731
- }
3732
- update(obj) {
3733
- return this.api.put(this.endpoint, obj.id, obj);
3734
- }
3735
- delete(id) {
3736
- return this.api.delete(this.endpoint, id);
3523
+ class ClaveMovimientoService extends CrudService {
3524
+ constructor(http) {
3525
+ super(http, 'claveMovimiento');
3737
3526
  }
3738
3527
  }
3739
- /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(ApiService)); };
3740
- /** @nocollapse */ ClaveMovimientoService.ɵprov = ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
3741
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveMovimientoService, [{
3528
+ /** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(i0.ɵɵinject(i1.HttpClient)); };
3529
+ /** @nocollapse */ ClaveMovimientoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
3530
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveMovimientoService, [{
3742
3531
  type: Injectable,
3743
3532
  args: [{
3744
3533
  providedIn: 'root'
3745
3534
  }]
3746
- }], function () { return [{ type: ApiService }]; }, null); })();
3535
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3747
3536
 
3748
3537
  class ClienteCuentaBanco {
3749
3538
  constructor() {
@@ -3764,73 +3553,43 @@ class ClienteFlete {
3764
3553
  }
3765
3554
  }
3766
3555
 
3767
- class ClienteCuentaBancoService {
3768
- constructor(api) {
3769
- this.api = api;
3770
- this.endpoint = 'clienteCuentaBanco';
3556
+ class ClienteCuentaBancoService extends CrudService {
3557
+ constructor(httpClient) {
3558
+ super(httpClient, '/clienteCuentaBanco');
3559
+ this.httpClient = httpClient;
3771
3560
  }
3772
3561
  saveAll(params) {
3773
3562
  let p = { 'cuentas': params };
3774
- return this.api.post(this.endpoint, p);
3775
- }
3776
- get(id) {
3777
- return this.api.get(`${this.endpoint}/${id}`);
3778
- }
3779
- delete(id) {
3780
- return this.api.delete(this.endpoint, id);
3781
- }
3782
- getAll(params) {
3783
- return this.api.get(this.endpoint, params);
3784
- }
3785
- save(obj) {
3786
- return this.api.post(this.endpoint, obj);
3787
- }
3788
- update(obj) {
3789
- return this.api.put(this.endpoint, obj.id, obj);
3563
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
3790
3564
  }
3791
3565
  }
3792
- /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(ApiService)); };
3793
- /** @nocollapse */ ClienteCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
3794
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteCuentaBancoService, [{
3566
+ /** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(i0.ɵɵinject(i1.HttpClient)); };
3567
+ /** @nocollapse */ ClienteCuentaBancoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
3568
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteCuentaBancoService, [{
3795
3569
  type: Injectable,
3796
3570
  args: [{
3797
3571
  providedIn: 'root'
3798
3572
  }]
3799
- }], function () { return [{ type: ApiService }]; }, null); })();
3573
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3800
3574
 
3801
- class ClienteFleteService {
3802
- constructor(api) {
3803
- this.api = api;
3804
- this.endpoint = 'clienteFlete';
3575
+ class ClienteFleteService extends CrudService {
3576
+ constructor(httpClient) {
3577
+ super(httpClient, '/clienteFlete');
3578
+ this.httpClient = httpClient;
3805
3579
  }
3806
3580
  saveAll(p) {
3807
3581
  let params = { fletes: p };
3808
- return this.api.post(this.endpoint, params);
3809
- }
3810
- get(id) {
3811
- return this.api.get(`${this.endpoint}/${id}`);
3812
- }
3813
- delete(id) {
3814
- return this.api.delete(this.endpoint, id);
3815
- }
3816
- getAll(params) {
3817
- return this.api.get(this.endpoint, params);
3818
- }
3819
- save(obj) {
3820
- return this.api.post(this.endpoint, obj);
3821
- }
3822
- update(obj) {
3823
- return this.api.put(this.endpoint, obj.id, obj);
3582
+ return this.save(params);
3824
3583
  }
3825
3584
  }
3826
- /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(ApiService)); };
3827
- /** @nocollapse */ ClienteFleteService.ɵprov = ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
3828
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClienteFleteService, [{
3585
+ /** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(i0.ɵɵinject(i1.HttpClient)); };
3586
+ /** @nocollapse */ ClienteFleteService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
3587
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteFleteService, [{
3829
3588
  type: Injectable,
3830
3589
  args: [{
3831
3590
  providedIn: 'root'
3832
3591
  }]
3833
- }], function () { return [{ type: ApiService }]; }, null); })();
3592
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3834
3593
 
3835
3594
  class TipoContacto {
3836
3595
  constructor() {
@@ -3844,100 +3603,52 @@ class DatoContacto {
3844
3603
  }
3845
3604
  }
3846
3605
 
3847
- class DatoContactoService {
3848
- constructor(api) {
3849
- this.api = api;
3850
- this.endpoint = 'contacto';
3851
- }
3852
- getAll(params) {
3853
- return this.api.get(this.endpoint, params);
3854
- }
3855
- get(id) {
3856
- return this.api.get(`${this.endpoint}/${id}`);
3857
- }
3858
- save(obj) {
3859
- return this.api.post(this.endpoint, obj);
3860
- }
3861
- update(obj) {
3862
- return this.api.put(this.endpoint, obj.id, obj);
3863
- }
3864
- delete(id) {
3865
- return this.api.delete(this.endpoint, id);
3606
+ class DatoContactoService extends CrudService {
3607
+ constructor(http) {
3608
+ super(http, '/contacto');
3866
3609
  }
3867
3610
  }
3868
- /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(ApiService)); };
3869
- /** @nocollapse */ DatoContactoService.ɵprov = ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
3870
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoContactoService, [{
3611
+ /** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(i0.ɵɵinject(i1.HttpClient)); };
3612
+ /** @nocollapse */ DatoContactoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
3613
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatoContactoService, [{
3871
3614
  type: Injectable,
3872
3615
  args: [{
3873
3616
  providedIn: 'root'
3874
3617
  }]
3875
- }], function () { return [{ type: ApiService }]; }, null); })();
3618
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3876
3619
 
3877
- class DatoDireccionService {
3878
- constructor(api) {
3879
- this.api = api;
3880
- this.endpoint = 'datoDireccion';
3881
- }
3882
- getAll(params) {
3883
- return this.api.get(this.endpoint, params);
3884
- }
3885
- get(id) {
3886
- return this.api.get(`${this.endpoint}/${id}`);
3887
- }
3888
- save(obj) {
3889
- return this.api.post(this.endpoint, obj);
3890
- }
3891
- update(obj) {
3892
- return this.api.put(this.endpoint, obj.id, obj);
3893
- }
3894
- delete(id) {
3895
- return this.api.delete(this.endpoint, id);
3620
+ class DatoDireccionService extends CrudService {
3621
+ constructor(http) {
3622
+ super(http, '/datoDireccion');
3896
3623
  }
3897
3624
  }
3898
- /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(ApiService)); };
3899
- /** @nocollapse */ DatoDireccionService.ɵprov = ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
3900
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DatoDireccionService, [{
3625
+ /** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(i0.ɵɵinject(i1.HttpClient)); };
3626
+ /** @nocollapse */ DatoDireccionService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
3627
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatoDireccionService, [{
3901
3628
  type: Injectable,
3902
3629
  args: [{
3903
3630
  providedIn: 'root'
3904
3631
  }]
3905
- }], function () { return [{ type: ApiService }]; }, null); })();
3632
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3906
3633
 
3907
3634
  class Departamento {
3908
3635
  constructor() {
3909
3636
  }
3910
3637
  }
3911
3638
 
3912
- class DepartamentoService {
3913
- constructor(api) {
3914
- this.api = api;
3915
- this.endpoint = 'departamento';
3916
- }
3917
- getAll(params) {
3918
- return this.api.get(this.endpoint, params);
3919
- }
3920
- get(id) {
3921
- return this.api.get(`${this.endpoint}/${id}`);
3922
- }
3923
- save(obj) {
3924
- return this.api.post(this.endpoint, obj);
3925
- }
3926
- update(obj) {
3927
- return this.api.put(this.endpoint, obj.id, obj);
3928
- }
3929
- delete(id) {
3930
- return this.api.delete(this.endpoint, id);
3639
+ class DepartamentoService extends CrudService {
3640
+ constructor(http) {
3641
+ super(http, '/departamento');
3931
3642
  }
3932
3643
  }
3933
- /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(ApiService)); };
3934
- /** @nocollapse */ DepartamentoService.ɵprov = ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
3935
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DepartamentoService, [{
3644
+ /** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(i0.ɵɵinject(i1.HttpClient)); };
3645
+ /** @nocollapse */ DepartamentoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
3646
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DepartamentoService, [{
3936
3647
  type: Injectable,
3937
3648
  args: [{
3938
3649
  providedIn: 'root'
3939
3650
  }]
3940
- }], function () { return [{ type: ApiService }]; }, null); })();
3651
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3941
3652
 
3942
3653
  class FormaPago {
3943
3654
  constructor() { }
@@ -3957,132 +3668,72 @@ class ConfiguracionEmpresaAdministrativa {
3957
3668
  }
3958
3669
  }
3959
3670
 
3960
- class EmpresaService {
3961
- constructor(api) {
3962
- this.api = api;
3963
- this.endpoint = 'empresa';
3964
- }
3965
- getAll(params) {
3966
- return this.api.get(this.endpoint, params);
3671
+ class EmpresaService extends CrudService {
3672
+ constructor(httpClient) {
3673
+ super(httpClient, '/empresa');
3674
+ this.httpClient = httpClient;
3967
3675
  }
3968
3676
  get() {
3969
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario`);
3970
- }
3971
- getByEmpresa(id) {
3972
- return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario/${id}`);
3973
- }
3974
- save(obj) {
3975
- return this.api.post(this.endpoint, obj);
3976
- }
3977
- update(obj) {
3978
- return this.api.put(this.endpoint, obj.id, obj);
3979
- }
3980
- delete(id) {
3981
- return this.api.delete(this.endpoint, id);
3677
+ // return super.get(1);
3678
+ return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
3982
3679
  }
3983
3680
  }
3984
- /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(ApiService)); };
3985
- /** @nocollapse */ EmpresaService.ɵprov = ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
3986
- /*@__PURE__*/ (function () { ɵsetClassMetadata(EmpresaService, [{
3681
+ /** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(i0.ɵɵinject(i1.HttpClient)); };
3682
+ /** @nocollapse */ EmpresaService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
3683
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmpresaService, [{
3987
3684
  type: Injectable,
3988
3685
  args: [{
3989
3686
  providedIn: 'root'
3990
3687
  }]
3991
- }], function () { return [{ type: ApiService }]; }, null); })();
3688
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
3992
3689
 
3993
- class FleteService {
3994
- constructor(api) {
3995
- this.api = api;
3996
- this.endpoint = 'flete';
3997
- }
3998
- getAll(params) {
3999
- return this.api.get(this.endpoint, params);
4000
- }
4001
- get(id) {
4002
- return this.api.get(`${this.endpoint}/${id}`);
4003
- }
4004
- save(obj) {
4005
- return this.api.post(this.endpoint, obj);
4006
- }
4007
- update(obj) {
4008
- return this.api.put(this.endpoint, obj.id, obj);
4009
- }
4010
- delete(id) {
4011
- return this.api.delete(this.endpoint, id);
3690
+ class FleteService extends CrudService {
3691
+ constructor(httpClient) {
3692
+ super(httpClient, '/flete');
3693
+ this.httpClient = httpClient;
4012
3694
  }
4013
3695
  }
4014
- /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(ApiService)); };
4015
- /** @nocollapse */ FleteService.ɵprov = ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
4016
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FleteService, [{
3696
+ /** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(i0.ɵɵinject(i1.HttpClient)); };
3697
+ /** @nocollapse */ FleteService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
3698
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FleteService, [{
4017
3699
  type: Injectable,
4018
3700
  args: [{
4019
3701
  providedIn: 'root'
4020
3702
  }]
4021
- }], function () { return [{ type: ApiService }]; }, null); })();
3703
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4022
3704
 
4023
- class FormaPagoService {
4024
- constructor(api) {
4025
- this.api = api;
4026
- this.endpoint = 'FormaDePago';
4027
- }
4028
- getAll(params) {
4029
- return this.api.get(this.endpoint, params);
4030
- }
4031
- get(id) {
4032
- return this.api.get(`${this.endpoint}/${id}`);
4033
- }
4034
- save(obj) {
4035
- return this.api.post(this.endpoint, obj);
4036
- }
4037
- update(obj) {
4038
- return this.api.put(this.endpoint, obj.id, obj);
4039
- }
4040
- delete(id) {
4041
- return this.api.delete(this.endpoint, id);
3705
+ class FormaPagoService extends CrudService {
3706
+ constructor(http) {
3707
+ super(http, '/FormaDePago');
4042
3708
  }
4043
3709
  }
4044
- /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(ApiService)); };
4045
- /** @nocollapse */ FormaPagoService.ɵprov = ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
4046
- /*@__PURE__*/ (function () { ɵsetClassMetadata(FormaPagoService, [{
3710
+ /** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(i0.ɵɵinject(i1.HttpClient)); };
3711
+ /** @nocollapse */ FormaPagoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
3712
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormaPagoService, [{
4047
3713
  type: Injectable,
4048
3714
  args: [{
4049
3715
  providedIn: "root"
4050
3716
  }]
4051
- }], function () { return [{ type: ApiService }]; }, null); })();
3717
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4052
3718
 
4053
3719
  class Moneda {
4054
3720
  constructor() { }
4055
3721
  }
4056
3722
 
4057
- class MonedaService {
4058
- constructor(api) {
4059
- this.api = api;
4060
- this.endpoint = 'moneda';
4061
- }
4062
- getAll(params) {
4063
- return this.api.get(this.endpoint, params);
4064
- }
4065
- get(id) {
4066
- return this.api.get(`${this.endpoint}/${id}`);
4067
- }
4068
- save(obj) {
4069
- return this.api.post(this.endpoint, obj);
4070
- }
4071
- update(obj) {
4072
- return this.api.put(this.endpoint, obj.id, obj);
4073
- }
4074
- delete(id) {
4075
- return this.api.delete(this.endpoint, id);
3723
+ class MonedaService extends CrudService {
3724
+ constructor(httpClient) {
3725
+ super(httpClient, '/moneda');
3726
+ this.httpClient = httpClient;
4076
3727
  }
4077
3728
  }
4078
- /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(ApiService)); };
4079
- /** @nocollapse */ MonedaService.ɵprov = ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
4080
- /*@__PURE__*/ (function () { ɵsetClassMetadata(MonedaService, [{
3729
+ /** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(i0.ɵɵinject(i1.HttpClient)); };
3730
+ /** @nocollapse */ MonedaService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
3731
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MonedaService, [{
4081
3732
  type: Injectable,
4082
3733
  args: [{
4083
3734
  providedIn: 'root'
4084
3735
  }]
4085
- }], function () { return [{ type: ApiService }]; }, null); })();
3736
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4086
3737
 
4087
3738
  class EstadoCivil {
4088
3739
  constructor() { }
@@ -4092,26 +3743,26 @@ class Genero {
4092
3743
  constructor() { }
4093
3744
  }
4094
3745
 
4095
- class PersonaFisicaService {
4096
- constructor(api) {
4097
- this.api = api;
4098
- this.endpoint = 'PersonaFisica';
3746
+ class PersonaFisicaService extends CrudService {
3747
+ constructor(httpClient) {
3748
+ super(httpClient, '/PersonaFisica');
3749
+ this.httpClient = httpClient;
4099
3750
  }
4100
3751
  getGeneros() {
4101
- return this.api.get(`${this.endpoint}/genero`);
3752
+ return this.httpClient.get(this.getBaseUrl() + '/genero', this.buildAuth());
4102
3753
  }
4103
3754
  getEstadoCivil() {
4104
- return this.api.get(`${this.endpoint}/estadoCivil`);
3755
+ return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
4105
3756
  }
4106
3757
  }
4107
- /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(ApiService)); };
4108
- /** @nocollapse */ PersonaFisicaService.ɵprov = ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
4109
- /*@__PURE__*/ (function () { ɵsetClassMetadata(PersonaFisicaService, [{
3758
+ /** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(i0.ɵɵinject(i1.HttpClient)); };
3759
+ /** @nocollapse */ PersonaFisicaService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
3760
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PersonaFisicaService, [{
4110
3761
  type: Injectable,
4111
3762
  args: [{
4112
3763
  providedIn: "root"
4113
3764
  }]
4114
- }], function () { return [{ type: ApiService }]; }, null); })();
3765
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4115
3766
 
4116
3767
  class ProveedorCuentaBanco {
4117
3768
  constructor() {
@@ -4128,224 +3779,138 @@ class ProveedorFlete {
4128
3779
  }
4129
3780
  }
4130
3781
 
4131
- class ProveedorCuentaBancoService {
4132
- constructor(api) {
4133
- this.api = api;
4134
- this.endpoint = 'proveedorCuentaBanco';
4135
- }
4136
- getAll(params) {
4137
- return this.api.get(this.endpoint, params);
3782
+ class ProveedorCuentaBancoService extends CrudService {
3783
+ constructor(httpClient) {
3784
+ super(httpClient, '/proveedorCuentaBanco');
3785
+ this.httpClient = httpClient;
4138
3786
  }
4139
3787
  saveAll(params) {
4140
3788
  let p = { 'cuentas': params };
4141
- return this.api.post(this.endpoint, p);
4142
- }
4143
- get(id) {
4144
- return this.api.get(`${this.endpoint}/${id}`);
4145
- }
4146
- delete(id) {
4147
- return this.api.delete(this.endpoint, id);
4148
- }
4149
- update(obj) {
4150
- return this.api.put(this.endpoint, obj.id, obj);
4151
- }
4152
- save(obj) {
4153
- return this.api.post(this.endpoint, obj);
3789
+ return this.httpClient.post(this.geturl(), p, this.buildAuth());
4154
3790
  }
4155
3791
  }
4156
- /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(ApiService)); };
4157
- /** @nocollapse */ ProveedorCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
4158
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorCuentaBancoService, [{
3792
+ /** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(i0.ɵɵinject(i1.HttpClient)); };
3793
+ /** @nocollapse */ ProveedorCuentaBancoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
3794
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorCuentaBancoService, [{
4159
3795
  type: Injectable,
4160
3796
  args: [{
4161
3797
  providedIn: 'root'
4162
3798
  }]
4163
- }], function () { return [{ type: ApiService }]; }, null); })();
3799
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4164
3800
 
4165
- class ProveedorFleteService {
4166
- constructor(api) {
4167
- this.api = api;
4168
- this.endpoint = 'proveedorFlete';
4169
- }
4170
- getAll(params) {
4171
- return this.api.get(this.endpoint, params);
3801
+ class ProveedorFleteService extends CrudService {
3802
+ constructor(httpClient) {
3803
+ super(httpClient, '/proveedorFlete');
3804
+ this.httpClient = httpClient;
4172
3805
  }
4173
3806
  saveAll(p) {
4174
3807
  let params = { fletes: p };
4175
3808
  return this.save(params);
4176
3809
  }
4177
- save(obj) {
4178
- return this.api.post(this.endpoint, obj);
4179
- }
4180
- update(obj) {
4181
- return this.api.put(this.endpoint, obj.id, obj);
4182
- }
4183
- delete(id) {
4184
- return this.api.delete(this.endpoint, id);
4185
- }
4186
3810
  }
4187
- /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(ApiService)); };
4188
- /** @nocollapse */ ProveedorFleteService.ɵprov = ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
4189
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ProveedorFleteService, [{
3811
+ /** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(i0.ɵɵinject(i1.HttpClient)); };
3812
+ /** @nocollapse */ ProveedorFleteService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
3813
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorFleteService, [{
4190
3814
  type: Injectable,
4191
3815
  args: [{
4192
3816
  providedIn: 'root'
4193
3817
  }]
4194
- }], function () { return [{ type: ApiService }]; }, null); })();
3818
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4195
3819
 
4196
- class ClaveAumentoDisminucionService {
4197
- constructor(api) {
4198
- this.api = api;
4199
- this.endpoint = 'claveAumentoDisminucion';
4200
- }
4201
- getAll(params) {
4202
- return this.api.get(this.endpoint, params);
4203
- }
4204
- get(id) {
4205
- return this.api.get(`${this.endpoint}/${id}`);
4206
- }
4207
- save(obj) {
4208
- return this.api.post(this.endpoint, obj);
4209
- }
4210
- update(obj) {
4211
- return this.api.put(this.endpoint, obj.id, obj);
4212
- }
4213
- delete(id) {
4214
- return this.api.delete(this.endpoint, id);
3820
+ class ClaveAumentoDisminucionService extends CrudService {
3821
+ constructor(http) {
3822
+ super(http, 'claveAumentoDisminucion');
4215
3823
  }
4216
3824
  }
4217
- /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(ApiService)); };
4218
- /** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
4219
- /*@__PURE__*/ (function () { ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
3825
+ /** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(i0.ɵɵinject(i1.HttpClient)); };
3826
+ /** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
3827
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
4220
3828
  type: Injectable,
4221
3829
  args: [{
4222
3830
  providedIn: 'root'
4223
3831
  }]
4224
- }], function () { return [{ type: ApiService }]; }, null); })();
3832
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4225
3833
 
4226
- class SerieDocumentoService {
4227
- constructor(api) {
4228
- this.api = api;
4229
- this.endpoint = 'serieDocumento';
3834
+ class SerieDocumentoService extends CrudService {
3835
+ constructor(httpClient) {
3836
+ super(httpClient, 'serieDocumento');
3837
+ this.httpClient = httpClient;
4230
3838
  }
4231
3839
  getTipos() {
4232
- return this.api.get(`${this.endpoint}/tipoSerie`);
3840
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/tipoSerie', this.buildAuth());
4233
3841
  }
4234
3842
  getReporte(params) {
4235
- return this.api.get(`${this.endpoint}/descargaFormatoReporte`, params);
4236
- }
4237
- get(id) {
4238
- return this.api.get(`${this.endpoint}/${id}`);
4239
- }
4240
- save(obj) {
4241
- return this.api.post(this.endpoint, obj);
4242
- }
4243
- update(obj) {
4244
- return this.api.put(this.endpoint, obj.id, obj);
4245
- }
4246
- delete(id) {
4247
- return this.api.delete(this.endpoint, id);
3843
+ return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
4248
3844
  }
4249
3845
  }
4250
- /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(ApiService)); };
4251
- /** @nocollapse */ SerieDocumentoService.ɵprov = ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
4252
- /*@__PURE__*/ (function () { ɵsetClassMetadata(SerieDocumentoService, [{
3846
+ /** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(i0.ɵɵinject(i1.HttpClient)); };
3847
+ /** @nocollapse */ SerieDocumentoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
3848
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SerieDocumentoService, [{
4253
3849
  type: Injectable,
4254
3850
  args: [{
4255
3851
  providedIn: 'root'
4256
3852
  }]
4257
- }], function () { return [{ type: ApiService }]; }, null); })();
3853
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4258
3854
 
4259
3855
  class SerieDocumento {
4260
3856
  constructor() { }
4261
3857
  }
4262
3858
 
4263
- class TipoContactoService {
4264
- constructor(api) {
4265
- this.api = api;
4266
- this.endpoint = 'tipoContacto';
4267
- }
4268
- getAll(params) {
4269
- return this.api.get(this.endpoint, params);
4270
- }
4271
- get(id) {
4272
- return this.api.get(`${this.endpoint}/${id}`);
4273
- }
4274
- save(obj) {
4275
- return this.api.post(this.endpoint, obj);
4276
- }
4277
- update(obj) {
4278
- return this.api.put(this.endpoint, obj.id, obj);
4279
- }
4280
- delete(id) {
4281
- return this.api.delete(this.endpoint, id);
3859
+ class TipoContactoService extends CrudService {
3860
+ constructor(http) {
3861
+ super(http, '/tipoContacto');
4282
3862
  }
4283
3863
  }
4284
- /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(ApiService)); };
4285
- /** @nocollapse */ TipoContactoService.ɵprov = ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
4286
- /*@__PURE__*/ (function () { ɵsetClassMetadata(TipoContactoService, [{
3864
+ /** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(i0.ɵɵinject(i1.HttpClient)); };
3865
+ /** @nocollapse */ TipoContactoService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
3866
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TipoContactoService, [{
4287
3867
  type: Injectable,
4288
3868
  args: [{
4289
3869
  providedIn: 'root'
4290
3870
  }]
4291
- }], function () { return [{ type: ApiService }]; }, null); })();
3871
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4292
3872
 
4293
3873
  class Ubicacion {
4294
3874
  constructor() { }
4295
3875
  }
4296
3876
 
4297
- class UbicacionService {
4298
- constructor(api) {
4299
- this.api = api;
4300
- this.endpoint = 'ubicacion';
4301
- }
4302
- getAll(params) {
4303
- return this.api.get(this.endpoint, params);
4304
- }
4305
- get(id) {
4306
- return this.api.get(`${this.endpoint}/${id}`);
4307
- }
4308
- save(obj) {
4309
- return this.api.post(this.endpoint, obj);
4310
- }
4311
- update(obj) {
4312
- return this.api.put(this.endpoint, obj.id, obj);
4313
- }
4314
- delete(id) {
4315
- return this.api.delete(this.endpoint, id);
3877
+ class UbicacionService extends CrudService {
3878
+ constructor(http) {
3879
+ super(http, 'ubicacion');
4316
3880
  }
4317
3881
  }
4318
- /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(ApiService)); };
4319
- /** @nocollapse */ UbicacionService.ɵprov = ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
4320
- /*@__PURE__*/ (function () { ɵsetClassMetadata(UbicacionService, [{
3882
+ /** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(i0.ɵɵinject(i1.HttpClient)); };
3883
+ /** @nocollapse */ UbicacionService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
3884
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UbicacionService, [{
4321
3885
  type: Injectable,
4322
3886
  args: [{
4323
3887
  providedIn: 'root'
4324
3888
  }]
4325
- }], function () { return [{ type: ApiService }]; }, null); })();
3889
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4326
3890
 
4327
3891
  class TipoCatalogo {
4328
3892
  }
4329
3893
  TipoCatalogo.ARTICULO = 2;
4330
3894
  TipoCatalogo.USO_CFDI = 11;
4331
3895
 
4332
- class AcreedorCuentaContableService {
4333
- constructor(api) {
4334
- this.api = api;
4335
- this.endpoint = 'acreedorCuentaContable';
3896
+ class AcreedorCuentaContableService extends CrudService {
3897
+ constructor(httpClient) {
3898
+ super(httpClient, 'acreedorCuentaContable');
3899
+ this.httpClient = httpClient;
4336
3900
  }
4337
3901
  cuentasContables() {
4338
- return this.api.get(`${this.endpoint}/obtieneCuentasContablesRecursivo`);
3902
+ let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
3903
+ return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
4339
3904
  }
4340
3905
  }
4341
- /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(ApiService)); };
4342
- /** @nocollapse */ AcreedorCuentaContableService.ɵprov = ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
4343
- /*@__PURE__*/ (function () { ɵsetClassMetadata(AcreedorCuentaContableService, [{
3906
+ /** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(i1.HttpClient)); };
3907
+ /** @nocollapse */ AcreedorCuentaContableService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
3908
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorCuentaContableService, [{
4344
3909
  type: Injectable,
4345
3910
  args: [{
4346
3911
  providedIn: 'root'
4347
3912
  }]
4348
- }], function () { return [{ type: ApiService }]; }, null); })();
3913
+ }], function () { return [{ type: i1.HttpClient }]; }, null); })();
4349
3914
 
4350
3915
  class CuentaContableModel {
4351
3916
  constructor() {
@@ -4366,5 +3931,5 @@ class NormaInformacionFinancieraModel {
4366
3931
  * Generated bundle index. Do not edit.
4367
3932
  */
4368
3933
 
4369
- export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, ApiService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3934
+ export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
4370
3935
  //# sourceMappingURL=visorus-erp-core.js.map