monkey-front-core 0.0.33 → 0.0.37

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 (250) hide show
  1. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -0
  2. 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
  3. package/{esm2015/lib/components/closed-to-maintenance/index.js → esm2020/lib/components/closed-to-maintenance/index.mjs} +0 -0
  4. package/{esm2015/lib/components/index.js → esm2020/lib/components/index.mjs} +0 -0
  5. package/{esm2015/lib/components/progress-bar/index.js → esm2020/lib/components/progress-bar/index.mjs} +0 -0
  6. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -0
  7. package/{esm2015/lib/components/progress-bar/progress-bar.module.js → esm2020/lib/components/progress-bar/progress-bar.module.mjs} +5 -5
  8. package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -0
  9. package/{esm2015/lib/components/version-changed/index.js → esm2020/lib/components/version-changed/index.mjs} +0 -0
  10. package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -0
  11. package/{esm2015/lib/components/version-changed/version-changed.module.js → esm2020/lib/components/version-changed/version-changed.module.mjs} +5 -5
  12. package/esm2020/lib/core/decorators/index.mjs +5 -0
  13. package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -0
  14. package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +111 -0
  15. package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -0
  16. package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -0
  17. package/{esm2015/lib/core/directives/index.js → esm2020/lib/core/directives/index.mjs} +2 -1
  18. package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +55 -0
  19. package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -0
  20. package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -0
  21. package/{esm2015/lib/core/directives/monkeyecx-format-currency.js → esm2020/lib/core/directives/monkeyecx-format-currency.mjs} +4 -4
  22. package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -0
  23. package/{esm2015/lib/core/directives/monkeyecx-only-alpha-numeric-directive.js → esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs} +4 -4
  24. package/{esm2015/lib/core/directives/monkeyecx-only-number-directive.js → esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs} +4 -4
  25. package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +69 -0
  26. package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -0
  27. package/{esm2015/lib/core/index.js → esm2020/lib/core/index.mjs} +0 -0
  28. package/{esm2015/lib/core/interceptors/index.js → esm2020/lib/core/interceptors/index.mjs} +0 -0
  29. package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +39 -0
  30. package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +32 -0
  31. package/{esm2015/lib/core/interceptors/monkeyecx-http-config-interceptor.module.js → esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs} +5 -5
  32. package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -0
  33. package/{esm2015/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.js → esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs} +6 -6
  34. package/{esm2015/lib/core/interfaces/index.js → esm2020/lib/core/interfaces/index.mjs} +0 -0
  35. package/{esm2015/lib/core/interfaces/monkeyecx-auth-credentials.js → esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs} +0 -0
  36. package/{esm2015/lib/core/interfaces/monkeyecx-company.js → esm2020/lib/core/interfaces/monkeyecx-company.mjs} +0 -0
  37. package/{esm2015/lib/core/interfaces/monkeyecx-config-boostrap.js → esm2020/lib/core/interfaces/monkeyecx-config-boostrap.mjs} +0 -0
  38. package/{esm2015/lib/core/interfaces/monkeyecx-config.js → esm2020/lib/core/interfaces/monkeyecx-config.mjs} +0 -0
  39. package/{esm2015/lib/core/interfaces/monkeyecx-error-response.js → esm2020/lib/core/interfaces/monkeyecx-error-response.mjs} +0 -0
  40. package/{esm2015/lib/core/interfaces/monkeyecx-handled-error-response.js → esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs} +0 -0
  41. package/{esm2015/lib/core/interfaces/monkeyecx-header-credentials.js → esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs} +0 -0
  42. package/{esm2015/lib/core/interfaces/monkeyecx-intercom-options.js → esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs} +0 -0
  43. package/{esm2015/lib/core/interfaces/monkeyecx-me-credentials.js → esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs} +0 -0
  44. package/{esm2015/lib/core/interfaces/monkeyecx-navigation.js → esm2020/lib/core/interfaces/monkeyecx-navigation.mjs} +0 -0
  45. package/{esm2015/lib/core/interfaces/monkeyecx-program.js → esm2020/lib/core/interfaces/monkeyecx-program.mjs} +0 -0
  46. package/{esm2015/lib/core/interfaces/monkeyecx-releases.js → esm2020/lib/core/interfaces/monkeyecx-releases.mjs} +0 -0
  47. package/{esm2015/lib/core/interfaces/monkeyecx-request-in-progress.js → esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs} +0 -0
  48. package/{esm2015/lib/core/interfaces/monkeyecx-request-paged.js → esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs} +0 -0
  49. package/{esm2015/lib/core/interfaces/monkeyecx-response-paged.js → esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs} +0 -0
  50. package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -0
  51. package/{esm2015/lib/core/interfaces/monkeyecx-token-credentials.js → esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs} +0 -0
  52. package/{esm2015/lib/core/interfaces/monkeyecx-translate-options.js → esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs} +0 -0
  53. package/{esm2015/lib/core/interfaces/request-download/index.js → esm2020/lib/core/interfaces/request-download/index.mjs} +0 -0
  54. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -0
  55. package/{esm2015/lib/core/interfaces/request-download/monkeyecx-request-downloaded.js → esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs} +0 -0
  56. 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
  57. package/{esm2015/lib/core/interfaces/request-queue/index.js → esm2020/lib/core/interfaces/request-queue/index.mjs} +0 -0
  58. package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs} +0 -0
  59. package/{esm2015/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.js → esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs} +0 -0
  60. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -0
  61. package/{esm2015/lib/core/interfaces/request-upload/index.js → esm2020/lib/core/interfaces/request-upload/index.mjs} +0 -0
  62. 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
  63. package/{esm2015/lib/core/interfaces/request-upload/monkeyecx-request-upload.js → esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs} +1 -1
  64. package/{esm2015/lib/core/interfaces/schedules/index.js → esm2020/lib/core/interfaces/schedules/index.mjs} +0 -0
  65. package/{esm2015/lib/core/interfaces/schedules/monkeyecx-request-schedule.js → esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs} +0 -0
  66. package/{esm2015/lib/core/model/index.js → esm2020/lib/core/model/index.mjs} +0 -0
  67. package/{esm2015/lib/core/model/monkeyecx-model.js → esm2020/lib/core/model/monkeyecx-model.mjs} +1 -1
  68. package/esm2020/lib/core/pipes/index.mjs +16 -0
  69. package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -0
  70. package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -0
  71. package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +27 -0
  72. package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +31 -0
  73. package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +29 -0
  74. package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +19 -0
  75. package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +20 -0
  76. package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +42 -0
  77. package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +20 -0
  78. package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +19 -0
  79. package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +19 -0
  80. package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +19 -0
  81. package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +87 -0
  82. package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -0
  83. package/{esm2015/lib/core/pipes/monkeyecx-truncate-qtd.js → esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs} +4 -4
  84. package/{esm2015/lib/core/services/auth/index.js → esm2020/lib/core/services/auth/index.mjs} +0 -0
  85. 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
  86. package/{esm2015/lib/core/services/auth/monkeyecx-auth-guard.service.js → esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs} +4 -4
  87. package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +61 -0
  88. package/{esm2015/lib/core/services/commons/index.js → esm2020/lib/core/services/commons/index.mjs} +0 -0
  89. package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +269 -0
  90. package/{esm2015/lib/core/services/config/monkeyecx-config.module.js → esm2020/lib/core/services/config/monkeyecx-config.module.mjs} +5 -5
  91. package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +108 -0
  92. package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -0
  93. package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +65 -0
  94. package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +66 -0
  95. package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +34 -0
  96. package/{esm2015/lib/core/services/config/monkeyecx-maintenance-config.service.js → esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs} +5 -5
  97. package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +42 -0
  98. package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -0
  99. package/{esm2015/lib/core/services/error/index.js → esm2020/lib/core/services/error/index.mjs} +0 -0
  100. package/{esm2015/lib/core/services/error/monkeyecx-error-handling.module.js → esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs} +5 -5
  101. package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +41 -0
  102. package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +128 -0
  103. 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
  104. package/esm2020/lib/core/services/index.mjs +24 -0
  105. package/{esm2015/lib/core/services/logged/index.js → esm2020/lib/core/services/logged/index.mjs} +0 -0
  106. package/{esm2015/lib/core/services/logged/monkeyecx-logged-handling.service.js → esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs} +4 -4
  107. package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -0
  108. package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -0
  109. package/{esm2015/lib/core/services/request-download/index.js → esm2020/lib/core/services/request-download/index.mjs} +0 -0
  110. package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -0
  111. package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -0
  112. package/{esm2015/lib/core/services/request-paged/index.js → esm2020/lib/core/services/request-paged/index.mjs} +0 -0
  113. package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +30 -0
  114. package/{esm2015/lib/core/services/request-queue/index.js → esm2020/lib/core/services/request-queue/index.mjs} +0 -0
  115. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -0
  116. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -0
  117. package/{esm2015/lib/core/services/routes/index.js → esm2020/lib/core/services/routes/index.mjs} +0 -0
  118. package/{esm2015/lib/core/services/routes/monkeyecx-dicovery-params.service.js → esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs} +6 -6
  119. package/{esm2015/lib/core/services/schedules/index.js → esm2020/lib/core/services/schedules/index.mjs} +0 -0
  120. package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +127 -0
  121. package/{esm2015/lib/core/services/storage/index.js → esm2020/lib/core/services/storage/index.mjs} +0 -0
  122. package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +29 -0
  123. package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +122 -0
  124. package/{esm2015/lib/core/specification-search/index.js → esm2020/lib/core/specification-search/index.mjs} +0 -0
  125. package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +97 -0
  126. package/esm2020/lib/core/utils/decorators-utils.mjs +40 -0
  127. package/{esm2015/lib/core/utils/index.js → esm2020/lib/core/utils/index.mjs} +0 -0
  128. package/{esm2015/lib/core/utils/statics.js → esm2020/lib/core/utils/statics.mjs} +0 -0
  129. package/esm2020/lib/core/utils/utils.mjs +218 -0
  130. package/{esm2015/lib/core/utils/validate-utils.js → esm2020/lib/core/utils/validate-utils.mjs} +12 -12
  131. package/esm2020/lib/core/utils/validators.mjs +193 -0
  132. package/esm2020/lib/monkey-front-core.module.mjs +62 -0
  133. package/{esm2015/monkey-front-core.js → esm2020/monkey-front-core.mjs} +0 -0
  134. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  135. package/fesm2015/{monkey-front-core.js → monkey-front-core.mjs} +921 -630
  136. package/fesm2015/monkey-front-core.mjs.map +1 -0
  137. package/fesm2020/monkey-front-core.mjs +4217 -0
  138. package/fesm2020/monkey-front-core.mjs.map +1 -0
  139. package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +2 -2
  140. package/lib/components/progress-bar/progress-bar.service.d.ts +1 -1
  141. package/lib/components/version-changed/version-changed.component.d.ts +1 -1
  142. package/lib/core/decorators/index.d.ts +1 -0
  143. package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -0
  144. package/lib/core/directives/index.d.ts +1 -0
  145. package/lib/core/directives/monkeyecx-directives-module.d.ts +7 -6
  146. package/lib/core/directives/monkeyecx-feature-directive.d.ts +17 -0
  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 +7 -6
  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 +6 -2
  175. package/lib/core/services/config/monkeyecx-error-config.service.d.ts +8 -0
  176. package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +4 -6
  177. package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +3 -2
  178. package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +1 -1
  179. package/lib/core/services/index.d.ts +13 -3
  180. package/lib/core/services/monkeyecx-handling.service.d.ts +8 -5
  181. package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +1 -1
  182. package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +2 -2
  183. package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +2 -2
  184. package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +6 -8
  185. package/lib/core/utils/validate-utils.d.ts +13 -13
  186. package/monkey-front-core-0.0.37.tgz +0 -0
  187. package/package.json +23 -9
  188. package/bundles/monkey-front-core.umd.js +0 -4533
  189. package/bundles/monkey-front-core.umd.js.map +0 -1
  190. package/esm2015/lib/components/closed-to-maintenance/closed-to-maintenance.component.js +0 -32
  191. package/esm2015/lib/components/progress-bar/progress-bar.component.js +0 -28
  192. package/esm2015/lib/components/progress-bar/progress-bar.service.js +0 -49
  193. package/esm2015/lib/components/version-changed/version-changed.component.js +0 -25
  194. package/esm2015/lib/core/decorators/index.js +0 -4
  195. package/esm2015/lib/core/decorators/monkeyecx-decorators.js +0 -108
  196. package/esm2015/lib/core/decorators/monkeyecx-download-decorators.js +0 -24
  197. package/esm2015/lib/core/decorators/monkeyecx-upload-decorators.js +0 -24
  198. package/esm2015/lib/core/directives/monkeyecx-directives-module.js +0 -50
  199. package/esm2015/lib/core/directives/monkeyecx-drag-drop.js +0 -57
  200. package/esm2015/lib/core/directives/monkeyecx-format-upper.js +0 -67
  201. package/esm2015/lib/core/directives/monkeyecx-security-directive.js +0 -67
  202. package/esm2015/lib/core/directives/monkeyecx-tooltip-directive.js +0 -110
  203. package/esm2015/lib/core/interceptors/monkeyecx-http-config-error.interceptor.js +0 -39
  204. package/esm2015/lib/core/interceptors/monkeyecx-http-config-header.interceptor.js +0 -32
  205. package/esm2015/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.js +0 -41
  206. package/esm2015/lib/core/interfaces/monkeyecx-service-credentials.js +0 -2
  207. package/esm2015/lib/core/interfaces/request-download/monkeyecx-request-download.js +0 -2
  208. package/esm2015/lib/core/interfaces/request-queue/monkeyecx-request-queue.js +0 -2
  209. package/esm2015/lib/core/pipes/index.js +0 -13
  210. package/esm2015/lib/core/pipes/monkeyecx-display-first-name.js +0 -22
  211. package/esm2015/lib/core/pipes/monkeyecx-format-currency.js +0 -30
  212. package/esm2015/lib/core/pipes/monkeyecx-format-date-timelapse.js +0 -37
  213. package/esm2015/lib/core/pipes/monkeyecx-format-document.js +0 -22
  214. package/esm2015/lib/core/pipes/monkeyecx-format-number.js +0 -23
  215. package/esm2015/lib/core/pipes/monkeyecx-format-size.js +0 -23
  216. package/esm2015/lib/core/pipes/monkeyecx-format-type-document.js +0 -22
  217. package/esm2015/lib/core/pipes/monkeyecx-format-value.js +0 -22
  218. package/esm2015/lib/core/pipes/monkeyecx-format-zipcode.js +0 -22
  219. package/esm2015/lib/core/pipes/monkeyecx-pipes.module.js +0 -72
  220. package/esm2015/lib/core/pipes/monkeyecx-text-truncate.js +0 -26
  221. package/esm2015/lib/core/services/auth/monkeyecx-authentication.service.js +0 -61
  222. package/esm2015/lib/core/services/commons/monkeyecx-commons.service.js +0 -242
  223. package/esm2015/lib/core/services/config/index.js +0 -9
  224. package/esm2015/lib/core/services/config/monkeyecx-config.service.js +0 -99
  225. package/esm2015/lib/core/services/config/monkeyecx-feature-toggle.service.js +0 -62
  226. package/esm2015/lib/core/services/config/monkeyecx-i18n-config.service.js +0 -66
  227. package/esm2015/lib/core/services/config/monkeyecx-logs-config.service.js +0 -32
  228. package/esm2015/lib/core/services/config/monkeyecx-security-console-config.service.js +0 -42
  229. package/esm2015/lib/core/services/config/monkeyecx-service-worker-config.service.js +0 -54
  230. package/esm2015/lib/core/services/error/monkeyecx-error-handling.service.js +0 -39
  231. package/esm2015/lib/core/services/error/monkeyecx-http-error-handling.service.js +0 -131
  232. package/esm2015/lib/core/services/index.js +0 -14
  233. package/esm2015/lib/core/services/monkeyecx-handling.service.js +0 -44
  234. package/esm2015/lib/core/services/monkeyecx-service.service.js +0 -102
  235. package/esm2015/lib/core/services/request-download/monkeyecx-request-download-handling.service.js +0 -81
  236. package/esm2015/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.js +0 -55
  237. package/esm2015/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.js +0 -30
  238. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.js +0 -97
  239. package/esm2015/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.js +0 -106
  240. package/esm2015/lib/core/services/schedules/monkeyecx-request-schedule.service.js +0 -99
  241. package/esm2015/lib/core/services/storage/monkeyecx-cookie-storage.service.js +0 -98
  242. package/esm2015/lib/core/services/storage/monkeyecx-token-storage.service.js +0 -117
  243. package/esm2015/lib/core/specification-search/monkeyecx-specification-search.js +0 -97
  244. package/esm2015/lib/core/utils/decorators-utils.js +0 -37
  245. package/esm2015/lib/core/utils/utils.js +0 -219
  246. package/esm2015/lib/core/utils/validators.js +0 -193
  247. package/esm2015/lib/monkey-front-core.module.js +0 -60
  248. package/fesm2015/monkey-front-core.js.map +0 -1
  249. package/lib/core/services/config/index.d.ts +0 -8
  250. package/monkey-front-core-0.0.33.tgz +0 -0
