monkey-front-core 0.0.35 → 0.0.39

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 (257) hide show
  1. package/README.md +24 -24
  2. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -0
  3. package/{esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.module.js → esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs} +5 -5
  4. package/{esm2015/lib/components/closed-to-maintenance/index.js → esm2020/lib/components/closed-to-maintenance/index.mjs} +1 -1
  5. package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
  6. package/{esm2015/lib/components/progress-bar/index.js → esm2020/lib/components/progress-bar/index.mjs} +1 -1
  7. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -0
  8. package/{esm2015/lib/components/progress-bar/progress-bar.module.js → esm2020/lib/components/progress-bar/progress-bar.module.mjs} +5 -5
  9. package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -0
  10. package/{esm2015/lib/components/version-changed/index.js → esm2020/lib/components/version-changed/index.mjs} +1 -1
  11. package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -0
  12. package/{esm2015/lib/components/version-changed/version-changed.module.js → esm2020/lib/components/version-changed/version-changed.module.mjs} +5 -5
  13. package/esm2020/lib/core/decorators/index.mjs +5 -0
  14. package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -0
  15. package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +113 -0
  16. package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -0
  17. package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -0
  18. package/{esm2015/lib/core/directives/index.js → esm2020/lib/core/directives/index.mjs} +1 -1
  19. package/{esm2015/lib/core/directives/monkeyecx-directives-module.js → esm2020/lib/core/directives/monkeyecx-directives-module.mjs} +10 -10
  20. package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -0
  21. package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -0
  22. package/{esm2015/lib/core/directives/monkeyecx-format-currency.js → esm2020/lib/core/directives/monkeyecx-format-currency.mjs} +4 -4
  23. package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -0
  24. package/{esm2015/lib/core/directives/monkeyecx-only-alpha-numeric-directive.js → esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs} +4 -4
  25. package/{esm2015/lib/core/directives/monkeyecx-only-number-directive.js → esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs} +4 -4
  26. package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +69 -0
  27. package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -0
  28. package/{esm2015/lib/core/index.js → esm2020/lib/core/index.mjs} +1 -1
  29. package/{esm2015/lib/core/interceptors/index.js → esm2020/lib/core/interceptors/index.mjs} +1 -1
  30. package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +39 -0
  31. package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +32 -0
  32. package/{esm2015/lib/core/interceptors/monkeyecx-http-config-interceptor.module.js → esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs} +5 -5
  33. package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -0
  34. package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +37 -0
  35. package/{esm2015/lib/core/interfaces/index.js → esm2020/lib/core/interfaces/index.mjs} +1 -1
  36. package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +2 -0
  37. package/{esm2015/lib/core/interfaces/monkeyecx-company.js → esm2020/lib/core/interfaces/monkeyecx-company.mjs} +1 -1
  38. package/esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs +2 -0
  39. package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +2 -0
  40. package/{esm2015/lib/core/interfaces/monkeyecx-error-response.js → esm2020/lib/core/interfaces/monkeyecx-error-response.mjs} +1 -1
  41. package/{esm2015/lib/core/interfaces/monkeyecx-handled-error-response.js → esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs} +1 -1
  42. package/{esm2015/lib/core/interfaces/monkeyecx-header-credentials.js → esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs} +1 -1
  43. package/{esm2015/lib/core/interfaces/monkeyecx-intercom-options.js → esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs} +1 -1
  44. package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +2 -0
  45. package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +2 -0
  46. package/{esm2015/lib/core/interfaces/monkeyecx-program.js → esm2020/lib/core/interfaces/monkeyecx-program.mjs} +1 -1
  47. package/{esm2015/lib/core/interfaces/monkeyecx-releases.js → esm2020/lib/core/interfaces/monkeyecx-releases.mjs} +1 -1
  48. package/{esm2015/lib/core/interfaces/monkeyecx-request-in-progress.js → esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs} +1 -1
  49. package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +2 -0
  50. package/{esm2015/lib/core/interfaces/monkeyecx-response-paged.js → esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs} +1 -1
  51. package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -0
  52. package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +2 -0
  53. package/{esm2015/lib/core/interfaces/monkeyecx-translate-options.js → esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs} +1 -1
  54. package/{esm2015/lib/core/interfaces/request-download/index.js → esm2020/lib/core/interfaces/request-download/index.mjs} +1 -1
  55. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -0
  56. package/{esm2015/lib/core/interfaces/request-download/monkeyecx-request-downloaded.js → esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs} +1 -1
  57. package/{esm2015/lib/core/interfaces/request-download/monkeyecx-request-item-download.js → esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs} +1 -1
  58. package/{esm2015/lib/core/interfaces/request-queue/index.js → esm2020/lib/core/interfaces/request-queue/index.mjs} +1 -1
  59. package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs} +1 -1
  60. package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs} +1 -1
  61. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -0
  62. package/{esm2015/lib/core/interfaces/request-upload/index.js → esm2020/lib/core/interfaces/request-upload/index.mjs} +1 -1
  63. package/{esm2015/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.js → esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs} +1 -1
  64. package/{esm2015/lib/core/interfaces/request-upload/monkeyecx-request-upload.js → esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs} +1 -1
  65. package/{esm2015/lib/core/interfaces/schedules/index.js → esm2020/lib/core/interfaces/schedules/index.mjs} +1 -1
  66. package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +2 -0
  67. package/{esm2015/lib/core/model/index.js → esm2020/lib/core/model/index.mjs} +1 -1
  68. package/{esm2015/lib/core/model/monkeyecx-model.js → esm2020/lib/core/model/monkeyecx-model.mjs} +1 -1
  69. package/esm2020/lib/core/pipes/index.mjs +16 -0
  70. package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -0
  71. package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -0
  72. package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +27 -0
  73. package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +31 -0
  74. package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +29 -0
  75. package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +19 -0
  76. package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +20 -0
  77. package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +42 -0
  78. package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +20 -0
  79. package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +19 -0
  80. package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +19 -0
  81. package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +19 -0
  82. package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +87 -0
  83. package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -0
  84. package/{esm2015/lib/core/pipes/monkeyecx-truncate-qtd.js → esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs} +4 -4
  85. package/{esm2015/lib/core/services/auth/index.js → esm2020/lib/core/services/auth/index.mjs} +1 -1
  86. package/{esm2015/lib/core/services/auth/monkeyecx-auth-guard-login.service.js → esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs} +4 -4
  87. package/{esm2015/lib/core/services/auth/monkeyecx-auth-guard.service.js → esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs} +4 -4
  88. package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +61 -0
  89. package/{esm2015/lib/core/services/commons/index.js → esm2020/lib/core/services/commons/index.mjs} +1 -1
  90. package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +269 -0
  91. package/{esm2015/lib/core/services/config/monkeyecx-config.module.js → esm2020/lib/core/services/config/monkeyecx-config.module.mjs} +5 -5
  92. package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +104 -0
  93. package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -0
  94. package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +65 -0
  95. package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +66 -0
  96. package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +34 -0
  97. package/{esm2015/lib/core/services/config/monkeyecx-maintenance-config.service.js → esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs} +5 -5
  98. package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +42 -0
  99. package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -0
  100. package/{esm2015/lib/core/services/error/index.js → esm2020/lib/core/services/error/index.mjs} +1 -1
  101. package/{esm2015/lib/core/services/error/monkeyecx-error-handling.module.js → esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs} +5 -5
  102. package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +43 -0
  103. package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +127 -0
  104. package/{esm2015/lib/core/services/error/monkeyecx-others-errors-handling.service.js → esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs} +4 -4
  105. package/esm2020/lib/core/services/index.mjs +24 -0
  106. package/{esm2015/lib/core/services/logged/index.js → esm2020/lib/core/services/logged/index.mjs} +1 -1
  107. package/{esm2015/lib/core/services/logged/monkeyecx-logged-handling.service.js → esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs} +4 -4
  108. package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -0
  109. package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -0
  110. package/{esm2015/lib/core/services/request-download/index.js → esm2020/lib/core/services/request-download/index.mjs} +1 -1
  111. package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -0
  112. package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -0
  113. package/{esm2015/lib/core/services/request-paged/index.js → esm2020/lib/core/services/request-paged/index.mjs} +1 -1
  114. package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +30 -0
  115. package/{esm2015/lib/core/services/request-queue/index.js → esm2020/lib/core/services/request-queue/index.mjs} +1 -1
  116. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -0
  117. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -0
  118. package/{esm2015/lib/core/services/routes/index.js → esm2020/lib/core/services/routes/index.mjs} +1 -1
  119. package/{esm2015/lib/core/services/routes/monkeyecx-dicovery-params.service.js → esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs} +6 -6
  120. package/{esm2015/lib/core/services/schedules/index.js → esm2020/lib/core/services/schedules/index.mjs} +1 -1
  121. package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +127 -0
  122. package/{esm2015/lib/core/services/storage/index.js → esm2020/lib/core/services/storage/index.mjs} +1 -1
  123. package/{esm2015/lib/core/services/storage/monkeyecx-cookie-storage.service.js → esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs} +5 -5
  124. package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +125 -0
  125. package/{esm2015/lib/core/specification-search/index.js → esm2020/lib/core/specification-search/index.mjs} +1 -1
  126. package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +97 -0
  127. package/esm2020/lib/core/utils/decorators-utils.mjs +40 -0
  128. package/{esm2015/lib/core/utils/index.js → esm2020/lib/core/utils/index.mjs} +1 -1
  129. package/{esm2015/lib/core/utils/statics.js → esm2020/lib/core/utils/statics.mjs} +1 -1
  130. package/esm2020/lib/core/utils/utils.mjs +218 -0
  131. package/esm2020/lib/core/utils/validate-utils.mjs +204 -0
  132. package/esm2020/lib/core/utils/validators.mjs +193 -0
  133. package/esm2020/lib/monkey-front-core.module.mjs +62 -0
  134. package/{esm2015/monkey-front-core.js → esm2020/monkey-front-core.mjs} +0 -0
  135. package/{esm2015/public-api.js → esm2020/public-api.mjs} +1 -1
  136. package/fesm2015/{monkey-front-core.js → monkey-front-core.mjs} +708 -517
  137. package/fesm2015/monkey-front-core.mjs.map +1 -0
  138. package/fesm2020/monkey-front-core.mjs +4219 -0
  139. package/fesm2020/monkey-front-core.mjs.map +1 -0
  140. package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +2 -2
  141. package/lib/components/progress-bar/progress-bar.service.d.ts +1 -1
  142. package/lib/components/version-changed/version-changed.component.d.ts +1 -1
  143. package/lib/core/decorators/index.d.ts +1 -0
  144. package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -0
  145. package/lib/core/directives/monkeyecx-directives-module.d.ts +1 -1
  146. package/lib/core/directives/monkeyecx-feature-directive.d.ts +4 -4
  147. package/lib/core/directives/monkeyecx-format-upper.d.ts +2 -2
  148. package/lib/core/directives/monkeyecx-security-directive.d.ts +1 -1
  149. package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +5 -5
  150. package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +2 -1
  151. package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +1 -1
  152. package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +1 -1
  153. package/lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts +1 -1
  154. package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +1 -1
  155. package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +1 -1
  156. package/lib/core/model/monkeyecx-model.d.ts +1 -1
  157. package/lib/core/pipes/index.d.ts +3 -0
  158. package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -1
  159. package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -0
  160. package/lib/core/pipes/monkeyecx-format-currency.d.ts +1 -3
  161. package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +1 -2
  162. package/lib/core/pipes/monkeyecx-format-date.d.ts +7 -0
  163. package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -1
  164. package/lib/core/pipes/monkeyecx-format-number.d.ts +3 -4
  165. package/lib/core/pipes/monkeyecx-format-phone.d.ts +7 -0
  166. package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -1
  167. package/lib/core/pipes/monkeyecx-format-type-document.d.ts +3 -4
  168. package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -1
  169. package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -1
  170. package/lib/core/pipes/monkeyecx-pipes.module.d.ts +14 -11
  171. package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -1
  172. package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +6 -6
  173. package/lib/core/services/commons/monkeyecx-commons.service.d.ts +27 -27
  174. package/lib/core/services/config/monkeyecx-config.service.d.ts +1 -1
  175. package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -1
  176. package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +1 -1
  177. package/lib/core/services/index.d.ts +13 -3
  178. package/lib/core/services/monkeyecx-handling.service.d.ts +8 -5
  179. package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +1 -1
  180. package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +2 -2
  181. package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +2 -2
  182. package/lib/core/utils/validate-utils.d.ts +13 -13
  183. package/monkey-front-core-0.0.39.tgz +0 -0
  184. package/package.json +22 -9
  185. package/bundles/monkey-front-core.umd.js +0 -4638
  186. package/bundles/monkey-front-core.umd.js.map +0 -1
  187. package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.component.js +0 -32
  188. package/esm2015/lib/components/progress-bar/progress-bar.component.js +0 -28
  189. package/esm2015/lib/components/progress-bar/progress-bar.service.js +0 -49
  190. package/esm2015/lib/components/version-changed/version-changed.component.js +0 -25
  191. package/esm2015/lib/core/decorators/index.js +0 -4
  192. package/esm2015/lib/core/decorators/monkeyecx-decorators.js +0 -108
  193. package/esm2015/lib/core/decorators/monkeyecx-download-decorators.js +0 -24
  194. package/esm2015/lib/core/decorators/monkeyecx-upload-decorators.js +0 -24
  195. package/esm2015/lib/core/directives/monkeyecx-drag-drop.js +0 -57
  196. package/esm2015/lib/core/directives/monkeyecx-feature-directive.js +0 -66
  197. package/esm2015/lib/core/directives/monkeyecx-format-upper.js +0 -67
  198. package/esm2015/lib/core/directives/monkeyecx-security-directive.js +0 -67
  199. package/esm2015/lib/core/directives/monkeyecx-tooltip-directive.js +0 -120
  200. package/esm2015/lib/core/interceptors/monkeyecx-http-config-error.interceptor.js +0 -39
  201. package/esm2015/lib/core/interceptors/monkeyecx-http-config-header.interceptor.js +0 -32
  202. package/esm2015/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.js +0 -41
  203. package/esm2015/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.js +0 -37
  204. package/esm2015/lib/core/interfaces/monkeyecx-auth-credentials.js +0 -2
  205. package/esm2015/lib/core/interfaces/monkeyecx-config-boostrap.js +0 -2
  206. package/esm2015/lib/core/interfaces/monkeyecx-config.js +0 -2
  207. package/esm2015/lib/core/interfaces/monkeyecx-me-credentials.js +0 -2
  208. package/esm2015/lib/core/interfaces/monkeyecx-navigation.js +0 -2
  209. package/esm2015/lib/core/interfaces/monkeyecx-request-paged.js +0 -2
  210. package/esm2015/lib/core/interfaces/monkeyecx-service-credentials.js +0 -2
  211. package/esm2015/lib/core/interfaces/monkeyecx-token-credentials.js +0 -2
  212. package/esm2015/lib/core/interfaces/request-download/monkeyecx-request-download.js +0 -2
  213. package/esm2015/lib/core/interfaces/request-queue/monkeyecx-request-queue.js +0 -2
  214. package/esm2015/lib/core/interfaces/schedules/monkeyecx-request-schedule.js +0 -2
  215. package/esm2015/lib/core/pipes/index.js +0 -13
  216. package/esm2015/lib/core/pipes/monkeyecx-display-first-name.js +0 -22
  217. package/esm2015/lib/core/pipes/monkeyecx-format-currency.js +0 -30
  218. package/esm2015/lib/core/pipes/monkeyecx-format-date-timelapse.js +0 -37
  219. package/esm2015/lib/core/pipes/monkeyecx-format-document.js +0 -22
  220. package/esm2015/lib/core/pipes/monkeyecx-format-number.js +0 -23
  221. package/esm2015/lib/core/pipes/monkeyecx-format-size.js +0 -23
  222. package/esm2015/lib/core/pipes/monkeyecx-format-type-document.js +0 -22
  223. package/esm2015/lib/core/pipes/monkeyecx-format-value.js +0 -22
  224. package/esm2015/lib/core/pipes/monkeyecx-format-zipcode.js +0 -22
  225. package/esm2015/lib/core/pipes/monkeyecx-pipes.module.js +0 -72
  226. package/esm2015/lib/core/pipes/monkeyecx-text-truncate.js +0 -26
  227. package/esm2015/lib/core/services/auth/monkeyecx-authentication.service.js +0 -61
  228. package/esm2015/lib/core/services/commons/monkeyecx-commons.service.js +0 -242
  229. package/esm2015/lib/core/services/config/index.js +0 -9
  230. package/esm2015/lib/core/services/config/monkeyecx-config.service.js +0 -104
  231. package/esm2015/lib/core/services/config/monkeyecx-error-config.service.js +0 -85
  232. package/esm2015/lib/core/services/config/monkeyecx-feature-toggle.service.js +0 -65
  233. package/esm2015/lib/core/services/config/monkeyecx-i18n-config.service.js +0 -72
  234. package/esm2015/lib/core/services/config/monkeyecx-logs-config.service.js +0 -34
  235. package/esm2015/lib/core/services/config/monkeyecx-security-console-config.service.js +0 -42
  236. package/esm2015/lib/core/services/config/monkeyecx-service-worker-config.service.js +0 -54
  237. package/esm2015/lib/core/services/error/monkeyecx-error-handling.service.js +0 -39
  238. package/esm2015/lib/core/services/error/monkeyecx-http-error-handling.service.js +0 -131
  239. package/esm2015/lib/core/services/index.js +0 -14
  240. package/esm2015/lib/core/services/monkeyecx-handling.service.js +0 -44
  241. package/esm2015/lib/core/services/monkeyecx-service.service.js +0 -102
  242. package/esm2015/lib/core/services/request-download/monkeyecx-request-download-handling.service.js +0 -81
  243. package/esm2015/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.js +0 -55
  244. package/esm2015/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.js +0 -30
  245. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.js +0 -97
  246. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.js +0 -106
  247. package/esm2015/lib/core/services/schedules/monkeyecx-request-schedule.service.js +0 -99
  248. package/esm2015/lib/core/services/storage/monkeyecx-token-storage.service.js +0 -117
  249. package/esm2015/lib/core/specification-search/monkeyecx-specification-search.js +0 -97
  250. package/esm2015/lib/core/utils/decorators-utils.js +0 -37
  251. package/esm2015/lib/core/utils/utils.js +0 -219
  252. package/esm2015/lib/core/utils/validate-utils.js +0 -204
  253. package/esm2015/lib/core/utils/validators.js +0 -193
  254. package/esm2015/lib/monkey-front-core.module.js +0 -60
  255. package/fesm2015/monkey-front-core.js.map +0 -1
  256. package/lib/core/services/config/index.d.ts +0 -8
  257. package/monkey-front-core-0.0.35.tgz +0 -0
