visorus-erp-core 1.0.8 → 10.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 +3074 -4437
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +1 -15
- 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 +175 -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 +120 -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 +171 -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 +106 -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 +114 -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 +433 -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 +118 -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/fesm2015/visorus-erp-core.js +1951 -3598
- package/fesm2015/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 +15 -12
- package/visorus-erp-core.d.ts +1 -6
- package/esm5/lib/app.module.js +0 -60
- package/esm5/lib/components/acreedor/select/select-acreedor.component.js +0 -139
- package/esm5/lib/components/acreedor/services/acreedor.service.js +0 -38
- package/esm5/lib/components/acreedor/services/acreedorCuentaContable.js +0 -49
- package/esm5/lib/components/agente/models/Agente.js +0 -46
- package/esm5/lib/components/agente/services/agente.service.js +0 -75
- package/esm5/lib/components/almacen/models/Almacen.js +0 -43
- package/esm5/lib/components/almacen/services/almacen.service.js +0 -49
- package/esm5/lib/components/banco/models/Banco.js +0 -33
- package/esm5/lib/components/banco/services/banco.service.js +0 -29
- package/esm5/lib/components/caja/session-create/session-create.component.js +0 -181
- package/esm5/lib/components/caja/sessionCaja.service.js +0 -38
- package/esm5/lib/components/catalogoTipo/models/CatalogoTipo.js +0 -25
- package/esm5/lib/components/catalogoTipo/services/catalogoTipo.service.js +0 -29
- package/esm5/lib/components/clasificadorTipo/models/ClasificadorTipo.js +0 -25
- package/esm5/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +0 -29
- package/esm5/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +0 -29
- package/esm5/lib/components/claveMovimiento/models/ClaveMovimiento.js +0 -53
- package/esm5/lib/components/claveMovimiento/services/claveMovimiento.service.js +0 -29
- package/esm5/lib/components/cliente/models/Cliente.js +0 -92
- package/esm5/lib/components/cliente/models/ClienteCuentaBanco.js +0 -30
- package/esm5/lib/components/cliente/models/ClienteFlete.js +0 -30
- package/esm5/lib/components/cliente/select/select-cliente.component.js +0 -157
- package/esm5/lib/components/cliente/services/cliente.service.js +0 -40
- package/esm5/lib/components/cliente/services/clienteCuentaBanco.service.js +0 -51
- package/esm5/lib/components/cliente/services/clienteFlete.service.js +0 -51
- package/esm5/lib/components/contacto/models/DatoContacto.js +0 -25
- package/esm5/lib/components/contacto/services/datoContacto.service.js +0 -29
- package/esm5/lib/components/dato-direccion/models/DatoDireccion.js +0 -43
- package/esm5/lib/components/dato-direccion/services/datoDireccion.service.js +0 -29
- package/esm5/lib/components/departamento/models/Departamento.js +0 -25
- package/esm5/lib/components/departamento/services/departamento.service.js +0 -29
- package/esm5/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +0 -69
- package/esm5/lib/components/empresa/models/Empresa.js +0 -33
- package/esm5/lib/components/empresa/services/empresa.service.js +0 -48
- package/esm5/lib/components/error404/error404.component.js +0 -29
- package/esm5/lib/components/flete/models/Flete.js +0 -21
- package/esm5/lib/components/flete/services/flete.service.js +0 -38
- package/esm5/lib/components/formaPago/models/FormaPago.js +0 -27
- package/esm5/lib/components/formaPago/services/FormaPago.service.js +0 -29
- package/esm5/lib/components/loading/loading.component.js +0 -61
- package/esm5/lib/components/loading/loading.service.js +0 -59
- package/esm5/lib/components/loading-screen/loading-screen.component.js +0 -104
- package/esm5/lib/components/loading-screen/loading-screen.service.js +0 -67
- package/esm5/lib/components/login-modal/login-modal.component.js +0 -137
- package/esm5/lib/components/login-modal/login-modal.service.js +0 -36
- package/esm5/lib/components/moneda/models/Moneda.js +0 -33
- package/esm5/lib/components/moneda/services/moneda.service.js +0 -38
- package/esm5/lib/components/pdfModal/pdf-modal.component.js +0 -107
- package/esm5/lib/components/pdfModal/pdf-modal.service.js +0 -59
- package/esm5/lib/components/persona-fisica/models/EstadoCivil.js +0 -23
- package/esm5/lib/components/persona-fisica/models/Genero.js +0 -21
- package/esm5/lib/components/persona-fisica/models/Persona.js +0 -37
- package/esm5/lib/components/persona-fisica/models/PersonaFisica.js +0 -27
- package/esm5/lib/components/persona-fisica/services/personaFisica.service.js +0 -56
- package/esm5/lib/components/proveedor/models/Proveedor.js +0 -52
- package/esm5/lib/components/proveedor/models/ProveedorCuentaBanco.js +0 -30
- package/esm5/lib/components/proveedor/models/ProveedorFlete.js +0 -30
- package/esm5/lib/components/proveedor/select/select-proveedor.component.js +0 -139
- package/esm5/lib/components/proveedor/services/proveedor.service.js +0 -38
- package/esm5/lib/components/proveedor/services/proveedorCuentaBanco.service.js +0 -51
- package/esm5/lib/components/proveedor/services/proveedorFlete.service.js +0 -51
- package/esm5/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +0 -137
- package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +0 -51
- package/esm5/lib/components/selecciona-articulo/selecciona-articulo.component.js +0 -264
- package/esm5/lib/components/selecciona-articulo/stock.service.js +0 -75
- package/esm5/lib/components/serieDocumento/models/SerieDocumento.js +0 -61
- package/esm5/lib/components/serieDocumento/services/serieDocumento.service.js +0 -58
- package/esm5/lib/components/tipo-contacto/models/TipoContacto.js +0 -22
- package/esm5/lib/components/tipo-contacto/services/tipoContacto.service.js +0 -29
- package/esm5/lib/components/ubicacion/models/Ubicacion.js +0 -41
- package/esm5/lib/components/ubicacion/services/ubicacion.service.js +0 -29
- package/esm5/lib/contabilidad/componentes/cclista/cclista.component.js +0 -333
- package/esm5/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +0 -94
- package/esm5/lib/contabilidad/modelos/cuentaContable.model.js +0 -49
- package/esm5/lib/contabilidad/modelos/normaInfoFinanciera.model.js +0 -25
- package/esm5/lib/contabilidad/servicios/cuentacontable.service.js +0 -47
- package/esm5/lib/globalPrimeNg.js +0 -73
- package/esm5/lib/httpInterceptor/httpInterceptor.js +0 -154
- package/esm5/lib/importComponents.js +0 -32
- package/esm5/lib/importComponetsConta.js +0 -12
- package/esm5/lib/models/PersonaMoral.js +0 -31
- package/esm5/lib/models/Usuario.js +0 -25
- package/esm5/lib/models/auth.js +0 -19
- package/esm5/lib/services/auth.service.js +0 -378
- package/esm5/lib/services/authenticated.service.js +0 -133
- package/esm5/lib/services/canActivateGuard.service.ts.js +0 -59
- package/esm5/lib/services/catalogo-adicional.service.js +0 -38
- package/esm5/lib/services/controlAcceso.service.js +0 -92
- package/esm5/lib/services/crud.service.js +0 -156
- package/esm5/lib/services/file.service.js +0 -157
- package/esm5/lib/services/global.service.js +0 -155
- package/esm5/lib/services/init.service.js +0 -108
- package/esm5/lib/services/message.service.js +0 -125
- package/esm5/lib/services/paginate.service.js +0 -115
- package/esm5/lib/services/personaMoral.service.js +0 -29
- package/esm5/lib/services/versionCheck.service.js +0 -117
- package/esm5/lib/utils/tipo_catalogo.ts.js +0 -22
- package/esm5/public_api.js +0 -100
- package/esm5/visorus-erp-core.js +0 -15
- package/fesm5/visorus-erp-core.js +0 -6108
- package/fesm5/visorus-erp-core.js.map +0 -1
- package/visorus-erp-core.metadata.json +0 -1
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs"),require("rxjs/internal/operators"),require("ngx-toastr"),require("rxjs/operators"),require("@ngx-translate/core"),require("@angular/platform-browser"),require("primeng/button"),require("primeng/inputtext"),require("primeng/dropdown"),require("primeng/inputmask"),require("primeng/messages"),require("primeng/message"),require("primeng/paginator"),require("primeng/confirmdialog"),require("primeng/progressbar"),require("primeng/tristatecheckbox"),require("primeng/keyfilter"),require("primeng/inputswitch"),require("primeng/dialog"),require("primeng/tabview"),require("primeng/calendar"),require("primeng/panel"),require("primeng/treetable"),require("primeng/table"),require("primeng/autocomplete"),require("primeng/fieldset"),require("primeng/growl"),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/api"),require("primeng/primeng"),require("@ngx-translate/http-loader"),require("@angular/common"),require("@angular/router")):"function"==typeof define&&define.amd?define("visorus-erp-core",["exports","@angular/core","@angular/common/http","rxjs","rxjs/internal/operators","ngx-toastr","rxjs/operators","@ngx-translate/core","@angular/platform-browser","primeng/button","primeng/inputtext","primeng/dropdown","primeng/inputmask","primeng/messages","primeng/message","primeng/paginator","primeng/confirmdialog","primeng/progressbar","primeng/tristatecheckbox","primeng/keyfilter","primeng/inputswitch","primeng/dialog","primeng/tabview","primeng/calendar","primeng/panel","primeng/treetable","primeng/table","primeng/autocomplete","primeng/fieldset","primeng/growl","primeng/checkbox","primeng/tree","primeng/radiobutton","primeng/tabmenu","primeng/overlaypanel","primeng/tooltip","primeng/card","primeng/menubar","primeng/api","primeng/primeng","@ngx-translate/http-loader","@angular/common","@angular/router"],e):e((t=t||self)["visorus-erp-core"]={},t.ng.core,t.ng.common.http,t.rxjs,t.rxjs["internal/operators"],t.ngxToastr,t.rxjs.operators,t.core$1,t.ng.platformBrowser,t.button,t.inputtext,t.dropdown,t.inputmask,t.messages,t.message,t.paginator,t.confirmdialog,t.progressbar,t.tristatecheckbox,t.keyfilter,t.inputswitch,t.dialog,t.tabview,t.calendar,t.panel,t.treetable,t.table,t.autocomplete,t.fieldset,t.growl,t.checkbox,t.tree,t.radiobutton,t.tabmenu,t.overlaypanel,t.tooltip,t.card,t.menubar,t.api,t.primeng,t.httpLoader,t.ng.common,t.ng.router)}(this,(function(t,e,n,o,r,i,a,s,c,l,u,p,d,h,f,g,m,v,b,y,w,I,C,S,x,j,D,A,k,M,P,E,H,T,_,U,O,q,L,z,F,R,B){"use strict";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
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})}));
|
|
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="undefined"!=typeof globalThis?globalThis:e||self)["visorus-erp-core"]={},e.ng.core,e.ng.common.http,e.ng.forms,e.i6,e.i4,e.i4$1,e.ng.common,e.i7,e.i4$2,e.rxjs,e.rxjs["internal/operators"],e.i1$1,e.i3,e.rxjs.operators,e.ng.platformBrowser,e.i8$1,e.i10,e.i23,e.i24,e.i25,e.i26,e.i28,e.i29,e.i30,e.i31,e.i32,e.i34,e.i20,e.i35,e.i17,e.i38,e.i16,e.i39,e.i15,e.i40,e.i14,e.i13,e.i12,e.i41,e.i37,e.i36,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,I,E,M,A,j,k,P,_,O,T,D,B,H,F,U,z,q,R,L,N){"use strict";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)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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 G(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,o=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}Object.create;function W(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.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;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 t(t){var n=e.call(this,t,"cuentaContable")||this;return n.httpClient=t,n}return J(t,e),t.prototype.obtieneCuentasContablesRecursivo=function(){return this.httpClient.get(this.getUrl("cuentaContable")+"/obtieneCuentasContablesRecursivo",this.buildAuth())},t}(K);function X(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th",5),t.ɵɵtext(2,"Cuenta contable"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"th",5),t.ɵɵtext(4,"Descripción"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"th",6),t.ɵɵtext(6,"Naturaleza"),t.ɵɵelementEnd(),t.ɵɵelementStart(7,"th",7),t.ɵɵtext(8,"Tipo"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"th",8),t.ɵɵtext(10,"Acciones"),t.ɵɵelementEnd(),t.ɵɵelementEnd())}function ee(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",16),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",16),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",9),t.ɵɵelement(2,"p-treeTableToggler",10),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"td",9),t.ɵɵtext(5),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"td",11),t.ɵɵtext(7),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"td",12),t.ɵɵtext(9),t.ɵɵelementEnd(),t.ɵɵelementStart(10,"td",13),t.ɵɵelementStart(11,"div",14),t.ɵɵtemplate(12,ee,1,0,"button",15),t.ɵɵtemplate(13,te,1,0,"button",15),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)}}Q.ɵfac=function(e){return new(e||Q)(t.ɵɵinject(n.HttpClient))},Q.ɵprov=t.ɵɵdefineInjectable({token:Q,factory:Q.ɵfac,providedIn:"root"});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=W(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=W(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=W(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=W(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}();re.ɵfac=function(e){return new(e||re)(t.ɵɵdirectiveInject(Q))},re.ɵcmp=t.ɵɵdefineComponent({type:re,selectors:[["lib-cclista"]],inputs:{isShared:"isShared",typeAccount:"typeAccount"},outputs:{evSelectedAccount:"evSelectedAccount"},decls:5,vars:8,consts:[["type","text","pInputText","","placeholder","Cuenta o descripción",2,"width","100%",3,"ngModel","ngModelChange","keyup"],[2,"padding","10px"],[3,"value","scrollable","scrollHeight","resizableColumns"],["pTemplate","header"],["pTemplate","body","style","width: 100%;"],[2,"width","150px"],[2,"width","90px"],[2,"width","60px"],[2,"width","200px"],[1,"ui-resizable-column",2,"width","150px"],[3,"rowNode"],[1,"ui-resizable-column",2,"width","90px"],[1,"ui-resizable-column",2,"width","60px"],[1,"ui-resizable-column",2,"width","200px"],[1,"button-row"],["pButton","","type","button","icon","pi pi-check","class","ui-button-raised ui-button-success",3,"click",4,"ngIf"],["pButton","","type","button","icon","pi pi-check",1,"ui-button-raised","ui-button-success",3,"click"]],template:function(e,n){1&e&&(t.ɵɵelementStart(0,"input",0),t.ɵɵlistener("ngModelChange",(function(e){return n.query=e}))("keyup",(function(e){return n.filterAccounts(e)})),t.ɵɵelementEnd(),t.ɵɵelementStart(1,"div",1),t.ɵɵelementStart(2,"p-treeTable",2),t.ɵɵtemplate(3,X,11,0,"ng-template",3),t.ɵɵtemplate(4,ne,14,7,"ng-template",4),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(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:[""]});var 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}();se.ɵfac=function(e){return new(e||se)},se.ɵcmp=t.ɵɵdefineComponent({type:se,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:[""]});var ce=function(){function e(){this.modal=new t.EventEmitter}return e.prototype.showModal=function(){this.modal.emit(!0)},e}();ce.ɵfac=function(e){return new(e||ce)},ce.ɵprov=t.ɵɵdefineInjectable({token:ce,factory:ce.ɵfac,providedIn:"root"});var 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:!1,configurable:!0}),e.prototype.startLoading=function(){this.loading=!0},e.prototype.stopLoading=function(){this.loading=!1},e}();ue.ɵfac=function(e){return new(e||ue)},ue.ɵprov=t.ɵɵdefineInjectable({token:ue,factory:ue.ɵfac,providedIn:"root"});var 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}();pe.ɵfac=function(e){return new(e||pe)(t.ɵɵinject(ce),t.ɵɵinject(d.ToastrService),t.ɵɵinject(ue))},pe.ɵprov=t.ɵɵdefineInjectable({token:pe,factory:pe.ɵfac});var de=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();de.ɵfac=function(e){return new(e||de)},de.ɵcmp=t.ɵɵdefineComponent({type:de,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}"]});var 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}();me.ɵfac=function(e){return new(e||me)},me.ɵprov=t.ɵɵdefineInjectable({token:me,factory:me.ɵfac,providedIn:"root"});var fe=function(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)}))};fe.ɵfac=function(e){return new(e||fe)(t.ɵɵdirectiveInject(me))},fe.ɵcmp=t.ɵɵdefineComponent({type:fe,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%]{height:170px;position:relative;width:130px}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{bottom:30px;content:"";height:0;left:15px;position:absolute;transform:scale(0);transition:all .2s ease;width:0;z-index:1}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{bottom:-30px;color:#fff;font-family:Abel,sans-serif;font-size:12px;left:-7%;letter-spacing:2px;position:absolute;text-align:center;width:120%}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{-webkit-animation-duration:.8s;-webkit-animation-iteration-count:infinite;-webkit-animation-name:spaceboots;-webkit-animation-timing-function:linear;-webkit-transform-origin:50% 50%;bottom:-3px;position:absolute;z-index:99}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{color:#fff;display:block;height:140px;left:28px;overflow:hidden;position:absolute;width:100%;z-index:2}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;left:0;opacity:0;position:absolute;text-rendering:auto;top:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{animation:a 1.1s linear infinite;content:"\\f13b";font-size:20px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{animation:b 1.3s linear infinite;content:"\\f13c"}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{animation:c .9s linear infinite;content:"\\f121";font-size:25px}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{animation:d .7s linear infinite;content:"\\f19a "}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{opacity:0;transform:translate(30px) rotate(30deg)}to{opacity:1;transform:translate(30px,150px) rotate(-50deg)}}@keyframes b{0%{opacity:0;transform:translate(50px) rotate(-40deg)}to{opacity:1;transform:translate(40px,150px) rotate(80deg)}}@keyframes c{0%{opacity:0;transform:translate(70px) rotate(10deg)}to{opacity:1;transform:translate(60px,150px) rotate(70deg)}}@keyframes d{0%{opacity:0;transform:translate(30px) rotate(-50deg)}to{opacity:1;transform:translate(45px,150px) rotate(30deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,0)!important;border:0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}']});var 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}();he.ɵfac=function(e){return new(e||he)(t.ɵɵdirectiveInject(ue),t.ɵɵdirectiveInject(t.ElementRef),t.ɵɵdirectiveInject(t.ChangeDetectorRef),t.ɵɵdirectiveInject(me))},he.ɵcmp=t.ɵɵdefineComponent({type:he,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%]{background-color:rgba(0,0,0,.384);display:block;height:100%;position:fixed;width:100%;z-index:100000}.loading-screen-icon[_ngcontent-%COMP%]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{border-radius:70px;filter:url(#goo);height:300px;overflow:hidden;position:relative;transform-style:preserve-3d;width:300px}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158;transform-origin:left top;transform-style:preserve-3d}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{background:#475158;border-radius:50%;height:30px;left:50%;position:absolute;top:50%;transform:scale(.9) translate(-50%,-50%);width:30px}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;opacity:0;transform-origin:center top}.blob[_ngcontent-%COMP%]:first-child{animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"]});var 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}();ge.ɵfac=function(e){return new(e||ge)},ge.ɵprov=t.ɵɵdefineInjectable({token:ge,factory:ge.ɵfac,providedIn:"root"});var 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}();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)}}ve.ɵfac=function(e){return new(e||ve)(t.ɵɵinject(d.ToastrService),t.ɵɵinject(m.TranslateService))},ve.ɵprov=t.ɵɵdefineInjectable({token:ve,factory:ve.ɵfac,providedIn:"root"});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}();xe.ɵfac=function(e){return new(e||xe)(t.ɵɵdirectiveInject(ge),t.ɵɵdirectiveInject(ve),t.ɵɵdirectiveInject(h.DomSanitizer))},xe.ɵcmp=t.ɵɵdefineComponent({type:xe,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}"]});var Ce=function(){},we=function(){},Ie=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}();function Ee(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,Ee,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 je(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)}}Ie.ɵfac=function(e){return new(e||Ie)(t.ɵɵinject(n.HttpClient),t.ɵɵinject(me))},Ie.ɵprov=t.ɵɵdefineInjectable({token:Ie,factory:Ie.ɵfac,providedIn:"root"});var ke=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}();ke.ɵfac=function(e){return new(e||ke)(t.ɵɵdirectiveInject(ce),t.ɵɵdirectiveInject(Ie))},ke.ɵcmp=t.ɵɵdefineComponent({type:ke,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,je,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}"]});var Pe=function(e){function t(t){var n=e.call(this,t,"sessionCaja")||this;return n.httpClient=t,n}return J(t,e),t}(K);function _e(e,n){if(1&e&&(t.ɵɵelementStart(0,"a",4),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext();t.ɵɵadvance(1),t.ɵɵtextInterpolate1("",o.labels.title,": ")}}function Oe(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"div",5),t.ɵɵelementStart(1,"div",6),t.ɵɵelementStart(2,"label",7),t.ɵɵtext(3,"Nombre de caja: "),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"input",8),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().caja.nombre=e})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"div",9),t.ɵɵelementStart(6,"label",10),t.ɵɵtext(7,"Saldo: "),t.ɵɵelementEnd(),t.ɵɵelementStart(8,"input",11),t.ɵɵlistener("ngModelChange",(function(e){return t.ɵɵrestoreView(o),t.ɵɵnextContext().session.monto=e})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"div",9),t.ɵɵelementStart(10,"label",12),t.ɵɵtext(11,"Numero Z:"),t.ɵɵelementEnd(),t.ɵɵelementStart(12,"input",13),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.caja.nombre)("disabled",!0),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){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",17),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(o),t.ɵɵnextContext(2).save()})),t.ɵɵelementEnd()}}function De(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"button",18),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(o),t.ɵɵnextContext(2).edit()})),t.ɵɵelementEnd()}}function Be(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵtemplate(0,Te,1,0,"button",14),t.ɵɵtemplate(1,De,1,0,"button",15),t.ɵɵelementStart(2,"button",16),t.ɵɵlistener("click",(function(){return t.ɵɵrestoreView(o),t.ɵɵnextContext().closeModal()})),t.ɵɵelementEnd()}if(2&e){var r=t.ɵɵnextContext();t.ɵɵproperty("ngIf",!r.editMode&&r.caja),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",r.editMode&&r.caja)}}Pe.ɵfac=function(e){return new(e||Pe)(t.ɵɵinject(n.HttpClient))},Pe.ɵprov=t.ɵɵdefineInjectable({token:Pe,factory:Pe.ɵfac,providedIn:"root"});var He=function(){return{width:"750px"}},Fe=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 G(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 G(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}();Fe.ɵfac=function(e){return new(e||Fe)(t.ɵɵdirectiveInject(Pe))},Fe.ɵcmp=t.ɵɵdefineComponent({type:Fe,selectors:[["session-create"]],inputs:{showCreateSession:"showCreateSession",caja:"caja",monedaDenominacionList:"monedaDenominacionList",sessionEdit:"sessionEdit"},outputs:{status:"status",success:"success"},decls:6,vars:9,consts:[[3,"visible","modal","closeOnEscape","closable","blockScroll","visibleChange","onHide","onShow"],["pTemplate","header"],["class","grid grid-fluid",4,"ngIf"],["pTemplate","footer"],[1,"text-primary"],[1,"grid","grid-fluid"],[1,"p-field","col-12"],["for","nombreCaja"],["pInputText","","type","text","id","nombreCaja",3,"ngModel","disabled","ngModelChange"],[1,"p-field","col-12","md:col-6"],["for","saldoCaja"],["pInputText","","type","number","id","saldoCaja",3,"ngModel","disabled","ngModelChange"],["for","numeroZ"],["pInputText","","type","number","id","numeroZ",3,"ngModel","disabled","ngModelChange"],["pButton","","type","button","label","Guardar","class","p-button-sm",3,"click",4,"ngIf"],["pButton","","type","button","label","Cerrar session","class","p-button-sm p-button-success",3,"click",4,"ngIf"],["pButton","","type","button","label","Cancelar",1,"p-button-sm","p-button-danger",3,"click"],["pButton","","type","button","label","Guardar",1,"p-button-sm",3,"click"],["pButton","","type","button","label","Cerrar session",1,"p-button-sm","p-button-success",3,"click"]],template:function(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.ɵɵtemplate(1,_e,2,1,"ng-template",1),t.ɵɵtemplate(2,Oe,13,6,"div",2),t.ɵɵelementStart(3,"div"),t.ɵɵtext(4," Este agente no esta asignado a una caja "),t.ɵɵelementEnd(),t.ɵɵtemplate(5,Be,3,2,"ng-template",3),t.ɵɵelementEnd()),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction0(8,He)),t.ɵɵproperty("visible",n.showCreateSession)("modal",n.flagModal)("closeOnEscape",n.flagModal)("closable",n.flagModal)("blockScroll",!0),t.ɵɵadvance(2),t.ɵɵproperty("ngIf",n.caja))},directives:[c.Dialog,a.PrimeTemplate,l.NgIf,o.DefaultValueAccessor,r.InputText,o.NgControlStatus,o.NgModel,o.NumberValueAccessor,s.ButtonDirective],styles:[""]});var Ue=function(e){function t(t){return e.call(this,t,"/cliente")||this}return J(t,e),t.prototype.validar_archivos_bss=function(e){return this.getHttp().get(this.getUrl("/cliente/validarClienteBss/")+e,this.buildAuth())},t}(K);Ue.ɵfac=function(e){return new(e||Ue)(t.ɵɵinject(n.HttpClient))},Ue.ɵprov=t.ɵɵdefineInjectable({token:Ue,factory:Ue.ɵfac,providedIn:"root"});var ze=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}();function qe(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 Re(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 Le(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 Ne(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr",8),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,Re,3,3,"span",9),t.ɵɵtemplate(7,Le,3,3,"span",9),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 Ve(e,n){1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"td",10),t.ɵɵtext(2),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵadvance(2),t.ɵɵtextInterpolate(t.ɵɵpipeBind1(3,1,"general.noRegistros")))}ze.ɵfac=function(e){return new(e||ze)(t.ɵɵinject(m.TranslateService))},ze.ɵprov=t.ɵɵdefineInjectable({token:ze,factory:ze.ɵfac,providedIn:"root"});var $e=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}();$e.ɵfac=function(e){return new(e||$e)(t.ɵɵdirectiveInject(Ue),t.ɵɵdirectiveInject(ze))},$e.ɵcmp=t.ɵɵdefineComponent({type:$e,selectors:[["select-cliente"]],inputs:{clienteSeleccionado:"clienteSeleccionado",selectMode:"selectMode",visible:"visible"},outputs:{select:"select"},decls:10,vars:17,consts:[[3,"header","visible","visibleChange","onHide","onShow"],[1,"p-inputgroup","mt-2"],["type","text","pInputText","","name","filtro",3,"placeholder","ngModel","ngModelChange","keyup"],["pButton","","type","button","icon","pi pi-search","styleClass","p-button-secondary",3,"click"],["dataKey","id","scrollHeight","350px",3,"value","lazy","paginator","rows","totalRecords","selection","selectionMode","scrollable","loading","onLazyLoad","selectionChange","onRowSelect"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"pSelectableRow"],[4,"ngIf"],["colspan","6"]],template:function(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,"input",2),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("keyup",(function(){return n.aplicarFiltro()})),t.ɵɵpipe(4,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"button",3),t.ɵɵlistener("click",(function(){return n.aplicarFiltro()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"p-table",4),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(7,qe,19,18,"ng-template",5),t.ɵɵtemplate(8,Ne,14,8,"ng-template",6),t.ɵɵtemplate(9,Ve,4,3,"ng-template",7),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,13,"Seleccionar cliente ")),t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(3),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(4,15,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(3),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,r.InputText,o.NgControlStatus,o.NgModel,s.ButtonDirective,g.Table,a.PrimeTemplate,g.SelectableRow,l.NgIf],pipes:[m.TranslatePipe],encapsulation:2});var Je=function(){},Ze=function(){this.datoPersona=new Je,this.contactos=[],this.datoDirecciones=[]},Ge=function(){this.representanteLegal=new Ze,this.contactos=[],this.datoDirecciones=[]},We=function(){},Ye=function(){this.personaMoral=new Ge,this.catalogoTipo=new We,this.clasificadorTipo=new We,this.personaFisica=new Ze},Ke=function(e){function t(t){var n=e.call(this,t,"/proveedor")||this;return n.httpClient=t,n}return J(t,e),t}(K);function Qe(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 Xe(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)}}Ke.ɵfac=function(e){return new(e||Ke)(t.ɵɵinject(n.HttpClient))},Ke.ɵprov=t.ɵɵdefineInjectable({token:Ke,factory:Ke.ɵfac,providedIn:"root"});var et=function(){return[10,25,50,100,500]},tt=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 Ye,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}();tt.ɵfac=function(e){return new(e||tt)(t.ɵɵdirectiveInject(Ke),t.ɵɵdirectiveInject(ze),t.ɵɵdirectiveInject(m.TranslateService))},tt.ɵcmp=t.ɵɵdefineComponent({type:tt,selectors:[["select-proveedor"]],inputs:{visible:"visible",proveedorSeleccionado:"proveedorSeleccionado"},outputs:{select:"select"},decls:10,vars:16,consts:[[3,"header","visible","visibleChange","onHide","onShow"],[1,"p-inputgroup","mt-2"],["type","text","pInputText","","name","filtro",3,"placeholder","ngModel","ngModelChange","change"],["pButton","","type","button","icon","pi pi-search","styleClass","p-button-secondary",3,"click"],["selectionMode","single","scrollHeight","350px",3,"value","selection","scrollable","valueChange","selectionChange","onRowSelect"],["pTemplate","header"],["pTemplate","body"],[3,"rows","totalRecords","pageLinkSize","rowsPerPageOptions","onPageChange"]],template:function(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,"input",2),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("change",(function(){return n.cargarDatosProveedores()})),t.ɵɵpipe(4,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"button",3),t.ɵɵlistener("click",(function(){return n.cargarDatosProveedores()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(6,"p-table",4),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(7,Qe,10,9,"ng-template",5),t.ɵɵtemplate(8,Xe,7,3,"ng-template",6),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"p-paginator",7),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,11,"ArticuloProveedor.proveedores")),t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(3),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(4,13,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(3),t.ɵɵproperty("value",n.proveedores)("selection",n.proveedorSeleccionado)("scrollable",!0),t.ɵɵadvance(3),t.ɵɵproperty("rows",n.page.rows)("totalRecords",n.page.total)("pageLinkSize",5)("rowsPerPageOptions",t.ɵɵpureFunction0(15,et)))},directives:[c.Dialog,o.DefaultValueAccessor,r.InputText,o.NgControlStatus,o.NgModel,s.ButtonDirective,g.Table,a.PrimeTemplate,v.Paginator],pipes:[m.TranslatePipe],encapsulation:2});var nt=function(e){function t(t){var n=e.call(this,t,"stock")||this;return n.httpClient=t,n}return J(t,e),t.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)}))}))},t}(K);nt.ɵfac=function(e){return new(e||nt)(t.ɵɵinject(n.HttpClient))},nt.ɵprov=t.ɵɵdefineInjectable({token:nt,factory:nt.ɵfac,providedIn:"root"});var ot=function(e){function t(t){var n=e.call(this,t,"/almacen")||this;return n.httpClient=t,n}return J(t,e),t.prototype.obtenerAlmacenEmpresa=function(){var e=this.geturl()+"/obtenerAlmacenEmpresa";return this.getHttp().get(e,this.buildAuth())},t}(K);ot.ɵfac=function(e){return new(e||ot)(t.ɵɵinject(n.HttpClient))},ot.ɵprov=t.ɵɵdefineInjectable({token:ot,factory:ot.ɵfac,providedIn:"root"});var rt=function(e){function t(t){var n=e.call(this,t,"articulo")||this;return n.httpClient=t,n}return J(t,e),t.prototype.obtenerExistencias=function(e){var t="/existenciasArticulo/"+e;return this.httpClient.get(this.geturl()+t,this.buildAuth())},t}(K);function it(e,n){if(1&e&&t.ɵɵelement(0,"col"),2&e){var o=n.$implicit;t.ɵɵstyleProp("width",o.width)}}function at(e,n){if(1&e&&(t.ɵɵelementStart(0,"colgroup"),t.ɵɵtemplate(1,it,1,2,"col",7),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",o)}}function lt(e,n){if(1&e&&(t.ɵɵelementStart(0,"th",9),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate1(" ",o.header," ")}}function st(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵtemplate(1,lt,2,1,"th",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,"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)}}rt.ɵfac=function(e){return new(e||rt)(t.ɵɵinject(n.HttpClient))},rt.ɵprov=t.ɵɵdefineInjectable({token:rt,factory:rt.ɵfac,providedIn:"root"});var ut=function(e){return{width:e,"min-width":"200px"}},pt=function(){return{width:"600px"}},dt=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}();function mt(e,n){if(1&e&&(t.ɵɵelementStart(0,"option",22),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵpropertyInterpolate("value",o.id),t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.descripcion)}}function ft(e,n){1&e&&(t.ɵɵelementStart(0,"th",31),t.ɵɵtext(1,"existenciaSecundaria"),t.ɵɵelementEnd())}function ht(e,n){1&e&&(t.ɵɵelementStart(0,"th",25),t.ɵɵtext(1,"Unidad"),t.ɵɵelementEnd())}function gt(e,n){1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1,"Precio"),t.ɵɵelementEnd())}function vt(e,n){1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1,"Precio 2"),t.ɵɵelementEnd())}function bt(e,n){1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1,"Precio 3"),t.ɵɵelementEnd())}function St(e,n){1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1,"Precio 4"),t.ɵɵelementEnd())}function yt(e,n){1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1,"Precio 5"),t.ɵɵelementEnd())}function xt(e,n){1&e&&(t.ɵɵelementStart(0,"th",25),t.ɵɵtext(1,"Movimiento.costo"),t.ɵɵelementEnd())}function Ct(e,n){if(1&e&&(t.ɵɵelementStart(0,"th",23),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.descripcion)}}function wt(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr"),t.ɵɵelementStart(1,"th",23),t.ɵɵtext(2,"Código Ubicacion"),t.ɵɵelementEnd(),t.ɵɵelementStart(3,"th",24),t.ɵɵtext(4,"Existencia"),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"th",25),t.ɵɵtext(6,"Unidad"),t.ɵɵelementEnd(),t.ɵɵtemplate(7,ft,2,0,"th",26),t.ɵɵtemplate(8,ht,2,0,"th",27),t.ɵɵelementStart(9,"th",23),t.ɵɵtext(10,"Código"),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"th",28),t.ɵɵtext(12,"Descripcion"),t.ɵɵelementEnd(),t.ɵɵelement(13,"th",25),t.ɵɵtemplate(14,gt,2,0,"th",29),t.ɵɵtemplate(15,vt,2,0,"th",29),t.ɵɵtemplate(16,bt,2,0,"th",29),t.ɵɵtemplate(17,St,2,0,"th",29),t.ɵɵtemplate(18,yt,2,0,"th",29),t.ɵɵtemplate(19,xt,2,0,"th",27),t.ɵɵelementStart(20,"th",25),t.ɵɵtext(21,"Existencia por Unidad"),t.ɵɵelementEnd(),t.ɵɵtemplate(22,Ct,2,1,"th",30),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 It(e,n){1&e&&(t.ɵɵelementStart(0,"td",23),t.ɵɵtext(1,"Movimiento.NoAsignado"),t.ɵɵelementEnd())}function Et(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.ubicacionCodigo)}}function Mt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",44),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.existenciaSecundaria)}}function At(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",36),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=t.ɵɵnextContext().$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.unidadSecundariaCodigo)}}function jt(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.ɵɵtextInterpolate1("",t.ɵɵpipeBind1(2,1,o.precioConImpuestos)," ")}}function kt(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.precio2ConImpuestos))}}function Pt(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.precio3ConImpuestos))}}function _t(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.precio4ConImpuestos))}}function Ot(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.precio5ConImpuestos))}}function Tt(e,n){if(1&e&&(t.ɵɵelementStart(0,"td",36),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 Dt(e,n){if(1&e&&(t.ɵɵelementStart(0,"div",45),t.ɵɵelementStart(1,"div",46),t.ɵɵelementStart(2,"label",47),t.ɵɵtext(3),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"div",46),t.ɵɵelementStart(5,"label",47),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",39),t.ɵɵtext(1),t.ɵɵelementEnd()),2&e){var o=n.$implicit;t.ɵɵadvance(1),t.ɵɵtextInterpolate(o.valor)}}function Ht(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"tr",32),t.ɵɵtemplate(1,It,2,0,"td",33),t.ɵɵtemplate(2,Et,2,1,"td",34),t.ɵɵelementStart(3,"td",35),t.ɵɵtext(4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"td",36),t.ɵɵtext(6),t.ɵɵelementEnd(),t.ɵɵtemplate(7,Mt,2,1,"td",37),t.ɵɵtemplate(8,At,2,1,"td",38),t.ɵɵelementStart(9,"td",39),t.ɵɵtext(10),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"td",40),t.ɵɵtext(12),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"td",36),t.ɵɵelementStart(14,"button",41),t.ɵɵlistener("click",(function(){t.ɵɵrestoreView(o);var e=n.$implicit;return t.ɵɵnextContext().onShowInformacion(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(15,jt,3,3,"td",34),t.ɵɵtemplate(16,kt,3,3,"td",34),t.ɵɵtemplate(17,Pt,3,3,"td",34),t.ɵɵtemplate(18,_t,3,3,"td",34),t.ɵɵtemplate(19,Ot,3,3,"td",34),t.ɵɵtemplate(20,Tt,3,3,"td",38),t.ɵɵelementStart(21,"td",36),t.ɵɵtemplate(22,Dt,8,5,"div",42),t.ɵɵelementEnd(),t.ɵɵtemplate(23,Bt,2,1,"td",43),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 Ft(e,n){if(1&e){var o=t.ɵɵgetCurrentView();t.ɵɵelementStart(0,"lib-seleccion-articulo-informacion",48),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)}}dt.ɵfac=function(e){return new(e||dt)(t.ɵɵdirectiveInject(rt))},dt.ɵcmp=t.ɵɵdefineComponent({type:dt,selectors:[["lib-seleccion-articulo-informacion"]],inputs:{showModal:"showModal",articulo:"articulo"},outputs:{eventSelection:"eventSelection"},decls:8,vars:20,consts:[[3,"header","visible","modal","minY","baseZIndex","draggable","blockScroll","maximizable","breakpoint","onShow","visibleChange","onHide","resize"],["scrollHeight","350px",3,"columns","value","scrollable","responsive"],["pTemplate","colgroup"],["pTemplate","header"],["pTemplate","body"],[1,"container-end"],["pButton","","type","button","icon","pi pi-replay","label","Cerrar",1,"ui-button-raised","ui-button-secondary",3,"click"],[3,"width",4,"ngFor","ngForOf"],["pResizableColumn","",4,"ngFor","ngForOf"],["pResizableColumn",""]],template:function(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,"p-table",1),t.ɵɵtemplate(2,at,2,1,"ng-template",2),t.ɵɵtemplate(3,st,2,1,"ng-template",3),t.ɵɵtemplate(4,ct,11,5,"ng-template",4),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"p-footer"),t.ɵɵelementStart(6,"div",5),t.ɵɵelementStart(7,"button",6),t.ɵɵlistener("click",(function(){return n.hiddenDialog()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(17,ut,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(1),t.ɵɵstyleMap(t.ɵɵpureFunction0(19,pt)),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:[""]});var Ut=function(e){return{width:e,"min-width":"200px"}},zt=function(){return[10,25,50,100,500]},qt=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}();qt.ɵfac=function(e){return new(e||qt)(t.ɵɵdirectiveInject(nt),t.ɵɵdirectiveInject(ze),t.ɵɵdirectiveInject(ot))},qt.ɵcmp=t.ɵɵdefineComponent({type:qt,selectors:[["app-selecciona-articulo"]],inputs:{configuracion:"configuracion",showArticulos:"showArticulos",movimiento:"movimiento",manejaUnidadSecundaria:"manejaUnidadSecundaria"},outputs:{emitFilaSeleccionada:"emitFilaSeleccionada",emitShowArticulos:"emitShowArticulos"},decls:30,vars:25,consts:[[3,"header","visible","maximizable","baseZIndex","blockScroll","minY","visibleChange","onShow","onHide"],[1,"grid","grid-fluid"],[1,"col-12","md:col-6","lg:col-6"],[2,"display","flex"],[2,"width","115px"],["pInputText","",3,"ngModel","ngModelChange","change"],["value","C"],["value","D"],["value","CD"],["value","CI"],["type","text","pInputText","","id","key",2,"width","200px",3,"ngModel","ngModelChange","keypress"],["pButton","","type","button","icon","pi pi-search","styleClass","p-button-secondary",3,"click"],[2,"width","100px"],["for","almacen"],["pInputText","","disabled","","id","almacen",2,"width","200px",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],["scrollHeight","400px","selectionMode","single",3,"value","scrollable","responsive","onRowSelect"],["dt",""],["pTemplate","header"],["pTemplate","body"],[3,"rows","totalRecords","pageLinkSize","rowsPerPageOptions","onPageChange"],[3,"showModal","articulo","eventSelection",4,"ngIf"],[3,"value"],["translate","",2,"width","80px"],["translate","",2,"width","70px"],["translate","",2,"width","40px"],["style","width: 50px","translate","",4,"ngIf"],["style","width: 40px","translate","",4,"ngIf"],["translate","",2,"width","120px"],["style","width: 80px","translate","",4,"ngIf"],["style","width: 80px","translate","",4,"ngFor","ngForOf"],["translate","",2,"width","50px"],[3,"pSelectableRow"],["style","width: 80px;","translate","",4,"ngIf"],["style","width: 80px;",4,"ngIf"],[2,"width","70px"],[2,"width","40px"],["style","width: 50px;",4,"ngIf"],["style","width: 40px;",4,"ngIf"],[2,"width","80px"],[2,"width","120px"],["pButton","","type","button","icon","pi pi-eye",1,"ui-button-raised","ui-button-primary",3,"click"],["class","row justify-content-between",4,"ngFor","ngForOf"],["style","width: 80px;",4,"ngFor","ngForOf"],[2,"width","50px"],[1,"row","justify-content-between"],[1,"col-lg-4"],["for",""],[3,"showModal","articulo","eventSelection"]],template:function(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,"div",4),t.ɵɵelementStart(6,"select",5),t.ɵɵlistener("ngModelChange",(function(e){return n.busquedaArticulos.tipoBusqueda=e}))("change",(function(){return n.obtenerExistenciaArticulosVal()})),t.ɵɵelementStart(7,"option",6),t.ɵɵtext(8,"Codigo"),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"option",7),t.ɵɵtext(10,"Descripcion"),t.ɵɵelementEnd(),t.ɵɵelementStart(11,"option",8),t.ɵɵtext(12,"Coincidencia"),t.ɵɵelementEnd(),t.ɵɵelementStart(13,"option",9),t.ɵɵtext(14,"Igual a"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(15,"input",10),t.ɵɵlistener("ngModelChange",(function(e){return n.busquedaArticulos.key=e}))("keypress",(function(e){return n.obtenerExistenciaArticulosKey(e)})),t.ɵɵelementEnd(),t.ɵɵelementStart(16,"button",11),t.ɵɵlistener("click",(function(){return n.obtenerExistenciaArticulos()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(17,"div",2),t.ɵɵelementStart(18,"div",3),t.ɵɵelementStart(19,"div",12),t.ɵɵelementStart(20,"label",13),t.ɵɵtext(21,"Almacen:"),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(22,"select",14),t.ɵɵlistener("ngModelChange",(function(e){return n.movimiento.almacen=e}))("change",(function(){return n.obtenerExistenciaArticulosVal()})),t.ɵɵtemplate(23,mt,2,2,"option",15),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(24,"p-table",16,17),t.ɵɵlistener("onRowSelect",(function(e){return n.filaSeleccionada(e)})),t.ɵɵtemplate(26,wt,23,9,"ng-template",18),t.ɵɵtemplate(27,Ht,24,17,"ng-template",19),t.ɵɵelementEnd(),t.ɵɵelementStart(28,"p-paginator",20),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵtemplate(29,Ft,1,2,"lib-seleccion-articulo-informacion",21)),2&e&&(t.ɵɵstyleMap(t.ɵɵpureFunction1(22,Ut,n.size+"px")),t.ɵɵpropertyInterpolate("header",t.ɵɵpipeBind1(1,20,"Articulos")),t.ɵɵproperty("visible",n.showArticulos)("maximizable",!0)("baseZIndex",1e4)("blockScroll",!0)("minY",70),t.ɵɵadvance(6),t.ɵɵproperty("ngModel",n.busquedaArticulos.tipoBusqueda),t.ɵɵadvance(9),t.ɵɵproperty("ngModel",n.busquedaArticulos.key),t.ɵɵadvance(7),t.ɵɵproperty("ngModel",n.movimiento.almacen),t.ɵɵadvance(1),t.ɵɵproperty("ngForOf",n.almacenList),t.ɵɵadvance(1),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(24,zt)),t.ɵɵadvance(1),t.ɵɵproperty("ngIf",n.showModalInformacion))},directives:[c.Dialog,o.SelectControlValueAccessor,r.InputText,o.NgControlStatus,o.NgModel,o.NgSelectOption,o.ɵangular_packages_forms_forms_x,o.DefaultValueAccessor,s.ButtonDirective,l.NgForOf,g.Table,a.PrimeTemplate,v.Paginator,l.NgIf,m.TranslateDirective,g.SelectableRow,dt],pipes:[m.TranslatePipe,l.CurrencyPipe,l.DecimalPipe],styles:["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"]});var Rt=function(e){function t(t){var n=e.call(this,t,"acreedor")||this;return n.httpClient=t,n}return J(t,e),t}(K);function Lt(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 Nt(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 Vt(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 $t(e,n){if(1&e&&(t.ɵɵelementStart(0,"tr",9),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,Nt,3,3,"span",10),t.ɵɵtemplate(7,Vt,3,3,"span",10),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 Jt(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")))}Rt.ɵfac=function(e){return new(e||Rt)(t.ɵɵinject(n.HttpClient))},Rt.ɵprov=t.ɵɵdefineInjectable({token:Rt,factory:Rt.ɵfac,providedIn:"root"});var Zt=function(){return[10,25,50,100,500]},Gt=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 Ye,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}();Gt.ɵfac=function(e){return new(e||Gt)(t.ɵɵdirectiveInject(Rt),t.ɵɵdirectiveInject(ze),t.ɵɵdirectiveInject(m.TranslateService))},Gt.ɵcmp=t.ɵɵdefineComponent({type:Gt,selectors:[["select-acreedor"]],inputs:{visible:"visible",acreedorSeleccionado:"acreedorSeleccionado"},outputs:{select:"select"},decls:10,vars:14,consts:[["header","Selecciona el acreedor",3,"visible","visibleChange","onHide","onShow"],[1,"p-inputgroup","mt-2"],["type","text","pInputText","","name","filtro",3,"placeholder","ngModel","ngModelChange","keyup"],["pButton","","type","button","icon","pi pi-search","styleClass","p-button-secondary",3,"click"],["dataKey","id","selectionMode","single","scrollHeight","350px",3,"value","selection","scrollable","responsive","selectionChange","onRowSelect"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],[3,"rows","totalRecords","pageLinkSize","rowsPerPageOptions","onPageChange"],[3,"pSelectableRow"],[4,"ngIf"]],template:function(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,"input",2),t.ɵɵlistener("ngModelChange",(function(e){return n.page.filtro=e}))("keyup",(function(){return n.cargarDatosAcreedores()})),t.ɵɵpipe(3,"translate"),t.ɵɵelementEnd(),t.ɵɵelementStart(4,"button",3),t.ɵɵlistener("click",(function(){return n.cargarDatosAcreedores()})),t.ɵɵelementEnd(),t.ɵɵelementEnd(),t.ɵɵelementStart(5,"p-table",4),t.ɵɵlistener("selectionChange",(function(e){return n.acreedorSeleccionado=e}))("onRowSelect",(function(e){return n.seleccionarAcreedor(e)})),t.ɵɵtemplate(6,Lt,19,18,"ng-template",5),t.ɵɵtemplate(7,$t,15,11,"ng-template",6),t.ɵɵtemplate(8,Jt,4,4,"ng-template",7),t.ɵɵelementEnd(),t.ɵɵelementStart(9,"p-paginator",8),t.ɵɵlistener("onPageChange",(function(e){return n.pagina(e)})),t.ɵɵelementEnd(),t.ɵɵelementEnd()),2&e&&(t.ɵɵproperty("visible",n.visible),t.ɵɵadvance(2),t.ɵɵpropertyInterpolate1("placeholder","",t.ɵɵpipeBind1(3,11,"buscar"),"..."),t.ɵɵproperty("ngModel",n.page.filtro),t.ɵɵadvance(3),t.ɵɵproperty("value",n.acreedores)("selection",n.acreedorSeleccionado)("scrollable",!0)("responsive",!0),t.ɵɵadvance(4),t.ɵɵproperty("rows",n.page.rows)("totalRecords",n.page.total)("pageLinkSize",5)("rowsPerPageOptions",t.ɵɵpureFunction0(13,Zt)))},directives:[c.Dialog,o.DefaultValueAccessor,r.InputText,o.NgControlStatus,o.NgModel,s.ButtonDirective,g.Table,a.PrimeTemplate,v.Paginator,g.SelectableRow,l.NgIf],pipes:[m.TranslatePipe,l.DatePipe],encapsulation:2});var Wt=[U.CardModule,F.TooltipModule,H.OverlayPanelModule,D.RadioButtonModule,O.CheckboxModule,P.AutoCompleteModule,g.TableModule,i.TreeTableModule,j.CalendarModule,g.TableModule,s.ButtonModule,r.InputTextModule,b.DropdownModule,S.InputMaskModule,y.MessagesModule,x.MessageModule,v.PaginatorModule,C.ConfirmDialogModule,w.ProgressBarModule,I.TriStateCheckboxModule,E.KeyFilterModule,M.InputSwitchModule,c.DialogModule,A.TabViewModule,k.PanelModule,R.ToolbarModule,q.SplitButtonModule,_.FieldsetModule,T.TreeModule,B.TabMenuModule,z.MenubarModule],Yt=[a.ConfirmationService];function Kt(e){return new L.TranslateHttpLoader(e,"./assets/i18n/",".json")}var Qt=function(){};Qt.ɵmod=t.ɵɵdefineNgModule({type:Qt}),Qt.ɵinj=t.ɵɵdefineInjector({factory:function(e){return new(e||Qt)},providers:[Yt,{provide:n.HTTP_INTERCEPTORS,useClass:pe,multi:!0}],imports:[[l.CommonModule,Wt,o.FormsModule,d.ToastrModule.forRoot(),m.TranslateModule.forRoot({loader:{provide:m.TranslateLoader,useFactory:Kt,deps:[n.HttpClient]}})]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(Qt,{declarations:[de,fe,he,ke,xe,Fe,$e,tt,qt,Gt,re,se,dt],imports:[l.CommonModule,U.CardModule,F.TooltipModule,H.OverlayPanelModule,D.RadioButtonModule,O.CheckboxModule,P.AutoCompleteModule,g.TableModule,i.TreeTableModule,j.CalendarModule,g.TableModule,s.ButtonModule,r.InputTextModule,b.DropdownModule,S.InputMaskModule,y.MessagesModule,x.MessageModule,v.PaginatorModule,C.ConfirmDialogModule,w.ProgressBarModule,I.TriStateCheckboxModule,E.KeyFilterModule,M.InputSwitchModule,c.DialogModule,A.TabViewModule,k.PanelModule,R.ToolbarModule,q.SplitButtonModule,_.FieldsetModule,T.TreeModule,B.TabMenuModule,z.MenubarModule,o.FormsModule,d.ToastrModule,m.TranslateModule],exports:[fe,he,ke,xe,Fe,$e,tt,qt,Gt,re,se]});var Xt=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}();Xt.ɵfac=function(e){return new(e||Xt)(t.ɵɵinject(Ie))},Xt.ɵprov=t.ɵɵdefineInjectable({token:Xt,factory:Xt.ɵfac,providedIn:"root"});var en=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}();en.ɵfac=function(e){return new(e||en)(t.ɵɵinject(n.HttpClient),t.ɵɵinject(Ie))},en.ɵprov=t.ɵɵdefineInjectable({token:en,factory:en.ɵfac,providedIn:"root"});var tn=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}();tn.ɵfac=function(e){return new(e||tn)(t.ɵɵinject(d.ToastrService))},tn.ɵprov=t.ɵɵdefineInjectable({token:tn,factory:tn.ɵfac,providedIn:"root"});var nn=function(e){function t(t){return e.call(this,t,"/personaMoral")||this}return J(t,e),t}(K);nn.ɵfac=function(e){return new(e||nn)(t.ɵɵinject(n.HttpClient))},nn.ɵprov=t.ɵɵdefineInjectable({token:nn,factory:nn.ɵfac,providedIn:"root"});var on=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}();on.ɵfac=function(e){return new(e||on)(t.ɵɵinject(Xt))},on.ɵprov=t.ɵɵdefineInjectable({token:on,factory:on.ɵfac,providedIn:"root"});var rn=function(e){function t(t){var n=e.call(this,t,"catalogoAdicional")||this;return n.httpClient=t,n}return J(t,e),t}(K);rn.ɵfac=function(e){return new(e||rn)(t.ɵɵinject(n.HttpClient))},rn.ɵprov=t.ɵɵdefineInjectable({token:rn,factory:rn.ɵfac,providedIn:"root"});var an=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}();an.ɵfac=function(e){return new(e||an)(t.ɵɵinject(Ie),t.ɵɵinject(Xt),t.ɵɵinject(N.Router))},an.ɵprov=t.ɵɵdefineInjectable({token:an,factory:an.ɵfac,providedIn:"root"});var ln=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}();ln.ɵfac=function(e){return new(e||ln)(t.ɵɵinject(n.HttpClient))},ln.ɵprov=t.ɵɵdefineInjectable({token:ln,factory:ln.ɵfac,providedIn:"root"});var sn=function(){this.personaFisica=new Ze},cn=function(e){function t(t){var n=e.call(this,t,"agente")||this;return n.httpClient=t,n}return J(t,e),t.prototype.saveUsuarioAgente=function(e){var t=this.getUrl("agente")+"/usuario";return this.getHttp().post(t,e,this.buildAuth())},t.prototype.getUsuarioAgente=function(e){var t=this.getUrl("agente")+"/usuario/"+e;return this.getHttp().get(t,this.buildAuth())},t.prototype.obtenerAgenteEmpresa=function(){var e=this.geturl()+"/obtenerAgenteEmpresa";return this.getHttp().get(e,this.buildAuth())},t}(K);cn.ɵfac=function(e){return new(e||cn)(t.ɵɵinject(n.HttpClient))},cn.ɵprov=t.ɵɵdefineInjectable({token:cn,factory:cn.ɵfac,providedIn:"root"});var un=function(){},pn=function(){},dn=function(){this.datoDireccion=new pn},mn=function(e){function t(t){return e.call(this,t,"/banco")||this}return J(t,e),t}(K);mn.ɵfac=function(e){return new(e||mn)(t.ɵɵinject(n.HttpClient))},mn.ɵprov=t.ɵɵdefineInjectable({token:mn,factory:mn.ɵfac,providedIn:"root"});var fn=function(){},hn=function(e){function t(t){return e.call(this,t,"/catalogoTipo")||this}return J(t,e),t}(K);hn.ɵfac=function(e){return new(e||hn)(t.ɵɵinject(n.HttpClient))},hn.ɵprov=t.ɵɵdefineInjectable({token:hn,factory:hn.ɵfac,providedIn:"root"});var gn=function(e){function t(t){return e.call(this,t,"/clasificadorTipo")||this}return J(t,e),t}(K);gn.ɵfac=function(e){return new(e||gn)(t.ɵɵinject(n.HttpClient))},gn.ɵprov=t.ɵɵdefineInjectable({token:gn,factory:gn.ɵfac,providedIn:"root"});var vn=function(){},bn=function(e){function t(t){return e.call(this,t,"claveMovimiento")||this}return J(t,e),t}(K);bn.ɵfac=function(e){return new(e||bn)(t.ɵɵinject(n.HttpClient))},bn.ɵprov=t.ɵɵdefineInjectable({token:bn,factory:bn.ɵfac,providedIn:"root"});var Sn=function(){this.agenteCobrador=new sn,this.agenteVendedor=new sn,this.personaFisica=new Ze,this.personaMoral=new Ge},yn=function(){this.banco=new dn,this.estatus=!0},xn=function(){},Cn=function(){this.cliente=new Sn,this.flete=new xn,this.estatus=!0},wn=function(e){function t(t){var n=e.call(this,t,"/clienteCuentaBanco")||this;return n.httpClient=t,n}return J(t,e),t.prototype.saveAll=function(e){var t={cuentas:e};return this.httpClient.post(this.geturl(),t,this.buildAuth())},t}(K);wn.ɵfac=function(e){return new(e||wn)(t.ɵɵinject(n.HttpClient))},wn.ɵprov=t.ɵɵdefineInjectable({token:wn,factory:wn.ɵfac,providedIn:"root"});var In=function(e){function t(t){var n=e.call(this,t,"/clienteFlete")||this;return n.httpClient=t,n}return J(t,e),t.prototype.saveAll=function(e){var t={fletes:e};return this.save(t)},t}(K);In.ɵfac=function(e){return new(e||In)(t.ɵɵinject(n.HttpClient))},In.ɵprov=t.ɵɵdefineInjectable({token:In,factory:In.ɵfac,providedIn:"root"});var En=function(){this.estatus=!0},Mn=function(){this.tipoContacto=new En},An=function(e){function t(t){return e.call(this,t,"/contacto")||this}return J(t,e),t}(K);An.ɵfac=function(e){return new(e||An)(t.ɵɵinject(n.HttpClient))},An.ɵprov=t.ɵɵdefineInjectable({token:An,factory:An.ɵfac,providedIn:"root"});var jn=function(e){function t(t){return e.call(this,t,"/datoDireccion")||this}return J(t,e),t}(K);jn.ɵfac=function(e){return new(e||jn)(t.ɵɵinject(n.HttpClient))},jn.ɵprov=t.ɵɵdefineInjectable({token:jn,factory:jn.ɵfac,providedIn:"root"});var kn=function(){},Pn=function(e){function t(t){return e.call(this,t,"/departamento")||this}return J(t,e),t}(K);Pn.ɵfac=function(e){return new(e||Pn)(t.ɵɵinject(n.HttpClient))},Pn.ɵprov=t.ɵɵdefineInjectable({token:Pn,factory:Pn.ɵfac,providedIn:"root"});var _n=function(){},On=function(){this.datoDireccion=new pn,this.personaMoral=new Ge,this.claveFormaPagoEfectivo=new _n},Tn=function(){this.empresa=new On},Dn=function(e){function t(t){var n=e.call(this,t,"/empresa")||this;return n.httpClient=t,n}return J(t,e),t.prototype.get=function(){return this.httpClient.get(this.getBaseUrl()+"/configuracionEmpresaAdministrativo/configuracionUsuario",this.buildAuth())},t}(K);Dn.ɵfac=function(e){return new(e||Dn)(t.ɵɵinject(n.HttpClient))},Dn.ɵprov=t.ɵɵdefineInjectable({token:Dn,factory:Dn.ɵfac,providedIn:"root"});var Bn=function(e){function t(t){var n=e.call(this,t,"/flete")||this;return n.httpClient=t,n}return J(t,e),t}(K);Bn.ɵfac=function(e){return new(e||Bn)(t.ɵɵinject(n.HttpClient))},Bn.ɵprov=t.ɵɵdefineInjectable({token:Bn,factory:Bn.ɵfac,providedIn:"root"});var Hn=function(e){function t(t){return e.call(this,t,"/FormaDePago")||this}return J(t,e),t}(K);Hn.ɵfac=function(e){return new(e||Hn)(t.ɵɵinject(n.HttpClient))},Hn.ɵprov=t.ɵɵdefineInjectable({token:Hn,factory:Hn.ɵfac,providedIn:"root"});var Fn=function(){},Un=function(e){function t(t){var n=e.call(this,t,"/moneda")||this;return n.httpClient=t,n}return J(t,e),t}(K);Un.ɵfac=function(e){return new(e||Un)(t.ɵɵinject(n.HttpClient))},Un.ɵprov=t.ɵɵdefineInjectable({token:Un,factory:Un.ɵfac,providedIn:"root"});var zn=function(){},qn=function(){},Rn=function(e){function t(t){var n=e.call(this,t,"/PersonaFisica")||this;return n.httpClient=t,n}return J(t,e),t.prototype.getGeneros=function(){return this.httpClient.get(this.getBaseUrl()+"/genero",this.buildAuth())},t.prototype.getEstadoCivil=function(){return this.httpClient.get(this.getBaseUrl()+"/estadoCivil",this.buildAuth())},t}(K);Rn.ɵfac=function(e){return new(e||Rn)(t.ɵɵinject(n.HttpClient))},Rn.ɵprov=t.ɵɵdefineInjectable({token:Rn,factory:Rn.ɵfac,providedIn:"root"});var Ln=function(){this.banco=new dn,this.estatus=!0},Nn=function(){this.proveedor=new Ye,this.flete=new xn,this.estatus=!0},Vn=function(e){function t(t){var n=e.call(this,t,"/proveedorCuentaBanco")||this;return n.httpClient=t,n}return J(t,e),t.prototype.saveAll=function(e){var t={cuentas:e};return this.httpClient.post(this.geturl(),t,this.buildAuth())},t}(K);Vn.ɵfac=function(e){return new(e||Vn)(t.ɵɵinject(n.HttpClient))},Vn.ɵprov=t.ɵɵdefineInjectable({token:Vn,factory:Vn.ɵfac,providedIn:"root"});var $n=function(e){function t(t){var n=e.call(this,t,"/proveedorFlete")||this;return n.httpClient=t,n}return J(t,e),t.prototype.saveAll=function(e){var t={fletes:e};return this.save(t)},t}(K);$n.ɵfac=function(e){return new(e||$n)(t.ɵɵinject(n.HttpClient))},$n.ɵprov=t.ɵɵdefineInjectable({token:$n,factory:$n.ɵfac,providedIn:"root"});var Jn=function(e){function t(t){return e.call(this,t,"claveAumentoDisminucion")||this}return J(t,e),t}(K);Jn.ɵfac=function(e){return new(e||Jn)(t.ɵɵinject(n.HttpClient))},Jn.ɵprov=t.ɵɵdefineInjectable({token:Jn,factory:Jn.ɵfac,providedIn:"root"});var Zn=function(e){function t(t){var n=e.call(this,t,"serieDocumento")||this;return n.httpClient=t,n}return J(t,e),t.prototype.getTipos=function(){return this.httpClient.get(this.getUrl("serieDocumento")+"/tipoSerie",this.buildAuth())},t.prototype.getReporte=function(e){return this.httpClient.get(this.getUrl("serieDocumento")+"/descargaFormatoReporte"+this.serializeParams(e),this.buildAuth())},t}(K);Zn.ɵfac=function(e){return new(e||Zn)(t.ɵɵinject(n.HttpClient))},Zn.ɵprov=t.ɵɵdefineInjectable({token:Zn,factory:Zn.ɵfac,providedIn:"root"});var Gn=function(){},Wn=function(e){function t(t){return e.call(this,t,"/tipoContacto")||this}return J(t,e),t}(K);Wn.ɵfac=function(e){return new(e||Wn)(t.ɵɵinject(n.HttpClient))},Wn.ɵprov=t.ɵɵdefineInjectable({token:Wn,factory:Wn.ɵfac,providedIn:"root"});var Yn=function(){},Kn=function(e){function t(t){return e.call(this,t,"ubicacion")||this}return J(t,e),t}(K);Kn.ɵfac=function(e){return new(e||Kn)(t.ɵɵinject(n.HttpClient))},Kn.ɵprov=t.ɵɵdefineInjectable({token:Kn,factory:Kn.ɵfac,providedIn:"root"});var Qn=function(){};Qn.ARTICULO=2,Qn.USO_CFDI=11;var Xn=function(e){function t(t){var n=e.call(this,t,"acreedorCuentaContable")||this;return n.httpClient=t,n}return J(t,e),t.prototype.cuentasContables=function(){return this.httpClient.get(this.getUrl()+"/cuentaContable/obtieneCuentasContablesRecursivo/",this.buildAuth())},t}(K);Xn.ɵfac=function(e){return new(e||Xn)(t.ɵɵinject(n.HttpClient))},Xn.ɵprov=t.ɵɵdefineInjectable({token:Xn,factory:Xn.ɵfac,providedIn:"root"});var eo=function(){},to=function(){};e.AcreedorCuentaContableService=Xn,e.AcreedorService=Rt,e.Agente=sn,e.AgenteService=cn,e.Almacen=un,e.AlmacenService=ot,e.Auth=we,e.AuthService=Ie,e.Authenticated=an,e.Banco=dn,e.BancoService=mn,e.CanActivateGuard=on,e.CatalogoAdicionalService=rn,e.CatalogoTipo=fn,e.CatalogoTipoService=hn,e.CclistaComponent=re,e.CcseleccionDialogComponent=se,e.ClasificadorTipo=We,e.ClasificadorTipoService=gn,e.ClaveAumentoDisminucionService=Jn,e.ClaveMovimiento=vn,e.ClaveMovimientoService=bn,e.Cliente=Sn,e.ClienteCuentaBanco=yn,e.ClienteCuentaBancoService=wn,e.ClienteFlete=Cn,e.ClienteFleteService=In,e.ClienteService=Ue,e.ConfiguracionEmpresaAdministrativa=Tn,e.ControlAccesoService=Xt,e.CoreLibModule=Qt,e.CrudService=K,e.CuentaContableModel=eo,e.DatoContacto=Mn,e.DatoContactoService=An,e.DatoDireccion=pn,e.DatoDireccionService=jn,e.Departamento=kn,e.DepartamentoService=Pn,e.Empresa=On,e.EmpresaService=Dn,e.Error404Component=de,e.EstadoCivil=zn,e.FileService=ve,e.Flete=xn,e.FleteService=Bn,e.FormaPago=_n,e.FormaPagoService=Hn,e.Genero=qn,e.GlobalService=Y,e.HttpLoaderFactory=Kt,e.InitService=en,e.LoadingComponent=fe,e.LoadingScreenComponent=he,e.LoadingScreenService=ue,e.LoadingService=me,e.LoginModalComponent=ke,e.LoginModalService=ce,e.MessageService=tn,e.Moneda=Fn,e.MonedaService=Un,e.NormaInformacionFinancieraModel=to,e.PaginateService=ze,e.PdfModalComponent=xe,e.PdfModalService=ge,e.Persona=Je,e.PersonaFisica=Ze,e.PersonaFisicaService=Rn,e.PersonaMoral=Ge,e.PersonaMoralService=nn,e.Proveedor=Ye,e.ProveedorCuentaBanco=Ln,e.ProveedorCuentaBancoService=Vn,e.ProveedorFlete=Nn,e.ProveedorFleteService=$n,e.ProveedorService=Ke,e.SeleccionaArticuloComponent=qt,e.SelectAcreedorComponent=Gt,e.SelectClienteComponent=$e,e.SelectProveedorComponent=tt,e.SerieDocumento=Gn,e.SerieDocumentoService=Zn,e.SessionCajaService=Pe,e.SessionCreateComponent=Fe,e.StockService=nt,e.TipoCatalogo=Qn,e.TipoContacto=En,e.TipoContactoService=Wn,e.Ubicacion=Yn,e.UbicacionService=Kn,e.Usuario=Ce,e.VersionCheckService=ln,e.httpInterceptor=pe,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
2
|
//# sourceMappingURL=visorus-erp-core.umd.min.js.map
|