@@ -1,21 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Pipe, Component, ViewEncapsulation, Input, NgModule, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Inject, 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, DOCUMENT, 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
- import { BehaviorSubject, throwError, interval, concat, of } from 'rxjs';
13
- import { filter, take, takeWhile, map, catchError, first, mergeMap, finalize } from 'rxjs/operators';
13
+ import { BehaviorSubject, throwError, interval, concat, of, Subject } from 'rxjs';
14
+ import { filter, take, takeWhile, map, catchError, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
14
15
  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
19
  import { datadogRum } from '@datadog/browser-rum';
20
20
  import * as i1$5 from '@angular/service-worker';
21
21
  import { ServiceWorkerModule } from '@angular/service-worker';
@@ -154,7 +154,7 @@ class MonkeyEcxUtils {
154
154
  const randomString = new Array(len)
155
155
  .fill('1')
156
156
  .map(() => {
157
- 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)));
158
158
  })
159
159
  .join('');
160
160
  return randomString;
@@ -240,146 +240,238 @@ class MonkeyEcxUtils {
240
240
  }
241
241
  }
242
242
 
243
- const moment$2 = moment_;
244
243
  class MonkeyEcxFormatDateTimelapsePipe {
245
- constructor() {
246
- // not todo
247
- }
248
- transform(date, showTime = false, useUtc = true, format) {
249
- var _a;
244
+ transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
250
245
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
251
246
  return '';
252
- if (!format) {
253
- format = '- HH:mm';
254
- }
255
247
  let stillUtc = moment$2.utc(date).toDate();
256
248
  if (!useUtc)
257
249
  stillUtc = moment$2(date).toDate();
258
- if (((_a = date.toString()) === null || _a === void 0 ? void 0 : _a.indexOf(':')) <= -1) {
259
- stillUtc = date;
260
- showTime = false;
250
+ if (date.toString().indexOf(':') <= -1) {
251
+ if (typeof date === 'string') {
252
+ stillUtc = date;
253
+ showTime = false;
254
+ }
261
255
  }
262
256
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
263
257
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
264
258
  return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
265
259
  }
266
260
  }
267
- MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
268
- MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, name: "monkeyecxFormatDateTimelapse" });
269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
270
264
  type: Pipe,
271
265
  args: [{
272
266
  name: 'monkeyecxFormatDateTimelapse'
273
267
  }]
274
- }], ctorParameters: function () { return []; } });
268
+ }] });
275
269
 
276
270
  class ClosedToMaintenanceComponent {
277
271
  constructor() {
272
+ this.config = null;
278
273
  this._configBoostrap = null;
279
274
  }
280
275
  ngOnInit() {
281
- this._configBoostrap = this.config.data;
276
+ var _a;
277
+ this._configBoostrap = (_a = this.config) === null || _a === void 0 ? void 0 : _a.data;
282
278
  }
283
279
  onClose() {
284
280
  document.location.reload();
285
281
  }
286
282
  }
287
- ClosedToMaintenanceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: ClosedToMaintenanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
288
- ClosedToMaintenanceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: ClosedToMaintenanceComponent, selector: "monkeyecx-closed-to-maintenance", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\">\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: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 });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
290
286
  type: Component,
291
- args: [{
292
- selector: 'monkeyecx-closed-to-maintenance',
293
- templateUrl: './closed-to-maintenance.component.html',
294
- styleUrls: ['./closed-to-maintenance.component.scss'],
295
- encapsulation: ViewEncapsulation.None
296
- }]
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"] }]
297
288
  }], propDecorators: { config: [{
298
289
  type: Input
299
290
  }], modalRef: [{
300
291
  type: Input
301
292
  }] } });
302
293
 
303
- class MonkeyEcxFormatNumber {
304
- constructor() {
305
- // not to do
306
- }
307
- transform(number) {
308
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
294
+ class MonkeyEcxDisplayFirstNamePipe {
295
+ transform(name) {
296
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
309
297
  return '';
310
- return formatNumber(Number(number), 'ptbr');
298
+ return MonkeyEcxUtils.cutFirstLastName(name);
311
299
  }
312
300
  }
313
- MonkeyEcxFormatNumber.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatNumber, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
314
- MonkeyEcxFormatNumber.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatNumber, name: "monkeyecxFormatNumber" });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
316
304
  type: Pipe,
317
305
  args: [{
318
- name: 'monkeyecxFormatNumber'
306
+ name: 'monkeyecxDisplayFirstName'
319
307
  }]
320
- }], ctorParameters: function () { return []; } });
308
+ }] });
321
309
 
322
- class MonkeyEcxFormatValue {
323
- 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;
324
332
  // not to do
325
333
  }
326
- transform(number) {
327
- 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))
328
380
  return '';
