@netgrif/components-core 6.0.1

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 (2010) hide show
  1. package/LICENSE +132 -0
  2. package/README.md +105 -0
  3. package/bundles/netgrif-components-core.umd.js +32298 -0
  4. package/bundles/netgrif-components-core.umd.js.map +1 -0
  5. package/bundles/netgrif-components-core.umd.min.js +17 -0
  6. package/bundles/netgrif-components-core.umd.min.js.map +1 -0
  7. package/commons/angular-cli-devkit-core-strings.d.ts +93 -0
  8. package/commons/import-to-add.d.ts +5 -0
  9. package/commons/schema.d.ts +277 -0
  10. package/commons/view-class-info.d.ts +22 -0
  11. package/esm2015/assets/i18n/de.json +419 -0
  12. package/esm2015/assets/i18n/en.json +419 -0
  13. package/esm2015/assets/i18n/sk.json +419 -0
  14. package/esm2015/commons/angular-cli-devkit-core-strings.js +157 -0
  15. package/esm2015/commons/import-to-add.js +7 -0
  16. package/esm2015/commons/schema.js +7 -0
  17. package/esm2015/commons/view-class-info.js +52 -0
  18. package/esm2015/lib/admin/public-api.js +9 -0
  19. package/esm2015/lib/admin/role-assignment/abstract-role-assignment.js +77 -0
  20. package/esm2015/lib/admin/role-assignment/services/ProcessList.js +155 -0
  21. package/esm2015/lib/admin/role-assignment/services/role-assignment.service.js +40 -0
  22. package/esm2015/lib/admin/user-invite/abstract-user-invite.component.js +77 -0
  23. package/esm2015/lib/admin/user-invite/services/organization-list.service.js +63 -0
  24. package/esm2015/lib/admin/user-invite/services/user-invite.service.js +31 -0
  25. package/esm2015/lib/allowed-nets/public-api.js +4 -0
  26. package/esm2015/lib/allowed-nets/services/allowed-nets.service.js +74 -0
  27. package/esm2015/lib/allowed-nets/services/base-allowed-nets.service.js +54 -0
  28. package/esm2015/lib/allowed-nets/services/factory/allowed-nets-service-factory.js +129 -0
  29. package/esm2015/lib/authentication/anonymous/anonymous.service.js +63 -0
  30. package/esm2015/lib/authentication/authentication.factory.js +16 -0
  31. package/esm2015/lib/authentication/authentication.module.js +32 -0
  32. package/esm2015/lib/authentication/components/abstract-authentication-overlay.js +50 -0
  33. package/esm2015/lib/authentication/models/credentials.js +2 -0
  34. package/esm2015/lib/authentication/models/public-api.js +5 -0
  35. package/esm2015/lib/authentication/models/transformer.js +2 -0
  36. package/esm2015/lib/authentication/models/user.transformer.js +19 -0
  37. package/esm2015/lib/authentication/public-api.js +14 -0
  38. package/esm2015/lib/authentication/services/anonymous-authentication-interceptor.js +44 -0
  39. package/esm2015/lib/authentication/services/authentication/authentication.service.js +71 -0
  40. package/esm2015/lib/authentication/services/authentication-interceptor.js +52 -0
  41. package/esm2015/lib/authentication/services/authentication-method.service.js +5 -0
  42. package/esm2015/lib/authentication/services/guard/authentication-guard.service.js +39 -0
  43. package/esm2015/lib/authentication/services/methods/basic-authentication/basic-authentication.service.js +48 -0
  44. package/esm2015/lib/authentication/services/methods/null-authentication/null-authentication.service.js +19 -0
  45. package/esm2015/lib/authentication/services/public-api.js +7 -0
  46. package/esm2015/lib/authentication/session/null-storage.js +15 -0
  47. package/esm2015/lib/authentication/session/public-api.js +3 -0
  48. package/esm2015/lib/authentication/session/services/session.service.js +156 -0
  49. package/esm2015/lib/authentication/sign-up/models/user-invitation-request.js +2 -0
  50. package/esm2015/lib/authentication/sign-up/models/user-registration-request.js +2 -0
  51. package/esm2015/lib/authentication/sign-up/public-api.js +8 -0
  52. package/esm2015/lib/authentication/sign-up/services/sign-up.service.js +105 -0
  53. package/esm2015/lib/authentication/sign-up/sign-up.module.js +13 -0
  54. package/esm2015/lib/authorization/authority/authority-guard.service.js +50 -0
  55. package/esm2015/lib/authorization/group/group-guard.service.js +67 -0
  56. package/esm2015/lib/authorization/permission/permission.service.js +116 -0
  57. package/esm2015/lib/authorization/public-api.js +10 -0
  58. package/esm2015/lib/authorization/role/role-guard.service.js +105 -0
  59. package/esm2015/lib/changed-fields/public-api.js +2 -0
  60. package/esm2015/lib/changed-fields/services/changed-fields.service.js +32 -0
  61. package/esm2015/lib/configuration/configuration.service.js +190 -0
  62. package/esm2015/lib/configuration/public-api.js +3 -0
  63. package/esm2015/lib/covalent/covalent.module.js +22 -0
  64. package/esm2015/lib/currency/currency.module.js +23 -0
  65. package/esm2015/lib/dashboard/cards/count-card/abstract-count-card.js +39 -0
  66. package/esm2015/lib/dashboard/cards/custom-card/abstract-custom-card.js +47 -0
  67. package/esm2015/lib/dashboard/cards/iframe-card/abstract-iframe-card.js +14 -0
  68. package/esm2015/lib/dashboard/cards/model/card-grid-element.js +2 -0
  69. package/esm2015/lib/dashboard/cards/model/count-card.js +2 -0
  70. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/aggregation-query.js +2 -0
  71. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/aggregation-result.js +2 -0
  72. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/custom-card.js +2 -0
  73. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/dashboard-event-content.js +2 -0
  74. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/dashboard-multi-data.js +7 -0
  75. package/esm2015/lib/dashboard/cards/model/custom-dashboard-model/dashboard-single-data.js +7 -0
  76. package/esm2015/lib/dashboard/cards/model/dashboard-card-types.js +13 -0
  77. package/esm2015/lib/dashboard/cards/model/dashboard-card.js +2 -0
  78. package/esm2015/lib/dashboard/cards/model/graph-card.js +2 -0
  79. package/esm2015/lib/dashboard/cards/model/iframe-card.js +2 -0
  80. package/esm2015/lib/dashboard/dashboard-content/abstract-dashboard-content.js +19 -0
  81. package/esm2015/lib/dashboard/dashboard-content/dashboard-params.js +2 -0
  82. package/esm2015/lib/dashboard/public-api.js +20 -0
  83. package/esm2015/lib/data-fields/boolean-field/abstract-boolean-field.component.js +40 -0
  84. package/esm2015/lib/data-fields/boolean-field/models/boolean-field.js +24 -0
  85. package/esm2015/lib/data-fields/button-field/abstract-button-field.component.js +62 -0
  86. package/esm2015/lib/data-fields/button-field/models/button-field.js +27 -0
  87. package/esm2015/lib/data-fields/data-field-template/abstract-data-field-template.component.js +101 -0
  88. package/esm2015/lib/data-fields/data-field-template/models/wrapped-boolean.js +6 -0
  89. package/esm2015/lib/data-fields/data-fields.module.js +35 -0
  90. package/esm2015/lib/data-fields/date-field/abstract-date-field.component.js +21 -0
  91. package/esm2015/lib/data-fields/date-field/models/custom-date-adapter.js +11 -0
  92. package/esm2015/lib/data-fields/date-field/models/date-field.js +10 -0
  93. package/esm2015/lib/data-fields/date-time-field/abstract-date-time-field.component.js +21 -0
  94. package/esm2015/lib/data-fields/date-time-field/models/date-time-field.js +10 -0
  95. package/esm2015/lib/data-fields/enumeration-field/abstract-enumeration-field.component.js +17 -0
  96. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component.js +43 -0
  97. package/esm2015/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.js +53 -0
  98. package/esm2015/lib/data-fields/enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component.js +37 -0
  99. package/esm2015/lib/data-fields/enumeration-field/enumeration-list-field/abstract-enumeration-list-field.component.js +11 -0
  100. package/esm2015/lib/data-fields/enumeration-field/enumeration-select-field/abstract-enumeration-select-field.component.js +11 -0
  101. package/esm2015/lib/data-fields/enumeration-field/enumeration-stepper-field/abstract-enumeration-stepper-field.component.js +40 -0
  102. package/esm2015/lib/data-fields/enumeration-field/models/dynamic-enumeration-field.js +44 -0
  103. package/esm2015/lib/data-fields/enumeration-field/models/enumeration-field.js +59 -0
  104. package/esm2015/lib/data-fields/file-field/abstract-file-field.component.js +390 -0
  105. package/esm2015/lib/data-fields/file-field/abstract-preview-dialog/preview-dialog-data.js +2 -0
  106. package/esm2015/lib/data-fields/file-field/models/file-field-value.js +2 -0
  107. package/esm2015/lib/data-fields/file-field/models/file-field.js +106 -0
  108. package/esm2015/lib/data-fields/file-list-field/abstract-file-list-field.component.js +261 -0
  109. package/esm2015/lib/data-fields/file-list-field/models/file-list-field-value.js +2 -0
  110. package/esm2015/lib/data-fields/file-list-field/models/file-list-field.js +83 -0
  111. package/esm2015/lib/data-fields/filter-field/abstract-filter-field-content.component.js +29 -0
  112. package/esm2015/lib/data-fields/filter-field/abstract-filter-field.component.js +28 -0
  113. package/esm2015/lib/data-fields/filter-field/models/filter-field-injection-token.js +7 -0
  114. package/esm2015/lib/data-fields/filter-field/models/filter-field.js +15 -0
  115. package/esm2015/lib/data-fields/i18n-field/abstract-i18n-field.component.js +19 -0
  116. package/esm2015/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.js +26 -0
  117. package/esm2015/lib/data-fields/i18n-field/i18n-text-field/abstract-i18n-text-field.component.js +40 -0
  118. package/esm2015/lib/data-fields/i18n-field/models/i18n-field-value.js +2 -0
  119. package/esm2015/lib/data-fields/i18n-field/models/i18n-field.js +10 -0
  120. package/esm2015/lib/data-fields/models/abstract-data-field-component.js +39 -0
  121. package/esm2015/lib/data-fields/models/abstract-data-field.js +391 -0
  122. package/esm2015/lib/data-fields/models/behavior.js +2 -0
  123. package/esm2015/lib/data-fields/models/boolean-label-enabled-token.js +3 -0
  124. package/esm2015/lib/data-fields/models/changed-fields.js +2 -0
  125. package/esm2015/lib/data-fields/models/component.js +2 -0
  126. package/esm2015/lib/data-fields/models/format-filter.js +2 -0
  127. package/esm2015/lib/data-fields/models/icon.js +6 -0
  128. package/esm2015/lib/data-fields/models/invalid-data-policy-token.js +11 -0
  129. package/esm2015/lib/data-fields/models/layout.js +2 -0
  130. package/esm2015/lib/data-fields/models/material-appearance.js +14 -0
  131. package/esm2015/lib/data-fields/models/properties.js +2 -0
  132. package/esm2015/lib/data-fields/models/template-appearance.js +15 -0
  133. package/esm2015/lib/data-fields/models/validation.js +2 -0
  134. package/esm2015/lib/data-fields/multichoice-field/abstract-multichoice-field.component.js +17 -0
  135. package/esm2015/lib/data-fields/multichoice-field/models/multichoice-field.js +41 -0
  136. package/esm2015/lib/data-fields/multichoice-field/multichoice-list-field/abstract-multichoice-list-field.component.js +9 -0
  137. package/esm2015/lib/data-fields/multichoice-field/multichoice-select-field/abstract-multichoice-select-field.component.js +9 -0
  138. package/esm2015/lib/data-fields/number-field/abstract-number-errors.component.js +45 -0
  139. package/esm2015/lib/data-fields/number-field/abstract-number-field.component.js +18 -0
  140. package/esm2015/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.js +48 -0
  141. package/esm2015/lib/data-fields/number-field/models/number-field.js +131 -0
  142. package/esm2015/lib/data-fields/number-field/number-default-field/abstract-default-number-field.component.js +7 -0
  143. package/esm2015/lib/data-fields/public-api.js +73 -0
  144. package/esm2015/lib/data-fields/task-ref-field/model/task-ref-field.js +7 -0
  145. package/esm2015/lib/data-fields/text-field/abstract-text-errors.component.js +35 -0
  146. package/esm2015/lib/data-fields/text-field/abstract-text-field.component.js +15 -0
  147. package/esm2015/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.js +39 -0
  148. package/esm2015/lib/data-fields/text-field/models/text-area-field.js +13 -0
  149. package/esm2015/lib/data-fields/text-field/models/text-field.js +85 -0
  150. package/esm2015/lib/data-fields/text-field/password-text-field/abstract-password-text-field.component.js +17 -0
  151. package/esm2015/lib/data-fields/text-field/rich-textarea-field/abstract-rich-textarea-field.component.js +30 -0
  152. package/esm2015/lib/data-fields/text-field/simple-text-field/abstract-simple-text-field.component.js +17 -0
  153. package/esm2015/lib/data-fields/text-field/textarea-field/abstract-textarea-field.component.js +40 -0
  154. package/esm2015/lib/data-fields/time-instance-abstract-field/abstract-time-instance-field.component.js +45 -0
  155. package/esm2015/lib/data-fields/time-instance-abstract-field/models/abstract-time-instance-field.js +105 -0
  156. package/esm2015/lib/data-fields/user-field/abstract-user-field.component.js +59 -0
  157. package/esm2015/lib/data-fields/user-field/models/user-field.js +14 -0
  158. package/esm2015/lib/data-fields/user-field/models/user-value.js +36 -0
  159. package/esm2015/lib/dialog/components/alert-dialog/alert-dialog.component.js +38 -0
  160. package/esm2015/lib/dialog/components/alert-dialog/alert-dialog.module.js +28 -0
  161. package/esm2015/lib/dialog/components/confirm-dialog/confirm-dialog.component.js +52 -0
  162. package/esm2015/lib/dialog/components/confirm-dialog/confirm-dialog.module.js +28 -0
  163. package/esm2015/lib/dialog/components/prompt-dialog/prompt-dialog.component.js +42 -0
  164. package/esm2015/lib/dialog/components/prompt-dialog/prompt-dialog.module.js +30 -0
  165. package/esm2015/lib/dialog/dialog.module.js +29 -0
  166. package/esm2015/lib/dialog/models/DialogData.js +2 -0
  167. package/esm2015/lib/dialog/models/DialogResult.js +2 -0
  168. package/esm2015/lib/dialog/models/abstract-dialog.js +21 -0
  169. package/esm2015/lib/dialog/public-api.js +9 -0
  170. package/esm2015/lib/dialog/services/dialog.service.js +82 -0
  171. package/esm2015/lib/event/model/event-constants.js +8 -0
  172. package/esm2015/lib/event/model/event-outcomes/case-outcomes/case-event-outcome.js +2 -0
  173. package/esm2015/lib/event/model/event-outcomes/case-outcomes/create-case-event-outcome.js +2 -0
  174. package/esm2015/lib/event/model/event-outcomes/case-outcomes/delete-case-event-outcome.js +2 -0
  175. package/esm2015/lib/event/model/event-outcomes/data-outcomes/get-data-event-outcome.js +2 -0
  176. package/esm2015/lib/event/model/event-outcomes/data-outcomes/get-data-groups-event-outcome.js +2 -0
  177. package/esm2015/lib/event/model/event-outcomes/data-outcomes/get-data-localised-event-outcome.js +2 -0
  178. package/esm2015/lib/event/model/event-outcomes/data-outcomes/set-data-event-outcome.js +2 -0
  179. package/esm2015/lib/event/model/event-outcomes/petrinet-outcomes/petri-net-event-outcome.js +2 -0
  180. package/esm2015/lib/event/model/event-outcomes/task-outcomes/assign-task-event-outcome.js +2 -0
  181. package/esm2015/lib/event/model/event-outcomes/task-outcomes/cancel-task-event-outcome.js +2 -0
  182. package/esm2015/lib/event/model/event-outcomes/task-outcomes/delegate-task-event-outcome.js +2 -0
  183. package/esm2015/lib/event/model/event-outcomes/task-outcomes/finish-task-event-outcome.js +2 -0
  184. package/esm2015/lib/event/model/event-outcomes/task-outcomes/task-event-outcome.js +2 -0
  185. package/esm2015/lib/event/public-api.js +19 -0
  186. package/esm2015/lib/event/services/event.service.js +57 -0
  187. package/esm2015/lib/event/services/interfaces/changed-fields-map.js +2 -0
  188. package/esm2015/lib/event-queue/model/queued-event.js +31 -0
  189. package/esm2015/lib/event-queue/public-api.js +5 -0
  190. package/esm2015/lib/event-queue/services/event-queue.service.js +63 -0
  191. package/esm2015/lib/filter/filter.repository.js +141 -0
  192. package/esm2015/lib/filter/models/case-search-request-body.js +2 -0
  193. package/esm2015/lib/filter/models/filter-type.js +11 -0
  194. package/esm2015/lib/filter/models/filter.js +56 -0
  195. package/esm2015/lib/filter/models/filters-filter-injection-token.js +9 -0
  196. package/esm2015/lib/filter/models/merge-operator.js +11 -0
  197. package/esm2015/lib/filter/models/merged-filter-params.js +2 -0
  198. package/esm2015/lib/filter/models/merged-filter.js +111 -0
  199. package/esm2015/lib/filter/models/simple-filter.js +91 -0
  200. package/esm2015/lib/filter/models/task-search-request-body.js +2 -0
  201. package/esm2015/lib/filter/models/user-filter-constants.js +39 -0
  202. package/esm2015/lib/filter/public-api.js +18 -0
  203. package/esm2015/lib/filter/user-filters.service.js +337 -0
  204. package/esm2015/lib/forms/email-submission/abstract-email-submission-form.component.js +31 -0
  205. package/esm2015/lib/forms/forgotten-password/abstract-forgotten-password.component.js +32 -0
  206. package/esm2015/lib/forms/has-form.js +2 -0
  207. package/esm2015/lib/forms/login/abstract-login-form.component.js +58 -0
  208. package/esm2015/lib/forms/models/abstract-registration.component.js +94 -0
  209. package/esm2015/lib/forms/models/password.validator.js +21 -0
  210. package/esm2015/lib/forms/public-api.js +7 -0
  211. package/esm2015/lib/forms/registration/abstract-registration-form.component.js +37 -0
  212. package/esm2015/lib/groups/public-api.js +3 -0
  213. package/esm2015/lib/groups/services/active-group.service.js +88 -0
  214. package/esm2015/lib/groups/services/next-group.service.js +104 -0
  215. package/esm2015/lib/header/abstract-header-service.js +394 -0
  216. package/esm2015/lib/header/abstract-header.component.js +159 -0
  217. package/esm2015/lib/header/case-header/case-header.service.js +81 -0
  218. package/esm2015/lib/header/case-header/case-menta-enum.js +9 -0
  219. package/esm2015/lib/header/header-modes/abstract-header-mode.component.js +12 -0
  220. package/esm2015/lib/header/header-modes/edit-mode/abstract-edit-mode.component.js +73 -0
  221. package/esm2015/lib/header/header-modes/loading-mode/abstract-loading-mode.component.js +13 -0
  222. package/esm2015/lib/header/header-modes/search-mode/abstract-search-mode.component.js +86 -0
  223. package/esm2015/lib/header/header-modes/sort-mode/abstract-sort-mode.component.js +15 -0
  224. package/esm2015/lib/header/header-state.js +43 -0
  225. package/esm2015/lib/header/models/default-headers-token.js +3 -0
  226. package/esm2015/lib/header/models/fields-group.js +2 -0
  227. package/esm2015/lib/header/models/header-column.js +22 -0
  228. package/esm2015/lib/header/models/header-mode.js +7 -0
  229. package/esm2015/lib/header/models/header-type.js +7 -0
  230. package/esm2015/lib/header/models/public-api.js +12 -0
  231. package/esm2015/lib/header/models/user-changes/column-header-change.js +2 -0
  232. package/esm2015/lib/header/models/user-changes/edit-change-description.js +2 -0
  233. package/esm2015/lib/header/models/user-changes/header-change-description.js +2 -0
  234. package/esm2015/lib/header/models/user-changes/header-change-type.js +20 -0
  235. package/esm2015/lib/header/models/user-changes/header-change.js +2 -0
  236. package/esm2015/lib/header/models/user-changes/mode-change-description.js +2 -0
  237. package/esm2015/lib/header/models/user-changes/search-change-description.js +2 -0
  238. package/esm2015/lib/header/models/user-changes/sort-change-description.js +2 -0
  239. package/esm2015/lib/header/public-api.js +21 -0
  240. package/esm2015/lib/header/services/overflow.service.js +94 -0
  241. package/esm2015/lib/header/task-header/task-header.service.js +66 -0
  242. package/esm2015/lib/header/task-header/task-meta-enum.js +11 -0
  243. package/esm2015/lib/header/workflow-header/workflow-header.service.js +48 -0
  244. package/esm2015/lib/header/workflow-header/workflow-meta-enum.js +10 -0
  245. package/esm2015/lib/legal/legal-notice/abstract-legal-notice.component.js +16 -0
  246. package/esm2015/lib/legal/public-api.js +2 -0
  247. package/esm2015/lib/logger/models/log-entry.js +61 -0
  248. package/esm2015/lib/logger/public-api.js +10 -0
  249. package/esm2015/lib/logger/publishers/console-log-publisher.js +32 -0
  250. package/esm2015/lib/logger/publishers/local-storage-log-publisher.js +40 -0
  251. package/esm2015/lib/logger/publishers/log-publisher.js +12 -0
  252. package/esm2015/lib/logger/services/log-level.js +10 -0
  253. package/esm2015/lib/logger/services/log-publisher.service.js +59 -0
  254. package/esm2015/lib/logger/services/logger.service.js +77 -0
  255. package/esm2015/lib/material/material.module.js +108 -0
  256. package/esm2015/lib/moment/public-api.js +2 -0
  257. package/esm2015/lib/moment/time-formats.js +26 -0
  258. package/esm2015/lib/navigation/group-navigation-component-resolver/abstract-group-navigation-component-resolver.component.js +36 -0
  259. package/esm2015/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.service.js +34 -0
  260. package/esm2015/lib/navigation/group-navigation-component-resolver/group-navigation-view-id-segment-factory.js +5 -0
  261. package/esm2015/lib/navigation/model/filter-case-injection-token.js +6 -0
  262. package/esm2015/lib/navigation/model/group-navigation-component-resolver-component-injection-token.js +6 -0
  263. package/esm2015/lib/navigation/model/group-navigation-constants.js +59 -0
  264. package/esm2015/lib/navigation/model/group-navigation-item-label.js +2 -0
  265. package/esm2015/lib/navigation/navigation-drawer/abstract-navigation-drawer.component.js +131 -0
  266. package/esm2015/lib/navigation/navigation-drawer/abstract-navigation-resizable-drawer.component.js +14 -0
  267. package/esm2015/lib/navigation/navigation-rail/abstract-navigation-rail.component.js +32 -0
  268. package/esm2015/lib/navigation/navigation-tree/abstract-navigation-tree.component.js +371 -0
  269. package/esm2015/lib/navigation/public-api.js +19 -0
  270. package/esm2015/lib/navigation/quick-panel/components/abstract-quick-panel.component.js +25 -0
  271. package/esm2015/lib/navigation/quick-panel/components/internal-link/abstract-internal-link.component.js +12 -0
  272. package/esm2015/lib/navigation/quick-panel/components/language-selector/abstract-language-selector.component.js +52 -0
  273. package/esm2015/lib/navigation/quick-panel/components/logout-shortcut/abstract-logout-shortcut.component.js +21 -0
  274. package/esm2015/lib/navigation/quick-panel/components/paper-view.service.js +38 -0
  275. package/esm2015/lib/navigation/quick-panel/public-api.js +8 -0
  276. package/esm2015/lib/navigation/utility/filter-extraction.service.js +87 -0
  277. package/esm2015/lib/navigation/utility/navigation-item-task-utility-methods.js +78 -0
  278. package/esm2015/lib/panel/abstract/featured-value.js +2 -0
  279. package/esm2015/lib/panel/abstract/panel-with-header-binding.js +47 -0
  280. package/esm2015/lib/panel/abstract/panel-with-immediate-data.js +62 -0
  281. package/esm2015/lib/panel/abstract/tabbed-virtual-scroll.component.js +28 -0
  282. package/esm2015/lib/panel/abstract-panel.component.js +44 -0
  283. package/esm2015/lib/panel/case-panel/abstract-case-panel.component.js +88 -0
  284. package/esm2015/lib/panel/immediate/abstract-immediate-filter-text-content.component.js +38 -0
  285. package/esm2015/lib/panel/immediate/abstract-immediate-filter-text.component.js +21 -0
  286. package/esm2015/lib/panel/immediate/model/filter-text-injection-token.js +6 -0
  287. package/esm2015/lib/panel/public-api.js +15 -0
  288. package/esm2015/lib/panel/task-panel/abstract-task-panel.component.js +281 -0
  289. package/esm2015/lib/panel/task-panel/models/disable-functions.js +3 -0
  290. package/esm2015/lib/panel/task-panel-list/abstract-task-list.component.js +89 -0
  291. package/esm2015/lib/panel/task-panel-list/task-panel-data/task-panel-data.js +2 -0
  292. package/esm2015/lib/panel/workflow-panel/abstract-workflow-panel.component.js +103 -0
  293. package/esm2015/lib/process/net.js +101 -0
  294. package/esm2015/lib/process/netRole.js +2 -0
  295. package/esm2015/lib/process/permissions.js +12 -0
  296. package/esm2015/lib/process/petri-net-reference-with-permissions.js +2 -0
  297. package/esm2015/lib/process/process.service.js +301 -0
  298. package/esm2015/lib/process/public-api.js +8 -0
  299. package/esm2015/lib/process/public-process.service.js +29 -0
  300. package/esm2015/lib/process/rolesAndPermissions.js +2 -0
  301. package/esm2015/lib/process/transaction.js +2 -0
  302. package/esm2015/lib/process/transition.js +2 -0
  303. package/esm2015/lib/public/factories/get-net-and-create-case.js +22 -0
  304. package/esm2015/lib/public/factories/public-factory-resolver.js +13 -0
  305. package/esm2015/lib/public/factories/public-search-factory.js +17 -0
  306. package/esm2015/lib/public/public-api.js +5 -0
  307. package/esm2015/lib/public/services/public-url-resolver.service.js +20 -0
  308. package/esm2015/lib/resources/abstract-endpoint/abstract-resource.service.js +79 -0
  309. package/esm2015/lib/resources/abstract-endpoint/count-service.js +2 -0
  310. package/esm2015/lib/resources/engine-endpoint/case-resource.service.js +133 -0
  311. package/esm2015/lib/resources/engine-endpoint/dashboard-resource.service.js +33 -0
  312. package/esm2015/lib/resources/engine-endpoint/petri-net-resource.service.js +161 -0
  313. package/esm2015/lib/resources/engine-endpoint/public/public-case-resource.service.js +46 -0
  314. package/esm2015/lib/resources/engine-endpoint/public/public-petri-net-resource.service.js +108 -0
  315. package/esm2015/lib/resources/engine-endpoint/public/public-task-resource.service.js +224 -0
  316. package/esm2015/lib/resources/engine-endpoint/task-resource.service.js +306 -0
  317. package/esm2015/lib/resources/engine-endpoint/user-resource.service.js +191 -0
  318. package/esm2015/lib/resources/interface/assigned-user-policy.js +2 -0
  319. package/esm2015/lib/resources/interface/author.js +2 -0
  320. package/esm2015/lib/resources/interface/authority.js +2 -0
  321. package/esm2015/lib/resources/interface/case-get-request-body.js +2 -0
  322. package/esm2015/lib/resources/interface/case.js +2 -0
  323. package/esm2015/lib/resources/interface/changed-field-container.js +2 -0
  324. package/esm2015/lib/resources/interface/count.js +2 -0
  325. package/esm2015/lib/resources/interface/create-case-request-body.js +2 -0
  326. package/esm2015/lib/resources/interface/data-group-layout.js +59 -0
  327. package/esm2015/lib/resources/interface/data-groups.js +19 -0
  328. package/esm2015/lib/resources/interface/event-outcome.js +2 -0
  329. package/esm2015/lib/resources/interface/field-alignment.js +10 -0
  330. package/esm2015/lib/resources/interface/fields.js +2 -0
  331. package/esm2015/lib/resources/interface/file-resource.js +2 -0
  332. package/esm2015/lib/resources/interface/group.js +2 -0
  333. package/esm2015/lib/resources/interface/immediate-data.js +2 -0
  334. package/esm2015/lib/resources/interface/link.js +2 -0
  335. package/esm2015/lib/resources/interface/message-resource.js +2 -0
  336. package/esm2015/lib/resources/interface/page.js +2 -0
  337. package/esm2015/lib/resources/interface/pagination.js +2 -0
  338. package/esm2015/lib/resources/interface/petri-net-object-id.js +2 -0
  339. package/esm2015/lib/resources/interface/petri-net-reference.js +2 -0
  340. package/esm2015/lib/resources/interface/petri-net-request-body.js +2 -0
  341. package/esm2015/lib/resources/interface/petri-net.js +2 -0
  342. package/esm2015/lib/resources/interface/preferences.js +2 -0
  343. package/esm2015/lib/resources/interface/process-role.js +2 -0
  344. package/esm2015/lib/resources/interface/response-data.js +2 -0
  345. package/esm2015/lib/resources/interface/task-layout.js +2 -0
  346. package/esm2015/lib/resources/interface/task-reference.js +2 -0
  347. package/esm2015/lib/resources/interface/task-set-data-request-body.js +2 -0
  348. package/esm2015/lib/resources/interface/task.js +2 -0
  349. package/esm2015/lib/resources/interface/user-process-role.js +2 -0
  350. package/esm2015/lib/resources/interface/user-resource-small.js +2 -0
  351. package/esm2015/lib/resources/interface/user-resource.js +2 -0
  352. package/esm2015/lib/resources/public-api.js +46 -0
  353. package/esm2015/lib/resources/resource-provider.service.js +168 -0
  354. package/esm2015/lib/resources/types/nae-date-type.js +5 -0
  355. package/esm2015/lib/routing/dynamic-navigation-route-provider/dynamic-navigation-route-provider.service.js +36 -0
  356. package/esm2015/lib/routing/public-api.js +7 -0
  357. package/esm2015/lib/routing/redirect-service/redirect.service.js +103 -0
  358. package/esm2015/lib/routing/routing-builder/routing-builder.service.js +190 -0
  359. package/esm2015/lib/routing/view-service/model/view-entry.js +2 -0
  360. package/esm2015/lib/routing/view-service/view.service.js +35 -0
  361. package/esm2015/lib/search/advanced-search-component/abstract-advanced-search.component.js +49 -0
  362. package/esm2015/lib/search/advanced-search-component-initialization-service/advanced-search-component-initialization.service.js +34 -0
  363. package/esm2015/lib/search/category-factory/category-factory.js +94 -0
  364. package/esm2015/lib/search/category-factory/category-resolver.service.js +149 -0
  365. package/esm2015/lib/search/category-factory/category-serialisation-pair.js +2 -0
  366. package/esm2015/lib/search/category-factory/default-categories-factories.js +67 -0
  367. package/esm2015/lib/search/category-factory/default-search-categories.module.js +50 -0
  368. package/esm2015/lib/search/category-factory/optional-dependencies.js +2 -0
  369. package/esm2015/lib/search/category-factory/search-categories-injection-token.js +24 -0
  370. package/esm2015/lib/search/fulltext-search-component/abstract-fulltext-search.component.js +17 -0
  371. package/esm2015/lib/search/header-search-service/header-search.service.js +226 -0
  372. package/esm2015/lib/search/models/base-filter-injection-token.js +6 -0
  373. package/esm2015/lib/search/models/base-filter.js +2 -0
  374. package/esm2015/lib/search/models/boolean-operator.js +10 -0
  375. package/esm2015/lib/search/models/category/autocomplete-category.js +129 -0
  376. package/esm2015/lib/search/models/category/autocomplete-options.js +2 -0
  377. package/esm2015/lib/search/models/category/case/case-author.js +21 -0
  378. package/esm2015/lib/search/models/category/case/case-creation-date-time.js +43 -0
  379. package/esm2015/lib/search/models/category/case/case-creation-date.js +43 -0
  380. package/esm2015/lib/search/models/category/case/case-dataset.js +397 -0
  381. package/esm2015/lib/search/models/category/case/case-net-attribute-autocomplete-category.js +23 -0
  382. package/esm2015/lib/search/models/category/case/case-process.js +73 -0
  383. package/esm2015/lib/search/models/category/case/case-role.js +24 -0
  384. package/esm2015/lib/search/models/category/case/case-search.enum.js +15 -0
  385. package/esm2015/lib/search/models/category/case/case-simple-dataset.js +135 -0
  386. package/esm2015/lib/search/models/category/case/case-string-id.js +27 -0
  387. package/esm2015/lib/search/models/category/case/case-task.js +24 -0
  388. package/esm2015/lib/search/models/category/case/case-title.js +29 -0
  389. package/esm2015/lib/search/models/category/case/case-visual-id.js +23 -0
  390. package/esm2015/lib/search/models/category/categories.js +24 -0
  391. package/esm2015/lib/search/models/category/category.js +524 -0
  392. package/esm2015/lib/search/models/category/name-id-pair.js +2 -0
  393. package/esm2015/lib/search/models/category/net-attribute-autocomplete-category.js +59 -0
  394. package/esm2015/lib/search/models/category/net-attribute-pair.js +2 -0
  395. package/esm2015/lib/search/models/category/no-configuration-autocomplete-category.js +36 -0
  396. package/esm2015/lib/search/models/category/no-configuration-category.js +39 -0
  397. package/esm2015/lib/search/models/category/no-configuration-user-autocomplete-category.js +28 -0
  398. package/esm2015/lib/search/models/category/search-autocomplete-option.js +2 -0
  399. package/esm2015/lib/search/models/category/search-input-type.js +14 -0
  400. package/esm2015/lib/search/models/category/task/task-assignee.js +21 -0
  401. package/esm2015/lib/search/models/category/task/task-net-attribute-autocomplete-category.js +23 -0
  402. package/esm2015/lib/search/models/category/task/task-process.js +50 -0
  403. package/esm2015/lib/search/models/category/task/task-role.js +23 -0
  404. package/esm2015/lib/search/models/category/task/task-task.js +23 -0
  405. package/esm2015/lib/search/models/category/user-autocomplete.js +59 -0
  406. package/esm2015/lib/search/models/component-configuration/search-component-configuration-injection-token.js +8 -0
  407. package/esm2015/lib/search/models/component-configuration/search-component-configuration.js +2 -0
  408. package/esm2015/lib/search/models/component-configuration/search-mode.js +9 -0
  409. package/esm2015/lib/search/models/configuration-input.js +52 -0
  410. package/esm2015/lib/search/models/datafield-map-key.js +69 -0
  411. package/esm2015/lib/search/models/escape-result.js +2 -0
  412. package/esm2015/lib/search/models/operator/equals-date-time.js +26 -0
  413. package/esm2015/lib/search/models/operator/equals-date.js +26 -0
  414. package/esm2015/lib/search/models/operator/equals.js +21 -0
  415. package/esm2015/lib/search/models/operator/in-range-date-time.js +43 -0
  416. package/esm2015/lib/search/models/operator/in-range-date.js +42 -0
  417. package/esm2015/lib/search/models/operator/in-range.js +22 -0
  418. package/esm2015/lib/search/models/operator/is-null.js +69 -0
  419. package/esm2015/lib/search/models/operator/less-than-date-time.js +27 -0
  420. package/esm2015/lib/search/models/operator/less-than-date.js +27 -0
  421. package/esm2015/lib/search/models/operator/less-than-equal-date-time.js +27 -0
  422. package/esm2015/lib/search/models/operator/less-than-equal-date.js +26 -0
  423. package/esm2015/lib/search/models/operator/less-than-equal.js +17 -0
  424. package/esm2015/lib/search/models/operator/less-than.js +17 -0
  425. package/esm2015/lib/search/models/operator/like.js +29 -0
  426. package/esm2015/lib/search/models/operator/more-than-date-time.js +29 -0
  427. package/esm2015/lib/search/models/operator/more-than-date.js +29 -0
  428. package/esm2015/lib/search/models/operator/more-than-equal-date-time.js +27 -0
  429. package/esm2015/lib/search/models/operator/more-than-equal-date.js +27 -0
  430. package/esm2015/lib/search/models/operator/more-than-equal.js +17 -0
  431. package/esm2015/lib/search/models/operator/more-than.js +17 -0
  432. package/esm2015/lib/search/models/operator/not-equals-date-time.js +24 -0
  433. package/esm2015/lib/search/models/operator/not-equals-date.js +27 -0
  434. package/esm2015/lib/search/models/operator/not-equals.js +30 -0
  435. package/esm2015/lib/search/models/operator/operator.js +124 -0
  436. package/esm2015/lib/search/models/operator/operators.js +31 -0
  437. package/esm2015/lib/search/models/operator/substring.js +27 -0
  438. package/esm2015/lib/search/models/operator-template-part-type.js +15 -0
  439. package/esm2015/lib/search/models/operator-template-part.js +31 -0
  440. package/esm2015/lib/search/models/persistance/filter-metadata-allowed-nets.js +2 -0
  441. package/esm2015/lib/search/models/persistance/filter-metadata.js +2 -0
  442. package/esm2015/lib/search/models/persistance/filter-text-segment.js +2 -0
  443. package/esm2015/lib/search/models/persistance/generator-metadata.js +2 -0
  444. package/esm2015/lib/search/models/persistance/saved-filter-metadata.js +2 -0
  445. package/esm2015/lib/search/models/predicate/clause-predicate.js +78 -0
  446. package/esm2015/lib/search/models/predicate/editable-clause-predicate-with-generators.js +47 -0
  447. package/esm2015/lib/search/models/predicate/editable-clause-predicate.js +116 -0
  448. package/esm2015/lib/search/models/predicate/editable-elementary-predicate.js +20 -0
  449. package/esm2015/lib/search/models/predicate/editable-predicate-with-generator.js +37 -0
  450. package/esm2015/lib/search/models/predicate/editable-predicate.js +22 -0
  451. package/esm2015/lib/search/models/predicate/elementary-predicate.js +14 -0
  452. package/esm2015/lib/search/models/predicate/predicate-with-generator.js +95 -0
  453. package/esm2015/lib/search/models/predicate/predicate.js +90 -0
  454. package/esm2015/lib/search/models/predicate-removal-event.js +2 -0
  455. package/esm2015/lib/search/models/query/query.js +72 -0
  456. package/esm2015/lib/search/models/search-index.js +76 -0
  457. package/esm2015/lib/search/models/wrap-result.js +2 -0
  458. package/esm2015/lib/search/operator-service/operator-resolver.service.js +109 -0
  459. package/esm2015/lib/search/operator-service/operator.service.js +39 -0
  460. package/esm2015/lib/search/public-api.js +107 -0
  461. package/esm2015/lib/search/search-clause-component/abstract-search-clause.component.js +52 -0
  462. package/esm2015/lib/search/search-component/abstract-search.component.js +171 -0
  463. package/esm2015/lib/search/search-configuration-input-component/abstract-search-configuration-input.component.js +75 -0
  464. package/esm2015/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +36 -0
  465. package/esm2015/lib/search/search-operand-input-component/abstract-search-operand-input.component.js +97 -0
  466. package/esm2015/lib/search/search-predicate-component/abstract-search-predicate.component.js +144 -0
  467. package/esm2015/lib/search/search-service/search.service.js +306 -0
  468. package/esm2015/lib/side-menu/content-components/filter-selector/abstract-filter-selector.component.js +163 -0
  469. package/esm2015/lib/side-menu/content-components/filter-selector/filter-selector-list-item/abstract-filter-selector-list-item.component.js +22 -0
  470. package/esm2015/lib/side-menu/content-components/filter-selector/model/filter-selector-injection-data.js +2 -0
  471. package/esm2015/lib/side-menu/content-components/filter-selector/model/filtered-array.js +32 -0
  472. package/esm2015/lib/side-menu/content-components/import-net/abstract-import-net.component.js +123 -0
  473. package/esm2015/lib/side-menu/content-components/injection-tokens.js +8 -0
  474. package/esm2015/lib/side-menu/content-components/load-filter/abstract-load-filter.component.js +42 -0
  475. package/esm2015/lib/side-menu/content-components/load-filter/model/load-filter-injection-data.js +2 -0
  476. package/esm2015/lib/side-menu/content-components/new-case/abstract-new-case.component.js +230 -0
  477. package/esm2015/lib/side-menu/content-components/new-case/model/new-case-injection-data.js +2 -0
  478. package/esm2015/lib/side-menu/content-components/option-selector/abstract-option-selector.component.js +28 -0
  479. package/esm2015/lib/side-menu/content-components/option-selector/model/option-selector-injection-data.js +2 -0
  480. package/esm2015/lib/side-menu/content-components/public-api.js +20 -0
  481. package/esm2015/lib/side-menu/content-components/save-filter/abstract-save-filter.component.js +38 -0
  482. package/esm2015/lib/side-menu/content-components/save-filter/model/save-filter-injection-data.js +2 -0
  483. package/esm2015/lib/side-menu/content-components/user-assign/abstract-user-assign.component.js +60 -0
  484. package/esm2015/lib/side-menu/content-components/user-assign/model/user-list-injected-data.js +2 -0
  485. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/abstract-user-assign-list.component.js +102 -0
  486. package/esm2015/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/abstract-user-assign-item.component.js +13 -0
  487. package/esm2015/lib/side-menu/models/portal-wrapper.js +13 -0
  488. package/esm2015/lib/side-menu/models/side-menu-control.js +36 -0
  489. package/esm2015/lib/side-menu/models/side-menu-event.js +2 -0
  490. package/esm2015/lib/side-menu/models/side-menu-injection-data.js +2 -0
  491. package/esm2015/lib/side-menu/models/side-menu-ref.js +16 -0
  492. package/esm2015/lib/side-menu/models/side-menu-size.js +7 -0
  493. package/esm2015/lib/side-menu/net-version-visible-injection-token.js +4 -0
  494. package/esm2015/lib/side-menu/public-api.js +15 -0
  495. package/esm2015/lib/side-menu/services/side-menu.service.js +86 -0
  496. package/esm2015/lib/side-menu/side-menu-container/abstract-side-menu-container.component.js +34 -0
  497. package/esm2015/lib/side-menu/side-menu-injection-token.js +3 -0
  498. package/esm2015/lib/snack-bar/components/error-snack-bar/error-snack-bar.component.js +26 -0
  499. package/esm2015/lib/snack-bar/components/generic-snack-bar/generic-snack-bar.component.js +26 -0
  500. package/esm2015/lib/snack-bar/components/success-snack-bar/success-snack-bar.component.js +26 -0
  501. package/esm2015/lib/snack-bar/components/warning-snack-bar/warning-snack-bar.component.js +26 -0
  502. package/esm2015/lib/snack-bar/models/abstract-snack-bar.js +18 -0
  503. package/esm2015/lib/snack-bar/models/injection-token-snackbar.js +4 -0
  504. package/esm2015/lib/snack-bar/models/snack-bar-enums.js +12 -0
  505. package/esm2015/lib/snack-bar/models/snack-bar-injection-data.js +2 -0
  506. package/esm2015/lib/snack-bar/public-api.js +15 -0
  507. package/esm2015/lib/snack-bar/services/snack-bar.service.js +92 -0
  508. package/esm2015/lib/snack-bar/snack-bar.module.js +33 -0
  509. package/esm2015/lib/tabs/classes/opened-tab.js +48 -0
  510. package/esm2015/lib/tabs/classes/tab-view.js +262 -0
  511. package/esm2015/lib/tabs/interfaces.js +2 -0
  512. package/esm2015/lib/tabs/public-api.js +6 -0
  513. package/esm2015/lib/tabs/tab-creation-detector/abstract-tab-creation-detector.component.js +17 -0
  514. package/esm2015/lib/tabs/tab-data-injection-token/tab-data-injection-token.js +8 -0
  515. package/esm2015/lib/tabs/tab-view/abstract-tab-view.component.js +67 -0
  516. package/esm2015/lib/task/interfaces/task-operations.js +2 -0
  517. package/esm2015/lib/task/models/null-task-operations.js +26 -0
  518. package/esm2015/lib/task/models/subject-task-operations.js +58 -0
  519. package/esm2015/lib/task/models/task-operations-injection-token.js +3 -0
  520. package/esm2015/lib/task/models/task-set-data-request-context.js +2 -0
  521. package/esm2015/lib/task/public-api.js +19 -0
  522. package/esm2015/lib/task/services/assign-policy.service.js +175 -0
  523. package/esm2015/lib/task/services/assign-task.service.js +191 -0
  524. package/esm2015/lib/task/services/cancel-task.service.js +189 -0
  525. package/esm2015/lib/task/services/data-focus-policy.service.js +36 -0
  526. package/esm2015/lib/task/services/delegate-task.service.js +185 -0
  527. package/esm2015/lib/task/services/finish-policy.service.js +79 -0
  528. package/esm2015/lib/task/services/finish-task.service.js +207 -0
  529. package/esm2015/lib/task/services/selected-case.service.js +38 -0
  530. package/esm2015/lib/task/services/task-data.service.js +538 -0
  531. package/esm2015/lib/task/services/task-handling-service.js +57 -0
  532. package/esm2015/lib/task/services/task-request-state.service.js +113 -0
  533. package/esm2015/lib/task-content/field-component-resolver/abstract-field-component-resolver.component.js +39 -0
  534. package/esm2015/lib/task-content/model/async-rendering-configuration-injection-token.js +8 -0
  535. package/esm2015/lib/task-content/model/async-rendering-configuration.js +2 -0
  536. package/esm2015/lib/task-content/model/datafield-grid-layout-element.js +2 -0
  537. package/esm2015/lib/task-content/model/field-type-resource.js +23 -0
  538. package/esm2015/lib/task-content/model/policy.js +31 -0
  539. package/esm2015/lib/task-content/model/resource-interface.js +2 -0
  540. package/esm2015/lib/task-content/model/split-data-group.js +2 -0
  541. package/esm2015/lib/task-content/model/subgrid.js +235 -0
  542. package/esm2015/lib/task-content/model/task-content-element-type.js +19 -0
  543. package/esm2015/lib/task-content/model/task-event-notification.js +15 -0
  544. package/esm2015/lib/task-content/model/task-event.js +10 -0
  545. package/esm2015/lib/task-content/public-api.js +21 -0
  546. package/esm2015/lib/task-content/services/field-converter.service.js +348 -0
  547. package/esm2015/lib/task-content/services/single-task-content.service.js +72 -0
  548. package/esm2015/lib/task-content/services/task-content.service.js +266 -0
  549. package/esm2015/lib/task-content/services/task-event.service.js +45 -0
  550. package/esm2015/lib/task-content/services/unlimited-task-content.service.js +64 -0
  551. package/esm2015/lib/task-content/task-content/abstract-task-content.component.js +656 -0
  552. package/esm2015/lib/toolbar/abstract-toolbar.component.js +22 -0
  553. package/esm2015/lib/toolbar/public-api.js +2 -0
  554. package/esm2015/lib/translate/language.service.js +85 -0
  555. package/esm2015/lib/translate/public-api.js +3 -0
  556. package/esm2015/lib/translate/translate-interceptor.js +23 -0
  557. package/esm2015/lib/translate/translate-lib.module.js +38 -0
  558. package/esm2015/lib/user/components/user-card/abstract-user-card.component.js +44 -0
  559. package/esm2015/lib/user/models/iuser.js +2 -0
  560. package/esm2015/lib/user/models/public-api.js +6 -0
  561. package/esm2015/lib/user/models/user.js +37 -0
  562. package/esm2015/lib/user/models/view-id-injection-tokens.js +4 -0
  563. package/esm2015/lib/user/profile/abstract-profile.component.js +29 -0
  564. package/esm2015/lib/user/public-api.js +12 -0
  565. package/esm2015/lib/user/services/user-comparator.service.js +26 -0
  566. package/esm2015/lib/user/services/user-list.service.js +186 -0
  567. package/esm2015/lib/user/services/user-preference.service.js +152 -0
  568. package/esm2015/lib/user/services/user.service.js +203 -0
  569. package/esm2015/lib/user/services/view-id.service.js +30 -0
  570. package/esm2015/lib/utility/array-to-observable.js +10 -0
  571. package/esm2015/lib/utility/call-chain/after-action.js +12 -0
  572. package/esm2015/lib/utility/call-chain/call-chain.service.js +34 -0
  573. package/esm2015/lib/utility/clear-time-information.js +11 -0
  574. package/esm2015/lib/utility/destroy-subscription.js +10 -0
  575. package/esm2015/lib/utility/get-field.js +48 -0
  576. package/esm2015/lib/utility/get-immediate-data.js +9 -0
  577. package/esm2015/lib/utility/grid-layout/grid-layout-helper.js +76 -0
  578. package/esm2015/lib/utility/grid-layout/model/grid-element-with-item.js +2 -0
  579. package/esm2015/lib/utility/grid-layout/model/grid-element.js +2 -0
  580. package/esm2015/lib/utility/grid-layout/model/grid-filler.js +50 -0
  581. package/esm2015/lib/utility/incrementing-counter.js +21 -0
  582. package/esm2015/lib/utility/loading-emitter.js +19 -0
  583. package/esm2015/lib/utility/loading-with-filter-emitter.js +30 -0
  584. package/esm2015/lib/utility/navigation-item-task-filter-factory.js +11 -0
  585. package/esm2015/lib/utility/navigation-item-task-search-categories-factory.js +35 -0
  586. package/esm2015/lib/utility/of-void.js +12 -0
  587. package/esm2015/lib/utility/pagination/load-all-pages.js +46 -0
  588. package/esm2015/lib/utility/pagination/page-has-content.js +8 -0
  589. package/esm2015/lib/utility/process-message-response.js +17 -0
  590. package/esm2015/lib/utility/public-api.js +47 -0
  591. package/esm2015/lib/utility/refresh-tree.js +9 -0
  592. package/esm2015/lib/utility/result-with-after-actions.js +27 -0
  593. package/esm2015/lib/utility/service/case-list-font-color.service.js +45 -0
  594. package/esm2015/lib/utility/service/spinner-overlay.service.js +48 -0
  595. package/esm2015/lib/utility/stop-propagation.js +5 -0
  596. package/esm2015/lib/utility/tests/mocks/mock-authentication-method-service.js +12 -0
  597. package/esm2015/lib/utility/tests/mocks/mock-authentication.service.js +18 -0
  598. package/esm2015/lib/utility/tests/mocks/mock-endpoint.js +44 -0
  599. package/esm2015/lib/utility/tests/mocks/mock-sign-up.service.js +29 -0
  600. package/esm2015/lib/utility/tests/mocks/mock-user-autocomplete-value.js +14 -0
  601. package/esm2015/lib/utility/tests/mocks/mock-user-preference.service.js +42 -0
  602. package/esm2015/lib/utility/tests/mocks/mock-user-resource.service.js +48 -0
  603. package/esm2015/lib/utility/tests/search-category-mock-dependencies.js +19 -0
  604. package/esm2015/lib/utility/tests/test-config.js +424 -0
  605. package/esm2015/lib/utility/tests/test-factory-methods.js +21 -0
  606. package/esm2015/lib/utility/tests/test-mock-dependencies.module.js +31 -0
  607. package/esm2015/lib/utility/tests/test-view-service.js +24 -0
  608. package/esm2015/lib/utility/tests/utility/configure-category.js +14 -0
  609. package/esm2015/lib/utility/tests/utility/create-mock-case-outcome.js +16 -0
  610. package/esm2015/lib/utility/tests/utility/create-mock-case.js +36 -0
  611. package/esm2015/lib/utility/tests/utility/create-mock-datagroup.js +35 -0
  612. package/esm2015/lib/utility/tests/utility/create-mock-field.js +41 -0
  613. package/esm2015/lib/utility/tests/utility/create-mock-get-data-outcome.js +15 -0
  614. package/esm2015/lib/utility/tests/utility/create-mock-immediate-data.js +15 -0
  615. package/esm2015/lib/utility/tests/utility/create-mock-net.js +27 -0
  616. package/esm2015/lib/utility/tests/utility/create-mock-page.js +23 -0
  617. package/esm2015/lib/utility/tests/utility/create-mock-petri-net-outcome.js +14 -0
  618. package/esm2015/lib/utility/tests/utility/create-mock-set-data-outcome.js +19 -0
  619. package/esm2015/lib/utility/tests/utility/create-mock-task-outcome.js +18 -0
  620. package/esm2015/lib/utility/tests/utility/create-mock-task.js +34 -0
  621. package/esm2015/lib/view/abstract/page-load-request-context.js +25 -0
  622. package/esm2015/lib/view/abstract/sortable-view.js +62 -0
  623. package/esm2015/lib/view/abstract/view-with-headers.js +20 -0
  624. package/esm2015/lib/view/case-view/abstract-case-view.js +40 -0
  625. package/esm2015/lib/view/case-view/components/case-list/abstract-case-list.component.js +82 -0
  626. package/esm2015/lib/view/case-view/models/case-page-load-request-result.js +2 -0
  627. package/esm2015/lib/view/case-view/models/case-view-params.js +2 -0
  628. package/esm2015/lib/view/case-view/models/new-case-configuration-injection-token.js +7 -0
  629. package/esm2015/lib/view/case-view/models/new-case-configuration.js +2 -0
  630. package/esm2015/lib/view/case-view/service/case-view-service.js +273 -0
  631. package/esm2015/lib/view/case-view/tabbed-case-view.js +66 -0
  632. package/esm2015/lib/view/public-api.js +42 -0
  633. package/esm2015/lib/view/task-view/abstract-task-view.js +13 -0
  634. package/esm2015/lib/view/task-view/models/injected-tabbed-task-view-data.js +2 -0
  635. package/esm2015/lib/view/task-view/models/injection-token-task-endpoint.js +6 -0
  636. package/esm2015/lib/view/task-view/models/task-endpoint.js +9 -0
  637. package/esm2015/lib/view/task-view/models/task-page-load-request-result.js +2 -0
  638. package/esm2015/lib/view/task-view/models/task-view-configuration-injection-token.js +20 -0
  639. package/esm2015/lib/view/task-view/models/task-view-configuration.js +2 -0
  640. package/esm2015/lib/view/task-view/models/task-view-params.js +2 -0
  641. package/esm2015/lib/view/task-view/service/task-view.service.js +292 -0
  642. package/esm2015/lib/view/task-view/tabbed-task-view.js +22 -0
  643. package/esm2015/lib/view/tree-case-view/model/tree-petriflow-identifiers.js +43 -0
  644. package/esm2015/lib/view/tree-case-view/tree-case-view.service.js +17 -0
  645. package/esm2015/lib/view/tree-case-view/tree-component/abstract-tree.component.js +141 -0
  646. package/esm2015/lib/view/tree-case-view/tree-component/add-child-node/abstract-add-child-node.component.js +14 -0
  647. package/esm2015/lib/view/tree-case-view/tree-component/case-tree.service.js +843 -0
  648. package/esm2015/lib/view/tree-case-view/tree-component/model/case-tree-node.js +104 -0
  649. package/esm2015/lib/view/tree-case-view/tree-component/model/case-tree-path.js +2 -0
  650. package/esm2015/lib/view/tree-case-view/tree-component/model/expansion-tree.js +2 -0
  651. package/esm2015/lib/view/tree-case-view/tree-component/remove-node/abstract-remove-node.component.js +14 -0
  652. package/esm2015/lib/view/tree-case-view/tree-task-content/abstract-tree-task-content.component.js +55 -0
  653. package/esm2015/lib/view/tree-case-view/tree-task-content/tree-task-content.service.js +288 -0
  654. package/esm2015/lib/view/workflow-view/abstract-workflow-view.component.js +68 -0
  655. package/esm2015/lib/view/workflow-view/models/injection-token-workflow-service.js +10 -0
  656. package/esm2015/lib/view/workflow-view/workflow-view.service.js +211 -0
  657. package/esm2015/netgrif-components-core.js +20 -0
  658. package/esm2015/public-api.js +45 -0
  659. package/esm5/assets/i18n/de.json +419 -0
  660. package/esm5/assets/i18n/en.json +419 -0
  661. package/esm5/assets/i18n/sk.json +419 -0
  662. package/esm5/commons/angular-cli-devkit-core-strings.js +157 -0
  663. package/esm5/commons/import-to-add.js +9 -0
  664. package/esm5/commons/schema.js +7 -0
  665. package/esm5/commons/view-class-info.js +57 -0
  666. package/esm5/lib/admin/public-api.js +9 -0
  667. package/esm5/lib/admin/role-assignment/abstract-role-assignment.js +84 -0
  668. package/esm5/lib/admin/role-assignment/services/ProcessList.js +179 -0
  669. package/esm5/lib/admin/role-assignment/services/role-assignment.service.js +50 -0
  670. package/esm5/lib/admin/user-invite/abstract-user-invite.component.js +84 -0
  671. package/esm5/lib/admin/user-invite/services/organization-list.service.js +82 -0
  672. package/esm5/lib/admin/user-invite/services/user-invite.service.js +37 -0
  673. package/esm5/lib/allowed-nets/public-api.js +4 -0
  674. package/esm5/lib/allowed-nets/services/allowed-nets.service.js +94 -0
  675. package/esm5/lib/allowed-nets/services/base-allowed-nets.service.js +65 -0
  676. package/esm5/lib/allowed-nets/services/factory/allowed-nets-service-factory.js +132 -0
  677. package/esm5/lib/authentication/anonymous/anonymous.service.js +73 -0
  678. package/esm5/lib/authentication/authentication.factory.js +16 -0
  679. package/esm5/lib/authentication/authentication.module.js +36 -0
  680. package/esm5/lib/authentication/components/abstract-authentication-overlay.js +53 -0
  681. package/esm5/lib/authentication/models/credentials.js +2 -0
  682. package/esm5/lib/authentication/models/public-api.js +5 -0
  683. package/esm5/lib/authentication/models/transformer.js +2 -0
  684. package/esm5/lib/authentication/models/user.transformer.js +23 -0
  685. package/esm5/lib/authentication/public-api.js +14 -0
  686. package/esm5/lib/authentication/services/anonymous-authentication-interceptor.js +47 -0
  687. package/esm5/lib/authentication/services/authentication/authentication.service.js +84 -0
  688. package/esm5/lib/authentication/services/authentication-interceptor.js +55 -0
  689. package/esm5/lib/authentication/services/authentication-method.service.js +7 -0
  690. package/esm5/lib/authentication/services/guard/authentication-guard.service.js +41 -0
  691. package/esm5/lib/authentication/services/methods/basic-authentication/basic-authentication.service.js +54 -0
  692. package/esm5/lib/authentication/services/methods/null-authentication/null-authentication.service.js +23 -0
  693. package/esm5/lib/authentication/services/public-api.js +7 -0
  694. package/esm5/lib/authentication/session/null-storage.js +19 -0
  695. package/esm5/lib/authentication/session/public-api.js +3 -0
  696. package/esm5/lib/authentication/session/services/session.service.js +193 -0
  697. package/esm5/lib/authentication/sign-up/models/user-invitation-request.js +2 -0
  698. package/esm5/lib/authentication/sign-up/models/user-registration-request.js +2 -0
  699. package/esm5/lib/authentication/sign-up/public-api.js +8 -0
  700. package/esm5/lib/authentication/sign-up/services/sign-up.service.js +107 -0
  701. package/esm5/lib/authentication/sign-up/sign-up.module.js +17 -0
  702. package/esm5/lib/authorization/authority/authority-guard.service.js +52 -0
  703. package/esm5/lib/authorization/group/group-guard.service.js +69 -0
  704. package/esm5/lib/authorization/permission/permission.service.js +126 -0
  705. package/esm5/lib/authorization/public-api.js +10 -0
  706. package/esm5/lib/authorization/role/role-guard.service.js +108 -0
  707. package/esm5/lib/changed-fields/public-api.js +2 -0
  708. package/esm5/lib/changed-fields/services/changed-fields.service.js +38 -0
  709. package/esm5/lib/configuration/configuration.service.js +208 -0
  710. package/esm5/lib/configuration/public-api.js +3 -0
  711. package/esm5/lib/covalent/covalent.module.js +26 -0
  712. package/esm5/lib/currency/currency.module.js +25 -0
  713. package/esm5/lib/dashboard/cards/count-card/abstract-count-card.js +42 -0
  714. package/esm5/lib/dashboard/cards/custom-card/abstract-custom-card.js +50 -0
  715. package/esm5/lib/dashboard/cards/iframe-card/abstract-iframe-card.js +16 -0
  716. package/esm5/lib/dashboard/cards/model/card-grid-element.js +2 -0
  717. package/esm5/lib/dashboard/cards/model/count-card.js +2 -0
  718. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/aggregation-query.js +2 -0
  719. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/aggregation-result.js +2 -0
  720. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/custom-card.js +2 -0
  721. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/dashboard-event-content.js +2 -0
  722. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/dashboard-multi-data.js +9 -0
  723. package/esm5/lib/dashboard/cards/model/custom-dashboard-model/dashboard-single-data.js +9 -0
  724. package/esm5/lib/dashboard/cards/model/dashboard-card-types.js +13 -0
  725. package/esm5/lib/dashboard/cards/model/dashboard-card.js +2 -0
  726. package/esm5/lib/dashboard/cards/model/graph-card.js +2 -0
  727. package/esm5/lib/dashboard/cards/model/iframe-card.js +2 -0
  728. package/esm5/lib/dashboard/dashboard-content/abstract-dashboard-content.js +21 -0
  729. package/esm5/lib/dashboard/dashboard-content/dashboard-params.js +2 -0
  730. package/esm5/lib/dashboard/public-api.js +20 -0
  731. package/esm5/lib/data-fields/boolean-field/abstract-boolean-field.component.js +45 -0
  732. package/esm5/lib/data-fields/boolean-field/models/boolean-field.js +29 -0
  733. package/esm5/lib/data-fields/button-field/abstract-button-field.component.js +68 -0
  734. package/esm5/lib/data-fields/button-field/models/button-field.js +37 -0
  735. package/esm5/lib/data-fields/data-field-template/abstract-data-field-template.component.js +111 -0
  736. package/esm5/lib/data-fields/data-field-template/models/wrapped-boolean.js +10 -0
  737. package/esm5/lib/data-fields/data-fields.module.js +39 -0
  738. package/esm5/lib/data-fields/date-field/abstract-date-field.component.js +26 -0
  739. package/esm5/lib/data-fields/date-field/models/custom-date-adapter.js +18 -0
  740. package/esm5/lib/data-fields/date-field/models/date-field.js +14 -0
  741. package/esm5/lib/data-fields/date-time-field/abstract-date-time-field.component.js +26 -0
  742. package/esm5/lib/data-fields/date-time-field/models/date-time-field.js +14 -0
  743. package/esm5/lib/data-fields/enumeration-field/abstract-enumeration-field.component.js +22 -0
  744. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component.js +47 -0
  745. package/esm5/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.js +57 -0
  746. package/esm5/lib/data-fields/enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component.js +39 -0
  747. package/esm5/lib/data-fields/enumeration-field/enumeration-list-field/abstract-enumeration-list-field.component.js +15 -0
  748. package/esm5/lib/data-fields/enumeration-field/enumeration-select-field/abstract-enumeration-select-field.component.js +15 -0
  749. package/esm5/lib/data-fields/enumeration-field/enumeration-stepper-field/abstract-enumeration-stepper-field.component.js +43 -0
  750. package/esm5/lib/data-fields/enumeration-field/models/dynamic-enumeration-field.js +63 -0
  751. package/esm5/lib/data-fields/enumeration-field/models/enumeration-field.js +79 -0
  752. package/esm5/lib/data-fields/file-field/abstract-file-field.component.js +405 -0
  753. package/esm5/lib/data-fields/file-field/abstract-preview-dialog/preview-dialog-data.js +2 -0
  754. package/esm5/lib/data-fields/file-field/models/file-field-value.js +2 -0
  755. package/esm5/lib/data-fields/file-field/models/file-field.js +128 -0
  756. package/esm5/lib/data-fields/file-list-field/abstract-file-list-field.component.js +278 -0
  757. package/esm5/lib/data-fields/file-list-field/models/file-list-field-value.js +2 -0
  758. package/esm5/lib/data-fields/file-list-field/models/file-list-field.js +105 -0
  759. package/esm5/lib/data-fields/filter-field/abstract-filter-field-content.component.js +36 -0
  760. package/esm5/lib/data-fields/filter-field/abstract-filter-field.component.js +33 -0
  761. package/esm5/lib/data-fields/filter-field/models/filter-field-injection-token.js +7 -0
  762. package/esm5/lib/data-fields/filter-field/models/filter-field.js +28 -0
  763. package/esm5/lib/data-fields/i18n-field/abstract-i18n-field.component.js +23 -0
  764. package/esm5/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.js +30 -0
  765. package/esm5/lib/data-fields/i18n-field/i18n-text-field/abstract-i18n-text-field.component.js +42 -0
  766. package/esm5/lib/data-fields/i18n-field/models/i18n-field-value.js +2 -0
  767. package/esm5/lib/data-fields/i18n-field/models/i18n-field.js +16 -0
  768. package/esm5/lib/data-fields/models/abstract-data-field-component.js +45 -0
  769. package/esm5/lib/data-fields/models/abstract-data-field.js +501 -0
  770. package/esm5/lib/data-fields/models/behavior.js +2 -0
  771. package/esm5/lib/data-fields/models/boolean-label-enabled-token.js +3 -0
  772. package/esm5/lib/data-fields/models/changed-fields.js +2 -0
  773. package/esm5/lib/data-fields/models/component.js +2 -0
  774. package/esm5/lib/data-fields/models/format-filter.js +2 -0
  775. package/esm5/lib/data-fields/models/icon.js +6 -0
  776. package/esm5/lib/data-fields/models/invalid-data-policy-token.js +11 -0
  777. package/esm5/lib/data-fields/models/layout.js +2 -0
  778. package/esm5/lib/data-fields/models/material-appearance.js +14 -0
  779. package/esm5/lib/data-fields/models/properties.js +2 -0
  780. package/esm5/lib/data-fields/models/template-appearance.js +15 -0
  781. package/esm5/lib/data-fields/models/validation.js +2 -0
  782. package/esm5/lib/data-fields/multichoice-field/abstract-multichoice-field.component.js +22 -0
  783. package/esm5/lib/data-fields/multichoice-field/models/multichoice-field.js +60 -0
  784. package/esm5/lib/data-fields/multichoice-field/multichoice-list-field/abstract-multichoice-list-field.component.js +13 -0
  785. package/esm5/lib/data-fields/multichoice-field/multichoice-select-field/abstract-multichoice-select-field.component.js +13 -0
  786. package/esm5/lib/data-fields/number-field/abstract-number-errors.component.js +49 -0
  787. package/esm5/lib/data-fields/number-field/abstract-number-field.component.js +23 -0
  788. package/esm5/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.js +54 -0
  789. package/esm5/lib/data-fields/number-field/models/number-field.js +137 -0
  790. package/esm5/lib/data-fields/number-field/number-default-field/abstract-default-number-field.component.js +11 -0
  791. package/esm5/lib/data-fields/public-api.js +73 -0
  792. package/esm5/lib/data-fields/task-ref-field/model/task-ref-field.js +11 -0
  793. package/esm5/lib/data-fields/text-field/abstract-text-errors.component.js +37 -0
  794. package/esm5/lib/data-fields/text-field/abstract-text-field.component.js +19 -0
  795. package/esm5/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.js +45 -0
  796. package/esm5/lib/data-fields/text-field/models/text-area-field.js +19 -0
  797. package/esm5/lib/data-fields/text-field/models/text-field.js +96 -0
  798. package/esm5/lib/data-fields/text-field/password-text-field/abstract-password-text-field.component.js +22 -0
  799. package/esm5/lib/data-fields/text-field/rich-textarea-field/abstract-rich-textarea-field.component.js +35 -0
  800. package/esm5/lib/data-fields/text-field/simple-text-field/abstract-simple-text-field.component.js +22 -0
  801. package/esm5/lib/data-fields/text-field/textarea-field/abstract-textarea-field.component.js +46 -0
  802. package/esm5/lib/data-fields/time-instance-abstract-field/abstract-time-instance-field.component.js +52 -0
  803. package/esm5/lib/data-fields/time-instance-abstract-field/models/abstract-time-instance-field.js +110 -0
  804. package/esm5/lib/data-fields/user-field/abstract-user-field.component.js +65 -0
  805. package/esm5/lib/data-fields/user-field/models/user-field.js +23 -0
  806. package/esm5/lib/data-fields/user-field/models/user-value.js +58 -0
  807. package/esm5/lib/dialog/components/alert-dialog/alert-dialog.component.js +43 -0
  808. package/esm5/lib/dialog/components/alert-dialog/alert-dialog.module.js +32 -0
  809. package/esm5/lib/dialog/components/confirm-dialog/confirm-dialog.component.js +57 -0
  810. package/esm5/lib/dialog/components/confirm-dialog/confirm-dialog.module.js +32 -0
  811. package/esm5/lib/dialog/components/prompt-dialog/prompt-dialog.component.js +47 -0
  812. package/esm5/lib/dialog/components/prompt-dialog/prompt-dialog.module.js +34 -0
  813. package/esm5/lib/dialog/dialog.module.js +33 -0
  814. package/esm5/lib/dialog/models/DialogData.js +2 -0
  815. package/esm5/lib/dialog/models/DialogResult.js +2 -0
  816. package/esm5/lib/dialog/models/abstract-dialog.js +23 -0
  817. package/esm5/lib/dialog/public-api.js +9 -0
  818. package/esm5/lib/dialog/services/dialog.service.js +84 -0
  819. package/esm5/lib/event/model/event-constants.js +8 -0
  820. package/esm5/lib/event/model/event-outcomes/case-outcomes/case-event-outcome.js +2 -0
  821. package/esm5/lib/event/model/event-outcomes/case-outcomes/create-case-event-outcome.js +2 -0
  822. package/esm5/lib/event/model/event-outcomes/case-outcomes/delete-case-event-outcome.js +2 -0
  823. package/esm5/lib/event/model/event-outcomes/data-outcomes/get-data-event-outcome.js +2 -0
  824. package/esm5/lib/event/model/event-outcomes/data-outcomes/get-data-groups-event-outcome.js +2 -0
  825. package/esm5/lib/event/model/event-outcomes/data-outcomes/get-data-localised-event-outcome.js +2 -0
  826. package/esm5/lib/event/model/event-outcomes/data-outcomes/set-data-event-outcome.js +2 -0
  827. package/esm5/lib/event/model/event-outcomes/petrinet-outcomes/petri-net-event-outcome.js +2 -0
  828. package/esm5/lib/event/model/event-outcomes/task-outcomes/assign-task-event-outcome.js +2 -0
  829. package/esm5/lib/event/model/event-outcomes/task-outcomes/cancel-task-event-outcome.js +2 -0
  830. package/esm5/lib/event/model/event-outcomes/task-outcomes/delegate-task-event-outcome.js +2 -0
  831. package/esm5/lib/event/model/event-outcomes/task-outcomes/finish-task-event-outcome.js +2 -0
  832. package/esm5/lib/event/model/event-outcomes/task-outcomes/task-event-outcome.js +2 -0
  833. package/esm5/lib/event/public-api.js +19 -0
  834. package/esm5/lib/event/services/event.service.js +60 -0
  835. package/esm5/lib/event/services/interfaces/changed-fields-map.js +2 -0
  836. package/esm5/lib/event-queue/model/queued-event.js +34 -0
  837. package/esm5/lib/event-queue/public-api.js +5 -0
  838. package/esm5/lib/event-queue/services/event-queue.service.js +66 -0
  839. package/esm5/lib/filter/filter.repository.js +145 -0
  840. package/esm5/lib/filter/models/case-search-request-body.js +2 -0
  841. package/esm5/lib/filter/models/filter-type.js +11 -0
  842. package/esm5/lib/filter/models/filter.js +71 -0
  843. package/esm5/lib/filter/models/filters-filter-injection-token.js +9 -0
  844. package/esm5/lib/filter/models/merge-operator.js +11 -0
  845. package/esm5/lib/filter/models/merged-filter-params.js +2 -0
  846. package/esm5/lib/filter/models/merged-filter.js +120 -0
  847. package/esm5/lib/filter/models/simple-filter.js +96 -0
  848. package/esm5/lib/filter/models/task-search-request-body.js +2 -0
  849. package/esm5/lib/filter/models/user-filter-constants.js +39 -0
  850. package/esm5/lib/filter/public-api.js +18 -0
  851. package/esm5/lib/filter/user-filters.service.js +357 -0
  852. package/esm5/lib/forms/email-submission/abstract-email-submission-form.component.js +33 -0
  853. package/esm5/lib/forms/forgotten-password/abstract-forgotten-password.component.js +37 -0
  854. package/esm5/lib/forms/has-form.js +2 -0
  855. package/esm5/lib/forms/login/abstract-login-form.component.js +61 -0
  856. package/esm5/lib/forms/models/abstract-registration.component.js +106 -0
  857. package/esm5/lib/forms/models/password.validator.js +21 -0
  858. package/esm5/lib/forms/public-api.js +7 -0
  859. package/esm5/lib/forms/registration/abstract-registration-form.component.js +42 -0
  860. package/esm5/lib/groups/public-api.js +3 -0
  861. package/esm5/lib/groups/services/active-group.service.js +107 -0
  862. package/esm5/lib/groups/services/next-group.service.js +135 -0
  863. package/esm5/lib/header/abstract-header-service.js +485 -0
  864. package/esm5/lib/header/abstract-header.component.js +171 -0
  865. package/esm5/lib/header/case-header/case-header.service.js +86 -0
  866. package/esm5/lib/header/case-header/case-menta-enum.js +9 -0
  867. package/esm5/lib/header/header-modes/abstract-header-mode.component.js +14 -0
  868. package/esm5/lib/header/header-modes/edit-mode/abstract-edit-mode.component.js +81 -0
  869. package/esm5/lib/header/header-modes/loading-mode/abstract-loading-mode.component.js +17 -0
  870. package/esm5/lib/header/header-modes/search-mode/abstract-search-mode.component.js +94 -0
  871. package/esm5/lib/header/header-modes/sort-mode/abstract-sort-mode.component.js +19 -0
  872. package/esm5/lib/header/header-state.js +53 -0
  873. package/esm5/lib/header/models/default-headers-token.js +3 -0
  874. package/esm5/lib/header/models/fields-group.js +2 -0
  875. package/esm5/lib/header/models/header-column.js +29 -0
  876. package/esm5/lib/header/models/header-mode.js +7 -0
  877. package/esm5/lib/header/models/header-type.js +7 -0
  878. package/esm5/lib/header/models/public-api.js +12 -0
  879. package/esm5/lib/header/models/user-changes/column-header-change.js +2 -0
  880. package/esm5/lib/header/models/user-changes/edit-change-description.js +2 -0
  881. package/esm5/lib/header/models/user-changes/header-change-description.js +2 -0
  882. package/esm5/lib/header/models/user-changes/header-change-type.js +20 -0
  883. package/esm5/lib/header/models/user-changes/header-change.js +2 -0
  884. package/esm5/lib/header/models/user-changes/mode-change-description.js +2 -0
  885. package/esm5/lib/header/models/user-changes/search-change-description.js +2 -0
  886. package/esm5/lib/header/models/user-changes/sort-change-description.js +2 -0
  887. package/esm5/lib/header/public-api.js +21 -0
  888. package/esm5/lib/header/services/overflow.service.js +112 -0
  889. package/esm5/lib/header/task-header/task-header.service.js +71 -0
  890. package/esm5/lib/header/task-header/task-meta-enum.js +11 -0
  891. package/esm5/lib/header/workflow-header/workflow-header.service.js +53 -0
  892. package/esm5/lib/header/workflow-header/workflow-meta-enum.js +10 -0
  893. package/esm5/lib/legal/legal-notice/abstract-legal-notice.component.js +26 -0
  894. package/esm5/lib/legal/public-api.js +2 -0
  895. package/esm5/lib/logger/models/log-entry.js +68 -0
  896. package/esm5/lib/logger/public-api.js +10 -0
  897. package/esm5/lib/logger/publishers/console-log-publisher.js +36 -0
  898. package/esm5/lib/logger/publishers/local-storage-log-publisher.js +45 -0
  899. package/esm5/lib/logger/publishers/log-publisher.js +15 -0
  900. package/esm5/lib/logger/services/log-level.js +10 -0
  901. package/esm5/lib/logger/services/log-publisher.service.js +66 -0
  902. package/esm5/lib/logger/services/logger.service.js +107 -0
  903. package/esm5/lib/material/material.module.js +112 -0
  904. package/esm5/lib/moment/public-api.js +2 -0
  905. package/esm5/lib/moment/time-formats.js +26 -0
  906. package/esm5/lib/navigation/group-navigation-component-resolver/abstract-group-navigation-component-resolver.component.js +40 -0
  907. package/esm5/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.service.js +37 -0
  908. package/esm5/lib/navigation/group-navigation-component-resolver/group-navigation-view-id-segment-factory.js +5 -0
  909. package/esm5/lib/navigation/model/filter-case-injection-token.js +6 -0
  910. package/esm5/lib/navigation/model/group-navigation-component-resolver-component-injection-token.js +6 -0
  911. package/esm5/lib/navigation/model/group-navigation-constants.js +59 -0
  912. package/esm5/lib/navigation/model/group-navigation-item-label.js +2 -0
  913. package/esm5/lib/navigation/navigation-drawer/abstract-navigation-drawer.component.js +142 -0
  914. package/esm5/lib/navigation/navigation-drawer/abstract-navigation-resizable-drawer.component.js +17 -0
  915. package/esm5/lib/navigation/navigation-rail/abstract-navigation-rail.component.js +38 -0
  916. package/esm5/lib/navigation/navigation-tree/abstract-navigation-tree.component.js +415 -0
  917. package/esm5/lib/navigation/public-api.js +19 -0
  918. package/esm5/lib/navigation/quick-panel/components/abstract-quick-panel.component.js +30 -0
  919. package/esm5/lib/navigation/quick-panel/components/internal-link/abstract-internal-link.component.js +14 -0
  920. package/esm5/lib/navigation/quick-panel/components/language-selector/abstract-language-selector.component.js +59 -0
  921. package/esm5/lib/navigation/quick-panel/components/logout-shortcut/abstract-logout-shortcut.component.js +24 -0
  922. package/esm5/lib/navigation/quick-panel/components/paper-view.service.js +44 -0
  923. package/esm5/lib/navigation/quick-panel/public-api.js +8 -0
  924. package/esm5/lib/navigation/utility/filter-extraction.service.js +89 -0
  925. package/esm5/lib/navigation/utility/navigation-item-task-utility-methods.js +78 -0
  926. package/esm5/lib/panel/abstract/featured-value.js +2 -0
  927. package/esm5/lib/panel/abstract/panel-with-header-binding.js +50 -0
  928. package/esm5/lib/panel/abstract/panel-with-immediate-data.js +67 -0
  929. package/esm5/lib/panel/abstract/tabbed-virtual-scroll.component.js +35 -0
  930. package/esm5/lib/panel/abstract-panel.component.js +46 -0
  931. package/esm5/lib/panel/case-panel/abstract-case-panel.component.js +94 -0
  932. package/esm5/lib/panel/immediate/abstract-immediate-filter-text-content.component.js +45 -0
  933. package/esm5/lib/panel/immediate/abstract-immediate-filter-text.component.js +23 -0
  934. package/esm5/lib/panel/immediate/model/filter-text-injection-token.js +6 -0
  935. package/esm5/lib/panel/public-api.js +15 -0
  936. package/esm5/lib/panel/task-panel/abstract-task-panel.component.js +302 -0
  937. package/esm5/lib/panel/task-panel/models/disable-functions.js +3 -0
  938. package/esm5/lib/panel/task-panel-list/abstract-task-list.component.js +99 -0
  939. package/esm5/lib/panel/task-panel-list/task-panel-data/task-panel-data.js +2 -0
  940. package/esm5/lib/panel/workflow-panel/abstract-workflow-panel.component.js +109 -0
  941. package/esm5/lib/process/net.js +155 -0
  942. package/esm5/lib/process/netRole.js +2 -0
  943. package/esm5/lib/process/permissions.js +12 -0
  944. package/esm5/lib/process/petri-net-reference-with-permissions.js +2 -0
  945. package/esm5/lib/process/process.service.js +325 -0
  946. package/esm5/lib/process/public-api.js +8 -0
  947. package/esm5/lib/process/public-process.service.js +34 -0
  948. package/esm5/lib/process/rolesAndPermissions.js +2 -0
  949. package/esm5/lib/process/transaction.js +2 -0
  950. package/esm5/lib/process/transition.js +2 -0
  951. package/esm5/lib/public/factories/get-net-and-create-case.js +22 -0
  952. package/esm5/lib/public/factories/public-factory-resolver.js +13 -0
  953. package/esm5/lib/public/factories/public-search-factory.js +17 -0
  954. package/esm5/lib/public/public-api.js +5 -0
  955. package/esm5/lib/public/services/public-url-resolver.service.js +26 -0
  956. package/esm5/lib/resources/abstract-endpoint/abstract-resource.service.js +85 -0
  957. package/esm5/lib/resources/abstract-endpoint/count-service.js +2 -0
  958. package/esm5/lib/resources/engine-endpoint/case-resource.service.js +149 -0
  959. package/esm5/lib/resources/engine-endpoint/dashboard-resource.service.js +37 -0
  960. package/esm5/lib/resources/engine-endpoint/petri-net-resource.service.js +174 -0
  961. package/esm5/lib/resources/engine-endpoint/public/public-case-resource.service.js +52 -0
  962. package/esm5/lib/resources/engine-endpoint/public/public-petri-net-resource.service.js +120 -0
  963. package/esm5/lib/resources/engine-endpoint/public/public-task-resource.service.js +238 -0
  964. package/esm5/lib/resources/engine-endpoint/task-resource.service.js +327 -0
  965. package/esm5/lib/resources/engine-endpoint/user-resource.service.js +210 -0
  966. package/esm5/lib/resources/interface/assigned-user-policy.js +2 -0
  967. package/esm5/lib/resources/interface/author.js +2 -0
  968. package/esm5/lib/resources/interface/authority.js +2 -0
  969. package/esm5/lib/resources/interface/case-get-request-body.js +2 -0
  970. package/esm5/lib/resources/interface/case.js +2 -0
  971. package/esm5/lib/resources/interface/changed-field-container.js +2 -0
  972. package/esm5/lib/resources/interface/count.js +2 -0
  973. package/esm5/lib/resources/interface/create-case-request-body.js +2 -0
  974. package/esm5/lib/resources/interface/data-group-layout.js +59 -0
  975. package/esm5/lib/resources/interface/data-groups.js +19 -0
  976. package/esm5/lib/resources/interface/event-outcome.js +2 -0
  977. package/esm5/lib/resources/interface/field-alignment.js +10 -0
  978. package/esm5/lib/resources/interface/fields.js +2 -0
  979. package/esm5/lib/resources/interface/file-resource.js +2 -0
  980. package/esm5/lib/resources/interface/group.js +2 -0
  981. package/esm5/lib/resources/interface/immediate-data.js +2 -0
  982. package/esm5/lib/resources/interface/link.js +2 -0
  983. package/esm5/lib/resources/interface/message-resource.js +2 -0
  984. package/esm5/lib/resources/interface/page.js +2 -0
  985. package/esm5/lib/resources/interface/pagination.js +2 -0
  986. package/esm5/lib/resources/interface/petri-net-object-id.js +2 -0
  987. package/esm5/lib/resources/interface/petri-net-reference.js +2 -0
  988. package/esm5/lib/resources/interface/petri-net-request-body.js +2 -0
  989. package/esm5/lib/resources/interface/petri-net.js +2 -0
  990. package/esm5/lib/resources/interface/preferences.js +2 -0
  991. package/esm5/lib/resources/interface/process-role.js +2 -0
  992. package/esm5/lib/resources/interface/response-data.js +2 -0
  993. package/esm5/lib/resources/interface/task-layout.js +2 -0
  994. package/esm5/lib/resources/interface/task-reference.js +2 -0
  995. package/esm5/lib/resources/interface/task-set-data-request-body.js +2 -0
  996. package/esm5/lib/resources/interface/task.js +2 -0
  997. package/esm5/lib/resources/interface/user-process-role.js +2 -0
  998. package/esm5/lib/resources/interface/user-resource-small.js +2 -0
  999. package/esm5/lib/resources/interface/user-resource.js +2 -0
  1000. package/esm5/lib/resources/public-api.js +46 -0
  1001. package/esm5/lib/resources/resource-provider.service.js +174 -0
  1002. package/esm5/lib/resources/types/nae-date-type.js +5 -0
  1003. package/esm5/lib/routing/dynamic-navigation-route-provider/dynamic-navigation-route-provider.service.js +42 -0
  1004. package/esm5/lib/routing/public-api.js +7 -0
  1005. package/esm5/lib/routing/redirect-service/redirect.service.js +130 -0
  1006. package/esm5/lib/routing/routing-builder/routing-builder.service.js +207 -0
  1007. package/esm5/lib/routing/view-service/model/view-entry.js +2 -0
  1008. package/esm5/lib/routing/view-service/view.service.js +38 -0
  1009. package/esm5/lib/search/advanced-search-component/abstract-advanced-search.component.js +64 -0
  1010. package/esm5/lib/search/advanced-search-component-initialization-service/advanced-search-component-initialization.service.js +40 -0
  1011. package/esm5/lib/search/category-factory/category-factory.js +96 -0
  1012. package/esm5/lib/search/category-factory/category-resolver.service.js +152 -0
  1013. package/esm5/lib/search/category-factory/category-serialisation-pair.js +2 -0
  1014. package/esm5/lib/search/category-factory/default-categories-factories.js +67 -0
  1015. package/esm5/lib/search/category-factory/default-search-categories.module.js +54 -0
  1016. package/esm5/lib/search/category-factory/optional-dependencies.js +2 -0
  1017. package/esm5/lib/search/category-factory/search-categories-injection-token.js +24 -0
  1018. package/esm5/lib/search/fulltext-search-component/abstract-fulltext-search.component.js +20 -0
  1019. package/esm5/lib/search/header-search-service/header-search.service.js +250 -0
  1020. package/esm5/lib/search/models/base-filter-injection-token.js +6 -0
  1021. package/esm5/lib/search/models/base-filter.js +2 -0
  1022. package/esm5/lib/search/models/boolean-operator.js +10 -0
  1023. package/esm5/lib/search/models/category/autocomplete-category.js +155 -0
  1024. package/esm5/lib/search/models/category/autocomplete-options.js +2 -0
  1025. package/esm5/lib/search/models/category/case/case-author.js +29 -0
  1026. package/esm5/lib/search/models/category/case/case-creation-date-time.js +51 -0
  1027. package/esm5/lib/search/models/category/case/case-creation-date.js +51 -0
  1028. package/esm5/lib/search/models/category/case/case-dataset.js +444 -0
  1029. package/esm5/lib/search/models/category/case/case-net-attribute-autocomplete-category.js +28 -0
  1030. package/esm5/lib/search/models/category/case/case-process.js +84 -0
  1031. package/esm5/lib/search/models/category/case/case-role.js +32 -0
  1032. package/esm5/lib/search/models/category/case/case-search.enum.js +15 -0
  1033. package/esm5/lib/search/models/category/case/case-simple-dataset.js +153 -0
  1034. package/esm5/lib/search/models/category/case/case-string-id.js +35 -0
  1035. package/esm5/lib/search/models/category/case/case-task.js +32 -0
  1036. package/esm5/lib/search/models/category/case/case-title.js +37 -0
  1037. package/esm5/lib/search/models/category/case/case-visual-id.js +31 -0
  1038. package/esm5/lib/search/models/category/categories.js +24 -0
  1039. package/esm5/lib/search/models/category/category.js +585 -0
  1040. package/esm5/lib/search/models/category/name-id-pair.js +2 -0
  1041. package/esm5/lib/search/models/category/net-attribute-autocomplete-category.js +66 -0
  1042. package/esm5/lib/search/models/category/net-attribute-pair.js +2 -0
  1043. package/esm5/lib/search/models/category/no-configuration-autocomplete-category.js +48 -0
  1044. package/esm5/lib/search/models/category/no-configuration-category.js +51 -0
  1045. package/esm5/lib/search/models/category/no-configuration-user-autocomplete-category.js +33 -0
  1046. package/esm5/lib/search/models/category/search-autocomplete-option.js +2 -0
  1047. package/esm5/lib/search/models/category/search-input-type.js +14 -0
  1048. package/esm5/lib/search/models/category/task/task-assignee.js +29 -0
  1049. package/esm5/lib/search/models/category/task/task-net-attribute-autocomplete-category.js +28 -0
  1050. package/esm5/lib/search/models/category/task/task-process.js +61 -0
  1051. package/esm5/lib/search/models/category/task/task-role.js +31 -0
  1052. package/esm5/lib/search/models/category/task/task-task.js +31 -0
  1053. package/esm5/lib/search/models/category/user-autocomplete.js +64 -0
  1054. package/esm5/lib/search/models/component-configuration/search-component-configuration-injection-token.js +8 -0
  1055. package/esm5/lib/search/models/component-configuration/search-component-configuration.js +2 -0
  1056. package/esm5/lib/search/models/component-configuration/search-mode.js +9 -0
  1057. package/esm5/lib/search/models/configuration-input.js +71 -0
  1058. package/esm5/lib/search/models/datafield-map-key.js +91 -0
  1059. package/esm5/lib/search/models/escape-result.js +2 -0
  1060. package/esm5/lib/search/models/operator/equals-date-time.js +31 -0
  1061. package/esm5/lib/search/models/operator/equals-date.js +31 -0
  1062. package/esm5/lib/search/models/operator/equals.js +25 -0
  1063. package/esm5/lib/search/models/operator/in-range-date-time.js +47 -0
  1064. package/esm5/lib/search/models/operator/in-range-date.js +46 -0
  1065. package/esm5/lib/search/models/operator/in-range.js +26 -0
  1066. package/esm5/lib/search/models/operator/is-null.js +75 -0
  1067. package/esm5/lib/search/models/operator/less-than-date-time.js +32 -0
  1068. package/esm5/lib/search/models/operator/less-than-date.js +32 -0
  1069. package/esm5/lib/search/models/operator/less-than-equal-date-time.js +32 -0
  1070. package/esm5/lib/search/models/operator/less-than-equal-date.js +31 -0
  1071. package/esm5/lib/search/models/operator/less-than-equal.js +21 -0
  1072. package/esm5/lib/search/models/operator/less-than.js +21 -0
  1073. package/esm5/lib/search/models/operator/like.js +33 -0
  1074. package/esm5/lib/search/models/operator/more-than-date-time.js +34 -0
  1075. package/esm5/lib/search/models/operator/more-than-date.js +34 -0
  1076. package/esm5/lib/search/models/operator/more-than-equal-date-time.js +32 -0
  1077. package/esm5/lib/search/models/operator/more-than-equal-date.js +32 -0
  1078. package/esm5/lib/search/models/operator/more-than-equal.js +21 -0
  1079. package/esm5/lib/search/models/operator/more-than.js +21 -0
  1080. package/esm5/lib/search/models/operator/not-equals-date-time.js +29 -0
  1081. package/esm5/lib/search/models/operator/not-equals-date.js +32 -0
  1082. package/esm5/lib/search/models/operator/not-equals.js +35 -0
  1083. package/esm5/lib/search/models/operator/operator.js +134 -0
  1084. package/esm5/lib/search/models/operator/operators.js +31 -0
  1085. package/esm5/lib/search/models/operator/substring.js +31 -0
  1086. package/esm5/lib/search/models/operator-template-part-type.js +15 -0
  1087. package/esm5/lib/search/models/operator-template-part.js +42 -0
  1088. package/esm5/lib/search/models/persistance/filter-metadata-allowed-nets.js +2 -0
  1089. package/esm5/lib/search/models/persistance/filter-metadata.js +2 -0
  1090. package/esm5/lib/search/models/persistance/filter-text-segment.js +2 -0
  1091. package/esm5/lib/search/models/persistance/generator-metadata.js +2 -0
  1092. package/esm5/lib/search/models/persistance/saved-filter-metadata.js +2 -0
  1093. package/esm5/lib/search/models/predicate/clause-predicate.js +95 -0
  1094. package/esm5/lib/search/models/predicate/editable-clause-predicate-with-generators.js +79 -0
  1095. package/esm5/lib/search/models/predicate/editable-clause-predicate.js +146 -0
  1096. package/esm5/lib/search/models/predicate/editable-elementary-predicate.js +30 -0
  1097. package/esm5/lib/search/models/predicate/editable-predicate-with-generator.js +47 -0
  1098. package/esm5/lib/search/models/predicate/editable-predicate.js +32 -0
  1099. package/esm5/lib/search/models/predicate/elementary-predicate.js +24 -0
  1100. package/esm5/lib/search/models/predicate/predicate-with-generator.js +114 -0
  1101. package/esm5/lib/search/models/predicate/predicate.js +110 -0
  1102. package/esm5/lib/search/models/predicate-removal-event.js +2 -0
  1103. package/esm5/lib/search/models/query/query.js +83 -0
  1104. package/esm5/lib/search/models/search-index.js +76 -0
  1105. package/esm5/lib/search/models/wrap-result.js +2 -0
  1106. package/esm5/lib/search/operator-service/operator-resolver.service.js +113 -0
  1107. package/esm5/lib/search/operator-service/operator.service.js +41 -0
  1108. package/esm5/lib/search/public-api.js +107 -0
  1109. package/esm5/lib/search/search-clause-component/abstract-search-clause.component.js +67 -0
  1110. package/esm5/lib/search/search-component/abstract-search.component.js +201 -0
  1111. package/esm5/lib/search/search-configuration-input-component/abstract-search-configuration-input.component.js +82 -0
  1112. package/esm5/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +40 -0
  1113. package/esm5/lib/search/search-operand-input-component/abstract-search-operand-input.component.js +113 -0
  1114. package/esm5/lib/search/search-predicate-component/abstract-search-predicate.component.js +162 -0
  1115. package/esm5/lib/search/search-service/search.service.js +405 -0
  1116. package/esm5/lib/side-menu/content-components/filter-selector/abstract-filter-selector.component.js +166 -0
  1117. package/esm5/lib/side-menu/content-components/filter-selector/filter-selector-list-item/abstract-filter-selector-list-item.component.js +26 -0
  1118. package/esm5/lib/side-menu/content-components/filter-selector/model/filter-selector-injection-data.js +2 -0
  1119. package/esm5/lib/side-menu/content-components/filter-selector/model/filtered-array.js +37 -0
  1120. package/esm5/lib/side-menu/content-components/import-net/abstract-import-net.component.js +152 -0
  1121. package/esm5/lib/side-menu/content-components/injection-tokens.js +8 -0
  1122. package/esm5/lib/side-menu/content-components/load-filter/abstract-load-filter.component.js +47 -0
  1123. package/esm5/lib/side-menu/content-components/load-filter/model/load-filter-injection-data.js +2 -0
  1124. package/esm5/lib/side-menu/content-components/new-case/abstract-new-case.component.js +264 -0
  1125. package/esm5/lib/side-menu/content-components/new-case/model/new-case-injection-data.js +2 -0
  1126. package/esm5/lib/side-menu/content-components/option-selector/abstract-option-selector.component.js +31 -0
  1127. package/esm5/lib/side-menu/content-components/option-selector/model/option-selector-injection-data.js +2 -0
  1128. package/esm5/lib/side-menu/content-components/public-api.js +20 -0
  1129. package/esm5/lib/side-menu/content-components/save-filter/abstract-save-filter.component.js +43 -0
  1130. package/esm5/lib/side-menu/content-components/save-filter/model/save-filter-injection-data.js +2 -0
  1131. package/esm5/lib/side-menu/content-components/user-assign/abstract-user-assign.component.js +74 -0
  1132. package/esm5/lib/side-menu/content-components/user-assign/model/user-list-injected-data.js +2 -0
  1133. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/abstract-user-assign-list.component.js +113 -0
  1134. package/esm5/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/abstract-user-assign-item.component.js +15 -0
  1135. package/esm5/lib/side-menu/models/portal-wrapper.js +23 -0
  1136. package/esm5/lib/side-menu/models/side-menu-control.js +47 -0
  1137. package/esm5/lib/side-menu/models/side-menu-event.js +2 -0
  1138. package/esm5/lib/side-menu/models/side-menu-injection-data.js +2 -0
  1139. package/esm5/lib/side-menu/models/side-menu-ref.js +26 -0
  1140. package/esm5/lib/side-menu/models/side-menu-size.js +7 -0
  1141. package/esm5/lib/side-menu/net-version-visible-injection-token.js +4 -0
  1142. package/esm5/lib/side-menu/public-api.js +15 -0
  1143. package/esm5/lib/side-menu/services/side-menu.service.js +90 -0
  1144. package/esm5/lib/side-menu/side-menu-container/abstract-side-menu-container.component.js +36 -0
  1145. package/esm5/lib/side-menu/side-menu-injection-token.js +3 -0
  1146. package/esm5/lib/snack-bar/components/error-snack-bar/error-snack-bar.component.js +31 -0
  1147. package/esm5/lib/snack-bar/components/generic-snack-bar/generic-snack-bar.component.js +31 -0
  1148. package/esm5/lib/snack-bar/components/success-snack-bar/success-snack-bar.component.js +31 -0
  1149. package/esm5/lib/snack-bar/components/warning-snack-bar/warning-snack-bar.component.js +31 -0
  1150. package/esm5/lib/snack-bar/models/abstract-snack-bar.js +20 -0
  1151. package/esm5/lib/snack-bar/models/injection-token-snackbar.js +4 -0
  1152. package/esm5/lib/snack-bar/models/snack-bar-enums.js +12 -0
  1153. package/esm5/lib/snack-bar/models/snack-bar-injection-data.js +2 -0
  1154. package/esm5/lib/snack-bar/public-api.js +15 -0
  1155. package/esm5/lib/snack-bar/services/snack-bar.service.js +105 -0
  1156. package/esm5/lib/snack-bar/snack-bar.module.js +37 -0
  1157. package/esm5/lib/tabs/classes/opened-tab.js +50 -0
  1158. package/esm5/lib/tabs/classes/tab-view.js +283 -0
  1159. package/esm5/lib/tabs/interfaces.js +2 -0
  1160. package/esm5/lib/tabs/public-api.js +6 -0
  1161. package/esm5/lib/tabs/tab-creation-detector/abstract-tab-creation-detector.component.js +21 -0
  1162. package/esm5/lib/tabs/tab-data-injection-token/tab-data-injection-token.js +8 -0
  1163. package/esm5/lib/tabs/tab-view/abstract-tab-view.component.js +71 -0
  1164. package/esm5/lib/task/interfaces/task-operations.js +2 -0
  1165. package/esm5/lib/task/models/null-task-operations.js +30 -0
  1166. package/esm5/lib/task/models/subject-task-operations.js +76 -0
  1167. package/esm5/lib/task/models/task-operations-injection-token.js +3 -0
  1168. package/esm5/lib/task/models/task-set-data-request-context.js +2 -0
  1169. package/esm5/lib/task/public-api.js +19 -0
  1170. package/esm5/lib/task/services/assign-policy.service.js +189 -0
  1171. package/esm5/lib/task/services/assign-task.service.js +200 -0
  1172. package/esm5/lib/task/services/cancel-task.service.js +198 -0
  1173. package/esm5/lib/task/services/data-focus-policy.service.js +40 -0
  1174. package/esm5/lib/task/services/delegate-task.service.js +196 -0
  1175. package/esm5/lib/task/services/finish-policy.service.js +85 -0
  1176. package/esm5/lib/task/services/finish-task.service.js +215 -0
  1177. package/esm5/lib/task/services/selected-case.service.js +48 -0
  1178. package/esm5/lib/task/services/task-data.service.js +597 -0
  1179. package/esm5/lib/task/services/task-handling-service.js +68 -0
  1180. package/esm5/lib/task/services/task-request-state.service.js +118 -0
  1181. package/esm5/lib/task-content/field-component-resolver/abstract-field-component-resolver.component.js +41 -0
  1182. package/esm5/lib/task-content/model/async-rendering-configuration-injection-token.js +8 -0
  1183. package/esm5/lib/task-content/model/async-rendering-configuration.js +2 -0
  1184. package/esm5/lib/task-content/model/datafield-grid-layout-element.js +2 -0
  1185. package/esm5/lib/task-content/model/field-type-resource.js +23 -0
  1186. package/esm5/lib/task-content/model/policy.js +31 -0
  1187. package/esm5/lib/task-content/model/resource-interface.js +2 -0
  1188. package/esm5/lib/task-content/model/split-data-group.js +2 -0
  1189. package/esm5/lib/task-content/model/subgrid.js +247 -0
  1190. package/esm5/lib/task-content/model/task-content-element-type.js +19 -0
  1191. package/esm5/lib/task-content/model/task-event-notification.js +15 -0
  1192. package/esm5/lib/task-content/model/task-event.js +10 -0
  1193. package/esm5/lib/task-content/public-api.js +21 -0
  1194. package/esm5/lib/task-content/services/field-converter.service.js +350 -0
  1195. package/esm5/lib/task-content/services/single-task-content.service.js +85 -0
  1196. package/esm5/lib/task-content/services/task-content.service.js +314 -0
  1197. package/esm5/lib/task-content/services/task-event.service.js +54 -0
  1198. package/esm5/lib/task-content/services/unlimited-task-content.service.js +77 -0
  1199. package/esm5/lib/task-content/task-content/abstract-task-content.component.js +687 -0
  1200. package/esm5/lib/toolbar/abstract-toolbar.component.js +24 -0
  1201. package/esm5/lib/toolbar/public-api.js +2 -0
  1202. package/esm5/lib/translate/language.service.js +89 -0
  1203. package/esm5/lib/translate/public-api.js +3 -0
  1204. package/esm5/lib/translate/translate-interceptor.js +25 -0
  1205. package/esm5/lib/translate/translate-lib.module.js +42 -0
  1206. package/esm5/lib/user/components/user-card/abstract-user-card.component.js +58 -0
  1207. package/esm5/lib/user/models/iuser.js +2 -0
  1208. package/esm5/lib/user/models/public-api.js +6 -0
  1209. package/esm5/lib/user/models/user.js +51 -0
  1210. package/esm5/lib/user/models/view-id-injection-tokens.js +4 -0
  1211. package/esm5/lib/user/profile/abstract-profile.component.js +40 -0
  1212. package/esm5/lib/user/public-api.js +12 -0
  1213. package/esm5/lib/user/services/user-comparator.service.js +28 -0
  1214. package/esm5/lib/user/services/user-list.service.js +220 -0
  1215. package/esm5/lib/user/services/user-preference.service.js +164 -0
  1216. package/esm5/lib/user/services/user.service.js +224 -0
  1217. package/esm5/lib/user/services/view-id.service.js +36 -0
  1218. package/esm5/lib/utility/array-to-observable.js +10 -0
  1219. package/esm5/lib/utility/call-chain/after-action.js +19 -0
  1220. package/esm5/lib/utility/call-chain/call-chain.service.js +36 -0
  1221. package/esm5/lib/utility/clear-time-information.js +11 -0
  1222. package/esm5/lib/utility/destroy-subscription.js +10 -0
  1223. package/esm5/lib/utility/get-field.js +48 -0
  1224. package/esm5/lib/utility/get-immediate-data.js +9 -0
  1225. package/esm5/lib/utility/grid-layout/grid-layout-helper.js +105 -0
  1226. package/esm5/lib/utility/grid-layout/model/grid-element-with-item.js +2 -0
  1227. package/esm5/lib/utility/grid-layout/model/grid-element.js +2 -0
  1228. package/esm5/lib/utility/grid-layout/model/grid-filler.js +52 -0
  1229. package/esm5/lib/utility/incrementing-counter.js +23 -0
  1230. package/esm5/lib/utility/loading-emitter.js +28 -0
  1231. package/esm5/lib/utility/loading-with-filter-emitter.js +41 -0
  1232. package/esm5/lib/utility/navigation-item-task-filter-factory.js +11 -0
  1233. package/esm5/lib/utility/navigation-item-task-search-categories-factory.js +35 -0
  1234. package/esm5/lib/utility/of-void.js +12 -0
  1235. package/esm5/lib/utility/pagination/load-all-pages.js +47 -0
  1236. package/esm5/lib/utility/pagination/page-has-content.js +8 -0
  1237. package/esm5/lib/utility/process-message-response.js +17 -0
  1238. package/esm5/lib/utility/public-api.js +47 -0
  1239. package/esm5/lib/utility/refresh-tree.js +9 -0
  1240. package/esm5/lib/utility/result-with-after-actions.js +34 -0
  1241. package/esm5/lib/utility/service/case-list-font-color.service.js +47 -0
  1242. package/esm5/lib/utility/service/spinner-overlay.service.js +51 -0
  1243. package/esm5/lib/utility/stop-propagation.js +5 -0
  1244. package/esm5/lib/utility/tests/mocks/mock-authentication-method-service.js +19 -0
  1245. package/esm5/lib/utility/tests/mocks/mock-authentication.service.js +33 -0
  1246. package/esm5/lib/utility/tests/mocks/mock-endpoint.js +46 -0
  1247. package/esm5/lib/utility/tests/mocks/mock-sign-up.service.js +31 -0
  1248. package/esm5/lib/utility/tests/mocks/mock-user-autocomplete-value.js +15 -0
  1249. package/esm5/lib/utility/tests/mocks/mock-user-preference.service.js +53 -0
  1250. package/esm5/lib/utility/tests/mocks/mock-user-resource.service.js +52 -0
  1251. package/esm5/lib/utility/tests/search-category-mock-dependencies.js +21 -0
  1252. package/esm5/lib/utility/tests/test-config.js +428 -0
  1253. package/esm5/lib/utility/tests/test-factory-methods.js +21 -0
  1254. package/esm5/lib/utility/tests/test-mock-dependencies.module.js +35 -0
  1255. package/esm5/lib/utility/tests/test-view-service.js +28 -0
  1256. package/esm5/lib/utility/tests/utility/configure-category.js +14 -0
  1257. package/esm5/lib/utility/tests/utility/create-mock-case-outcome.js +19 -0
  1258. package/esm5/lib/utility/tests/utility/create-mock-case.js +40 -0
  1259. package/esm5/lib/utility/tests/utility/create-mock-datagroup.js +39 -0
  1260. package/esm5/lib/utility/tests/utility/create-mock-field.js +47 -0
  1261. package/esm5/lib/utility/tests/utility/create-mock-get-data-outcome.js +20 -0
  1262. package/esm5/lib/utility/tests/utility/create-mock-immediate-data.js +17 -0
  1263. package/esm5/lib/utility/tests/utility/create-mock-net.js +34 -0
  1264. package/esm5/lib/utility/tests/utility/create-mock-page.js +24 -0
  1265. package/esm5/lib/utility/tests/utility/create-mock-petri-net-outcome.js +16 -0
  1266. package/esm5/lib/utility/tests/utility/create-mock-set-data-outcome.js +24 -0
  1267. package/esm5/lib/utility/tests/utility/create-mock-task-outcome.js +22 -0
  1268. package/esm5/lib/utility/tests/utility/create-mock-task.js +38 -0
  1269. package/esm5/lib/view/abstract/page-load-request-context.js +34 -0
  1270. package/esm5/lib/view/abstract/sortable-view.js +65 -0
  1271. package/esm5/lib/view/abstract/view-with-headers.js +27 -0
  1272. package/esm5/lib/view/case-view/abstract-case-view.js +47 -0
  1273. package/esm5/lib/view/case-view/components/case-list/abstract-case-list.component.js +92 -0
  1274. package/esm5/lib/view/case-view/models/case-page-load-request-result.js +2 -0
  1275. package/esm5/lib/view/case-view/models/case-view-params.js +2 -0
  1276. package/esm5/lib/view/case-view/models/new-case-configuration-injection-token.js +7 -0
  1277. package/esm5/lib/view/case-view/models/new-case-configuration.js +2 -0
  1278. package/esm5/lib/view/case-view/service/case-view-service.js +300 -0
  1279. package/esm5/lib/view/case-view/tabbed-case-view.js +75 -0
  1280. package/esm5/lib/view/public-api.js +42 -0
  1281. package/esm5/lib/view/task-view/abstract-task-view.js +18 -0
  1282. package/esm5/lib/view/task-view/models/injected-tabbed-task-view-data.js +2 -0
  1283. package/esm5/lib/view/task-view/models/injection-token-task-endpoint.js +6 -0
  1284. package/esm5/lib/view/task-view/models/task-endpoint.js +9 -0
  1285. package/esm5/lib/view/task-view/models/task-page-load-request-result.js +2 -0
  1286. package/esm5/lib/view/task-view/models/task-view-configuration-injection-token.js +20 -0
  1287. package/esm5/lib/view/task-view/models/task-view-configuration.js +2 -0
  1288. package/esm5/lib/view/task-view/models/task-view-params.js +2 -0
  1289. package/esm5/lib/view/task-view/service/task-view.service.js +333 -0
  1290. package/esm5/lib/view/task-view/tabbed-task-view.js +27 -0
  1291. package/esm5/lib/view/tree-case-view/model/tree-petriflow-identifiers.js +43 -0
  1292. package/esm5/lib/view/tree-case-view/tree-case-view.service.js +19 -0
  1293. package/esm5/lib/view/tree-case-view/tree-component/abstract-tree.component.js +165 -0
  1294. package/esm5/lib/view/tree-case-view/tree-component/add-child-node/abstract-add-child-node.component.js +16 -0
  1295. package/esm5/lib/view/tree-case-view/tree-component/case-tree.service.js +899 -0
  1296. package/esm5/lib/view/tree-case-view/tree-component/model/case-tree-node.js +106 -0
  1297. package/esm5/lib/view/tree-case-view/tree-component/model/case-tree-path.js +2 -0
  1298. package/esm5/lib/view/tree-case-view/tree-component/model/expansion-tree.js +2 -0
  1299. package/esm5/lib/view/tree-case-view/tree-component/remove-node/abstract-remove-node.component.js +16 -0
  1300. package/esm5/lib/view/tree-case-view/tree-task-content/abstract-tree-task-content.component.js +66 -0
  1301. package/esm5/lib/view/tree-case-view/tree-task-content/tree-task-content.service.js +308 -0
  1302. package/esm5/lib/view/workflow-view/abstract-workflow-view.component.js +74 -0
  1303. package/esm5/lib/view/workflow-view/models/injection-token-workflow-service.js +10 -0
  1304. package/esm5/lib/view/workflow-view/workflow-view.service.js +232 -0
  1305. package/esm5/netgrif-components-core.js +20 -0
  1306. package/esm5/public-api.js +45 -0
  1307. package/fesm2015/netgrif-components-core.js +28627 -0
  1308. package/fesm2015/netgrif-components-core.js.map +1 -0
  1309. package/fesm5/netgrif-components-core.js +31716 -0
  1310. package/fesm5/netgrif-components-core.js.map +1 -0
  1311. package/lib/admin/public-api.d.ts +6 -0
  1312. package/lib/admin/role-assignment/abstract-role-assignment.d.ts +31 -0
  1313. package/lib/admin/role-assignment/services/ProcessList.d.ts +43 -0
  1314. package/lib/admin/role-assignment/services/role-assignment.service.d.ts +16 -0
  1315. package/lib/admin/user-invite/abstract-user-invite.component.d.ts +30 -0
  1316. package/lib/admin/user-invite/services/organization-list.service.d.ts +16 -0
  1317. package/lib/admin/user-invite/services/user-invite.service.d.ts +9 -0
  1318. package/lib/allowed-nets/public-api.d.ts +3 -0
  1319. package/lib/allowed-nets/services/allowed-nets.service.d.ts +45 -0
  1320. package/lib/allowed-nets/services/base-allowed-nets.service.d.ts +27 -0
  1321. package/lib/allowed-nets/services/factory/allowed-nets-service-factory.d.ts +59 -0
  1322. package/lib/authentication/anonymous/anonymous.service.d.ts +18 -0
  1323. package/lib/authentication/authentication.factory.d.ts +5 -0
  1324. package/lib/authentication/authentication.module.d.ts +2 -0
  1325. package/lib/authentication/components/abstract-authentication-overlay.d.ts +21 -0
  1326. package/lib/authentication/models/credentials.d.ts +4 -0
  1327. package/lib/authentication/models/public-api.d.ts +3 -0
  1328. package/lib/authentication/models/transformer.d.ts +3 -0
  1329. package/lib/authentication/models/user.transformer.d.ts +8 -0
  1330. package/lib/authentication/public-api.d.ts +8 -0
  1331. package/lib/authentication/services/anonymous-authentication-interceptor.d.ts +8 -0
  1332. package/lib/authentication/services/authentication/authentication.service.d.ts +23 -0
  1333. package/lib/authentication/services/authentication-interceptor.d.ts +12 -0
  1334. package/lib/authentication/services/authentication-method.service.d.ts +8 -0
  1335. package/lib/authentication/services/guard/authentication-guard.service.d.ts +11 -0
  1336. package/lib/authentication/services/methods/basic-authentication/basic-authentication.service.d.ts +13 -0
  1337. package/lib/authentication/services/methods/null-authentication/null-authentication.service.d.ts +9 -0
  1338. package/lib/authentication/services/public-api.d.ts +5 -0
  1339. package/lib/authentication/session/null-storage.d.ts +9 -0
  1340. package/lib/authentication/session/public-api.d.ts +1 -0
  1341. package/lib/authentication/session/services/session.service.d.ts +35 -0
  1342. package/lib/authentication/sign-up/models/user-invitation-request.d.ts +5 -0
  1343. package/lib/authentication/sign-up/models/user-registration-request.d.ts +6 -0
  1344. package/lib/authentication/sign-up/public-api.d.ts +4 -0
  1345. package/lib/authentication/sign-up/services/sign-up.service.d.ts +29 -0
  1346. package/lib/authentication/sign-up/sign-up.module.d.ts +2 -0
  1347. package/lib/authorization/authority/authority-guard.service.d.ts +16 -0
  1348. package/lib/authorization/group/group-guard.service.d.ts +19 -0
  1349. package/lib/authorization/permission/permission.service.d.ts +22 -0
  1350. package/lib/authorization/public-api.d.ts +4 -0
  1351. package/lib/authorization/role/role-guard.service.d.ts +29 -0
  1352. package/lib/changed-fields/public-api.d.ts +1 -0
  1353. package/lib/changed-fields/services/changed-fields.service.d.ts +12 -0
  1354. package/lib/configuration/configuration.service.d.ts +69 -0
  1355. package/lib/configuration/public-api.d.ts +1 -0
  1356. package/lib/covalent/covalent.module.d.ts +2 -0
  1357. package/lib/currency/currency.module.d.ts +3 -0
  1358. package/lib/dashboard/cards/count-card/abstract-count-card.d.ts +19 -0
  1359. package/lib/dashboard/cards/custom-card/abstract-custom-card.d.ts +39 -0
  1360. package/lib/dashboard/cards/iframe-card/abstract-iframe-card.d.ts +10 -0
  1361. package/lib/dashboard/cards/model/card-grid-element.d.ts +4 -0
  1362. package/lib/dashboard/cards/model/count-card.d.ts +11 -0
  1363. package/lib/dashboard/cards/model/custom-dashboard-model/aggregation-query.d.ts +9 -0
  1364. package/lib/dashboard/cards/model/custom-dashboard-model/aggregation-result.d.ts +18 -0
  1365. package/lib/dashboard/cards/model/custom-dashboard-model/custom-card.d.ts +14 -0
  1366. package/lib/dashboard/cards/model/custom-dashboard-model/dashboard-event-content.d.ts +5 -0
  1367. package/lib/dashboard/cards/model/custom-dashboard-model/dashboard-multi-data.d.ts +6 -0
  1368. package/lib/dashboard/cards/model/custom-dashboard-model/dashboard-single-data.d.ts +5 -0
  1369. package/lib/dashboard/cards/model/dashboard-card-types.d.ts +11 -0
  1370. package/lib/dashboard/cards/model/dashboard-card.d.ts +7 -0
  1371. package/lib/dashboard/cards/model/graph-card.d.ts +5 -0
  1372. package/lib/dashboard/cards/model/iframe-card.d.ts +6 -0
  1373. package/lib/dashboard/dashboard-content/abstract-dashboard-content.d.ts +15 -0
  1374. package/lib/dashboard/dashboard-content/dashboard-params.d.ts +8 -0
  1375. package/lib/dashboard/public-api.d.ts +16 -0
  1376. package/lib/data-fields/boolean-field/abstract-boolean-field.component.d.ts +11 -0
  1377. package/lib/data-fields/boolean-field/models/boolean-field.d.ts +15 -0
  1378. package/lib/data-fields/button-field/abstract-button-field.component.d.ts +25 -0
  1379. package/lib/data-fields/button-field/models/button-field.d.ts +22 -0
  1380. package/lib/data-fields/data-field-template/abstract-data-field-template.component.d.ts +65 -0
  1381. package/lib/data-fields/data-field-template/models/wrapped-boolean.d.ts +6 -0
  1382. package/lib/data-fields/data-fields.module.d.ts +2 -0
  1383. package/lib/data-fields/date-field/abstract-date-field.component.d.ts +9 -0
  1384. package/lib/data-fields/date-field/models/custom-date-adapter.d.ts +4 -0
  1385. package/lib/data-fields/date-field/models/date-field.d.ts +10 -0
  1386. package/lib/data-fields/date-time-field/abstract-date-time-field.component.d.ts +9 -0
  1387. package/lib/data-fields/date-time-field/models/date-time-field.d.ts +10 -0
  1388. package/lib/data-fields/enumeration-field/abstract-enumeration-field.component.d.ts +6 -0
  1389. package/lib/data-fields/enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component.d.ts +21 -0
  1390. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.d.ts +26 -0
  1391. package/lib/data-fields/enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component.d.ts +17 -0
  1392. package/lib/data-fields/enumeration-field/enumeration-list-field/abstract-enumeration-list-field.component.d.ts +10 -0
  1393. package/lib/data-fields/enumeration-field/enumeration-select-field/abstract-enumeration-select-field.component.d.ts +10 -0
  1394. package/lib/data-fields/enumeration-field/enumeration-stepper-field/abstract-enumeration-stepper-field.component.d.ts +18 -0
  1395. package/lib/data-fields/enumeration-field/models/dynamic-enumeration-field.d.ts +25 -0
  1396. package/lib/data-fields/enumeration-field/models/enumeration-field.d.ts +35 -0
  1397. package/lib/data-fields/file-field/abstract-file-field.component.d.ts +147 -0
  1398. package/lib/data-fields/file-field/abstract-preview-dialog/preview-dialog-data.d.ts +9 -0
  1399. package/lib/data-fields/file-field/models/file-field-value.d.ts +4 -0
  1400. package/lib/data-fields/file-field/models/file-field.d.ts +73 -0
  1401. package/lib/data-fields/file-list-field/abstract-file-list-field.component.d.ts +73 -0
  1402. package/lib/data-fields/file-list-field/models/file-list-field-value.d.ts +4 -0
  1403. package/lib/data-fields/file-list-field/models/file-list-field.d.ts +41 -0
  1404. package/lib/data-fields/filter-field/abstract-filter-field-content.component.d.ts +12 -0
  1405. package/lib/data-fields/filter-field/abstract-filter-field.component.d.ts +14 -0
  1406. package/lib/data-fields/filter-field/models/filter-field-injection-token.d.ts +7 -0
  1407. package/lib/data-fields/filter-field/models/filter-field.d.ts +13 -0
  1408. package/lib/data-fields/i18n-field/abstract-i18n-field.component.d.ts +7 -0
  1409. package/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.d.ts +13 -0
  1410. package/lib/data-fields/i18n-field/i18n-text-field/abstract-i18n-text-field.component.d.ts +18 -0
  1411. package/lib/data-fields/i18n-field/models/i18n-field-value.d.ts +5 -0
  1412. package/lib/data-fields/i18n-field/models/i18n-field.d.ts +9 -0
  1413. package/lib/data-fields/models/abstract-data-field-component.d.ts +32 -0
  1414. package/lib/data-fields/models/abstract-data-field.d.ts +220 -0
  1415. package/lib/data-fields/models/behavior.d.ts +40 -0
  1416. package/lib/data-fields/models/boolean-label-enabled-token.d.ts +2 -0
  1417. package/lib/data-fields/models/changed-fields.d.ts +44 -0
  1418. package/lib/data-fields/models/component.d.ts +7 -0
  1419. package/lib/data-fields/models/format-filter.d.ts +5 -0
  1420. package/lib/data-fields/models/icon.d.ts +9 -0
  1421. package/lib/data-fields/models/invalid-data-policy-token.d.ts +10 -0
  1422. package/lib/data-fields/models/layout.d.ts +22 -0
  1423. package/lib/data-fields/models/material-appearance.d.ts +12 -0
  1424. package/lib/data-fields/models/properties.d.ts +3 -0
  1425. package/lib/data-fields/models/template-appearance.d.ts +13 -0
  1426. package/lib/data-fields/models/validation.d.ts +15 -0
  1427. package/lib/data-fields/multichoice-field/abstract-multichoice-field.component.d.ts +6 -0
  1428. package/lib/data-fields/multichoice-field/models/multichoice-field.d.ts +26 -0
  1429. package/lib/data-fields/multichoice-field/multichoice-list-field/abstract-multichoice-list-field.component.d.ts +10 -0
  1430. package/lib/data-fields/multichoice-field/multichoice-select-field/abstract-multichoice-select-field.component.d.ts +8 -0
  1431. package/lib/data-fields/number-field/abstract-number-errors.component.d.ts +13 -0
  1432. package/lib/data-fields/number-field/abstract-number-field.component.d.ts +8 -0
  1433. package/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.d.ts +15 -0
  1434. package/lib/data-fields/number-field/models/number-field.d.ts +36 -0
  1435. package/lib/data-fields/number-field/number-default-field/abstract-default-number-field.component.d.ts +5 -0
  1436. package/lib/data-fields/public-api.d.ts +67 -0
  1437. package/lib/data-fields/task-ref-field/model/task-ref-field.d.ts +8 -0
  1438. package/lib/data-fields/text-field/abstract-text-errors.component.d.ts +10 -0
  1439. package/lib/data-fields/text-field/abstract-text-field.component.d.ts +6 -0
  1440. package/lib/data-fields/text-field/html-textarea-field/abstract-html-textarea-field.component.d.ts +39 -0
  1441. package/lib/data-fields/text-field/models/text-area-field.d.ts +12 -0
  1442. package/lib/data-fields/text-field/models/text-field.d.ts +36 -0
  1443. package/lib/data-fields/text-field/password-text-field/abstract-password-text-field.component.d.ts +13 -0
  1444. package/lib/data-fields/text-field/rich-textarea-field/abstract-rich-textarea-field.component.d.ts +16 -0
  1445. package/lib/data-fields/text-field/simple-text-field/abstract-simple-text-field.component.d.ts +13 -0
  1446. package/lib/data-fields/text-field/textarea-field/abstract-textarea-field.component.d.ts +22 -0
  1447. package/lib/data-fields/time-instance-abstract-field/abstract-time-instance-field.component.d.ts +9 -0
  1448. package/lib/data-fields/time-instance-abstract-field/models/abstract-time-instance-field.d.ts +41 -0
  1449. package/lib/data-fields/user-field/abstract-user-field.component.d.ts +36 -0
  1450. package/lib/data-fields/user-field/models/user-field.d.ts +13 -0
  1451. package/lib/data-fields/user-field/models/user-value.d.ts +24 -0
  1452. package/lib/dialog/components/alert-dialog/alert-dialog.component.d.ts +19 -0
  1453. package/lib/dialog/components/alert-dialog/alert-dialog.module.d.ts +2 -0
  1454. package/lib/dialog/components/confirm-dialog/confirm-dialog.component.d.ts +24 -0
  1455. package/lib/dialog/components/confirm-dialog/confirm-dialog.module.d.ts +2 -0
  1456. package/lib/dialog/components/prompt-dialog/prompt-dialog.component.d.ts +23 -0
  1457. package/lib/dialog/components/prompt-dialog/prompt-dialog.module.d.ts +2 -0
  1458. package/lib/dialog/dialog.module.d.ts +2 -0
  1459. package/lib/dialog/models/DialogData.d.ts +8 -0
  1460. package/lib/dialog/models/DialogResult.d.ts +5 -0
  1461. package/lib/dialog/models/abstract-dialog.d.ts +18 -0
  1462. package/lib/dialog/public-api.d.ts +5 -0
  1463. package/lib/dialog/services/dialog.service.d.ts +43 -0
  1464. package/lib/event/model/event-constants.d.ts +6 -0
  1465. package/lib/event/model/event-outcomes/case-outcomes/case-event-outcome.d.ts +5 -0
  1466. package/lib/event/model/event-outcomes/case-outcomes/create-case-event-outcome.d.ts +3 -0
  1467. package/lib/event/model/event-outcomes/case-outcomes/delete-case-event-outcome.d.ts +3 -0
  1468. package/lib/event/model/event-outcomes/data-outcomes/get-data-event-outcome.d.ts +5 -0
  1469. package/lib/event/model/event-outcomes/data-outcomes/get-data-groups-event-outcome.d.ts +5 -0
  1470. package/lib/event/model/event-outcomes/data-outcomes/get-data-localised-event-outcome.d.ts +5 -0
  1471. package/lib/event/model/event-outcomes/data-outcomes/set-data-event-outcome.d.ts +5 -0
  1472. package/lib/event/model/event-outcomes/petrinet-outcomes/petri-net-event-outcome.d.ts +5 -0
  1473. package/lib/event/model/event-outcomes/task-outcomes/assign-task-event-outcome.d.ts +3 -0
  1474. package/lib/event/model/event-outcomes/task-outcomes/cancel-task-event-outcome.d.ts +3 -0
  1475. package/lib/event/model/event-outcomes/task-outcomes/delegate-task-event-outcome.d.ts +3 -0
  1476. package/lib/event/model/event-outcomes/task-outcomes/finish-task-event-outcome.d.ts +3 -0
  1477. package/lib/event/model/event-outcomes/task-outcomes/task-event-outcome.d.ts +5 -0
  1478. package/lib/event/public-api.d.ts +15 -0
  1479. package/lib/event/services/event.service.d.ts +7 -0
  1480. package/lib/event/services/interfaces/changed-fields-map.d.ts +6 -0
  1481. package/lib/event-queue/model/queued-event.d.ts +21 -0
  1482. package/lib/event-queue/public-api.d.ts +2 -0
  1483. package/lib/event-queue/services/event-queue.service.d.ts +21 -0
  1484. package/lib/filter/filter.repository.d.ts +59 -0
  1485. package/lib/filter/models/case-search-request-body.d.ts +88 -0
  1486. package/lib/filter/models/filter-type.d.ts +9 -0
  1487. package/lib/filter/models/filter.d.ts +68 -0
  1488. package/lib/filter/models/filters-filter-injection-token.d.ts +9 -0
  1489. package/lib/filter/models/merge-operator.d.ts +9 -0
  1490. package/lib/filter/models/merged-filter-params.d.ts +13 -0
  1491. package/lib/filter/models/merged-filter.d.ts +75 -0
  1492. package/lib/filter/models/simple-filter.d.ts +74 -0
  1493. package/lib/filter/models/task-search-request-body.d.ts +83 -0
  1494. package/lib/filter/models/user-filter-constants.d.ts +37 -0
  1495. package/lib/filter/public-api.d.ts +12 -0
  1496. package/lib/filter/user-filters.service.d.ts +116 -0
  1497. package/lib/forms/email-submission/abstract-email-submission-form.component.d.ts +13 -0
  1498. package/lib/forms/forgotten-password/abstract-forgotten-password.component.d.ts +16 -0
  1499. package/lib/forms/has-form.d.ts +10 -0
  1500. package/lib/forms/login/abstract-login-form.component.d.ts +24 -0
  1501. package/lib/forms/models/abstract-registration.component.d.ts +42 -0
  1502. package/lib/forms/models/password.validator.d.ts +7 -0
  1503. package/lib/forms/public-api.d.ts +6 -0
  1504. package/lib/forms/registration/abstract-registration-form.component.d.ts +19 -0
  1505. package/lib/groups/public-api.d.ts +2 -0
  1506. package/lib/groups/services/active-group.service.d.ts +49 -0
  1507. package/lib/groups/services/next-group.service.d.ts +52 -0
  1508. package/lib/header/abstract-header-service.d.ts +133 -0
  1509. package/lib/header/abstract-header.component.d.ts +52 -0
  1510. package/lib/header/case-header/case-header.service.d.ts +21 -0
  1511. package/lib/header/case-header/case-menta-enum.d.ts +7 -0
  1512. package/lib/header/header-modes/abstract-header-mode.component.d.ts +5 -0
  1513. package/lib/header/header-modes/edit-mode/abstract-edit-mode.component.d.ts +28 -0
  1514. package/lib/header/header-modes/loading-mode/abstract-loading-mode.component.d.ts +8 -0
  1515. package/lib/header/header-modes/search-mode/abstract-search-mode.component.d.ts +48 -0
  1516. package/lib/header/header-modes/sort-mode/abstract-sort-mode.component.d.ts +8 -0
  1517. package/lib/header/header-state.d.ts +28 -0
  1518. package/lib/header/models/default-headers-token.d.ts +2 -0
  1519. package/lib/header/models/fields-group.d.ts +9 -0
  1520. package/lib/header/models/header-column.d.ts +17 -0
  1521. package/lib/header/models/header-mode.d.ts +5 -0
  1522. package/lib/header/models/header-type.d.ts +5 -0
  1523. package/lib/header/models/public-api.d.ts +11 -0
  1524. package/lib/header/models/user-changes/column-header-change.d.ts +6 -0
  1525. package/lib/header/models/user-changes/edit-change-description.d.ts +7 -0
  1526. package/lib/header/models/user-changes/header-change-description.d.ts +5 -0
  1527. package/lib/header/models/user-changes/header-change-type.d.ts +18 -0
  1528. package/lib/header/models/user-changes/header-change.d.ts +17 -0
  1529. package/lib/header/models/user-changes/mode-change-description.d.ts +5 -0
  1530. package/lib/header/models/user-changes/search-change-description.d.ts +13 -0
  1531. package/lib/header/models/user-changes/sort-change-description.d.ts +13 -0
  1532. package/lib/header/public-api.d.ts +14 -0
  1533. package/lib/header/services/overflow.service.d.ts +28 -0
  1534. package/lib/header/task-header/task-header.service.d.ts +18 -0
  1535. package/lib/header/task-header/task-meta-enum.d.ts +9 -0
  1536. package/lib/header/workflow-header/workflow-header.service.d.ts +14 -0
  1537. package/lib/header/workflow-header/workflow-meta-enum.d.ts +8 -0
  1538. package/lib/legal/legal-notice/abstract-legal-notice.component.d.ts +13 -0
  1539. package/lib/legal/public-api.d.ts +1 -0
  1540. package/lib/logger/models/log-entry.d.ts +38 -0
  1541. package/lib/logger/public-api.d.ts +7 -0
  1542. package/lib/logger/publishers/console-log-publisher.d.ts +8 -0
  1543. package/lib/logger/publishers/local-storage-log-publisher.d.ts +9 -0
  1544. package/lib/logger/publishers/log-publisher.d.ts +8 -0
  1545. package/lib/logger/services/log-level.d.ts +8 -0
  1546. package/lib/logger/services/log-publisher.service.d.ts +22 -0
  1547. package/lib/logger/services/logger.service.d.ts +25 -0
  1548. package/lib/material/material.module.d.ts +2 -0
  1549. package/lib/moment/public-api.d.ts +1 -0
  1550. package/lib/moment/time-formats.d.ts +24 -0
  1551. package/lib/navigation/group-navigation-component-resolver/abstract-group-navigation-component-resolver.component.d.ts +21 -0
  1552. package/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.service.d.ts +14 -0
  1553. package/lib/navigation/group-navigation-component-resolver/group-navigation-view-id-segment-factory.d.ts +2 -0
  1554. package/lib/navigation/model/filter-case-injection-token.d.ts +6 -0
  1555. package/lib/navigation/model/group-navigation-component-resolver-component-injection-token.d.ts +6 -0
  1556. package/lib/navigation/model/group-navigation-constants.d.ts +57 -0
  1557. package/lib/navigation/model/group-navigation-item-label.d.ts +4 -0
  1558. package/lib/navigation/navigation-drawer/abstract-navigation-drawer.component.d.ts +49 -0
  1559. package/lib/navigation/navigation-drawer/abstract-navigation-resizable-drawer.component.d.ts +8 -0
  1560. package/lib/navigation/navigation-rail/abstract-navigation-rail.component.d.ts +14 -0
  1561. package/lib/navigation/navigation-tree/abstract-navigation-tree.component.d.ts +131 -0
  1562. package/lib/navigation/public-api.d.ts +13 -0
  1563. package/lib/navigation/quick-panel/components/abstract-quick-panel.component.d.ts +15 -0
  1564. package/lib/navigation/quick-panel/components/internal-link/abstract-internal-link.component.d.ts +7 -0
  1565. package/lib/navigation/quick-panel/components/language-selector/abstract-language-selector.component.d.ts +24 -0
  1566. package/lib/navigation/quick-panel/components/logout-shortcut/abstract-logout-shortcut.component.d.ts +14 -0
  1567. package/lib/navigation/quick-panel/components/paper-view.service.d.ts +6 -0
  1568. package/lib/navigation/quick-panel/public-api.d.ts +5 -0
  1569. package/lib/navigation/utility/filter-extraction.service.d.ts +18 -0
  1570. package/lib/navigation/utility/navigation-item-task-utility-methods.d.ts +33 -0
  1571. package/lib/panel/abstract/featured-value.d.ts +13 -0
  1572. package/lib/panel/abstract/panel-with-header-binding.d.ts +23 -0
  1573. package/lib/panel/abstract/panel-with-immediate-data.d.ts +18 -0
  1574. package/lib/panel/abstract/tabbed-virtual-scroll.component.d.ts +10 -0
  1575. package/lib/panel/abstract-panel.component.d.ts +23 -0
  1576. package/lib/panel/case-panel/abstract-case-panel.component.d.ts +41 -0
  1577. package/lib/panel/immediate/abstract-immediate-filter-text-content.component.d.ts +16 -0
  1578. package/lib/panel/immediate/abstract-immediate-filter-text.component.d.ts +14 -0
  1579. package/lib/panel/immediate/model/filter-text-injection-token.d.ts +10 -0
  1580. package/lib/panel/public-api.d.ts +12 -0
  1581. package/lib/panel/task-panel/abstract-task-panel.component.d.ts +109 -0
  1582. package/lib/panel/task-panel/models/disable-functions.d.ts +10 -0
  1583. package/lib/panel/task-panel-list/abstract-task-list.component.d.ts +46 -0
  1584. package/lib/panel/task-panel-list/task-panel-data/task-panel-data.d.ts +8 -0
  1585. package/lib/panel/workflow-panel/abstract-workflow-panel.component.d.ts +57 -0
  1586. package/lib/process/net.d.ts +95 -0
  1587. package/lib/process/netRole.d.ts +4 -0
  1588. package/lib/process/permissions.d.ts +30 -0
  1589. package/lib/process/petri-net-reference-with-permissions.d.ts +7 -0
  1590. package/lib/process/process.service.d.ts +94 -0
  1591. package/lib/process/public-api.d.ts +7 -0
  1592. package/lib/process/public-process.service.d.ts +8 -0
  1593. package/lib/process/rolesAndPermissions.d.ts +6 -0
  1594. package/lib/process/transaction.d.ts +5 -0
  1595. package/lib/process/transition.d.ts +7 -0
  1596. package/lib/public/factories/get-net-and-create-case.d.ts +6 -0
  1597. package/lib/public/factories/public-factory-resolver.d.ts +6 -0
  1598. package/lib/public/factories/public-search-factory.d.ts +9 -0
  1599. package/lib/public/public-api.d.ts +4 -0
  1600. package/lib/public/services/public-url-resolver.service.d.ts +6 -0
  1601. package/lib/resources/abstract-endpoint/abstract-resource.service.d.ts +38 -0
  1602. package/lib/resources/abstract-endpoint/count-service.d.ts +6 -0
  1603. package/lib/resources/engine-endpoint/case-resource.service.d.ts +86 -0
  1604. package/lib/resources/engine-endpoint/dashboard-resource.service.d.ts +10 -0
  1605. package/lib/resources/engine-endpoint/petri-net-resource.service.d.ts +105 -0
  1606. package/lib/resources/engine-endpoint/public/public-case-resource.service.d.ts +20 -0
  1607. package/lib/resources/engine-endpoint/public/public-petri-net-resource.service.d.ts +72 -0
  1608. package/lib/resources/engine-endpoint/public/public-task-resource.service.d.ts +95 -0
  1609. package/lib/resources/engine-endpoint/task-resource.service.d.ts +134 -0
  1610. package/lib/resources/engine-endpoint/user-resource.service.d.ts +133 -0
  1611. package/lib/resources/interface/assigned-user-policy.d.ts +4 -0
  1612. package/lib/resources/interface/author.d.ts +15 -0
  1613. package/lib/resources/interface/authority.d.ts +13 -0
  1614. package/lib/resources/interface/case-get-request-body.d.ts +79 -0
  1615. package/lib/resources/interface/case.d.ts +124 -0
  1616. package/lib/resources/interface/changed-field-container.d.ts +4 -0
  1617. package/lib/resources/interface/count.d.ts +15 -0
  1618. package/lib/resources/interface/create-case-request-body.d.ts +11 -0
  1619. package/lib/resources/interface/data-group-layout.d.ts +62 -0
  1620. package/lib/resources/interface/data-groups.d.ts +60 -0
  1621. package/lib/resources/interface/event-outcome.d.ts +10 -0
  1622. package/lib/resources/interface/field-alignment.d.ts +8 -0
  1623. package/lib/resources/interface/fields.d.ts +218 -0
  1624. package/lib/resources/interface/file-resource.d.ts +22 -0
  1625. package/lib/resources/interface/group.d.ts +18 -0
  1626. package/lib/resources/interface/immediate-data.d.ts +44 -0
  1627. package/lib/resources/interface/link.d.ts +18 -0
  1628. package/lib/resources/interface/message-resource.d.ts +24 -0
  1629. package/lib/resources/interface/page.d.ts +14 -0
  1630. package/lib/resources/interface/pagination.d.ts +21 -0
  1631. package/lib/resources/interface/petri-net-object-id.d.ts +12 -0
  1632. package/lib/resources/interface/petri-net-reference.d.ts +46 -0
  1633. package/lib/resources/interface/petri-net-request-body.d.ts +14 -0
  1634. package/lib/resources/interface/petri-net.d.ts +10 -0
  1635. package/lib/resources/interface/preferences.d.ts +16 -0
  1636. package/lib/resources/interface/process-role.d.ts +9 -0
  1637. package/lib/resources/interface/response-data.d.ts +19 -0
  1638. package/lib/resources/interface/task-layout.d.ts +11 -0
  1639. package/lib/resources/interface/task-reference.d.ts +17 -0
  1640. package/lib/resources/interface/task-set-data-request-body.d.ts +35 -0
  1641. package/lib/resources/interface/task.d.ts +72 -0
  1642. package/lib/resources/interface/user-process-role.d.ts +13 -0
  1643. package/lib/resources/interface/user-resource-small.d.ts +11 -0
  1644. package/lib/resources/interface/user-resource.d.ts +16 -0
  1645. package/lib/resources/public-api.d.ts +42 -0
  1646. package/lib/resources/resource-provider.service.d.ts +53 -0
  1647. package/lib/resources/types/nae-date-type.d.ts +7 -0
  1648. package/lib/routing/dynamic-navigation-route-provider/dynamic-navigation-route-provider.service.d.ts +12 -0
  1649. package/lib/routing/public-api.d.ts +5 -0
  1650. package/lib/routing/redirect-service/redirect.service.d.ts +22 -0
  1651. package/lib/routing/routing-builder/routing-builder.service.d.ts +23 -0
  1652. package/lib/routing/view-service/model/view-entry.d.ts +14 -0
  1653. package/lib/routing/view-service/view.service.d.ts +29 -0
  1654. package/lib/search/advanced-search-component/abstract-advanced-search.component.d.ts +25 -0
  1655. package/lib/search/advanced-search-component-initialization-service/advanced-search-component-initialization.service.d.ts +22 -0
  1656. package/lib/search/category-factory/category-factory.d.ts +55 -0
  1657. package/lib/search/category-factory/category-resolver.service.d.ts +48 -0
  1658. package/lib/search/category-factory/category-serialisation-pair.d.ts +10 -0
  1659. package/lib/search/category-factory/default-categories-factories.d.ts +32 -0
  1660. package/lib/search/category-factory/default-search-categories.module.d.ts +2 -0
  1661. package/lib/search/category-factory/optional-dependencies.d.ts +22 -0
  1662. package/lib/search/category-factory/search-categories-injection-token.d.ts +24 -0
  1663. package/lib/search/fulltext-search-component/abstract-fulltext-search.component.d.ts +7 -0
  1664. package/lib/search/header-search-service/header-search.service.d.ts +112 -0
  1665. package/lib/search/models/base-filter-injection-token.d.ts +6 -0
  1666. package/lib/search/models/base-filter.d.ts +18 -0
  1667. package/lib/search/models/boolean-operator.d.ts +7 -0
  1668. package/lib/search/models/category/autocomplete-category.d.ts +94 -0
  1669. package/lib/search/models/category/autocomplete-options.d.ts +17 -0
  1670. package/lib/search/models/category/case/case-author.d.ts +12 -0
  1671. package/lib/search/models/category/case/case-creation-date-time.d.ts +16 -0
  1672. package/lib/search/models/category/case/case-creation-date.d.ts +16 -0
  1673. package/lib/search/models/category/case/case-dataset.d.ts +94 -0
  1674. package/lib/search/models/category/case/case-net-attribute-autocomplete-category.d.ts +18 -0
  1675. package/lib/search/models/category/case/case-process.d.ts +27 -0
  1676. package/lib/search/models/category/case/case-role.d.ts +15 -0
  1677. package/lib/search/models/category/case/case-search.enum.d.ts +13 -0
  1678. package/lib/search/models/category/case/case-simple-dataset.d.ts +58 -0
  1679. package/lib/search/models/category/case/case-string-id.d.ts +11 -0
  1680. package/lib/search/models/category/case/case-task.d.ts +15 -0
  1681. package/lib/search/models/category/case/case-title.d.ts +11 -0
  1682. package/lib/search/models/category/case/case-visual-id.d.ts +11 -0
  1683. package/lib/search/models/category/categories.d.ts +20 -0
  1684. package/lib/search/models/category/category.d.ts +363 -0
  1685. package/lib/search/models/category/name-id-pair.d.ts +13 -0
  1686. package/lib/search/models/category/net-attribute-autocomplete-category.d.ts +55 -0
  1687. package/lib/search/models/category/net-attribute-pair.d.ts +17 -0
  1688. package/lib/search/models/category/no-configuration-autocomplete-category.d.ts +28 -0
  1689. package/lib/search/models/category/no-configuration-category.d.ts +30 -0
  1690. package/lib/search/models/category/no-configuration-user-autocomplete-category.d.ts +20 -0
  1691. package/lib/search/models/category/search-autocomplete-option.d.ts +21 -0
  1692. package/lib/search/models/category/search-input-type.d.ts +12 -0
  1693. package/lib/search/models/category/task/task-assignee.d.ts +12 -0
  1694. package/lib/search/models/category/task/task-net-attribute-autocomplete-category.d.ts +18 -0
  1695. package/lib/search/models/category/task/task-process.d.ts +19 -0
  1696. package/lib/search/models/category/task/task-role.d.ts +15 -0
  1697. package/lib/search/models/category/task/task-task.d.ts +15 -0
  1698. package/lib/search/models/category/user-autocomplete.d.ts +28 -0
  1699. package/lib/search/models/component-configuration/search-component-configuration-injection-token.d.ts +8 -0
  1700. package/lib/search/models/component-configuration/search-component-configuration.d.ts +21 -0
  1701. package/lib/search/models/component-configuration/search-mode.d.ts +7 -0
  1702. package/lib/search/models/configuration-input.d.ts +38 -0
  1703. package/lib/search/models/datafield-map-key.d.ts +28 -0
  1704. package/lib/search/models/escape-result.d.ts +13 -0
  1705. package/lib/search/models/operator/equals-date-time.d.ts +19 -0
  1706. package/lib/search/models/operator/equals-date.d.ts +19 -0
  1707. package/lib/search/models/operator/equals.d.ts +13 -0
  1708. package/lib/search/models/operator/in-range-date-time.d.ts +24 -0
  1709. package/lib/search/models/operator/in-range-date.d.ts +24 -0
  1710. package/lib/search/models/operator/in-range.d.ts +12 -0
  1711. package/lib/search/models/operator/is-null.d.ts +51 -0
  1712. package/lib/search/models/operator/less-than-date-time.d.ts +16 -0
  1713. package/lib/search/models/operator/less-than-date.d.ts +16 -0
  1714. package/lib/search/models/operator/less-than-equal-date-time.d.ts +16 -0
  1715. package/lib/search/models/operator/less-than-equal-date.d.ts +16 -0
  1716. package/lib/search/models/operator/less-than-equal.d.ts +10 -0
  1717. package/lib/search/models/operator/less-than.d.ts +10 -0
  1718. package/lib/search/models/operator/like.d.ts +18 -0
  1719. package/lib/search/models/operator/more-than-date-time.d.ts +16 -0
  1720. package/lib/search/models/operator/more-than-date.d.ts +16 -0
  1721. package/lib/search/models/operator/more-than-equal-date-time.d.ts +16 -0
  1722. package/lib/search/models/operator/more-than-equal-date.d.ts +16 -0
  1723. package/lib/search/models/operator/more-than-equal.d.ts +10 -0
  1724. package/lib/search/models/operator/more-than.d.ts +10 -0
  1725. package/lib/search/models/operator/not-equals-date-time.d.ts +13 -0
  1726. package/lib/search/models/operator/not-equals-date.d.ts +16 -0
  1727. package/lib/search/models/operator/not-equals.d.ts +18 -0
  1728. package/lib/search/models/operator/operator.d.ts +98 -0
  1729. package/lib/search/models/operator/operators.d.ts +29 -0
  1730. package/lib/search/models/operator/substring.d.ts +13 -0
  1731. package/lib/search/models/operator-template-part-type.d.ts +13 -0
  1732. package/lib/search/models/operator-template-part.d.ts +26 -0
  1733. package/lib/search/models/persistance/filter-metadata-allowed-nets.d.ts +14 -0
  1734. package/lib/search/models/persistance/filter-metadata.d.ts +29 -0
  1735. package/lib/search/models/persistance/filter-text-segment.d.ts +19 -0
  1736. package/lib/search/models/persistance/generator-metadata.d.ts +44 -0
  1737. package/lib/search/models/persistance/saved-filter-metadata.d.ts +26 -0
  1738. package/lib/search/models/predicate/clause-predicate.d.ts +56 -0
  1739. package/lib/search/models/predicate/editable-clause-predicate-with-generators.d.ts +24 -0
  1740. package/lib/search/models/predicate/editable-clause-predicate.d.ts +67 -0
  1741. package/lib/search/models/predicate/editable-elementary-predicate.d.ts +13 -0
  1742. package/lib/search/models/predicate/editable-predicate-with-generator.d.ts +28 -0
  1743. package/lib/search/models/predicate/editable-predicate.d.ts +14 -0
  1744. package/lib/search/models/predicate/elementary-predicate.d.ts +10 -0
  1745. package/lib/search/models/predicate/predicate-with-generator.d.ts +45 -0
  1746. package/lib/search/models/predicate/predicate.d.ts +52 -0
  1747. package/lib/search/models/predicate-removal-event.d.ts +13 -0
  1748. package/lib/search/models/query/query.d.ts +44 -0
  1749. package/lib/search/models/search-index.d.ts +74 -0
  1750. package/lib/search/models/wrap-result.d.ts +13 -0
  1751. package/lib/search/operator-service/operator-resolver.service.d.ts +23 -0
  1752. package/lib/search/operator-service/operator.service.d.ts +16 -0
  1753. package/lib/search/public-api.d.ts +98 -0
  1754. package/lib/search/search-clause-component/abstract-search-clause.component.d.ts +28 -0
  1755. package/lib/search/search-component/abstract-search.component.d.ts +86 -0
  1756. package/lib/search/search-configuration-input-component/abstract-search-configuration-input.component.d.ts +42 -0
  1757. package/lib/search/search-keyword-resolver-service/search-index-resolver.service.d.ts +25 -0
  1758. package/lib/search/search-operand-input-component/abstract-search-operand-input.component.d.ts +38 -0
  1759. package/lib/search/search-predicate-component/abstract-search-predicate.component.d.ts +64 -0
  1760. package/lib/search/search-service/search.service.d.ts +182 -0
  1761. package/lib/side-menu/content-components/filter-selector/abstract-filter-selector.component.d.ts +105 -0
  1762. package/lib/side-menu/content-components/filter-selector/filter-selector-list-item/abstract-filter-selector-list-item.component.d.ts +20 -0
  1763. package/lib/side-menu/content-components/filter-selector/model/filter-selector-injection-data.d.ts +20 -0
  1764. package/lib/side-menu/content-components/filter-selector/model/filtered-array.d.ts +25 -0
  1765. package/lib/side-menu/content-components/import-net/abstract-import-net.component.d.ts +50 -0
  1766. package/lib/side-menu/content-components/injection-tokens.d.ts +8 -0
  1767. package/lib/side-menu/content-components/load-filter/abstract-load-filter.component.d.ts +13 -0
  1768. package/lib/side-menu/content-components/load-filter/model/load-filter-injection-data.d.ts +8 -0
  1769. package/lib/side-menu/content-components/new-case/abstract-new-case.component.d.ts +62 -0
  1770. package/lib/side-menu/content-components/new-case/model/new-case-injection-data.d.ts +13 -0
  1771. package/lib/side-menu/content-components/option-selector/abstract-option-selector.component.d.ts +14 -0
  1772. package/lib/side-menu/content-components/option-selector/model/option-selector-injection-data.d.ts +24 -0
  1773. package/lib/side-menu/content-components/public-api.d.ts +17 -0
  1774. package/lib/side-menu/content-components/save-filter/abstract-save-filter.component.d.ts +15 -0
  1775. package/lib/side-menu/content-components/save-filter/model/save-filter-injection-data.d.ts +4 -0
  1776. package/lib/side-menu/content-components/user-assign/abstract-user-assign.component.d.ts +46 -0
  1777. package/lib/side-menu/content-components/user-assign/model/user-list-injected-data.d.ts +11 -0
  1778. package/lib/side-menu/content-components/user-assign/user-assign-list/abstract-user-assign-list.component.d.ts +83 -0
  1779. package/lib/side-menu/content-components/user-assign/user-assign-list/user-assign-item/abstract-user-assign-item.component.d.ts +16 -0
  1780. package/lib/side-menu/models/portal-wrapper.d.ts +9 -0
  1781. package/lib/side-menu/models/side-menu-control.d.ts +15 -0
  1782. package/lib/side-menu/models/side-menu-event.d.ts +6 -0
  1783. package/lib/side-menu/models/side-menu-injection-data.d.ts +3 -0
  1784. package/lib/side-menu/models/side-menu-ref.d.ts +8 -0
  1785. package/lib/side-menu/models/side-menu-size.d.ts +5 -0
  1786. package/lib/side-menu/net-version-visible-injection-token.d.ts +3 -0
  1787. package/lib/side-menu/public-api.d.ts +10 -0
  1788. package/lib/side-menu/services/side-menu.service.d.ts +35 -0
  1789. package/lib/side-menu/side-menu-container/abstract-side-menu-container.component.d.ts +16 -0
  1790. package/lib/side-menu/side-menu-injection-token.d.ts +3 -0
  1791. package/lib/snack-bar/components/error-snack-bar/error-snack-bar.component.d.ts +8 -0
  1792. package/lib/snack-bar/components/generic-snack-bar/generic-snack-bar.component.d.ts +8 -0
  1793. package/lib/snack-bar/components/success-snack-bar/success-snack-bar.component.d.ts +8 -0
  1794. package/lib/snack-bar/components/warning-snack-bar/warning-snack-bar.component.d.ts +8 -0
  1795. package/lib/snack-bar/models/abstract-snack-bar.d.ts +10 -0
  1796. package/lib/snack-bar/models/injection-token-snackbar.d.ts +4 -0
  1797. package/lib/snack-bar/models/snack-bar-enums.d.ts +9 -0
  1798. package/lib/snack-bar/models/snack-bar-injection-data.d.ts +5 -0
  1799. package/lib/snack-bar/public-api.d.ts +10 -0
  1800. package/lib/snack-bar/services/snack-bar.service.d.ts +18 -0
  1801. package/lib/snack-bar/snack-bar.module.d.ts +2 -0
  1802. package/lib/tabs/classes/opened-tab.d.ts +67 -0
  1803. package/lib/tabs/classes/tab-view.d.ts +123 -0
  1804. package/lib/tabs/interfaces.d.ts +135 -0
  1805. package/lib/tabs/public-api.d.ts +5 -0
  1806. package/lib/tabs/tab-creation-detector/abstract-tab-creation-detector.component.d.ts +18 -0
  1807. package/lib/tabs/tab-data-injection-token/tab-data-injection-token.d.ts +8 -0
  1808. package/lib/tabs/tab-view/abstract-tab-view.component.d.ts +38 -0
  1809. package/lib/task/interfaces/task-operations.d.ts +35 -0
  1810. package/lib/task/models/null-task-operations.d.ts +22 -0
  1811. package/lib/task/models/subject-task-operations.d.ts +37 -0
  1812. package/lib/task/models/task-operations-injection-token.d.ts +3 -0
  1813. package/lib/task/models/task-set-data-request-context.d.ts +11 -0
  1814. package/lib/task/public-api.d.ts +15 -0
  1815. package/lib/task/services/assign-policy.service.d.ts +81 -0
  1816. package/lib/task/services/assign-task.service.d.ts +78 -0
  1817. package/lib/task/services/cancel-task.service.d.ts +79 -0
  1818. package/lib/task/services/data-focus-policy.service.d.ts +16 -0
  1819. package/lib/task/services/delegate-task.service.d.ts +70 -0
  1820. package/lib/task/services/finish-policy.service.d.ts +38 -0
  1821. package/lib/task/services/finish-task.service.d.ts +76 -0
  1822. package/lib/task/services/selected-case.service.d.ts +35 -0
  1823. package/lib/task/services/task-data.service.d.ts +177 -0
  1824. package/lib/task/services/task-handling-service.d.ts +41 -0
  1825. package/lib/task/services/task-request-state.service.d.ts +64 -0
  1826. package/lib/task-content/field-component-resolver/abstract-field-component-resolver.component.d.ts +22 -0
  1827. package/lib/task-content/model/async-rendering-configuration-injection-token.d.ts +8 -0
  1828. package/lib/task-content/model/async-rendering-configuration.d.ts +22 -0
  1829. package/lib/task-content/model/datafield-grid-layout-element.d.ts +9 -0
  1830. package/lib/task-content/model/field-type-resource.d.ts +21 -0
  1831. package/lib/task-content/model/policy.d.ts +27 -0
  1832. package/lib/task-content/model/resource-interface.d.ts +37 -0
  1833. package/lib/task-content/model/split-data-group.d.ts +7 -0
  1834. package/lib/task-content/model/subgrid.d.ts +145 -0
  1835. package/lib/task-content/model/task-content-element-type.d.ts +19 -0
  1836. package/lib/task-content/model/task-event-notification.d.ts +32 -0
  1837. package/lib/task-content/model/task-event.d.ts +8 -0
  1838. package/lib/task-content/public-api.d.ts +17 -0
  1839. package/lib/task-content/services/field-converter.service.d.ts +58 -0
  1840. package/lib/task-content/services/single-task-content.service.d.ts +42 -0
  1841. package/lib/task-content/services/task-content.service.d.ts +125 -0
  1842. package/lib/task-content/services/task-event.service.d.ts +28 -0
  1843. package/lib/task-content/services/unlimited-task-content.service.d.ts +42 -0
  1844. package/lib/task-content/task-content/abstract-task-content.component.d.ts +263 -0
  1845. package/lib/toolbar/abstract-toolbar.component.d.ts +15 -0
  1846. package/lib/toolbar/public-api.d.ts +1 -0
  1847. package/lib/translate/language.service.d.ts +20 -0
  1848. package/lib/translate/public-api.d.ts +2 -0
  1849. package/lib/translate/translate-interceptor.d.ts +8 -0
  1850. package/lib/translate/translate-lib.module.d.ts +5 -0
  1851. package/lib/user/components/user-card/abstract-user-card.component.d.ts +22 -0
  1852. package/lib/user/models/iuser.d.ts +19 -0
  1853. package/lib/user/models/public-api.d.ts +3 -0
  1854. package/lib/user/models/user.d.ts +29 -0
  1855. package/lib/user/models/view-id-injection-tokens.d.ts +3 -0
  1856. package/lib/user/profile/abstract-profile.component.d.ts +14 -0
  1857. package/lib/user/public-api.d.ts +8 -0
  1858. package/lib/user/services/user-comparator.service.d.ts +7 -0
  1859. package/lib/user/services/user-list.service.d.ts +111 -0
  1860. package/lib/user/services/user-preference.service.d.ts +37 -0
  1861. package/lib/user/services/user.service.d.ts +65 -0
  1862. package/lib/user/services/view-id.service.d.ts +7 -0
  1863. package/lib/utility/array-to-observable.d.ts +6 -0
  1864. package/lib/utility/call-chain/after-action.d.ts +8 -0
  1865. package/lib/utility/call-chain/call-chain.service.d.ts +16 -0
  1866. package/lib/utility/clear-time-information.d.ts +6 -0
  1867. package/lib/utility/destroy-subscription.d.ts +6 -0
  1868. package/lib/utility/get-field.d.ts +34 -0
  1869. package/lib/utility/get-immediate-data.d.ts +8 -0
  1870. package/lib/utility/grid-layout/grid-layout-helper.d.ts +10 -0
  1871. package/lib/utility/grid-layout/model/grid-element-with-item.d.ts +4 -0
  1872. package/lib/utility/grid-layout/model/grid-element.d.ts +12 -0
  1873. package/lib/utility/grid-layout/model/grid-filler.d.ts +10 -0
  1874. package/lib/utility/incrementing-counter.d.ts +14 -0
  1875. package/lib/utility/loading-emitter.d.ts +8 -0
  1876. package/lib/utility/loading-with-filter-emitter.d.ts +12 -0
  1877. package/lib/utility/navigation-item-task-filter-factory.d.ts +9 -0
  1878. package/lib/utility/navigation-item-task-search-categories-factory.d.ts +15 -0
  1879. package/lib/utility/of-void.d.ts +6 -0
  1880. package/lib/utility/pagination/load-all-pages.d.ts +13 -0
  1881. package/lib/utility/pagination/page-has-content.d.ts +6 -0
  1882. package/lib/utility/process-message-response.d.ts +10 -0
  1883. package/lib/utility/public-api.d.ts +45 -0
  1884. package/lib/utility/refresh-tree.d.ts +5 -0
  1885. package/lib/utility/result-with-after-actions.d.ts +21 -0
  1886. package/lib/utility/service/case-list-font-color.service.d.ts +15 -0
  1887. package/lib/utility/service/spinner-overlay.service.d.ts +13 -0
  1888. package/lib/utility/stop-propagation.d.ts +1 -0
  1889. package/lib/utility/tests/mocks/mock-authentication-method-service.d.ts +8 -0
  1890. package/lib/utility/tests/mocks/mock-authentication.service.d.ts +10 -0
  1891. package/lib/utility/tests/mocks/mock-endpoint.d.ts +25 -0
  1892. package/lib/utility/tests/mocks/mock-sign-up.service.d.ts +20 -0
  1893. package/lib/utility/tests/mocks/mock-user-autocomplete-value.d.ts +7 -0
  1894. package/lib/utility/tests/mocks/mock-user-preference.service.d.ts +15 -0
  1895. package/lib/utility/tests/mocks/mock-user-resource.service.d.ts +17 -0
  1896. package/lib/utility/tests/search-category-mock-dependencies.d.ts +6 -0
  1897. package/lib/utility/tests/test-config.d.ts +4 -0
  1898. package/lib/utility/tests/test-factory-methods.d.ts +7 -0
  1899. package/lib/utility/tests/test-mock-dependencies.module.d.ts +12 -0
  1900. package/lib/utility/tests/test-view-service.d.ts +7 -0
  1901. package/lib/utility/tests/utility/configure-category.d.ts +13 -0
  1902. package/lib/utility/tests/utility/create-mock-case-outcome.d.ts +10 -0
  1903. package/lib/utility/tests/utility/create-mock-case.d.ts +8 -0
  1904. package/lib/utility/tests/utility/create-mock-datagroup.d.ts +18 -0
  1905. package/lib/utility/tests/utility/create-mock-field.d.ts +19 -0
  1906. package/lib/utility/tests/utility/create-mock-get-data-outcome.d.ts +7 -0
  1907. package/lib/utility/tests/utility/create-mock-immediate-data.d.ts +8 -0
  1908. package/lib/utility/tests/utility/create-mock-net.d.ts +17 -0
  1909. package/lib/utility/tests/utility/create-mock-page.d.ts +7 -0
  1910. package/lib/utility/tests/utility/create-mock-petri-net-outcome.d.ts +9 -0
  1911. package/lib/utility/tests/utility/create-mock-set-data-outcome.d.ts +12 -0
  1912. package/lib/utility/tests/utility/create-mock-task-outcome.d.ts +11 -0
  1913. package/lib/utility/tests/utility/create-mock-task.d.ts +8 -0
  1914. package/lib/view/abstract/page-load-request-context.d.ts +40 -0
  1915. package/lib/view/abstract/sortable-view.d.ts +19 -0
  1916. package/lib/view/abstract/view-with-headers.d.ts +13 -0
  1917. package/lib/view/case-view/abstract-case-view.d.ts +25 -0
  1918. package/lib/view/case-view/components/case-list/abstract-case-list.component.d.ts +35 -0
  1919. package/lib/view/case-view/models/case-page-load-request-result.d.ts +14 -0
  1920. package/lib/view/case-view/models/case-view-params.d.ts +3 -0
  1921. package/lib/view/case-view/models/new-case-configuration-injection-token.d.ts +7 -0
  1922. package/lib/view/case-view/models/new-case-configuration.d.ts +9 -0
  1923. package/lib/view/case-view/service/case-view-service.d.ts +73 -0
  1924. package/lib/view/case-view/tabbed-case-view.d.ts +26 -0
  1925. package/lib/view/public-api.d.ts +35 -0
  1926. package/lib/view/task-view/abstract-task-view.d.ts +12 -0
  1927. package/lib/view/task-view/models/injected-tabbed-task-view-data.d.ts +12 -0
  1928. package/lib/view/task-view/models/injection-token-task-endpoint.d.ts +6 -0
  1929. package/lib/view/task-view/models/task-endpoint.d.ts +7 -0
  1930. package/lib/view/task-view/models/task-page-load-request-result.d.ts +14 -0
  1931. package/lib/view/task-view/models/task-view-configuration-injection-token.d.ts +13 -0
  1932. package/lib/view/task-view/models/task-view-configuration.d.ts +19 -0
  1933. package/lib/view/task-view/models/task-view-params.d.ts +3 -0
  1934. package/lib/view/task-view/service/task-view.service.d.ts +68 -0
  1935. package/lib/view/task-view/tabbed-task-view.d.ts +11 -0
  1936. package/lib/view/tree-case-view/model/tree-petriflow-identifiers.d.ts +41 -0
  1937. package/lib/view/tree-case-view/tree-case-view.service.d.ts +9 -0
  1938. package/lib/view/tree-case-view/tree-component/abstract-tree.component.d.ts +99 -0
  1939. package/lib/view/tree-case-view/tree-component/add-child-node/abstract-add-child-node.component.d.ts +8 -0
  1940. package/lib/view/tree-case-view/tree-component/case-tree.service.d.ts +300 -0
  1941. package/lib/view/tree-case-view/tree-component/model/case-tree-node.d.ts +57 -0
  1942. package/lib/view/tree-case-view/tree-component/model/case-tree-path.d.ts +8 -0
  1943. package/lib/view/tree-case-view/tree-component/model/expansion-tree.d.ts +6 -0
  1944. package/lib/view/tree-case-view/tree-component/remove-node/abstract-remove-node.component.d.ts +8 -0
  1945. package/lib/view/tree-case-view/tree-task-content/abstract-tree-task-content.component.d.ts +32 -0
  1946. package/lib/view/tree-case-view/tree-task-content/tree-task-content.service.d.ts +112 -0
  1947. package/lib/view/workflow-view/abstract-workflow-view.component.d.ts +30 -0
  1948. package/lib/view/workflow-view/models/injection-token-workflow-service.d.ts +10 -0
  1949. package/lib/view/workflow-view/workflow-view.service.d.ts +52 -0
  1950. package/netgrif-components-core.d.ts +25 -0
  1951. package/netgrif-components-core.metadata.json +1 -0
  1952. package/package.json +79 -0
  1953. package/public-api.d.ts +39 -0
  1954. package/schematics/_commons/angular-cli-devkit-core-strings.d.ts +93 -0
  1955. package/schematics/_commons/angular-cli-devkit-core-strings.js +167 -0
  1956. package/schematics/_commons/angular-cli-devkit-core-strings.js.map +1 -0
  1957. package/schematics/_commons/import-to-add.d.ts +5 -0
  1958. package/schematics/_commons/import-to-add.js +11 -0
  1959. package/schematics/_commons/import-to-add.js.map +1 -0
  1960. package/schematics/_commons/view-class-info.d.ts +22 -0
  1961. package/schematics/_commons/view-class-info.js +58 -0
  1962. package/schematics/_commons/view-class-info.js.map +1 -0
  1963. package/schematics/_utility/models/file-data.d.ts +6 -0
  1964. package/schematics/_utility/models/file-data.js +3 -0
  1965. package/schematics/_utility/models/file-data.js.map +1 -0
  1966. package/schematics/_utility/models/file-system-node.d.ts +6 -0
  1967. package/schematics/_utility/models/file-system-node.js +12 -0
  1968. package/schematics/_utility/models/file-system-node.js.map +1 -0
  1969. package/schematics/_utility/models/project-info.d.ts +13 -0
  1970. package/schematics/_utility/models/project-info.js +20 -0
  1971. package/schematics/_utility/models/project-info.js.map +1 -0
  1972. package/schematics/_utility/modified-library-functions.d.ts +24 -0
  1973. package/schematics/_utility/modified-library-functions.js +150 -0
  1974. package/schematics/_utility/modified-library-functions.js.map +1 -0
  1975. package/schematics/_utility/utility-functions.d.ts +60 -0
  1976. package/schematics/_utility/utility-functions.js +221 -0
  1977. package/schematics/_utility/utility-functions.js.map +1 -0
  1978. package/schematics/add/add/index.d.ts +2 -0
  1979. package/schematics/add/add/index.js +27 -0
  1980. package/schematics/add/add/index.js.map +1 -0
  1981. package/schematics/add/create-nae-files/files/app-routing.module.ts.template +13 -0
  1982. package/schematics/add/create-nae-files/index.d.ts +2 -0
  1983. package/schematics/add/create-nae-files/index.js +154 -0
  1984. package/schematics/add/create-nae-files/index.js.map +1 -0
  1985. package/schematics/add/create-nae-files/schema.json +7 -0
  1986. package/schematics/collection.json +30 -0
  1987. package/schematics/configuration-service/files/__project@dasherize__-configuration.service.ts.template +13 -0
  1988. package/schematics/configuration-service/schema.json +7 -0
  1989. package/schematics/configuration-service/schematic-create-configuration-service.d.ts +2 -0
  1990. package/schematics/configuration-service/schematic-create-configuration-service.js +41 -0
  1991. package/schematics/configuration-service/schematic-create-configuration-service.js.map +1 -0
  1992. package/schematics/migrations/4.1/migration-4.1.d.ts +5 -0
  1993. package/schematics/migrations/4.1/migration-4.1.js +37 -0
  1994. package/schematics/migrations/4.1/migration-4.1.js.map +1 -0
  1995. package/schematics/migrations.json +10 -0
  1996. package/schematics/view/_utility/view-service-functions.d.ts +9 -0
  1997. package/schematics/view/_utility/view-service-functions.js +59 -0
  1998. package/schematics/view/_utility/view-service-functions.js.map +1 -0
  1999. package/schematics/view/_utility/view-utility-functions.d.ts +7 -0
  2000. package/schematics/view/_utility/view-utility-functions.js +53 -0
  2001. package/schematics/view/_utility/view-utility-functions.js.map +1 -0
  2002. package/schematics/view-service/files/__project@dasherize__-view.service.ts.template +14 -0
  2003. package/schematics/view-service/schema.json +7 -0
  2004. package/schematics/view-service/schematic-create-view-service.d.ts +2 -0
  2005. package/schematics/view-service/schematic-create-view-service.js +25 -0
  2006. package/schematics/view-service/schematic-create-view-service.js.map +1 -0
  2007. package/src/assets/i18n/de.json +419 -0
  2008. package/src/assets/i18n/en.json +419 -0
  2009. package/src/assets/i18n/sk.json +419 -0
  2010. package/src/schema/nae-schema.json +770 -0
@@ -0,0 +1,17 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/drag-drop"),require("@angular/cdk/a11y"),require("@angular/cdk/stepper"),require("@angular/cdk/table"),require("@angular/cdk/tree"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/forms"),require("@angular/flex-layout"),require("@angular/material-moment-adapter"),require("@angular/material/autocomplete"),require("@angular/material/badge"),require("@angular/material/bottom-sheet"),require("@angular/material/button"),require("@angular/material/button-toggle"),require("@angular/material/card"),require("@angular/material/checkbox"),require("@angular/material/chips"),require("@angular/material/stepper"),require("@angular/material/datepicker"),require("@angular/material/dialog"),require("@angular/material/divider"),require("@angular/material/expansion"),require("@angular/material/grid-list"),require("@angular/material/icon"),require("@angular/material/input"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/paginator"),require("@angular/material/progress-bar"),require("@angular/material/progress-spinner"),require("@angular/material/radio"),require("@angular/material/core"),require("@angular/material/slider"),require("@angular/material/sidenav"),require("@angular/material/select"),require("@angular/material/slide-toggle"),require("@angular/material/snack-bar"),require("@angular/material/sort"),require("@angular/material/table"),require("@angular/material/tabs"),require("@angular/material/toolbar"),require("@angular/material/tooltip"),require("@angular/material/tree"),require("@angular/material/form-field"),require("@covalent/highlight"),require("@covalent/markdown"),require("@covalent/core/common"),require("@covalent/core/layout"),require("@covalent/core/steps"),require("@covalent/text-editor"),require("@angular/common/locales/en"),require("@angular/common/locales/sk"),require("@angular/common/locales/de"),require("rxjs"),require("@angular/common/http"),require("angular-resize-event"),require("@angular-material-components/datetime-picker"),require("@angular-material-components/moment-adapter"),require("@ngx-translate/core"),require("@ngx-translate/http-loader"),require("rxjs/operators"),require("@angular/platform-browser"),require("moment"),require("@angular/router"),require("@angular/cdk/overlay"),require("natural-orderby"),require("angular2-hotkeys"),require("semver"),require("rxjs/internal-compatibility"),require("hammerjs"),require("@angular/cdk/layout"),require("@angular/common/http/testing")):"function"==typeof define&&define.amd?define("@netgrif/components-core",["exports","@angular/core","@angular/common","@angular/cdk/drag-drop","@angular/cdk/a11y","@angular/cdk/stepper","@angular/cdk/table","@angular/cdk/tree","@angular/cdk/portal","@angular/cdk/scrolling","@angular/forms","@angular/flex-layout","@angular/material-moment-adapter","@angular/material/autocomplete","@angular/material/badge","@angular/material/bottom-sheet","@angular/material/button","@angular/material/button-toggle","@angular/material/card","@angular/material/checkbox","@angular/material/chips","@angular/material/stepper","@angular/material/datepicker","@angular/material/dialog","@angular/material/divider","@angular/material/expansion","@angular/material/grid-list","@angular/material/icon","@angular/material/input","@angular/material/list","@angular/material/menu","@angular/material/paginator","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/material/radio","@angular/material/core","@angular/material/slider","@angular/material/sidenav","@angular/material/select","@angular/material/slide-toggle","@angular/material/snack-bar","@angular/material/sort","@angular/material/table","@angular/material/tabs","@angular/material/toolbar","@angular/material/tooltip","@angular/material/tree","@angular/material/form-field","@covalent/highlight","@covalent/markdown","@covalent/core/common","@covalent/core/layout","@covalent/core/steps","@covalent/text-editor","@angular/common/locales/en","@angular/common/locales/sk","@angular/common/locales/de","rxjs","@angular/common/http","angular-resize-event","@angular-material-components/datetime-picker","@angular-material-components/moment-adapter","@ngx-translate/core","@ngx-translate/http-loader","rxjs/operators","@angular/platform-browser","moment","@angular/router","@angular/cdk/overlay","natural-orderby","angular2-hotkeys","semver","rxjs/internal-compatibility","hammerjs","@angular/cdk/layout","@angular/common/http/testing"],t):t(((e=e||self).netgrif=e.netgrif||{},e.netgrif["components-core"]={}),e.ng.core,e.ng.common,e.ng.cdk.dragDrop,e.ng.cdk.a11y,e.ng.cdk.stepper,e.ng.cdk.table,e.ng.cdk.tree,e.ng.cdk.portal,e.ng.cdk.scrolling,e.ng.forms,e.ng.flexLayout,e.ng.materialMomentAdapter,e.ng.material.autocomplete,e.ng.material.badge,e.ng.material.bottomSheet,e.ng.material.button,e.ng.material.buttonToggle,e.ng.material.card,e.ng.material.checkbox,e.ng.material.chips,e.ng.material.stepper,e.ng.material.datepicker,e.ng.material.dialog,e.ng.material.divider,e.ng.material.expansion,e.ng.material.gridList,e.ng.material.icon,e.ng.material.input,e.ng.material.list,e.ng.material.menu,e.ng.material.paginator,e.ng.material.progressBar,e.ng.material.progressSpinner,e.ng.material.radio,e.ng.material.core,e.ng.material.slider,e.ng.material.sidenav,e.ng.material.select,e.ng.material.slideToggle,e.ng.material.snackBar,e.ng.material.sort,e.ng.material.table,e.ng.material.tabs,e.ng.material.toolbar,e.ng.material.tooltip,e.ng.material.tree,e.ng.material.formField,e.highlight,e.markdown,e.common$1,e.layout,e.steps,e.textEditor,e.ng.common.locales.en,e.ng.common.locales.sk,e.ng.common.locales.de,e.rxjs,e.ng.common.http,e.angularResizeEvent,e.datetimePicker,e.momentAdapter,e.core$2,e.httpLoader,e.rxjs.operators,e.ng.platformBrowser,e.moment,e.ng.router,e.ng.cdk.overlay,e.naturalOrderby,e.angular2Hotkeys,e.semver,e.rxjs["internal-compatibility"],null,e.ng.cdk.layout,e.ng.common.http.testing)}(this,(function(e,t,r,n,i,o,a,s,u,c,l,p,d,h,f,g,y,v,m,_,b,T,S,I,E,w,C,k,O,F,A,R,P,N,D,L,j,M,x,V,U,$,B,z,H,G,q,W,Q,K,Y,X,Z,J,ee,te,re,ne,ie,oe,ae,se,ue,ce,le,pe,de,he,fe,ge,ye,ve,me,_e,be,Te){"use strict";ee=ee&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee,te=te&&Object.prototype.hasOwnProperty.call(te,"default")?te.default:te,re=re&&Object.prototype.hasOwnProperty.call(re,"default")?re.default:re,de=de&&Object.prototype.hasOwnProperty.call(de,"default")?de.default:de,ve=ve&&Object.prototype.hasOwnProperty.call(ve,"default")?ve.default:ve;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ var Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function Ie(e,t){function r(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ee=function(){return(Ee=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function we(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ce(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function ke(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ce(arguments[t]));return e}var Oe,Fe=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[r.CommonModule,p.FlexLayoutModule],exports:[p.FlexLayoutModule,i.A11yModule,o.CdkStepperModule,a.CdkTableModule,s.CdkTreeModule,n.DragDropModule,h.MatAutocompleteModule,f.MatBadgeModule,g.MatBottomSheetModule,y.MatButtonModule,v.MatButtonToggleModule,m.MatCardModule,_.MatCheckboxModule,b.MatChipsModule,T.MatStepperModule,S.MatDatepickerModule,I.MatDialogModule,E.MatDividerModule,w.MatExpansionModule,C.MatGridListModule,k.MatIconModule,O.MatInputModule,F.MatListModule,A.MatMenuModule,d.MatMomentDateModule,R.MatPaginatorModule,P.MatProgressBarModule,N.MatProgressSpinnerModule,D.MatRadioModule,L.MatRippleModule,x.MatSelectModule,M.MatSidenavModule,j.MatSliderModule,V.MatSlideToggleModule,U.MatSnackBarModule,$.MatSortModule,B.MatTableModule,z.MatTabsModule,H.MatToolbarModule,G.MatTooltipModule,q.MatTreeModule,u.PortalModule,c.ScrollingModule,L.MatOptionModule,W.MatFormFieldModule,l.FormsModule,l.ReactiveFormsModule]}]}],e}(),Ae=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[Q.CovalentHighlightModule,K.CovalentMarkdownModule,X.CovalentLayoutModule,Z.CovalentStepsModule,Y.CovalentCommonModule,J.CovalentTextEditorModule]}]}],e}(),Re=function(){function e(){r.registerLocaleData(ee),r.registerLocaleData(te),r.registerLocaleData(re)}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[r.CommonModule],providers:[r.CurrencyPipe]}]}],e.ctorParameters=function(){return[]},e}();(Oe=e.LogLevel||(e.LogLevel={}))[Oe.ALL=0]="ALL",Oe[Oe.DEBUG=1]="DEBUG",Oe[Oe.INFO=2]="INFO",Oe[Oe.WARN=3]="WARN",Oe[Oe.ERROR=4]="ERROR",Oe[Oe.OFF=6]="OFF";var Pe,Ne=function(){function t(e,t,r,n){this.date=new Date,this.level=e,this.message=t,this.params=r;this.config=Ee(Ee({},{logWithDate:!0,serializeParams:!0,includeLogLevel:!0}),n)}return Object.defineProperty(t.prototype,"levelString",{get:function(){return e.LogLevel[this.level.toString()]},enumerable:!1,configurable:!0}),t.prototype.serializeParams=function(){return this.config.serializeParams?JSON.stringify(this.params):""},t.prototype.toString=function(){var e="";return this.config.logWithDate&&(e+="["+this.date.toISOString()+"] "),this.config.includeLogLevel&&(e+="<"+this.levelString+"> "),e+=this.message,this.config.serializeParams&&this.params&&(this.params instanceof Array?0!==this.params.length&&(e+=" , params: "+this.serializeParams()):e+=" , params: "+this.serializeParams()),e},t}(),De=function(e){var t=this;e.register(this).subscribe((function(e){e&&t.log(e)}))},Le=function(t){function r(e){return t.call(this,e)||this}return Ie(r,t),r.prototype.clear=function(){console.clear()},r.prototype.log=function(t){if(t)switch(t.level){case e.LogLevel.DEBUG:console.debug(t.toString());break;case e.LogLevel.ERROR:console.error(t.toString());break;case e.LogLevel.INFO:console.info(t.toString());break;case e.LogLevel.WARN:console.warn(t.toString());break;default:console.log(t.toString())}},r}(De),je=function(e){function t(r,n){var i=e.call(this,r)||this;return i.location=n||t.DEFAULT_KEY,i}return Ie(t,e),t.prototype.clear=function(){localStorage.removeItem(this.location)},t.prototype.log=function(e){if(e){var t,r=localStorage.getItem(this.location);(t=r?JSON.parse(r):[]).push(e);try{localStorage.setItem(this.location,JSON.stringify(t))}catch(e){var n=t.splice(0,1)[0];console.debug("Log entry from "+n.date.toISOString()+" was deleted from the LocalStorage '"+this.location+"'");try{localStorage.setItem(this.location,JSON.stringify(t))}catch(e){throw console.error(e),new Error(e.message)}}}},t.DEFAULT_KEY="application-log",t}(De),Me=function(){function e(e){this.configuration=e,this.resolveEndpointURLs(),this._dataFieldConfiguration=this.getConfigurationSubtree(["services","dataFields"])}return e.prototype.getAsync=function(){return ne.of(this.get())},e.prototype.get=function(){return this.createConfigurationCopy()},e.prototype.getViewByPath=function(e){for(var t=e.split("/"),r=["views"],n=0;n<t.length;n++)n>0&&r.push("children"),r.push(t[n]);return this.getConfigurationSubtree(r)},e.prototype.getViewByUrl=function(e){var t=this.createConfigurationCopy().views;if(t){var r=new Map;return void 0===(r=this.getChildren(t,r,"")).get(e)&&r.forEach((function(t,r){if(r.includes("/**")&&e.includes(r.split("/**")[0]))return t})),r.get(e)}},e.prototype.getChildren=function(e,t,r){var n=this;return Object.keys(e).forEach((function(i){if(e[i].routing.path){r="/"===r.charAt(r.length-1)?r.length>1?r.substring(0,r.length-2):"":r;var o="/"===e[i].routing.path.charAt(0)?e[i].routing.path.length>1?e[i].routing.path.substring(1):"":e[i].routing.path;t.set(e[i].routing.match?r+"/"+o+"/**":r+"/"+o,e[i])}e[i].children&&n.getChildren(e[i].children,t,r+"/"+e[i].routing.path)})),t},e.prototype.getPathsByView=function(e){var t=this,r=this.createConfigurationCopy(),n=[];return r.views?(Object.values(r.views).forEach((function(r){n.push.apply(n,ke(t.getView(e,r).map((function(e){return"/"+e}))))})),n):n},e.prototype.getConfigurationSubtree=function(e){var t,r,n=this.configuration;try{for(var i=we(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(void 0===n[a])return;n=n[a]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this.deepCopy(n)},e.prototype.getDatafieldConfiguration=function(){if(void 0!==this._dataFieldConfiguration)return Ee({},this._dataFieldConfiguration)},e.prototype.resolveEndpointURLs=function(){var e,t,r,n,i,o,a,s,u=this;if(void 0===(null===(r=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.providers)||void 0===t?void 0:t.auth)||void 0===r?void 0:r.address))throw new Error("'provider.auth.address' is a required property and must be present in the configuration!");if(this.configuration.providers.auth.address=this.resolveURL(this.configuration.providers.auth.address),void 0===(null===(i=null===(n=this.configuration)||void 0===n?void 0:n.providers)||void 0===i?void 0:i.resources))throw new Error("'provider.resources' is a required property and must be present in the configuration!");if(Array.isArray(this.configuration.providers.resources))this.configuration.providers.resources.forEach((function(e){if(void 0===(null==e?void 0:e.address))throw new Error("Resources defined in 'provider.resources' must define an address property!");e.address=u.resolveURL(e.address)}));else{if(void 0===(null===(s=null===(a=null===(o=this.configuration)||void 0===o?void 0:o.providers)||void 0===a?void 0:a.resources)||void 0===s?void 0:s.address))throw new Error("Resources defined in 'provider.resources' must define an address property!");this.configuration.providers.resources.address=this.resolveURL(this.configuration.providers.resources.address)}},e.prototype.resolveURL=function(e){return e.startsWith("http://")||e.startsWith("https://")?e:location.origin+"/api"+e},e.prototype.getServicesConfiguration=function(){var e=this.getConfigurationSubtree(["services"]);return void 0!==e?this.deepCopy(e):void 0},e.prototype.getView=function(e,t){var r=this,n=[];return t.layout&&t.layout.name===e&&n.push(t.routing.path),t.children&&0!==Object.keys(t.children).length&&Object.values(t.children).forEach((function(i){n.push.apply(n,ke(r.getView(e,i).map((function(e){return t.routing.path+"/"+e}))))})),n},e.prototype.createConfigurationCopy=function(){return this.deepCopy(this.configuration)},e.prototype.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},e}(),xe={console:Le,localStorage:je,backend:null},Ve=function(){function e(e){var t=this;this._log=new ne.BehaviorSubject(null),this._publishers=[];var r=e.get().services;r&&r.log&&r.log.publishers&&Object.keys(xe).filter((function(e){return r.log.publishers.includes(e)&&xe[e]})).forEach((function(e){return new xe[e](t)}))}return e.prototype.ngOnDestroy=function(){this._log.complete()},Object.defineProperty(e.prototype,"publishers",{get:function(){return this._publishers},enumerable:!1,configurable:!0}),e.prototype.register=function(e){return e?(this._publishers.push(e),this._log):ne.of(null)},e.prototype.publish=function(e){e&&this._log.next(e)},e.prototype.clearAll=function(){this._publishers.forEach((function(e){return e.clear()}))},e.ctorParameters=function(){return[{type:Me}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Me))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Me}]},e}(),Ue=function(){function t(t,r){this.publisherService=t,this.publisher=t,this.config={logWithDate:!0,serializeParams:!0,level:e.LogLevel.ALL};var n=r.get().services;n&&n.log&&(this.config=Object.assign(this.config,n.log,{level:this.resolveLevel(n.log.level)}))}return Object.defineProperty(t.prototype,"level",{get:function(){return this.config.level},enumerable:!1,configurable:!0}),t.prototype.shouldLog=function(t){return t>=this.level&&t!==e.LogLevel.OFF||this.level===e.LogLevel.ALL},t.prototype.writeToLog=function(e,t,r){if(this.shouldLog(e)){var n=new Ne(e,t,r,this.config);this.publisher.publish(n)}},t.prototype.info=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.writeToLog(e.LogLevel.INFO,t,r)},t.prototype.debug=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.writeToLog(e.LogLevel.DEBUG,t,r)},t.prototype.warn=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.writeToLog(e.LogLevel.WARN,t,r)},t.prototype.error=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.writeToLog(e.LogLevel.ERROR,t,r)},t.prototype.log=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.writeToLog(e,t,r)},t.prototype.resolveLevel=function(t){return t?e.LogLevel[t]:e.LogLevel.OFF},t}(),$e=function(e){function r(t,r){return e.call(this,t,r)||this}return Ie(r,e),r.ctorParameters=function(){return[{type:Ve},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](Ve),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:Ve},{type:Me}]},r}(Ue),Be=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return Ie(r,e),r.prototype.getFirstDayOfWeek=function(){return 1},r.decorators=[{type:t.Injectable}],r}(d.MomentDateAdapter),ze={toolbar:{menu:{lang:"Language",profile:"Profile",logout:"Logout",en:"English",sk:"Slovak",de:"German"}},tasks:{snackbar:{noTasksFound:"No tasks found",failedToLoad:"failed to load",noData:"No data for task",noGroup:"No data group for task",dataSaved:"Data saved successfully",failedSave:"Saving data failed",assignTask:"Assigning task",assignTaskSuccess:"Task assigned successfully",delegateTask:"Delegating task",delegateTaskSuccess:"Task successfully delegated",failed:"failed",cancelTask:"Canceling assignment of task",cancelTaskSuccess:"Task successfully canceled",finishTask:"Finishing task",finishTaskSuccess:"Task successfully finished",invalidData:"Some fields have invalid values",missingRequired:"Some required fields are empty",noCase:"No cases found",caseGetFailed:"Getting cases failed",noLongerExists:"The selected task no longer exists",caseDeleteFailed:"Case could not be deleted",caseDeleteSuccess:"Case successfully deleted",rolesSuccessAssign:"Roles successfully assigned to selected users"},view:{noTasksSatisfyingThisFilter:"There are no tasks satisfying this filter",collapse:"Collapse",assign:"Assign",reassign:"Reassign",delegate:"Delegate",finish:"Finish",cancel:"Cancel",noData:"This task has no data. Finish to continue.",redirecting:"Redirecting..."}},"side-menu":{"filter-selector":{"choose-filter":"Choose a filter","search-filter":"Search filters","case-filters":"Case filters","task-filters":"Task filters",select:"Select"},"files-upload":{upload:"Upload files",send:"Send"},"import-net":{upload:"Upload model",choose:"Choose a process file",done:"Done"},"new-case":{case:"New Case",choose:"Choose process",caseTitle:"Fill out case title",color:"Choose case color",back:"Back",next:"Next",reset:"Reset",create:"Create",selection:"You must make a selection",errFirst:"Process is required.",errSecond:"Title is required.",errThird:"Color is required.",noNets:"No allowed Nets",createCase:"Successful create new case",defaultCaseName:"with default case name"},user:{assign:"User Assign",choose:"Choose user",noUser:"There are no users",err:"Users failed to load",showcase:"User showcase mode not set!"},"option-selector":{select:"Select","choose-one-option":"Choose one of the provided options"}},search:{category:{case:{title:{name:"Case title",placeholder:"Enter case title"},visualId:{name:"Case visual ID",placeholder:"Enter case visual ID"},stringId:{name:"Case ID",placeholder:"Enter case ID"},author:{name:"Case author",placeholder:"Enter author's name or email"},process:{name:"Case process",placeholder:"Select case process"},role:{name:"Process role",placeholder:"Select process role"},task:{name:"Case task",placeholder:"Select case task"},creationDate:{name:"Case creation date",placeholder:"Select case creation date"},creationDateTime:{name:"Case creation date and time",placeholder:"Select case creation date and time"},dataset:{name:"Case data",placeholder:{field:"Select data field",value:"Enter data field value"}}},task:{assignee:{name:"Task assignee",placeholder:"Select task assignee"},process:{name:"Task process",placeholder:"Select task process"},role:{name:"Task process role",placeholder:"Select task process role"},task:{name:"Task",placeholder:"Select task"}},select:"Search category",userMe:"ME"},operator:{name:"Operator",substring:"contains substring",inRange:{from:"from",to:"to"},equals:"is exactly",notEquals:"is different from",moreThan:"is more than",lessThan:"is less than",lessThanEqual:"is less or equal than",moreThanEqual:"is more or equal than",like:"is like",isNull:"is empty"},tooltip:{toAdvanced:"Switch to advanced search",toFullText:"Switch to basic search",help:"Help",save:"Save filter",load:"Load filter"},help:{title:"Advanced search help",text:"Advanced search can be used to create more complex search queries. Start by selecting a search category. Search category determines, what you want your query to look for. Some categories (like searching in case data) require further configuration. Afterwards you have to select a search operator. The operator determines how the query attempts to match your data. Are you looking for numbers from a specific range? Are you looking for an exact match? Finally you have to enter the searched value. You can combine simpler queries into more complicated ones by binding them with an OR or an AND keyword. Queries combined with OR find results that match at least one sub-query. Queries combined with AND find results that match all sub-queries."},fullText:"Enter searched phrase",and:"and",or:"or"},dataField:{validations:{required:"This field is required!",requiredTrue:"Entered value must be true",odd:"Entered number must be odd",even:"Entered number must be even",positive:"Entered number must be positive",negative:"Entered number must be negative",decimal:"Entered number must be decimal",inrange:"Entered number must be in range {{range}}",minLength:"Entered text must be at least {{length}} characters long",maxLength:"Entered text must be at most {{length}} characters long",pattern:"Entered text is in a wrong format",phone:"Entered text must be in telephone number format",email:"Entered text must be in email format",dateRange:"Entered date must be between {{left}} and {{right}}",weekend:"Entered date must be weekend day",workday:"Entered date must be week day",enumeration:"One of the options must be selected",min:"Entered number must be greater than {{length}}"},snackBar:{downloadFail:" failed to download",moreFiles:"You choose more files as you allowed",sameFiles:"You cannot upload two of the same files",fileSize:"Files size exceeded allowed limit",wontUploadSameFile:"The file already exists. If you want to update the file, please renamed it or delete existing file",wontUploadSameFiles:"The selected files have already been uploaded. To update files, delete files that have already been uploaded",fileUploadFailed:"The file failed to upload",fileDeleteFailed:"The file could not be deleted",maxFilesExceeded:"Maximum number of uploadable files exceeded: ",maxFilesSizeExceeded:"The maximum size of uploaded files is exceeded: ",notSelectedUser:"No user has been selected",userAssigned:"User {{userName}} was assigned"},values:{boolean:{true:"true",false:"false"}},noFile:"No file",file:{noFile:"No File",clickToUpload:"Click to upload file",clickToDownload:"Click to download {{fileName}}",clickToDelete:"Click to delete file"},dynamicEnum:{noData:"No items match your search"}},dialog:{close:"Close",submit:"Submit"},forms:{email:{enterEmail:"Enter your email"},login:{length:"The login name must have at least 4 letters",login:"Username",loginButton:"Log in",reset:"Reset password",sign:"Sign Up",enterPass:"Enter your password"},register:{email:"Your email",name:"Name",surname:"Surname",repeatPass:"Repeat your password",register:"Register",notVerified:"It is not possible to verify token!",passwordsMustMatch:"The passwords must match!"},forgottenPass:{enterNewPass:"Enter your new password",repeatNewPass:"Repeat your new password",recover:"Change password"}},headers:{newHeader:"Select new header",date:"Choose a date",dateTime:"Choose a date and time",selectUser:"Choose a user",caseMeta:{mongoID:"Case ID",visualID:"Visual ID",title:"Title",author:"Author",creationDate:"Creation date"},taskMeta:{case:"Case",caseID:"Case ID",taskID:"Task ID",priority:"Priority",user:"Assignee",assignDate:"Assign Date"},workflowMeta:{initials:"Initials",version:"Version",netId:"Process ID",creationDate:"Upload date",title:"Title",author:"Author"},orderMode:"Ordering mode",searchMode:"Search mode",editMode:"Enable edit mode",overflowMode:"Table mode",columnWidth:"Column width",columnCount:"Number of columns"},panel:{case:{delete:"Delete"},workflow:{net:"Net identifier",title:"Title",version:"Version",author:"Author",upload:"Upload date"}},profile:{notLogged:"You are not logged in!",general:"General Information",personal:"Personal Information",name:"First name",surname:"Last name",authority:"Authorities",roles:"Roles",groups:"Groups",preference:"Preferences",caseHead:"Case headers",caseFilter:"Case filters",taskHead:"Task headers",taskFilter:"Task filters",workHead:"Workflow headers",workFilter:"Workflow filters"},"view-list":{noCasesSatisfyingThisFilter:"There are no cases satisfying specified filter",noProcessesSatisfyingThisFilter:"There are no processes satisfying specified filter"},admin:{"user-list":{noUsersWereFound:"There are any user in the system at the moment",listTitle:"Users"},"process-list":{newestVersion:"Newest version",listTitle:"Processes",roles:"Roles",noRoles:"There are no roles in the process",noProcessesWereFound:"There are no processes in the system at the moment"},"user-invite":{newUser:"New User",orgs:"Organizations",selectedOrgs:"Selected Organizations",selectedRoles:"Selected Roles",mail:"Enter Email",noSelectedOrgs:"There is no organisation assigned to this user yet!",noSelectedRoles:"There is no role assigned to this user yet!",noOrgs:"There is no available groups for now!",version:"Version",emailFieldMandatory:"Email field is mandatory",oneOrMoreOrganization:"New user must belong to one or more groups",inviteSent:"Invite sent",inviteFailed:"Invite failed","invite-user":"INVITE USER"}},preferences:{snackbar:{saveSuccess:"User preferences saved successfully",saveFailure:"An error occurred while saving user preferences"}},caseTree:{newNodeDefaultName:"New Node",noTaskSelected:"No case is currently selected. Click on a node in the tree to select a case."},dashboard:{cases:"cases"},workflow:{delete:"delete",dialog:{header:"Are you sure you want to delete the process '{{name}}' with version '{{version}}'?",content:"Doing so will remove all cases created from this process!",typeToConfirm:"Type {{delete}} to confirm"},snackBar:{deleteCanceled:"Process delete canceled",deleteSuccess:"Process successfully deleted",deleteError:"Process could not be deleted",uploadFailed:"Process file could not be uploaded.",uploadSuccess:"Process file uploaded successfully"}},legal:{byClicking:"By clicking '{{buttonName}}',",youIndicate:"you are indicating that you have read and acknowledge the",termsOfService:"Terms of Service",and:"and",privacyNotice:"Privacy Notice",sentenceEnd:""},publicView:{resolving:"Public view is loading ...",netNotExist:"The process does not exists",errorCreate:"Error while creating case "},dynamicNavigation:{couldNotResolveView:"An error has occurred during the view resolution process. The view could not be displayed"}},He={toolbar:{menu:{lang:"Jazyk",profile:"Profil",logout:"Odhlasiť sa",en:"Anglický",sk:"Slovenský",de:"Nemecký"}},tasks:{snackbar:{noTasksFound:"Nenašli sa žiadne úlohy",failedToLoad:"sa nepodarilo načítať",noData:"Úloha nemá žiadne dáta",noGroup:"Úloha nemá žiadnu dátovú skupinu",dataSaved:"Dáta úspešne uložené",failedSave:"Ukladanie dát zlyhalo",assignTask:"Priradenie dát",assignTaskSuccess:"Úloha úspešne priradená",delegateTask:"Delegovanie úlohy",delegateTaskSuccess:"Delegovanie úlohy úspešné",failed:"zlyhalo",cancelTask:"Ruším priradenie úlohy",cancelTaskSuccess:"Zrušenie priradenia úlohy úspešné",finishTask:"Dokončujem úlohu",finishTaskSuccess:"Dokončenie úlohy úspešné",invalidData:"Niektoré polia majú nepovolené hodnoty",missingRequired:"Niektoré povinné polia sú prázdne",noCase:"Nenašli sa žiadne prípady",caseGetFailed:"Načítanie prípadov zlyhalo",noLongerExists:"Zvolená úloha už neexistuje",caseDeleteFailed:"Prípad sa nepodarilo vymazať",caseDeleteSuccess:"Prípad úspešný zmazaný",rolesSuccessAssign:"Roly boli úspešne priradené vybraným používateľom"},view:{noTasksSatisfyingThisFilter:"Pre tento filter nie sú vyhovujúce žiadne úlohy",collapse:"Skryť",assign:"Priradiť",reassign:"Preradiť",delegate:"Delegovať",finish:"Dokončiť",cancel:"Zrušiť",noData:"Táto úloha nemá žiadne údaje. Stlačte dokončiť pre pokračovanie.",redirecting:"Presmerovanie..."}},"side-menu":{"filter-selector":{"choose-filter":"Zvoľte filter","search-filter":"Vyhľadať filter","case-filters":"Filtre prípadov","task-filters":"Filtre úloh",select:"Zvoliť"},"files-upload":{upload:"Nahrať súbory",send:"Odoslať"},"import-net":{upload:"Nahrať model",choose:"Vyberte súbor s procesom",done:"Dokončiť"},"new-case":{case:"Nový prípad",choose:"Vyberte proces",caseTitle:"Vyplňte názov prípadu",color:"Vyberte farbu prípadu",back:"Späť",next:"Ďalej",reset:"Zrušiť",create:"Vytvoriť",selection:"Musíte niečo vybrať",errFirst:"Proces je povinné pole.",errSecond:"Názov je povinné pole.",errThird:"Farba je povinné pole.",noNets:"Žiadne povolené siete",createCase:"Uspešne vytvorený nový prípad",defaultCaseName:"s prednastaveným názvom prípadu"},user:{assign:"Priradiť používateľa",choose:"Zvoľte používateľa",noUser:"Neexistujú žiadny používatelia",err:"Nepodarilo sa načítať používateľov",showcase:"Nebol zvolený mód zobrazenia používateľa!"},"option-selector":{select:"Zvoliť","choose-one-option":"Vyberte jednu z možností"}},search:{category:{case:{title:{name:"Názov prípadu",placeholder:"Zadajte názov prípadu"},visualId:{name:"Vizuálne ID prípadu",placeholder:"Zadajte vizuálne ID prípadu"},stringId:{name:"ID prípadu",placeholder:"Zadajte ID prípadu"},author:{name:"Autor prípadu",placeholder:"Zadajte meno, alebo email autora prípadu"},process:{name:"Proces prípadu",placeholder:"Vyberte proces prípadu"},role:{name:"Procesná rola",placeholder:"Vyberte procesnú rolu"},task:{name:"Úloha prípadu",placeholder:"Vyberte úlohu"},creationDate:{name:"Dátum vytvorenia prípadu",placeholder:"Zadajte dátum vytvorenia prípadu"},creationDateTime:{name:"Dátum a čas vytvorenia prípadu",placeholder:"Zadajte dátum a čas vytvorenia prípadu"},dataset:{name:"Dáta prípadu",placeholder:{field:"Vyberte dátovú položku",value:"Zadajte hodnotu dátovej položky"}}},task:{assignee:{name:"Riešiteľ úlohy",placeholder:"Vyberte riešiteľa úlohy"},process:{name:"Proces úlohy",placeholder:"Vyberte proces úlohy"},role:{name:"Procesná rola úlohy",placeholder:"Vyberte procesnú rolu"},task:{name:"Úloha",placeholder:"Vyberte úlohu"}},select:"Kategória vyhľadávania",userMe:"JA"},operator:{name:"Operátor",substring:"obsahuje podreťazec",inRange:{from:"od",to:"do"},equals:"je presne",notEquals:"je rôzny od",moreThan:"je viac ako",lessThan:"je menej ako",lessThanEqual:"je menej alebo rovné ako",moreThanEqual:"je viac alebo rovné ako",like:"je podobný s",isNull:"je prázdny"},tooltip:{toAdvanced:"Prepnúť na rozšírené vyhľadávanie",toFullText:"Prepnúť na jednoduché vyhľadávanie",help:"Nápoveda",save:"Uložiť filter",load:"Načítať filter"},help:{title:"Nápoveda pre rozšírené vyhľadávanie",text:'Rozšírené vyhľadávanie slúži na zostavenie komplikovanejších požiadaviek na vyhľadávanie. Na začiatku zvoľte kategóriu vyhľadávania. Kategória vyhľadávania učruje, podľa čoho má váš dopyt vyhľadávať. Niektoré kategórie, ako napríklad "Dáta prípadu" vyžadujú dodatočnú konfiguráciu. Po zvolení kategórie je nutné zvoliť operátor vyhľadávania. Operátor rozhoduje o tom, akým spôsobom sa hľadá zhoda s hľadaným výtazom a dátami. Operátorom je možné hľadať napríklad presnú zhodu, alebo hodnotu z rozsahu. Nakoniec je nutné zadať hľadanú hodnotu. Dopyty je možné kombinovať pomocou kľúčových slov A SÚČASNE a ALEBO. Dopyty kombinované slovom ALEBO nájdu výsledky, spĺňajúce aspoň jednu z podmienok. Dopyty kombinované slovom A SÚČASNE nájdu výsledky spĺňajúce všetky podmienky.'},fullText:"Zadajte hľadaný text",and:"a súčasne",or:"alebo"},dataField:{validations:{required:"Toto pole je potrebné!",requiredTrue:"Zadaná hodnota musí byť true",odd:"Zadané čislo musí byť nepárne",even:"Zadané číslo musí byť párne",positive:"Zadané číslo musí byť kladné",negative:"Zadané číslo musí byť záporné",decimal:"Zadané číslo musí byť decimálne",inrange:"Zadané číslo musí byť v rozsahu {{range}}",minLength:"Zadaný text musí mať aspoň {{length}} znakov",maxLength:"Zadaný text môže mať maximálne {{length}} znakov",pattern:"Zadaný text je v nesprávnom formáte",phone:"Zadaný text musí byť tel. číslo",email:"Zadaný text musí byť email",dateRange:"Zadaný dátum musí byť z rozsahu {{left}} a {{right}}",weekend:"Zadaný dátum musí byť víkendový deň",workday:"Zadaný dátum musí byť pracovný deň",enumeration:"Musí byť vybraná jedna z možností",min:"Zadané číslo musí byť väčšie ako {{length}}"},snackBar:{downloadFail:" stahovanie zlyhalo",moreFiles:"Zvolil si viac súborov ako je povolené",sameFiles:"Nemôžeš nahrať dva rovnaké súbory",fileSize:"Veľkosť súboru presiahla povolený limit",wontUploadSameFile:"Súbor už existuje. Ak chcete súbor aktualizovať zvoľte iný názov súboru alebo súbor odstránte",wontUploadSameFiles:"Vybrané súbory už boli nahrané. Ak chcete súbory aktualizovať odstránte už nahrané súbory",fileUploadFailed:"Súbor sa nepodarilo nahrať",fileDeleteFailed:"Súbor sa nepodarilo vymazať",maxFilesExceeded:"Je presiahnutý maximálny počet nahrateľných súborov: ",maxFilesSizeExceeded:"Je presiahnutá maximálna veľkosť nahrávaných súborov: ",notSelectedUser:"Nebol vybraný žiadny používateľ",userAssigned:"Používateľ {{userName}} bol pridelený"},values:{boolean:{true:"áno",false:"nie"}},noFile:"Žiadny súbor",file:{noFile:"Žiadny súbor",clickToUpload:"Kliknutím nahrajte súbor",clickToDownload:"Kliknutím stiahnite súbor {{fileName}}",clickToDelete:"Kliknutím vymažte súbor"},dynamicEnum:{noData:"Vášmu vyhľadávaniu nezodpovedajú žiadne položky"}},dialog:{close:"Zatvoriť",submit:"Potvrdiť"},forms:{email:{enterEmail:"Zadajte svoj email"},login:{length:"Prihlasovacie meno musí mať aspoň 4 písmená",login:"Prihlasovacie meno",loginButton:"Prihlásiť",reset:"Obnova hesla",sign:"Registrovať",enterPass:"Zadajte svoje heslo"},register:{email:"Váš email",name:"Meno",surname:"Priezvisko",repeatPass:"Zopakujte heslo",register:"Registrovať",notVerified:"Nie je možné verifikovať token!",passwordsMustMatch:"Heslá sa musia zhodovať!"},forgottenPass:{enterNewPass:"Zadajte nové heslo",repeatNewPass:"Zopakujte nové heslo",recover:"Zmeniť heslo"}},headers:{newHeader:"Zvoľte novú hlavičku",date:"Zvoľte dátum",dateTime:"Zvoľte dátum a čas",selectUser:"Vyberte používateľa",caseMeta:{mongoID:"ID Prípadu",visualID:"Vizuálne ID",title:"Názov",author:"Autor",creationDate:"Dátum vytvorenia"},taskMeta:{case:"Prípad",caseID:"ID Prípadu",taskID:"ID Úlohy",priority:"Priorita",user:"Riešiteľ",assignDate:"Dátum priradenia"},workflowMeta:{initials:"Iniciály",version:"Verzia",netId:"Proces ID",creationDate:"Dátum nahratia",title:"Názov",author:"Autor"},orderMode:"Mód zoraďovania",searchMode:"Mód vyhľadávania",editMode:"Zapnúť editačný mód",overflowMode:"Tabuľkový mód",columnWidth:"Šírka stĺpca",columnCount:"Počet stĺpcov"},panel:{case:{delete:"Vymazať"},workflow:{net:"Identifikátor siete",title:"Názov",version:"Verzia",author:"Autor",upload:"Dátum nahratia"}},profile:{notLogged:"Nie ste prihlásený!",general:"Všeobecné údaje",personal:"Osobné údaje",name:"Krstné meno",surname:"Priezvisko",authority:"Právomoci",roles:"Roly",groups:"Skupiny",preference:"Preferencie",caseHead:"Hlavičky prípadov",caseFilter:"Filtre prípadov",taskHead:"Hlavičky prípadov",taskFilter:"Filtre prípadov",workHead:"Workflow hlavičky",workFilter:"Workflow filtre"},"view-list":{noCasesSatisfyingThisFilter:"Pre zvolený filter nevyhovujú žiadne prípady",noProcessesSatisfyingThisFilter:"Pre zvolený filter nevyhovujú žiadne procesy"},admin:{"user-list":{noUsersWereFound:"Momentálne nie sú v systéme žiadny používatelia",listTitle:"Používatelia"},"process-list":{newestVersion:"Najnovšia verzia",listTitle:"Procesy",roles:"Roly",noRoles:"Tento proces neobsahuje žiadne roly",noProcessesWereFound:"Momentálne nie sú v systéme žiadne procesy"},"user-invite":{newUser:"Nový používateľ",orgs:"Organizácie",selectedOrgs:"Vybrané Organizácie",selectedRoless:"Vybrané Role",mail:"Zadajte Email",noSelectedOrgs:"Nie su zvolené žiadne organizácie!",noSelectedRoles:"Nie su zvolené žiadne role!",noOrgs:"Nie sú žiadne dostupné organizácie!",version:"Verzia",emailFieldMandatory:"Email je povinný",oneOrMoreOrganization:"Nový používateľ musí patriť aspoň do jenej organizácie",inviteSent:"Pozvánka bola odoslaná",inviteFailed:"Poslanie pozvánky zlyhalo","invite-user":"POZVAŤ POUŽÍVATEĽA"}},preferences:{snackbar:{saveSuccess:"Vaše preferencie boli uložené",saveFailure:"Nepodarilo sa uložiť preferencie"}},caseTree:{newNodeDefaultName:"Nový Vrchol",noTaskSelected:"Momentálne nie je zvolený žiaden prípad. Pre vybranie prípadu zvoľte vrchol v strome."},dashboard:{cases:"prípady"},workflow:{delete:"zmazať",dialog:{header:"Ste si istý, že chcete vymazať proces '{{name}}' verzia '{{version}}'?",content:"Spolu s procesom budú vymazané aj všetky prípady z neho vytvorené!",typeToConfirm:"Zadajte {{delete}} pre potvrdenie"},snackBar:{deleteCanceled:"Zmazanie procesu zrušené",deleteSuccess:"Proces bol úspešne zmazaný",deleteError:"Proces sa nepodarilo zmazať",uploadFailed:"Súbor procesu sa nepodarilo nahrať.",uploadSuccess:"Súbor procesu bol úspešne nahraný"}},legal:{byClicking:"Kliknutím na tlačidlo '{{buttonName}}'",youIndicate:"potvrdzujete, že ste prečítali a beriete na vedomie",termsOfService:"podmienky služby",and:"a",privacyNotice:"zásady ochrany osobných údajov",sentenceEnd:""},publicView:{resolving:"Verejné view sa načítava ...",netNotExist:"Proces neexistuje",errorCreate:"Chyba pri vytváraní prípadu "},dynamicNavigation:{couldNotResolveView:"Počas načítania zobrazenia sa vyskytla chyba. Zobrazenie nie je možné zobraziť"}},Ge={toolbar:{menu:{lang:"Sprache",profile:"Benutzerprofil",logout:"Abmelden",en:"English",sk:"Slowakisch",de:"Deutsch"}},tasks:{snackbar:{noTasksFound:"Keine Aufgaben gefunden",failedToLoad:"Beim laden der Aufgaben ist eine Fehler aufgetreten",noData:"Diese Aufgabe hat keine Daten",noGroup:"Diese Aufgabe hat keine Datengruppe",dataSaved:"Daten erfolgreich gespeichert",failedSave:"Beim speichern der Daten ist eine Fehler aufgetreten",assignTask:"Beim zuweisen der Aufgabe",assignTaskSuccess:"Aufgabe erfolgreich zugewiesen",delegateTask:"Beim delegieren der Aufgabe",delegateTaskSuccess:"Aufgabe erfolgreich delegiert",failed:"ist eine Fehler aufgetreten",cancelTask:"Aufgabenzuweisung wird abgebrochen",cancelTaskSuccess:"Aufgabe erfolgreich abgebrochen",finishTask:"Aufgabe wird abgeschlossen",finishTaskSuccess:"Aufgabe erfolgreich abgeschlossen",invalidData:"Manche Felder haben ungültige Werten",missingRequired:"Einige Pflichtfelder sind leer",noCase:"Keine Fälle gefunden",caseGetFailed:"Beim laden der Fälle ist eine Fehler aufgetreten",noLongerExists:"Die ausgewählte Aufgabe existiert nicht mehr",caseDeleteFailed:"Fall konnte nicht gelöscht werden",caseDeleteSuccess:"Fall erfolgreich gelöscht",rolesSuccessAssign:"Rollen, die ausgewählten Benutzern erfolgreich zugewiesen wurden"},view:{noTasksSatisfyingThisFilter:"Es gibt keine Aufgaben, die den ausgewählten Filter erfüllen",collapse:"Schrumpfen",assign:"Zuweisen",reassign:"Neu zuweisen",delegate:"Delegieren",finish:"Abschließen",cancel:"Stornieren",noData:"Diese Aufgabe hat keine Dateien. Schließen Sie die Aufgabe ab, um fortzufahren.",redirecting:"Umleiten..."}},"side-menu":{"filter-selector":{"choose-filter":"Wählen Sie einen Filter aus","search-filter":"Filter durchsuchen","case-filters":"Fallfilter","task-filters":"Aufgabenfilter",select:"Auswählen"},"files-upload":{upload:"Datei hochladen",send:"Absenden"},"import-net":{upload:"Model hochladen",choose:"Prozessdatei auswählen",done:"Bestätigen"},"new-case":{case:"Neuen Fall erstellen",choose:"Wählen Sie einen Prozess aus",caseTitle:"Geben Sie den Fallnamen ein",color:"Wählen Sie die Fallfarbe aus",back:"Zurück",next:"Weiter",reset:"Alles löschen",create:"Fall erstellen",selection:"Sie müssen einen Wert auswählen",errFirst:"Sie müssen einen Prozess auswählen.",errSecond:"Sie müssen einen Namen eingeben.",errThird:"Sie müssen eine Farbe auswählen.",noNets:"Es gibt keine erlaubte Netze",createCase:"Neuen Fall würde erfolgreich erzeugt",defaultCaseName:"mit einem Standardfallnamen"},user:{assign:"Benützer zuweisen",choose:"Benützer auswählen",noUser:"Es gibt keine Benützer",err:"Beim laden der Benützer ist eine Fehler aufgetreten",showcase:"Benützeransichtmodus ist nicht ausgewählt!"},"option-selector":{select:"Auswählen","choose-one-option":"Wählen Sie eine Option aus"}},search:{category:{case:{title:{name:"Fallname",placeholder:"Geben Sie den Fallnamen ein"},visualId:{name:"Visuelle ID",placeholder:"Geben Sie die visuelle ID ein"},stringId:{name:"Fall ID",placeholder:"Geben Sie die Fall ID ein"},author:{name:"Fallautor/in",placeholder:"Geben Sie den Namen, oder das E-Mail des/er Fallautors/in ein"},process:{name:"Prozess",placeholder:"Wählen Sie den Prozess aus"},role:{name:"Prozessrolle",placeholder:"Wählen Sie die Prozessrolle aus"},task:{name:"Fallaufgabe",placeholder:"Wählen Sie die Fallaufgabe aus"},creationDate:{name:"Erstellungsdatum",placeholder:"Geben Sie das Erstellungsdatum ein"},creationDateTime:{name:"Erstellungsdatum und Uhrzeit",placeholder:"Geben Sie das Erstellungsdatum und die Uhrzeit ein"},dataset:{name:"Falldatei",placeholder:{field:"Wählen Sie das Datenfeld aus",value:"Geben Sie den Wert des Datenfeldes ein"}}},task:{assignee:{name:"Zugewiesener/in",placeholder:"Wählen Sie den/ie Zugewiesener/in aus"},process:{name:"Prozess",placeholder:"Wählen Sie den Prozess aus"},role:{name:"Aufgabenprocessrolle",placeholder:"Wählen Sie die Prozessrolle der Aufgabe aus"},task:{name:"Aufgabe",placeholder:"Wählen Sie die Aufgabe aus"}},select:"Suchkategorie",userMe:"ICH"},operator:{name:"Operator",substring:"enthält Teilzeichenfolge",inRange:{from:"von",to:"bis"},equals:"ist genau",notEquals:"unterscheidet sich von",moreThan:"ist größer als",lessThan:"ist kleiner als",lessThanEqual:"ist kleiner oder gleich als",moreThanEqual:"ist größer oder gleich als",like:"ist ähnlich wie",isNull:"ist leer"},tooltip:{toAdvanced:"Wechseln zum erweiterten Suchmodus",toFullText:"Wechseln zum einfachen Suchmodus",help:"Hilfe",save:"Filter speichern",load:"Filter laden"},help:{title:"Hilfe für den erweiterten Suchmodus",text:"Man kann den erweiterten Suchmodus verwenden, um komplexere Suchanfragen zu erstellen. Beginnen Sie mit der Auswahl einer Suchkategorie. Die Suchkategorie definiert, wonach Sie suchen. Manche Suchkategorien benötigen zusätzliche Konfiguration (z.B. die Falldatei Suchkategorie). Nachdem Sie die Suchkategorie auswählen, mussen Sie den Operator auswählen. Der Operator stellt fest, wie die Daten mit der Suchanfrage übereinstimmen müssen. Mit verschiedenen Operatoren kann man nach einer genauen Übereinstimmung oder nach Werten aus einem Bereich suchen. Nach der Operatorasuwahl muss man das gesuchte Wert eingeben. Die Suchanfragen können mit den Stichwörtern UND oder ODER verbunden werden. Das ODER Stichwort findet Einträge, die mindestens eines der kombinierten Suchanfragen erfühlen. Das UND Stichwort findet Einträge, die alle der kombinierten Suchanfragen, erfühlen."},fullText:"Geben Sie den gesuchten Text ein",and:"und",or:"oder"},dataField:{validations:{required:"Dieses Feld ist ein Pflichtfeld!",requiredTrue:"Der eingegebene Wert muss wahr sein",odd:"Die eingegebene Nummer muss ungerade sein",even:"Die eingegebene Nummer muss gerade sein",positive:"Die eingegebene Nummer muss positiv sein",negative:"Die eingegebene Nummer muss negativ sein",decimal:"Die eingegebene Nummer muss ein Dezimalzahl sein",inrange:"Die eingegebene Nummer muss aus dem gegebenen Nummernbereich {{range}} sein",minLength:"Der eingegebene Text muss länger als {{length}} Zeichen sein",maxLength:"Der eingegebene Text muss kurzer als {{length}} Zeichen sein",pattern:"Der eingegebene Text ist nicht im richtigen Format",phone:"Der eingegebene Text muss ein Telefonnummer sein",email:"Der eingegebene Text muss ein E-Mail sein",dateRange:"Das eingegebene Datum muss zwischen {{left}} und {{right}} liegen",weekend:"Das eingegebene Datum muss das Wochenende sein",workday:"Das eingegebene Datum muss ein Wochentag sein",enumeration:"Eine von der angebotenen Optionen muss ausgewählt sein",min:"Die eingegebene Nummer muss größer als {{length}} sein"},snackBar:{downloadFail:" könnte nicht heruntergeladen werden",moreFiles:"Sie haven zu viel Dateien ausgewählt",sameFiles:"Sie können nicht dieselbe Datei zweimal hochladen",fileSize:"Die Dateigröße hat das zulässige Limit überschritten",wontUploadSameFile:"The file already exists. If you want to update the file, please renamed it",wontUploadSameFiles:"Die ausgewählten Dateien wurden bereits hochgeladen. Löschen Sie zum Aktualisieren von Dateien bereits hochgeladene Dateien",fileUploadFailed:"The file failed to upload",fileDeleteFailed:"Die Datei konnte nicht gelöscht werden",maxFilesExceeded:"Die maximale Anzahl hochladbarer Dateien ist überschritten: ",maxFilesSizeExceeded:"Die maximale Größe der hochgeladenen Dateien wird überschritten: ",notSelectedUser:"Es wurde kein Benutzer ausgewählt",userAssigned:"Benutzer {{userName}} wurde zugewiesen"},values:{boolean:{true:"ja",false:"nein"}},noFile:"No file",file:{noFile:"keine Datei",clickToUpload:"Klicken Sie, um eine Datei hochzuladen",clickToDownload:"Klicken Sie, um {{fileName}} herunterzuladen",clickToDelete:"Klicken Sie, um die Datei zu löschen"},dynamicEnum:{noData:"Keine Einträge entsprechen Ihrer Suchanfrage"}},dialog:{close:"Schließen",submit:"Bestätigen"},forms:{email:{enterEmail:"Ihre E-Mail Adresse eingeben"},login:{length:"Das Benützername muss mindestens 4 Zeichen enthalten",login:"Benützername",loginButton:"Anmelden",reset:"Kennwort wiederherstellen",sign:"Registrieren",enterPass:"Ihre Kennwort eingeben"},register:{email:"Ihre E-Mail Adresse",name:"Vorname",surname:"Nachname",repeatPass:"Kennwort viederhollen",register:"Registrieren",notVerified:"Token kann nicht verifiziert werden!",passwordsMustMatch:"Die Kennwörter müssen übereinstimmen!"},forgottenPass:{enterNewPass:"Ihre neues Kennwort eingeben",repeatNewPass:"Neues Kennwort viederhollen",recover:"Kennwort ändern"}},headers:{newHeader:"Kopfzeile auswählen",date:"Datum auswählen",dateTime:"Datum und Uhrzeit asuwählen",selectUser:"Benutzer auswählen",caseMeta:{mongoID:"Fall ID",visualID:"Visuelle ID",title:"Fallname",author:"Fallautor",creationDate:"Erstellungsdatum"},taskMeta:{case:"Fall",caseID:"Fall ID",taskID:"Aufgabe ID",priority:"Priorität",user:"Zugewiesener/in",assignDate:"Zugewieserungsdatum"},workflowMeta:{initials:"Initialen",version:"Version",netId:"Prozess ID",creationDate:"Hochladungsdatum",title:"Prozessname",author:"Prozessautor"},orderMode:"Anordnungsmodus",searchMode:"Suchmodus",editMode:"Editationsmodus einschalten",overflowMode:"Tabellenmodus",columnWidth:"Spaltenbreite",columnCount:"Spaltenanzahl"},panel:{case:{delete:"Löschen"},workflow:{net:"Netzidentifikator",title:"Netzname",version:"Version",author:"Netzauthor",upload:"Hochladungsdatum"}},profile:{notLogged:"Sie sind nicht angemeldet!",general:"Allgemeine Informationen",personal:"Persönliche Informationen",name:"Vorname",surname:"Nachname",authority:"Berechtigungen",roles:"Rollen",groups:"Gruppen",preference:"Persönliche Einstellungen",caseHead:"Fall Kopfzeilen",caseFilter:"Fall Filter",taskHead:"Aufgabe Kopfzeilen",taskFilter:"Aufgabe Filter",workHead:"Workflow Kopfzeilen",workFilter:"Workflow Filter"},"view-list":{noCasesSatisfyingThisFilter:"Es gibt keine Fälle, die den ausgewählten Filter erfüllen",noProcessesSatisfyingThisFilter:"Es gibt keine Prozesse, die den ausgewählten Filter erfüllen"},admin:{"user-list":{noUsersWereFound:"Derzeit befinden sich keine Benutzer im System",listTitle:"Benutzer"},"process-list":{newestVersion:"Neuste Version",listTitle:"Prozesse",roles:"Rollen",noRoles:"Dieser Prozess enthält keine Rollen",noProcessesWereFound:"Derzeit befinden sich keine Prozesse im System"},"user-invite":{newUser:"Neuer Benutzer",orgs:"Organisationen",selectedOrgs:"Ausgewählte Organisationen",selectedRoles:"Ausgewählte Rollen",mail:"E-Mail eingeben",noSelectedOrgs:"Diesem Benutzer ist noch keine Organisation zugewiesen!",noSelectedRoles:"Diesem Benutzer ist noch keine Rolle zugewiesen!",noOrgs:"Derzeit sind keine Gruppen verfügbar!",version:"Version",emailFieldMandatory:"E-Mail-Feld ist obligatorisch",oneOrMoreOrganization:"Neuer Benutzer muss zu einer oder mehreren Gruppen gehören",inviteSent:"Einladung gesendet",inviteFailed:"Einladung fehlgeschlagen","invite-user":"BENUTZER EINLADEN"}},preferences:{snackbar:{saveSuccess:"Benutzereinstellungen wurden gespeichert",saveFailure:"Benutzereinstellungen können nicht gespeichert werden"}},caseTree:{newNodeDefaultName:"Neuer Knoten",noTaskSelected:"Momentan ist keiner Fall ausgewählt. Klicken Sie einen Knoten in dem Baum an, um einen Fall auszuwählen."},dashboard:{cases:"Fälle"},workflow:{delete:"löschen",dialog:{header:"Sind Sie sicher, dass Sie den Prozess '{{name}}' mit Version '{{version}}' löschen wollen?",content:"Alle Fälle aus diesem Prozess werden gleichzeitig gelöscht!",typeToConfirm:"Geben Sie zur Bestätigung {{delete}} ein"},snackBar:{deleteCanceled:"Prozess löschen abgebrochen",deleteSuccess:"Prozess erfolgreich gelöscht",deleteError:"Prozess konnte nicht gelöscht werden",uploadFailed:"Prozessdatei konnte nicht hochgeladen werden.",uploadSuccess:"Prozessdatei erfolgreich hochgeladen"}},legal:{byClicking:"Indem Sie auf '{{buttonName}}' klicken,",youIndicate:"bestätigen Sie, dass Sie die",termsOfService:"Nutzungsbedingungen",and:"und die",privacyNotice:"Datenschutzerklärung",sentenceEnd:"gelesen und akzeptiert haben"},publicView:{resolving:"Die öffentliche Ansicht wird geladen ...",netNotExist:"Der Prozess existiert nicht",errorCreate:"Fehler beim Erstellen des Falles "},dynamicNavigation:{couldNotResolveView:"Ein Fehler ist aufgetreten während des Ansichtauflösungsprocess. Der Ansicht kann nicht angezeigt werden"}},qe=function(){function e(e,t,r,n,i,o,a,s){this.id=e,this.email=t,this.firstName=r,this.lastName=n,this.authorities=i,this.roles=o,this.groups=a,this.nextGroups=s}return Object.defineProperty(e.prototype,"fullName",{get:function(){return this.firstName+" "+this.lastName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.firstName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surname",{get:function(){return this.lastName},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return""===this.id},e}(),We=function(){},Qe=function(){function e(){}return e.prototype.transformAuthorities=function(e){return e?e.map((function(e){return e.authority})):[]},e.prototype.transform=function(e){return new qe(e.id,e.email,e.name,e.surname,this.transformAuthorities(e.authorities),e.processRoles,[],e.nextGroups)},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e}(),Ke=function(){function e(){}return e.prototype.clear=function(){},e.prototype.getItem=function(e){return null},e.prototype.key=function(e){return null},e.prototype.removeItem=function(e){},e.prototype.setItem=function(e,t){},e}(),Ye=function(e){function t(t){return void 0===t&&(t=!1),e.call(this,t)||this}return Ie(t,e),Object.defineProperty(t.prototype,"isActive",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype.on=function(){this.next(!0)},t.prototype.off=function(){this.next(!1)},t.prototype.toggle=function(){this.next(!this.getValue())},t}(ne.BehaviorSubject),Xe=function(){function e(t,r,n){var i=this;this._config=t,this._log=r,this._http=n,this._storage=this.resolveStorage(this._config.get().providers.auth.sessionStore),this._sessionHeader=this._config.get().providers.auth.sessionBearer?this._config.get().providers.auth.sessionBearer:e.SESSION_BEARER_HEADER_DEFAULT,this._session$=new ne.BehaviorSubject(null),this._verified=!1,this._verifying=new Ye,this._initialized=new Ye(!1),setTimeout((function(){i.load()}))}return e.prototype.ngOnDestroy=function(){this._session$.complete(),this._verifying.complete()},Object.defineProperty(e.prototype,"session$",{get:function(){return this._session$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionToken",{get:function(){return this._session$.getValue()},set:function(t){this._session$.next(t),this._storage.setItem(e.SESSION_TOKEN_STORAGE_KEY,btoa(e.SESSION_TOKEN_STORAGE_KEY+":"+t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sessionHeader",{get:function(){return this._sessionHeader},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verified",{get:function(){return this._verified},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verifying",{get:function(){return this._verifying.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVerifying",{get:function(){return this._verifying.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._initialized.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initializing",{get:function(){return this._initialized.asObservable()},enumerable:!1,configurable:!0}),e.prototype.setVerifiedToken=function(e){this._log.warn("Session token without explicit verification was set"),this._verified=!0,this.sessionToken=e},e.prototype.clear=function(){this._verified=!1,this.sessionToken="",this._storage.removeItem(e.SESSION_TOKEN_STORAGE_KEY)},e.prototype.verify=function(e){var t=this;this._verifying.on(),e=e||this.sessionToken;var r=this._config.get().providers.auth,n=r.address;return(n+=r.endpoints&&r.endpoints.verification?r.endpoints.verification:r.endpoints&&r.endpoints.login?r.endpoints.login:"")&&n!==r.address?this._http.get(n,{headers:(new ie.HttpHeaders).set(this._sessionHeader,e),observe:"response"}).pipe(le.catchError((function(e){return e instanceof ie.HttpErrorResponse&&401===e.status&&(t._log.warn("Authentication token is invalid. Clearing session token"),t.clear()),t._verifying.off(),t._initialized.on(),ne.throwError(e)})),le.map((function(r){return t._log.debug(r.body.success),t._verified=!0,t._initialized.on(),t.sessionToken=e,!0})),le.tap((function(e){return t._verifying.off()}))):(this.clear(),this._verifying.off(),this._initialized.on(),ne.throwError(new Error("Cannot verify session token. Login URL is not defined in the config [nae.providers.auth.endpoints.login].")))},e.prototype.load=function(){var t=this,r=this._storage.getItem(e.SESSION_TOKEN_STORAGE_KEY);return this._verified=!1,r?(r=this.resolveToken(r),this.sessionToken=r,this.verify(r).pipe(le.take(1)).subscribe((function(e){t._log.debug("Token "+r+" verified status: "+e)}))):this._initialized.on(),""},e.prototype.resolveToken=function(e){return e?atob(e).split(":")[1]:""},e.prototype.resolveStorage=function(e){switch(e){case"local":return localStorage;case"session":return sessionStorage;case"null":return new Ke;default:return localStorage}},e.SESSION_TOKEN_STORAGE_KEY="naet",e.SESSION_BEARER_HEADER_DEFAULT="X-Auth-Token",e.ctorParameters=function(){return[{type:Me},{type:$e},{type:ie.HttpClient}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Me),t["ɵɵinject"]($e),t["ɵɵinject"](ie.HttpClient))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Me},{type:$e},{type:ie.HttpClient}]},e}(),Ze=function(){function e(e,t,r,n){var i=this;this._auth=e,this._config=t,this._sessionService=r,this._userTransformer=n,this._authenticated$=new ne.BehaviorSubject(!1),this.subSession=this._sessionService.session$.subscribe((function(e){i._authenticated$.next(!!e&&0!==e.length&&i._sessionService.verified)}))}return e.prototype.login=function(t){var r=this;return this._auth.login(t).pipe(le.tap((function(t){r._authenticated$.next(!!t[e.IDENTIFICATION_ATTRIBUTE])})),le.map((function(e){return r._userTransformer.transform(e)})),le.catchError((function(e){return console.error(e),ne.of(null)})))},e.prototype.logout=function(){var e=this;return this._auth.logout().pipe(le.tap((function(){e._authenticated$.next(!1),e._sessionService.clear()})),le.catchError((function(e){return console.error(e),ne.of(e)})))},Object.defineProperty(e.prototype,"isAuthenticated",{get:function(){return this._authenticated$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authenticated$",{get:function(){return this._authenticated$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subSession.unsubscribe(),this._authenticated$.complete()},e.IDENTIFICATION_ATTRIBUTE="id",e.ctorParameters=function(){return[{type:We},{type:Me},{type:Xe},{type:Qe}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](We),t["ɵɵinject"](Me),t["ɵɵinject"](Xe),t["ɵɵinject"](Qe))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:We},{type:Me},{type:Xe},{type:Qe}]},e}();(Pe=e.ProgressType||(e.ProgressType={})).UPLOAD="upload",Pe.DOWNLOAD="download";var Je,et,tt=function(){function t(e){this.httpClient=e}return t.addLastSlash=function(e){if(e.length>0)return"/"===e.charAt(e.length-1)?e:e+"/";throw Error("No define api url")},t.removeFirstSlash=function(e){return"/"===e.charAt(0)?e.length>1?e.substring(1,e.length):"":e},t.sanitizeUrl=function(e,r){if(e.includes("http://")||e.includes("https://"))return r?e.includes(r)?e:r.includes("https://")?"https://"+e.replace(/(^\w+:|^)\/\//,""):"http://"+e.replace(/(^\w+:|^)\/\//,""):e;if(r)return t.addLastSlash(r)+t.removeFirstSlash(e);throw Error("No define endpoint")},t.combineParams=function(e,t){var r=e instanceof ie.HttpParams?rt.convertHttpParamsToObjectParams(e):e,n=t instanceof ie.HttpParams?rt.convertHttpParamsToObjectParams(t):Ee({},t);return Object.assign(n,r),new ie.HttpParams({fromObject:n})},t.convertHttpParamsToObjectParams=function(e){var t={};return e.keys().forEach((function(r){var n=e.getAll(r);1===n.length?t[r]=n[0]:t[r]=n})),t},t.getProgress=function(t){return{type:t.type===ie.HttpEventType.UploadProgress?e.ProgressType.UPLOAD:e.ProgressType.DOWNLOAD,loaded:t.loaded,total:t.total,progress:t.loaded&&t.total?Math.round(100*t.loaded/t.total):void 0}},t.processMessageResource=function(e){var t=e.type===ie.HttpEventType.Response?e.body:e;if(t&&t.error)throw new Error(t.error);return t},t.prototype.get$=function(e,r,n,i,o){return this.httpClient.get(t.sanitizeUrl(e,r),{headers:i,params:n,responseType:"json",observe:"body"})},t.prototype.getBlob$=function(e,r,n,i){return this.httpClient.get(t.sanitizeUrl(e,r),{params:n,headers:i,observe:"events",responseType:"blob",reportProgress:!0})},t.prototype.post$=function(e,r,n,i,o,a){return this.httpClient.post(t.sanitizeUrl(e,r),n,{headers:o,params:i,responseType:"json",observe:"body"})},t.prototype.postWithEvent$=function(e,r,n,i,o,a){return this.httpClient.post(t.sanitizeUrl(e,r),n,{params:i,headers:o,responseType:"json",observe:"events",reportProgress:!0})},t.prototype.put$=function(e,r,n,i,o,a){return this.httpClient.put(t.sanitizeUrl(e,r),n,{headers:o,params:i,responseType:"json",observe:"body"})},t.prototype.delete$=function(e,r,n,i,o){return this.httpClient.delete(t.sanitizeUrl(e,r),{headers:i,params:n,responseType:"json",observe:"body"})},t}(),rt=function(e){function r(t){return e.call(this,t)||this}return Ie(r,e),r.ctorParameters=function(){return[{type:ie.HttpClient}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](ie.HttpClient))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:ie.HttpClient}]},r}(tt),nt=function(){function e(e,t,r){this._resourceProvider=t,this._configService=r,this._SERVER_URL=this.getResourceAddress(e)}return Object.defineProperty(e.prototype,"SERVER_URL",{get:function(){return this._SERVER_URL},enumerable:!1,configurable:!0}),e.prototype.getResourceAddress=function(e){var t="",r=this._configService.getConfigurationSubtree(["providers","resources"]);return r instanceof Array?r.forEach((function(r){r.name===e&&(t=r.address)})):r.name===e&&(t=r.address),t},e.prototype.getResourcePage=function(e,t){if(!e)return e;return{content:this.changeType(e,t),pagination:e.hasOwnProperty("page")?e.page:{number:-1,size:0,totalPages:0,totalElements:0}}},e.prototype.changeType=function(e,t){return e&&e.hasOwnProperty("_embedded")?t&&e._embedded.hasOwnProperty(t)?e._embedded[t]:e._embedded:e},e}(),it=function(e){function r(t,r){return e.call(this,"user",t,r)||this}return Ie(r,e),r.prototype.assignAuthority=function(e,t,r){var n=this;return this._resourceProvider.post$("user/"+e+"/authority/assign",this.SERVER_URL,t,r,{"Content-Type":"text/plain"}).pipe(le.map((function(e){return n.changeType(e,void 0)})))},r.prototype.assignRoles=function(e,t,r){var n=this;return this._resourceProvider.post$("user/"+e+"/role/assign",this.SERVER_URL,t,r).pipe(le.map((function(e){return n.changeType(e,void 0)})))},r.prototype.getAllAuthorities=function(){var e=this;return this._resourceProvider.get$("user/authority",this.SERVER_URL).pipe(le.map((function(t){return e.changeType(t,"authorities")})))},r.prototype.getAll=function(e){var t=this;return this._resourceProvider.get$("user",this.SERVER_URL,e).pipe(le.map((function(e){return t.getResourcePage(e,"users")})))},r.prototype.getAllWithRole=function(e,t){var r=this;return this._resourceProvider.post$("user/role",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.changeType(e,"users")})))},r.prototype.getLoggedUser=function(e){var t=this;return this._resourceProvider.get$("user/me",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.getPublicLoggedUser=function(e){var t=this;return this._resourceProvider.get$("public/user/me",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.getUser=function(e,t){var r=this;return this._resourceProvider.get$("user/"+e,this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.getPreferences=function(e){var t=this;return this._resourceProvider.get$("user/preferences",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.setPreferences=function(e,t){var r=this;return this._resourceProvider.post$("user/preferences",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.getPublicPreferences=function(e){var t=this;return this._resourceProvider.get$("public/user/preferences",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.setPublicPreferences=function(e,t){var r=this;return this._resourceProvider.post$("public/user/preferences",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.search=function(e,t){var r=this;return this._resourceProvider.post$("user/search",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.getResourcePage(e,"users")})))},r.prototype.updateUser=function(e,t,r){var n=this;return this._resourceProvider.post$("user/"+e,this.SERVER_URL,t,r).pipe(le.map((function(e){return n.changeType(e,void 0)})))},r.prototype.getAllGroups=function(e){var t=this;return this._resourceProvider.get$("group/all",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.ctorParameters=function(){return[{type:rt},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:rt},{type:Me}]},r}(nt),ot=function(){function e(t){this._config=t,this._jwtHeader=this._config.get().providers.auth.jwtBearer?this._config.get().providers.auth.jwtBearer:e.JWT_BEARER_HEADER_DEFAULT,this._storage=this.resolveStorage(this._config.get().providers.auth.local),this._tokenSet=new ne.BehaviorSubject(!1)}return Object.defineProperty(e.prototype,"jwtHeader",{get:function(){return this._jwtHeader},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenSet",{get:function(){return this._tokenSet.asObservable()},enumerable:!1,configurable:!0}),e.prototype.getToken=function(){return this._storage.getItem(this._jwtHeader)},e.prototype.setToken=function(e){this._storage.setItem(this._jwtHeader,e),this._tokenSet.getValue()||this._tokenSet.next(!0)},e.prototype.removeToken=function(){this._storage.removeItem(this._jwtHeader),this._tokenSet.next(!1)},e.prototype.ngOnDestroy=function(){localStorage.removeItem(this._jwtHeader),this._tokenSet.complete()},e.prototype.resolveStorage=function(e){switch(e){case"local":return localStorage;case"session":return sessionStorage;case"null":return new Ke;default:return localStorage}},e.JWT_BEARER_HEADER_DEFAULT="X-Jwt-Token",e.ctorParameters=function(){return[{type:Me}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Me))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Me}]},e}(),at=function(){function e(e,t,r,n,i,o){var a=this;this._authService=e,this._userResource=t,this._userTransform=r,this._log=n,this._session=i,this._anonymousService=o,this._user=this.emptyUser(),this._loginCalled=!1,this._userChange$=new ne.ReplaySubject(1),this._anonymousUserChange$=new ne.ReplaySubject(1),setTimeout((function(){a._subAuth=a._authService.authenticated$.subscribe((function(e){e&&!a._loginCalled?a.loadUser():e||(a.clearUser(),a.publishUserChange())}))})),this._subAnonym=this._anonymousService.tokenSet.subscribe((function(e){e?a.loadPublicUser():(a.clearUser(),a.publishAnonymousUserChange())}))}return Object.defineProperty(e.prototype,"user",{get:function(){return this._user},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user$",{get:function(){return this._userChange$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anonymousUser$",{get:function(){return this._anonymousUserChange$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._userChange$.complete(),this._anonymousUserChange$.complete(),this._subAuth.unsubscribe(),this._subAnonym.unsubscribe()},e.prototype.hasAuthority=function(e){var t=this;return!(!e||!this._user.authorities)&&(e instanceof Array?e.some((function(e){return t._user.authorities.some((function(t){return t===e}))})):this._user.authorities.some((function(t){return t===e})))},e.prototype.hasRole=function(e){return!(!e||!this._user.roles)&&this._user.roles.some((function(t){return t===e}))},e.prototype.hasRoleById=function(e){return!(!e||!this._user.roles)&&this._user.roles.some((function(t){return t.stringId===e}))},e.prototype.hasRoleByIdentifier=function(e,t){return!!(e&&t&&this._user.roles)&&this._user.roles.some((function(r){return r.netImportId===t&&r.importId===e}))},e.prototype.hasRoleByName=function(e,t){return!!(e&&t&&this._user.roles)&&this._user.roles.some((function(r){return r.netImportId===t&&r.name===e}))},e.prototype.login=function(e){var t=this;return this._loginCalled=!0,this._authService.login(e).pipe(le.tap((function(e){t._user=e,t._loginCalled=!1,t.publishUserChange()})))},e.prototype.logout=function(){var e=this;return this._authService.logout().pipe(le.tap((function(){e._user=e.emptyUser(),e.publishUserChange()})))},e.prototype.reload=function(){this.loadUser()},e.prototype.emptyUser=function(){return new qe("","","","",[],[],[],[])},e.prototype.loadUser=function(){var e=this;this._userResource.getLoggedUser().pipe(le.take(1)).subscribe((function(t){if(t){var r=Ee(Ee({},t),{id:t.id.toString()});e._user=e._userTransform.transform(r),e.publishUserChange()}}),(function(t){t instanceof ie.HttpErrorResponse&&401===t.status?(e._log.debug("Authentication token is invalid. Clearing stream"),e._session.clear()):e._log.error("Loading logged user has failed! Initialisation has not be completed successfully!",t)}))},e.prototype.loadPublicUser=function(){var e=this;this._userResource.getPublicLoggedUser().pipe(le.take(1)).subscribe((function(t){if(t){var r=Ee(Ee({},t),{id:t.id.toString()});e._user=e._userTransform.transform(r),e.publishAnonymousUserChange()}}),(function(t){e._log.error("Loading logged user has failed! Initialisation has not be completed successfully!",t),e._publicLoadCalled=!1}))},e.prototype.clearUser=function(){this._user=this.emptyUser()},e.prototype.publishUserChange=function(){this._userChange$.next(this.user)},e.prototype.publishAnonymousUserChange=function(){this._anonymousUserChange$.next(this.user)},e.ctorParameters=function(){return[{type:Ze},{type:it},{type:Qe},{type:$e},{type:Xe},{type:ot}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Ze),t["ɵɵinject"](it),t["ɵɵinject"](Qe),t["ɵɵinject"]($e),t["ɵɵinject"](Xe),t["ɵɵinject"](ot))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Ze},{type:it},{type:Qe},{type:$e},{type:Xe},{type:ot}]},e}(),st=function(){function e(e,t){this.snackBarRef=e,this.data=t}return e.prototype.onDismiss=function(){this.snackBarRef.dismiss()},e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},e}(),ut=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.snackBarRef=t,n.data=r,n}return Ie(r,e),r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-generic-snack-bar",template:'<div fxLayout="row" fxLayoutAlign="start center" class="snack-bar-container">\n <mat-icon color="accent" class="snack-bar-icon-margin">{{data.matIconName}}</mat-icon>\n <span>{{data.message}}</span>\n <div fxFlex></div>\n <button *ngIf="data.closable" mat-icon-button (click)="onDismiss()">\n <mat-icon class="snack-bar-close-icon">close</mat-icon>\n </button>\n</div>\n',styles:[""]}]}],r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r}(st),ct=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.snackBarRef=t,n.data=r,n}return Ie(r,e),r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-success-snack-bar",template:'<div fxLayout="row" fxLayoutAlign="start center" class="snack-bar-container">\n <mat-icon class="snack-bar-icon-margin success-color">{{data.matIconName}}</mat-icon>\n <span>{{data.message}}</span>\n <div fxFlex></div>\n <button *ngIf="data.closable" mat-icon-button (click)="onDismiss()">\n <mat-icon class="snack-bar-close-icon">close</mat-icon>\n </button>\n</div>\n',styles:[".success-color{color:#2ac262}"]}]}],r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r}(st),lt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.snackBarRef=t,n.data=r,n}return Ie(r,e),r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-error-snack-bar",template:'<div fxLayout="row" fxLayoutAlign="start center" class="snack-bar-container">\n <mat-icon color="warn" class="snack-bar-icon-margin">{{data.matIconName}}</mat-icon>\n <span>{{data.message}}</span>\n <div fxFlex></div>\n <button *ngIf="data.closable" mat-icon-button (click)="onDismiss()">\n <mat-icon class="snack-bar-close-icon">close</mat-icon>\n </button>\n</div>\n',styles:[""]}]}],r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r}(st),pt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.snackBarRef=t,n.data=r,n}return Ie(r,e),r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-warning-snack-bar",template:'<div fxLayout="row" fxLayoutAlign="start center" class="snack-bar-container">\n <mat-icon class="snack-bar-icon-margin warning-color">{{data.matIconName}}</mat-icon>\n <span>{{data.message}}</span>\n <div fxFlex></div>\n <button *ngIf="data.closable" mat-icon-button (click)="onDismiss()">\n <mat-icon class="snack-bar-close-icon">close</mat-icon>\n </button>\n</div>\n',styles:[".warning-color{color:#fb3}"]}]}],r.ctorParameters=function(){return[{type:U.MatSnackBarRef},{type:void 0,decorators:[{type:t.Inject,args:[U.MAT_SNACK_BAR_DATA]}]}]},r}(st);(Je=e.SnackBarVerticalPosition||(e.SnackBarVerticalPosition={})).BOTTOM="bottom",Je.TOP="top",(et=e.SnackBarHorizontalPosition||(e.SnackBarHorizontalPosition={})).LEFT="left",et.CENTER="center",et.RIGHT="right";var dt=new t.InjectionToken("NaeSnackBarVerticalPosition"),ht=new t.InjectionToken("NaeSnackBarHorizontalPosition"),ft=function(){function r(t,r,n){this._snackBar=t,this._defaultTimeout=2.5,this._verticalPosition=e.SnackBarVerticalPosition.BOTTOM,this._horizontalPosition=e.SnackBarHorizontalPosition.CENTER,r&&(this._verticalPosition=r),n&&(this._horizontalPosition=n)}return r.prototype.openSuccessSnackBar=function(e,t,r,n,i){return void 0===t&&(t=this._verticalPosition),void 0===r&&(r=this._horizontalPosition),void 0===n&&(n=this._defaultTimeout),this._snackBar.openFromComponent(ct,Object.assign({data:{message:e,matIconName:"done",closable:!1},duration:1e3*n,horizontalPosition:r,verticalPosition:t},i))},r.prototype.openErrorSnackBar=function(e,t,r,n){return void 0===t&&(t=this._verticalPosition),void 0===r&&(r=this._horizontalPosition),this._snackBar.openFromComponent(lt,Object.assign({data:{message:e,matIconName:"error",closable:!0},horizontalPosition:r,verticalPosition:t},n))},r.prototype.openWarningSnackBar=function(e,t,r,n,i){return void 0===t&&(t=this._verticalPosition),void 0===r&&(r=this._horizontalPosition),void 0===n&&(n=this._defaultTimeout),this._snackBar.openFromComponent(pt,Object.assign({data:{message:e,matIconName:"warning",closable:!1},duration:1e3*n,horizontalPosition:r,verticalPosition:t},i))},r.prototype.openGenericSnackBar=function(e,t,r,n,i,o){return void 0===r&&(r=this._verticalPosition),void 0===n&&(n=this._horizontalPosition),void 0===i&&(i=this._defaultTimeout),this._snackBar.openFromComponent(ut,Object.assign({data:{message:e,matIconName:t,closable:!0},duration:1e3*i,horizontalPosition:n,verticalPosition:r},o))},r.ctorParameters=function(){return[{type:U.MatSnackBar},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[dt]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ht]}]}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](U.MatSnackBar),t["ɵɵinject"](dt,8),t["ɵɵinject"](ht,8))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:U.MatSnackBar},{type:e.SnackBarVerticalPosition,decorators:[{type:t.Optional},{type:t.Inject,args:[dt]}]},{type:e.SnackBarHorizontalPosition,decorators:[{type:t.Optional},{type:t.Inject,args:[ht]}]}]},r}(),gt=function(){function e(e,t,r,n,i){var o=this;this._userService=e,this._userResourceService=t,this._logger=r,this._snackbar=n,this._translate=i,this._preferences=this._emptyPreferences(),this._preferencesChanged$=new ne.Subject,this._drawerWidthChanged$=new ne.Subject,this._anonym=!1,this._sub=this._userService.user$.subscribe((function(e){e&&""!==e.id?o._userResourceService.getPreferences().subscribe((function(e){o._preferences=o._emptyPreferences(),Object.assign(o._preferences,e),o._preferencesChanged$.next()})):(o._preferences=o._emptyPreferences(),o._preferencesChanged$.next())})),this._subAnonym=this._userService.anonymousUser$.subscribe((function(e){e&&""!==e.id?o._userResourceService.getPublicPreferences().subscribe((function(e){o._preferences=o._emptyPreferences(),Object.assign(o._preferences,e),o._preferencesChanged$.next(),o._anonym=!0})):(o._preferences=o._emptyPreferences(),o._preferencesChanged$.next(),o._anonym=!1)})),this._drawerWidthChanged$.asObservable().pipe(le.debounceTime(1e3)).subscribe((function(e){o.drawerWidth=e}))}return e.prototype.ngOnDestroy=function(){this._sub.unsubscribe(),this._preferencesChanged$.complete()},e.prototype.setTaskFilters=function(e,t){this._preferences.taskFilters[e]=t,this._savePreferences()},e.prototype.getTaskFilters=function(e){return this._preferences.taskFilters[e]},e.prototype.setCaseFilters=function(e,t){this._preferences.caseFilters[e]=t,this._savePreferences()},e.prototype.getCaseFilters=function(e){return this._preferences.caseFilters[e]},e.prototype.setHeaders=function(e,t){this._preferences.headers[e]=t,this._savePreferences()},e.prototype.getHeaders=function(e){return this._preferences.headers[e]},e.prototype.setLocale=function(e){this._preferences.locale=e,this._savePreferences()},e.prototype.getLocale=function(){return this._preferences.locale},Object.defineProperty(e.prototype,"drawerWidth",{get:function(){return this._preferences.drawerWidth},set:function(e){this._preferences.drawerWidth=e,this._savePreferences()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferencesChanged$",{get:function(){return this._preferencesChanged$.asObservable()},enumerable:!1,configurable:!0}),e.prototype._savePreferences=function(){var e=this;this._anonym?this._userResourceService.setPublicPreferences(this._preferences).subscribe((function(t){e.resultMessage(t)})):this._userResourceService.setPreferences(this._preferences).subscribe((function(t){e.resultMessage(t)}))},e.prototype.resultMessage=function(e){"string"==typeof e.success?this._snackbar.openSuccessSnackBar(this._translate.instant("preferences.snackbar.saveSuccess")):(this._snackbar.openErrorSnackBar(this._translate.instant("preferences.snackbar.saveFailure")),this._logger.error("User preferences failed to save",e))},e.prototype._emptyPreferences=function(){return{drawerWidth:200,headers:{},caseFilters:{},taskFilters:{}}},e.ctorParameters=function(){return[{type:at},{type:it},{type:$e},{type:ft},{type:ue.TranslateService}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](at),t["ɵɵinject"](it),t["ɵɵinject"]($e),t["ɵɵinject"](ft),t["ɵɵinject"](ue.TranslateService))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:at},{type:it},{type:$e},{type:ft},{type:ue.TranslateService}]},e}(),yt=function(){function e(e,t,r){var n=this;this._translate=e,this._preferenceService=t,this._logger=r,this._LANG_MATCHER=/en-US|sk-SK|de-DE/,this._DEFAULT_LANG="en-US",e.addLangs(["en-US","sk-SK","de-DE"]),e.setTranslation("en-US",ze,!0),e.setTranslation("sk-SK",He,!0),e.setTranslation("de-DE",Ge,!0),e.setDefaultLang(this._DEFAULT_LANG),this._langChange$=new ne.Subject;var i=localStorage.getItem("Language");if(null===i){var o=e.getBrowserLang();this.setLanguage(o)}else this.setLanguage(i);setTimeout((function(){n._preferenceService&&(n.subPreference=n._preferenceService.preferencesChanged$.subscribe((function(){var e=n._preferenceService.getLocale();void 0!==e&&e!==n._translate.currentLang&&n.setLanguage(e)})))})),this.subTranslate=e.onLangChange.subscribe((function(e){n._logger.debug("Language changed to "+e.lang)}))}return e.prototype.ngOnDestroy=function(){this.subTranslate.unsubscribe(),this.subPreference&&this.subPreference.unsubscribe()},e.prototype.setLanguage=function(e,t){void 0===t&&(t=!1),this._translate.use(e.match(this._LANG_MATCHER)?e:this._DEFAULT_LANG),t&&this._preferenceService.setLocale(e),localStorage.setItem("Language",e.match(this._LANG_MATCHER)?e:this._DEFAULT_LANG),this._langChange$.next(e.match(this._LANG_MATCHER)?e:this._DEFAULT_LANG)},e.prototype.getLanguage=function(){return this._translate.currentLang},e.prototype.getLangChange$=function(){return this._langChange$.asObservable()},e.ctorParameters=function(){return[{type:ue.TranslateService},{type:gt},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](ue.TranslateService),t["ɵɵinject"](gt),t["ɵɵinject"]($e))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:ue.TranslateService},{type:gt},{type:$e}]},e}(),vt=function(){function e(e){this._select=e}return e.prototype.intercept=function(e,t){return e=e.clone({headers:e.headers.set("Accept-Language",this._select.getLanguage())}),t.handle(e)},e.ctorParameters=function(){return[{type:yt}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:yt}]},e}();function mt(e){return new ce.TranslateHttpLoader(e)}var _t,bt=mt,Tt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[r.CommonModule,ue.TranslateModule.forChild({loader:{provide:ue.TranslateLoader,useFactory:bt,deps:[ie.HttpClient]}})],exports:[ue.TranslateModule],providers:[ue.TranslateService,ue.TranslatePipe,ue.TranslateStore,yt,{provide:ie.HTTP_INTERCEPTORS,useClass:vt,multi:!0}]}]}],e}(),St=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,p.FlexLayoutModule,Fe,Ae,oe.AngularResizedEventModule,ie.HttpClientModule,l.ReactiveFormsModule,ae.NgxMatDatetimePickerModule,se.NgxMatMomentModule,Tt],providers:[{provide:L.DateAdapter,useClass:Be}]}]}],e}(),It=function(){function e(e,t,r,n,i,o,a,s,u,c,l){this._stringId=e,this._title=t,this._behavior=n,this._placeholder=i,this._description=o,this._layout=a,this.validations=s,this._component=u,this._parentTaskId=c,this._parentCaseId=l,this._sendInvalidValues=!0,this._reverting=!1,this._value=new ne.BehaviorSubject(r),this._previousValue=new ne.BehaviorSubject(r),this._initialized$=new ne.BehaviorSubject(!1),this._valid=!0,this._changed=!1,this._waitingForResponse=!1,this._update=new ne.Subject,this._block=new ne.Subject,this._touch=new ne.Subject,this._validRequired=!0,this.resetLocalLayout()}return Object.defineProperty(e.prototype,"stringId",{get:function(){return this._stringId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(e){this._description=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"behavior",{get:function(){return this._behavior},set:function(e){this._behavior=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this.valueEquality(this._value.getValue(),e)||this._reverting||(this._changed=!0,this._waitingForResponse=!0,this.resolvePrevValue(e)),this._value.next(e),this._reverting=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentTaskId",{get:function(){return this._parentTaskId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentCaseId",{get:function(){return this._parentCaseId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousValue",{get:function(){return this._previousValue.getValue()},set:function(e){this._previousValue.next(e)},enumerable:!1,configurable:!0}),e.prototype.valueWithoutChange=function(e){this._changed=!1,this._value.next(e)},Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localLayout",{get:function(){return this._localLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._behavior.visible&&!this._behavior.editable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized$.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized$",{get:function(){return this._initialized$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this._valid},set:function(e){this._valid=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changed",{get:function(){return this._changed},set:function(e){this._changed=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"block",{set:function(e){var t=this;void 0===this._initializedSubscription||this._initializedSubscription.closed||this._initializedSubscription.unsubscribe(),this._initializedSubscription=this.initialized$.pipe(le.filter((function(e){return e})),le.take(1)).subscribe((function(){t._block.next(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touch",{set:function(e){this._touch.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},enumerable:!1,configurable:!0}),e.prototype.revertToPreviousValue=function(){this.changed=!1,this._reverting=!0,this.value=this.previousValue},Object.defineProperty(e.prototype,"validRequired",{get:function(){return this._validRequired},set:function(e){this._validRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sendInvalidValues",{get:function(){return this._sendInvalidValues},set:function(e){this._sendInvalidValues=null===e||e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"waitingForResponse",{get:function(){return this._waitingForResponse},set:function(e){this._waitingForResponse=e},enumerable:!1,configurable:!0}),e.prototype.update=function(){this._update.next()},e.prototype.valueChanges=function(){return this._value.asObservable()},Object.defineProperty(e.prototype,"reverting",{get:function(){return this._reverting},set:function(e){this._reverting=e},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this._value.complete(),this._previousValue.complete(),this._update.complete(),this._touch.complete(),this._block.complete(),this._initialized$.complete()},e.prototype.registerFormControl=function(e){var t=this;if(this.initialized)throw new Error("Data field can be initialized only once! Disconnect the previous form control before initializing the data field again!");e.setValidators(this.resolveFormControlValidators()),this._formControlValueSubscription=e.valueChanges.pipe(le.distinctUntilChanged(this.valueEquality)).subscribe((function(r){t._valid=t._determineFormControlValidity(e),t.value=r})),this._myValueSubscription=this._value.pipe(le.distinctUntilChanged(this.valueEquality)).subscribe((function(r){t._valid=t._determineFormControlValidity(e),e.setValue(r)})),this.updateFormControlState(e),this._initialized$.next(!0),this._changed=!1,this._waitingForResponse=!1},e.prototype.disconnectFormControl=function(){var e,t;if(this.initialized){this._initialized$.next(!1);var r=[this._updateSubscription,this._blockSubscription,this._touchSubscription,this._formControlValueSubscription,this._myValueSubscription];try{for(var n=we(r),i=n.next();!i.done;i=n.next()){var o=i.value;o&&o.unsubscribe()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}},e.prototype.updateFormControlState=function(e){e.setValue(this.value),this.subscribeToInnerSubjects(e),this.update()},e.prototype.subscribeToInnerSubjects=function(e){var t=this;this._updateSubscription=this._update.subscribe((function(){t.validRequired=t.calculateValidity(!0,e),t.valid=t.calculateValidity(!1,e),t._blocked||(t.disabled?e.disable():e.enable())})),this._blockSubscription=this._block.subscribe((function(r){r?(t._blocked=!0,e.disable()):(t._blocked=!1,t.disabled?e.disable():e.enable())})),this._touchSubscription=this._touch.subscribe((function(t){t?e.markAsTouched():e.markAsUntouched()}))},e.prototype._determineFormControlValidity=function(e){return e.disabled||e.valid},e.prototype.resolveFormControlValidators=function(){var e=[];return this.behavior.required&&e.push(l.Validators.required),this.validations&&(this._validators||(this._validators=this.resolveValidations()),e.push.apply(e,ke(this._validators))),e},e.prototype.replaceValidations=function(e){this.clearValidators(),this.validations=e},e.prototype.clearValidators=function(){this._validators=null},e.prototype.resolveValidations=function(){return[]},e.prototype.valueEquality=function(e,t){return e===t},e.prototype.applyChange=function(e){var t=this;Object.keys(e).forEach((function(r){switch(r){case"value":t.value=e[r];break;case"behavior":Object.assign(t.behavior,e[r]),t.update();break;default:throw new Error("Unknown attribute '"+r+"' in change object")}}))},e.prototype.resolveAppearance=function(e){var t="outline";if(this.layout&&this.layout.appearance)t=this.layout.appearance;else{var r=e.getDatafieldConfiguration();r&&r.appearance&&(t=r.appearance)}this.materialAppearance=t},e.prototype.resolvePrevValue=function(e){void 0!==this._value.getValue()&&this._value.getValue()!==e&&this._previousValue.next(this._value.getValue())},e.prototype.calculateValidity=function(e,t){var r=t.disabled;e&&t.enable(),t.clearValidators(),e?t.setValidators(this.behavior.required?[l.Validators.required]:[]):t.setValidators(this.resolveFormControlValidators()),t.updateValueAndValidity();var n=this._determineFormControlValidity(t);return r?t.disable():t.enable(),n},e.prototype.isInvalid=function(e){return!e.disabled&&!e.valid&&e.touched},e.prototype.resetLocalLayout=function(){void 0!==this._layout?this._localLayout=Ee({},this._layout):this._localLayout=void 0},e}();(_t=e.BooleanFieldValidation||(e.BooleanFieldValidation={})).REQUIRED_TRUE="requiredTrue",_t.REQUIRED="required";var Et,wt=function(t){function r(e,r,n,i,o,a,s,u,c,l){return t.call(this,e,r,n,i,o,a,s,u,c,l)||this}return Ie(r,t),r.prototype.resolveValidations=function(){var t=this,r=[];return this.validations.forEach((function(n){n.validationRule.includes(e.BooleanFieldValidation.REQUIRED_TRUE)&&r.push(t.requiredTrue)})),r},r.prototype.requiredTrue=function(e){return!0===e.value?null:{requiredTrue:!0}},r}(It),Ct=new t.InjectionToken("NaeInformAboutInvalidData"),kt=function(){function e(e){this._informAboutInvalidData=e,this.taskOffset=0,this._formControl=new l.FormControl("",{updateOn:"blur"})}return e.prototype.ngOnInit=function(){this.dataField.registerFormControl(this._formControl),this.dataField.sendInvalidValues=this._informAboutInvalidData},e.prototype.ngOnDestroy=function(){this.dataField.disconnectFormControl()},Object.defineProperty(e.prototype,"formControl",{get:function(){return this._formControl},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},e.propDecorators={dataField:[{type:t.Input}],taskOffset:[{type:t.Input}]},e}(),Ot=function(r){function n(e,t){var n=r.call(this,t)||this;return n._translate=e,n._formControl=new l.FormControl(""),n}return Ie(n,r),n.prototype.getErrorMessage=function(){return this.formControl.hasError(e.BooleanFieldValidation.REQUIRED)?this._translate.instant("dataField.validations.required"):this.formControl.hasError(e.BooleanFieldValidation.REQUIRED_TRUE)?this.resolveErrorMessage(this.dataField,e.BooleanFieldValidation.REQUIRED_TRUE,this._translate.instant("dataField.validations.requiredTrue")):""},n.prototype.createValueLabel=function(){return this._translate.instant("dataField.values.boolean."+this.dataField.value)},n.prototype.resolveErrorMessage=function(e,t,r){var n=e.validations.find((function(e){return e.validationRule.includes(t)}));return n.validationMessage&&""!==n.validationMessage?n.validationMessage:r},n.ctorParameters=function(){return[{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},n.propDecorators={dataField:[{type:t.Input}]},n}(kt);(Et=e.ButtonFieldView||(e.ButtonFieldView={})).STANDARD="standard",Et.RAISED="raised",Et.STROKED="stroked",Et.FLAT="flat",Et.ICON="icon",Et.FAB="fab",Et.MINIFAB="minifab",(e.ButtonFieldValidation||(e.ButtonFieldValidation={})).REQUIRED="required";var Ft,At=function(t){function r(r,n,i,o,a,s,u,c,l,p,d){void 0===c&&(c=e.ButtonFieldView.STANDARD);var h=t.call(this,r,n,void 0===o?0:o,i,a,s,u,l,p,d)||this;return h._view=c,h}return Ie(r,t),Object.defineProperty(r.prototype,"view",{get:function(){return this._view},enumerable:!1,configurable:!0}),r}(It),Rt=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]}]},e}(),Pt=function(e){function r(t,r,n){var i=e.call(this,t,r)||this;return i.dialogRef=t,i.data=r,i.sanitizer=n,i.choice=!1,r&&r.content?i.parsedContent=n.bypassSecurityTrustHtml(r.content.replace("\\n","<br>")):i.parsedContent=n.bypassSecurityTrustHtml(""),i}return Ie(r,e),r.prototype.onClose=function(e){this.dialogRef.close({confirmed:e})},r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]},{type:pe.DomSanitizer}]},r.decorators=[{type:t.Component,args:[{selector:"nae-question-dialog",template:'<h1 mat-dialog-title>{{data.title}}</h1>\n\n<div mat-dialog-content class="dialog-container dialog-content-margin" [innerHTML]="parsedContent"></div>\n\n<mat-dialog-actions fxLayoutAlign="end">\n <button mat-button color="warn" (click)="onClose(false)">{{data.negativeLabel}}</button>\n <button mat-flat-button color="primary" (click)="onClose(true)">{{data.positiveLabel}}</button>\n</mat-dialog-actions>\n',styles:[""]}]}],r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]},{type:pe.DomSanitizer}]},r}(Rt),Nt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.dialogRef=t,n.data=r,n}return Ie(r,e),r.prototype.onClose=function(){this.dialogRef.close({})},r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-simple-dialog",template:'<h1 mat-dialog-title>{{data.title}}</h1>\n\n<div mat-dialog-content class="dialog-container dialog-content-margin">{{data.content}}</div>\n\n<mat-dialog-actions fxLayoutAlign="end">\n <button mat-button color="primary" (click)="onClose()">OK</button>\n</mat-dialog-actions>\n',styles:[""]}]}],r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]}]},r}(Rt),Dt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.dialogRef=t,n.data=r,n.disableButton=!0,n}return Ie(r,e),r.prototype.onClose=function(e){this.dialogRef.close(e?{prompt:this.prompt}:{})},r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]}]},r.decorators=[{type:t.Component,args:[{selector:"nae-question-dialog-with-answer",template:'<h1 mat-dialog-title>{{data.title}}</h1>\n\n<div mat-dialog-content class="dialog-container dialog-content-margin">\n <span>{{data.content}}</span>\n <br>\n <mat-form-field class="dialog-prompt-margin">\n <mat-label>{{data.placeholder}}</mat-label>\n <input matInput [(ngModel)]="prompt" (ngModelChange)="disableButton = !prompt || prompt.trim().length === 0">\n </mat-form-field>\n</div>\n\n<mat-dialog-actions fxLayoutAlign="end">\n <button mat-button (click)="onClose(false)">{{ \'dialog.close\' | translate}}</button>\n <button mat-flat-button color="primary" [disabled]="disableButton" (click)="onClose(true)">{{ \'dialog.submit\' | translate}}</button>\n</mat-dialog-actions>\n',styles:[".dialog-prompt-margin{margin-top:16px}"]}]}],r.ctorParameters=function(){return[{type:I.MatDialogRef},{type:void 0,decorators:[{type:t.Inject,args:[I.MAT_DIALOG_DATA]}]}]},r}(Rt),Lt=function(){function e(e){this.dialog=e}return e.prototype.openAlertDialog=function(e,t,r){return this.dialog.open(Nt,Object.assign({data:{title:e,content:t}},r))},e.prototype.openConfirmDialog=function(e,t,r,n,i){return this.dialog.open(Pt,Object.assign({data:{title:e,content:t,negativeLabel:r,positiveLabel:n}},i))},e.prototype.openPromptDialog=function(e,t,r,n){return this.dialog.open(Dt,Object.assign({data:{title:e,content:t,placeholder:r}},n))},e.ctorParameters=function(){return[{type:I.MatDialog}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](I.MatDialog))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:I.MatDialog}]},e}(),jt=function(r){function n(e,t,n){var i=r.call(this,n)||this;return i._translate=e,i._dialogService=t,i}return Ie(n,r),n.prototype.getErrorMessage=function(){if(this.formControl.hasError(e.ButtonFieldValidation.REQUIRED))return this._translate.instant("dataField.validations.required")},n.prototype.resolveComponentType=function(){return this.dataField.component&&void 0!==this.dataField.component.name?this.dataField.component.name:this.dataField.view},n.prototype.isIconTypeButton=function(){return"fab"===this.resolveComponentType()||"minifab"===this.resolveComponentType()||"icon"===this.resolveComponentType()},n.prototype.resolveValue=function(){var e=this;this.dataField.component&&this.dataField.component.properties&&void 0!==this.dataField.component.properties.dialogText?this._dialogService.openConfirmDialog(this.dataField.component.properties.dialogTitle,this.dataField.component.properties.dialogText,this._translate.instant("dialog.close"),this._translate.instant("dialog.submit")).afterClosed().pipe(le.take(1)).subscribe((function(t){t&&t.confirmed&&e.formControl.setValue(e.formControl.value+1)})):this.formControl.setValue(this.formControl.value+1)},n.ctorParameters=function(){return[{type:ue.TranslateService},{type:Lt},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},n.propDecorators={dataField:[{type:t.Input}]},n}(kt),Mt=function(){};(Ft=e.TemplateAppearance||(e.TemplateAppearance={})).MATERIAL="material",Ft.NETGRIF="netgrif";var xt,Vt=function(){function r(t,r){this._paperView=t,this._config=r,this.layoutChangeWidthBreakpoint=250,this.offset=0,this._isConfiguredNetgrifTemplate=!0,this._isNetgrifTemplate=!0,this._showLargeLayout=new Mt;var n=this._config.getDatafieldConfiguration();this._isConfiguredNetgrifTemplate=n&&n.template&&n.template===e.TemplateAppearance.NETGRIF}return r.prototype.ngOnInit=function(){this._dataField&&this._dataField.layout&&this._dataField.layout.offset&&(this.offset+=this._dataField.layout.offset),this._showLargeLayout.value=this.evaluateTemplate(),this._dataField.resolveAppearance(this._config)},Object.defineProperty(r.prototype,"showLargeLayout",{get:function(){return this._showLargeLayout},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataField",{get:function(){return this._dataField},set:function(t){this._dataField=t,this._dataField.layout&&this._dataField.layout.template?this._isNetgrifTemplate=this._dataField.layout.template===e.TemplateAppearance.NETGRIF:this._isNetgrifTemplate=this._isConfiguredNetgrifTemplate},enumerable:!1,configurable:!0}),r.prototype.evaluateTemplateCondition=function(){return this.container&&this.container.nativeElement&&this.container.nativeElement.offsetWidth?this._showLargeLayout.value=this.container.nativeElement.offsetWidth>=this.layoutChangeWidthBreakpoint&&this.evaluateTemplate():this._showLargeLayout.value=this.evaluateTemplate(),this._showLargeLayout.value},r.prototype.evaluateTemplate=function(){return!this._dataField||this._isNetgrifTemplate},r.prototype.isPaperView=function(){return this._paperView.paperView},r.propDecorators={dataFieldTemplate:[{type:t.Input}],layoutChangeWidthBreakpoint:[{type:t.Input}],offset:[{type:t.Input}],container:[{type:t.ViewChild,args:["dataFieldContainer"]}],dataField:[{type:t.Input}]},r}();!function(e){e.BETWEEN="between",e.WORKDAY="workday",e.WEEKEND="weekend",e.REQUIRED="required",e.VALID_BETWEEN="validBetween",e.VALID_WORKDAY="validWorkday",e.VALID_WEEKEND="validWeekend"}(xt||(xt={}));var Ut,$t,Bt,zt=function(e){function t(t,r,n,i,o,a,s,u,c,l){return e.call(this,t,r,n,i,o,a,s,u,c,l)||this}return Ie(t,e),t.isEqual=function(e,t,r){return!e&&!t||!!e&&!!t&&e.isSame(t,r)},t.parseDate=function(e){if(e.includes("past"))return"past";if(e.includes("future"))return"future";if(e.includes("today")||e.includes("now")){if(e.includes("+")||e.includes("-")){var t=e.includes("+")?e.split("+")[1]:e.split("-")[1];if(e.includes("today"))return e.includes("+")?de().startOf("day").add(de.duration(t)):de().startOf("day").subtract(de.duration(t));if(e.includes("now"))return e.includes("+")?de().add(de.duration(t)):de().subtract(de.duration(t))}return e.includes("today")?de().startOf("day"):de()}var r=de(e);return r.isValid?r:null},t.prototype.resolveValidations=function(){var e=this,r=[];return this.validations.forEach((function(n){if(n.validationRule.includes(xt.BETWEEN)){var i=n.validationRule.split(" ")[1].split(","),o=t.parseDate(i[0]),a=t.parseDate(i[1]);o&&a&&("past"===o&&de(a).isValid()?(r.push(e.validFromPast(de(a))),e.max=de(a)):"future"===a&&de(o).isValid()?(r.push(e.validToFuture(de(o))),e.min=de(o)):de(o).isValid()&&de(a).isValid()&&(r.push(e.validBetween(de(o),de(a))),e.min=de(o),e.max=de(a)))}else n.validationRule.includes(xt.WORKDAY)?r.push(e.validWorkday):n.validationRule.includes(xt.WEEKEND)&&r.push(e.validWeekend)})),r},t.prototype.validFromPast=function(e){return function(t){return t.value>e?{validBetween:!0}:null}},t.prototype.validToFuture=function(e){return function(t){return t.value<e?{validBetween:!0}:null}},t.prototype.validBetween=function(e,t){return function(r){return r.value<e||r.value>t?{validBetween:!0}:null}},t.prototype.validWorkday=function(e){var t=e.value?e.value.weekday():null;return 6===t||0===t?{validWorkday:!0}:null},t.prototype.validWeekend=function(e){var t=e.value?e.value.weekday():null;return t>=1&&t<=5&&0!==t?{validWeekend:!0}:null},t}(It),Ht=function(e){function r(t,r){var n=e.call(this,r)||this;return n._translate=t,n}return Ie(r,e),r.prototype.buildErrorMessage=function(e){if(this.formControl.hasError(xt.REQUIRED))return this._translate.instant("dataField.validations.required");if(this.formControl.hasError(xt.VALID_BETWEEN)){var t=e.validations.find((function(e){return e.validationRule.includes(xt.BETWEEN)})).validationRule.split(" ")[1].split(","),r=zt.parseDate(t[0]),n=zt.parseDate(t[1]);return r=de.isMoment(r)?r.format("DD.MM.YYYY HH:mm:ss"):r,n=de.isMoment(n)?n.format("DD.MM.YYYY HH:mm:ss"):n,this.resolveErrorMessage(e,xt.BETWEEN,this._translate.instant("dataField.validations.dateRange",{left:r,right:n}))}return this.formControl.hasError(xt.VALID_WORKDAY)?this.resolveErrorMessage(e,xt.WORKDAY,this._translate.instant("dataField.validations.workday")):this.formControl.hasError(xt.VALID_WEEKEND)?this.resolveErrorMessage(e,xt.WEEKEND,this._translate.instant("dataField.validations.weekend")):""},r.prototype.resolveErrorMessage=function(e,t,r){var n=e.validations.find((function(e){return e.validationRule.includes(t)}));return n.validationMessage&&""!==n.validationMessage?n.validationMessage:r},r.ctorParameters=function(){return[{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r}(kt),Gt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n._translate=t,n}return Ie(r,e),r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.dataField)},r.ctorParameters=function(){return[{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(Ht),qt=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n._translate=t,n}return Ie(r,e),r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.dataField)},r.ctorParameters=function(){return[{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(Ht),Wt=function(e){function r(t){var r=e.call(this,t)||this;return r._formControl=new l.FormControl(""),r}return Ie(r,e),r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt),Qt=function(){function e(){}return e.prototype.ngOnInit=function(){},e.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),Kt=function(){function e(){}return e.prototype.ngOnInit=function(){},e.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}();(Ut=e.FieldTypeResource||(e.FieldTypeResource={})).BOOLEAN="boolean",Ut.TEXT="text",Ut.NUMBER="number",Ut.ENUMERATION="enumeration",Ut.MULTICHOICE="multichoice",Ut.DATE="date",Ut.DATE_TIME="dateTime",Ut.USER="user",Ut.BUTTON="button",Ut.FILE="file",Ut.FILE_LIST="fileList",Ut.ENUMERATION_MAP="enumeration_map",Ut.MULTICHOICE_MAP="multichoice_map",Ut.TASK_REF="taskRef",Ut.FILTER="filter",Ut.I18N="i18n",($t=e.EnumerationFieldView||(e.EnumerationFieldView={})).DEFAULT="default",$t.LIST="list",$t.AUTOCOMPLETE="autocomplete",$t.STEPPER="stepper",(Bt=e.EnumerationFieldValidation||(e.EnumerationFieldValidation={})).WRONG_VALUE="wrongValue",Bt.REQUIRED="required";var Yt,Xt,Zt=function(t){function r(r,n,i,o,a,s,u,c,l,p,d,h,f){void 0===l&&(l=e.EnumerationFieldView.DEFAULT),void 0===p&&(p=e.FieldTypeResource.ENUMERATION);var g=t.call(this,r,n,i,a,s,u,c,d,h,f)||this;return g._choices=o,g._view=l,g._fieldType=p,g}return Ie(r,t),Object.defineProperty(r.prototype,"choices",{get:function(){return this._choices},set:function(e){this._choices=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"view",{get:function(){return this._view},set:function(e){this._view=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fieldType",{get:function(){return this._fieldType},enumerable:!1,configurable:!0}),r.prototype.resolveFormControlValidators=function(){var e=this,t=[];return this.behavior.required&&t.push(l.Validators.required),t.push((function(t){return e.checkKey(t)})),t},r.prototype.checkKey=function(e){return void 0===this._choices||0===this._choices.length||""===e.value||void 0===e.value||this._choices.find((function(t){return t.key===e.value}))?null:{wrongValue:!0}},r.prototype.getType=function(){return this.component&&this.component.name?this.component.name:this.view},r}(It),Jt=function(){function r(e){var t=this;this._translate=e,this.renderSelection=function(e){return void 0!==e&&""!==e&&null!==e&&t.enumerationField.choices.find((function(t){return t.key===e}))?t.enumerationField.choices.find((function(t){return t.key===e})).value:e}}return r.prototype.ngOnInit=function(){var e=this;this.filteredOptions=this.formControlRef.valueChanges.pipe(le.startWith(""),le.map((function(t){return e._filter(t)})))},r.prototype.ngOnDestroy=function(){this.filteredOptions=void 0},r.prototype._filter=function(e){var t=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return this.enumerationField.choices.filter((function(e){return 0===e.value.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t)}))},r.prototype.change=function(){void 0!==this.text.nativeElement.value&&(this.filteredOptions=ne.of(this._filter(this.text.nativeElement.value)))},r.prototype.buildErrorMessage=function(){return this.formControlRef.hasError(e.EnumerationFieldValidation.REQUIRED)?this._translate.instant("dataField.validations.required"):this.formControlRef.hasError(e.EnumerationFieldValidation.WRONG_VALUE)?this._translate.instant("dataField.validations.enumeration"):void 0},r.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}],text:[{type:t.ViewChild,args:["input"]}]},r}(),er=function(){function e(e){this.ref=e,this.arrowStepper=!1}return e.prototype.ngOnInit=function(){this.enumerationField&&this.enumerationField.component&&this.enumerationField.component.properties&&this.enumerationField.component.properties.arrowStepper&&(this.arrowStepper="true"===this.enumerationField.component.properties.arrowStepper)},e.prototype.canShowDoneIcon=function(e){var t=this;return e<=this.enumerationField.choices.findIndex((function(e){return e.key===t.enumerationField.value}))},e.prototype.isSelected=function(e){return e===this.enumerationField.value},e.prototype.ngAfterViewChecked=function(){if(this.steps&&this.steps.toArray()){var e=(this.ref.nativeElement.parentElement.offsetWidth+20*(this.enumerationField.choices.length-1))/this.enumerationField.choices.length;this.steps.toArray().forEach((function(t){t.nativeElement.style.maxWidth=e>=72?e+"px":"72px"}))}},e.prototype.setStepperValue=function(e){this.enumerationField.disabled||this.formControlRef.setValue(e)},e.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}],steps:[{type:t.ViewChildren,args:["oneStep"]}]},e}();(Yt=e.FileUploadMIMEType||(e.FileUploadMIMEType={})).IMAGE="image/*",Yt.VIDEO="video/*",Yt.AUDIO="audio/*",Yt.PDF=".pdf",Yt.JPG=".jpg",Yt.XML=".xml",Yt.DOC_DOCX=".doc,.docx",Yt.XLS_XLSX=".xls,.xlsx",(Xt=e.FilePreviewType||(e.FilePreviewType={}))[Xt.pdf=0]="pdf",Xt[Xt.jpg=1]="jpg",Xt[Xt.jpeg=2]="jpeg",Xt[Xt.png=3]="png";var tr,rr,nr,ir,or=function(e){function t(t,r,n,i,o,a,s,u,c,l,p,d){var h=e.call(this,t,r,i,n,o,a,s,l,p,d)||this;return h._maxUploadSizeInBytes=u,h._allowTypes=c,h.filesSize=0,h._changedFields$=new ne.Subject,h}return Ie(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this.valueEquality(this._value.getValue(),e)||this.reverting||(this.changed=!0,this.waitingForResponse=!0,this.resolvePrevValue(null!=e?e:{})),this._value.next(null!=e?e:{}),this.reverting=!1},enumerable:!1,configurable:!0}),t.prototype.valueWithoutChange=function(e){this.changed=!1,this._value.next(null!=e?e:{})},Object.defineProperty(t.prototype,"maxUploadSizeInBytes",{get:function(){return this._maxUploadSizeInBytes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowTypes",{get:function(){return this._allowTypes instanceof Array?this._allowTypes.toString():this._allowTypes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changedFields$",{get:function(){return this._changedFields$.asObservable()},enumerable:!1,configurable:!0}),t.prototype.emitChangedFields=function(e){this._changedFields$.next(e)},t.prototype.valueEquality=function(e,t){var r=JSON.stringify(e)===JSON.stringify(t);return e&&e.file&&t&&t.file&&(r=e.file.name===t.file.name),!e&&!t||!!e&&!!t&&e.name===t.name&&r},t.prototype.registerFormControl=function(e){var t=this;if(this.initialized)throw new Error("Data field can be initialized only once! Disconnect the previous form control before initializing the data field again!");e.setValidators(this.resolveFormControlValidators()),this._myValueSubscription=this._value.pipe(le.distinctUntilChanged(this.valueEquality)).subscribe((function(r){var n;t.valid=t._determineFormControlValidity(e),e.setValue(null!==(n=null==r?void 0:r.name)&&void 0!==n?n:""),t.update()})),this.updateFormControlState(e),this._initialized$.next(!0),this.changed=!1,this.waitingForResponse=!1},t.prototype.updateFormControlState=function(e){this.subscribeToInnerSubjects(e),this.update()},t}(It);(tr=e.FilterType||(e.FilterType={})).TASK="Task",tr.CASE="Case",(rr=e.TextFieldView||(e.TextFieldView={})).DEFAULT="default",rr.TEXTAREA="textarea",rr.RICHTEXTAREA="richtextarea",rr.HTMLTEXTAREA="htmltextarea",(nr=e.TextAreaHeight||(e.TextAreaHeight={}))[nr.OUTLINE=27]="OUTLINE",nr[nr.FILL_STANDARD=34]="FILL_STANDARD",(ir=e.TextFieldValidation||(e.TextFieldValidation={})).REQUIRED="required",ir.MIN_LENGTH="minLength",ir.MAX_LENGTH="maxLength",ir.VALID_MIN_LENGTH="minlength",ir.VALID_MAX_LENGTH="maxlength",ir.PATTERN="pattern",ir.REGEX="regex",ir.VALID_TEL_NUMBER="validTelNumber",ir.TEL_NUMBER="telNumber",ir.EMAIL="email";var ar,sr=function(t){function r(r,n,i,o,a,s,u,c,l,p,d){void 0===l&&(l=e.TextFieldView.DEFAULT);var h=t.call(this,r,n,i,o,a,s,u,c,p,d)||this;return h._view=l,h}return Ie(r,t),Object.defineProperty(r.prototype,"view",{get:function(){return this._view},enumerable:!1,configurable:!0}),r.prototype.resolveValidations=function(){var t=this,r=[];return this.validations.forEach((function(n){if(n.validationRule.includes(e.TextFieldValidation.MIN_LENGTH)){if(void 0!==(o=n.validationRule.split(" "))[1]){var i=parseInt(o[1],10);isNaN(i)||r.push(l.Validators.minLength(i))}}else if(n.validationRule.includes(e.TextFieldValidation.MAX_LENGTH)){var o;if(void 0!==(o=n.validationRule.split(" "))[1]){var a=parseInt(o[1],10);isNaN(a)||r.push(l.Validators.maxLength(a))}}else n.validationRule.includes(e.TextFieldValidation.REGEX)?n.validationRule.startsWith("regex ")?r.push(l.Validators.pattern(new RegExp(n.validationRule.substring(6,n.validationRule.length)))):n.validationRule.startsWith('regex("')&&r.push(l.Validators.pattern(new RegExp(n.validationRule.substring(7,n.validationRule.length-2)))):n.validationRule.includes(e.TextFieldValidation.EMAIL)?r.push(l.Validators.email):n.validationRule.includes(e.TextFieldValidation.TEL_NUMBER)&&r.push(t.validTelNumber)})),r},r.prototype.validTelNumber=function(e){return new RegExp(/^(?:\+?(\d{1,3}))?([-. (]*(\d{3})[-. )]*)?((\d{3})[-. ]*(\d{2,4})(?:[-.x ]*(\d+))?)$/).test(e.value)?null:{validTelNumber:!0}},r.FIELD_HEIGHT=105,r}(It);(ar=e.NumberFieldValidation||(e.NumberFieldValidation={})).ODD="odd",ar.EVEN="even",ar.POSITIVE="positive",ar.NEGATIVE="negative",ar.DECIMAL="decimal",ar.IN_RANGE="inrange",ar.INF="inf",ar.REQUIRED="required",ar.VALID_ODD="validOdd",ar.VALID_EVEN="validEven",ar.VALID_POSITIVE="validPositive",ar.VALID_NEGATIVE="validNegative",ar.VALID_DECIMAL="validDecimal",ar.VALID_IN_RANGE="validInRange";var ur,cr=function(t){function r(e,r,n,i,o,a,s,u,c,l,p){var d=t.call(this,e,r,n,i,a,s,u,o,l,p)||this;return d._formatFilter=c,d}return Ie(r,t),r.prototype.resolveValidations=function(){var t=this,r=[];return this.validations.forEach((function(n){if(n.validationRule.includes(e.NumberFieldValidation.ODD))r.push(t.validOdd);else if(n.validationRule.includes(e.NumberFieldValidation.EVEN))r.push(t.validEven);else if(n.validationRule.includes(e.NumberFieldValidation.POSITIVE))r.push(t.validPositive);else if(n.validationRule.includes(e.NumberFieldValidation.NEGATIVE))r.push(t.validNegative);else if(n.validationRule.includes(e.NumberFieldValidation.DECIMAL))r.push(t.validDecimal);else if(n.validationRule.includes(e.NumberFieldValidation.IN_RANGE)){var i=n.validationRule.split(" ")[1].split(","),o=parseFloat(i[0]),a=parseFloat(i[1]);isNaN(o)&&!isNaN(a)&&i[0].includes(e.NumberFieldValidation.INF)?r.push(t.validInRangeSmaller(a)):isNaN(a)&&!isNaN(o)&&i[1].includes(e.NumberFieldValidation.INF)?r.push(t.validInRangeBigger(o)):isNaN(o)||isNaN(a)||r.push(t.validInRange(o,a))}})),r},r.prototype.validOdd=function(e){return e.value%2==0?{validOdd:!0}:null},r.prototype.validEven=function(e){return e.value%2!=0?{validEven:!0}:null},r.prototype.validPositive=function(e){return e.value<0?{validPositive:!0}:null},r.prototype.validNegative=function(e){return e.value>=0?{validNegative:!0}:null},r.prototype.validDecimal=function(e){return e.value%1!=0?{validDecimal:!0}:null},r.prototype.validInRangeSmaller=function(e){return function(t){return t.value>e?{validInRange:!0}:null}},r.prototype.validInRangeBigger=function(e){return function(t){return t.value<e?{validInRange:!0}:null}},r.prototype.validInRange=function(e,t){return function(r){return r.value<e||r.value>t?{validInRange:!0}:null}},r}(It);(ur=e.MultichoiceFieldView||(e.MultichoiceFieldView={})).DEFAULT="default",ur.LIST="list";var lr=function(t){function r(r,n,i,o,a,s,u,c,l,p,d,h,f){void 0===l&&(l=e.MultichoiceFieldView.DEFAULT),void 0===p&&(p=e.FieldTypeResource.MULTICHOICE);var g=t.call(this,r,n,i,a,s,u,c,d,h,f)||this;return g._choices=o,g._view=l,g._fieldType=p,g}return Ie(r,t),Object.defineProperty(r.prototype,"choices",{get:function(){return this._choices},set:function(e){this._choices=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"view",{get:function(){return this._view},set:function(e){this._view=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fieldType",{get:function(){return this._fieldType},enumerable:!1,configurable:!0}),r.prototype.valueEquality=function(e,t){return!e&&!t||!!e&&!!t&&e.length===t.length&&e.every((function(e,r){return e===t[r]}))},r}(It),pr=function(e){function t(t,r,n,i,o,a,s,u,c,l){return e.call(this,t,r,n,i,o,a,s,u,c,l)||this}return Ie(t,e),t.prototype.valueEquality=function(e,t){return zt.isEqual(e,t,"day")},t}(zt),dr=function(e){function t(t,r,n,i,o,a,s,u,c,l){return e.call(this,t,r,n,i,o,a,s,u,c,l)||this}return Ie(t,e),t.prototype.valueEquality=function(e,t){return zt.isEqual(e,t,"minute")},t}(zt),hr=function(e){function t(t,r,n,i,o,a,s,u,c,l,p){var d=e.call(this,t,r,i,n,a,s,u,c,l,p)||this;return d._roles=o,d}return Ie(t,e),Object.defineProperty(t.prototype,"roles",{get:function(){return this._roles},enumerable:!1,configurable:!0}),t.prototype.valueEquality=function(e,t){return!e&&!t||!!e&&!!t&&e.email===t.email},t}(It),fr=function(){function e(e,t,r,n){this._id=e,this._name=t,this._surname=r,this._email=n}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surname",{get:function(){return this._surname},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullName",{get:function(){return this._name+" "+this._surname},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"email",{get:function(){return this._email},enumerable:!1,configurable:!0}),e}();(e.FileListFieldValidation||(e.FileListFieldValidation={})).MAX_FILES="maxFiles";var gr=function(e){function t(t,r,n,i,o,a,s,u,c,l,p,d){var h=e.call(this,t,r,i,n,o,a,s,u,p,d)||this;return h._maxUploadSizeInBytes=c,h._allowTypes=l,h._changedFields$=new ne.Subject,h.downloaded=new Array,h}return Ie(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value.getValue()},set:function(e){this.valueEquality(this._value.getValue(),e)||this.reverting||(this.changed=!0,this.waitingForResponse=!0,this.resolvePrevValue(null!=e?e:{namesPaths:[]})),this._value.next(null!=e?e:{namesPaths:[]}),this.reverting=!1},enumerable:!1,configurable:!0}),t.prototype.valueWithoutChange=function(e){this.changed=!1,this._value.next(null!=e?e:{namesPaths:[]})},Object.defineProperty(t.prototype,"maxUploadSizeInBytes",{get:function(){return this._maxUploadSizeInBytes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowTypes",{get:function(){return this._allowTypes instanceof Array?this._allowTypes.toString():this._allowTypes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changedFields$",{get:function(){return this._changedFields$.asObservable()},enumerable:!1,configurable:!0}),t.prototype.emitChangedFields=function(e){this._changedFields$.next(e)},t.prototype.valueEquality=function(e,t){var r=!("{}"!==JSON.stringify(e)&&e.namesPaths&&0!==e.namesPaths.length||"{}"!==JSON.stringify(t)&&t.namesPaths&&0!==t.namesPaths.length);return e&&e.namesPaths&&0!==e.namesPaths.length&&t&&t.namesPaths&&0!==t.namesPaths.length&&(r=e.namesPaths.every((function(e,r){return e.name===t.namesPaths[r].name}))),!e&&!t||!!e&&!!t&&r},t.prototype.registerFormControl=function(e){var t=this;if(this.initialized)throw new Error("Data field can be initialized only once! Disconnect the previous form control before initializing the data field again!");e.setValidators(this.resolveFormControlValidators()),this._myValueSubscription=this._value.pipe(le.distinctUntilChanged(this.valueEquality)).subscribe((function(r){t.valid=t._determineFormControlValidity(e),e.setValue(r&&r.namesPaths?r.namesPaths.map((function(e){return e.name})).join("/"):""),t.update()})),this.updateFormControlState(e),this._initialized$.next(!0),this.changed=!1,this.waitingForResponse=!1},t.prototype.updateFormControlState=function(e){this.subscribeToInnerSubjects(e),this.update()},t}(It),yr=function(t){function r(r,n,i,o,a,s,u,c,l,p,d){void 0===l&&(l=e.TextFieldView.DEFAULT);var h=t.call(this,r,n,i,o,a,s,u,c,e.TextFieldView.DEFAULT,p,d)||this;return h._view=l,h.SEARCH_DEBOUNCE_TIME=600,h}return Ie(r,t),r.prototype.valueChanges=function(){return this._value.pipe(le.debounceTime(this.SEARCH_DEBOUNCE_TIME))},r}(sr),vr=function(e){function t(t,r,n,i,o,a,s,u,c,l){return e.call(this,t,r,n,i,o,a,s,u,c,l)||this}return Ie(t,e),t}(It),mr=function(t){function r(r,n,i,o,a,s,u,c,l,p,d,h,f){void 0===l&&(l=e.EnumerationFieldView.DEFAULT),void 0===p&&(p=e.FieldTypeResource.ENUMERATION);var g=t.call(this,r,n,i,o,a,s,u,c,l,p,d,h,f)||this;return g._choices=o,g._view=l,g._fieldType=p,g.REQUEST_DEBOUNCE_TIME=600,g._choicesChange$=new ne.Subject,g._loading=new Ye,g}return Ie(r,t),Object.defineProperty(r.prototype,"choices",{get:function(){return this._choices},set:function(e){this._choices=e,this._choicesChange$.next()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loading",{get:function(){return this._loading.isActive},set:function(e){e?this._loading.on():this._loading.off()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"choicesChange$",{get:function(){return this._choicesChange$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.valueChanges=function(){return this._value.pipe(le.debounceTime(this.REQUEST_DEBOUNCE_TIME))},r.prototype.resolveFormControlValidators=function(){var e=[];return this.behavior.required&&e.push(l.Validators.required),e},r}(Zt),_r=function(e){function t(t,r,n,i,o,a,s,u,c,l,p,d){var h=e.call(this,t,r,n,a,s,u,c,l,p,d)||this;return h._filterMetadata=i,h._allowedNets=o,h}return Ie(t,e),Object.defineProperty(t.prototype,"filterMetadata",{get:function(){return this._filterMetadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowedNets",{get:function(){return this._allowedNets},enumerable:!1,configurable:!0}),t}(It),br=function(e){function t(t,r,n,i,o,a,s,u,c){return"string"==typeof n&&(n={defaultValue:n}),e.call(this,t,r,n,i,o,a,s,u,c)||this}return Ie(t,e),t}(It),Tr=function(){function r(){}return r.prototype.toClass=function(t){var r,n;switch(t.type){case e.FieldTypeResource.BOOLEAN:return new wt(t.stringId,t.name,t.value,t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.TEXT:var i=e.TextFieldView.DEFAULT;if(void 0!==t.subType&&"area"===t.subType&&(i=e.TextFieldView.TEXTAREA),void 0!==t.view&&void 0!==t.view.value&&"editor"===t.view.value)return i=e.TextFieldView.RICHTEXTAREA,new yr(t.stringId,t.name,t.value,t.behavior,t.placeholder,t.description,t.layout,t.validations,i);if(void 0!==t.view&&void 0!==t.view.value&&"area"===t.view.value)i=e.TextFieldView.TEXTAREA;else if(void 0!==t.view&&void 0!==t.view.value&&"htmlEditor"===t.view.value)return i=e.TextFieldView.HTMLTEXTAREA,new yr(t.stringId,t.name,t.value,t.behavior,t.placeholder,t.description,t.layout,t.validations,i);return void 0===t.component||void 0===t.component.name||"editor"!==t.component.name&&"htmltextarea"!==t.component.name?new sr(t.stringId,t.name,this.resolveTextValue(t,t.value),t.behavior,t.placeholder,t.description,t.layout,t.validations,i,t.component,t.parentTaskId):new yr(t.stringId,t.name,this.resolveTextValue(t,t.value),t.behavior,t.placeholder,t.description,t.layout,t.validations,i,t.component,t.parentTaskId);case e.FieldTypeResource.NUMBER:return new cr(t.stringId,t.name,t.value,t.behavior,t.validations,t.placeholder,t.description,t.layout,t.formatFilter,this.resolveNumberComponent(t),t.parentTaskId);case e.FieldTypeResource.ENUMERATION:case e.FieldTypeResource.ENUMERATION_MAP:return this.resolveEnumField(t);case e.FieldTypeResource.MULTICHOICE:return new lr(t.stringId,t.name,t.value,this.resolveMultichoiceChoices(t),t.behavior,t.placeholder,t.description,t.layout,this.resolveMultichoiceViewType(t),t.type,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.MULTICHOICE_MAP:return new lr(t.stringId,t.name,t.value,this.resolveMultichoiceOptions(t),t.behavior,t.placeholder,t.description,t.layout,this.resolveMultichoiceViewType(t),t.type,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.DATE:var o=void 0;return t.value&&(o=de(new Date(t.value[0],t.value[1]-1,t.value[2]))),new pr(t.stringId,t.name,o,t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.DATE_TIME:var a=void 0;return t.value&&(a=de(new Date(t.value[0],t.value[1]-1,t.value[2],t.value[3],t.value[4]))),new dr(t.stringId,t.name,a,t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.USER:var s=void 0;return t.value&&(s=new fr(t.value.id,t.value.name,t.value.surname,t.value.email)),new hr(t.stringId,t.name,t.behavior,s,t.roles,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.BUTTON:var u=this.resolveButtonView(t);return new At(t.stringId,t.name,t.behavior,t.value,t.placeholder,t.description,t.layout,u,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.FILE:return new or(t.stringId,t.name,t.behavior,t.value?t.value:{},t.placeholder,t.description,t.layout,null,null,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.FILE_LIST:return new gr(t.stringId,t.name,t.behavior,t.value?t.value:{},t.placeholder,t.description,t.layout,t.validations,null,null,t.component,t.parentTaskId);case e.FieldTypeResource.TASK_REF:return new vr(t.stringId,t.name,t.value?t.value:[],t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.FILTER:return new _r(t.stringId,t.name,null!==(r=t.value)&&void 0!==r?r:"",t.filterMetadata,t.allowedNets,t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component,t.parentTaskId);case e.FieldTypeResource.I18N:return new br(t.stringId,t.name,null!==(n=t.value)&&void 0!==n?n:{defaultValue:""},t.behavior,t.placeholder,t.description,t.layout,t.validations,t.component)}},r.prototype.resolveType=function(t){return t instanceof wt?e.FieldTypeResource.BOOLEAN:t instanceof At?e.FieldTypeResource.BUTTON:t instanceof sr?e.FieldTypeResource.TEXT:t instanceof cr?e.FieldTypeResource.NUMBER:t instanceof pr?e.FieldTypeResource.DATE:t instanceof dr?e.FieldTypeResource.DATE_TIME:t instanceof or?e.FieldTypeResource.FILE:t instanceof gr?e.FieldTypeResource.FILE_LIST:t instanceof hr?e.FieldTypeResource.USER:t instanceof vr?e.FieldTypeResource.TASK_REF:t instanceof Zt||t instanceof lr?t.fieldType:t instanceof _r?e.FieldTypeResource.FILTER:t instanceof br?e.FieldTypeResource.I18N:void 0},r.prototype.resolveButtonView=function(t){if(void 0!==t.view&&void 0!==t.view.value)switch(t.view.value){case e.ButtonFieldView.STROKED:return e.ButtonFieldView.STROKED;case e.ButtonFieldView.RAISED:return e.ButtonFieldView.RAISED;case e.ButtonFieldView.FAB:return e.ButtonFieldView.FAB;case e.ButtonFieldView.FLAT:return e.ButtonFieldView.FLAT;case e.ButtonFieldView.ICON:return e.ButtonFieldView.ICON;case e.ButtonFieldView.MINIFAB:return e.ButtonFieldView.MINIFAB;default:return e.ButtonFieldView.STANDARD}else if(t instanceof At)return e.ButtonFieldView.STANDARD},r.prototype.formatValueForBackend=function(t,r){return this.resolveType(t)===e.FieldTypeResource.TEXT&&null===r?null:this.resolveType(t)===e.FieldTypeResource.TEXT&&t.component&&"password"===t.component.name?btoa(r):null!=r?this.resolveType(t)===e.FieldTypeResource.DATE&&de.isMoment(r)?r.format("YYYY-MM-DD"):this.resolveType(t)===e.FieldTypeResource.USER?r.id:this.resolveType(t)===e.FieldTypeResource.DATE_TIME&&de.isMoment(r)?r.format("DD.MM.YYYY HH:mm:ss"):r:void 0},r.prototype.resolveNumberComponent=function(e){var t={name:"default",properties:void 0};return void 0!==e.component&&(t={name:e.component.name,properties:e.component.properties}),t},r.prototype.resolveEnumField=function(t){var r=t.type===e.FieldTypeResource.ENUMERATION?this.resolveEnumChoices(t):this.resolveEnumOptions(t);return t.component&&"autocomplete_dynamic"===t.component.name?new mr(t.stringId,t.name,t.value,r,t.behavior,t.placeholder,t.description,t.layout,this.resolveEnumViewType(t),t.type,t.validations,t.component,t.parentTaskId):new Zt(t.stringId,t.name,t.value,r,t.behavior,t.placeholder,t.description,t.layout,this.resolveEnumViewType(t),t.type,t.validations,t.component,t.parentTaskId)},r.prototype.resolveEnumViewType=function(t){var r=e.EnumerationFieldView.DEFAULT;return t.view&&void 0!==t.view.value&&("list"===t.view.value?r=e.EnumerationFieldView.LIST:"autocomplete"===t.view.value?r=e.EnumerationFieldView.AUTOCOMPLETE:"stepper"===t.view.value&&(r=e.EnumerationFieldView.STEPPER)),r},r.prototype.resolveEnumChoices=function(e){var t=[];return e.choices instanceof Array?e.choices.forEach((function(e){t.push({key:e,value:e})})):Object.keys(e.choices).forEach((function(r){t.push({key:r,value:e.choices[r]})})),t},r.prototype.resolveEnumOptions=function(e){return Object.entries(e.options).map((function(e){return{key:e[0],value:e[1]}}))},r.prototype.resolveMultichoiceViewType=function(t){var r=e.MultichoiceFieldView.DEFAULT;return t.view&&void 0!==t.view.value&&"list"===t.view.value&&(r=e.MultichoiceFieldView.LIST),r},r.prototype.resolveMultichoiceChoices=function(e){var t=[];return e.choices instanceof Array?e.choices.forEach((function(e){t.push({key:e,value:e})})):Object.keys(e.choices).forEach((function(r){t.push({key:r,value:e.choices[r]})})),t},r.prototype.resolveMultichoiceOptions=function(e){return Object.entries(e.options).map((function(e){return{key:e[0],value:e[1]}}))},r.prototype.formatValueFromBackend=function(t,r){if(null===r)return null;if(void 0!==r){if(this.resolveType(t)===e.FieldTypeResource.TEXT&&null===r)return null;if(this.resolveType(t)===e.FieldTypeResource.TEXT&&t.component&&"password"===t.component.name)return atob(r);if(this.resolveType(t)===e.FieldTypeResource.DATE)return de(new Date(r[0],r[1]-1,r[2]));if(this.resolveType(t)===e.FieldTypeResource.USER)return new fr(r.id,r.name,r.surname,r.email);if(this.resolveType(t)===e.FieldTypeResource.DATE_TIME)return de(new Date(r[0],r[1]-1,r[2],r[3],r[4]));if(this.resolveType(t)===e.FieldTypeResource.MULTICHOICE){var n=[];return r.forEach((function(e){e.defaultValue?n.push(e.defaultValue):n.push(e)})),n}return r}},r.prototype.resolveTextValue=function(e,t){return void 0!==e.component&&"password"===e.component.name&&""!==t&&void 0!==t?atob(t):t},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[]},r}(),Sr=function(r){function n(e,t,n,i){var o=r.call(this,"task",e,t)||this;return o._fieldConverter=n,o._logger=i,o}return Ie(n,r),n.prototype.count=function(t){var r=this;if(t.type!==e.FilterType.TASK)throw new Error("Provided filter doesn't have type TASK");return this._resourceProvider.post$("task/count",this.SERVER_URL,t.getRequestBody(),t.getRequestParams()).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.getAllTask=function(){var e=this;return this._resourceProvider.get$("task",this.SERVER_URL).pipe(le.map((function(t){return e.changeType(t,"tasks")})))},n.prototype.assignTask=function(e){var t=this;return this._resourceProvider.get$("task/assign/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.cancelTask=function(e){var t=this;return this._resourceProvider.get$("task/cancel/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.delegateTask=function(e,t){var r=this;return this._resourceProvider.post$("task/delegate/"+e,this.SERVER_URL,t,void 0,{"Content-Type":"text/plain"}).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.finishTask=function(e){var t=this;return this._resourceProvider.get$("task/finish/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.searchTask=function(t,r){var n=this;if(t.type!==e.FilterType.TASK)throw new Error("Provided filter doesn't have type TASK");return r=rt.combineParams(t.getRequestParams(),r),this._resourceProvider.post$("task/search_es",this.SERVER_URL,t.getRequestBody(),r).pipe(le.map((function(e){return n.getResourcePage(e,"tasks")})))},n.prototype.getTasks=function(t,r){var n=this;if(t.type!==e.FilterType.TASK)throw new Error("Provided filter doesn't have type TASK");if(t.bodyContainsQuery())throw new Error("getTasks endpoint cannot be queried with filters that contain the 'query' attribute");return r=rt.combineParams(t.getRequestParams(),r),this._resourceProvider.post$("task/search",this.SERVER_URL,t.getRequestBody(),r).pipe(le.map((function(e){return n.getResourcePage(e,"tasks")})))},n.prototype.getAllTasksByCases=function(e){var t=this;return this._resourceProvider.post$("task/case",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,"tasks")})))},n.prototype.getAllTasksByCase=function(e){var t=this;return this._resourceProvider.get$("task/case/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.getAllMyTasks=function(){var e=this;return this._resourceProvider.get$("task/my",this.SERVER_URL).pipe(le.map((function(t){return e.changeType(t,void 0)})))},n.prototype.getAllFinishedTask=function(){var e=this;return this._resourceProvider.get$("task/my/finished",this.SERVER_URL).pipe(le.map((function(t){return e.changeType(t,void 0)})))},n.prototype.rawGetData=function(e){var t=this;return this._resourceProvider.get$("task/"+e+"/data",this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.getData=function(e){var t=this;return this.rawGetData(e).pipe(le.map((function(e){var r=t.changeType(e.outcome.data,"dataGroups");if(!Array.isArray(r))return[];var n=[];return r.forEach((function(e){var r=[];if(e.fields._embedded){var i=[];Object.keys(e.fields._embedded).forEach((function(t){i.push.apply(i,ke(e.fields._embedded[t]))})),i.sort((function(e,t){return e.order-t.order})),r.push.apply(r,ke(i.map((function(e){return t._fieldConverter.toClass(e)}))));var o={fields:r,stretch:e.stretch,title:e.title,layout:e.layout,alignment:e.alignment};void 0!==e.parentTaskId&&(o.parentTaskId=e.parentTaskId,o.parentTaskRefId=e.parentTaskRefId,o.nestingLevel=e.nestingLevel),void 0!==e.parentCaseId&&(o.parentCaseId=e.parentCaseId),n.push(o)}})),n})))},n.prototype.setData=function(e,t){var r=this;return this._resourceProvider.post$("task/"+e+"/data",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.downloadFile=function(e,t,r){var n=r?"task/"+e+"/file/"+t+"/"+r:"task/"+e+"/file/"+t;return this._resourceProvider.getBlob$(n,this.SERVER_URL).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.DownloadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.prototype.uploadFile=function(e,t,r,n){var i=n?"task/"+e+"/files/"+t:"task/"+e+"/file/"+t;return this._resourceProvider.postWithEvent$(i,this.SERVER_URL,r).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.UploadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.prototype.deleteFile=function(e,t,r){var n=this,i=r?"task/"+e+"/file/"+t+"/"+r:"task/"+e+"/file/"+t;return this._resourceProvider.delete$(i,this.SERVER_URL).pipe(le.map((function(e){return n.changeType(e,void 0)})))},n.prototype.downloadFilePreview=function(e,t){var r="task/"+e+"/file_preview/"+t;return this._resourceProvider.getBlob$(r,this.SERVER_URL).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.DownloadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.ctorParameters=function(){return[{type:rt},{type:Me},{type:Tr},{type:$e}]},n.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new n(t["ɵɵinject"](rt),t["ɵɵinject"](Me),t["ɵɵinject"](Tr),t["ɵɵinject"]($e))},token:n,providedIn:"root"}),n.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:rt},{type:Me},{type:Tr},{type:$e}]},n}(nt);(e.EventConstants||(e.EventConstants={})).CHANGED_FIELDS="changedFields";var Ir,Er=function(){function r(){}return r.prototype.parseChangedFieldsFromOutcomeTree=function(e){var t={};return e.outcomes&&e.outcomes.length>0?this.parseChangedFieldsFromOutcomeTreeRecursive(e.outcomes,t):t},r.prototype.parseChangedFieldsFromOutcomeTreeRecursive=function(t,r){var n=this;return t.forEach((function(t){if(e.EventConstants.CHANGED_FIELDS in t&&t.aCase&&t.task){var i=t,o=t.changedFields.changedFields,a=i.aCase.stringId;Object.keys(r).includes(a)||(r[a]={});var s=i.task.stringId;Object.keys(r[a]).includes(s)||(r[a][s]={taskId:s}),Object.keys(o).forEach((function(e){Object.keys(r[a][s]).includes(e)?Object.keys(o[e]).forEach((function(t){r[a][s][e][t]=o[e][t]})):r[a][s][e]=i.changedFields.changedFields[e]}))}t.outcomes&&t.outcomes.length>0&&n.parseChangedFieldsFromOutcomeTreeRecursive(t.outcomes,r)})),r},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[]},r}(),wr=function(r){function n(e,t,n,i,o,a,s){var u=r.call(this,a)||this;return u._taskResourceService=e,u._log=t,u._snackbar=n,u._translate=i,u._eventService=o,u._sanitizer=s,u.filePreview=!1,u.isDisplayable=!1,u.state=u.defaultState,u.fullSource=new ne.BehaviorSubject(null),u}return Ie(n,r),n.prototype.ngOnInit=function(){r.prototype.ngOnInit.call(this),this.filePreview=this.dataField&&this.dataField.component&&this.dataField.component.name&&"preview"===this.dataField.component.name},n.prototype.ngAfterViewInit=function(){var e=this;this.fileUploadEl&&(this.fileUploadEl.nativeElement.onchange=function(){e.upload()}),this.filePreview&&this.imageDivEl&&(this.isEmpty()||this.initializePreviewIfDisplayable())},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.fullSource.complete()},n.prototype.chooseFile=function(){this.state.uploading||this.formControl.disabled||this.fileUploadEl.nativeElement.click()},n.prototype.upload=function(){var t=this;if(this.fileUploadEl.nativeElement.files&&0!==this.fileUploadEl.nativeElement.files.length)if(this.taskId){if(this.dataField.value&&this.dataField.value.name&&this.fileUploadEl.nativeElement.files.item(0).name===this.dataField.value.name)return this._log.error("User chose the same file. Uploading skipped"),this._snackbar.openErrorSnackBar(this._translate.instant("dataField.snackBar.wontUploadSameFile")),void(this.fileUploadEl.nativeElement.value="");if(this.dataField.maxUploadSizeInBytes&&this.dataField.maxUploadSizeInBytes<this.fileUploadEl.nativeElement.files.item(0).size)return this._log.error("File cannot be uploaded. Maximum size of file exceeded."),this._snackbar.openErrorSnackBar(this._translate.instant("dataField.snackBar.maxFilesSizeExceeded")+this.dataField.maxUploadSizeInBytes),void(this.fileUploadEl.nativeElement.value="");this.state=this.defaultState,this.state.uploading=!0;var r=new FormData,n=this.fileUploadEl.nativeElement.files.item(0);r.append("file",n),this._taskResourceService.uploadFile(this.resolveParentTaskId(),this.dataField.stringId,r,!1).subscribe((function(r){if(r.type&&r.type===e.ProgressType.UPLOAD)t.state.progress=r.progress;else{var i=t._eventService.parseChangedFieldsFromOutcomeTree(r.outcome);t.dataField.emitChangedFields(i),t._log.debug("File ["+t.dataField.stringId+"] "+t.fileUploadEl.nativeElement.files.item(0).name+" was successfully uploaded"),t.state.completed=!0,t.state.error=!1,t.state.uploading=!1,t.state.progress=0,t.dataField.downloaded=!1,t.dataField.value.name=n.name,t.filePreview&&t.initializePreviewIfDisplayable(),t.fullSource.next(void 0),t.fileForDownload=void 0,t.formControl.setValue(t.dataField.value.name),t.dataField.touch=!0,t.dataField.update(),t.fileUploadEl.nativeElement.value=""}}),(function(e){t.state.completed=!0,t.state.error=!0,t.state.uploading=!1,t.state.progress=0,t._log.error("File ["+t.dataField.stringId+"] "+t.fileUploadEl.nativeElement.files.item(0)+" uploading has failed!",e),t._snackbar.openErrorSnackBar(t._translate.instant("dataField.snackBar.fileUploadFailed")),t.dataField.touch=!0,t.dataField.update(),t.fileUploadEl.nativeElement.value=""}))}else this._log.error("File cannot be uploaded. No task is set to the field.")},n.prototype.download=function(){var t=this;this.checkFileBeforeDownload()&&(this.fileForDownload?this.downloadViaAnchor(this.fileForDownload):(this.state=this.defaultState,this.state.downloading=!0,this._taskResourceService.downloadFile(this.resolveParentTaskId(),this.dataField.stringId).subscribe((function(r){r.type&&r.type===e.ProgressType.DOWNLOAD||(t._log.debug("File ["+t.dataField.stringId+"] "+t.dataField.value.name+" was successfully downloaded"),t.downloadViaAnchor(r),t.filePreview&&t.initDownloadFile(r),t.state.downloading=!1,t.state.progress=0,t.dataField.downloaded=!0)}),(function(e){t._log.error("Downloading file ["+t.dataField.stringId+"] "+t.dataField.value.name+" has failed!",e),t._snackbar.openErrorSnackBar(t.dataField.value.name+" "+t._translate.instant("dataField.snackBar.downloadFail")),t.state.downloading=!1,t.state.progress=0}))))},n.prototype.initDownloadFile=function(t){t instanceof Blob&&(this.previewExtension===e.FilePreviewType.pdf?(this.fileForDownload=new Blob([t],{type:"application/pdf"}),this.fullSource.next(this._sanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(this.fileForDownload)))):(this.fileForDownload=new Blob([t],{type:"application/octet-stream"}),this.fullSource.next(this._sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(this.fileForDownload)))))},n.prototype.downloadViaAnchor=function(e){var t=document.createElement("a");document.body.appendChild(t),t.setAttribute("style","display: none"),this.fileForDownload||(e=new Blob([e],{type:"application/octet-stream"}));var r=window.URL.createObjectURL(this.fileForDownload?this.fileForDownload:e);t.href=r,t.download=this.dataField.value.name,t.click(),window.URL.revokeObjectURL(r),document.body.removeChild(t)},n.prototype.deleteFile=function(){var e=this;this.dataField.value&&this.dataField.value.name&&(this.taskId?this._taskResourceService.deleteFile(this.resolveParentTaskId(),this.dataField.stringId).pipe(le.take(1)).subscribe((function(t){if(t.success){var r=e.dataField.value.name;e.dataField.value={},e.formControl.setValue(""),e.dataField.update(),e.dataField.downloaded=!1,e.fullSource.next(void 0),e.fileForDownload=void 0,e.previewSource=void 0,e.fileForPreview=void 0,e._log.debug("File ["+e.dataField.stringId+"] "+r+" was successfully deleted"),e.formControl.markAsTouched()}else e._log.error("Deleting file ["+e.dataField.stringId+"] "+e.dataField.value.name+" has failed!",t.error),e._snackbar.openErrorSnackBar(e.dataField.value.name+" "+e._translate.instant("dataField.snackBar.fileDeleteFailed"))})):this._log.error("File cannot be deleted. No task is set to the field."))},n.prototype.isEmpty=function(){return!this.dataField.value||!this.dataField.value.name},Object.defineProperty(n.prototype,"defaultState",{get:function(){return{progress:0,completed:!1,error:!1,uploading:!1,downloading:!1}},enumerable:!1,configurable:!0}),n.prototype.constructDisplayName=function(){var e,t,r,n,i;return null!==(r=null===(t=null===(e=this.dataField)||void 0===e?void 0:e.value)||void 0===t?void 0:t.name)&&void 0!==r?r:null!==(i=null===(n=this.dataField)||void 0===n?void 0:n.placeholder)&&void 0!==i?i:this._translate.instant("dataField.file.noFile")},n.prototype.initFileFieldImage=function(){var e=this;this.checkFileBeforeDownload()&&(this.state.downloading=!0,this._taskResourceService.downloadFilePreview(this.taskId,this.dataField.stringId).subscribe((function(t){t instanceof Blob&&(e._log.debug("Preview of file ["+e.dataField.stringId+"] "+e.dataField.value.name+" was successfully downloaded"),e.fileForPreview=new Blob([t],{type:"application/octet-stream"}),e.previewSource=e._sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(e.fileForPreview))),(null==t||t instanceof Blob)&&(e.state.downloading=!1)}),(function(t){e._log.error("Downloading file ["+e.dataField.stringId+"] "+e.dataField.value.name+" has failed!",t),e._snackbar.openErrorSnackBar(e.dataField.value.name+" "+e._translate.instant("dataField.snackBar.downloadFail")),e.state.downloading=!1,e.state.progress=0})))},n.prototype.checkFileBeforeDownload=function(){return!this.isEmpty()&&(!!this.taskId||(this._log.error("File cannot be downloaded. No task is set to the field."),!1))},n.prototype.showPreviewDialog=function(){var t=this;this.checkFileBeforeDownload()&&this._taskResourceService.downloadFile(this.taskId,this.dataField.stringId).subscribe((function(r){r.type&&r.type===e.ProgressType.DOWNLOAD||(t._log.debug("File ["+t.dataField.stringId+"] "+t.dataField.value.name+" was successfully downloaded"),t.initDownloadFile(r))}),(function(e){t._log.error("Downloading file ["+t.dataField.stringId+"] "+t.dataField.value.name+" has failed!",e),t._snackbar.openErrorSnackBar(t.dataField.value.name+" "+t._translate.instant("dataField.snackBar.downloadFail")),t.state.progress=0}))},n.prototype.changeMaxWidth=function(e){this.imageEl&&(this.imageEl.nativeElement.style.maxWidth=e.newWidth+"px")},n.prototype.initializePreviewIfDisplayable=function(){var t=this.dataField.value.name.split(".").reverse()[0];this.isDisplayable=Object.values(e.FilePreviewType).includes(t),this.isDisplayable&&(this.previewExtension=e.FilePreviewType[t],this.initFileFieldImage())},n.prototype.getHeight=function(){return this.dataField.layout&&this.dataField.layout.rows&&1!==this.dataField.layout.rows?105*this.dataField.layout.rows-16:89},n.prototype.getPreviewBorderWidth=function(){return this.borderPropertyEnabled("borderWidth")?this.dataField.component.properties.borderWidth+"px":n.DEFAULT_PREVIEW_BORDER_WIDTH+"px"},n.prototype.getPreviewBorderStyle=function(){return this.borderPropertyEnabled("borderStyle")?this.dataField.component.properties.borderStyle:n.DEFAULT_PREVIEW_BORDER_STYLE},n.prototype.getPreviewBorderColor=function(){return this.borderPropertyEnabled("borderColor")?this.dataField.component.properties.borderColor:n.DEFAULT_PREVIEW_BORDER_COLOR},n.prototype.isBorderLGBTQ=function(){return!!this.borderPropertyEnabled("borderLGBTQ")&&"true"===this.dataField.component.properties.borderLGBTQ},n.prototype.isBorderDefault=function(){return!!this.borderPropertyEnabled("borderEnabled")&&"true"===this.dataField.component.properties.borderEnabled},n.prototype.borderPropertyEnabled=function(e){return!!this.dataField.component&&!!this.dataField.component.properties&&e in this.dataField.component.properties},n.prototype.resolveParentTaskId=function(){return this.dataField.parentTaskId?this.dataField.parentTaskId:this.taskId},n.DEFAULT_PREVIEW_BORDER_WIDTH=0,n.DEFAULT_PREVIEW_BORDER_STYLE="none",n.DEFAULT_PREVIEW_BORDER_COLOR="black",n.ctorParameters=function(){return[{type:Sr},{type:$e},{type:ft},{type:ue.TranslateService},{type:Er},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]},{type:pe.DomSanitizer}]},n.propDecorators={taskId:[{type:t.Input}],dataField:[{type:t.Input}],fileUploadEl:[{type:t.ViewChild,args:["fileUploadInput"]}],imageEl:[{type:t.ViewChild,args:["imageEl"]}],imageDivEl:[{type:t.ViewChild,args:["imageDiv"]}]},n}(kt),Cr=function(r){function n(e,t,n,i,o,a){var s=r.call(this,a)||this;return s._taskResourceService=e,s._log=t,s._snackbar=n,s._translate=i,s._eventService=o,s.state=s.defaultState,s.uploadedFiles=new Array,s.maxFilesNumber=Number.POSITIVE_INFINITY,s}return Ie(n,r),n.prototype.ngOnInit=function(){var t=this;if(r.prototype.ngOnInit.call(this),this.valueChange$=this.dataField.valueChanges().subscribe((function(e){t.parseResponse()})),this.dataField.validations&&0!==this.dataField.validations.length){var n=this.dataField.validations.find((function(t){return t.validationRule.includes(e.FileListFieldValidation.MAX_FILES)}));n&&2===n.validationRule.split(" ").length&&!isNaN(parseInt(n.validationRule.split(" ")[1],10))&&(this.maxFilesNumber=parseInt(n.validationRule.split(" ")[1],10),this.maxFilesMessage=n.validationMessage&&""!==n.validationMessage?n.validationMessage:null)}},n.prototype.ngAfterViewInit=function(){var e=this;this.fileUploadEl&&(this.fileUploadEl.nativeElement.onchange=function(){e.upload()})},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.valueChange$.unsubscribe()},n.prototype.chooseFile=function(){this.state.uploading||this.formControl.disabled||this.fileUploadEl.nativeElement.click()},n.prototype.upload=function(){var t=this;if(this.fileUploadEl.nativeElement.files&&0!==this.fileUploadEl.nativeElement.files.length)if(this.taskId){if(this.fileUploadEl.nativeElement.files.length+this.uploadedFiles.length>this.maxFilesNumber)return this._snackbar.openErrorSnackBar(this.maxFilesMessage?this.maxFilesMessage:this._translate.instant("dataField.snackBar.maxFilesExceeded")+this.maxFilesNumber),void(this.fileUploadEl.nativeElement.value="");var r=Array.from(this.fileUploadEl.nativeElement.files),n=0;if(r.forEach((function(e){return n+=e.size})),this.dataField.maxUploadSizeInBytes&&this.dataField.maxUploadSizeInBytes<n)return this._log.error("Files cannot be uploaded. Maximum size of files exceeded."),this._snackbar.openErrorSnackBar(this._translate.instant("dataField.snackBar.maxFilesSizeExceeded")+this.dataField.maxUploadSizeInBytes),void(this.fileUploadEl.nativeElement.value="");if(this.dataField.value&&this.dataField.value.namesPaths&&0!==this.dataField.value.namesPaths.length&&(this.dataField.value.namesPaths.forEach((function(e){r=r.filter((function(t){return t.name!==e.name}))})),0===r.length))return this._log.error("User chose the same files that are already uploaded. Uploading skipped"),this._snackbar.openErrorSnackBar(this._translate.instant("dataField.snackBar.wontUploadSameFiles")),void(this.fileUploadEl.nativeElement.value="");this.state=this.defaultState,this.state.uploading=!0;var i=new FormData;r.forEach((function(e){i.append("files",e)})),this._taskResourceService.uploadFile(this.resolveParentTaskId(),this.dataField.stringId,i,!0).subscribe((function(n){if(n.type&&n.type===e.ProgressType.UPLOAD)t.state.progress=n.progress;else{t._log.debug("Files ["+t.dataField.stringId+"] were successfully uploaded");var i=t._eventService.parseChangedFieldsFromOutcomeTree(n.outcome);t.dataField.emitChangedFields(i),t.state.completed=!0,t.state.error=!1,t.state.uploading=!1,t.state.progress=0,r.forEach((function(e){t.uploadedFiles.push(e.name),t.dataField.value.namesPaths.push({name:e.name}),t.formControl.setValue(t.dataField.value.namesPaths.map((function(e){return e.name})).join("/"))})),t.dataField.touch=!0,t.dataField.update(),t.fileUploadEl.nativeElement.value=""}}),(function(e){t.state.completed=!0,t.state.error=!0,t.state.uploading=!1,t.state.progress=0,t._log.error("File ["+t.dataField.stringId+"] "+t.fileUploadEl.nativeElement.files.item(0)+" uploading has failed!",e),t._snackbar.openErrorSnackBar(t._translate.instant("dataField.snackBar.fileUploadFailed")),t.dataField.touch=!0,t.dataField.update(),t.fileUploadEl.nativeElement.value=""}))}else this._log.error("File cannot be uploaded. No task is set to the field.")},n.prototype.download=function(t){var r=this;this.dataField.value&&this.dataField.value.namesPaths&&this.dataField.value.namesPaths.find((function(e){return e.name===t}))&&(this.taskId?(this.state=this.defaultState,this.state.downloading=!0,this._taskResourceService.downloadFile(this.resolveParentTaskId(),this.dataField.stringId,t).subscribe((function(n){n.type&&n.type===e.ProgressType.DOWNLOAD?r.state.progress=n.progress:(r._log.debug("File ["+r.dataField.stringId+"] "+t+" was successfully downloaded"),r.downloadViaAnchor(n,t),r.state.downloading=!1,r.state.progress=0,r.dataField.downloaded.push(t))}),(function(e){r._log.error("Downloading file ["+r.dataField.stringId+"] "+t+" has failed!",e),r._snackbar.openErrorSnackBar(t+" "+r._translate.instant("dataField.snackBar.downloadFail")),r.state.downloading=!1,r.state.progress=0}))):this._log.error("File cannot be downloaded. No task is set to the field."))},n.prototype.downloadViaAnchor=function(e,t){var r=document.createElement("a");document.body.appendChild(r),r.setAttribute("style","display: none"),e=new Blob([e],{type:"application/octet-stream"});var n=window.URL.createObjectURL(e);r.href=n,r.download=t,r.click(),window.URL.revokeObjectURL(n),document.body.removeChild(r)},n.prototype.deleteFile=function(e){var t=this;this.dataField.value&&this.dataField.value.namesPaths&&this.dataField.value.namesPaths.find((function(t){return t.name===e}))&&(this.taskId?this._taskResourceService.deleteFile(this.resolveParentTaskId(),this.dataField.stringId,e).pipe(le.take(1)).subscribe((function(r){r.success?(t.uploadedFiles=t.uploadedFiles.filter((function(t){return t!==e})),t.dataField.value.namesPaths&&(t.dataField.value.namesPaths=t.dataField.value.namesPaths.filter((function(t){return t.name!==e})),t.formControl.setValue(t.dataField.value.namesPaths.map((function(e){return e.name})).join("/")),t.dataField.update()),t.dataField.downloaded=t.dataField.downloaded.filter((function(t){return t!==e})),t._log.debug("File ["+t.dataField.stringId+"] "+e+" was successfully deleted"),t.formControl.markAsTouched()):(t._log.error("Deleting file ["+t.dataField.stringId+"] "+e+" has failed!",r.error),t._snackbar.openErrorSnackBar(e+" "+t._translate.instant("dataField.snackBar.fileDeleteFailed")))})):this._log.error("File cannot be deleted. No task is set to the field."))},Object.defineProperty(n.prototype,"defaultState",{get:function(){return{progress:0,completed:!1,error:!1,uploading:!1,downloading:!1}},enumerable:!1,configurable:!0}),n.prototype.constructDisplayName=function(){var e,t;return null!==(t=null===(e=this.dataField)||void 0===e?void 0:e.placeholder)&&void 0!==t?t:this._translate.instant("dataField.file.noFile")},n.prototype.parseResponse=function(){var e=this;this.dataField.value&&(this.dataField.value.namesPaths&&0!==this.dataField.value.namesPaths.length?(this.uploadedFiles=new Array,this.dataField.value.namesPaths.forEach((function(t){e.uploadedFiles.push(t.name)}))):this.dataField.value.namesPaths=new Array,this.uploadedFiles=this.dataField.value.namesPaths.map((function(e){return e.name})))},n.prototype.resolveParentTaskId=function(){return this.dataField.parentTaskId?this.dataField.parentTaskId:this.taskId},n.ctorParameters=function(){return[{type:Sr},{type:$e},{type:ft},{type:ue.TranslateService},{type:Er},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},n.propDecorators={taskId:[{type:t.Input}],dataField:[{type:t.Input}],fileUploadEl:[{type:t.ViewChild,args:["fileUploadInput"]}]},n}(kt),kr=function(e){function r(t){var r=e.call(this,t)||this;return r._formControl=new l.FormControl(""),r}return Ie(r,e),r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt),Or=function(){function e(){}return e.propDecorators={multichoiceField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),Fr=function(){function e(){}return e.propDecorators={multichoiceField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),Ar=function(e){function r(t,r){var n=e.call(this,r)||this;return n._translate=t,n}return Ie(r,e),r.ctorParameters=function(){return[{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt),Rr=function(){function r(e){this._translate=e}return r.prototype.getErrorMessage=function(){if(this.formControlRef.hasError(e.NumberFieldValidation.REQUIRED))return this._translate.instant("dataField.validations.required");if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_ODD))return this.resolveErrorMessage(e.NumberFieldValidation.ODD,this._translate.instant("dataField.validations.odd"));if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_EVEN))return this.resolveErrorMessage(e.NumberFieldValidation.EVEN,this._translate.instant("dataField.validations.even"));if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_POSITIVE))return this.resolveErrorMessage(e.NumberFieldValidation.POSITIVE,this._translate.instant("dataField.validations.positive"));if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_NEGATIVE))return this.resolveErrorMessage(e.NumberFieldValidation.NEGATIVE,this._translate.instant("dataField.validations.negative"));if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_DECIMAL))return this.resolveErrorMessage(e.NumberFieldValidation.DECIMAL,this._translate.instant("dataField.validations.decimal"));if(this.formControlRef.hasError(e.NumberFieldValidation.VALID_IN_RANGE)){var t=this.numberField.validations.find((function(t){return t.validationRule.includes(e.NumberFieldValidation.IN_RANGE)})).validationRule.split(" ");return this.resolveErrorMessage(e.NumberFieldValidation.IN_RANGE,this._translate.instant("dataField.validations.inrange",{range:t[1]}))}return""},r.prototype.resolveErrorMessage=function(e,t){var r=this.numberField.validations.find((function(t){return t.validationRule.includes(e)}));return r.validationMessage&&""!==r.validationMessage?r.validationMessage:t},r.propDecorators={showLargeLayout:[{type:t.Input}],formControlRef:[{type:t.Input}],numberField:[{type:t.Input}]},r}(),Pr=function(e){function n(t,r){var n=e.call(this,r)||this;return n._currencyPipe=t,n}return Ie(n,e),n.prototype.ngOnInit=function(){var e=this;this.fieldType="text",this.transformedValue=this.transformCurrency(this.numberField.value.toString()),this.numberField.valueChanges().subscribe((function(t){void 0!==t?"text"===e.fieldType&&(e.transformedValue=e.transformCurrency(t.toString())):e.transformedValue=""}))},n.prototype.transformToText=function(e){var t=e.target;this.fieldType="text",this.transformedValue=this.transformCurrency(t.value)},n.prototype.transformToNumber=function(){this.fieldType="number",this.transformedValue=this.numberField.value.toString()},n.prototype.getCurrencySymbol=function(){return void 0===this.numberField._formatFilter?r.getCurrencySymbol(this.numberField.component.properties.code,"wide",this.numberField.component.properties.locale):r.getCurrencySymbol(this.numberField._formatFilter.code,"wide",this.numberField._formatFilter.locale)},n.prototype.transformCurrency=function(e){return void 0===this.numberField._formatFilter?this._currencyPipe.transform(parseFloat(e),this.numberField.component.properties.code,"symbol","1."+this.numberField.component.properties.fractionSize+"-"+this.numberField.component.properties.fractionSize,this.numberField.component.properties.locale):this._currencyPipe.transform(parseFloat(e),this.numberField._formatFilter.code,"symbol","1."+this.numberField._formatFilter.fractionSize+"-"+this.numberField._formatFilter.fractionSize,this.numberField._formatFilter.locale)},n.propDecorators={transformedValue:[{type:t.Input}]},n}(Rr),Nr=function(e){function t(t){return e.call(this,t)||this}return Ie(t,e),t}(Rr),Dr=function(e){function r(t){return e.call(this,t)||this}return Ie(r,e),r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt),Lr=function(){function t(e){this._translate=e}return t.prototype.buildErrorMessage=function(t,r){return r.hasError(e.TextFieldValidation.REQUIRED)?this._translate.instant("dataField.validations.required"):r.hasError(e.TextFieldValidation.VALID_MIN_LENGTH)?this.resolveErrorMessage(t,e.TextFieldValidation.MIN_LENGTH,this._translate.instant("dataField.validations.minLength",{length:r.errors.minlength.requiredLength})):r.hasError(e.TextFieldValidation.VALID_MAX_LENGTH)?this.resolveErrorMessage(t,e.TextFieldValidation.MAX_LENGTH,this._translate.instant("dataField.validations.maxLength",{length:r.errors.maxlength.requiredLength})):r.hasError(e.TextFieldValidation.PATTERN)?this.resolveErrorMessage(t,e.TextFieldValidation.REGEX,this._translate.instant("dataField.validations.pattern")):r.hasError(e.TextFieldValidation.VALID_TEL_NUMBER)?this.resolveErrorMessage(t,e.TextFieldValidation.TEL_NUMBER,this._translate.instant("dataField.validations.phone")):r.hasError(e.TextFieldValidation.EMAIL)?this.resolveErrorMessage(t,e.TextFieldValidation.EMAIL,this._translate.instant("dataField.validations.email")):""},t.prototype.resolveErrorMessage=function(e,t,r){var n=e.validations.find((function(e){return e.validationRule.includes(t)}));return n.validationMessage&&""!==n.validationMessage?n.validationMessage:r},t}(),jr=function(e){function r(t){var r=e.call(this,t)||this;return r._translate=t,r}return Ie(r,e),r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.textField,this.formControlRef)},r.propDecorators={textField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},r}(Lr),Mr=function(e){function r(t){var r=e.call(this,t)||this;return r._translate=t,r.options={autoDownloadFontAwesome:!0,minHeight:"95px",toolbar:["bold","italic","heading","strikethrough","|","code","quote","unordered-list","ordered-list","|","link","image","table","|","horizontal-rule","preview","|","guide"],shortcuts:{toggleSideBySide:null,toggleFullScreen:null}},r}return Ie(r,e),r.prototype.ngOnInit=function(){},r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.textAreaField,this.formControlRef)},r.propDecorators={textAreaField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},r}(Lr),xr=function(e){function r(t,r){var n=e.call(this,t)||this;return n._translate=t,n._sanitizer=r,n.quillModules={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["clean"],["link","image","video"]]},n}return Ie(r,e),r.prototype.ngOnInit=function(){var e=this;this.disabledDisplay=this._sanitizer.bypassSecurityTrustHtml(this.textAreaField.value),this.textAreaField.valueChanges().subscribe((function(){e.disabledDisplay=e._sanitizer.bypassSecurityTrustHtml(e.textAreaField.value)}))},r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.textAreaField,this.formControlRef)},r.propDecorators={textAreaField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},r}(Lr),Vr=function(e){function r(t){var r=e.call(this,t)||this;return r._translate=t,r}return Ie(r,e),r.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.passwordTextField,this.formControlRef)},r.propDecorators={passwordTextField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},r}(Lr),Ur=function(r){function n(e,t){var n=r.call(this,e)||this;return n._translate=e,n._ngZone=t,n}return Ie(n,r),n.prototype.ngAfterViewInit=function(){this.triggerResize(),this.textArea.nativeElement.style.minHeight=this.getHeight()+"px",parseInt(this.textArea.nativeElement.style.height,10)<this.getHeight()&&(this.textArea.nativeElement.style.height=this.getHeight()+"px")},n.prototype.getHeight=function(){var t=this.textAreaField.layout&&"outline"===this.textAreaField.layout.appearance?e.TextAreaHeight.OUTLINE:e.TextAreaHeight.FILL_STANDARD;return this.textAreaField.layout&&this.textAreaField.layout.rows&&1!==this.textAreaField.layout.rows?(this.textAreaField.layout.rows-1)*sr.FIELD_HEIGHT+t:t},n.prototype.triggerResize=function(){var e=this;this._ngZone.onStable.pipe(le.take(1)).subscribe((function(){return e.dynamicTextArea.resizeToFitContent(!0)}))},n.prototype.getErrorMessage=function(){return this.buildErrorMessage(this.textAreaField,this.formControlRef)},n.propDecorators={textAreaField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}],dynamicTextArea:[{type:t.ViewChild,args:["dynamicTextArea"]}],textArea:[{type:t.ViewChild,args:["textArea"]}]},n}(Lr),$r=new t.InjectionToken("NaeSideMenuControl");(Ir=e.SideMenuSize||(e.SideMenuSize={})).SMALL="side-menu-width-small",Ir.MEDIUM="side-menu-width-medium",Ir.LARGE="side-menu-width-large";var Br,zr=function(){function e(e,t){this._portal=e,this._width=t}return Object.defineProperty(e.prototype,"portal",{get:function(){return this._portal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._width},enumerable:!1,configurable:!0}),e}(),Hr=function(){function e(e){this._event$=e}return Object.defineProperty(e.prototype,"onEvent",{get:function(){return this._event$?this._event$.asObservable():ne.throwError(new Error("Side menu event stream was not correctly bound to side menu component!"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onClose",{get:function(){return this._event$?this._event$.pipe(le.filter((function(e){return!e.opened}))):ne.throwError(new Error("Side menu close event stream was not correctly bound to side menu component!"))},enumerable:!1,configurable:!0}),e}(),Gr=function(){function e(e,t,r,n,i,o){var a=this;void 0===e&&(e=function(){}),void 0===t&&(t=ne.of(!0)),this.sideMenuCloseFunction=r,this._injectionData=n,this.isVersionVisible=i,this.allVersionEnabled=o,this._event$=new ne.Subject,e(this._event$),t.subscribe((function(e){e||(a._event$.next({opened:e,message:"Side menu closed unexpectedly"}),a._event$.complete())}))}return Object.defineProperty(e.prototype,"data",{get:function(){return this._injectionData},enumerable:!1,configurable:!0}),e.prototype.publish=function(e){this._event$.next(e)},e.prototype.close=function(e){var t=this;return e.message||(e.message="Side menu is closing"),this._event$.next(Ee(Ee({},e),{opened:!1})),this.sideMenuCloseFunction().pipe(le.tap((function(e){"close"===e&&t._event$.complete()})))},e}(),qr=new t.InjectionToken("NaeNetVersionVisible"),Wr=new t.InjectionToken("NaeNetAllVersion"),Qr=function(){function r(e,t){this.isVersionVisible=null===e||e,this.allVersionEnabled=null!==t&&t}return r.prototype.registerSideMenu=function(e){if(this._sideMenuComponent)throw new Error("SideMenuContainerComponent has been already registered!");this._sideMenuComponent=e},r.prototype.isOpened=function(){return this._sideMenuComponent.isOpened()},r.prototype.open=function(t,r,n){var i=this;if(void 0===r&&(r=e.SideMenuSize.MEDIUM),this._sideMenuComponent.isOpened())throw new Error("Side menu has been already opened with another content");var o=new Hr(null);this._controlObject=new Gr((function(e){o=new Hr(e)}),this._sideMenuComponent.openedChange(),(function(){return i._sideMenuComponent.close(i._sideMenuComponent)}),n,this.isVersionVisible,this.allVersionEnabled);var a=this._createPortal(t,r,this._controlObject);return this._sideMenuComponent.open(a).subscribe((function(e){"open"===e&&i._controlObject.publish({opened:!0})})),o},r.prototype._createPortal=function(e,r,n){if(null==e)throw new Error("A component template must be provided to open a side menu!");if(e instanceof t.TemplateRef)return new zr(new u.TemplatePortal(e,null),r);if(e instanceof t.Type){var i=t.Injector.create({providers:[{provide:$r,useValue:n}]});return new zr(new u.ComponentPortal(e,null,i),r)}},r.prototype.close=function(e){return this._controlObject.close(e)},r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[qr]}]},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Wr]}]}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](qr,8),t["ɵɵinject"](Wr,8))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[qr]}]},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Wr]}]}]},r}(),Kr=function(r){function n(e,t,n,i){var o=r.call(this,i)||this;return o._sideMenuService=e,o._snackbar=t,o._translate=n,o}return Ie(n,r),n.prototype.ngOnInit=function(){r.prototype.ngOnInit.call(this)},n.prototype.selectAbstractUser=function(t){var r=this,n=!1;this._sideMenuService.open(t,e.SideMenuSize.MEDIUM,{roles:this.dataField.roles,value:this.dataField.value}).onClose.subscribe((function(e){e.data?(r.dataField.value=e.data,r._snackbar.openGenericSnackBar(r._translate.instant("dataField.snackBar.userAssigned",{userName:r.dataField.value.fullName}),"how_to_reg"),n=!0):n||r._snackbar.openWarningSnackBar(r._translate.instant("dataField.snackBar.notSelectedUser"))}))},n.ctorParameters=function(){return[{type:Qr},{type:ft},{type:ue.TranslateService},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},n.propDecorators={dataField:[{type:t.Input}]},n}(kt),Yr=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.resolveIconValue=function(e){var t,r;return null===(r=null===(t=this.enumerationField.component)||void 0===t?void 0:t.optionIcons.find((function(t){return t.key===e})))||void 0===r?void 0:r.value},e.prototype.resolveIconType=function(e){var t,r;return null===(r=null===(t=this.enumerationField.component)||void 0===t?void 0:t.optionIcons.find((function(t){return t.key===e})))||void 0===r?void 0:r.type},e.prototype.resolveArrow=function(e){var t;return"true"===(null===(t=this.enumerationField.component)||void 0===t?void 0:t.properties.arrow)},e.prototype.resolveDivider=function(e){var t;return"true"===(null===(t=this.enumerationField.component)||void 0===t?void 0:t.properties.divider)},e.prototype.setEnumValue=function(e){this.enumerationField.disabled||this.formControlRef.setValue(e)},e.prototype.isSelected=function(e){return e===this.enumerationField.value},e.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),Xr=function(){function r(e){var t=this;this._translate=e,this.renderSelection=function(e){return void 0!==e&&""!==e&&null!==e&&t.enumerationField.choices.find((function(t){return t.key===e}))?t.enumerationField.choices.find((function(t){return t.key===e})).value:e}}return r.prototype.ngOnInit=function(){var e=this;this.filteredOptions=this.formControlRef.valueChanges.pipe(le.startWith(""),le.map((function(){return e.enumerationField.choices}))),this.enumerationField.choicesChange$.subscribe((function(){e.filteredOptions=ne.of(e.enumerationField.choices)}))},r.prototype.ngOnDestroy=function(){this.filteredOptions=void 0},r.prototype.change=function(){void 0!==this.text.nativeElement.value&&(this.filteredOptions=ne.of(this.enumerationField.choices))},r.prototype.buildErrorMessage=function(){if(this.formControlRef.hasError(e.EnumerationFieldValidation.REQUIRED))return this._translate.instant("dataField.validations.required")},r.propDecorators={enumerationField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}],text:[{type:t.ViewChild,args:["input"]}]},r}(),Zr=new t.InjectionToken("NaeFilterField"),Jr=function(e){function r(t,r){var n=e.call(this,r)||this;return n._parentInjector=t,n}return Ie(r,e),r.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this);var r=[{provide:Zr,useValue:this.dataField}],n=t.Injector.create({providers:r,parent:this._parentInjector});this.portal=new u.ComponentPortal(this.getFilterContentComponent(),null,n),this.initialized=!0},r.ctorParameters=function(){return[{type:t.Injector},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt);(Br=e.BooleanOperator||(e.BooleanOperator={})).AND="AND",Br.OR="OR";var en,tn=function(){function e(e,t,r){void 0===r&&(r=""),this._id=e,this._type=t,this._title=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),e.prototype.getRequestParams=function(){return{}},e.prototype.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},e}();(en=e.MergeOperator||(e.MergeOperator={})).AND="AND",en.OR="OR";var rn,nn=function(t){function r(e,r,n,i,o){var a=t.call(this,e,r,o)||this;return a._operator=i,a._filters=[],n.forEach((function(e){a._filters.push(a.deepCopy(e))})),a}return Ie(r,t),r.fromQuery=function(e,t,n){return new r("",n,e,t)},r.fromCaseQuery=function(t,n){return r.fromQuery(t,n,e.FilterType.CASE)},r.fromTaskQuery=function(t,n){return r.fromQuery(t,n,e.FilterType.TASK)},Object.defineProperty(r.prototype,"operator",{get:function(){return this._operator},set:function(e){this._operator=e},enumerable:!1,configurable:!0}),r.prototype.clone=function(){return new r(this.id,this.type,this._filters,this._operator,this.title)},r.prototype.merge=function(t,n){if(t.type!==this.type)throw new Error("Can't merge filters with different types");if(this._operator!==n||t instanceof r&&t._operator!==this._operator)throw new Error("Can't merge filters with different merge operators");var i=this.id+(n===e.MergeOperator.AND?"&":"|")+t.id,o=[];o.push.apply(o,ke(this._filters));var a=t.getRequestBody();return Array.isArray(a)?o.push.apply(o,ke(a)):o.push(a),new r(i,this.type,o,this._operator)},r.prototype.getRequestBody=function(){return this.deepCopy(this._filters)},r.prototype.bodyContainsQuery=function(){return this._filters.some((function(e){return void 0!==e.query&&null!==e.query}))},r.prototype.getRequestParams=function(){return{operation:this._operator}},r}(tn),on=function(t){function r(e,r,n,i){var o=t.call(this,e,r,i)||this;return o._filter=o.deepCopy(n),o}return Ie(r,t),r.empty=function(e){return new r("",e,{})},r.emptyCaseFilter=function(){return r.empty(e.FilterType.CASE)},r.emptyTaskFilter=function(){return r.empty(e.FilterType.TASK)},r.fromQuery=function(e,t){return new r("",t,e)},r.fromCaseQuery=function(t){return r.fromQuery(t,e.FilterType.CASE)},r.fromTaskQuery=function(t){return r.fromQuery(t,e.FilterType.TASK)},r.prototype.clone=function(){return new r(this.id,this.type,this._filter,this.title)},r.prototype.merge=function(e,t){return new nn(this.id,this.type,[this._filter],t,this.title).merge(e,t)},r.prototype.bodyContainsQuery=function(){return void 0!==this._filter.query&&null!==this._filter.query},r.prototype.getRequestBody=function(){return this.deepCopy(this._filter)},r}(tn),an=function(){function e(e,t){void 0===t&&(t=!1),this._value=e,this._empty=t,this._value&&""!==this._value||(this._empty=!0)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this._empty},enumerable:!1,configurable:!0}),e.combineQueries=function(t,r){var n=t.filter((function(e){return!e.isEmpty}));return 0===n.length?e.emptyQuery():1===n.length?new e(n[0].value):new e("("+n.map((function(e){return e.value})).join(" "+r+" ")+")")},e.emptyQuery=function(){return new e("",!0)},e.prototype.equals=function(e){return!(!this.isEmpty||!e.isEmpty)||!this.isEmpty&&!e.isEmpty&&this.value===e.value},e}(),sn=function(){function t(e){void 0===e&&(e=!0),this._visible=!!e,this._metadataGenerator=function(){throw new Error("This predicate has no metadata generator registered!")},this._filterTextSegmentsGenerator=function(){return[]}}return Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._visible},enumerable:!1,configurable:!0}),t.combineTextSegmentsWithBooleanOperator=function(t,r,n){var i,o;void 0===n&&(n=!1);var a=[],s=!0,u=!1;try{for(var c=we(t),l=c.next();!l.done;l=c.next()){var p=l.value.createFilterTextSegments();p.length>0&&(s||(!u&&n&&(a.unshift({segment:"("}),u=!0),n&&a.push({segment:")"}),a.push({segment:r===e.BooleanOperator.AND?"search.and":"search.or",uppercase:!0}),n&&a.push({segment:"("})),a.push.apply(a,ke(p)),s=!1)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return u&&n&&a.push({segment:")"}),a},t.prototype.show=function(){this._visible=!0},t.prototype.setMetadataGenerator=function(e){this._metadataGenerator=e},t.prototype.createGeneratorMetadata=function(){return this._metadataGenerator()},t.prototype.setFilterTextSegmentsGenerator=function(e){this._filterTextSegmentsGenerator=e},t.prototype.createFilterTextSegments=function(){return this._filterTextSegmentsGenerator()},t}(),un=function(e){function t(t,r){void 0===r&&(r=!0);var n=e.call(this,r)||this;return n._parentNotifier=t,n}return Ie(t,e),t.prototype.notifyParentPredicate=function(){this._parentNotifier&&!this._parentNotifier.isStopped&&this._parentNotifier.next()},Object.defineProperty(t.prototype,"parentNotifier",{set:function(e){this._parentNotifier=e},enumerable:!1,configurable:!0}),t}(sn),cn=function(e){function t(t,r){void 0===r&&(r=!0);var n=e.call(this,t,r)||this;return n._query=an.emptyQuery(),n}return Ie(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this._query},set:function(e){this._query=e,this.notifyParentPredicate()},enumerable:!1,configurable:!0}),t}(un),ln=function(){function e(){this.i=0}return e.prototype.next=function(){return this.i++},e.prototype.lastUsed=function(){return this.i-1},e}(),pn=function(e){function t(t,r,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var o=e.call(this,r,n)||this;return o._operator=t,o._bracketSubPredicateText=i,o._predicates=new Map,o._childUpdated$=new ne.Subject,o._childCounter=new ln,o._query=an.emptyQuery(),o.initializeFilterTextSegmentsGenerator(),o._childUpdated$.subscribe((function(){o.updateQueryAndNotify()})),o}return Ie(t,e),t.prototype.ngOnDestroy=function(){this._childUpdated$.complete()},Object.defineProperty(t.prototype,"query",{get:function(){return this._query},enumerable:!1,configurable:!0}),t.prototype.show=function(){e.prototype.show.call(this),this.showAll()},t.prototype.showPredicates=function(e){var t=this;e.forEach((function(e){t._predicates.has(e)&&t._predicates.get(e).show()}))},t.prototype.addNewElementaryPredicate=function(e){return void 0===e&&(e=!0),this.addPredicate(new cn(this._childUpdated$,e))},t.prototype.addNewClausePredicate=function(e,r){return void 0===r&&(r=!0),this.addPredicate(new t(e,this._childUpdated$,r))},t.prototype.addPredicate=function(e){var t=this._childCounter.next();return this._predicates.set(t,e),this.updateQueryAndNotify(),t},t.prototype.removePredicate=function(e){var t=this._predicates.delete(e);return this.updateQueryAndNotify(),t},t.prototype.getPredicateMap=function(){return this._predicates},t.prototype.updateQueryAndNotify=function(){this.updateQuery(),this.notifyParentPredicate()},t.prototype.updateQuery=function(){this._query=an.combineQueries(this.queries,this._operator)},Object.defineProperty(t.prototype,"queries",{get:function(){return Array.from(this._predicates.values()).map((function(e){return e.query}))},enumerable:!1,configurable:!0}),t.prototype.showAll=function(){var e,t;try{for(var r=we(this._predicates.values()),n=r.next();!n.done;n=r.next()){n.value.show()}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.initializeFilterTextSegmentsGenerator=function(){var e=this;this._filterTextSegmentsGenerator=function(){return sn.combineTextSegmentsWithBooleanOperator(e._predicates.values(),e._operator,e._bracketSubPredicateText)}},t}(un),dn=function(e){function t(t,r,n){var i=e.call(this)||this;return i._predicate=t,i._generator=r,i._visible=null!=n?n:!r,i.initializeMetadataGenerator(),i.initializeFilterTextSegmentsGenerator(),i}return Ie(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this._predicate.query},set:function(e){if(!(this._predicate instanceof cn))throw new Error("The wrapped predicate cannot have its query set");this._predicate.query=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"generator",{get:function(){return this._generator},enumerable:!1,configurable:!0}),t.prototype.getWrappedPredicate=function(){return this._predicate},Object.defineProperty(t.prototype,"wrappedPredicate",{get:function(){return this.getWrappedPredicate()},enumerable:!1,configurable:!0}),t.prototype.show=function(){e.prototype.show.call(this),this._predicate.show()},t.prototype.destroy=function(){void 0!==this._generator&&this.generator.destroy()},t.prototype.initializeMetadataGenerator=function(){var e=this;this._metadataGenerator=function(){try{return e._predicate.createGeneratorMetadata()}catch(t){if(e._generator&&e._generator.providesPredicate)return e._generator.createMetadata();throw t}}},t.prototype.initializeFilterTextSegmentsGenerator=function(){var e=this;this._filterTextSegmentsGenerator=function(){var t=e._predicate.createFilterTextSegments();return t.length>0?t:e._generator&&e._generator.providesPredicate?e._generator.createFilterTextSegments():[]}},t}(sn),hn=function(e){function t(t,r){var n=new cn(void 0,r);return t.providesPredicate&&(n.query=t.generatedPredicate.query),e.call(this,n,t,r)||this}return Ie(t,e),Object.defineProperty(t.prototype,"parentNotifier",{set:function(e){this.getWrappedPredicate().parentNotifier=e},enumerable:!1,configurable:!0}),t.prototype.getWrappedPredicate=function(){return e.prototype.getWrappedPredicate.call(this)},t}(dn),fn=function(e){function t(t,r,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var o=e.call(this,t,r,n,i)||this;return o._metadataGenerator=function(){var e,t,r=[];try{for(var n=we(o._predicates.values()),i=n.next();!i.done;i=n.next()){var a=i.value.createGeneratorMetadata();void 0!==a&&r.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r.length>0?r:void 0},o}return Ie(t,e),t.prototype.addNewClausePredicate=function(e,r){return void 0===r&&(r=!0),this.addPredicate(new t(e,this._childUpdated$,r))},t.prototype.addPredicate=function(t,r){return void 0===r&&(r=!0),e.prototype.addPredicate.call(this,new dn(t,void 0,r))},t.prototype.addNewPredicateFromGenerator=function(t,r){void 0===r&&(r=!0);var n=new hn(t,r);return n.parentNotifier=this._childUpdated$,e.prototype.addPredicate.call(this,n)},t.prototype.getPredicateMap=function(){return this._predicates},t.prototype.destroy=function(){var e,t;try{for(var r=we(this._predicates.values()),n=r.next();!n.done;n=r.next()){n.value.destroy()}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t}(pn),gn=new t.InjectionToken("NaeBaseFilter");(rn=e.Operators||(e.Operators={})).EQUALS="equals",rn.EQUALS_DATE="equals_date",rn.EQUALS_DATE_TIME="equals_date_time",rn.IN_RANGE="in_range",rn.IN_RANGE_DATE="in_range_date",rn.IN_RANGE_DATE_TIME="in_range_date_time",rn.IS_NULL="is_null",rn.LESS_THAN="less_than",rn.LESS_THAN_DATE="less_than_date",rn.LESS_THAN_DATE_TIME="less_than_date_time",rn.LESS_THAN_EQUAL="less_than_equal",rn.LESS_THAN_EQUAL_DATE="less_than_equal_date",rn.LESS_THAN_EQUAL_DATE_TIME="less_than_equal_date_time",rn.LIKE="like",rn.MORE_THAN="more_than",rn.MORE_THAN_DATE="more_than_date",rn.MORE_THAN_DATE_TIME="more_than_date_time",rn.MORE_THAN_EQUAL="more_than_equal",rn.MORE_THAN_EQUAL_DATE="more_than_equal_date",rn.MORE_THAN_EQUAL_DATE_TIME="more_than_equal_date_time",rn.NOT_EQUALS="not_equals",rn.NOT_EQUALS_DATE="not_equals_date",rn.NOT_EQUALS_DATE_TIME="not_equals_date_time",rn.SUBSTRING="substring";var yn=function(){function t(e,t){void 0===t&&(t=""),this._numberOfOperands=e,this._operatorSymbols=t}return t.escapeInput=function(e){if("string"==typeof e){for(var r=!1,n="",i=0;i<e.length;i++)t.UNESCAPABLE_CHARACTERS.has(e.charAt(i))||(t.ESCAPABLE_CHARACTERS.has(e.charAt(i))&&(n+="\\",r=!0),n+=e.charAt(i));return{value:n,wasEscaped:r}}return{value:e,wasEscaped:!1}},t.query=function(e,t,r){return"("+e+":"+r+t+")"},t.forEachKeyword=function(t,r){var n=[];return t.forEach((function(e){n.push(r(e))})),an.combineQueries(n,e.BooleanOperator.OR)},t.wrapInputWithQuotes=function(e,t){return void 0===t&&(t=!1),"string"==typeof e&&(e.includes(" ")||t)?{value:'"'+e+'"',wasWrapped:!0}:{value:e,wasWrapped:!1}},Object.defineProperty(t.prototype,"numberOfOperands",{get:function(){return this._numberOfOperands},enumerable:!1,configurable:!0}),t.prototype.createQuery=function(e,r,n){var i=this;return void 0===n&&(n=!0),this.checkArgumentsCount(r),t.forEachKeyword(e,(function(e){var o=n?t.escapeInput(r[0]):{value:r[0],wasEscaped:!1},a=t.wrapInputWithQuotes(o.value,o.wasEscaped),s=t.query(e,a.value,i._operatorSymbols);return new an(s)}))},t.prototype.checkArgumentsCount=function(e){if(e.length<this.numberOfOperands)throw new Error("At least "+this.numberOfOperands+" arguments must be provided to create a query with "+this.numberOfOperands+" operands!")},t.INPUT_PLACEHOLDER="",t.ESCAPABLE_CHARACTERS=new Set(["+","-","=","&","|","!","(",")","{","}","[","]","^",'"',"~","*","?",":","\\","/"]),t.UNESCAPABLE_CHARACTERS=new Set(["<",">"]),t}(),vn=function(t){function r(){return t.call(this,1,"")||this}return Ie(r,t),r.prototype.getOperatorNameTemplate=function(){return["search.operator.equals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.EQUALS},r}(yn);function mn(e){e.milliseconds(0),e.seconds(0),e.minutes(0),e.hours(0)}var _n,bn=function(t){function r(){return t.call(this,2)||this}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);mn(r);var n=de(t[1]);return mn(n),n.date(n.date()+1),yn.forEachKeyword(e,(function(e){return new an("("+e+":["+r.valueOf()+" TO "+n.valueOf()+"})")}))},r.prototype.getOperatorNameTemplate=function(){return["search.operator.inRange.from",yn.INPUT_PLACEHOLDER,"search.operator.inRange.to",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.IN_RANGE_DATE},r}(yn),Tn=function(t){function r(e){var r=t.call(this,1)||this;return r.dateRange=e.getOperator(bn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){return this.checkArgumentsCount(t),this.dateRange.createQuery(e,[t[0],t[0]])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.equals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.EQUALS_DATE},r}(yn),Sn=function(t){function r(){return t.call(this,2)||this}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);r.milliseconds(0),r.seconds(0);var n=de(t[1]);return n.milliseconds(0),n.seconds(0),n.minutes(n.minutes()+1),yn.forEachKeyword(e,(function(e){return new an("("+e+":["+r.valueOf()+" TO "+n.valueOf()+"})")}))},r.prototype.getOperatorNameTemplate=function(){return["search.operator.inRange.from",yn.INPUT_PLACEHOLDER,"search.operator.inRange.to",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.IN_RANGE_DATE_TIME},r}(yn),In=function(t){function r(e){var r=t.call(this,1)||this;return r.dateTimeRange=e.getOperator(Sn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){return this.checkArgumentsCount(t),this.dateTimeRange.createQuery(e,[t[0],t[0]])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.equals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.EQUALS_DATE_TIME},r}(yn),En=function(t){function r(){return t.call(this,2)||this}return Ie(r,t),r.prototype.createQuery=function(e,t){return this.checkArgumentsCount(t),yn.forEachKeyword(e,(function(e){return new an("("+e+":["+t[0]+" TO "+t[1]+"])")}))},r.prototype.getOperatorNameTemplate=function(){return["search.operator.inRange.from",yn.INPUT_PLACEHOLDER,"search.operator.inRange.to",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.IN_RANGE},r}(yn),wn=function(t){function r(){return t.call(this,0)||this}return Ie(r,t),r.prototype.createQuery=function(e){var t=this;return yn.forEachKeyword(e,(function(e){return new an("("+t.nullQueryString(e)+"OR"+t.emptyStringQueryString(e)+")")}))},r.prototype.createQueryWithConstraint=function(e,t){var r=this;return t.isEmpty?this.createQuery(e):yn.forEachKeyword(e,(function(e){return new an("(("+r.nullQueryString(e)+"AND"+t.value+")OR("+r.emptyStringQueryString(e)+"AND"+t.value+"))")}))},r.prototype.nullQueryString=function(e){return"(!(_exists_:"+e+"))"},r.prototype.emptyStringQueryString=function(e){return"("+e+':"")'},r.prototype.getOperatorNameTemplate=function(){return["search.operator.isNull"]},r.prototype.serialize=function(){return e.Operators.IS_NULL},r}(yn),Cn=function(t){function r(){return t.call(this,1,"<")||this}return Ie(r,t),r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN},r}(yn),kn=function(t){function r(e){var r=t.call(this,1)||this;return r.lessThan=e.getOperator(Cn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return mn(r),this.lessThan.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_DATE},r}(yn),On=function(t){function r(e){var r=t.call(this,1)||this;return r.lessThan=e.getOperator(Cn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return r.milliseconds(0),r.seconds(0),this.lessThan.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_DATE_TIME},r}(yn),Fn=function(t){function r(){return t.call(this,1)||this}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=yn.escapeInput(t[0]);return yn.forEachKeyword(e,(function(e){return r.wasEscaped?new an("("+e+":"+r.value+")"):new an("("+e+":"+r.value+"~)")}))},r.prototype.getOperatorNameTemplate=function(){return["search.operator.like",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LIKE},r}(yn),An=function(t){function r(){return t.call(this,1,">")||this}return Ie(r,t),r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.MORE_THAN},r}(yn),Rn=function(t){function r(e){var r=t.call(this,1)||this;return r.moreThan=e.getOperator(An),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return mn(r),r.date(r.date()+1),r.milliseconds(-1),this.moreThan.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.MORE_THAN_DATE},r}(yn),Pn=function(t){function r(e){var r=t.call(this,1)||this;return r.moreThan=e.getOperator(An),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return r.milliseconds(0),r.seconds(0),r.minutes(r.minutes()+1),r.milliseconds(-1),this.moreThan.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThan",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.MORE_THAN_DATE_TIME},r}(yn),Nn=function(t){function r(e){var r=t.call(this,1)||this;return r.equals=e.getOperator(vn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){var r=this.equals.createQuery(e,t);return r.isEmpty?r:new an("(!"+r.value+")")},r.prototype.getOperatorNameTemplate=function(){return["search.operator.notEquals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.NOT_EQUALS},r}(yn),Dn=function(t){function r(e){var r=t.call(this,1)||this;return r.equals=e.getOperator(Tn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){var r=this.equals.createQuery(e,t);return r.isEmpty?r:new an("(!"+r.value+")")},r.prototype.getOperatorNameTemplate=function(){return["search.operator.notEquals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.NOT_EQUALS_DATE},r}(yn),Ln=function(t){function r(){return t.call(this,1)||this}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=yn.escapeInput(t[0]).value;return yn.forEachKeyword(e,(function(e){return new an("("+e+":\\*"+r+"\\*)")}))},r.prototype.getOperatorNameTemplate=function(){return["search.operator.substring",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.SUBSTRING},r}(yn),jn=function(t){function r(){return t.call(this,1,"<=")||this}return Ie(r,t),r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_EQUAL},r}(yn),Mn=function(t){function r(){return t.call(this,1,">=")||this}return Ie(r,t),r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_EQUAL},r}(yn),xn=function(t){function r(e){var r=t.call(this,1)||this;return r.moreThanEqual=e.getOperator(Mn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return mn(r),this.moreThanEqual.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.MORE_THAN_EQUAL_DATE},r}(yn),Vn=function(t){function r(e){var r=t.call(this,1)||this;return r.moreThanEqual=e.getOperator(Mn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return r.milliseconds(0),r.seconds(0),this.moreThanEqual.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.moreThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.MORE_THAN_EQUAL_DATE_TIME},r}(yn),Un=function(t){function r(e){var r=t.call(this,1)||this;return r.lessThan=e.getOperator(kn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return r.date(r.date()+1),this.lessThan.createQuery(e,[r])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_EQUAL_DATE},r}(yn),$n=function(t){function r(e){var r=t.call(this,1)||this;return r.lessThanEqual=e.getOperator(jn),r}return Ie(r,t),r.prototype.createQuery=function(e,t){this.checkArgumentsCount(t);var r=de(t[0]);return r.milliseconds(0),r.seconds(0),this.lessThanEqual.createQuery(e,[r.valueOf()])},r.prototype.getOperatorNameTemplate=function(){return["search.operator.lessThanEqual",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.LESS_THAN_DATE_TIME},r}(yn),Bn=function(t){function r(e){var r=t.call(this,1)||this;return r.equals=e.getOperator(In),r}return Ie(r,t),r.prototype.createQuery=function(e,t){var r=this.equals.createQuery(e,t);return r.isEmpty?r:new an("(!"+r.value+")")},r.prototype.getOperatorNameTemplate=function(){return["search.operator.notEquals",yn.INPUT_PLACEHOLDER]},r.prototype.serialize=function(){return e.Operators.NOT_EQUALS_DATE_TIME},r}(yn),zn=function(){function r(){}return r.prototype.toClass=function(t){switch(t){default:return this.toCustomClass(t);case e.Operators.EQUALS:return vn;case e.Operators.EQUALS_DATE:return Tn;case e.Operators.EQUALS_DATE_TIME:return In;case e.Operators.IN_RANGE:return En;case e.Operators.IN_RANGE_DATE:return bn;case e.Operators.IN_RANGE_DATE_TIME:return Sn;case e.Operators.IS_NULL:return wn;case e.Operators.LESS_THAN:return Cn;case e.Operators.LESS_THAN_DATE:return kn;case e.Operators.LESS_THAN_DATE_TIME:return On;case e.Operators.LESS_THAN_EQUAL:return jn;case e.Operators.LESS_THAN_EQUAL_DATE:return Un;case e.Operators.LESS_THAN_EQUAL_DATE_TIME:return $n;case e.Operators.LIKE:return Fn;case e.Operators.MORE_THAN:return An;case e.Operators.MORE_THAN_DATE:return Rn;case e.Operators.MORE_THAN_DATE_TIME:return Pn;case e.Operators.MORE_THAN_EQUAL:return Mn;case e.Operators.MORE_THAN_EQUAL_DATE:return xn;case e.Operators.MORE_THAN_EQUAL_DATE_TIME:return Vn;case e.Operators.NOT_EQUALS:return Nn;case e.Operators.NOT_EQUALS_DATE:return Dn;case e.Operators.NOT_EQUALS_DATE_TIME:return Bn;case e.Operators.SUBSTRING:return Ln}},r.prototype.toCustomClass=function(e){},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r}(),Hn=function(){function e(e){this._operatorResolver=e,this._operators=new Map}return e.prototype.getOperator=function(e){return this.createOperatorIfNotInMap(e),this._operators.get(e)},e.prototype.getFromMetadata=function(e){return this.getOperator(this._operatorResolver.toClass(e))},e.prototype.createOperatorIfNotInMap=function(e){this._operators.has(e)||this._operators.set(e,new e(this))},e.ctorParameters=function(){return[{type:zn}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](zn))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:zn}]},e}(),Gn=function(){function e(){}return e.prototype.getIndex=function(e,t,r){return void 0===r&&(r=!1),"dataSet."+e+"."+t+(r?".keyword":"")},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}();(_n=e.Categories||(e.Categories={})).CASE_AUTHOR="case_author",_n.CASE_CREATION_DATE="case_creation_date",_n.CASE_CREATION_DATE_TIME="case_creation_date_time",_n.CASE_DATASET="case_dataset",_n.CASE_PROCESS="case_process",_n.CASE_ROLE="case_role",_n.CASE_SIMPLE_DATASET="case_simple_dataset",_n.CASE_TASK="case_task",_n.CASE_TITLE="case_title",_n.CASE_VISUAL_ID="case_visual_id",_n.CASE_STRING_ID="case_string_id",_n.TASK_ASSIGNEE="task_assignee",_n.TASK_PROCESS="task_process",_n.TASK_ROLE="task_role",_n.TASK_TASK="task_task";var qn,Wn,Qn=function(e){function t(t,r){void 0===r&&(r=!0);var n=e.call(this,r)||this;return n._query=t,n}return Ie(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this._query},enumerable:!1,configurable:!0}),t}(sn);(qn=e.SearchInputType||(e.SearchInputType={})).TEXT="text",qn.AUTOCOMPLETE="autocomplete",qn.DATE="date",qn.DATE_TIME="dateTime",qn.NUMBER="number",qn.BOOLEAN="boolean",qn.OPERATOR="operator",(Wn=e.OperatorTemplatePartType||(e.OperatorTemplatePartType={})).INPUT="input",Wn.TEXT="text";var Kn=function(){function t(t,r,n){void 0===n&&(n=!1),this.id=r,this.first=n,this._content=t,this._type="string"==typeof t?e.OperatorTemplatePartType.TEXT:e.OperatorTemplatePartType.INPUT}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!1,configurable:!0}),t}(),Yn=function(){function e(e,t,r,n,i){var o=this;this.type=e,this.label=t,this.displayBold=r,this._autocompleteOptions=n,this._formControl=new l.FormControl,this._filteredOptions$=this._formControl.valueChanges.pipe(le.startWith(""),le.filter((function(e){return"string"==typeof e})),le.map((function(e){return i(Array.from(o._autocompleteOptions.keys()),e)})))}return Object.defineProperty(e.prototype,"formControl",{get:function(){return this._formControl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOptionSelected",{get:function(){return!!this._formControl.value&&"string"!=typeof this._formControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedOptionTranslatePath",{get:function(){return this.isOptionSelected?this._formControl.value.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filteredOptions$",{get:function(){return this._filteredOptions$},enumerable:!1,configurable:!0}),e.prototype.valueChanges$=function(){return this._formControl.valueChanges},e.prototype.clear=function(){this._formControl.setValue(void 0)},e}();function Xn(){return new ne.Observable((function(e){e.next(),e.complete()}))}var Zn,Jn={parse:{dateInput:"DD.MM.YYYY"},display:{dateInput:"DD.MM.YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"Do MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},ei={parse:{dateInput:"DD.MM.YYYY HH:mm"},display:{dateInput:"DD.MM.YYYY HH:mm",monthYearLabel:"MMM YYYY",dateA11yLabel:"Do MMMM YYYY HH:mm",monthYearA11yLabel:"MMMM YYYY"}},ti=function(){function t(t,r,n,i,o,a){var s=this;this._elasticKeywords=t,this._allowedOperators=r,this.translationPath=n,this._inputType=i,this._log=o,this._operatorService=a,this._OPERATOR_INPUT=new Yn(e.SearchInputType.OPERATOR,"search.operator.name",!1,new Map,(function(){throw new Error("ConfigurationInput of type OPERATOR is a placeholder! Use operator related methods from the Category class instead.")})),this._operatorFormControl=this._OPERATOR_INPUT.formControl,this._operandsFormControls$=new ne.ReplaySubject(1),this._operatorTemplate$=new ne.BehaviorSubject(void 0),this._operandsFormControls=[],this._trackByIdGenerator=new ln,this._generatedPredicate$=new ne.BehaviorSubject(void 0),this.initializeCategory(),this.operandsFormControls$.pipe(le.map((function(e){if(e){var t=s.selectedOperator.getOperatorNameTemplate(),r=ke(e),n=!0;return t.map((function(e){var t=new Kn(e||r.shift(),s._trackByIdGenerator.next(),e?void 0:n);return e||(n=!1),t}))}}))).subscribe((function(e){s._operatorTemplate$.next(e)}))}return t.prototype.destroy=function(){this._operandsFormControls$.complete(),this._operatorTemplate$.complete(),this._generatedPredicate$.complete()},Object.defineProperty(t.prototype,"generatedPredicate$",{get:function(){return this._generatedPredicate$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"generatedPredicate",{get:function(){return this._generatedPredicate$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this._inputType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowedOperators",{get:function(){var e=[];return e.push.apply(e,ke(this._allowedOperators)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedOperator",{get:function(){return this._operatorFormControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operandsFormControls$",{get:function(){return this._operandsFormControls$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operatorTemplate$",{get:function(){return this._operatorTemplate$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"providesPredicate",{get:function(){return!!this._generatedPredicate$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elasticKeywords",{get:function(){var e=[];return e.push.apply(e,ke(this._elasticKeywords)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedOperatorArity",{get:function(){if(!this.isOperatorSelected())throw new Error("An operator mus be selected before its arity can be resolved!");return this.selectedOperator.numberOfOperands},enumerable:!1,configurable:!0}),t.prototype.selectOperator=function(e){var t=this.allowedOperators;e<0||e>=t.length?this._log.warn("The provided 'operatorIndex' is out of range."):this._operatorFormControl.setValue(t[e])},t.prototype.setOperands=function(e){var t=Math.min(e.length,this._operandsFormControls.length);t<e.length&&this._log.warn(e.length+" operands are being set, but only "+t+" inputs are available! Extra operands will be ignored.");for(var r=0;r<t;r++)this._operandsFormControls[r].setValue(e[r]);0!==t&&this.operandValueChanges(t-1)},t.prototype.reset=function(){this.clearOperatorSelection(),this._operandsFormControls.forEach((function(e){e.setValue(void 0)}))},t.prototype.generateQuery=function(e){if(!this.isOperatorSelected())throw new Error("Category cannot generate a Query if no Operator is selected");return this._operatorFormControl.value.createQuery(this._elasticKeywords,e)},t.prototype.generatePredicate=function(e){return new Qn(this.generateQuery(e))},t.prototype.selectDefaultOperator=function(){this.selectOperator(0)},t.prototype.isOperatorSelected=function(){return!!this._operatorFormControl.value},t.prototype.clearOperatorSelection=function(){this._operatorFormControl.setValue(void 0)},t.prototype.createMetadata=function(){if(this.providesPredicate)return{category:this.serializeClass(),configuration:this.createMetadataConfiguration(),values:this.createMetadataValues()}},t.prototype.loadFromMetadata=function(e){var t=this,r=new ne.ReplaySubject(1);return this.loadConfigurationFromMetadata(e.configuration).subscribe((function(){t.loadValuesFromMetadata(e.values).subscribe((function(){r.next(),r.complete()}))})),r.asObservable()},t.prototype.initializeCategory=function(){var e=this;this._operatorFormControl.valueChanges.subscribe((function(t){if(e._operandsFormControls.forEach((function(e){e.setValue(void 0)})),!t)return e._operandsFormControls$.next(),void(0===e._operandsFormControls.length&&e._generatedPredicate$.next(void 0));if(t.numberOfOperands>e._operandsFormControls.length)for(var r=function(){var t=new l.FormControl,r=e._operandsFormControls.length;t.valueChanges.pipe(le.debounceTime(600)).subscribe((function(){e.operandValueChanges(r)})),e._operandsFormControls.push(t)};e._operandsFormControls.length<t.numberOfOperands;)r();e._operandsFormControls$.next(e._operandsFormControls.slice(0,t.numberOfOperands)),0===t.numberOfOperands&&e._generatedPredicate$.next(e.generatePredicate([]))}))},t.prototype.operandValueChanges=function(e){var t=this;if(this.isOperatorSelected()){if(!(e>=this.selectedOperatorArity)){for(var r=0;r<this.selectedOperatorArity;r++)if(!this.isOperandValueSelected(this._operandsFormControls[r].value))return void(this._generatedPredicate$.getValue()&&this._generatedPredicate$.next(void 0));this._generatedPredicate$.next(this.generatePredicate(this._operandsFormControls.map((function(e){return t.transformCategoryValue(e.value)}))))}}else this._generatedPredicate$.next(void 0)},t.prototype.createMetadataConfiguration=function(){var e;return(e={})[t.OPERATOR_METADATA]=this.selectedOperator.serialize(),e},t.prototype.createMetadataValues=function(){for(var e=[],t=0;t<this.selectedOperatorArity;t++)e.push(this.serializeOperandValue(this._operandsFormControls[t]));return e},t.prototype.serializeOperandValue=function(e){return e.value},t.prototype.loadConfigurationFromMetadata=function(e){var r=this._operatorService.getFromMetadata(e[t.OPERATOR_METADATA]);return this.selectOperator(this.allowedOperators.findIndex((function(e){return e===r}))),Xn()},t.prototype.loadValuesFromMetadata=function(e){var t=this;if(!this.isOperatorSelected())throw new Error("An operator must be selected before Category values can be resolved from metadata!");if(this.selectedOperatorArity!==e.length)throw new Error("The arity of the selected operator ("+this.selectedOperatorArity+") doesn't match the number of the provided values ("+e.length+")!");var r=e.map((function(e){return t.deserializeOperandValue(e)})),n=new ne.ReplaySubject(1);return ne.forkJoin(r).pipe(le.defaultIfEmpty([])).subscribe((function(e){t.setOperands(e),n.next(),n.complete()})),n.asObservable()},t.prototype.deserializeOperandValue=function(e){return ne.of(e)},t.prototype.transformCategoryValue=function(e){return e},t.prototype.createFilterTextSegments=function(){return this.providesPredicate?ke([{segment:this.translationPath,bold:this.displayBold}],this.createConfigurationFilterTextSegments(),this.createOperatorFilterTextSegments()):[]},t.prototype.createOperatorFilterTextSegments=function(){var e,t,r=[],n=0;try{for(var i=we(this.selectedOperator.getOperatorNameTemplate()),o=i.next();!o.done;o=i.next()){var a=o.value;a===yn.INPUT_PLACEHOLDER?(r.push(this.createOperandFilterTextSegment(n)),n++):r.push({segment:a})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r},t.prototype.createOperandFilterTextSegment=function(t){var r,n=this._operandsFormControls[t].value;switch(this.inputType){case e.SearchInputType.AUTOCOMPLETE:r=n.text;break;case e.SearchInputType.DATE:r=n.format("DD.MM.YYYY");break;case e.SearchInputType.DATE_TIME:r=n.format("DD.MM.YYYY HH:mm");break;default:r=n}return{segment:r,bold:!0}},t.OPERATOR_METADATA="operator",t}();(Zn=e.CaseSearch||(e.CaseSearch={})).CREATION_DATE="creationDateSortable",Zn.PROCESS_IDENTIFIER="processIdentifier",Zn.TASK_ID="taskIds",Zn.TITLE="title",Zn.VISUAL_ID="visualId",Zn.ENABLED_ROLES="enabledRoles",Zn.AUTHOR="author",Zn.STRING_ID="stringId";var ri=function(t){function r(r,n,i,o,a){var s=t.call(this,r,n,i,e.SearchInputType.AUTOCOMPLETE,o,a)||this;return s._optionsMap=new Map,s._options$=new ne.BehaviorSubject([]),s._timeoutId=setTimeout((function(){s.createOptions()})),s}return Ie(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this),this._options$.complete(),clearTimeout(this._timeoutId)},Object.defineProperty(r.prototype,"options",{get:function(){return this._options$.value},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options$",{get:function(){return this._options$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.updateOptions=function(){var e,t,r=[];try{for(var n=we(this._optionsMap.entries()),i=n.next();!i.done;i=n.next()){var o=i.value;r.push(this.createSearchAutocompleteOption(o[0],o[1]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this._options$.next(r)},r.prototype.filterOptions=function(e){return ne.combineLatest([e.pipe(le.startWith(""),le.map((function(e){return"string"==typeof e?e.toLocaleLowerCase():e.text}))),this.options$]).pipe(le.map((function(e){var t=Ce(e,2),r=t[0];return t[1].filter((function(e){return e.text.toLocaleLowerCase().startsWith(r)}))})))},r.prototype.addToMap=function(e,t){this._optionsMap.has(e)?this._optionsMap.get(e).push(t):this._optionsMap.set(e,[t])},r.prototype.isOperandValueSelected=function(e){return!(!e||"string"==typeof e)},r.prototype.transformCategoryValue=function(e){return e.value},r.prototype.serializeOperandValue=function(e){return e.value.text},r.prototype.deserializeOperandValue=function(e){var t=this,r=new ne.ReplaySubject(1);return this.options$.pipe(le.filter((function(e){return e.length>0})),le.take(1)).subscribe((function(){var n=t._optionsMap.get(e);if(void 0===n)throw new Error("The serialized autocomplete value '"+n+"' does not map to any autocomplete options and cannot be deserialized!");r.next(t.createSearchAutocompleteOption(e,n)),r.complete()})),r.asObservable()},r.prototype.createSearchAutocompleteOption=function(e,t){return{text:e,value:t}},r}(ti),ni=function(e){function t(t,r,n,i,o){return e.call(this,t,r,n,i,o)||this}return Ie(t,e),Object.defineProperty(t.prototype,"configurationInputs$",{get:function(){return ne.of([this._OPERATOR_INPUT])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayBold",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getActiveInputFormControl=function(e){if(0===e)return this._operatorFormControl;throw new Error("Illegal inputIndex '"+e+"'. This category has only one configuration input!")},t.prototype.createConfigurationFilterTextSegments=function(){return[]},t}(ri);function ii(e){return!!e&&!!e.content&&Array.isArray(e.content)&&e.content.length>0}var oi,ai=function(){function e(e,t){void 0===t&&(t=!0),this._includeMe=t,this._userResourceService=e.userResourceService}return e.prototype.filterOptions=function(t){var r=this;return t.pipe(le.startWith(""),le.debounceTime(600),le.switchMap((function(t){return"string"==typeof t?r._userResourceService.search({fulltext:t}).pipe(le.map((function(t){if(ii(t)){var n=t.content.map((function(t){return{text:t.fullName,value:[t.id],icon:e.USER_ICON}}));return r._includeMe&&n.unshift({text:e._i18n,value:[e.USER_ME_TEMPLATE],icon:e.USER_ME_ICON}),n}return[]}))):ne.of([t])})))},e.prototype.serializeOperandValue=function(e){var t=e.value;return{text:t.text,value:t.value}},e.prototype.deserializeOperandValue=function(t){return ne.of(Ee(Ee({},t),{icon:this.isUserMeTemplate(t)?e.USER_ME_ICON:e.USER_ICON}))},e.prototype.isUserMeTemplate=function(t){return!!(null==t?void 0:t.value)&&Array.isArray(t.value)&&1===t.value.length&&t.value[0]===e.USER_ME_TEMPLATE},e.USER_ICON="account_circle",e.USER_ME_ICON="person_pin_circle",e.USER_ME_TEMPLATE="<<me>>",e._i18n="search.category.userMe",e}(),si=function(e){function t(t,r,n,i,o,a,s){var u=e.call(this,t,r,n,i,o)||this;return u._className=a,u._optionalDependencies=s,u._userAutocomplete=new ai(u._optionalDependencies),u}return Ie(t,e),t.prototype.createOptions=function(){},t.prototype.filterOptions=function(e){return this._userAutocomplete.filterOptions(e)},t.prototype.generateQuery=function(e){if(1!==this.selectedOperator.numberOfOperands)throw new Error("Only unary operators are currently supported by the "+this._className+" implementation");return this.selectedOperator.createQuery(this.elasticKeywords,e[0],!1)},t.prototype.serializeOperandValue=function(e){return this._userAutocomplete.serializeOperandValue(e)},t.prototype.deserializeOperandValue=function(e){return this._userAutocomplete.deserializeOperandValue(e)},t}(ni),ui=function(t){function r(n,i,o){return t.call(this,[e.CaseSearch.AUTHOR],[n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",i,n,"CaseAuthor",o)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.CASE_AUTHOR},r._i18n="search.category.case.author",r}(si),ci=function(e){function t(t,r,n,i,o,a){return e.call(this,t,r,n,i,o,a)||this}return Ie(t,e),Object.defineProperty(t.prototype,"configurationInputs$",{get:function(){return ne.of([this._OPERATOR_INPUT])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayBold",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getActiveInputFormControl=function(e){if(0===e)return this._operatorFormControl;throw new Error("Illegal inputIndex '"+e+"'. This category has only one configuration input!")},t.prototype.isOperandValueSelected=function(e){return!!e},t.prototype.createConfigurationFilterTextSegments=function(){return[]},t}(ti),li=function(t){function r(n,i){return t.call(this,[e.CaseSearch.CREATION_DATE],[n.getOperator(Tn),n.getOperator(Dn),n.getOperator(Rn),n.getOperator(xn),n.getOperator(kn),n.getOperator(Un),n.getOperator(bn)],r._i18n+".name",e.SearchInputType.DATE,i,n)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log)},r.prototype.serializeClass=function(){return e.Categories.CASE_CREATION_DATE},r.prototype.serializeOperandValue=function(e){return e.value.valueOf()},r.prototype.deserializeOperandValue=function(e){return ne.of(de(e))},r._i18n="search.category.case.creationDate",r}(ci),pi=function(){function e(e,t){this._inputType=e,this._title=t}return e.serializedForm=function(e,t){return e+"#"+t},e.parse=function(t){var r=t.split("#");return new e(r.shift(),r.join("#"))},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._inputType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){switch(this._inputType){case"boolean":return"toggle_off";case"date":return"today";case"enumeration":return"radio_button_checked";case"file":return"insert_drive_file";case"fileList":return"file_copy";case"multichoice":return"check_box";case"number":return"looks_one";case"user":return"person";case"userList":return"people";case"dateTime":return"schedule";default:return"text_format"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.toSerializedForm()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.title},enumerable:!1,configurable:!0}),e.prototype.toSerializedForm=function(){return e.serializedForm(this._inputType,this._title)},e}(),di=function(t){function r(n,i,o){var a=t.call(this,[e.CaseSearch.PROCESS_IDENTIFIER],[n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",i,n)||this;return a._optionalDependencies=o,a._uniqueOptionsMap=new Map,a}return Ie(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this),this._allowedNetsSub&&!this._allowedNetsSub.closed&&this._allowedNetsSub.unsubscribe(),this._destroyed=!0},r.prototype.createOptions=function(){var e=this;this._destroyed||(this._allowedNetsSub=this._optionalDependencies.allowedNetsService.allowedNets$.subscribe((function(t){e._optionsMap.clear(),t.forEach((function(t){e.isUniqueOption(t.title,t.identifier)&&e.addToMap(t.title,t.identifier)})),e.updateOptions()})))},r.prototype.isUniqueOption=function(e,t){return this._uniqueOptionsMap.has(e)?!this._uniqueOptionsMap.get(e).has(t)&&(this._uniqueOptionsMap.get(e).add(t),!0):(this._uniqueOptionsMap.set(e,new Set([t])),!0)},r.prototype.generateQuery=function(t){var r=this;if(1!==this.selectedOperator.numberOfOperands)throw new Error("Only unary operators are currently supported by the CaseProcess implementation");var n=t[0].map((function(e){return r.selectedOperator.createQuery(r.elasticKeywords,[e])}));return an.combineQueries(n,e.BooleanOperator.OR)},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.CASE_PROCESS},r._i18n="search.category.case.process",r}(ni);(oi=e.SearchIndex||(e.SearchIndex={})).FULLTEXT="fulltextValue",oi.BOOLEAN="booleanValue",oi.DATE="dateValue",oi.TIMESTAMP="timestampValue",oi.FILE_NAME="fileNameValue",oi.FILE_EXTENSION="fileExtensionValue",oi.TEXT="textValue",oi.KEY="keyValue",oi.NUMBER="numberValue",oi.EMAIL="emailValue",oi.FULL_NAME="fullNameValue",oi.USER_ID="userIdValue";var hi=function(t){function r(n,i,o){var a=t.call(this,void 0,void 0,r._i18n+".name",void 0,i,n)||this;return a._optionalDependencies=o,a._processCategory=a._optionalDependencies.categoryFactory.get(di),a._processCategory.selectDefaultOperator(),a._datafieldOptions=new Map,a._userAutocomplete=new ai(a._optionalDependencies),a.createDatafieldOptions(),a._DATAFIELD_INPUT=new Yn(e.SearchInputType.AUTOCOMPLETE,"search.category.case.dataset.placeholder.field",!0,a._datafieldOptions,(function(e,t){return e.map((function(e){return pi.parse(e)})).filter((function(e){return e.title.toLocaleLowerCase().startsWith(t)}))})),a._configurationInputs$=new ne.BehaviorSubject([a._DATAFIELD_INPUT]),a._DATAFIELD_INPUT.valueChanges$().subscribe((function(e){void 0===e||"string"==typeof e?a._configurationInputs$.next([a._DATAFIELD_INPUT]):1===a._configurationInputs$.getValue().length&&a._configurationInputs$.next([a._DATAFIELD_INPUT,a._OPERATOR_INPUT]),a._operatorFormControl.setValue(void 0)})),a}return Ie(r,t),r.FieldTypeToInputType=function(t){switch(t){case"date":return e.SearchInputType.DATE;case"dateTime":return e.SearchInputType.DATE_TIME;case"number":return e.SearchInputType.NUMBER;case"boolean":return e.SearchInputType.BOOLEAN;case"user":return e.SearchInputType.AUTOCOMPLETE;default:return e.SearchInputType.TEXT}},r.prototype.destroy=function(){t.prototype.destroy.call(this),this._configurationInputs$.complete(),this._datafieldOptionsInitialized$.complete(),this._allowedNetsSub&&!this._allowedNetsSub.closed&&this._allowedNetsSub.unsubscribe(),this._processCategory.destroy()},Object.defineProperty(r.prototype,"configurationInputs$",{get:function(){return this._configurationInputs$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inputType",{get:function(){if(!this.hasSelectedDatafields)throw new Error("Input type of arguments cannot be determined before selecting a data field during the configuration.");return r.FieldTypeToInputType(this._selectedDatafields[0].fieldType)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"allowedOperators",{get:function(){if(!this.hasSelectedDatafields)return[];switch(this._selectedDatafields[0].fieldType){case"number":return[this._operatorService.getOperator(vn),this._operatorService.getOperator(Nn),this._operatorService.getOperator(An),this._operatorService.getOperator(Mn),this._operatorService.getOperator(Cn),this._operatorService.getOperator(jn),this._operatorService.getOperator(En),this._operatorService.getOperator(wn)];case"boolean":return[this._operatorService.getOperator(vn),this._operatorService.getOperator(Nn)];case"user":case"userList":return[this._operatorService.getOperator(vn),this._operatorService.getOperator(Nn),this._operatorService.getOperator(wn)];case"date":return[this._operatorService.getOperator(Tn),this._operatorService.getOperator(Dn),this._operatorService.getOperator(Rn),this._operatorService.getOperator(xn),this._operatorService.getOperator(kn),this._operatorService.getOperator(Un),this._operatorService.getOperator(bn),this._operatorService.getOperator(wn)];case"dateTime":return[this._operatorService.getOperator(In),this._operatorService.getOperator(Pn),this._operatorService.getOperator(Vn),this._operatorService.getOperator(On),this._operatorService.getOperator($n),this._operatorService.getOperator(Sn),this._operatorService.getOperator(wn)];default:return[this._operatorService.getOperator(Ln),this._operatorService.getOperator(vn),this._operatorService.getOperator(Nn),this._operatorService.getOperator(wn),this._operatorService.getOperator(Fn)]}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"displayBold",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasSelectedDatafields",{get:function(){return this._DATAFIELD_INPUT.isOptionSelected},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_selectedDatafields",{get:function(){return this._datafieldOptions.get(this._DATAFIELD_INPUT.formControl.value.value)},enumerable:!1,configurable:!0}),r.prototype.reset=function(){t.prototype.reset.call(this),this._DATAFIELD_INPUT.clear()},r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},Object.defineProperty(r.prototype,"elasticKeywords",{get:function(){var e=this;return this.hasSelectedDatafields?this._selectedDatafields.map((function(t){return e.resolveElasticKeyword(t)})):[]},enumerable:!1,configurable:!0}),r.prototype.resolveElasticKeyword=function(t){var r=this._optionalDependencies.searchIndexResolver;switch(t.fieldType){case"number":return r.getIndex(t.fieldId,e.SearchIndex.NUMBER);case"date":case"dateTime":return r.getIndex(t.fieldId,e.SearchIndex.TIMESTAMP);case"boolean":return r.getIndex(t.fieldId,e.SearchIndex.BOOLEAN);case"file":case"fileList":return r.getIndex(t.fieldId,e.SearchIndex.FILE_NAME,this.isSelectedOperator(vn)||this.isSelectedOperator(Nn));case"user":case"userList":return r.getIndex(t.fieldId,e.SearchIndex.USER_ID);default:return r.getIndex(t.fieldId,e.SearchIndex.FULLTEXT,this.isSelectedOperator(vn)||this.isSelectedOperator(Nn))}},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return this.hasSelectedDatafields?r._i18n+".placeholder.value":r._i18n+".placeholder.field"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"datafieldOptionsInitialized$",{get:function(){return this._datafieldOptionsInitialized$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.generateQuery=function(t){var r,n=this;r=this.isSelectedOperator(wn)?function(e,t){return n.isNullOperatorQueryGenerationStrategy(e)}:this.inputType===e.SearchInputType.AUTOCOMPLETE?function(e,t){return n.standardQueryGenerationStrategy(e,t[0],!1)}:function(e,t){return n.standardQueryGenerationStrategy(e,t)};var i=this._selectedDatafields.map((function(e){return r(e,t)}));return an.combineQueries(i,e.BooleanOperator.OR)},r.prototype.standardQueryGenerationStrategy=function(t,r,n){void 0===n&&(n=!0);var i=this.selectedOperator.createQuery(this.elasticKeywords,r,n),o=this.generateNetConstraint(t);return an.combineQueries([i,o],e.BooleanOperator.AND)},r.prototype.isNullOperatorQueryGenerationStrategy=function(e){var t=this.generateNetConstraint(e);return this._operatorService.getOperator(wn).createQueryWithConstraint(this.elasticKeywords,t)},r.prototype.generateNetConstraint=function(e){return this._processCategory.generatePredicate([[e.netIdentifier]]).query},r.prototype.createDatafieldOptions=function(){var e=this;this._datafieldOptionsInitialized$=new ne.ReplaySubject(1),this._allowedNetsSub=this._optionalDependencies.allowedNetsService.allowedNets$.subscribe((function(t){t.forEach((function(t){t.immediateData.filter((function(e){return void 0!==e.title&&e.title.trim().length>0&&!r.DISABLED_TYPES.includes(e.type)})).forEach((function(r){var n=r.type;"enumeration_map"===n?n="enumeration":"multichoice_map"===n&&(n="multichoice"),e.addToDatafieldOptionsMap(pi.serializedForm(r.type,r.title),{netIdentifier:t.identifier,fieldId:r.stringId,fieldType:r.type})}))})),e._datafieldOptionsInitialized$.next()}))},r.prototype.filterOptions=function(t){if(!this.hasSelectedDatafields)throw new Error("The category must be fully configured before attempting to get autocomplete options!");if(this.inputType!==e.SearchInputType.AUTOCOMPLETE)throw new Error("Cannot filter options of non-autocomplete operands");return this._userAutocomplete.filterOptions(t)},r.prototype.selectDatafields=function(e,t){void 0===t&&(t=!0),this._datafieldOptions.has(e)?(this._DATAFIELD_INPUT.formControl.setValue(pi.parse(e)),t&&this.selectDefaultOperator()):this._log.warn("The provided 'datafieldMapKey' ("+e+") does not exist.")},r.prototype.addToDatafieldOptionsMap=function(e,t){this._datafieldOptions.has(e)?this._datafieldOptions.get(e).push(t):this._datafieldOptions.set(e,[t])},r.prototype.isOperandValueSelected=function(t){if(!this.isOperatorSelected())return!1;var r;try{r=this.inputType}catch(e){return!1}switch(r){case e.SearchInputType.NUMBER:return"number"==typeof t;case e.SearchInputType.BOOLEAN:return"boolean"==typeof t;case e.SearchInputType.AUTOCOMPLETE:return!(!t||"string"==typeof t);default:return!!t}},r.prototype.transformCategoryValue=function(t){return this.inputType===e.SearchInputType.AUTOCOMPLETE?t.value:t},r.prototype.isSelectedOperator=function(e){return this.selectedOperator===this._operatorService.getOperator(e)},r.prototype.serializeClass=function(){return e.Categories.CASE_DATASET},r.prototype.serializeOperandValue=function(r){switch(this.inputType){case e.SearchInputType.AUTOCOMPLETE:return this._userAutocomplete.serializeOperandValue(r);case e.SearchInputType.DATE:case e.SearchInputType.DATE_TIME:return r.value.valueOf();default:return t.prototype.serializeOperandValue.call(this,r)}},r.prototype.createMetadataConfiguration=function(){var e=t.prototype.createMetadataConfiguration.call(this);return e[r.DATAFIELD_METADATA]=this._DATAFIELD_INPUT.formControl.value.toSerializedForm(),e},r.prototype.loadConfigurationFromMetadata=function(e){var n=this,i=new ne.ReplaySubject(1);return this.datafieldOptionsInitialized$.subscribe((function(){var o=e[r.DATAFIELD_METADATA];if(n.selectDatafields(o,!1),!n.hasSelectedDatafields)throw new Error("Searched data fields cannot be restored from the provided configuration ("+o+"). Make sure, that the correct allowed nets are provided in this view.");t.prototype.loadConfigurationFromMetadata.call(n,e).subscribe((function(){i.next(),i.complete()}))})),i.asObservable()},r.prototype.deserializeOperandValue=function(r){switch(this.inputType){case e.SearchInputType.AUTOCOMPLETE:return this._userAutocomplete.deserializeOperandValue(r);case e.SearchInputType.DATE:case e.SearchInputType.DATE_TIME:return ne.of(de(r));default:return t.prototype.deserializeOperandValue.call(this,r)}},r.prototype.createConfigurationFilterTextSegments=function(){return[{segment:this._configurationInputs$.value[0].formControl.value.text,bold:!0}]},r._i18n="search.category.case.dataset",r.DISABLED_TYPES=["button","taskRef","caseRef","filter"],r.DATAFIELD_METADATA="datafield",r.AUTOCOMPLETE_ICON="account_circle",r}(ti),fi=function(t){function r(e,r,n,i,o,a){var s=t.call(this,e,r,n,i,o)||this;return s._optionalDependencies=a,s}return Ie(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this),this._allowedNetsSub&&!this._allowedNetsSub.closed&&this._allowedNetsSub.unsubscribe(),this._destroyed=!0},r.prototype.createOptions=function(){var e=this;this._destroyed||(this._allowedNetsSub=this._optionalDependencies.allowedNetsService.allowedNets$.subscribe((function(t){e._optionsMap.clear(),t.forEach((function(t){e.extractAttributes(t).filter((function(e){return e.name&&e.name.trim().length>0})).forEach((function(r){e.addToMap(r.name,{netId:e.getPetriNetIdentifier(t),attributeId:r.id})}))})),e.updateOptions()})))},r.prototype.generateQuery=function(t){var r=this;if(1!==t.length)throw new Error("NetAttributeAutocompleteCategories currently doesn't support operators with arity other than 1!");var n=t[0].map((function(t){var n=r.selectedOperator.createQuery(r.elasticKeywords,[t.attributeId]),i=r.getProcessCategory().generatePredicate([[t.netId]]).query;return an.combineQueries([n,i],e.BooleanOperator.AND)}));return an.combineQueries(n,e.BooleanOperator.OR)},r}(ni),gi=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this;return s._processCategory=a.categoryFactory.get(di),s._processCategory.selectDefaultOperator(),s}return Ie(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._processCategory.destroy()},t.prototype.getProcessCategory=function(){return this._processCategory},t.prototype.getPetriNetIdentifier=function(e){return e.identifier},t}(fi),yi=function(t){function r(n,i,o){return t.call(this,[e.CaseSearch.ENABLED_ROLES],[n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",i,n,o)||this}return Ie(r,t),r.prototype.extractAttributes=function(e){return e.roles.map((function(e){return{id:e.stringId,name:e.name}}))},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.CASE_ROLE},r._i18n="search.category.case.role",r}(gi),vi=function(t){function r(e,n,i){var o=t.call(this,void 0,void 0,r._i18n+".name",void 0,n,e)||this;return o._optionalDependencies=i,o._processCategory=i.categoryFactory.getWithDefaultOperator(di),o}return Ie(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this),this._processCategory.destroy()},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return""},enumerable:!1,configurable:!0}),r.prototype.configure=function(e,t,r){e&&t&&r&&0!==r.length?(this._fieldId=e,this._fieldType=t,this._netIdentifiers=r,this.resolveElasticKeyword()):this._log.error("CaseSimpleDataset must be configured with defined values and a non-empty array")},r.prototype.resolveElasticKeyword=function(){var t=this._optionalDependencies.searchIndexResolver;switch(this._fieldType){case"number":this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.NUMBER);break;case"date":case"dateTime":this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.TIMESTAMP);break;case"boolean":this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.BOOLEAN);break;case"file":case"fileList":this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.FILE_NAME);break;case"user":case"userList":this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.USER_ID);break;default:this._elasticKeyword=t.getIndex(this._fieldId,e.SearchIndex.FULLTEXT)}},Object.defineProperty(r.prototype,"elasticKeywords",{get:function(){return this._fieldId?[this._elasticKeyword]:[]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selectedOperator",{get:function(){switch(this._fieldType){case"number":case"boolean":case"user":return this._operatorService.getOperator(vn);case"date":return this._operatorService.getOperator(Tn);case"dateTime":return this._operatorService.getOperator(In);default:return this._operatorService.getOperator(Ln)}},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.transformToCaseDataset=function(e,t,r){var n=this._optionalDependencies.categoryFactory.get(hi);return n.selectDatafields(pi.serializedForm(e,t)),n.setOperands(r),n},r.prototype.generateQuery=function(t){var r=this,n=this.selectedOperator.createQuery(this.elasticKeywords,t),i=an.combineQueries(this._netIdentifiers.map((function(e){return r._processCategory.generatePredicate([[e]]).query})),e.BooleanOperator.OR);return an.combineQueries([n,i],e.BooleanOperator.AND)},r.prototype.serializeClass=function(){return e.Categories.CASE_SIMPLE_DATASET},r.prototype.createMetadata=function(){throw new Error("CaseSimpleDataset does not support serialization!")},r.prototype.loadFromMetadata=function(e){throw new Error("CaseSimpleDataset does not support deserialization!")},r._i18n="search.category.case.dataset",r}(ci),mi=function(t){function r(n,i,o){return t.call(this,[e.CaseSearch.TASK_ID],[n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",i,n,o)||this}return Ie(r,t),r.prototype.extractAttributes=function(e){return e.transitions.map((function(e){return{id:e.stringId,name:e.title}}))},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.CASE_TASK},r._i18n="search.category.case.task",r}(gi),_i=function(t){function r(n,i){return t.call(this,[e.CaseSearch.TITLE],[n.getOperator(Ln),n.getOperator(vn),n.getOperator(Nn),n.getOperator(Fn)],r._i18n+".name",e.SearchInputType.TEXT,i,n)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log)},r.prototype.serializeClass=function(){return e.Categories.CASE_TITLE},r._i18n="search.category.case.title",r}(ci),bi=function(t){function r(n,i){return t.call(this,[e.CaseSearch.VISUAL_ID],[n.getOperator(Ln),n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",e.SearchInputType.TEXT,i,n)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log)},r.prototype.serializeClass=function(){return e.Categories.CASE_VISUAL_ID},r._i18n="search.category.case.visualId",r}(ci),Ti=function(t){function r(n,i){return t.call(this,[e.CaseSearch.STRING_ID],[n.getOperator(Ln),n.getOperator(vn),n.getOperator(Nn)],r._i18n+".name",e.SearchInputType.TEXT,i,n)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log)},r.prototype.serializeClass=function(){return e.Categories.CASE_STRING_ID},r._i18n="search.category.case.stringId",r}(ci),Si=function(t){function r(e,n,i){return t.call(this,["userId"],[e.getOperator(vn),e.getOperator(Nn),e.getOperator(wn)],r._i18n+".name",n,e,"TaskAssignee",i)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.TASK_ASSIGNEE},r._i18n="search.category.task.assignee",r}(si),Ii=function(t){function r(e,n,i){var o=t.call(this,["processId"],[e.getOperator(vn),e.getOperator(Nn)],r._i18n+".name",n,e)||this;return o._optionalDependencies=i,o}return Ie(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this),this._allowedNetsSub&&!this._allowedNetsSub.closed&&this._allowedNetsSub.unsubscribe(),this._destroyed=!0},r.prototype.createOptions=function(){var e=this;this._destroyed||(this._allowedNetsSub=this._optionalDependencies.allowedNetsService.allowedNets$.subscribe((function(t){e._optionsMap.clear(),t.forEach((function(t){e.addToMap(t.title,t.stringId)})),e.updateOptions()})))},r.prototype.generateQuery=function(t){var r=this;if(1!==this.selectedOperator.numberOfOperands)throw new Error("Only unary operators are currently supported by the TaskProcess implementation");var n=t[0].map((function(e){return r.selectedOperator.createQuery(r.elasticKeywords,[e])}));return an.combineQueries(n,e.BooleanOperator.OR)},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.TASK_PROCESS},r._i18n="search.category.task.process",r}(ni),Ei=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this;return s._processCategory=a.categoryFactory.get(Ii),s._processCategory.selectDefaultOperator(),s}return Ie(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this._processCategory.destroy()},t.prototype.getProcessCategory=function(){return this._processCategory},t.prototype.getPetriNetIdentifier=function(e){return e.stringId},t}(fi),wi=function(t){function r(e,n,i){return t.call(this,["roles"],[e.getOperator(vn),e.getOperator(Nn)],r._i18n+".name",n,e,i)||this}return Ie(r,t),r.prototype.extractAttributes=function(e){return e.roles.map((function(e){return{id:e.stringId,name:e.name}}))},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.TASK_ROLE},r._i18n="search.category.task.role",r}(Ei),Ci=function(t){function r(e,n,i){return t.call(this,["transitionId"],[e.getOperator(vn),e.getOperator(Nn)],r._i18n+".name",n,e,i)||this}return Ie(r,t),r.prototype.extractAttributes=function(e){return e.transitions.map((function(e){return{id:e.stringId,name:e.title}}))},Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log,this._optionalDependencies)},r.prototype.serializeClass=function(){return e.Categories.TASK_TASK},r._i18n="search.category.task.task",r}(Ei),ki=function(t){function r(n,i){return t.call(this,[e.CaseSearch.CREATION_DATE],[n.getOperator(In),n.getOperator(Bn),n.getOperator(Pn),n.getOperator(Vn),n.getOperator(On),n.getOperator($n),n.getOperator(Sn)],r._i18n+".name",e.SearchInputType.DATE_TIME,i,n)||this}return Ie(r,t),Object.defineProperty(r.prototype,"inputPlaceholder",{get:function(){return r._i18n+".placeholder"},enumerable:!1,configurable:!0}),r.prototype.duplicate=function(){return new r(this._operatorService,this._log)},r.prototype.serializeClass=function(){return e.Categories.CASE_CREATION_DATE_TIME},r.prototype.serializeOperandValue=function(e){return e.value.valueOf()},r.prototype.deserializeOperandValue=function(e){return ne.of(de(e))},r._i18n="search.category.case.creationDateTime",r}(ci),Oi=function(){function r(){this._classToStringTable={},this._stringToClassTable={},this.registerDefaultPairings()}return r.prototype.registerDefaultPairings=function(){var t=this;[{classReference:ui,serialized:e.Categories.CASE_AUTHOR},{classReference:li,serialized:e.Categories.CASE_CREATION_DATE},{classReference:ki,serialized:e.Categories.CASE_CREATION_DATE_TIME},{classReference:hi,serialized:e.Categories.CASE_DATASET},{classReference:di,serialized:e.Categories.CASE_PROCESS},{classReference:yi,serialized:e.Categories.CASE_ROLE},{classReference:vi,serialized:e.Categories.CASE_SIMPLE_DATASET},{classReference:mi,serialized:e.Categories.CASE_TASK},{classReference:_i,serialized:e.Categories.CASE_TITLE},{classReference:bi,serialized:e.Categories.CASE_VISUAL_ID},{classReference:Ti,serialized:e.Categories.CASE_STRING_ID},{classReference:Si,serialized:e.Categories.TASK_ASSIGNEE},{classReference:Ii,serialized:e.Categories.TASK_PROCESS},{classReference:wi,serialized:e.Categories.TASK_ROLE},{classReference:Ci,serialized:e.Categories.TASK_TASK}].forEach((function(e){return t.registerPair(e)}))},r.prototype.toClass=function(e){var t;return null!==(t=this._stringToClassTable[e])&&void 0!==t?t:this.toCustomClass(e)},r.prototype.serialize=function(e){return e instanceof ti?this._classToStringTable[e.constructor]:this._classToStringTable[e]},r.prototype.toCustomClass=function(e){},r.prototype.registerPair=function(e){var t=this._stringToClassTable[e.serialized];this._stringToClassTable[e.serialized]=e.classReference;var r=this._classToStringTable[e.classReference];return this._classToStringTable[e.classReference]=e.serialized,{classReference:t,serialized:r}},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[]},r}(),Fi=function(){function e(e){this._stringId=e.stringId,this._title=e.title,this._identifier=e.identifier,this._version=e.version,this._initials=e.initials,this._defaultCaseName=e.defaultCaseName,this._createdDate=e.createdDate,this._author=e.author,this._immediateData=e.immediateData,this._transitions=[],this._transactions=[],this._roles=[]}return Object.defineProperty(e.prototype,"stringId",{get:function(){return this._stringId},set:function(e){this._stringId=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"identifier",{get:function(){return this._identifier},set:function(e){this._identifier=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initials",{get:function(){return this._initials},set:function(e){this._initials=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultCaseName",{get:function(){return this._defaultCaseName},set:function(e){this._defaultCaseName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createdDate",{get:function(){return this._createdDate},set:function(e){this._createdDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"immediateData",{get:function(){return this._immediateData},set:function(e){this._immediateData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this._transitions},set:function(e){this._transitions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transactions",{get:function(){return this._transactions},set:function(e){this._transactions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roles",{get:function(){return this._roles},set:function(e){this._roles=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissions",{get:function(){return this._permissions},set:function(e){this._permissions=e},enumerable:!1,configurable:!0}),e}();function Ai(e){return e.error?ne.throwError(new Error(e.error)):ne.of(e)}var Ri,Pi=function(e){function r(t,r){return e.call(this,"petrinet",t,r)||this}return Ie(r,e),r.prototype.getAll=function(e){var t=this;return this._resourceProvider.get$("petrinet",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,"petriNetReferences")})))},r.prototype.getDataPetriNet=function(e){var t=this;return this._resourceProvider.post$("petrinet/data",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.getPetriNetTransitions=function(e){var t=this;return this._resourceProvider.get$("/petrinet/transitions",this.SERVER_URL,(new ie.HttpParams).set("ids",e)).pipe(le.map((function(e){return t.changeType(e,"transitionReferences")})))},r.prototype.getPetriNetTransactions=function(e,t){var r=this;return this._resourceProvider.get$("/petrinet/"+e+"/transactions",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,"transactions")})))},r.prototype.getPetriNetRoles=function(e,t){var r=this;return this._resourceProvider.get$("/petrinet/"+e+"/roles",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.getNetFile=function(e,t){var r=this;return this._resourceProvider.get$("petrinet/"+e+"/file",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.getOne=function(e,t,r){var n=this;return this._resourceProvider.get$("petrinet/"+e+"/"+t,this.SERVER_URL,r).pipe(le.map((function(e){return n.changeType(e,"petriNetReferences")})))},r.prototype.getOneById=function(e,t){var r=this;return this._resourceProvider.get$("petrinet/"+e,this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.importPetriNet=function(e,t){return this._resourceProvider.postWithEvent$("petrinet/import",this.SERVER_URL,e,t).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.UploadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return rt.processMessageResource(e);default:return}})),le.filter((function(e){return!!e})))},r.prototype.searchPetriNets=function(e,t){var r=this;return this._resourceProvider.post$("petrinet/search",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.getResourcePage(e,"petriNetReferences")})))},r.prototype.deletePetriNet=function(e){return this._resourceProvider.delete$("petrinet/"+e,this.SERVER_URL).pipe(le.switchMap(Ai))},r.ctorParameters=function(){return[{type:rt},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:rt},{type:Me}]},r}(nt),Ni=function(){function e(e,t){this._petriNetResource=e,this._log=t,this._nets={},this._netsSubject=new ne.Subject,this._netUpdate=new ne.Subject,this._requestCache=new Map,this._referenceRequestCache=new Map}return e.prototype.ngOnDestroy=function(){this._netsSubject.complete(),this._netUpdate.complete(),Array.from(this._requestCache.values()).forEach((function(e){return e.complete()})),Array.from(this._referenceRequestCache.values()).forEach((function(e){return e.complete()}))},e.prototype.getNets=function(e,t){var r=this;return void 0===t&&(t=!1),0===e.length?ne.of([]):ne.forkJoin(e.map((function(e){return r.getNet(e,t)}))).pipe(le.map((function(e){return e.filter((function(e){return!!e}))})),le.tap((function(e){0!==e.length&&(r._netsSubject.next(r._nets),e.forEach((function(e){return r._netUpdate.next(e)})))})))},e.prototype.getNet=function(e,t){var r=this;return void 0===t&&(t=!1),!t&&this._nets[e]?(this._log.debug("returning net '"+e+"' from cache"),ne.of(this._nets[e])):this._requestCache.has(e)?(this._log.debug("returning net '"+e+"' from pending requests"),this._requestCache.get(e).asObservable()):(this._log.debug("retrieving net '"+e+"' from backend"),this._requestCache.set(e,new ne.ReplaySubject(1)),this.loadNet(e).pipe(le.tap((function(t){var n=r._requestCache.get(e);n&&(n.next(t),n.complete(),r._requestCache.delete(e)),t&&r.publishUpdate(t)}))))},e.prototype.getNetReferences=function(e){var t=this;return 0===e.length?ne.of([]):ne.forkJoin(e.map((function(e){return t.getNetReference(e)}))).pipe(le.map((function(e){return e.filter((function(e){return!!e}))})))},e.prototype.getNetReference=function(e){var t=this;return this._referenceRequestCache.has(e)?this._referenceRequestCache.get(e).asObservable():(this._referenceRequestCache.set(e,new ne.ReplaySubject(1)),this.loadNetReference(e).pipe(le.switchMap((function(e){return null!==e?ne.forkJoin({net:ne.of(e),roles:t.loadRoles(e.stringId)}):ne.of({net:e,roles:void 0})})),le.map((function(e){return null===e.net?null:Ee(Ee({},e.net),{roles:e.roles.processRoles,permissions:e.roles.permissions})})),le.tap((function(r){var n=t._referenceRequestCache.get(e);n&&(n.next(r),n.complete(),t._referenceRequestCache.delete(e))}))))},e.prototype.removeNet=function(e){this._nets[e]&&(delete this._nets[e],this.publishUpdate())},e.prototype.updateNet=function(e){var t=this;this._nets[e.identifier]&&(e.transitions.length&&e.transactions.length&&e.roles.length?(this._nets[e.identifier]=e,this.publishUpdate(e)):ne.forkJoin({transitions:this.loadTransitions(e.stringId),transactions:this.loadTransactions(e.stringId),roles:this.loadRoles(e.stringId)}).subscribe((function(r){e.transitions=r.transitions,e.transactions=r.transactions,e.roles=r.roles.processRoles,e.permissions=r.roles.permissions,t._nets[e.identifier]=e,t.publishUpdate(e)}),(function(r){t._log.error("Failed to load part of Petri net "+e.title,r)})))},Object.defineProperty(e.prototype,"nets$",{get:function(){return this._netsSubject.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"netUpdate$",{get:function(){return this._netUpdate.asObservable()},enumerable:!1,configurable:!0}),e.prototype.areNetsLoaded=function(e){var t=this;return e.every((function(e){return t.isNetLoaded(e)}))},e.prototype.isNetLoaded=function(e){return!!this._nets[e]},e.prototype.loadNet=function(e){var t=this,r=new ne.ReplaySubject(1);return this.loadNetReference(e).subscribe((function(n){if(null===n)return t._log.debug("loadNetReference for net '"+e+"' returned null"),r.next(null),void r.complete();t._log.debug("loading net '"+e+"' transitions, transactions and roles"),ne.forkJoin({transitions:t.loadTransitions(n.stringId),transactions:t.loadTransactions(n.stringId),roles:t.loadRoles(n.stringId)}).subscribe((function(e){t._nets[n.identifier]=new Fi(n),t._nets[n.identifier].transitions=e.transitions,t._nets[n.identifier].transactions=e.transactions,t._nets[n.identifier].roles=e.roles.processRoles,t._nets[n.identifier].permissions=e.roles.permissions,r.next(t._nets[n.identifier]),r.complete()}),(function(e){t._log.error("Failed to load part of Petri net "+n.title,e),r.next(t._nets[n.identifier]),r.complete()}))})),r.asObservable()},e.prototype.loadNetReference=function(e){var t=this,r=new ne.ReplaySubject(1);return this._petriNetResource.getOne(e,"^").subscribe((function(e){r.next(e.stringId?e:null),r.complete()}),(function(e){t._log.error("Failed to load Petri net",e),r.next(null),r.complete()})),r.asObservable()},e.prototype.loadTransitions=function(e){var t=this;return this._petriNetResource.getPetriNetTransitions(e).pipe(le.map((function(e){return e instanceof Array?e:[]})),le.tap((function(r){0===r.length&&t._log.info("References for transitions of net "+e+" were not found!")})),le.catchError((function(r){throw t._log.error("References for transitions of net "+e+" failed to load!",r),r})))},e.prototype.loadTransactions=function(e){var t=this;return this._petriNetResource.getPetriNetTransactions(e).pipe(le.map((function(e){return e instanceof Array?e:[]})),le.tap((function(r){0===r.length&&t._log.info("References for transactions of net "+e+" were not found!")})),le.catchError((function(r){throw t._log.error("References for transactions of net "+e+" failed to load!",r),r})))},e.prototype.loadRoles=function(e){var t=this;return this._petriNetResource.getPetriNetRoles(e).pipe(le.tap((function(r){0===r.processRoles.length&&t._log.info("Roles reference of net "+e+" were not found!")})),le.catchError((function(r){throw t._log.error("Roles reference of net "+e+" failed to load!",r),r})))},e.prototype.publishUpdate=function(e){this._netsSubject.next(this._nets),e&&this._netUpdate.next(e)},e.ctorParameters=function(){return[{type:Pi},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Pi),t["ɵɵinject"]($e))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Pi},{type:$e}]},e}(),Di=function(){function e(e,t){var r=this;this._processService=t,this._allowedNets$=new ne.ReplaySubject(1),this._allowedNetsIdentifiers$=new ne.ReplaySubject(1),this.subAllowedNets=e.pipe(le.tap((function(e){r._allowedNetsIdentifiers$.next(e),r._allowedNetsIdentifiers=ke(e)})),le.map((function(e){return r._processService.getNets(e)})),le.switchMap((function(e){return e}))).subscribe((function(e){r._allowedNets$.next(e),r._allowedNets=ke(e)}))}return Object.defineProperty(e.prototype,"allowedNets$",{get:function(){return this._allowedNets$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowedNets",{get:function(){return this._allowedNets},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowedNetsIdentifiers$",{get:function(){return this._allowedNetsIdentifiers$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowedNetsIdentifiers",{get:function(){return this._allowedNetsIdentifiers},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._allowedNets$.complete(),this._allowedNetsIdentifiers$.complete(),this.subAllowedNets.unsubscribe()},e.ctorParameters=function(){return[{type:ne.Observable},{type:Ni}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:ne.Observable},{type:Ni}]},e}(),Li=function(){function e(e,t,r,n,i,o){this._operators=e,this._log=t,this._searchIndexResolverService=r,this._categoryResolver=n,this._allowedNetsService=i,this._userResourceService=o,this._optionalDependencies={categoryFactory:this,searchIndexResolver:this._searchIndexResolverService,allowedNetsService:this._allowedNetsService,userResourceService:this._userResourceService}}return e.prototype.get=function(e){return new e(this._operators,this._log,this._optionalDependencies)},e.prototype.getWithDefaultOperator=function(e){var t=this.get(e);return t.selectDefaultOperator(),t},e.prototype.getByNameWithDefaultOperator=function(e){return this.getWithDefaultOperator(this._categoryResolver.toClass(e))},e.prototype.getFromMetadata=function(e){var t=new ne.ReplaySubject(1),r=this.get(this._categoryResolver.toClass(e.category));return r.loadFromMetadata(e).subscribe((function(){t.next(r),t.complete()})),t.asObservable()},e.ctorParameters=function(){return[{type:Hn},{type:$e},{type:Gn},{type:Oi},{type:Di},{type:it,decorators:[{type:t.Optional}]}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:Hn},{type:$e},{type:Gn},{type:Oi},{type:Di},{type:it,decorators:[{type:t.Optional}]}]},e}(),ji=function(){function r(t,r,n){var i=this;if(this._log=t,this._categoryFactory=r,n.filter instanceof tn)this._baseFilter=n.filter.clone();else{if(!(n.filter instanceof ne.Observable))throw new Error("Unsupported BaseFilter input! You must provide the NAE_BASE_FILTER injection token with proper values!");this._baseFilter=new on("",n.filterType,{process:{identifier:"__EMPTY__"}})}this._predicateQueryChanged$=new ne.Subject,this._rootPredicate=new fn(e.BooleanOperator.AND,this._predicateQueryChanged$,void 0,!0),this._activeFilter=new ne.BehaviorSubject(this._baseFilter),this._predicateRemoved$=new ne.Subject,this._loadingFromMetadata$=new Ye,n.filter instanceof ne.Observable&&(this.subFilter=n.filter.subscribe((function(e){i._baseFilter=e.clone(),i.updateActiveFilter()}))),this.predicateQueryChanged$.subscribe((function(){i.updateActiveFilter()}))}return r.prototype.ngOnDestroy=function(){this._predicateRemoved$.complete(),this._activeFilter.complete(),this._predicateQueryChanged$.complete(),this.subFilter&&this.subFilter.unsubscribe(),this._loadingFromMetadata$.complete(),this._rootPredicate.destroy()},Object.defineProperty(r.prototype,"activeFilter",{get:function(){return this._activeFilter.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"activeFilter$",{get:function(){return this._activeFilter.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"additionalFiltersApplied",{get:function(){return!this._rootPredicate.query.isEmpty||!!this._fullTextFilter},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasVisiblePredicates",{get:function(){var e,t;try{for(var r=we(this._rootPredicate.getPredicateMap().values()),n=r.next();!n.done;n=r.next()){if(n.value.isVisible)return!0}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"baseFilter",{get:function(){return this._baseFilter.clone()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"predicateRemoved$",{get:function(){return this._predicateRemoved$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rootPredicate",{get:function(){return this._rootPredicate},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filterType",{get:function(){return this.baseFilter.type},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loadingFromMetadata",{get:function(){return this._loadingFromMetadata$.value},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loadingFromMetadata$",{get:function(){return this._loadingFromMetadata$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"predicateQueryChanged$",{get:function(){var e=this;return this._predicateQueryChanged$.asObservable().pipe(le.map((function(){return e._rootPredicate.query})),le.distinctUntilChanged((function(e,t){return e&&e.equals(t)})))},enumerable:!1,configurable:!0}),r.prototype.addPredicate=function(e){return this._rootPredicate.addPredicate(e,!1)},r.prototype.addGeneratedLeafPredicate=function(t){var r=this._rootPredicate.addNewClausePredicate(e.BooleanOperator.OR,!1);return this._rootPredicate.getPredicateMap().get(r).getWrappedPredicate().addNewPredicateFromGenerator(t),r},r.prototype.removePredicate=function(e,t){void 0===t&&(t=!0),this._rootPredicate.removePredicate(e)&&this._predicateRemoved$.next({index:e,clearInput:t})},r.prototype.clearPredicates=function(e){var t,r;if(void 0===e&&(e=!1),this._rootPredicate.getPredicateMap().size>0){try{for(var n=we(this._rootPredicate.getPredicateMap().entries()),i=n.next();!i.done;i=n.next()){var o=Ce(i.value,2),a=o[0],s=o[1];(e||s.isVisible)&&this.removePredicate(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this.updateActiveFilter()}},r.prototype.setFullTextFilter=function(e){this._fullTextFilter=new on("",this._baseFilter.type,{fullText:e}),this.updateActiveFilter()},r.prototype.clearFullTextFilter=function(){var e=void 0!==this._fullTextFilter;this._fullTextFilter=void 0,e&&this.updateActiveFilter()},r.prototype.show=function(e){this._rootPredicate.showPredicates(e)},r.prototype.updateActiveFilter=function(){var t;this._rootPredicate.query.isEmpty||(t=new on("",this._baseFilter.type,{query:this._rootPredicate.query.value})),this._fullTextFilter&&(t=t?t.merge(this._fullTextFilter,e.MergeOperator.AND):this._fullTextFilter),t?this._activeFilter.next(this._baseFilter.merge(t,e.MergeOperator.AND)):this._activeFilter.next(this._baseFilter.clone())},r.prototype.createPredicateMetadata=function(){return this._rootPredicate.createGeneratorMetadata()},r.prototype.loadFromMetadata=function(t){var r,n,i,o,a=this;if(null!==this._categoryFactory){if(t.filterType!==this.filterType)throw Error("The filter type of the provided metadata ("+t.filterType+") does not match the filter type of the search service ("+this.filterType+")!");this.clearPredicates(!0),this._loadingFromMetadata$.on();var s=[];try{for(var u=we(t.predicateMetadata),c=u.next();!c.done;c=u.next()){var l=c.value,p=this._rootPredicate.addNewClausePredicate(e.BooleanOperator.OR),d=this._rootPredicate.getPredicateMap().get(p).getWrappedPredicate(),h=function(e){var t=d;s.push(f._categoryFactory.getFromMetadata(e).pipe(le.tap((function(e){t.addNewPredicateFromGenerator(e)}))))},f=this;try{for(var g=(i=void 0,we(l)),y=g.next();!y.done;y=g.next()){h(y.value)}}catch(e){i={error:e}}finally{try{y&&!y.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}ne.forkJoin(s).subscribe((function(){a._loadingFromMetadata$.off(),a.updateActiveFilter()}))}else this._log.error("A CategoryFactory instance must be provided for the SearchService if you want to reconstruct a predicate filter from saved metadata")},r.prototype.createFilterTextSegments=function(){return this._rootPredicate.createFilterTextSegments()},r.ctorParameters=function(){return[{type:$e},{type:Li,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[gn]}]}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:$e},{type:Li,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[gn]}]}]},r}(),Mi=function(){function e(e,t){var r=this;this._filterField=e,this._fieldSearchService=t,this.filterLoaded=!1,this._fieldSearchService.loadFromMetadata(this._filterField.filterMetadata),this._searchServiceSub=this._fieldSearchService.loadingFromMetadata$.pipe(le.filter((function(e){return!e})),le.take(1)).subscribe((function(){r.filterLoaded=!0}))}return Object.defineProperty(e.prototype,"editable",{get:function(){return!!this._filterField.behavior.editable},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._searchServiceSub&&!this._searchServiceSub.closed&&this._searchServiceSub.unsubscribe()},e.ctorParameters=function(){return[{type:_r,decorators:[{type:t.Inject,args:[Zr]}]},{type:ji}]},e}(),xi=function(e){function r(t){return e.call(this,t)||this}return Ie(r,e),r.prototype.getType=function(){var e;return(null===(e=this.dataField.component)||void 0===e?void 0:e.name)?this.dataField.component.name:""},r.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ct]}]}]},r.propDecorators={dataField:[{type:t.Input}]},r}(kt),Vi=function(){function e(e){this._translateService=e}return e.prototype.ngOnInit=function(){},e.prototype.getTranslation=function(){var e=this._translateService.currentLang.split("-")[0];return e in this.textI18nField.value.translations?this.textI18nField.value.translations[e]:this.textI18nField.value.defaultValue},e.prototype.isPlainText=function(){if(this.textPropertyEnabled("plainText"))return"true"===this.textI18nField.component.properties.plainText},e.prototype.getTextColor=function(){if(this.textPropertyEnabled("textColor"))return this.textI18nField.component.properties.textColor},e.prototype.getTextFontSize=function(){if(this.textPropertyEnabled("fontSize"))return this.textI18nField.component.properties.fontSize+"px"},e.prototype.textPropertyEnabled=function(e){var t,r;return!!(null===(r=null===(t=this.textI18nField)||void 0===t?void 0:t.component)||void 0===r?void 0:r.properties)&&e in this.textI18nField.component.properties},e.propDecorators={textI18nField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),Ui=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getDividerColor=function(){if(this.dividerPropertyEnabled("dividerColor"))return this.dividerI18nField.component.properties.dividerColor},e.prototype.getDividerFontSize=function(){if(this.dividerPropertyEnabled("fontSize"))return this.dividerI18nField.component.properties.fontSize+"px"},e.prototype.dividerPropertyEnabled=function(e){var t,r;return!!(null===(r=null===(t=this.dividerI18nField)||void 0===t?void 0:t.component)||void 0===r?void 0:r.properties)&&e in this.dividerI18nField.component.properties},e.propDecorators={dividerI18nField:[{type:t.Input}],formControlRef:[{type:t.Input}],showLargeLayout:[{type:t.Input}]},e}(),$i=new t.InjectionToken("BooleanValueLabelEnabledToken");(Ri=e.MaterialAppearance||(e.MaterialAppearance={})).LEGACY="legacy",Ri.STANDARD="standard",Ri.FILL="fill",Ri.OUTLINE="outline";var Bi=function(){function e(e,t,r,n){this._router=e,this._log=t,this._config=r,this._route=n}return Object.defineProperty(e.prototype,"lastUrl",{get:function(){return this._lastIntendedRoute.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intendedRoute",{set:function(e){this._lastIntendedRoute=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"queryParams",{get:function(){return this.lastQueryParams},enumerable:!1,configurable:!0}),e.prototype.redirect=function(e){var t=this;e?this._router.navigateByUrl(e).then((function(r){t._log.info("Router navigate to path "+e+" : "+r)})):this._lastIntendedRoute&&this._lastIntendedRoute._routerState&&this._lastIntendedRoute._routerState.url&&this._router.navigateByUrl(this._lastIntendedRoute._routerState.url).then((function(e){t._log.info("Router navigate to last path : "+e)}))},e.prototype.redirectFromUrl=function(){this.lastQueryParams=this._route.snapshot.queryParams,this._router.navigate([this.parseRedirectPath(this._router.url)],{queryParams:this.lastQueryParams})},e.prototype.resolveLoginPath=function(){var t=this._config.get();if(t.services&&t.services.auth&&t.services.auth.loginRedirect)return t.services.auth.loginRedirect;var r=this.resolveLoginPathFromViewConfiguration(this._config.get().views,e.LOGIN_COMPONENT);if(null!==r)return r;throw new Error("No login view found in application. Authentication guard can't redirect. Add a view with layout.name=\"login\" to your application, or set the desired redirect path in 'services.auth.loginRedirect'")},e.prototype.resolveLoginPathFromViewConfiguration=function(e,t){var r,n;if(!e||0===Object.keys(e).length)return null;var i=Object.keys(e).find((function(r){var n=e[r].layout;return!!n&&n.name===t}));if(i)return e[i].routing&&e[i].routing.path?e[i].routing.path:null;try{for(var o=we(Object.keys(e)),a=o.next();!a.done;a=o.next()){var s=a.value,u=this.resolveLoginPathFromViewConfiguration(e[s].children,t);if(u&&e[s].routing&&e[s].routing.path)return e[s].routing.path+"/"+u}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.parseRedirectPath=function(e){return(e.includes("?")?e.slice(0,e.indexOf("?")):e).replace("/redirect","")},e.LOGIN_COMPONENT="login",e.ctorParameters=function(){return[{type:he.Router},{type:$e},{type:Me},{type:he.ActivatedRoute}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](he.Router),t["ɵɵinject"]($e),t["ɵɵinject"](Me),t["ɵɵinject"](he.ActivatedRoute))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:he.Router},{type:$e},{type:Me},{type:he.ActivatedRoute}]},e}(),zi=function(){function e(e,t,r){this._session=e,this._redirect=t,this._anonymousService=r}return e.prototype.intercept=function(e,t){var r=this;return this._session?(this._session&&this._session.sessionToken&&(e=e.clone({headers:e.headers.set(this._session.sessionHeader,this._session.sessionToken)})),t.handle(e).pipe(le.tap((function(e){e instanceof ie.HttpResponse&&e.headers.has(r._session.sessionHeader)&&!e.headers.has(r._anonymousService.jwtHeader)&&r._session.setVerifiedToken(e.headers.get(r._session.sessionHeader))})),le.catchError((function(e){return e instanceof ie.HttpErrorResponse&&401===e.status&&(console.debug("Authentication token is invalid. Clearing session token"),r._session.clear(),r._redirect.redirect(r._redirect.resolveLoginPath())),ne.throwError(e)})))):t.handle(e)},e.ctorParameters=function(){return[{type:Xe},{type:Bi},{type:ot}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:Xe},{type:Bi},{type:ot}]},e}(),Hi=function(e){function r(){return e.call(this)||this}return Ie(r,e),r.prototype.login=function(e){return ne.of(null)},r.prototype.logout=function(){return ne.of({})},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[]},r}(We),Gi=function(e){function r(t,r){var n=e.call(this)||this;return n._http=t,n._config=r,n}return Ie(r,e),r.prototype.login=function(e){void 0===e&&(e={username:"",password:""});var t=this._config.get().providers.auth.address+this._config.get().providers.auth.endpoints.login;return t?e.username&&e.password?(e.username=e.username.trim(),e.password=e.password.trim(),""===e.username||""===e.password?ne.throwError(new Error("User's credentials are empty!")):this._http.get(t,{headers:(new ie.HttpHeaders).set("Authorization","Basic "+btoa(e.username+":"+e.password))})):ne.throwError(new Error("User's credentials are not defined!")):ne.throwError(new Error("Login URL is not defined in the config [nae.providers.auth.endpoints.login]"))},r.prototype.logout=function(){var e=this._config.get().providers.auth.address+this._config.get().providers.auth.endpoints.logout;return e?this._http.post(e,{}):ne.throwError(new Error("Logout URL is not defined in the config [nae.providers.auth.endpoints.logout]"))},r.ctorParameters=function(){return[{type:ie.HttpClient},{type:Me}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:ie.HttpClient},{type:Me}]},r}(We);function qi(e,t){var r=e.get().providers.auth;return r&&r.authentication&&"basic"===r.authentication.toLowerCase()?new Gi(t,e):new Hi}var Wi,Qi,Ki=function(){function e(e){this._anonymousService=e}return e.prototype.intercept=function(e,t){var r=this,n=this._anonymousService.getToken();return this._anonymousService||t.handle(e),n&&(e=e.clone({headers:e.headers.set(this._anonymousService.jwtHeader,n)})),t.handle(e).pipe(le.tap((function(e){e instanceof ie.HttpResponse&&e.headers.has(r._anonymousService.jwtHeader)&&r._anonymousService.setToken(e.headers.get(r._anonymousService.jwtHeader))})),le.catchError((function(e){return e instanceof ie.HttpErrorResponse&&401===e.status&&(console.debug("Authentication token is invalid. Clearing session token"),r._anonymousService.removeToken()),ne.throwError(e)})))},e.ctorParameters=function(){return[{type:ot}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:ot}]},e}(),Yi=qi,Xi=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[r.CommonModule,ie.HttpClientModule,N.MatProgressSpinnerModule,fe.OverlayModule],providers:[{provide:ie.HTTP_INTERCEPTORS,useClass:zi,multi:!0},{provide:ie.HTTP_INTERCEPTORS,useClass:Ki,multi:!0},{provide:We,useFactory:Yi,deps:[Me,ie.HttpClient]}],entryComponents:[N.MatSpinner]}]}],e}(),Zi=function(){function e(e,t,r){this._session=e,this._redirectService=t,this._router=r,this._loginUrl=this._redirectService.resolveLoginPath()}return e.prototype.canActivate=function(e,t){return this._redirectService.intendedRoute=e,!(!this._session.sessionToken||!this._session.verified)||this._router.parseUrl(this._loginUrl)},e.ctorParameters=function(){return[{type:Xe},{type:Bi},{type:he.Router}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Xe),t["ɵɵinject"](Bi),t["ɵɵinject"](he.Router))},token:e,providedIn:Xi}),e.decorators=[{type:t.Injectable,args:[{providedIn:Xi}]}],e.ctorParameters=function(){return[{type:Xe},{type:Bi},{type:he.Router}]},e}(),Ji=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[r.CommonModule]}]}],e}(),eo=function(){function e(e,t,r){this._config=e,this._http=t,this._log=r;var n=e.get().providers.auth.address;if(!n)throw new Error("Authentication provider address is not set!");this._signUpUrl=this.resolveEndpoint("signup",n),this._verifyUrl=this.resolveEndpoint("verify",n),this._inviteUrl=this.resolveEndpoint("invite",n),this._resetUrl=this.resolveEndpoint("reset",n),this._recoverUrl=this.resolveEndpoint("recover",n)}return e.prototype.signup=function(e){if(!this._signUpUrl)throw new Error("SingUp URL is not set in authentication provider endpoints!");return e.password=btoa(e.password),this._http.post(this._signUpUrl,e).pipe(le.switchMap(Ai))},e.prototype.invite=function(e){if(!this._inviteUrl)throw new Error("Invite URL is not set in authentication provider endpoints!");return e.groups||(e.groups=[]),e.processRoles||(e.processRoles=[]),this._http.post(this._inviteUrl,e).pipe(le.switchMap(Ai))},e.prototype.resetPassword=function(e){if(!this._resetUrl)throw new Error("Reset URL is not set in authentication provider endpoints!");return this._http.post(this._resetUrl,e).pipe(le.switchMap(Ai))},e.prototype.recoverPassword=function(e,t){if(!this._recoverUrl)throw new Error("Recover URL is not set in authentication provider endpoints!");var r={token:e,password:btoa(t),email:"",name:"",surname:""};return this._http.post(this._recoverUrl,r).pipe(le.switchMap(Ai))},e.prototype.verify=function(e){if(!this._verifyUrl)throw new Error("Verify URL is not set in authentication provider endpoints!");return this._http.post(this._verifyUrl,e).pipe(le.switchMap(Ai))},e.prototype.resolveEndpoint=function(e,t){var r=this._config.get();if(r&&r.providers&&r.providers.auth&&r.providers.auth.endpoints&&r.providers.auth.endpoints[e])return t+r.providers.auth.endpoints[e]},e.ctorParameters=function(){return[{type:Me},{type:ie.HttpClient},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Me),t["ɵɵinject"](ie.HttpClient),t["ɵɵinject"]($e))},token:e,providedIn:Ji}),e.decorators=[{type:t.Injectable,args:[{providedIn:Ji}]}],e.ctorParameters=function(){return[{type:Me},{type:ie.HttpClient},{type:$e}]},e}(),to=function(){function e(e,t,r,n,i){this._session=e,this._spinnerOverlay=t,this.router=r,this.redirectService=n,this.userService=i}return e.prototype.ngOnInit=function(){var e=this;this._session.verified?this.redirectService.redirect():!this._session.verified&&this._session.isVerifying?(this._spinnerOverlay.spin$.next(!0),this.subSession=this._session.verifying.subscribe((function(t){e.userService.user$.subscribe((function(r){r.id&&r.id.length>0&&e.redirect(!t)}))}))):this._session.verified||this._session.isInitialized||(this._spinnerOverlay.spin$.next(!0),this.subInitializing=this._session.initializing.subscribe((function(t){e.redirect(t)})))},e.prototype.redirect=function(e){e&&(this._spinnerOverlay.spin$.next(!1),this._session.verified&&this.redirectService.redirect())},e.prototype.ngOnDestroy=function(){this.subSession&&this.subSession.unsubscribe(),this.subInitializing&&this.subInitializing.unsubscribe(),this.user&&this.user.unsubscribe()},e}(),ro=new t.InjectionToken("NaeViewId"),no=new t.InjectionToken("NaeViewIdSegment"),io=function(){function e(e){this._userService=e}return e.prototype.compareUsers=function(e){return e.email===this._userService.user.email||e.email.includes("anonymous")&&this._userService.user.email.includes("anonymous")},e.ctorParameters=function(){return[{type:at}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](at))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:at}]},e}(),oo=function(){function e(e,t,r,n){var i=this;this._resources=e,this._log=t,this._snackbar=r,this._translate=n,this._loading$=new Ye,this._updateProgress$=new Ye,this._usersReload$=new ne.Subject,this._endOfData=!1,this._nextPage$=new ne.BehaviorSubject(null),this._pagination={size:20,totalElements:void 0,totalPages:void 0,number:-1},this._clear=!1,this._searchQuery="",this.rolesQuery=new Array,this.negativeRolesQuery=new Array;var o=this._nextPage$.pipe(le.mergeMap((function(e){return i.loadPage(e)})),le.tap((function(){i._clear||i._usersReload$.next()})),le.scan((function(e,t){var r=i._clear?{}:Ee(Ee({},e),t);return i._clear=!1,r}),{}));this._users$=o.pipe(le.map((function(e){return Object.values(e)})))}return e.prototype.ngOnDestroy=function(){this._loading$.complete(),this._updateProgress$.complete(),this._usersReload$.complete(),this._nextPage$.complete()},Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading$.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"usersReload$",{get:function(){return this._usersReload$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"users$",{get:function(){return this._users$},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updating$",{get:function(){return this._updateProgress$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalUsers",{get:function(){return this._pagination.totalElements?this._pagination.totalElements:0},enumerable:!1,configurable:!0}),e.prototype.loadPage=function(e){var t=this;if(null==e||this._clear)return ne.of({});var r=new ie.HttpParams;return r=this.addPageParams(r,e),this._loading$.on(),this._resources.search({fulltext:this._searchQuery,roles:this.rolesQuery,negativeRoles:this.negativeRolesQuery},r).pipe(le.catchError((function(e){return t._log.error("Loading users has failed on page "+t._pagination.number,e),ne.of({content:[],pagination:Ee(Ee({},t._pagination),{number:t._pagination.number-1})})})),le.tap((function(e){return t._endOfData=!Array.isArray(e.content)||Array.isArray(e.content)&&0===e.content.length||e.pagination.number===e.pagination.totalPages})),le.map((function(e){return Array.isArray(e.content)?e:Ee(Ee({},e),{content:[]})})),le.map((function(e){return t._pagination=e.pagination,e.content.reduce((function(e,t){var r,n=t;return n.roles=new Set(t.processRoles.map((function(e){return e.stringId}))),n.processRoles=void 0,n.selected=!1,n.toggle=function(){this.selected=!this.selected},Ee(Ee({},e),((r={})[t.id]=n,r))}),{})})),le.tap((function(e){return t._loading$.off()})))},e.prototype.nextPage=function(e,t){this.loading||this._endOfData||e===t&&this._nextPage$.next(this._pagination.number+1)},e.prototype.reload=function(e){var t=this;void 0===e&&(e=""),this._users$&&this._pagination&&(this._searchQuery=e,this._clear=!0,this._pagination.number=-1,this._endOfData=!1,this.nextPage(0,0),ne.timer(100).subscribe((function(e){t._pagination.number=-1,t.nextPage(0,0)})))},e.prototype.updateRoles=function(e,t){var r=this;return void 0===t&&(t=[]),e&&0!==e.length?(this._updateProgress$.on(),ne.forkJoin(e.map((function(e){return r._resources.assignRoles(e.id+"",t)}))).pipe(le.tap((function(n){n.forEach((function(n,i){n.error?(r._log.error(n.error,n),r._snackbar.openErrorSnackBar(n.error)):(r._log.info(n.success),e[i].roles=new Set(t),r._snackbar.openSuccessSnackBar(r._translate.instant("tasks.snackbar.rolesSuccessAssign")))})),r._updateProgress$.off()})))):ne.of([])},e.prototype.addPageParams=function(e,t){return e=e.set("size",this._pagination.size+""),t=null!==t?t:this._pagination.number,e=e.set("page",t+"")},e.ctorParameters=function(){return[{type:it},{type:$e},{type:ft},{type:ue.TranslateService}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:it},{type:$e},{type:ft},{type:ue.TranslateService}]},e}(),ao=function(){function e(t,r){if(this._viewId="",null!==t){var n=t.get(e,null);null!==n&&(this._viewId=n.viewId+e.VIEW_ID_SEGMENT_SEPARATOR)}this._viewId+=r}return Object.defineProperty(e.prototype,"viewId",{get:function(){return this._viewId},enumerable:!1,configurable:!0}),e.VIEW_ID_SEGMENT_SEPARATOR="-",e.ctorParameters=function(){return[{type:t.Injector,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:String,decorators:[{type:t.Inject,args:[no]}]}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:t.Injector,decorators:[{type:t.Optional},{type:t.SkipSelf}]},{type:String,decorators:[{type:t.Inject,args:[no]}]}]},e}(),so=function(){function e(){}return e.prototype.ngOnInit=function(){var e=this;this.contentWidth&&this.contentWidth.subscribe((function(t){return e.width=t}))},e.propDecorators={contentWidth:[{type:t.Input}]},e}(),uo=function(e){function r(t){var r=e.call(this)||this;return r._injector=t,r.mode="horizontal",r.tooltipPosition="below",r.iconStyle="large",r}return Ie(r,e),r.prototype.ngOnInit=function(){var t=this;if(e.prototype.ngOnInit.call(this),!this.user){var r=this._injector.get(at);r&&(this.user=r.user,this.subUser=r.user$.subscribe((function(e){return t.user=e})))}},r.prototype.ngOnDestroy=function(){this.subUser&&this.subUser.unsubscribe()},r.prototype.userBannerExists=function(){return this.user&&this.user.banner},Object.defineProperty(r.prototype,"userBanner",{get:function(){return this.user&&this.user.banner?this.user.banner:"assets/default-user-background.jpg"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"userAvatar",{get:function(){return this.user&&this.user.avatar?this.user.avatar:"assets/default-user-avatar.png"},enumerable:!1,configurable:!0}),r.propDecorators={user:[{type:t.Input}],mode:[{type:t.Input}],tooltipPosition:[{type:t.Input}],iconStyle:[{type:t.Input}],link:[{type:t.Input}]},r}(so),co=function(){function e(e){this._userService=e}return e.prototype.ngOnInit=function(){var e=this;this.user||(this.user=this._userService.user,this.subUser=this._userService.user$.subscribe((function(t){e.user=t})))},e.prototype.ngOnDestroy=function(){this.subUser&&this.subUser.unsubscribe()},Object.defineProperty(e.prototype,"userBanner",{get:function(){return this.user&&this.user.banner?this.user.banner:"assets/default-user-background.jpg"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userAvatar",{get:function(){return this.user&&this.user.avatar?this.user.avatar:"assets/default-user-avatar.png"},enumerable:!1,configurable:!0}),e.propDecorators={user:[{type:t.Input}]},e}(),lo=function(){function e(e){this._caseListFontColorService=e,this.expansionDisabled=!1,this.preventExpand=!1,this.stopLoading=new t.EventEmitter,this.getExpansionPanelRef=new t.EventEmitter}return e.prototype.ngOnDestroy=function(){this.stopLoading.complete(),this.getExpansionPanelRef.complete()},e.prototype.ngAfterViewInit=function(){this.getExpansionPanelRef.emit(this.matExpansionPanel)},e.prototype.emitExpand=function(){this.stopLoading.emit()},e.prototype.emitCollapse=function(){this.stopLoading.emit()},e.prototype.expandPanel=function(){this.preventExpand&&this.matExpansionPanel.close()},e.prototype.getCaseFontColor=function(){return this._caseListFontColorService.computeCaseFontColor(this.caseColor)},e.propDecorators={expansionDisabled:[{type:t.Input}],preventExpand:[{type:t.Input}],panelHeader:[{type:t.Input}],panelContent:[{type:t.Input}],first:[{type:t.Input}],last:[{type:t.Input}],caseColor:[{type:t.Input}],stopLoading:[{type:t.Output}],getExpansionPanelRef:[{type:t.Output}],matExpansionPanel:[{type:t.ViewChild,args:["matExpansionPanel"]}]},e}();function po(e){return de(new Date(e[0],e[1]-1,e[2],void 0!==e[3]?e[3]:12,void 0!==e[4]?e[4]:0))}(Wi=e.CaseMetaField||(e.CaseMetaField={})).MONGO_ID="mongoId",Wi.VISUAL_ID="visualId",Wi.TITLE="title",Wi.AUTHOR="author",Wi.CREATION_DATE="creationDate",(Qi=e.HeaderColumnType||(e.HeaderColumnType={})).META="meta",Qi.IMMEDIATE="immediate";var ho,fo=function(){function t(t,r,n,i,o,a){if(void 0===o&&(o=!0),this.type=t,this.fieldIdentifier=r,this.title=n,this.fieldType=i,this.initial=o,this.petriNetIdentifier=a,this.type===e.HeaderColumnType.IMMEDIATE&&!this.petriNetIdentifier)throw new Error("HeaderColumn instances of type IMMEDIATE cannot be created without a petriNetIdentifier!")}return Object.defineProperty(t.prototype,"uniqueId",{get:function(){return(this.type===e.HeaderColumnType.IMMEDIATE?this.petriNetIdentifier:"meta")+"-"+this.fieldIdentifier},enumerable:!1,configurable:!0}),t}(),go=function(){function t(){this.featuredFieldsValues=[]}return t.prototype.ngOnInit=function(){var e=this;this.sub=this.selectedHeaders$.subscribe((function(t){e._lastSelectedHeaders=t,e.resolveFeaturedFieldsValues()}))},t.prototype.ngOnDestroy=function(){this.sub.unsubscribe()},t.prototype.preventSelectionClick=function(e){"Range"===e.view.getSelection().type&&e.stopPropagation()},t.prototype.resolveFeaturedFieldsValues=function(){if(this._lastSelectedHeaders){this.featuredFieldsValues.splice(0,this.featuredFieldsValues.length),this.firstFeaturedValue=this.getFeaturedValue(this._lastSelectedHeaders[0]).value;for(var e=1;e<this._lastSelectedHeaders.length;e++)this.featuredFieldsValues.push(this.getFeaturedValue(this._lastSelectedHeaders[e]))}},t.prototype.getFeaturedValue=function(t){return t?t.type===e.HeaderColumnType.META?this.getFeaturedMetaValue(t):t.type===e.HeaderColumnType.IMMEDIATE?this.getFeaturedImmediateValue(t):{value:"",icon:"",type:""}:{value:"",icon:"",type:""}},t}(),yo=function(e){function t(t,r){var n=e.call(this)||this;return n._translate=t,n._currencyPipe=r,n}return Ie(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.parseImmediateValue=function(e){var t,r,n;if(!(e&&void 0!==e.value||e&&"button"===e.type))return{value:"",icon:"",type:""};switch(e.type){case"date":return{value:po(e.value).format("DD.MM.YYYY"),icon:"event",type:e.type};case"dateTime":return{value:po(e.value).format("DD.MM.YYYY HH:mm"),icon:"event",type:e.type};case"enumeration":return{value:e.value.defaultValue,icon:void 0,type:e.type};case"multichoice":return{value:e.value.map((function(e){return e.defaultValue})).join(", "),icon:void 0,type:e.type};case"file":return{value:null===(t=e.value)||void 0===t?void 0:t.name,icon:"insert_drive_file",type:e.type};case"fileList":return{value:null===(r=e.value)||void 0===r?void 0:r.namesPaths.map((function(e){return e.name})).join(", "),icon:"file_copy",type:e.type};case"user":return{value:e.value.fullName,icon:"account_circle",type:e.type};case"boolean":return{value:this._translate.instant("dataField.values.boolean."+e.value),icon:void 0,type:e.type};case"button":return{value:e.placeholder&&void 0!==e.placeholder.defaultValue?e.placeholder.defaultValue:e.name&&void 0!==e.name.defaultValue?e.name.defaultValue:this._translate.instant("dialog.submit"),icon:void 0,type:e.type};case"filter":return{value:void 0,icon:void 0,type:e.type,filterMetadata:{filterMetadata:e.filterMetadata,allowedNets:e.allowedNets}};case"number":return void 0!==e.format?this.formatCurrencyPipe(e.value,e.format.code,e.format.fractionSize,e.format.locale,e.type):"currency"===(null===(n=e.component)||void 0===n?void 0:n.name)?this.formatCurrencyPipe(e.value,e.component.properties.code,e.component.properties.fractionSize,e.component.properties.locale,e.type):{value:e.value,icon:void 0,type:e.type};default:return{value:e.value,icon:void 0,type:e.type}}},t.prototype.formatCurrencyPipe=function(e,t,r,n,i){return{value:this._currencyPipe.transform(parseFloat(e),t,"symbol","1."+r+"-"+r,n),icon:void 0,type:i}},t}(go);function vo(e,t){return e.immediateData.find((function(e){return e.stringId===t}))}!function(e){e.CREATE="create",e.DELETE="delete",e.VIEW="view",e.ASSIGN="assign",e.CANCEL="cancel",e.FINISH="finish",e.DELEGATE="delegate",e.SET="set"}(ho||(ho={}));var mo,_o=function(r){function n(e,t,n,i,o,a,s,u,c){var l=r.call(this,i,u)||this;return l._caseResourceService=e,l._caseViewService=t,l._snackBarService=n,l._translateService=i,l._log=o,l._overflowService=a,l._userService=s,l._currencyPipe=u,l._permissionService=c,l.responsiveBody=!0,l.showCasePanelIcon=!0,l.showDeleteMenu=!1,l.textEllipsis=!1,l}return Ie(n,r),n.prototype.show=function(e){return e.stopPropagation(),!1},n.prototype.getFeaturedMetaValue=function(t){switch(t.fieldIdentifier){case e.CaseMetaField.MONGO_ID:return{value:this.case_.stringId,icon:void 0,type:"meta"};case e.CaseMetaField.VISUAL_ID:return{value:this.case_.visualId,icon:void 0,type:"meta"};case e.CaseMetaField.TITLE:return{value:this.case_.title,icon:void 0,type:"meta"};case e.CaseMetaField.AUTHOR:return{value:this.case_.author.fullName,icon:"account_circle",type:"meta"};case e.CaseMetaField.CREATION_DATE:return{value:po(this.case_.creationDate).format("DD.MM.YYYY HH:mm"),icon:"event",type:"meta"}}},n.prototype.getFeaturedImmediateValue=function(e){var t=vo(this.case_,e.fieldIdentifier);return this.parseImmediateValue(t)},n.prototype.deleteCase=function(){var e=this;this._caseResourceService.deleteCase(this.case_.stringId).pipe(le.take(1)).subscribe((function(t){t.success?(e._snackBarService.openSuccessSnackBar(void 0===t.outcome.message?e._translateService.instant("tasks.snackbar.caseDeleteSuccess"):t.outcome.message),e._caseViewService.reload()):t.error&&e.throwError(e._translateService.instant("tasks.snackbar.caseDeleteFailed"))}),(function(t){e.throwError(e._translateService.instant("tasks.snackbar.caseDeleteFailed"))}))},n.prototype.canDelete=function(){return this._permissionService.hasCasePermission(this.case_,ho.DELETE)},n.prototype.throwError=function(e){this._snackBarService.openErrorSnackBar(e),this._log.error(e)},n.prototype.getMinWidth=function(){return this._overflowService&&this._overflowService.overflowMode?this._overflowService.columnWidth+"px":"0"},n.propDecorators={case_:[{type:t.Input}],selectedHeaders$:[{type:t.Input}],responsiveBody:[{type:t.Input}],first:[{type:t.Input}],last:[{type:t.Input}],showCasePanelIcon:[{type:t.Input}],showDeleteMenu:[{type:t.Input}],textEllipsis:[{type:t.Input}]},n}(yo);(mo=e.TaskMetaField||(e.TaskMetaField={})).CASE="caseTitleSortable",mo.CASE_ID="caseId",mo.TASK_ID="taskId",mo.TITLE="title",mo.PRIORITY="priority",mo.USER="user",mo.ASSIGN_DATE="assign-date";var bo,To=function(r){function n(e,n,i,o,a,s,u,c,l,p,d,h,f,g,y,v,m,_,b){var T=r.call(this,v,m)||this;return T._taskContentService=e,T._log=n,T._taskViewService=i,T._paperView=o,T._taskEventService=a,T._assignTaskService=s,T._delegateTaskService=u,T._cancelTaskService=c,T._finishTaskService=l,T._taskState=p,T._taskDataService=d,T._assignPolicyService=h,T._callChain=f,T._taskOperations=g,T._disableFunctions=y,T._translate=v,T._currencyPipe=m,T._changedFieldsService=_,T._permissionService=b,T._forceLoadDataOnOpen=!1,T.responsiveBody=!0,T.textEllipsis=!1,T.taskEvent=new t.EventEmitter,T.panelRefOutput=new t.EventEmitter,T._subTaskEvent=a.taskEventNotifications$.subscribe((function(e){T.taskEvent.emit(e)})),T._subTaskData=_.changedFields$.subscribe((function(e){var t=Object.keys(e).filter((function(e){return Object.keys(T._taskContentService.referencedTaskAndCaseIds).includes(e)})),r=[];t.forEach((function(t){var n=T._taskContentService.referencedTaskAndCaseIds[t];r.push.apply(r,ke(T._changedFieldsService.parseChangedFieldsByCaseAndTaskIds(t,n,e)))})),r.filter((function(e){return void 0!==e})).forEach((function(e){T.taskPanelData.changedFields.next(e)}))})),T._subOperationOpen=g.open$.subscribe((function(){T.expand()})),T._subOperationClose=g.close$.subscribe((function(){T.collapse()})),T._subOperationReload=g.reload$.subscribe((function(){T._taskViewService.reloadCurrentPage()})),T._subOperationForceReload=g.forceReload$.subscribe((function(){T._taskViewService.reloadCurrentPage(!0)})),T._taskDisableButtonFunctions={finish:function(e){return!1},assign:function(e){return!1},delegate:function(e){return!1},reassign:function(e){return!1},cancel:function(e){return!1}},y&&Object.assign(T._taskDisableButtonFunctions,y),T}return Ie(n,r),Object.defineProperty(n.prototype,"forceLoadDataOnOpen",{set:function(e){this._forceLoadDataOnOpen=e,this._assignPolicyService.forced=e},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){var e=this;r.prototype.ngOnInit.call(this),this._taskContentService.task=this._taskPanelData.task,this.createContentPortal(),this._sub=this._taskPanelData.changedFields.subscribe((function(t){e._taskContentService.updateFromChangedFields(t)})),this._subPanelUpdate=this._taskViewService.panelUpdate.pipe(le.map((function(t){return t.find((function(t){return t.task.stringId===e.taskPanelData.task.stringId}))})),le.filter((function(e){return!!e}))).subscribe((function(t){e.resolveFeaturedFieldsValues()}))},n.prototype.ngAfterViewInit=function(){var e=this;this.panelRef.opened.subscribe((function(){e._taskContentService.expansionStarted(),e._taskState.isLoading()||e._assignPolicyService.performAssignPolicy(!0)})),this.panelRef.closed.subscribe((function(){e._taskState.isLoading()||e._assignPolicyService.performAssignPolicy(!1)})),this.panelRef.afterExpand.subscribe((function(){e._taskContentService.$shouldCreate.pipe(le.take(1)).subscribe((function(){e._taskContentService.blockFields(!e.canFinish()),e._taskPanelData.initiallyExpanded=!0})),e._taskContentService.expansionFinished()})),this.panelRef.afterCollapse.subscribe((function(){e._taskPanelData.initiallyExpanded=!1})),this._taskPanelData.initiallyExpanded&&(this.panelRef.expanded=!0)},Object.defineProperty(n.prototype,"taskPanelData",{get:function(){return this._taskPanelData},set:function(e){this._taskPanelData=e,this.resolveFeaturedFieldsValues()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLoading",{get:function(){return this._taskState.isLoading()},enumerable:!1,configurable:!0}),n.prototype.stopLoading=function(){this._taskState.stopLoading(this._taskPanelData.task.stringId)},n.prototype.preventPanelOpen=function(e){return e.stopPropagation(),!1},n.prototype.isPaperView=function(){return this._paperView.paperView},n.prototype.setPanelRef=function(e){this.panelRef=e,this.panelRefOutput.emit(e)},n.prototype.assign=function(){var e=this;this._assignTaskService.assign(this._callChain.create((function(t){t&&e._taskDataService.initializeTaskDataFields()})))},n.prototype.delegate=function(){this._delegateTaskService.delegate()},n.prototype.cancel=function(){var e=this;this._cancelTaskService.cancel(this._callChain.create((function(){e._taskOperations.reload(),e._taskOperations.close()})))},n.prototype.finish=function(){if(this._taskContentService.validateTaskData())this._finishTaskService.validateDataAndFinish();else{this._taskContentService.task.dataSize<=0&&this._taskDataService.initializeTaskDataFields();var e=this._taskContentService.getInvalidTaskData();document.getElementById(e[0].stringId).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},n.prototype.collapse=function(){this.panelRef.close(),this.panelRef.expanded=!1},n.prototype.expand=function(){this.panelRef.open(),this.panelRef.expanded=!0},n.prototype.canAssign=function(){return this._permissionService.canAssign(this.taskPanelData.task)&&""!==this.getAssignTitle()},n.prototype.canReassign=function(){return this._permissionService.canReassign(this.taskPanelData.task)},n.prototype.canCancel=function(){return this._permissionService.canCancel(this.taskPanelData.task)&&""!==this.getCancelTitle()},n.prototype.canFinish=function(){return this._permissionService.canFinish(this.taskPanelData.task)&&""!==this.getFinishTitle()},n.prototype.canCollapse=function(){return this._permissionService.canCollapse(this.taskPanelData.task)},n.prototype.canDo=function(e){return this._permissionService.hasTaskPermission(this.taskPanelData.task,e)&&""!==this.getDelegateTitle()},n.prototype.getAssignTitle=function(){return""===this.taskPanelData.task.assignTitle||this.taskPanelData.task.assignTitle?this.taskPanelData.task.assignTitle:"tasks.view.assign"},n.prototype.getCancelTitle=function(){return""===this.taskPanelData.task.cancelTitle||this.taskPanelData.task.cancelTitle?this.taskPanelData.task.cancelTitle:"tasks.view.cancel"},n.prototype.getDelegateTitle=function(){return""===this.taskPanelData.task.delegateTitle||this.taskPanelData.task.delegateTitle?this.taskPanelData.task.delegateTitle:"tasks.view.delegate"},n.prototype.getFinishTitle=function(){return""===this.taskPanelData.task.finishTitle||this.taskPanelData.task.finishTitle?this.taskPanelData.task.finishTitle:"tasks.view.finish"},n.prototype.canDisable=function(e){var t=!1;return this.taskPanelData&&this.taskPanelData.task&&(t=t||!!this._taskState.isLoading(this.taskPanelData.task.stringId)||!!this._taskState.isUpdating(this.taskPanelData.task.stringId)),t||this._taskDisableButtonFunctions[e](Ee({},this._taskContentService.task))},n.prototype.getFeaturedMetaValue=function(t){var r=this._taskPanelData.task;switch(t.fieldIdentifier){case e.TaskMetaField.CASE:return{value:r.caseTitle,icon:"",type:"meta"};case e.TaskMetaField.CASE_ID:return{value:r.caseId,icon:"",type:"meta"};case e.TaskMetaField.TASK_ID:return{value:r.stringId,icon:"",type:"meta"};case e.TaskMetaField.TITLE:return{value:r.title,icon:"",type:"meta"};case e.TaskMetaField.PRIORITY:return!r.priority||r.priority<2?{value:"high",icon:"error",type:"meta"}:2===r.priority?{value:"medium",icon:"north",type:"meta"}:{value:"low",icon:"south",type:"meta"};case e.TaskMetaField.USER:return{value:r.user?r.user.fullName:"",icon:"account_circle",type:"meta"};case e.TaskMetaField.ASSIGN_DATE:return{value:r.startDate?po(r.startDate).format("DD.MM.YYYY HH:mm"):"",icon:"event",type:"meta"}}},n.prototype.getFeaturedImmediateValue=function(e){if(this._taskContentService.task&&this._taskContentService.task.immediateData){var t=this._taskContentService.task.immediateData.find((function(t){return t.stringId===e.fieldIdentifier}));return this.parseImmediateValue(t)}return{value:"",icon:"",type:""}},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this._sub.unsubscribe(),this._subTaskEvent.unsubscribe(),this._subTaskData.unsubscribe(),this._subOperationOpen.unsubscribe(),this._subOperationClose.unsubscribe(),this._subOperationReload.unsubscribe(),this._subOperationForceReload.unsubscribe(),this._subPanelUpdate.unsubscribe(),this.taskEvent.complete()},n.propDecorators={panelContentComponent:[{type:t.Input}],selectedHeaders$:[{type:t.Input}],first:[{type:t.Input}],last:[{type:t.Input}],responsiveBody:[{type:t.Input}],forceLoadDataOnOpen:[{type:t.Input}],textEllipsis:[{type:t.Input}],taskEvent:[{type:t.Output}],panelRefOutput:[{type:t.Output}],taskPanelData:[{type:t.Input}]},n}(yo);(bo=e.TaskEndpoint||(e.TaskEndpoint={}))[bo.MONGO=1]="MONGO",bo[bo.ELASTIC=2]="ELASTIC";var So,Io=new t.InjectionToken("NaePreferredTaskEndpoint"),Eo=function(){function e(e,t,r,n,i){void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),this.filter=e,this.pagination=Object.assign({},t),this.clearLoaded=r,this.reloadCurrentTaskPage=n,this.force=i}return Object.defineProperty(e.prototype,"pageNumber",{get:function(){return this.pagination&&this.pagination.number},enumerable:!1,configurable:!0}),e}(),wo=function(e){function t(t){void 0===t&&(t=!1);var r=e.call(this,t)||this;return r._loadingStates=new Map,r}return Ie(t,e),Object.defineProperty(t.prototype,"isActive",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype.isActiveWithFilter=function(e){return!!this._loadingStates.get(e)},t.prototype.on=function(e){this.nextValue(e,!0)},t.prototype.off=function(e){this.nextValue(e,!1)},t.prototype.toggle=function(e){this.nextValue(e,!this.isActiveWithFilter(e))},t.prototype.nextValue=function(e,t){var r=this;this._loadingStates.set(e,t),ne.from(this._loadingStates.values()).pipe(le.reduce((function(e,t){return e||t}),!1)).subscribe((function(e){return r.next(e)}))},t}(ne.BehaviorSubject);function Co(e){return ne.timer(0,1).pipe(le.take(e.length),le.map((function(t){return e[t]})))}!function(e){e.EDIT="edit",e.MODE_CHANGED="mode-changed",e.SEARCH="search",e.SORT="sort"}(So||(So={}));var ko=function(){function t(e){this._resolver=e,this._lastHeaderSearchState={columnType:void 0,fieldIdentifier:"",sortDirection:"",columnIdentifier:-1,fieldType:void 0}}return t.prototype.ngOnDestroy=function(){this._subHeader&&this._subHeader.unsubscribe()},t.prototype.registerHeaderChange=function(e){var t=this;this._subHeader=e.subscribe((function(e){e&&(e.changeType!==So.SORT&&e.changeType!==So.SEARCH||(e.changeType===So.SORT&&(t._lastHeaderSearchState=e.description),t.reload()))}))},t.prototype.addSortParams=function(e){return""!==this._lastHeaderSearchState.sortDirection?e.set("sort",this.getSortId()+","+this._lastHeaderSearchState.sortDirection):e.set("sort",this.getDefaultSortParam())},t.prototype.getSortId=function(){if(this._lastHeaderSearchState.columnType===e.HeaderColumnType.META)return this.getMetaFieldSortId();switch(this._lastHeaderSearchState.fieldType){case"number":return this._resolver.getIndex(this._lastHeaderSearchState.fieldIdentifier,e.SearchIndex.NUMBER);case"date":case"dateTime":return this._resolver.getIndex(this._lastHeaderSearchState.fieldIdentifier,e.SearchIndex.TIMESTAMP);case"user":case"userList":return this._resolver.getIndex(this._lastHeaderSearchState.fieldIdentifier,e.SearchIndex.FULL_NAME,!0);default:return this._resolver.getIndex(this._lastHeaderSearchState.fieldIdentifier,e.SearchIndex.FULLTEXT,!0)}},t}(),Oo=new t.InjectionToken("NaeTaskViewConfiguration");var Fo,Ao=function(r){function n(t,n,i,o,a,s,u,c,l,p){var d,h,f,g;void 0===l&&(l=null),void 0===p&&(p=null);var y=r.call(this,c)||this;y._taskService=t,y._userService=n,y._snackBarService=i,y._translate=o,y._searchService=a,y._log=s,y._userComparator=u,y._preferredEndpoint=l,y._initializing=!0,y._tasks$=new ne.Subject,y._loading$=new wo,y._changedFields$=new ne.Subject,y._allowMultiOpen=!0,y._endOfData=!1,y._pagination={size:50,totalElements:void 0,totalPages:void 0,number:-1},y._requestedPage$=new ne.BehaviorSubject(new Eo(y.activeFilter,Object.assign({},y._pagination,{number:0}))),y._panelUpdate$=new ne.BehaviorSubject([]),y._closeTab$=new ne.ReplaySubject(1),y._preferredEndpoint=null!==(d=null==p?void 0:p.preferredEndpoint)&&void 0!==d?d:null!==(h=y._preferredEndpoint)&&void 0!==h?h:e.TaskEndpoint.MONGO,y._initializing=!1,y._subSearch=y._searchService.activeFilter$.subscribe((function(){y.reload()}));var v=y._requestedPage$.pipe(le.mergeMap((function(e){return y.loadPage(e)})),le.map((function(e){return e.requestContext&&e.requestContext.clearLoaded?Co([{tasks:{},requestContext:null},e]):ne.of(e)})),le.concatMap((function(e){return e})),le.scan((function(e,t){var r;return null===t.requestContext?t.tasks:(t.requestContext.reloadCurrentTaskPage?(Object.keys(e).forEach((function(r){t.tasks[r]?(t.tasks[r].task.dataGroups=e[r].task.dataGroups,t.tasks[r].initiallyExpanded=e[r].initiallyExpanded,y.updateTask(e[r].task,t.tasks[r].task),y.blockTaskFields(e[r].task,!(e[r].task.user&&y._userComparator.compareUsers(e[r].task.user))),delete t.tasks[r]):delete e[r]})),r=Object.assign(e,t.tasks)):r=Ee(Ee({},e),t.tasks),Object.assign(y._pagination,t.requestContext.pagination),null!==t.requestContext&&y._loading$.off(t.requestContext.filter),r)}),{}));return y._tasks$=v.pipe(le.map((function(e){return Object.values(e)})),le.map((function(e){return 1===e.length&&y._initiallyOpenOneTask&&(void 0===e[0].task.finishDate?e[0].initiallyExpanded=!0:e[0].initiallyExpanded=!1),e})),le.tap((function(e){return y._panelUpdate$.next(e)}))),y._subInitiallyOpen=(null!==(f=null==p?void 0:p.initiallyOpenOneTask)&&void 0!==f?f:ne.of(!0)).subscribe((function(e){y._initiallyOpenOneTask=e})),y._subCloseTask=(null!==(g=null==p?void 0:p.closeTaskTabOnNoTasks)&&void 0!==g?g:ne.of(!0)).subscribe((function(e){y._closeTaskTabOnNoTasks=e})),y}return Ie(n,r),n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this._changedFields$.complete(),this._requestedPage$.complete(),this._panelUpdate$.complete(),this._closeTab$.complete(),this._subInitiallyOpen.unsubscribe(),this._subCloseTask.unsubscribe(),this._subSearch.unsubscribe()},Object.defineProperty(n.prototype,"tasks$",{get:function(){return this._tasks$},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"changedFields$",{get:function(){return this._changedFields$},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loading",{get:function(){return this._loading$.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"panelUpdate",{get:function(){return this._panelUpdate$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"closeTab",{get:function(){return this._closeTab$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeFilter",{get:function(){return this._searchService.activeFilter},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"allowMultiOpen",{get:function(){return this._allowMultiOpen},set:function(e){this._allowMultiOpen=e},enumerable:!1,configurable:!0}),n.prototype.loadPage=function(t){var r=this;if(null===t||t.pageNumber<0)return ne.of({tasks:{},requestContext:t});var n=new ie.HttpParams;return n=this.addSortParams(n),n=this.addPageParams(n,t.pagination),this._loading$.on(t.filter),(t.filter.bodyContainsQuery()||this._preferredEndpoint===e.TaskEndpoint.ELASTIC?ne.timer(200).pipe(le.switchMap((function(){return r._taskService.searchTask(t.filter,n).pipe(le.take(1))}))):this._taskService.getTasks(t.filter,n).pipe(le.take(1))).pipe(le.catchError((function(e){return r._log.error("Loading tasks has failed!",e),r._loading$.off(t.filter),ne.of({content:[],pagination:Ee({},r._pagination)})})),le.filter((function(){var e=t.filter===r._searchService.activeFilter;return e||(r._loading$.off(t.filter),r._log.debug("Received tasks page is no longer relevant since the active filter has changed before it could arrive. Discarding...")),e})),le.tap((function(e){Object.assign(t.pagination,e.pagination)})),le.tap((function(e){r._pagination.totalElements&&r._pagination.totalElements>0&&0===e.pagination.totalElements&&!Array.isArray(e.content)&&r._closeTaskTabOnNoTasks&&r._closeTab$.next()})),le.tap((function(e){r._endOfData=!Array.isArray(e.content)||0===e.content.length||e.pagination.number===e.pagination.totalPages})),le.map((function(e){return Array.isArray(e.content)?e:Ee(Ee({},e),{content:[]})})),le.map((function(e){return e.content.reduce((function(e,t){var n;return r.blockTaskFields(t,!(t.user&&r._userComparator.compareUsers(t.user))),Ee(Ee({},e),((n={})[t.stringId]={task:t,changedFields:r._changedFields$,initiallyExpanded:!1},n))}),{})})),le.map((function(e){return{tasks:e,requestContext:t}})))},n.prototype.updateTask=function(e,t){Object.keys(e).forEach((function(r){t.hasOwnProperty(r)||delete e[r]})),Object.keys(t).forEach((function(r){void 0!==t[r]&&null!==t[r]&&(e[r]=t[r])})),this.blockTaskFields(e,!(e.user&&this._userComparator.compareUsers(e.user)))},n.prototype.blockTaskFields=function(e,t){e.dataGroups&&e.dataGroups.forEach((function(e){return e.fields.forEach((function(e){return e.block=t}))}))},n.prototype.nextPage=function(e,t,r){void 0===r&&((r=new Eo(this.activeFilter,this._pagination)).pagination.number+=1),this.isLoadingRelevantFilter(r)||this._endOfData||e.end===t&&this._requestedPage$.next(r)},n.prototype.isLoadingRelevantFilter=function(e){return void 0===e||this._loading$.isActiveWithFilter(e.filter)&&!e.force},n.prototype.reload=function(){if(this._tasks$&&this._pagination){this._endOfData=!1;var e=new Eo(this.activeFilter,this._pagination,!0);e.pagination.number=0;this.nextPage({start:-1,end:0},0,e)}},n.prototype.reloadCurrentPage=function(e){if(this._tasks$&&this._pagination){this._endOfData=!1;var t=new Eo(this.activeFilter,this._pagination,!1,!0,e);t.pagination.number=0;this.nextPage({start:-1,end:0},0,t)}},n.prototype.getMetaFieldSortId=function(){return this._lastHeaderSearchState.fieldIdentifier},n.prototype.getDefaultSortParam=function(){return"priority,desc"},n.prototype.addPageParams=function(e,t){return e=(e=e.set("size",t.size+"")).set("page",t.number+"")},n.ctorParameters=function(){return[{type:Sr},{type:at},{type:ft},{type:ue.TranslateService},{type:ji},{type:$e},{type:io},{type:Gn},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Io]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Oo]}]}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Sr},{type:at},{type:ft},{type:ue.TranslateService},{type:ji},{type:$e},{type:io},{type:Gn},{type:e.TaskEndpoint,decorators:[{type:t.Optional},{type:t.Inject,args:[Io]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Oo]}]}]},n}(ko),Ro=new t.InjectionToken("NaeTabData"),Po=function(){function e(e){var t=this;this._showVirtualScroll=!1,null===e?this._showVirtualScroll=!0:this._sub=e.tabSelected$.pipe(le.filter((function(e){return e})),le.take(1)).subscribe((function(){t._showVirtualScroll=!0}))}return e.prototype.ngOnDestroy=function(){this._sub&&this._sub.unsubscribe()},Object.defineProperty(e.prototype,"showVirtualScroll",{get:function(){return this._showVirtualScroll},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ro]}]}]},e}(),No=function(e){function r(r,n,i,o){var a=e.call(this,i)||this;return a._taskViewService=r,a._log=n,a.route=o,a._allowMultiOpen=!0,a.responsiveBody=!0,a.forceLoadDataOnOpen=!1,a.textEllipsis=!1,a.taskEvent=new t.EventEmitter,a.taskPanelRefs=new Map,a.unsubscribe$=new ne.Subject,a}return Ie(r,e),Object.defineProperty(r.prototype,"allowMultiOpen",{get:function(){return this._allowMultiOpen},set:function(e){this._allowMultiOpen=e,this._taskViewService.allowMultiOpen=e},enumerable:!1,configurable:!0}),r.prototype.ngAfterViewInit=function(){this.onRedirect()},r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.taskEvent.complete(),this.unsubscribe$.complete()},r.prototype.trackBy=function(e,t){return t.task.stringId},r.prototype.loadNextPage=function(){this.viewport&&this._taskViewService.nextPage(this.viewport.getRenderedRange(),this.viewport.getDataLength())},r.prototype.emitTaskEvent=function(e){this.taskEvent.emit(e)},r.prototype.addToPanelRefs=function(e,t){this.taskPanelRefs.set(e.task.stringId,t)},r.prototype.onRedirect=function(){var e=this;this.route.queryParams.pipe(le.filter((function(e){return!!e.taskId}))).subscribe((function(t){e.redirectTaskId=t.taskId,e.tasks$.pipe().subscribe((function(t){var r=t.find((function(t){return t.task.stringId===e.redirectTaskId}));r&&!r.initiallyExpanded&&(e.taskPanelRefs.get(e.redirectTaskId).open(),e.taskPanelRefs.get(e.redirectTaskId).expanded=!0,e.unsubscribe$.next())}))}))},r.ctorParameters=function(){return[{type:Ao},{type:$e},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ro]}]},{type:he.ActivatedRoute}]},r.propDecorators={tasks$:[{type:t.Input}],loading$:[{type:t.Input}],selectedHeaders$:[{type:t.Input}],responsiveBody:[{type:t.Input}],forceLoadDataOnOpen:[{type:t.Input}],textEllipsis:[{type:t.Input}],allowMultiOpen:[{type:t.Input}],taskEvent:[{type:t.Output}],viewport:[{type:t.ViewChild,args:[c.CdkVirtualScrollViewport]}]},r}(Po);(Fo=e.WorkflowMetaField||(e.WorkflowMetaField={})).INITIALS="initials",Fo.NET_ID="netId",Fo.TITLE="title",Fo.VERSION="version",Fo.AUTHOR="author",Fo.CREATION_DATE="creationDate";var Do=function(r){function n(e,t,n){var i=r.call(this)||this;return i._log=e,i._translate=t,i._workflowService=n,i.responsiveBody=!0,i.showDeleteMenu=!1,i.TRANSLATION_NET="panel.workflow.net",i.TRANSLATION_TITLE="panel.workflow.title",i.TRANSLATION_VERSION="panel.workflow.version",i.TRANSLATION_AUTHOR="panel.workflow.author",i.TRANSLATION_UPLOAD="panel.workflow.upload",i.dataFieldsBehaviour={visible:!0,editable:!1},i._subscription=t.onLangChange.subscribe((function(e){i.panelContent.netIdentifier.title=i._translate.instant(i.TRANSLATION_NET),i.panelContent.title.title=i._translate.instant(i.TRANSLATION_TITLE),i.panelContent.version.title=i._translate.instant(i.TRANSLATION_VERSION),i.panelContent.author.title=i._translate.instant(i.TRANSLATION_AUTHOR),i.panelContent.uploaded.title=i._translate.instant(i.TRANSLATION_UPLOAD)})),i}return Ie(n,r),n.prototype.ngOnInit=function(){r.prototype.ngOnInit.call(this),this.panelContent=this.createPanelContent()},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this._subscription.unsubscribe()},n.prototype.show=function(e){return e.stopPropagation(),!1},n.prototype.collapse=function(){},n.prototype.setPanelRef=function(e){this.panelRef=e},n.prototype.deleteWorkflow=function(){this._workflowService.deleteWorkflow(this.workflow)},n.prototype.createPanelContent=function(){return{netIdentifier:new sr("",this._translate.instant(this.TRANSLATION_NET),this.workflow.identifier,this.dataFieldsBehaviour),title:new sr("",this._translate.instant(this.TRANSLATION_TITLE),this.workflow.title,this.dataFieldsBehaviour),version:new sr("",this._translate.instant(this.TRANSLATION_VERSION),this.workflow.version,this.dataFieldsBehaviour),author:new sr("",this._translate.instant(this.TRANSLATION_AUTHOR),this.workflow.author.fullName,this.dataFieldsBehaviour),uploaded:new dr("",this._translate.instant(this.TRANSLATION_UPLOAD),po(this.workflow.createdDate),this.dataFieldsBehaviour)}},n.prototype.resolveFeaturedFieldsValues=function(){var e=this;this._lastSelectedHeaders&&(this.featuredFieldsValues.splice(0,this.featuredFieldsValues.length),this._lastSelectedHeaders.forEach((function(t){e.featuredFieldsValues.push(e.getFeaturedValue(t))})))},n.prototype.getFeaturedMetaValue=function(t){switch(t.fieldIdentifier){case e.WorkflowMetaField.INITIALS:return{value:this.workflow.initials,icon:"",type:"meta"};case e.WorkflowMetaField.TITLE:return{value:this.workflow.title,icon:"",type:"meta"};case e.WorkflowMetaField.NET_ID:return{value:this.workflow.stringId,icon:"",type:"meta"};case e.WorkflowMetaField.VERSION:return{value:this.workflow.version,icon:"",type:"meta"};case e.WorkflowMetaField.AUTHOR:return{value:this.workflow.author.fullName,icon:"account_circle",type:"meta"};case e.WorkflowMetaField.CREATION_DATE:return{value:po(this.workflow.createdDate).format("DD.MM.YYYY HH:mm"),icon:"event",type:"meta"}}},n.prototype.getFeaturedImmediateValue=function(e){return this._log.warn("Immediate data in workflow panel headers are currently not supported"),{value:"",icon:"",type:""}},n.propDecorators={workflow:[{type:t.Input}],selectedHeaders$:[{type:t.Input}],responsiveBody:[{type:t.Input}],showDeleteMenu:[{type:t.Input}]},n}(go),Lo=new t.InjectionToken("NaeFilterText"),jo=function(){function e(e){this._parenInjector=e}return e.prototype.ngOnInit=function(){var e=[{provide:Lo,useValue:{metadata:this.filterMetadata,ellipsis:this.ellipsis}}],r=t.Injector.create({providers:e,parent:this._parenInjector});this.portal=new u.ComponentPortal(this.getFilterTextContentComponent(),null,r),this.initialized=!0},e.propDecorators={ellipsis:[{type:t.Input}],filterMetadata:[{type:t.Input}]},e}(),Mo=function(){function e(e,t,r){var n=this;this._configuration=e,this._textSearchService=t,this._translateService=r,this.segments=[],this._textSearchService.loadFromMetadata(this._configuration.metadata.filterMetadata),this._searchServiceSub=this._textSearchService.loadingFromMetadata$.pipe(le.filter((function(e){return!e})),le.take(1)).subscribe((function(){n.segments=n._textSearchService.createFilterTextSegments(),n.tooltip=n.segments.map((function(e){var t=n._translateService.instant(e.segment);return e.uppercase?t.toUpperCase():t})).join(" ")}))}return Object.defineProperty(e.prototype,"ellipsis",{get:function(){return this._configuration.ellipsis},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._searchServiceSub&&!this._searchServiceSub.closed&&this._searchServiceSub.unsubscribe()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Lo]}]},{type:ji},{type:ue.TranslateService}]},e}(),xo=new t.InjectionToken("NaeTaskPanelDisableFunctions"),Vo=function(){function e(e){this.displayLegalNotice=!0,this.rootFormGroup=e.group({email:["",l.Validators.email]}),this.formSubmit=new t.EventEmitter,this.goBackButton=new t.EventEmitter}return e.prototype.ngOnDestroy=function(){this.formSubmit.complete(),this.goBackButton.complete()},e.prototype.emitGoBack=function(){this.goBackButton.emit()},e.prototype.onSubmit=function(){this.rootFormGroup.valid&&this.formSubmit.emit({email:this.rootFormGroup.controls.email.value})},e.propDecorators={displayLegalNotice:[{type:t.Input}],formSubmit:[{type:t.Output}],goBackButton:[{type:t.Output}]},e}(),Uo=function(){function e(e,r){this._userService=r,this.hidePassword=!0,this.rootFormGroup=e.group({login:[""],password:[""]}),this.login=new t.EventEmitter,this.resetPassword=new t.EventEmitter,this.signUp=new t.EventEmitter,this.formSubmit=new t.EventEmitter,this.loading=new Ye}return e.prototype.ngOnDestroy=function(){this.loading.complete(),this.login.complete(),this.resetPassword.complete(),this.signUp.complete(),this.formSubmit.complete()},e.prototype.onSubmit=function(){var e=this;if(this.rootFormGroup.valid&&!this.loading.isActive){var t={username:this.rootFormGroup.controls.login.value,password:this.rootFormGroup.controls.password.value};this.loading.on(),this.formSubmit.emit(t),this._userService.login(t).pipe(le.take(1)).subscribe((function(t){e.login.emit(t),e.loading.off()}))}},e.prototype.resetEmit=function(){this.resetPassword.emit()},e.prototype.signUpEmit=function(){this.signUp.emit()},e.prototype.getButtonsFxLayoutAlign=function(){return this.showSignUpButton||this.showForgottenPasswordButton?"space-between":"end"},e.propDecorators={showSignUpButton:[{type:t.Input}],showForgottenPasswordButton:[{type:t.Input}],login:[{type:t.Output}],resetPassword:[{type:t.Output}],signUp:[{type:t.Output}],formSubmit:[{type:t.Output}]},e}();function $o(e){var t=e.get("password"),r=e.get("confirmPassword");return t&&r?t.pristine||r.pristine?null:t&&r&&t.value!==r.value?(r.setErrors({mismatchedPassword:!0}),{misMatch:!0}):null:null}var Bo,zo=function(){function e(e,r,n){this._signupService=e,this._log=r,this._translate=n,this.MIN_PASSWORD_LENGTH=8,this.hidePassword=!0,this.hideRepeatPassword=!0,this.formSubmit=new t.EventEmitter,this.register=new t.EventEmitter,this.invalidToken=new t.EventEmitter,this._tokenVerified=!1,this.loadingToken=new Ye(!0)}return e.prototype.ngOnDestroy=function(){this.formSubmit.complete(),this.register.complete(),this.invalidToken.complete(),this.loadingToken.complete()},Object.defineProperty(e.prototype,"token",{get:function(){return this._token},set:function(e){var t=this;this._token=e,this._token?(this.loadingToken.on(),this._signupService.verify(this._token).pipe(le.take(1)).subscribe((function(e){t._log.info("Token "+t._token+" has been successfully verified"),e.success&&(t.userEmail=e.success),t._tokenVerified=!0,t.loadingToken.off()}),(function(e){t._log.error(e.message),t._tokenVerified=!1,t.loadingToken.off(),t.invalidToken.emit()}))):this._tokenVerified=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenVerified",{get:function(){return this._tokenVerified},enumerable:!1,configurable:!0}),e.prototype.onSubmit=function(){var e=this;if(this.rootFormGroup.valid){var t=this.createRequestBody();this.formSubmit.emit(t),this._tokenVerified?(t.token=this._token,this.callRegistration(t).pipe(le.take(1)).subscribe((function(t){e.register.emit(t)}),(function(t){e.register.emit({error:t})}))):this.register.emit({error:"Provided token "+this._token+" is not valid"})}},e.prototype.isFieldValid=function(e){return this.rootFormGroup.get(e).valid},e.prototype.getErrorMessage=function(e){var t=this.rootFormGroup.get(e).errors;if(null!==t)switch(Object.keys(t)[0]){case"required":return this._translate.instant("dataField.validations.required");case"minlength":return this._translate.instant("dataField.validations.minLength",{length:this.MIN_PASSWORD_LENGTH});case"mismatchedPassword":return this._translate.instant("forms.register.passwordsMustMatch")}},e.propDecorators={formSubmit:[{type:t.Output}],register:[{type:t.Output}],invalidToken:[{type:t.Output}],token:[{type:t.Input}]},e}(),Ho=function(e){function r(t,r,n,i){var o=e.call(this,r,n,i)||this;return o.displayLegalNotice=!0,o.rootFormGroup=t.group({name:["",l.Validators.required],surname:["",l.Validators.required],password:["",[l.Validators.required,l.Validators.minLength(o.MIN_PASSWORD_LENGTH)]],confirmPassword:["",[l.Validators.required,l.Validators.minLength(o.MIN_PASSWORD_LENGTH)]]},{validator:$o}),o}return Ie(r,e),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},r.prototype.createRequestBody=function(){return{token:void 0,name:this.rootFormGroup.controls.name.value,surname:this.rootFormGroup.controls.surname.value,password:this.rootFormGroup.controls.password.value}},r.prototype.callRegistration=function(e){return this._signupService.signup(e)},r.propDecorators={displayLegalNotice:[{type:t.Input}]},r}(zo),Go=function(e){function r(t,r,n,i){var o=e.call(this,r,n,i)||this;return o.displayLegalNotice=!1,o.rootFormGroup=t.group({password:["",[l.Validators.required,l.Validators.minLength(o.MIN_PASSWORD_LENGTH)]],confirmPassword:["",[l.Validators.required,l.Validators.minLength(o.MIN_PASSWORD_LENGTH)]]},{validator:$o}),o}return Ie(r,e),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},r.prototype.createRequestBody=function(){return{token:void 0,name:void 0,surname:void 0,password:this.rootFormGroup.controls.password.value}},r.prototype.callRegistration=function(e){return this._signupService.recoverPassword(e.token,e.password)},r.propDecorators={displayLegalNotice:[{type:t.Input}]},r}(zo),qo=function(){function e(e,t){this.translate=e,this.selectLangService=t}return e.prototype.ngOnInit=function(){},e.prototype.setLang=function(e){this.selectLangService.setLanguage(e)},e.prototype.activeLang=function(e){return this.translate.currentLang===e},e.propDecorators={loggedUser:[{type:t.Input}],appName:[{type:t.Input}],logoSrc:[{type:t.Input}],logoAlt:[{type:t.Input}]},e}(),Wo=function(){function e(e,t){this.uniqueId=t,this.injectedObject={},this.order=0,this.initial=!1,this.parentUniqueId=void 0,this.isTabInitialized=!1,Object.assign(this,e),this.tabSelected$=new ne.BehaviorSubject(!1),this.tabClosed$=new ne.Subject}return e.prototype.destroy=function(){this.tabSelected$.complete(),this.tabClosed$.complete()},e}(),Qo=function(){function e(e,t,r,n){var i=this;this._viewService=e,this._logger=t,this._initialTabs=r,this._parentInjector=n,this.selectedIndex=0,this.uniqueIdCounter=new ln,this.tabViewInterface={currentlySelectedTab:function(){return i.currentlySelectedTab()},openTab:function(e,t){return void 0===t&&(t=!1),i.openTab(e,t)},switchToTabIndex:function(e){return i.switchToTabIndex(e)},switchToTabUniqueId:function(e){return i.switchToTabUniqueId(e)},closeTabIndex:function(e,t){return void 0===t&&(t=!1),i.closeTabIndex(e,t)},closeTabUniqueId:function(e,t){return void 0===t&&(t=!1),i.closeTabUniqueId(e,t)}},this._initialTabs.forEach((function(e){void 0===e.order&&(e.order=0),e.initial=!0})),this.openedTabs=ge.orderBy(this._initialTabs,(function(e){return e.order}),"asc").map((function(e){return new Wo(e,""+i.uniqueIdCounter.next())})),this.openedTabs.length>0&&this.openedTabs[0].tabSelected$.next(!0)}return e.prototype.currentlySelectedTab=function(){return this.selectedIndex},e.prototype.openTab=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),e.initial&&(this._logger.warn("'initial' attribute is not meant to be used with new tabs and will be ignored"),delete e.initial);var n=new Wo(e,""+this.uniqueIdCounter.next()),i=this.findIndexExistingTab(n);return-1!==i&&r?(this.openedTabs[this.selectedIndex].tabSelected$.next(!1),this.selectedIndex=i,this.openedTabs[this.selectedIndex].tabSelected$.next(!0),this.openedTabs[i].uniqueId):this.openNewTab(n,t)},e.prototype.findIndexExistingTab=function(e){var t=this;return this.searchesForOneCaseId(e)?this.openedTabs.findIndex((function(r){return t.searchesForOneCaseId(r)&&t.getSearchedCaseId(r)===t.getSearchedCaseId(e)})):-1},e.prototype.searchesForOneCaseId=function(e){return this.hasCaseFilterParamSet(e)&&!Array.isArray(this.getSearchedCase(e))&&!!this.getSearchedCaseId(e)},e.prototype.getSearchedCaseId=function(e){return this.getSearchedCase(e).id},e.prototype.getSearchedCase=function(e){return e.injectedObject.baseFilter.getRequestBody().case},e.prototype.hasCaseFilterParamSet=function(e){return this.hasBaseFilter(e)&&!!e.injectedObject.baseFilter.getRequestBody().case},e.prototype.hasBaseFilter=function(e){return this.hasInjectedObject(e)&&!!e.injectedObject.baseFilter},e.prototype.hasInjectedObject=function(e){return!!e.injectedObject},e.prototype.openNewTab=function(e,t){var r=this.openedTabs.findIndex((function(t){return t.order>e.order}));return-1===r&&(r=this.openedTabs.length),this.openedTabs.splice(r,0,e),(t||1===this.openedTabs.length)&&(this.openedTabs[this.selectedIndex].tabSelected$.next(!1),this.selectedIndex=r,this.openedTabs[this.selectedIndex].tabSelected$.next(!0)),e.uniqueId},e.prototype.switchToTabIndex=function(e){this.checkIndexRange(e),this.openedTabs[this.selectedIndex].tabSelected$.next(!1),this.selectedIndex=e,this.openedTabs[this.selectedIndex].tabSelected$.next(!0)},e.prototype.switchToTabUniqueId=function(e){this.openedTabs[this.selectedIndex].tabSelected$.next(!1),this.selectedIndex=this.getTabIndex(e),this.openedTabs[this.selectedIndex].tabSelected$.next(!0)},e.prototype.closeTabIndex=function(e,t){void 0===t&&(t=!1),this.closeTab(e,t,"Tab at index "+e+" can't be closed")},e.prototype.closeTabUniqueId=function(e,t){void 0===t&&(t=!1);var r=this.getTabIndex(e);this.closeTab(r,t,"Tab with ID "+e+" can't be closed")},e.prototype.closeTab=function(e,t,r){if(this.checkIndexRange(e),!t&&!this.openedTabs[e].canBeClosed)throw new Error(r);e===this.selectedIndex&&this.openedTabs[e].parentUniqueId&&this.switchToTabUniqueId(this.openedTabs[e].parentUniqueId),e===this.selectedIndex&&this.selectedIndex+1<this.openedTabs.length&&this.openedTabs[e+1].tabSelected$.next(!0),this.openedTabs[e].tabClosed$.next(),this.openedTabs.splice(e,1)[0].destroy(),e<this.selectedIndex&&(this.selectedIndex=this.selectedIndex-1)},e.prototype.initializeTab=function(r){this.checkIndexRange(r);var n=this.openedTabs[r];if(!n.isTabInitialized){Object.assign(n.injectedObject,{tabUniqueId:n.uniqueId,tabViewRef:this.tabViewInterface,tabSelected$:n.tabSelected$.asObservable(),tabClosed$:n.tabClosed$.asObservable()});var i=[{provide:Ro,useValue:n.injectedObject}];i.push({provide:no,useValue:n.initial?n.uniqueId:e.DYNAMIC_TAB_VIEW_ID_SEGMENT});var o=t.Injector.create({providers:i,parent:this._parentInjector});n.portal=new u.ComponentPortal(n.tabContentComponent,null,o),n.isTabInitialized=!0}},e.prototype.tabChange=function(e){if(e.index!==this.selectedIndex){var t=this.openedTabs[this.selectedIndex];t&&t.tabSelected$.next(!1),(t=this.openedTabs[e.index])&&t.tabSelected$.next(!0),this.selectedIndex=e.index}},e.prototype.getTabIndex=function(e){var t=this.openedTabs.findIndex((function(t){return t.uniqueId===e}));if(-1===t)throw new Error("No tab with ID "+e+" exists");return t},e.prototype.checkIndexRange=function(e){if(e<0||e>=this.openedTabs.length)throw new Error("No tab with index "+e+" exists")},e.DYNAMIC_TAB_VIEW_ID_SEGMENT="dynamic",e}(),Ko=function(){function e(e,t,r){var n=this;this._viewService=e,this._logger=t,this._injector=r,this.align="start",this.offset="",this.initializeTabLambda=function(e){n.tabView.initializeTab(e)}}return e.prototype.ngOnInit=function(){this.tabView=new Qo(this._viewService,this._logger,this.initialTabs,this._injector)},e.prototype.ngOnDestroy=function(){this.tabView.openedTabs.forEach((function(e){return e.destroy()}))},e.prototype.badgeHidden=function(e){var t=new ne.ReplaySubject(1);return e.label&&e.label.count?e.label.count.pipe(le.take(1)).subscribe((function(){t.next(!1),t.complete()})):(t.next(!0),t.complete()),t},e.prototype.badgeCount=function(e){var t=this,r=new ne.ReplaySubject(1);return e.label&&e.label.count?e.label.count.pipe(le.take(1)).subscribe((function(e){r.next(e+""),t.setOffset((e+"").length),r.complete()})):(r.next("0"),r.complete()),r},e.prototype.setOffset=function(e){this.offset=Array(2*e).join(" ")},e.propDecorators={initialTabs:[{type:t.Input}],stretch:[{type:t.Input}],align:[{type:t.Input}]},e}(),Yo=function(){function e(){}return e.prototype.ngOnInit=function(){this.initializeTabFunction(this.tabIndex)},e.propDecorators={initializeTabFunction:[{type:t.Input}],tabIndex:[{type:t.Input}]},e}(),Xo=function(){},Zo=function(){function t(e,t,r,n,i){this._sideMenuControl=e,this._petriNetResource=t,this._log=r,this._snackbar=n,this._translate=i,this.files={},this.releaseTypes=["Major","Minor","Patch"],this.releaseTypeControl=new l.FormControl(this.releaseTypes[0]),this._response=void 0}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var e=this;this._fileInput=document.getElementById("sidemenu-fileUpload"),this._fileInput.onchange=function(){var t,r;try{for(var n=we(Array.from(Array(e._fileInput.files.length).keys())),i=n.next();!i.done;i=n.next()){var o=i.value,a=e._fileInput.files[o];if(e.files[a.name]){var s=e.files[a.name].data;s.type===a.type&&s.lastModified===a.lastModified||(e.files[a.name]=e.setupFile(a))}else e.files[a.name]=e.setupFile(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.uploadFiles()}},Object.defineProperty(t.prototype,"fileList",{get:function(){return Object.values(this.files)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllFinished",{get:function(){return Object.values(this.files).every((function(e){return!e.inProgress&&100===e.progress}))},enumerable:!1,configurable:!0}),t.prototype.onProcessFileChosen=function(){this._fileInput&&this._fileInput.click()},t.prototype.cancelFile=function(e){e.sub.unsubscribe(),this.removeFile(e)},t.prototype.retryFile=function(e){this.uploadFile(e)},t.prototype.close=function(){this._sideMenuControl.close({opened:!1,message:"All process files were processed",data:this._response?{net:this._response.net}:void 0})},t.prototype.setupFile=function(e){return{data:e,stringId:"",downloading:!1,inProgress:!1,progress:0,completed:!1,uploaded:!1}},t.prototype.uploadFiles=function(){var e=this;this._fileInput.value="",this.fileList.filter((function(e){return!e.completed&&0===e.progress})).forEach((function(t){e.uploadFile(t)}))},t.prototype.removeFile=function(e){this.files[e.data.name]&&(delete this.files[e.data.name],this._sideMenuControl.publish({opened:!0,message:"Process "+e.data.name+" was deleted from the list",data:e}))},t.prototype.uploadFile=function(t){var r=this,n=new FormData;n.append("file",t.data),n.append("meta",this.releaseTypeControl.value.toString().toUpperCase()),t.inProgress=!0,t.completed=!1,t.error=!1,t.sub=this._petriNetResource.importPetriNet(n).subscribe((function(n){n.type&&n.type===e.ProgressType.UPLOAD?(t.progress=n.progress,100===t.progress&&(t.uploaded=!0)):(r._log.info(n.success),r._response=n.outcome,t.inProgress=!1,t.completed=!0,r._snackbar.openSuccessSnackBar(void 0===n.outcome.message?r._translate.instant("workflow.snackBar.uploadSuccess"):n.outcome.message),r._sideMenuControl.publish({opened:!0,message:void 0===n.outcome.message?"Process "+t.data.name+" successfully uploaded":n.outcome.message,data:{net:n.outcome.net}}))}),(function(e){var n,i;t.inProgress=!1,t.completed=!1,t.error=!0,r._log.error("Importing process file has failed!",e),r._snackbar.openErrorSnackBar(r._translate.instant("workflow.snackBar.uploadFailed")+" "+(null!==(i=null===(n=null==e?void 0:e.error)||void 0===n?void 0:n.message)&&void 0!==i?i:""))}))},t}(),Jo=function(r){function n(e,t){return r.call(this,"case",e,t)||this}return Ie(n,r),n.prototype.count=function(t){var r=this;if(t.type!==e.FilterType.CASE)throw new Error("Provided filter doesn't have type CASE");return this._resourceProvider.post$("workflow/case/count",this.SERVER_URL,t.getRequestBody(),t.getRequestParams()).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.getAllCase=function(){var e=this;return this._resourceProvider.get$("workflow/all",this.SERVER_URL).pipe(le.map((function(t){return e.changeType(t,"cases")})))},n.prototype.searchCases=function(t,r){var n=this;if(t.type!==e.FilterType.CASE)throw new Error("Provided filter doesn't have type CASE");return r=rt.combineParams(t.getRequestParams(),r),this._resourceProvider.post$("workflow/case/search",this.SERVER_URL,t.getRequestBody(),r).pipe(le.map((function(e){return n.getResourcePage(e,"cases")})))},n.prototype.deleteCase=function(e,t){var r=this;return void 0===t&&(t=!1),this._resourceProvider.delete$("workflow/case/"+e,this.SERVER_URL,t?{deleteSubtree:t.toString()}:{}).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.getCaseFile=function(e,t){var r=this;return this._resourceProvider.get$("workflow/case/"+e+"/file/"+t,this.SERVER_URL).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.createCase=function(e){var t=this;return this._resourceProvider.post$("workflow/case/",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.getAllCaseUser=function(e,t){var r=this;return this._resourceProvider.post$("workflow/case/author/"+e,this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,"cases")})))},n.prototype.getCasesQueryDSL=function(e){var t=this;return this._resourceProvider.post$("workflow/case/search2",this.SERVER_URL,e).pipe(le.map((function(e){return t.getResourcePage(e,"cases")})))},n.prototype.getCases=function(e,t){var r=this;return this._resourceProvider.post$("workflow/case/search_mongo",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.getResourcePage(e,"cases")})))},n.prototype.getOneCase=function(e){var t=this;return this._resourceProvider.get$("workflow/case/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.getOptionsEnumeration=function(e,t){var r=this;return this._resourceProvider.get$("workflow/case/"+e+"/field/"+t,this.SERVER_URL).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.ctorParameters=function(){return[{type:rt},{type:Me}]},n.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new n(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:n,providedIn:"root"}),n.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:rt},{type:Me}]},n}(nt),ea=function(){function e(e,t,r,n,i,o){var a=this;this._sideMenuControl=e,this._formBuilder=t,this._snackBarService=r,this._caseResourceService=n,this._hotkeysService=i,this._translate=o,this.processFormControl=new l.FormControl("",l.Validators.required),this.titleFormControl=new l.FormControl("",l.Validators.required),this.options=[],this.colors=[{value:"panel-primary-icon",viewValue:"Primary"},{value:"panel-accent-icon",viewValue:"Accent"}],this._sideMenuControl.data&&(this._injectedData=this._sideMenuControl.data),this._injectedData||this.closeNoNets(),this._hotkeysService.add(new ye.Hotkey("enter",(function(e){return a.nextStep(),!1}))),this._hasMultipleNets$=new ne.ReplaySubject(1),this._notInitialized$=new ne.BehaviorSubject(!0),this._options$=new ne.ReplaySubject(1),this._allowedNetsSubscription=this._injectedData.allowedNets$.pipe(le.map((function(e){return e.map((function(e){return{value:e.stringId,viewValue:e.title,version:e.version}}))})),le.map((function(e){return a._sideMenuControl.allVersionEnabled?e:a.removeOldVersions(e)})),le.tap((function(e){0===e.length&&a.closeNoNets(),a.options=e,a._hasMultipleNets$.next(e.length>1)}))).subscribe((function(e){a._options$.next(e),a._notInitialized$.closed||(a._notInitialized$.next(!1),a._notInitialized$.complete())})),this.filteredOptions$=ne.combineLatest([this._options$,this.processFormControl.valueChanges.pipe(le.startWith(""))]).pipe(le.map((function(e){var t=e[0],r="string"==typeof e[1]||null===e[1]?e[1]:e[1].viewValue;return r?a._filter(r,t):t.slice()})),le.tap((function(e){1===e.length&&a.processFormControl.setValue(e[0],{emitEvent:!1})})))}return e.prototype.ngOnDestroy=function(){this._hasMultipleNets$.complete(),this._allowedNetsSubscription.unsubscribe()},Object.defineProperty(e.prototype,"hasMultipleNets$",{get:function(){return this._hasMultipleNets$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notInitialized$",{get:function(){return this._notInitialized$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.stepChange=function(e){this._sideMenuControl.publish({opened:!0,message:"Active step has changed",data:e})},e.prototype.displayFn=function(e){return e&&e.viewValue?e.viewValue:""},e.prototype.createNewCase=function(){var e=this;if(this.titleFormControl.valid||!this.isCaseTitleRequired()){var t={title:""===this.titleFormControl.value?null:this.titleFormControl.value,color:"panel-primary-icon",netId:1===this.options.length?this.options[0].value:this.processFormControl.value.value};this._caseResourceService.createCase(t).subscribe((function(r){e._snackBarService.openSuccessSnackBar(void 0===r.outcome.message?e._translate.instant("side-menu.new-case.createCase")+" "+t.title:r.outcome.message),e._sideMenuControl.close({opened:!1,message:void 0===r.outcome.message?"Confirm new case setup":r.outcome.message,data:r.outcome.aCase})}),(function(t){return e._snackBarService.openErrorSnackBar(t.message?t.message:t)}))}},e.prototype._filter=function(e,t){var r=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return t.filter((function(e){return 0===e.viewValue.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(r)}))},e.prototype.closeNoNets=function(){this._snackBarService.openErrorSnackBar(this._translate.instant("side-menu.new-case.noNets")),this._sideMenuControl.close({opened:!1})},e.prototype.nextStep=function(){this.stepper1&&(1===this.stepper1.selectedIndex?this.createNewCase():this.stepper1.next()),this.stepper2&&(0===this.stepper2.selectedIndex?this.createNewCase():this.stepper2.next())},e.prototype.titleShortening=function(){var e;if(this.toolbar&&this.toolbar._elementRef&&this.toolbar._elementRef.nativeElement&&this.toolbar._elementRef.nativeElement.offsetWidth)switch(this.toolbar._elementRef.nativeElement.offsetWidth){case 296:e=22;break;case 496:e=42;break;case 246:e=18;break;default:e=32}else e=32;var t=this._translate.instant("side-menu.new-case.case"),r="string"==typeof this.processFormControl.value||null===this.processFormControl.value?void 0:this.processFormControl.value.viewValue,n=void 0===r?t:t+" - "+r;return n.length>e?n.slice(0,e)+"...":n},e.prototype.removeOldVersions=function(e){var t,r,n,i,o=Object.assign([],e),a=new Set(e.map((function(e){return e.value}))),s=new Array;try{for(var u=we(a),c=u.next();!c.done;c=u.next()){var l=c.value,p={value:l,version:"1.0.0",viewValue:""};try{for(var d=(n=void 0,we(o)),h=d.next();!h.done;h=d.next()){var f=h.value;l!==f.value||ve.lt(f.version,p.version)||(p=f)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}s.push(p)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return s},e.prototype.isCaseTitleEnabled=function(){var e,t,r;return!(null!==(r=null===(t=null===(e=this._injectedData)||void 0===e?void 0:e.newCaseCreationConfiguration)||void 0===t?void 0:t.enableCaseTitle)&&void 0!==r&&!r)},e.prototype.isCaseTitleRequired=function(){var e,t,r;return this.isCaseTitleEnabled()&&!(null!==(r=null===(t=null===(e=this._injectedData)||void 0===e?void 0:e.newCaseCreationConfiguration)||void 0===t?void 0:t.isCaseTitleRequired)&&void 0!==r&&!r)},e.prototype.showVersion=function(e){void 0!==e&&void 0!==e.value&&void 0!==e.value.version&&(this.netVersion=e.value.version)},e.prototype.checkVersion=function(e){void 0===("string"==typeof e||null===e?void 0:e.version)&&(this.netVersion="")},e.ctorParameters=function(){return[{type:Gr,decorators:[{type:t.Inject,args:[$r]}]},{type:l.FormBuilder},{type:ft},{type:Jo},{type:ye.HotkeysService},{type:ue.TranslateService}]},e.propDecorators={toolbar:[{type:t.ViewChild,args:["toolbar"]}],stepper1:[{type:t.ViewChild,args:["stepper1"]}],stepper2:[{type:t.ViewChild,args:["stepper2"]}]},e}(),ta=function(){function e(e){this._sideMenuControl=e,this.searchUserControl=new l.FormControl,this._sideMenuControl.data&&(this.injectedData=this._sideMenuControl.data)}return Object.defineProperty(e.prototype,"initiallySelectedUser",{get:function(){return this.injectedData?this.injectedData.value:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roles",{get:function(){return this.injectedData?this.injectedData.roles:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"negativeRoles",{get:function(){return this.injectedData?this.injectedData.negativeRoles:[]},enumerable:!1,configurable:!0}),e.prototype.userWasSelected=function(e){this._currentUser=e,this._sideMenuControl.publish({opened:!0,message:"New selected user",data:this._currentUser})},e.prototype.assign=function(){void 0!==this._currentUser&&this._sideMenuControl.close({opened:!1,message:"Selected user was confirmed",data:this._currentUser})},e}(),ra=function(){function e(e){this._userListService=e,this.SEARCH_DEBOUNCE_TIME=600,this.users$=this._userListService.users$,this.userSelected=new t.EventEmitter,this._selectedUser$=new ne.ReplaySubject(1)}return e.prototype.ngOnInit=function(){var e=this;this.initiallySelectedUser&&this._selectedUser$.next(this.initiallySelectedUser.id),this.searchUserControl.valueChanges.pipe(le.debounceTime(this.SEARCH_DEBOUNCE_TIME)).subscribe((function(t){e._userListService.reload(t)})),this.roles instanceof Array?this._userListService.rolesQuery=this.roles:void 0!==this.roles&&null!==this.roles&&(this._userListService.rolesQuery=Object.keys(this.roles)),this.negativeRoles instanceof Array?this._userListService.negativeRolesQuery=this.negativeRoles:void 0!==this.negativeRoles&&null!==this.negativeRoles&&(this._userListService.negativeRolesQuery=Object.keys(this.negativeRoles))},e.prototype.ngOnDestroy=function(){this._selectedUser$.complete()},e.prototype.trackBy=function(e,t){return t.id},Object.defineProperty(e.prototype,"loading",{get:function(){return this._userListService.loading},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedUser$",{get:function(){return this._selectedUser$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.select=function(e){this.userSelected.emit(new fr(e.id,e.name,e.surname,e.email)),this._markSelectedUser(e)},e.prototype.loadNextPage=function(){this.viewport&&this._userListService.nextPage(this.viewport.getRenderedRange().end,this.viewport.getDataLength())},e.prototype._markSelectedUser=function(e){e&&this._selectedUser$.next(e.id)},e.propDecorators={initiallySelectedUser:[{type:t.Input}],searchUserControl:[{type:t.Input}],roles:[{type:t.Input}],negativeRoles:[{type:t.Input}],userSelected:[{type:t.Output}],viewport:[{type:t.ViewChild,args:[c.CdkVirtualScrollViewport]}]},e}(),na=function(){function e(){}return e.propDecorators={user:[{type:t.Input}],selectedId$:[{type:t.Input}]},e}(),ia=function(){function r(e,t){var r=this;this._configService=e,this._log=t,this._filters=new Map;var n=e.get().filters;n&&Object.keys(n).forEach((function(e){var i=n[e];if(i.type&&i.body)if(Array.isArray(i.body)){if(!i.mergeOperator)return void t.warn("Filter '"+e+"' contains multiple filters, but doesn't define a merge operator. Skipping.");r.warnIfFilterExists(e);var o=new nn(e,i.type,i.body,i.mergeOperator,i.title);r._filters.set(e,o)}else{r.warnIfFilterExists(e);o=new on(e,i.type,i.body,i.title);r._filters.set(e,o)}else t.warn("Filter '"+e+"' doesn't define all the necessary properties. Skipping.")}))}return r.prototype.warnIfFilterExists=function(e){this._filters.has(e)&&this._log.warn("Filter with id '"+e+"' already exists in the repository and will be replaced!")},r.prototype.getFilter=function(e){var t=this._filters.get(e);return t&&(t=t.clone()),t},r.prototype.saveFilter=function(e){this.warnIfFilterExists(e.id),this._filters.set(e.id,e.clone())},r.prototype.getCaseFilterList=function(){return this.getFilterList((function(t){return t.type===e.FilterType.CASE}))},r.prototype.getTaskFilterList=function(){return this.getFilterList((function(t){return t.type===e.FilterType.TASK}))},r.prototype.getFilterList=function(e){var t=[];return this._filters.forEach((function(r){e(r)&&t.push(r.id)})),t},r.prototype.getFilters=function(e){var t=this,r=[];return e.forEach((function(e){var n=t.getFilter(e);void 0!==n&&r.push(n)})),r},r.ctorParameters=function(){return[{type:Me},{type:$e}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](Me),t["ɵɵinject"]($e))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:Me},{type:$e}]},r}(),oa=function(){function e(e,t){var r;this._unfiltered=e,this._filterPredicate=t,this.filtered=[],(r=this.filtered).push.apply(r,ke(this._unfiltered))}return e.prototype.filter=function(e){var t=this;this.filtered.splice(0,this.filtered.length),this._unfiltered.forEach((function(r){t._filterPredicate(r,e)&&t.filtered.push(r)}))},e}(),aa=function(){function r(t,r){var n=this;this._sideMenuControl=t,this._filterRepository=r,this._filterPredicate=function(e,t){return e.title?e.title.toLocaleLowerCase().includes(t.toLocaleLowerCase()):e.id.toLocaleLowerCase().includes(t.toLocaleLowerCase())};var i=t.data,o=[],a=[];i&&i.filterIdsConstraint?this._filterRepository.getFilters(i.filterIdsConstraint).forEach((function(t){t.type!==e.FilterType.CASE||i.filterTypeConstraint&&i.filterTypeConstraint!==e.FilterType.CASE?t.type!==e.FilterType.TASK||i.filterTypeConstraint&&i.filterTypeConstraint!==e.FilterType.TASK||a.push(t):o.push(t)})):(i&&i.filterTypeConstraint&&i.filterTypeConstraint!==e.FilterType.CASE||(o=this._filterRepository.getFilters(this._filterRepository.getCaseFilterList())),i&&i.filterTypeConstraint&&i.filterTypeConstraint!==e.FilterType.TASK||(a=this._filterRepository.getFilters(this._filterRepository.getTaskFilterList())));this.caseFilters=new oa(o,this._filterPredicate),this.taskFilters=new oa(a,this._filterPredicate),this.searchFormControl=new l.FormControl,this.subValue=this.searchFormControl.valueChanges.subscribe((function(e){return n.filterFilters(e)}))}return r.prototype.ngOnDestroy=function(){this.subValue.unsubscribe()},r.prototype.filterSelected=function(e){this._selectedFilter=e,this._sideMenuControl.publish({opened:!0,message:"New selected filter",data:this._selectedFilter})},r.prototype.filterSelectionConfirmed=function(){void 0!==this._selectedFilter&&this._sideMenuControl.close({opened:!1,message:"Selected filter was confirmed",data:this._selectedFilter})},r.prototype.caseFilterSelected=function(e){e.options[0].selected?(this.filterSelected(e.options[0].value),this.taskFilterList&&this.taskFilterList.deselectAll(),this.caseFilterList.deselectAll(),e.options[0].selected=!0):this.filterSelected(void 0)},r.prototype.taskFilterSelected=function(e){e.options[0].selected?(this.filterSelected(e.options[0].value),this.caseFilterList&&this.caseFilterList.deselectAll(),this.taskFilterList.deselectAll(),e.options[0].selected=!0):this.filterSelected(void 0)},r.prototype.filterFilters=function(e){this.caseFilters.filter(e),this.taskFilters.filter(e)},r.ctorParameters=function(){return[{type:Gr,decorators:[{type:t.Inject,args:[$r]}]},{type:ia}]},r.propDecorators={caseFilterList:[{type:t.ViewChild,args:["caseFilterList"]}],taskFilterList:[{type:t.ViewChild,args:["taskFilterList"]}]},r}(),sa=function(){function e(){}return e.prototype.ngOnInit=function(){this.filter.title?this.text=this.filter.title:this.text=this.filter.id},e.propDecorators={filter:[{type:t.Input}]},e}(),ua=function(){function e(e){var t=this;this._sideMenuControl=e,this.selectorFormControl=new l.FormControl("",l.Validators.required),this.data=e.data,this.filteredOptions=this.selectorFormControl.valueChanges.pipe(le.startWith(""),le.map((function(e){return"string"==typeof e?e:e.value})),le.map((function(e){return e?t._filter(e):t.data.options.slice()})))}return e.prototype.submit=function(){this.selectorFormControl.valid&&this._sideMenuControl.close({opened:!1,message:"Selected option was confirmed",data:this.selectorFormControl.value})},e.prototype.displayFn=function(e){return e.text},e.prototype._filter=function(e){var t=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return this.data.options.filter((function(e){return 0===e.value.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t)}))},e}(),ca=function(){function e(e){this._sortableView=e,this._selectedHeaders$=new ne.ReplaySubject(1)}return Object.defineProperty(e.prototype,"selectedHeaders$",{get:function(){return this._selectedHeaders$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.initializeHeader=function(e){var t=this;e.headerService.selectedHeaders$.subscribe((function(e){return t._selectedHeaders$.next(e)})),this._sortableView&&this._sortableView.registerHeaderChange(e.headerService.headerChange$)},e.prototype.ngOnDestroy=function(){this._selectedHeaders$.complete()},e}(),la=function(e){function t(t){var r=e.call(this,t)||this;return r.taskViewService=t,r.tasks$=r.taskViewService.tasks$,r.loading$=r.taskViewService.loading$,r}return Ie(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(ca);(Bo=e.TaskEvent||(e.TaskEvent={})).ASSIGN="assign",Bo.FINISH="finish",Bo.CANCEL="cancel",Bo.DELEGATE="delegate",Bo.SET_DATA="set data",Bo.GET_DATA="get data";var pa,da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.resolve=function(e){this.next(e),this.complete()},t}(ne.Subject),ha=function(){function e(){}return e.prototype.create=function(e){var t=new da;return t.subscribe((function(r){e(r),t.complete()})),t},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}();(pa=e.UserFilterConstants||(e.UserFilterConstants={})).FILTER_NET_IDENTIFIER="filter",pa.SET_FILTER_METADATA_TRANSITION_ID="frontend_create",pa.NEW_FILTER_TRANSITION_ID="newFilter",pa.FILTER_FIELD_ID="filter",pa.FILTER_TYPE_FIELD_ID="filter_type",pa.ORIGIN_VIEW_ID_FIELD_ID="origin_view_id",pa.FILTER_CASE_ID_FIELD_ID="filter_case_id",pa.PARENT_FILTER_CASE_ID_FIELD_ID="parent_filter_id";var fa=new t.InjectionToken("NaeUserAssignComponent"),ga=new t.InjectionToken("NaeFilesUploadComponent"),ya=new t.InjectionToken("NaeNewCaseComponent"),va=new t.InjectionToken("NaeOptionSelectorComponent"),ma=new t.InjectionToken("NaeSaveFilterComponent"),_a=new t.InjectionToken("NaeLoadFilterComponent");function ba(e,t){var r=Ta(e,t);return-1===r?void 0:e[r]}function Ta(e,t){return e.findIndex((function(e){return e.stringId===t}))}function Sa(e,t){var r=Ia(e,t);if(void 0!==r)return e[r.dataGroupIndex].fields[r.fieldIndex]}function Ia(e,t){for(var r=0;r<e.length;r++){var n=Ta(e[r].fields,t);if(-1!==n)return{dataGroupIndex:r,fieldIndex:n}}}var Ea,wa=function(){function r(t,r,n,i,o,a,s,u,c){var l=this;this._caseService=t,this._taskService=r,this._processService=n,this._callChainService=i,this._sideMenuService=o,this._log=a,this._categoryResolverService=s,this._saveFilterComponent=u,this._loadFilterComponent=c,this._initialized$=new ne.ReplaySubject(1),this._processService.getNet(e.UserFilterConstants.FILTER_NET_IDENTIFIER).subscribe((function(e){l._filterNet=e,l._initialized$.next(!0)}),(function(e){l._log.error("Filter net could not be loaded with error",e),l._initialized$.next(!1)}))}return r.prototype.ngOnDestroy=function(){this._initialized$.complete()},r.prototype.delete=function(e){var t=this,r=new ne.ReplaySubject(1);return this._caseService.deleteCase(e).subscribe((function(e){e.success?(t._log.debug("Filter case delete success",e),r.next(!0),r.complete()):(t._log.error("Filter case delete failure",e),r.next(!1),r.complete())}),(function(e){t._log.error("Filter case delete error",e),r.next(!1),r.complete()})),r.asObservable()},r.prototype.load=function(t,r){if((null==r?void 0:r.type)===e.FilterType.TASK)throw this._log.error("The additional filter applied to UserFiltersService.load() must be of type Case",r),Error("The additional filter applied to UserFiltersService.load() must be of type Case");var n=on.fromCaseQuery({process:{identifier:e.UserFilterConstants.FILTER_NET_IDENTIFIER},query:"dataSet."+e.UserFilterConstants.FILTER_TYPE_FIELD_ID+".keyValue:"+t});r&&(n=n.merge(r,e.MergeOperator.AND));var i=new ne.ReplaySubject(1);return this._sideMenuService.open(this._loadFilterComponent,e.SideMenuSize.LARGE,{filter:n}).onClose.pipe(le.filter((function(e){return!e.opened})),le.take(1)).subscribe((function(e){"Side menu closed unexpectedly"===e.message?i.next():i.next(e.data),i.complete()})),i.asObservable()},r.prototype.save=function(t,r,n,i,o,a,s,u){var c=this;if(void 0===o&&(o={}),void 0===a&&(a=!0),void 0===s&&(s=!0),void 0===u&&(u=null),!t.additionalFiltersApplied)return this._log.warn("The provided SearchService contains no filter besides the base filter. Nothing to save."),ne.of(void 0);var l=new ne.ReplaySubject(1);return this.createFilterCaseAndSetData(t,r,n,i,o,a,s,u).subscribe((function(o){c._sideMenuService.open(c._saveFilterComponent,e.SideMenuSize.LARGE,{newFilterCaseId:o}).onClose.pipe(le.filter((function(e){return!e.opened})),le.take(1)).subscribe((function(e){"Side menu closed unexpectedly"===e.message?(c.delete(o),l.next()):l.next({filterCaseId:o,allowedNets:ke(r),originViewId:i,filterMetadata:c.filterMetadataFromSearchService(t,n,a,s),filter:on.fromQuery({query:t.rootPredicate.query.value},t.filterType)}),l.complete()}))})),l.asObservable()},r.prototype.createFilterCaseAndSetData=function(t,r,n,i,o,a,s,u){var c=this;void 0===o&&(o={}),void 0===a&&(a=!0),void 0===s&&(s=!0),void 0===u&&(u=null);var l=new ne.ReplaySubject(1);return this.whenInitialized((function(){c._caseService.createCase({title:c._filterNet.defaultCaseName,netId:c._filterNet.stringId}).subscribe((function(p){c._taskService.getTasks(on.fromTaskQuery({case:{id:p.outcome.aCase.stringId}})).subscribe((function(d){var h,f;if(!ii(d))throw new Error("Expected filter process to contain tasks, but none were found!");var g=d.content.find((function(t){return t.transitionId===e.UserFilterConstants.SET_FILTER_METADATA_TRANSITION_ID}));if(void 0===g)throw new Error("Expected filter process to contain task '"+e.UserFilterConstants.SET_FILTER_METADATA_TRANSITION_ID+"', but none was found!");var y,v=((h={})[e.UserFilterConstants.FILTER_TYPE_FIELD_ID]={type:e.FieldTypeResource.ENUMERATION_MAP,value:t.filterType},h[e.UserFilterConstants.FILTER_FIELD_ID]={type:e.FieldTypeResource.FILTER,value:t.rootPredicate.query.value,allowedNets:r,filterMetadata:c.filterMetadataFromSearchService(t,n,a,s)},h);null!=u&&(y=Sa(u,e.UserFilterConstants.FILTER_CASE_ID_FIELD_ID)),void 0!==y?v[e.UserFilterConstants.PARENT_FILTER_CASE_ID_FIELD_ID]={type:e.FieldTypeResource.TEXT,value:y.value}:void 0===i&&""===i||(v[e.UserFilterConstants.ORIGIN_VIEW_ID_FIELD_ID]={type:e.FieldTypeResource.TEXT,value:i}),c.assignSetDataFinish(g,((f={})[g.stringId]=Ee(Ee({},v),o),f),c._callChainService.create((function(e){if(!e)throw new Error("Filter instance could not be initialized");l.next(p.outcome.aCase.stringId),l.complete()})))}))}))}),"saveWithSideMenu"),l.asObservable()},r.prototype.whenInitialized=function(e,t,r){var n=this;void 0===r&&(r=function(){n._log.error("UserFilterService failed to initialize and the called method"+(t?" ("+t+")":"")+" cannot be performed")}),this._initialized$.asObservable().pipe(le.take(1)).subscribe((function(t){t?e():r()}))},r.prototype.assignSetDataFinish=function(e,t,r){var n=this;this._taskService.assignTask(e.stringId).subscribe((function(i){i.error&&(n._log.error("Could not assign task '"+e.title+"'",e,i.error),r.next(!1)),n._taskService.setData(e.stringId,t).subscribe((function(){n._taskService.finishTask(e.stringId).subscribe((function(t){t.error&&(n._log.error("Could not finish task '"+e.title+"'",e,t.error),r.next(!1)),r.next(!0)}),(function(t){n._log.error("Could not finish task '"+e.title+"'",e,t),r.next(!1)}))}),(function(i){n._log.error("Could not set data of task '"+e.title+"'",e,t,i),r.next(!1)}))}),(function(t){n._log.error("Could not assign task '"+e.title+"'",e,t),r.next(!1)}))},r.prototype.filterMetadataFromSearchService=function(e,t,r,n){var i=this;return{filterType:e.filterType,predicateMetadata:e.createPredicateMetadata(),searchCategories:t.map((function(e){return i._categoryResolverService.serialize(e)})),defaultSearchCategories:r,inheritAllowedNets:n}},r.ctorParameters=function(){return[{type:Jo},{type:Sr},{type:Ni},{type:ha},{type:Qr},{type:$e},{type:Oi},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ma]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[_a]}]}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](Jo),t["ɵɵinject"](Sr),t["ɵɵinject"](Ni),t["ɵɵinject"](ha),t["ɵɵinject"](Qr),t["ɵɵinject"]($e),t["ɵɵinject"](Oi),t["ɵɵinject"](ma,8),t["ɵɵinject"](_a,8))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:Jo},{type:Sr},{type:Ni},{type:ha},{type:Qr},{type:$e},{type:Oi},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ma]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[_a]}]}]},r}(),Ca=function(r){function n(e,t,n,i){var o=r.call(this,i)||this;return o._sideMenuControl=e,o._userFilterService=t,o._log=n,o._sideMenuControl.data&&(o._injectedData=o._sideMenuControl.data),o}return Ie(n,r),n.prototype.processTaskEvents=function(t){t.success&&(t.event===e.TaskEvent.FINISH&&this._sideMenuControl.close({opened:!1,message:"Filter saved"}),t.event===e.TaskEvent.CANCEL&&(this._userFilterService.delete(this._injectedData.newFilterCaseId),this._sideMenuControl.close({opened:!1,message:"Filter save canceled"})))},n.ctorParameters=function(){return[{type:Gr,decorators:[{type:t.Inject,args:[$r]}]},{type:wa},{type:$e},{type:Ao}]},n}(la);(Ea=e.HeaderType||(e.HeaderType={})).CASE="case",Ea.TASK="task",Ea.WORKFLOW="workflow";var ka,Oa,Fa,Aa=function(t){function r(r,n,i,o){void 0===i&&(i=[{authority:"ROLE_USER"}]),void 0===o&&(o={enableCaseTitle:!0,isCaseTitleRequired:!0});var a=t.call(this,r)||this;return a._caseViewService=r,a._overflowService=n,a._authority=i,a._newCaseCreationConfig=o,a.MINIMAL_OFFSET=120,a.headerType=e.HeaderType.CASE,a._caseViewService.loading$.subscribe((function(e){a.loading=e})),a.cases$=a._caseViewService.cases$,a.authorityToCreate=i.map((function(e){return e.authority})),a}return Ie(r,t),r.prototype.createNewCase=function(){return!1===this._newCaseCreationConfig.enableCaseTitle&&1===this._caseViewService.getAllowedNetsCount()?this._caseViewService.createDefaultNewCase():this._caseViewService.createNewCase(this._newCaseCreationConfig)},r.prototype.hasAuthority=function(){return this._caseViewService.hasAuthority(this.authorityToCreate)&&this._caseViewService.getAllowedNetsCount()>0},r.prototype.getWidth=function(){return this._overflowService&&this._overflowService.overflowMode&&this._overflowService.columnCount?this._overflowService.columnCount*this._overflowService.columnWidth+this.MINIMAL_OFFSET+"px":"100%"},r.prototype.getOverflowStatus=function(){return!!this._overflowService&&this._overflowService.overflowMode},r}(ca),Ra=new t.InjectionToken("NaeNewCaseConfiguration");(ka=e.AssignPolicy||(e.AssignPolicy={})).manual="MANUAL",ka.auto="AUTO",(Oa=e.FinishPolicy||(e.FinishPolicy={})).manual="MANUAL",Oa.autoNoData="AUTO_NO_DATA",(Fa=e.DataFocusPolicy||(e.DataFocusPolicy={})).manual="MANUAL",Fa.autoRequired="AUTO_EMPTY_REQUIRED";var Pa,Na=function(){function r(e,t){this.userComparator=e,this._userService=t}return r.prototype.hasTaskPermission=function(e,t){if(!e)return!1;var r=this.checkRolePerms(e.roles,t),n=this.checkUserPerms(e.users,t);return this.resolvePermissions(r,n)},r.prototype.hasCasePermission=function(e,t){if(!e)return!1;var r=this.checkRolePerms(e.permissions,t),n=this.checkUserPerms(e.users,t);return this.resolvePermissions(r,n)},r.prototype.resolvePermissions=function(e,t){return void 0===t?!!e:t},r.prototype.hasNetPermission=function(e,t){var r=this;return!!(t&&t.permissions&&e&&t.permissions instanceof Object)&&(!Object.keys(t.permissions).some((function(n){return!!r._userService.hasRoleById(n)&&!1===t.permissions[n][e]}))&&(!Object.keys(t.permissions).filter((function(r){return Object.keys(t.permissions[r]).some((function(t){return t===e}))})).some((function(r){return!!t.permissions[r][e]}))||Object.keys(t.permissions).some((function(n){return!!r._userService.hasRoleById(n)&&!!t.permissions[n][e]}))))},r.prototype.canAssign=function(t){return!!t&&t.assignPolicy===e.AssignPolicy.manual&&!t.user&&this.hasTaskPermission(t,ho.ASSIGN)},r.prototype.canCancel=function(e){return!!e&&!!e.user&&this.hasTaskPermission(e,ho.CANCEL)&&(void 0===e.assignedUserPolicy||void 0===e.assignedUserPolicy.cancel||e.assignedUserPolicy.cancel)},r.prototype.canReassign=function(e){return!!e&&!!e.user&&this.userComparator.compareUsers(e.user)&&this.hasTaskPermission(e,ho.DELEGATE)&&(void 0===e.assignedUserPolicy||void 0===e.assignedUserPolicy.reassign||e.assignedUserPolicy.reassign)},r.prototype.canFinish=function(e){return!!e&&!!e.user&&this.userComparator.compareUsers(e.user)&&this.hasTaskPermission(e,ho.FINISH)},r.prototype.canCollapse=function(t){return!!t&&t.assignPolicy===e.AssignPolicy.manual},r.prototype.checkRolePerms=function(e,t){var r,n=this;return e&&Object.keys(e).forEach((function(i){void 0!==e[i][t]&&n._userService.hasRoleById(i)&&(r=(void 0===r||r)&&e[i][t])})),r},r.prototype.checkUserPerms=function(e,t){var r;if(e){var n=this._userService.user.id;Object.keys(e).forEach((function(i){i===n&&void 0!==e[i][t]&&(r=(void 0===r||r)&&e[i][t])}))}return r},r.ctorParameters=function(){return[{type:io},{type:at}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](io),t["ɵɵinject"](at))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:io},{type:at}]},r}(),Da=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h){var f=r.call(this,l)||this;f._allowedNetsService=e,f._sideMenuService=t,f._caseResourceService=n,f._log=i,f._snackBarService=o,f._searchService=a,f._translate=s,f._user=u,f._processService=c,f._newCaseComponent=p,f._permissionService=h,f.DEFAULT_NEW_CASE_CONFIGURATION={useCachedProcesses:!0},f._newCaseConfiguration=Ee({},f.DEFAULT_NEW_CASE_CONFIGURATION),null!==d&&Object.assign(f._newCaseConfiguration,d),f._loading$=new wo,f._searchService.activeFilter$.subscribe((function(){f.reload()})),f._endOfData=!1,f._pagination={size:25,totalElements:void 0,totalPages:void 0,number:-1},f._nextPage$=new ne.BehaviorSubject(new Eo(f.activeFilter,Object.assign({},f._pagination,{number:0})));var g=f._nextPage$.pipe(le.mergeMap((function(e){return f.loadPage(e)})),le.map((function(e){return e.requestContext&&e.requestContext.clearLoaded?Co([{cases:{},requestContext:null},e]):ne.of(e)})),le.concatMap((function(e){return e})),le.scan((function(e,t){return null===t.requestContext?t.cases:(f._loading$.off(t.requestContext.filter),Object.assign(f._pagination,t.requestContext.pagination),Ee(Ee({},e),t.cases))}),{}));return f._cases$=g.pipe(le.map((function(e){return Object.values(e)}))),f}return Ie(n,r),n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this._loading$.complete(),this._nextPage$.complete()},Object.defineProperty(n.prototype,"loading",{get:function(){return this._loading$.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cases$",{get:function(){return this._cases$},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeFilter",{get:function(){return this._searchService.activeFilter},enumerable:!1,configurable:!0}),n.prototype.loadPage=function(e){var t=this;if(null===e||e.pageNumber<0)return ne.of({cases:{},requestContext:e});var r=new ie.HttpParams;return r=this.addSortParams(r),r=this.addPageParams(r,e.pagination),this._loading$.on(e.filter),this._caseResourceService.searchCases(e.filter,r).pipe(le.catchError((function(r){return t._log.error("Loading cases has failed!",r),t._loading$.off(e.filter),ne.of({content:[],pagination:Ee({},t._pagination)})})),le.filter((function(){var r=e.filter===t._searchService.activeFilter;return r||(t._loading$.off(e.filter),t._log.debug("Received cases page is no longer relevant since the active filter has changed before it could arrive. Discarding...")),r})),le.tap((function(t){Object.assign(e.pagination,t.pagination)})),le.tap((function(e){t._endOfData=!Array.isArray(e.content)||0===e.content.length||e.pagination.number===e.pagination.totalPages})),le.map((function(e){return Array.isArray(e.content)?e:Ee(Ee({},e),{content:[]})})),le.map((function(e){return e.content.reduce((function(e,t){var r;return Ee(Ee({},e),((r={})[t.stringId]=t,r))}),{})})),le.map((function(t){return{cases:t,requestContext:e}})))},n.prototype.nextPage=function(e,t,r){void 0===r&&((r=new Eo(this.activeFilter,this._pagination)).pagination.number+=1),this.isLoadingRelevantFilter(r)||this._endOfData||e.end===t&&this._nextPage$.next(r)},n.prototype.isLoadingRelevantFilter=function(e){return void 0===e||this._loading$.isActiveWithFilter(e.filter)},n.prototype.createNewCase=function(t){var r=this;void 0===t&&(t={enableCaseTitle:!0,isCaseTitleRequired:!0});var n=new ne.Subject;return this._sideMenuService.open(this._newCaseComponent,e.SideMenuSize.MEDIUM,{allowedNets$:this.getNewCaseAllowedNets(),newCaseCreationConfiguration:t}).onClose.subscribe((function(e){r._log.debug(e.message,e.data),e.data&&(r.reload(),n.next(e.data)),n.complete()})),n.asObservable()},n.prototype.createDefaultNewCase=function(){var e=this,t=new ne.Subject;return this.getNewCaseAllowedNets().subscribe((function(r){e._caseResourceService.createCase({title:null,color:"panel-primary-icon",netId:r[0].stringId}).subscribe((function(r){e._snackBarService.openSuccessSnackBar(e._translate.instant("side-menu.new-case.createCase")+" "+e._translate.instant("side-menu.new-case.defaultCaseName")),e.reload(),t.next(r.outcome.aCase),t.complete()}),(function(t){return e._snackBarService.openErrorSnackBar(t.message?t.message:t)}))})),t},n.prototype.getNewCaseAllowedNets=function(){var e=this;return this._newCaseConfiguration.useCachedProcesses?this._allowedNetsService.allowedNets$.pipe(le.map((function(t){return t.filter((function(t){return e._permissionService.hasNetPermission(ho.CREATE,t)}))}))):this._allowedNetsService.allowedNets$.pipe(le.switchMap((function(t){return e._processService.getNetReferences(t.map((function(e){return e.identifier}))).pipe(le.map((function(t){return t.filter((function(t){return e._permissionService.hasNetPermission(ho.CREATE,t)}))})))})))},n.prototype.getAllowedNetsCount=function(){return void 0===this._allowedNetsService.allowedNets?0:this._allowedNetsService.allowedNets.length},n.prototype.addPageParams=function(e,t){return e=(e=e.set("size",t.size+"")).set("page",t.number+"")},n.prototype.getDefaultSortParam=function(){return"stringId,desc"},n.prototype.getMetaFieldSortId=function(){switch(this._lastHeaderSearchState.fieldIdentifier){case e.CaseMetaField.TITLE:return"title.keyword";case e.CaseMetaField.VISUAL_ID:return"visualId.keyword";case e.CaseMetaField.CREATION_DATE:return"creationDateSortable";default:return this._lastHeaderSearchState.fieldIdentifier}},n.prototype.reload=function(){if(this._cases$&&this._pagination){this._endOfData=!1;var e=new Eo(this.activeFilter,this._pagination,!0);e.pagination.number=0;this.nextPage({start:-1,end:0},0,e)}},n.prototype.hasAuthority=function(e){return this._user.hasAuthority(e)},n.prototype.viewEnabled=function(e){return this._permissionService.hasCasePermission(e,ho.VIEW)},n.ctorParameters=function(){return[{type:Di},{type:Qr},{type:Jo},{type:$e},{type:ft},{type:ji},{type:ue.TranslateService},{type:at},{type:Ni},{type:Gn},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ya]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ra]}]},{type:Na}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Di},{type:Qr},{type:Jo},{type:$e},{type:ft},{type:ji},{type:ue.TranslateService},{type:at},{type:Ni},{type:Gn},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ya]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ra]}]},{type:Na}]},n}(ko),La=function(r){function n(e,t,n){var i=r.call(this,n)||this;return i._sideMenuControl=e,i._log=t,i._sideMenuControl.data&&(i._injectedData=i._sideMenuControl.data),i}return Ie(n,r),n.prototype.handleCaseClick=function(t){var r=vo(t,e.UserFilterConstants.FILTER_FIELD_ID);this._sideMenuControl.close({opened:!1,message:"Filter selected",data:{allowedNets:r.allowedNets,filterMetadata:r.filterMetadata,originViewId:vo(t,e.UserFilterConstants.ORIGIN_VIEW_ID_FIELD_ID).value,filterCase:t,filterCaseId:t.stringId,filter:new on(t.stringId,r.filterMetadata.filterType,{query:r.value},t.title)}})},n.ctorParameters=function(){return[{type:Gr,decorators:[{type:t.Inject,args:[$r]}]},{type:$e},{type:Da}]},n}(Aa),ja=function(){function e(e){this._sideMenuService=e,this.portalWrapper=new zr(null,null)}return e.prototype.ngAfterViewInit=function(){this._sideMenuService.registerSideMenu(this)},e.prototype.open=function(e){return this.portalWrapper=e,me.fromPromise(this.sideMenu.open())},e.prototype.close=function(e){return me.fromPromise(e.sideMenu.close()).pipe(le.tap((function(t){"close"===t&&(e.portalWrapper=e.portalWrapper=new zr(null,null))})))},e.prototype.isOpened=function(){return this.sideMenu.opened},e.prototype.openedChange=function(){return this.sideMenu.openedChange.asObservable()},e.propDecorators={sideMenu:[{type:t.ViewChild,args:["rightSideMenu"]}]},e}(),Ma=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[Nt],exports:[Nt],imports:[r.CommonModule,Fe,l.FormsModule,p.FlexLayoutModule],entryComponents:[Nt]}]}],e}(),xa=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[Pt],exports:[Pt],imports:[r.CommonModule,Fe,l.FormsModule,p.FlexLayoutModule],entryComponents:[Pt]}]}],e}(),Va=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[Dt],exports:[Dt],imports:[r.CommonModule,Fe,l.FormsModule,p.FlexLayoutModule,Tt],entryComponents:[Dt]}]}],e}(),Ua=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,Fe,l.FormsModule,p.FlexLayoutModule,Ma,xa,Va],exports:[Ma,xa,Va]}]}],e}();(Pa=e.HeaderMode||(e.HeaderMode={})).SORT="sort",Pa.SEARCH="search",Pa.EDIT="edit";var $a=function(){function t(t){this.mode=e.HeaderMode.SORT,this._lastMode=e.HeaderMode.SORT,this._selectedHeaders$=new ne.BehaviorSubject(t)}return Object.defineProperty(t.prototype,"selectedHeaders$",{get:function(){return this._selectedHeaders$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedHeaders",{get:function(){return this._selectedHeaders$.getValue()},enumerable:!1,configurable:!0}),t.prototype.saveState=function(){this._lastMode=this.mode,this._lastSelectedHeaders=this._selectedHeaders$.getValue()},t.prototype.restoreLastMode=function(){this.mode=this._lastMode},t.prototype.restoreLastState=function(){this.mode=this._lastMode,this._selectedHeaders$.next(this._lastSelectedHeaders)},t.prototype.updateSelectedHeaders=function(e){this._selectedHeaders$.next(e)},t.prototype.asInterface=function(){return{mode:this.mode,selectedHeaders$:this.selectedHeaders$,selectedHeaders:this.selectedHeaders,saveState:this.saveState,restoreLastState:this.restoreLastState,restoreLastMode:this.restoreLastMode}},t}(),Ba=function(){function r(e,t,n,i){var o=this;this._headerType=e,this._preferences=t,this._viewIdService=n,this._logger=i,this.loading=new Ye(!0),this._headerChange$=new ne.Subject,this.fieldsGroup=[{groupTitle:"Meta data",fields:this.createMetaHeaders()}],this._headerColumnCount$=new ne.BehaviorSubject(r.DEFAULT_HEADER_COUNT),this._responsiveHeaders$=new ne.BehaviorSubject(r.DEFAULT_HEADER_RESPONSIVITY),this._preferenceColumnCount$=new ne.ReplaySubject,this._clearHeaderSearch$=new ne.Subject,this._initializedCount=!1,null===this._viewIdService&&this._logger.warn("Header service could not inject ViewIdService! User preferences won't be loaded or saved!"),this._preferences.preferencesChanged$.subscribe((function(){o.loadHeadersFromPreferences()})),this.initializeHeaderState()}return Object.defineProperty(r.prototype,"headerChange$",{get:function(){return this._headerChange$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selectedHeaders$",{get:function(){return this._headerState.selectedHeaders$},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"headerState",{get:function(){return this._headerState.asInterface()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"headerType",{get:function(){return this._headerType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"headerColumnCount",{get:function(){return this._headerColumnCount$.getValue()},set:function(e){e!==this.headerColumnCount&&(this._headerColumnCount$.next(e),this.updateHeaderColumnCount(),this._initializedCount||(this.initializeDefaultHeaderState(),this._initializedCount=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"headerColumnCount$",{get:function(){return this._headerColumnCount$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"responsiveHeaders",{get:function(){return this._responsiveHeaders$.getValue()},set:function(e){this._responsiveHeaders$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"responsiveHeaders$",{get:function(){return this._responsiveHeaders$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clearHeaderSearch$",{get:function(){return this._clearHeaderSearch$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"initDefaultHeaders",{get:function(){return this._initDefaultHeaders},set:function(e){this._initDefaultHeaders=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"preferenceColumnCount$",{get:function(){return this._preferenceColumnCount$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.initializeHeaderState=function(){for(var e=[],t=0;t<this.fieldsGroup[0].fields.length&&e.length<this.headerColumnCount;t++)this.fieldsGroup[0].fields[t].initial&&e.push(this.fieldsGroup[0].fields[t]);for(;e.length<this.headerColumnCount;)e.push(null);this._headerState=new $a(e)},r.prototype.initializeDefaultHeaderState=function(){var e=this;if(this.initDefaultHeaders&&Array.isArray(this.initDefaultHeaders)){for(var t=[],r=0;r<this.headerColumnCount;r++)t.push(null);var n=function(r){var n,o;if(r>=i.headerColumnCount)return i._logger.warn("there are more NAE_DEFAULT_HEADERS than header columns. Skipping the rest..."),"break";try{for(var a=(n=void 0,we(i.fieldsGroup)),s=a.next();!s.done;s=a.next()){var u=s.value.fields.find((function(t){return t.uniqueId===e.initDefaultHeaders[r]}));if(u){t[r]=u;break}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},i=this;for(r=0;r<this.initDefaultHeaders.length;r++){if("break"===n(r))break}this._headerState.updateSelectedHeaders(t)}this.loadHeadersFromPreferences()},r.prototype.updateHeaderColumnCount=function(){var e=this._headerState.selectedHeaders;if(e.length<this.headerColumnCount)for(;e.length!==this.headerColumnCount;)e.push(null);else e.length>this.headerColumnCount&&(e=e.slice(0,this.headerColumnCount));this._headerState.updateSelectedHeaders(e)},r.prototype.setAllowedNets=function(t){var r,n=[];t.forEach((function(t){var r={groupTitle:t.title,fields:[]};t.immediateData.forEach((function(n){r.fields.push(new fo(e.HeaderColumnType.IMMEDIATE,n.stringId,n.title,n.type,!1,t.identifier))})),n.push(r)})),this.fieldsGroup.splice(1,this.fieldsGroup.length-1),(r=this.fieldsGroup).push.apply(r,ke(n))},r.prototype.setTaskAllowedNets=function(t){var r,n=[];t.forEach((function(t){var r={groupTitle:t.title,fields:[]},i=new Set;t.transitions.forEach((function(n){n.immediateData.forEach((function(n){i.has(n.stringId)||(i.add(n.stringId),r.fields.push(new fo(e.HeaderColumnType.IMMEDIATE,n.stringId,n.title,n.type,!1,t.identifier)))}))})),n.push(r)})),this.fieldsGroup.splice(1,this.fieldsGroup.length-1),(r=this.fieldsGroup).push.apply(r,ke(n))},r.prototype.loadHeadersFromPreferences=function(){var e=this,t=this.getViewId();if(t){var r=this._preferences.getHeaders(t);if(r){var n=[];r.forEach((function(t){var r,i,o,a;try{for(var s=we(e.fieldsGroup),u=s.next();!u.done;u=s.next()){var c=u.value;try{for(var l=(o=void 0,we(c.fields)),p=l.next();!p.done;p=l.next()){var d=p.value;if(d.uniqueId===t)return void n.push(d)}}catch(e){o={error:e}}finally{try{p&&!p.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}n.push(null),e._logger.warn("Could not restore header with ID '"+t+"' from preferences. It is not one of the available headers for this view.")})),this._preferenceColumnCount$.next(n.length),this._headerState.updateSelectedHeaders(n)}}},r.prototype.sortHeaderChanged=function(e,t,r){var n,i=!1;this.headerState.selectedHeaders.filter((function(e){return!!e})).forEach((function(o){o.uniqueId!==t||i?o.sortDirection="":(n={sortDirection:r,columnType:o.type,fieldIdentifier:o.fieldIdentifier,petriNetIdentifier:o.petriNetIdentifier,columnIdentifier:e,fieldType:o.fieldType},o.sortDirection=r,i=!0)})),this._headerChange$.next({headerType:this.headerType,changeType:So.SORT,description:n})},r.prototype.headerSearchInputChanged=function(e,t){var r=this.headerState.selectedHeaders[e];r.searchInput=t;var n={fieldIdentifier:r.fieldIdentifier,fieldType:r.fieldType,fieldTitle:r.title,searchInput:t,type:r.type,petriNetIdentifier:r.petriNetIdentifier,columnIdentifier:e};this._headerChange$.next({headerType:this.headerType,changeType:So.SEARCH,description:n})},r.prototype.headerColumnSelected=function(e,t){var r=[];r.push.apply(r,ke(this._headerState.selectedHeaders)),r[e]&&(r[e].sortDirection="",r[e].searchInput=void 0),r[e]=t,this._headerState.updateSelectedHeaders(r),this._headerChange$.next({headerType:this.headerType,changeType:So.EDIT,description:{preferredHeaders:this._headerState.selectedHeaders}})},r.prototype.changeMode=function(e,t){if(void 0===t&&(t=!0),e!==this._headerState.mode){t&&(this._headerState.saveState(),this.saveState());var r=this.modeChangeFromCurrent(e);this._headerState.mode=e,this._headerChange$.next(r)}},r.prototype.confirmEditMode=function(){this._headerState.restoreLastMode(),this.saveNewState();var e=this.modeChangeAfterEdit(),t=this.getViewId();if(t){var r=this.headerState.selectedHeaders;this._preferences.setHeaders(t,r.map((function(e){return e?e.uniqueId:""})))}this._headerChange$.next(e)},r.prototype.revertEditMode=function(){this._headerState.restoreLastState(),this.restoreLastState();var e=this.modeChangeAfterEdit();this._headerChange$.next({headerType:this.headerType,changeType:So.EDIT,description:{preferredHeaders:this._headerState.selectedHeaders}}),this._headerChange$.next(e)},r.prototype.ngOnDestroy=function(){this._headerChange$.complete(),this._clearHeaderSearch$.complete(),this._headerColumnCount$.complete(),this._responsiveHeaders$.complete(),this.loading.complete(),this._preferenceColumnCount$.complete()},r.prototype.modeChangeFromCurrent=function(e){return this.createModeChange(this._headerState.mode,e)},r.prototype.modeChangeAfterEdit=function(){return this.createModeChange(e.HeaderMode.EDIT,this._headerState.mode)},r.prototype.createModeChange=function(e,t){return{changeType:So.MODE_CHANGED,description:{currentMode:t,previousMode:e},headerType:this.headerType}},r.prototype.clearHeaderSearch=function(e){this._clearHeaderSearch$.next(e)},r.prototype.getViewId=function(){if(this._viewIdService)return this._viewIdService.viewId},r.DEFAULT_HEADER_COUNT=5,r.DEFAULT_HEADER_RESPONSIVITY=!0,r.ctorParameters=function(){return[{type:e.HeaderType},{type:gt},{type:ao,decorators:[{type:t.Optional}]},{type:$e}]},r}(),za=new t.InjectionToken("NaeDefaultHeaders"),Ha=function(){function e(e){this._viewIdService=e,this.DEFAULT_COLUMN_WIDTH=190,this.DEFAULT_COLUMN_COUNT=6,this._initializedCount=!1,this._overflowMode="true"===this.initializeItem("overflowMode",!1),this._columnCount=this.checkIsNan(this.initializeItem("columnCount",this.DEFAULT_COLUMN_COUNT),this.DEFAULT_COLUMN_COUNT),this._columnWidth=this.checkIsNan(this.initializeItem("columnWidth",this.DEFAULT_COLUMN_WIDTH),this.DEFAULT_COLUMN_WIDTH)}return Object.defineProperty(e.prototype,"overflowMode",{get:function(){return this._overflowMode},set:function(e){this._overflowMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnWidth",{get:function(){return this._columnWidth},set:function(e){this._columnWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnCount",{get:function(){return this._columnCount},set:function(e){this._columnCount=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initializedCount",{get:function(){return this._initializedCount},enumerable:!1,configurable:!0}),e.prototype.saveState=function(){this._state={overflowMode:this._overflowMode,columnWidth:this._columnWidth,columnCount:this._columnCount}},e.prototype.saveNewState=function(){var e=this.getViewId();e&&(localStorage.setItem(e+"-overflowMode",this._overflowMode+""),localStorage.setItem(e+"-columnCount",this._columnCount+""),localStorage.setItem(e+"-columnWidth",this._columnWidth+"")),this._state=void 0},e.prototype.restoreLastState=function(){this._overflowMode=this._state.overflowMode,this._columnWidth=this._state.columnWidth,this._columnCount=this._state.columnCount,this._state=void 0},e.prototype.initializeItem=function(e,t){var r=this.getViewId();if(!r)return t;var n=localStorage.getItem(r+"-"+e);return null!==n?(e.includes("columnCount")&&(this._initializedCount=!0),n):t},e.prototype.checkIsNan=function(e,t){return isNaN(parseInt(e,10))?t:parseInt(e,10)},e.prototype.getViewId=function(){if(this._viewIdService)return this._viewIdService.viewId},e.ctorParameters=function(){return[{type:ao,decorators:[{type:t.Optional}]}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:ao,decorators:[{type:t.Optional}]}]},e}(),Ga=function(r){function n(t,n,i,o,a,s){var u=r.call(this,e.HeaderType.CASE,n,o,i)||this;return u._allowedNetsService=t,u.overflowService=a,u.subAllowedNets=t.allowedNets$.subscribe((function(e){u.setAllowedNets(e),s&&Array.isArray(s)&&s.length>0?(u.initDefaultHeaders=s,u.initializeDefaultHeaderState()):u.loadHeadersFromPreferences(),u.loading.off()})),u}return Ie(n,r),n.prototype.createMetaHeaders=function(){return[new fo(e.HeaderColumnType.META,e.CaseMetaField.VISUAL_ID,"headers.caseMeta.visualID","text"),new fo(e.HeaderColumnType.META,e.CaseMetaField.MONGO_ID,"headers.caseMeta.mongoID","text",!1),new fo(e.HeaderColumnType.META,e.CaseMetaField.TITLE,"headers.caseMeta.title","text"),new fo(e.HeaderColumnType.META,e.CaseMetaField.AUTHOR,"headers.caseMeta.author","text"),new fo(e.HeaderColumnType.META,e.CaseMetaField.CREATION_DATE,"headers.caseMeta.creationDate","date")]},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.subAllowedNets.unsubscribe()},n.prototype.updateColumnCount=function(){this.updateHeaderColumnCount()},n.prototype.saveState=function(){this.overflowService&&this.overflowService.saveState()},n.prototype.saveNewState=function(){this.overflowService&&this.overflowService.saveNewState(),this.updateHeaderColumnCount()},n.prototype.restoreLastState=function(){this.overflowService&&this.overflowService.restoreLastState()},n.ctorParameters=function(){return[{type:Di},{type:gt},{type:$e},{type:ao,decorators:[{type:t.Optional}]},{type:Ha,decorators:[{type:t.Optional}]},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[za]}]}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Di},{type:gt},{type:$e},{type:ao,decorators:[{type:t.Optional}]},{type:Ha,decorators:[{type:t.Optional}]},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[za]}]}]},n}(Ba),qa=function(r){function n(t,n,i,o,a){var s=r.call(this,e.HeaderType.TASK,n,o,i)||this;return s._allowedNetsService=t,s.subAllowedNets=t.allowedNets$.subscribe((function(e){s.setTaskAllowedNets(e),a&&Array.isArray(a)&&a.length>0?(s.initDefaultHeaders=a,s.initializeDefaultHeaderState()):s.loadHeadersFromPreferences(),s.loading.off()})),s}return Ie(n,r),n.prototype.createMetaHeaders=function(){return[new fo(e.HeaderColumnType.META,e.TaskMetaField.CASE,"headers.taskMeta.case","text"),new fo(e.HeaderColumnType.META,e.TaskMetaField.CASE_ID,"headers.taskMeta.caseID","text",!1),new fo(e.HeaderColumnType.META,e.TaskMetaField.TASK_ID,"headers.taskMeta.taskID","text",!1),new fo(e.HeaderColumnType.META,e.TaskMetaField.TITLE,"headers.caseMeta.title","text"),new fo(e.HeaderColumnType.META,e.TaskMetaField.PRIORITY,"headers.taskMeta.priority","enumeration"),new fo(e.HeaderColumnType.META,e.TaskMetaField.USER,"headers.taskMeta.user","text"),new fo(e.HeaderColumnType.META,e.TaskMetaField.ASSIGN_DATE,"headers.taskMeta.assignDate","date")]},n.prototype.saveState=function(){},n.prototype.saveNewState=function(){},n.prototype.restoreLastState=function(){},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.subAllowedNets.unsubscribe()},n.ctorParameters=function(){return[{type:Di},{type:gt},{type:$e},{type:ao,decorators:[{type:t.Optional}]},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[za]}]}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Di},{type:gt},{type:$e},{type:ao,decorators:[{type:t.Optional}]},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[za]}]}]},n}(Ba),Wa=function(r){function n(t,n,i){var o=r.call(this,e.HeaderType.WORKFLOW,t,n,i)||this;return o.loadHeadersFromPreferences(),o.loading.off(),o}return Ie(n,r),n.prototype.createMetaHeaders=function(){return[new fo(e.HeaderColumnType.META,e.WorkflowMetaField.INITIALS,"headers.workflowMeta.initials","text"),new fo(e.HeaderColumnType.META,e.WorkflowMetaField.TITLE,"headers.workflowMeta.title","text"),new fo(e.HeaderColumnType.META,e.WorkflowMetaField.NET_ID,"headers.workflowMeta.netId","text",!1),new fo(e.HeaderColumnType.META,e.WorkflowMetaField.VERSION,"headers.workflowMeta.version","text"),new fo(e.HeaderColumnType.META,e.WorkflowMetaField.AUTHOR,"headers.workflowMeta.author","text"),new fo(e.HeaderColumnType.META,e.WorkflowMetaField.CREATION_DATE,"headers.workflowMeta.creationDate","date")]},n.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this)},n.prototype.saveState=function(){},n.prototype.saveNewState=function(){},n.prototype.restoreLastState=function(){},n.ctorParameters=function(){return[{type:gt},{type:ao,decorators:[{type:t.Optional}]},{type:$e}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:gt},{type:ao,decorators:[{type:t.Optional}]},{type:$e}]},n}(Ba),Qa=function(){function r(t,r,n,i,o){var a=this;this._categoryFactory=t,this._processService=r,this._translate=n,this._logger=i,this._searchService=o,this._columnToConfiguration=new Map,this._typeToCategory=new Map,[{k:e.CaseMetaField.VISUAL_ID,v:bi},{k:e.CaseMetaField.TITLE,v:_i},{k:e.CaseMetaField.CREATION_DATE,v:li},{k:e.CaseMetaField.AUTHOR,v:ui},{k:e.CaseMetaField.MONGO_ID,v:Ti}].forEach((function(e){a._typeToCategory.set(e.k,a._categoryFactory.getWithDefaultOperator(e.v))})),this._typeToCategory.set(e.HeaderColumnType.IMMEDIATE,this._categoryFactory.get(vi))}return r.prototype.ngOnDestroy=function(){var e,t;this._headerSub&&this._headerSub.unsubscribe(),this._searchSub&&this._searchSub.unsubscribe();try{for(var r=we(this._typeToCategory.values()),n=r.next();!n.done;n=r.next()){n.value.destroy()}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},Object.defineProperty(r.prototype,"headerService",{set:function(t){t.headerType!==e.HeaderType.CASE&&t.headerType!==e.HeaderType.TASK||(this._headerService=t),t&&this._searchService&&this.initializeHeaderSearch()},enumerable:!1,configurable:!0}),r.prototype.initializeHeaderSearch=function(){var t=this;this._searchService?this._headerService?(this._headerSub=this._headerService.headerChange$.pipe(le.filter((function(e){return e.changeType===So.SEARCH||e.changeType===So.MODE_CHANGED}))).subscribe((function(r){r.changeType===So.SEARCH?t.processSearchChange(r.headerType,r.description):r.description.previousMode===e.HeaderMode.SEARCH&&t.processModeChange()})),this._searchSub=this._searchService.predicateRemoved$.subscribe((function(e){return t.handlePredicateRemoval(e.index,e.clearInput)}))):this._logger.error("You can't call initializeHeaderSearch without setting an AbstractHeaderService implementation instance!"):this._logger.error("You can't call initializeHeaderSearch without providing a SearchService to be injected!")},r.prototype.processModeChange=function(){var t=this,r=[];this._columnToConfiguration.forEach((function(n){var i;(t._searchService.removePredicate(n.predicateId),n.type===e.HeaderColumnType.META)?((i=t._typeToCategory.get(n.fieldIdentifier).duplicate()).selectDefaultOperator(),i.setOperands(n.userInput)):i=t._typeToCategory.get(e.HeaderColumnType.IMMEDIATE).transformToCaseDataset(n.fieldType,n.fieldTitle,n.userInput);r.push(t._searchService.addGeneratedLeafPredicate(i))})),this._searchService.show(r),this._columnToConfiguration.clear()},r.prototype.processSearchChange=function(t,r){t===e.HeaderType.CASE&&this.processCaseSearch(r)},r.prototype.processCaseSearch=function(t){this.emptyInput(t)?this.removePredicate(t.columnIdentifier):t.type===e.HeaderColumnType.META?this.processCaseMetaSearch(t):this.processCaseDataSearch(t)},r.prototype.processCaseMetaSearch=function(t){var r={fieldIdentifier:t.fieldIdentifier,userInput:[t.searchInput]},n=this._typeToCategory.get(r.fieldIdentifier).generatePredicate(r.userInput);this.addPredicate(t.columnIdentifier,n,Ee({type:e.HeaderColumnType.META},r))},r.prototype.processCaseDataSearch=function(t){var r=this;this._processService.getNet(t.petriNetIdentifier).subscribe((function(n){var i={fieldType:t.fieldType,fieldTitle:t.fieldTitle,userInput:[t.searchInput]},o=r._typeToCategory.get(t.type);o.configure(t.fieldIdentifier,i.fieldType,[n.identifier]);var a=o.generatePredicate(i.userInput);r.addPredicate(t.columnIdentifier,a,Ee({type:e.HeaderColumnType.IMMEDIATE},i))}))},r.prototype.emptyInput=function(e){return void 0===e.searchInput||null===e.searchInput||"string"==typeof e.searchInput&&0===e.searchInput.length},r.prototype.addPredicate=function(e,t,r){this.removePredicate(e,!this._columnToConfiguration.has(e));var n=this._searchService.addPredicate(t);this._columnToConfiguration.set(e,Ee({predicateId:n},r))},r.prototype.removePredicate=function(e,t){void 0===t&&(t=!0);var r=this._columnToConfiguration.get(e);void 0!==r&&(this._searchService.removePredicate(r.predicateId,t),this._columnToConfiguration.delete(e))},r.prototype.handlePredicateRemoval=function(e,t){void 0===t&&(t=!0),this._headerService&&t&&this._headerService.clearHeaderSearch(e),this._columnToConfiguration.delete(e)},r.ctorParameters=function(){return[{type:Li},{type:Ni},{type:ue.TranslateService},{type:$e},{type:ji,decorators:[{type:t.Optional}]}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Li},{type:Ni},{type:ue.TranslateService},{type:$e},{type:ji,decorators:[{type:t.Optional}]}]},r}();var Ka,Ya,Xa=function(){function r(t,r,n){this._injector=t,this._translate=r,this._overflowService=n,this.DEFAULT_COLUMN_COUNT=6,this.DEFAULT_COLUMN_WIDTH=190,this.type=e.HeaderType.CASE,this.hideEditMode=!1,this.headerModeEnum=e.HeaderMode,this.headerTypeEnum=e.HeaderType,this._initHeaderCount=void 0,this._initResponsiveHeaders=void 0,null!==this._overflowService?this.initializeFormControls(!0):this.initializeFormControls(!1)}return Object.defineProperty(r.prototype,"maxHeaderColumns",{set:function(e){this.headerService?this.headerService.headerColumnCount=e:this._initHeaderCount=e,(null===this._overflowService||null!==this._overflowService&&!this._overflowService.initializedCount)&&this.columnCountControl.setValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"responsiveHeaders",{set:function(e){this.headerService?this.headerService.responsiveHeaders=e:this._initResponsiveHeaders=e},enumerable:!1,configurable:!0}),r.prototype.ngOnInit=function(){var e=this;this.resolveHeaderService(),this.initializedHeaderSearch(),void 0!==this._initHeaderCount&&(this.headerService.headerColumnCount=this._initHeaderCount),void 0!==this._initResponsiveHeaders&&(this.headerService.responsiveHeaders=this._initResponsiveHeaders),this.headerService.preferenceColumnCount$.subscribe((function(t){return e.columnCountControl.setValue(t)}))},r.prototype.ngOnDestroy=function(){this.canOverflow&&(this.subColumnWidthControl.unsubscribe(),this.subColumnCountControl.unsubscribe(),this.subOverflowControl.unsubscribe())},r.prototype.resolveHeaderService=function(){switch(this.type){case e.HeaderType.CASE:this.headerService=this._injector.get(Ga);break;case e.HeaderType.TASK:this.headerService=this._injector.get(qa);break;case e.HeaderType.WORKFLOW:this.headerService=this._injector.get(Wa)}},r.prototype.initializedHeaderSearch=function(){this.type===e.HeaderType.CASE&&(this._headerSearch=this._injector.get(Qa),this._headerSearch.headerService=this.headerService)},r.prototype.clickStop=function(e){!function(e){e.stopPropagation(),e.preventDefault()}(e)},r.prototype.getMinWidth=function(){return this._overflowService&&this._overflowService.overflowMode?this._overflowService.columnWidth+"px":"0"},r.prototype.confirmEditMode=function(){(!this.overflowControl.value||this.overflowControl.value&&this.columnWidthControl.valid&&this.columnWidthControl.valid)&&this.headerService.confirmEditMode()},r.prototype.getErrorMessageWidth=function(){return this.buildErrorMessage(this.columnWidthControl,180)},r.prototype.getErrorMessageCount=function(){return this.buildErrorMessage(this.columnCountControl,1)},r.prototype.buildErrorMessage=function(e,t){return e.hasError("required")?this._translate.instant("dataField.validations.required"):e.hasError("min")?this._translate.instant("dataField.validations.min",{length:t}):""},r.prototype.initializeFormControls=function(e){this.canOverflow=e,this.overflowControl=new l.FormControl(!!e&&this._overflowService.overflowMode),this.columnCountControl=new l.FormControl(e?this._overflowService.columnCount:this.DEFAULT_COLUMN_COUNT,[l.Validators.required,l.Validators.min(1)]),this.columnWidthControl=new l.FormControl(e?this._overflowService.columnWidth:this.DEFAULT_COLUMN_WIDTH,[l.Validators.required,l.Validators.min(180)]),e&&this.initializeValueChanges()},r.prototype.initializeValueChanges=function(){var t=this;this.subOverflowControl=this.overflowControl.valueChanges.subscribe((function(e){t._overflowService.overflowMode=e})),this.subColumnCountControl=this.columnCountControl.valueChanges.subscribe((function(r){t.columnCountControl.valid&&(t._overflowService.columnCount=r,t.headerService&&t.type===e.HeaderType.CASE&&(t.headerService.headerColumnCount=r,t.headerService.updateColumnCount()))})),this.subColumnWidthControl=this.columnWidthControl.valueChanges.subscribe((function(r){t.columnWidthControl.valid&&(t._overflowService.columnWidth=r,t.headerService&&t.type===e.HeaderType.CASE&&t.headerService.updateColumnCount())}))},r.propDecorators={type:[{type:t.Input}],hideEditMode:[{type:t.Input}],maxHeaderColumns:[{type:t.Input}],responsiveHeaders:[{type:t.Input}]},r}(),Za=function(){function e(){}return e.prototype.getMinWidth=function(){return this.overflowWidth},e.propDecorators={overflowWidth:[{type:t.Input}]},e}(),Ja=function(e){function r(){return e.call(this)||this}return Ie(r,e),r.prototype.sortHeaderChanged=function(e){var t=e.active.indexOf("-");this.headerService.sortHeaderChanged(parseInt(e.active.substring(0,t),10),e.active.substr(t+1,e.active.length),e.direction)},r.propDecorators={headerService:[{type:t.Input}]},r}(Za),es=function(e){function r(t,r){var n=e.call(this)||this;return n._translate=t,n._log=r,n.formControls=[],n.filterOptions=[],n.renderSelection=function(e){return e?n._translate.instant(e.title):""},n}return Ie(r,e),r.prototype.ngOnInit=function(){var e=this;this.subHeader=this.headerService.headerColumnCount$.subscribe((function(t){return e.updateHeaderCount(t)}))},r.prototype.ngOnDestroy=function(){this.subHeader.unsubscribe()},r.prototype.updateHeaderCount=function(e){var t=this;if(this.formControls.length>e)return this.formControls=this.formControls.slice(0,e),void(this.filterOptions=this.filterOptions.slice(0,e));for(;this.formControls.length<e;){var r=this.formControls.length,n=new l.FormControl;n.setValue(this.headerService.headerState.selectedHeaders[r]),this.formControls.push(n),this.filterOptions.push(n.valueChanges.pipe(le.startWith(""),le.map((function(e){return t._filter(e)}))))}},r.prototype._filter=function(e){var t,r=this;t="string"==typeof e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):"";var n=[];n.push.apply(n,ke(this.headerService.fieldsGroup));var i=n.splice(0,1);return i.push.apply(i,ke(ge.orderBy(n,(function(e){return e.groupTitle}),"asc"))),i.forEach((function(e){return e.fields=ge.orderBy(e.fields,(function(e){return e.title}),"asc")})),i.map((function(e){return{groupTitle:e.groupTitle,fields:e.fields.filter((function(e){return r.checkImmediateTitle(e)&&0===r._translate.instant(e.title).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t)}))}})).filter((function(e){return e.fields.length>0}))},r.prototype.headerColumnSelected=function(e,t){this.headerService.headerColumnSelected(e,t)},r.prototype.checkImmediateTitle=function(e){return void 0!==e.title&&""!==e.title||(this._log.warn("Immediate field in column ["+e.uniqueId+"] does not have a title"),!1)},r.propDecorators={headerService:[{type:t.Input}]},r}(Za),ts=function(e){function r(){return e.call(this)||this}return Ie(r,e),r.prototype.ngOnInit=function(){},r.propDecorators={headerService:[{type:t.Input}]},r}(Za),rs=function(e){function r(t){var r=e.call(this)||this;return r._sideMenuService=t,r.SEARCH_DEBOUNCE_TIME=600,r.formControls=[],r}return Ie(r,e),r.prototype.ngOnInit=function(){var e=this;this.subHeaderColumn=this.headerService.headerColumnCount$.subscribe((function(t){return e.updateHeaderCount(t)})),this.subClearHeader=this.headerService.clearHeaderSearch$.subscribe((function(t){return e.clearInput(t)}))},r.prototype.ngOnDestroy=function(){this.subClearHeader.unsubscribe(),this.subHeaderColumn.unsubscribe()},r.prototype.updateHeaderCount=function(e){if(e<this.formControls.length)this.formControls=this.formControls.slice(0,e);else for(;this.formControls.length<e;)this.addNewColumn()},r.prototype.addNewColumn=function(){var e=this,t=new l.FormControl,r=this.formControls.length;t.valueChanges.pipe(le.debounceTime(this.SEARCH_DEBOUNCE_TIME),le.map((function(e){return e instanceof fr?e.id:e}))).subscribe((function(t){e.headerService.headerSearchInputChanged(r,t)})),this.formControls.push(t)},r.prototype.selectAbstractUser=function(e,t){var r=this,n=!1;this._sideMenuService.open(t).onClose.subscribe((function(t){t.data?(r.formControls[e].setValue(t.data),n=!0):n||r.formControls[e].setValue(void 0)}))},r.prototype.clearInput=function(e){e>=0&&e<this.formControls.length&&this.formControls[e].setValue(void 0)},r.propDecorators={headerService:[{type:t.Input}]},r}(Za),ns=function(e){function r(t,r){return e.call(this,"dashboard",t,r)||this}return Ie(r,e),r.prototype.getDashboardData=function(e,t){var r=new ie.HttpParams;return r=r.set("type",e),this._resourceProvider.post$("/dashboard/search",this.SERVER_URL,t,r)},r.ctorParameters=function(){return[{type:rt},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:rt},{type:Me}]},r}(nt),is=function(e){function r(t,r){return e.call(this,t,r)||this}return Ie(r,e),r.prototype.getCaseData=function(e){var t=this;return this._resourceProvider.get$("public/case/"+e+"/data",this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.createCase=function(e){var t=this;return this._resourceProvider.post$("public/case/",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.ctorParameters=function(){return[{type:rt},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:rt},{type:Me}]},r}(Jo),os=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.provider=t,n._configService=r,n}return Ie(r,e),r.prototype.getOneById=function(e,t){var r=this;return this.provider.get$("public/petrinet/"+e,this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},r.prototype.getOne=function(e,t,r){var n=this;return this.provider.get$("public/petrinet/"+e+"/"+t,this.SERVER_URL,r).pipe(le.map((function(e){return n.changeType(e,"petriNetReferences")})))},r.prototype.searchPetriNets=function(e,t){var r=this;return this._resourceProvider.post$("public/petrinet/search",this.SERVER_URL,e,t).pipe(le.map((function(e){return r.getResourcePage(e,"petriNetReferences")})))},r.prototype.getPetriNetRoles=function(e,t){var r=this;return this._resourceProvider.get$("public/petrinet/"+e+"/roles",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,"processRoles")})))},r.prototype.getPetriNetTransactions=function(e,t){var r=this;return this._resourceProvider.get$("public/petrinet/"+e+"/transactions",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,"transactions")})))},r.prototype.getDataPetriNet=function(e){var t=this;return this._resourceProvider.post$("public/petrinet/data",this.SERVER_URL,e).pipe(le.map((function(e){return t.changeType(e,void 0)})))},r.prototype.getPetriNetTransitions=function(e){var t=this;return this._resourceProvider.get$("public/petrinet/transitions",this.SERVER_URL,(new ie.HttpParams).set("ids",e)).pipe(le.map((function(e){return t.changeType(e,"transitionReferences")})))},r.ctorParameters=function(){return[{type:rt},{type:Me}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](rt),t["ɵɵinject"](Me))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:rt},{type:Me}]},r}(Pi),as=function(r){function n(e,t,n,i){var o=r.call(this,e,t,n,i)||this;return o._provider=e,o._configService=t,o._fieldConverter=n,o._logger=i,o}return Ie(n,r),n.prototype.assignTask=function(e){var t=this;return this._provider.get$("public/task/assign/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.cancelTask=function(e){var t=this;return this._provider.get$("public/task/cancel/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.finishTask=function(e){var t=this;return this._provider.get$("public/task/finish/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.getAllTasksByCase=function(e){var t=this;return this._provider.get$("public/task/case/"+e,this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,void 0)})))},n.prototype.rawGetData=function(e){var t=this;return this._provider.get$("public/task/"+e+"/data",this.SERVER_URL).pipe(le.map((function(e){return t.changeType(e,"dataGroups")})))},n.prototype.getData=function(e){var t=this;return this.rawGetData(e).pipe(le.map((function(e){var r=t.changeType(e.outcome.data,"dataGroups");if(!Array.isArray(r))return[];var n=[];return r.forEach((function(e){var r=[];if(e.fields._embedded){var i=[];Object.keys(e.fields._embedded).forEach((function(t){i.push.apply(i,ke(e.fields._embedded[t]))})),i.sort((function(e,t){return e.order-t.order})),r.push.apply(r,ke(i.map((function(e){return t._fieldConverter.toClass(e)})))),n.push({fields:r,stretch:e.stretch,title:e.title,layout:e.layout,alignment:e.alignment})}})),n})))},n.prototype.setData=function(e,t){var r=this;return this._provider.post$("public/task/"+e+"/data",this.SERVER_URL,t).pipe(le.map((function(e){return r.changeType(e,void 0)})))},n.prototype.getTasks=function(t,r){var n=this;if(t.type!==e.FilterType.TASK)throw new Error("Provided filter doesn't have type TASK");if(t.bodyContainsQuery())throw new Error("getTasks endpoint cannot be queried with filters that contain the 'query' attribute");return r=rt.combineParams(t.getRequestParams(),r),this._provider.post$("public/task/search",this.SERVER_URL,t.getRequestBody(),r).pipe(le.map((function(e){return n.getResourcePage(e,"tasks")})))},n.prototype.downloadFile=function(e,t,r){var n=r?"public/task/"+e+"/file/"+t+"/"+r:"public/task/"+e+"/file/"+t;return this._resourceProvider.getBlob$(n,this.SERVER_URL).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.DownloadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.prototype.uploadFile=function(e,t,r,n){var i=n?"public/task/"+e+"/files/"+t:"public/task/"+e+"/file/"+t;return this._resourceProvider.postWithEvent$(i,this.SERVER_URL,r).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.UploadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.prototype.deleteFile=function(e,t,r){var n=this,i=r?"public/task/"+e+"/file/"+t+"/"+r:"public/task/"+e+"/file/"+t;return this._resourceProvider.delete$(i,this.SERVER_URL).pipe(le.map((function(e){return n.changeType(e,void 0)})))},n.prototype.downloadFilePreview=function(e,t){var r="public/task/"+e+"/file_preview/"+t;return this._resourceProvider.getBlob$(r,this.SERVER_URL).pipe(le.map((function(e){switch(e.type){case ie.HttpEventType.DownloadProgress:return rt.getProgress(e);case ie.HttpEventType.Response:return e.body;default:return}})),le.filter((function(e){return!!e})))},n.ctorParameters=function(){return[{type:rt},{type:Me},{type:Tr},{type:$e}]},n.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new n(t["ɵɵinject"](rt),t["ɵɵinject"](Me),t["ɵɵinject"](Tr),t["ɵɵinject"]($e))},token:n,providedIn:"root"}),n.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],n.ctorParameters=function(){return[{type:rt},{type:Me},{type:Tr},{type:$e}]},n}(Sr);(Ka=e.DataGroupAlignment||(e.DataGroupAlignment={})).START="start",Ka.CENTER="center",Ka.END="end",(Ya=e.FieldAlignment||(e.FieldAlignment={})).TOP="top",Ya.CENTER="center",Ya.BOTTOM="bottom";var ss,us=function(e){function r(t,r){var n=e.call(this)||this;return n._select=t,n._paperView=r,n}return Ie(r,e),r.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},r.prototype.getLang=function(){return this._select.getLanguage()},r.prototype.setPaperView=function(){this._paperView.paperView=!this._paperView.paperView},r.prototype.isPaperView=function(){return this._paperView.paperView},r.propDecorators={items:[{type:t.Input}]},r}(so),cs=function(){function e(){}return e.prototype.ngOnInit=function(){},e.propDecorators={link:[{type:t.Input}],icon:[{type:t.Input}]},e}(),ls=function(){function e(e,t,r,n){this._user=e,this._log=t,this._config=r,this._router=n}return e.prototype.ngOnInit=function(){},e.prototype.logout=function(){var e=this;this._user.logout().subscribe((function(){if(e._log.debug("User is logged out"),e._config.get().services&&e._config.get().services.auth&&e._config.get().services.auth.logoutRedirect){var t=e._config.get().services.auth.logoutRedirect;e._log.info("Redirecting to "+t),e._router.navigate([t])}}))},e}(),ps=function(){function e(e){var t=this;this._select=e,this.langMenuItems=[{key:"sk-SK",value:"sk"},{key:"de-DE",value:"de"},{key:"en-US",value:"en",flag:"gb"}],this._flagOverrides=new Map,this.langMenuItems.forEach((function(e){void 0!==e.flag&&t._flagOverrides.set(e.key,e.flag)}))}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"flagCountryCode",{get:function(){return this.flagCode(this.language)},enumerable:!1,configurable:!0}),e.prototype.flagCode=function(e){return this._flagOverrides.has(e)?this._flagOverrides.get(e):e.includes("-")?e.split("-")[1].toLowerCase():e.toLowerCase()},e.prototype.setLang=function(e){this.language=e,this._select.setLanguage(e,!0)},e.propDecorators={language:[{type:t.Input}]},e}(),ds=function(){function e(){var e=localStorage.getItem("PaperView");null===e?(this._paperView=!1,localStorage.setItem("PaperView","false")):"true"===e?this._paperView=!0:"false"===e?this._paperView=!1:(this._paperView=!1,localStorage.setItem("PaperView","false"))}return Object.defineProperty(e.prototype,"paperView",{get:function(){return this._paperView},set:function(e){this._paperView=e,localStorage.setItem("PaperView",""+e)},enumerable:!1,configurable:!0}),e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}();function hs(e){var t=e.data;e.data=null,e.data=t}function fs(t){var r={name:""};if(0===t.length)throw new Error("The provided task data does not belong to a Navigation menu item task. Icon and title cannot be extracted");var n=Sa(t,e.GroupNavigationConstants.NAVIGATION_ENTRY_TITLE_FIELD_ID_SUFFIX);if(void 0===n)throw new Error("Navigation entry name could not be resolved");r.name=n.value;var i=Sa(t,e.GroupNavigationConstants.NAVIGATION_ENTRY_ICON_ENABLED_FIELD_ID_SUFFIX);if(void 0!==i&&i.value){var o=Sa(t,e.GroupNavigationConstants.NAVIGATION_ENTRY_ICON_FIELD_ID_SUFFIX);void 0===o?this._log.error("Navigation entry icon could not be resolved, but is enabled. Icon was ignored"):r.icon=o.value}return r}function gs(e,t){if(0===e.length)throw new Error("The provided task data does not belong to a Navigation menu item task. Role entries cannot be extracted");var r=Sa(e,t);if(void 0===r)throw new Error("Navigation entry role authorization field could not be resolved");return r.choices.map((function(e){return e.key}))}function ys(t){var r=Sa(t,e.UserFilterConstants.FILTER_FIELD_ID);if(void 0===r||!(r instanceof _r))throw new Error("Filter could not be extracted. The provided datagroups do not contain a filter field with ID '"+e.UserFilterConstants.FILTER_FIELD_ID+"'");return r}function vs(e){if(void 0===e||!(e instanceof _r))throw new Error("Filter could not be resolved");return on.fromQuery({query:e.value},e.filterMetadata.filterType)}(ss=e.GroupNavigationConstants||(e.GroupNavigationConstants={})).GROUP_NAVIGATION_OUTLET="groupNavigation",ss.GROUP_NAVIGATION_ROUTER_PARAM="filterCaseId",ss.NAVIGATION_CONFIG_TRANSITION_ID="navigationMenuConfig",ss.NAVIGATION_ENTRIES_TASK_REF_FIELD_ID="filter_tasks",ss.NAVIGATION_ENTRY_TITLE_FIELD_ID_SUFFIX="entry_name",ss.NAVIGATION_FILTER_CASE_ID_FIELD_ID_SUFFIX="filter_case_id",ss.NAVIGATION_ENTRY_MARKER_FIELD_ID_SUFFIX="entry_marker",ss.NAVIGATION_ENTRY_ICON_ENABLED_FIELD_ID_SUFFIX="use_icon",ss.NAVIGATION_ENTRY_ICON_FIELD_ID_SUFFIX="icon_name",ss.NAVIGATION_ENTRY_ALLOWED_ROLES_FIELD_ID_SUFFIX="allowed_roles",ss.NAVIGATION_ENTRY_BANNED_ROLES_FIELD_ID_SUFFIX="banned_roles",ss[ss.DATAGROUPS_PER_NAVIGATION_ENTRY=2]="DATAGROUPS_PER_NAVIGATION_ENTRY";var ms=function(r){function n(e,t,n,i,o,a,u,c,l,p,d){var h=r.call(this)||this;return h._config=e,h._router=t,h._log=n,h._userService=i,h._roleGuard=o,h._authorityGuard=a,h._groupGuard=u,h._activeGroupService=c,h._taskResourceService=l,h._languageService=p,h._navigationRouteProvider=d,h._groupNavNodesCount=0,h.treeControl=new s.NestedTreeControl((function(e){return e.children})),h.dataSource=new q.MatTreeNestedDataSource,h._groupNavigationConfig=h._config.getConfigurationSubtree(["services","groupNavigation"]),h.dataSource.data=h.resolveNavigationNodes(e.getConfigurationSubtree(["views"]),""),h.resolveLevels(h.dataSource.data),h._reloadNavigation=new ne.ReplaySubject(1),h}return Ie(n,r),n.prototype.ngOnInit=function(){var e=this;r.prototype.ngOnInit.call(this),this.viewPath&&void 0!==this.parentUrl&&this.routerChange&&this.resolveNavigationNodesWithOffsetRoot(),this._subscriptions=[this._router.events.pipe(le.filter((function(t){return t instanceof he.NavigationEnd&&e.routerChange}))).subscribe((function(){return e._reloadNavigation.next()})),this._userService.user$.subscribe((function(){return e._reloadNavigation.next()})),this._activeGroupService.activeGroups$.subscribe((function(){return e._reloadNavigation.next()}))],this._subscriptions.push(this._reloadNavigation.pipe(le.debounceTime(100)).subscribe((function(){e.resolveNavigation()})))},n.prototype.ngOnDestroy=function(){var e,t;try{for(var r=we(this._subscriptions),n=r.next();!n.done;n=r.next()){var i=n.value;i.closed||i.unsubscribe()}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this._reloadNavigation.complete(),void 0!==this._subGroupResolution&&this._subGroupResolution.unsubscribe(),void 0!==this._subLangChange&&this._subLangChange.unsubscribe()},n.prototype.hasChild=function(e,t){return!!t.children&&t.children.length>0},n.prototype.resolveNavigation=function(){var e;e=this.viewPath&&void 0!==this.parentUrl&&this.routerChange?this.resolveNavigationNodesWithOffsetRoot():this.resolveNavigationNodes(this._config.getConfigurationSubtree(["views"]),""),this.dataSource.data=e,this.resolveLevels(this.dataSource.data)},n.prototype.resolveNavigationNodesWithOffsetRoot=function(){var e=this._config.getViewByPath(this.viewPath);return e&&e.children?this.resolveNavigationNodes(e.children,this.parentUrl):this.dataSource.data},n.prototype.resolveNavigationNodes=function(e,t,r){var n=this;if(!e||0===Object.keys(e).length)return null;var i=!1,o=[];return Object.keys(e).forEach((function(a){var s=e[a];if(!i&&n.isGroupNavigationNode(s)){i=!0;var u=(null!=r?r:o).length;return n._subLangChange=n._languageService.getLangChange$().subscribe((function(){n.loadGroupNavigationNodes(u,null!=r?r:o)})),void n.loadGroupNavigationNodes(u,null!=r?r:o)}if(n.hasNavigation(s)||n.hasSubRoutes(s)){var c=n.getNodeRouteSegment(s);if(void 0===c)throw new Error("Route segment doesnt exist in view "+t+"/"+a+" !");if(n.canAccessView(s,n.appendRouteSegment(t,c)))if(n.hasNavigation(s)){var l=n.buildNode(s,c,t);n.hasSubRoutes(s)&&(l.children=n.resolveNavigationNodes(s.children,l.url)),o.push(l)}else n.hasSubRoutes(s)&&o.push.apply(o,ke(n.resolveNavigationNodes(s.children,n.appendRouteSegment(t,c),null!=r?r:o)))}})),o},n.prototype.hasNavigation=function(e){return!!e.navigation&&("boolean"==typeof e.navigation?e.navigation:"object"==typeof e.navigation?0!==Object.keys(e.navigation).length:void 0)},n.prototype.hasSubRoutes=function(e){return!!e.children&&("object"==typeof e.children?0!==Object.keys(e.children).length:void 0)},n.prototype.buildNode=function(e,t,r){var n={name:null,url:null};return n.name=this.getNodeName(e,t),n.icon=this.getNodeIcon(e),n.url=this.appendRouteSegment(r,t),n.translate=this.getNodeTranslateFlag(e),n},n.prototype.getNodeName=function(e,t){if(e.navigation.title)return e.navigation.title;var r=t.replace("_"," ");return r.charAt(0).toUpperCase()+r.substring(1)},n.prototype.getNodeIcon=function(e){return e.navigation.icon?e.navigation.icon:void 0},n.prototype.getNodeRouteSegment=function(e){return e.routing&&"string"==typeof e.routing.path?e.routing.path:void 0},n.prototype.getNodeTranslateFlag=function(e){var t;return null!==(t=e.navigation.translate)&&void 0!==t&&t},n.prototype.appendRouteSegment=function(e,t){return t?e+"/"+t:e},n.prototype.resolveLevels=function(e,t){var r=this;if(e){var n=null==t?0:t+1;e.forEach((function(e){e.level=n,e.children&&r.resolveLevels(e.children,n)}))}},n.prototype.canAccessView=function(e,t){if(!e.hasOwnProperty("access"))return!0;if("string"==typeof e.access){if("public"===e.access)return!0;if("private"!==e.access)throw new Error("Unknown access option '"+e.access+"'. Only 'public' or 'private' is allowed.");return!this._userService.user.isEmpty()}return!this._userService.user.isEmpty()&&this.passesRoleGuard(e,t)&&this.passesAuthorityGuard(e)&&this.passesGroupGuard(e,t)},n.prototype.passesRoleGuard=function(e,t){return!e.access.hasOwnProperty("role")||this._roleGuard.canAccessView(e,t)},n.prototype.passesAuthorityGuard=function(e){return!e.access.hasOwnProperty("authority")||this._authorityGuard.canAccessView(e)},n.prototype.passesGroupGuard=function(e,t){return!e.access.hasOwnProperty("group")||this._groupGuard.canAccessView(e,t)},n.prototype.resolveChange=function(){var e=this._config.getViewByPath(this.viewPath);e&&e.children&&(this.dataSource.data=this.resolveNavigationNodes(e.children,this.parentUrl)),this.resolveLevels(this.dataSource.data)},n.prototype.isGroupNavigationNode=function(t){var r;return(null===(r=null==t?void 0:t.layout)||void 0===r?void 0:r.name)===e.GroupNavigationConstants.GROUP_NAVIGATION_OUTLET},n.prototype.loadGroupNavigationNodes=function(e,t){var r=this;void 0===this._subGroupResolution||this._subGroupResolution.closed||this._subGroupResolution.unsubscribe(),this._subGroupResolution=this.generateGroupNavigationNodes().pipe(le.take(1)).subscribe((function(n){t.splice.apply(t,ke([e,r._groupNavNodesCount],n)),r._groupNavNodesCount=n.length,hs(r.dataSource)}))},n.prototype.generateGroupNavigationNodes=function(){var t=this;return ne.forkJoin(this._activeGroupService.activeGroups.map((function(r){return t._taskResourceService.searchTask(on.fromTaskQuery({case:{id:r.stringId},transitionId:e.GroupNavigationConstants.NAVIGATION_CONFIG_TRANSITION_ID})).pipe(le.map((function(e){return ii(e)?t._taskResourceService.getData(e.content[0].stringId):(t._log.error("Group navigation configuration task was not found. Navigation for this group cannot be constructed."),ne.of([]))})),le.concatMap((function(e){return e})))}))).pipe(le.map((function(e){var r,n,i=[];try{for(var o=we(e),a=o.next();!a.done;a=o.next()){var s=a.value;i.push.apply(i,ke(t.convertDatagroupsToNavEntries(s)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i})))},n.prototype.convertDatagroupsToNavEntries=function(t){var r,n=this,i=[],o=[];if(t.forEach((function(t,r){t.fields.some((function(t){return t.stringId===e.GroupNavigationConstants.NAVIGATION_ENTRY_MARKER_FIELD_ID_SUFFIX}))&&o.push(r)})),t.some((function(t){var n=ba(t.fields,e.GroupNavigationConstants.NAVIGATION_ENTRIES_TASK_REF_FIELD_ID);return void 0!==n&&(r=n),!!n})),!r)throw new Error("The navigation configuration task contains no task ref with entries. Navigation cannot be constructed");for(var a=0;a<r.value.length;a++){var s=o[a],u=fs(t.slice(s,s+e.GroupNavigationConstants.DATAGROUPS_PER_NAVIGATION_ENTRY)),c=Ee({url:""},u),l=this._navigationRouteProvider.route;if(void 0!==l){c.url="/"+l+"/"+r.value[a];var p=gs(t.slice(s,s+e.GroupNavigationConstants.DATAGROUPS_PER_NAVIGATION_ENTRY),e.GroupNavigationConstants.NAVIGATION_ENTRY_ALLOWED_ROLES_FIELD_ID_SUFFIX),d=gs(t.slice(s,s+e.GroupNavigationConstants.DATAGROUPS_PER_NAVIGATION_ENTRY),e.GroupNavigationConstants.NAVIGATION_ENTRY_BANNED_ROLES_FIELD_ID_SUFFIX),h=this.extractRoleAndNetId(p),f=this.extractRoleAndNetId(d);0!==h.length&&!h.some((function(e){return n._userService.hasRoleByIdentifier(e[0],e[1])}))||f.some((function(e){return n._userService.hasRoleByIdentifier(e[0],e[1])}))||i.push(c)}else this._log.error("No URL is configured in nae.json for configurable group navigation. Dynamic navigation entry was ignored")}return i},n.prototype.extractRoleAndNetId=function(e){var t,r,n=[];try{for(var i=we(e),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.split(":");if(2!==s.length)throw new Error("The role-net pair '"+a+"' has invalid format! Cannot extract role and net identifiers.");n.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},n.propDecorators={viewPath:[{type:t.Input}],parentUrl:[{type:t.Input}],routerChange:[{type:t.Input}]},n}(so),_s=function(){function e(e,r,n){this.breakpoint=e,this._log=r,this.userPreferenceService=n,this._config={mode:"over",opened:!1,disableClose:!1},this.openedChange=new t.EventEmitter,this._fixed=!0,this.opened=!0,this.quickPanelItems=["language","settings","logout"],void 0!==this.userPreferenceService.drawerWidth?this.contentWidth=new ne.BehaviorSubject(this.userPreferenceService.drawerWidth):this.contentWidth=new ne.BehaviorSubject(200)}return e.prototype.ngOnInit=function(){var e=this;this.resolveLayout(this._fixed),this.subBreakpoint=this.breakpoint.observe([be.Breakpoints.HandsetLandscape]).subscribe((function(t){e._log.info("BreakpointObserver matches width of window: "+e.breakpoint.isMatched("(max-width: 959.99px)")),e.breakpoint.isMatched("(max-width: 959.99px)")?(e.resolveLayout(!1),e.opened=e._config.opened):(e.resolveLayout(e._fixed),e.opened=e._config.opened)})),this.opened=this._config.opened,this.userPreferenceService.preferencesChanged$.subscribe((function(){e.width=e.userPreferenceService.drawerWidth,e.contentWidth.next(e.width)}))},e.prototype.ngAfterViewInit=function(){this.openedChange=this._sideNav.openedChange},e.prototype.ngOnDestroy=function(){this.subBreakpoint.unsubscribe(),this.openedChange.complete()},Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixed",{get:function(){return this._fixed},set:function(e){this._fixed=e,this.resolveLayout(this._fixed)},enumerable:!1,configurable:!0}),e.prototype.open=function(){return this._fixed?Promise.resolve("open"):this._sideNav.open()},e.prototype.close=function(){return this._fixed?Promise.resolve("open"):this._sideNav.close()},e.prototype.toggle=function(){return this._fixed?Promise.resolve("open"):this._sideNav.toggle()},e.prototype.resolveLayout=function(e){this._config=e?{mode:"side",opened:!0,disableClose:!0}:{mode:"over",opened:!1,disableClose:!1},e&&this._sideNav&&this._sideNav.open()},e.prototype.swipeRight=function(){this.breakpoint.isMatched("(max-width: 959.99px)")&&this._sideNav.open()},e.prototype.swipeLeft=function(){this.breakpoint.isMatched("(max-width: 959.99px)")&&this._sideNav.close()},e.prototype.onResizeEvent=function(e){e.rectangle.width>450?this.width=450:e.rectangle.width<200?this.width=200:this.width=e.rectangle.width,this.userPreferenceService._drawerWidthChanged$.next(this.width),this.contentWidth.next(this.width)},e.propDecorators={showUser:[{type:t.Input,args:["user"]}],user:[{type:t.Input,args:["userObject"]}],showQuickPanel:[{type:t.Input,args:["quickPanel"]}],quickPanelItems:[{type:t.Input,args:["panelItems"]}],navigation:[{type:t.Input}],openedChange:[{type:t.Output}],_sideNav:[{type:t.ViewChild,args:["sidenav"]}],fixed:[{type:t.Input,args:["fixed"]}]},e}(),bs=function(){function e(){this.expandChange=new t.EventEmitter,this.expandOnHover=!1,this._expanded=!1}return e.prototype.ngOnDestroy=function(){this.expandChange.complete()},Object.defineProperty(e.prototype,"expanded",{get:function(){return this._expanded},enumerable:!1,configurable:!0}),e.prototype.open=function(){this._expanded=!0,this.expandChange.emit(this._expanded)},e.prototype.close=function(){this._expanded=!1,this.expandChange.emit(this._expanded)},e.prototype.toggle=function(){this._expanded=!this._expanded,this.expandChange.emit(this._expanded)},e.propDecorators={expandOnHover:[{type:t.Input}],expandChange:[{type:t.Output}],_rail:[{type:t.ViewChild,args:["sideRail"]}]},e}();function Ts(e){e&&!e.closed&&e.unsubscribe()}var Ss,Is=function(){function t(e,t,r,n,i){this._componentResolverService=e,this._parentInjector=t,this._activatedRoute=r,this._router=n,this._log=i,this.initialized=!1,this.errored=!1}return t.prototype.ngOnInit=function(){var e=this;this.resolveComponent(),this._routerSub=this._router.events.pipe(le.filter((function(e){return e instanceof he.NavigationEnd}))).subscribe((function(){e.resolveComponent()}))},t.prototype.ngOnDestroy=function(){Ts(this._portalSub),Ts(this._routerSub)},t.prototype.resolveComponent=function(){var t=this;this.initialized=!1,this._portalSub=this._componentResolverService.createResolvedViewComponentPortal(this._activatedRoute.snapshot.paramMap.get(e.GroupNavigationConstants.GROUP_NAVIGATION_ROUTER_PARAM),this._parentInjector).subscribe((function(e){t.portal=e,t.initialized=!0}),(function(e){t._log.error(e),t.errored=!0}))},t}(),Es=new t.InjectionToken("NaeNavigationItemTaskData"),ws=function(){function e(e,t){this._taskResourceService=e,this._log=t}return e.prototype.createResolvedViewComponentPortal=function(e,r){var n=this,i=new ne.ReplaySubject(1);return this._taskResourceService.getData(e).subscribe((function(e){try{i.next(new u.ComponentPortal(n.resolveViewComponent(e),null,t.Injector.create({providers:[{provide:Es,useValue:e}],parent:r}))),i.complete()}catch(e){n.forwardError(i,e)}}),(function(e){n.forwardError(i,e)})),i.asObservable()},e.prototype.forwardError=function(e,t){e.error(t instanceof ie.HttpErrorResponse?t.error.message:t.message),e.complete()},e}(),Cs=function(){function r(e,t,r){this._filterRepository=e,this._taskResourceService=t,this._log=r}return r.prototype.extractCompleteFilterFromData=function(t){var r=Ia(t,e.UserFilterConstants.FILTER_FIELD_ID);if(void 0!==r){var n;try{n=vs(t[r.dataGroupIndex].fields[r.fieldIndex])}catch(e){throw new Error("Filter segment could not be extracted from filter field")}var i=this.extractCompleteFilterFromData(t.slice(r.dataGroupIndex+1));if(void 0!==i)return n.merge(i,e.MergeOperator.AND);var o=Sa(t,e.UserFilterConstants.ORIGIN_VIEW_ID_FIELD_ID);if(void 0===o)return n;var a=this.extractViewFilter(o);return void 0!==a?n.merge(a,e.MergeOperator.AND):n}},r.prototype.extractViewFilter=function(e){var t,n;if(void 0===e||!(e instanceof sr))throw new Error("Could not extract origin view id field from task data");var i=e.value,o=i.match(r.UNTABBED_VIEW_ID_EXTRACTOR);if(null===o)throw new Error("Unexpected state. View Id of origin app view could not be extracted");var a=i.substring(0,i.length-(null!==(n=null===(t=o[1])||void 0===t?void 0:t.length)&&void 0!==n?n:0)),s=this._filterRepository.getFilter(a);if(void 0!==s)return s;this._log.error("Could not retrieve origin app filter with id '"+a+"'. Falling back to empty filter")},r.UNTABBED_VIEW_ID_EXTRACTOR="^.*?(-\\d+)?$",r.ctorParameters=function(){return[{type:ia},{type:Sr},{type:$e}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](ia),t["ɵɵinject"](Sr),t["ɵɵinject"]($e))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:ia},{type:Sr},{type:$e}]},r}(),ks=new t.InjectionToken("NaeGroupNavigationComponentResolverComponent");(Ss=e.TreePetriflowIdentifiers||(e.TreePetriflowIdentifiers={})).CHILDREN_CASE_REF="treeChildCases",Ss.CAN_ADD_CHILDREN="canAddTreeChildren",Ss.FEATURED_TRANSITION="treeTaskTransitionId",Ss.CAN_REMOVE_NODE="canRemoveTreeNode",Ss.CHILD_NODE_TITLE="childNodeCaseTitle",Ss.CASE_REF_TRANSITION="treeCaseRefAccessor",Ss.BEFORE_TEXT_ICON="beforeTextIcon",Ss.TREE_ADD_ICON="treeAddIcon";var Os=function(){function t(e,t){this.case=e,this.children=[],this.dirtyChildren=!0,this.loadingChildren=new Ye,this.removingNode=new Ye,this.addingNode=new Ye,this.parent=t}return t.prototype.canAddChildren=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.CAN_ADD_CHILDREN);return!!t&&t.value},t.prototype.canBeRemoved=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.CAN_REMOVE_NODE);return this.parent&&!!t&&t.value},t.prototype.isLoadingChildren=function(){return this.loadingChildren.isActive},t.prototype.isBeingRemoved=function(){return this.removingNode.isActive},t.prototype.isAddingNode=function(){return this.addingNode.isActive},t.prototype.beforeTextIcon=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.BEFORE_TEXT_ICON);if(void 0!==t)return t.value},t.prototype.treeAddTextIcon=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.TREE_ADD_ICON);if(void 0!==t)return t.value},t.prototype.beforeTextIconTitle=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.BEFORE_TEXT_ICON);if(void 0!==t&&t.name&&t.name.defaultValue)return t.name.defaultValue},t.prototype.treeAddTextIconTitle=function(){var t=this.searchImmediateData(e.TreePetriflowIdentifiers.TREE_ADD_ICON);if(void 0!==t&&t.name&&t.name.defaultValue)return t.name.defaultValue},t.prototype.searchImmediateData=function(e){return this.case.immediateData.find((function(t){return t.stringId===e}))},t.prototype.toLoggableForm=function(){return{case:this.case,dirtyChildren:this.dirtyChildren,parent:this.parent?this.parent.case.stringId:this.parent,children:this.children.map((function(e){return e.case.stringId}))}},t}(),Fs=function(r){function n(e,t,n,i,o,a,s){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s={enableCaseTitle:!0,isCaseTitleRequired:!0});var u=r.call(this,e,i,void 0,s)||this;return u._loggerService=t,u._injectedTabData=n,u._overflowService=i,u._autoswitchToTaskTab=o,u._openExistingTab=a,u._newCaseCreationConfig=s,u._correctlyInjected=!!u._injectedTabData.tabViewComponent&&void 0!==u._injectedTabData.tabViewOrder,u._correctlyInjected||u._loggerService.warn("TabbedCaseView must inject a filled object of type InjectedTabbedCaseViewData to work properly!"),u}return Ie(n,r),n.prototype.handleCaseClick=function(e){this._correctlyInjected&&this.openTab(e)},n.prototype.createNewCase=function(){var e=this,t=r.prototype.createNewCase.call(this);return t.subscribe((function(t){e._caseViewService.viewEnabled(t)&&e.openTab(t)})),t},n.prototype.openTab=function(t){this._injectedTabData.tabViewRef.openTab({label:{text:t.title,icon:t.icon?t.icon:"check_box"},canBeClosed:!0,tabContentComponent:this._injectedTabData.tabViewComponent,injectedObject:{baseFilter:new on("",e.FilterType.TASK,{case:{id:""+t.stringId}}),allowedNets:[t.processIdentifier]},order:this._injectedTabData.tabViewOrder,parentUniqueId:this._injectedTabData.tabUniqueId},this._autoswitchToTaskTab,this._openExistingTab)},n.ctorParameters=function(){return[{type:Da},{type:$e},{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:Ha},null,null,{type:void 0}]},n}(Aa),As=function(e){function r(t,r){var n=e.call(this,t)||this;return n._injectedTabData=r,n.subTaskView=t.closeTab.subscribe((function(){r.tabViewRef.closeTabIndex(r.tabViewRef.currentlySelectedTab())})),n}return Ie(r,e),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.subTaskView.unsubscribe()},r.ctorParameters=function(){return[{type:Ao},{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]}]},r}(la),Rs=new t.InjectionToken("NaeWorkflowServiceFilter"),Ps=new t.InjectionToken("NaeWorkflowServiceConfirmDelete"),Ns=function(e){function r(t,r,n,i,o,a,s,u){var c=e.call(this,a)||this;c._petriNetResource=t,c._log=r,c._dialogService=n,c._snackBarService=i,c._translate=o,c._loading$=new Ye,c._clear=!1,c._endOfData=!1,c._pagination={size:25,totalElements:void 0,totalPages:void 0,number:-1},c._nextPage$=new ne.BehaviorSubject(Object.assign({},c._pagination,{number:0})),c._baseFilter=null!==s?s:{},c._showDeleteConfirmationDialog=null===u||u;var l=c._nextPage$.pipe(le.mergeMap((function(e){return c.loadPage(e)})),le.map((function(e){return c._clear?Co([{content:[],stopLoading:!1},{content:e,stopLoading:!0}]):ne.of({content:e,stopLoading:!0})})),le.concatMap((function(e){return e})),le.map((function(e){return e.stopLoading&&c._loading$.off(),e.content})),le.map((function(e){return e.reduce((function(e,t){var r;return Ee(Ee({},e),((r={})[t.stringId]=t,r))}),{})})),le.scan((function(e,t){return c._clear?(c._clear=!1,Ee({},t)):Ee(Ee({},e),t)}),{}));return c._workflows$=l.pipe(le.map((function(e){return Object.values(e)}))),c}return Ie(r,e),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._loading$.complete(),this._nextPage$.complete()},Object.defineProperty(r.prototype,"loading",{get:function(){return this._loading$.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"workflows$",{get:function(){return this._workflows$},enumerable:!1,configurable:!0}),r.prototype.loadPage=function(e){var t=this;if(e.number<0)return ne.of([]);var r=new ie.HttpParams;return r=this.addSortParams(r),r=this.addPageParams(r,e),this._loading$.on(),this._petriNetResource.searchPetriNets(this._baseFilter,r).pipe(le.catchError((function(e){return t._log.error("Loading Petri nets has failed!",e),ne.of({content:[],pagination:Ee({},t._pagination)})})),le.tap((function(e){Object.assign(t._pagination,e.pagination)})),le.tap((function(e){t._endOfData=!ii(e)||e.pagination.number===e.pagination.totalPages-1})),le.map((function(e){if(ii(e)){var t=[];return e.content.forEach((function(e){t.push(new Fi(e))})),t}return[]})))},r.prototype.nextPage=function(e,t,r){if(!this._endOfData&&e.end===t){var n=r;void 0===n&&((n=Object.assign({},this._pagination)).number+=1),this._nextPage$.next(n)}},r.prototype.reload=function(){if(this._workflows$&&this._pagination){this._endOfData=!1,this._clear=!0;var e=Object.assign({},this._pagination);e.number=0;this.nextPage({start:-1,end:0},0,e)}},r.prototype.deleteWorkflow=function(e){var t=this;if(this._showDeleteConfirmationDialog){var r=this._translate.instant("workflow.delete").toUpperCase();this._dialogService.openPromptDialog(this._translate.instant("workflow.dialog.header",{name:e.title,version:e.version}),this._translate.instant("workflow.dialog.content"),this._translate.instant("workflow.dialog.typeToConfirm",{delete:r})).afterClosed().subscribe((function(n){void 0!==n&&n.prompt===r?t._deleteWorkflow(e):t._snackBarService.openGenericSnackBar(t._translate.instant("workflow.snackBar.deleteCanceled"),"info")}))}else this._deleteWorkflow(e)},r.prototype._deleteWorkflow=function(e){var t=this;this._petriNetResource.deletePetriNet(e.stringId).subscribe((function(e){t._snackBarService.openSuccessSnackBar(t._translate.instant("workflow.snackBar.deleteSuccess")),t._log.info("Process delete success. Server response: "+e.success),t.reload()}),(function(e){t._snackBarService.openErrorSnackBar(t._translate.instant("workflow.snackBar.deleteError")),t._log.error("Process delete failed. Server response: "+e)}))},r.prototype.getMetaFieldSortId=function(){return this._lastHeaderSearchState.fieldIdentifier},r.prototype.getDefaultSortParam=function(){return""},r.prototype.addSortParams=function(e){return""!==this._lastHeaderSearchState.sortDirection?e.set("sort",this.getSortId()+","+this._lastHeaderSearchState.sortDirection):e.set("sort",this.getDefaultSortParam())},r.prototype.addPageParams=function(e,t){return e=(e=e.set("size",t.size+"")).set("page",t.number+"")},r.ctorParameters=function(){return[{type:Pi},{type:$e},{type:Lt},{type:ft},{type:ue.TranslateService},{type:Gn},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Rs]}]},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ps]}]}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Pi},{type:$e},{type:Lt},{type:ft},{type:ue.TranslateService},{type:Gn},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Rs]}]},{type:Boolean,decorators:[{type:t.Optional},{type:t.Inject,args:[Ps]}]}]},r}(ko),Ds=function(){function e(){this.loadTask$=new ne.BehaviorSubject(void 0),this.reloadCase$=new ne.Subject}return e.prototype.ngOnDestroy=function(){this.loadTask$.complete(),this.reloadCase$.complete()},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),Ls=function(){function e(e,t){void 0===t&&(t=[]),this._result=e,this._afterActions=t}return Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e.prototype.executeAfterActions=function(){this._afterActions.forEach((function(e){return e()}))},e}(),js=function(){function r(e,t,r,n,i,o,a,u){var c=this;this._caseResourceService=e,this._treeCaseViewService=t,this._taskResourceService=r,this._logger=n,this._processService=i,this._sideMenuService=o,this._translateService=a,this._optionSelectorComponent=u,this._isEagerLoaded=!1,this._treeDataSource=new q.MatTreeNestedDataSource,this._treeControl=new s.NestedTreeControl((function(e){return e.children})),t.reloadCase$.asObservable().subscribe((function(){c.reloadCurrentCase()})),this._treeRootLoaded$=new ne.ReplaySubject(1)}return r.prototype.ngOnDestroy=function(){this._treeRootLoaded$.complete()},Object.defineProperty(r.prototype,"rootFilter",{set:function(e){this._rootNodesFilter=e,this.dataSource.data=[],this.loadTreeRoot()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataSource",{get:function(){return this._treeDataSource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"treeControl",{get:function(){return this._treeControl},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"currentNode",{get:function(){return this._currentNode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"treeRootLoaded$",{get:function(){return this._treeRootLoaded$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_currentCase",{get:function(){return this._currentNode?this._currentNode.case:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rootNodeLoading$",{get:function(){return this._rootNode?this._rootNode.loadingChildren.asObservable():void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rootNodeAddingChild$",{get:function(){return this._rootNode?this._rootNode.addingNode.asObservable():void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEagerLoaded",{get:function(){return this._isEagerLoaded},set:function(e){this._isEagerLoaded=e},enumerable:!1,configurable:!0}),r.prototype.loadTreeRoot=function(){var e=this;this._rootNodesFilter&&this._caseResourceService.searchCases(this._rootNodesFilter).subscribe((function(t){ii(t)?(e._rootNode=new Os(t.content[0],void 0),1!==t.content.length&&e._logger.warn("Filter for tree root returned more than one case. Using the first value as tree root..."),e._treeRootLoaded$.next(!0)):e._logger.error("Tree root cannot be generated from the provided filter",t)}),(function(t){e._logger.error("Root node of the case tree could not be loaded",t),e._treeRootLoaded$.next(!1)}))},r.prototype.initializeTree=function(e){var t,r=this;if(!this._rootNode)return this._logger.error("Set a Filter before initializing the case tree"),ne.throwError(new Error("Set a Filter before initializing the case tree"));if(this._showRoot=e,this.dataSource.data=e?[this._rootNode]:this._rootNode.children,!e||this._isEagerLoaded){var n=new ne.ReplaySubject(1);t=n.asObservable(),this.expandNode(this._rootNode).subscribe((function(){r.refreshTree(),n.next(),n.complete()}))}else this.refreshTree(),t=Xn();return t},r.prototype.changeActiveNode=function(e){this._currentNode=e,this._treeCaseViewService.loadTask$.next(e?e.case:void 0)},r.prototype.toggleNode=function(e){this._treeControl.isExpanded(e)?this._treeControl.collapse(e):this.expandNode(e)},r.prototype.expandNode=function(e){var t=this;if(this._logger.debug("Requesting expansion of tree node",e.toLoggableForm()),e.loadingChildren.isActive)return this._logger.debug("Node requested for expansion is loading. Expansion canceled."),ne.of(!1);if(!e.dirtyChildren)return this._logger.debug("Node requested for expansion has clean children. Simple expansion."),this.treeControl.expand(e),ne.of(!0);var r=new ne.ReplaySubject(1);return this.updateNodeChildren(e).subscribe((function(){if(t._logger.debug("Node requested for expansion with dirty children had its children reloaded."),e.children.length>0)if(t._logger.debug("Node expanded.",e.toLoggableForm()),t.treeControl.expand(e),t._isEagerLoaded){t._logger.debug("Eager loading children of tree node with case id '"+e.case.stringId+"'");var n=e.children.map((function(e){return t.expandNode(e)}));n.push(ne.of(!0)),ne.forkJoin(n).subscribe((function(){r.next(!0),r.complete()}))}else r.next(!0),r.complete();else r.next(!1),r.complete()})),r.asObservable()},r.prototype.updateNodeChildren=function(t){var r=this;t.loadingChildren.on();var n=vo(t.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF);if(!n||0===n.value.length)return t.children=[],this.refreshTree(),t.dirtyChildren=!1,t.loadingChildren.off(),Xn();if(t.children.length===n.value.length){var i=new Set;if(t.children.forEach((function(e){return i.add(e.case.stringId)})),n.value.every((function(e){return i.has(e)})))return t.dirtyChildren=!1,t.loadingChildren.off(),Xn()}return this.updatePageOfChildren(t,0).pipe(le.tap((function(){r.refreshTree(),t.dirtyChildren=!1,t.loadingChildren.off()})))},r.prototype.updatePageOfChildren=function(e,t){var r=this,n=this.createChildRequestBody(e);if(!n)return this._logger.error("Cannot create filter to find children of the given node",e.case),ne.throwError(new Error("Cannot create filter to find children of the given node"));var i=new ne.ReplaySubject(1),o=new ie.HttpParams;return o=o.set("page",""+t).set("sort","creationDate,asc"),this._caseResourceService.getCases(n,o).subscribe((function(n){if(!ii(n))return r._logger.error("Child cases invalid page content",n),i.next(),void i.complete();r.updateCurrentChildrenWithNewPage(e,n),t+1<n.pagination.totalPages?r.updatePageOfChildren(e,t+1).subscribe((function(){i.next(),i.complete()})):(i.next(),i.complete())}),(function(e){r._logger.error("Child cases could not be loaded",e),i.next(),i.complete()})),i.asObservable()},r.prototype.updateCurrentChildrenWithNewPage=function(e,t){var r=this;t.content.forEach((function(n,i){for(var o=t.pagination.size*t.pagination.number+i;o<e.children.length&&e.children[o].case.stringId!==n.stringId;)e.children.splice(o,1);e.children.length===o?e.children.push(new Os(n,e)):(e.children[o].case=n,e.dirtyChildren=!0,r.treeControl.collapseDescendants(e.children[o]))}))},r.prototype.createChildRequestBody=function(t){var r=vo(t.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF);if(r)return{stringId:r.value}},r.prototype.addRootChildNode=function(){var e=this,t=new ne.ReplaySubject(1);return this.addChildNode(this._rootNode).subscribe((function(r){r&&(e._showRoot||0!==e._treeDataSource.data.length||(e._treeDataSource.data=e._rootNode.children,e.refreshTree())),t.next(r),t.complete()})),t},r.prototype.addChildNode=function(t){var r=this;t.addingNode.on();var n=vo(t.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF);if(0===n.allowedNets.length)return this._logger.error("Case "+t.case.stringId+" can add new tree nodes but has no allowed nets"),t.addingNode.off(),ne.of(!1);var i=new ne.ReplaySubject(1);return 1===n.allowedNets.length?this.createAndAddChildCase(n.allowedNets[0],t,i):this._processService.getNets(n.allowedNets).subscribe((function(n){var o,a=r._sideMenuService.open(r._optionSelectorComponent,e.SideMenuSize.MEDIUM,{title:t.case.title,options:n.map((function(e){return{text:e.title,value:e.identifier}}))});o=a.onClose.subscribe((function(e){e.data?(r.createAndAddChildCase(e.data.value,t,i),o.unsubscribe()):(t.addingNode.off(),i.next(!1),i.complete())}))})),i.asObservable()},r.prototype.createAndAddChildCase=function(t,r,n){var i=this;this._processService.getNet(t).subscribe((function(t){var o=vo(r.case,e.TreePetriflowIdentifiers.CHILD_NODE_TITLE),a=i._translateService.instant("caseTree.newNodeDefaultName");o?a=o.value:t.defaultCaseName&&(a=t.defaultCaseName),i._caseResourceService.createCase({title:a,netId:t.stringId}).subscribe((function(t){var o=ke(vo(r.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF).value,[t.outcome.aCase.stringId]);i.performCaseRefCall(r.case.stringId,o).subscribe((function(e){return i.updateTreeAfterChildAdd(r,e||o,n)}))}))}))},r.prototype.updateTreeAfterChildAdd=function(e,t,r){var n=this;this.updateNodeChildrenFromChangedFields(e,t).subscribe((function(t){e.addingNode.off(),n.expandNode(e).subscribe((function(i){i&&(n.changeActiveNode(e.children[e.children.length-1]),t.executeAfterActions()),r.next(!0),r.complete()}))}))},r.prototype.removeNode=function(t){var r=this;if(t.parent){t.removingNode.on();var n=vo(t.parent.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF).value.filter((function(e){return e!==t.case.stringId}));this.performCaseRefCall(t.parent.case.stringId,n).subscribe((function(e){var i=e||n;r.deleteRemovedNodes(t.parent,i),r.updateNodeChildrenFromChangedFields(t.parent,i),t.removingNode.off()})),this.deselectNodeIfDescendantOf(t)}else this._logger.error("Case tree doesn't support removal of the root node, as it has no parent case ref.")},r.prototype.expandPath=function(e){if(0!==this.dataSource.data.length){for(var t=this.dataSource.data[0];void 0!==t.parent;)t=t.parent;this.expandLevel([t],this.convertPathToExpansionTree(e))}},r.prototype.convertPathToExpansionTree=function(e){var t={};return Object.values(e).forEach((function(e){var r=t;e.forEach((function(e){void 0===r[e]&&(r[e]={}),r=r[e]}))})),t},r.prototype.expandLevel=function(e,t){var r=this,n=new Set(Object.keys(t));0!==n.size&&e.forEach((function(e){var i=e;n.has(i.case.stringId)&&r.expandNode(i).subscribe((function(e){e?r.expandLevel(i.children,t[i.case.stringId]):r._logger.debug("Could not expand tree node with ID: "+i.case.stringId)}))}))},r.prototype.deleteRemovedNodes=function(t,r){var n=this,i=new Set;vo(t.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF).value.forEach((function(e){return i.add(e)})),r.forEach((function(e){return i.delete(e)})),i.forEach((function(e){return n._caseResourceService.deleteCase(e,!0).subscribe((function(e){e.error&&n._logger.error("Removal of child case unsuccessful",e.error)}))}))},r.prototype.deselectNodeIfDescendantOf=function(e){for(var t=this.currentNode;t&&t!==this._rootNode;){if(t===e){this.changeActiveNode(void 0);break}t=t.parent}},r.prototype.performCaseRefCall=function(t,r){var n=this,i=new ne.ReplaySubject(1);return this._taskResourceService.getTasks(on.fromTaskQuery({case:{id:t},transitionId:e.TreePetriflowIdentifiers.CASE_REF_TRANSITION})).subscribe((function(t){if(!ii(t))return n._logger.error("Case ref accessor task doesn't exist!"),void i.complete();var o=t.content[0];n._taskResourceService.assignTask(o.stringId).subscribe((function(t){t.success||n._logger.error("Case ref accessor task could not be assigned",t.error);var a={};a[e.TreePetriflowIdentifiers.CHILDREN_CASE_REF]={type:"caseRef",value:r},n._taskResourceService.setData(o.stringId,a).subscribe((function(t){var r=t.outcome.changedFields.changedFields[e.TreePetriflowIdentifiers.CHILDREN_CASE_REF];i.next(r?r.value:void 0),i.complete(),n._taskResourceService.finishTask(o.stringId).subscribe((function(e){e.success?n._logger.debug("Case ref accessor task finished",e.success):n._logger.error("Case ref accessor task finish failed",e.error)}))}),(function(e){n._logger.error("Could not set data to tree case ref",e),i.complete()}))}),(function(e){n._logger.error("Case ref accessor task could not be assigned",e),i.complete()}))}),(function(e){n._logger.error("Case ref accessor task could not be found",e),i.complete()})),i.asObservable()},r.prototype.updateNodeChildrenFromChangedFields=function(t,r){var n=vo(t.case,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF),i=new Set;r.forEach((function(e){return i.add(e)}));for(var o=0,a=0;a<n.value.length&&o<2;a++)i.has(n.value[a])||o++;var s=n.value.length+1===r.length&&n.value.every((function(e){return i.has(e)})),u=n.value.length-1===r.length&&1===o;return s||u?s?this.processChildNodeAdd(t,n,r):this.processChildNodeRemove(t,n,i):(n.value=r,this._treeControl.collapseDescendants(t),t.dirtyChildren=!0,ne.of(new Ls(!0)))},r.prototype.processChildNodeAdd=function(e,t,r){var n=this,i=new ne.ReplaySubject(1);return t.value=r,this._caseResourceService.getOneCase(r[r.length-1]).subscribe((function(t){if(t){n._logger.debug("Pushing child node to tree",{childCase:t,affectedNode:e.toLoggableForm()});var r=n.pushChildToTree(e,t);i.next(new Ls(!0,[function(){n._isEagerLoaded&&(n._logger.debug("Eagerly expanding a newly added node.",r.toLoggableForm()),n.expandNode(r))}]))}else n._logger.error("New child case was not found, illegal state",t),i.next(new Ls(!1));i.complete()}),(function(e){n._logger.error("New child node case could not be found",e),i.next(new Ls(!1)),i.complete()})),i.asObservable()},r.prototype.pushChildToTree=function(e,t){var r=new Os(t,e);return e.children.push(r),this.refreshTree(),r},r.prototype.processChildNodeRemove=function(e,t,r){var n=t.value.findIndex((function(e){return!r.has(e)}));return t.value.splice(n,1),e.children.splice(n,1),this.refreshTree(),ne.of(new Ls(!0))},r.prototype.refreshTree=function(){hs(this._treeDataSource)},r.prototype.reloadCurrentCase=function(){var e=this;this._currentNode?this._reloadedCaseId&&this._currentNode.case.stringId!==this._reloadedCaseId?this._logger.debug("Reload of the current case already in progress"):(this._reloadedCaseId=this._currentNode.case.stringId,this._caseResourceService.getOneCase(this._currentCase.stringId).subscribe((function(t){if(t)if(e._currentNode&&t.stringId===e._currentNode.case.stringId){e._reloadedCaseId=void 0;var r=e.determineCaseUpdate(e._currentCase,t);Object.assign(e._currentCase,t),e._treeCaseViewService.loadTask$.next(e._currentCase),r.visibleTreePropertiesChanged&&e.refreshTree(),r.childrenChanged&&(e._currentNode.dirtyChildren=!0,e.expandNode(e._currentNode)),e._logger.debug("Current Case Tree Node reloaded")}else e._logger.debug("Discarding case reload response, since the current node has changed before its case was received");else e._logger.error("Current Case Tree Node could not be reloaded. Invalid server response",t)}),(function(t){e._logger.error("Current Case Tree Node reload request failed",t)}))):this._logger.debug("No Tree Case Node selected, nothing to reload")},r.prototype.determineCaseUpdate=function(t,r){var n=[e.TreePetriflowIdentifiers.CAN_ADD_CHILDREN,e.TreePetriflowIdentifiers.CAN_REMOVE_NODE,e.TreePetriflowIdentifiers.BEFORE_TEXT_ICON,e.TreePetriflowIdentifiers.TREE_ADD_ICON],i={visibleTreePropertiesChanged:!0,childrenChanged:!1},o=vo(t,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF);if(void 0!==o){var a=new Set(o.value),s=new Set(vo(r,e.TreePetriflowIdentifiers.CHILDREN_CASE_REF).value);if(i.childrenChanged=a.size!==s.size,i.childrenChanged||(i.childrenChanged=Array.from(a).some((function(e){return!s.has(e)}))),i.childrenChanged)return i}return i.visibleTreePropertiesChanged=n.some((function(e){return vo(t,e)&&vo(t,e).value!==vo(r,e).value})),i},r.ctorParameters=function(){return[{type:Jo},{type:Ds},{type:Sr},{type:$e},{type:Ni},{type:Qr},{type:ue.TranslateService},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[va]}]}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Jo},{type:Ds},{type:Sr},{type:$e},{type:Ni},{type:Qr},{type:ue.TranslateService},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[va]}]}]},r}(),Ms=function(){function r(e,t,r,n){this._fieldConverterService=e,this._snackBarService=t,this._translate=r,this._logger=n,this._taskFieldsIndex={},this._referencedTaskAndCaseIds={},this.$shouldCreate=new ne.ReplaySubject(1),this.$shouldCreateCounter=new ne.BehaviorSubject(0),this._isExpanding$=new ne.BehaviorSubject(!1),this._task=void 0,this._taskDataReloadRequest$=new ne.Subject}return r.prototype.ngOnDestroy=function(){this.$shouldCreate.closed||this.$shouldCreate.complete(),this._taskDataReloadRequest$.complete(),this._isExpanding$.complete()},Object.defineProperty(r.prototype,"taskDataReloadRequest$",{get:function(){return this._taskDataReloadRequest$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"taskFieldsIndex",{get:function(){return this._taskFieldsIndex},set:function(e){this._taskFieldsIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"referencedTaskAndCaseIds",{get:function(){return this._referencedTaskAndCaseIds},set:function(e){this._referencedTaskAndCaseIds=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isExpanding",{get:function(){return this._isExpanding$.value},enumerable:!1,configurable:!0}),r.prototype.expansionStarted=function(){this._isExpanding$.next(!0)},r.prototype.expansionFinished=function(){this._isExpanding$.next(!1)},r.prototype.validateTaskData=function(){if(!this._task||!this._task.dataGroups)return!1;var e=!this._task.dataGroups.some((function(e){return e.fields.some((function(e){return!e.valid&&!e.disabled}))})),t=!this._task.dataGroups.some((function(e){return e.fields.some((function(e){return!e.validRequired&&e.disabled}))}));return e||(this._snackBarService.openErrorSnackBar(this._translate.instant("tasks.snackbar.invalidData")),this._task.dataGroups.forEach((function(e){return e.fields.forEach((function(e){return e.touch=!0}))}))),t||this._snackBarService.openErrorSnackBar(this._translate.instant("tasks.snackbar.missingRequired")),e&&t},r.prototype.getInvalidTaskData=function(){var e=[];return this._task.dataGroups.forEach((function(t){return e.push.apply(e,ke(t.fields.filter((function(e){return!e.valid&&!e.disabled||!e.validRequired&&!e.disabled}))))})),e},r.prototype.validateDynamicEnumField=function(){var e,t,r,n;if(!this._task||!this._task.dataGroups)return!1;if(!this._task.dataGroups.some((function(e){return e.fields.some((function(e){return e instanceof mr}))})))return!0;var i=!0;try{for(var o=we(this._task.dataGroups),a=o.next();!a.done;a=o.next()){var s=a.value,u=function(e){e instanceof mr&&void 0!==e.choices&&0!==e.choices.length&&""!==e.value&&void 0!==e.value&&(e.choices.some((function(t){return t.key===e.value}))||(e.value="",e.behavior.required&&(i=!1)))};try{for(var c=(r=void 0,we(s.fields)),l=c.next();!l.done;l=c.next()){u(l.value)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i||this._snackBarService.openErrorSnackBar(this._translate.instant("tasks.snackbar.missingRequired")),i},r.prototype.blockFields=function(e){this._task&&this._task.dataGroups&&this._task.dataGroups.forEach((function(t){t.fields.forEach((function(t){t.block=e}))}))},r.prototype.updateStateData=function(e){this._task&&(this._task.user=e.task.user,this._task.startDate=e.task.startDate,this._task.finishDate=e.task.finishDate)},r.prototype.updateFromChangedFields=function(e){var t=this;if(this._task&&this._task.dataGroups){var n=e.taskId===this.task.stringId&&e[r.FRONTEND_ACTIONS_KEY];Object.keys(e).forEach((function(r){t.taskFieldsIndex[e.taskId]&&t.taskFieldsIndex[e.taskId][r]&&t.updateField(e,t.taskFieldsIndex[e.taskId][r],n)})),this.$shouldCreate.next(this._task.dataGroups),this.performFrontendAction(n)}},r.prototype.updateField=function(t,r,n){var i=this;if(this._fieldConverterService.resolveType(r)!==e.FieldTypeResource.TASK_REF){var o=t[r.stringId];Object.keys(o).forEach((function(e){switch(e){case"type":return;case"value":r.valueWithoutChange(i._fieldConverterService.formatValueFromBackend(r,o[e]));break;case"behavior":if(!o.behavior[i._task.transitionId])return;r.behavior=o.behavior[i._task.transitionId];break;case"choices":var t=[];o.choices instanceof Array?o.choices.forEach((function(e){t.push({key:e,value:e})})):Object.keys(o.choices).forEach((function(e){t.push({key:e,value:o.choices[e]})})),r.choices=t;break;case"options":var n=[];Object.keys(o.options).forEach((function(e){n.push({key:e,value:o.options[e]})})),r.choices=n;break;case"validations":r.replaceValidations(o.validations.map((function(e){return e})));break;default:r[e]=o[e]}r.update()}))}else this._taskDataReloadRequest$.next(n||void 0)},r.prototype.performFrontendAction=function(e){var t=this;e&&e.type===r.VALIDATE_FRONTEND_ACTION&&ne.timer().subscribe((function(){return t.validateTaskData()}))},r.FRONTEND_ACTIONS_KEY="_frontend_actions",r.VALIDATE_FRONTEND_ACTION="validate",r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r}(),xs=function(){function e(e,t){void 0===t&&(t=null),this._taskContentService=e,this._selectedCaseService=t}return Object.defineProperty(e.prototype,"_task",{get:function(){return this._taskContentService.task},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_safeTask",{get:function(){var e=this._taskContentService.task;if(!e)throw new Error("Attempting to access Task object of an uninitialized TaskContentService");return e},enumerable:!1,configurable:!0}),e.prototype.isTaskPresent=function(){return!!this._taskContentService.task},e.prototype.isTaskRelevant=function(e){return this.isTaskPresent()&&this._task.stringId===e&&(!this._selectedCaseService||!!this._selectedCaseService&&!!this._selectedCaseService.selectedCase&&this._task.caseId===this._selectedCaseService.selectedCase.stringId)},e}(),Vs=function(e){function r(t){var r=e.call(this,t)||this;return r._loading=new Ye,r._updating=new Ye,t.task$.subscribe((function(){r._loading.off(),r._updating.off()})),r}return Ie(r,e),r.prototype.isLoading=function(e){if(void 0===e||this.isTaskRelevant(e))return this._loading.isActive},r.prototype.startLoading=function(e){this.isTaskRelevant(e)&&this._loading.on()},r.prototype.stopLoading=function(e){this.isTaskRelevant(e)&&this._loading.off()},r.prototype.isUpdating=function(e){if(void 0===e||this.isTaskRelevant(e))return this._updating.isActive},r.prototype.startUpdating=function(e){this.isTaskRelevant(e)&&this._updating.on()},r.prototype.stopUpdating=function(e){this.isTaskRelevant(e)&&this._updating.off()},r.prototype.ngOnDestroy=function(){this._loading.complete(),this._updating.complete()},r.ctorParameters=function(){return[{type:Ms}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Ms}]},r}(xs),Us=new t.InjectionToken("NaeTaskOperationsInterface"),$s=function(){function e(){this._selectedCase$=new ne.BehaviorSubject(void 0)}return e.prototype.ngOnDestroy=function(){this._selectedCase$.complete()},Object.defineProperty(e.prototype,"selectedCase$",{get:function(){return this._selectedCase$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedCase",{get:function(){return this._selectedCase$.getValue()},set:function(e){this._selectedCase$.next(e)},enumerable:!1,configurable:!0}),e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}();function Bs(e,t,r){return{taskId:e.stringId,transitionId:e.transitionId,event:t,success:r}}var zs,Hs=function(e){function r(t){var r=e.call(this,t)||this;return r._taskEventNotifications$=new ne.Subject,r}return Ie(r,e),r.prototype.ngOnDestroy=function(){this._taskEventNotifications$.complete()},Object.defineProperty(r.prototype,"taskEventNotifications$",{get:function(){return this._taskEventNotifications$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.publishTaskEvent=function(e){this._taskEventNotifications$.next(e)},r.ctorParameters=function(){return[{type:Ms}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Ms}]},r}(xs),Gs=function(){function e(e,t){this._log=e,this._afterActionService=t,this._queue=[],this._performingEvent=new Ye}return e.prototype.scheduleEvent=function(e){this._performingEvent.isActive?(this._log.debug("Adding scheduled event to queue. Position in queue: "+this._queue.length),this._queue.push(e)):(this._log.debug("Event queue is empty. Executing scheduled event immediately."),this._performingEvent.on(),this.executeEvent(e))},e.prototype.executeEvent=function(e){var t=this;e.resolve(this._afterActionService.create((function(){t.executeNextEventFromQueue()})))},e.prototype.executeNextEventFromQueue=function(){if(this._log.debug("Event finished execution."),0===this._queue.length)return this._performingEvent.off(),void this._log.debug("Last event in queue was executed.");this._log.debug("Executing next event in queue."),this.executeEvent(this._queue.shift())},e.ctorParameters=function(){return[{type:$e},{type:ha}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"]($e),t["ɵɵinject"](ha))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:$e},{type:ha}]},e}(),qs=function(){function e(e,t,r){void 0===r&&(r=function(e){e.resolve(!0)}),this._isRelevant=e,this._execute=t,this._revert=r}return e.prototype.resolve=function(e){this._isRelevant()?this._execute(e):this._revert(e)},e}(),Ws=function(){function e(){this._changedFields$=new ne.Subject}return e.prototype.ngOnDestroy=function(){this._changedFields$.complete()},Object.defineProperty(e.prototype,"changedFields$",{get:function(){return this._changedFields$.asObservable()},enumerable:!1,configurable:!0}),e.prototype.emitChangedFields=function(e){void 0!==e&&0!==Object.keys(e).length&&this._changedFields$.next(e)},e.prototype.parseChangedFieldsByCaseAndTaskIds=function(e,t,r){var n=[];return Object.keys(r[e]).filter((function(e){return t.includes(e)})).forEach((function(t){n.push(r[e][t])})),n},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),Qs=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h,f,g){var y=r.call(this,l,c)||this;return y._taskState=e,y._translate=t,y._log=n,y._snackBar=i,y._taskResourceService=o,y._fieldConverterService=a,y._taskEvent=s,y._taskOperations=u,y._afterActionFactory=p,y._eventQueue=d,y._userComparator=h,y._eventService=f,y._changedFieldsService=g,y._updateSuccess$=new ne.Subject,y._dataReloadSubscription=y._taskContentService.taskDataReloadRequest$.subscribe((function(e){y.initializeTaskDataFields(y._afterActionFactory.create((function(t){t&&e&&y._taskContentService.performFrontendAction(e)})),!0)})),y}return Ie(n,r),n.prototype.ngOnDestroy=function(){this._updateSuccess$.complete(),this._dataReloadSubscription.unsubscribe(),this.isTaskPresent()&&this._safeTask.dataGroups&&this._safeTask.dataGroups.forEach((function(e){e&&e.fields&&e.fields.forEach((function(e){return e.destroy()}))}))},Object.defineProperty(n.prototype,"updateSuccess$",{get:function(){return this._updateSuccess$.asObservable()},enumerable:!1,configurable:!0}),n.prototype.initializeTaskDataFields=function(e,t){var r=this;void 0===e&&(e=new da),void 0===t&&(t=!1),this._eventQueue.scheduleEvent(new qs((function(){return r.isTaskPresent()}),(function(n){r.performGetDataRequest(e,t,n)}),(function(t){e.resolve(!1),t.resolve(!1)})))},n.prototype.performGetDataRequest=function(t,r,n){var i=this;if(this._safeTask.dataSize>0&&!r)return this.sendNotification(e.TaskEvent.GET_DATA,!0),t.resolve(!0),this._taskContentService.$shouldCreate.next(this._safeTask.dataGroups),void n.resolve(!0);r&&(this._safeTask.dataSize=0);var o=this._safeTask.stringId;this._taskState.startLoading(o),this._taskResourceService.getData(o).pipe(le.take(1)).subscribe((function(e){i.processSuccessfulGetDataRequest(o,e,t,n)}),(function(e){i.processErroneousGetDataRequest(o,e,t,n)}))},n.prototype.processSuccessfulGetDataRequest=function(t,r,n,i){var o=this;if(!this.isTaskRelevant(t))return this._log.debug("current task changed before the get data response could be received, discarding..."),this._taskState.stopLoading(t),n.complete(),void i.resolve(!1);this._taskContentService.referencedTaskAndCaseIds={},this._taskContentService.taskFieldsIndex={},this._safeTask.dataGroups=r,0===r.length?(this._log.info("Task has no data "+this._safeTask),this._safeTask.dataSize=0):(this._taskContentService.referencedTaskAndCaseIds[this._safeTask.caseId]=[this._safeTask.stringId],r.forEach((function(e){var t=void 0===e.parentCaseId?o._safeTask.caseId:e.parentCaseId,r=void 0===e.parentTaskId?o._safeTask.stringId:e.parentTaskId;t!==o._safeTask.caseId?o._taskContentService.referencedTaskAndCaseIds[t]?o._taskContentService.referencedTaskAndCaseIds[t].push(e.parentTaskId):o._taskContentService.referencedTaskAndCaseIds[t]=[e.parentTaskId]:t!==o._safeTask.caseId||r===o._safeTask.stringId||o._taskContentService.referencedTaskAndCaseIds[t].includes(r)||o._taskContentService.referencedTaskAndCaseIds[t].push(e.parentTaskId),e.fields.length>0&&!o._taskContentService.taskFieldsIndex[r]&&(o._taskContentService.taskFieldsIndex[r]={}),e.fields.forEach((function(e){o._taskContentService.taskFieldsIndex[r][e.stringId]=e,e.valueChanges().subscribe((function(){o.wasFieldUpdated(e)&&(e instanceof mr?(e.loading=!0,o.updateTaskDataFields(o._afterActionFactory.create((function(t){e.loading=!1})))):o.updateTaskDataFields())})),(e instanceof or||e instanceof gr)&&e.changedFields$.subscribe((function(e){o._changedFieldsService.emitChangedFields(e)}))})),void 0===o._safeTask.dataSize?o._safeTask.dataSize=e.fields.length:o._safeTask.dataSize+=e.fields.length}))),this._taskState.stopLoading(t),this.sendNotification(e.TaskEvent.GET_DATA,!0),n.resolve(!0),i.resolve(!0),this._taskContentService.$shouldCreate.next(this._safeTask.dataGroups),this._taskContentService.$shouldCreateCounter.next(this._taskContentService.$shouldCreateCounter.getValue()+1)},n.prototype.processErroneousGetDataRequest=function(t,r,n,i){if(this._taskState.stopLoading(t),this._log.debug("getting task data failed",r),!this.isTaskRelevant(t))return this._log.debug("current task changed before the get data error could be received"),n.complete(),void i.resolve(!1);500===r.status&&r.error.message&&r.error.message.startsWith("Could not find task with id")?(this._snackBar.openWarningSnackBar(this._translate.instant("tasks.snackbar.noLongerExists")),this._taskOperations.reload()):this._snackBar.openErrorSnackBar(this._translate.instant("tasks.snackbar.noGroup")+"\n "+this._taskContentService.task.title+" "+this._translate.instant("tasks.snackbar.failedToLoad")),this.sendNotification(e.TaskEvent.GET_DATA,!1),n.resolve(!1),i.resolve(!1)},n.prototype.updateTaskDataFields=function(e){var t=this;if(void 0===e&&(e=new da),!this.isTaskPresent())return this._log.debug("Task is not present. Update request ignored."),void e.resolve(!1);if(void 0===this._safeTask.user)return this._log.debug("current task is not assigned..."),void e.resolve(!1);var r=this._safeTask.stringId;if(this._safeTask.dataSize<=0)e.resolve(!0);else{var n=this.createUpdateRequestContext();this._eventQueue.scheduleEvent(new qs((function(){return t.isSetDataRequestStillValid(n.body)}),(function(i){t.performSetDataRequest(r,n.body,e,i)}),(function(e){t.revertSetDataRequest(n),e.resolve(!1)})))}},n.prototype.createUpdateRequestContext=function(){var e=this,t={body:{},previousValues:{}};return t.body[this._task.stringId]={},this._safeTask.dataGroups.filter((function(e){return void 0===e.parentTaskId})).forEach((function(r){r.fields.filter((function(t){return e.wasFieldUpdated(t)})).forEach((function(r){e.addFieldToSetDataRequestBody(t,e._task.stringId,r)}))})),this._safeTask.dataGroups.filter((function(e){return void 0!==e.parentTaskId})).forEach((function(r){r.fields.some((function(t){return e.wasFieldUpdated(t)}))&&(t.body[r.parentTaskId]={},r.fields.filter((function(t){return e.wasFieldUpdated(t)})).forEach((function(n){e.addFieldToSetDataRequestBody(t,r.parentTaskId,n)})))})),t},n.prototype.addFieldToSetDataRequestBody=function(e,t,r){e.body[t][r.stringId]={type:this._fieldConverterService.resolveType(r),value:this._fieldConverterService.formatValueForBackend(r,r.value)},e.previousValues[r.stringId]=r.previousValue,r.changed=!1},n.prototype.wasFieldUpdated=function(e){return e.initialized&&e.changed&&(e.valid||e.sendInvalidValues)},n.prototype.isSetDataRequestStillValid=function(e){var t,r,n,i;if(!this.isTaskPresent())return!1;if(void 0===this._safeTask.user)return!1;if(!this._userComparator.compareUsers(this._safeTask.user))return!1;var o=Object.keys(e);try{for(var a=we(o),s=a.next();!s.done;s=a.next()){var u=s.value;if(!Object.keys(this._taskContentService.taskFieldsIndex).includes(u))return this._log.error("Task id "+u+" is not present in task fields index"),!1;var c=Object.keys(e[u]);try{for(var l=(n=void 0,we(c)),p=l.next();!p.done;p=l.next()){var d=p.value,h=this._taskContentService.taskFieldsIndex[u][d];if(void 0===h)return this._log.error("Unexpected state. Datafield "+d+" of task "+u+" in setData request is not present in the task."),!1;if(!h.behavior.editable)return this._log.debug("Field "+d+", was meant to be set to\n "+JSON.stringify(e[u][d])+", but is no loner editable."),!1}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0},n.prototype.performSetDataRequest=function(t,r,n,i){var o=this;if(0===Object.keys(r).length)return this.sendNotification(e.TaskEvent.SET_DATA,!0),n.resolve(!0),void i.resolve(!0);this._taskState.startLoading(t),this._taskState.startUpdating(t),this._taskResourceService.setData(this._safeTask.stringId,r).pipe(le.take(1)).subscribe((function(e){o.processSuccessfulSetDataRequest(t,e.outcome,n,i,r)}),(function(e){o.processErroneousSetDataRequest(t,e,n,i,r)}))},n.prototype.processSuccessfulSetDataRequest=function(e,t,r,n,i){if(!this.isTaskRelevant(e))return this._log.debug("current task changed before the set data response could be received, discarding..."),this._taskState.stopLoading(e),this._taskState.stopUpdating(e),r.complete(),void n.resolve(!1);var o=this._eventService.parseChangedFieldsFromOutcomeTree(t);Object.keys(o).length>0&&this._changedFieldsService.emitChangedFields(o),this.clearWaitingForResponseFlag(i),this._snackBar.openSuccessSnackBar(t.message?t.message:this._translate.instant("tasks.snackbar.dataSaved")),this.updateStateInfo(r,!0,e),n.resolve(!0)},n.prototype.processErroneousSetDataRequest=function(e,t,r,n,i){if(this._log.debug("setting task data failed",t),!this.isTaskRelevant(e))return this._log.debug("current task changed before the get data error could be received"),this._taskState.stopLoading(e),this._taskState.stopUpdating(e),r.complete(),void n.resolve(!1);this.revertToPreviousValue(),this.clearWaitingForResponseFlag(i),this._snackBar.openErrorSnackBar(this._translate.instant("tasks.snackbar.failedSave")),this.updateStateInfo(r,!1,e),n.resolve(!1),this._taskOperations.reload()},n.prototype.revertSetDataRequest=function(e){var t,r,n,i,o=Object.keys(e.body).length,a=0;try{for(var s=we(this._safeTask.dataGroups),u=s.next();!u.done;u=s.next()){var c=u.value;try{for(var l=(n=void 0,we(c.fields)),p=l.next();!p.done;p=l.next()){var d=p.value;if(e.body[d.stringId]&&(this.compareBackendFormattedFieldValues(this._fieldConverterService.formatValueForBackend(d,d.value),e.body[d.stringId].value)&&d.valueWithoutChange(e.previousValues[d.stringId]),++a===o))return}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}this._log.error("Invalid state. Some data fields of task "+this._safeTask.stringId+", are no longer present in it!")},n.prototype.compareBackendFormattedFieldValues=function(e,t){if(Array.isArray(e)){if(!Array.isArray(t))throw new Error("Illegal arguments! Cannot compare array value to non-array value");return e.length===t.length&&e.every((function(e,r){return t[r]===e}))}return e===t},n.prototype.updateStateInfo=function(t,r,n){this._taskState.stopLoading(n),this._taskState.stopUpdating(n),0!==this._updateSuccess$.observers.length&&this._updateSuccess$.next(r),this.sendNotification(e.TaskEvent.SET_DATA,r),t.resolve(r)},n.prototype.sendNotification=function(e,t){this._taskEvent.publishTaskEvent(Bs(this._safeTask,e,t))},n.prototype.revertToPreviousValue=function(){this._safeTask.dataGroups.forEach((function(e){e.fields.forEach((function(e){e.initialized&&e.valid&&e.changed&&e.revertToPreviousValue()}))}))},n.prototype.clearWaitingForResponseFlag=function(e){var t=this;Object.keys(e).forEach((function(r){Object.keys(e[r]).forEach((function(e){t._taskContentService.taskFieldsIndex[r][e].waitingForResponse=!1}))}))},n.ctorParameters=function(){return[{type:Vs},{type:ue.TranslateService},{type:$e},{type:ft},{type:Sr},{type:Tr},{type:Hs},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms},{type:ha},{type:Gs},{type:io},{type:Er},{type:Ws}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Vs},{type:ue.TranslateService},{type:$e},{type:ft},{type:Sr},{type:Tr},{type:Hs},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms},{type:ha},{type:Gs},{type:io},{type:Er},{type:Ws}]},n}(xs),Ks=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h,f,g,y,v){var m=r.call(this,y,f)||this;return m._log=e,m._taskEventService=t,m._taskResourceService=n,m._translate=i,m._snackBar=o,m._taskState=a,m._userComparator=s,m._taskEvent=u,m._taskDataService=c,m._eventQueue=l,m._eventService=p,m._changedFieldsService=d,m._taskOperations=h,m._taskViewService=g,m.permissionService=v,m}return Ie(n,r),n.prototype.cancel=function(e){var t=this;void 0===e&&(e=new da),this._eventQueue.scheduleEvent(new qs((function(){return t.permissionService.canCancel(t._safeTask)}),(function(r){t.performCancelRequest(e,r,null!==t._taskViewService&&!t._taskViewService.allowMultiOpen)}),(function(r){t.completeActions(e,r,!1)})))},n.prototype.performCancelRequest=function(e,t,r){var n=this._safeTask.stringId;this._taskState.isLoading(n)?t.resolve(!0):(this._taskState.startLoading(n),this.cancelRequest(e,n,t,r))},n.prototype.cancelRequest=function(e,t,r,n){var i=this;void 0===e&&(e=new da),void 0===r&&(r=new da),this._taskResourceService.cancelTask(this._safeTask.stringId).pipe(le.take(1)).subscribe((function(o){if(i._taskState.stopLoading(t),!i.isTaskRelevant(t))return i._log.debug("current task changed before the cancel response could be received, discarding..."),void r.resolve(!1);if(o.success)i._taskContentService.updateStateData(o.outcome),(a=i._eventService.parseChangedFieldsFromOutcomeTree(o.outcome))&&i._changedFieldsService.emitChangedFields(a),n?i._taskOperations.forceReload():i._taskOperations.reload(),i.completeActions(e,r,!0);else if(void 0!==o.error){if(""!==o.error&&i._snackBar.openErrorSnackBar(o.error),void 0!==o.outcome){var a=i._eventService.parseChangedFieldsFromOutcomeTree(o.outcome);i._changedFieldsService.emitChangedFields(a)}i.completeActions(e,r,!1)}}),(function(n){if(i._taskState.stopLoading(t),i._log.debug("canceling task failed",n),!i.isTaskRelevant(t))return i._log.debug("current task changed before the cancel error could be received"),void r.resolve(!1);i._snackBar.openErrorSnackBar(i._translate.instant("tasks.snackbar.cancelTask")+"\n "+i._task+" "+i._translate.instant("tasks.snackbar.failed")),i.completeActions(e,r,!1)}))},n.prototype.completeActions=function(e,t,r){this.sendNotification(r),e.resolve(r),t.resolve(r)},n.prototype.sendNotification=function(t){this._taskEvent.publishTaskEvent(Bs(this._safeTask,e.TaskEvent.CANCEL,t))},n.ctorParameters=function(){return[{type:$e},{type:Hs},{type:Sr},{type:ue.TranslateService},{type:ft},{type:Vs},{type:io},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ao,decorators:[{type:t.Optional}]},{type:Ms},{type:Na}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:$e},{type:Hs},{type:Sr},{type:ue.TranslateService},{type:ft},{type:Vs},{type:io},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ao,decorators:[{type:t.Optional}]},{type:Ms},{type:Na}]},n}(xs),Ys=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h,f){var g=r.call(this,f,d)||this;return g._log=e,g._taskResourceService=t,g._snackBar=n,g._translate=i,g._taskState=o,g._taskEvent=a,g._taskDataService=s,g._eventQueue=u,g._eventService=c,g._changedFieldsService=l,g._taskOperations=p,g._taskViewService=h,g}return Ie(n,r),n.prototype.assign=function(e){var t=this;void 0===e&&(e=new da),this._eventQueue.scheduleEvent(new qs((function(){return!t._safeTask.user}),(function(r){t.performAssignRequest(e,r,null!==t._taskViewService&&!t._taskViewService.allowMultiOpen)}),(function(r){t.completeSuccess(e,r)})))},n.prototype.performAssignRequest=function(e,t,r){var n=this._safeTask.stringId;this._taskState.isLoading(n)?t.resolve(!0):(this._taskState.startLoading(n),this.assignRequest(e,n,t,r))},n.prototype.assignRequest=function(e,t,r,n){var i=this;void 0===e&&(e=new da),void 0===r&&(r=new da),this._taskResourceService.assignTask(this._safeTask.stringId).pipe(le.take(1)).subscribe((function(o){if(i._taskState.stopLoading(t),!i.isTaskRelevant(t))return i._log.debug("current task changed before the assign response could be received, discarding..."),void r.resolve(!1);if(o.success)i._taskContentService.updateStateData(o.outcome),(a=i._eventService.parseChangedFieldsFromOutcomeTree(o.outcome))&&i._changedFieldsService.emitChangedFields(a),n?i._taskOperations.forceReload():i._taskOperations.reload(),i.completeActions(e,r,!0),i._snackBar.openSuccessSnackBar(o.outcome.message?o.outcome.message:i._translate.instant("tasks.snackbar.assignTaskSuccess"));else if(o.error){if(""!==o.error&&i._snackBar.openErrorSnackBar(o.error),void 0!==o.outcome){var a=i._eventService.parseChangedFieldsFromOutcomeTree(o.outcome);i._changedFieldsService.emitChangedFields(a)}i.completeActions(e,r,!1)}}),(function(n){if(i._taskState.stopLoading(t),i._log.debug("assigning task failed",n),!i.isTaskRelevant(t))return i._log.debug("current task changed before the assign error could be received"),void r.resolve(!1);i._snackBar.openErrorSnackBar(i._translate.instant("tasks.snackbar.assignTask")+"\n "+i._taskContentService.task+" "+i._translate.instant("tasks.snackbar.failed")),i.completeActions(e,r,!1)}))},n.prototype.completeSuccess=function(e,t){this._taskOperations.reload(),this.completeActions(e,t,!0)},n.prototype.completeActions=function(e,t,r){this.sendNotification(r),e.resolve(r),t.resolve(r)},n.prototype.sendNotification=function(t){this._taskEvent.publishTaskEvent(Bs(this._safeTask,e.TaskEvent.ASSIGN,t))},n.ctorParameters=function(){return[{type:$e},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ao,decorators:[{type:t.Optional}]},{type:Ms}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:$e},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ao,decorators:[{type:t.Optional}]},{type:Ms}]},n}(xs),Xs=function(r){function n(e){return r.call(this,e)||this}return Ie(n,r),n.prototype.performDataFocusPolicy=function(){this._safeTask.dataFocusPolicy===e.DataFocusPolicy.autoRequired&&this.autoRequiredDataFocusPolicy()},n.prototype.autoRequiredDataFocusPolicy=function(){},n.ctorParameters=function(){return[{type:Ms}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Ms}]},n}(xs),Zs=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h,f){var g=r.call(this,f,h)||this;return g._log=e,g._taskResourceService=t,g._snackBar=n,g._translate=i,g._taskState=o,g._taskDataService=a,g._callChain=s,g._taskEvent=u,g._eventQueue=c,g._eventService=l,g._changedFieldsService=p,g._taskOperations=d,g}return Ie(n,r),n.prototype.validateDataAndFinish=function(e){var t=this;if(void 0===e&&(e=new da),this._safeTask.dataSize<=0)this._taskDataService.initializeTaskDataFields(this._callChain.create((function(){(t._safeTask.dataSize<=0||t._taskContentService.validateDynamicEnumField()&&t._taskContentService.validateTaskData())&&t.queueFinishTaskRequest(e)})));else if(this._taskContentService.validateDynamicEnumField()&&this._taskContentService.validateTaskData()){var r=this._safeTask.stringId;this._taskDataService.updateTaskDataFields(this._callChain.create((function(n){n&&(t._taskState.isUpdating(r)?t._taskDataService.updateSuccess$.pipe(le.take(1)).subscribe((function(r){r&&t.queueFinishTaskRequest(e)})):t.queueFinishTaskRequest(e))})))}},n.prototype.queueFinishTaskRequest=function(e){var t=this;this._eventQueue.scheduleEvent(new qs((function(){return!0}),(function(r){t.performFinishRequest(e,r)})))},n.prototype.performFinishRequest=function(e,t){var r=this,n=this._safeTask.stringId;this._taskState.isLoading(n)?t.resolve(!0):(this._taskState.startLoading(n),this._taskResourceService.finishTask(this._safeTask.stringId).pipe(le.take(1)).subscribe((function(i){if(r._taskState.stopLoading(n),!r.isTaskRelevant(n))return r._log.debug("current task changed before the finish response could be received, discarding..."),void t.resolve(!1);if(i.success)r._taskContentService.updateStateData(i.outcome),(o=r._eventService.parseChangedFieldsFromOutcomeTree(i.outcome))&&r._changedFieldsService.emitChangedFields(o),r._taskOperations.reload(),r.completeActions(e,t,!0),r._taskOperations.close(),r._snackBar.openSuccessSnackBar(void 0===i.outcome.message?r._translate.instant("tasks.snackbar.finishTaskSuccess"):i.outcome.message);else if(void 0!==i.error){if(""!==i.error&&r._snackBar.openErrorSnackBar(i.error),void 0!==i.outcome){var o=r._eventService.parseChangedFieldsFromOutcomeTree(i.outcome);r._changedFieldsService.emitChangedFields(o)}r.completeActions(e,t,!1)}}),(function(i){if(r._taskState.stopLoading(n),r._log.debug("finishing task failed",i),!r.isTaskRelevant(n))return r._log.debug("current task changed before the finish error could be received"),void t.resolve(!1);r._snackBar.openErrorSnackBar(r._translate.instant("tasks.snackbar.finishTask")+"\n "+r._task.title+" "+r._translate.instant("tasks.snackbar.failed")),r.completeActions(e,t,!1)})))},n.prototype.completeActions=function(e,t,r){this.sendNotification(r),e.resolve(r),t.resolve(r)},n.prototype.sendNotification=function(t){this._taskEvent.publishTaskEvent(Bs(this._safeTask,e.TaskEvent.FINISH,t))},n.ctorParameters=function(){return[{type:$e},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Qs},{type:ha},{type:Hs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:$e},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Qs},{type:ha},{type:Hs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms}]},n}(xs),Js=function(r){function n(e,t,n,i){var o=r.call(this,i)||this;return o._dataFocusPolicyService=e,o._finishTaskService=t,o._taskOperations=n,o}return Ie(n,r),n.prototype.performFinishPolicy=function(t){void 0===t&&(t=new da),this._safeTask.finishPolicy===e.FinishPolicy.autoNoData?this.autoNoDataFinishPolicy(t):this.manualFinishPolicy(t)},n.prototype.autoNoDataFinishPolicy=function(e){this._safeTask.dataSize<=0?(this._finishTaskService.validateDataAndFinish(e),this._taskOperations.close()):(this._taskOperations.open(),this._dataFocusPolicyService.performDataFocusPolicy(),e.resolve(!0))},n.prototype.manualFinishPolicy=function(e){this._taskOperations.open(),this._dataFocusPolicyService.performDataFocusPolicy(),e.next(!0),e.complete()},n.ctorParameters=function(){return[{type:Xs},{type:Zs},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:Ms}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Xs},{type:Zs},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:Ms}]},n}(xs),eu=function(r){function n(e,t,n,i,o,a,s,u,c){var l=r.call(this,u)||this;return l._taskDataService=e,l._assignTaskService=t,l._cancelTaskService=n,l._finishPolicyService=i,l._callchain=o,l._userComparatorService=a,l._taskOperations=s,l._permissionService=c,l._isForced=!1,l}return Ie(n,r),Object.defineProperty(n.prototype,"forced",{get:function(){return this._isForced},set:function(e){this._isForced=e},enumerable:!1,configurable:!0}),n.prototype.performAssignPolicy=function(t,r){void 0===r&&(r=new da),this._safeTask.assignPolicy===e.AssignPolicy.auto&&this._permissionService.hasTaskPermission(this._safeTask,ho.ASSIGN)?this.autoAssignPolicy(t,r):this.manualAssignPolicy(t,r)},n.prototype.autoAssignPolicy=function(e,t){e?this.autoAssignOpenedPolicy(t):this.autoAssignClosedPolicy(t)},n.prototype.autoAssignOpenedPolicy=function(e){var t=this;this._assignTaskService.assign(this._callchain.create((function(r){t.afterAssignOpenPolicy(r,e)})))},n.prototype.afterAssignOpenPolicy=function(e,t){var r=this;e?this._taskDataService.initializeTaskDataFields(this._callchain.create((function(e){e?r._finishPolicyService.performFinishPolicy(t):t.resolve(!1)})),this._isForced):t.resolve(!1)},n.prototype.autoAssignClosedPolicy=function(e){var t=this;if(!this._userComparatorService.compareUsers(this._task.user))return this._taskOperations.close(),e.next(!1),void e.complete();this._cancelTaskService.cancel(this._callchain.create((function(r){t._taskOperations.close(),e.next(r),e.complete()})))},n.prototype.manualAssignPolicy=function(e,t){e?this.manualAssignOpenedPolicy(t):t.resolve(!1)},n.prototype.manualAssignOpenedPolicy=function(e){var t=this;this._taskDataService.initializeTaskDataFields(this._callchain.create((function(r){r?t._finishPolicyService.performFinishPolicy(e):e.resolve(!1)})),this._isForced)},n.ctorParameters=function(){return[{type:Qs},{type:Ys},{type:Ks},{type:Js},{type:ha},{type:io},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:Ms},{type:Na}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:Qs},{type:Ys},{type:Ks},{type:Js},{type:ha},{type:io},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:Ms},{type:Na}]},n}(xs),tu=function(){function e(){this._open=new ne.Subject,this._close=new ne.Subject,this._reload=new ne.Subject,this._forceReload=new ne.Subject}return e.prototype.open=function(){this._open.next()},e.prototype.close=function(){this._close.next()},e.prototype.reload=function(){this._reload.next()},e.prototype.forceReload=function(){this._forceReload.next()},Object.defineProperty(e.prototype,"open$",{get:function(){return this._open.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"close$",{get:function(){return this._close.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reload$",{get:function(){return this._reload.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"forceReload$",{get:function(){return this._forceReload.asObservable()},enumerable:!1,configurable:!0}),e.prototype.ngOnDestroy=function(){this._open.complete(),this._close.complete(),this._reload.complete(),this._forceReload.complete()},e}(),ru=function(){function r(e,t,r,n,i,o,a,s,u,c,l,p,d,h){var f=this;this._treeCaseService=e,this._taskDataService=t,this._taskContentService=r,this._taskResourceService=n,this._taskEventService=i,this._assignPolicy=o,this._cancel=a,this._userComparator=s,this._callchain=u,this._logger=c,this._selectedCaseService=l,this._changedFieldsService=p,this._permissionService=d,this._taskOperations=h,this._processingTaskChange=new Ye,this._displayedTaskText$=new ne.ReplaySubject,this._changedFieldsService.changedFields$.subscribe((function(e){var t=Object.keys(e).filter((function(e){return Object.keys(f._taskContentService.referencedTaskAndCaseIds).includes(e)})),r=[];t.forEach((function(t){var n=f._taskContentService.referencedTaskAndCaseIds[t];r.push.apply(r,ke(f._changedFieldsService.parseChangedFieldsByCaseAndTaskIds(t,n,e)))})),r.filter((function(e){return void 0!==e})).forEach((function(e){f._taskContentService.updateFromChangedFields(e)}))})),t.updateSuccess$.subscribe((function(e){e&&(f._treeCaseService.reloadCase$.next(),f.resolveTaskBlockState())})),e.loadTask$.asObservable().pipe(le.filter((function(e){return f.taskChanged(e)}))).subscribe((function(e){f.cancelAndLoadFeaturedTask(e)})),h.reload$.subscribe((function(){f.updateTaskState(),f._treeCaseService.reloadCase$.next()})),h.open$.subscribe((function(){f._taskContentService.blockFields(!1)})),h.close$.subscribe((function(){f._taskContentService.blockFields(!0)}))}return Object.defineProperty(r.prototype,"taskContentText$",{get:function(){return this._displayedTaskText$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"processingTaskChange",{get:function(){return this._processingTaskChange.isActive},enumerable:!1,configurable:!0}),r.prototype.displayEmptyTaskContent=function(){this._taskContentService.$shouldCreate.next([]),this._displayedTaskText$.next("caseTree.noTaskSelected")},r.prototype.cancelAndLoadFeaturedTask=function(e){var t=this;this._processingTaskChange.on(),this._taskContentService.blockFields(!0),this.shouldCancelTask&&this._cancel.cancel(this._callchain.create((function(e){e?t._logger.debug("Old tree task successfully canceled"):t._logger.warn("Old tree task could not be canceled")}))),this.loadFeaturedTask(e)},r.prototype.loadFeaturedTask=function(e){var t=this;this._selectedCaseService.selectedCase=e;var r=this.getTaskFilter();void 0!==r?this._taskResourceService.getTasks(r).subscribe((function(e){ii(e)?(t.setStandardTaskText(),t.switchToTask(e.content[0])):t.clearCurrentTask()})):this.clearCurrentTask()},r.prototype.taskChanged=function(e){return(this._selectedCaseService.selectedCase?this._selectedCaseService.selectedCase.stringId:void 0)!==(e?e.stringId:void 0)||this.getTransitionId(this._selectedCaseService.selectedCase)!==this.getTransitionId(e)},Object.defineProperty(r.prototype,"shouldCancelTask",{get:function(){return this._taskContentService.task&&this._permissionService.canCancel(this._taskContentService.task)},enumerable:!1,configurable:!0}),r.prototype.getTaskFilter=function(){var e=this.getTransitionId(this._selectedCaseService.selectedCase);if(e)return on.fromTaskQuery({case:{id:this._selectedCaseService.selectedCase.stringId},transitionId:e})},r.prototype.getTransitionId=function(t){if(t&&t.immediateData){var r=vo(t,e.TreePetriflowIdentifiers.FEATURED_TRANSITION);return r?r.value:void 0}},r.prototype.switchToTask=function(t){var r=this;t.caseId===this._selectedCaseService.selectedCase.stringId?(t.assignPolicy=e.AssignPolicy.auto,this._taskContentService.task=t,this._taskContentService.blockFields(!0),this._assignPolicy.performAssignPolicy(!0,this._callchain.create((function(){r._processingTaskChange.off()})))):this._logger.debug("Tree featured task has been loaded, but the selected case has changed since. Discarding...")},r.prototype.clearCurrentTask=function(){this._taskContentService.task=void 0,this.displayEmptyTaskContent(),this._processingTaskChange.off()},r.prototype.updateTaskState=function(){var e=this,t=this.getUniqueTaskIdentifier();t!==this._reloadedTaskUniqueIdentifier?(this._reloadedTaskUniqueIdentifier=t,this._taskResourceService.getTasks(this.getTaskFilter()).subscribe((function(t){ii(t)&&(e._taskContentService.task&&e._taskContentService.task.stringId===t.content[0].stringId&&(e._reloadedTaskUniqueIdentifier=void 0,Object.assign(e._taskContentService.task,t.content[0])),e.resolveTaskBlockState())}))):this._logger.debug("The currently selected task is already being reloaded. Ignoring reload request.")},r.prototype.resolveTaskBlockState=function(){var e=!this._taskContentService.task||void 0===this._taskContentService.task.user||!this._userComparator.compareUsers(this._taskContentService.task.user);this._taskContentService.blockFields(e)},r.prototype.setStandardTaskText=function(){this._displayedTaskText$.next()},r.prototype.ngOnDestroy=function(){this.shouldCancelTask&&this._cancel.cancel()},r.prototype.getUniqueTaskIdentifier=function(){if(this._selectedCaseService.selectedCase)return this._selectedCaseService.selectedCase.stringId+"#"+this.getTransitionId(this._selectedCaseService.selectedCase)},r.ctorParameters=function(){return[{type:Ds},{type:Qs},{type:Ms},{type:Sr},{type:Hs},{type:eu},{type:Ks},{type:io},{type:ha},{type:$e},{type:$s},{type:Ws},{type:Na},{type:tu,decorators:[{type:t.Inject,args:[Us]}]}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Ds},{type:Qs},{type:Ms},{type:Sr},{type:Hs},{type:eu},{type:Ks},{type:io},{type:ha},{type:$e},{type:$s},{type:Ws},{type:Na},{type:tu,decorators:[{type:t.Inject,args:[Us]}]}]},r}(),nu=function(r){function n(t,n,i,o){var a=r.call(this,n)||this;return a._sideMenuService=t,a._workflowViewService=n,a._log=i,a._processService=o,a.showDeleteMenu=!1,a.headerType=e.HeaderType.WORKFLOW,a.workflows$=a._workflowViewService.workflows$,a.loading$=a._workflowViewService.loading$,a.footerSize=0,a}return Ie(n,r),n.prototype.ngAfterViewInit=function(){this.initializeHeader(this.workflowHeader)},n.prototype.importSidemenuNet=function(e){var t=this;this._sideMenuService.open(e).onClose.subscribe((function(e){var r,n;void 0!==(null===(r=e.data)||void 0===r?void 0:r.net)?(t._workflowViewService.reload(),(null===(n=e.data)||void 0===n?void 0:n.net)&&t._processService.updateNet(new Fi(e.data.net))):t._log.debug("")}))},n.prototype.trackBy=function(e){return e},n.prototype.loadNextPage=function(){this.viewport&&this._workflowViewService.nextPage(this.viewport.getRenderedRange(),this.viewport.getDataLength())},n.prototype.calculateListHeight=function(e){if(this.viewport){var t=this.viewport.getElementRef().nativeElement;if(null!=e)t.style.height=e+"px";else{var r=window.innerHeight-t.offsetTop-this.footerSize;t.style.height!==r+"px"&&(this._log.info("Virtual scroll height change to: "+r),t.style.height=r+"px")}}},n.propDecorators={footerSize:[{type:t.Input}],showDeleteMenu:[{type:t.Input}],workflowHeader:[{type:t.ViewChild,args:["header"]}],viewport:[{type:t.ViewChild,args:[c.CdkVirtualScrollViewport]}]},n}(ca),iu=function(e){function r(r,n,i,o){var a=e.call(this,i)||this;return a._caseViewService=r,a._log=n,a.route=o,a.responsiveBody=!0,a.showCasePanelIcon=!0,a.showDeleteMenu=!1,a.textEllipsis=!1,a.redirectEnabled=!0,a.cases$=a._caseViewService.cases$,a.unsubscribe$=new ne.Subject,a.loading$=a._caseViewService.loading$,a.caseClick=new t.EventEmitter,a.onRedirect(),a}return Ie(r,e),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.caseClick.complete(),this.unsubscribe$.complete()},r.prototype.trackBy=function(e){return e},Object.defineProperty(r.prototype,"loadedDataSize",{get:function(){return this.viewport&&this.viewport.getDataLength()?this.viewport.getDataLength():0},enumerable:!1,configurable:!0}),r.prototype.loadNextPage=function(){this.viewport&&this._caseViewService.nextPage(this.viewport.getRenderedRange(),this.viewport.getDataLength())},r.prototype.onCaseClick=function(e){this.caseClick.emit(e)},r.prototype.onRedirect=function(){var e=this;this.redirectEnabled&&this.route.queryParams.pipe(le.filter((function(e){return!!e.caseId}))).subscribe((function(t){e.redirectCaseId=t.caseId,e.cases$.pipe(le.takeUntil(e.unsubscribe$)).subscribe((function(t){if(void 0!==t&&t.length>0){var r=t.find((function(t){return t.stringId===e.redirectCaseId}));void 0!==r&&(e.caseClick.emit(r),e.unsubscribe$.next())}}))}))},r.ctorParameters=function(){return[{type:Da},{type:$e},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Ro]}]},{type:he.ActivatedRoute}]},r.propDecorators={selectedHeaders$:[{type:t.Input}],responsiveBody:[{type:t.Input}],caseClick:[{type:t.Output}],showCasePanelIcon:[{type:t.Input}],showDeleteMenu:[{type:t.Input}],textEllipsis:[{type:t.Input}],width:[{type:t.Input}],redirectEnabled:[{type:t.Input}],viewport:[{type:t.ViewChild,args:[c.CdkVirtualScrollViewport]}]},r}(Po),ou=function(){function r(r){var n=this;this._treeService=r,this.treeRootLoading=new t.EventEmitter,this.treeRootAddingChild=new t.EventEmitter,this.hasChild=function(t,r){var n=r.case.immediateData.find((function(t){return t.stringId===e.TreePetriflowIdentifiers.CHILDREN_CASE_REF}));return!!n&&!!n.value&&n.value.length>0},this._treeService.treeRootLoaded$.subscribe((function(e){e&&(n._treeService.rootNodeLoading$.subscribe((function(e){n.treeRootLoading.emit(e)})),n._treeService.rootNodeAddingChild$.subscribe((function(e){n.treeRootAddingChild.emit(e)})))}))}return Object.defineProperty(r.prototype,"filter",{set:function(e){this._treeService.rootFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showTreeRoot",{set:function(e){var t=this;this._treeService.treeRootLoaded$.subscribe((function(r){r&&t._treeService.initializeTree(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"eagerLoaded",{set:function(e){this._treeService.isEagerLoaded=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataSource",{get:function(){return this._treeService.dataSource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"treeControl",{get:function(){return this._treeService.treeControl},enumerable:!1,configurable:!0}),r.prototype.caseNodeClicked=function(e){this._treeService.changeActiveNode(e)},r.prototype.toggleCaseNode=function(e,t){e.stopPropagation(),this._treeService.toggleNode(t)},r.prototype.selectedCaseNode=function(e){return e===this._treeService.currentNode},r.prototype.addRootChildNode=function(){this._treeService.addRootChildNode()},r.prototype.expandPath=function(e){this._treeService.expandPath(e)},r.propDecorators={treeRootLoading:[{type:t.Output}],treeRootAddingChild:[{type:t.Output}],filter:[{type:t.Input}],showTreeRoot:[{type:t.Input}],eagerLoaded:[{type:t.Input}]},r}(),au=function(){function e(e){this._treeService=e}return e.prototype.addChild=function(e){e.stopPropagation(),this._treeService.addChildNode(this.node)},e.propDecorators={node:[{type:t.Input}]},e}(),su=function(){function e(e){this._treeService=e}return e.prototype.removeNode=function(e){e.stopPropagation(),this._treeService.removeNode(this.node)},e.propDecorators={node:[{type:t.Input}]},e}(),uu=function(){function e(e,t,r,n,i,o,a){this._treeTaskContentService=e,this._taskEventService=t,this._assign=r,this._cancel=n,this._finish=i,this._taskContentService=o,this._permissionService=a,this.displayTaskControlButtons=!0}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e._treeTaskContentService.displayEmptyTaskContent()}))},e.prototype.canAssign=function(){return this._permissionService.canAssign(this._taskContentService.task)},e.prototype.canCancel=function(){return this._permissionService.canCancel(this._taskContentService.task)},e.prototype.canFinish=function(){return this._permissionService.canFinish(this._taskContentService.task)},e.prototype.assign=function(){this._assign.assign()},e.prototype.cancel=function(){this._cancel.cancel()},e.prototype.finish=function(){this._finish.validateDataAndFinish()},e.prototype.getAssignTitle=function(){return this._taskContentService.task.assignTitle?this._taskContentService.task.assignTitle:"tasks.view.assign"},e.prototype.getCancelTitle=function(){return this._taskContentService.task.cancelTitle?this._taskContentService.task.cancelTitle:"tasks.view.cancel"},e.prototype.getFinishTitle=function(){return this._taskContentService.task.finishTitle?this._taskContentService.task.finishTitle:"tasks.view.finish"},Object.defineProperty(e.prototype,"processingTaskChange",{get:function(){return this._treeTaskContentService.processingTaskChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskContentText$",{get:function(){return this._treeTaskContentService.taskContentText$},enumerable:!1,configurable:!0}),e.propDecorators={displayTaskControlButtons:[{type:t.Input}]},e}(),cu=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n._publicPetriNetResource=t,n._logger=r,n}return Ie(r,e),r.ctorParameters=function(){return[{type:os},{type:$e}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](os),t["ɵɵinject"]($e))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:os},{type:$e}]},r}(Ni),lu=function(e,t){this.name=e,this.series=t},pu=function(e,t){this.name=e,this.value=t};(zs=e.DashboardCardTypes||(e.DashboardCardTypes={})).BLANK="blank",zs.COUNT="count",zs.GRAPH="graph",zs.IFRAME="iframe",zs.PIE="pie",zs.LINE="line",zs.LINEARGAUGE="lineargauge",zs.BAR="bar",zs.DEFAULT="default";var du,hu=function(){function r(e){this._injector=e,this.loading=!0}return r.prototype.ngOnInit=function(){var e=this;this.resolveFilter(),this.resolveResourceService(),this.subCount=this._countService.count(this._filter).subscribe((function(t){e.count=t.count,e.loading=!1}))},r.prototype.resolveResourceService=function(){switch(this._filter.type){case e.FilterType.CASE:this._countService=this._injector.get(Jo);break;case e.FilterType.TASK:this._countService=this._injector.get(Sr)}},r.prototype.resolveFilter=function(){this._filter=new on("",this.card.resourceType,this.card.filter)},r.prototype.ngOnDestroy=function(){this.subCount.unsubscribe()},r.propDecorators={card:[{type:t.Input}]},r}(),fu=function(){function e(e){this._sanitizer=e}return e.prototype.ngOnInit=function(){this.sanitizedURL=this._sanitizer.bypassSecurityTrustResourceUrl(this.card.url)},e.propDecorators={card:[{type:t.Input}]},e}(),gu=function(){function e(e,t,r,n){this._injector=e,this.resourceService=t,this.translateService=r,this.loggerService=n,this.showLegend=!0,this.showLabels=!0,this.animations=!0,this.xAxis=!0,this.yAxis=!0,this.showYAxisLabel=!0,this.showXAxisLabel=!0,this.gradient=!0,this.colorScheme={domain:["#5AA454","#E44D25","#CFC0BB","#7aa3e5","#a8385d","#aae3f5","#cfeacd","#25e491","#a10ed6","#b9c9e3","#a8385d","#aae3f5","#bbbfbf","#e7a897","#854618","#7aa3e5","#a8385d","#0db8ee"]},this.loading=new Ye,this.single=new Array,this.multi=new Array}return e.prototype.ngOnInit=function(){var e=this;this.card.units=this.translateService.instant("dashboard."+this.card.units),this.resourceService.getDashboardData(this.getResourceTypeAsString(),this.card.query).subscribe((function(t){e.convertData(t)}),(function(t){e.loggerService.error("Error occurred when calling dashboard resource service")}))},e.prototype.ngOnDestroy=function(){this.loading.complete()},e.prototype.getResourceTypeAsString=function(){return this.card.resourceType.toLowerCase()},e.propDecorators={card:[{type:t.Input}],single:[{type:t.Input}]},e}(),yu=function(){function e(e,t){this.start=e,this.end=t,this.isIntentional=!0}return e.prototype.fillersAfterCover=function(t,r){if(this.isIntentional=!1,this.start<t){if(r<this.end){var n=new e(r+1,this.end);return this.end=t-1,n.isIntentional=!1,[this,n]}return this.end=Math.min(this.end,t-1),[this]}return r<this.end?(this.start=Math.max(this.start,r+1),[this]):[]},e.prototype.convertToGridElement=function(e){return{type:"blank",layout:{x:this.start,y:e,rows:1,cols:this.end-this.start+1}}},e.prototype.isFullWidth=function(e){return 0===this.start&&this.end===e-1},e}(),vu=function(){function e(e){this._log=e}return e.addGridRows=function(t,r,n){for(;t.length<r;)t.push(e.newGridRow(n))},e.newGridRow=function(e){return[new yu(0,e-1)]},e.prototype.fillBlankSpace=function(t,r,n){var i=this;void 0===n&&(n=function(){return!0});var o=[];t.forEach((function(t){var i,a,s,u,c=t.layout.y+t.layout.rows-1,l=t.layout.x+t.layout.cols-1;c>=o.length&&e.addGridRows(o,c+1,r);for(var p=t.layout.y;p<=c;p++)if(n(t)){var d=[];try{for(var h=(s=void 0,we(o[p])),f=h.next();!f.done;f=h.next()){v=f.value;d.push.apply(d,ke(v.fillersAfterCover(t.layout.x,l)))}}catch(e){s={error:e}}finally{try{f&&!f.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}o[p]=d}else try{for(var g=(i=void 0,we(o[p])),y=g.next();!y.done;y=g.next()){var v;(v=y.value).isIntentional=!1}}catch(e){i={error:e}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}}));for(var a=t.filter((function(e){return n(e)})).map((function(e){return{item:e,type:e.type,layout:e.layout}})),s=!1,u=function(e){var t=o[e];0===t.length&&(s=!0),t.forEach((function(t){s||t.isFullWidth(r)||(s=!0),!s||!t.isIntentional&&t.isFullWidth(r)||a.push(t.convertToGridElement(e))}))},c=o.length-1;c>=0;c--)u(c);return a.sort((function(e,t){return e.layout.y<t.layout.y?-1:e.layout.y>t.layout.y?1:e.layout.x<t.layout.x?-1:e.layout.x>t.layout.x?1:(i._log.warn("Two elements in grid layout have the same X and Y coordinates! Make sure your data is valid."),0)}))},e}(),mu=function(){function r(t){this._log=t,this.cardTypes=e.DashboardCardTypes,this.gridElements=[]}return r.prototype.ngOnInit=function(){var e=new vu(this._log);this.gridElements=e.fillBlankSpace(this.params.cards,this.params.columns)},r.propDecorators={params:[{type:t.Input}],portalComponent:[{type:t.Input}]},r}(),_u=new t.InjectionToken("NaeFiltersFilter"),bu=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[ut,pt,lt,ct],imports:[r.CommonModule,Fe,p.FlexLayoutModule,p.FlexModule],entryComponents:[ut,pt,lt,ct]}]}],e}(),Tu=function(e){function t(t,r,n,i){var o;void 0===n&&(n=!0),void 0===i&&(i=!1);var a=e.call(this,n)||this;return a._operator=r,a._bracketSubPredicateText=i,a._predicates=[],(o=a._predicates).push.apply(o,ke(t)),a.updateQuery(),a.initializeFilterTextSegmentsGenerator(),a}return Ie(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this._query},enumerable:!1,configurable:!0}),t.prototype.addPredicate=function(e){return this._predicates.push(e),this.updateQuery(),this._predicates.length-1},t.prototype.removePredicate=function(e){return e>=0&&e<this._predicates.length&&(this._predicates.splice(e,1),this.updateQuery(),!0)},t.prototype.showAll=function(){this.show(),this._predicates.forEach((function(e){return e.show()}))},t.prototype.updateQuery=function(){this._query=an.combineQueries(this.queries,this._operator)},Object.defineProperty(t.prototype,"queries",{get:function(){return this._predicates.map((function(e){return e.query}))},enumerable:!1,configurable:!0}),t.prototype.initializeFilterTextSegmentsGenerator=function(){var e=this;this._filterTextSegmentsGenerator=function(){return sn.combineTextSegmentsWithBooleanOperator(e._predicates,e._operator,e._bracketSubPredicateText)}},t}(sn);(du=e.SearchMode||(e.SearchMode={}))[du.FULLTEXT=0]="FULLTEXT",du[du.ADVANCED=1]="ADVANCED";var Su=function(){function e(){this._initialized=new Ye(!1)}return e.prototype.ngOnDestroy=function(){this._initialized.complete()},Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._initialized.isActive},enumerable:!1,configurable:!0}),e.prototype.completeInitialization=function(){this._initialized.on()},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),Iu=new t.InjectionToken("NaeSearchComponentConfiguration"),Eu=new t.InjectionToken("NaeSearchCategories"),wu=new t.InjectionToken("NaeDefaultCaseSearchCategories"),Cu=new t.InjectionToken("NaeDefaultTaskSearchCategories"),ku=function(){function r(r,n,i,o,a,s,u,c,l,p,d){void 0===p&&(p=null),void 0===d&&(d=null),this._searchService=r,this._logger=n,this._dialogService=i,this._translate=o,this._userFilterService=a,this._allowedNetsService=s,this._viewIdService=u,this._searchCategories=c,this._configuration=l,this._filtersFilter=p,this._navigationItemTaskData=d,this._showSearchIcon=!0,this._showSearchToggleButton=!0,this._showAdvancedSearchHelp=!0,this._showSaveFilterButton=!0,this._showLoadFilterButton=!0,this._initialSearchMode=e.SearchMode.FULLTEXT,this.additionalFilterData={},this.filterLoaded=new t.EventEmitter,this.filterSaved=new t.EventEmitter,null===this._configuration&&(this._configuration={})}return r.prototype.ngOnInit=function(){this.advancedSearchDisplayed=this.initialSearchMode===e.SearchMode.ADVANCED},Object.defineProperty(r.prototype,"showSearchIcon",{get:function(){var e;return null!==(e=this._configuration.showSearchIcon)&&void 0!==e?e:this._showSearchIcon},set:function(e){this._showSearchIcon=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showAdvancedSearchHelp",{get:function(){var e;return null!==(e=this._configuration.showAdvancedSearchHelp)&&void 0!==e?e:this._showAdvancedSearchHelp},set:function(e){this._showAdvancedSearchHelp=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showSaveFilterButton",{get:function(){var e;return null!==(e=this._configuration.showSaveFilterButton)&&void 0!==e?e:this._showSaveFilterButton},set:function(e){this._showSaveFilterButton=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showLoadFilterButton",{get:function(){var e;return null!==(e=this._configuration.showLoadFilterButton)&&void 0!==e?e:this._showLoadFilterButton},set:function(e){this._showLoadFilterButton=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"initialSearchMode",{get:function(){var e;return null!==(e=this._configuration.initialSearchMode)&&void 0!==e?e:this._initialSearchMode},set:function(e){this._initialSearchMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"showSearchToggleButton",{get:function(){var e;return null!==(e=this._configuration.showSearchToggleButton)&&void 0!==e?e:this._showSearchToggleButton},set:function(e){this._showSearchToggleButton=e},enumerable:!1,configurable:!0}),r.prototype.hasPredicates=function(){return Array.from(this._searchService.rootPredicate.getPredicateMap().values()).some((function(e){return e.isVisible}))},r.prototype.toggleSearchMode=function(){this.advancedSearchDisplayed?this._searchService.clearPredicates():this._searchService.clearFullTextFilter(),this.advancedSearchDisplayed=!this.advancedSearchDisplayed},r.prototype.showHelp=function(){this._dialogService.openAlertDialog(this._translate.instant("search.help.title"),this._translate.instant("search.help.text"))},r.prototype.saveFilter=function(){var e,t,r=this;this._userFilterService.save(this._searchService,this._allowedNetsService.allowedNetsIdentifiers,this._searchCategories,this._viewIdService.viewId,this.additionalFilterData,null===(e=this._configuration.saveFilterWithDefaultCategories)||void 0===e||e,null===(t=this._configuration.inheritAllowedNets)||void 0===t||t,this._navigationItemTaskData).subscribe((function(e){e&&r.filterSaved.emit(e)}))},r.prototype.loadFilter=function(){var e,t=this;this._userFilterService.load(this._searchService.filterType,null!==(e=this._filtersFilter)&&void 0!==e?e:void 0).subscribe((function(e){e&&t.filterLoaded.emit(e)}))},r.ctorParameters=function(){return[{type:ji},{type:$e},{type:Lt},{type:ue.TranslateService},{type:wa},{type:Di},{type:ao},{type:Array,decorators:[{type:t.Inject,args:[Eu]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Iu]}]},{type:tn,decorators:[{type:t.Optional},{type:t.Inject,args:[_u]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[Es]}]}]},r.propDecorators={additionalFilterData:[{type:t.Input}],filterLoaded:[{type:t.Output}],filterSaved:[{type:t.Output}],showSearchIcon:[{type:t.Input}],showAdvancedSearchHelp:[{type:t.Input}],showSaveFilterButton:[{type:t.Input}],showLoadFilterButton:[{type:t.Input}],initialSearchMode:[{type:t.Input}],showSearchToggleButton:[{type:t.Input}]},r}(),Ou=function(e){var t=this;this._searchService=e,this.fullTextFormControl=new l.FormControl,this.fullTextFormControl.valueChanges.pipe(le.debounceTime(600),le.filter((function(e){return"string"==typeof e})),le.map((function(e){return e.trim()}))).subscribe((function(e){0===e.length?t._searchService.clearFullTextFilter():t._searchService.setFullTextFilter(e)}))},Fu=function(){function r(e,t){var r=this;this._searchService=e,this._initializationService=t,this.editable=!0,this.trackByPredicates=function(e,t){return t.value},this.removeChild$=new ne.Subject,this.removeChild$.subscribe((function(e){return r._removeChildAt(e)})),this._searchService.hasVisiblePredicates||this.addChildPredicate()}return r.prototype.ngAfterViewInit=function(){this._initializationService.completeInitialization()},r.prototype.ngOnDestroy=function(){this.removeChild$.complete()},r.prototype.getPredicateMap=function(){var e,t,r=new Map;try{for(var n=we(this._searchService.rootPredicate.getPredicateMap().entries()),i=n.next();!i.done;i=n.next()){var o=Ce(i.value,2),a=o[0],s=o[1];s.isVisible&&r.set(a,s.getWrappedPredicate())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},r.prototype.addChildPredicate=function(){this._searchService.rootPredicate.addNewClausePredicate(e.BooleanOperator.OR)},r.prototype._removeChildAt=function(e){this._searchService.rootPredicate.removePredicate(e),0===this.getPredicateMap().size&&this.addChildPredicate()},r.propDecorators={editable:[{type:t.Input}]},r}(),Au=function(){function e(){var e=this;this.editable=!0,this.trackByPredicates=function(e,t){return t.value},this.removeChild$=new ne.Subject,this.removeChild$.subscribe((function(t){return e.removeChildAt(t)}))}return e.prototype.ngOnInit=function(){0===this.getPredicateMap().size&&this.addChildPredicate()},e.prototype.ngOnDestroy=function(){this.removeChild$.complete()},e.prototype.getPredicateMap=function(){var e,t,r=new Map;try{for(var n=we(this.predicate.getPredicateMap().entries()),i=n.next();!i.done;i=n.next()){var o=Ce(i.value,2),a=o[0],s=o[1];s.isVisible&&r.set(a,s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},e.prototype.removeChildAt=function(e){this.predicate.removePredicate(e),0===this.predicate.getPredicateMap().size&&this.remove$.next(this.predicateId)},e.prototype.addChildPredicate=function(){this.predicate.addNewElementaryPredicate()},e.propDecorators={editable:[{type:t.Input}],predicate:[{type:t.Input}],predicateId:[{type:t.Input}],remove$:[{type:t.Input}]},e}(),Ru=function(){function e(e,t,r,n){var i=this;this._naeSearchCategories=e,this._logger=t,this._initializationService=r,this._categoryFactory=n,this.editable=!0,this.renderSelection=function(e){return i._renderSelection(e)}}return e.prototype.ngOnInit=function(){var e=this,t=!1;this._searchCategories=this._naeSearchCategories.map((function(r){return e.generator&&e.generator.constructor===r?(t=!0,e.categoryChanged(e.generator),e.generator):e._categoryFactory.get(r)})),this.generator&&!t&&this._logger.error("Provided predicate generator is not an allowed category from the NAE_SEARCH_CATEGORIES injection token! Behavior in this case is undefined."),this.predicate.setMetadataGenerator((function(){if(e._selectedCategory)return e._selectedCategory.createMetadata()})),this.predicate.setFilterTextSegmentsGenerator((function(){return e._selectedCategory?e._selectedCategory.createFilterTextSegments():[]}))},e.prototype.ngOnDestroy=function(){var e=this;this._predicateChange&&!this._predicateChange.closed&&this._predicateChange.unsubscribe(),this._searchCategories.forEach((function(t){t!==e.generator&&t.destroy()}))},Object.defineProperty(e.prototype,"searchCategories",{get:function(){return this._searchCategories},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"categoryInput",{set:function(e){e&&this._initializationService.isInitialized&&setTimeout((function(){e.focus(),e.open()}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedCategory",{get:function(){return this._selectedCategory},set:function(e){this.categoryChanged(e)},enumerable:!1,configurable:!0}),e.prototype.remove=function(){this.remove$.next(this.predicateId)},e.prototype.categoryChanged=function(e){var t=this;void 0!==this.selectedCategory&&this.selectedCategory.reset(),this._selectedCategory=e,void 0!==e&&(this._predicateChange&&this._predicateChange.unsubscribe(),this._predicateChange=e.generatedPredicate$.subscribe((function(e){return t.processPredicateChange(e)})))},e.prototype.clearCategorySelection=function(){this.editable&&this.categoryChanged(void 0)},e.prototype._renderSelection=function(e){return e?e.text:""},e.prototype.processPredicateChange=function(e){void 0===e?(this.predicate.query=an.emptyQuery(),this._logger.debug("Editable query changed to empty query")):(this.predicate.query=e.query,this._logger.debug("Editable query changed to: "+e.query.value))},e.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[Eu]}]},{type:$e},{type:Su},{type:Li}]},e.propDecorators={editable:[{type:t.Input}],predicate:[{type:t.Input}],predicateId:[{type:t.Input}],remove$:[{type:t.Input}],generator:[{type:t.Input}],categoryInput:[{type:t.ViewChild,args:["categoryInput"]}]},e}(),Pu=function(){function r(){var e=this;this.editable=!0,this._inputConfirmed=!1,this._initialExpansion=!0,this.renderSelection=function(t){return e._renderSelection(t)}}return r.prototype.ngOnInit=function(){var t=this;this.inputType===e.SearchInputType.AUTOCOMPLETE&&(this._autocompleteChange=this.inputFormControl.valueChanges.subscribe((function(e){setTimeout((function(){t._inputConfirmed=!!e&&"string"!=typeof e}))}))),this.isInputValueSet()&&(this._inputConfirmed=!0)},r.prototype.ngOnDestroy=function(){this._autocompleteChange&&!this._autocompleteChange.closed&&this._autocompleteChange.unsubscribe()},Object.defineProperty(r.prototype,"filteredOptions$",{get:function(){return this._filteredOptions$||(this._filteredOptions$=this.filterOptionsFunction(this.inputFormControl.valueChanges.pipe(le.debounceTime(600)))),this._filteredOptions$},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInputFilled",{get:function(){return!!this._inputConfirmed&&this.isInputValueSet()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"categoryInput",{set:function(e){if(e){if(!this.first&&this._initialExpansion)return void(this._initialExpansion=!1);this._initialExpansion=!1,this.isInputFilled||setTimeout((function(){e.nativeElement.focus()}))}},enumerable:!1,configurable:!0}),r.prototype.confirmInput=function(){this._inputConfirmed=!0},r.prototype.editInput=function(){this.editable&&(this._inputConfirmed=!1)},r.prototype._renderSelection=function(e){return e?e.text:""},r.prototype.isInputValueSet=function(){return this.inputType===e.SearchInputType.AUTOCOMPLETE?!!this.inputFormControl.value&&"string"!=typeof this.inputFormControl.value:this.inputType===e.SearchInputType.TEXT?void 0!==this.inputFormControl.value&&null!==this.inputFormControl.value&&this.inputFormControl.value.length>0:void 0!==this.inputFormControl.value&&null!==this.inputFormControl.value},r.propDecorators={editable:[{type:t.Input}],inputFormControl:[{type:t.Input}],inputType:[{type:t.Input}],first:[{type:t.Input}],filterOptionsFunction:[{type:t.Input}],categoryInput:[{type:t.ViewChild,args:["operandInput"]}]},r}(),Nu=function(){function e(){var e=this;this.editable=!0,this.trackByTemplateParts=function(t,r){return e._trackByTemplateParts(t,r)},this.renderSelection=function(t){return e._renderSelection(t)},this.filterOptions=function(t){return e.selectedCategory.filterOptions(t)}}return Object.defineProperty(e.prototype,"configurationInput",{set:function(e){e&&setTimeout((function(){if(void 0!==e.nativeElement){e.nativeElement.focus()}else{var t=e;t.focus(),t.open()}}))},enumerable:!1,configurable:!0}),e.prototype.clearConfigurationInput=function(){this.editable&&this.configuration.clear()},e.prototype.clearOperatorInput=function(){this.editable&&this.selectedCategory.clearOperatorSelection()},e.prototype._trackByTemplateParts=function(e,t){return t.id},e.prototype._renderSelection=function(e){return e?e.text:""},e.propDecorators={editable:[{type:t.Input}],configuration:[{type:t.Input}],selectedCategory:[{type:t.Input}],configurationInput:[{type:t.ViewChild,args:["configurationInput"]}]},e}();var Du=[hi,_i,li,ki,di,mi,ui,bi,Ti],Lu=[Si,Ci,Ii,wi],ju=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[],providers:[{provide:wu,useValue:Du},{provide:Cu,useValue:Lu}]}]}],e}(),Mu=function(){function e(e,t){this._service=e,this._userService=t,this.searchUserControl=new l.FormControl,this.SEARCH_DEBOUNCE_TIME=600,this.users=this._service.userList,this.nets=this._service.processList,this.userMultiSelect=!0}return e.prototype.ngOnInit=function(){var e=this;this.nets.loadProcesses(),this.subValueChanges=this.searchUserControl.valueChanges.pipe(le.debounceTime(this.SEARCH_DEBOUNCE_TIME)).subscribe((function(t){e.users.reload(t)}))},e.prototype.ngAfterViewInit=function(){var e=this;this.subUsers=this.users.usersReload$.subscribe((function(){e.userList.deselectAll(),e.userList.selectedOptions.clear(),e.autoSelectRoles()}))},e.prototype.ngOnDestroy=function(){this._userService.reload(),this.subValueChanges.unsubscribe(),this.subUsers.unsubscribe(),this.users=void 0,this.nets=void 0},e.prototype.loadNextUserPage=function(){this.viewport&&this.users.nextPage(this.viewport.getRenderedRange().end,this.viewport.getDataLength())},e.prototype.autoSelectRoles=function(){var e=this.userList.selectedOptions.selected.map((function(e){return e.value.roles}));0===e.length&&this.nets.selectRoles(new Set([]));var t=e.reduce((function(e,t){return new Set(ke(e).filter((function(e){return t.has(e)})))}),e[0]);this.nets.selectRoles(t)},e.prototype.update=function(e){var t=this;this.nets.updateSelectedRoles(e);var r=this.userList.selectedOptions.selected.map((function(e){return e.value}));this.users.updateRoles(r,this.nets.selectedRoles).subscribe((function(e){t.autoSelectRoles()}))},e.prototype.selectAllUsers=function(e){this.userList.options.forEach((function(t){t.value.selected=e})),this.autoSelectRoles()},e.prototype.toggleAllRoles=function(e,t){var r=this;e.roles.forEach((function(e){e.selected=t,r.nets.updateSelectedRoles(e)}));var n=this.userList.selectedOptions.selected.map((function(e){return e.value}));this.users.updateRoles(n,this.nets.selectedRoles).subscribe((function(e){r.autoSelectRoles()}))},e.propDecorators={userList:[{type:t.ViewChild,args:["userList"]}],viewport:[{type:t.ViewChild,args:[c.CdkVirtualScrollViewport]}]},e}(),xu=function(){function e(e,t,r,n,i){this._userInviteService=e,this._orgList=t,this._signUpService=r,this._snackBar=n,this._translate=i,this.nets=this._userInviteService.processList,this.loading=new Ye,this.invitedEmailControl=new l.FormControl("",[l.Validators.email,l.Validators.required]),this.invitedGroups=[],this.invitedRoles=[]}return Object.defineProperty(e.prototype,"groups",{get:function(){return this._orgList.groups},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.nets.loadProcesses(),this._orgList.loadGroups()},e.prototype.removeGroup=function(e){var t=this.invitedGroups.findIndex((function(t){return t.id===e.id}));-1!==t&&this.invitedGroups.splice(t,1)},e.prototype.addGroup=function(e){-1===this.invitedGroups.findIndex((function(t){return t.id===e.id}))&&this.invitedGroups.push(e)},e.prototype.removeRole=function(e){var t=this.invitedRoles.findIndex((function(t){return t.stringId===e.stringId}));-1!==t&&this.invitedRoles.splice(t,1)},e.prototype.addRole=function(e){-1===this.invitedRoles.findIndex((function(t){return t.stringId===e.stringId}))&&this.invitedRoles.push(e)},e.prototype.invite=function(){var e=this;if(this.invitedEmailControl.valid)if(0!==this.invitedGroups.length){var t={email:this.invitedEmailControl.value,groups:this.invitedGroups.map((function(e){return e.id})),processRoles:this.invitedRoles.map((function(e){return e.stringId}))};this.loading.on(),this._signUpService.invite(t).pipe(le.take(1)).subscribe((function(t){t?(e._snackBar.openSuccessSnackBar(e._translate.instant("admin.user-invite.inviteSent")),e.invitedEmailControl.setValue(""),e.invitedGroups=[],e.invitedRoles=[]):e._snackBar.openErrorSnackBar(e._translate.instant("admin.user-invite.inviteFailed")),e.loading.off()}))}else this._snackBar.openErrorSnackBar(this._translate.instant("admin.user-invite.oneOrMoreOrganization"));else this._snackBar.openErrorSnackBar(this._translate.instant("admin.user-invite.emailFieldMandatory"))},e}(),Vu=function(){function e(e,t){this._resources=e,this._log=t,this._loading$=new Ye,this._processes=[],this._rolesIndex={},this._selectedRoles=new Set}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processes",{get:function(){return this._processes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedRoles",{get:function(){return ke(this._selectedRoles)},enumerable:!1,configurable:!0}),e.prototype.loadProcesses=function(){var e=this;this.loading||(this._loading$.on(),this._resources.getAll().pipe(le.catchError((function(t){return e._log.error("Failed to load Petri nets",t),ne.of([])})),le.map((function(e){return Array.isArray(e)?e:[]})),le.map((function(e){return e.map((function(e){return Ee(Ee({},e),{roles:[]})}))}))).subscribe((function(t){var r={};t.forEach((function(e){r[e.identifier]?r[e.identifier].processes.push(e):r[e.identifier]={identifier:e.identifier,title:e.title,initials:e.initials,newestVersion:void 0,processes:[e],loading:!0,emptyRoles:!0,someRolesSelected:!1},r[e.identifier].processes.sort((function(e,t){return t.version.localeCompare(e.version,void 0,{numeric:!0})})),r[e.identifier].newestVersion=r[e.identifier].processes[0].version})),e._processes=Object.values(r).sort(),e._loading$.off()})))},e.prototype.prepareToTryAgainToLoadRoles=function(e){e&&e.emptyRoles&&(e.loading=!0)},e.prototype.selectRoles=function(e){var t=this;e||(e=new Set([])),e.forEach((function(e){t._selectedRoles.delete(e)})),this._selectedRoles.forEach((function(e){t._rolesIndex[e]&&t._rolesIndex[e].forEach((function(e){return e.selected=!1}))})),this._selectedRoles=e,this._selectedRoles.forEach((function(e){t._rolesIndex[e]&&t._rolesIndex[e].forEach((function(e){return e.selected=!0}))})),this.updateSelectedRolesFlag(Object.keys(this._rolesIndex).filter((function(e){return t._selectedRoles.has(e)})).map((function(e){return 0!==t._rolesIndex[e].length?t._rolesIndex[e][0].processIdentifier:null})))},e.prototype.updateSelectedRoles=function(e){e.selected?this._selectedRoles.add(e.stringId):this._selectedRoles.delete(e.stringId),this._rolesIndex[e.stringId].forEach((function(t){return t.selected=e.selected}))},e.prototype.loadProcessItemRoles=function(e){var t=this;e&&e.emptyRoles&&(e.loading=!0,ne.forkJoin(e.processes.map((function(e){return t.loadNetRoles(e)}))).subscribe((function(t){var r=!0;t.forEach((function(t,n){e.processes[n].roles=t,r=r&&0===t.length})),e.emptyRoles=r,e.loading=!1})))},e.prototype.loadNetRoles=function(e){var t=this;return e.roles&&0!==e.roles.length?ne.of(e.roles):this._resources.getPetriNetRoles(e.stringId).pipe(le.catchError((function(r){return t._log.error("Failed to load roles for Petri net ["+e.stringId+"] "+e.title,r),ne.of([])})),le.map((function(t){return t.processRoles.map((function(t){return Ee(Ee({},t),{selected:!1,processIdentifier:e.identifier,toggle:function(){this.selected=!this.selected}})}))})),le.tap((function(e){return e.forEach((function(e){t._rolesIndex[e.stringId]?t._rolesIndex[e.stringId].push(e):t._rolesIndex[e.stringId]=[e],t._selectedRoles.has(e.stringId)&&(e.selected=!0)}))})))},e.prototype.updateSelectedRolesFlag=function(e){var t=this;e&&ne.timer(0).subscribe((function(r){0===e.length&&t._processes.forEach((function(e){e.someRolesSelected=!1})),e.forEach((function(e){if(e){var r=t._processes.find((function(t){return t.identifier===e}));r&&(r.someRolesSelected=r.processes.some((function(e){return 0!==e.roles.length})))}})),t._processes.forEach((function(t){e.find((function(e){return t.identifier===e}))||(t.someRolesSelected=!1)}))}))},e}(),Uu=function(){function e(e,t,r,n,i){this._log=n,this._translate=i,this._userList=new oo(e,n,r,i),this._processList=new Vu(t,n)}return Object.defineProperty(e.prototype,"userList",{get:function(){return this._userList},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"processList",{get:function(){return this._processList},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:it},{type:Pi},{type:ft},{type:$e},{type:ue.TranslateService}]},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:it},{type:Pi},{type:ft},{type:$e},{type:ue.TranslateService}]},e}(),$u=function(){function e(e,t){this._log=t,this._processList=new Vu(e,t)}return Object.defineProperty(e.prototype,"processList",{get:function(){return this._processList},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:Pi},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Pi),t["ɵɵinject"]($e))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Pi},{type:$e}]},e}(),Bu=function(){function e(e,t){this._resource=e,this._log=t,this._groups=[],this._loading$=new Ye}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading$.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading$",{get:function(){return this._loading$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this._groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups$",{get:function(){return ne.of(this._groups)},enumerable:!1,configurable:!0}),e.prototype.loadGroups=function(){var e=this;this._loading$.isActive||(this._loading$.on(),this._resource.getAllGroups().pipe(le.take(1)).subscribe((function(t){Array.isArray(t.groups)&&0!==t.groups.length?(e._groups=t.groups,e._loading$.off()):(e._log.info("There are no Groups"),e._loading$.off())}),(function(t){e._log.debug("Getting groups failed",t),e._loading$.off()})))},e.ctorParameters=function(){return[{type:it},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](it),t["ɵɵinject"]($e))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:it},{type:$e}]},e}();function zu(e,t){var r=new ie.HttpParams;return r=(r=r.set("size",e.size+"")).set("page",(void 0!==t?t:e.number)+"")}function Hu(e,t,r){return e(t,zu(r)).pipe(le.map((function(e){return ii(e)?e.content:[]})))}var Gu=function(){function e(e){var t=this;this.overlay=e,this.spin$=new ne.Subject,this._spinner=this._createSpinner(),this.spin$.pipe(le.map((function(e){return e?1:-1})),le.scan((function(e,t){return e+t>=0?e+t:0}),0)).subscribe((function(e){return 1===e?t._show():t._spinner.hasAttached()?t._hide():null}))}return e.prototype.ngOnDestroy=function(){this.spin$.complete()},e.prototype._createSpinner=function(){return this.overlay.create({hasBackdrop:!0,positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically()})},e.prototype._show=function(){this._spinner.attach(new u.ComponentPortal(N.MatSpinner))},e.prototype._hide=function(){this._spinner.detach()},e.ctorParameters=function(){return[{type:fe.Overlay}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](fe.Overlay))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:fe.Overlay}]},e}(),qu=function(){function e(){this.cache={}}return e.prototype.computeCaseFontColor=function(e){if(void 0===e)return"black";if(e in this.cache)return this.cache[e];var t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(null===t||4!==t.length)return this.cache[e]="black","black";var r=.299*parseInt(t[1],16)+.587*parseInt(t[2],16)+.114*parseInt(t[3],16)>150?"black":"white";return this.cache[e]=r,r},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}();var Wu,Qu,Ku,Yu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.login=function(e){return ne.of(new qe("id","mail","name","surname",["ADMIN"],[{stringId:"id",name:"id",importId:"id"}]))},t.prototype.logout=function(){return ne.of(void 0)},Object.defineProperty(t.prototype,"isAuthenticated",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authenticated$",{get:function(){return ne.of(!0)},enumerable:!1,configurable:!0}),t}(Ze),Xu=function(){function e(){}return e.prototype.setTaskFilters=function(e,t){},e.prototype.getTaskFilters=function(e){return[]},e.prototype.setCaseFilters=function(e,t){},e.prototype.getCaseFilters=function(e){return[]},e.prototype.setHeaders=function(e,t){},e.prototype.getHeaders=function(e){},e.prototype.setLocale=function(e){},e.prototype.getLocale=function(){},Object.defineProperty(e.prototype,"drawerWidth",{get:function(){},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preferencesChanged$",{get:function(){return ne.of()},enumerable:!1,configurable:!0}),e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}(),Zu=function(){function e(){}return e.prototype.getPreferences=function(){return ne.of({headers:{},caseFilters:{},taskFilters:{},other:{}})},e.prototype.setPreferences=function(){return ne.of({success:""})},e.prototype.getLoggedUser=function(){return ne.of({email:"mail",id:"id",name:"name",surname:"surname",fullName:"name surname",groups:[],authorities:[],nextGroups:[],processRoles:[]})},e.prototype.assignAuthority=function(){throw new Error("Method not yet mocked - assignAuthority")},e.prototype.assignRoles=function(){throw new Error("Method not yet mocked - assignRoles")},e.prototype.getAllAuthorities=function(){throw new Error("Method not yet mocked - getAllAuthorities")},e.prototype.getAll=function(){throw new Error("Method not yet mocked - getAll")},e.prototype.getAllWithRole=function(){throw new Error("Method not yet mocked - getAllWithRole")},e.prototype.getUser=function(){throw new Error("Method not yet mocked - getUser")},e.prototype.search=function(){throw new Error("Method not yet mocked - search")},e.prototype.updateUser=function(){throw new Error("Method not yet mocked - updateUser")},e.decorators=[{type:t.Injectable}],e}(),Ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ie(t,e),t.prototype.login=function(e){return ne.of({email:"mail",id:"id",name:"name",surname:"surname",fullName:"name surname",groups:[],authorities:[],nextGroups:[],processRoles:[]})},t.prototype.logout=function(){return ne.of(void 0)},t}(We),ec=function(){function e(){this.signupResponse=ne.of({success:"success"}),this.inviteResponse=ne.of({success:"success"}),this.resetPasswordResponse=ne.of({success:"success"}),this.recoverPasswordResponse=ne.of({success:"success"}),this.verifyResponse=ne.of({success:"success"})}return e.prototype.signup=function(e){return this.signupResponse},e.prototype.invite=function(e){return this.inviteResponse},e.prototype.resetPassword=function(e){return this.resetPasswordResponse},e.prototype.recoverPassword=function(e,t){return this.recoverPasswordResponse},e.prototype.verify=function(e){return this.verifyResponse},e}();function tc(t,r,n,i){return void 0===t&&(t="stringId"),void 0===r&&(r="taskTitle"),void 0===n&&(n="transitionId"),void 0===i&&(i=4),{caseId:"string",transitionId:n,title:r,caseColor:"string",caseTitle:"string",user:void 0,roles:{},users:{},userRefs:{},startDate:void 0,finishDate:void 0,assignPolicy:e.AssignPolicy.manual,dataFocusPolicy:e.DataFocusPolicy.manual,finishPolicy:e.FinishPolicy.manual,stringId:t,layout:{offset:0,rows:0,cols:i},dataGroups:[],_links:{}}}function rc(e,t,r,n){return void 0===e&&(e="stringId"),void 0===t&&(t="processIdentifier"),void 0===r&&(r="title"),void 0===n&&(n="petriNetId"),{lastModified:[],visualId:"",petriNetObjectId:{timestamp:0,machineIdentifier:0,processIdentifier:0,counter:0,timeSecond:0,time:0,date:0},processIdentifier:t,title:r,color:"",creationDate:[],immediateData:[],author:{email:"",fullName:""},resetArcTokens:{},stringId:e,petriNetId:n,permissions:{},users:{}}}function nc(e,t,r,n,i,o){void 0===e&&(e="stringId"),void 0===t&&(t="identifier"),void 0===r&&(r="title"),void 0===n&&(n=[]),void 0===i&&(i=[]),void 0===o&&(o=[]);var a=new Fi({stringId:e,title:r,identifier:t,version:"1.0.0",initials:"NET",defaultCaseName:"",createdDate:[2021,2,4,12,50,0,1612443e3],author:{email:"",fullName:""},immediateData:o});return a.roles=n,a.transitions=i.map((function(e){return Ee(Ee({},e),{petriNetId:"",immediateData:[]})})),a}function ic(t,r,n,i,o){void 0===t&&(t=!0),void 0===r&&(r={x:0,y:0,rows:0,cols:0}),void 0===n&&(n=0),void 0===i&&(i=e.FieldTypeResource.BOOLEAN),void 0===o&&(o=[]);var a,s=t?{editable:!0}:{hidden:!0},u=Ee(Ee({},r),{template:e.TemplateAppearance.MATERIAL,appearance:e.MaterialAppearance.OUTLINE,offset:0});switch(a=n instanceof ln||"number"==typeof n?"f"+(n instanceof ln?n.next():n):n,i){case e.FieldTypeResource.BOOLEAN:return new wt(a,"title",!1,s,"","",u);case e.FieldTypeResource.BUTTON:return new At(a,"title",s,0,"","",u);case e.FieldTypeResource.TASK_REF:return new vr(a,"title",o,s,"","",u);default:throw new Error("createMockField does not currently support fields of type '"+i+"'")}}(Wu=e["ɵu"]||(e["ɵu"]={})).GRID="grid",Wu.FLOW="flow",Wu.LEGACY="legacy",function(e){e.NONE="none",e.UP="up"}(Qu||(Qu={})),function(e){e.ALL="all",e.COMPACTED="compacted",e.NONE="none"}(Ku||(Ku={}));var oc=new zn,ac=new Hn(oc),sc=function(e){function t(){return e.call(this,{extends:"nae-default",providers:{auth:{address:"http://localhost:8080/api/",authentication:"Basic",endpoints:{login:"auth/login",logout:"auth/logout",signup:"auth/signup",verification:"auth/verify",verify:"auth/token/verify",invite:"auth/invite",reset:"auth/reset",recover:"/auth/recover"},sessionBearer:"X-Auth-Token"},resources:[{name:"case",address:"http://localhost:8080/api/",format:"hal",openApi:"https://swagger.io"},{name:"task",address:"http://localhost:8080/api/",format:"json"},{name:"petrinet",address:"http://localhost:8080/api/",format:"json"},{name:"user",address:"http://localhost:8080/api/",format:"json"},{name:"dashboard",address:"http://localhost:8080/api/",format:"json"}]},views:{dashboard:{layout:{name:"dashboard",params:{columns:4,cards:[{type:"count",title:"All tasks",resourceType:"Task",filter:{},layout:{x:0,y:0,rows:1,cols:1}},{type:"iframe",url:"https://netgrif.com/",layout:{x:2,y:0,rows:2,cols:2}},{type:"count",title:"All cases",resourceType:"Case",filter:{},layout:{x:1,y:1,rows:1,cols:1}},{type:"pie",title:"Custom",resourceType:"case",query:{aggs:{result:{terms:{field:"dataSet.text.value.keyword"}}}},filter:{},layout:{x:0,y:1,rows:1,cols:1}},{type:"bar",title:"Custom",resourceType:"case",query:{aggs:{result:{terms:{field:"dataSet.text.value.keyword"}}}},xAxisLabel:"Country",yAxisLabel:"Population",filter:{},layout:{x:2,y:1,rows:1,cols:1}},{type:"line",title:"Custom",resourceType:"case",query:{aggs:{result1:{terms:{field:"dataSet.text.value.keyword"}},result2:{terms:{field:"dataSet.text.value.keyword"}}}},xAxisLabel:"Country",yAxisLabel:"Population",filter:{},layout:{x:0,y:2,rows:1,cols:1}},{type:"lineargauge",title:"Custom",resourceType:"case",query:{aggs:{types_count:{value_count:{field:"dataSet.text.value.keyword"}}}},xAxisLabel:"Country",yAxisLabel:"Population",units:"cases",filter:{},layout:{x:1,y:2,rows:1,cols:1}},{type:"default",layout:{x:2,y:2,rows:1,cols:1}}]},componentName:"MyDashboard"},access:"private",navigation:{title:"Dashboard",icon:"dashboard"},routing:{path:"comp-dashboard"}},cases:{layout:{name:"emptyView",params:{allowedNets:[]}},access:"private",navigation:{title:"Cases",icon:"settings"},routing:{path:"cases"},children:{some_cases:{layout:{name:"emptyView"},access:"private",navigation:{icon:"account_circle"},routing:{path:"some_cases"},children:{some_specifics:{layout:{name:"emptyView"},access:"private",navigation:!0,routing:{path:"some_specifics"}}}}}},task:{layout:{name:"emptyView",params:{allowedNets:[]}},access:"private",navigation:{title:"Tasks",icon:"assignment"},routing:{path:"task"},children:{some_tasks:{layout:{name:"emptyView"},access:"private",navigation:!1,routing:{path:"some_tasks"},children:{some_specifics:{layout:{name:"emptyView"},access:"private",navigation:!0,routing:{path:"some_specifics"}}}}}}},theme:{name:"example-classico",pallets:{light:{primary:{50:"",100:"",200:"",300:"",400:"",500:"",600:"",700:"",800:"",900:"",A100:"",A200:"",A400:"",A700:"",contrast:{light:["300","400","500","600","700","800","900"],dark:["50","100","200"]}},secondary:{50:"",100:"",200:"",300:"",400:"",500:"",600:"",700:"",800:"",900:"",A100:"",A200:"",A400:"",A700:"",contrast:{light:["300","400","500","600","700","800","900"],dark:["50","100","200"]}},warn:{50:"",100:"",200:"",300:"",400:"",500:"",600:"",700:"",800:"",900:"",A100:"",A200:"",A400:"",A700:"",contrast:{light:["300","400","500","600","700","800","900"],dark:["50","100","200"]}}},dark:{primary:"blue",secondary:"pink"}}},assets:["../../../assets"],filters:{"all-cases":{title:"All Cases",type:"Case",access:"public",body:[],mergeOperator:"AND"},"all-tasks":{title:"All Tasks",type:"Task",access:"public",body:{}},"some-tasks":{title:"All Tasks",type:"Task",access:"public",body:[{}],mergeOperator:"AND"}},i18n:["sk-SK","en-US"],services:{log:{logWithDate:!0,serializeExtraParams:!0,includeLogLevel:!0,publishers:["console","localStorage"]},auth:{loginRedirect:"login"},legal:{termsOfService:"https://netgrif.com/",privacyPolicy:"https://netgrif.com/"},groupNavigation:{groupNavigationRoute:"config-route"}}})||this}return Ie(t,e),t}(Me),uc=function(){function e(e,r,n,i){var o=this;this._router=n,this._logger=i,this._nameToClass=new Map,e.forEach((function(e){e instanceof t.Type?o._nameToClass.set(e.name,e):o._nameToClass.set(e.id,e.class)}))}return e.prototype.resolveNameToClass=function(e){return this._nameToClass.get(e)},e}(),cc=function(e){function r(t,r,n){return e.call(this,[],t,r,n)||this}return Ie(r,e),r.ctorParameters=function(){return[{type:Me},{type:he.Router},{type:$e}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Me},{type:he.Router},{type:$e}]},r}(uc),lc=function(){function e(){this.content=[]}return e.prototype.search=function(e,t){var r=this.getPagination(t),n=this.content.slice(r.pageSize*r.pageNumber,r.pageSize*(r.pageNumber+1)),i={pagination:{size:n.length,totalElements:this.content.length,totalPages:Math.ceil(this.content.length/r.pageSize),number:r.pageNumber}};return Object.assign(i,{content:0!==n.length?n:{}}),ne.of(i)},e.prototype.getPagination=function(e){return{pageSize:parseInt(e.get("size"),10),pageNumber:parseInt(e.get("page"),10)}},e}(),pc=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[Te.HttpClientTestingModule],providers:[{provide:We,useClass:Ju},{provide:Me,useClass:sc}]}]}],e}(),dc=/[ _]/g,hc=/([a-z\d])([A-Z])/g,fc=/(-|_|\.|\s)+(.)?/g;function gc(e){return function(e){return e.replace(hc,"$1_$2").toLowerCase()}(e).replace(dc,"-")}function yc(e){return e.split(".").map((function(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(function(e){return e.replace(fc,(function(e,t,r){return r?r.toUpperCase():""})).replace(/^([A-Z])/,(function(e){return e.toLowerCase()}))}(e))})).join(".")}var vc,mc=function(e){function t(r,n,i){var o=e.call(this,"","")||this;if(i)o.prefix="",o.nameWithoutComponent=yc(i),o.fileImportPath="./views/"+r+"/"+gc(i)+".component";else{o.prefix=t.convertPathToClassNamePrefix(r);var a=t.resolveClassSuffixForView(n);o.nameWithoutComponent=""+yc(o.prefix)+a,o.fileImportPath="./views/"+r+"/"+o.prefix+"-"+gc(a)+".component"}return o.className=o.nameWithoutComponent+"Component",o}return Ie(t,e),t.convertPathToClassNamePrefix=function(e){return e.replace(/-/g,"_").replace(/\//g,"-").toLocaleLowerCase()},t.resolveClassSuffixForView=function(e){switch(e){case"login":return"Login";case"tabView":return"TabView";case"taskView":return"TaskView";case"caseView":return"CaseView";case"emptyView":return"EmptyView";case"sidenavView":return"SidenavView";case"toolbarView":return"ToolbarView";case"sidenavAndToolbarView":return"SidenavAndToolbarView";case"groupView":return"GroupView";case"dashboard":return"Dashboard";case"treeCaseView":return"TreeCaseView";default:throw new Error("Unknown view type '"+e+"'")}},t}((function(e,t){this.className=e,this.fileImportPath=t})),_c=function(){function e(e,t,r,n){this._redirectService=e,this._userService=t,this._configService=r,this._router=n,this._loginUrl=this._redirectService.resolveLoginPath()}return e.prototype.canActivate=function(e,t){this._redirectService.intendedRoute=e;var r=this._configService.getViewByUrl(t.url.toString());return this.canAccessView(r)},e.prototype.canAccessView=function(e){if("string"!=typeof e.access&&e.access.hasOwnProperty("authority"))return this._userService.hasAuthority(e.access.authority)},e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Me},{type:he.Router}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Bi),t["ɵɵinject"](at),t["ɵɵinject"](Me),t["ɵɵinject"](he.Router))},token:e,providedIn:Xi}),e.decorators=[{type:t.Injectable,args:[{providedIn:Xi}]}],e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Me},{type:he.Router}]},e}(),bc=function(){function e(e,t,r,n){this._redirectService=e,this._userService=t,this._configService=r,this._log=n,this._loginUrl=this._redirectService.resolveLoginPath()}return e.prototype.canActivate=function(e,t){this._redirectService.intendedRoute=e;var r=this._configService.getViewByUrl(t.url.toString());return this.canAccessView(r,t.url.toString())},e.prototype.canAccessView=function(e,t){var r=this;if("string"!=typeof e.access&&e.access.hasOwnProperty("role"))return this.parseRoleConstraints(e.access.role,t).some((function(e){return e.roleIdentifier?r._userService.hasRoleByIdentifier(e.roleIdentifier,e.processIdentifier):r._userService.hasRoleByName(e.roleName,e.processIdentifier)}));throw new Error("Role guard is declared for a view with no role guard configuration! Add role guard configuration for view at "+t+", or remove the guard.")},e.prototype.parseRoleConstraints=function(e,t){if("string"==typeof e)return this.parseStringRoleConstraints(e);if(Array.isArray(e)){if(0===e.length)return this._log.warn("View at '"+t+"' defines role access constraint with an empty array! No users will be allowed to enter this view!"),[];if("string"==typeof e[0])return this.parseStringRoleConstraints(e)}return this.parseObjectRoleConstrains(e)},e.prototype.parseStringRoleConstraints=function(e){return Array.isArray(e)||(e=[e]),this._log.warn("Using string role guard configuration is deprecated! Migrate to object based configuration instead."),e.map((function(e){var t=e.split(".");if(2===t.length)return{processIdentifier:t[0],roleName:t[1]};throw new Error("Please enter the correct format <net import id>.<role name>")}))},e.prototype.parseObjectRoleConstrains=function(e){return Array.isArray(e)||(e=[e]),e.map((function(e){if(!e.roleId||!e.processId)throw new Error("Please enter both process and role id for a role constraint: "+e);return{processIdentifier:e.processId,roleIdentifier:e.roleId}}))},e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Me},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Bi),t["ɵɵinject"](at),t["ɵɵinject"](Me),t["ɵɵinject"]($e))},token:e,providedIn:Xi}),e.decorators=[{type:t.Injectable,args:[{providedIn:Xi}]}],e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Me},{type:$e}]},e}(),Tc=function(){function e(e,t){var r=this;this._userService=e,this._caseResourceService=t,this._ownerGroups$=new ne.BehaviorSubject([]),this._memberGroups$=new ne.BehaviorSubject([]),this._userSub=this._userService.user$.pipe(le.switchMap((function(e){if(""===e.id)return ne.of([]);var t=new ie.HttpParams;return t.set("size",""+e.nextGroups.length),r._caseResourceService.searchCases(on.fromCaseQuery({stringId:e.nextGroups}),t).pipe(le.map((function(e){return e.content?e.content:[]})),le.map((function(e){return e.filter((function(e){return"application engine"!==e.author.fullName}))})))}))).subscribe((function(e){var t=e.filter((function(e){return e.author.email===r._userService.user.email}));r._ownerGroups$.next(t),r._memberGroups$.next(e)}))}return e.prototype.ngOnDestroy=function(){this._userSub.unsubscribe(),this._memberGroups$.complete(),this._ownerGroups$.complete()},Object.defineProperty(e.prototype,"memberGroups$",{get:function(){return this._memberGroups$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerGroups$",{get:function(){return this._ownerGroups$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"memberGroups",{get:function(){return this._memberGroups$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerGroups",{get:function(){return this._ownerGroups$.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstOwnerGroup$",{get:function(){return this._ownerGroups$.pipe(le.map((function(e){return e.length>0?e[0]:void 0})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstOwnerGroup",{get:function(){var e=this.ownerGroups;return e.length>0?e[0]:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupOfUser",{get:function(){return this.ownerGroups},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:at},{type:Jo}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](at),t["ɵɵinject"](Jo))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:at},{type:Jo}]},e}(),Sc=function(){function e(e,t,r,n,i){this._redirectService=e,this._userService=t,this._nextGroupService=r,this._configService=n,this._log=i,this._loginUrl=this._redirectService.resolveLoginPath()}return e.prototype.canActivate=function(e,t){this._redirectService.intendedRoute=e;var r=this._configService.getViewByUrl(t.url.toString());return this.canAccessView(r,t.url.toString())},e.prototype.canAccessView=function(e,t){if("string"!=typeof e.access&&e.access.hasOwnProperty("group")){var r=void 0;r=Array.isArray(e.access.group)?e.access.group:[e.access.group];var n=this._nextGroupService.groupOfUser.map((function(e){return e.title}));return r.some((function(e){return n.includes(e)}))}throw new Error("Group guard is declared for a view with no group guard configuration! Add group guard configuration for view at "+t+", or remove the guard.")},e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Tc},{type:Me},{type:$e}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Bi),t["ɵɵinject"](at),t["ɵɵinject"](Tc),t["ɵɵinject"](Me),t["ɵɵinject"]($e))},token:e,providedIn:Xi}),e.decorators=[{type:t.Injectable,args:[{providedIn:Xi}]}],e.ctorParameters=function(){return[{type:Bi},{type:at},{type:Tc},{type:Me},{type:$e}]},e}(),Ic=function(){function e(e){this._config=e}return Object.defineProperty(e.prototype,"route",{get:function(){var e,t;return void 0!==this._route?this._route:null===(t=null===(e=this._config.getServicesConfiguration())||void 0===e?void 0:e.groupNavigation)||void 0===t?void 0:t.groupNavigationRoute},set:function(e){this._route=e},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:Me}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Me))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Me}]},e}(),Ec=function(){function r(e,t,r,n,i,o){var a,s,u;this._configService=t,this._viewService=r,this._logger=n,this._dynamicNavigationRouteService=i,this._groupNavigationComponentResolverComponent=o,this._groupNavigationRouteGenerated=!1,e.config.splice(0,e.config.length);try{for(var c=we(Object.entries(t.get().views)),l=c.next();!l.done;l=c.next()){var p=Ce(l.value,2),d=p[0],h=p[1],f=this.constructRouteObject(h,d);void 0!==f&&e.config.push(f)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}(u=e.config).push.apply(u,ke(this.defaultRoutesRedirects()))}return r.prototype.constructRouteObject=function(t,r,n){var i,o,a=this;void 0===n&&(n=[]);var s=this.resolveComponentClass(t,r);if(void 0!==s){if(t.routing){var u={path:t.routing.path,component:s};if((null===(i=null==t?void 0:t.layout)||void 0===i?void 0:i.name)===e.GroupNavigationConstants.GROUP_NAVIGATION_OUTLET){this._groupNavigationRouteGenerated?this._logger.warn("Multiple groupNavigationOutlets are present in nae.json. Duplicate entry found at path "+r):this._logger.debug("GroupNavigationOutlet found in nae.json at path '"+r+"'");var c=u.path;u.path=c+"/:"+e.GroupNavigationConstants.GROUP_NAVIGATION_ROUTER_PARAM,u.canActivate=[Zi];var l=n.map((function(e){return e.path}));return l.push(c),this._dynamicNavigationRouteService.route=l.join("/"),this._groupNavigationRouteGenerated=!0,u}return void 0!==t.routing.match&&t.routing.match&&(u.pathMatch="full"),u.canActivate=[],("private"===t.access||t.access.hasOwnProperty("role")||t.access.hasOwnProperty("group")||t.access.hasOwnProperty("authority"))&&u.canActivate.push(Zi),t.access.hasOwnProperty("role")&&u.canActivate.push(bc),t.access.hasOwnProperty("authority")&&u.canActivate.push(_c),t.access.hasOwnProperty("group")&&u.canActivate.push(Sc),t.children&&(u.children=[],Object.entries(t.children).forEach((function(e){var t=Ce(e,2),i=t[0],o=t[1],s=a.constructRouteObject(o,r+"/"+i,ke(n,[u]));void 0!==s&&u.children.push(s)}))),"tabView"===(null===(o=null==t?void 0:t.layout)||void 0===o?void 0:o.name)&&(t.children||(u.children=[]),u.children.push({path:"**",component:s})),u}this._logger.warn("nae.json configuration is invalid. View at path '"+r+"' must define a 'routing' attribute. Skipping this view for routing generation.")}},r.prototype.resolveComponentClass=function(e,t){var r;if(e.component)r=this._viewService.resolveNameToClass(e.component.class);else{if(!e.layout)return void this._logger.warn("nae.json configuration is invalid. View at path '"+t+"' must define either a 'layout' or a 'component' attribute. Skipping this view for routing generation.");r=this.resolveComponentClassFromLayout(e,t)}if(void 0!==r)return r;this._logger.warn("Some views from nae.json configuration have not been created in the project. Run create-view schematic to rectify this. Skipping this view for routing generation.")},r.prototype.resolveComponentClassFromLayout=function(t,r){if(t.layout.name===e.GroupNavigationConstants.GROUP_NAVIGATION_OUTLET)return this._groupNavigationComponentResolverComponent;var n;t.layout.componentName?n=yc(t.layout.componentName)+"Component":n=new mc(r,t.layout.name,t.layout.componentName).className;return this._viewService.resolveNameToClass(n)},r.prototype.defaultRoutesRedirects=function(){var e=[],t=this._configService.getServicesConfiguration();return t&&t.routing&&(t.routing.defaultRedirect&&e.push({path:"",redirectTo:t.routing.defaultRedirect,pathMatch:"full"}),t.routing.wildcardRedirect&&e.push({path:"**",redirectTo:t.routing.wildcardRedirect})),e},r.ctorParameters=function(){return[{type:he.Router},{type:Me},{type:uc},{type:$e},{type:Ic},{type:t.Type,decorators:[{type:t.Optional},{type:t.Inject,args:[ks]}]}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](he.Router),t["ɵɵinject"](Me),t["ɵɵinject"](uc),t["ɵɵinject"]($e),t["ɵɵinject"](Ic),t["ɵɵinject"](ks,8))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:he.Router},{type:Me},{type:uc},{type:$e},{type:Ic},{type:t.Type,decorators:[{type:t.Optional},{type:t.Inject,args:[ks]}]}]},r}(),wc=function(e){function r(t,r,n,i){var o=e.call(this,t,r,n,i)||this;return o._task$=new ne.ReplaySubject(1),o}return Ie(r,e),Object.defineProperty(r.prototype,"task",{get:function(){return this._task},set:function(e){this._task$.closed?this._logger.error("TaskContentService can have it's task set only once"):(this._task=e,this._task$.next(e),this._task$.complete())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"task$",{get:function(){return this._task$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._task$.closed||this._task$.complete()},r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r}(Ms),Cc=function(e){function r(t,r,n,i){var o=e.call(this,t,r,n,i)||this;return o._task$=new ne.ReplaySubject(1),o}return Ie(r,e),Object.defineProperty(r.prototype,"task",{get:function(){return this._task},set:function(e){this._task=e,this._task$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"task$",{get:function(){return this._task$.asObservable()},enumerable:!1,configurable:!0}),r.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._task$.complete()},r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r.decorators=[{type:t.Injectable}],r.ctorParameters=function(){return[{type:Tr},{type:ft},{type:ue.TranslateService},{type:$e}]},r}(Ms);(vc=e.TaskElementType||(e.TaskElementType={})).BLANK="blank",vc.DATA_GROUP_TITLE="title",vc.LOADER="loader";var kc=new t.InjectionToken("NaeAsyncRenderingConfiguration"),Oc=function(){function t(e,t,r){this.subgridId=e,this.cols=t,this._asyncRenderingConfig=r,this._content=[],this._grid=[],this._runningTitleCount=new ln,this._existingIdentifiers=new Set,this._renderedContent$=new ne.BehaviorSubject([])}return Object.defineProperty(t.prototype,"content",{get:function(){return this._renderedContent$.value},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this._renderedContent$.complete(),void 0!==this._asyncRenderingTimeout&&window.clearTimeout(this._asyncRenderingTimeout)},t.prototype.getGridColumns=function(){return"repeat("+this.cols+", 1fr)"},t.prototype.getRunningTitleCount=function(){return this._runningTitleCount},t.prototype.addField=function(e,t){var r=this.fieldElement(e,t);return this.addElement(r),r},t.prototype.addTitle=function(e){var t=this.groupTitleElement(e);return this.addElement(t),t},t.prototype.addElement=function(e){this._content.push(e)},t.prototype.addRow=function(e){if(e.length!==this.cols)throw new Error("The provided grid layout row '"+JSON.stringify(e)+"' does not match the number of columns of this subgrid ("+this.cols+")");this._grid.push(e)},t.prototype.finalize=function(){this.fillEmptySpace(),this.createGridAreasString()},t.prototype.fillEmptySpace=function(){var e=this,t=new ln;this._grid.forEach((function(r){for(var n=0;n<r.length;n++)if(""===r[n]){var i=e.fillerElement(t);r[n]=i.gridAreaId,e._content.push(i)}}))},t.prototype.fieldElement=function(e,t){return{gridAreaId:this.assureUniqueness(e.stringId),type:t,item:e}},t.prototype.fillerElement=function(t){return{gridAreaId:this.assureUniqueness("blank"+t.next()),type:e.TaskElementType.BLANK}},t.prototype.groupTitleElement=function(t){return{title:t.title,gridAreaId:this.assureUniqueness("group"+this._runningTitleCount.next()),type:e.TaskElementType.DATA_GROUP_TITLE}},t.prototype.assureUniqueness=function(e){var t,r="x"+e.replace(/[^0-9a-z]/gi,"");if(!this._existingIdentifiers.has(r))return this._existingIdentifiers.add(r),r;var n=new ln;do{t="x"+n.next()+r}while(this._existingIdentifiers.has(t));return this._existingIdentifiers.add(t),t},t.prototype.createGridAreasString=function(){this.gridAreas=this._grid.map((function(e){return e.join(" ")})).join(" | ")},t.prototype.displayAllFields=function(){this._keptElements=ke(this._content),this._newElements=[],this._renderedContent$.next(this._keptElements)},t.prototype.determineKeptFields=function(e){var t=this;this._keptElements=[],this._newElements=[],this._content.forEach((function(r){e.content.some((function(e){return e.gridAreaId===r.gridAreaId}))?t._keptElements.push(r):t._newElements.push(r)})),this._renderedContent$.next(this._keptElements)},t.prototype.renderContentOverTime=function(e,t){void 0===t&&(t=!1),void 0===this._newElements&&(this._newElements=Array.from(this._content),this._keptElements=[]),this.spreadFieldRenderingOverTime(e,t?1:0)},t.prototype.spreadFieldRenderingOverTime=function(t,r){var n=this;void 0===r&&(r=0),this._asyncRenderingTimeout=void 0;var i=this._newElements.slice(0,r*this._asyncRenderingConfig.batchSize),o=this._newElements.slice(r*this._asyncRenderingConfig.batchSize,r*this._asyncRenderingConfig.batchSize+this._asyncRenderingConfig.numberOfPlaceholders);i.push.apply(i,ke(o.map((function(t){return{gridAreaId:t.gridAreaId,type:e.TaskElementType.LOADER}})))),this._renderedContent$.next(ke(this._keptElements,i)),this._asyncRenderingConfig.batchSize*r<this._newElements.length?this._asyncRenderingTimeout=window.setTimeout((function(){n.spreadFieldRenderingOverTime(t,r+1)}),this._asyncRenderingConfig.batchDelay):t()},t}(),Fc=function(){function r(r,n,i,o,a,s){var u=this;void 0===a&&(a=null),void 0===s&&(s=null),this._fieldConverter=r,this.taskContentService=n,this._paperView=i,this._logger=o,this._taskEventService=a,this.DEFAULT_LAYOUT_TYPE=e["ɵu"].LEGACY,this.DEFAULT_FIELD_ALIGNMENT=e.FieldAlignment.CENTER,this.DEFAULT_ASYNC_RENDERING_CONFIGURATION={batchSize:4,batchDelay:200,numberOfPlaceholders:4,enableAsyncRenderingForNewFields:!0,enableAsyncRenderingOnTaskExpand:!0},this.DEFAULT_COMPACT_DIRECTION=Qu.NONE,this.DEFAULT_HIDE_EMPTY_ROWS=Ku.ALL,this.fieldTypeResource=e.FieldTypeResource,this.displayNoDataIcon=!0,this.rowHeight=105,this.trackBySubgridFn=function(e,t){return t.subgridId},this.trackByFn=function(e,t){return u.trackByDatafields(e,t)},this._asyncRenderingConfig=Ee({},this.DEFAULT_ASYNC_RENDERING_CONFIGURATION),null!==s&&Object.assign(this._asyncRenderingConfig,s),this.loading$=new Ye(!0),this._dataSource$=new ne.BehaviorSubject([]),this.hasDataToDisplay$=this._dataSource$.pipe(le.map((function(e){return 0!==e.length}))),this._subTaskContent=this.taskContentService.$shouldCreate.subscribe((function(e){0!==e.length?(u.computeDefaultLayoutConfiguration(),u.computeLayoutData(e)):u.renderContent(),u.loading$.off()})),null!==this._taskEventService&&(this.taskEvent=new t.EventEmitter,this._subTaskEvent=a.taskEventNotifications$.subscribe((function(e){u.taskEvent.emit(e)})))}return r.prototype.ngOnDestroy=function(){this.loading$.complete(),this._dataSource$.complete(),this._subTaskContent.unsubscribe(),this.taskEvent&&this.taskEvent.complete(),this._subTaskEvent&&this._subTaskEvent.unsubscribe(),void 0!==this._asyncRenderTimeout&&window.clearTimeout(this._asyncRenderTimeout)},Object.defineProperty(r.prototype,"taskId",{get:function(){return this.taskContentService.task.stringId},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataSource",{get:function(){return this._dataSource$.getValue()},enumerable:!1,configurable:!0}),r.prototype.getNumberOfFormColumns=function(){return this.taskContentService.task&&this.taskContentService.task.layout&&void 0!==this.taskContentService.task.layout.cols?this.taskContentService.task.layout.cols:4},r.prototype.isPaperView=function(){return this._paperView.paperView},r.prototype.getItemAlignment=function(t){var r,n,i,o;if(t.alignment)return t.alignment;switch(null!==(i=null===(n=null===(r=t.item)||void 0===r?void 0:r.localLayout)||void 0===n?void 0:n.alignment)&&void 0!==i?i:this._defaultAlignment){case e.FieldAlignment.TOP:o="start";break;case e.FieldAlignment.CENTER:o="center";break;case e.FieldAlignment.BOTTOM:o="end"}return t.alignment="space-between "+o,t.alignment},r.prototype.resolveContentHeightCss=function(){return this.scrollingNeeded()?this.taskContentService.task.layout.rows*this.rowHeight+"px":"100%"},r.prototype.scrollingNeeded=function(){return this.taskContentService.task&&!!this.taskContentService.task.layout&&!!this.taskContentService.task.layout.rows&&this.taskContentService.task.layout.rows>0},r.prototype.computeDefaultLayoutConfiguration=function(){var e,t,r,n,i,o,a,s,u;this._defaultAlignment=null!==(r=null===(t=null===(e=this.taskContentService.task)||void 0===e?void 0:e.layout)||void 0===t?void 0:t.fieldAlignment)&&void 0!==r?r:this.DEFAULT_FIELD_ALIGNMENT,this._defaultCompactDirection=null!==(o=null===(i=null===(n=this.taskContentService.task)||void 0===n?void 0:n.layout)||void 0===i?void 0:i.compactDirection)&&void 0!==o?o:this.DEFAULT_COMPACT_DIRECTION,this._defaultHideEmptyRows=null!==(u=null===(s=null===(a=this.taskContentService.task)||void 0===a?void 0:a.layout)||void 0===s?void 0:s.hideEmptyRows)&&void 0!==u?u:this.DEFAULT_HIDE_EMPTY_ROWS,this._defaultNumberOfCols=this.getNumberOfFormColumns()},r.prototype.computeLayoutData=function(t){var r=this;if(this.taskContentService.task){this._subgridIdCounter=new ln,this._existingSubgridIds=new Set;var n=new Map;t=this.preprocessDataGroups(t);var i=this.taskContentService.task.layout&&this.taskContentService.task.layout.type?this.taskContentService.task.layout.type:this.DEFAULT_LAYOUT_TYPE;t.forEach((function(t){var o;t.layout||(t.layout={rows:void 0,cols:void 0,type:i}),t.layout.type||(t.layout.type=i);var a=new Oc(r.createSubgridId(t),null!==(o=t.layout.cols)&&void 0!==o?o:r._defaultNumberOfCols,r._asyncRenderingConfig);if(void 0!==t.title){var s=a.addTitle(t);a.addRow(r.newGridRow(a.cols,s.gridAreaId))}switch(t.layout.type){case e["ɵu"].GRID:r.computeGridLayout(t,a);break;case e["ɵu"].FLOW:r.computeFlowLayout(t,a);break;case e["ɵu"].LEGACY:r.computeLegacyLayout(t,a);break;default:throw new Error("Unknown task layout type '"+r.taskContentService.task.layout.type+"'")}a.finalize(),n.set(a.subgridId,a)})),this.renderFields(n)}else this.renderContent()},r.prototype.renderFields=function(e){var t=Array.from(e.values());if(!(this._asyncRenderingConfig.enableAsyncRenderingForNewFields||this._asyncRenderingConfig.enableAsyncRenderingOnTaskExpand&&this.taskContentService.isExpanding))return t.forEach((function(e){e.displayAllFields()})),void this.renderContent(t);this.taskContentService.isExpanding&&this._asyncRenderingConfig.enableAsyncRenderingOnTaskExpand||this._dataSource$.value.forEach((function(t){e.has(t.subgridId)&&e.get(t.subgridId).determineKeptFields(t)})),this.renderContent(t),this.spreadFieldRenderingOverTime(t)},r.prototype.spreadFieldRenderingOverTime=function(e,t){var r=this;void 0===t&&(t=0),this._asyncRenderTimeout=void 0,t<e.length&&(this._asyncRenderTimeout=window.setTimeout((function(){e[t].renderContentOverTime((function(){r.spreadFieldRenderingOverTime(e,t+1)}),0===t)})))},r.prototype.preprocessDataGroups=function(e){var t=this;e=this.cloneAndFilterHidden(e);for(var r=[],n=0;n<e.length;n++){var i=e[n];if(i.fields.some((function(e){return t.isTaskRef(e)}))){var o=this.splitDataGroupOnTaskRef(i);if(void 0!==o.startGroup&&r.push(o.startGroup),0!==o.taskRef.value.length&&void 0!==o.endGroup){for(var a=e[n+1],s=n+2,u=function(){var t=e[s];return void 0===t.nestingLevel||t.nestingLevel<a.nestingLevel?"break":t.nestingLevel!==a.nestingLevel||t.parentTaskRefId===o.taskRef.stringId&&o.taskRef.value.some((function(e){return e===t.parentTaskId}))?void 0:"break"};s<e.length;s++){if("break"===u())break}e.splice(s,0,o.endGroup)}else void 0!==o.endGroup&&e.splice(n+1,0,o.endGroup)}else r.push(i)}return r},r.prototype.cloneAndFilterHidden=function(e){return e.map((function(e){var t=Ee({},e);return t.fields=t.fields.filter((function(e){return!e.behavior.hidden&&!e.behavior.forbidden})).map((function(e){return e.resetLocalLayout(),e})),t})).filter((function(e){return e.fields.length>0}))},r.prototype.isTaskRef=function(e){return e instanceof vr},r.prototype.splitDataGroupOnTaskRef=function(e){var t=this;e.fields.sort((function(e,t){return e.localLayout.y-t.localLayout.y}));var r=e.fields.findIndex((function(e){return t.isTaskRef(e)})),n={taskRef:e.fields[r]};return 0!==r&&(n.startGroup={title:e.title,alignment:e.alignment,layout:e.layout,stretch:e.stretch,fields:e.fields.slice(0,r)}),r!==e.fields.length-1&&(n.endGroup={title:void 0,alignment:e.alignment,layout:e.layout,stretch:e.stretch,fields:e.fields.slice(r+1)},n.endGroup.fields.forEach((function(e){e.localLayout.y=e.localLayout.y-n.taskRef.localLayout.y-1}))),n},r.prototype.computeGridLayout=function(e,t){var r=this,n=[];e.fields.forEach((function(e){if(!e.localLayout||void 0===e.localLayout.x||void 0===e.localLayout.y||!e.localLayout.rows||!e.localLayout.cols)throw new Error("You cannot use 'grid' layout without specifying the layout of the data fields (field ID: "+e.stringId+")");for(;n.length<e.localLayout.y+e.localLayout.rows;)n.push(r.newGridRow(t.cols));var i=t.addField(e,r._fieldConverter.resolveType(e));r.occupySpace(n,e.localLayout.y,e.localLayout.x,e.localLayout.cols,i.gridAreaId,e.localLayout.rows)})),this.collapseGridEmptySpace(n,e.layout,t),n.forEach((function(e){return t.addRow(e)}))},r.prototype.collapseGridEmptySpace=function(e,t,r){var n,i,o=null!==(n=t.hideEmptyRows)&&void 0!==n?n:this._defaultHideEmptyRows;switch(o===Ku.ALL&&this.removeEmptyRows(e),null!==(i=t.compactDirection)&&void 0!==i?i:this._defaultCompactDirection){case Qu.UP:this.compactFieldsUp(e,o,r)}},r.prototype.compactFieldsUp=function(e,t,r){for(var n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(""===i[o]){for(var a=!1,s=n+1;s<e.length;s++)if(""!==e[s][o]){a=!0;break}if(a&&!(o>0&&e[s][o-1]===e[s][o])){var u=this.getElementDimensions(e,o,s,r);if(this.isAreaEmpty(e,o,n,u.width,s-n)){var c=e[s][o];this.occupySpace(e,s,o,u.width,"",u.height,!1),this.occupySpace(e,n,o,u.width,c,u.height,!1),t!==Ku.NONE&&this.removeEmptyRows(e,s,s+u.height)}}}},r.prototype.removeEmptyRows=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=Number.POSITIVE_INFINITY);for(var n=t;n<e.length&&n<r;)e[n].every((function(e){return""===e}))?e.splice(n,1):n++},r.prototype.getElementDimensions=function(e,t,r,n){for(var i=e[r][t],o=1;t+o<n.cols&&e[r][t+o]===i;)o++;for(var a=1;r+a<e.length&&e[r+a][t]===i;)a++;return{width:o,height:a}},r.prototype.isAreaEmpty=function(e,t,r,n,i){for(var o=r;o<r+i;o++)for(var a=t;a<t+n;a++)if(""!==e[o][a])return!1;return!0},r.prototype.computeFlowLayout=function(e,t){this.flowFields(e,t,1)},r.prototype.computeLegacyLayout=function(e,t){4!==t.cols&&(t.cols=4,this._logger.warn("Task with id '"+this.taskContentService.task.stringId+"' has a data group with legacy layout with a non-default number of columns. If you want to use a layout with different number of columns than 2 use a different layout type instead.")),this.flowFields(e,t,2)},r.prototype.flowFields=function(t,r,n){var i=this,o=Math.floor(r.cols/n),a=n*(o-1),s=0,u=[];t.fields.forEach((function(c,l){var p=r.addField(c,i._fieldConverter.resolveType(c));if(t.stretch)r.addRow(i.newGridRow(r.cols,p.gridAreaId));else{if(0===s&&u.push(i.newGridRow(r.cols)),0===s&&i.isLastRow(l,t,o)){var d=t.fields.length%o,h=a+n;t.alignment===e.DataGroupAlignment.END?s=h-n*d:t.alignment===e.DataGroupAlignment.CENTER&&(s=Math.floor((h-d*n)/2))}i.occupySpace(u,u.length-1,s,n,p.gridAreaId),(s+=n)>a&&(s=0)}})),u.forEach((function(e){return r.addRow(e)}))},r.prototype.newGridRow=function(e,t){return void 0===t&&(t=""),Array(e).fill(t)},r.prototype.occupySpace=function(e,t,r,n,i,o,a){void 0===o&&(o=1),void 0===a&&(a=!0);for(var s=t;s<t+o;s++)for(var u=r;u<r+n;u++){if(a&&""!==e[s][u])throw new Error("Cannot place element "+i+" into the grid layout, because it's space (x: "+u+", y: "+s+") is already occupied by another element ("+e[s][u]+")");e[s][u]=i}},r.prototype.isLastRow=function(e,t,r){return e+r>=t.fields.length},r.prototype.renderContent=function(e){void 0===e&&(e=[]),this._dataSource$.value.forEach((function(e){return e.destroy()})),this._dataSource$.next(e)},r.prototype.createSubgridId=function(e){for(var t,r=t=void 0!==e.parentTaskId?[e.parentTaskId,e.parentTaskRefId,e.nestingLevel].join("#"):"root";this._existingSubgridIds.has(r);)r=t+this._subgridIdCounter.next();return this._existingSubgridIds.add(r),r},r.prototype.trackByDatafields=function(t,r){switch(r.type){case e.TaskElementType.BLANK:return r.gridAreaId+"-"+this.taskContentService.$shouldCreateCounter.getValue();case e.TaskElementType.LOADER:return r.gridAreaId+"-L-"+this.taskContentService.$shouldCreateCounter.getValue();case e.TaskElementType.DATA_GROUP_TITLE:return r.title+"-"+this.taskContentService.$shouldCreateCounter.getValue();default:return r.item.stringId+"-"+this.taskContentService.$shouldCreateCounter.getValue()}},r.ctorParameters=function(){return[{type:Tr},{type:Ms},{type:ds},{type:$e},{type:Hs,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[kc]}]}]},r.propDecorators={noDataText:[{type:t.Input}],noDataIcon:[{type:t.Input}],displayNoDataIcon:[{type:t.Input}],taskEvent:[{type:t.Output}]},r}(),Ac=function(){function r(t){this.taskContentService=t,this.fieldTypeEnum=e.FieldTypeResource,this.taskElementEnum=e.TaskElementType}return r.prototype.isOffsetPresent=function(){return!!this.taskContentService.task&&!!this.taskContentService.task.layout&&!!this.taskContentService.task.layout.offset},r.prototype.getFieldOffset=function(){return this.isOffsetPresent()?this.taskContentService.task.layout.offset:0},r.prototype.getElementType=function(){return this.gridElement.type},r.prototype.getDataGroupTitle=function(){return this.gridElement.title},r.prototype.getDataField=function(){return this.gridElement.item},r.prototype.getTaskId=function(){return this.taskContentService.task.stringId},r.prototype.isField=function(){return this.gridElement.type!==e.TaskElementType.BLANK&&this.gridElement.type!==e.TaskElementType.DATA_GROUP_TITLE&&this.gridElement.type!==e.FieldTypeResource.I18N},r.propDecorators={gridElement:[{type:t.Input}]},r}(),Rc=function(r){function n(e,t,n,i,o,a,s,u,c,l,p,d,h,f,g){var y=r.call(this,g,f)||this;return y._log=e,y._sideMenuService=t,y._taskResourceService=n,y._snackBar=i,y._translate=o,y._taskState=a,y._taskEvent=s,y._taskDataService=u,y._eventQueue=c,y._eventService=l,y._changedFieldsService=p,y._taskOperations=d,y._userAssignComponent=h,y}return Ie(n,r),n.prototype.delegate=function(t){var r=this;void 0===t&&(t=new da);var n=this._safeTask.stringId;this._taskState.isLoading(n)||this._sideMenuService.open(this._userAssignComponent,e.SideMenuSize.MEDIUM,{roles:Object.keys(this._safeTask.roles).filter((function(e){return void 0!==r._safeTask.roles[e].assign&&r._safeTask.roles[e].assign})),value:this._safeTask.user?new fr(this._safeTask.user.id,this._safeTask.user.name,this._safeTask.user.surname,this._safeTask.user.email):void 0,negativeRoles:Object.keys(this._safeTask.roles).filter((function(e){return void 0!==r._safeTask.roles[e].assign&&!r._safeTask.roles[e].assign}))}).onClose.subscribe((function(e){r._log.debug("Delegate sidemenu event:"+e),void 0!==e.data&&r._eventQueue.scheduleEvent(new qs((function(){var e=r.isTaskRelevant(n);return e||r._log.debug("current task changed before the delegate side menu data was received, discarding..."),e}),(function(i){r.performDelegateRequest(t,n,e.data.id,i)})))}))},n.prototype.performDelegateRequest=function(e,t,r,n){var i=this;this._taskState.startLoading(t),this._taskResourceService.delegateTask(this._safeTask.stringId,r).pipe(le.take(1)).subscribe((function(r){if(i._taskState.stopLoading(t),!i.isTaskRelevant(t))return i._log.debug("current task changed before the delegate response could be received, discarding..."),void n.resolve(!1);if(r.success){i._taskContentService.updateStateData(r.outcome);var o=i._eventService.parseChangedFieldsFromOutcomeTree(r.outcome);o&&i._changedFieldsService.emitChangedFields(o),i.completeSuccess(e,n)}else r.error&&(i._snackBar.openErrorSnackBar(r.error),i.completeActions(e,n,!1))}),(function(r){if(i._taskState.stopLoading(t),i._log.debug("getting task data failed",r),!i.isTaskRelevant(t))return i._log.debug("current task changed before the delegate error could be received"),void n.resolve(!1);i._snackBar.openErrorSnackBar(i._translate.instant("tasks.snackbar.assignTask")+"\n "+i._task+" "+i._translate.instant("tasks.snackbar.failed")),i.completeActions(e,n,!1)}))},n.prototype.completeSuccess=function(e,t){this._taskOperations.reload(),this.completeActions(e,t,!0)},n.prototype.completeActions=function(e,t,r){this.sendNotification(r),e.resolve(r),t.resolve(r)},n.prototype.sendNotification=function(t){this._taskEvent.publishTaskEvent(Bs(this._safeTask,e.TaskEvent.DELEGATE,t))},n.ctorParameters=function(){return[{type:$e},{type:Qr},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[fa]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms}]},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:$e},{type:Qr},{type:Sr},{type:ft},{type:ue.TranslateService},{type:Vs},{type:Hs},{type:Qs},{type:Gs},{type:Er},{type:Ws},{type:void 0,decorators:[{type:t.Inject,args:[Us]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[fa]}]},{type:$s,decorators:[{type:t.Optional}]},{type:Ms}]},n}(xs),Pc=function(){function e(){}return e.prototype.close=function(){},e.prototype.open=function(){},e.prototype.reload=function(){},e.prototype.forceReload=function(){},e}(),Nc=function(e,t,r,n,i,o){r.getNet(t.snapshot.paramMap.get("petriNetId")).pipe(le.mergeMap((function(e){if(e){var t={title:void 0!==e.defaultCaseName&&""!==e.defaultCaseName?e.defaultCaseName:o.instant("side-menu.new-case.case"),color:"panel-primary-icon",netId:e.stringId};return n.createCase(t)}i.openWarningSnackBar(o.instant("publicView.netNotExist"))}))).subscribe((function(r){e.navigate([t.snapshot.url.join("/")+"/"+r.outcome.aCase.stringId])}),(function(e){i.openErrorSnackBar(o.instant("publicView.errorCreate")+e)}))},Dc=function(){function e(){}return Object.defineProperty(e.prototype,"url",{get:function(){return this._url},set:function(e){this._url=e},enumerable:!1,configurable:!0}),e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}(),Lc=function(){function e(e){var t=this;this._groupService=e,this._activeGroups$=new ne.BehaviorSubject([]),this._groupSub=this._groupService.memberGroups$.subscribe((function(e){t._activeGroups$.next(e)}))}return e.prototype.ngOnDestroy=function(){this._groupSub.unsubscribe(),this._activeGroups$.complete()},Object.defineProperty(e.prototype,"activeGroups$",{get:function(){return this._activeGroups$.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){return this._activeGroups$.getValue()},set:function(e){this._activeGroups$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroup$",{get:function(){return this.activeGroups$.pipe(le.map((function(e){return e.length>0?e[0]:void 0})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroup",{get:function(){var e=this.activeGroups;return e.length>0?e[0]:void 0},set:function(e){void 0===e?this._activeGroups$.next([]):this._activeGroups$.next([e])},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:Tc}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Tc))},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Tc}]},e}(),jc=function(){function e(e){this._legalConfig=e.getConfigurationSubtree(["services","legal"])}return Object.defineProperty(e.prototype,"termsOfServiceLink",{get:function(){return this._legalConfig.termsOfService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"privacyPolicyLink",{get:function(){return this._legalConfig.privacyPolicy},enumerable:!1,configurable:!0}),e.propDecorators={buttonName:[{type:t.Input}]},e}(),Mc=function(){function e(){this._baseAllowedNets=new ne.BehaviorSubject([])}return e.prototype.ngOnDestroy=function(){this._baseAllowedNets.complete(),void 0!==this._sub&&this._sub.unsubscribe()},Object.defineProperty(e.prototype,"allowedNets",{get:function(){return this._baseAllowedNets.value},set:function(e){this._baseAllowedNets.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowedNets$",{get:function(){return this._baseAllowedNets.asObservable()},set:function(e){var t=this;void 0!==this._sub&&this._sub.unsubscribe(),this._sub=e.subscribe((function(e){t._baseAllowedNets.next(e)}))},enumerable:!1,configurable:!0}),e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e}();var xc=function(){function r(e,t,r,n){this._processService=e,this._petriNetResource=t,this._configService=r,this._log=n}return r.prototype.createWithAllNets=function(){return new Di(this._petriNetResource.getAll().pipe(le.switchMap((function(e){return e&&Array.isArray(e)?ne.of(e.map((function(e){return e.identifier}))):ne.of([])}))),this._processService)},r.prototype.createFromArray=function(e){return new Di(ne.of(e),this._processService)},r.prototype.createFromConfig=function(e){var t,r,n=this._configService.getViewByPath(e);if(void 0===(null===(t=null==n?void 0:n.layout)||void 0===t?void 0:t.params))throw new Error("Can't load configuration for view with webPath: '"+e+"'");var i=n.layout.params;return void 0===i.allowedNets&&this._log.warn("No 'allowedNets' provided for view with webPath '"+e+"'"),new Di(ne.of(null!==(r=i.allowedNets)&&void 0!==r?r:[]),this._processService)},r.prototype.createFromObservable=function(e){return new Di(e,this._processService)},r.prototype.createFromFilterCase=function(t){var r=vo(t,e.UserFilterConstants.FILTER_FIELD_ID);if(void 0===r)throw new Error("Cannot get filter from case '"+t.title+"' with id '"+t.stringId+"'");return new Di(ne.of(r.allowedNets),this._processService)},r.ctorParameters=function(){return[{type:Ni},{type:Pi},{type:Me},{type:$e}]},r.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new r(t["ɵɵinject"](Ni),t["ɵɵinject"](Pi),t["ɵɵinject"](Me),t["ɵɵinject"]($e))},token:r,providedIn:"root"}),r.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],r.ctorParameters=function(){return[{type:Ni},{type:Pi},{type:Me},{type:$e}]},r}();e.AbstractAddChildNodeComponent=au,e.AbstractAdvancedSearchComponent=Fu,e.AbstractAuthenticationOverlay=to,e.AbstractBooleanFieldComponent=Ot,e.AbstractButtonFieldComponent=jt,e.AbstractCaseListComponent=iu,e.AbstractCasePanelComponent=_o,e.AbstractCaseView=Aa,e.AbstractCountCard=hu,e.AbstractCurrencyNumberFieldComponent=Pr,e.AbstractCustomCard=gu,e.AbstractDashboardContent=mu,e.AbstractDataFieldTemplateComponent=Vt,e.AbstractDateFieldComponent=Gt,e.AbstractDateTimeFieldComponent=qt,e.AbstractDefaultNumberFieldComponent=Nr,e.AbstractEditModeComponent=es,e.AbstractEmailSubmissionFormComponent=Vo,e.AbstractEnumerationAutocompleteDynamicFieldComponent=Xr,e.AbstractEnumerationAutocompleteSelectFieldComponent=Jt,e.AbstractEnumerationFieldComponent=Wt,e.AbstractEnumerationIconFieldComponent=Yr,e.AbstractEnumerationListFieldComponent=Kt,e.AbstractEnumerationSelectFieldComponent=Qt,e.AbstractEnumerationStepperFieldComponent=er,e.AbstractFieldComponentResolverComponent=Ac,e.AbstractFileFieldComponent=wr,e.AbstractFileListFieldComponent=Cr,e.AbstractFilterFieldComponent=Jr,e.AbstractFilterFieldContentComponent=Mi,e.AbstractFilterSelectorComponent=aa,e.AbstractFilterSelectorListItemComponent=sa,e.AbstractForgottenPasswordComponent=Go,e.AbstractFulltextSearchComponent=Ou,e.AbstractGroupNavigationComponentResolverComponent=Is,e.AbstractHeaderComponent=Xa,e.AbstractHeaderService=Ba,e.AbstractHtmlTextareaFieldComponent=xr,e.AbstractI18nDividerFieldComponent=Ui,e.AbstractI18nFieldComponent=xi,e.AbstractI18nTextFieldComponent=Vi,e.AbstractIframeCard=fu,e.AbstractImmediateFilterTextComponent=jo,e.AbstractImmediateFilterTextContentComponent=Mo,e.AbstractImportNetComponent=Zo,e.AbstractInternalLinkComponent=cs,e.AbstractLanguageSelectorComponent=ps,e.AbstractLegalNoticeComponent=jc,e.AbstractLoadFilterComponent=La,e.AbstractLoadingModeComponent=ts,e.AbstractLoggerService=Ue,e.AbstractLoginFormComponent=Uo,e.AbstractLogoutShortcutComponent=ls,e.AbstractMultichoiceFieldComponent=kr,e.AbstractMultichoiceListFieldComponent=Or,e.AbstractMultichoiceSelectFieldComponent=Fr,e.AbstractNavigationDrawerComponent=_s,e.AbstractNavigationRailComponent=bs,e.AbstractNavigationTreeComponent=ms,e.AbstractNewCaseComponent=ea,e.AbstractNumberErrorsComponent=Rr,e.AbstractNumberFieldComponent=Ar,e.AbstractOptionSelectorComponent=ua,e.AbstractPanelComponent=lo,e.AbstractPasswordTextFieldComponent=Vr,e.AbstractProfileComponent=co,e.AbstractQuickPanelComponent=us,e.AbstractRegistrationComponent=zo,e.AbstractRegistrationFormComponent=Ho,e.AbstractRemoveNodeComponent=su,e.AbstractResourceProvider=tt,e.AbstractResourceService=nt,e.AbstractRichTextareaFieldComponent=Mr,e.AbstractRoleAssignment=Mu,e.AbstractSaveFilterComponent=Ca,e.AbstractSearchClauseComponent=Au,e.AbstractSearchComponent=ku,e.AbstractSearchConfigurationInputComponent=Nu,e.AbstractSearchModeComponent=rs,e.AbstractSearchOperandInputComponent=Pu,e.AbstractSearchPredicateComponent=Ru,e.AbstractSideMenuContainerComponent=ja,e.AbstractSimpleTextFieldComponent=jr,e.AbstractSortModeComponent=Ja,e.AbstractTabCreationDetectorComponent=Yo,e.AbstractTabViewComponent=Ko,e.AbstractTaskContentComponent=Fc,e.AbstractTaskListComponent=No,e.AbstractTaskPanelComponent=To,e.AbstractTaskView=la,e.AbstractTextErrorsComponent=Lr,e.AbstractTextFieldComponent=Dr,e.AbstractTextareaFieldComponent=Ur,e.AbstractToolbarComponent=qo,e.AbstractTreeComponent=ou,e.AbstractTreeTaskContentComponent=uu,e.AbstractUserAssignComponent=ta,e.AbstractUserAssignItemComponent=na,e.AbstractUserAssignListComponent=ra,e.AbstractUserCardComponent=uo,e.AbstractUserFieldComponent=Kr,e.AbstractUserInviteComponent=xu,e.AbstractWorkflowPanelComponent=Do,e.AbstractWorkflowViewComponent=nu,e.ActiveGroupService=Lc,e.AdvancedSearchComponentInitializationService=Su,e.AfterAction=da,e.AlertDialogComponent=Nt,e.AllowedNetsService=Di,e.AllowedNetsServiceFactory=xc,e.AnonymousService=ot,e.AssignPolicyService=eu,e.AssignTaskService=Ys,e.AuthenticationGuardService=Zi,e.AuthenticationMethodService=We,e.AuthenticationModule=Xi,e.AuthenticationService=Ze,e.AuthorityGuardService=_c,e.AutocompleteCategory=ri,e.BOOLEAN_VALUE_LABEL_ENABLED=$i,e.BaseAllowedNetsService=Mc,e.BasicAuthenticationService=Gi,e.BooleanField=wt,e.ButtonField=At,e.CallChainService=ha,e.CancelTaskService=Ks,e.CaseAuthor=ui,e.CaseCreationDate=li,e.CaseCreationDateTime=ki,e.CaseDataset=hi,e.CaseHeaderService=Ga,e.CaseListFontColorService=qu,e.CaseNetAttributeAutocompleteCategory=gi,e.CaseProcess=di,e.CaseResourceService=Jo,e.CaseRole=yi,e.CaseSimpleDataset=vi,e.CaseStringId=Ti,e.CaseTask=mi,e.CaseTitle=_i,e.CaseTreeNode=Os,e.CaseTreeService=js,e.CaseViewService=Da,e.CaseVisualId=bi,e.Category=ti,e.CategoryFactory=Li,e.CategoryResolverService=Oi,e.ChangedFieldsService=Ws,e.ClausePredicate=Tu,e.ConfigurationInput=Yn,e.ConfigurationService=Me,e.ConfirmDialogComponent=Pt,e.ConsoleLogPublisher=Le,e.CovalentModule=Ae,e.CurrencyModule=Re,e.CustomDateAdapter=Be,e.DATE_FORMAT=Jn,e.DATE_FORMAT_STRING="DD.MM.YYYY",e.DATE_TIME_FORMAT=ei,e.DATE_TIME_FORMAT_STRING="DD.MM.YYYY HH:mm",e.DashboardMultiData=lu,e.DashboardResourceService=ns,e.DashboardSingleData=pu,e.DataField=It,e.DataFieldsModule=St,e.DataFocusPolicyService=Xs,e.DatafieldMapKey=pi,e.DateField=pr,e.DateTimeField=dr,e.DefaultSearchCategoriesModule=ju,e.DelegateTaskService=Rc,e.DialogModule=Ua,e.DialogService=Lt,e.DynamicEnumerationField=mr,e.DynamicNavigationRouteProviderService=Ic,e.EditableClausePredicate=pn,e.EditableClausePredicateWithGenerators=fn,e.EditableElementaryPredicate=cn,e.EditablePredicate=un,e.EditablePredicateWithGenerator=hn,e.ElementaryPredicate=Qn,e.EnumerationField=Zt,e.Equals=vn,e.EqualsDate=Tn,e.ErrorSnackBarComponent=lt,e.EventQueueService=Gs,e.EventService=Er,e.FieldConverterService=Tr,e.FileField=or,e.FileListField=gr,e.FileUploadModel=Xo,e.Filter=tn,e.FilterExtractionService=Cs,e.FilterField=_r,e.FilterRepository=ia,e.FinishPolicyService=Js,e.FinishTaskService=Zs,e.GenericSnackBarComponent=ut,e.GroupGuardService=Sc,e.GroupNavigationComponentResolverService=ws,e.HeaderColumn=fo,e.HeaderSearchService=Qa,e.HttpLoaderFactory=mt,e.I18nField=br,e.InRange=En,e.InRangeDate=bn,e.IncrementingCounter=ln,e.IsNull=wn,e.LanguageService=yt,e.LessThan=Cn,e.LessThanDate=kn,e.LessThanDateTime=On,e.Like=Fn,e.LoadingEmitter=Ye,e.LoadingWithFilterEmitter=wo,e.LocalStorageLogPublisher=je,e.LogEntry=Ne,e.LogPublisher=De,e.LogPublisherService=Ve,e.LoggerService=$e,e.MaterialModule=Fe,e.MergedFilter=nn,e.MockAuthenticationMethodService=Ju,e.MockAuthenticationService=Yu,e.MockEndpoint=lc,e.MockSignUpService=ec,e.MockUserPreferenceService=Xu,e.MockUserResourceService=Zu,e.MoreThan=An,e.MoreThanDate=Rn,e.MoreThanDateTime=Pn,e.MultichoiceField=lr,e.NAE_ASYNC_RENDERING_CONFIGURATION=kc,e.NAE_BASE_FILTER=gn,e.NAE_DEFAULT_CASE_SEARCH_CATEGORIES=wu,e.NAE_DEFAULT_HEADERS=za,e.NAE_DEFAULT_TASK_SEARCH_CATEGORIES=Cu,e.NAE_FILES_UPLOAD_COMPONENT=ga,e.NAE_FILTERS_FILTER=_u,e.NAE_FILTER_FIELD=Zr,e.NAE_FILTER_TEXT=Lo,e.NAE_GROUP_NAVIGATION_COMPONENT_RESOLVER_COMPONENT=ks,e.NAE_INFORM_ABOUT_INVALID_DATA=Ct,e.NAE_LOAD_FILTER_COMPONENT=_a,e.NAE_NAVIGATION_ITEM_TASK_DATA=Es,e.NAE_NET_ALL_VERSIONS=Wr,e.NAE_NET_VERSION_VISIBLE=qr,e.NAE_NEW_CASE_COMPONENT=ya,e.NAE_NEW_CASE_CONFIGURATION=Ra,e.NAE_OPTION_SELECTOR_COMPONENT=va,e.NAE_PREFERRED_TASK_ENDPOINT=Io,e.NAE_SAVE_FILTER_COMPONENT=ma,e.NAE_SEARCH_CATEGORIES=Eu,e.NAE_SEARCH_COMPONENT_CONFIGURATION=Iu,e.NAE_SIDE_MENU_CONTROL=$r,e.NAE_SNACKBAR_HORIZONTAL_POSITION=ht,e.NAE_SNACKBAR_VERTICAL_POSITION=dt,e.NAE_TAB_DATA=Ro,e.NAE_TASK_OPERATIONS=Us,e.NAE_TASK_PANEL_DISABLE_BUTTON_FUNCTIONS=xo,e.NAE_TASK_VIEW_CONFIGURATION=Oo,e.NAE_USER_ASSIGN_COMPONENT=fa,e.NAE_VIEW_ID=ro,e.NAE_VIEW_ID_SEGMENT=no,e.NAE_WORKFLOW_SERVICE_CONFIRM_DELETE=Ps,e.NAE_WORKFLOW_SERVICE_FILTER=Rs,e.Net=Fi,e.NetAttributeAutocompleteCategory=fi,e.NextGroupService=Tc,e.NoConfigurationAutocompleteCategory=ni,e.NoConfigurationCategory=ci,e.NoConfigurationUserAutocompleteCategory=si,e.NotEquals=Nn,e.NotEqualsDate=Dn,e.NotEqualsDateTime=Bn,e.NullAuthenticationService=Hi,e.NullTaskOperations=Pc,e.NumberField=cr,e.Operator=yn,e.OperatorResolverService=zn,e.OperatorService=Hn,e.OperatorTemplatePart=Kn,e.OrganizationListService=Bu,e.OverflowService=Ha,e.PUBLISHERS=xe,e.PageLoadRequestContext=Eo,e.PaperViewService=ds,e.PermissionService=Na,e.PetriNetResourceService=Pi,e.Predicate=sn,e.PredicateWithGenerator=dn,e.ProcessList=Vu,e.ProcessService=Ni,e.PromptDialogComponent=Dt,e.PublicCaseResourceService=is,e.PublicPetriNetResourceService=os,e.PublicProcessService=cu,e.PublicTaskResourceService=as,e.PublicUrlResolverService=Dc,e.Query=an,e.QueuedEvent=qs,e.RedirectService=Bi,e.ResourceProvider=rt,e.ResultWithAfterActions=Ls,e.RoleAssignmentService=Uu,e.RoleGuardService=bc,e.RoutingBuilderService=Ec,e.SearchIndexResolverService=Gn,e.SearchService=ji,e.SelectedCaseService=$s,e.SessionService=Xe,e.SideMenuControl=Gr,e.SideMenuRef=Hr,e.SideMenuService=Qr,e.SignUpModule=Ji,e.SignUpService=eo,e.SimpleFilter=on,e.SingleTaskContentService=wc,e.SnackBar=st,e.SnackBarModule=bu,e.SnackBarService=ft,e.SortableView=ko,e.SpinnerOverlayService=Gu,e.Subgrid=Oc,e.SubjectTaskOperations=tu,e.Substring=Ln,e.SuccessSnackBarComponent=ct,e.TabView=Qo,e.TabbedCaseView=Fs,e.TabbedTaskView=As,e.TabbedVirtualScrollComponent=Po,e.TaskAssignee=Si,e.TaskContentService=Ms,e.TaskDataService=Qs,e.TaskEventService=Hs,e.TaskHandlingService=xs,e.TaskHeaderService=qa,e.TaskNetAttributeAutocompleteCategory=Ei,e.TaskProcess=Ii,e.TaskRefField=vr,e.TaskRequestStateService=Vs,e.TaskResourceService=Sr,e.TaskRole=wi,e.TaskTask=Ci,e.TaskViewService=Ao,e.TestCaseBaseFilterProvider=function(){return{filter:on.emptyCaseFilter()}},e.TestCaseViewAllowedNetsFactory=function(e){return e.createFromConfig("cases")},e.TestConfigurationService=sc,e.TestMockDependenciesModule=pc,e.TestNoAllowedNetsFactory=function(e){return e.createFromArray([])},e.TestTaskBaseFilterProvider=function(){return{filter:on.emptyTaskFilter()}},e.TestTaskViewAllowedNetsFactory=function(e){return e.createFromConfig("task")},e.TestViewService=cc,e.TextAreaField=yr,e.TextField=sr,e.TranslateLibModule=Tt,e.TreeCaseViewService=Ds,e.TreeTaskContentService=ru,e.UnlimitedTaskContentService=Cc,e.User=qe,e.UserAutocomplete=ai,e.UserComparatorService=io,e.UserField=hr,e.UserFiltersService=wa,e.UserInviteService=$u,e.UserListService=oo,e.UserPreferenceService=gt,e.UserResourceService=it,e.UserService=at,e.UserTransformer=Qe,e.UserValue=fr,e.ViewIdService=ao,e.ViewService=uc,e.ViewWithHeaders=ca,e.WarningSnackBarComponent=pt,e.WorkflowHeaderService=Wa,e.WorkflowViewService=Ns,e.WrappedBoolean=Mt,e.arrayToObservable=Co,e.authenticationServiceFactory=qi,e.clearTimeInformation=mn,e.configureCategory=function(e,t,r,n){var i=t.getOperator(r);e.selectOperator(e.allowedOperators.findIndex((function(e){return e===i}))),e.setOperands(n)},e.createMockCase=rc,e.createMockCaseOutcome=function(e,t,r){return void 0===e&&(e=rc()),void 0===t&&(t=nc()),void 0===r&&(r=[]),{net:t,outcomes:r,aCase:e,message:"Mock case event outcome"}},e.createMockDataGroup=function(t,r,n,i,o,a,s,u,c,l,p){return void 0===n&&(n=e.DataGroupAlignment.START),void 0===i&&(i=e["ɵu"].LEGACY),void 0===s&&(s=!1),void 0===u&&(u=4),{fields:t,title:r,alignment:n,stretch:s,layout:{type:i,rows:0,compactDirection:o,hideEmptyRows:a,cols:u},parentTaskId:c,parentTaskRefId:l,nestingLevel:p}},e.createMockDependencies=function(e,t,r){void 0===e&&(e=ne.of([])),void 0===r&&(r={getAll:function(){return ne.of({content:[],pagination:{}})}});var n=new Gn,i={allowedNets$:e};return{categoryFactory:new Li(null!=t?t:ac,null,n,new Oi,i,r),searchIndexResolver:n,userResourceService:r,allowedNetsService:i}},e.createMockField=ic,e.createMockGetDataOutcome=function(e,t,r,n,i){return void 0===e&&(e=[ic()]),void 0===t&&(t=tc()),void 0===r&&(r=nc()),void 0===n&&(n=rc()),void 0===i&&(i=[]),{net:r,aCase:n,task:t,outcomes:i,message:"Mock get data event outcome",data:e}},e.createMockImmediateData=function(e,t,r){return void 0===e&&(e="importId"),void 0===t&&(t=""),{stringId:e,type:"",value:t,allowedNets:r}},e.createMockNet=nc,e.createMockPage=function(e){void 0===e&&(e=[]);var t={content:{},pagination:{size:1,totalElements:0,totalPages:1,number:0}};return e.length>0&&(t.content=e,t.pagination.size=e.length,t.pagination.totalElements=e.length),t},e.createMockPetriNetOutcome=function(e,t){return void 0===e&&(e=nc()),void 0===t&&(t=[]),{outcomes:t,net:e,message:"Mock petri net event outcome"}},e.createMockSetDataOutcome=function(e,t,r,n,i){return void 0===e&&(e={changedFields:{}}),void 0===t&&(t=tc()),void 0===r&&(r=nc()),void 0===n&&(n=rc()),void 0===i&&(i=[]),{net:r,aCase:n,task:t,outcomes:i,message:"Mock set data event outcome",changedFields:e}},e.createMockTask=tc,e.createMockTaskOutcome=function(e,t,r,n){return void 0===e&&(e=tc()),void 0===t&&(t=nc()),void 0===r&&(r=rc()),void 0===n&&(n=[]),{outcomes:n,task:e,aCase:r,net:t,message:"Mock case event outcome"}},e.createTaskEventNotification=Bs,e.defaultCaseSearchCategoriesFactory=function(e){var t=[e.get(hi),e.get(_i),e.get(li),e.get(ki),e.get(di),e.get(mi),e.get(ui),e.get(bi),e.get(Ti)];return t.forEach((function(e){return e.destroy()})),t},e.defaultTaskSearchCategoriesFactory=function(e){var t=[e.get(Si),e.get(Ci),e.get(Ii),e.get(wi)];return t.forEach((function(e){return e.destroy()})),t},e.destroySubscription=Ts,e.extractFilterFieldFromData=ys,e.extractFilterFromData=function(e){return vs(ys(e))},e.extractFilterFromFilterField=vs,e.extractIconAndTitle=fs,e.extractRoles=gs,e.getField=ba,e.getFieldFromDataGroups=Sa,e.getFieldIndex=Ta,e.getFieldIndexFromDataGroups=Ia,e.getImmediateData=vo,e.getNetAndCreateCase=Nc,e.groupNavigationViewIdSegmentFactory=function(t){return t.snapshot.paramMap.get(e.GroupNavigationConstants.GROUP_NAVIGATION_ROUTER_PARAM)},e.hasContent=ii,e.loadAllPages=function(e,t,r){var n=r||{number:0,size:20,totalPages:void 0,totalElements:void 0};return e(t,zu(n)).pipe(le.map((function(r){n.totalPages=r.pagination.totalPages;var i={};if(i[n.number]=ne.of(r.content),n.number<n.totalPages)for(var o=n.number+1;o<n.totalPages;o++){var a=Object.assign({},n,{number:o});i[o]=Hu(e,t,a)}return ne.forkJoin(i)})),le.concatMap((function(e){return e})),le.map((function(e){var t=[];return Object.values(e).filter((function(e){return Array.isArray(e)})).forEach((function(e){return t.push.apply(t,ke(e))})),t})))},e.mockUserAutocompleteValue=function(e,t,r){return void 0===t&&(t=!0),{text:e,value:[t?r:ai.USER_ME_TEMPLATE],icon:t?ai.USER_ICON:ai.USER_ME_ICON}},e.navigationItemTaskAllowedNetsServiceFactory=function(t,r,n){var i=Sa(n,e.UserFilterConstants.FILTER_FIELD_ID);if(void 0===i)throw new Error("Provided navigation item task data does not contain a filter field with ID '"+e.UserFilterConstants.FILTER_FIELD_ID+"'! Allowed nets cannot be generated from it!");var o=ke(i.allowedNets);i.filterMetadata.inheritAllowedNets&&o.push.apply(o,ke(r.allowedNets));var a=new Set(o);return t.createFromArray(Array.from(a))},e.navigationItemTaskCategoryFactory=function(t,r,n,i){var o=Sa(r,e.UserFilterConstants.FILTER_FIELD_ID);if(void 0===o)throw new Error("Provided navigation item task data does not contain a filter field with ID '"+e.UserFilterConstants.FILTER_FIELD_ID+"'! Search categories cannot be generated from it!");var a=new Set,s=o.filterMetadata.searchCategories.map((function(e){var r=t.toClass(e);return a.add(r),r}));return o.filterMetadata.defaultSearchCategories&&(o.filterMetadata.filterType===e.FilterType.CASE?n:i).forEach((function(e){a.has(e)||s.push(e)})),s},e.navigationItemTaskFilterFactory=function(e,t){return{filter:e.extractCompleteFilterFromData(t)}},e.ofVoid=Xn,e.processMessageResponse=Ai,e.publicBaseFilterFactory=function(t,r,n,i,o,a){if(null===r.snapshot.paramMap.get("caseId")&&null!==r.snapshot.paramMap.get("petriNetId"))Nc(t,r,n,i,o,a);else if(null!==r.snapshot.paramMap.get("caseId"))return{filter:new on("",e.FilterType.TASK,{case:{id:r.snapshot.paramMap.get("caseId")}})};return{filter:new on("",e.FilterType.TASK,{case:{id:"No Case"}})}},e.publicFactoryResolver=function(e,t,r,n,i,o,a){if(t.isInitialized)return r.isAuthenticated&&""!==e.user.id&&"anonymous@netgrif.com"!==e.user.email?o:a;i.url=n.url,n.navigate(["/public-resolver"])},e.refreshTree=hs,e.tabbedAllowedNetsServiceFactory=function(e,t){var r;return e.createFromArray(null!==(r=null==t?void 0:t.allowedNets)&&void 0!==r?r:[])},e.tabbedTaskViewConfigurationFactory=function(e){return void 0!==(null==e?void 0:e.initiallyOpenOneTask)?{initiallyOpenOneTask:ne.of(e.initiallyOpenOneTask)}:{}},e.toMoment=po,e.ɵ0=Yi,e.ɵ1=Lu,e.ɵa=vt,e.ɵb=kt,e.ɵc=Ht,e.ɵe=zt,e.ɵi=zi,e.ɵj=Ki,e.ɵk=so,e.ɵl=yo,e.ɵm=go,e.ɵn=Rt,e.ɵq=Ma,e.ɵr=xa,e.ɵs=Va,e.ɵt=Za,e.ɵu=e["ɵu"],Object.defineProperty(e,"__esModule",{value:!0})}));
17
+ //# sourceMappingURL=netgrif-components-core.umd.min.js.map