visorus-erp-core 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/README.md +24 -0
  2. package/bundles/visorus-erp-core.umd.js +6382 -0
  3. package/bundles/visorus-erp-core.umd.js.map +1 -0
  4. package/bundles/visorus-erp-core.umd.min.js +16 -0
  5. package/bundles/visorus-erp-core.umd.min.js.map +1 -0
  6. package/esm2015/lib/app.module.js +56 -0
  7. package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +124 -0
  8. package/esm2015/lib/components/acreedor/services/acreedor.service.js +36 -0
  9. package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +44 -0
  10. package/esm2015/lib/components/agente/models/Agente.js +44 -0
  11. package/esm2015/lib/components/agente/services/agente.service.js +62 -0
  12. package/esm2015/lib/components/almacen/models/Almacen.js +40 -0
  13. package/esm2015/lib/components/almacen/services/almacen.service.js +44 -0
  14. package/esm2015/lib/components/banco/models/Banco.js +31 -0
  15. package/esm2015/lib/components/banco/services/banco.service.js +28 -0
  16. package/esm2015/lib/components/caja/session-create/session-create.component.js +147 -0
  17. package/esm2015/lib/components/caja/sessionCaja.service.js +36 -0
  18. package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +22 -0
  19. package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +28 -0
  20. package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +22 -0
  21. package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +28 -0
  22. package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +28 -0
  23. package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +50 -0
  24. package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +28 -0
  25. package/esm2015/lib/components/cliente/models/Cliente.js +90 -0
  26. package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +28 -0
  27. package/esm2015/lib/components/cliente/models/ClienteFlete.js +29 -0
  28. package/esm2015/lib/components/cliente/select/select-cliente.component.js +140 -0
  29. package/esm2015/lib/components/cliente/services/cliente.service.js +35 -0
  30. package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +45 -0
  31. package/esm2015/lib/components/cliente/services/clienteFlete.service.js +45 -0
  32. package/esm2015/lib/components/contacto/models/DatoContacto.js +23 -0
  33. package/esm2015/lib/components/contacto/services/datoContacto.service.js +28 -0
  34. package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +41 -0
  35. package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +28 -0
  36. package/esm2015/lib/components/departamento/models/Departamento.js +23 -0
  37. package/esm2015/lib/components/departamento/services/departamento.service.js +28 -0
  38. package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +67 -0
  39. package/esm2015/lib/components/empresa/models/Empresa.js +31 -0
  40. package/esm2015/lib/components/empresa/services/empresa.service.js +43 -0
  41. package/esm2015/lib/components/error404/error404.component.js +23 -0
  42. package/esm2015/lib/components/flete/models/Flete.js +18 -0
  43. package/esm2015/lib/components/flete/services/flete.service.js +36 -0
  44. package/esm2015/lib/components/formaPago/models/FormaPago.js +24 -0
  45. package/esm2015/lib/components/formaPago/services/FormaPago.service.js +28 -0
  46. package/esm2015/lib/components/loading/loading.component.js +61 -0
  47. package/esm2015/lib/components/loading/loading.service.js +47 -0
  48. package/esm2015/lib/components/loading-screen/loading-screen.component.js +100 -0
  49. package/esm2015/lib/components/loading-screen/loading-screen.service.js +55 -0
  50. package/esm2015/lib/components/login-modal/login-modal.component.js +129 -0
  51. package/esm2015/lib/components/login-modal/login-modal.service.js +31 -0
  52. package/esm2015/lib/components/moneda/models/Moneda.js +30 -0
  53. package/esm2015/lib/components/moneda/services/moneda.service.js +36 -0
  54. package/esm2015/lib/components/pdfModal/pdf-modal.component.js +130 -0
  55. package/esm2015/lib/components/pdfModal/pdf-modal.service.js +49 -0
  56. package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +20 -0
  57. package/esm2015/lib/components/persona-fisica/models/Genero.js +18 -0
  58. package/esm2015/lib/components/persona-fisica/models/Persona.js +35 -0
  59. package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +25 -0
  60. package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +48 -0
  61. package/esm2015/lib/components/proveedor/models/Proveedor.js +50 -0
  62. package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +28 -0
  63. package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +29 -0
  64. package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +124 -0
  65. package/esm2015/lib/components/proveedor/services/proveedor.service.js +36 -0
  66. package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +45 -0
  67. package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +45 -0
  68. package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +117 -0
  69. package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +45 -0
  70. package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +226 -0
  71. package/esm2015/lib/components/selecciona-articulo/stock.service.js +67 -0
  72. package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +58 -0
  73. package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +49 -0
  74. package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +20 -0
  75. package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +28 -0
  76. package/esm2015/lib/components/ubicacion/models/Ubicacion.js +38 -0
  77. package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +28 -0
  78. package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +260 -0
  79. package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +81 -0
  80. package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +47 -0
  81. package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +22 -0
  82. package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +42 -0
  83. package/esm2015/lib/globalPrimeNg.js +73 -0
  84. package/esm2015/lib/httpInterceptor/httpInterceptor.js +142 -0
  85. package/esm2015/lib/importComponents.js +32 -0
  86. package/esm2015/lib/importComponetsConta.js +12 -0
  87. package/esm2015/lib/models/PersonaMoral.js +29 -0
  88. package/esm2015/lib/models/Usuario.js +21 -0
  89. package/esm2015/lib/models/auth.js +15 -0
  90. package/esm2015/lib/services/auth.service.js +331 -0
  91. package/esm2015/lib/services/authenticated.service.js +127 -0
  92. package/esm2015/lib/services/canActivateGuard.service.ts.js +53 -0
  93. package/esm2015/lib/services/catalogo-adicional.service.js +36 -0
  94. package/esm2015/lib/services/controlAcceso.service.js +80 -0
  95. package/esm2015/lib/services/crud.service.js +114 -0
  96. package/esm2015/lib/services/file.service.js +135 -0
  97. package/esm2015/lib/services/global.service.js +116 -0
  98. package/esm2015/lib/services/init.service.js +103 -0
  99. package/esm2015/lib/services/message.service.js +111 -0
  100. package/esm2015/lib/services/paginate.service.js +104 -0
  101. package/esm2015/lib/services/personaMoral.service.js +28 -0
  102. package/esm2015/lib/services/versionCheck.service.js +103 -0
  103. package/esm2015/lib/utils/tipo_catalogo.ts.js +18 -0
  104. package/esm2015/public_api.js +100 -0
  105. package/esm2015/visorus-erp-core.js +15 -0
  106. package/esm5/lib/app.module.js +60 -0
  107. package/esm5/lib/components/acreedor/select/select-acreedor.component.js +139 -0
  108. package/esm5/lib/components/acreedor/services/acreedor.service.js +38 -0
  109. package/esm5/lib/components/acreedor/services/acreedorCuentaContable.js +49 -0
  110. package/esm5/lib/components/agente/models/Agente.js +46 -0
  111. package/esm5/lib/components/agente/services/agente.service.js +75 -0
  112. package/esm5/lib/components/almacen/models/Almacen.js +43 -0
  113. package/esm5/lib/components/almacen/services/almacen.service.js +49 -0
  114. package/esm5/lib/components/banco/models/Banco.js +33 -0
  115. package/esm5/lib/components/banco/services/banco.service.js +29 -0
  116. package/esm5/lib/components/caja/session-create/session-create.component.js +181 -0
  117. package/esm5/lib/components/caja/sessionCaja.service.js +38 -0
  118. package/esm5/lib/components/catalogoTipo/models/CatalogoTipo.js +25 -0
  119. package/esm5/lib/components/catalogoTipo/services/catalogoTipo.service.js +29 -0
  120. package/esm5/lib/components/clasificadorTipo/models/ClasificadorTipo.js +25 -0
  121. package/esm5/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +29 -0
  122. package/esm5/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +29 -0
  123. package/esm5/lib/components/claveMovimiento/models/ClaveMovimiento.js +53 -0
  124. package/esm5/lib/components/claveMovimiento/services/claveMovimiento.service.js +29 -0
  125. package/esm5/lib/components/cliente/models/Cliente.js +92 -0
  126. package/esm5/lib/components/cliente/models/ClienteCuentaBanco.js +30 -0
  127. package/esm5/lib/components/cliente/models/ClienteFlete.js +30 -0
  128. package/esm5/lib/components/cliente/select/select-cliente.component.js +157 -0
  129. package/esm5/lib/components/cliente/services/cliente.service.js +40 -0
  130. package/esm5/lib/components/cliente/services/clienteCuentaBanco.service.js +51 -0
  131. package/esm5/lib/components/cliente/services/clienteFlete.service.js +51 -0
  132. package/esm5/lib/components/contacto/models/DatoContacto.js +25 -0
  133. package/esm5/lib/components/contacto/services/datoContacto.service.js +29 -0
  134. package/esm5/lib/components/dato-direccion/models/DatoDireccion.js +43 -0
  135. package/esm5/lib/components/dato-direccion/services/datoDireccion.service.js +29 -0
  136. package/esm5/lib/components/departamento/models/Departamento.js +25 -0
  137. package/esm5/lib/components/departamento/services/departamento.service.js +29 -0
  138. package/esm5/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +69 -0
  139. package/esm5/lib/components/empresa/models/Empresa.js +33 -0
  140. package/esm5/lib/components/empresa/services/empresa.service.js +48 -0
  141. package/esm5/lib/components/error404/error404.component.js +29 -0
  142. package/esm5/lib/components/flete/models/Flete.js +21 -0
  143. package/esm5/lib/components/flete/services/flete.service.js +38 -0
  144. package/esm5/lib/components/formaPago/models/FormaPago.js +27 -0
  145. package/esm5/lib/components/formaPago/services/FormaPago.service.js +29 -0
  146. package/esm5/lib/components/loading/loading.component.js +61 -0
  147. package/esm5/lib/components/loading/loading.service.js +59 -0
  148. package/esm5/lib/components/loading-screen/loading-screen.component.js +104 -0
  149. package/esm5/lib/components/loading-screen/loading-screen.service.js +67 -0
  150. package/esm5/lib/components/login-modal/login-modal.component.js +137 -0
  151. package/esm5/lib/components/login-modal/login-modal.service.js +36 -0
  152. package/esm5/lib/components/moneda/models/Moneda.js +33 -0
  153. package/esm5/lib/components/moneda/services/moneda.service.js +38 -0
  154. package/esm5/lib/components/pdfModal/pdf-modal.component.js +107 -0
  155. package/esm5/lib/components/pdfModal/pdf-modal.service.js +59 -0
  156. package/esm5/lib/components/persona-fisica/models/EstadoCivil.js +23 -0
  157. package/esm5/lib/components/persona-fisica/models/Genero.js +21 -0
  158. package/esm5/lib/components/persona-fisica/models/Persona.js +37 -0
  159. package/esm5/lib/components/persona-fisica/models/PersonaFisica.js +27 -0
  160. package/esm5/lib/components/persona-fisica/services/personaFisica.service.js +56 -0
  161. package/esm5/lib/components/proveedor/models/Proveedor.js +52 -0
  162. package/esm5/lib/components/proveedor/models/ProveedorCuentaBanco.js +30 -0
  163. package/esm5/lib/components/proveedor/models/ProveedorFlete.js +30 -0
  164. package/esm5/lib/components/proveedor/select/select-proveedor.component.js +139 -0
  165. package/esm5/lib/components/proveedor/services/proveedor.service.js +38 -0
  166. package/esm5/lib/components/proveedor/services/proveedorCuentaBanco.service.js +51 -0
  167. package/esm5/lib/components/proveedor/services/proveedorFlete.service.js +51 -0
  168. package/esm5/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +137 -0
  169. package/esm5/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +51 -0
  170. package/esm5/lib/components/selecciona-articulo/selecciona-articulo.component.js +264 -0
  171. package/esm5/lib/components/selecciona-articulo/stock.service.js +75 -0
  172. package/esm5/lib/components/serieDocumento/models/SerieDocumento.js +61 -0
  173. package/esm5/lib/components/serieDocumento/services/serieDocumento.service.js +58 -0
  174. package/esm5/lib/components/tipo-contacto/models/TipoContacto.js +22 -0
  175. package/esm5/lib/components/tipo-contacto/services/tipoContacto.service.js +29 -0
  176. package/esm5/lib/components/ubicacion/models/Ubicacion.js +41 -0
  177. package/esm5/lib/components/ubicacion/services/ubicacion.service.js +29 -0
  178. package/esm5/lib/contabilidad/componentes/cclista/cclista.component.js +333 -0
  179. package/esm5/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +94 -0
  180. package/esm5/lib/contabilidad/modelos/cuentaContable.model.js +49 -0
  181. package/esm5/lib/contabilidad/modelos/normaInfoFinanciera.model.js +25 -0
  182. package/esm5/lib/contabilidad/servicios/cuentacontable.service.js +47 -0
  183. package/esm5/lib/globalPrimeNg.js +73 -0
  184. package/esm5/lib/httpInterceptor/httpInterceptor.js +154 -0
  185. package/esm5/lib/importComponents.js +32 -0
  186. package/esm5/lib/importComponetsConta.js +12 -0
  187. package/esm5/lib/models/PersonaMoral.js +31 -0
  188. package/esm5/lib/models/Usuario.js +25 -0
  189. package/esm5/lib/models/auth.js +19 -0
  190. package/esm5/lib/services/auth.service.js +378 -0
  191. package/esm5/lib/services/authenticated.service.js +133 -0
  192. package/esm5/lib/services/canActivateGuard.service.ts.js +59 -0
  193. package/esm5/lib/services/catalogo-adicional.service.js +38 -0
  194. package/esm5/lib/services/controlAcceso.service.js +92 -0
  195. package/esm5/lib/services/crud.service.js +156 -0
  196. package/esm5/lib/services/file.service.js +157 -0
  197. package/esm5/lib/services/global.service.js +155 -0
  198. package/esm5/lib/services/init.service.js +108 -0
  199. package/esm5/lib/services/message.service.js +125 -0
  200. package/esm5/lib/services/paginate.service.js +115 -0
  201. package/esm5/lib/services/personaMoral.service.js +29 -0
  202. package/esm5/lib/services/versionCheck.service.js +117 -0
  203. package/esm5/lib/utils/tipo_catalogo.ts.js +22 -0
  204. package/esm5/public_api.js +100 -0
  205. package/esm5/visorus-erp-core.js +15 -0
  206. package/fesm2015/visorus-erp-core.js +5545 -0
  207. package/fesm2015/visorus-erp-core.js.map +1 -0
  208. package/fesm5/visorus-erp-core.js +6108 -0
  209. package/fesm5/visorus-erp-core.js.map +1 -0
  210. package/lib/app.module.d.ts +5 -0
  211. package/lib/components/acreedor/select/select-acreedor.component.d.ts +23 -0
  212. package/lib/components/acreedor/services/acreedor.service.d.ts +6 -0
  213. package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +7 -0
  214. package/lib/components/agente/models/Agente.d.ts +23 -0
  215. package/lib/components/agente/services/agente.service.d.ts +9 -0
  216. package/lib/components/almacen/models/Almacen.d.ts +20 -0
  217. package/lib/components/almacen/services/almacen.service.d.ts +7 -0
  218. package/lib/components/banco/models/Banco.d.ts +13 -0
  219. package/lib/components/banco/services/banco.service.d.ts +5 -0
  220. package/lib/components/caja/session-create/session-create.component.d.ts +22 -0
  221. package/lib/components/caja/sessionCaja.service.d.ts +6 -0
  222. package/lib/components/catalogoTipo/models/CatalogoTipo.d.ts +9 -0
  223. package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +5 -0
  224. package/lib/components/clasificadorTipo/models/ClasificadorTipo.d.ts +9 -0
  225. package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +5 -0
  226. package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +5 -0
  227. package/lib/components/claveMovimiento/models/ClaveMovimiento.d.ts +23 -0
  228. package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +5 -0
  229. package/lib/components/cliente/models/Cliente.d.ts +44 -0
  230. package/lib/components/cliente/models/ClienteCuentaBanco.d.ts +12 -0
  231. package/lib/components/cliente/models/ClienteFlete.d.ts +11 -0
  232. package/lib/components/cliente/select/select-cliente.component.d.ts +24 -0
  233. package/lib/components/cliente/services/cliente.service.d.ts +6 -0
  234. package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +7 -0
  235. package/lib/components/cliente/services/clienteFlete.service.d.ts +7 -0
  236. package/lib/components/contacto/models/DatoContacto.d.ts +9 -0
  237. package/lib/components/contacto/services/datoContacto.service.d.ts +5 -0
  238. package/lib/components/dato-direccion/models/DatoDireccion.d.ts +18 -0
  239. package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +5 -0
  240. package/lib/components/departamento/models/Departamento.d.ts +9 -0
  241. package/lib/components/departamento/services/departamento.service.d.ts +5 -0
  242. package/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.d.ts +31 -0
  243. package/lib/components/empresa/models/Empresa.d.ts +13 -0
  244. package/lib/components/empresa/services/empresa.service.d.ts +7 -0
  245. package/lib/components/error404/error404.component.d.ts +5 -0
  246. package/lib/components/flete/models/Flete.d.ts +7 -0
  247. package/lib/components/flete/services/flete.service.d.ts +6 -0
  248. package/lib/components/formaPago/models/FormaPago.d.ts +10 -0
  249. package/lib/components/formaPago/services/FormaPago.service.d.ts +5 -0
  250. package/lib/components/loading/loading.component.d.ts +7 -0
  251. package/lib/components/loading/loading.service.d.ts +7 -0
  252. package/lib/components/loading-screen/loading-screen.component.d.ts +17 -0
  253. package/lib/components/loading-screen/loading-screen.service.d.ts +8 -0
  254. package/lib/components/login-modal/login-modal.component.d.ts +13 -0
  255. package/lib/components/login-modal/login-modal.service.d.ts +5 -0
  256. package/lib/components/moneda/models/Moneda.d.ts +13 -0
  257. package/lib/components/moneda/services/moneda.service.d.ts +6 -0
  258. package/lib/components/pdfModal/pdf-modal.component.d.ts +13 -0
  259. package/lib/components/pdfModal/pdf-modal.service.d.ts +9 -0
  260. package/lib/components/persona-fisica/models/EstadoCivil.d.ts +8 -0
  261. package/lib/components/persona-fisica/models/Genero.d.ts +7 -0
  262. package/lib/components/persona-fisica/models/Persona.d.ts +16 -0
  263. package/lib/components/persona-fisica/models/PersonaFisica.d.ts +11 -0
  264. package/lib/components/persona-fisica/services/personaFisica.service.d.ts +8 -0
  265. package/lib/components/proveedor/models/Proveedor.d.ts +23 -0
  266. package/lib/components/proveedor/models/ProveedorCuentaBanco.d.ts +12 -0
  267. package/lib/components/proveedor/models/ProveedorFlete.d.ts +11 -0
  268. package/lib/components/proveedor/select/select-proveedor.component.d.ts +23 -0
  269. package/lib/components/proveedor/services/proveedor.service.d.ts +6 -0
  270. package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +7 -0
  271. package/lib/components/proveedor/services/proveedorFlete.service.d.ts +7 -0
  272. package/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.d.ts +26 -0
  273. package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +7 -0
  274. package/lib/components/selecciona-articulo/selecciona-articulo.component.d.ts +38 -0
  275. package/lib/components/selecciona-articulo/stock.service.d.ts +7 -0
  276. package/lib/components/serieDocumento/models/SerieDocumento.d.ts +28 -0
  277. package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +8 -0
  278. package/lib/components/tipo-contacto/models/TipoContacto.d.ts +7 -0
  279. package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +5 -0
  280. package/lib/components/ubicacion/models/Ubicacion.d.ts +17 -0
  281. package/lib/components/ubicacion/services/ubicacion.service.d.ts +5 -0
  282. package/lib/contabilidad/componentes/cclista/cclista.component.d.ts +23 -0
  283. package/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.d.ts +21 -0
  284. package/lib/contabilidad/modelos/cuentaContable.model.d.ts +22 -0
  285. package/lib/contabilidad/modelos/normaInfoFinanciera.model.d.ts +8 -0
  286. package/lib/contabilidad/servicios/cuentacontable.service.d.ts +7 -0
  287. package/lib/globalPrimeNg.d.ts +4 -0
  288. package/lib/httpInterceptor/httpInterceptor.d.ts +14 -0
  289. package/lib/importComponents.d.ts +13 -0
  290. package/lib/importComponetsConta.d.ts +3 -0
  291. package/lib/models/PersonaMoral.d.ts +13 -0
  292. package/lib/models/Usuario.d.ts +8 -0
  293. package/lib/models/auth.d.ts +6 -0
  294. package/lib/services/auth.service.d.ts +29 -0
  295. package/lib/services/authenticated.service.d.ts +11 -0
  296. package/lib/services/canActivateGuard.service.ts.d.ts +10 -0
  297. package/lib/services/catalogo-adicional.service.d.ts +6 -0
  298. package/lib/services/controlAcceso.service.d.ts +11 -0
  299. package/lib/services/crud.service.d.ts +20 -0
  300. package/lib/services/file.service.d.ts +11 -0
  301. package/lib/services/global.service.d.ts +22 -0
  302. package/lib/services/init.service.d.ts +9 -0
  303. package/lib/services/message.service.d.ts +8 -0
  304. package/lib/services/paginate.service.d.ts +17 -0
  305. package/lib/services/personaMoral.service.d.ts +5 -0
  306. package/lib/services/versionCheck.service.d.ts +11 -0
  307. package/lib/utils/tipo_catalogo.ts.d.ts +4 -0
  308. package/package.json +24 -0
  309. package/public_api.d.ts +92 -0
  310. package/visorus-erp-core.d.ts +10 -0
  311. package/visorus-erp-core.metadata.json +1 -0
@@ -0,0 +1,16 @@
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})}));
16
+ //# sourceMappingURL=visorus-erp-core.umd.min.js.map