visorus-erp-core 1.0.8 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/visorus-erp-core.umd.js +2218 -4129
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +2 -2
- package/bundles/visorus-erp-core.umd.min.js.map +1 -1
- package/esm2015/lib/app.module.js +70 -13
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +187 -82
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +8 -24
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +8 -28
- package/esm2015/lib/components/agente/models/Agente.js +1 -37
- package/esm2015/lib/components/agente/services/agente.service.js +8 -38
- package/esm2015/lib/components/almacen/models/Almacen.js +1 -37
- package/esm2015/lib/components/almacen/services/almacen.service.js +8 -28
- package/esm2015/lib/components/banco/models/Banco.js +1 -25
- package/esm2015/lib/components/banco/services/banco.service.js +8 -17
- package/esm2015/lib/components/caja/session-create/session-create.component.js +127 -73
- package/esm2015/lib/components/caja/sessionCaja.service.js +8 -24
- package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -19
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +8 -17
- package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -19
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +8 -17
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +8 -17
- package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -47
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +8 -17
- package/esm2015/lib/components/cliente/models/Cliente.js +1 -79
- package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -21
- package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -20
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +180 -84
- package/esm2015/lib/components/cliente/services/cliente.service.js +8 -21
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +8 -29
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +8 -29
- package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -17
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +8 -17
- package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -37
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +8 -17
- package/esm2015/lib/components/departamento/models/Departamento.js +1 -19
- package/esm2015/lib/components/departamento/services/departamento.service.js +8 -17
- package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -61
- package/esm2015/lib/components/empresa/models/Empresa.js +1 -21
- package/esm2015/lib/components/empresa/services/empresa.service.js +8 -27
- package/esm2015/lib/components/error404/error404.component.js +28 -16
- package/esm2015/lib/components/flete/models/Flete.js +1 -15
- package/esm2015/lib/components/flete/services/flete.service.js +8 -24
- package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -21
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +8 -17
- package/esm2015/lib/components/loading/loading.component.js +48 -43
- package/esm2015/lib/components/loading/loading.service.js +10 -27
- package/esm2015/lib/components/loading-screen/loading-screen.component.js +33 -75
- package/esm2015/lib/components/loading-screen/loading-screen.service.js +8 -32
- package/esm2015/lib/components/login-modal/login-modal.component.js +131 -80
- package/esm2015/lib/components/login-modal/login-modal.service.js +10 -20
- package/esm2015/lib/components/moneda/models/Moneda.js +1 -27
- package/esm2015/lib/components/moneda/services/moneda.service.js +8 -24
- package/esm2015/lib/components/pdfModal/pdf-modal.component.js +46 -70
- package/esm2015/lib/components/pdfModal/pdf-modal.service.js +12 -32
- package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -17
- package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -15
- package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -29
- package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -17
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +8 -30
- package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -39
- package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -21
- package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -20
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +118 -82
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +8 -24
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +8 -29
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +8 -29
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +116 -77
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +8 -29
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +438 -137
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +13 -49
- package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -55
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +8 -31
- package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -15
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +8 -17
- package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -35
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +8 -17
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +125 -104
- package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +47 -58
- package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -42
- package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -18
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +8 -27
- package/esm2015/lib/globalPrimeNg.js +4 -11
- package/esm2015/lib/httpInterceptor/httpInterceptor.js +13 -64
- package/esm2015/lib/importComponents.js +1 -9
- package/esm2015/lib/importComponetsConta.js +1 -6
- package/esm2015/lib/models/PersonaMoral.js +1 -21
- package/esm2015/lib/models/Usuario.js +1 -19
- package/esm2015/lib/models/auth.js +1 -13
- package/esm2015/lib/services/auth.service.js +23 -148
- package/esm2015/lib/services/authenticated.service.js +11 -61
- package/esm2015/lib/services/canActivateGuard.service.ts.js +8 -35
- package/esm2015/lib/services/catalogo-adicional.service.js +8 -24
- package/esm2015/lib/services/controlAcceso.service.js +14 -51
- package/esm2015/lib/services/crud.service.js +3 -71
- package/esm2015/lib/services/file.service.js +16 -83
- package/esm2015/lib/services/global.service.js +3 -65
- package/esm2015/lib/services/init.service.js +18 -70
- package/esm2015/lib/services/message.service.js +8 -40
- package/esm2015/lib/services/paginate.service.js +12 -58
- package/esm2015/lib/services/personaMoral.service.js +8 -17
- package/esm2015/lib/services/versionCheck.service.js +13 -64
- package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -14
- package/esm2015/public_api.js +93 -97
- package/esm2015/visorus-erp-core.js +2 -12
- package/esm5/lib/app.module.js +93 -36
- package/esm5/lib/components/acreedor/select/select-acreedor.component.js +193 -100
- package/esm5/lib/components/acreedor/services/acreedor.service.js +11 -24
- package/esm5/lib/components/acreedor/services/acreedorCuentaContable.js +12 -32
- package/esm5/lib/components/agente/models/Agente.js +1 -37
- package/esm5/lib/components/agente/services/agente.service.js +14 -52
- package/esm5/lib/components/almacen/models/Almacen.js +1 -37
- package/esm5/lib/components/almacen/services/almacen.service.js +12 -32
- package/esm5/lib/components/banco/models/Banco.js +1 -25
- package/esm5/lib/components/banco/services/banco.service.js +11 -17
- package/esm5/lib/components/caja/session-create/session-create.component.js +135 -93
- package/esm5/lib/components/caja/sessionCaja.service.js +11 -24
- package/esm5/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -19
- package/esm5/lib/components/catalogoTipo/services/catalogoTipo.service.js +11 -17
- package/esm5/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -19
- package/esm5/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +11 -17
- package/esm5/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +11 -17
- package/esm5/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -47
- package/esm5/lib/components/claveMovimiento/services/claveMovimiento.service.js +11 -17
- package/esm5/lib/components/cliente/models/Cliente.js +1 -79
- package/esm5/lib/components/cliente/models/ClienteCuentaBanco.js +1 -21
- package/esm5/lib/components/cliente/models/ClienteFlete.js +1 -19
- package/esm5/lib/components/cliente/select/select-cliente.component.js +186 -103
- package/esm5/lib/components/cliente/services/cliente.service.js +12 -26
- package/esm5/lib/components/cliente/services/clienteCuentaBanco.service.js +12 -34
- package/esm5/lib/components/cliente/services/clienteFlete.service.js +12 -34
- package/esm5/lib/components/contacto/models/DatoContacto.js +1 -17
- package/esm5/lib/components/contacto/services/datoContacto.service.js +11 -17
- package/esm5/lib/components/dato-direccion/models/DatoDireccion.js +1 -37
- package/esm5/lib/components/dato-direccion/services/datoDireccion.service.js +11 -17
- package/esm5/lib/components/departamento/models/Departamento.js +1 -19
- package/esm5/lib/components/departamento/services/departamento.service.js +11 -17
- package/esm5/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -61
- package/esm5/lib/components/empresa/models/Empresa.js +1 -21
- package/esm5/lib/components/empresa/services/empresa.service.js +12 -31
- package/esm5/lib/components/error404/error404.component.js +30 -21
- package/esm5/lib/components/flete/models/Flete.js +1 -15
- package/esm5/lib/components/flete/services/flete.service.js +11 -24
- package/esm5/lib/components/formaPago/models/FormaPago.js +1 -21
- package/esm5/lib/components/formaPago/services/FormaPago.service.js +11 -17
- package/esm5/lib/components/loading/loading.component.js +49 -41
- package/esm5/lib/components/loading/loading.service.js +14 -41
- package/esm5/lib/components/loading-screen/loading-screen.component.js +36 -78
- package/esm5/lib/components/loading-screen/loading-screen.service.js +13 -43
- package/esm5/lib/components/login-modal/login-modal.component.js +134 -87
- package/esm5/lib/components/login-modal/login-modal.service.js +12 -25
- package/esm5/lib/components/moneda/models/Moneda.js +1 -27
- package/esm5/lib/components/moneda/services/moneda.service.js +11 -24
- package/esm5/lib/components/pdfModal/pdf-modal.component.js +48 -70
- package/esm5/lib/components/pdfModal/pdf-modal.service.js +15 -43
- package/esm5/lib/components/persona-fisica/models/EstadoCivil.js +1 -17
- package/esm5/lib/components/persona-fisica/models/Genero.js +1 -15
- package/esm5/lib/components/persona-fisica/models/Persona.js +1 -29
- package/esm5/lib/components/persona-fisica/models/PersonaFisica.js +1 -17
- package/esm5/lib/components/persona-fisica/services/personaFisica.service.js +13 -38
- package/esm5/lib/components/proveedor/models/Proveedor.js +1 -39
- package/esm5/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -21
- package/esm5/lib/components/proveedor/models/ProveedorFlete.js +1 -19
- package/esm5/lib/components/proveedor/select/select-proveedor.component.js +124 -100
- package/esm5/lib/components/proveedor/services/proveedor.service.js +11 -24
- package/esm5/lib/components/proveedor/services/proveedorCuentaBanco.service.js +12 -34
- package/esm5/lib/components/proveedor/services/proveedorFlete.service.js +12 -34
- package/esm5/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +123 -101
- package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +12 -34
- package/esm5/lib/components/selecciona-articulo/selecciona-articulo.component.js +450 -183
- package/esm5/lib/components/selecciona-articulo/stock.service.js +17 -55
- package/esm5/lib/components/serieDocumento/models/SerieDocumento.js +1 -55
- package/esm5/lib/components/serieDocumento/services/serieDocumento.service.js +13 -40
- package/esm5/lib/components/tipo-contacto/models/TipoContacto.js +1 -15
- package/esm5/lib/components/tipo-contacto/services/tipoContacto.service.js +11 -17
- package/esm5/lib/components/ubicacion/models/Ubicacion.js +1 -35
- package/esm5/lib/components/ubicacion/services/ubicacion.service.js +11 -17
- package/esm5/lib/contabilidad/componentes/cclista/cclista.component.js +139 -143
- package/esm5/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +51 -73
- package/esm5/lib/contabilidad/modelos/cuentaContable.model.js +1 -42
- package/esm5/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -18
- package/esm5/lib/contabilidad/servicios/cuentacontable.service.js +12 -31
- package/esm5/lib/globalPrimeNg.js +4 -11
- package/esm5/lib/httpInterceptor/httpInterceptor.js +16 -76
- package/esm5/lib/importComponents.js +1 -9
- package/esm5/lib/importComponetsConta.js +1 -6
- package/esm5/lib/models/PersonaMoral.js +1 -21
- package/esm5/lib/models/Usuario.js +1 -19
- package/esm5/lib/models/auth.js +1 -13
- package/esm5/lib/services/auth.service.js +38 -207
- package/esm5/lib/services/authenticated.service.js +14 -67
- package/esm5/lib/services/canActivateGuard.service.ts.js +11 -42
- package/esm5/lib/services/catalogo-adicional.service.js +11 -24
- package/esm5/lib/services/controlAcceso.service.js +17 -59
- package/esm5/lib/services/crud.service.js +15 -120
- package/esm5/lib/services/file.service.js +21 -106
- package/esm5/lib/services/global.service.js +15 -114
- package/esm5/lib/services/init.service.js +21 -75
- package/esm5/lib/services/message.service.js +12 -55
- package/esm5/lib/services/paginate.service.js +16 -71
- package/esm5/lib/services/personaMoral.service.js +11 -17
- package/esm5/lib/services/versionCheck.service.js +17 -78
- package/esm5/lib/utils/tipo_catalogo.ts.js +1 -14
- package/esm5/public_api.js +93 -97
- package/esm5/visorus-erp-core.js +2 -12
- package/fesm2015/visorus-erp-core.js +2014 -3598
- package/fesm2015/visorus-erp-core.js.map +1 -1
- package/fesm5/visorus-erp-core.js +2229 -4134
- package/fesm5/visorus-erp-core.js.map +1 -1
- package/lib/app.module.d.ts +50 -0
- package/lib/components/acreedor/select/select-acreedor.component.d.ts +3 -0
- package/lib/components/acreedor/services/acreedor.service.d.ts +3 -0
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +3 -0
- package/lib/components/agente/services/agente.service.d.ts +3 -0
- package/lib/components/almacen/services/almacen.service.d.ts +3 -0
- package/lib/components/banco/services/banco.service.d.ts +3 -0
- package/lib/components/caja/session-create/session-create.component.d.ts +3 -0
- package/lib/components/caja/sessionCaja.service.d.ts +3 -0
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +3 -0
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +3 -0
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +3 -0
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +3 -0
- package/lib/components/cliente/select/select-cliente.component.d.ts +3 -0
- package/lib/components/cliente/services/cliente.service.d.ts +3 -0
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +3 -0
- package/lib/components/cliente/services/clienteFlete.service.d.ts +3 -0
- package/lib/components/contacto/services/datoContacto.service.d.ts +3 -0
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +3 -0
- package/lib/components/departamento/services/departamento.service.d.ts +3 -0
- package/lib/components/empresa/services/empresa.service.d.ts +3 -0
- package/lib/components/error404/error404.component.d.ts +3 -0
- package/lib/components/flete/services/flete.service.d.ts +3 -0
- package/lib/components/formaPago/services/FormaPago.service.d.ts +3 -0
- package/lib/components/loading/loading.component.d.ts +3 -0
- package/lib/components/loading/loading.service.d.ts +3 -0
- package/lib/components/loading-screen/loading-screen.component.d.ts +3 -0
- package/lib/components/loading-screen/loading-screen.service.d.ts +5 -1
- package/lib/components/login-modal/login-modal.component.d.ts +3 -0
- package/lib/components/login-modal/login-modal.service.d.ts +3 -0
- package/lib/components/moneda/services/moneda.service.d.ts +3 -0
- package/lib/components/pdfModal/pdf-modal.component.d.ts +4 -1
- package/lib/components/pdfModal/pdf-modal.service.d.ts +3 -0
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +3 -0
- package/lib/components/proveedor/select/select-proveedor.component.d.ts +3 -0
- package/lib/components/proveedor/services/proveedor.service.d.ts +3 -0
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +3 -0
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +3 -0
- package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +4 -1
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +3 -0
- package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +4 -0
- package/lib/components/selecciona-articulo/stock.service.d.ts +3 -0
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +3 -0
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +3 -0
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +3 -0
- package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +3 -0
- package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +3 -0
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +3 -0
- package/lib/globalPrimeNg.d.ts +2 -2
- package/lib/httpInterceptor/httpInterceptor.d.ts +3 -0
- package/lib/importComponents.d.ts +2 -2
- package/lib/services/auth.service.d.ts +3 -0
- package/lib/services/authenticated.service.d.ts +3 -0
- package/lib/services/canActivateGuard.service.ts.d.ts +3 -0
- package/lib/services/catalogo-adicional.service.d.ts +3 -0
- package/lib/services/controlAcceso.service.d.ts +3 -0
- package/lib/services/file.service.d.ts +3 -0
- package/lib/services/init.service.d.ts +3 -0
- package/lib/services/message.service.d.ts +3 -0
- package/lib/services/paginate.service.d.ts +3 -0
- package/lib/services/personaMoral.service.d.ts +3 -0
- package/lib/services/versionCheck.service.d.ts +3 -0
- package/package.json +12 -8
- package/visorus-erp-core.d.ts +1 -6
- package/visorus-erp-core.metadata.json +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common/http"),require("@angular/forms"),require("primeng/inputtext"),require("primeng/treetable"),require("primeng/api"),require("@angular/common"),require("primeng/button"),require("primeng/dialog"),require("rxjs"),require("rxjs/internal/operators"),require("ngx-toastr"),require("@ngx-translate/core"),require("rxjs/operators"),require("@angular/platform-browser"),require("primeng/table"),require("primeng/paginator"),require("primeng/dropdown"),require("primeng/inputmask"),require("primeng/messages"),require("primeng/message"),require("primeng/confirmdialog"),require("primeng/progressbar"),require("primeng/tristatecheckbox"),require("primeng/keyfilter"),require("primeng/inputswitch"),require("primeng/tabview"),require("primeng/calendar"),require("primeng/panel"),require("primeng/autocomplete"),require("primeng/fieldset"),require("primeng/checkbox"),require("primeng/tree"),require("primeng/radiobutton"),require("primeng/tabmenu"),require("primeng/overlaypanel"),require("primeng/tooltip"),require("primeng/card"),require("primeng/menubar"),require("primeng/splitbutton"),require("primeng/toolbar"),require("@ngx-translate/http-loader"),require("@angular/router")):"function"==typeof define&&define.amd?define("visorus-erp-core",["exports","@angular/core","@angular/common/http","@angular/forms","primeng/inputtext","primeng/treetable","primeng/api","@angular/common","primeng/button","primeng/dialog","rxjs","rxjs/internal/operators","ngx-toastr","@ngx-translate/core","rxjs/operators","@angular/platform-browser","primeng/table","primeng/paginator","primeng/dropdown","primeng/inputmask","primeng/messages","primeng/message","primeng/confirmdialog","primeng/progressbar","primeng/tristatecheckbox","primeng/keyfilter","primeng/inputswitch","primeng/tabview","primeng/calendar","primeng/panel","primeng/autocomplete","primeng/fieldset","primeng/checkbox","primeng/tree","primeng/radiobutton","primeng/tabmenu","primeng/overlaypanel","primeng/tooltip","primeng/card","primeng/menubar","primeng/splitbutton","primeng/toolbar","@ngx-translate/http-loader","@angular/router"],t):t((e=e||self)["visorus-erp-core"]={},e.ng.core,e.ng.common.http,e.ng.forms,e.inputtext,e.treetable,e.api,e.ng.common,e.button,e.dialog,e.rxjs,e.rxjs["internal/operators"],e.ngxToastr,e.core$1,e.rxjs.operators,e.ng.platformBrowser,e.table,e.paginator,e.dropdown,e.inputmask,e.messages,e.message,e.confirmdialog,e.progressbar,e.tristatecheckbox,e.keyfilter,e.inputswitch,e.tabview,e.calendar,e.panel,e.autocomplete,e.fieldset,e.checkbox,e.tree,e.radiobutton,e.tabmenu,e.overlaypanel,e.tooltip,e.card,e.menubar,e.splitbutton,e.toolbar,e.httpLoader,e.ng.router)}(this,(function(e,t,n,o,r,i,a,l,s,c,u,p,d,m,f,h,g,v,b,S,y,x,C,w,E,I,M,A,k,j,P,_,O,T,D,H,F,B,U,z,q,R,L,N){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var N=function(t,e){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function J(t,e){function n(){this.constructor=t}N(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function W(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{c(o.next(t))}catch(t){i(t)}}function s(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))}function V(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function G(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var Z=function(){function t(t){this.http=t}return t.prototype.setConfiguracion=function(){this.http.get("assets/config.json").subscribe((function(t){localStorage.setItem("config",JSON.stringify(t))}))},t.prototype.obtieneConfiguracion=function(){return JSON.parse(localStorage.getItem("config"))},t.prototype.getUrl=function(t){return this.obtieneConfiguracion().url+(t?"/"+t:"")},t.prototype.auth=function(t){return this.http.post(this.getUrl()+"/login",t)},t.prototype.getUsuarioActual=function(){return this.http.get(this.getUrl()+"/usuario/obtieneUsuarioActual",this.buildAuth())},t.prototype.buildAuth=function(){var t=this.getUsuario();return{headers:new n.HttpHeaders({Authorization:t.token_type+" "+t.access_token,"Content-Type":"application/json",Accept:"application/json"})}},t.prototype.validateEndPoint=function(){return this.http.get(this.getUrl()+"/validate",this.buildAuth())},t.prototype.closeEndPoint=function(){localStorage.removeItem("usuario"),this.setUsuarioInstance(null)},t.prototype.getUsuario=function(){return JSON.parse(localStorage.getItem("usuario"))},t.prototype.setUsuarioInstance=function(t){this.usuarioInstance=t},t.prototype.getLang=function(){var t=localStorage.getItem("lang");return t||"es"},t.prototype.setModulo=function(t){return this.http.post(this.getUrl()+"/usuario/setModulo",t,this.buildAuth())},t}();var K=function(t){function e(e,n){var o=t.call(this,e)||this;return o.httpCliente=e,o.url=n,o.urlComponente=o.url,o}return J(e,t),e.prototype.serializeParams=function(t){var e="";return t.map((function(t,n){void 0!==t.value&&(e+=(0==n?"?":"&")+t.param+"="+t.value)})),e},e.prototype.getHttp=function(){return this.httpCliente},e.prototype.geturl=function(){return this.getUrl(this.urlComponente)},e.prototype.getBaseUrl=function(){return this.getUrl("")},e.prototype.getByUrl=function(t,e){return this.httpCliente.get(this.getUrl(t)+this.serializeParams(e),this.buildAuth())},e.prototype.getAll=function(t){return this.httpCliente.get(this.getUrl(this.urlComponente)+(t?this.serializeParams(t):""),this.buildAuth())},e.prototype.get=function(t){return this.httpCliente.get(this.getUrl(this.urlComponente)+"/"+t,this.buildAuth())},e.prototype.save=function(t){return this.httpCliente.post(this.getUrl(this.urlComponente),t,this.buildAuth())},e.prototype.update=function(t){return this.httpCliente.put(this.getUrl(this.urlComponente)+"/"+t.id,t,this.buildAuth())},e.prototype.delete=function(t){return this.httpCliente.delete(this.getUrl(this.urlComponente)+"/"+t,this.buildAuth())},e}(Z);var X=function(t){function o(e){var n=t.call(this,e,"cuentaContable")||this;return n.httpClient=e,n}return J(o,t),o.prototype.obtieneCuentasContablesRecursivo=function(){return this.httpClient.get(this.getUrl("cuentaContable")+"/obtieneCuentasContablesRecursivo",this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Y=function(){function t(t){this._cuentaContableService=t,this.cuentasContables=[],this.maxH=720,this.query="",this.tempAccounts=[],this.evSelectedAccount=new e.EventEmitter}return t.prototype.ngOnInit=function(){this.maxH=window.innerHeight-320,this.obtenerCuentasContablesRecursivo()},t.prototype.obtenerCuentasContablesRecursivo=function(){var t=this;this._cuentaContableService.obtieneCuentasContablesRecursivo().subscribe((function(e){e&&(t.cuentasContables=e,t.sortAccounts())}))},t.prototype.sortAccounts=function(){var t,e;this.cuentasContables.sort((function(t,e){var n=t.data.cuentaContable.split("."),o=e.data.cuentaContable.split(".");if(n.length>0&&o.length>0){if(n.length===o.length){for(var r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 0}if(n.length<o.length){for(r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return-1}if(o.length<n.length){for(r=0;r<o.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 1}}return 0}));try{for(var n=G(this.cuentasContables),o=n.next();!o.done;o=n.next()){var r=o.value;r.children&&this.sortItem(r)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.tempAccounts=this.cuentasContables},t.prototype.sortItem=function(t){var e,n;t.children.sort((function(t,e){var n=t.data.cuentaContable.split("."),o=e.data.cuentaContable.split(".");if(n.length>0&&o.length>0){if(n.length===o.length){for(var r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 0}if(n.length<o.length){for(r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return-1}if(o.length<n.length){for(r=0;r<o.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 1}}return 0}));try{for(var o=G(t.children),r=o.next();!r.done;r=o.next()){var i=r.value;this.sortItem(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}},t.prototype.selectCuentaContable=function(t){this.evSelectedAccount.emit(t)},t.prototype.filterAccounts=function(t){if(t)this.cuentasContables=this.browseAccount(this.tempAccounts);else{var e=this.resetAccount();this.cuentasContables=e}},t.prototype.resetAccount=function(){var t,e;this.query="";var n=[];try{for(var o=G(this.tempAccounts),r=o.next();!r.done;r=o.next()){var i=r.value;n.push(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return n},t.prototype.browseAccount=function(t){var e,n,o=[];if(""!==this.query){try{for(var r=G(t),i=r.next();!i.done;i=r.next()){var a=i.value;o=a.data.cuentaContable.toString().toLowerCase().includes(this.query.toLowerCase())||a.data.descripcion.toString().toLowerCase().includes(this.query.toLowerCase())?o.concat({data:a.data,children:this.browseAccount(a.children)}):o.concat(this.browseAccount(a.children))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return o}var s=this.resetAccount();this.cuentasContables=s},t.decorators=[{type:e.Component,args:[{selector:"lib-cclista",template:'<div class="ui-g ui-fluid">\n <div class="ui-g-12">\n <div class="ui-inputgroup">\n <input type="text" pInputText placeholder="Cuenta o descripción" [(ngModel)]="query" (keyup)="filterAccounts($event)">\n </div>\n </div>\n \n</div>\n\n<div style="padding: 10px;">\n <p-treeTable [value]="cuentasContables?cuentasContables:tempAccounts" [scrollable]="true" [style]="{width: \'100%\'} " [scrollHeight]="maxH + \'px\'" [resizableColumns]="true">\n <ng-template pTemplate="header">\n <tr>\n <th style="width: 150px;">Cuenta contable</th>\n <th style="width: 150px;">Descripción</th>\n <th style="width: 90px;">Naturaleza</th>\n <th style="width: 60px;">Tipo</th>\n <th style="width: 200px;">Acciones</th>\n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-rowNode let-rowData="rowData" style="width: 100%;">\n <tr>\n <td class="ui-resizable-column" style="width: 150px;">\n <p-treeTableToggler [rowNode]="rowNode"></p-treeTableToggler>\n {{rowData.cuentaContable}}\n </td>\n <td class="ui-resizable-column" style="width: 150px;">\n {{rowData.descripcion}}\n </td>\n <td class="ui-resizable-column" style="width: 90px;">\n {{rowData.naturaleza}}\n </td>\n <td class="ui-resizable-column" style="width: 60px;">\n {{rowData.tipo}}\n </td>\n <td class="ui-resizable-column" style="width: 200px;">\n <div class="button-row">\n <button pButton type="button" icon="pi pi-check" class="ui-button-raised ui-button-success" (click)="selectCuentaContable(rowData)" *ngIf="typeAccount==1 && rowData.cuentaRegistro"></button>\n <button pButton type="button" icon="pi pi-check" class="ui-button-raised ui-button-success" (click)="selectCuentaContable(rowData)" *ngIf="typeAccount==2 && !rowData.cuentaRegistro"></button>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-treeTable>\n</div>',styles:[""]}]}],t.ctorParameters=function(){return[{type:X}]},t.propDecorators={isShared:[{type:e.Input}],typeAccount:[{type:e.Input}],evSelectedAccount:[{type:e.Output}]},t}();var Q=function(){function t(){this.cuentasContables=[],this.maxH=720,this.maxW=0,this.flagModal=!0,this.size=350,this.maxH=window.innerHeight-370,this.maxW=window.innerWidth,this.size=this.maxW-50,this.evSelectedAccount=new e.EventEmitter}return t.prototype.ngOnInit=function(){},t.prototype.getAccount=function(t){this.evSelectedAccount.emit(t)},t.prototype.hiddenDialog=function(t){this.evSelectedAccount.emit(null)},t.decorators=[{type:e.Component,args:[{selector:"lib-ccseleccion-dialog",template:'<p-dialog header="Selecciona cuenta contable" [(visible)]="displayShowCuentas" [modal]="true" [minWidth]="200" [minY]="70" [baseZIndex]="10000" [width]="size" (onHide)="hiddenDialog($event)" [blockScroll]="true" [draggable]="false" [blockScroll]="true"\n [maximizable]="true">\n <div class="padding10" [ngStyle]="{\'height\': maxH+200+\'px\'}">\n <lib-cclista [isShared]="true" [typeAccount]="tipoCuenta" (evSelectedAccount)="getAccount($event)"></lib-cclista>\n </div>\n</p-dialog>',styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={dialog:[{type:e.ViewChild,args:["dialog",{static:!0}]}],tipoCuenta:[{type:e.Input}],displayShowCuentas:[{type:e.Input}],evSelectedAccount:[{type:e.Output}]},t}();var tt=[Y,Q],et=function(){function t(){this.modal=new e.EventEmitter}return t.prototype.showModal=function(){this.modal.emit(!0)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.propDecorators={modal:[{type:e.Output}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();var nt=function(){function t(){this._loading=!1,this.loadingStatus=new o.Subject}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){this._loading=t,this.loadingStatus.next(t)},enumerable:!0,configurable:!0}),t.prototype.startLoading=function(){this.loading=!0},t.prototype.stopLoading=function(){this.loading=!1},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();var ot=function(){function t(t,e,n){this.loginModalService=t,this.toastrService=e,this.loadingScreenService=n}return t.prototype.intercept=function(t,e){var n=this;return this.loadingScreenService.startLoading(),e.handle(t).pipe(r.catchError((function(t,e){return n.loadingScreenService.stopLoading(),n.handleError(t),o.throwError(t)})),r.tap((function(t){var e=t.body?t.body:null;if(0!==t.type&&4===t.type&&n.loadingScreenService.stopLoading(),e){var o=e.success?e.success:null;o&&n.toastrService.success(o,"Exito",{timeOut:3e3,closeButton:!0})}})))},t.prototype.handleError=function(t){return 401===t.status||403===t.status?(401===t.status&&this.loginModalService.showModal(),403===t.status&&this.toastrService.error("No tiene permiso sobre esta accion","Error",{timeOut:5e3}),o.of(t.message)):(401!==t.status&&403!==t.status&&409!==t.status&&this.toastrService.error("Ocurrio un error al procesar su solicitud","Error",{timeOut:5e3}),this.readError(t),o.of(t))},t.prototype.readError=function(t){if(t.error&&(t.error.error&&t.error.error.message&&this.toastrService.error(t.error.error.message,"Error",{timeOut:3e3}),t.error.message&&this.toastrService.error(t.error.message,"Error",{timeOut:3e3}),t.error._errors&&Array.isArray(t.error._errors)))for(var e=0;e<t.error._errors.length;e++)this.toastrService.error(t.error._errors[e].message,"Error",{timeOut:3e3,closeButton:!0})},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:et},{type:i.ToastrService},{type:nt}]},t}();var rt=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"app-error404",template:'<div class="col-md-12 sec_sof">\n <div class="row">\n <div class="col col-center">\n <div class="center">\n <div class="error">\n Error 404\n </div>\n <div class="col-12">\n <p>La pagina solicitada no fue encontrada</p>\n </div>\n </div> \n </div>\n \n </div>\n</div>\n',styles:[".error{font-size:70px}"]}]}],t.ctorParameters=function(){return[]},t}(),it=function(){function t(){this.loading=new e.EventEmitter}return t.prototype.setLoading=function(t){t?this.start():this.stop()},t.prototype.start=function(){this.loading.emit(!0)},t.prototype.stop=function(){this.loading.emit(!1)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.propDecorators={loading:[{type:e.Output}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();var at=function(){function t(t){var e=this;this.loadingService=t,this.visible=!1,this.logo_loading="assets/img/logo_visorus_loading.png",this.loadingService.loading.subscribe((function(t){t&&!e.visible?($("#modal_loading").modal("show"),e.visible=!0):(setTimeout((function(){$("#modal_loading").modal("hide")}),650),e.visible=!1)}))}return t.decorators=[{type:e.Component,args:[{selector:"loading",template:'\x3c!-- Modal --\x3e\n<div class="modal fade" id="modal_loading" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle"\n data-backdrop="static" data-keyboard="false" aria-hidden="true">\n <div class="modal-dialog modal-dialog-scrollable" role="document">\n <div class="modal-content">\n <div class="modal-body">\n <div class="row justify-content-center">\n <div class="col-lg-4 col-md-4 col-sm-10">\n <div class="loader">\n <span class="box"></span>\n <span class="box"></span>\n <div class="code">\n <img src="{{logo_loading}}" width="200px">\n </div>\n <span class="txt">{{\'cargando\' | translate}}...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>',styles:['.loader{width:130px;height:170px;position:relative}.loader::after,.loader::before{content:"";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:.2s}.loader .txt{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 .code{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 .box{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader .box::after,.loader .box::before{display:inline-block;font: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 .box:nth-child(1)::before{font-size:20px;content:"\\f13b";-webkit-animation:1.1s linear infinite a;animation:1.1s linear infinite a}.loader .box:nth-child(1)::after{content:"\\f13c";-webkit-animation:1.3s linear infinite b;animation:1.3s linear infinite b}.loader .box:nth-child(2)::before{content:"\\f121";font-size:25px;-webkit-animation:.9s linear infinite c;animation:.9s linear infinite c}.loader .box:nth-child(2)::after{content:"\\f19a ";-webkit-animation:.7s linear infinite d;animation:.7s linear infinite d}.loader.amit::after,.loader.amit::before{transform:scale(1)}@-webkit-keyframes a{0%{transform:translate(30px,0) rotate(30deg);opacity:0}100%{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes a{0%{transform:translate(30px,0) rotate(30deg);opacity:0}100%{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@-webkit-keyframes b{0%{transform:translate(50px,0) rotate(-40deg);opacity:0}100%{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes b{0%{transform:translate(50px,0) rotate(-40deg);opacity:0}100%{transform:translate(40px,150px) rotate(80deg);opacity:1}}@-webkit-keyframes c{0%{transform:translate(70px,0) rotate(10deg);opacity:0}100%{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes c{0%{transform:translate(70px,0) rotate(10deg);opacity:0}100%{transform:translate(60px,150px) rotate(70deg);opacity:1}}@-webkit-keyframes d{0%{transform:translate(30px,0) rotate(-50deg);opacity:0}100%{transform:translate(45px,150px) rotate(30deg);opacity:1}}@keyframes d{0%{transform:translate(30px,0) rotate(-50deg);opacity:0}100%{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0) rotate(1deg)}30%{-webkit-transform:translate(0,2px) rotate(0)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0)}100%{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal{z-index:2050!important}.modal-content{border:0!important;background-color:#fff0!important;height:350px!important}.modal-body{margin-left:-7%!important}']}]}],t.ctorParameters=function(){return[{type:it}]},t.propDecorators={logo_loading:[{type:e.Input}]},t}();var st=function(){function t(t,e,n,o){var r=this;this.loadingScreenService=t,this._elmRef=e,this._changeDetectorRef=n,this.loadingService=o,this.debounceTime=250,this.loading=!1,this.logo_loading="assets/img/logo_visorus_loading.png",this.loadingService.loading.subscribe((function(t){r._elmRef.nativeElement.style.display=t?"block":"none"}))}return t.prototype.ngAfterViewInit=function(){var t=this;this._elmRef.nativeElement.style.display="none",this.loadingSubscription=this.loadingScreenService.loadingStatus.pipe(a.debounceTime(this.debounceTime)).subscribe((function(e){t._elmRef.nativeElement.style.display=e?"block":"none",t._changeDetectorRef.detectChanges()}))},t.prototype.ngOnDestroy=function(){this.loadingSubscription.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"app-loading-screen",template:'<div class="loading-screen-wrapper">\n <div class="loading-screen-icon">\n <div class="blobs">\n <div class="blob-center"></div>\n <div class="blob"></div>\n <div class="blob"></div>\n <div class="blob"></div>\n <div class="blob"></div>\n <div class="blob"></div>\n <div class="blob"></div>\n </div> \n </div>\n</div>\n',styles:[".loading-screen-wrapper{z-index:100000;position:fixed;background-color:rgba(0,0,0,.384);width:100%;height:100%;display:block}.loading-screen-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg{display:none}.blobs{-webkit-filter:url(#goo);filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs .blob-center{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%);-webkit-animation:3.4s linear infinite blob-grow;animation:3.4s linear infinite blob-grow;border-radius:50%;box-shadow:0 -10px 40px -5px #475158}.blob{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;border-radius:50%;-webkit-animation:3.4s ease-out infinite blobs;animation:3.4s ease-out infinite blobs;transform:scale(.9) translate(-50%,-50%);transform-origin:center top;opacity:0}.blob:nth-child(1){-webkit-animation-delay:.2s;animation-delay:.2s}.blob:nth-child(2){-webkit-animation-delay:.4s;animation-delay:.4s}.blob:nth-child(3){-webkit-animation-delay:.6s;animation-delay:.6s}.blob:nth-child(4){-webkit-animation-delay:.8s;animation-delay:.8s}.blob:nth-child(5){-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%,99%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}100%{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%,99%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}100%{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@-webkit-keyframes blob-grow{0%,100%,39%,92%{transform:scale(0) translate(-50%,-50%)}40%,42%,90%,91%{transform:scale(1,.9) translate(-50%,-50%)}43%,44%,86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%,84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%,82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%,80%,81%{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%)}}@keyframes blob-grow{0%,100%,39%,92%{transform:scale(0) translate(-50%,-50%)}40%,42%,90%,91%{transform:scale(1,.9) translate(-50%,-50%)}43%,44%,86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%,84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%,82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%,80%,81%{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%)}}"]}]}],t.ctorParameters=function(){return[{type:nt},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:it}]},t.propDecorators={logo_loading:[{type:e.Input}]},t}();var ct=function(){function t(){this.visible=new e.EventEmitter,this.print=new e.EventEmitter}return t.prototype.pdf_generate=function(t){this.base_64=t,this.visible.emit(!0)},t.prototype.generate_print=function(t){this.html=t,this.print.emit(!0)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.propDecorators={visible:[{type:e.Output}],print:[{type:e.Output}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}();var lt=function(){function t(t,e){this._toastrService=t,this.translate=e}return t.prototype.addFile=function(t,e){var n=this;void 0===e&&(e=!0);var o=t.target.files[0],r={id:null,nombre:"",contentType:"",orden:0,archivo:""};r.nombre=o.name,r.tipo=o.type;var i=new FileReader;return i.readAsDataURL(o),i.onload=function(){r.archivo=i.result,n.translate.get(["msgSuccess","titleFile"]).subscribe((function(t){e&&n._toastrService.success(t.msgSuccess,t.titleFile)}))},i.onerror=function(t){n.translate.get(["msgError","titleFile"]).subscribe((function(t){e&&n._toastrService.error(t.msgError,t.titleFile)}))},r},t.prototype.base64ToBlob=function(t,e){for(var n=atob(t),o=new Array(n.length),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);var i=new Uint8Array(o);return new Blob([i],{type:e})},t.prototype.blobToDowload=function(t,e,n){var o=document.createElement("a");o.download=n,o.href=window.URL.createObjectURL(t),o.dataset.downloadurl=[e,o.download,o.href].join(":"),o.click()},t.prototype.base64ToFileDowload=function(t,e,n){this.blobToDowload(this.base64ToBlob(t,e),e,n)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.ToastrService},{type:s.TranslateService}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.ToastrService),e.ɵɵinject(s.TranslateService))},token:t,providedIn:"root"}),t}();var ut=function(){function t(t,e,n){var o=this;this._pdfModalService=t,this.fileService=e,this.domSanitizer=n,this.display=!1,this.pdfBase64=null,this.sizewidth=840,t.visible.subscribe((function(e){t.base_64&&(o.display=e,o.pdfBase64=t.base_64)})),t.print.subscribe((function(t){o.display=t,setTimeout((function(){document.getElementById("_modal_pdf").innerHTML="<iframe id='printf' width='100%' height='100%' ></iframe>"}),20),setTimeout((function(){o.imprimir()}),40)}))}return t.prototype.imprimir=function(){var t=window.frames.printf;t.contentWindow.head.innerHTML=' <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">\n <style>\n .table-hover tbody tr:hover {\n color: #ffffff;\n background-color: rgb(92, 180, 234);\n }\n .tr-select{\n color: #ffffff;\n background-color: rgb(92, 180, 234);\n }\n .td-header{\n background: #f3f3f3;\n color: #0d385d;\n border-color: 1px solid #0b4b87;\n }\n .td-yellow{\n background: #fff6d3;\n }\n .td-blue{\n background: #88d1ea;\n }\n .td-green{\n background: #b9d2a0;\n }\n </style>',t.contentWindow.body.innerHTML=this._pdfModalService.html},t.decorators=[{type:e.Component,args:[{selector:"pdf-modal",template:'\n<p-dialog [(visible)]="display" [modal]="true" [minWidth]="200" [minY]="70" [baseZIndex]="10000" [blockScroll]="true" \n [blockScroll]="true" [maximizable]="true"\n [width]="sizewidth" [breakpoint]="840" [contentStyle]="{\'overflow\':\'visible\'}">\n <div *ngIf="pdfBase64" style="min-height: 90vh;">\n <iframe style="width: 100%; height: 90vh;" [src]="domSanitizer.bypassSecurityTrustResourceUrl(\'data:application/pdf;base64,\'+pdfBase64)"></iframe>\n </div>\n</p-dialog>\n\n',styles:[".down{display:block}"]}]}],t.ctorParameters=function(){return[{type:ct},{type:lt},{type:c.DomSanitizer}]},t}();var pt=function(){};var dt=function(){};var ht=function(){function t(t,n){this.httpClient=t,this.loadingService=n,this.url_host="",this.login=new e.EventEmitter,this.seleccionEmpresa=new e.EventEmitter,this.auth=new dt}return t.prototype.setlogin=function(t,e){localStorage.setItem("lang","es");var n=JSON.parse(localStorage.getItem("config"));return n&&n.url&&(this.url_host=n.url),this.httpClient.post(this.url_host+"/login"+(e?"/"+e:""),t)},t.prototype.startAuth=function(t){this.auth=t,this.login.emit(this.auth)},t.prototype.isLogin=function(){return null!==localStorage.getItem("usuario")},t.prototype.quitarUsuario=function(){localStorage.removeItem("usuario"),this.auth.login=!1,this.login.emit(this.auth)},t.prototype.verificaLogin=function(){var t=this;this.usuario=this.getUser(),this.usuario.access_token?this.getDetalsUser().subscribe((function(e){t.auth.usuarioDetalles=e,t.auth.login=!0,t.login.emit(t.auth)}),(function(e){t.quitarUsuario()})):(this.auth.usuarioDetalles=null,this.auth.login=!1,this.login.emit(this.auth))},t.prototype.loginOut=function(){this.quitarEmpresaAdministrativa().subscribe((function(t){localStorage.removeItem("usuario")}),(function(t){localStorage.removeItem("usuario")})),localStorage.setItem("lang","es"),this.auth.login=!1,this.login.emit(this.auth)},t.prototype.getUser=function(){if(this.usuario=new pt,this.isLogin()){var t=localStorage.getItem("usuario");return t&&(this.usuario=JSON.parse(t)),this.usuario}return this.usuario},t.prototype.getLang=function(){var t=localStorage.getItem("lang");return t||"es"},t.prototype.selectEmpresa=function(t){this.seleccionEmpresa.emit(t)},t.prototype.quitarEmpresaAdministrativa=function(){var t,e="",o="";(t=JSON.parse(localStorage.getItem("usuario")))&&(e=t.token_type,o=t.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:e+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.post(this.url_host+"/usuario/setEmpresa",{id:0},r)},t.prototype.setEmpresa=function(t){var e,o="",r="";(e=JSON.parse(localStorage.getItem("usuario")))&&(o=e.token_type,r=e.access_token);var i={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:o+" "+r})},a=JSON.parse(localStorage.getItem("config"));return a&&a.url&&(this.url_host=a.url),this.httpClient.post(this.url_host+"/usuario/setEmpresa",t,i)},t.prototype.setModulo=function(t){var e,o="",r="";(e=JSON.parse(localStorage.getItem("usuario")))&&(o=e.token_type,r=e.access_token);var i={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:o+" "+r})},a=JSON.parse(localStorage.getItem("config"));return a&&a.url&&(this.url_host=a.url),this.httpClient.post(this.url_host+"/usuario/setModulo",t,i)},t.prototype.quitarModulo=function(){var t,e="",o="";(t=JSON.parse(localStorage.getItem("usuario")))&&(e=t.token_type,o=t.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:e+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.post(this.url_host+"/usuario/setModulo",{id:0},r)},t.prototype.getDetalsUser=function(){var t,e="",o="";(t=JSON.parse(localStorage.getItem("usuario")))&&(e=t.token_type,o=t.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:e+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.get(this.url_host+"/usuario/obtieneUsuarioActual",r)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.HttpClient},{type:it}]},t.propDecorators={login:[{type:e.Output}],seleccionEmpresa:[{type:e.Output}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(n.HttpClient),e.ɵɵinject(it))},token:t,providedIn:"root"}),t}();var ft=function(){function t(t,e){var n=this;this.loginModalService=t,this.authService=e,this.modal=!1,this.user={username:void 0,password:void 0},this.error=!1,this.empresas=[],this.loginModalService.modal.subscribe((function(t){$("#modalLogin").modal("show"),n.user={username:void 0,password:void 0},n.empresas=[]}))}return t.prototype.entrar=function(t){var e=this;if(t.valid){this.user.key="";var n=this.user.password.split("_");if(n.length>1){this.user.key=n[0],this.user.password="";for(var o=1;o<n.length;o++)this.user.password+=n[o]}this.authService.setlogin(this.user,this.user.key).subscribe((function(t){localStorage.setItem("usuario",JSON.stringify(t));var n=t;e.authService.getDetalsUser().subscribe((function(t){t.empresa||(e.empresas=t.empresas,1==e.empresas.length&&e.entrarEmpresa(e.empresas[0]));var o={login:!0};o.usuario=n,o.usuarioDetalles=t,e.authService.startAuth(o),e.error=!1,$("#modalLogin").modal("hide")}))}),(function(t){e.error=!0}))}},t.prototype.entrarEmpresa=function(t){this.authService.setEmpresa(t).subscribe((function(t){$("#modalLogin").modal("hide")}))},t.decorators=[{type:e.Component,args:[{selector:"app-login-modal",template:'<div class="modal fade" id="modalLogin" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">\n <div class="modal-dialog modal-dialog-centered" role="document">\n <div class="modal-content">\n <div class="modal-body">\n <div class="row justify-content-center">\n <img src="assets/img/logo_visorus_loading.png" alt="">\n </div>\n <div class="row" *ngIf="empresas.length == 0">\n <div class="col-lg-12 col-md-12 col-sm-12" >\n <form #datoForm="ngForm" (ngSubmit)="entrar(datoForm)" > \n <label class="error" *ngIf="error">{{\'Usuario.errorLogin\' | translate}}</label>\n <div class="form-group mb-3">\n <label for="exampleInputEmail1" >{{ \'Usuario.username\' | translate }}</label>\n <input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" #username="ngModel"\n placeholder="{{ \'Usuario.username\' | translate }}" name="username" [(ngModel)]="user.username" required>\n </div>\n <div class="form-group mb-3">\n <label for="exampleInputPassword1">{{ \'Usuario.password\' | translate }}</label>\n <input type="password" class="form-control" id="exampleInputPassword1" placeholder="{{ \'Usuario.password\' | translate }}"\n name="password" [(ngModel)]="user.password" required>\n </div>\n \n <button type="submit" class="btn btn-primary_low btn-lg btn-block my-5 text-light" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class="row" *ngIf="empresas.length">\n <div class="col-xl-12 col-lg-12 col-sm-12">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class="col-xl-6 col-lg-6 col-sm-12 mb-2" *ngFor="let empresa of empresas" style="cursor: pointer">\n <div class="card">\n <div class="card-body">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>',styles:[".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-invalid:not(form),.ng-valid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}"]}]}],t.ctorParameters=function(){return[{type:et},{type:ht}]},t}();var gt=function(t){function o(e){var n=t.call(this,e,"sessionCaja")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var mt=function(){function t(t){this.sessionCajaService=t,this.showCreateSession=!1,this.caja={},this.sessionEdit=null,this.status=new e.EventEmitter,this.success=new e.EventEmitter,this.session={inicio:(new Date).getTime(),termino:null,monedaDenominacionList:[]},this.flagModal=!0,this.labels={title:"Crear nueva session de caja"},this.resp={},this.editMode=!1}return t.prototype.ngOnInit=function(){console.log("denominacionList",this.monedaDenominacionList)},t.prototype.setSession=function(){this.sessionEdit?(this.session=this.sessionEdit,this.session.monedaDenominacionList=this.monedaDenominacionList,this.session.movimientosCaja&&(this.session.monto=this.session.movimientosCaja[0].monto),this.labels={title:"Cerrar session"},this.editMode=!0):this.caja&&(this.labels.title="Crear nueva session de caja",this.session.caja=this.caja,this.session.z=this.caja.z)},t.prototype.closeModal=function(){this.session={},this.editMode=!1,this.status.emit({status:!1})},t.prototype.save=function(){return W(this,void 0,void 0,(function(){var t;return V(this,(function(e){switch(e.label){case 0:return t=this,[4,this.sessionCajaService.save(this.session).toPromise()];case 1:return t.resp=e.sent()||null,this.resp?(this.session={},this.editMode=!1,this.status.emit({status:!1,save:this.resp.data}),this.success.emit(!0)):this.success.emit(!1),[2]}}))}))},t.prototype.edit=function(){return W(this,void 0,void 0,(function(){var t;return V(this,(function(e){switch(e.label){case 0:return console.log("EDIT",this.session),t=this,[4,this.sessionCajaService.update(this.session).toPromise()];case 1:return t.resp=e.sent()||null,this.resp&&(this.session={},this.editMode=!1,this.status.emit({status:!1,update:this.resp.data})),[2]}}))}))},t.decorators=[{type:e.Component,args:[{selector:"session-create",template:'<p-dialog [(visible)]="showCreateSession" [modal]="flagModal" (onHide)="closeModal()" (onShow)="setSession()"\n [closeOnEscape]="flagModal" [closable]="flagModal" [responsive]="flagModal" [contentStyle]="{\'width\':\'750px\'}">\n <p-header><a class="text-primary">{{labels.title}}: </a></p-header>\n \n <div class="form-group" *ngIf="caja">\n <label for="nombreCaja">Nombre de caja: </label>\n <input type="text" class="form-control" [(ngModel)]="caja.nombre" [disabled]="true">\n </div>\n\n \x3c!--<div class="row">\n <div class="col-sm-6">\n <label for="fechaInicioSession">Fecha y Hora de inicio: </label>\n <input type="datetime-local" class="form-control" [(ngModel)]="inicio" [disabled]="true">\n </div>\n <div class="col-sm-6">\n <label type="datetime-local" for="fechaTermino session">Fecha y hora de termino</label>\n <input type="datetime-local" class="form-control" [(ngModel)]="termino" [disabled]="true">\n </div>\n </div>--\x3e\n\n\n <div class="row" *ngIf="caja">\n <div class="col-sm-6">\n <label for="saldoCaja">Saldo: </label>\n <input class="form-control" type="number" [(ngModel)]="session.monto" minlength="1" maxlength="1000000" [disabled]="editMode">\n </div>\n\n <div class="col-sm-6">\n <label for="Numero Z">Numero Z:</label>\n <input class="form-control" type="number" [(ngModel)]="session.z" [disabled]="true">\n </div>\n </div>\n\n <div class="row" *ngIf="!caja">\n Este agente no esta asignado a una caja\n </div>\n\n <p-footer>\n <button class="btn btn-sm btn-primary" (click)="save()" *ngIf="!editMode && caja">Guardar</button>\n <button class="btn btn-sm btn-success" (click)="edit()" *ngIf="editMode && caja">Cerrar session</button>\n <button class="btn btn-sm btn-danger" (click)="closeModal()">Cancelar</button>\n </p-footer>\n</p-dialog>',styles:[""]}]}],t.ctorParameters=function(){return[{type:gt}]},t.propDecorators={showCreateSession:[{type:e.Input}],caja:[{type:e.Input}],monedaDenominacionList:[{type:e.Input}],sessionEdit:[{type:e.Input}],status:[{type:e.Output}],success:[{type:e.Output}]},t}();var vt=function(){};var bt=function(){this.datoPersona=new vt,this.contactos=[],this.datoDirecciones=[]};var yt=function(){this.representanteLegal=new bt,this.contactos=[],this.datoDirecciones=[]};var wt=function(){this.personaFisica=new bt};var It=function(){this.agenteCobrador=new wt,this.agenteVendedor=new wt,this.personaFisica=new bt,this.personaMoral=new yt};var Ct=function(t){function o(e){return t.call(this,e,"/cliente")||this}return J(o,t),o.prototype.validar_archivos_bss=function(t){return this.getHttp().get(this.getUrl("/cliente/validarClienteBss/")+t,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),St=function(){function t(t){this.translate=t}return t.prototype.getPage=function(){return{rows:25,total:void 0,offset:0,filtro:void 0,sort:void 0}},t.prototype.getParams=function(t){return[{param:"offset",value:t.offset},{param:"max",value:t.rows},{param:"filter",value:t.filtro},{param:"sort",value:t.sort}]},t.prototype.getOrden=function(t,e){e&&this.translate.setDefaultLang(e);for(var n,o=[],r=[],i=0;i<t.length;i++)o.push({label:"...",value:t[i].label}),r.push(t[i].param);return r.length>0&&this.translate.get(r).subscribe((function(t){n=t;var e=Object.values(n),r=0;o.forEach((function(t){t.label=""+e[r],r++}))}),(function(t){})),o},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:s.TranslateService}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(s.TranslateService))},token:t,providedIn:"root"}),t}();var xt=function(){function t(t,n){this.clienteService=t,this.paginate=n,this.selectMode="single",this.select=new e.EventEmitter,this.ordenar=[],this.loading=!0}return t.prototype.ngOnInit=function(){this.page=this.paginate.getPage(),this.page.rows=20,this.clientes=[],this.ordenar=this.paginate.getOrden([{param:"razonZocial",label:"razonZocial"}],"es")},t.prototype.cargarDatosClientes=function(t){var e=this;void 0===t&&(t=null),this.loading=!0,t&&(this.page.rows=t.rows,this.page.offset=t.first),this.clientes=[],this.params=this.paginate.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.page.filtro&&""!==this.page.filtro.trim()&&this.params.push({param:"filtroGeneral",value:this.page.filtro.trim()}),this.clienteService.getAll(this.params).subscribe((function(t){e.page.total=t.total,e.clientes=t.data,e.loading=!1}),(function(t){console.error("Error al cargar clientes:",t),e.loading=!1}))},t.prototype.aplicarFiltro=function(){this.page.offset=0,this.cargarDatosClientes()},t.prototype.seleccionaCliente=function(t){console.log("Fila seleccionada (evento):",t),console.log("Datos de la fila (e.data):",t.data),console.log("Cliente seleccionado ANTES de emitir:",this.clienteSeleccionado),this.select.emit(t.data),this.visible=!1,console.log("Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):",this.clienteSeleccionado)},t.prototype.cerrar=function(){this.select.emit(null),this.visible=!1},t.decorators=[{type:e.Component,args:[{selector:"select-cliente",template:'<p-dialog header="{{ \'Seleccionar cliente \' | translate }}" [(visible)]="visible" (onHide)="cerrar()"\n (onShow)="cargarDatosClientes()">\n\n <div class="row">\n <div class="col-12 mb-3">\n <div class="input-group mt-3">\n <div class="ui-inputgroup">\n <input type="text" class="form-control" placeholder="{{\'buscar\'| translate}}..."\n [(ngModel)]="page.filtro" name="filtro" (keyup)="aplicarFiltro()">\n <button class="btn btn-outline-secondary" type="button" (click)="aplicarFiltro()">\n <i class="fa fa-search"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-lg-12">\n <p-table\n [value]="clientes"\n dataKey="id" [lazy]="true"\n (onLazyLoad)="cargarDatosClientes($event)"\n [paginator]="true"\n [rows]="page.rows"\n [totalRecords]="page.total"\n [(selection)]="clienteSeleccionado"\n selectionMode="{{selectMode}}"\n (onRowSelect)="seleccionaCliente($event)"\n [scrollable]="true" scrollHeight="350px"\n [loading]="loading">\n <ng-template pTemplate="header">\n <tr>\n <th>{{\'clave\' | translate}}</th>\n <th>{{\'razonSocial\' | translate}}</th>\n <th>{{\'tipo\' | translate}}</th>\n <th>{{\'Cliente.limiteCredito\' | translate}}</th>\n <th>{{\'Cliente.plazoCredito\' | translate}}</th>\n <th>{{\'Cliente.diasPago\' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-cliente>\n <tr [pSelectableRow]="cliente"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf="cliente.personaFisica">{{\'fisico\'| translate}}</span>\n <span *ngIf="cliente.personaMoral">{{\'moral\'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate="emptymessage">\n <tr>\n <td colspan="6">{{\'general.noRegistros\' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n </div>\n </div>\n</p-dialog>'}]}],t.ctorParameters=function(){return[{type:Ct},{type:St}]},t.propDecorators={clienteSeleccionado:[{type:e.Input}],selectMode:[{type:e.Input}],visible:[{type:e.Input}],select:[{type:e.Output}]},t}();var jt=function(){};var Dt=function(){this.personaMoral=new yt,this.catalogoTipo=new jt,this.clasificadorTipo=new jt,this.personaFisica=new bt};var At=function(t){function o(e){var n=t.call(this,e,"/proveedor")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var kt=function(){function t(t,n,o){this.proveedorService=t,this.paginanateService=n,this.translate=o,this.params=[],this.ordenar=[],this.visible=!1,this.proveedorSeleccionado=new Dt,this.select=new e.EventEmitter,this.translate.get("es")}return t.prototype.ngOnInit=function(){this.page=this.paginanateService.getPage();this.ordenar=this.paginanateService.getOrden([],"es"),this.proveedores=[]},t.prototype.cargarDatosProveedores=function(){var t=this;this.params=this.paginanateService.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.proveedorService.getAll(this.params).subscribe((function(e){t.proveedores=e.data}))},t.prototype.pagina=function(t){this.page.rows=t.rows,this.page.offset=t.first,this.cargarDatosProveedores()},t.prototype.cerrarModal=function(){this.select.emit(null),this.visible=!1},t.prototype.seleccionarProveedor=function(t){this.select.emit(t.data),this.visible=!1},t.decorators=[{type:e.Component,args:[{template:'<p-dialog header="{{\'ArticuloProveedor.proveedores\' | translate}}" [(visible)]="visible" (onHide)="cerrarModal()"\n (onShow)="cargarDatosProveedores()">\n\n <div class="row">\n <div class="col-3 ">\n <div class="input-group mt-3">\n <input type="text" class="form-control" placeholder="{{\'buscar\'| translate}}..."\n [(ngModel)]="page.filtro" name="filtro" (change)="cargarDatosProveedores()">\n <div class="input-group-append">\n <button class="btn btn-outline-secondary" type="button" (click)="cargarDatosProveedores()">\n <i class="fa fa-search"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <hr>\n <div class="row">\n <div class="col-md-12">\n <p-table [(value)]="proveedores" selectionMode="single" [(selection)]="proveedorSeleccionado"\n [scrollable]="true" scrollHeight="350px" (onRowSelect)="seleccionarProveedor($event)">\n <p-column field="codigo" header="{{\'clave\' | translate}}"></p-column>\n <p-column field="descripcionRazonSocial" header="{{\'razonSocial\' | translate}}"></p-column>\n <p-column field="descripcionRfc" header="{{\'rfc\' | translate}}"></p-column>\n\n <p-column header="{{\'tipo\' | translate}}">\n <ng-template let-dato="rowData" pTemplate="body">\n <span *ngIf="dato.personaMoral">{{\'moral\' | translate}}</span>\n <span *ngIf="dato.personaFisica">{{\'fisico\' | translate}}</span>\n </ng-template>\n </p-column>\n\n <p-column field="atrasoDiasEntrega" header="{{\'atrasoDiasEntrega\' | translate}}"></p-column>\n <p-column field="limiteCredito" header="{{\'limiteCredito\' | translate}}"></p-column>\n <p-column header="{{\'fechaUltimaCompra\' | translate}}">\n <ng-template let-dato="rowData" pTemplate="body">\n <span>{{ dato.fechaUltimaCompra | date:\'d/MM/yyyy\'}}</span>\n </ng-template>\n </p-column>\n </p-table>\n </div>\n <div class="col-md-12">\n <p-paginator [rows]="page.rows" [totalRecords]="page.total" [pageLinkSize]="5"\n (onPageChange)="pagina($event)" [rowsPerPageOptions]="[10,25,50,100,500]"></p-paginator>\n </div>\n </div>\n\n</p-dialog>',selector:"select-proveedor"}]}],t.ctorParameters=function(){return[{type:At},{type:St},{type:s.TranslateService}]},t.propDecorators={visible:[{type:e.Input}],proveedorSeleccionado:[{type:e.Input}],select:[{type:e.Output}]},t}();var Mt=function(t){function o(e){var n=t.call(this,e,"stock")||this;return n.httpClient=e,n}return J(o,t),o.prototype.obtenerExistenciasArticulosDescripcion=function(t,e){var n=this,o=this.getBaseUrl()+"/stock/obtenerExistenciasArticulos";return new Promise((function(r,i){n.httpClient.post(o+n.serializeParams(e),t,n.buildAuth()).subscribe((function(t){r(t)}),(function(t){i(t)}))}))},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Pt=function(t){function o(e){var n=t.call(this,e,"/almacen")||this;return n.httpClient=e,n}return J(o,t),o.prototype.obtenerAlmacenEmpresa=function(){var t=this.geturl()+"/obtenerAlmacenEmpresa";return this.getHttp().get(t,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Et=function(){function t(t,n,o){this._stockService=t,this._paginateService=n,this._almacenService=o,this.manejaUnidadSecundaria=!1,this.emitFilaSeleccionada=new e.EventEmitter,this.emitShowArticulos=new e.EventEmitter,this.articulosList=[],this.ordenar=[],this.busquedaArticulos={tipoBusqueda:""},this.showModal=!1,this.showModalInformacion=!1,this.showFirstTime=!0,this.clasificadorList=[]}return t.prototype.ngOnInit=function(){var t=this;this.page=this._paginateService.getPage(),this.ordenar=this._paginateService.getOrden([{param:"nombre",label:"estatus"}],"es"),this.showFirstTime=!0,this._almacenService.getAll(this.configuracion.params).subscribe((function(e){t.almacenList=e.data})),this.busquedaArticulos.tipoBusqueda="CD"},t.prototype.pagina=function(t){this.page.rows=t.rows,this.page.offset=t.first,this.obtenerExistenciaArticulos()},t.prototype.obtenerExistenciaArticulosShow=function(){this.busquedaArticulos.tipoBusqueda="CD",this.showFirstTime&&(this.obtenerExistenciaArticulos(),this.showFirstTime=!1)},t.prototype.obtenerExistenciaArticulos=function(){var t=this;this.busquedaArticulos.params=this._paginateService.getParams(this.page);var e={almacen:this.configuracion.noOcupaAlamacen?null:this.movimiento.almacen,tipoPrecio:this.configuracion.tipoPrecio,busquedaArticulos:this.busquedaArticulos,tipoArticulo:this.configuracion.tipoArticulo?this.configuracion.tipoArticulo:null,numeroPrecioDefault:this.configuracion.numeroPrecioDefault};this._stockService.obtenerExistenciasArticulosDescripcion(e,this.busquedaArticulos.params).then((function(e){t.articulosList=e.articulosDescripcion,t.page.total=e.total,e.clasificadores&&(t.clasificadorList=e.clasificadores),t.showModal||(t.showModal=!0)})).catch((function(e){t.articulosList=[]}))},t.prototype.obtenerExistenciaArticulosVal=function(){if(""!=this.busquedaArticulos.tipoBusqueda&&!this.busquedaArticulos.key)return!1;this.obtenerExistenciaArticulos()},t.prototype.obtenerExistenciaArticulosKey=function(t){"Enter"===t.key&&this.obtenerExistenciaArticulos()},t.prototype.filaSeleccionada=function(t){this.emitFilaSeleccionada.emit(t)},t.prototype.emitirShowArticulos=function(){this.emitShowArticulos.emit(0)},t.prototype.seriesArticulo=function(t){console.log(t)},t.prototype.onShowInformacion=function(t){this.articuloSelected=t,this.showModalInformacion=!0},t.prototype.onEventInformacion=function(t){this.showModalInformacion=t.status},t.decorators=[{type:e.Component,args:[{selector:"app-selecciona-articulo",template:'\n\n \x3c!--inicia seleccion de articulos--\x3e\n \x3c!-- (onShow)="obtenerExistenciaArticulosShow()" --\x3e\n \x3c!--\n <div class="col-12 col-center" >--\x3e\n <p-dialog header="{{ \'Articulos\' | translate }}" [(visible)]="showArticulos"\n [maximizable]="true" \n (onShow)="obtenerExistenciaArticulosShow()"\n (onHide)="busquedaArticulos = { tipoBusqueda : \'\'}; emitirShowArticulos()"\n [baseZIndex]="10000" [blockScroll]="true"\n [minWidth]="200" [minY]="70" \n > \n <div class="col-12 mb-3">\n <div class="row">\n <div class="col-12 col-md-3 col-xl-3">\n <select [(ngModel)]="busquedaArticulos.tipoBusqueda" class="form-control col-md-6" (change)="obtenerExistenciaArticulosVal()">\n <option value="C">Codigo</option>\n <option value="D">Descripcion</option>\n <option value="CD">Coincidencia</option>\n <option value="CI">Igual a</option>\n </select>\n </div>\n <div class="col-12 col-md-3 col-xl-3">\n <div class="ui-inputgroup">\n <input type="text" class="form-control " [(ngModel)]="busquedaArticulos.key"\n (keypress)="obtenerExistenciaArticulosKey( $event )" name="key" >\n <button class="btn btn-outline-primary" type="button"\n (click)="obtenerExistenciaArticulos( )">\n <i class="fa fa-search"></i>\n </button>\n </div>\n </div>\n <div class="col-12 col-md-2 col-xl-2">\n <label class="form-group" >{{\'Movimiento.movimientoDetalle.almacen\' | translate}}</label>\n </div>\n <div class="col-12 col-md-4 col-xl-4">\n <select class="form-control" [(ngModel)]="movimiento.almacen" disabled\n name="almacen" (change)="obtenerExistenciaArticulosVal()">\n <option *ngFor="let almacen of almacenList" value="{{ almacen.id }}">{{almacen.descripcion}}</option>\n </select>\n </div>\n </div>\n </div>\n \n \x3c!--\n <div id="table-wrapper">\n <div id="table-scroll">--\x3e\n \x3c!-- new table\n <p-table #dt [columns]="colsDD" [value]="listDD" [scrollable]="true" \n [style]="{width: \'100%\'} " [scrollHeight]="maxH + \'px\'" \n [resizableColumns]="true" [(selection)]="selectedXML" (onRowSelect)="onRowSelect($event)" dataKey="uuid">\n\n \n --\x3e \n <div style="margin-top: 10px;"> \n <p-table [value]="articulosList" \n [scrollable]="true" \n #dt \n scrollHeight="400px"\n [responsive]="true" \n selectionMode="single" \n (onRowSelect)="filaSeleccionada($event)">\n <ng-template pTemplate="header">\n <tr>\n <th style="width: 80px" translate>Código Ubicacion</th>\n <th style="width: 70px" translate>Existencia</th>\n <th style="width: 40px" translate>Unidad</th>\n <th style="width: 50px" *ngIf="manejaUnidadSecundaria" translate>existenciaSecundaria</th>\n <th style="width: 40px" *ngIf="manejaUnidadSecundaria" translate>Unidad</th>\n <th style="width: 80px" translate>Código</th>\n <th style="width: 120px" translate>Descripcion</th>\n <th style="width: 40px" translate></th> \n <th style="width: 80px" *ngIf="configuracion.tipoPrecio !== \'costo\' " translate>Movimiento.movimientoDetalle.precio</th>\n <th style="width: 80px" *ngIf="configuracion.tipoPrecio !== \'costo\' " translate>Precio 2</th>\n <th style="width: 80px" *ngIf="configuracion.tipoPrecio !== \'costo\' " translate>Precio 3</th>\n <th style="width: 80px" *ngIf="configuracion.tipoPrecio !== \'costo\' " translate>Precio 4</th>\n <th style="width: 80px" *ngIf="configuracion.tipoPrecio !== \'costo\' " translate>Precio 5</th>\n <th style="width: 40px" *ngIf="configuracion.tipoPrecio === \'costo\' " translate>Movimiento.costo</th> \n <th style="width: 40px" translate>Existencia por Unidad</th> \n <th *ngFor="let item of clasificadorList" style="width: 80px" translate>{{item.descripcion}}</th> \n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-rowData let-rowIndex="rowIndex">\n <tr [pSelectableRow]="rowData"> \n <td style="width: 80px;" *ngIf="!rowData.ubicacionCodigo" translate>Movimiento.NoAsignado</td>\n <td style="width: 80px;" *ngIf="rowData.ubicacionCodigo" >{{rowData.ubicacionCodigo}}</td>\n <td style="width: 70px;">{{rowData.existencia}}</td>\n <td style="width: 40px;">{{rowData.unidadCodigo}}</td> \n\n <td style="width: 50px;" *ngIf="manejaUnidadSecundaria">{{rowData.existenciaSecundaria}}</td>\n <td style="width: 40px;" *ngIf="manejaUnidadSecundaria">{{rowData.unidadSecundariaCodigo}}</td> \n\n <td style="width: 80px;">{{rowData.articulo.codigo}}</td>\n <td style="width: 120px;">{{rowData.articulo.descripcion}}</td>\n <td style="width: 40px;">\n <button pButton type="button"\n icon="pi pi-eye" class="ui-button-raised ui-button-primary" (click)="onShowInformacion(rowData)">\n </button> \n </td>\n <td style="width: 80px;" *ngIf="configuracion.tipoPrecio !== \'costo\'">{{rowData.precioConImpuestos | currency }}</td>\n <td style="width: 80px;" *ngIf="configuracion.tipoPrecio !== \'costo\'">{{rowData.precio2ConImpuestos | currency }}</td>\n <td style="width: 80px;" *ngIf="configuracion.tipoPrecio !== \'costo\'">{{rowData.precio3ConImpuestos | currency }}</td>\n <td style="width: 80px;" *ngIf="configuracion.tipoPrecio !== \'costo\'">{{rowData.precio4ConImpuestos | currency }}</td>\n <td style="width: 80px;" *ngIf="configuracion.tipoPrecio !== \'costo\'">{{rowData.precio5ConImpuestos | currency }}</td> \n <td style="width: 40px;" *ngIf="configuracion.tipoPrecio === \'costo\' ">{{rowData.precio | currency }}</td> \n <td style="width: 40px;">\n <div class="row justify-content-between" *ngFor="let item of rowData.existenciaUnidades" >\n <div class="col-lg-4"><label for="">{{item.unidad_codigo}}</label></div>\n <div class="col-lg-4"><label for="">{{item.unidad_existencia | number : \'1.2-2\'}}</label>\n </div> \n </div> \n </td> \n \x3c!-- <td style="width: 40px;"></td> --\x3e\n <td *ngFor="let itemData of rowData.articuloClasificadorList" style="width: 80px;">{{itemData.valor}}</td> \n </tr>\n </ng-template>\n </p-table>\n </div>\n \x3c!-- /new table--\x3e \n \x3c!-- \n <p-table [(value)]="articulosList" responsive="true" \n selectionMode="multiple" (onRowSelect)="filaSeleccionada($event)" [scrollable]="true" scrollHeight="350px" >\n\n <p-column header="{{ \'Codigo ubicacion\'.toString() | translate}}">\n <ng-template let-dato="rowData" pTemplate="body">\n <label for="" *ngIf="!dato.ubicacionCodigo" translate> Movimiento.NoAsignado </label>\n <label for="" *ngIf="dato.ubicacionCodigo" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n <p-column field="ubicacionCodigo" header="{{ \'Descripcion ubicacion\'.toString() | translate}}">\n <ng-template let-dato="rowData" pTemplate="body">\n <label for="" *ngIf="!dato.ubicacionCodigo" translate> Movimiento.NoAsignado </label>\n <label for="" *ngIf="dato.ubicacionCodigo" > {{ dato.ubicacionCodigo }}</label>\n </ng-template>\n </p-column>\n\n <p-column field="existencia" header="{{\'Existencia\' | translate}}"></p-column>\n <p-column field="unidadCodigo" header="{{\'Unidad\' | translate}}"></p-column>\n <p-column field="unidadDescripcion" header="{{\'Descripcion unidad\' | translate}}"></p-column>\n\n <p-column field="existenciaSecundaria" header="{{\'existenciaSecundaria\' | translate}}" *ngIf="manejaUnidadSecundaria"></p-column>\n <p-column field="unidadSecundariaCodigo" header="{{\'Unidad\' | translate}}" *ngIf="manejaUnidadSecundaria"></p-column>\n \n\n <p-column *ngIf="configuracion.tipoPrecio !== \'costo\' " header="{{\'Movimiento.movimientoDetalle.precio\' | translate}}">\n <ng-template let-dato="rowData" pTemplate="body">\n <label for="">{{ dato.precioConImpuestos | currency }}</label>\n </ng-template>\n </p-column>\n <p-column *ngIf="configuracion.tipoPrecio === \'costo\' " header="{{\'Movimiento.costo\' | translate }}">\n <ng-template let-dato="rowData" pTemplate="body">\n <label for="">{{ dato.precio | currency }}</label>\n </ng-template>\n </p-column>\n\n\n <p-column field="articulo.codigo" header="{{\'Codigo articulo\' | translate}}"></p-column>\n <p-column field="articulo.descripcion" header="{{\'Descripcion\' | translate}}"></p-column>\n\n\n\n <p-column header="{{\'ExistenciaPorUnidad\' | translate }}">\n <ng-template let-dato="rowData" pTemplate="body">\n <div class="row justify-content-between" *ngFor="let item of dato.existenciaUnidades" >\n <div class="col-lg-4"><label for="">{{item.unidad_codigo}}</label></div>\n <div class="col-lg-4"><label for="">{{item.unidad_existencia | number : \'1.2-2\'}}</label>\n </div> \n </div> \n </ng-template>\n </p-column>\n \n </p-table>\n --\x3e\n <p-paginator [rows]="page.rows" [totalRecords]="page.total" [pageLinkSize]="5" (onPageChange)="pagina($event)" [rowsPerPageOptions]="[10,25,50,100,500]"></p-paginator>\n \x3c!-- \n </div>\n </div>\n --\x3e\n </p-dialog>\n \x3c!--\n </div> \n --\x3e\n \x3c!--termina seleccion de articulos--\x3e\n\x3c!--selecciona ubicacion --\x3e\n<lib-seleccion-articulo-informacion [showModal]="showModalInformacion" \n [articulo]="articuloSelected" \n (eventSelection)="onEventInformacion($event)" *ngIf="showModalInformacion">\n</lib-seleccion-articulo-informacion> ',styles:["tr:hover{background-color:#34a835!important;color:#fff!important}table{position:absolute}"]}]}],t.ctorParameters=function(){return[{type:Mt},{type:St},{type:Pt}]},t.propDecorators={configuracion:[{type:e.Input}],showArticulos:[{type:e.Input}],movimiento:[{type:e.Input}],manejaUnidadSecundaria:[{type:e.Input}],emitFilaSeleccionada:[{type:e.Output}],emitShowArticulos:[{type:e.Output}]},t}();var Ht=function(t){function o(e){var n=t.call(this,e,"acreedor")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Tt=function(){function t(t,n,o){this.acreedorService=t,this.paginanateService=n,this.translate=o,this.params=[],this.ordenar=[],this.visible=!1,this.acreedorSeleccionado=new Dt,this.select=new e.EventEmitter,this.translate.get("es")}return t.prototype.ngOnInit=function(){this.page=this.paginanateService.getPage();this.ordenar=this.paginanateService.getOrden([],"es"),this.acreedores=[]},t.prototype.cargarDatosAcreedores=function(){var t=this;this.params=this.paginanateService.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.acreedorService.getAll(this.params).subscribe((function(e){t.acreedores=e.data}))},t.prototype.pagina=function(t){this.page.rows=t.rows,this.page.offset=t.first,this.cargarDatosAcreedores},t.prototype.cerrarModal=function(){this.select.emit(null),this.visible=!1},t.prototype.seleccionarAcreedor=function(t){this.select.emit(t.data),this.visible=!1},t.decorators=[{type:e.Component,args:[{template:'<p-dialog header="Selecciona el acreedor" [(visible)]="visible" (onHide)="cerrarModal()"\n (onShow)="cargarDatosAcreedores()">\n\n <div class="row">\n <div class="col-3">\n <div class="input-group mt-3">\n <input type="text" class="form-control" placeholder="{{\'buscar\'| translate}}..."\n [(ngModel)]="page.filtro" name="filtro" (keyup)="cargarDatosAcreedores()"> <div class="input-group-append">\n <button class="btn btn-outline-secondary" type="button" (click)="cargarDatosAcreedores()">\n <i class="fa fa-search"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <hr>\n <div class="row">\n <div class="col-md-12">\n <p-table\n [value]="acreedores"\n dataKey="id" selectionMode="single"\n [(selection)]="acreedorSeleccionado"\n (onRowSelect)="seleccionarAcreedor($event)"\n [scrollable]="true"\n scrollHeight="350px"\n [responsive]="true">\n\n <ng-template pTemplate="header">\n <tr>\n <th>{{\'razonSocial\' | translate}}</th>\n <th>{{\'rfc\' | translate}}</th>\n <th>{{\'tipo\' | translate}}</th>\n <th>{{\'atrasoDiasEntrega\' | translate}}</th>\n <th>{{\'limiteCredito\' | translate}}</th>\n <th>{{\'fechaUltimaCompra\' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate="body" let-acreedor> <tr [pSelectableRow]="acreedor"> <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf="acreedor.personaMoral">{{\'moral\' | translate}}</span>\n <span *ngIf="acreedor.personaFisica">{{\'fisico\' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:\'dd/MM/yyyy\'}}</td> </tr>\n </ng-template>\n\n <ng-template pTemplate="emptymessage">\n <tr>\n <td [attr.colspan]="6">{{\'general.noRegistros\' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n <div class="col-md-12">\n <p-paginator [rows]="page.rows" [totalRecords]="page.total" [pageLinkSize]="5"\n (onPageChange)="pagina($event)" [rowsPerPageOptions]="[10,25,50,100,500]"></p-paginator>\n </div>\n </div>\n</p-dialog>',selector:"select-acreedor"}]}],t.ctorParameters=function(){return[{type:Ht},{type:St},{type:s.TranslateService}]},t.propDecorators={visible:[{type:e.Input}],acreedorSeleccionado:[{type:e.Input}],select:[{type:e.Output}]},t}();var _t=[at,st,ft,ut,mt,xt,kt,Et,Tt],Ut=[O.CardModule,U.TooltipModule,_.OverlayPanelModule,H.RadioButtonModule,P.CheckboxModule,A.AutoCompleteModule,D.TableModule,j.TreeTableModule,S.CalendarModule,D.TableModule,l.ButtonModule,u.InputTextModule,p.DropdownModule,d.InputMaskModule,h.MessagesModule,f.MessageModule,g.PaginatorModule,m.ConfirmDialogModule,v.ProgressBarModule,b.TriStateCheckboxModule,y.KeyFilterModule,w.InputSwitchModule,I.DialogModule,C.TabViewModule,x.PanelModule,z.ToolbarModule,z.SplitButtonModule,k.FieldsetModule,M.GrowlModule,E.TreeModule,T.TabMenuModule,q.MenubarModule],Ot=[L.ConfirmationService],qt=function(t){function o(e){var n=t.call(this,e,"articulo")||this;return n.httpClient=e,n}return J(o,t),o.prototype.obtenerExistencias=function(t){var e="/existenciasArticulo/"+t;return this.httpClient.get(this.geturl()+e,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Lt=function(){function t(t){this.articuloInformacionService=t,this.eventSelection=new e.EventEmitter,this.flagModal=!0,this.sizewidth=640,this.params=[{param:"offset",value:0},{param:"max",value:-1},{param:"order",value:"asc"}],this.columnsData=[{field:"codigo",header:"Código Almacén",width:"90px"},{field:"descripcion",header:"Descripción Almacen",width:"140px"},{field:"codigo",header:"Código Ubicación",width:"90px"},{field:"descripcion",header:"Descripción Ubicación",width:"140px"},{field:"opciones",header:"Existencia",width:"80px"}]}return t.prototype.ngOnInit=function(){this.OnLoad()},t.prototype.hiddenDialog=function(){this.eventSelection.emit({status:!1})},t.prototype.OnResize=function(t){this.isMovil=t.target.innerWidth<=640},t.prototype.OnLoad=function(){var t=this;this.articuloInformacionService.obtenerExistencias(this.articulo.articulo.id).subscribe((function(e){t.existenciasList=e.data}))},t.prototype.OnShow=function(){this.titulo="Existencias en Almacenes"},t.prototype.onSelectedUbicacion=function(t){this.eventSelection.emit({status:!1,ubicacion:t})},t.decorators=[{type:e.Component,args:[{selector:"lib-seleccion-articulo-informacion",template:'<p-dialog (onShow)="OnShow()" [header]="titulo" [(visible)]="showModal" [modal]="flagModal" \n [minWidth]="200" [minY]="70"\n [baseZIndex]="10000" [width]="!isMovil?sizewidth:300" (onHide)="hiddenDialog()" [draggable]="false" \n [blockScroll]="true"\n\t\t (window:resize)="OnResize($event)" [maximizable]="true" [breakpoint]="640">\n\t<div class="ui-g ui-fluid"> \n <p-table [columns]="columnsData" [value]="existenciasList" [scrollable]="true" [style]="{width: \'600px\'}" \n [responsive]="true" \n scrollHeight="350px"\n > \n <ng-template pTemplate="colgroup" let-columns>\n <colgroup>\n <col *ngFor="let col of columns" [style.width]="col.width">\n </colgroup>\n </ng-template>\n <ng-template pTemplate="header" let-columns>\n <tr>\n <th *ngFor="let col of columns" pResizableColumn>\n {{col.header}}\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-rowData let-columns="columns" let-rowIndex="rowIndex">\n <tr>\n <td>{{rowData.almacenCodigo}}</td>\n <td>{{rowData.almacenDescripcion}}</td> \n <td>{{rowData.ubicacionCodigo}}</td>\n <td>{{rowData.ubicacionDescripcion}}</td> \n <td>{{rowData.existencia}}</td> \n </tr>\n </ng-template>\n </p-table>\n </div>\t \n <p-footer>\n <div class="container-end">\n <button pButton type="button" icon="pi pi-replay" label="Cerrar" class="ui-button-raised ui-button-secondary" (click)="hiddenDialog()"></button>\n </div>\n </p-footer>\n</p-dialog>',styles:[""]}]}],t.ctorParameters=function(){return[{type:qt}]},t.propDecorators={showModal:[{type:e.Input}],articulo:[{type:e.Input}],eventSelection:[{type:e.Output}]},t}();function zt(t){return new F.TranslateHttpLoader(t,"./assets/i18n/",".json")}var Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[rt,_t,tt,Lt],imports:[R.CommonModule,Ut,i.ToastrModule.forRoot(),s.TranslateModule.forRoot({loader:{provide:s.TranslateLoader,useFactory:zt,deps:[n.HttpClient]}})],providers:[Ot,{provide:n.HTTP_INTERCEPTORS,useClass:ot,multi:!0}],exports:[_t,tt]}]}],t}(),Rt=function(){function t(t){this.authService=t,this.cambioAcciones=new e.EventEmitter,this.changeDetalleUsuario=new e.EventEmitter}return t.prototype.set=function(t){this.detallesUsuarios=t,this.changeDetalleUsuario.emit(this.detallesUsuarios)},t.prototype.canActivete=function(t){for(var e=!1,n=this.authService.getUser(),o=function(o){if(e)return{value:e};var r=n.roles.filter((function(e){return e===t[o]}));e=r.length>0},r=0;r<t.length;r++){var i=o(r);if("object"==typeof i)return i.value}return e},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:ht}]},t.propDecorators={cambioAcciones:[{type:e.Output}],changeDetalleUsuario:[{type:e.Output}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(ht))},token:t,providedIn:"root"}),t}();var Bt=function(){function t(t,e){this.http=t,this.authService=e}return t.prototype.initConfig=function(){this.http.get("assets/config.json").subscribe((function(t){localStorage.setItem("config",JSON.stringify(t))})),this.http.get("assets/version.json").subscribe((function(t){localStorage.removeItem("version"),localStorage.setItem("version",t.hash)}))},t.prototype.cargaConfig=function(){var t=this;this.http.get("assets/config.json").subscribe((function(e){localStorage.setItem("config",JSON.stringify(e));var o=e.url;t.http.post(o+"/login",{username:"admin",password:"admin"}).subscribe((function(e){localStorage.setItem("usuario",JSON.stringify(e));var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:e.token_type+" "+e.access_token})};t.http.get(o+"/usuario/obtieneUsuarioActual",r).subscribe((function(e){var n=e.empresas[0];t.authService.setEmpresa(n).subscribe()}))}))}))},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.HttpClient},{type:ht}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(n.HttpClient),e.ɵɵinject(ht))},token:t,providedIn:"root"}),t}();var Nt=function(){function t(t){this.toastr=t}return t.prototype.deployMessage=function(t,e,n){switch(void 0===t&&(t=null),t){case"success":this.toastr.success(n,e,{timeOut:3e3});break;case"info":this.toastr.info(n,e,{timeOut:3e3});break;case"warning":this.toastr.warning(n,e,{timeOut:3e3});break;case"error":this.toastr.error(n,e,{timeOut:3e3});break;case null:this.toastr.success(n,e,{timeOut:3e3})}},t.prototype.success=function(t){var e=[];return e.push({severity:"success",summary:"Exito",detail:""+t}),e},t.prototype.error=function(t){var e=[];if(t){if(t.error&&(t=t.error).error)for(var n=0;n<t.error.length;n++)e.push({severity:"error",summary:"Error",detail:""+t.error[n].message})}else t.mensaje&&e.push({severity:"error",summary:"Error",detail:""+t.mensaje});return e},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.ToastrService}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.ToastrService))},token:t,providedIn:"root"}),t}();var Jt=function(t){function o(e){return t.call(this,e,"/personaMoral")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),$t=function(){function t(t){this.controlAccesoService=t,this.rol="",this.method=""}return t.prototype.canActivate=function(){return this.controlAccesoService.canActivete([this.rol])},t.prototype.permisos=function(t){this.rol=t},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:Rt}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(Rt))},token:t,providedIn:"root"}),t}();var Wt=function(t){function o(e){var n=t.call(this,e,"catalogoAdicional")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Vt=function(){function t(t,e,n){this.authService=t,this.controlAccesoService=e,this.router=n}return t.prototype.load=function(t){var e=this;return this.authService.getUser()?this.authService.getDetalsUser().subscribe((function(t){for(var n=t.roles,o=0;o<n.length;o++)"ROLE_CLIENTE"===n[o].authority&&e.router.navigate(["movimientos/ventaRapida/create"]);return t.empresa||e.regresaAlprincipal(void 0),e.controlAccesoService.detallesUsuarios=t,e.controlAccesoService.cambioAcciones.emit(!0),!0}),(function(t){e.regresaAlprincipal(void 0)})):this.regresaAlprincipal(void 0),!1},t.prototype.regresaAlprincipal=function(t){var e=JSON.parse(localStorage.getItem("config")),n="";e&&e.host&&(n=e.host),t&&(n+=t),window.location.href=n},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:ht},{type:Rt},{type:B.Router}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(ht),e.ɵɵinject(Rt),e.ɵɵinject(B.Router))},token:t,providedIn:"root"}),t}();var Gt=function(){function t(t){this.http=t,this.currentHash="{{POST_BUILD_ENTERS_HASH_HERE}}",this.versionado=!1,this.frequency=108e5}return t.prototype.initVersionCheck=function(){var t=this;setInterval((function(){t.checkVersion()}),this.frequency)},t.prototype.checkVersion=function(){var t=this;this.http.get("assets/version.json?t="+(new Date).getTime()).subscribe((function(e){var n=e.hash;t.currentHash=localStorage.getItem("version"),t.hasHashChanged(t.currentHash,n)||t.versionado||(t.versionado=!0,confirm("Está disponible una actualización de Visorus ERP. El sistema se reiniciara para descargar los nuevos cambios.")?(location.reload(!0),t.versionado=!1):t.versionado=!1)}),(function(t){console.error(t,"No se pudo obtener versión de software")}))},t.prototype.hasHashChanged=function(t,e){return!(!t||"{{POST_BUILD_ENTERS_HASH_HERE}}"===t)&&t===e},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:n.HttpClient}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(n.HttpClient))},token:t,providedIn:"root"}),t}();var Zt=function(t){function o(e){var n=t.call(this,e,"agente")||this;return n.httpClient=e,n}return J(o,t),o.prototype.saveUsuarioAgente=function(t){var e=this.getUrl("agente")+"/usuario";return this.getHttp().post(e,t,this.buildAuth())},o.prototype.getUsuarioAgente=function(t){var e=this.getUrl("agente")+"/usuario/"+t;return this.getHttp().get(e,this.buildAuth())},o.prototype.obtenerAgenteEmpresa=function(){var t=this.geturl()+"/obtenerAgenteEmpresa";return this.getHttp().get(t,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Kt=function(){};var Xt=function(){};var Yt=function(){this.datoDireccion=new Xt};var Qt=function(t){function o(e){return t.call(this,e,"/banco")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),te=function(){};var ee=function(t){function o(e){return t.call(this,e,"/catalogoTipo")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),ne=function(t){function o(e){return t.call(this,e,"/clasificadorTipo")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),oe=function(){};var re=function(t){function o(e){return t.call(this,e,"claveMovimiento")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),ie=function(){this.banco=new Yt,this.estatus=!0};var ae=function(){};var se=function(){this.cliente=new It,this.flete=new ae,this.estatus=!0};var ce=function(t){function o(e){var n=t.call(this,e,"/clienteCuentaBanco")||this;return n.httpClient=e,n}return J(o,t),o.prototype.saveAll=function(t){var e={cuentas:t};return this.httpClient.post(this.geturl(),e,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var le=function(t){function o(e){var n=t.call(this,e,"/clienteFlete")||this;return n.httpClient=e,n}return J(o,t),o.prototype.saveAll=function(t){var e={fletes:t};return this.save(e)},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var ue=function(){this.estatus=!0};var pe=function(){this.tipoContacto=new ue};var de=function(t){function o(e){return t.call(this,e,"/contacto")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),he=function(t){function o(e){return t.call(this,e,"/datoDireccion")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),fe=function(){};var ge=function(t){function o(e){return t.call(this,e,"/departamento")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),me=function(){};var ve=function(){this.datoDireccion=new Xt,this.personaMoral=new yt,this.claveFormaPagoEfectivo=new me};var be=function(){this.empresa=new ve};var ye=function(t){function o(e){var n=t.call(this,e,"/empresa")||this;return n.httpClient=e,n}return J(o,t),o.prototype.get=function(){return this.httpClient.get(this.getBaseUrl()+"/configuracionEmpresaAdministrativo/configuracionUsuario",this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var we=function(t){function o(e){var n=t.call(this,e,"/flete")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Ie=function(t){function o(e){return t.call(this,e,"/FormaDePago")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),Ce=function(){};var Se=function(t){function o(e){var n=t.call(this,e,"/moneda")||this;return n.httpClient=e,n}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var xe=function(){};var je=function(){};var De=function(t){function o(e){var n=t.call(this,e,"/PersonaFisica")||this;return n.httpClient=e,n}return J(o,t),o.prototype.getGeneros=function(){return this.httpClient.get(this.getBaseUrl()+"/genero",this.buildAuth())},o.prototype.getEstadoCivil=function(){return this.httpClient.get(this.getBaseUrl()+"/estadoCivil",this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Ae=function(){this.banco=new Yt,this.estatus=!0};var ke=function(){this.proveedor=new Dt,this.flete=new ae,this.estatus=!0};var Me=function(t){function o(e){var n=t.call(this,e,"/proveedorCuentaBanco")||this;return n.httpClient=e,n}return J(o,t),o.prototype.saveAll=function(t){var e={cuentas:t};return this.httpClient.post(this.geturl(),e,this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Pe=function(t){function o(e){var n=t.call(this,e,"/proveedorFlete")||this;return n.httpClient=e,n}return J(o,t),o.prototype.saveAll=function(t){var e={fletes:t};return this.save(e)},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Ee=function(t){function o(e){return t.call(this,e,"claveAumentoDisminucion")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),He=function(t){function o(e){var n=t.call(this,e,"serieDocumento")||this;return n.httpClient=e,n}return J(o,t),o.prototype.getTipos=function(){return this.httpClient.get(this.getUrl("serieDocumento")+"/tipoSerie",this.buildAuth())},o.prototype.getReporte=function(t){return this.httpClient.get(this.getUrl("serieDocumento")+"/descargaFormatoReporte"+this.serializeParams(t),this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var Te=function(){};var _e=function(t){function o(e){return t.call(this,e,"/tipoContacto")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),Ue=function(){};var Oe=function(t){function o(e){return t.call(this,e,"ubicacion")||this}return J(o,t),o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K),qe=function(){function t(){}return t.ARTICULO=2,t.USO_CFDI=11,t}();var Le=function(t){function o(e){var n=t.call(this,e,"acreedorCuentaContable")||this;return n.httpClient=e,n}return J(o,t),o.prototype.cuentasContables=function(){return this.httpClient.get(this.getUrl()+"/cuentaContable/obtieneCuentasContablesRecursivo/",this.buildAuth())},o.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],o.ctorParameters=function(){return[{type:n.HttpClient}]},o.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new o(e.ɵɵinject(n.HttpClient))},token:o,providedIn:"root"}),o}(K);var ze=function(){};var Fe=function(){};t.AcreedorCuentaContableService=Le,t.AcreedorService=Ht,t.Agente=wt,t.AgenteService=Zt,t.Almacen=Kt,t.AlmacenService=Pt,t.Auth=dt,t.AuthService=ht,t.Authenticated=Vt,t.Banco=Yt,t.BancoService=Qt,t.CanActivateGuard=$t,t.CatalogoAdicionalService=Wt,t.CatalogoTipo=te,t.CatalogoTipoService=ee,t.CclistaComponent=Y,t.CcseleccionDialogComponent=Q,t.ClasificadorTipo=jt,t.ClasificadorTipoService=ne,t.ClaveAumentoDisminucionService=Ee,t.ClaveMovimiento=oe,t.ClaveMovimientoService=re,t.Cliente=It,t.ClienteCuentaBanco=ie,t.ClienteCuentaBancoService=ce,t.ClienteFlete=se,t.ClienteFleteService=le,t.ClienteService=Ct,t.ConfiguracionEmpresaAdministrativa=be,t.ControlAccesoService=Rt,t.CoreLibModule=Ft,t.CrudService=K,t.CuentaContableModel=ze,t.DatoContacto=pe,t.DatoContactoService=de,t.DatoDireccion=Xt,t.DatoDireccionService=he,t.Departamento=fe,t.DepartamentoService=ge,t.Empresa=ve,t.EmpresaService=ye,t.Error404Component=rt,t.EstadoCivil=xe,t.FileService=lt,t.Flete=ae,t.FleteService=we,t.FormaPago=me,t.FormaPagoService=Ie,t.Genero=je,t.GlobalService=Z,t.HttpLoaderFactory=zt,t.InitService=Bt,t.LoadingComponent=at,t.LoadingScreenComponent=st,t.LoadingScreenService=nt,t.LoadingService=it,t.LoginModalComponent=ft,t.LoginModalService=et,t.MessageService=Nt,t.Moneda=Ce,t.MonedaService=Se,t.NormaInformacionFinancieraModel=Fe,t.PaginateService=St,t.PdfModalComponent=ut,t.PdfModalService=ct,t.Persona=vt,t.PersonaFisica=bt,t.PersonaFisicaService=De,t.PersonaMoral=yt,t.PersonaMoralService=Jt,t.Proveedor=Dt,t.ProveedorCuentaBanco=Ae,t.ProveedorCuentaBancoService=Me,t.ProveedorFlete=ke,t.ProveedorFleteService=Pe,t.ProveedorService=At,t.SeleccionaArticuloComponent=Et,t.SelectAcreedorComponent=Tt,t.SelectClienteComponent=xt,t.SelectProveedorComponent=kt,t.SerieDocumento=Te,t.SerieDocumentoService=He,t.SessionCajaService=gt,t.SessionCreateComponent=mt,t.StockService=Mt,t.TipoCatalogo=qe,t.TipoContacto=ue,t.TipoContactoService=_e,t.Ubicacion=Ue,t.UbicacionService=Oe,t.Usuario=pt,t.VersionCheckService=Gt,t.httpInterceptor=ot,t.ɵa=_t,t.ɵb=tt,t.ɵc=X,t.ɵd=Lt,t.ɵe=qt,t.ɵf=Ut,t.ɵg=Ot,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var V=function(e,t){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function J(e,t){function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Z(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((o=o.apply(e,t||[])).next())}))}function W(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function G(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Y=function(){function e(e){this.http=e}return e.prototype.setConfiguracion=function(){this.http.get("assets/config.json").subscribe((function(e){localStorage.setItem("config",JSON.stringify(e))}))},e.prototype.obtieneConfiguracion=function(){return JSON.parse(localStorage.getItem("config"))},e.prototype.getUrl=function(e){return this.obtieneConfiguracion().url+(e?"/"+e:"")},e.prototype.auth=function(e){return this.http.post(this.getUrl()+"/login",e)},e.prototype.getUsuarioActual=function(){return this.http.get(this.getUrl()+"/usuario/obtieneUsuarioActual",this.buildAuth())},e.prototype.buildAuth=function(){var e=this.getUsuario();return{headers:new n.HttpHeaders({Authorization:e.token_type+" "+e.access_token,"Content-Type":"application/json",Accept:"application/json"})}},e.prototype.validateEndPoint=function(){return this.http.get(this.getUrl()+"/validate",this.buildAuth())},e.prototype.closeEndPoint=function(){localStorage.removeItem("usuario"),this.setUsuarioInstance(null)},e.prototype.getUsuario=function(){return JSON.parse(localStorage.getItem("usuario"))},e.prototype.setUsuarioInstance=function(e){this.usuarioInstance=e},e.prototype.getLang=function(){var e=localStorage.getItem("lang");return e||"es"},e.prototype.setModulo=function(e){return this.http.post(this.getUrl()+"/usuario/setModulo",e,this.buildAuth())},e}(),K=function(e){function t(t,n){var o=e.call(this,t)||this;return o.httpCliente=t,o.url=n,o.urlComponente=o.url,o}return J(t,e),t.prototype.serializeParams=function(e){var t="";return e.map((function(e,n){void 0!==e.value&&(t+=(0==n?"?":"&")+e.param+"="+e.value)})),t},t.prototype.getHttp=function(){return this.httpCliente},t.prototype.geturl=function(){return this.getUrl(this.urlComponente)},t.prototype.getBaseUrl=function(){return this.getUrl("")},t.prototype.getByUrl=function(e,t){return this.httpCliente.get(this.getUrl(e)+this.serializeParams(t),this.buildAuth())},t.prototype.getAll=function(e){return this.httpCliente.get(this.getUrl(this.urlComponente)+(e?this.serializeParams(e):""),this.buildAuth())},t.prototype.get=function(e){return this.httpCliente.get(this.getUrl(this.urlComponente)+"/"+e,this.buildAuth())},t.prototype.save=function(e){return this.httpCliente.post(this.getUrl(this.urlComponente),e,this.buildAuth())},t.prototype.update=function(e){return this.httpCliente.put(this.getUrl(this.urlComponente)+"/"+e.id,e,this.buildAuth())},t.prototype.delete=function(e){return this.httpCliente.delete(this.getUrl(this.urlComponente)+"/"+e,this.buildAuth())},t}(Y),Q=function(e){function o(t){var n=e.call(this,t,"cuentaContable")||this;return n.httpClient=t,n}return J(o,e),o.prototype.obtieneCuentasContablesRecursivo=function(){return this.httpClient.get(this.getUrl("cuentaContable")+"/obtieneCuentasContablesRecursivo",this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K);function X(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th",8),t.ɵɵtext(2,"Cuenta contable"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"th",8),t.ɵɵtext(4,"Descripción"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"th",9),t.ɵɵtext(6,"Naturaleza"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"th",10),t.ɵɵtext(8,"Tipo"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"th",11),t.ɵɵtext(10,"Acciones"),t.ɵɵelementEnd(),t.ɵɵelementEnd())}function ee(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",19),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(o);var e=t.ɵɵnextContext().rowData;return t.ɵɵnextContext().selectCuentaContable(e)})),t.ɵɵelementEnd()}}function te(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",19),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(o);var e=t.ɵɵnextContext().rowData;return t.ɵɵnextContext().selectCuentaContable(e)})),t.ɵɵelementEnd()}}function ne(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td",12),t.ɵɵelement(2,"p-treeTableToggler",13),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"td",12),t.ɵɵtext(5),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"td",14),t.ɵɵtext(7),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"td",15),t.ɵɵtext(9),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"td",16),t.ɵɵelementStart(11,"div",17),t.ɵɵtemplate(12,ee,1,0,"button",18),t.ɵɵtemplate(13,te,1,0,"button",18),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit,r=n.rowData,i=t.ɵɵnextContext();t.ɵɵadvance(2),t.ɵɵproperty("rowNode",o),t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",r.cuentaContable," "),t.ɵɵadvance(2),t.ɵɵtextInterpolate1(" ",r.descripcion," "),t.ɵɵadvance(2),t.ɵɵtextInterpolate1(" ",r.naturaleza," "),t.ɵɵadvance(2),t.ɵɵtextInterpolate1(" ",r.tipo," "),t.ɵɵadvance(3),t.ɵɵproperty("ngIf",1==i.typeAccount&&r.cuentaRegistro),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",2==i.typeAccount&&!r.cuentaRegistro)}}var oe=function(){return{width:"100%"}},re=function(){function e(e){this._cuentaContableService=e,this.cuentasContables=[],this.maxH=720,this.query="",this.tempAccounts=[],this.evSelectedAccount=new t.EventEmitter}return e.prototype.ngOnInit=function(){this.maxH=window.innerHeight-320,this.obtenerCuentasContablesRecursivo()},e.prototype.obtenerCuentasContablesRecursivo=function(){var e=this;this._cuentaContableService.obtieneCuentasContablesRecursivo().subscribe((function(t){t&&(e.cuentasContables=t,e.sortAccounts())}))},e.prototype.sortAccounts=function(){var e,t;this.cuentasContables.sort((function(e,t){var n=e.data.cuentaContable.split("."),o=t.data.cuentaContable.split(".");if(n.length>0&&o.length>0){if(n.length===o.length){for(var r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 0}if(n.length<o.length){for(r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return-1}if(o.length<n.length){for(r=0;r<o.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 1}}return 0}));try{for(var n=G(this.cuentasContables),o=n.next();!o.done;o=n.next()){var r=o.value;r.children&&this.sortItem(r)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.tempAccounts=this.cuentasContables},e.prototype.sortItem=function(e){var t,n;e.children.sort((function(e,t){var n=e.data.cuentaContable.split("."),o=t.data.cuentaContable.split(".");if(n.length>0&&o.length>0){if(n.length===o.length){for(var r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 0}if(n.length<o.length){for(r=0;r<n.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return-1}if(o.length<n.length){for(r=0;r<o.length;r++){if(parseInt(n[r])>parseInt(o[r]))return 1;if(parseInt(n[r])<parseInt(o[r]))return-1}return 1}}return 0}));try{for(var o=G(e.children),r=o.next();!r.done;r=o.next()){var i=r.value;this.sortItem(i)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.selectCuentaContable=function(e){this.evSelectedAccount.emit(e)},e.prototype.filterAccounts=function(e){if(e)this.cuentasContables=this.browseAccount(this.tempAccounts);else{var t=this.resetAccount();this.cuentasContables=t}},e.prototype.resetAccount=function(){var e,t;this.query="";var n=[];try{for(var o=G(this.tempAccounts),r=o.next();!r.done;r=o.next()){var i=r.value;n.push(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return n},e.prototype.browseAccount=function(e){var t,n,o=[];if(""!==this.query){try{for(var r=G(e),i=r.next();!i.done;i=r.next()){var a=i.value;o=a.data.cuentaContable.toString().toLowerCase().includes(this.query.toLowerCase())||a.data.descripcion.toString().toLowerCase().includes(this.query.toLowerCase())?o.concat({data:a.data,children:this.browseAccount(a.children)}):o.concat(this.browseAccount(a.children))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o}var l=this.resetAccount();this.cuentasContables=l},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(Q))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["lib-cclista"]],inputs:{isShared:"isShared",typeAccount:"typeAccount"},outputs:{evSelectedAccount:"evSelectedAccount"},decls:8,vars:8,consts:[[1,"ui-g","ui-fluid"],[1,"ui-g-12"],[1,"ui-inputgroup"],["type","text","pInputText","","placeholder","Cuenta o descripción",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(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelementStart(3,"input",3),t.ɵɵlistener("ngModelChange",(function(e){return n.query=e}))("keyup",(function(e){return n.filterAccounts(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"div",4),t.ɵɵelementStart(5,"p-treeTable",5),t.ɵɵtemplate(6,X,11,0,"ng-template",6),t.ɵɵtemplate(7,ne,14,7,"ng-template",7),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(3),t.ɵɵproperty("ngModel",n.query),t.ɵɵadvance(2),t.ɵɵstyleMap(t.ɵɵpureFunction0(7,oe)),t.ɵɵproperty("value",n.cuentasContables?n.cuentasContables:n.tempAccounts)("scrollable",!0)("scrollHeight",n.maxH+"px")("resizableColumns",!0))},directives:[o.DefaultValueAccessor,r.InputText,o.NgControlStatus,o.NgModel,i.TreeTable,a.PrimeTemplate,i.TreeTableToggler,l.NgIf,s.ButtonDirective],styles:[""]}),e}(),ie=["dialog"],ae=function(e){return{width:e,"min-width":"200px"}},le=function(e){return{height:e}},se=function(){function e(){this.cuentasContables=[],this.maxH=720,this.maxW=0,this.flagModal=!0,this.size=350,this.maxH=window.innerHeight-370,this.maxW=window.innerWidth,this.size=this.maxW-50,this.evSelectedAccount=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.getAccount=function(e){this.evSelectedAccount.emit(e)},e.prototype.hiddenDialog=function(e){this.evSelectedAccount.emit(null)},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["lib-ccseleccion-dialog"]],viewQuery:function(e,n){var o;(1&e&&t.ɵɵstaticViewQuery(ie,!0),2&e)&&(t.ɵɵqueryRefresh(o=t.ɵɵloadQuery())&&(n.dialog=o.first))},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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.displayShowCuentas=e}))("onHide",(function(e){return n.hiddenDialog(e)})),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"lib-cclista",2),t.ɵɵlistener("evSelectedAccount",(function(e){return n.getAccount(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(13,ae,n.size+"px")),t.ɵɵproperty("visible",n.displayShowCuentas)("modal",!0)("minY",70)("baseZIndex",1e4)("blockScroll",!0)("draggable",!1)("blockScroll",!0)("maximizable",!0),t.ɵɵadvance(1),t.ɵɵproperty("ngStyle",t.ɵɵpureFunction1(15,le,n.maxH+200+"px")),t.ɵɵadvance(1),t.ɵɵproperty("isShared",!0)("typeAccount",n.tipoCuenta))},directives:[c.Dialog,l.NgStyle,re],styles:[""]}),e}(),ce=function(){function e(){this.modal=new t.EventEmitter}return e.prototype.showModal=function(){this.modal.emit(!0)},e.ɵfac=function(t){return new(t||e)},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),ue=function(){function e(){this._loading=!1,this.loadingStatus=new u.Subject}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.loadingStatus.next(e)},enumerable:!0,configurable:!0}),e.prototype.startLoading=function(){this.loading=!0},e.prototype.stopLoading=function(){this.loading=!1},e.ɵfac=function(t){return new(t||e)},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),pe=function(){function e(e,t,n){this.loginModalService=e,this.toastrService=t,this.loadingScreenService=n}return e.prototype.intercept=function(e,t){var n=this;return this.loadingScreenService.startLoading(),t.handle(e).pipe(p.catchError((function(e,t){return n.loadingScreenService.stopLoading(),n.handleError(e),u.throwError(e)})),p.tap((function(e){var t=e.body?e.body:null;if(0!==e.type&&4===e.type&&n.loadingScreenService.stopLoading(),t){var o=t.success?t.success:null;o&&n.toastrService.success(o,"Exito",{timeOut:3e3,closeButton:!0})}})))},e.prototype.handleError=function(e){return 401===e.status||403===e.status?(401===e.status&&this.loginModalService.showModal(),403===e.status&&this.toastrService.error("No tiene permiso sobre esta accion","Error",{timeOut:5e3}),u.of(e.message)):(401!==e.status&&403!==e.status&&409!==e.status&&this.toastrService.error("Ocurrio un error al procesar su solicitud","Error",{timeOut:5e3}),this.readError(e),u.of(e))},e.prototype.readError=function(e){if(e.error&&(e.error.error&&e.error.error.message&&this.toastrService.error(e.error.error.message,"Error",{timeOut:3e3}),e.error.message&&this.toastrService.error(e.error.message,"Error",{timeOut:3e3}),e.error._errors&&Array.isArray(e.error._errors)))for(var t=0;t<e.error._errors.length;t++)this.toastrService.error(e.error._errors[t].message,"Error",{timeOut:3e3,closeButton:!0})},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(ce),t.ɵɵinject(d.ToastrService),t.ɵɵinject(ue))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac}),e}(),de=function(){function e(){}return e.prototype.ngOnInit=function(){},e.ɵfac=function(t){return new(t||e)},e.ɵcmp=t.ɵɵdefineComponent({type:e,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(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelementStart(3,"div",3),t.ɵɵelementStart(4,"div",4),t.ɵɵtext(5," Error 404 "),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"div",5),t.ɵɵelementStart(7,"p"),t.ɵɵtext(8,"La pagina solicitada no fue encontrada"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd())},styles:[".error[_ngcontent-%COMP%]{font-size:70px}"]}),e}(),me=function(){function e(){this.loading=new t.EventEmitter}return e.prototype.setLoading=function(e){e?this.start():this.stop()},e.prototype.start=function(){this.loading.emit(!0)},e.prototype.stop=function(){this.loading.emit(!1)},e.ɵfac=function(t){return new(t||e)},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),fe=function(){function e(e){var t=this;this.loadingService=e,this.visible=!1,this.logo_loading="assets/img/logo_visorus_loading.png",this.loadingService.loading.subscribe((function(e){e&&!t.visible?($("#modal_loading").modal("show"),t.visible=!0):(setTimeout((function(){$("#modal_loading").modal("hide")}),650),t.visible=!1)}))}return e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(me))},e.ɵcmp=t.ɵɵdefineComponent({type:e,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(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelementStart(3,"div",3),t.ɵɵelementStart(4,"div",4),t.ɵɵelementStart(5,"div",5),t.ɵɵelementStart(6,"div",6),t.ɵɵelement(7,"span",7),t.ɵɵelement(8,"span",7),t.ɵɵelementStart(9,"div",8),t.ɵɵelement(10,"img",9),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"span",10),t.ɵɵtext(12),t.ɵɵpipe(13,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(10),t.ɵɵpropertyInterpolate("src",n.logo_loading,t.ɵɵsanitizeUrl),t.ɵɵadvance(2),t.ɵɵtextInterpolate1("",t.ɵɵpipeBind1(13,2,"cargando"),"..."))},pipes:[m.TranslatePipe],styles:['.loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]::after, .loader[_ngcontent-%COMP%]::before{content:"";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:.2s}.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%]::after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]::before{display:inline-block;font: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:1.1s linear infinite a}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1)::after{content:"\\f13c";animation:1.3s linear infinite b}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2)::before{content:"\\f121";font-size:25px;animation:.9s linear infinite c}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2)::after{content:"\\f19a ";animation:.7s linear infinite d}.loader.amit[_ngcontent-%COMP%]::after, .loader.amit[_ngcontent-%COMP%]::before{transform:scale(1)}@keyframes a{0%{transform:translate(30px,0) rotate(30deg);opacity:0}100%{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px,0) rotate(-40deg);opacity:0}100%{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px,0) rotate(10deg);opacity:0}100%{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px,0) rotate(-50deg);opacity:0}100%{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}']}),e}(),he=function(){function e(e,t,n,o){var r=this;this.loadingScreenService=e,this._elmRef=t,this._changeDetectorRef=n,this.loadingService=o,this.debounceTime=250,this.loading=!1,this.logo_loading="assets/img/logo_visorus_loading.png",this.loadingService.loading.subscribe((function(e){r._elmRef.nativeElement.style.display=e?"block":"none"}))}return e.prototype.ngAfterViewInit=function(){var e=this;this._elmRef.nativeElement.style.display="none",this.loadingSubscription=this.loadingScreenService.loadingStatus.pipe(f.debounceTime(this.debounceTime)).subscribe((function(t){e._elmRef.nativeElement.style.display=t?"block":"none",e._changeDetectorRef.detectChanges()}))},e.prototype.ngOnDestroy=function(){this.loadingSubscription.unsubscribe()},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(ue),t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(me))},e.ɵcmp=t.ɵɵdefineComponent({type:e,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(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelement(3,"div",3),t.ɵɵelement(4,"div",4),t.ɵɵelement(5,"div",4),t.ɵɵelement(6,"div",4),t.ɵɵelement(7,"div",4),t.ɵɵelement(8,"div",4),t.ɵɵelement(9,"div",4),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd())},styles:[".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:rgba(0,0,0,.384);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:3.4s linear infinite blob-grow;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:3.4s ease-out infinite blobs;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%,99%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}100%{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,100%,39%,92%{transform:scale(0) translate(-50%,-50%)}40%,42%,90%,91%{transform:scale(1,.9) translate(-50%,-50%)}43%,44%,86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%,84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%,82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%,80%,81%{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%)}}"]}),e}(),ge=function(){function e(){this.visible=new t.EventEmitter,this.print=new t.EventEmitter}return e.prototype.pdf_generate=function(e){this.base_64=e,this.visible.emit(!0)},e.prototype.generate_print=function(e){this.html=e,this.print.emit(!0)},e.ɵfac=function(t){return new(t||e)},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),ve=function(){function e(e,t){this._toastrService=e,this.translate=t}return e.prototype.addFile=function(e,t){var n=this;void 0===t&&(t=!0);var o=e.target.files[0],r={id:null,nombre:"",contentType:"",orden:0,archivo:""};r.nombre=o.name,r.tipo=o.type;var i=new FileReader;return i.readAsDataURL(o),i.onload=function(){r.archivo=i.result,n.translate.get(["msgSuccess","titleFile"]).subscribe((function(e){t&&n._toastrService.success(e.msgSuccess,e.titleFile)}))},i.onerror=function(e){n.translate.get(["msgError","titleFile"]).subscribe((function(e){t&&n._toastrService.error(e.msgError,e.titleFile)}))},r},e.prototype.base64ToBlob=function(e,t){for(var n=atob(e),o=new Array(n.length),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);var i=new Uint8Array(o);return new Blob([i],{type:t})},e.prototype.blobToDowload=function(e,t,n){var o=document.createElement("a");o.download=n,o.href=window.URL.createObjectURL(e),o.dataset.downloadurl=[t,o.download,o.href].join(":"),o.click()},e.prototype.base64ToFileDowload=function(e,t,n){this.blobToDowload(this.base64ToBlob(e,t),t,n)},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(d.ToastrService),t.ɵɵinject(m.TranslateService))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}();function be(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",2),t.ɵɵelement(1,"iframe",3),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵproperty("src",o.domSanitizer.bypassSecurityTrustResourceUrl("data:application/pdf;base64,"+o.pdfBase64),t.ɵɵsanitizeResourceUrl)}}var Se=function(e){return{width:e,"min-width":"200px"}},ye=function(){return{overflow:"visible"}},xe=function(){function e(e,t,n){var o=this;this._pdfModalService=e,this.fileService=t,this.domSanitizer=n,this.display=!1,this.pdfBase64=null,this.size=840,e.visible.subscribe((function(t){e.base_64&&(o.display=t,o.pdfBase64=e.base_64)})),e.print.subscribe((function(e){o.display=e,setTimeout((function(){document.getElementById("_modal_pdf").innerHTML="<iframe id='printf' width='100%' height='100%' ></iframe>"}),20),setTimeout((function(){o.imprimir()}),40)}))}return e.prototype.imprimir=function(){var e=window.frames.printf;e.contentWindow.head.innerHTML=' <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">\n <style>\n .table-hover tbody tr:hover {\n color: #ffffff;\n background-color: rgb(92, 180, 234);\n }\n .tr-select{\n color: #ffffff;\n background-color: rgb(92, 180, 234);\n }\n .td-header{\n background: #f3f3f3;\n color: #0d385d;\n border-color: 1px solid #0b4b87;\n }\n .td-yellow{\n background: #fff6d3;\n }\n .td-blue{\n background: #88d1ea;\n }\n .td-green{\n background: #b9d2a0;\n }\n </style>',e.contentWindow.body.innerHTML=this._pdfModalService.html},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(ge),t.ɵɵdirectiveInject(ve),t.ɵɵdirectiveInject(h.DomSanitizer))},e.ɵcmp=t.ɵɵdefineComponent({type:e,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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.display=e})),t.ɵɵtemplate(1,be,2,1,"div",1),t.ɵɵelementEnd()),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(12,Se,n.size+"px")),t.ɵɵproperty("visible",n.display)("modal",!0)("minY",70)("baseZIndex",1e4)("blockScroll",!0)("blockScroll",!0)("maximizable",!0)("breakpoint",840)("contentStyle",t.ɵɵpureFunction0(14,ye)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.pdfBase64))},directives:[c.Dialog,l.NgIf],styles:[".down[_ngcontent-%COMP%]{display:block}"]}),e}(),Ce=function(){},we=function(){},Ee=function(){function e(e,n){this.httpClient=e,this.loadingService=n,this.url_host="",this.login=new t.EventEmitter,this.seleccionEmpresa=new t.EventEmitter,this.auth=new we}return e.prototype.setlogin=function(e,t){localStorage.setItem("lang","es");var n=JSON.parse(localStorage.getItem("config"));return n&&n.url&&(this.url_host=n.url),this.httpClient.post(this.url_host+"/login"+(t?"/"+t:""),e)},e.prototype.startAuth=function(e){this.auth=e,this.login.emit(this.auth)},e.prototype.isLogin=function(){return null!==localStorage.getItem("usuario")},e.prototype.quitarUsuario=function(){localStorage.removeItem("usuario"),this.auth.login=!1,this.login.emit(this.auth)},e.prototype.verificaLogin=function(){var e=this;this.usuario=this.getUser(),this.usuario.access_token?this.getDetalsUser().subscribe((function(t){e.auth.usuarioDetalles=t,e.auth.login=!0,e.login.emit(e.auth)}),(function(t){e.quitarUsuario()})):(this.auth.usuarioDetalles=null,this.auth.login=!1,this.login.emit(this.auth))},e.prototype.loginOut=function(){this.quitarEmpresaAdministrativa().subscribe((function(e){localStorage.removeItem("usuario")}),(function(e){localStorage.removeItem("usuario")})),localStorage.setItem("lang","es"),this.auth.login=!1,this.login.emit(this.auth)},e.prototype.getUser=function(){if(this.usuario=new Ce,this.isLogin()){var e=localStorage.getItem("usuario");return e&&(this.usuario=JSON.parse(e)),this.usuario}return this.usuario},e.prototype.getLang=function(){var e=localStorage.getItem("lang");return e||"es"},e.prototype.selectEmpresa=function(e){this.seleccionEmpresa.emit(e)},e.prototype.quitarEmpresaAdministrativa=function(){var e,t="",o="";(e=JSON.parse(localStorage.getItem("usuario")))&&(t=e.token_type,o=e.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:t+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.post(this.url_host+"/usuario/setEmpresa",{id:0},r)},e.prototype.setEmpresa=function(e){var t,o="",r="";(t=JSON.parse(localStorage.getItem("usuario")))&&(o=t.token_type,r=t.access_token);var i={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:o+" "+r})},a=JSON.parse(localStorage.getItem("config"));return a&&a.url&&(this.url_host=a.url),this.httpClient.post(this.url_host+"/usuario/setEmpresa",e,i)},e.prototype.setModulo=function(e){var t,o="",r="";(t=JSON.parse(localStorage.getItem("usuario")))&&(o=t.token_type,r=t.access_token);var i={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:o+" "+r})},a=JSON.parse(localStorage.getItem("config"));return a&&a.url&&(this.url_host=a.url),this.httpClient.post(this.url_host+"/usuario/setModulo",e,i)},e.prototype.quitarModulo=function(){var e,t="",o="";(e=JSON.parse(localStorage.getItem("usuario")))&&(t=e.token_type,o=e.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:t+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.post(this.url_host+"/usuario/setModulo",{id:0},r)},e.prototype.getDetalsUser=function(){var e,t="",o="";(e=JSON.parse(localStorage.getItem("usuario")))&&(t=e.token_type,o=e.access_token);var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:t+" "+o})},i=JSON.parse(localStorage.getItem("config"));return i&&i.url&&(this.url_host=i.url),this.httpClient.get(this.url_host+"/usuario/obtieneUsuarioActual",r)},e.ɵfac=function(o){return new(o||e)(t.ɵɵinject(n.HttpClient),t.ɵɵinject(me))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}();function Ie(e,n){1&e&&(t.ɵɵelementStart(0,"label",19),t.ɵɵtext(1),t.ɵɵpipe(2,"translate"),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,"Usuario.errorLogin")))}function Me(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",7),t.ɵɵelementStart(1,"div",8),t.ɵɵelementStart(2,"form",9,10),t.ɵɵlistener("ngSubmit",(function(){t.ɵɵrestoreView(o);var e=t.ɵɵreference(3);return t.ɵɵnextContext().entrar(e)})),t.ɵɵtemplate(4,Ie,3,3,"label",11),t.ɵɵelementStart(5,"div",12),t.ɵɵelementStart(6,"label",13),t.ɵɵtext(7),t.ɵɵpipe(8,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"input",14,15),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().user.username=e})),t.ɵɵpipe(11,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"div",12),t.ɵɵelementStart(13,"label",16),t.ɵɵtext(14),t.ɵɵpipe(15,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"input",17),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().user.password=e})),t.ɵɵpipe(17,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(18,"button",18),t.ɵɵtext(19,"entrar"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext();t.ɵɵadvance(4),t.ɵɵproperty("ngIf",r.error),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(8,7,"Usuario.username")),t.ɵɵadvance(2),t.ɵɵpropertyInterpolate("placeholder",t.ɵɵpipeBind1(11,9,"Usuario.username")),t.ɵɵproperty("ngModel",r.user.username),t.ɵɵadvance(5),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(15,11,"Usuario.password")),t.ɵɵadvance(2),t.ɵɵpropertyInterpolate("placeholder",t.ɵɵpipeBind1(17,13,"Usuario.password")),t.ɵɵproperty("ngModel",r.user.password)}}function Ae(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",22),t.ɵɵelementStart(1,"div",23),t.ɵɵelementStart(2,"div",24),t.ɵɵelementStart(3,"h5"),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(4),t.ɵɵtextInterpolate1(" ",o.nombre," ")}}function ke(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",7),t.ɵɵelementStart(1,"div",20),t.ɵɵelementStart(2,"h4"),t.ɵɵtext(3,"Selecciona la empresa"),t.ɵɵelementEnd(),t.ɵɵelement(4,"hr"),t.ɵɵelementEnd(),t.ɵɵtemplate(5,Ae,5,1,"div",21),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext();t.ɵɵadvance(5),t.ɵɵproperty("ngForOf",o.empresas)}}var je=function(){function e(e,t){var n=this;this.loginModalService=e,this.authService=t,this.modal=!1,this.user={username:void 0,password:void 0},this.error=!1,this.empresas=[],this.loginModalService.modal.subscribe((function(e){$("#modalLogin").modal("show"),n.user={username:void 0,password:void 0},n.empresas=[]}))}return e.prototype.entrar=function(e){var t=this;if(e.valid){this.user.key="";var n=this.user.password.split("_");if(n.length>1){this.user.key=n[0],this.user.password="";for(var o=1;o<n.length;o++)this.user.password+=n[o]}this.authService.setlogin(this.user,this.user.key).subscribe((function(e){localStorage.setItem("usuario",JSON.stringify(e));var n=e;t.authService.getDetalsUser().subscribe((function(e){e.empresa||(t.empresas=e.empresas,1==t.empresas.length&&t.entrarEmpresa(t.empresas[0]));var o={login:!0};o.usuario=n,o.usuarioDetalles=e,t.authService.startAuth(o),t.error=!1,$("#modalLogin").modal("hide")}))}),(function(e){t.error=!0}))}},e.prototype.entrarEmpresa=function(e){this.authService.setEmpresa(e).subscribe((function(e){$("#modalLogin").modal("hide")}))},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(ce),t.ɵɵdirectiveInject(Ee))},e.ɵcmp=t.ɵɵdefineComponent({type:e,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(e,n){1&e&&(t.ɵɵelementStart(0,"div",0),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelementStart(3,"div",3),t.ɵɵelementStart(4,"div",4),t.ɵɵelement(5,"img",5),t.ɵɵelementEnd(),t.ɵɵtemplate(6,Me,20,15,"div",6),t.ɵɵtemplate(7,ke,6,1,"div",6),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(6),t.ɵɵproperty("ngIf",0==n.empresas.length),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.empresas.length))},directives:[l.NgIf,o.ɵangular_packages_forms_forms_y,o.NgControlStatusGroup,o.NgForm,o.DefaultValueAccessor,o.RequiredValidator,o.NgControlStatus,o.NgModel,m.TranslateDirective,l.NgForOf],pipes:[m.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}"]}),e}(),Pe=function(e){function o(t){var n=e.call(this,t,"sessionCaja")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K);function _e(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",7),t.ɵɵelementStart(1,"label",8),t.ɵɵtext(2,"Nombre de caja: "),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"input",9),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().caja.nombre=e})),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext();t.ɵɵadvance(3),t.ɵɵproperty("ngModel",r.caja.nombre)("disabled",!0)}}function Oe(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",10),t.ɵɵelementStart(1,"div",11),t.ɵɵelementStart(2,"label",12),t.ɵɵtext(3,"Saldo: "),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"input",13),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().session.monto=e})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",11),t.ɵɵelementStart(6,"label",14),t.ɵɵtext(7,"Numero Z:"),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"input",15),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().session.z=e})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext();t.ɵɵadvance(4),t.ɵɵproperty("ngModel",r.session.monto)("disabled",r.editMode),t.ɵɵadvance(4),t.ɵɵproperty("ngModel",r.session.z)("disabled",!0)}}function Te(e,n){1&e&&(t.ɵɵelementStart(0,"div",10),t.ɵɵtext(1," Este agente no esta asignado a una caja "),t.ɵɵelementEnd())}function De(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",16),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(o),t.ɵɵnextContext().save()})),t.ɵɵtext(1,"Guardar"),t.ɵɵelementEnd()}}function He(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",17),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(o),t.ɵɵnextContext().edit()})),t.ɵɵtext(1,"Cerrar session"),t.ɵɵelementEnd()}}var Fe=function(){return{width:"750px"}},Be=function(){function e(e){this.sessionCajaService=e,this.showCreateSession=!1,this.caja={},this.sessionEdit=null,this.status=new t.EventEmitter,this.success=new t.EventEmitter,this.session={inicio:(new Date).getTime(),termino:null,monedaDenominacionList:[]},this.flagModal=!0,this.labels={title:"Crear nueva session de caja"},this.resp={},this.editMode=!1}return e.prototype.ngOnInit=function(){console.log("denominacionList",this.monedaDenominacionList)},e.prototype.setSession=function(){this.sessionEdit?(this.session=this.sessionEdit,this.session.monedaDenominacionList=this.monedaDenominacionList,this.session.movimientosCaja&&(this.session.monto=this.session.movimientosCaja[0].monto),this.labels={title:"Cerrar session"},this.editMode=!0):this.caja&&(this.labels.title="Crear nueva session de caja",this.session.caja=this.caja,this.session.z=this.caja.z)},e.prototype.closeModal=function(){this.session={},this.editMode=!1,this.status.emit({status:!1})},e.prototype.save=function(){return Z(this,void 0,void 0,(function(){var e;return W(this,(function(t){switch(t.label){case 0:return e=this,[4,this.sessionCajaService.save(this.session).toPromise()];case 1:return e.resp=t.sent()||null,this.resp?(this.session={},this.editMode=!1,this.status.emit({status:!1,save:this.resp.data}),this.success.emit(!0)):this.success.emit(!1),[2]}}))}))},e.prototype.edit=function(){return Z(this,void 0,void 0,(function(){var e;return W(this,(function(t){switch(t.label){case 0:return console.log("EDIT",this.session),e=this,[4,this.sessionCajaService.update(this.session).toPromise()];case 1:return e.resp=t.sent()||null,this.resp&&(this.session={},this.editMode=!1,this.status.emit({status:!1,update:this.resp.data})),[2]}}))}))},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(Pe))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["session-create"]],inputs:{showCreateSession:"showCreateSession",caja:"caja",monedaDenominacionList:"monedaDenominacionList",sessionEdit:"sessionEdit"},outputs:{status:"status",success:"success"},decls:12,vars:13,consts:[[3,"visible","modal","closeOnEscape","closable","responsive","contentStyle","visibleChange","onHide","onShow"],[1,"text-primary"],["class","form-group",4,"ngIf"],["class","row",4,"ngIf"],["class","btn btn-sm btn-primary",3,"click",4,"ngIf"],["class","btn btn-sm btn-success",3,"click",4,"ngIf"],[1,"btn","btn-sm","btn-danger",3,"click"],[1,"form-group"],["for","nombreCaja"],["type","text",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"row"],[1,"col-sm-6"],["for","saldoCaja"],["type","number","minlength","1","maxlength","1000000",1,"form-control",3,"ngModel","disabled","ngModelChange"],["for","Numero Z"],["type","number",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"btn","btn-sm","btn-primary",3,"click"],[1,"btn","btn-sm","btn-success",3,"click"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.showCreateSession=e}))("onHide",(function(){return n.closeModal()}))("onShow",(function(){return n.setSession()})),t.ɵɵelementStart(1,"p-header"),t.ɵɵelementStart(2,"a",1),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(4,_e,4,2,"div",2),t.ɵɵtemplate(5,Oe,9,4,"div",3),t.ɵɵtemplate(6,Te,2,0,"div",3),t.ɵɵelementStart(7,"p-footer"),t.ɵɵtemplate(8,De,2,0,"button",4),t.ɵɵtemplate(9,He,2,0,"button",5),t.ɵɵelementStart(10,"button",6),t.ɵɵlistener("click",(function(){return n.closeModal()})),t.ɵɵtext(11,"Cancelar"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("visible",n.showCreateSession)("modal",n.flagModal)("closeOnEscape",n.flagModal)("closable",n.flagModal)("responsive",n.flagModal)("contentStyle",t.ɵɵpureFunction0(12,Fe)),t.ɵɵadvance(3),t.ɵɵtextInterpolate1("",n.labels.title,": "),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.caja),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.caja),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!n.caja),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",!n.editMode&&n.caja),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.editMode&&n.caja))},directives:[c.Dialog,a.Header,l.NgIf,a.Footer,o.DefaultValueAccessor,o.NgControlStatus,o.NgModel,o.NumberValueAccessor,o.MinLengthValidator,o.MaxLengthValidator],styles:[""]}),e}(),Ue=function(){},ze=function(){this.datoPersona=new Ue,this.contactos=[],this.datoDirecciones=[]},qe=function(){this.representanteLegal=new ze,this.contactos=[],this.datoDirecciones=[]},Re=function(){this.personaFisica=new ze},Le=function(){this.agenteCobrador=new Re,this.agenteVendedor=new Re,this.personaFisica=new ze,this.personaMoral=new qe},Ne=function(e){function o(t){return e.call(this,t,"/cliente")||this}return J(o,e),o.prototype.validar_archivos_bss=function(e){return this.getHttp().get(this.getUrl("/cliente/validarClienteBss/")+e,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Ve=function(){function e(e){this.translate=e}return e.prototype.getPage=function(){return{rows:25,total:void 0,offset:0,filtro:void 0,sort:void 0}},e.prototype.getParams=function(e){return[{param:"offset",value:e.offset},{param:"max",value:e.rows},{param:"filter",value:e.filtro},{param:"sort",value:e.sort}]},e.prototype.getOrden=function(e,t){t&&this.translate.setDefaultLang(t);for(var n,o=[],r=[],i=0;i<e.length;i++)o.push({label:"...",value:e[i].label}),r.push(e[i].param);return r.length>0&&this.translate.get(r).subscribe((function(e){n=e;var t=Object.values(n),r=0;o.forEach((function(e){e.label=""+t[r],r++}))}),(function(e){})),o},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(m.TranslateService))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}();function $e(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th"),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"th"),t.ɵɵtext(5),t.ɵɵpipe(6,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"th"),t.ɵɵtext(8),t.ɵɵpipe(9,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"th"),t.ɵɵtext(11),t.ɵɵpipe(12,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"th"),t.ɵɵtext(14),t.ɵɵpipe(15,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"th"),t.ɵɵtext(17),t.ɵɵpipe(18,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,6,"clave")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(6,8,"razonSocial")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(9,10,"tipo")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(12,12,"Cliente.limiteCredito")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(15,14,"Cliente.plazoCredito")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(18,16,"Cliente.diasPago")))}function Je(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1),t.ɵɵpipe(2,"translate"),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,"fisico")))}function Ze(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1),t.ɵɵpipe(2,"translate"),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,"moral")))}function We(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr",13),t.ɵɵelementStart(1,"td"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"td"),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td"),t.ɵɵtemplate(6,Je,3,3,"span",14),t.ɵɵtemplate(7,Ze,3,3,"span",14),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"td"),t.ɵɵtext(9),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"td"),t.ɵɵtext(11),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"td"),t.ɵɵtext(13),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵproperty("pSelectableRow",o),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.codigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.descripcionRazonSocial),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",o.personaFisica),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.personaMoral),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.limiteCredito),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.plazoCredito),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.diasPago)}}function Ge(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td",15),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,1,"general.noRegistros")))}var Ye=function(){function e(e,n){this.clienteService=e,this.paginate=n,this.selectMode="single",this.select=new t.EventEmitter,this.ordenar=[],this.loading=!0}return e.prototype.ngOnInit=function(){this.page=this.paginate.getPage(),this.page.rows=20,this.clientes=[],this.ordenar=this.paginate.getOrden([{param:"razonZocial",label:"razonZocial"}],"es")},e.prototype.cargarDatosClientes=function(e){var t=this;void 0===e&&(e=null),this.loading=!0,e&&(this.page.rows=e.rows,this.page.offset=e.first),this.clientes=[],this.params=this.paginate.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.page.filtro&&""!==this.page.filtro.trim()&&this.params.push({param:"filtroGeneral",value:this.page.filtro.trim()}),this.clienteService.getAll(this.params).subscribe((function(e){t.page.total=e.total,t.clientes=e.data,t.loading=!1}),(function(e){console.error("Error al cargar clientes:",e),t.loading=!1}))},e.prototype.aplicarFiltro=function(){this.page.offset=0,this.cargarDatosClientes()},e.prototype.seleccionaCliente=function(e){console.log("Fila seleccionada (evento):",e),console.log("Datos de la fila (e.data):",e.data),console.log("Cliente seleccionado ANTES de emitir:",this.clienteSeleccionado),this.select.emit(e.data),this.visible=!1,console.log("Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):",this.clienteSeleccionado)},e.prototype.cerrar=function(){this.select.emit(null),this.visible=!1},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(Ne),t.ɵɵdirectiveInject(Ve))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["select-cliente"]],inputs:{clienteSeleccionado:"clienteSeleccionado",selectMode:"selectMode",visible:"visible"},outputs:{select:"select"},decls:16,vars:17,consts:[[3,"header","visible","visibleChange","onHide","onShow"],[1,"row"],[1,"col-12","mb-3"],[1,"input-group","mt-3"],[1,"ui-inputgroup"],["type","text","name","filtro",1,"form-control",3,"placeholder","ngModel","ngModelChange","keyup"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search"],[1,"col-lg-12"],["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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.visible=e}))("onHide",(function(){return n.cerrar()}))("onShow",(function(){return n.cargarDatosClientes()})),t.ɵɵpipe(1,"translate"),t.ɵɵelementStart(2,"div",1),t.ɵɵelementStart(3,"div",2),t.ɵɵelementStart(4,"div",3),t.ɵɵelementStart(5,"div",4),t.ɵɵelementStart(6,"input",5),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("keyup",(function(){return n.aplicarFiltro()})),t.ɵɵpipe(7,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"button",6),t.ɵɵlistener("click",(function(){return n.aplicarFiltro()})),t.ɵɵelement(9,"i",7),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"div",1),t.ɵɵelementStart(11,"div",8),t.ɵɵelementStart(12,"p-table",9),t.ɵɵlistener("onLazyLoad",(function(e){return n.cargarDatosClientes(e)}))("selectionChange",(function(e){return n.clienteSeleccionado=e}))("onRowSelect",(function(e){return n.seleccionaCliente(e)})),t.ɵɵtemplate(13,$e,19,18,"ng-template",10),t.ɵɵtemplate(14,We,14,8,"ng-template",11),t.ɵɵtemplate(15,Ge,4,3,"ng-template",12),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,13,"Seleccionar cliente ")),t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(6),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(7,15,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(6),t.ɵɵpropertyInterpolate("selectionMode",n.selectMode),t.ɵɵproperty("value",n.clientes)("lazy",!0)("paginator",!0)("rows",n.page.rows)("totalRecords",n.page.total)("selection",n.clienteSeleccionado)("scrollable",!0)("loading",n.loading))},directives:[c.Dialog,o.DefaultValueAccessor,o.NgControlStatus,o.NgModel,g.Table,a.PrimeTemplate,g.SelectableRow,l.NgIf],pipes:[m.TranslatePipe],encapsulation:2}),e}(),Ke=function(){},Qe=function(){this.personaMoral=new qe,this.catalogoTipo=new Ke,this.clasificadorTipo=new Ke,this.personaFisica=new ze},Xe=function(e){function o(t){var n=e.call(this,t,"/proveedor")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K);function et(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th"),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"th"),t.ɵɵtext(5),t.ɵɵpipe(6,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"th"),t.ɵɵtext(8),t.ɵɵpipe(9,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,3,"clave")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(6,5,"razonSocial")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(9,7,"rfc")))}function tt(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"td"),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td"),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.rowData;t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.codigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.descripcionRazonSocial),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.descripcionRfc)}}var nt=function(){return[10,25,50,100,500]},ot=function(){function e(e,n,o){this.proveedorService=e,this.paginanateService=n,this.translate=o,this.params=[],this.ordenar=[],this.visible=!1,this.proveedorSeleccionado=new Qe,this.select=new t.EventEmitter,this.translate.get("es")}return e.prototype.ngOnInit=function(){this.page=this.paginanateService.getPage();this.ordenar=this.paginanateService.getOrden([],"es"),this.proveedores=[]},e.prototype.cargarDatosProveedores=function(){var e=this;this.params=this.paginanateService.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.proveedorService.getAll(this.params).subscribe((function(t){e.proveedores=t.data}))},e.prototype.pagina=function(e){this.page.rows=e.rows,this.page.offset=e.first,this.cargarDatosProveedores()},e.prototype.cerrarModal=function(){this.select.emit(null),this.visible=!1},e.prototype.seleccionarProveedor=function(e){this.select.emit(e.data),this.visible=!1},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(Xe),t.ɵɵdirectiveInject(Ve),t.ɵɵdirectiveInject(m.TranslateService))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["select-proveedor"]],inputs:{visible:"visible",proveedorSeleccionado:"proveedorSeleccionado"},outputs:{select:"select"},decls:18,vars:16,consts:[[3,"header","visible","visibleChange","onHide","onShow"],[1,"row"],[1,"col-3"],[1,"input-group","mt-3"],["type","text","name","filtro",1,"form-control",3,"placeholder","ngModel","ngModelChange","change"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search"],[1,"col-md-12"],["selectionMode","single","scrollHeight","350px",3,"value","selection","scrollable","valueChange","selectionChange","onRowSelect"],["pTemplate","header"],["pTemplate","body"],[3,"rows","totalRecords","pageLinkSize","rowsPerPageOptions","onPageChange"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.visible=e}))("onHide",(function(){return n.cerrarModal()}))("onShow",(function(){return n.cargarDatosProveedores()})),t.ɵɵpipe(1,"translate"),t.ɵɵelementStart(2,"div",1),t.ɵɵelementStart(3,"div",2),t.ɵɵelementStart(4,"div",3),t.ɵɵelementStart(5,"input",4),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("change",(function(){return n.cargarDatosProveedores()})),t.ɵɵpipe(6,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"div",5),t.ɵɵelementStart(8,"button",6),t.ɵɵlistener("click",(function(){return n.cargarDatosProveedores()})),t.ɵɵelement(9,"i",7),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(10,"hr"),t.ɵɵelementStart(11,"div",1),t.ɵɵelementStart(12,"div",8),t.ɵɵelementStart(13,"p-table",9),t.ɵɵlistener("valueChange",(function(e){return n.proveedores=e}))("selectionChange",(function(e){return n.proveedorSeleccionado=e}))("onRowSelect",(function(e){return n.seleccionarProveedor(e)})),t.ɵɵtemplate(14,et,10,9,"ng-template",10),t.ɵɵtemplate(15,tt,7,3,"ng-template",11),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"div",8),t.ɵɵelementStart(17,"p-paginator",12),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,11,"ArticuloProveedor.proveedores")),t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(5),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(6,13,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(8),t.ɵɵproperty("value",n.proveedores)("selection",n.proveedorSeleccionado)("scrollable",!0),t.ɵɵadvance(4),t.ɵɵproperty("rows",n.page.rows)("totalRecords",n.page.total)("pageLinkSize",5)("rowsPerPageOptions",t.ɵɵpureFunction0(15,nt)))},directives:[c.Dialog,o.DefaultValueAccessor,o.NgControlStatus,o.NgModel,g.Table,a.PrimeTemplate,v.Paginator],pipes:[m.TranslatePipe],encapsulation:2}),e}(),rt=function(e){function o(t){var n=e.call(this,t,"stock")||this;return n.httpClient=t,n}return J(o,e),o.prototype.obtenerExistenciasArticulosDescripcion=function(e,t){var n=this,o=this.getBaseUrl()+"/stock/obtenerExistenciasArticulos";return new Promise((function(r,i){n.httpClient.post(o+n.serializeParams(t),e,n.buildAuth()).subscribe((function(e){r(e)}),(function(e){i(e)}))}))},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),it=function(e){function o(t){var n=e.call(this,t,"/almacen")||this;return n.httpClient=t,n}return J(o,e),o.prototype.obtenerAlmacenEmpresa=function(){var e=this.geturl()+"/obtenerAlmacenEmpresa";return this.getHttp().get(e,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),at=function(e){function o(t){var n=e.call(this,t,"articulo")||this;return n.httpClient=t,n}return J(o,e),o.prototype.obtenerExistencias=function(e){var t="/existenciasArticulo/"+e;return this.httpClient.get(this.geturl()+t,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K);function lt(e,n){if(1&e&&t.ɵɵelement(0,"col"),2&e){var o=n.$implicit;t.ɵɵstyleProp("width",o.width)}}function st(e,n){if(1&e&&(t.ɵɵelementStart(0,"colgroup"),t.ɵɵtemplate(1,lt,1,2,"col",8),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",o)}}function ct(e,n){if(1&e&&(t.ɵɵelementStart(0,"th",10),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",o.header," ")}}function ut(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵtemplate(1,ct,2,1,"th",9),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",o)}}function pt(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"td"),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td"),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"td"),t.ɵɵtext(8),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"td"),t.ɵɵtext(10),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.almacenCodigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.almacenDescripcion),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.ubicacionCodigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.ubicacionDescripcion),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.existencia)}}var dt=function(e){return{width:e,"min-width":"200px"}},mt=function(){return{width:"600px"}},ft=function(){function e(e){this.articuloInformacionService=e,this.eventSelection=new t.EventEmitter,this.flagModal=!0,this.size=640,this.params=[{param:"offset",value:0},{param:"max",value:-1},{param:"order",value:"asc"}],this.columnsData=[{field:"codigo",header:"Código Almacén",width:"90px"},{field:"descripcion",header:"Descripción Almacen",width:"140px"},{field:"codigo",header:"Código Ubicación",width:"90px"},{field:"descripcion",header:"Descripción Ubicación",width:"140px"},{field:"opciones",header:"Existencia",width:"80px"}]}return e.prototype.ngOnInit=function(){this.OnLoad()},e.prototype.hiddenDialog=function(){this.eventSelection.emit({status:!1})},e.prototype.OnResize=function(e){this.isMovil=e.target.innerWidth<=640},e.prototype.OnLoad=function(){var e=this;this.articuloInformacionService.obtenerExistencias(this.articulo.articulo.id).subscribe((function(t){e.existenciasList=t.data}))},e.prototype.OnShow=function(){this.titulo="Existencias en Almacenes"},e.prototype.onSelectedUbicacion=function(e){this.eventSelection.emit({status:!1,ubicacion:e})},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(at))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["lib-seleccion-articulo-informacion"]],inputs:{showModal:"showModal",articulo:"articulo"},outputs:{eventSelection:"eventSelection"},decls:9,vars:20,consts:[[3,"header","visible","modal","minY","baseZIndex","draggable","blockScroll","maximizable","breakpoint","onShow","visibleChange","onHide","resize"],[1,"ui-g","ui-fluid"],["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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("onShow",(function(){return n.OnShow()}))("visibleChange",(function(e){return n.showModal=e}))("onHide",(function(){return n.hiddenDialog()}))("resize",(function(e){return n.OnResize(e)}),!1,t.ɵɵresolveWindow),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"p-table",2),t.ɵɵtemplate(3,st,2,1,"ng-template",3),t.ɵɵtemplate(4,ut,2,1,"ng-template",4),t.ɵɵtemplate(5,pt,11,5,"ng-template",5),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"p-footer"),t.ɵɵelementStart(7,"div",6),t.ɵɵelementStart(8,"button",7),t.ɵɵlistener("click",(function(){return n.hiddenDialog()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(17,dt,n.size+"px")),t.ɵɵproperty("header",n.titulo)("visible",n.showModal)("modal",n.flagModal)("minY",70)("baseZIndex",1e4)("draggable",!1)("blockScroll",!0)("maximizable",!0)("breakpoint",640),t.ɵɵadvance(2),t.ɵɵstyleMap(t.ɵɵpureFunction0(19,mt)),t.ɵɵproperty("columns",n.columnsData)("value",n.existenciasList)("scrollable",!0)("responsive",!0))},directives:[c.Dialog,g.Table,a.PrimeTemplate,a.Footer,s.ButtonDirective,l.NgForOf,g.ResizableColumn],styles:[""]}),e}();function ht(e,n){if(1&e&&(t.ɵɵelementStart(0,"option",25),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵpropertyInterpolate("value",o.id),t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.descripcion)}}function gt(e,n){1&e&&(t.ɵɵelementStart(0,"th",34),t.ɵɵtext(1,"existenciaSecundaria"),t.ɵɵelementEnd())}function vt(e,n){1&e&&(t.ɵɵelementStart(0,"th",28),t.ɵɵtext(1,"Unidad"),t.ɵɵelementEnd())}function bt(e,n){1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1,"Movimiento.movimientoDetalle.precio"),t.ɵɵelementEnd())}function St(e,n){1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1,"Precio 2"),t.ɵɵelementEnd())}function yt(e,n){1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1,"Precio 3"),t.ɵɵelementEnd())}function xt(e,n){1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1,"Precio 4"),t.ɵɵelementEnd())}function Ct(e,n){1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1,"Precio 5"),t.ɵɵelementEnd())}function wt(e,n){1&e&&(t.ɵɵelementStart(0,"th",28),t.ɵɵtext(1,"Movimiento.costo"),t.ɵɵelementEnd())}function Et(e,n){if(1&e&&(t.ɵɵelementStart(0,"th",26),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.descripcion)}}function It(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th",26),t.ɵɵtext(2,"Código Ubicacion"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"th",27),t.ɵɵtext(4,"Existencia"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"th",28),t.ɵɵtext(6,"Unidad"),t.ɵɵelementEnd(),t.ɵɵtemplate(7,gt,2,0,"th",29),t.ɵɵtemplate(8,vt,2,0,"th",30),t.ɵɵelementStart(9,"th",26),t.ɵɵtext(10,"Código"),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"th",31),t.ɵɵtext(12,"Descripcion"),t.ɵɵelementEnd(),t.ɵɵelement(13,"th",28),t.ɵɵtemplate(14,bt,2,0,"th",32),t.ɵɵtemplate(15,St,2,0,"th",32),t.ɵɵtemplate(16,yt,2,0,"th",32),t.ɵɵtemplate(17,xt,2,0,"th",32),t.ɵɵtemplate(18,Ct,2,0,"th",32),t.ɵɵtemplate(19,wt,2,0,"th",30),t.ɵɵelementStart(20,"th",28),t.ɵɵtext(21,"Existencia por Unidad"),t.ɵɵelementEnd(),t.ɵɵtemplate(22,Et,2,1,"th",33),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext();t.ɵɵadvance(7),t.ɵɵproperty("ngIf",o.manejaUnidadSecundaria),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.manejaUnidadSecundaria),t.ɵɵadvance(6),t.ɵɵproperty("ngIf","costo"!==o.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==o.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==o.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==o.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==o.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"===o.configuracion.tipoPrecio),t.ɵɵadvance(3),t.ɵɵproperty("ngForOf",o.clasificadorList)}}function Mt(e,n){1&e&&(t.ɵɵelementStart(0,"td",26),t.ɵɵtext(1,"Movimiento.NoAsignado"),t.ɵɵelementEnd())}function At(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.ubicacionCodigo)}}function kt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",47),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.existenciaSecundaria)}}function jt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",39),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.unidadSecundariaCodigo)}}function Pt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precioConImpuestos))}}function _t(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precio2ConImpuestos))}}function Ot(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precio3ConImpuestos))}}function Tt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precio4ConImpuestos))}}function Dt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precio5ConImpuestos))}}function Ht(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",39),t.ɵɵtext(1),t.ɵɵpipe(2,"currency"),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,o.precio))}}function Ft(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",48),t.ɵɵelementStart(1,"div",49),t.ɵɵelementStart(2,"label",50),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"div",49),t.ɵɵelementStart(5,"label",50),t.ɵɵtext(6),t.ɵɵpipe(7,"number"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(3),t.ɵɵtextInterpolate(o.unidad_codigo),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind2(7,2,o.unidad_existencia,"1.2-2"))}}function Bt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",42),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.valor)}}function Ut(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"tr",35),t.ɵɵtemplate(1,Mt,2,0,"td",36),t.ɵɵtemplate(2,At,2,1,"td",37),t.ɵɵelementStart(3,"td",38),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td",39),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵtemplate(7,kt,2,1,"td",40),t.ɵɵtemplate(8,jt,2,1,"td",41),t.ɵɵelementStart(9,"td",42),t.ɵɵtext(10),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"td",43),t.ɵɵtext(12),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"td",39),t.ɵɵelementStart(14,"button",44),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(o);var e=n.$implicit;return t.ɵɵnextContext().onShowInformacion(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(15,Pt,3,3,"td",37),t.ɵɵtemplate(16,_t,3,3,"td",37),t.ɵɵtemplate(17,Ot,3,3,"td",37),t.ɵɵtemplate(18,Tt,3,3,"td",37),t.ɵɵtemplate(19,Dt,3,3,"td",37),t.ɵɵtemplate(20,Ht,3,3,"td",41),t.ɵɵelementStart(21,"td",39),t.ɵɵtemplate(22,Ft,8,5,"div",45),t.ɵɵelementEnd(),t.ɵɵtemplate(23,Bt,2,1,"td",46),t.ɵɵelementEnd()}if(2&e){var r=n.$implicit,i=t.ɵɵnextContext();t.ɵɵproperty("pSelectableRow",r),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",!r.ubicacionCodigo),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.ubicacionCodigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(r.existencia),t.ɵɵadvance(2),t.ɵɵtextInterpolate(r.unidadCodigo),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.manejaUnidadSecundaria),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",i.manejaUnidadSecundaria),t.ɵɵadvance(2),t.ɵɵtextInterpolate(r.articulo.codigo),t.ɵɵadvance(2),t.ɵɵtextInterpolate(r.articulo.descripcion),t.ɵɵadvance(3),t.ɵɵproperty("ngIf","costo"!==i.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==i.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==i.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==i.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"!==i.configuracion.tipoPrecio),t.ɵɵadvance(1),t.ɵɵproperty("ngIf","costo"===i.configuracion.tipoPrecio),t.ɵɵadvance(2),t.ɵɵproperty("ngForOf",r.existenciaUnidades),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",r.articuloClasificadorList)}}function zt(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"lib-seleccion-articulo-informacion",51),t.ɵɵlistener("eventSelection",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().onEventInformacion(e)})),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("showModal",r.showModalInformacion)("articulo",r.articuloSelected)}}var qt=function(e){return{width:e,"min-width":"200px"}},Rt=function(){return[10,25,50,100,500]},Lt=function(){function e(e,n,o){this._stockService=e,this._paginateService=n,this._almacenService=o,this.manejaUnidadSecundaria=!1,this.emitFilaSeleccionada=new t.EventEmitter,this.emitShowArticulos=new t.EventEmitter,this.articulosList=[],this.ordenar=[],this.busquedaArticulos={tipoBusqueda:""},this.showModal=!1,this.showModalInformacion=!1,this.showFirstTime=!0,this.clasificadorList=[],this.size=640}return e.prototype.ngOnInit=function(){var e=this;this.page=this._paginateService.getPage(),this.ordenar=this._paginateService.getOrden([{param:"nombre",label:"estatus"}],"es"),this.showFirstTime=!0,this._almacenService.getAll(this.configuracion.params).subscribe((function(t){e.almacenList=t.data})),this.busquedaArticulos.tipoBusqueda="CD"},e.prototype.pagina=function(e){this.page.rows=e.rows,this.page.offset=e.first,this.obtenerExistenciaArticulos()},e.prototype.obtenerExistenciaArticulosShow=function(){this.busquedaArticulos.tipoBusqueda="CD",this.showFirstTime&&(this.obtenerExistenciaArticulos(),this.showFirstTime=!1)},e.prototype.obtenerExistenciaArticulos=function(){var e=this;this.busquedaArticulos.params=this._paginateService.getParams(this.page);var t={almacen:this.configuracion.noOcupaAlamacen?null:this.movimiento.almacen,tipoPrecio:this.configuracion.tipoPrecio,busquedaArticulos:this.busquedaArticulos,tipoArticulo:this.configuracion.tipoArticulo?this.configuracion.tipoArticulo:null,numeroPrecioDefault:this.configuracion.numeroPrecioDefault};this._stockService.obtenerExistenciasArticulosDescripcion(t,this.busquedaArticulos.params).then((function(t){e.articulosList=t.articulosDescripcion,e.page.total=t.total,t.clasificadores&&(e.clasificadorList=t.clasificadores),e.showModal||(e.showModal=!0)})).catch((function(t){e.articulosList=[]}))},e.prototype.obtenerExistenciaArticulosVal=function(){if(""!=this.busquedaArticulos.tipoBusqueda&&!this.busquedaArticulos.key)return!1;this.obtenerExistenciaArticulos()},e.prototype.obtenerExistenciaArticulosKey=function(e){"Enter"===e.key&&this.obtenerExistenciaArticulos()},e.prototype.filaSeleccionada=function(e){this.emitFilaSeleccionada.emit(e)},e.prototype.emitirShowArticulos=function(){this.emitShowArticulos.emit(0)},e.prototype.seriesArticulo=function(e){console.log(e)},e.prototype.onShowInformacion=function(e){this.articuloSelected=e,this.showModalInformacion=!0},e.prototype.onEventInformacion=function(e){this.showModalInformacion=e.status},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(rt),t.ɵɵdirectiveInject(Ve),t.ɵɵdirectiveInject(it))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["app-selecciona-articulo"]],inputs:{configuracion:"configuracion",showArticulos:"showArticulos",movimiento:"movimiento",manejaUnidadSecundaria:"manejaUnidadSecundaria"},outputs:{emitFilaSeleccionada:"emitFilaSeleccionada",emitShowArticulos:"emitShowArticulos"},decls:33,vars:28,consts:[[3,"header","visible","maximizable","baseZIndex","blockScroll","minY","visibleChange","onShow","onHide"],[1,"col-12","mb-3"],[1,"row"],[1,"col-12","col-md-3","col-xl-3"],[1,"form-control","col-md-6",3,"ngModel","ngModelChange","change"],["value","C"],["value","D"],["value","CD"],["value","CI"],[1,"ui-inputgroup"],["type","text","name","key",1,"form-control",3,"ngModel","ngModelChange","keypress"],["type","button",1,"btn","btn-outline-primary",3,"click"],[1,"fa","fa-search"],[1,"col-12","col-md-2","col-xl-2"],[1,"form-group"],[1,"col-12","col-md-4","col-xl-4"],["disabled","","name","almacen",1,"form-control",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[2,"margin-top","10px"],["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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.showArticulos=e}))("onShow",(function(){return n.obtenerExistenciaArticulosShow()}))("onHide",(function(){return n.busquedaArticulos={tipoBusqueda:""},n.emitirShowArticulos()})),t.ɵɵpipe(1,"translate"),t.ɵɵelementStart(2,"div",1),t.ɵɵelementStart(3,"div",2),t.ɵɵelementStart(4,"div",3),t.ɵɵelementStart(5,"select",4),t.ɵɵlistener("ngModelChange",(function(e){return n.busquedaArticulos.tipoBusqueda=e}))("change",(function(){return n.obtenerExistenciaArticulosVal()})),t.ɵɵelementStart(6,"option",5),t.ɵɵtext(7,"Codigo"),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"option",6),t.ɵɵtext(9,"Descripcion"),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"option",7),t.ɵɵtext(11,"Coincidencia"),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"option",8),t.ɵɵtext(13,"Igual a"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(14,"div",3),t.ɵɵelementStart(15,"div",9),t.ɵɵelementStart(16,"input",10),t.ɵɵlistener("ngModelChange",(function(e){return n.busquedaArticulos.key=e}))("keypress",(function(e){return n.obtenerExistenciaArticulosKey(e)})),t.ɵɵelementEnd(),t.ɵɵelementStart(17,"button",11),t.ɵɵlistener("click",(function(){return n.obtenerExistenciaArticulos()})),t.ɵɵelement(18,"i",12),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(19,"div",13),t.ɵɵelementStart(20,"label",14),t.ɵɵtext(21),t.ɵɵpipe(22,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(23,"div",15),t.ɵɵelementStart(24,"select",16),t.ɵɵlistener("ngModelChange",(function(e){return n.movimiento.almacen=e}))("change",(function(){return n.obtenerExistenciaArticulosVal()})),t.ɵɵtemplate(25,ht,2,2,"option",17),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(26,"div",18),t.ɵɵelementStart(27,"p-table",19,20),t.ɵɵlistener("onRowSelect",(function(e){return n.filaSeleccionada(e)})),t.ɵɵtemplate(29,It,23,9,"ng-template",21),t.ɵɵtemplate(30,Ut,24,17,"ng-template",22),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(31,"p-paginator",23),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(32,zt,1,2,"lib-seleccion-articulo-informacion",24)),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(25,qt,n.size+"px")),t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,21,"Articulos")),t.ɵɵproperty("visible",n.showArticulos)("maximizable",!0)("baseZIndex",1e4)("blockScroll",!0)("minY",70),t.ɵɵadvance(5),t.ɵɵproperty("ngModel",n.busquedaArticulos.tipoBusqueda),t.ɵɵadvance(11),t.ɵɵproperty("ngModel",n.busquedaArticulos.key),t.ɵɵadvance(5),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(22,23,"Movimiento.movimientoDetalle.almacen")),t.ɵɵadvance(3),t.ɵɵproperty("ngModel",n.movimiento.almacen),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",n.almacenList),t.ɵɵadvance(2),t.ɵɵproperty("value",n.articulosList)("scrollable",!0)("responsive",!0),t.ɵɵadvance(4),t.ɵɵproperty("rows",n.page.rows)("totalRecords",n.page.total)("pageLinkSize",5)("rowsPerPageOptions",t.ɵɵpureFunction0(27,Rt)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.showModalInformacion))},directives:[c.Dialog,o.SelectControlValueAccessor,o.NgControlStatus,o.NgModel,o.NgSelectOption,o.ɵangular_packages_forms_forms_x,o.DefaultValueAccessor,l.NgForOf,g.Table,a.PrimeTemplate,v.Paginator,l.NgIf,m.TranslateDirective,g.SelectableRow,s.ButtonDirective,ft],pipes:[m.TranslatePipe,l.CurrencyPipe,l.DecimalPipe],styles:["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"]}),e}(),Nt=function(e){function o(t){var n=e.call(this,t,"acreedor")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K);function Vt(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th"),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"th"),t.ɵɵtext(5),t.ɵɵpipe(6,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"th"),t.ɵɵtext(8),t.ɵɵpipe(9,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"th"),t.ɵɵtext(11),t.ɵɵpipe(12,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"th"),t.ɵɵtext(14),t.ɵɵpipe(15,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"th"),t.ɵɵtext(17),t.ɵɵpipe(18,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,6,"razonSocial")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(6,8,"rfc")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(9,10,"tipo")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(12,12,"atrasoDiasEntrega")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(15,14,"limiteCredito")),t.ɵɵadvance(3),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(18,16,"fechaUltimaCompra")))}function $t(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1),t.ɵɵpipe(2,"translate"),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,"moral")))}function Jt(e,n){1&e&&(t.ɵɵelementStart(0,"span"),t.ɵɵtext(1),t.ɵɵpipe(2,"translate"),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(2,1,"fisico")))}function Zt(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr",14),t.ɵɵelementStart(1,"td"),t.ɵɵtext(2),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"td"),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td"),t.ɵɵtemplate(6,$t,3,3,"span",15),t.ɵɵtemplate(7,Jt,3,3,"span",15),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"td"),t.ɵɵtext(9),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"td"),t.ɵɵtext(11),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"td"),t.ɵɵtext(13),t.ɵɵpipe(14,"date"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵproperty("pSelectableRow",o),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.descripcionRazonSocial),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.descripcionRfc),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",o.personaMoral),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",o.personaFisica),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.atrasoDiasEntrega),t.ɵɵadvance(2),t.ɵɵtextInterpolate(o.limiteCredito),t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind2(14,8,o.fechaUltimaCompra,"dd/MM/yyyy"))}}function Wt(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td"),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(1),t.ɵɵattribute("colspan",6),t.ɵɵadvance(1),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,2,"general.noRegistros")))}var Gt=function(){return[10,25,50,100,500]},Yt=function(){function e(e,n,o){this.acreedorService=e,this.paginanateService=n,this.translate=o,this.params=[],this.ordenar=[],this.visible=!1,this.acreedorSeleccionado=new Qe,this.select=new t.EventEmitter,this.translate.get("es")}return e.prototype.ngOnInit=function(){this.page=this.paginanateService.getPage();this.ordenar=this.paginanateService.getOrden([],"es"),this.acreedores=[]},e.prototype.cargarDatosAcreedores=function(){var e=this;this.params=this.paginanateService.getParams(this.page),this.params.push({param:"estatus",value:!0}),this.acreedorService.getAll(this.params).subscribe((function(t){e.acreedores=t.data}))},e.prototype.pagina=function(e){this.page.rows=e.rows,this.page.offset=e.first,this.cargarDatosAcreedores},e.prototype.cerrarModal=function(){this.select.emit(null),this.visible=!1},e.prototype.seleccionarAcreedor=function(e){this.select.emit(e.data),this.visible=!1},e.ɵfac=function(n){return new(n||e)(t.ɵɵdirectiveInject(Nt),t.ɵɵdirectiveInject(Ve),t.ɵɵdirectiveInject(m.TranslateService))},e.ɵcmp=t.ɵɵdefineComponent({type:e,selectors:[["select-acreedor"]],inputs:{visible:"visible",acreedorSeleccionado:"acreedorSeleccionado"},outputs:{select:"select"},decls:18,vars:14,consts:[["header","Selecciona el acreedor",3,"visible","visibleChange","onHide","onShow"],[1,"row"],[1,"col-3"],[1,"input-group","mt-3"],["type","text","name","filtro",1,"form-control",3,"placeholder","ngModel","ngModelChange","keyup"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search"],[1,"col-md-12"],["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(e,n){1&e&&(t.ɵɵelementStart(0,"p-dialog",0),t.ɵɵlistener("visibleChange",(function(e){return n.visible=e}))("onHide",(function(){return n.cerrarModal()}))("onShow",(function(){return n.cargarDatosAcreedores()})),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"div",2),t.ɵɵelementStart(3,"div",3),t.ɵɵelementStart(4,"input",4),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("keyup",(function(){return n.cargarDatosAcreedores()})),t.ɵɵpipe(5,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"div",5),t.ɵɵelementStart(7,"button",6),t.ɵɵlistener("click",(function(){return n.cargarDatosAcreedores()})),t.ɵɵelement(8,"i",7),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelement(9,"hr"),t.ɵɵelementStart(10,"div",1),t.ɵɵelementStart(11,"div",8),t.ɵɵelementStart(12,"p-table",9),t.ɵɵlistener("selectionChange",(function(e){return n.acreedorSeleccionado=e}))("onRowSelect",(function(e){return n.seleccionarAcreedor(e)})),t.ɵɵtemplate(13,Vt,19,18,"ng-template",10),t.ɵɵtemplate(14,Zt,15,11,"ng-template",11),t.ɵɵtemplate(15,Wt,4,4,"ng-template",12),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"div",8),t.ɵɵelementStart(17,"p-paginator",13),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(4),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(5,11,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(8),t.ɵɵproperty("value",n.acreedores)("selection",n.acreedorSeleccionado)("scrollable",!0)("responsive",!0),t.ɵɵadvance(5),t.ɵɵproperty("rows",n.page.rows)("totalRecords",n.page.total)("pageLinkSize",5)("rowsPerPageOptions",t.ɵɵpureFunction0(13,Gt)))},directives:[c.Dialog,o.DefaultValueAccessor,o.NgControlStatus,o.NgModel,g.Table,a.PrimeTemplate,v.Paginator,g.SelectableRow,l.NgIf],pipes:[m.TranslatePipe,l.DatePipe],encapsulation:2}),e}(),Kt=[U.CardModule,B.TooltipModule,F.OverlayPanelModule,D.RadioButtonModule,O.CheckboxModule,P.AutoCompleteModule,g.TableModule,i.TreeTableModule,k.CalendarModule,g.TableModule,s.ButtonModule,r.InputTextModule,b.DropdownModule,S.InputMaskModule,y.MessagesModule,x.MessageModule,v.PaginatorModule,C.ConfirmDialogModule,w.ProgressBarModule,E.TriStateCheckboxModule,I.KeyFilterModule,M.InputSwitchModule,c.DialogModule,A.TabViewModule,j.PanelModule,R.ToolbarModule,q.SplitButtonModule,_.FieldsetModule,T.TreeModule,H.TabMenuModule,z.MenubarModule],Qt=[a.ConfirmationService];function Xt(e){return new L.TranslateHttpLoader(e,"./assets/i18n/",".json")}var en=function(){function e(){}return e.ɵmod=t.ɵɵdefineNgModule({type:e}),e.ɵinj=t.ɵɵdefineInjector({factory:function(t){return new(t||e)},providers:[Qt,{provide:n.HTTP_INTERCEPTORS,useClass:pe,multi:!0}],imports:[[l.CommonModule,Kt,o.FormsModule,d.ToastrModule.forRoot(),m.TranslateModule.forRoot({loader:{provide:m.TranslateLoader,useFactory:Xt,deps:[n.HttpClient]}})]]}),e}();("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(en,{declarations:[de,fe,he,je,xe,Be,Ye,ot,Lt,Yt,re,se,ft],imports:[l.CommonModule,U.CardModule,B.TooltipModule,F.OverlayPanelModule,D.RadioButtonModule,O.CheckboxModule,P.AutoCompleteModule,g.TableModule,i.TreeTableModule,k.CalendarModule,g.TableModule,s.ButtonModule,r.InputTextModule,b.DropdownModule,S.InputMaskModule,y.MessagesModule,x.MessageModule,v.PaginatorModule,C.ConfirmDialogModule,w.ProgressBarModule,E.TriStateCheckboxModule,I.KeyFilterModule,M.InputSwitchModule,c.DialogModule,A.TabViewModule,j.PanelModule,R.ToolbarModule,q.SplitButtonModule,_.FieldsetModule,T.TreeModule,H.TabMenuModule,z.MenubarModule,o.FormsModule,d.ToastrModule,m.TranslateModule],exports:[fe,he,je,xe,Be,Ye,ot,Lt,Yt,re,se]});var tn=function(){function e(e){this.authService=e,this.cambioAcciones=new t.EventEmitter,this.changeDetalleUsuario=new t.EventEmitter}return e.prototype.set=function(e){this.detallesUsuarios=e,this.changeDetalleUsuario.emit(this.detallesUsuarios)},e.prototype.canActivete=function(e){for(var t=!1,n=this.authService.getUser(),o=function(o){if(t)return{value:t};var r=n.roles.filter((function(t){return t===e[o]}));t=r.length>0},r=0;r<e.length;r++){var i=o(r);if("object"==typeof i)return i.value}return t},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(Ee))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),nn=function(){function e(e,t){this.http=e,this.authService=t}return e.prototype.initConfig=function(){this.http.get("assets/config.json").subscribe((function(e){localStorage.setItem("config",JSON.stringify(e))})),this.http.get("assets/version.json").subscribe((function(e){localStorage.removeItem("version"),localStorage.setItem("version",e.hash)}))},e.prototype.cargaConfig=function(){var e=this;this.http.get("assets/config.json").subscribe((function(t){localStorage.setItem("config",JSON.stringify(t));var o=t.url;e.http.post(o+"/login",{username:"admin",password:"admin"}).subscribe((function(t){localStorage.setItem("usuario",JSON.stringify(t));var r={headers:new n.HttpHeaders({"Accept-type":"application/json",Authorization:t.token_type+" "+t.access_token})};e.http.get(o+"/usuario/obtieneUsuarioActual",r).subscribe((function(t){var n=t.empresas[0];e.authService.setEmpresa(n).subscribe()}))}))}))},e.ɵfac=function(o){return new(o||e)(t.ɵɵinject(n.HttpClient),t.ɵɵinject(Ee))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),on=function(){function e(e){this.toastr=e}return e.prototype.deployMessage=function(e,t,n){switch(void 0===e&&(e=null),e){case"success":this.toastr.success(n,t,{timeOut:3e3});break;case"info":this.toastr.info(n,t,{timeOut:3e3});break;case"warning":this.toastr.warning(n,t,{timeOut:3e3});break;case"error":this.toastr.error(n,t,{timeOut:3e3});break;case null:this.toastr.success(n,t,{timeOut:3e3})}},e.prototype.success=function(e){var t=[];return t.push({severity:"success",summary:"Exito",detail:""+e}),t},e.prototype.error=function(e){var t=[];if(e){if(e.error&&(e=e.error).error)for(var n=0;n<e.error.length;n++)t.push({severity:"error",summary:"Error",detail:""+e.error[n].message})}else e.mensaje&&t.push({severity:"error",summary:"Error",detail:""+e.mensaje});return t},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(d.ToastrService))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),rn=function(e){function o(t){return e.call(this,t,"/personaMoral")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),an=function(){function e(e){this.controlAccesoService=e,this.rol="",this.method=""}return e.prototype.canActivate=function(){return this.controlAccesoService.canActivete([this.rol])},e.prototype.permisos=function(e){this.rol=e},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(tn))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),ln=function(e){function o(t){var n=e.call(this,t,"catalogoAdicional")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),sn=function(){function e(e,t,n){this.authService=e,this.controlAccesoService=t,this.router=n}return e.prototype.load=function(e){var t=this;return this.authService.getUser()?this.authService.getDetalsUser().subscribe((function(e){for(var n=e.roles,o=0;o<n.length;o++)"ROLE_CLIENTE"===n[o].authority&&t.router.navigate(["movimientos/ventaRapida/create"]);return e.empresa||t.regresaAlprincipal(void 0),t.controlAccesoService.detallesUsuarios=e,t.controlAccesoService.cambioAcciones.emit(!0),!0}),(function(e){t.regresaAlprincipal(void 0)})):this.regresaAlprincipal(void 0),!1},e.prototype.regresaAlprincipal=function(e){var t=JSON.parse(localStorage.getItem("config")),n="";t&&t.host&&(n=t.host),e&&(n+=e),window.location.href=n},e.ɵfac=function(n){return new(n||e)(t.ɵɵinject(Ee),t.ɵɵinject(tn),t.ɵɵinject(N.Router))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),cn=function(){function e(e){this.http=e,this.currentHash="{{POST_BUILD_ENTERS_HASH_HERE}}",this.versionado=!1,this.frequency=108e5}return e.prototype.initVersionCheck=function(){var e=this;setInterval((function(){e.checkVersion()}),this.frequency)},e.prototype.checkVersion=function(){var e=this;this.http.get("assets/version.json?t="+(new Date).getTime()).subscribe((function(t){var n=t.hash;e.currentHash=localStorage.getItem("version"),e.hasHashChanged(e.currentHash,n)||e.versionado||(e.versionado=!0,confirm("Está disponible una actualización de Visorus ERP. El sistema se reiniciara para descargar los nuevos cambios.")?(location.reload(!0),e.versionado=!1):e.versionado=!1)}),(function(e){console.error(e,"No se pudo obtener versión de software")}))},e.prototype.hasHashChanged=function(e,t){return!(!e||"{{POST_BUILD_ENTERS_HASH_HERE}}"===e)&&e===t},e.ɵfac=function(o){return new(o||e)(t.ɵɵinject(n.HttpClient))},e.ɵprov=t.ɵɵdefineInjectable({token:e,factory:e.ɵfac,providedIn:"root"}),e}(),un=function(e){function o(t){var n=e.call(this,t,"agente")||this;return n.httpClient=t,n}return J(o,e),o.prototype.saveUsuarioAgente=function(e){var t=this.getUrl("agente")+"/usuario";return this.getHttp().post(t,e,this.buildAuth())},o.prototype.getUsuarioAgente=function(e){var t=this.getUrl("agente")+"/usuario/"+e;return this.getHttp().get(t,this.buildAuth())},o.prototype.obtenerAgenteEmpresa=function(){var e=this.geturl()+"/obtenerAgenteEmpresa";return this.getHttp().get(e,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),pn=function(){},dn=function(){},mn=function(){this.datoDireccion=new dn},fn=function(e){function o(t){return e.call(this,t,"/banco")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),hn=function(){},gn=function(e){function o(t){return e.call(this,t,"/catalogoTipo")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),vn=function(e){function o(t){return e.call(this,t,"/clasificadorTipo")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),bn=function(){},Sn=function(e){function o(t){return e.call(this,t,"claveMovimiento")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),yn=function(){this.banco=new mn,this.estatus=!0},xn=function(){},Cn=function(){this.cliente=new Le,this.flete=new xn,this.estatus=!0},wn=function(e){function o(t){var n=e.call(this,t,"/clienteCuentaBanco")||this;return n.httpClient=t,n}return J(o,e),o.prototype.saveAll=function(e){var t={cuentas:e};return this.httpClient.post(this.geturl(),t,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),En=function(e){function o(t){var n=e.call(this,t,"/clienteFlete")||this;return n.httpClient=t,n}return J(o,e),o.prototype.saveAll=function(e){var t={fletes:e};return this.save(t)},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),In=function(){this.estatus=!0},Mn=function(){this.tipoContacto=new In},An=function(e){function o(t){return e.call(this,t,"/contacto")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),kn=function(e){function o(t){return e.call(this,t,"/datoDireccion")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),jn=function(){},Pn=function(e){function o(t){return e.call(this,t,"/departamento")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),_n=function(){},On=function(){this.datoDireccion=new dn,this.personaMoral=new qe,this.claveFormaPagoEfectivo=new _n},Tn=function(){this.empresa=new On},Dn=function(e){function o(t){var n=e.call(this,t,"/empresa")||this;return n.httpClient=t,n}return J(o,e),o.prototype.get=function(){return this.httpClient.get(this.getBaseUrl()+"/configuracionEmpresaAdministrativo/configuracionUsuario",this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Hn=function(e){function o(t){var n=e.call(this,t,"/flete")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Fn=function(e){function o(t){return e.call(this,t,"/FormaDePago")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Bn=function(){},Un=function(e){function o(t){var n=e.call(this,t,"/moneda")||this;return n.httpClient=t,n}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),zn=function(){},qn=function(){},Rn=function(e){function o(t){var n=e.call(this,t,"/PersonaFisica")||this;return n.httpClient=t,n}return J(o,e),o.prototype.getGeneros=function(){return this.httpClient.get(this.getBaseUrl()+"/genero",this.buildAuth())},o.prototype.getEstadoCivil=function(){return this.httpClient.get(this.getBaseUrl()+"/estadoCivil",this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Ln=function(){this.banco=new mn,this.estatus=!0},Nn=function(){this.proveedor=new Qe,this.flete=new xn,this.estatus=!0},Vn=function(e){function o(t){var n=e.call(this,t,"/proveedorCuentaBanco")||this;return n.httpClient=t,n}return J(o,e),o.prototype.saveAll=function(e){var t={cuentas:e};return this.httpClient.post(this.geturl(),t,this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),$n=function(e){function o(t){var n=e.call(this,t,"/proveedorFlete")||this;return n.httpClient=t,n}return J(o,e),o.prototype.saveAll=function(e){var t={fletes:e};return this.save(t)},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Jn=function(e){function o(t){return e.call(this,t,"claveAumentoDisminucion")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Zn=function(e){function o(t){var n=e.call(this,t,"serieDocumento")||this;return n.httpClient=t,n}return J(o,e),o.prototype.getTipos=function(){return this.httpClient.get(this.getUrl("serieDocumento")+"/tipoSerie",this.buildAuth())},o.prototype.getReporte=function(e){return this.httpClient.get(this.getUrl("serieDocumento")+"/descargaFormatoReporte"+this.serializeParams(e),this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Wn=function(){},Gn=function(e){function o(t){return e.call(this,t,"/tipoContacto")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Yn=function(){},Kn=function(e){function o(t){return e.call(this,t,"ubicacion")||this}return J(o,e),o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),Qn=function(){function e(){}return e.ARTICULO=2,e.USO_CFDI=11,e}(),Xn=function(e){function o(t){var n=e.call(this,t,"acreedorCuentaContable")||this;return n.httpClient=t,n}return J(o,e),o.prototype.cuentasContables=function(){return this.httpClient.get(this.getUrl()+"/cuentaContable/obtieneCuentasContablesRecursivo/",this.buildAuth())},o.ɵfac=function(e){return new(e||o)(t.ɵɵinject(n.HttpClient))},o.ɵprov=t.ɵɵdefineInjectable({token:o,factory:o.ɵfac,providedIn:"root"}),o}(K),eo=function(){},to=function(){};e.AcreedorCuentaContableService=Xn,e.AcreedorService=Nt,e.Agente=Re,e.AgenteService=un,e.Almacen=pn,e.AlmacenService=it,e.Auth=we,e.AuthService=Ee,e.Authenticated=sn,e.Banco=mn,e.BancoService=fn,e.CanActivateGuard=an,e.CatalogoAdicionalService=ln,e.CatalogoTipo=hn,e.CatalogoTipoService=gn,e.CclistaComponent=re,e.CcseleccionDialogComponent=se,e.ClasificadorTipo=Ke,e.ClasificadorTipoService=vn,e.ClaveAumentoDisminucionService=Jn,e.ClaveMovimiento=bn,e.ClaveMovimientoService=Sn,e.Cliente=Le,e.ClienteCuentaBanco=yn,e.ClienteCuentaBancoService=wn,e.ClienteFlete=Cn,e.ClienteFleteService=En,e.ClienteService=Ne,e.ConfiguracionEmpresaAdministrativa=Tn,e.ControlAccesoService=tn,e.CoreLibModule=en,e.CrudService=K,e.CuentaContableModel=eo,e.DatoContacto=Mn,e.DatoContactoService=An,e.DatoDireccion=dn,e.DatoDireccionService=kn,e.Departamento=jn,e.DepartamentoService=Pn,e.Empresa=On,e.EmpresaService=Dn,e.Error404Component=de,e.EstadoCivil=zn,e.FileService=ve,e.Flete=xn,e.FleteService=Hn,e.FormaPago=_n,e.FormaPagoService=Fn,e.Genero=qn,e.GlobalService=Y,e.HttpLoaderFactory=Xt,e.InitService=nn,e.LoadingComponent=fe,e.LoadingScreenComponent=he,e.LoadingScreenService=ue,e.LoadingService=me,e.LoginModalComponent=je,e.LoginModalService=ce,e.MessageService=on,e.Moneda=Bn,e.MonedaService=Un,e.NormaInformacionFinancieraModel=to,e.PaginateService=Ve,e.PdfModalComponent=xe,e.PdfModalService=ge,e.Persona=Ue,e.PersonaFisica=ze,e.PersonaFisicaService=Rn,e.PersonaMoral=qe,e.PersonaMoralService=rn,e.Proveedor=Qe,e.ProveedorCuentaBanco=Ln,e.ProveedorCuentaBancoService=Vn,e.ProveedorFlete=Nn,e.ProveedorFleteService=$n,e.ProveedorService=Xe,e.SeleccionaArticuloComponent=Lt,e.SelectAcreedorComponent=Yt,e.SelectClienteComponent=Ye,e.SelectProveedorComponent=ot,e.SerieDocumento=Wn,e.SerieDocumentoService=Zn,e.SessionCajaService=Pe,e.SessionCreateComponent=Be,e.StockService=rt,e.TipoCatalogo=Qn,e.TipoContacto=In,e.TipoContactoService=Gn,e.Ubicacion=Yn,e.UbicacionService=Kn,e.Usuario=Ce,e.VersionCheckService=cn,e.httpInterceptor=pe,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=visorus-erp-core.umd.min.js.map
|