@@ -1,12 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Pipe, Component, ViewEncapsulation, Input, NgModule, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, NgZone, ErrorHandler, Optional, SkipSelf } from '@angular/core';
2
+ import { Pipe, Component, ViewEncapsulation, Input, Injectable, NgModule, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, NgZone, ErrorHandler, Optional, SkipSelf } from '@angular/core';
3
3
  import * as i1 from 'monkey-style-guide';
4
4
  import { MonkeyButtonModule, MonkeyIconModule, MonkeyInputModule, MonkeyModalModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
5
+ import * as i2 from '@angular/common';
6
+ import { formatNumber, CurrencyPipe, CommonModule } from '@angular/common';
5
7
  import * as i1$1 from '@ngx-translate/core';
6
- import { TranslateService, TranslateModule } from '@ngx-translate/core';
7
- import * as moment_ from 'moment';
8
- import * as i1$2 from '@angular/common';
9
- import { formatNumber, CurrencyPipe, CommonModule, registerLocaleData } from '@angular/common';
8
+ import { TranslateModule, TranslateService } from '@ngx-translate/core';
9
+ import * as moment$2 from 'moment';
10
+ import * as i1$2 from 'ngx-cookie-service';
10
11
  import * as i1$3 from '@angular/router';
11
12
  import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
12
13
  import { BehaviorSubject, throwError, interval, concat, of, Subject } from 'rxjs';
@@ -15,10 +16,8 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
15
16
  import { __decorate } from 'tslib';
16
17
  import * as i1$4 from '@angular/common/http';
17
18
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
18
- import localePTBR from '@angular/common/locales/global/pt';
19
- import * as i1$5 from 'ngx-cookie-service';
20
19
  import { datadogRum } from '@datadog/browser-rum';
21
- import * as i1$6 from '@angular/service-worker';
20
+ import * as i1$5 from '@angular/service-worker';
22
21
  import { ServiceWorkerModule } from '@angular/service-worker';
23
22
  import { initialize } from 'launchdarkly-js-client-sdk';
24
23
 
@@ -155,7 +154,7 @@ class MonkeyEcxUtils {
155
154
  const randomString = new Array(len)
156
155
  .fill('1')
157
156
  .map(() => {
158
- return charSet.charAt(Math.floor(Math.random() * charSet.length));
157
+ return charSet === null || charSet === void 0 ? void 0 : charSet.charAt(Math.floor(Math.random() * (charSet === null || charSet === void 0 ? void 0 : charSet.length)));
159
158
  })
160
159
  .join('');
161
160
  return randomString;
@@ -241,146 +240,238 @@ class MonkeyEcxUtils {
241
240
  }
242
241
  }
243
242
 
244
- const moment$2 = moment_;
245
243
  class MonkeyEcxFormatDateTimelapsePipe {
246
- constructor() {
247
- // not todo
248
- }
249
- transform(date, showTime = false, useUtc = true, format) {
250
- var _a;
244
+ transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
251
245
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
252
246
  return '';
253
- if (!format) {
254
- format = '- HH:mm';
255
- }
256
247
  let stillUtc = moment$2.utc(date).toDate();
257
248
  if (!useUtc)
258
249
  stillUtc = moment$2(date).toDate();
259
- if (((_a = date.toString()) === null || _a === void 0 ? void 0 : _a.indexOf(':')) <= -1) {
260
- stillUtc = date;
261
- showTime = false;
250
+ if (date.toString().indexOf(':') <= -1) {
251
+ if (typeof date === 'string') {
252
+ stillUtc = date;
253
+ showTime = false;
254
+ }
262
255
  }
263
256
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
264
257
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
265
258
  return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
266
259
  }
267
260
  }
268
- MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
269
- MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, name: "monkeyecxFormatDateTimelapse" });
270
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
261
+ MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
262
+ MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, name: "monkeyecxFormatDateTimelapse" });
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
271
264
  type: Pipe,
272
265
  args: [{
273
266
  name: 'monkeyecxFormatDateTimelapse'
274
267
  }]
275
- }], ctorParameters: function () { return []; } });
268
+ }] });
276
269
 
277
270
  class ClosedToMaintenanceComponent {
278
271
  constructor() {
272
+ this.config = null;
279
273
  this._configBoostrap = null;
280
274
  }
281
275
  ngOnInit() {
282
- this._configBoostrap = this.config.data;
276
+ var _a;
277
+ this._configBoostrap = (_a = this.config) === null || _a === void 0 ? void 0 : _a.data;
283
278
  }
284
279
  onClose() {
285
280
  document.location.reload();
286
281
  }
287
282
  }
288
- ClosedToMaintenanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
289
- ClosedToMaintenanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: ClosedToMaintenanceComponent, selector: "monkeyecx-closed-to-maintenance", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\">\r\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\r\n <span class=\"h2\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}\r\n </span>\r\n <span class=\"information-title mt-4\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}\r\n </span>\r\n <span class=\"information-title mt-4\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}\r\n </span>\r\n <span class=\"information mt-3\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}\r\n {{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}\r\n </span>\r\n <span class=\"information-title mt-4\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}\r\n </span>\r\n </div>\r\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\r\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}\r\n </monkey-button>\r\n </div>\r\n</monkey-modal>", styles: ["monkeyecx-closed-to-maintenance .body{padding:24px;width:100%}monkeyecx-closed-to-maintenance .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53}monkeyecx-closed-to-maintenance .information{font-style:normal;font-weight:normal;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-closed-to-maintenance .browser-name{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-closed-to-maintenance .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-closed-to-maintenance monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], pipes: { "translate": i1$1.TranslatePipe, "monkeyecxFormatDateTimelapse": MonkeyEcxFormatDateTimelapsePipe }, encapsulation: i0.ViewEncapsulation.None });
290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceComponent, decorators: [{
283
+ ClosedToMaintenanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
284
+ ClosedToMaintenanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ClosedToMaintenanceComponent, selector: "monkeyecx-closed-to-maintenance", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}\n {{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-closed-to-maintenance .body{padding:24px;width:100%}monkeyecx-closed-to-maintenance .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53}monkeyecx-closed-to-maintenance .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-closed-to-maintenance .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-closed-to-maintenance .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-closed-to-maintenance monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe, "monkeyecxFormatDateTimelapse": MonkeyEcxFormatDateTimelapsePipe }, encapsulation: i0.ViewEncapsulation.None });
285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceComponent, decorators: [{
291
286
  type: Component,
292
- args: [{
293
- selector: 'monkeyecx-closed-to-maintenance',
294
- templateUrl: './closed-to-maintenance.component.html',
295
- styleUrls: ['./closed-to-maintenance.component.scss'],
296
- encapsulation: ViewEncapsulation.None
297
- }]
287
+ args: [{ selector: 'monkeyecx-closed-to-maintenance', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-1' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-2' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-3' | translate }}\n {{ _configBoostrap?.maintenance?.endDate | monkeyecxFormatDateTimelapse: true }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.INFORMATION-4' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.CLOSED-TO-MAINTENANCE.BUTTONS.UPDATE-MAINTENANCE' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-closed-to-maintenance .body{padding:24px;width:100%}monkeyecx-closed-to-maintenance .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53}monkeyecx-closed-to-maintenance .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-closed-to-maintenance .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-closed-to-maintenance .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-closed-to-maintenance monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
298
288
  }], propDecorators: { config: [{
299
289
  type: Input
300
290
  }], modalRef: [{
301
291
  type: Input
302
292
  }] } });
303
293
 
304
- class MonkeyEcxFormatNumber {
305
- constructor() {
306
- // not to do
307
- }
308
- transform(number) {
309
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
294
+ class MonkeyEcxDisplayFirstNamePipe {
295
+ transform(name) {
296
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
310
297
  return '';
311
- return formatNumber(Number(number), 'ptbr');
298
+ return MonkeyEcxUtils.cutFirstLastName(name);
312
299
  }
313
300
  }
314
- MonkeyEcxFormatNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatNumber, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
315
- MonkeyEcxFormatNumber.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatNumber, name: "monkeyecxFormatNumber" });
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatNumber, decorators: [{
301
+ MonkeyEcxDisplayFirstNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
302
+ MonkeyEcxDisplayFirstNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, name: "monkeyecxDisplayFirstName" });
303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, decorators: [{
317
304
  type: Pipe,
318
305
  args: [{
319
- name: 'monkeyecxFormatNumber'
306
+ name: 'monkeyecxDisplayFirstName'
320
307
  }]
321
- }], ctorParameters: function () { return []; } });
308
+ }] });
322
309
 
323
- class MonkeyEcxFormatValue {
324
- constructor() {
310
+ class MonkeyEcxFormatAddressPipe {
311
+ transform({ zipCode, address, neighborhood, city, state, }) {
312
+ return [address, neighborhood, zipCode, city, state]
313
+ .filter((_) => {
314
+ return _;
315
+ })
316
+ .join(', ');
317
+ }
318
+ }
319
+ MonkeyEcxFormatAddressPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
320
+ MonkeyEcxFormatAddressPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, name: "monkeyecxFormatAddress" });
321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatAddressPipe, decorators: [{
322
+ type: Pipe,
323
+ args: [{
324
+ name: 'monkeyecxFormatAddress',
325
+ }]
326
+ }] });
327
+
328
+ /* eslint-disable object-curly-newline */
329
+ class MonkeyEcxCookieStorageService {
330
+ constructor(cookieService) {
331
+ this.cookieService = cookieService;
325
332
  // not to do
326
333
  }
327
- transform(number) {
328
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
334
+ setCookie(name, value) {
335
+ this.removeCookie(name);
336
+ this.cookieService.set(name, value, undefined, '/', '', true, 'None');
337
+ }
338
+ getCookie(name) {
339
+ return this.cookieService.get(name);
340
+ }
341
+ removeCookie(name) {
342
+ this.cookieService.delete(name, '/');
343
+ }
344
+ }
345
+ MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$2.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
346
+ MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
348
+ type: Injectable,
349
+ args: [{
350
+ providedIn: 'root'
351
+ }]
352
+ }], ctorParameters: function () { return [{ type: i1$2.CookieService }]; } });
353
+
354
+ class MonkeyEcxFormatCurrencyPipe {
355
+ constructor(injector, currencyPipe) {
356
+ this.injector = injector;
357
+ this.currencyPipe = currencyPipe;
358
+ // not to do
359
+ }
360
+ transform(value) {
361
+ const cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
362
+ const cookie = cookieStorageService.getCookie('monkey-app-locale');
363
+ const i18n = JSON.parse(atob(cookie));
364
+ const { currency } = i18n;
365
+ return this.currencyPipe.transform(value, currency, 'symbol');
366
+ }
367
+ }
368
+ MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
369
+ MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
371
+ type: Pipe,
372
+ args: [{
373
+ name: 'monkeyecxFormatCurrency'
374
+ }]
375
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
376
+
377
+ class MonkeyEcxFormatDatePipe {
378
+ transform(date, showTime = false, format) {
379
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
329
380
  return '';
330
- return number;
381
+ let stillUtc = moment$2.utc(date).toDate();
382
+ if (date.indexOf(':') <= -1) {
383
+ stillUtc = date;
384
+ }
385
+ if (!format) {
386
+ format = 'HH:mm';
387
+ }
388
+ const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
389
+ const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
390
+ return `${moment$2(stillUtc, formatFrom).local().format(formatTo)}`;
331
391
  }
332
392
  }
333
- MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
334
- MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatValue, decorators: [{
393
+ MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
394
+ MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
336
396
  type: Pipe,
337
397
  args: [{
338
- name: 'monkeyecxFormatValue'
398
+ name: 'monkeyecxFormatDate',
339
399
  }]
340
- }], ctorParameters: function () { return []; } });
400
+ }] });
341
401
 
342
402
  class MonkeyEcxFormatDocumentPipe {
343
- constructor() {
344
- // not to do
345
- }
346
403
  transform(document, withType) {
347
404
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
348
405
  return '';
349
406
  return MonkeyEcxUtils.formatDocumentWithMask(document, withType);
350
407
  }
351
408
  }
352
- MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
353
- MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, decorators: [{
409
+ MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
410
+ MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, decorators: [{
355
412
  type: Pipe,
356
413
  args: [{
357
414
  name: 'monkeyecxFormatDocument'
358
415
  }]
359
- }], ctorParameters: function () { return []; } });
416
+ }] });
360
417
 
361
- class MonkeyEcxDisplayFirstNamePipe {
362
- constructor() {
363
- // not to do
364
- }
365
- transform(name) {
366
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
418
+ class MonkeyEcxFormatNumberPipe {
419
+ transform(number) {
420
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
367
421
  return '';
368
- return MonkeyEcxUtils.cutFirstLastName(name);
422
+ return formatNumber(Number(number), 'ptbr');
369
423
  }
370
424
  }
371
- MonkeyEcxDisplayFirstNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
372
- MonkeyEcxDisplayFirstNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, name: "monkeyecxDisplayFirstName" });
373
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, decorators: [{
425
+ MonkeyEcxFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
426
+ MonkeyEcxFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, name: "monkeyecxFormatNumber" });
427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatNumberPipe, decorators: [{
374
428
  type: Pipe,
375
429
  args: [{
376
- name: 'monkeyecxDisplayFirstName'
430
+ name: 'monkeyecxFormatNumber'
377
431
  }]
378
- }], ctorParameters: function () { return []; } });
432
+ }] });
379
433
 