329
- 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)}`;
330
391
  }
331
392
  }
332
- MonkeyEcxFormatValue.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatValue, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
333
- MonkeyEcxFormatValue.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatValue, name: "monkeyecxFormatValue" });
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
335
396
  type: Pipe,
336
397
  args: [{
337
- name: 'monkeyecxFormatValue'
398
+ name: 'monkeyecxFormatDate',
338
399
  }]
339
- }], ctorParameters: function () { return []; } });
400
+ }] });
340
401
 
341
402
  class MonkeyEcxFormatDocumentPipe {
342
- constructor() {
343
- // not to do
344
- }
345
403
  transform(document, withType) {
346
404
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
347
405
  return '';
348
406
  return MonkeyEcxUtils.formatDocumentWithMask(document, withType);
349
407
  }
350
408
  }
351
- MonkeyEcxFormatDocumentPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
352
- MonkeyEcxFormatDocumentPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatDocumentPipe, name: "monkeyecxFormatDocument" });
353
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
354
412
  type: Pipe,
355
413
  args: [{
356
414
  name: 'monkeyecxFormatDocument'
357
415
  }]
358
- }], ctorParameters: function () { return []; } });
416
+ }] });
359
417
 
360
- class MonkeyEcxDisplayFirstNamePipe {
361
- constructor() {
362
- // not to do
363
- }
364
- transform(name) {
365
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(name))
418
+ class MonkeyEcxFormatNumberPipe {
419
+ transform(number) {
420
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(number))
366
421
  return '';
367
- return MonkeyEcxUtils.cutFirstLastName(name);
422
+ return formatNumber(Number(number), 'ptbr');
368
423
  }
369
424
  }
370
- MonkeyEcxDisplayFirstNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
371
- MonkeyEcxDisplayFirstNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDisplayFirstNamePipe, name: "monkeyecxDisplayFirstName" });
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
373
428
  type: Pipe,
374
429
  args: [{
375
- name: 'monkeyecxDisplayFirstName'
430
+ name: 'monkeyecxFormatNumber'
376
431
  }]
377
- }], ctorParameters: function () { return []; } });
432
+ }] });
378
433
 
379
- class MonkeyEcxFormatSizePipe {
380
- constructor() {
381
- // 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 '';
382
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 {
383
475
  transform(size) {
384
476
  if (!size)
385
477
  return '0 B';
@@ -387,64 +479,64 @@ class MonkeyEcxFormatSizePipe {
387
479
  return MonkeyEcxUtils.formatFileSize(sizeNum);
388
480
  }
389
481
  }
390
- MonkeyEcxFormatSizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
391
- MonkeyEcxFormatSizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatSizePipe, name: "monkeyecxFormatSize" });
392
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
393
485
  type: Pipe,
394
486
  args: [{
395
487
  name: 'monkeyecxFormatSize'
396
488
  }]
397
- }], ctorParameters: function () { return []; } });
489
+ }] });
398
490
 
399
- class MonkeyEcxFormatCurrencyPipe {
400
- constructor(injector, currencyPipe) {
401
- this.injector = injector;
402
- this.currencyPipe = currencyPipe;
403
- this.currencyCode = 'BRL';
404
- this.currentLocale = 'pt-BR';
405
- const translateService = this.injector.get(TranslateService);
406
- translateService.get('MONKEY-CURRENCY-CODE').subscribe((_) => {
407
- this.currencyCode = _;
408
- this.currentLocale = translateService.getDefaultLang();
409
- });
491
+ class MonkeyEcxFormatDocumentTypePipe {
492
+ transform(document) {
493
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
494
+ return '';
495
+ return MonkeyEcxUtils.getDocumentType(document);
410
496
  }
411
- transform(value) {
412
- const { currencyCode, currentLocale } = this;
413
- 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;
414
512
  }
415
513
  }
416
- MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i1$2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
417
- MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
419
517
  type: Pipe,
420
518
  args: [{
421
- name: 'monkeyecxFormatCurrency'
519
+ name: 'monkeyecxFormatValue'
422
520
  }]
423
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$2.CurrencyPipe }]; } });
521
+ }] });
424
522
 
425
523
  class MonkeyEcxFormatZipCodePipe {
426
- constructor() {
427
- // not to do
428
- }
429
524
  transform(zipCode) {
430
525
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(zipCode))
431
526
  return '';
432
527
  return MonkeyEcxUtils.formatZipCode(zipCode);
433
528
  }
434
529
  }
435
- MonkeyEcxFormatZipCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
436
- MonkeyEcxFormatZipCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatZipCodePipe, name: "monkeyecxFormatZipCode" });
437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
438
533
  type: Pipe,
439
534
  args: [{
440
535
  name: 'monkeyecxFormatZipCode'
441
536
  }]
442
- }], ctorParameters: function () { return []; } });
537
+ }] });
443
538
 
444
539
  class MonkeyEcxTextTruncatePipe {
445
- constructor() {
446
- // not to do
447
- }
448
540
  transform(text, maxLength = 25) {
449
541
  const midChar = '...';
450
542
  if (!text)
@@ -456,42 +548,23 @@ class MonkeyEcxTextTruncatePipe {
456
548
  return `${text.substr(0, left)} ${midChar} ${text.substring(right)}`;
457
549
  }
458
550
  }
459
- MonkeyEcxTextTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTextTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
460
- MonkeyEcxTextTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTextTruncatePipe, name: "monkeyecxTextTruncate" });
461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
462
554
  type: Pipe,
463
555
  args: [{
464
556
  name: 'monkeyecxTextTruncate'
465
557
  }]
466
- }], ctorParameters: function () { return []; } });
467
-
468
- class MonkeyEcxDocumentTypePipe {
469
- constructor() {
470
- // not to do
471
- }
472
- transform(document) {
473
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
474
- return '';
475
- return MonkeyEcxUtils.getDocumentType(document);
476
- }
477
- }
478
- MonkeyEcxDocumentTypePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDocumentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
479
- MonkeyEcxDocumentTypePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDocumentTypePipe, name: "monkeyecxDocumentType" });
480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDocumentTypePipe, decorators: [{
481
- type: Pipe,
482
- args: [{
483
- name: 'monkeyecxDocumentType'
484
- }]
485
- }], ctorParameters: function () { return []; } });
558
+ }] });
486
559
 
487
560
  class MonkeyEcxTruncateQtdPipe {
488
561
  transform(number, threshold) {
489
562
  return `${number > threshold ? `${threshold}+` : number}`;
490
563
  }
491
564
  }
492
- MonkeyEcxTruncateQtdPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
493
- MonkeyEcxTruncateQtdPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTruncateQtdPipe, name: "monkeyecxTruncateQtd" });
494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
495
568
  type: Pipe,
496
569
  args: [{
497
570
  name: 'monkeyecxTruncateQtd'
@@ -500,57 +573,69 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
500
573
 
501
574
  class MonkeyEcxPipesModule {
502
575
  }
503
- MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
504
- MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", 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,
505
580
  MonkeyEcxFormatDateTimelapsePipe,
506
- MonkeyEcxDisplayFirstNamePipe,
581
+ MonkeyEcxFormatDatePipe,
582
+ MonkeyEcxFormatDocumentPipe,
583
+ MonkeyEcxFormatNumberPipe,
584
+ MonkeyEcxFormatPhonePipe,
507
585
  MonkeyEcxFormatSizePipe,
508
- MonkeyEcxFormatCurrencyPipe,
509
- MonkeyEcxFormatZipCodePipe,
510
- MonkeyEcxFormatNumber,
586
+ MonkeyEcxFormatDocumentTypePipe,
511
587
  MonkeyEcxFormatValue,
588
+ MonkeyEcxFormatZipCodePipe,
512
589
  MonkeyEcxTextTruncatePipe,
513
- MonkeyEcxTruncateQtdPipe,
514
- MonkeyEcxDocumentTypePipe], exports: [MonkeyEcxFormatDocumentPipe,
590
+ MonkeyEcxTruncateQtdPipe], exports: [MonkeyEcxDisplayFirstNamePipe,
591
+ MonkeyEcxFormatAddressPipe,
592
+ MonkeyEcxFormatCurrencyPipe,
515
593
  MonkeyEcxFormatDateTimelapsePipe,
516
- MonkeyEcxDisplayFirstNamePipe,
594
+ MonkeyEcxFormatDatePipe,
595
+ MonkeyEcxFormatDocumentPipe,
596
+ MonkeyEcxFormatNumberPipe,
597
+ MonkeyEcxFormatPhonePipe,
517
598
  MonkeyEcxFormatSizePipe,
518
- MonkeyEcxFormatCurrencyPipe,
519
- MonkeyEcxFormatZipCodePipe,
520
- MonkeyEcxFormatNumber,
599
+ MonkeyEcxFormatDocumentTypePipe,
521
600
  MonkeyEcxFormatValue,
601
+ MonkeyEcxFormatZipCodePipe,
522
602
  MonkeyEcxTextTruncatePipe,
523
- MonkeyEcxTruncateQtdPipe,
524
- MonkeyEcxDocumentTypePipe] });
525
- MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
527
606
  type: NgModule,
528
607
  args: [{
529
608
  declarations: [
530
- MonkeyEcxFormatDocumentPipe,
531
- MonkeyEcxFormatDateTimelapsePipe,
532
609
  MonkeyEcxDisplayFirstNamePipe,
533
- MonkeyEcxFormatSizePipe,
610
+ MonkeyEcxFormatAddressPipe,
534
611
  MonkeyEcxFormatCurrencyPipe,
535
- MonkeyEcxFormatZipCodePipe,
536
- MonkeyEcxFormatNumber,
612
+ MonkeyEcxFormatDateTimelapsePipe,
613
+ MonkeyEcxFormatDatePipe,
614
+ MonkeyEcxFormatDocumentPipe,
615
+ MonkeyEcxFormatNumberPipe,
616
+ MonkeyEcxFormatPhonePipe,
617
+ MonkeyEcxFormatSizePipe,
618
+ MonkeyEcxFormatDocumentTypePipe,
537
619
  MonkeyEcxFormatValue,
620
+ MonkeyEcxFormatZipCodePipe,
538
621
  MonkeyEcxTextTruncatePipe,
539
- MonkeyEcxTruncateQtdPipe,
540
- MonkeyEcxDocumentTypePipe
622
+ MonkeyEcxTruncateQtdPipe
541
623
  ],
542
624
  exports: [
543
- MonkeyEcxFormatDocumentPipe,
544
- MonkeyEcxFormatDateTimelapsePipe,
545
625
  MonkeyEcxDisplayFirstNamePipe,
546
- MonkeyEcxFormatSizePipe,
626
+ MonkeyEcxFormatAddressPipe,
547
627
  MonkeyEcxFormatCurrencyPipe,
548
- MonkeyEcxFormatZipCodePipe,
549
- MonkeyEcxFormatNumber,
628
+ MonkeyEcxFormatDateTimelapsePipe,
629
+ MonkeyEcxFormatDatePipe,
630
+ MonkeyEcxFormatDocumentPipe,
631
+ MonkeyEcxFormatNumberPipe,
632
+ MonkeyEcxFormatPhonePipe,
633
+ MonkeyEcxFormatSizePipe,
634
+ MonkeyEcxFormatDocumentTypePipe,
550
635
  MonkeyEcxFormatValue,
636
+ MonkeyEcxFormatZipCodePipe,
551
637
  MonkeyEcxTextTruncatePipe,
552
- MonkeyEcxTruncateQtdPipe,
553
- MonkeyEcxDocumentTypePipe
638
+ MonkeyEcxTruncateQtdPipe
554
639
  ],
555
640
  providers: [CurrencyPipe]
556
641
  }]
@@ -558,14 +643,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
558
643
 
559
644
  class ClosedToMaintenanceModule {
560
645
  }
561
- ClosedToMaintenanceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: ClosedToMaintenanceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
562
- ClosedToMaintenanceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", 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,
563
648
  MonkeyButtonModule,
564
649
  MonkeyIconModule,
565
650
  MonkeyInputModule,
566
651
  MonkeyModalModule,
567
652
  MonkeyEcxPipesModule, i1$1.TranslateModule], exports: [ClosedToMaintenanceComponent] });
568
- ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
653
+ ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, imports: [[
569
654
  CommonModule,
570
655
  MonkeyButtonModule,
571
656
  MonkeyIconModule,
@@ -574,7 +659,7 @@ ClosedToMaintenanceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
574
659
  MonkeyEcxPipesModule,
575
660
  TranslateModule.forChild()
576
661
  ]] });
577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ClosedToMaintenanceModule, decorators: [{
578
663
  type: NgModule,
579
664
  args: [{
580
665
  declarations: [ClosedToMaintenanceComponent],
@@ -594,6 +679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
594
679
  class MonkeyEcxProgressBarService {
595
680
  constructor(router) {
596
681
  this.router = router;
682
+ this.visible = null;
597
683
  this.init();
598
684
  }
599
685
  init() {
@@ -616,18 +702,21 @@ class MonkeyEcxProgressBarService {
616
702
  });
617
703
  }
618
704
  show() {
619
- this.visible.next(true);
705
+ var _a;
706
+ (_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(true);
620
707
  }
621
708
  hide() {
622
- this.visible.next(false);
709
+ var _a;
710
+ (_a = this.visible) === null || _a === void 0 ? void 0 : _a.next(false);
623
711
  }
624
712
  visibleConfig() {
625
- return this.visible.asObservable();
713
+ var _a;
714
+ return ((_a = this.visible) === null || _a === void 0 ? void 0 : _a.asObservable()) || null;
626
715
  }
627
716
  }
628
- MonkeyEcxProgressBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
629
- MonkeyEcxProgressBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarService, providedIn: 'root' });
630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
631
720
  type: Injectable,
632
721
  args: [{
633
722
  providedIn: 'root'
@@ -641,29 +730,25 @@ class MonkeyEcxProgressBarComponent {
641
730
  //not to do
642
731
  }
643
732
  ngOnInit() {
644
- 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) => {
645
735
  this.visible = visible;
646
736
  });
647
737
  }
648
738
  }
649
- MonkeyEcxProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarComponent, deps: [{ token: MonkeyEcxProgressBarService }], target: i0.ɵɵFactoryTarget.Component });
650
- MonkeyEcxProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", 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: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
651
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
652
742
  type: Component,
653
- args: [{
654
- selector: 'monkeyecx-progress-bar',
655
- templateUrl: './progress-bar.component.html',
656
- styleUrls: ['./progress-bar.component.scss'],
657
- encapsulation: ViewEncapsulation.None
658
- }]
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"] }]
659
744
  }], ctorParameters: function () { return [{ type: MonkeyEcxProgressBarService }]; } });
660
745
 
661
746
  class MonkeyEcxProgressBarModule {
662
747
  }
663
- MonkeyEcxProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
664
- MonkeyEcxProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarModule, declarations: [MonkeyEcxProgressBarComponent], imports: [CommonModule], exports: [MonkeyEcxProgressBarComponent] });
665
- MonkeyEcxProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxProgressBarModule, imports: [[CommonModule]] });
666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
667
752
  type: NgModule,
668
753
  args: [{
669
754
  declarations: [MonkeyEcxProgressBarComponent],
@@ -673,20 +758,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
673
758
  }] });
674
759
 
675
760
  class VersionChangedComponent {
761
+ constructor() {
762
+ this.config = null;
763
+ }
676
764
  onClose() {
677
765
  document.location.reload();
678
766
  }
679
767
  }
680
- VersionChangedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: VersionChangedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
681
- VersionChangedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: VersionChangedComponent, selector: "monkeyecx-version-changed", inputs: { config: "config", modalRef: "modalRef" }, ngImport: i0, template: "<monkey-modal [config]=\"config\" [modalRef]=\"modalRef\">\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: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 });
682
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", 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: [{
683
771
  type: Component,
684
- args: [{
685
- selector: 'monkeyecx-version-changed',
686
- templateUrl: './version-changed.component.html',
687
- styleUrls: ['./version-changed.component.scss'],
688
- encapsulation: ViewEncapsulation.None
689
- }]
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"] }]
690
773
  }], propDecorators: { config: [{
691
774
  type: Input
692
775
  }], modalRef: [{
@@ -695,13 +778,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
695
778
 
696
779
  class VersionChangedModule {
697
780
  }
698
- VersionChangedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: VersionChangedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
699
- VersionChangedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", 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,
700
783
  MonkeyButtonModule,
701
784
  MonkeyIconModule,
702
785
  MonkeyInputModule,
703
786
  MonkeyModalModule, i1$1.TranslateModule], exports: [VersionChangedComponent] });
704
- VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: VersionChangedModule, imports: [[
787
+ VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, imports: [[
705
788
  CommonModule,
706
789
  MonkeyButtonModule,
707
790
  MonkeyIconModule,
@@ -709,7 +792,7 @@ VersionChangedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
709
792
  MonkeyModalModule,
710
793
  TranslateModule.forChild()
711
794
  ]] });
712
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: VersionChangedModule, decorators: [{
795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: VersionChangedModule, decorators: [{
713
796
  type: NgModule,
714
797
  args: [{
715
798
  declarations: [VersionChangedComponent],
@@ -725,8 +808,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
725
808
  }]
726
809
  }] });
727
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
+
728
851
  /* eslint-disable max-classes-per-file */
729
- const moment$1 = moment_;
852
+ const moment$1 = moment$2;
730
853
  class DateValidator {
731
854
  static do(control) {
732
855
  if (!control.parent || !control)
@@ -808,11 +931,12 @@ class isTrueValidator {
808
931
  }
809
932
  class PasswordMatchValidation {
810
933
  static do(control) {
934
+ var _a, _b;
811
935
  if (!control.parent || !control)
812
936
  return null;
813
937
  const { parent } = control;
814
- const password = parent.get('password').value;
815
- 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;
816
940
  if (!password || !passwordConfirm)
817
941
  return null;
818
942
  if (password === passwordConfirm)
@@ -838,13 +962,14 @@ class UrlValidator {
838
962
  }
839
963
  class CustomDatesStartValidator {
840
964
  static do(control) {
965
+ var _a, _b;
841
966
  if (!control.parent || !control)
842
967
  return null;
843
968
  const { parent } = control;
844
- const valueStart = parent.get('dateStart').value;
845
- const valueEnd = parent.get('dateEnd').value;
846
- let dateStart;
847
- 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;
848
973
  if (valueStart) {
849
974
  dateStart = new Date(valueStart);
850
975
  }
@@ -863,13 +988,14 @@ class CustomDatesStartValidator {
863
988
  }
864
989
  class CustomDatesEndValidator {
865
990
  static do(control) {
991
+ var _a, _b;
866
992
  if (!control.parent || !control)
867
993
  return null;
868
994
  const { parent } = control;
869
- const valueStart = parent.get('dateStart').value;
870
- const valueEnd = parent.get('dateEnd').value;
871
- let dateStart;
872
- 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;
873
999
  if (valueStart) {
874
1000
  dateStart = new Date(valueStart);
875
1001
  }
@@ -912,10 +1038,11 @@ class UnlockRegisterSponsorValidator {
912
1038
  }
913
1039
  class DateRangeValidator {
914
1040
  static do(control) {
1041
+ var _a, _b;
915
1042
  if (!control.parent || !control) {
916
1043
  return null;
917
1044
  }
918
- 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;
919
1046
  if (dates &&
920
1047
  (!MonkeyEcxUtils.persistNullEmptyUndefined(dates.startDate) ||
921
1048
  !MonkeyEcxUtils.persistNullEmptyUndefined(dates.endDate))) {
@@ -1034,7 +1161,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
1034
1161
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
1035
1162
  });
1036
1163
 
1037
- const moment = moment_;
1164
+ const moment = moment$2;
1038
1165
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
1039
1166
  function isEmptyInputValue(value) {
1040
1167
  return value == null || value.length === 0;
@@ -1051,10 +1178,11 @@ function emailValidator(control) {
1051
1178
  };
1052
1179
  }
1053
1180
  function dateRangeValidator(control) {
1181
+ var _a, _b;
1054
1182
  if (!control.parent || !control || isEmptyInputValue(control.value)) {
1055
1183
  return null;
1056
1184
  }
1057
- 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;
1058
1186
  if (dates &&
1059
1187
  (!MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.startDate) ||
1060
1188
  !MonkeyEcxUtils.persistNullEmptyUndefined(dates === null || dates === void 0 ? void 0 : dates.endDate))) {
@@ -1076,14 +1204,15 @@ function registerValidator(control, type) {
1076
1204
  return null;
1077
1205
  }
1078
1206
  function dateStartEndValidator(control) {
1207
+ var _a, _b;
1079
1208
  if (!control.parent || !control) {
1080
1209
  return null;
1081
1210
  }
1082
1211
  const { parent } = control;
1083
- const valueStart = parent.get('dateStart').value;
1084
- const valueEnd = parent.get('dateEnd').value;
1085
- let dateStart;
1086
- 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;
1087
1216
  if (valueStart) {
1088
1217
  dateStart = new Date(valueStart);
1089
1218
  }
@@ -1110,11 +1239,12 @@ function urlValidator(control) {
1110
1239
  return null;
1111
1240
  }
1112
1241
  function passwordConfirmValidator(control) {
1242
+ var _a, _b;
1113
1243
  if (!control.parent || !control || isEmptyInputValue(control.value))
1114
1244
  return null;
1115
1245
  const { parent } = control;
1116
- const password = parent.get('password').value;
1117
- 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;
1118
1248
  if (!password || !passwordConfirm)
1119
1249
  return null;
1120
1250
  if (password === passwordConfirm)
@@ -1266,9 +1396,10 @@ function MonkeyEcxCoreClearDecorators() {
1266
1396
  return function (target, propertyName, propertyDescriptor) {
1267
1397
  const method = propertyDescriptor.value;
1268
1398
  propertyDescriptor.value = function (...args) {
1399
+ var _a, _b;
1269
1400
  const context = this;
1270
1401
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1271
- 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();
1272
1403
  }
1273
1404
  const result = method.apply(context, args);
1274
1405
  return result;
@@ -1280,10 +1411,11 @@ function MonkeyEcxCoreService(params) {
1280
1411
  return function (target, propertyName, propertyDescriptor) {
1281
1412
  const method = propertyDescriptor.value;
1282
1413
  propertyDescriptor.value = function (...args) {
1414
+ var _a, _b, _c, _d;
1283
1415
  const context = this;
1284
1416
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1285
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1286
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1417
+ (_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();
1418
+ (_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);
1287
1419
  }
1288
1420
  const result = method.apply(context, args);
1289
1421
  return result;
@@ -1295,15 +1427,16 @@ function MonkeyEcxCoreServicePaged(params) {
1295
1427
  return function (target, propertyName, propertyDescriptor) {
1296
1428
  const method = propertyDescriptor.value;
1297
1429
  propertyDescriptor.value = function (...args) {
1430
+ var _a, _b, _c, _d, _e, _f;
1298
1431
  const context = this;
1299
1432
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1300
- const credentials = context.monkeyecxService.monkeyecxHandlingService.getMonkeyEcxServiceCredentials();
1433
+ 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();
1301
1434
  let requestPaged = null;
1302
1435
  if (credentials) {
1303
1436
  requestPaged = credentials.requestPaged;
1304
1437
  }
1305
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1306
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
1438
+ (_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();
1439
+ (_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)));
1307
1440
  }
1308
1441
  const result = method.apply(context, args);
1309
1442
  return result;
@@ -1315,13 +1448,14 @@ function MonkeyEcxCoreServiceQueue(name, description, params) {
1315
1448
  return function (target, propertyName, propertyDescriptor) {
1316
1449
  const method = propertyDescriptor.value;
1317
1450
  propertyDescriptor.value = function (...args) {
1451
+ var _a, _b, _c, _d;
1318
1452
  const context = this;
1319
1453
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1320
1454
  if (MonkeyEcxUtils.persistNullEmptyUndefined(params)) {
1321
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1322
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1455
+ (_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();
1456
+ (_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);
1323
1457
  }
1324
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
1458
+ context === null || context === void 0 ? void 0 : context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
1325
1459
  name,
1326
1460
  description
1327
1461
  }));
@@ -1338,13 +1472,14 @@ function MonkeyEcxServiceDownload(name, description, params) {
1338
1472
  return function (target, propertyName, propertyDescriptor) {
1339
1473
  const method = propertyDescriptor.value;
1340
1474
  propertyDescriptor.value = function (...args) {
1475
+ var _a, _b, _c, _d, _e, _f;
1341
1476
  const context = this;
1342
1477
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1343
1478
  if (MonkeyUtils.persistNullEmptyUndefined(params)) {
1344
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1345
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1479
+ (_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();
1480
+ (_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);
1346
1481
  }
1347
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestDownload(Object.assign({}, buildDownloadPropertys(name, description)));
1482
+ (_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)));
1348
1483
  }
1349
1484
  const result = method.apply(context, args);
1350
1485
  return result;
@@ -1358,13 +1493,14 @@ function MonkeyEcxServiceUpload(name, description, params) {
1358
1493
  return function (target, propertyName, propertyDescriptor) {
1359
1494
  const method = propertyDescriptor.value;
1360
1495
  propertyDescriptor.value = function (...args) {
1496
+ var _a, _b, _c, _d, _e, _f;
1361
1497
  const context = this;
1362
1498
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1363
1499
  if (MonkeyUtils.persistNullEmptyUndefined(params)) {
1364
- context.monkeyecxService.monkeyecxHandlingService.clearAll();
1365
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxServiceCredentials(params);
1500
+ (_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();
1501
+ (_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);
1366
1502
  }
1367
- context.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestUpload(Object.assign({}, buildUploadPropertys(name, description)));
1503
+ (_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)));
1368
1504
  }
1369
1505
  const result = method.apply(context, args);
1370
1506
  return result;
@@ -1380,34 +1516,34 @@ class MonkeyEcxDragDropDirective {
1380
1516
  this.opacity = '1';
1381
1517
  }
1382
1518
  onDragOver(evt) {
1383
- evt.preventDefault();
1384
- evt.stopPropagation();
1519
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1520
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1385
1521
  this.background = '#9ecbec';
1386
1522
  this.opacity = '0.8';
1387
1523
  }
1388
1524
  onDragLeave(evt) {
1389
- evt.preventDefault();
1390
- evt.stopPropagation();
1525
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1526
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1391
1527
  this.background = '#f5fcff';
1392
1528
  this.opacity = '1';
1393
1529
  }
1394
1530
  ondrop(evt) {
1395
- evt.preventDefault();
1396
- evt.stopPropagation();
1531
+ evt === null || evt === void 0 ? void 0 : evt.preventDefault();
1532
+ evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
1397
1533
  this.background = '#f5fcff';
1398
1534
  this.opacity = '1';
1399
- const { files } = evt.dataTransfer;
1535
+ const { files } = evt === null || evt === void 0 ? void 0 : evt.dataTransfer;
1400
1536
  if (files.length > 0) {
1401
1537
  this.onFileDropped.emit(files);
1402
1538
  }
1403
1539
  }
1404
1540
  }
1405
- MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1406
- MonkeyEcxDragDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", 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 });
1407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDragDropDirective, decorators: [{
1541
+ MonkeyEcxDragDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1542
+ 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 });
1543
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDragDropDirective, decorators: [{
1408
1544
  type: Directive,
1409
1545
  args: [{
1410
- selector: '[monkeyecxDragDrop]'
1546
+ selector: '[monkeyecxDragDrop]',
1411
1547
  }]
1412
1548
  }], propDecorators: { onFileDropped: [{
1413
1549
  type: Output
@@ -1454,9 +1590,9 @@ class MonkeyEcxFormatCurrency {
1454
1590
  this.el.value = this.handle(value);
1455
1591
  }
1456
1592
  }
1457
- MonkeyEcxFormatCurrency.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatCurrency, deps: [{ token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
1458
- MonkeyEcxFormatCurrency.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxFormatCurrency, selector: "[monkeyecxFormatCurrency]", host: { listeners: { "input": "onInput($event.target.value)" } }, providers: [CurrencyPipe], ngImport: i0 });
1459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatCurrency, decorators: [{
1593
+ 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 });
1594
+ 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 });
1595
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrency, decorators: [{
1460
1596
  type: Directive,
1461
1597
  args: [{
1462
1598
  selector: '[monkeyecxFormatCurrency]',
@@ -1474,13 +1610,15 @@ class MonkeyEcxFormatUpper {
1474
1610
  // not to do
1475
1611
  }
1476
1612
  onKeyDown(evt) {
1613
+ var _a;
1477
1614
  const value = this._el.nativeElement.value.toUpperCase();
1478
1615
  this._renderer.setProperty(this._el.nativeElement, 'value', value);
1479
- this._onChange(value);
1616
+ (_a = this._onChange) === null || _a === void 0 ? void 0 : _a.call(this, value);
1480
1617
  evt.preventDefault();
1481
1618
  }
1482
1619
  onBlur() {
1483
- this._touched();
1620
+ var _a;
1621
+ (_a = this._touched) === null || _a === void 0 ? void 0 : _a.call(this);
1484
1622
  }
1485
1623
  writeValue(value) {
1486
1624
  this._renderer.setProperty(this._el.nativeElement, 'value', value);
@@ -1495,18 +1633,18 @@ class MonkeyEcxFormatUpper {
1495
1633
  this._renderer.setProperty(this._el.nativeElement, 'disabled', isDisabled);
1496
1634
  }
1497
1635
  }
1498
- MonkeyEcxFormatUpper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatUpper, deps: [{ token: i0.ElementRef, self: true }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
1499
- MonkeyEcxFormatUpper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxFormatUpper, selector: "[monkeyecxFormatUpper]", host: { listeners: { "keyup": "onKeyDown($event)", "blur": "onBlur($event)" } }, providers: [
1636
+ 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 });
1637
+ 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: [
1500
1638
  {
1501
1639
  provide: NG_VALUE_ACCESSOR,
1502
1640
  useExisting: forwardRef(() => {
1503
1641
  // eslint-disable-next-line no-use-before-define
1504
1642
  return MonkeyEcxFormatUpper;
1505
1643
  }),
1506
- multi: true
1507
- }
1644
+ multi: true,
1645
+ },
1508
1646
  ], ngImport: i0 });
1509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFormatUpper, decorators: [{
1647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatUpper, decorators: [{
1510
1648
  type: Directive,
1511
1649
  args: [{
1512
1650
  selector: '[monkeyecxFormatUpper]',
@@ -1517,13 +1655,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
1517
1655
  // eslint-disable-next-line no-use-before-define
1518
1656
  return MonkeyEcxFormatUpper;
1519
1657
  }),
1520
- multi: true
1521
- }
1522
- ]
1658
+ multi: true,
1659
+ },
1660
+ ],
1523
1661
  }]
1524
- }], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
1525
- type: Self
1526
- }] }, { type: i0.Renderer2 }]; }, propDecorators: { onKeyDown: [{
1662
+ }], ctorParameters: function () {
1663
+ return [{ type: i0.ElementRef, decorators: [{
1664
+ type: Self
1665
+ }] }, { type: i0.Renderer2 }];
1666
+ }, propDecorators: { onKeyDown: [{
1527
1667
  type: HostListener,
1528
1668
  args: ['keyup', ['$event']]
1529
1669
  }], onBlur: [{
@@ -1544,9 +1684,9 @@ class MonkeyEcxOnlyAlphaNumericDirective {
1544
1684
  }
1545
1685
  }
1546
1686
  }
1547
- MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1548
- MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxOnlyAlphaNumericDirective, selector: "[monkeyecxOnlyAlphaNumeric]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, decorators: [{
1687
+ MonkeyEcxOnlyAlphaNumericDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1688
+ MonkeyEcxOnlyAlphaNumericDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyAlphaNumericDirective, selector: "[monkeyecxOnlyAlphaNumeric]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyAlphaNumericDirective, decorators: [{
1550
1690
  type: Directive,
1551
1691
  args: [{
1552
1692
  selector: '[monkeyecxOnlyAlphaNumeric]'
@@ -1569,9 +1709,9 @@ class MonkeyEcxOnlyNumbersDirective {
1569
1709
  }
1570
1710
  }
1571
1711
  }
1572
- MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1573
- MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxOnlyNumbersDirective, selector: "[monkeyecxOnlyNumbers]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, decorators: [{
1712
+ MonkeyEcxOnlyNumbersDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1713
+ MonkeyEcxOnlyNumbersDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxOnlyNumbersDirective, selector: "[monkeyecxOnlyNumbers]", host: { listeners: { "input": "onInputChange($event)" } }, ngImport: i0 });
1714
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOnlyNumbersDirective, decorators: [{
1575
1715
  type: Directive,
1576
1716
  args: [{
1577
1717
  selector: '[monkeyecxOnlyNumbers]'
@@ -1588,18 +1728,18 @@ class MonkeyEcxRequestPagedHandling {
1588
1728
  page: {}
1589
1729
  };
1590
1730
  }
1591
- handlePagedValuesFromApi(url) {
1731
+ handlePagedValuesFromApi(url = '') {
1592
1732
  if (url.search('\\?') < 0)
1593
1733
  return url;
1594
- const params = url.substr(url.search('\\?') + 1, url.length);
1595
- url = url.substr(0, url.search('\\?'));
1734
+ const params = url.substring(url.search('\\?') + 1, url.length);
1735
+ url = url.substring(0, url.search('\\?'));
1596
1736
  return `${url}?${new HttpParams({
1597
1737
  fromString: params
1598
1738
  }).delete('size').delete('page').toString()}`;
1599
1739
  }
1600
1740
  getUrlParams(url) {
1601
1741
  const { pagedParams } = this;
1602
- const { number, size } = pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page;
1742
+ const { number, size } = (pagedParams === null || pagedParams === void 0 ? void 0 : pagedParams.page) || {};
1603
1743
  const hasInitialQueryParams = url.search('\\?') > 0;
1604
1744
  return `${!hasInitialQueryParams ? '?' : '&'}page=${number || 0}&size=${size || 20}`;
1605
1745
  }
@@ -1616,6 +1756,9 @@ class MonkeyEcxCommonsService {
1616
1756
  this.tokenStorage = tokenStorage;
1617
1757
  this.otherArgs = otherArgs;
1618
1758
  this.flagValidator = true;
1759
+ this.__error = null;
1760
+ this.__handledError = null;
1761
+ this.__page = null;
1619
1762
  this.__requestPaged = null;
1620
1763
  this.__onSearchChanged$ = new BehaviorSubject(null);
1621
1764
  this.__onDataChanged$ = new BehaviorSubject(null);
@@ -1625,8 +1768,10 @@ class MonkeyEcxCommonsService {
1625
1768
  this.__onGovernmentIdDataChanged$ = new BehaviorSubject(null);
1626
1769
  this.__onZipCodeDataChanged$ = new BehaviorSubject(null);
1627
1770
  this.__oni18nDataChanged$ = new BehaviorSubject(null);
1628
- this.__onDoSearch$ = new BehaviorSubject(null);
1771
+ this.__onDoSearch$ = new BehaviorSubject({});
1629
1772
  this.__onDoPagination$ = new BehaviorSubject(null);
1773
+ this.__tokenCredentials = null;
1774
+ this.__schedule = null;
1630
1775
  this.handleInit();
1631
1776
  }
1632
1777
  handleInit() {
@@ -1635,7 +1780,9 @@ class MonkeyEcxCommonsService {
1635
1780
  this.__tokenCredentials = this.tokenStorage.getToken();
1636
1781
  }
1637
1782
  if ((_a = this.otherArgs) === null || _a === void 0 ? void 0 : _a.router) {
1638
- const { clearOnChangeRoute } = (_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options;
1783
+ const { clearOnChangeRoute } = ((_c = (_b = this.otherArgs) === null || _b === void 0 ? void 0 : _b.schedule) === null || _c === void 0 ? void 0 : _c.options) || {
1784
+ clearOnChangeRoute: false
1785
+ };
1639
1786
  this.otherArgs.router.events
1640
1787
  .pipe(filter((event) => {
1641
1788
  return event instanceof NavigationStart;
@@ -1690,11 +1837,10 @@ class MonkeyEcxCommonsService {
1690
1837
  503: 'service-problems'
1691
1838
  };
1692
1839
  if (!router) {
1693
- // eslint-disable-next-line no-console
1694
1840
  console.error('Router must be declared');
1695
1841
  }
1696
1842
  else {
1697
- router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
1843
+ router === null || router === void 0 ? void 0 : router.navigate([`/app/pages/${routes[statusCode]}`.toLowerCase()], {
1698
1844
  skipLocationChange: true
1699
1845
  });
1700
1846
  }
@@ -1720,10 +1866,10 @@ class MonkeyEcxCommonsService {
1720
1866
  }
1721
1867
  getNormalizedUrl(url) {
1722
1868
  const { __requestPaged } = this;
1723
- return new MonkeyEcxRequestPagedHandling(url, __requestPaged).getRequestWithPagedParams();
1869
+ return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}).getRequestWithPagedParams();
1724
1870
  }
1725
1871
  clear(clearData) {
1726
- var _a, _b, _c;
1872
+ var _a, _b, _c, _d, _e, _f;
1727
1873
  if (clearData) {
1728
1874
  this.__data = null;
1729
1875
  this.__requestPaged = null;
@@ -1732,9 +1878,9 @@ class MonkeyEcxCommonsService {
1732
1878
  if (this.__schedule) {
1733
1879
  const { queue } = this.__schedule;
1734
1880
  if (queue) {
1735
- this.otherArgs.queue.service.removeQueueItem(queue);
1881
+ (_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);
1736
1882
  }
1737
- (_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);
1883
+ (_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);
1738
1884
  this.__schedule = null;
1739
1885
  }
1740
1886
  }
@@ -1752,11 +1898,11 @@ class MonkeyEcxCommonsService {
1752
1898
  this.__tokenCredentials = this.tokenStorage.getToken();
1753
1899
  }
1754
1900
  if (this.allowedSecurityAccess(otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.security)) {
1755
- Object.entries(this).forEach(([key, value]) => {
1756
- if (value instanceof BehaviorSubject) {
1757
- this[key] = new BehaviorSubject(null);
1758
- }
1759
- });
1901
+ //Object.entries(this).forEach(([key, value]) => {
1902
+ // if (value instanceof BehaviorSubject) {
1903
+ // Object.defineProperty(this, key, new BehaviorSubject(null));
1904
+ // }
1905
+ //});
1760
1906
  if (this.__schedule) {
1761
1907
  (_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);
1762
1908
  this.__schedule = null;
@@ -1783,8 +1929,8 @@ class MonkeyEcxCommonsService {
1783
1929
  });
1784
1930
  }
1785
1931
  if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions) {
1786
- const { service, keys } = otherArgs.translateOptions;
1787
- this.geti18n(service, keys);
1932
+ const { service, keys } = otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.translateOptions;
1933
+ this.geti18n(service, keys || '');
1788
1934
  }
1789
1935
  if (otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.feature) {
1790
1936
  const { flag, service } = otherArgs.feature;
@@ -1797,7 +1943,7 @@ class MonkeyEcxCommonsService {
1797
1943
  const hasFlag = service.getFlag(flag);
1798
1944
  if (MonkeyEcxUtils.persistNullEmptyUndefined(hasFlag)) {
1799
1945
  if (!hasFlag) {
1800
- this.navigateToErrorPage(404, otherArgs.router);
1946
+ this.navigateToErrorPage(404, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
1801
1947
  return;
1802
1948
  }
1803
1949
  }
@@ -1810,7 +1956,7 @@ class MonkeyEcxCommonsService {
1810
1956
  }
1811
1957
  }
1812
1958
  else {
1813
- this.navigateToErrorPage(403, otherArgs.router);
1959
+ this.navigateToErrorPage(403, otherArgs === null || otherArgs === void 0 ? void 0 : otherArgs.router);
1814
1960
  }
1815
1961
  }
1816
1962
  getHTTPHeaderApplicationPDF() {
@@ -1820,8 +1966,23 @@ class MonkeyEcxCommonsService {
1820
1966
  };
1821
1967
  }
1822
1968
  genericMethod(link, data, callback) {
1823
- const { href, type } = link;
1824
- this.monkeyecxService[type.toLowerCase()](`${href}`, data).subscribe((resp) => {
1969
+ var _a, _b, _c, _d, _e;
1970
+ const { href, type = 'get' } = link;
1971
+ let func = null;
1972
+ const tp = `${type}`.toLowerCase();
1973
+ if (tp === 'get') {
1974
+ func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
1975
+ }
1976
+ else if (tp === 'post') {
1977
+ func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
1978
+ }
1979
+ else if (tp === 'put') {
1980
+ func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
1981
+ }
1982
+ else if (tp === 'delete') {
1983
+ func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
1984
+ }
1985
+ (_e = func === null || func === void 0 ? void 0 : func(`${href}`, data)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
1825
1986
  if (callback)
1826
1987
  callback();
1827
1988
  }, (err) => {
@@ -1847,6 +2008,12 @@ __decorate([
1847
2008
 
1848
2009
  /* eslint-disable max-len */
1849
2010
  class MonkeyEcxHandlingService {
2011
+ constructor() {
2012
+ this.monkeyecxServiceCredentials = null;
2013
+ this.monkeyecxRequestQueue = null;
2014
+ this.monkeyecxRequestDownload = null;
2015
+ this.monkeyecxRequestUpload = null;
2016
+ }
1850
2017
  clearAll() {
1851
2018
  this.monkeyecxServiceCredentials = null;
1852
2019
  this.monkeyecxRequestQueue = null;
@@ -1878,9 +2045,9 @@ class MonkeyEcxHandlingService {
1878
2045
  return this.monkeyecxRequestUpload;
1879
2046
  }
1880
2047
  }
1881
- MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1882
- MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
1883
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
2048
+ MonkeyEcxHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2049
+ MonkeyEcxHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, providedIn: 'root' });
2050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHandlingService, decorators: [{
1884
2051
  type: Injectable,
1885
2052
  args: [{
1886
2053
  providedIn: 'root'
@@ -1974,146 +2141,136 @@ class MonkeyEcxService {
1974
2141
  }));
1975
2142
  }
1976
2143
  }
1977
- MonkeyEcxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxService, deps: [{ token: i1$4.HttpClient }, { token: MonkeyEcxHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
1978
- MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
1979
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxService, decorators: [{
2144
+ 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 });
2145
+ MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, providedIn: 'root' });
2146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
1980
2147
  type: Injectable,
1981
2148
  args: [{
1982
2149
  providedIn: 'root'
1983
2150
  }]
1984
2151
  }], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
1985
2152
 
1986
- /* eslint-disable object-curly-newline */
1987
- class MonkeyEcxCookieStorageService {
1988
- constructor(document) {
1989
- this.document = document;
2153
+ let window$1;
2154
+ const text = {
2155
+ i18n: {
2156
+ title: 'We have an quick update for you',
2157
+ message: 'Click anywhere here to reload your locale',
2158
+ },
2159
+ theme: {
2160
+ title: 'We have an quick update for you',
2161
+ message: 'Click anywhere here to reload your theme',
2162
+ },
2163
+ };
2164
+ class MonkeyEcxErrorConfigService {
2165
+ constructor() {
1990
2166
  // not to do
1991
2167
  }
1992
- getCookieRegExp(name) {
1993
- const escapedName = name.replace(/([[\]{}()|=;+?,.*^$])/gi, '\\$1');
1994
- return new RegExp(`(?:^${escapedName}|;\\s*${escapedName})=(.*?)(?:;|$)`, 'g');
1995
- }
1996
- safeDecodeURIComponent(encodedURIComponent) {
1997
- try {
1998
- return decodeURIComponent(encodedURIComponent);
1999
- }
2000
- catch (_a) {
2001
- return encodedURIComponent;
2002
- }
2003
- }
2004
- check(name) {
2005
- name = encodeURIComponent(name);
2006
- const regExp = this.getCookieRegExp(name);
2007
- return regExp.test(this.document.cookie);
2008
- }
2009
- set(name, value, expiresOrOptions, path, domain, secure, sameSite) {
2010
- if (typeof expiresOrOptions === 'number' ||
2011
- expiresOrOptions instanceof Date ||
2012
- path ||
2013
- domain ||
2014
- secure ||
2015
- sameSite) {
2016
- const optionsBody = {
2017
- expires: expiresOrOptions,
2018
- path,
2019
- domain,
2020
- secure,
2021
- sameSite: sameSite || 'Lax'
2022
- };
2023
- this.set(name, value, optionsBody);
2024
- return;
2025
- }
2026
- let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)};`;
2027
- const options = expiresOrOptions || {};
2028
- if (options.expires) {
2029
- if (typeof options.expires === 'number') {
2030
- const dateExpires = new Date(new Date().getTime() + options.expires * 1000 * 60 * 60 * 24);
2031
- cookieString += `expires=${dateExpires.toUTCString()};`;
2032
- }
2033
- else {
2034
- cookieString += `expires=${options.expires.toUTCString()};`;
2035
- }
2036
- }
2037
- if (options.path) {
2038
- cookieString += `path=${options.path};`;
2039
- }
2040
- if (options.domain) {
2041
- cookieString += `domain=${options.domain};`;
2042
- }
2043
- if (options.secure === false && options.sameSite === 'None') {
2044
- options.secure = true;
2045
- }
2046
- if (options.secure) {
2047
- cookieString += 'secure;';
2048
- }
2049
- if (!options.sameSite) {
2050
- options.sameSite = 'Lax';
2051
- }
2052
- cookieString += `sameSite=${options.sameSite};`;
2053
- this.document.cookie = cookieString;
2054
- }
2055
- get(name) {
2056
- if (this.check(name)) {
2057
- name = encodeURIComponent(name);
2058
- const regExp = this.getCookieRegExp(name);
2059
- const result = regExp.exec(this.document.cookie);
2060
- return result[1] ? this.safeDecodeURIComponent(result[1]) : '';
2061
- }
2062
- return '';
2063
- }
2064
- remove(name, path, domain, secure, sameSite = 'Lax') {
2065
- const expiresDate = new Date('Thu, 01 Jan 1970 00:00:01 GMT');
2066
- this.set(name, '', { expires: expiresDate, path, domain, secure, sameSite });
2168
+ enableSupport() {
2169
+ window$1.zE('webWidget', 'updateSettings', {
2170
+ webWidget: {
2171
+ color: {
2172
+ theme: '#0273E8',
2173
+ launcherText: '#fff',
2174
+ header: '#0273E8',
2175
+ button: '#0273E8',
2176
+ },
2177
+ zIndex: 99,
2178
+ offset: {
2179
+ horizontal: '1px',
2180
+ vertical: '20px',
2181
+ },
2182
+ mobile: {
2183
+ labelVisible: true,
2184
+ },
2185
+ launcher: {
2186
+ mobile: {
2187
+ labelVisible: true,
2188
+ },
2189
+ },
2190
+ },
2191
+ });
2192
+ window$1.zE('webWidget', 'setLocale', 'en-US');
2193
+ window$1.zE('webWidget', 'show');
2194
+ }
2195
+ apply(type) {
2196
+ const { title, message } = text === null || text === void 0 ? void 0 : text[type];
2197
+ const element = document.createElement('div');
2198
+ element.id = 'monkeyecx-information';
2199
+ const elementImg = document.createElement('img');
2200
+ elementImg.width = 128;
2201
+ elementImg.src = 'assets/images/monkey.svg';
2202
+ elementImg.style.marginBottom = '50px';
2203
+ const elementTitle = document.createElement('span');
2204
+ elementTitle.id = 'title';
2205
+ elementTitle.innerText = title;
2206
+ elementTitle.style.marginBottom = '20px';
2207
+ const elementMessage = document.createElement('span');
2208
+ elementMessage.id = 'message';
2209
+ elementMessage.innerText = message;
2210
+ elementMessage.style.marginBottom = '20px';
2211
+ const elementChat = document.createElement('span');
2212
+ elementChat.id = 'message';
2213
+ elementChat.innerText =
2214
+ "If you're having trouble to update, please use the support icon bellow";
2215
+ element.appendChild(elementImg);
2216
+ element.appendChild(elementTitle);
2217
+ element.appendChild(elementMessage);
2218
+ element.appendChild(elementChat);
2219
+ element.addEventListener('click', () => {
2220
+ document.location.reload();
2221
+ });
2222
+ document.body.appendChild(element);
2223
+ document.body.getElementsByTagName('app-root')[0].remove();
2224
+ this.enableSupport();
2067
2225
  }
2068
2226
  }
2069
- MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2070
- MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
2071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
2227
+ MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2228
+ MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
2229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
2072
2230
  type: Injectable,
2073
2231
  args: [{
2074
- providedIn: 'root'
2232
+ providedIn: 'root',
2075
2233
  }]
2076
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2077
- type: Inject,
2078
- args: [DOCUMENT]
2079
- }] }]; } });
2234
+ }], ctorParameters: function () { return []; } });
2080
2235
 
2081
2236
  class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
2082
- constructor(monkeyecxService, translateService, monkeyecxCookieStorageService) {
2237
+ constructor(monkeyecxService, translateService, monkeyecxCookieStorageService, monkeyecxErrorConfigService) {
2083
2238
  super(monkeyecxService);
2084
2239
  this.translateService = translateService;
2085
2240
  this.monkeyecxCookieStorageService = monkeyecxCookieStorageService;
2241
+ this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
2086
2242
  this.translateService.addLangs(['pt-BR', 'en-US']);
2087
2243
  this.translateService.setDefaultLang('pt-BR');
2088
2244
  this.translateService.use('pt-BR');
2089
- this.applyLocal();
2090
- }
2091
- applyLocal() {
2092
- registerLocaleData(localePTBR, 'pt-PT');
2093
2245
  }
2094
2246
  apply(params, environment, change = false) {
2095
- const { monkeyecxService, monkeyecxCookieStorageService } = this;
2247
+ var _a;
2248
+ const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
2096
2249
  let { i18n } = params;
2097
- const cookie = monkeyecxCookieStorageService.get('monkey-app-locale');
2250
+ const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
2098
2251
  if (cookie && !change) {
2099
2252
  i18n = JSON.parse(atob(cookie));
2100
2253
  }
2101
2254
  else {
2102
- monkeyecxCookieStorageService.set('monkey-app-locale', btoa(JSON.stringify(i18n)));
2255
+ monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)));
2256
+ if (!cookie)
2257
+ change = true;
2103
2258
  }