380
- class MonkeyEcxFormatSizePipe {
381
- constructor() {
382
- // not to do
434
+ class MonkeyEcxFormatPhonePipe {
435
+ transform(phone) {
436
+ if (phone) {
437
+ const value = `${phone || ''}`.replace(/\D/g, '');
438
+ let formated = '';
439
+ if (value.length > 12) {
440
+ formated = value.replace(/(\d{2})?(\d{2})?(\d{5})?(\d{4})/, '+$1 ($2) $3-$4');
441
+ }
442
+ else if (value.length > 11) {
443
+ formated = value.replace(/(\d{2})?(\d{2})?(\d{4})?(\d{4})/, '+$1 ($2) $3-$4');
444
+ }
445
+ else if (value.length > 10) {
446
+ formated = value.replace(/(\d{2})?(\d{5})?(\d{4})/, '($1) $2-$3');
447
+ }
448
+ else if (value.length > 9) {
449
+ formated = value.replace(/(\d{2})?(\d{4})?(\d{4})/, '($1) $2-$3');
450
+ }
451
+ else if (value.length > 5) {
452
+ formated = value.replace(/^(\d{2})?(\d{4})?(\d{0,4})/, '($1) $2-$3');
453
+ }
454
+ else if (value.length > 1) {
455
+ formated = value.replace(/^(\d{2})?(\d{0,5})/, '($1) $2');
456
+ }
457
+ else if (phone !== '') {
458
+ formated = value.replace(/^(\d*)/, '($1');
459
+ }
460
+ return formated;
461
+ }
462
+ return '';
383
463
  }
464
+ }
465
+ MonkeyEcxFormatPhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
466
+ MonkeyEcxFormatPhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, name: "monkeyecxFormatPhone" });
467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatPhonePipe, decorators: [{
468
+ type: Pipe,
469
+ args: [{
470
+ name: 'monkeyecxFormatPhone'
471
+ }]
472
+ }] });
473
+
474
+ class MonkeyEcxFormatSizePipe {
384
475
  transform(size) {
385
476
  if (!size)
386
477
  return '0 B';
@@ -388,64 +479,64 @@ class MonkeyEcxFormatSizePipe {
388
479
  return MonkeyEcxUtils.formatFileSize(sizeNum);
389
480
  }
390
481
  }
391
- MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
392
- MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatSizePipe, decorators: [{
482
+ MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
483
+ MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatSizePipe, decorators: [{
394
485
  type: Pipe,
395
486
  args: [{
396
487
  name: 'monkeyecxFormatSize'
397
488
  }]
398
- }], ctorParameters: function () { return []; } });
489
+ }] });
399
490
 
400
- class MonkeyEcxFormatCurrencyPipe {
401
- constructor(injector, currencyPipe) {
402
- this.injector = injector;
403
- this.currencyPipe = currencyPipe;
404
- this.currencyCode = 'BRL';
405
- this.currentLocale = 'pt-BR';
406
- const translateService = this.injector.get(TranslateService);
407
- translateService.get('MONKEY-CURRENCY-CODE').subscribe((_) => {
408
- this.currencyCode = _;
409
- this.currentLocale = translateService.getDefaultLang();
410
- });
491
+ class MonkeyEcxFormatDocumentTypePipe {
492
+ transform(document) {
493
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
494
+ return '';
495
+ return MonkeyEcxUtils.getDocumentType(document);
411
496
  }
412
- transform(value) {
413
- const { currencyCode, currentLocale } = this;
414
- return this.currencyPipe.transform(value, currencyCode, 'symbol', '', currentLocale);
497
+ }
498
+ MonkeyEcxFormatDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
499
+ MonkeyEcxFormatDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, name: "monkeyecxFormatDocumentType" });
500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDocumentTypePipe, decorators: [{
501
+ type: Pipe,
502
+ args: [{
503
+ name: 'monkeyecxFormatDocumentType'
504
+ }]
505
+ }] });
506
+
507
+ class MonkeyEcxFormatValue {
508
+ transform(number) {
509
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
510
+ return '';
511
+ return number;
415
512
  }
416
513
  }
417
- MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i1$2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
418
- MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
514
+ MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
515
+ MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
516
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatValue, decorators: [{
420
517
  type: Pipe,
421
518
  args: [{
422
- name: 'monkeyecxFormatCurrency'
519
+ name: 'monkeyecxFormatValue'
423
520
  }]
424
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$2.CurrencyPipe }]; } });
521
+ }] });
425
522
 
426
523
  class MonkeyEcxFormatZipCodePipe {
427
- constructor() {
428
- // not to do
429
- }
430
524
  transform(zipCode) {
431
525
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(zipCode))
432
526
  return '';
433
527
  return MonkeyEcxUtils.formatZipCode(zipCode);
434
528
  }
435
529
  }
436
- MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
437
- MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, decorators: [{
530
+ MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
531
+ MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, decorators: [{
439
533
  type: Pipe,
440
534
  args: [{
441
535
  name: 'monkeyecxFormatZipCode'
442
536
  }]
443
- }], ctorParameters: function () { return []; } });
537
+ }] });
444
538
 
445
539
  class MonkeyEcxTextTruncatePipe {
446
- constructor() {
447
- // not to do
448
- }
449
540
  transform(text, maxLength = 25) {
450
541
  const midChar = '...';
451
542
  if (!text)
@@ -457,42 +548,23 @@ class MonkeyEcxTextTruncatePipe {
457
548
  return `${text.substr(0, left)} ${midChar} ${text.substring(right)}`;
458
549
  }
459
550
  }
460
- MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
461
- MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTextTruncatePipe, decorators: [{
551
+ MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
552
+ MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTextTruncatePipe, decorators: [{
463
554
  type: Pipe,
464
555
  args: [{
465
556
  name: 'monkeyecxTextTruncate'
466
557
  }]
467
- }], ctorParameters: function () { return []; } });
468
-
469
- class MonkeyEcxDocumentTypePipe {
470
- constructor() {
471
- // not to do
472
- }
473
- transform(document) {
474
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
475
- return '';
476
- return MonkeyEcxUtils.getDocumentType(document);
477
- }
478
- }
479
- MonkeyEcxDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
480
- MonkeyEcxDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, name: "monkeyecxDocumentType" });
481
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDocumentTypePipe, decorators: [{
482
- type: Pipe,
483
- args: [{
484
- name: 'monkeyecxDocumentType'
485
- }]
486
- }], ctorParameters: function () { return []; } });
558
+ }] });
487
559
 
488
560
  class MonkeyEcxTruncateQtdPipe {
489
561
  transform(number, threshold) {
490
562
  return `${number > threshold ? `${threshold}+` : number}`;
491
563
  }
492
564
  }
493
- MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
494
- MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
495
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, decorators: [{
565
+ MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
566
+ MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, decorators: [{
496
568
  type: Pipe,
497
569
  args: [{
498
570
  name: 'monkeyecxTruncateQtd'
@@ -501,57 +573,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
501
573
 
502
574
  class MonkeyEcxPipesModule {
503
575
  }
504
- MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
505
- MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxFormatDocumentPipe,
576
+ MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
577
+ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, declarations: [MonkeyEcxDisplayFirstNamePipe,
578
+ MonkeyEcxFormatAddressPipe,
579
+ MonkeyEcxFormatCurrencyPipe,
506
580
  MonkeyEcxFormatDateTimelapsePipe,
507
- MonkeyEcxDisplayFirstNamePipe,
581
+ MonkeyEcxFormatDatePipe,
582
+ MonkeyEcxFormatDocumentPipe,
583
+ MonkeyEcxFormatNumberPipe,
584
+ MonkeyEcxFormatPhonePipe,
508
585
  MonkeyEcxFormatSizePipe,
509
- MonkeyEcxFormatCurrencyPipe,
510
- MonkeyEcxFormatZipCodePipe,
511
- MonkeyEcxFormatNumber,
586
+ MonkeyEcxFormatDocumentTypePipe,
512
587
  MonkeyEcxFormatValue,
588
+ MonkeyEcxFormatZipCodePipe,
513
589
  MonkeyEcxTextTruncatePipe,
514
- MonkeyEcxTruncateQtdPipe,
515
- MonkeyEcxDocumentTypePipe], exports: [MonkeyEcxFormatDocumentPipe,
590
+ MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
591
+ MonkeyEcxFormatAddressPipe,
592
+ MonkeyEcxFormatCurrencyPipe,
516
593
  MonkeyEcxFormatDateTimelapsePipe,
517
- MonkeyEcxDisplayFirstNamePipe,
594
+ MonkeyEcxFormatDatePipe,
595
+ MonkeyEcxFormatDocumentPipe,
596
+ MonkeyEcxFormatNumberPipe,
597
+ MonkeyEcxFormatPhonePipe,
518
598
  MonkeyEcxFormatSizePipe,
519
- MonkeyEcxFormatCurrencyPipe,
520
- MonkeyEcxFormatZipCodePipe,
521
- MonkeyEcxFormatNumber,
599
+ MonkeyEcxFormatDocumentTypePipe,
522
600
  MonkeyEcxFormatValue,
601
+ MonkeyEcxFormatZipCodePipe,
523
602
  MonkeyEcxTextTruncatePipe,
524
- MonkeyEcxTruncateQtdPipe,
525
- MonkeyEcxDocumentTypePipe] });
526
- MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
527
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
603
+ MonkeyEcxTruncateQtdPipe] });
604
+ MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
528
606
  type: NgModule,
529
607
  args: [{
530
608
  declarations: [
531
- MonkeyEcxFormatDocumentPipe,
532
- MonkeyEcxFormatDateTimelapsePipe,
533
609
  MonkeyEcxDisplayFirstNamePipe,
534
- MonkeyEcxFormatSizePipe,
610
+ MonkeyEcxFormatAddressPipe,
535
611
  MonkeyEcxFormatCurrencyPipe,
536
- MonkeyEcxFormatZipCodePipe,
537
- MonkeyEcxFormatNumber,
612
+ MonkeyEcxFormatDateTimelapsePipe,
613
+ MonkeyEcxFormatDatePipe,
614
+ MonkeyEcxFormatDocumentPipe,
615
+ MonkeyEcxFormatNumberPipe,
616
+ MonkeyEcxFormatPhonePipe,
617
+ MonkeyEcxFormatSizePipe,
618
+ MonkeyEcxFormatDocumentTypePipe,
538
619
  MonkeyEcxFormatValue,
620
+ MonkeyEcxFormatZipCodePipe,
539
621
  MonkeyEcxTextTruncatePipe,
540
- MonkeyEcxTruncateQtdPipe,
541
- MonkeyEcxDocumentTypePipe
622
+ MonkeyEcxTruncateQtdPipe
542
623
  ],
543
624
  exports: [
544
- MonkeyEcxFormatDocumentPipe,
545
- MonkeyEcxFormatDateTimelapsePipe,
546
625
  MonkeyEcxDisplayFirstNamePipe,
547
- MonkeyEcxFormatSizePipe,
626
+ MonkeyEcxFormatAddressPipe,
548
627
  MonkeyEcxFormatCurrencyPipe,
549
- MonkeyEcxFormatZipCodePipe,
550
- MonkeyEcxFormatNumber,
628
+ MonkeyEcxFormatDateTimelapsePipe,
629
+ MonkeyEcxFormatDatePipe,
630
+ MonkeyEcxFormatDocumentPipe,
631
+ MonkeyEcxFormatNumberPipe,
632
+ MonkeyEcxFormatPhonePipe,
633
+ MonkeyEcxFormatSizePipe,
634
+ MonkeyEcxFormatDocumentTypePipe,
551
635
  MonkeyEcxFormatValue,
636
+ MonkeyEcxFormatZipCodePipe,
552
637
  MonkeyEcxTextTruncatePipe,
553
- MonkeyEcxTruncateQtdPipe,
554
- MonkeyEcxDocumentTypePipe
638
+ MonkeyEcxTruncateQtdPipe
555
639
  ],
556
640
  providers: [CurrencyPipe]
557
641
  }]
@@ -559,14 +643,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
559
643
 
560
644
  class ClosedToMaintenanceModule {
561
645
  }
562
- ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
563
- ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceModule, declarations: [ClosedToMaintenanceComponent], imports: [CommonModule,
646
+ ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
647
+ ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, declarations: [ClosedToMaintenanceComponent], imports: [CommonModule,
564
648
  MonkeyButtonModule,
565
649
  MonkeyIconModule,
566
650
  MonkeyInputModule,
567
651
  MonkeyModalModule,
568
652
  MonkeyEcxPipesModule, i1$1.TranslateModule], exports: [ClosedToMaintenanceComponent] });
569
- ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
653
+ ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
570
654
  CommonModule,
571
655
  MonkeyButtonModule,
572
656
  MonkeyIconModule,
@@ -575,7 +659,7 @@ ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
575
659
  MonkeyEcxPipesModule,
576
660
  TranslateModule.forChild()
577
661
  ]] });
578
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
579
663
  type: NgModule,