2104
- monkeyecxService.get(`${environment.urlAssets}/i18n/${i18n.lang}.json`).subscribe((config) => {
2259
+ (_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) => {
2105
2260
  const { lang, data } = config;
2106
2261
  this.translateService.setTranslation(lang, data, true);
2107
2262
  this.translateService.use(lang);
2263
+ if (change)
2264
+ document.location.reload();
2108
2265
  }, (err) => {
2109
- console.log(err);
2110
- console.error(`i18n ${i18n.lang} not found!`);
2266
+ console.error(`i18n ${i18n === null || i18n === void 0 ? void 0 : i18n.lang} not found!`);
2267
+ monkeyecxErrorConfigService.apply('i18n');
2111
2268
  throwError(err);
2112
2269
  });
2113
2270
  }
2114
2271
  }
2115
- MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: MonkeyEcxService }, { token: i1$1.TranslateService }, { token: MonkeyEcxCookieStorageService }], target: i0.ɵɵFactoryTarget.Injectable });
2116
- MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
2272
+ 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 });
2273
+ MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
2117
2274
  __decorate([
2118
2275
  MonkeyEcxCoreService({
2119
2276
  httpResponse: {
@@ -2124,36 +2281,38 @@ __decorate([
2124
2281
  }
2125
2282
  })
2126
2283
  ], MonkeyEcxi18nConfigService.prototype, "apply", null);
2127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
2284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
2128
2285
  type: Injectable,
2129
2286
  args: [{
2130
2287
  providedIn: 'root'
2131
2288
  }]
2132
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i1$1.TranslateService }, { type: MonkeyEcxCookieStorageService }]; }, propDecorators: { apply: [] } });
2289
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: i1$1.TranslateService }, { type: MonkeyEcxCookieStorageService }, { type: MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
2133
2290
 
2134
2291
  class MonkeyEcxLogsConfigService {
2135
2292
  apply(params, configBoostrap, environment, identifyCode) {
2136
2293
  const { program, logs } = params;
2137
- if ((logs === null || logs === void 0 ? void 0 : logs.enabled) &&
2138
- environment.production &&
2139
- (environment === null || environment === void 0 ? void 0 : environment.dataDogApplicationId) &&
2140
- (environment === null || environment === void 0 ? void 0 : environment.dataDogClientToken)) {
2294
+ if ((logs === null || logs === void 0 ? void 0 : logs.enabled) && environment.environment !== 'dev') {
2141
2295
  datadogRum.init({
2142
2296
  applicationId: environment === null || environment === void 0 ? void 0 : environment.dataDogApplicationId,
2143
2297
  clientToken: environment === null || environment === void 0 ? void 0 : environment.dataDogClientToken,
2144
- service: program.token,
2298
+ service: program === null || program === void 0 ? void 0 : program.token,
2145
2299
  site: 'datadoghq.com',
2146
2300
  sampleRate: 100,
2147
- env: `monkeyecx-front-${identifyCode}-${environment.environment}`,
2301
+ replaySampleRate: 100,
2302
+ env: `monkey-front-${identifyCode}-${environment.environment}`,
2148
2303
  version: configBoostrap === null || configBoostrap === void 0 ? void 0 : configBoostrap.version,
2149
- trackInteractions: true
2304
+ trackInteractions: true,
2305
+ trackSessionAcrossSubdomains: true,
2306
+ useSecureSessionCookie: true,
2307
+ useCrossSiteSessionCookie: true
2150
2308
  });
2309
+ datadogRum.startSessionReplayRecording();
2151
2310
  }
2152
2311
  }
2153
2312
  }
2154
- MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2155
- MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
2156
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
2313
+ MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2314
+ MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
2315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
2157
2316
  type: Injectable,
2158
2317
  args: [{
2159
2318
  providedIn: 'root'
@@ -2170,7 +2329,7 @@ class MonkeyEcxServiceWorkerConfigService {
2170
2329
  handleValidation(config) {
2171
2330
  var _a;
2172
2331
  const { updates, modalService } = this;
2173
- (_a = updates === null || updates === void 0 ? void 0 : updates.available) === null || _a === void 0 ? void 0 : _a.subscribe(() => {
2332
+ (_a = updates === null || updates === void 0 ? void 0 : updates.versionUpdates) === null || _a === void 0 ? void 0 : _a.subscribe(() => {
2174
2333
  if (!config.showNewVersion || config.maintenance.closed) {
2175
2334
  document.location.reload();
2176
2335
  }
@@ -2198,9 +2357,9 @@ class MonkeyEcxServiceWorkerConfigService {
2198
2357
  this.verify();
2199
2358
  }
2200
2359
  }
2201
- MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
2202
- MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
2203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
2360
+ 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 });
2361
+ MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
2362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
2204
2363
  type: Injectable,
2205
2364
  args: [{
2206
2365
  providedIn: 'root'
@@ -2236,9 +2395,9 @@ class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
2236
2395
  this.handleValidation();
2237
2396
  }
2238
2397
  }
2239
- MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
2240
- MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
2241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
2398
+ 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 });
2399
+ MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
2400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
2242
2401
  type: Injectable,
2243
2402
  args: [{
2244
2403
  providedIn: 'root'
@@ -2268,17 +2427,80 @@ class MonkeyEcxMaintenanceConfigService {
2268
2427
  this.handleValidation(config);
2269
2428
  }
2270
2429
  }
2271
- MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
2272
- MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
2273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
2430
+ 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 });
2431
+ MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
2432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
2274
2433
  type: Injectable,
2275
2434
  args: [{
2276
2435
  providedIn: 'root'
2277
2436
  }]
2278
2437
  }], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i1$3.Router }]; } });
2279
2438
 
2439
+ class MonkeyEcxFeatureToggleService {
2440
+ constructor() {
2441
+ this.flagSubject$ = new BehaviorSubject(null);
2442
+ this.flags = undefined;
2443
+ this.ldClient = undefined;
2444
+ // not to do
2445
+ }
2446
+ getAllFlags() {
2447
+ var _a;
2448
+ this.flags = (_a = this.ldClient) === null || _a === void 0 ? void 0 : _a.allFlags();
2449
+ this.flagSubject$.next(true);
2450
+ }
2451
+ identify(config, environment) {
2452
+ var _a;
2453
+ if (config) {
2454
+ const email = 'monkey@monkey.exchange';
2455
+ const user = {
2456
+ email,
2457
+ key: `${(_a = config.program) === null || _a === void 0 ? void 0 : _a.token}#${email}`
2458
+ };
2459
+ if (!this.ldClient) {
2460
+ this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
2461
+ streaming: true,
2462
+ disableSyncEventPost: true,
2463
+ sendEvents: false,
2464
+ diagnosticOptOut: true
2465
+ });
2466
+ this.ldClient.on('change', this.getAllFlags.bind(this));
2467
+ this.ldClient.on('ready', this.getAllFlags.bind(this));
2468
+ }
2469
+ else {
2470
+ this.ldClient.identify(user, undefined, this.getAllFlags);
2471
+ }
2472
+ }
2473
+ }
2474
+ apply(configSubject$, environment) {
2475
+ if (environment.launchDarklyClientSideID) {
2476
+ configSubject$.subscribe((config) => {
2477
+ this.identify(config, environment);
2478
+ });
2479
+ }
2480
+ else {
2481
+ this.flagSubject$.next(true);
2482
+ }
2483
+ }
2484
+ get onFlags() {
2485
+ return this.flagSubject$.asObservable();
2486
+ }
2487
+ getFlag(flag) {
2488
+ var _a;
2489
+ const flagValue = (_a = this.flags) === null || _a === void 0 ? void 0 : _a[flag];
2490
+ return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
2491
+ }
2492
+ }
2493
+ MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2494
+ MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
2495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
2496
+ type: Injectable,
2497
+ args: [{
2498
+ providedIn: 'root'
2499
+ }]
2500
+ }], ctorParameters: function () { return []; } });
2501
+
2280
2502
  class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2281
- constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService) {
2503
+ constructor(monkeyecxService, monkeyecxi18nConfigService, monkeyecxLogsConfigService, monkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService) {
2282
2504
  super(monkeyecxService);
2283
2505
  this.monkeyecxi18nConfigService = monkeyecxi18nConfigService;
2284
2506
  this.monkeyecxLogsConfigService = monkeyecxLogsConfigService;
@@ -2286,8 +2508,10 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2286
2508
  this.monkeyecxServiceWorkerConfigService = monkeyecxServiceWorkerConfigService;
2287
2509
  this.monkeyecxSecurityConsoleConfigService = monkeyecxSecurityConsoleConfigService;
2288
2510
  this.monkeyecxMaintenanceConfigService = monkeyecxMaintenanceConfigService;
2289
- this.configSubject$ = new BehaviorSubject(null);
2290
- this.configBoostrapSubject$ = new BehaviorSubject(null);
2511
+ this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
2512
+ this.monkeyEcxFeatureToggleService = monkeyEcxFeatureToggleService;
2513
+ this.configSubject$ = new BehaviorSubject({});
2514
+ this.configBoostrapSubject$ = new BehaviorSubject({});
2291
2515
  }
2292
2516
  internalValidations(...args) {
2293
2517
  const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
@@ -2296,30 +2520,36 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2296
2520
  monkeyecxSecurityConsoleConfigService.apply();
2297
2521
  monkeyecxServiceWorkerConfigService.apply(configBoostrap);
2298
2522
  monkeyecxMaintenanceConfigService.apply(configBoostrap);
2523
+ console.log('configBoostrap');
2524
+ console.log(configBoostrap);
2299
2525
  callback(configBoostrap);
2300
2526
  }
2301
- getWhiteLabelSettings(monkeyecxCode, configBoostrap = null, callback, environment, identifyCode) {
2302
- const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, internalValidations } = this;
2303
- monkeyecxService
2304
- .get(`${environment.urlAssets}/monkeyecx/${monkeyecxCode.toLowerCase()}/white-label.json`)
2305
- .subscribe((config) => {
2527
+ getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
2528
+ var _a;
2529
+ const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
2530
+ const url = `${environment.urlAssets}`;
2531
+ (_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) => {
2532
+ console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
2533
+ console.log(config);
2534
+ console.log(`${url}/${monkeyecxCode.toLowerCase()}/monkey-style-guide-settings.json`);
2535
+ console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
2306
2536
  monkeyecxi18nConfigService.apply(config, environment);
2307
2537
  monkeyecxLogsConfigService.apply(config, configBoostrap, environment, identifyCode);
2308
- monkeyStyleGuideSettingsService.boostrap(`${environment.urlAssets}/monkeyecx/${monkeyecxCode.toLowerCase()}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBoostrap, callback, environment));
2538
+ monkeyEcxFeatureToggleService.apply(configSubject$, environment);
2539
+ monkeyStyleGuideSettingsService.boostrap(`${url}/${monkeyecxCode.toLowerCase()}/monkey-style-guide-settings.json`, internalValidations.bind(this, configBoostrap, callback, environment));
2309
2540
  configSubject$.next(config);
2310
2541
  }, (err) => {
2311
- console.log(err);
2542
+ monkeyecxErrorConfigService.apply('theme');
2312
2543
  console.error('Program Configuration not found!');
2313
2544
  throwError(err);
2314
2545
  });
2315
2546
  }
2316
2547
  init(callback, environment, identifyCode, monkeyecxCode) {
2317
- const { monkeyecxService, configBoostrapSubject$ } = this;
2318
- monkeyecxService
2319
- .get(`/assets/boostrap.json?t=${MonkeyUtils.getRandomString(30)}`, {
2548
+ var _a;
2549
+ const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
2550
+ (_a = monkeyecxService === null || monkeyecxService === void 0 ? void 0 : monkeyecxService.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2320
2551
  observe: 'response'
2321
- })
2322
- .subscribe((resp) => {
2552
+ })) === null || _a === void 0 ? void 0 : _a.subscribe((resp) => {
2323
2553
  const { headers, body } = resp;
2324
2554
  const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
2325
2555
  if (monkeyCode) {
@@ -2327,10 +2557,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2327
2557
  configBoostrapSubject$.next(body);
2328
2558
  }
2329
2559
  else {
2560
+ monkeyecxErrorConfigService.apply('theme');
2330
2561
  console.error(`Boostrap ${monkeyCode} Configuration not found!`);
2331
2562
  }
2332
2563
  }, (err) => {
2333
- console.log(err);
2564
+ monkeyecxErrorConfigService.apply('theme');
2334
2565
  console.error('Boostrap Configuration not found!');
2335
2566
  throwError(err);
2336
2567
  });
@@ -2342,8 +2573,8 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2342
2573
  return this.configBoostrapSubject$.asObservable();
2343
2574
  }
2344
2575
  }
2345
- MonkeyEcxConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxi18nConfigService }, { token: MonkeyEcxLogsConfigService }, { token: i1.MonkeyStyleGuideSettingsService }, { token: MonkeyEcxServiceWorkerConfigService }, { token: MonkeyEcxSecurityConsoleConfigService }, { token: MonkeyEcxMaintenanceConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2346
- MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
2576
+ 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 });
2577
+ MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, providedIn: 'root' });
2347
2578
  __decorate([
2348
2579
  MonkeyEcxCoreService({
2349
2580
  httpResponse: {
@@ -2354,12 +2585,12 @@ __decorate([
2354
2585
  }
2355
2586
  })
2356
2587
  ], MonkeyEcxConfigService.prototype, "init", null);
2357
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2358
2589
  type: Injectable,
2359
2590
  args: [{
2360
2591
  providedIn: 'root'
2361
2592
  }]
2362
- }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }]; }, propDecorators: { init: [] } });
2593
+ }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { init: [] } });
2363
2594
 
2364
2595
  class MonkeyEcxTokenStorageService {
2365
2596
  constructor(monkeyecxConfigService) {
@@ -2399,14 +2630,14 @@ class MonkeyEcxTokenStorageService {
2399
2630
  getAllTokens() {
2400
2631
  const { token } = this;
2401
2632
  const handledToken = Object.assign({}, token);
2402
- Object.entries(token).forEach(([key, value]) => {
2633
+ Object.entries(token || {}).forEach(([key, value]) => {
2403
2634
  handledToken[key] = localStorage.getItem(key);
2404
2635
  });
2405
2636
  return handledToken;
2406
2637
  }
2407
2638
  setAllMe(me) {
2408
2639
  const { me$ } = this;
2409
- let previousMe = JSON.parse(localStorage.getItem('me'));
2640
+ let previousMe = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem('me')) || '');
2410
2641
  Object.entries(me).forEach(([key, value]) => {
2411
2642
  if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
2412
2643
  previousMe = Object.assign(Object.assign({}, previousMe), { [key]: value });
@@ -2417,7 +2648,7 @@ class MonkeyEcxTokenStorageService {
2417
2648
  }
2418
2649
  getAllMe() {
2419
2650
  const me = localStorage.getItem('me');
2420
- return JSON.parse(me);
2651
+ return JSON.parse(me || '');
2421
2652
  }
2422
2653
  tokenHasChanged() {
2423
2654
  return this.token$.asObservable();
@@ -2440,8 +2671,9 @@ class MonkeyEcxTokenStorageService {
2440
2671
  clear(force) {
2441
2672
  const { token } = this;
2442
2673
  try {
2443
- Object.entries(token).forEach(([key, value]) => {
2444
- if (token._clearIgnore.ignore.filter((val) => {
2674
+ Object.entries(token || {}).forEach(([key, value]) => {
2675
+ var _a;
2676
+ if ((((_a = token === null || token === void 0 ? void 0 : token._clearIgnore) === null || _a === void 0 ? void 0 : _a.ignore) || []).filter((val) => {
2445
2677
  return val === key;
2446
2678
  }).length <= 0 ||
2447
2679
  force === true) {
@@ -2464,9 +2696,9 @@ class MonkeyEcxTokenStorageService {
2464
2696
  });
2465
2697
  }
2466
2698
  }
2467
- MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2468
- MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
2469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
2699
+ MonkeyEcxTokenStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
2700
+ MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, providedIn: 'root' });
2701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
2470
2702
  type: Injectable,
2471
2703
  args: [{
2472
2704
  providedIn: 'root'
@@ -2478,7 +2710,9 @@ class MonkeyEcxSecurityDirective {
2478
2710
  this.elementRef = elementRef;
2479
2711
  this.tokenStorageService = tokenStorageService;
2480
2712
  this.cdr = cdr;
2713
+ this.roles = null;
2481
2714
  this.byExclusion = false;
2715
+ this.tokenCredentials = null;
2482
2716
  // not to do
2483
2717
  }
2484
2718
  getRole() {
@@ -2493,7 +2727,7 @@ class MonkeyEcxSecurityDirective {
2493
2727
  handleAccess() {
2494
2728
  const { roles, byExclusion } = this;
2495
2729
  let display = 'none';
2496
- const found = roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole());
2730
+ const found = (roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole())) || -1;
2497
2731
  if (byExclusion) {
2498
2732
  display = 'block';
2499
2733
  if (found > -1) {
@@ -2506,7 +2740,7 @@ class MonkeyEcxSecurityDirective {
2506
2740
  display = 'block';
2507
2741
  }
2508
2742
  }
2509
- if (!roles || roles.length === 0 || (this.getRole() === 'PROGRAM_ADMIN'))
2743
+ if (!roles || roles.length === 0 || this.getRole() === 'PROGRAM_ADMIN')
2510
2744
  display = 'block';
2511
2745
  this.elementRef.nativeElement.style.display = display;
2512
2746
  this.cdr.detectChanges();
@@ -2522,12 +2756,12 @@ class MonkeyEcxSecurityDirective {
2522
2756
  this.handleAccess();
2523
2757
  }
2524
2758
  }
2525
- MonkeyEcxSecurityDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxSecurityDirective, deps: [{ token: i0.ElementRef }, { token: MonkeyEcxTokenStorageService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
2526
- MonkeyEcxSecurityDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxSecurityDirective, selector: "[monkeyecxSecurity]", inputs: { roles: ["securityRoles", "roles"], byExclusion: ["securityByExclusion", "byExclusion"] }, ngImport: i0 });
2527
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxSecurityDirective, decorators: [{
2759
+ 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 });
2760
+ 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 });
2761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityDirective, decorators: [{
2528
2762
  type: Directive,
2529
2763
  args: [{
2530
- selector: '[monkeyecxSecurity]'
2764
+ selector: '[monkeyecxSecurity]',
2531
2765
  }]
2532
2766
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: MonkeyEcxTokenStorageService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { roles: [{
2533
2767
  type: Input,
@@ -2541,7 +2775,9 @@ class MonkeyEcxTooltipDirective {
2541
2775
  constructor(el, renderer) {
2542
2776
  this.el = el;
2543
2777
  this.renderer = renderer;
2778
+ this.enableToShow = true;
2544
2779
  this.offset = 10;
2780
+ this.tooltip = null;
2545
2781
  // not to do
2546
2782
  }
2547
2783
  onMouseEnter() {
@@ -2560,12 +2796,19 @@ class MonkeyEcxTooltipDirective {
2560
2796
  }
2561
2797
  }
2562
2798
  show() {
2563
- this.create();
2564
- this.setPosition();
2565
- this.renderer.addClass(this.tooltip, 'monkey-tooltip-show');
2799
+ if (this.enableToShow) {
2800
+ this.create();
2801
+ this.setPosition();
2802
+ this.renderer.addClass(this.tooltip, 'monkeyecx-tooltip-show');
2803
+ setTimeout(() => {
2804
+ this.hide();
2805
+ }, 5000);
2806
+ }
2566
2807
  }
2567
2808
  hide() {
2568
- this.renderer.removeClass(this.tooltip, 'monkey-tooltip-show');
2809
+ if (!this.tooltip)
2810
+ return;
2811
+ this.renderer.removeClass(this.tooltip, 'monkeyecx-tooltip-show');
2569
2812
  this.renderer.removeChild(document.body, this.tooltip);
2570
2813
  this.tooltip = null;
2571
2814
  }
@@ -2575,30 +2818,33 @@ class MonkeyEcxTooltipDirective {
2575
2818
  if (this.tooltipTitle) {
2576
2819
  const tooltipTitleElement = document.createElement('span');
2577
2820
  tooltipTitleElement.innerText = `${this.tooltipTitle}`;
2578
- tooltipTitleElement.className = 'monkey-tooltip-title';
2821
+ tooltipTitleElement.className = 'monkeyecx-tooltip-title';
2579
2822
  tooltipElement.appendChild(tooltipTitleElement);
2580
2823
  }
2581
2824
  if (this.tooltipText) {
2582
2825
  const tooltipTextElement = document.createElement('span');
2583
2826
  tooltipTextElement.innerText = `${this.tooltipText}`;
2584
- tooltipTextElement.className = 'monkey-tooltip-description';
2827
+ tooltipTextElement.className = 'monkeyecx-tooltip-description';
2585
2828
  tooltipElement.appendChild(tooltipTextElement);
2586
2829
  }
2587
2830
  this.renderer.appendChild(this.tooltip, tooltipElement);
2588
2831
  this.renderer.appendChild(document.body, this.tooltip);
2589
- this.renderer.addClass(this.tooltip, 'monkey-tooltip');
2590
- this.renderer.addClass(this.tooltip, `monkey-tooltip-${this.tooltipPosition}`);
2832
+ this.renderer.addClass(this.tooltip, 'monkeyecx-tooltip');
2833
+ this.renderer.addClass(this.tooltip, `monkeyecx-tooltip-${this.tooltipPosition}`);
2591
2834
  this.renderer.setStyle(this.tooltip, '-webkit-transition', `opacity ${this.tooltipDelay}ms`);
2592
2835
  this.renderer.setStyle(this.tooltip, '-moz-transition', `opacity ${this.tooltipDelay}ms`);
2593
2836
  this.renderer.setStyle(this.tooltip, '-o-transition', `opacity ${this.tooltipDelay}ms`);
2594
2837
  this.renderer.setStyle(this.tooltip, 'transition', `opacity ${this.tooltipDelay}ms`);
2595
2838
  }
2596
2839
  setPosition() {
2840
+ var _a;
2597
2841
  const hostPos = this.el.nativeElement.getBoundingClientRect();
2598
- const tooltipPos = this.tooltip.getBoundingClientRect();
2842
+ const tooltipPos = (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
2843
+ if (!tooltipPos)
2844
+ return;
2599
2845
  const scrollPos = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
2600
- let top;
2601
- let left;
2846
+ let top = 0;
2847
+ let left = 0;
2602
2848
  if (this.tooltipPosition === 'top') {
2603
2849
  top = hostPos.top - tooltipPos.height - this.offset;
2604
2850
  left = hostPos.left + (hostPos.width - tooltipPos.width) / 2;
@@ -2619,12 +2865,12 @@ class MonkeyEcxTooltipDirective {
2619
2865
  this.renderer.setStyle(this.tooltip, 'left', `${left}px`);
2620
2866
  }
2621
2867
  }
2622
- MonkeyEcxTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2623
- MonkeyEcxTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.14", type: MonkeyEcxTooltipDirective, selector: "[monkeyecxTooltip]", inputs: { tooltipDelay: "tooltipDelay", tooltipPosition: "tooltipPosition", tooltipText: "tooltipText", tooltipTitle: "tooltipTitle" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "click": "clickout()" } }, ngImport: i0 });
2624
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxTooltipDirective, decorators: [{
2868
+ 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 });
2869
+ 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 });
2870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTooltipDirective, decorators: [{
2625
2871
  type: Directive,
2626
2872
  args: [{
2627
- selector: '[monkeyecxTooltip]'
2873
+ selector: '[monkeyecxTooltip]',
2628
2874
  }]
2629
2875
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { tooltipDelay: [{
2630
2876
  type: Input
@@ -2634,6 +2880,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
2634
2880
  type: Input
2635
2881
  }], tooltipTitle: [{
2636
2882
  type: Input
2883
+ }], enableToShow: [{
2884
+ type: Input
2637
2885
  }], onMouseEnter: [{
2638
2886
  type: HostListener,
2639
2887
  args: ['mouseenter']
@@ -2645,29 +2893,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
2645
2893
  args: ['click']
2646
2894
  }] } });
2647
2895
 
2896
+ class MonkeyEcxFeatureDirective {
2897
+ constructor(cdr, elementRef, monkeyecxFeatureToggleService) {
2898
+ this.cdr = cdr;
2899
+ this.elementRef = elementRef;
2900
+ this.monkeyecxFeatureToggleService = monkeyecxFeatureToggleService;
2901
+ this.unsubscribeAll = new Subject();
2902
+ // not to do
2903
+ }
2904
+ getFeature(feature) {
2905
+ const { monkeyecxFeatureToggleService } = this;
2906
+ if (!monkeyecxFeatureToggleService) {
2907
+ return false;
2908
+ }
2909
+ return (monkeyecxFeatureToggleService === null || monkeyecxFeatureToggleService === void 0 ? void 0 : monkeyecxFeatureToggleService.getFlag(feature)) || false;
2910
+ }
2911
+ handleDisplay() {
2912
+ if (!this.feature)
2913
+ return;
2914
+ const flag = this.getFeature(this.feature);
2915
+ let display = 'none';
2916
+ if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
2917
+ return;
2918
+ }
2919
+ if (flag) {
2920
+ display = 'block';
2921
+ }
2922
+ if (display === 'none') {
2923
+ this.elementRef.nativeElement.remove();
2924
+ }
2925
+ this.elementRef.nativeElement.style.display = display;
2926
+ this.cdr.detectChanges();
2927
+ }
2928
+ ngOnDestroy() {
2929
+ this.unsubscribeAll.next();
2930
+ this.unsubscribeAll.complete();
2931
+ }
2932
+ ngOnInit() {
2933
+ if (!this.feature)
2934
+ return;
2935
+ this.elementRef.nativeElement.style.display = 'none';
2936
+ this.cdr.detectChanges();
2937
+ this.monkeyecxFeatureToggleService.onFlags
2938
+ .pipe(takeUntil(this.unsubscribeAll))
2939
+ .subscribe((val) => {
2940
+ if (val) {
2941
+ this.handleDisplay();
2942
+ }
2943
+ });
2944
+ }
2945
+ }
2946
+ 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 });
2947
+ MonkeyEcxFeatureDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxFeatureDirective, selector: "[monkeyecxFeature]", inputs: { feature: ["featureName", "feature"] }, ngImport: i0 });
2948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureDirective, decorators: [{
2949
+ type: Directive,
2950
+ args: [{
2951
+ selector: '[monkeyecxFeature]',
2952
+ }]
2953
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { feature: [{
2954
+ type: Input,
2955
+ args: ['featureName']
2956
+ }] } });
2957
+
2648
2958
  class MonkeyEcxDirectivesModule {
2649
2959
  }
2650
- MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2651
- MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
2960
+ MonkeyEcxDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2961
+ MonkeyEcxDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, declarations: [MonkeyEcxDragDropDirective,
2652
2962
  MonkeyEcxFormatCurrency,
2963
+ MonkeyEcxFeatureDirective,
2653
2964
  MonkeyEcxFormatUpper,
2654
2965
  MonkeyEcxOnlyAlphaNumericDirective,
2655
2966
  MonkeyEcxOnlyNumbersDirective,
2656
2967
  MonkeyEcxSecurityDirective,
2657
2968
  MonkeyEcxTooltipDirective], exports: [MonkeyEcxDragDropDirective,
2658
2969
  MonkeyEcxFormatCurrency,
2970
+ MonkeyEcxFeatureDirective,
2659
2971
  MonkeyEcxFormatUpper,
2660
2972
  MonkeyEcxOnlyAlphaNumericDirective,
2661
2973
  MonkeyEcxOnlyNumbersDirective,
2662
2974
  MonkeyEcxSecurityDirective,
2663
2975
  MonkeyEcxTooltipDirective] });
2664
- MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDirectivesModule });
2665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
2976
+ MonkeyEcxDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule });
2977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDirectivesModule, decorators: [{
2666
2978
  type: NgModule,
2667
2979
  args: [{
2668
2980
  declarations: [
2669
2981
  MonkeyEcxDragDropDirective,
2670
2982
  MonkeyEcxFormatCurrency,
2983
+ MonkeyEcxFeatureDirective,
2671
2984
  MonkeyEcxFormatUpper,
2672
2985
  MonkeyEcxOnlyAlphaNumericDirective,
2673
2986
  MonkeyEcxOnlyNumbersDirective,
@@ -2677,6 +2990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
2677
2990
  exports: [
2678
2991
  MonkeyEcxDragDropDirective,
2679
2992
  MonkeyEcxFormatCurrency,
2993
+ MonkeyEcxFeatureDirective,
2680
2994
  MonkeyEcxFormatUpper,
2681
2995
  MonkeyEcxOnlyAlphaNumericDirective,
2682
2996
  MonkeyEcxOnlyNumbersDirective,
@@ -2736,9 +3050,9 @@ class MonkeyEcxAuthenticationService {
2736
3050
  this.refreshToken = (args === null || args === void 0 ? void 0 : args.refreshToken) || this.refreshToken.bind(this);
2737
3051
  }
2738
3052
  }
2739
- MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2740
- MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
2741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
3053
+ MonkeyEcxAuthenticationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3054
+ MonkeyEcxAuthenticationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, providedIn: 'root' });
3055
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthenticationService, decorators: [{
2742
3056
  type: Injectable,
2743
3057
  args: [{
2744
3058
  providedIn: 'root'
@@ -2762,9 +3076,9 @@ class MonkeyEcxAuthGuardLogin {
2762
3076
  return true;
2763
3077
  }
2764
3078
  }
2765
- MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
2766
- MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
2767
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
3079
+ MonkeyEcxAuthGuardLogin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
3080
+ MonkeyEcxAuthGuardLogin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, providedIn: 'root' });
3081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuardLogin, decorators: [{
2768
3082
  type: Injectable,
2769
3083
  args: [{
2770
3084
  providedIn: 'root'
@@ -2785,9 +3099,9 @@ class MonkeyEcxAuthGuard {
2785
3099
  return false;
2786
3100
  }
2787
3101
  }
2788
- MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
2789
- MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
2790
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
3102
+ MonkeyEcxAuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, deps: [{ token: MonkeyEcxAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
3103
+ MonkeyEcxAuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, providedIn: 'root' });
3104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAuthGuard, decorators: [{
2791
3105
  type: Injectable,
2792
3106
  args: [{
2793
3107
  providedIn: 'root'
@@ -2809,7 +3123,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2809
3123
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
2810
3124
  return false;
2811
3125
  }
2812
- 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;
3126
+ 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;
2813
3127
  return found;
2814
3128
  }
2815
3129
  isHttpCodeIgnoreRedirect(tp, httpCode) {
@@ -2817,7 +3131,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2817
3131
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(tp) && !(tp === null || tp === void 0 ? void 0 : tp.httpResponse)) {
2818
3132
  return false;
2819
3133
  }
2820
- 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;
3134
+ 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;
2821
3135
  return found;
2822
3136
  }
2823
3137
  getMessageType(status) {
@@ -2829,6 +3143,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2829
3143
  showMessage(message, error, mkc) {
2830
3144
  var _a;
2831
3145
  const { snackbarService } = this;
3146
+ console.log('==================');
2832
3147
  if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
2833
3148
  snackbarService.show({
2834
3149
  title: (_a = this.__i18n) === null || _a === void 0 ? void 0 : _a.TITLE,
@@ -2863,7 +3178,8 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2863
3178
  });
2864
3179
  const reader = new FileReader();
2865
3180
  reader.addEventListener('loadend', (e) => {
2866
- const text = e.target.result;
3181
+ var _a;
3182
+ const text = (_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.result;
2867
3183
  const jsonResp = JSON.parse(text);
2868
3184
  customMessage = jsonResp.notifications;
2869
3185
  this.showMessage(customMessage, error, mkc);
@@ -2888,7 +3204,7 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2888
3204
  };
2889
3205
  const found = routes[status];
2890
3206
  let timeout = 0;
2891
- if (found && !this.isHttpCodeIgnoreRedirect(mkc, error.status)) {
3207
+ if (found && !this.isHttpCodeIgnoreRedirect(mkc, error === null || error === void 0 ? void 0 : error.status)) {
2892
3208
  const route = `/app/pages/${found}`.toLowerCase();
2893
3209
  timeout = 800;
2894
3210
  router.navigate([route]);
@@ -2899,16 +3215,16 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
2899
3215
  }
2900
3216
  handleErrorRefreshToken(error, mkc) {
2901
3217
  if (error.status === 401 || error.status === 400) {
2902
- NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack());
3218
+ NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
2903
3219
  }
2904
3220
  else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
2905
3221
  this.handleMessage(error, mkc);
2906
3222
  }
2907
3223
  }
2908
3224
  }
2909
- MonkeyEcxHttpErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", 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 });
2910
- MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
2911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
3225
+ 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 });
3226
+ MonkeyEcxHttpErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, providedIn: 'root' });
3227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpErrorHandlingService, decorators: [{
2912
3228
  type: Injectable,
2913
3229
  args: [{
2914
3230
  providedIn: 'root'
@@ -2931,9 +3247,9 @@ class MonkeyEcxOthersErrorsHandlingService {
2931
3247
  }
2932
3248
  }
2933
3249
  }
2934
- MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
2935
- MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, providedIn: 'root' });
2936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, decorators: [{
3250
+ MonkeyEcxOthersErrorsHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, deps: [{ token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3251
+ MonkeyEcxOthersErrorsHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, providedIn: 'root' });
3252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxOthersErrorsHandlingService, decorators: [{
2937
3253
  type: Injectable,
2938
3254
  args: [{
2939
3255
  providedIn: 'root'
@@ -2950,8 +3266,10 @@ class MonkeyEcxErrorHandlingService {
2950
3266
  const handlingService = injector.get(MonkeyEcxHandlingService);
2951
3267
  const httpErrorHandlingService = injector.get(MonkeyEcxHttpErrorHandlingService);
2952
3268
  const othersErrorsHandlingService = injector.get(MonkeyEcxOthersErrorsHandlingService);
3269
+ console.log('error');
3270
+ console.log(error);
2953
3271
  if (error instanceof HttpErrorResponse) {
2954
- const sCredentials = handlingService.getMonkeyEcxServiceCredentials();
3272
+ const sCredentials = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) || {};
2955
3273
  if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
2956
3274
  httpErrorHandlingService.handleErrorRefreshToken(error, sCredentials);
2957
3275
  }
@@ -2963,9 +3281,9 @@ class MonkeyEcxErrorHandlingService {
2963
3281
  }
2964
3282
  }
2965
3283
  }
2966
- MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
2967
- MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingService, providedIn: 'root' });
2968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
3284
+ MonkeyEcxErrorHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3285
+ MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, providedIn: 'root' });
3286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
2969
3287
  type: Injectable,
2970
3288
  args: [{
2971
3289
  providedIn: 'root'
@@ -2985,10 +3303,10 @@ class MonkeyEcxErrorHandlingModule {
2985
3303
  };
2986
3304
  }
2987
3305
  }
2988
- MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2989
- MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [CommonModule] });
2990
- MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [[CommonModule]] });
2991
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxErrorHandlingModule, decorators: [{
3306
+ MonkeyEcxErrorHandlingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3307
+ MonkeyEcxErrorHandlingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [CommonModule] });
3308
+ MonkeyEcxErrorHandlingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, imports: [[CommonModule]] });
3309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingModule, decorators: [{
2992
3310
  type: NgModule,
2993
3311
  args: [{
2994
3312
  imports: [CommonModule]
@@ -3005,8 +3323,9 @@ class MonkeyEcxHttpConfigErrorInterceptor {
3005
3323
  return next.handle(request).pipe(map((event) => {
3006
3324
  return event;
3007
3325
  }), catchError((error) => {
3326
+ var _a, _b;
3008
3327
  if (this.monkeyecxAuthenticationService.refreshShouldHappen(error)) {
3009
- return this.monkeyecxAuthenticationService.refreshToken().pipe(take(1), map(() => {
3328
+ return ((_b = (_a = this.monkeyecxAuthenticationService) === null || _a === void 0 ? void 0 : _a.refreshToken()) === null || _b === void 0 ? void 0 : _b.pipe(take(1), map(() => {
3010
3329
  return this.monkeyecxAuthenticationService.getRequestWithHeaders(request);
3011
3330
  }), mergeMap((resp) => {
3012
3331
  return next.handle(resp).pipe(catchError((error) => {
@@ -3016,15 +3335,15 @@ class MonkeyEcxHttpConfigErrorInterceptor {
3016
3335
  }), catchError((error) => {
3017
3336
  this.monkeyecxErrorHandlingService.handleError(error, 'refresh_token');
3018
3337
  return throwError(null);
3019
- }));
3338
+ }))) || throwError(error);
3020
3339
  }
3021
3340
  return throwError(error);
3022
3341
  }));
3023
3342
  }
3024
3343
  }
3025
- MonkeyEcxHttpConfigErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3026
- MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
3027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
3344
+ 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 });
3345
+ MonkeyEcxHttpConfigErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor });
3346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigErrorInterceptor, decorators: [{
3028
3347
  type: Injectable
3029
3348
  }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3030
3349
 
@@ -3035,7 +3354,8 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
3035
3354
  // not to do
3036
3355
  }
3037
3356
  intercept(request, next) {
3038
- return this.monkeyecxAuthenticationService.getRequestWithHeadersOb(request).pipe(take(1), map((event) => {
3357
+ var _a, _b;
3358
+ 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) => {
3039
3359
  return event;
3040
3360
  }), mergeMap((resp) => {
3041
3361
  request = request.clone({
@@ -3045,12 +3365,12 @@ class MonkeyEcxHttpConfigHeaderInterceptor {
3045
3365
  }), catchError((error) => {
3046
3366
  this.monkeyecxErrorHandlingService.handleError(error);
3047
3367
  return throwError(error);
3048
- }));
3368
+ }))) || throwError('getRequestWithHeadersOb undefined');
3049
3369
  }
3050
3370
  }
3051
- MonkeyEcxHttpConfigHeaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, deps: [{ token: MonkeyEcxAuthenticationService }, { token: MonkeyEcxErrorHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3052
- MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
3053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
3371
+ 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 });
3372
+ MonkeyEcxHttpConfigHeaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor });
3373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigHeaderInterceptor, decorators: [{
3054
3374
  type: Injectable
3055
3375
  }], ctorParameters: function () { return [{ type: MonkeyEcxAuthenticationService }, { type: MonkeyEcxErrorHandlingService }]; } });
3056
3376
 
@@ -3086,7 +3406,7 @@ class MonkeyEcxRequestQueueHandlingService {
3086
3406
  ...saved.map((val) => {
3087
3407
  const valSaved = Object.assign({}, val);
3088
3408
  const { total, loaded } = progress;
3089
- const currentPecentage = Math.floor((loaded / total) * 100);
3409
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3090
3410
  const totalPercentage = 100;
3091
3411
  if (valSaved.item.id === q.item.id) {
3092
3412
  return Object.assign(Object.assign({}, valSaved), { progress: {
@@ -3117,12 +3437,16 @@ class MonkeyEcxRequestQueueHandlingService {
3117
3437
  this.queues$.next(this.queue);
3118
3438
  }
3119
3439
  setQueue(q) {
3440
+ if (!q)
3441
+ return;
3120
3442
  this.addToQueue(q);
3121
3443
  }
3122
3444
  getQueue() {
3123
3445
  return this.queues$.asObservable();
3124
3446
  }
3125
3447
  finishQueueItem(q, action, status) {
3448
+ if (!q)
3449
+ return;
3126
3450
  this.markQueueItemAsFinish(q, status, action);
3127
3451
  }
3128
3452
  removeQueueItem(q) {
@@ -3137,9 +3461,9 @@ class MonkeyEcxRequestQueueHandlingService {
3137
3461
  }));
3138
3462
  }
3139
3463
  }
3140
- MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3141
- MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, providedIn: 'root' });
3142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, decorators: [{
3464
+ MonkeyEcxRequestQueueHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3465
+ MonkeyEcxRequestQueueHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, providedIn: 'root' });
3466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueHandlingService, decorators: [{
3143
3467
  type: Injectable,
3144
3468
  args: [{
3145
3469
  providedIn: 'root'
@@ -3179,7 +3503,7 @@ class MonkeyEcxRequestQueueModalHandlingService {
3179
3503
  ...saved.map((val) => {
3180
3504
  const valSaved = Object.assign({}, val);
3181
3505
  const { total, loaded } = progress;
3182
- const currentPecentage = Math.floor((loaded / total) * 100);
3506
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3183
3507
  const totalPercentage = 100;
3184
3508
  if (valSaved.item.id === q.item.id) {
3185
3509
  return Object.assign(Object.assign({}, valSaved), { progress: {
@@ -3238,9 +3562,9 @@ class MonkeyEcxRequestQueueModalHandlingService {
3238
3562
  }));
3239
3563
  }
3240
3564
  }
3241
- MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3242
- MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, providedIn: 'root' });
3243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, decorators: [{
3565
+ MonkeyEcxRequestQueueModalHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3566
+ MonkeyEcxRequestQueueModalHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, providedIn: 'root' });
3567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestQueueModalHandlingService, decorators: [{
3244
3568
  type: Injectable,
3245
3569
  args: [{
3246
3570
  providedIn: 'root'
@@ -3257,7 +3581,7 @@ class MonkeyEcxHttpConfigQueueInterceptor {
3257
3581
  intercept(request, next) {
3258
3582
  const { injector, isQueueProperty } = this;
3259
3583
  const monkeyecxHandlingService = injector.get(MonkeyEcxHandlingService);
3260
- const monkeyecxRequestQueue = monkeyecxHandlingService.getMonkeyEcxRequestQueue();
3584
+ const monkeyecxRequestQueue = monkeyecxHandlingService === null || monkeyecxHandlingService === void 0 ? void 0 : monkeyecxHandlingService.getMonkeyEcxRequestQueue();
3261
3585
  if (isQueueProperty(monkeyecxRequestQueue)) {
3262
3586
  this.monkeyecxRequestQueueHandlingService.setQueue(monkeyecxRequestQueue);
3263
3587
  }
@@ -3268,13 +3592,14 @@ class MonkeyEcxHttpConfigQueueInterceptor {
3268
3592
  }));
3269
3593
  }
3270
3594
  isQueueProperty(mrq) {
3595
+ var _a;
3271
3596
  return (MonkeyEcxUtils.persistNullEmptyUndefined(mrq) &&
3272
- MonkeyEcxUtils.persistNullEmptyUndefined(mrq.item.name));
3597
+ MonkeyEcxUtils.persistNullEmptyUndefined((_a = mrq === null || mrq === void 0 ? void 0 : mrq.item) === null || _a === void 0 ? void 0 : _a.name));
3273
3598
  }
3274
3599
  }
3275
- MonkeyEcxHttpConfigQueueInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, deps: [{ token: i0.Injector }, { token: MonkeyEcxRequestQueueHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3276
- MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
3277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
3600
+ 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 });
3601
+ MonkeyEcxHttpConfigQueueInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor });
3602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigQueueInterceptor, decorators: [{
3278
3603
  type: Injectable
3279
3604
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: MonkeyEcxRequestQueueHandlingService }]; } });
3280
3605
 
@@ -3285,11 +3610,12 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
3285
3610
  // no to do
3286
3611
  }
3287
3612
  intercept(request, next) {
3613
+ var _a;
3288
3614
  const { injector, isLoadingInProgressProperty } = this;
3289
3615
  const handlingService = injector.get(MonkeyEcxHandlingService);
3290
3616
  const progressBarService = injector.get(MonkeyEcxProgressBarService);
3291
- const inProgress = handlingService.getMonkeyEcxServiceCredentials()
3292
- ? handlingService.getMonkeyEcxServiceCredentials().requestInProgress
3617
+ const inProgress = (handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials())
3618
+ ? ((_a = handlingService === null || handlingService === void 0 ? void 0 : handlingService.getMonkeyEcxServiceCredentials()) === null || _a === void 0 ? void 0 : _a.requestInProgress) || null
3293
3619
  : null;
3294
3620
  if (isLoadingInProgressProperty(inProgress)) {
3295
3621
  progressBarService.show();
@@ -3301,15 +3627,17 @@ class MonkeyEcxHttpConfigLoadingInProgressInterceptor {
3301
3627
  }));
3302
3628
  }
3303
3629
  isLoadingInProgressProperty(mlp) {
3630
+ if (!mlp)
3631
+ return false;
3304
3632
  return MonkeyEcxUtils.persistNullEmptyUndefined(mlp) &&
3305
3633
  MonkeyEcxUtils.persistNullEmptyUndefined(mlp.showProgress)
3306
3634
  ? mlp.showProgress
3307
3635
  : true;
3308
3636
  }
3309
3637
  }
3310
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3311
- MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
3312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
3638
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
3639
+ MonkeyEcxHttpConfigLoadingInProgressInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor });
3640
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigLoadingInProgressInterceptor, decorators: [{
3313
3641
  type: Injectable
3314
3642
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
3315
3643
 
@@ -3342,10 +3670,10 @@ class MonkeyEcxHttpConfigInterceptorModule {
3342
3670
  };
3343
3671
  }
3344
3672
  }
3345
- MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3346
- MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
3347
- MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
3348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
3673
+ MonkeyEcxHttpConfigInterceptorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3674
+ MonkeyEcxHttpConfigInterceptorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [CommonModule] });
3675
+ MonkeyEcxHttpConfigInterceptorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, imports: [[CommonModule]] });
3676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxHttpConfigInterceptorModule, decorators: [{
3349
3677
  type: NgModule,
3350
3678
  args: [{
3351
3679
  imports: [CommonModule]
@@ -3376,72 +3704,18 @@ class MonkeyEcxConfigModule {
3376
3704
  };
3377
3705
  }
3378
3706
  }
3379
- MonkeyEcxConfigModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigModule, deps: [{ token: MonkeyEcxConfigModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
3380
- MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigModule });
3381
- MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigModule });
3382
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
3707
+ 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 });
3708
+ MonkeyEcxConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3709
+ MonkeyEcxConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule });
3710
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigModule, decorators: [{
3383
3711
  type: NgModule
3384
- }], ctorParameters: function () { return [{ type: MonkeyEcxConfigModule, decorators: [{
3385
- type: Optional
3386
- }, {
3387
- type: SkipSelf
3388
- }] }]; } });
3389
-
3390
- class MonkeyEcxFeatureToggleService {
3391
- constructor(monkeyConfigService) {
3392
- this.monkeyConfigService = monkeyConfigService;
3393
- this.flagSubject$ = new BehaviorSubject(null);
3394
- // not to do
3395
- }
3396
- getAllFlags() {
3397
- this.flags = this.ldClient.allFlags();
3398
- this.flagSubject$.next(true);
3399
- }
3400
- identify(config, environment) {
3401
- var _a;
3402
- if (config) {
3403
- const email = 'monkey@monkey.exchange';
3404
- const user = {
3405
- email,
3406
- key: `${(_a = config.program) === null || _a === void 0 ? void 0 : _a.token}#${email}`
3407
- };
3408
- if (!this.ldClient) {
3409
- this.ldClient = initialize(environment.launchDarklyClientSideID, user);
3410
- this.ldClient.on('change', this.getAllFlags.bind(this));
3411
- this.ldClient.on('ready', this.getAllFlags.bind(this));
3412
- }
3413
- else {
3414
- this.ldClient.identify(user, null, this.getAllFlags);
3415
- }
3416
- }
3417
- }
3418
- apply(configBoostrap, environment) {
3419
- if (environment.launchDarklyClientSideID) {
3420
- this.monkeyConfigService.config().subscribe((config) => {
3421
- this.identify(config, environment);
3422
- });
3423
- }
3424
- else {
3425
- this.flagSubject$.next(true);
3426
- }
3427
- }
3428
- get onFlags() {
3429
- return this.flagSubject$.asObservable();
3430
- }
3431
- getFlag(flag) {
3432
- var _a;
3433
- const flagValue = (_a = this.flags) === null || _a === void 0 ? void 0 : _a[flag];
3434
- return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
3435
- }
3436
- }
3437
- MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [{ token: MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
3438
- MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
3439
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
3440
- type: Injectable,
3441
- args: [{
3442
- providedIn: 'root'
3443
- }]
3444
- }], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }]; } });
3712
+ }], ctorParameters: function () {
3713
+ return [{ type: MonkeyEcxConfigModule, decorators: [{
3714
+ type: Optional
3715
+ }, {
3716
+ type: SkipSelf
3717
+ }] }];
3718
+ } });
3445
3719
 