580
664
  args: [{
581
665
  declarations: [ClosedToMaintenanceComponent],
@@ -595,6 +679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
595
679
  class MonkeyEcxProgressBarService {
596
680
  constructor(router) {
597
681
  this.router = router;
682
+ this.visible = null;
598
683
  this.init();
599
684
  }
600
685
  init() {
@@ -617,18 +702,21 @@ class MonkeyEcxProgressBarService {
617
702
  });
618
703
  }
619
704
  show() {
620
- this.visible.next(true);
705
+ var _a;
706
+ (_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(true);
621
707
  }
622
708
  hide() {
623
- this.visible.next(false);
709
+ var _a;
710
+ (_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(false);
624
711
  }
625
712
  visibleConfig() {
626
- return this.visible.asObservable();
713
+ var _a;
714
+ return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
627
715
  }
628
716
  }
629
- MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
630
- MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
631
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
717
+ MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
718
+ MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarService, decorators: [{
632
720
  type: Injectable,
633
721
  args: [{
634
722
  providedIn: 'root'
@@ -642,29 +730,25 @@ class MonkeyEcxProgressBarComponent {
642
730
  //not to do
643
731
  }
644
732
  ngOnInit() {
645
- this.progressBarService.visibleConfig().subscribe((visible) => {
733
+ var _a, _b;
734
+ (_b = (_a = this.progressBarService) === null || _a === void 0 ? void 0 : _a.visibleConfig()) === null || _b === void 0 ? void 0 : _b.subscribe((visible) => {
646
735
  this.visible = visible;
647
736
  });
648
737
  }
649
738
  }
650
- MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
651
- MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxProgressBarComponent, selector: "monkeyecx-progress-bar", ngImport: i0, template: "<ng-container *ngIf=\"visible\">\r\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\r\n</ng-container>\r\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
652
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarComponent, decorators: [{
739
+ MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
740
+ MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxProgressBarComponent, selector: "monkeyecx-progress-bar", ngImport: i0, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarComponent, decorators: [{
653
742
  type: Component,
654
- args: [{
655
- selector: 'monkeyecx-progress-bar',
656
- templateUrl: './progress-bar.component.html',
657
- styleUrls: ['./progress-bar.component.scss'],
658
- encapsulation: ViewEncapsulation.None
659
- }]
743
+ args: [{ selector: 'monkeyecx-progress-bar', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"visible\">\n <progress class=\"monkey-progress monkey-progress__theme\"></progress>\n</ng-container>\n", styles: ["monkeyecx-progress-bar{position:absolute;width:100%;margin-top:-9.5px;z-index:99998}\n"] }]
660
744
  }], ctorParameters: function () { return [{ type: MonkeyEcxProgressBarService }]; } });
661
745
 
662
746
  class MonkeyEcxProgressBarModule {
663
747
  }
664
- MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
665
- MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
666
- MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
667
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxProgressBarModule, decorators: [{
748
+ MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
749
+ MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
750
+ MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
751
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxProgressBarModule, decorators: [{
668
752
  type: NgModule,
669
753
  args: [{
670
754
  declarations: [MonkeyEcxProgressBarComponent],
@@ -674,20 +758,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
674
758
  }] });
675
759
 
676
760
  class VersionChangedComponent {
761
+ constructor() {
762
+ this.config = null;
763
+ }
677
764
  onClose() {
678
765
  document.location.reload();
679
766
  }
680
767
  }
681
- VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
682
- VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\">\r\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\r\n <span class=\"h2\">\r\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\r\n </span>\r\n <span class=\"information-title mt-4\">\r\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\r\n </span>\r\n <span class=\"information mt-3\">\r\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\r\n </span>\r\n </div>\r\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\r\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\r\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\r\n </monkey-button>\r\n </div>\r\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:normal;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], pipes: { "translate": i1$1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedComponent, decorators: [{
768
+ VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
769
+ VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"], components: [{ type: i1.MonkeyModalComponent, selector: "monkey-modal", inputs: ["config", "modalRef", "onHandleConfirm"] }, { type: i1.MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1$1.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
770
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedComponent, decorators: [{
684
771
  type: Component,
685
- args: [{
686
- selector: 'monkeyecx-version-changed',
687
- templateUrl: './version-changed.component.html',
688
- styleUrls: ['./version-changed.component.scss'],
689
- encapsulation: ViewEncapsulation.None
690
- }]
772
+ args: [{ selector: 'monkeyecx-version-changed', encapsulation: ViewEncapsulation.None, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\" *ngIf=\"config\">\n <div class=\"d-flex flex-column justify-content-center align-items-center\">\n <span class=\"h2\">\n {{ 'SCREENS.VERSION-CHANGED.TITLE' | translate }}\n </span>\n <span class=\"information-title mt-4\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-1' | translate }}\n </span>\n <span class=\"information mt-3\">\n {{ 'SCREENS.VERSION-CHANGED.INFORMATION-2' | translate }}\n </span>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-5\">\n <monkey-button type=\"primary\" color=\"theme\" (click)=\"onClose()\">\n {{ 'SCREENS.VERSION-CHANGED.BUTTONS.UPDATE-VERSION' | translate }}\n </monkey-button>\n </div>\n</monkey-modal>", styles: ["monkeyecx-version-changed .body{padding:24px;width:100%}monkeyecx-version-changed .information-title{font-style:normal;font-weight:600;font-size:25px;line-height:32px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .information{font-style:normal;font-weight:400;font-size:20px;line-height:24px;display:flex;align-items:center;text-align:center;color:#4b4a53;max-width:600px}monkeyecx-version-changed .browser-name{font-style:normal;font-weight:400;font-size:16px;line-height:24px;text-align:center;color:#9c9ca6}monkeyecx-version-changed .option{text-decoration:none;padding:4px;background:#eee;border:1px solid #d6d6d6;box-sizing:border-box;border-radius:16px}monkeyecx-version-changed monkey-modal mecx-monkey-modal .body{margin-bottom:0!important}\n"] }]
691
773
  }], propDecorators: { config: [{
692
774
  type: Input
693
775
  }], modalRef: [{
@@ -696,13 +778,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
696
778
 
697
779
  class VersionChangedModule {
698
780
  }
699
- VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
700
- VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedModule, declarations: [VersionChangedComponent], imports: [CommonModule,
781
+ VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
782
+ VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, declarations: [VersionChangedComponent], imports: [CommonModule,
701
783
  MonkeyButtonModule,
702
784
  MonkeyIconModule,
703
785
  MonkeyInputModule,
704
786
  MonkeyModalModule, i1$1.TranslateModule], exports: [VersionChangedComponent] });
705
- VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedModule, imports: [[
787
+ VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, imports: [[
706
788
  CommonModule,
707
789
  MonkeyButtonModule,
708
790
  MonkeyIconModule,
@@ -710,7 +792,7 @@ VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
710
792
  MonkeyModalModule,
711
793
  TranslateModule.forChild()
712
794
  ]] });
713
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: VersionChangedModule, decorators: [{
795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, decorators: [{
714
796
  type: NgModule,
715
797
  args: [{
716
798
  declarations: [VersionChangedComponent],
@@ -726,8 +808,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
726
808
  }]
727
809
  }] });
728
810
 
811
+ /* eslint-disable space-before-function-paren */
812
+ /* eslint-disable func-names */
813
+ function MonkeyEcxCoreCharts(render = true) {
814
+ return (target, propertyName, propertyDescriptor) => {
815
+ const method = propertyDescriptor.value;
816
+ propertyDescriptor.value = function (...args) {
817
+ const context = this;
818
+ if (render) {
819
+ const scriptsLoaded = Array.from(document.scripts);
820
+ scriptsLoaded.forEach((script) => {
821
+ const { src } = script;
822
+ if (src.search('www.gstatic.com/charts') > 0) {
823
+ document.getElementsByTagName('head')[0].removeChild(script);
824
+ }
825
+ });
826
+ const node = document.createElement('script');
827
+ node.src = 'https://www.gstatic.com/charts/loader.js';
828
+ node.type = 'text/javascript';
829
+ node.async = true;
830
+ node.id = 'monkeyecx-charts-settings';
831
+ node.onload = () => {
832
+ method.apply(context, args);
833
+ };
834
+ document.getElementsByTagName('head')[0].appendChild(node);
835
+ }
836
+ else {
837
+ const scriptsLoaded = Array.from(document.scripts);
838
+ scriptsLoaded.forEach((script) => {
839
+ const { src } = script;
840
+ if (src.search('www.gstatic.com/charts') > 0) {
841
+ document.getElementsByTagName('head')[0].removeChild(script);
842
+ }
843
+ });
844
+ method.apply(context, args);
845
+ }
846
+ };
847
+ return propertyDescriptor;
848
+ };
849
+ }
850
+
729
851
  /* eslint-disable max-classes-per-file */
730
- const moment$1 = moment_;
852
+ const moment$1 = moment$2;
731
853
  class DateValidator {
732
854
  static do(control) {
733
855
  if (!control.parent || !control)
@@ -809,11 +931,12 @@ class isTrueValidator {
809
931
  }
810
932
  class PasswordMatchValidation {
811
933
  static do(control) {
934
+ var _a, _b;
812
935
  if (!control.parent || !control)
813
936
  return null;
814
937
  const { parent } = control;
815
- const password = parent.get('password').value;
816
- const passwordConfirm = parent.get('passwordConfirm').value;
938
+ const password = (_a = parent === null || parent === void 0 ? void 0 : parent.get('password')) === null || _a === void 0 ? void 0 : _a.value;
939
+ const passwordConfirm = (_b = parent === null || parent === void 0 ? void 0 : parent.get('passwordConfirm')) === null || _b === void 0 ? void 0 : _b.value;
817
940
  if (!password || !passwordConfirm)
818
941
  return null;
819
942
  if (password === passwordConfirm)
@@ -839,13 +962,14 @@ class UrlValidator {
839
962
  }
840
963
  class CustomDatesStartValidator {
841
964
  static do(control) {
965
+ var _a, _b;
842
966
  if (!control.parent || !control)
843
967
  return null;
844
968
  const { parent } = control;
845
- const valueStart = parent.get('dateStart').value;
846
- const valueEnd = parent.get('dateEnd').value;
847
- let dateStart;
848
- let dateEnd;
969
+ const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
970
+ const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
971
+ let dateStart = null;
972
+ let dateEnd = null;
849
973
  if (valueStart) {
850
974
  dateStart = new Date(valueStart);
851
975
  }
@@ -864,13 +988,14 @@ class CustomDatesStartValidator {
864
988
  }
865
989
  class CustomDatesEndValidator {
866
990
  static do(control) {
991
+ var _a, _b;
867
992
  if (!control.parent || !control)
868
993
  return null;
869
994
  const { parent } = control;
870
- const valueStart = parent.get('dateStart').value;
871
- const valueEnd = parent.get('dateEnd').value;
872
- let dateStart;
873
- let dateEnd;
995
+ const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
996
+ const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
997
+ let dateStart = null;
998
+ let dateEnd = null;
874
999
  if (valueStart) {
875
1000
  dateStart = new Date(valueStart);
876
1001
  }
@@ -913,10 +1038,11 @@ class UnlockRegisterSponsorValidator {
913
1038
  }
914
1039
  class DateRangeValidator {
915
1040
  static do(control) {
1041
+ var _a, _b;
916
1042
  if (!control.parent || !control) {
917
1043
  return null;
918
1044
  }
919
- const dates = control.parent.get('dates').value;
1045
+ const dates = (_b = (_a = control === null || control === void 0 ? void 0 : control.parent) === null || _a === void 0 ? void 0 : _a.get('dates')) === null || _b === void 0 ? void 0 : _b.value;
920
1046
  if (dates &&
921
1047
  (!MonkeyEcxUtils.persistNullEmptyUndefined(dates.startDate) ||
922
1048
  !MonkeyEcxUtils.persistNullEmptyUndefined(dates.endDate))) {
@@ -1035,7 +1161,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
1035
1161
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
1036
1162
  });
1037
1163
 
1038
- const moment = moment_;
1164
+ const moment = moment$2;
1039
1165
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
1040
1166
  function isEmptyInputValue(value) {
1041
1167
  return value == null || value.length === 0;
@@ -1052,10 +1178,11 @@ function emailValidator(control) {
1052
1178
  };
1053
1179
  }
1054
1180
  function dateRangeValidator(control) {
1181
+ var _a, _b;
1055
1182
  if (!control.parent || !control || isEmptyInputValue(control.value)) {
1056
1183
  return null;
1057
1184
  }
1058
- const dates = control.parent.get('dates').value;
1185
+ const dates = (_b = (_a = control === null || control === void 0 ? void 0 : control.parent) === null || _a === void 0 ? void 0 : _a.get('dates')) === null || _b === void 0 ? void 0 : _b.value;
1059
1186
  if (dates &&
1060
1187
  (!MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.startDate) ||
1061
1188
  !MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.endDate))) {
@@ -1077,14 +1204,15 @@ function registerValidator(control, type) {
1077
1204
  return null;
1078
1205
  }
1079
1206
  function dateStartEndValidator(control) {
1207
+ var _a, _b;
1080
1208
  if (!control.parent || !control) {
1081
1209
  return null;
1082
1210
  }
1083
1211
  const { parent } = control;
1084
- const valueStart = parent.get('dateStart').value;
1085
- const valueEnd = parent.get('dateEnd').value;
1086
- let dateStart;
1087
- let dateEnd;
1212
+ const valueStart = (_a = parent === null || parent === void 0 ? void 0 : parent.get('dateStart')) === null || _a === void 0 ? void 0 : _a.value;
1213
+ const valueEnd = (_b = parent === null || parent === void 0 ? void 0 : parent.get('dateEnd')) === null || _b === void 0 ? void 0 : _b.value;
1214
+ let dateStart = null;
1215
+ let dateEnd = null;
1088
1216
  if (valueStart) {
1089
1217
  dateStart = new Date(valueStart);
1090
1218
  }
@@ -1111,11 +1239,12 @@ function urlValidator(control) {
1111
1239
  return null;
1112
1240
  }
1113
1241
  function passwordConfirmValidator(control) {
1242
+ var _a, _b;
1114
1243
  if (!control.parent || !control || isEmptyInputValue(control.value))
1115
1244
  return null;
1116
1245
  const { parent } = control;
1117
- const password = parent.get('password').value;
1118
- const passwordConfirm = parent.get('passwordConfirm').value;
1246
+ const password = (_a = parent === null || parent === void 0 ? void 0 : parent.get('password')) === null || _a === void 0 ? void 0 : _a.value;
1247
+ const passwordConfirm = (_b = parent === null || parent === void 0 ? void 0 : parent.get('passwordConfirm')) === null || _b === void 0 ? void 0 : _b.value;
1119
1248
  if (!password || !passwordConfirm)
1120
1249
  return null;
1121
1250
  if (password === passwordConfirm)
@@ -1267,9 +1396,10 @@ function MonkeyEcxCoreClearDecorators() {
1267
1396
  return function (target, propertyName, propertyDescriptor) {
1268
1397
  const method = propertyDescriptor.value;
1269
1398
  propertyDescriptor.value = function (...args) {
1399
+ var _a, _b;
1270
1400
  const context = this;
1271
1401
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1272
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1402
+ (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
1273
1403
  }
1274
1404
  const result = method.apply(context, args);
1275
1405
  return result;
@@ -1281,10 +1411,13 @@ function MonkeyEcxCoreService(params) {
1281
1411
  return function (target, propertyName, propertyDescriptor) {
1282
1412
  const method = propertyDescriptor.value;
1283
1413
  propertyDescriptor.value = function (...args) {
1414
+ var _a, _b, _c, _d;
1284
1415
  const context = this;
1416
+ console.log('context');
1417
+ console.log(context);
1285
1418
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1286
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1287
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1419
+ (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
1420
+ (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
1288
1421
  }
1289
1422
  const result = method.apply(context, args);
1290
1423
  return result;
@@ -1296,15 +1429,16 @@ function MonkeyEcxCoreServicePaged(params) {
1296
1429
  return function (target, propertyName, propertyDescriptor) {
1297
1430
  const method = propertyDescriptor.value;
1298
1431
  propertyDescriptor.value = function (...args) {
1432
+ var _a, _b, _c, _d, _e, _f;
1299
1433
  const context = this;
1300
1434
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1301
- const credentials = context.monkeyecxService.monkeyecxHandlingService.getMonkeyEcxServiceCredentials();
1435
+ const credentials = (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.getMonkeyEcxServiceCredentials();
1302
1436
  let requestPaged = null;
1303
1437
  if (credentials) {
1304
1438
  requestPaged = credentials.requestPaged;
1305
1439
  }
1306
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1307
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
1440
+ (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.clearAll();
1441
+ (_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
1308
1442
  }
1309
1443
  const result = method.apply(context, args);
1310
1444
  return result;
@@ -1316,13 +1450,14 @@ function MonkeyEcxCoreServiceQueue(name, description, params) {
1316
1450
  return function (target, propertyName, propertyDescriptor) {
1317
1451
  const method = propertyDescriptor.value;
1318
1452
  propertyDescriptor.value = function (...args) {
1453
+ var _a, _b, _c, _d;
1319
1454
  const context = this;
1320
1455
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1321
1456
  if (MonkeyEcxUtils.persistNullEmptyUndefined(params)) {
1322
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1323
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1457
+ (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
1458
+ (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
1324
1459
  }
1325
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
1460
+ context === null || context === void 0 ? void 0 : context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
1326
1461
  name,
1327
1462
  description
1328
1463
  }));
@@ -1339,13 +1474,14 @@ function MonkeyEcxServiceDownload(name, description, params) {
1339
1474
  return function (target, propertyName, propertyDescriptor) {
1340
1475
  const method = propertyDescriptor.value;
1341
1476
  propertyDescriptor.value = function (...args) {
1477
+ var _a, _b, _c, _d, _e, _f;
1342
1478
  const context = this;
1343
1479
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1344
1480
  if (MonkeyUtils.persistNullEmptyUndefined(params)) {
1345
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1346
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1481
+ (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
1482
+ (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
1347
1483
  }
1348
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestDownload(Object.assign({}, buildDownloadPropertys(name, description)));
1484
+ (_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxRequestDownload(Object.assign({}, buildDownloadPropertys(name, description)));
1349
1485
  }
1350
1486
  const result = method.apply(context, args);
1351
1487
  return result;
@@ -1359,13 +1495,14 @@ function MonkeyEcxServiceUpload(name, description, params) {
1359
1495
  return function (target, propertyName, propertyDescriptor) {
1360
1496
  const method = propertyDescriptor.value;
1361
1497
  propertyDescriptor.value = function (...args) {
1498
+ var _a, _b, _c, _d, _e, _f;
1362
1499
  const context = this;
1363
1500
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1364
1501
  if (MonkeyUtils.persistNullEmptyUndefined(params)) {
1365
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1366
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1502
+ (_b = (_a = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _a === void 0 ? void 0 : _a.monkeyecxHandlingService) === null || _b === void 0 ? void 0 : _b.clearAll();
1503
+ (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.setMonkeyEcxServiceCredentials(params);
1367
1504
  }
1368
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestUpload(Object.assign({}, buildUploadPropertys(name, description)));
1505
+ (_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxRequestUpload(Object.assign({}, buildUploadPropertys(name, description)));
1369
1506
  }
1370
1507
  const result = method.apply(context, args);
1371
1508
  return result;
@@ -1381,34 +1518,34 @@ class MonkeyEcxDragDropDirective {
1381
1518
  this.opacity = '1';
1382
1519
  }
1383
1520
  onDragOver(evt) {
1384
- evt.preventDefault();
1385
- evt.stopPropagation();
1521
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1522
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1386
1523
  this.background = '#9ecbec';
1387
1524
  this.opacity = '0.8';
1388
1525
  }
1389
1526
  onDragLeave(evt) {
1390
- evt.preventDefault();
1391
- evt.stopPropagation();
1527
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1528
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1392
1529
  this.background = '#f5fcff';
1393
1530
  this.opacity = '1';
1394
1531
  }
1395
1532
  ondrop(evt) {
1396
- evt.preventDefault();
1397
- evt.stopPropagation();
1533
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1534
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1398
1535
  this.background = '#f5fcff';
1399
1536
  this.opacity = '1';
1400
- const { files } = evt.dataTransfer;
1537
+ const { files } = evt === null || evt === void 0 ? void 0 : evt.dataTransfer;
1401
1538
  if (files.length > 0) {
1402
1539
  this.onFileDropped.emit(files);
1403
1540
  }
1404
1541
  }
1405
1542
  }
1406
- MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1407
- MonkeyEcxDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxDragDropDirective, selector: "[monkeyecxDragDrop]", outputs: { onFileDropped: "onFileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "style.background-color": "this.background", "style.opacity": "this.opacity" } }, ngImport: i0 });
1408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDragDropDirective, decorators: [{
1543
+ MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1544
+ MonkeyEcxDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxDragDropDirective, selector: "[monkeyecxDragDrop]", outputs: { onFileDropped: "onFileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "style.background-color": "this.background", "style.opacity": "this.opacity" } }, ngImport: i0 });
1545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, decorators: [{
1409
1546
  type: Directive,
1410
1547
  args: [{
1411
- selector: '[monkeyecxDragDrop]'
1548
+ selector: '[monkeyecxDragDrop]',
1412
1549
  }]
1413
1550
  }], propDecorators: { onFileDropped: [{
1414
1551
  type: Output
@@ -1455,9 +1592,9 @@ class MonkeyEcxFormatCurrency {
1455
1592
  this.el.value = this.handle(value);
1456
1593
  }
1457
1594
  }
1458
- MonkeyEcxFormatCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatCurrency, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
1459
- MonkeyEcxFormatCurrency.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxFormatCurrency, selector: "[monkeyecxFormatCurrency]", host: { listeners: { "input": "onInput($event.target.value)" } }, providers: [CurrencyPipe], ngImport: i0 });
1460
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatCurrency, decorators: [{
1595
+ MonkeyEcxFormatCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrency, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
1596
+ MonkeyEcxFormatCurrency.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFormatCurrency, selector: "[monkeyecxFormatCurrency]", host: { listeners: { "input": "onInput($event.target.value)" } }, providers: [CurrencyPipe], ngImport: i0 });
1597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrency, decorators: [{
1461
1598
  type: Directive,
1462
1599
  args: [{
1463
1600
  selector: '[monkeyecxFormatCurrency]',
@@ -1475,13 +1612,15 @@ class MonkeyEcxFormatUpper {
1475
1612
  // not to do
1476
1613
  }
1477
1614
  onKeyDown(evt) {
1615
+ var _a;
1478
1616
  const value = this._el.nativeElement.value.toUpperCase();
1479
1617
  this._renderer.setProperty(this._el.nativeElement, 'value', value);
1480
- this._onChange(value);
1618
+ (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
1481
1619
  evt.preventDefault();
1482
1620
  }
1483
1621
  onBlur() {
1484
- this._touched();
1622
+ var _a;
1623
+ (_a = this._touched) === null || _a === void 0 ? void 0 : _a.call(this);
1485
1624
  }
1486
1625
  writeValue(value) {
1487
1626
  this._renderer.setProperty(this._el.nativeElement, 'value', value);
@@ -1496,18 +1635,18 @@ class MonkeyEcxFormatUpper {
1496
1635
  this._renderer.setProperty(this._el.nativeElement, 'disabled', isDisabled);
1497
1636
  }
1498
1637
  }
1499
- MonkeyEcxFormatUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatUpper, deps: [{ token: i0.ElementRef, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1500
- MonkeyEcxFormatUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxFormatUpper, selector: "[monkeyecxFormatUpper]", host: { listeners: { "keyup": "onKeyDown($event)", "blur": "onBlur($event)" } }, providers: [
1638
+ MonkeyEcxFormatUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatUpper, deps: [{ token: i0.ElementRef, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1639
+ MonkeyEcxFormatUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFormatUpper, selector: "[monkeyecxFormatUpper]", host: { listeners: { "keyup": "onKeyDown($event)", "blur": "onBlur($event)" } }, providers: [
1501
1640
  {
1502
1641
  provide: NG_VALUE_ACCESSOR,
1503
1642
  useExisting: forwardRef(() => {
1504
1643
  // eslint-disable-next-line no-use-before-define
1505
1644
  return MonkeyEcxFormatUpper;
1506
1645
  }),
1507
- multi: true
1508
- }
1646
+ multi: true,
1647
+ },
1509
1648
  ], ngImport: i0 });
1510
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFormatUpper, decorators: [{
1649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatUpper, decorators: [{
1511
1650
  type: Directive,
1512
1651
  args: [{
1513
1652
  selector: '[monkeyecxFormatUpper]',
@@ -1518,13 +1657,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
1518
1657
  // eslint-disable-next-line no-use-before-define
1519
1658
  return MonkeyEcxFormatUpper;
1520
1659
  }),
1521
- multi: true
1522
- }
1523
- ]
1660
+ multi: true,
1661
+ },
1662
+ ],
1524
1663
  }]
1525
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
1526
- type: Self
1527
- }] }, { type: i0.Renderer2 }]; }, propDecorators: { onKeyDown: [{
1664
+ }], ctorParameters: function () {
1665
+ return [{ type: i0.ElementRef, decorators: [{
1666
+ type: Self
1667
+ }] }, { type: i0.Renderer2 }];
1668
+ }, propDecorators: { onKeyDown: [{
1528
1669
  type: HostListener,
1529
1670
  args: ['keyup', ['$event']]
1530
1671
  }], onBlur: [{
@@ -1545,9 +1686,9 @@ class MonkeyEcxOnlyAlphaNumericDirective {
1545
1686
  }
1546
1687
  }
1547
1688
  }
1548
- MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1549
- MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxOnlyAlphaNumericDirective, selector: "[monkeyecxOnlyAlphaNumeric]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, decorators: [{
1689
+ MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1690
+ MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyAlphaNumericDirective, selector: "[monkeyecxOnlyAlphaNumeric]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, decorators: [{
1551
1692
  type: Directive,
1552
1693
  args: [{
1553
1694
  selector: '[monkeyecxOnlyAlphaNumeric]'
@@ -1570,9 +1711,9 @@ class MonkeyEcxOnlyNumbersDirective {
1570
1711
  }
1571
1712
  }
1572
1713
  }
1573
- MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1574
- MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxOnlyNumbersDirective, selector: "[monkeyecxOnlyNumbers]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1575
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, decorators: [{
1714
+ MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1715
+ MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyNumbersDirective, selector: "[monkeyecxOnlyNumbers]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, decorators: [{
1576
1717
  type: Directive,
1577
1718
  args: [{
1578
1719
  selector: '[monkeyecxOnlyNumbers]'
@@ -1589,18 +1730,18 @@ class MonkeyEcxRequestPagedHandling {
1589
1730
  page: {}
1590
1731
  };
1591
1732
  }
1592
- handlePagedValuesFromApi(url) {
1733
+ handlePagedValuesFromApi(url = '') {
1593
1734
  if (url.search('\\?') < 0)
1594
1735
  return url;
1595
- const params = url.substr(url.search('\\?') + 1, url.length);
1596
- url = url.substr(0, url.search('\\?'));
1736
+ const params = url.substring(url.search('\\?') + 1, url.length);
1737
+ url = url.substring(0, url.search('\\?'));
1597
1738
  return `${url}?${new HttpParams({
1598
1739
  fromString: params
1599
1740
  }).delete('size').delete('page').toString()}`;
1600
1741
  }
1601
1742
  getUrlParams(url) {
1602
1743
  const { pagedParams } = this;
1603
- const { number, size } = pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page;
1744
+ const { number, size } = (pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page) || {};
1604
1745
  const hasInitialQueryParams = url.search('\\?') > 0;
1605
1746
  return `${!hasInitialQueryParams ? '?' : '&'}page=${number || 0}&size=${size || 20}`;
1606
1747
  }
@@ -1617,6 +1758,9 @@ class MonkeyEcxCommonsService {
1617
1758
  this.tokenStorage = tokenStorage;
1618
1759
  this.otherArgs = otherArgs;
1619
1760
  this.flagValidator = true;
1761
+ this.__error = null;
1762
+ this.__handledError = null;
1763
+ this.__page = null;
1620
1764
  this.__requestPaged = null;
1621
1765
  this.__onSearchChanged$ = new BehaviorSubject(null);
1622
1766
  this.__onDataChanged$ = new BehaviorSubject(null);
@@ -1626,8 +1770,10 @@ class MonkeyEcxCommonsService {
1626
1770
  this.__onGovernmentIdDataChanged$ = new BehaviorSubject(null);
1627
1771
  this.__onZipCodeDataChanged$ = new BehaviorSubject(null);
1628
1772
  this.__oni18nDataChanged$ = new BehaviorSubject(null);
1629
- this.__onDoSearch$ = new BehaviorSubject(null);
1773
+ this.__onDoSearch$ = new BehaviorSubject({});
1630
1774
  this.__onDoPagination$ = new BehaviorSubject(null);
1775
+ this.__tokenCredentials = null;
1776
+ this.__schedule = null;
1631
1777
  this.handleInit();
1632
1778
  }
1633
1779
  handleInit() {
@@ -1636,7 +1782,9 @@ class MonkeyEcxCommonsService {
1636
1782
  this.__tokenCredentials = this.tokenStorage.getToken();
1637
1783
  }
1638
1784
  if ((_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.router) {
1639
- const { clearOnChangeRoute } = (_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options;
1785
+ const { clearOnChangeRoute } = ((_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options) || {
1786
+ clearOnChangeRoute: false
1787
+ };
1640
1788
  this.otherArgs.router.events
1641
1789
  .pipe(filter((event) => {
1642
1790
  return event instanceof NavigationStart;
@@ -1691,11 +1839,10 @@ class MonkeyEcxCommonsService {
1691
1839
  503: 'service-problems'
1692
1840
  };
1693
1841
  if (!router) {
1694
- // eslint-disable-next-line no-console
1695
1842
  console.error('Router must be declared');
1696
1843
  }
1697
1844
  else {
1698
- router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
1845
+ router === null || router === void 0 ? void 0 : router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
1699
1846
  skipLocationChange: true
1700
1847
  });
1701
1848
  }
@@ -1721,10 +1868,10 @@ class MonkeyEcxCommonsService {
1721
1868
  }
1722
1869
  getNormalizedUrl(url) {
1723
1870
  const { __requestPaged } = this;
1724
- return new MonkeyEcxRequestPagedHandling(url, __requestPaged).getRequestWithPagedParams();
1871
+ return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}).getRequestWithPagedParams();
1725
1872
  }
1726
1873
  clear(clearData) {
1727
- var _a, _b, _c;
1874
+ var _a, _b, _c, _d, _e, _f;
1728
1875
  if (clearData) {
1729
1876
  this.__data = null;
1730
1877
  this.__requestPaged = null;
@@ -1733,9 +1880,9 @@ class MonkeyEcxCommonsService {
1733
1880
  if (this.__schedule) {
1734
1881
  const { queue } = this.__schedule;
1735
1882
  if (queue) {
1736
- this.otherArgs.queue.service.removeQueueItem(queue);
1883
+ (_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.queue) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeQueueItem(queue);
1737
1884
  }
1738
- (_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.schedule) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeSchedule(this.__schedule);
1885
+ (_f = (_e = (_d = this.otherArgs) === null || _d === void 0 ? void 0 : _d.schedule) === null || _e === void 0 ? void 0 : _e.service) === null || _f === void 0 ? void 0 : _f.removeSchedule(this.__schedule);
1739
1886
  this.__schedule = null;
1740
1887
  }
1741
1888
  }
@@ -1753,11 +1900,11 @@ class MonkeyEcxCommonsService {
1753
1900
  this.__tokenCredentials = this.tokenStorage.getToken();
1754
1901
  }
1755
1902
  if (this.allowedSecurityAccess(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.security)) {
1756
- Object.entries(this).forEach(([key, value]) => {
1757
- if (value instanceof BehaviorSubject) {
1758
- this[key] = new BehaviorSubject(null);
1759
- }
1760
- });
1903
+ //Object.entries(this).forEach(([key, value]) => {
1904
+ // if (value instanceof BehaviorSubject) {
1905
+ // Object.defineProperty(this, key, new BehaviorSubject(null));
1906
+ // }
1907
+ //});
1761
1908
  if (this.__schedule) {
1762
1909
  (_c = (_b = (_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.schedule) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.removeSchedule(this.__schedule);
1763
1910
  this.__schedule = null;
@@ -1784,8 +1931,8 @@ class MonkeyEcxCommonsService {
1784
1931
  });
1785
1932
  }
1786
1933
  if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions) {
1787
- const { service, keys } = otherArgs.translateOptions;
1788
- this.geti18n(service, keys);
1934
+ const { service, keys } = otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions;
1935
+ this.geti18n(service, keys || '');
1789
1936
  }
1790
1937
  if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.feature) {
1791
1938
  const { flag, service } = otherArgs.feature;
@@ -1798,7 +1945,7 @@ class MonkeyEcxCommonsService {
1798
1945
  const hasFlag = service.getFlag(flag);
1799
1946
  if (MonkeyEcxUtils.persistNullEmptyUndefined(hasFlag)) {
1800
1947
  if (!hasFlag) {
1801
- this.navigateToErrorPage(404, otherArgs.router);
1948
+ this.navigateToErrorPage(404, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
1802
1949
  return;
1803
1950
  }
1804
1951
  }
@@ -1811,7 +1958,7 @@ class MonkeyEcxCommonsService {
1811
1958
  }
1812
1959
  }
1813
1960
  else {
1814
- this.navigateToErrorPage(403, otherArgs.router);
1961
+ this.navigateToErrorPage(403, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
1815
1962
  }
1816
1963
  }
1817
1964
  getHTTPHeaderApplicationPDF() {
@@ -1821,8 +1968,23 @@ class MonkeyEcxCommonsService {
1821
1968
  };
1822
1969
  }
1823
1970
  genericMethod(link, data, callback) {
1824
- const { href, type } = link;
1825
- this.monkeyecxService[type.toLowerCase()](`${href}`, data).subscribe((resp) => {
1971
+ var _a, _b, _c, _d, _e;
1972
+ const { href, type = 'get' } = link;
1973
+ let func = null;
1974
+ const tp = `${type}`.toLowerCase();
1975
+ if (tp === 'get') {
1976
+ func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
1977
+ }
1978
+ else if (tp === 'post') {
1979
+ func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
1980
+ }
1981
+ else if (tp === 'put') {
1982
+ func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
1983
+ }
1984
+ else if (tp === 'delete') {
1985
+ func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
1986
+ }
1987
+ (_e = func === null || func === void 0 ? void 0 : func(`${href}`, data)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
1826
1988
  if (callback)
1827
1989
  callback();
1828
1990
  }, (err) => {
@@ -1848,6 +2010,12 @@ __decorate([
1848
2010
 
1849
2011
  /* eslint-disable max-len */
1850
2012
  class MonkeyEcxHandlingService {
2013
+ constructor() {
2014
+ this.monkeyecxServiceCredentials = null;
2015
+ this.monkeyecxRequestQueue = null;
2016
+ this.monkeyecxRequestDownload = null;
2017
+ this.monkeyecxRequestUpload = null;
2018
+ }
1851
2019
  clearAll() {
1852
2020
  this.monkeyecxServiceCredentials = null;
1853
2021
  this.monkeyecxRequestQueue = null;
@@ -1879,9 +2047,9 @@ class MonkeyEcxHandlingService {
1879
2047
  return this.monkeyecxRequestUpload;
1880
2048
  }
1881
2049
  }
1882
- MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1883
- MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
1884
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
2050
+ MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2051
+ MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
2052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
1885
2053
  type: Injectable,
1886
2054
  args: [{
1887
2055
  providedIn: 'root'
@@ -1975,51 +2143,25 @@ class MonkeyEcxService {
1975
2143
  }));
1976
2144
  }
1977
2145
  }
1978
- MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$4.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
1979
- MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
1980
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxService, decorators: [{
2146
+ MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$4.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
2147
+ MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
2148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
1981
2149
  type: Injectable,
1982
2150
  args: [{
1983
2151
  providedIn: 'root'
1984
2152
  }]
1985
2153
  }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
1986
2154
 
1987
- /* eslint-disable object-curly-newline */
1988
- class MonkeyEcxCookieStorageService {
1989
- constructor(cookieService) {
1990
- this.cookieService = cookieService;
1991
- // not to do
1992
- }
1993
- setCookie(name, value) {
1994
- this.removeCookie(name);
1995
- this.cookieService.set(name, value, null, '/', '', true, 'None');
1996
- }
1997
- getCookie(name) {
1998
- return this.cookieService.get(name);
1999
- }
2000
- removeCookie(name) {
2001
- this.cookieService.delete(name, '/');
2002
- }
2003
- }
2004
- MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$5.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
2005
- MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
2006
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
2007
- type: Injectable,
2008
- args: [{
2009
- providedIn: 'root'
2010
- }]
2011
- }], ctorParameters: function () { return [{ type: i1$5.CookieService }]; } });
2012
-
2013
2155
  let window$1;
2014
2156
  const text = {
2015
2157
  i18n: {
2016
2158
  title: 'We have an quick update for you',
2017
- message: 'Click anywhere here to reload your locale'
2159
+ message: 'Click anywhere here to reload your locale',
2018
2160
  },
2019
2161
  theme: {
2020
2162
  title: 'We have an quick update for you',
2021
- message: 'Click anywhere here to reload your theme'
2022
- }
2163
+ message: 'Click anywhere here to reload your theme',
2164
+ },
2023
2165
  };
2024
2166
  class MonkeyEcxErrorConfigService {
2025
2167
  constructor() {
@@ -2032,28 +2174,28 @@ class MonkeyEcxErrorConfigService {
2032
2174
  theme: '#0273E8',
2033
2175
  launcherText: '#fff',
2034
2176
  header: '#0273E8',
2035
- button: '#0273E8'
2177
+ button: '#0273E8',
2036
2178
  },
2037
2179
  zIndex: 99,
2038
2180
  offset: {
2039
2181
  horizontal: '1px',
2040
- vertical: '20px'
2182
+ vertical: '20px',
2041
2183
  },
2042
2184
  mobile: {
2043
- labelVisible: true
2185
+ labelVisible: true,
2044
2186
  },
2045
2187
  launcher: {
2046
2188
  mobile: {
2047
- labelVisible: true
2048
- }
2049
- }
2050
- }
2189
+ labelVisible: true,
2190
+ },
2191
+ },
2192
+ },
2051
2193
  });
2052
2194
  window$1.zE('webWidget', 'setLocale', 'en-US');
2053
2195
  window$1.zE('webWidget', 'show');
2054
2196
  }
2055
2197
  apply(type) {
2056
- const { title, message } = text[type];
2198
+ const { title, message } = text === null || text === void 0 ? void 0 : text[type];
2057
2199
  const element = document.createElement('div');
2058
2200
  element.id = 'monkeyecx-information';
2059
2201
  const elementImg = document.createElement('img');
@@ -2084,12 +2226,12 @@ class MonkeyEcxErrorConfigService {
2084
2226
  this.enableSupport();
2085
2227
  }
2086
2228
  }
2087
- MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2088
- MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
2089
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
2229
+ MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2230
+ MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
2231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
2090
2232
  type: Injectable,
2091
2233
  args: [{
2092
- providedIn: 'root'
2234
+ providedIn: 'root',
2093
2235
  }]
2094
2236
  }], ctorParameters: function () { return []; } });
2095
2237
 
@@ -2102,12 +2244,9 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
2102
2244
  this.translateService.addLangs(['pt-BR', 'en-US']);
2103
2245
  this.translateService.setDefaultLang('pt-BR');
2104
2246
  this.translateService.use('pt-BR');
2105
- this.applyLocal();
2106
- }
2107
- applyLocal() {
2108
- registerLocaleData(localePTBR, 'pt-PT');
2109
2247
  }
2110
2248
  apply(params, environment, change = false) {
2249
+ var _a;
2111
2250
  const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
2112
2251
  let { i18n } = params;
2113
2252
  const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
@@ -2119,21 +2258,21 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
2119
2258
  if (!cookie)
2120
2259
  change = true;
2121
2260
  }
2122
- monkeyecxService.get(`${environment.localAssets}/i18n/${i18n.lang}.json`).subscribe((config) => {
2261
+ (_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${environment.localAssets}/i18n/${i18n === null || i18n === void 0 ? void 0 : i18n.lang}.json`)) === null || _a === void 0 ? void 0 : _a.subscribe((config) => {
2123
2262
  const { lang, data } = config;
2124
2263
  this.translateService.setTranslation(lang, data, true);
2125
2264
  this.translateService.use(lang);
2126
2265
  if (change)
2127
2266
  document.location.reload();
2128
2267
  }, (err) => {
2129
- console.error(`i18n ${i18n.lang} not found!`);
2268
+ console.error(`i18n ${i18n === null || i18n === void 0 ? void 0 : i18n.lang} not found!`);
2130
2269
  monkeyecxErrorConfigService.apply('i18n');
2131
2270
  throwError(err);
2132
2271
  });
2133
2272
  }
2134
2273
  }
2135
- MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: MonkeyEcxService }, { token: i1$1.TranslateService }, { token: MonkeyEcxCookieStorageService }, { token: MonkeyEcxErrorConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2136
- MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
2274
+ MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: MonkeyEcxService }, { token: i1$1.TranslateService }, { token: MonkeyEcxCookieStorageService }, { token: MonkeyEcxErrorConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2275
+ MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
2137
2276
  __decorate([
2138
2277
  MonkeyEcxCoreService({
2139
2278
  httpResponse: {
@@ -2144,7 +2283,7 @@ __decorate([
2144
2283
  }
2145
2284
  })
2146
2285
  ], MonkeyEcxi18nConfigService.prototype, "apply", null);
2147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
2286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
2148
2287
  type: Injectable,
2149
2288
  args: [{
2150
2289
  providedIn: 'root'
@@ -2158,7 +2297,7 @@ class MonkeyEcxLogsConfigService {
2158
2297
  datadogRum.init({
2159
2298
  applicationId: environment === null || environment === void 0 ? void 0 : environment.dataDogApplicationId,
2160
2299
  clientToken: environment === null || environment === void 0 ? void 0 : environment.dataDogClientToken,
2161
- service: program.token,
2300
+ service: program === null || program === void 0 ? void 0 : program.token,
2162
2301
  site: 'datadoghq.com',
2163
2302
  sampleRate: 100,
2164
2303
  replaySampleRate: 100,
@@ -2173,9 +2312,9 @@ class MonkeyEcxLogsConfigService {
2173
2312
  }
2174
2313
  }
2175
2314
  }
2176
- MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2177
- MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
2178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
2315
+ MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2316
+ MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
2317
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
2179
2318
  type: Injectable,
2180
2319
  args: [{
2181
2320
  providedIn: 'root'
@@ -2192,7 +2331,7 @@ class MonkeyEcxServiceWorkerConfigService {
2192
2331
  handleValidation(config) {
2193
2332
  var _a;
2194
2333
  const { updates, modalService } = this;
2195
- (_a = updates === null || updates === void 0 ? void 0 : updates.available) === null || _a === void 0 ? void 0 : _a.subscribe(() => {
2334
+ (_a = updates === null || updates === void 0 ? void 0 : updates.versionUpdates) === null || _a === void 0 ? void 0 : _a.subscribe(() => {
2196
2335
  if (!config.showNewVersion || config.maintenance.closed) {
2197
2336
  document.location.reload();
2198
2337
  }
@@ -2220,14 +2359,14 @@ class MonkeyEcxServiceWorkerConfigService {
2220
2359
  this.verify();
2221
2360
  }
2222
2361
  }
2223
- MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$6.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
2224
- MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
2225
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
2362
+ MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
2363
+ MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
2364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
2226
2365
  type: Injectable,
2227
2366
  args: [{
2228
2367
  providedIn: 'root'
2229
2368
  }]
2230
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$6.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
2369
+ }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$5.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
2231
2370
 
2232
2371
  /* eslint-disable no-console */
2233
2372
  class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
@@ -2258,9 +2397,9 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
2258
2397
  this.handleValidation();
2259
2398
  }
2260
2399
  }
2261
- MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2262
- MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
2263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
2400
+ MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2401
+ MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
2402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
2264
2403
  type: Injectable,
2265
2404
  args: [{
2266
2405
  providedIn: 'root'
@@ -2290,9 +2429,9 @@ class MonkeyEcxMaintenanceConfigService {
2290
2429
  this.handleValidation(config);
2291
2430
  }
2292
2431
  }
2293
- MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2294
- MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
2295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
2432
+ MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2433
+ MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
2434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
2296
2435
  type: Injectable,
2297
2436
  args: [{
2298
2437
  providedIn: 'root'
@@ -2302,10 +2441,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2302
2441
  class MonkeyEcxFeatureToggleService {
2303
2442
  constructor() {
2304
2443
  this.flagSubject$ = new BehaviorSubject(null);
2444
+ this.flags = undefined;
2445
+ this.ldClient = undefined;
2305
2446
  // not to do
2306
2447
  }
2307
2448
  getAllFlags() {
2308
- this.flags = this.ldClient.allFlags();
2449
+ var _a;
2450
+ this.flags = (_a = this.ldClient) === null || _a === void 0 ? void 0 : _a.allFlags();
2309
2451
  this.flagSubject$.next(true);
2310
2452
  }
2311
2453
  identify(config, environment) {
@@ -2327,7 +2469,7 @@ class MonkeyEcxFeatureToggleService {
2327
2469
  this.ldClient.on('ready', this.getAllFlags.bind(this));
2328
2470
  }
2329
2471
  else {
2330
- this.ldClient.identify(user, null, this.getAllFlags);
2472
+ this.ldClient.identify(user, undefined, this.getAllFlags);
2331
2473
  }
2332
2474
  }
2333
2475
  }
@@ -2350,9 +2492,9 @@ class MonkeyEcxFeatureToggleService {
2350
2492
  return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
2351
2493
  }
2352
2494
  }
2353
- MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2354
- MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
2355
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
2495
+ MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2496
+ MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
2497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
2356
2498
  type: Injectable,
2357
2499
  args: [{
2358
2500
  providedIn: 'root'
@@ -2370,8 +2512,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2370
2512
  this.monkeyecxMaintenanceConfigService = monkeyecxMaintenanceConfigService;
2371
2513
  this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
2372
2514
  this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
2373
- this.configSubject$ = new BehaviorSubject(null);
2374
- this.configBoostrapSubject$ = new BehaviorSubject(null);
2515
+ this.configSubject$ = new BehaviorSubject({});
2516
+ this.configBoostrapSubject$ = new BehaviorSubject({});
2375
2517
  }
2376
2518
  internalValidations(...args) {
2377
2519
  const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
@@ -2380,12 +2522,15 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2380
2522
  monkeyecxSecurityConsoleConfigService.apply();
2381
2523
  monkeyecxServiceWorkerConfigService.apply(configBoostrap);
2382
2524
  monkeyecxMaintenanceConfigService.apply(configBoostrap);
2525
+ console.log('configBoostrap');
2526
+ console.log(configBoostrap);
2383
2527
  callback(configBoostrap);
2384
2528
  }
2385
- getWhiteLabelSettings(monkeyecxCode, configBoostrap = null, callback, environment, identifyCode) {
2529
+ getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
2530
+ var _a;
2386
2531
  const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
2387
2532
  const url = `${environment.urlAssets}`;
2388
- monkeyecxService.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`).subscribe((config) => {
2533
+ (_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)) === null || _a === void 0 ? void 0 : _a.subscribe((config) => {
2389
2534
  monkeyecxi18nConfigService.apply(config, environment);
2390
2535
  monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
2391
2536
  monkeyEcxFeatureToggleService.apply(configSubject$, environment);
@@ -2398,12 +2543,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2398
2543
  });
2399
2544
  }
2400
2545
  init(callback, environment, identifyCode, monkeyecxCode) {
2546
+ var _a;
2401
2547
  const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
2402
- monkeyecxService
2403
- .get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2548
+ (_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2404
2549
  observe: 'response'
2405
- })
2406
- .subscribe((resp) => {
2550
+ })) === null || _a === void 0 ? void 0 : _a.subscribe((resp) => {
2407
2551
  const { headers, body } = resp;
2408
2552
  const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
2409
2553
  if (monkeyCode) {
@@ -2427,8 +2571,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2427
2571
  return this.configBoostrapSubject$.asObservable();
2428
2572
  }
2429
2573
  }
2430
- MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }, { token: MonkeyEcxErrorConfigService }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Injectable });
2431
- MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
2574
+ MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }, { token: MonkeyEcxErrorConfigService }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Injectable });
2575
+ MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
2432
2576
  __decorate([
2433
2577
  MonkeyEcxCoreService({
2434
2578
  httpResponse: {
@@ -2439,7 +2583,7 @@ __decorate([
2439
2583
  }
2440
2584
  })
2441
2585
  ], MonkeyEcxConfigService.prototype, "init", null);
2442
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2443
2587
  type: Injectable,
2444
2588
  args: [{
2445
2589
  providedIn: 'root'
@@ -2482,16 +2626,20 @@ class MonkeyEcxTokenStorageService {
2482
2626
  token$.next(token);
2483
2627
  }
2484
2628
  getAllTokens() {
2485
- const { token } = this;
2629
+ var _a;
2630
+ const { token, config } = this;
2486
2631
  const handledToken = Object.assign({}, token);
2487
- Object.entries(token).forEach(([key, value]) => {
2632
+ Object.entries(token || {}).forEach(([key, value]) => {
2488
2633
  handledToken[key] = localStorage.getItem(key);
2489
2634
  });
2635
+ if (config === null || config === void 0 ? void 0 : config.program) {
2636
+ handledToken.program = (_a = config === null || config === void 0 ? void 0 : config.program) === null || _a === void 0 ? void 0 : _a.token;
2637
+ }
2490
2638
  return handledToken;
2491
2639
  }
2492
2640
  setAllMe(me) {
2493
2641
  const { me$ } = this;
2494
- let previousMe = JSON.parse(localStorage.getItem('me'));
2642
+ let previousMe = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem('me')) || '');
2495
2643
  Object.entries(me).forEach(([key, value]) => {
2496
2644
  if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
2497
2645
  previousMe = Object.assign(Object.assign({}, previousMe), { [key]: value });
@@ -2502,7 +2650,7 @@ class MonkeyEcxTokenStorageService {
2502
2650
  }
2503
2651
  getAllMe() {
2504
2652
  const me = localStorage.getItem('me');
2505
- return JSON.parse(me);
2653
+ return JSON.parse(me || '');
2506
2654
  }
2507
2655
  tokenHasChanged() {
2508
2656
  return this.token$.asObservable();
@@ -2525,8 +2673,9 @@ class MonkeyEcxTokenStorageService {
2525
2673
  clear(force) {
2526
2674
  const { token } = this;
2527
2675
  try {
2528
- Object.entries(token).forEach(([key, value]) => {
2529
- if (token._clearIgnore.ignore.filter((val) => {
2676
+ Object.entries(token || {}).forEach(([key, value]) => {
2677
+ var _a;
2678
+ if ((((_a = token === null || token === void 0 ? void 0 : token._clearIgnore) === null || _a === void 0 ? void 0 : _a.ignore) || []).filter((val) => {
2530
2679
  return val === key;
2531
2680
  }).length <= 0 ||
2532
2681
  force === true) {
@@ -2549,9 +2698,9 @@ class MonkeyEcxTokenStorageService {
2549
2698
  });
2550
2699
  }
2551
2700
  }
2552
- MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2553
- MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
2554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
2701
+ MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2702
+ MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
2703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
2555
2704
  type: Injectable,
2556
2705
  args: [{
2557
2706
  providedIn: 'root'
@@ -2563,7 +2712,9 @@ class MonkeyEcxSecurityDirective {
2563
2712
  this.elementRef = elementRef;
2564
2713
  this.tokenStorageService = tokenStorageService;
2565
2714
  this.cdr = cdr;
2715
+ this.roles = null;
2566
2716
  this.byExclusion = false;
2717
+ this.tokenCredentials = null;
2567
2718
  // not to do
2568
2719
  }
2569
2720
  getRole() {
@@ -2578,7 +2729,7 @@ class MonkeyEcxSecurityDirective {
2578
2729
  handleAccess() {
2579
2730
  const { roles, byExclusion } = this;
2580
2731
  let display = 'none';
2581
- const found = roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole());
2732
+ const found = (roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole())) || -1;
2582
2733
  if (byExclusion) {
2583
2734
  display = 'block';
2584
2735
  if (found > -1) {
@@ -2591,7 +2742,7 @@ class MonkeyEcxSecurityDirective {
2591
2742
  display = 'block';
2592
2743
  }
2593
2744
  }
2594
- if (!roles || roles.length === 0 || (this.getRole() === 'PROGRAM_ADMIN'))
2745
+ if (!roles || roles.length === 0 || this.getRole() === 'PROGRAM_ADMIN')
2595
2746
  display = 'block';
2596
2747
  this.elementRef.nativeElement.style.display = display;
2597
2748
  this.cdr.detectChanges();
@@ -2607,12 +2758,12 @@ class MonkeyEcxSecurityDirective {
2607
2758
  this.handleAccess();
2608
2759
  }
2609
2760
  }
2610
- MonkeyEcxSecurityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxSecurityDirective, deps: [{ token: i0.ElementRef }, { token: MonkeyEcxTokenStorageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
2611
- MonkeyEcxSecurityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxSecurityDirective, selector: "[monkeyecxSecurity]", inputs: { roles: ["securityRoles", "roles"], byExclusion: ["securityByExclusion", "byExclusion"] }, ngImport: i0 });
2612
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxSecurityDirective, decorators: [{
2761
+ MonkeyEcxSecurityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityDirective, deps: [{ token: i0.ElementRef }, { token: MonkeyEcxTokenStorageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
2762
+ MonkeyEcxSecurityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxSecurityDirective, selector: "[monkeyecxSecurity]", inputs: { roles: ["securityRoles", "roles"], byExclusion: ["securityByExclusion", "byExclusion"] }, ngImport: i0 });
2763
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityDirective, decorators: [{
2613
2764
  type: Directive,
2614
2765
  args: [{
2615
- selector: '[monkeyecxSecurity]'
2766
+ selector: '[monkeyecxSecurity]',
2616
2767
  }]
2617
2768
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MonkeyEcxTokenStorageService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { roles: [{
2618
2769
  type: Input,
@@ -2628,6 +2779,7 @@ class MonkeyEcxTooltipDirective {
2628
2779
  this.renderer = renderer;
2629
2780
  this.enableToShow = true;
2630
2781
  this.offset = 10;
2782
+ this.tooltip = null;
2631
2783
  // not to do
2632
2784
  }
2633
2785
  onMouseEnter() {
@@ -2687,11 +2839,14 @@ class MonkeyEcxTooltipDirective {
2687
2839
  this.renderer.setStyle(this.tooltip, 'transition', `opacity ${this.tooltipDelay}ms`);
2688
2840
  }
2689
2841
  setPosition() {
2842
+ var _a;
2690
2843
  const hostPos = this.el.nativeElement.getBoundingClientRect();
2691
- const tooltipPos = this.tooltip.getBoundingClientRect();
2844
+ const tooltipPos = (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
2845
+ if (!tooltipPos)
2846
+ return;
2692
2847
  const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
2693
- let top;
2694
- let left;
2848
+ let top = 0;
2849
+ let left = 0;
2695
2850
  if (this.tooltipPosition === 'top') {
2696
2851
  top = hostPos.top - tooltipPos.height - this.offset;
2697
2852
  left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
@@ -2712,12 +2867,12 @@ class MonkeyEcxTooltipDirective {
2712
2867
  this.renderer.setStyle(this.tooltip, 'left', `${left}px`);
2713
2868
  }
2714
2869
  }
2715
- MonkeyEcxTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2716
- MonkeyEcxTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyEcxTooltipDirective, selector: "[monkeyecxTooltip]", inputs: { tooltipDelay: "tooltipDelay", tooltipPosition: "tooltipPosition", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", enableToShow: "enableToShow" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "clickout()" } }, ngImport: i0 });
2717
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxTooltipDirective, decorators: [{
2870
+ MonkeyEcxTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2871
+ MonkeyEcxTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxTooltipDirective, selector: "[monkeyecxTooltip]", inputs: { tooltipDelay: "tooltipDelay", tooltipPosition: "tooltipPosition", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle", enableToShow: "enableToShow" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "clickout()" } }, ngImport: i0 });
2872
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTooltipDirective, decorators: [{
2718
2873
  type: Directive,
2719
2874
  args: [{
2720
- selector: '[monkeyecxTooltip]'
2875
+ selector: '[monkeyecxTooltip]',
2721
2876
  }]
2722
2877
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipDelay: [{
2723
2878
  type: Input
@@ -2740,7 +2895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2740
2895
  args: ['click']
2741
2896
  }] } });
2742
2897
 
2743
- class MonkeyFeatureDirective {
2898
+ class MonkeyEcxFeatureDirective {
2744
2899
  constructor(cdr, elementRef, monkeyecxFeatureToggleService) {
2745
2900
  this.cdr = cdr;
2746
2901
  this.elementRef = elementRef;
@@ -2753,9 +2908,11 @@ class MonkeyFeatureDirective {
2753
2908
  if (!monkeyecxFeatureToggleService) {
2754
2909
  return false;
2755
2910
  }
2756
- return monkeyecxFeatureToggleService.getFlag(feature);
2911
+ return (monkeyecxFeatureToggleService === null || monkeyecxFeatureToggleService === void 0 ? void 0 : monkeyecxFeatureToggleService.getFlag(feature)) || false;
2757
2912
  }
2758
2913
  handleDisplay() {
2914
+ if (!this.feature)
2915
+ return;
2759
2916
  const flag = this.getFeature(this.feature);
2760
2917
  let display = 'none';
2761
2918
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
@@ -2788,12 +2945,12 @@ class MonkeyFeatureDirective {
2788
2945
  });
2789
2946
  }
2790
2947
  }
2791
- MonkeyFeatureDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFeatureDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Directive });
2792
- MonkeyFeatureDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: MonkeyFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
2793
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFeatureDirective, decorators: [{
2948
+ MonkeyEcxFeatureDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MonkeyEcxFeatureToggleService }], target: i0.ɵɵFactoryTarget.Directive });
2949
+ MonkeyEcxFeatureDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
2950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, decorators: [{
2794
2951
  type: Directive,
2795
2952
  args: [{
2796
- selector: '[monkeyecxFeature]'
2953
+ selector: '[monkeyecxFeature]',
2797
2954
  }]
2798
2955
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { feature: [{
2799
2956
  type: Input,
@@ -2802,30 +2959,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2802
2959
 
2803
2960
  class MonkeyEcxDirectivesModule {
2804
2961
  }
2805
- MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2806
- MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
2962
+ MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2963
+ MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
2807
2964
  MonkeyEcxFormatCurrency,
2808
- MonkeyFeatureDirective,
2965
+ MonkeyEcxFeatureDirective,
2809
2966
  MonkeyEcxFormatUpper,
2810
2967
  MonkeyEcxOnlyAlphaNumericDirective,
2811
2968
  MonkeyEcxOnlyNumbersDirective,
2812
2969
  MonkeyEcxSecurityDirective,
2813
2970
  MonkeyEcxTooltipDirective], exports: [MonkeyEcxDragDropDirective,
2814
2971
  MonkeyEcxFormatCurrency,
2815
- MonkeyFeatureDirective,
2972
+ MonkeyEcxFeatureDirective,
2816
2973
  MonkeyEcxFormatUpper,
2817
2974
  MonkeyEcxOnlyAlphaNumericDirective,
2818
2975
  MonkeyEcxOnlyNumbersDirective,
2819
2976
  MonkeyEcxSecurityDirective,
2820
2977
  MonkeyEcxTooltipDirective] });
2821
- MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDirectivesModule });
2822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
2978
+ MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule });
2979
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
2823
2980
  type: NgModule,
2824
2981
  args: [{
2825
2982
  declarations: [
2826
2983
  MonkeyEcxDragDropDirective,
2827
2984
  MonkeyEcxFormatCurrency,
2828
- MonkeyFeatureDirective,
2985
+ MonkeyEcxFeatureDirective,
2829
2986
  MonkeyEcxFormatUpper,
2830
2987
  MonkeyEcxOnlyAlphaNumericDirective,
2831
2988
  MonkeyEcxOnlyNumbersDirective,
@@ -2835,7 +2992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2835
2992
  exports: [
2836
2993
  MonkeyEcxDragDropDirective,
2837
2994
  MonkeyEcxFormatCurrency,
2838
- MonkeyFeatureDirective,
2995
+ MonkeyEcxFeatureDirective,
2839
2996
  MonkeyEcxFormatUpper,
2840
2997
  MonkeyEcxOnlyAlphaNumericDirective,
2841
2998
  MonkeyEcxOnlyNumbersDirective,
@@ -2895,9 +3052,9 @@ class MonkeyEcxAuthenticationService {
2895
3052
  this.refreshToken = (args === null || args === void 0 ? void 0 : args.refreshToken) || this.refreshToken.bind(this);
2896
3053
  }
2897
3054
  }
2898
- MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2899
- MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
2900
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
3055
+ MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3056
+ MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
3057
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
2901
3058
  type: Injectable,
2902
3059
  args: [{
2903
3060
  providedIn: 'root'
@@ -2921,9 +3078,9 @@ class MonkeyEcxAuthGuardLogin {
2921
3078
  return true;
2922
3079
  }
2923
3080
  }
2924
- MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
2925
- MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
2926
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
3081
+ MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
3082
+ MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
3083
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
2927
3084
  type: Injectable,
2928
3085
  args: [{
2929
3086
  providedIn: 'root'
@@ -2944,9 +3101,9 @@ class MonkeyEcxAuthGuard {
2944
3101
  return false;
2945
3102
  }
2946
3103
  }
2947
- MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
2948
- MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
2949
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
3104
+ MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
3105
+ MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
3106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
2950
3107
  type: Injectable,
2951
3108
  args: [{
2952
3109
  providedIn: 'root'
@@ -2968,7 +3125,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2968
3125
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
2969
3126
  return false;
2970
3127
  }
2971
- const found = ((_b = (_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnore) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
3128
+ const found = ((_b = (((_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnore) || [])) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
2972
3129
  return found;
2973
3130
  }
2974
3131
  isHttpCodeIgnoreRedirect(tp, httpCode) {
@@ -2976,7 +3133,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2976
3133
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
2977
3134
  return false;
2978
3135
  }
2979
- const found = ((_b = (_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnoreRedirect) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
3136
+ const found = ((_b = (((_a = tp === null || tp === void 0 ? void 0 : tp.httpResponse) === null || _a === void 0 ? void 0 : _a.httpCodeIgnoreRedirect) || [])) === null || _b === void 0 ? void 0 : _b.indexOf(httpCode)) > -1;
2980
3137
  return found;
2981
3138
  }
2982
3139
  getMessageType(status) {
@@ -3022,7 +3179,8 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
3022
3179
  });
3023
3180
  const reader = new FileReader();
3024
3181
  reader.addEventListener('loadend', (e) => {
3025
- const text = e.target.result;
3182
+ var _a;
3183
+ const text = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.result;
3026
3184
  const jsonResp = JSON.parse(text);
3027
3185
  customMessage = jsonResp.notifications;
3028
3186
  this.showMessage(customMessage, error, mkc);
@@ -3047,7 +3205,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
3047
3205
  };
3048
3206
  const found = routes[status];
3049
3207
  let timeout = 0;
3050
- if (found && !this.isHttpCodeIgnoreRedirect(mkc, error.status)) {
3208
+ if (found && !this.isHttpCodeIgnoreRedirect(mkc, error === null || error === void 0 ? void 0 : error.status)) {
3051
3209
  const route = `/app/pages/${found}`.toLowerCase();
3052
3210
  timeout = 800;
3053
3211
  router.navigate([route]);
@@ -3058,16 +3216,16 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
3058
3216
  }
3059
3217
  handleErrorRefreshToken(error, mkc) {
3060
3218
  if (error.status === 401 || error.status === 400) {
3061
- NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack());
3219
+ NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
3062
3220
  }
3063
3221
  else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
3064
3222
  this.handleMessage(error, mkc);
3065
3223
  }
3066
3224
  }
3067
3225
  }
3068
- MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i1$3.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
3069
- MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
3070
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
3226
+ MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxTokenStorageService }, { token: MonkeyEcxAuthenticationService }, { token: i1$3.Router }, { token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
3227
+ MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
3228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
3071
3229
  type: Injectable,
3072
3230
  args: [{
3073
3231
  providedIn: 'root'
@@ -3090,9 +3248,9 @@ class MonkeyEcxOthersErrorsHandlingService {
3090
3248
  }
3091
3249
  }
3092
3250
  }
3093
- MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3094
- MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, providedIn: 'root' });
3095
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, decorators: [{
3251
+ MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3252
+ MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, providedIn: 'root' });
3253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, decorators: [{
3096
3254
  type: Injectable,
3097
3255
  args: [{
3098
3256
  providedIn: 'root'
@@ -3109,8 +3267,12 @@ class MonkeyEcxErrorHandlingService {
3109
3267
  const handlingService = injector.get(MonkeyEcxHandlingService);
3110
3268
  const httpErrorHandlingService = injector.get(MonkeyEcxHttpErrorHandlingService);
3111
3269
  const othersErrorsHandlingService = injector.get(MonkeyEcxOthersErrorsHandlingService);
3270
+ console.log('======error');
3271
+ console.log(error);
3112
3272
  if (error instanceof HttpErrorResponse) {
3113
- const sCredentials = handlingService.getMonkeyEcxServiceCredentials();
3273
+ const sCredentials = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) || {};
3274
+ console.log('sCredentials');
3275
+ console.log(sCredentials);
3114
3276
  if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
3115
3277
  httpErrorHandlingService.handleErrorRefreshToken(error, sCredentials);
3116
3278
  }
@@ -3122,9 +3284,9 @@ class MonkeyEcxErrorHandlingService {
3122
3284
  }
3123
3285
  }
3124
3286
  }
3125
- MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3126
- MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingService, providedIn: 'root' });
3127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
3287
+ MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3288
+ MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, providedIn: 'root' });
3289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
3128
3290
  type: Injectable,
3129
3291
  args: [{
3130
3292
  providedIn: 'root'
@@ -3144,10 +3306,10 @@ class MonkeyEcxErrorHandlingModule {
3144
3306
  };
3145
3307
  }
3146
3308
  }
3147
- MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3148
- MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [CommonModule] });
3149
- MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [[CommonModule]] });
3150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxErrorHandlingModule, decorators: [{
3309
+ MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3310
+ MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [CommonModule] });
3311
+ MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [[CommonModule]] });
3312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, decorators: [{
3151
3313
  type: NgModule,
3152
3314
  args: [{
3153
3315
  imports: [CommonModule]
@@ -3164,8 +3326,9 @@ class MonkeyEcxHttpConfigErrorInterceptor {
3164
3326
  return next.handle(request).pipe(map((event) => {
3165
3327
  return event;
3166
3328
  }), catchError((error) => {
3329
+ var _a, _b;
3167
3330
  if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
3168
- return this.monkeyecxAuthenticationService.refreshToken().pipe(take(1), map(() => {
3331
+ return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.refreshToken()) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map(() => {
3169
3332
  return this.monkeyecxAuthenticationService.getRequestWithHeaders(request);
3170
3333
  }), mergeMap((resp) => {
3171
3334
  return next.handle(resp).pipe(catchError((error) => {
@@ -3175,15 +3338,15 @@ class MonkeyEcxHttpConfigErrorInterceptor {
3175
3338
  }), catchError((error) => {
3176
3339
  this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
3177
3340
  return throwError(null);
3178
- }));
3341
+ }))) || throwError(error);
3179
3342
  }
3180
3343
  return throwError(error);
3181
3344
  }));
3182
3345
  }
3183
3346
  }
3184
- MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3185
- MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
3186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
3347
+ MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3348
+ MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
3349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
3187
3350
  type: Injectable
3188
3351
  }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3189
3352
 
@@ -3194,7 +3357,8 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
3194
3357
  // not to do
3195
3358
  }
3196
3359
  intercept(request, next) {
3197
- return this.monkeyecxAuthenticationService.getRequestWithHeadersOb(request).pipe(take(1), map((event) => {
3360
+ var _a, _b;
3361
+ return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.getRequestWithHeadersOb(request)) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map((event) => {
3198
3362
  return event;
3199
3363
  }), mergeMap((resp) => {
3200
3364
  request = request.clone({
@@ -3204,12 +3368,12 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
3204
3368
  }), catchError((error) => {
3205
3369
  this.monkeyecxErrorHandlingService.handleError(error);
3206
3370
  return throwError(error);
3207
- }));
3371
+ }))) || throwError('getRequestWithHeadersOb undefined');
3208
3372
  }
3209
3373
  }
3210
- MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3211
- MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
3212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
3374
+ MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3375
+ MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
3376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
3213
3377
  type: Injectable
3214
3378
  }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3215
3379
 
@@ -3245,7 +3409,7 @@ class MonkeyEcxRequestQueueHandlingService {
3245
3409
  ...saved.map((val) => {
3246
3410
  const valSaved = Object.assign({}, val);
3247
3411
  const { total, loaded } = progress;
3248
- const currentPecentage = Math.floor((loaded / total) * 100);
3412
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3249
3413
  const totalPercentage = 100;
3250
3414
  if (valSaved.item.id === q.item.id) {
3251
3415
  return Object.assign(Object.assign({}, valSaved), { progress: {
@@ -3276,12 +3440,16 @@ class MonkeyEcxRequestQueueHandlingService {
3276
3440
  this.queues$.next(this.queue);
3277
3441
  }
3278
3442
  setQueue(q) {
3443
+ if (!q)
3444
+ return;
3279
3445
  this.addToQueue(q);
3280
3446
  }
3281
3447
  getQueue() {
3282
3448
  return this.queues$.asObservable();
3283
3449
  }
3284
3450
  finishQueueItem(q, action, status) {
3451
+ if (!q)
3452
+ return;
3285
3453
  this.markQueueItemAsFinish(q, status, action);
3286
3454
  }
3287
3455
  removeQueueItem(q) {
@@ -3296,9 +3464,9 @@ class MonkeyEcxRequestQueueHandlingService {
3296
3464
  }));
3297
3465
  }
3298
3466
  }
3299
- MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3300
- MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, providedIn: 'root' });
3301
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, decorators: [{
3467
+ MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3468
+ MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, providedIn: 'root' });
3469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, decorators: [{
3302
3470
  type: Injectable,
3303
3471
  args: [{
3304
3472
  providedIn: 'root'
@@ -3338,7 +3506,7 @@ class MonkeyEcxRequestQueueModalHandlingService {
3338
3506
  ...saved.map((val) => {
3339
3507
  const valSaved = Object.assign({}, val);
3340
3508
  const { total, loaded } = progress;
3341
- const currentPecentage = Math.floor((loaded / total) * 100);
3509
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3342
3510
  const totalPercentage = 100;
3343
3511
  if (valSaved.item.id === q.item.id) {
3344
3512
  return Object.assign(Object.assign({}, valSaved), { progress: {
@@ -3397,9 +3565,9 @@ class MonkeyEcxRequestQueueModalHandlingService {
3397
3565
  }));
3398
3566
  }
3399
3567
  }
3400
- MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3401
- MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, providedIn: 'root' });
3402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, decorators: [{
3568
+ MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3569
+ MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, providedIn: 'root' });
3570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, decorators: [{
3403
3571
  type: Injectable,
3404
3572
  args: [{
3405
3573
  providedIn: 'root'
@@ -3416,7 +3584,7 @@ class MonkeyEcxHttpConfigQueueInterceptor {
3416
3584
  intercept(request, next) {
3417
3585
  const { injector, isQueueProperty } = this;
3418
3586
  const monkeyecxHandlingService = injector.get(MonkeyEcxHandlingService);
3419
- const monkeyecxRequestQueue = monkeyecxHandlingService.getMonkeyEcxRequestQueue();
3587
+ const monkeyecxRequestQueue = monkeyecxHandlingService === null || monkeyecxHandlingService === void 0 ? void 0 : monkeyecxHandlingService.getMonkeyEcxRequestQueue();
3420
3588
  if (isQueueProperty(monkeyecxRequestQueue)) {
3421
3589
  this.monkeyecxRequestQueueHandlingService.setQueue(monkeyecxRequestQueue);
3422
3590
  }
@@ -3427,13 +3595,14 @@ class MonkeyEcxHttpConfigQueueInterceptor {
3427
3595
  }));
3428
3596
  }
3429
3597
  isQueueProperty(mrq) {
3598
+ var _a;
3430
3599
  return (MonkeyEcxUtils.persistNullEmptyUndefined(mrq) &&
3431
- MonkeyEcxUtils.persistNullEmptyUndefined(mrq.item.name));
3600
+ MonkeyEcxUtils.persistNullEmptyUndefined((_a = mrq === null || mrq === void 0 ? void 0 : mrq.item) === null || _a === void 0 ? void 0 : _a.name));
3432
3601
  }
3433
3602
  }
3434
- MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3435
- MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
3436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
3603
+ MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3604
+ MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
3605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
3437
3606
  type: Injectable
3438
3607
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: MonkeyEcxRequestQueueHandlingService }]; } });
3439
3608
 
@@ -3444,11 +3613,12 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
3444
3613
  // no to do
3445
3614
  }
3446
3615
  intercept(request, next) {
3616
+ var _a;
3447
3617
  const { injector, isLoadingInProgressProperty } = this;
3448
3618
  const handlingService = injector.get(MonkeyEcxHandlingService);
3449
3619
  const progressBarService = injector.get(MonkeyEcxProgressBarService);
3450
- const inProgress = handlingService.getMonkeyEcxServiceCredentials()
3451
- ? handlingService.getMonkeyEcxServiceCredentials().requestInProgress
3620
+ const inProgress = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials())
3621
+ ? ((_a = handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) === null || _a === void 0 ? void 0 : _a.requestInProgress) || null
3452
3622
  : null;
3453
3623
  if (isLoadingInProgressProperty(inProgress)) {
3454
3624
  progressBarService.show();
@@ -3460,15 +3630,17 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
3460
3630
  }));
3461
3631
  }
3462
3632
  isLoadingInProgressProperty(mlp) {
3633
+ if (!mlp)
3634
+ return false;
3463
3635
  return MonkeyEcxUtils.persistNullEmptyUndefined(mlp) &&
3464
3636
  MonkeyEcxUtils.persistNullEmptyUndefined(mlp.showProgress)
3465
3637
  ? mlp.showProgress
3466
3638
  : true;
3467
3639
  }
3468
3640
  }
3469
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3470
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
3471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
3641
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3642
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
3643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
3472
3644
  type: Injectable
3473
3645
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
3474
3646
 
@@ -3501,10 +3673,10 @@ class MonkeyEcxHttpConfigInterceptorModule {
3501
3673
  };
3502
3674
  }
3503
3675
  }
3504
- MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3505
- MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
3506
- MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
3507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
3676
+ MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3677
+ MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
3678
+ MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
3679
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
3508
3680
  type: NgModule,
3509
3681
  args: [{
3510
3682
  imports: [CommonModule]
@@ -3535,16 +3707,18 @@ class MonkeyEcxConfigModule {
3535
3707
  };
3536
3708
  }
3537
3709
  }
3538
- MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
3539
- MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigModule });
3540
- MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigModule });
3541
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
3710
+ MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
3711
+ MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3712
+ MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
3542
3714
  type: NgModule
3543
- }], ctorParameters: function () { return [{ type: MonkeyEcxConfigModule, decorators: [{
3544
- type: Optional
3545
- }, {
3546
- type: SkipSelf
3547
- }] }]; } });
3715
+ }], ctorParameters: function () {
3716
+ return [{ type: MonkeyEcxConfigModule, decorators: [{
3717
+ type: Optional
3718
+ }, {
3719
+ type: SkipSelf
3720
+ }] }];
3721
+ } });
3548
3722
 
3549
3723
  class MonkeyEcxLoggedHandlingService {
3550
3724
  constructor() {
@@ -3564,9 +3738,9 @@ class MonkeyEcxLoggedHandlingService {
3564
3738
  this.destroySchedule();
3565
3739
  }
3566
3740
  }
3567
- MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3568
- MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
3569
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
3741
+ MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3742
+ MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
3743
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
3570
3744
  type: Injectable,
3571
3745
  args: [{
3572
3746
  providedIn: 'root'
@@ -3610,7 +3784,7 @@ class MonkeyEcxRequestDownloadHandlingService {
3610
3784
  this.download = [
3611
3785
  ...saved.map((val) => {
3612
3786
  const valSaved = Object.assign({}, val);
3613
- const currentPecentage = Math.floor((loaded / total) * 100);
3787
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3614
3788
  const totalPercentage = 100;
3615
3789
  if (valSaved.item.id === q.item.id) {
3616
3790
  return Object.assign(Object.assign({}, valSaved), { loaded,
@@ -3640,9 +3814,9 @@ class MonkeyEcxRequestDownloadHandlingService {
3640
3814
  return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3641
3815
  }
3642
3816
  }
3643
- MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3644
- MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
3645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
3817
+ MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3818
+ MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
3819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
3646
3820
  type: Injectable,
3647
3821
  args: [{
3648
3822
  providedIn: 'root'
@@ -3690,9 +3864,9 @@ class MonkeyEcxRequestDownloadedHandlingService {
3690
3864
  return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3691
3865
  }
3692
3866
  }
3693
- MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3694
- MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
3695
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
3867
+ MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3868
+ MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
3869
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
3696
3870
  type: Injectable,
3697
3871
  args: [{
3698
3872
  providedIn: 'root'
@@ -3725,24 +3899,25 @@ class MonkeyEcxDiscoveryParamsService {
3725
3899
  const navigation = this.router.getCurrentNavigation();
3726
3900
  let state = null;
3727
3901
  if (MonkeyEcxUtils.persistNullEmptyUndefined(navigation)) {
3728
- state = navigation.extras.state;
3902
+ state = navigation === null || navigation === void 0 ? void 0 : navigation.extras.state;
3729
3903
  }
3730
3904
  return state ? state[field] : null;
3731
3905
  }
3732
3906
  getParam(param) {
3907
+ var _a;
3733
3908
  const { root } = this.router.routerState.snapshot;
3734
3909
  const route = this.getLastChild(root);
3735
3910
  let found = MonkeyEcxUtils.persistNullEmptyUndefined(route)
3736
- ? route.paramMap.get(param)
3911
+ ? ((_a = route === null || route === void 0 ? void 0 : route.paramMap) === null || _a === void 0 ? void 0 : _a.get(param)) || ''
3737
3912
  : '';
3738
3913
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(found))
3739
3914
  found = this.getData(param);
3740
3915
  return found;
3741
3916
  }
3742
3917
  }
3743
- MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
3744
- MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
3745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
3918
+ MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
3919
+ MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
3920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
3746
3921
  type: Injectable,
3747
3922
  args: [{
3748
3923
  providedIn: 'root'
@@ -3794,8 +3969,23 @@ class MonkeyEcxRequestScheduleService {
3794
3969
  this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
3795
3970
  }
3796
3971
  doCall(sch) {
3972
+ var _a, _b, _c, _d, _e;
3797
3973
  const { url, method, params, data, action } = sch;
3798
- this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
3974
+ let func = null;
3975
+ const tp = `${method}`.toLowerCase();
3976
+ if (tp === 'get') {
3977
+ func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
3978
+ }
3979
+ else if (tp === 'post') {
3980
+ func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
3981
+ }
3982
+ else if (tp === 'put') {
3983
+ func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
3984
+ }
3985
+ else if (tp === 'delete') {
3986
+ func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
3987
+ }
3988
+ (_e = func === null || func === void 0 ? void 0 : func(`${url}`, params)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
3799
3989
  action(Object.assign(Object.assign({}, data), resp), sch);
3800
3990
  }, () => {
3801
3991
  this.removeFromSchedule(sch);
@@ -3822,8 +4012,8 @@ class MonkeyEcxRequestScheduleService {
3822
4012
  return q;
3823
4013
  }
3824
4014
  }
3825
- MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3826
- MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
4015
+ MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
4016
+ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
3827
4017
  __decorate([
3828
4018
  MonkeyEcxCoreService({
3829
4019
  httpResponse: {
@@ -3834,7 +4024,7 @@ __decorate([
3834
4024
  }
3835
4025
  })
3836
4026
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
3837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
3838
4028
  type: Injectable,
3839
4029
  args: [{
3840
4030
  providedIn: 'root'
@@ -3866,7 +4056,7 @@ class MonkeyEcxSpecificationSearch {
3866
4056
  return `${key}`.replace(':first', value1[0]).replace(':last', value1[1]);
3867
4057
  }
3868
4058
  }
3869
- return `${key}`.replace(':value', value1.toString());
4059
+ return `${key}`.replace(':value', `${value1}`);
3870
4060
  })[0];
3871
4061
  }
3872
4062
  queryVisitor(value) {
@@ -3917,10 +4107,11 @@ class MonkeyEcxSpecificationSearch {
3917
4107
  }
3918
4108
  buildMoreThanOne(field, op = OpSearch.EQUAL) {
3919
4109
  var _a, _b;
4110
+ let self = this;
3920
4111
  try {
3921
- if (!this[field])
4112
+ if (!self[field])
3922
4113
  return [];
3923
- const filters = (_b = (_a = this[field]) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.map((filter) => {
4114
+ const filters = (_b = (_a = self[field]) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.map((filter) => {
3924
4115
  if (!filter)
3925
4116
  return null;
3926
4117
  return {
@@ -3939,11 +4130,11 @@ class MonkeyEcxSpecificationSearch {
3939
4130
 
3940
4131
  class MonkeyFrontCoreModuleModule {
3941
4132
  }
3942
- MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFrontCoreModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3943
- MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFrontCoreModuleModule, imports: [CommonModule,
3944
- HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$6.ServiceWorkerModule, ClosedToMaintenanceModule,
4133
+ MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4134
+ MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, imports: [CommonModule,
4135
+ HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule,
3945
4136
  VersionChangedModule] });
3946
- MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFrontCoreModuleModule, providers: [
4137
+ MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, providers: [
3947
4138
  MonkeyStyleGuideModalService,
3948
4139
  MonkeyStyleGuideSettingsService,
3949
4140
  MonkeyStyleGuideSnackbarService
@@ -3959,7 +4150,7 @@ MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0
3959
4150
  ClosedToMaintenanceModule,
3960
4151
  VersionChangedModule
3961
4152
  ]] });
3962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: MonkeyFrontCoreModuleModule, decorators: [{
4153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, decorators: [{
3963
4154
  type: NgModule,
3964
4155
  args: [{
3965
4156
  imports: [
@@ -3990,5 +4181,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
3990
4181
  * Generated bundle index. Do not edit.
3991
4182
  */
3992
4183
 
3993
- export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDocumentTypePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureToggleService, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatNumber, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFeatureDirective, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, zipCodeValidator };
3994
- //# sourceMappingURL=monkey-front-core.js.map
4184
+ export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, zipCodeValidator };
4185
+ //# sourceMappingURL=monkey-front-core.mjs.map