3446
3720
  class MonkeyEcxLoggedHandlingService {
3447
3721
  constructor() {
@@ -3461,9 +3735,9 @@ class MonkeyEcxLoggedHandlingService {
3461
3735
  this.destroySchedule();
3462
3736
  }
3463
3737
  }
3464
- MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3465
- MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
3466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
3738
+ MonkeyEcxLoggedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3739
+ MonkeyEcxLoggedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, providedIn: 'root' });
3740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLoggedHandlingService, decorators: [{
3467
3741
  type: Injectable,
3468
3742
  args: [{
3469
3743
  providedIn: 'root'
@@ -3507,7 +3781,7 @@ class MonkeyEcxRequestDownloadHandlingService {
3507
3781
  this.download = [
3508
3782
  ...saved.map((val) => {
3509
3783
  const valSaved = Object.assign({}, val);
3510
- const currentPecentage = Math.floor((loaded / total) * 100);
3784
+ const currentPecentage = Math.floor(((loaded || 0) / (total || 0)) * 100);
3511
3785
  const totalPercentage = 100;
3512
3786
  if (valSaved.item.id === q.item.id) {
3513
3787
  return Object.assign(Object.assign({}, valSaved), { loaded,
@@ -3537,9 +3811,9 @@ class MonkeyEcxRequestDownloadHandlingService {
3537
3811
  return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3538
3812
  }
3539
3813
  }
3540
- MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3541
- MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
3542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
3814
+ MonkeyEcxRequestDownloadHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3815
+ MonkeyEcxRequestDownloadHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, providedIn: 'root' });
3816
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadHandlingService, decorators: [{
3543
3817
  type: Injectable,
3544
3818
  args: [{
3545
3819
  providedIn: 'root'
@@ -3587,9 +3861,9 @@ class MonkeyEcxRequestDownloadedHandlingService {
3587
3861
  return MonkeyEcxUtils.persistNullEmptyUndefined(found);
3588
3862
  }
3589
3863
  }
3590
- MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3591
- MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
3592
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
3864
+ MonkeyEcxRequestDownloadedHandlingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3865
+ MonkeyEcxRequestDownloadedHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, providedIn: 'root' });
3866
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestDownloadedHandlingService, decorators: [{
3593
3867
  type: Injectable,
3594
3868
  args: [{
3595
3869
  providedIn: 'root'
@@ -3622,24 +3896,25 @@ class MonkeyEcxDiscoveryParamsService {
3622
3896
  const navigation = this.router.getCurrentNavigation();
3623
3897
  let state = null;
3624
3898
  if (MonkeyEcxUtils.persistNullEmptyUndefined(navigation)) {
3625
- state = navigation.extras.state;
3899
+ state = navigation === null || navigation === void 0 ? void 0 : navigation.extras.state;
3626
3900
  }
3627
3901
  return state ? state[field] : null;
3628
3902
  }
3629
3903
  getParam(param) {
3904
+ var _a;
3630
3905
  const { root } = this.router.routerState.snapshot;
3631
3906
  const route = this.getLastChild(root);
3632
3907
  let found = MonkeyEcxUtils.persistNullEmptyUndefined(route)
3633
- ? route.paramMap.get(param)
3908
+ ? ((_a = route === null || route === void 0 ? void 0 : route.paramMap) === null || _a === void 0 ? void 0 : _a.get(param)) || ''
3634
3909
  : '';
3635
3910
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(found))
3636
3911
  found = this.getData(param);
3637
3912
  return found;
3638
3913
  }
3639
3914
  }
3640
- MonkeyEcxDiscoveryParamsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
3641
- MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
3642
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
3915
+ 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 });
3916
+ MonkeyEcxDiscoveryParamsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, providedIn: 'root' });
3917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxDiscoveryParamsService, decorators: [{
3643
3918
  type: Injectable,
3644
3919
  args: [{
3645
3920
  providedIn: 'root'
@@ -3691,8 +3966,23 @@ class MonkeyEcxRequestScheduleService {
3691
3966
  this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
3692
3967
  }
3693
3968
  doCall(sch) {
3969
+ var _a, _b, _c, _d, _e;
3694
3970
  const { url, method, params, data, action } = sch;
3695
- this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
3971
+ let func = null;
3972
+ const tp = `${method}`.toLowerCase();
3973
+ if (tp === 'get') {
3974
+ func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
3975
+ }
3976
+ else if (tp === 'post') {
3977
+ func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
3978
+ }
3979
+ else if (tp === 'put') {
3980
+ func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
3981
+ }
3982
+ else if (tp === 'delete') {
3983
+ func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
3984
+ }
3985
+ (_e = func === null || func === void 0 ? void 0 : func(`${url}`, params)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
3696
3986
  action(Object.assign(Object.assign({}, data), resp), sch);
3697
3987
  }, () => {
3698
3988
  this.removeFromSchedule(sch);
@@ -3719,8 +4009,8 @@ class MonkeyEcxRequestScheduleService {
3719
4009
  return q;
3720
4010
  }
3721
4011
  }
3722
- MonkeyEcxRequestScheduleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestScheduleService, deps: [{ token: MonkeyEcxService }, { token: MonkeyEcxLoggedHandlingService }], target: i0.ɵɵFactoryTarget.Injectable });
3723
- MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
4012
+ 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 });
4013
+ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, providedIn: 'root' });
3724
4014
  __decorate([
3725
4015
  MonkeyEcxCoreService({
3726
4016
  httpResponse: {
@@ -3731,7 +4021,7 @@ __decorate([
3731
4021
  }
3732
4022
  })
3733
4023
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
3734
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
3735
4025
  type: Injectable,
3736
4026
  args: [{
3737
4027
  providedIn: 'root'
@@ -3763,7 +4053,7 @@ class MonkeyEcxSpecificationSearch {
3763
4053
  return `${key}`.replace(':first', value1[0]).replace(':last', value1[1]);
3764
4054
  }
3765
4055
  }
3766
- return `${key}`.replace(':value', value1.toString());
4056
+ return `${key}`.replace(':value', `${value1}`);
3767
4057
  })[0];
3768
4058
  }
3769
4059
  queryVisitor(value) {
@@ -3814,10 +4104,11 @@ class MonkeyEcxSpecificationSearch {
3814
4104
  }
3815
4105
  buildMoreThanOne(field, op = OpSearch.EQUAL) {
3816
4106
  var _a, _b;
4107
+ let self = this;
3817
4108
  try {
3818
- if (!this[field])
4109
+ if (!self[field])
3819
4110
  return [];
3820
- const filters = (_b = (_a = this[field]) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.map((filter) => {
4111
+ const filters = (_b = (_a = self[field]) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.map((filter) => {
3821
4112
  if (!filter)
3822
4113
  return null;
3823
4114
  return {
@@ -3836,11 +4127,11 @@ class MonkeyEcxSpecificationSearch {
3836
4127
 
3837
4128
  class MonkeyFrontCoreModuleModule {
3838
4129
  }
3839
- MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFrontCoreModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3840
- MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFrontCoreModuleModule, imports: [CommonModule,
4130
+ MonkeyFrontCoreModuleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4131
+ MonkeyFrontCoreModuleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, imports: [CommonModule,
3841
4132
  HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$5.ServiceWorkerModule, ClosedToMaintenanceModule,
3842
4133
  VersionChangedModule] });
3843
- MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFrontCoreModuleModule, providers: [
4134
+ MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, providers: [
3844
4135
  MonkeyStyleGuideModalService,
3845
4136
  MonkeyStyleGuideSettingsService,
3846
4137
  MonkeyStyleGuideSnackbarService
@@ -3856,7 +4147,7 @@ MonkeyFrontCoreModuleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0
3856
4147
  ClosedToMaintenanceModule,
3857
4148
  VersionChangedModule
3858
4149
  ]] });
3859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: MonkeyFrontCoreModuleModule, decorators: [{
4150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModuleModule, decorators: [{
3860
4151
  type: NgModule,
3861
4152
  args: [{
3862
4153
  imports: [
@@ -3887,5 +4178,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
3887
4178
  * Generated bundle index. Do not edit.
3888
4179
  */
3889
4180
 
3890
- 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, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, zipCodeValidator };
3891
- //# sourceMappingURL=monkey-front-core.js.map
4181
+ 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 };
4182
+ //# sourceMappingURL=monkey-front-core.mjs.map