@beinformed/ui 1.20.6 → 1.20.9

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 (1097) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/esm/builder/mergeLayoutHintConfigurations.js +34 -59
  3. package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
  4. package/esm/constants/Constants.js +37 -37
  5. package/esm/constants/Constants.js.map +1 -1
  6. package/esm/constants/LayoutHintConfig.js +1 -1
  7. package/esm/constants/LayoutHintConfig.js.map +1 -1
  8. package/esm/constants/LayoutHints.js +20 -22
  9. package/esm/constants/LayoutHints.js.map +1 -1
  10. package/esm/constants/Settings.js +12 -26
  11. package/esm/constants/Settings.js.map +1 -1
  12. package/esm/exceptions/ConfigurationException.js +5 -27
  13. package/esm/exceptions/ConfigurationException.js.map +1 -1
  14. package/esm/exceptions/FetchException.js +33 -65
  15. package/esm/exceptions/FetchException.js.map +1 -1
  16. package/esm/exceptions/IllegalArgumentException.js +5 -27
  17. package/esm/exceptions/IllegalArgumentException.js.map +1 -1
  18. package/esm/exceptions/IllegalReturnException.js +5 -27
  19. package/esm/exceptions/IllegalReturnException.js.map +1 -1
  20. package/esm/exceptions/IllegalStateException.js +5 -27
  21. package/esm/exceptions/IllegalStateException.js.map +1 -1
  22. package/esm/exceptions/JsonParseException.js +5 -27
  23. package/esm/exceptions/JsonParseException.js.map +1 -1
  24. package/esm/exceptions/MissingPropertyException.js +5 -27
  25. package/esm/exceptions/MissingPropertyException.js.map +1 -1
  26. package/esm/exceptions/NetworkException.js +9 -31
  27. package/esm/exceptions/NetworkException.js.map +1 -1
  28. package/esm/exceptions/NotAllowedUriException.js +5 -27
  29. package/esm/exceptions/NotAllowedUriException.js.map +1 -1
  30. package/esm/exceptions/NotFoundException.js +12 -35
  31. package/esm/exceptions/NotFoundException.js.map +1 -1
  32. package/esm/exceptions/ServerRequestException.js +5 -27
  33. package/esm/exceptions/ServerRequestException.js.map +1 -1
  34. package/esm/exceptions/ThemePropertyException.js +5 -27
  35. package/esm/exceptions/ThemePropertyException.js.map +1 -1
  36. package/esm/exceptions/TimeoutException.js +5 -26
  37. package/esm/exceptions/TimeoutException.js.map +1 -1
  38. package/esm/exceptions/UnauthorizedException.js +11 -33
  39. package/esm/exceptions/UnauthorizedException.js.map +1 -1
  40. package/esm/exceptions/UnsupportedOperationException.js +5 -27
  41. package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
  42. package/esm/hooks/useAllFormsOnModel.js +25 -46
  43. package/esm/hooks/useAllFormsOnModel.js.map +1 -1
  44. package/esm/hooks/useAuthentication.js +20 -26
  45. package/esm/hooks/useAuthentication.js.map +1 -1
  46. package/esm/hooks/useContent.js +13 -24
  47. package/esm/hooks/useContent.js.map +1 -1
  48. package/esm/hooks/useDeepCompareEffect.js +3 -3
  49. package/esm/hooks/useDeepCompareEffect.js.map +1 -1
  50. package/esm/hooks/useForm.js +27 -45
  51. package/esm/hooks/useForm.js.map +1 -1
  52. package/esm/hooks/useI18n.js +9 -19
  53. package/esm/hooks/useI18n.js.map +1 -1
  54. package/esm/hooks/useModal.js +11 -11
  55. package/esm/hooks/useModal.js.map +1 -1
  56. package/esm/hooks/useModelCatalog.js +24 -30
  57. package/esm/hooks/useModelCatalog.js.map +1 -1
  58. package/esm/hooks/useModels.js +3 -3
  59. package/esm/hooks/useModels.js.map +1 -1
  60. package/esm/hooks/useModularUI.js +17 -16
  61. package/esm/hooks/useModularUI.js.map +1 -1
  62. package/esm/hooks/useModularUIBasic.js +9 -7
  63. package/esm/hooks/useModularUIBasic.js.map +1 -1
  64. package/esm/hooks/useModularUIModel.js +39 -59
  65. package/esm/hooks/useModularUIModel.js.map +1 -1
  66. package/esm/hooks/useModularUIRequest.js +4 -6
  67. package/esm/hooks/useModularUIRequest.js.map +1 -1
  68. package/esm/hooks/useNotification.js +16 -21
  69. package/esm/hooks/useNotification.js.map +1 -1
  70. package/esm/hooks/usePreference.js +3 -5
  71. package/esm/hooks/usePreference.js.map +1 -1
  72. package/esm/hooks/useProgressIndicator.js +9 -30
  73. package/esm/hooks/useProgressIndicator.js.map +1 -1
  74. package/esm/hooks/useRouter.js +12 -26
  75. package/esm/hooks/useRouter.js.map +1 -1
  76. package/esm/i18n/Locale.js +96 -135
  77. package/esm/i18n/Locale.js.map +1 -1
  78. package/esm/i18n/Locales.js +94 -148
  79. package/esm/i18n/Locales.js.map +1 -1
  80. package/esm/i18n/Message.js +13 -24
  81. package/esm/i18n/Message.js.map +1 -1
  82. package/esm/i18n/languages.js +1 -1
  83. package/esm/i18n/languages.js.map +1 -1
  84. package/esm/i18n/withMessage.js +10 -16
  85. package/esm/i18n/withMessage.js.map +1 -1
  86. package/esm/models/actions/ActionCollection.js +55 -100
  87. package/esm/models/actions/ActionCollection.js.map +1 -1
  88. package/esm/models/actions/ActionModel.js +165 -204
  89. package/esm/models/actions/ActionModel.js.map +1 -1
  90. package/esm/models/application/ApplicationModel.js +104 -153
  91. package/esm/models/application/ApplicationModel.js.map +1 -1
  92. package/esm/models/attributes/AttributeCollection.js +246 -331
  93. package/esm/models/attributes/AttributeCollection.js.map +1 -1
  94. package/esm/models/attributes/AttributeContent.js +181 -244
  95. package/esm/models/attributes/AttributeContent.js.map +1 -1
  96. package/esm/models/attributes/AttributeDataHelper.js +202 -250
  97. package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
  98. package/esm/models/attributes/AttributeModel.js +832 -941
  99. package/esm/models/attributes/AttributeModel.js.map +1 -1
  100. package/esm/models/attributes/AttributeSetModel.js +46 -77
  101. package/esm/models/attributes/AttributeSetModel.js.map +1 -1
  102. package/esm/models/attributes/BooleanAttributeModel.js +259 -325
  103. package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
  104. package/esm/models/attributes/CaptchaAttributeModel.js +24 -55
  105. package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
  106. package/esm/models/attributes/ChoiceAttributeModel.js +337 -424
  107. package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
  108. package/esm/models/attributes/ChoiceAttributeOptionCollection.js +271 -361
  109. package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  110. package/esm/models/attributes/ChoiceAttributeOptionModel.js +297 -351
  111. package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  112. package/esm/models/attributes/CompositeAttributeChildCollection.js +180 -257
  113. package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  114. package/esm/models/attributes/CompositeAttributeModel.js +326 -401
  115. package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
  116. package/esm/models/attributes/DatetimeAttributeModel.js +368 -419
  117. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  118. package/esm/models/attributes/HelptextAttributeModel.js +38 -70
  119. package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
  120. package/esm/models/attributes/LabelAttributeModel.js +23 -54
  121. package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
  122. package/esm/models/attributes/MemoAttributeModel.js +31 -63
  123. package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
  124. package/esm/models/attributes/MoneyAttributeModel.js +30 -62
  125. package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
  126. package/esm/models/attributes/NumberAttributeModel.js +178 -225
  127. package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
  128. package/esm/models/attributes/PasswordAttributeModel.js +197 -246
  129. package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
  130. package/esm/models/attributes/StringAttributeModel.js +234 -282
  131. package/esm/models/attributes/StringAttributeModel.js.map +1 -1
  132. package/esm/models/attributes/UploadAttributeModel.js +181 -238
  133. package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
  134. package/esm/models/attributes/XMLAttributeModel.js +32 -64
  135. package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
  136. package/esm/models/attributes/_createAttribute.js +21 -36
  137. package/esm/models/attributes/_createAttribute.js.map +1 -1
  138. package/esm/models/attributes/input-constraints/BSNConstraint.js +63 -81
  139. package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  140. package/esm/models/attributes/input-constraints/ConstraintCollection.js +29 -66
  141. package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  142. package/esm/models/attributes/input-constraints/ConstraintModel.js +44 -59
  143. package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  144. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +170 -192
  145. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  146. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +52 -67
  147. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  148. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +52 -67
  149. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  150. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +66 -83
  151. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  152. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +53 -69
  153. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  154. package/esm/models/attributes/input-constraints/FileSizeConstraint.js +78 -94
  155. package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  156. package/esm/models/attributes/input-constraints/IBANConstraint.js +35 -51
  157. package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  158. package/esm/models/attributes/input-constraints/MandatoryConstraint.js +39 -57
  159. package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  160. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +62 -81
  161. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  162. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +149 -171
  163. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  164. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +104 -124
  165. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  166. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +91 -113
  167. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  168. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +58 -73
  169. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  170. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +35 -52
  171. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  172. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +51 -65
  173. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  174. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +51 -65
  175. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  176. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +65 -83
  177. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  178. package/esm/models/attributes/input-constraints/RangeConstraint.js +115 -134
  179. package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  180. package/esm/models/attributes/input-constraints/RegexConstraint.js +47 -61
  181. package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  182. package/esm/models/attributes/input-constraints/StringLengthConstraint.js +157 -176
  183. package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  184. package/esm/models/attributes/input-constraints/XMLConstraint.js +48 -66
  185. package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  186. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +49 -64
  187. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  188. package/esm/models/attributes/layouthint-rules/DependentAttribute.js +167 -209
  189. package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  190. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +40 -68
  191. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  192. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +30 -59
  193. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  194. package/esm/models/base/BaseCollection.js +169 -203
  195. package/esm/models/base/BaseCollection.js.map +1 -1
  196. package/esm/models/base/BaseModel.js +97 -112
  197. package/esm/models/base/BaseModel.js.map +1 -1
  198. package/esm/models/base/ResourceCollection.js +27 -55
  199. package/esm/models/base/ResourceCollection.js.map +1 -1
  200. package/esm/models/base/ResourceModel.js +167 -217
  201. package/esm/models/base/ResourceModel.js.map +1 -1
  202. package/esm/models/caseview/CaseViewModel.js +132 -180
  203. package/esm/models/caseview/CaseViewModel.js.map +1 -1
  204. package/esm/models/concepts/BusinessScenarioModel.js +98 -147
  205. package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
  206. package/esm/models/concepts/ConceptDetailModel.js +239 -316
  207. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  208. package/esm/models/concepts/ConceptIndexModel.js +114 -150
  209. package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
  210. package/esm/models/concepts/ConceptLinkModel.js +118 -158
  211. package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
  212. package/esm/models/concepts/ConceptRelationCollection.js +56 -103
  213. package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
  214. package/esm/models/concepts/ConceptRelationModel.js +60 -75
  215. package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
  216. package/esm/models/concepts/ConceptTypeDetailModel.js +89 -126
  217. package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  218. package/esm/models/concepts/SourceReferenceCollection.js +11 -42
  219. package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
  220. package/esm/models/concepts/SourceReferenceModel.js +47 -70
  221. package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
  222. package/esm/models/content/ContentIndexModel.js +108 -150
  223. package/esm/models/content/ContentIndexModel.js.map +1 -1
  224. package/esm/models/content/ContentLinkModel.js +157 -199
  225. package/esm/models/content/ContentLinkModel.js.map +1 -1
  226. package/esm/models/content/ContentModel.js +184 -228
  227. package/esm/models/content/ContentModel.js.map +1 -1
  228. package/esm/models/content/ContentTOCModel.js +132 -196
  229. package/esm/models/content/ContentTOCModel.js.map +1 -1
  230. package/esm/models/content/ContentTypeModel.js +58 -93
  231. package/esm/models/content/ContentTypeModel.js.map +1 -1
  232. package/esm/models/content/SectionModel.js +161 -247
  233. package/esm/models/content/SectionModel.js.map +1 -1
  234. package/esm/models/content/SubSectionModel.js +122 -188
  235. package/esm/models/content/SubSectionModel.js.map +1 -1
  236. package/esm/models/contentconfiguration/ContentConfiguration.js +44 -58
  237. package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  238. package/esm/models/contentconfiguration/ContentConfigurationElements.js +123 -162
  239. package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  240. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +24 -38
  241. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  242. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +30 -41
  243. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  244. package/esm/models/contentconfiguration/ContentConfigurationResults.js +73 -95
  245. package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  246. package/esm/models/detail/DetailModel.js +174 -225
  247. package/esm/models/detail/DetailModel.js.map +1 -1
  248. package/esm/models/error/ErrorCollection.js +79 -132
  249. package/esm/models/error/ErrorCollection.js.map +1 -1
  250. package/esm/models/error/ErrorModel.js +36 -48
  251. package/esm/models/error/ErrorModel.js.map +1 -1
  252. package/esm/models/error/ErrorResponse.js +175 -204
  253. package/esm/models/error/ErrorResponse.js.map +1 -1
  254. package/esm/models/filters/AssignmentFilterModel.js +142 -186
  255. package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
  256. package/esm/models/filters/BaseFilterModel.js +170 -220
  257. package/esm/models/filters/BaseFilterModel.js.map +1 -1
  258. package/esm/models/filters/ConceptIndexFilterModel.js +8 -36
  259. package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
  260. package/esm/models/filters/FilterCollection.js +106 -165
  261. package/esm/models/filters/FilterCollection.js.map +1 -1
  262. package/esm/models/filters/FilterModel.js +1 -26
  263. package/esm/models/filters/FilterModel.js.map +1 -1
  264. package/esm/models/filters/RangeFilterModel.js +29 -58
  265. package/esm/models/filters/RangeFilterModel.js.map +1 -1
  266. package/esm/models/form/FormModel.js +957 -1133
  267. package/esm/models/form/FormModel.js.map +1 -1
  268. package/esm/models/form/FormObjectModel.js +412 -506
  269. package/esm/models/form/FormObjectModel.js.map +1 -1
  270. package/esm/models/grouping/GroupingModel.js +115 -163
  271. package/esm/models/grouping/GroupingModel.js.map +1 -1
  272. package/esm/models/href/Href.js +391 -450
  273. package/esm/models/href/Href.js.map +1 -1
  274. package/esm/models/href/ListHref.js +116 -155
  275. package/esm/models/href/ListHref.js.map +1 -1
  276. package/esm/models/layouthint/LayoutHintCollection.js +91 -136
  277. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  278. package/esm/models/links/LinkCollection.js +127 -185
  279. package/esm/models/links/LinkCollection.js.map +1 -1
  280. package/esm/models/links/LinkModel.js +189 -228
  281. package/esm/models/links/LinkModel.js.map +1 -1
  282. package/esm/models/links/normalizeLinkJSON.js +30 -57
  283. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  284. package/esm/models/list/ListDetailModel.js +226 -289
  285. package/esm/models/list/ListDetailModel.js.map +1 -1
  286. package/esm/models/list/ListHeaderModel.js +74 -97
  287. package/esm/models/list/ListHeaderModel.js.map +1 -1
  288. package/esm/models/list/ListItemCollection.js +49 -85
  289. package/esm/models/list/ListItemCollection.js.map +1 -1
  290. package/esm/models/list/ListItemModel.js +73 -110
  291. package/esm/models/list/ListItemModel.js.map +1 -1
  292. package/esm/models/list/ListModel.js +342 -421
  293. package/esm/models/list/ListModel.js.map +1 -1
  294. package/esm/models/lookup/LookupOptionCollection.js +15 -51
  295. package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
  296. package/esm/models/lookup/LookupOptionsModel.js +42 -71
  297. package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
  298. package/esm/models/modelcatalog/ModelCatalogModel.js +35 -67
  299. package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  300. package/esm/models/paging/PagesizeModel.js +31 -42
  301. package/esm/models/paging/PagesizeModel.js.map +1 -1
  302. package/esm/models/paging/PagingModel.js +77 -94
  303. package/esm/models/paging/PagingModel.js.map +1 -1
  304. package/esm/models/panels/GroupingPanelModel.js +116 -160
  305. package/esm/models/panels/GroupingPanelModel.js.map +1 -1
  306. package/esm/models/parameter/Parameter.js +82 -97
  307. package/esm/models/parameter/Parameter.js.map +1 -1
  308. package/esm/models/process/ProcessStatusSettingsModel.js +63 -100
  309. package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
  310. package/esm/models/resolveModel.js +3 -5
  311. package/esm/models/resolveModel.js.map +1 -1
  312. package/esm/models/search/CaseSearchModel.js +23 -56
  313. package/esm/models/search/CaseSearchModel.js.map +1 -1
  314. package/esm/models/sorting/SortOptionModel.js +76 -90
  315. package/esm/models/sorting/SortOptionModel.js.map +1 -1
  316. package/esm/models/sorting/SortingModel.js +86 -134
  317. package/esm/models/sorting/SortingModel.js.map +1 -1
  318. package/esm/models/tab/TabModel.js +118 -163
  319. package/esm/models/tab/TabModel.js.map +1 -1
  320. package/esm/models/taskgroup/TaskGroupCollection.js +7 -37
  321. package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
  322. package/esm/models/taskgroup/TaskGroupModel.js +51 -83
  323. package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
  324. package/esm/models/user/UserModel.js +29 -61
  325. package/esm/models/user/UserModel.js.map +1 -1
  326. package/esm/models/user/UserProfileModel.js +19 -50
  327. package/esm/models/user/UserProfileModel.js.map +1 -1
  328. package/esm/models/user/UserServicesModel.js +79 -123
  329. package/esm/models/user/UserServicesModel.js.map +1 -1
  330. package/esm/modularui/Authenticate.js +143 -156
  331. package/esm/modularui/Authenticate.js.map +1 -1
  332. package/esm/modularui/ModularUIError.js +9 -32
  333. package/esm/modularui/ModularUIError.js.map +1 -1
  334. package/esm/modularui/ModularUIRequest.js +476 -630
  335. package/esm/modularui/ModularUIRequest.js.map +1 -1
  336. package/esm/modularui/ModularUIResponse.js +104 -119
  337. package/esm/modularui/ModularUIResponse.js.map +1 -1
  338. package/esm/react/ErrorBoundary.js +32 -65
  339. package/esm/react/ErrorBoundary.js.map +1 -1
  340. package/esm/react/ErrorBoundaryFallback.js +8 -6
  341. package/esm/react/ErrorBoundaryFallback.js.map +1 -1
  342. package/esm/react/utils.js +12 -15
  343. package/esm/react/utils.js.map +1 -1
  344. package/esm/react-client/Init.js +9 -7
  345. package/esm/react-client/Init.js.map +1 -1
  346. package/esm/react-client/client.js +21 -22
  347. package/esm/react-client/client.js.map +1 -1
  348. package/esm/react-client/contextPath.js +4 -4
  349. package/esm/react-client/contextPath.js.map +1 -1
  350. package/esm/react-client/rehydrate.js +14 -21
  351. package/esm/react-client/rehydrate.js.map +1 -1
  352. package/esm/react-server/createSSRComplete.js +10 -14
  353. package/esm/react-server/createSSRComplete.js.map +1 -1
  354. package/esm/react-server/htmlpage.js +5 -8
  355. package/esm/react-server/htmlpage.js.map +1 -1
  356. package/esm/react-server/renderSSRComplete.js +50 -55
  357. package/esm/react-server/renderSSRComplete.js.map +1 -1
  358. package/esm/react-server/renderSSRMinimal.js +13 -13
  359. package/esm/react-server/renderSSRMinimal.js.map +1 -1
  360. package/esm/react-server/requestInformation.js +8 -10
  361. package/esm/react-server/requestInformation.js.map +1 -1
  362. package/esm/react-server/serverNoSSR.js +22 -21
  363. package/esm/react-server/serverNoSSR.js.map +1 -1
  364. package/esm/react-server/serverSSR.js +24 -24
  365. package/esm/react-server/serverSSR.js.map +1 -1
  366. package/esm/react-server/serverUtil.js +45 -61
  367. package/esm/react-server/serverUtil.js.map +1 -1
  368. package/esm/react-theme/ThemeProvider.js +10 -7
  369. package/esm/react-theme/ThemeProvider.js.map +1 -1
  370. package/esm/react-theme/createTheme.js +15 -35
  371. package/esm/react-theme/createTheme.js.map +1 -1
  372. package/esm/react-theme/useTheme.js +1 -1
  373. package/esm/react-theme/useTheme.js.map +1 -1
  374. package/esm/react-theme/utils/background.js +9 -9
  375. package/esm/react-theme/utils/background.js.map +1 -1
  376. package/esm/react-theme/utils/colors.js +12 -12
  377. package/esm/react-theme/utils/colors.js.map +1 -1
  378. package/esm/react-theme/utils/contrast.js +27 -27
  379. package/esm/react-theme/utils/contrast.js.map +1 -1
  380. package/esm/react-theme/utils/corners.js +10 -9
  381. package/esm/react-theme/utils/corners.js.map +1 -1
  382. package/esm/react-theme/utils/spacers.js +23 -22
  383. package/esm/react-theme/utils/spacers.js.map +1 -1
  384. package/esm/react-theme/utils/themeProps.js +28 -29
  385. package/esm/react-theme/utils/themeProps.js.map +1 -1
  386. package/esm/redux/_i18n/actions.js +15 -21
  387. package/esm/redux/_i18n/actions.js.map +1 -1
  388. package/esm/redux/_i18n/reducer.js +20 -29
  389. package/esm/redux/_i18n/reducer.js.map +1 -1
  390. package/esm/redux/_modularui/actions.js +40 -67
  391. package/esm/redux/_modularui/actions.js.map +1 -1
  392. package/esm/redux/_modularui/connector.js +46 -50
  393. package/esm/redux/_modularui/connector.js.map +1 -1
  394. package/esm/redux/_modularui/middleware.js +23 -36
  395. package/esm/redux/_modularui/middleware.js.map +1 -1
  396. package/esm/redux/_modularui/modularuiUtils.js +16 -23
  397. package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
  398. package/esm/redux/_modularui/reducer.js +42 -53
  399. package/esm/redux/_modularui/reducer.js.map +1 -1
  400. package/esm/redux/_modularui/selectors.js +89 -99
  401. package/esm/redux/_modularui/selectors.js.map +1 -1
  402. package/esm/redux/_modularui/withModularUI.js +15 -19
  403. package/esm/redux/_modularui/withModularUI.js.map +1 -1
  404. package/esm/redux/_router/actions.js +29 -39
  405. package/esm/redux/_router/actions.js.map +1 -1
  406. package/esm/redux/_router/connectors.js +12 -14
  407. package/esm/redux/_router/connectors.js.map +1 -1
  408. package/esm/redux/_router/middleware.js +27 -29
  409. package/esm/redux/_router/middleware.js.map +1 -1
  410. package/esm/redux/_router/reducer.js +4 -4
  411. package/esm/redux/_router/reducer.js.map +1 -1
  412. package/esm/redux/actions/Application.js +9 -32
  413. package/esm/redux/actions/Application.js.map +1 -1
  414. package/esm/redux/actions/Authorization.js +31 -33
  415. package/esm/redux/actions/Authorization.js.map +1 -1
  416. package/esm/redux/actions/Error.js +33 -43
  417. package/esm/redux/actions/Error.js.map +1 -1
  418. package/esm/redux/actions/Form.js +13 -15
  419. package/esm/redux/actions/Form.js.map +1 -1
  420. package/esm/redux/actions/FormAttributeSet.js +6 -6
  421. package/esm/redux/actions/FormAttributeSet.js.map +1 -1
  422. package/esm/redux/actions/FormAttributeSetRepeatable.js +6 -6
  423. package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  424. package/esm/redux/actions/FormAutosave.js +12 -18
  425. package/esm/redux/actions/FormAutosave.js.map +1 -1
  426. package/esm/redux/actions/FormAutosubmit.js +2 -2
  427. package/esm/redux/actions/FormAutosubmit.js.map +1 -1
  428. package/esm/redux/actions/FormValidations.js +12 -20
  429. package/esm/redux/actions/FormValidations.js.map +1 -1
  430. package/esm/redux/actions/Modals.js +8 -12
  431. package/esm/redux/actions/Modals.js.map +1 -1
  432. package/esm/redux/actions/Notification.js +32 -42
  433. package/esm/redux/actions/Notification.js.map +1 -1
  434. package/esm/redux/actions/Preferences.js +32 -38
  435. package/esm/redux/actions/Preferences.js.map +1 -1
  436. package/esm/redux/actions/ProgressIndicator.js +15 -23
  437. package/esm/redux/actions/ProgressIndicator.js.map +1 -1
  438. package/esm/redux/actions/SignIn.js +39 -53
  439. package/esm/redux/actions/SignIn.js.map +1 -1
  440. package/esm/redux/actions/SignOut.js +9 -17
  441. package/esm/redux/actions/SignOut.js.map +1 -1
  442. package/esm/redux/connectors/Application.js +1 -1
  443. package/esm/redux/connectors/Application.js.map +1 -1
  444. package/esm/redux/connectors/Breadcrumb.js +4 -6
  445. package/esm/redux/connectors/Breadcrumb.js.map +1 -1
  446. package/esm/redux/connectors/CaseView.js +4 -2
  447. package/esm/redux/connectors/CaseView.js.map +1 -1
  448. package/esm/redux/connectors/ConceptDetail.js +5 -3
  449. package/esm/redux/connectors/ConceptDetail.js.map +1 -1
  450. package/esm/redux/connectors/ContentBrowser.js +4 -2
  451. package/esm/redux/connectors/ContentBrowser.js.map +1 -1
  452. package/esm/redux/connectors/ContentDetail.js +5 -3
  453. package/esm/redux/connectors/ContentDetail.js.map +1 -1
  454. package/esm/redux/connectors/ContentDetailSection.js +6 -4
  455. package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
  456. package/esm/redux/connectors/Form.js +11 -9
  457. package/esm/redux/connectors/Form.js.map +1 -1
  458. package/esm/redux/connectors/FormAttributeSet.js +13 -21
  459. package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
  460. package/esm/redux/connectors/ListDetail.js +4 -2
  461. package/esm/redux/connectors/ListDetail.js.map +1 -1
  462. package/esm/redux/connectors/Modal.js +4 -6
  463. package/esm/redux/connectors/Modal.js.map +1 -1
  464. package/esm/redux/connectors/ModelCatalog.js +4 -2
  465. package/esm/redux/connectors/ModelCatalog.js.map +1 -1
  466. package/esm/redux/connectors/Notification.js +8 -10
  467. package/esm/redux/connectors/Notification.js.map +1 -1
  468. package/esm/redux/connectors/PanelRenderer.js +7 -6
  469. package/esm/redux/connectors/PanelRenderer.js.map +1 -1
  470. package/esm/redux/connectors/Preferences.js +6 -8
  471. package/esm/redux/connectors/Preferences.js.map +1 -1
  472. package/esm/redux/connectors/Progress.js +2 -2
  473. package/esm/redux/connectors/Progress.js.map +1 -1
  474. package/esm/redux/connectors/ProgressIndicator.js +6 -8
  475. package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
  476. package/esm/redux/connectors/QuickSearch.js +6 -4
  477. package/esm/redux/connectors/QuickSearch.js.map +1 -1
  478. package/esm/redux/connectors/SignIn.js +4 -4
  479. package/esm/redux/connectors/SignIn.js.map +1 -1
  480. package/esm/redux/connectors/SignOut.js +3 -3
  481. package/esm/redux/connectors/SignOut.js.map +1 -1
  482. package/esm/redux/connectors/Tab.js +4 -2
  483. package/esm/redux/connectors/Tab.js.map +1 -1
  484. package/esm/redux/reducers/AuthReducer.js +14 -25
  485. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  486. package/esm/redux/reducers/ErrorReducer.js +4 -4
  487. package/esm/redux/reducers/ErrorReducer.js.map +1 -1
  488. package/esm/redux/reducers/ModalsReducer.js +19 -37
  489. package/esm/redux/reducers/ModalsReducer.js.map +1 -1
  490. package/esm/redux/reducers/NotificationReducer.js +8 -19
  491. package/esm/redux/reducers/NotificationReducer.js.map +1 -1
  492. package/esm/redux/reducers/PreferencesReducer.js +10 -17
  493. package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
  494. package/esm/redux/reducers/ProgressIndicatorReducer.js +14 -25
  495. package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  496. package/esm/redux/reducers/createReducer.js +11 -13
  497. package/esm/redux/reducers/createReducer.js.map +1 -1
  498. package/esm/redux/selectors/i18n.js +2 -4
  499. package/esm/redux/selectors/i18n.js.map +1 -1
  500. package/esm/redux/store/beforeRenderHooks.js +5 -26
  501. package/esm/redux/store/beforeRenderHooks.js.map +1 -1
  502. package/esm/redux/store/configureStore.js +10 -19
  503. package/esm/redux/store/configureStore.js.map +1 -1
  504. package/esm/utils/browser/Cache.js +122 -156
  505. package/esm/utils/browser/Cache.js.map +1 -1
  506. package/esm/utils/browser/Cookies.js +4 -4
  507. package/esm/utils/browser/Cookies.js.map +1 -1
  508. package/esm/utils/datetime/DateTimeUtil.js +363 -418
  509. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  510. package/esm/utils/fetch/serverFetch.js +5 -5
  511. package/esm/utils/fetch/serverFetch.js.map +1 -1
  512. package/esm/utils/fetch/universalFetch.js +13 -14
  513. package/esm/utils/fetch/universalFetch.js.map +1 -1
  514. package/esm/utils/fetch/xhr.js +281 -358
  515. package/esm/utils/fetch/xhr.js.map +1 -1
  516. package/esm/utils/helpers/checkResource.js +7 -7
  517. package/esm/utils/helpers/checkResource.js.map +1 -1
  518. package/esm/utils/helpers/createHash.js +5 -5
  519. package/esm/utils/helpers/createHash.js.map +1 -1
  520. package/esm/utils/helpers/createUUID.js +4 -4
  521. package/esm/utils/helpers/createUUID.js.map +1 -1
  522. package/esm/utils/helpers/objects.js +9 -14
  523. package/esm/utils/helpers/objects.js.map +1 -1
  524. package/esm/utils/helpers/sanitizeHtml.js +13 -13
  525. package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
  526. package/esm/utils/helpers/text.js +1 -1
  527. package/esm/utils/helpers/text.js.map +1 -1
  528. package/esm/utils/number/DecimalFormat.js +297 -327
  529. package/esm/utils/number/DecimalFormat.js.map +1 -1
  530. package/esm/utils/number/formatValue.js +10 -16
  531. package/esm/utils/number/formatValue.js.map +1 -1
  532. package/esm/utils/number/parseNumbers.js +13 -13
  533. package/esm/utils/number/parseNumbers.js.map +1 -1
  534. package/lib/builder/index.js +1 -1
  535. package/lib/builder/mergeLayoutHintConfigurations.js +34 -64
  536. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  537. package/lib/constants/Constants.js +37 -37
  538. package/lib/constants/Constants.js.map +1 -1
  539. package/lib/constants/LayoutHintConfig.js +1 -1
  540. package/lib/constants/LayoutHintConfig.js.map +1 -1
  541. package/lib/constants/LayoutHints.js +20 -22
  542. package/lib/constants/LayoutHints.js.map +1 -1
  543. package/lib/constants/Settings.js +12 -26
  544. package/lib/constants/Settings.js.map +1 -1
  545. package/lib/constants/index.js +3 -3
  546. package/lib/exceptions/ConfigurationException.js +5 -34
  547. package/lib/exceptions/ConfigurationException.js.map +1 -1
  548. package/lib/exceptions/FetchException.js +32 -75
  549. package/lib/exceptions/FetchException.js.map +1 -1
  550. package/lib/exceptions/IllegalArgumentException.js +5 -34
  551. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  552. package/lib/exceptions/IllegalReturnException.js +5 -34
  553. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  554. package/lib/exceptions/IllegalStateException.js +5 -34
  555. package/lib/exceptions/IllegalStateException.js.map +1 -1
  556. package/lib/exceptions/JsonParseException.js +5 -34
  557. package/lib/exceptions/JsonParseException.js.map +1 -1
  558. package/lib/exceptions/MissingPropertyException.js +5 -34
  559. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  560. package/lib/exceptions/NetworkException.js +9 -38
  561. package/lib/exceptions/NetworkException.js.map +1 -1
  562. package/lib/exceptions/NotAllowedUriException.js +5 -34
  563. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  564. package/lib/exceptions/NotFoundException.js +12 -41
  565. package/lib/exceptions/NotFoundException.js.map +1 -1
  566. package/lib/exceptions/ServerRequestException.js +5 -34
  567. package/lib/exceptions/ServerRequestException.js.map +1 -1
  568. package/lib/exceptions/ThemePropertyException.js +5 -34
  569. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  570. package/lib/exceptions/TimeoutException.js +5 -32
  571. package/lib/exceptions/TimeoutException.js.map +1 -1
  572. package/lib/exceptions/UnauthorizedException.js +11 -40
  573. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  574. package/lib/exceptions/UnsupportedOperationException.js +5 -34
  575. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  576. package/lib/exceptions/index.js +15 -15
  577. package/lib/hooks/index.js +16 -16
  578. package/lib/hooks/useAllFormsOnModel.js +25 -51
  579. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  580. package/lib/hooks/useAuthentication.js +18 -24
  581. package/lib/hooks/useAuthentication.js.map +1 -1
  582. package/lib/hooks/useContent.js +14 -27
  583. package/lib/hooks/useContent.js.map +1 -1
  584. package/lib/hooks/useDeepCompareEffect.js +5 -7
  585. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  586. package/lib/hooks/useForm.js +27 -45
  587. package/lib/hooks/useForm.js.map +1 -1
  588. package/lib/hooks/useI18n.js +10 -20
  589. package/lib/hooks/useI18n.js.map +1 -1
  590. package/lib/hooks/useModal.js +11 -11
  591. package/lib/hooks/useModal.js.map +1 -1
  592. package/lib/hooks/useModelCatalog.js +24 -30
  593. package/lib/hooks/useModelCatalog.js.map +1 -1
  594. package/lib/hooks/useModels.js +3 -3
  595. package/lib/hooks/useModels.js.map +1 -1
  596. package/lib/hooks/useModularUI.js +17 -16
  597. package/lib/hooks/useModularUI.js.map +1 -1
  598. package/lib/hooks/useModularUIBasic.js +9 -7
  599. package/lib/hooks/useModularUIBasic.js.map +1 -1
  600. package/lib/hooks/useModularUIModel.js +39 -59
  601. package/lib/hooks/useModularUIModel.js.map +1 -1
  602. package/lib/hooks/useModularUIRequest.js +4 -6
  603. package/lib/hooks/useModularUIRequest.js.map +1 -1
  604. package/lib/hooks/useNotification.js +16 -21
  605. package/lib/hooks/useNotification.js.map +1 -1
  606. package/lib/hooks/usePreference.js +3 -5
  607. package/lib/hooks/usePreference.js.map +1 -1
  608. package/lib/hooks/useProgressIndicator.js +9 -37
  609. package/lib/hooks/useProgressIndicator.js.map +1 -1
  610. package/lib/hooks/useRouter.js +11 -25
  611. package/lib/hooks/useRouter.js.map +1 -1
  612. package/lib/i18n/Locale.js +97 -144
  613. package/lib/i18n/Locale.js.map +1 -1
  614. package/lib/i18n/Locales.js +97 -160
  615. package/lib/i18n/Locales.js.map +1 -1
  616. package/lib/i18n/Message.js +13 -31
  617. package/lib/i18n/Message.js.map +1 -1
  618. package/lib/i18n/index.js +9 -11
  619. package/lib/i18n/index.js.map +1 -1
  620. package/lib/i18n/languages.js +1 -1
  621. package/lib/i18n/languages.js.map +1 -1
  622. package/lib/i18n/withMessage.js +11 -17
  623. package/lib/i18n/withMessage.js.map +1 -1
  624. package/lib/index.js +6 -6
  625. package/lib/models/actions/ActionCollection.js +58 -104
  626. package/lib/models/actions/ActionCollection.js.map +1 -1
  627. package/lib/models/actions/ActionModel.js +169 -210
  628. package/lib/models/actions/ActionModel.js.map +1 -1
  629. package/lib/models/application/ApplicationModel.js +107 -159
  630. package/lib/models/application/ApplicationModel.js.map +1 -1
  631. package/lib/models/attributes/AttributeCollection.js +245 -341
  632. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  633. package/lib/models/attributes/AttributeContent.js +182 -255
  634. package/lib/models/attributes/AttributeContent.js.flow +46 -44
  635. package/lib/models/attributes/AttributeContent.js.map +1 -1
  636. package/lib/models/attributes/AttributeDataHelper.js +203 -257
  637. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  638. package/lib/models/attributes/AttributeModel.js +838 -950
  639. package/lib/models/attributes/AttributeModel.js.map +1 -1
  640. package/lib/models/attributes/AttributeSetModel.js +49 -83
  641. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  642. package/lib/models/attributes/BooleanAttributeModel.js +267 -339
  643. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  644. package/lib/models/attributes/CaptchaAttributeModel.js +27 -59
  645. package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
  646. package/lib/models/attributes/ChoiceAttributeModel.js +343 -437
  647. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  648. package/lib/models/attributes/ChoiceAttributeOptionCollection.js +268 -369
  649. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  650. package/lib/models/attributes/ChoiceAttributeOptionModel.js +299 -357
  651. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  652. package/lib/models/attributes/CompositeAttributeChildCollection.js +181 -270
  653. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  654. package/lib/models/attributes/CompositeAttributeModel.js +331 -411
  655. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  656. package/lib/models/attributes/DatetimeAttributeModel.js +371 -425
  657. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  658. package/lib/models/attributes/HelptextAttributeModel.js +41 -74
  659. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  660. package/lib/models/attributes/LabelAttributeModel.js +26 -58
  661. package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
  662. package/lib/models/attributes/MemoAttributeModel.js +34 -67
  663. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  664. package/lib/models/attributes/MoneyAttributeModel.js +34 -67
  665. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  666. package/lib/models/attributes/NumberAttributeModel.js +181 -231
  667. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  668. package/lib/models/attributes/PasswordAttributeModel.js +201 -253
  669. package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
  670. package/lib/models/attributes/StringAttributeModel.js +239 -289
  671. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  672. package/lib/models/attributes/UploadAttributeModel.js +183 -243
  673. package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
  674. package/lib/models/attributes/XMLAttributeModel.js +38 -71
  675. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  676. package/lib/models/attributes/_createAttribute.js +20 -43
  677. package/lib/models/attributes/_createAttribute.js.map +1 -1
  678. package/lib/models/attributes/input-constraints/BSNConstraint.js +64 -84
  679. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  680. package/lib/models/attributes/input-constraints/ConstraintCollection.js +36 -74
  681. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  682. package/lib/models/attributes/input-constraints/ConstraintModel.js +46 -59
  683. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  684. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +171 -193
  685. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  686. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +53 -68
  687. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  688. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +53 -68
  689. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  690. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +67 -84
  691. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  692. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +53 -69
  693. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  694. package/lib/models/attributes/input-constraints/FileSizeConstraint.js +79 -95
  695. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  696. package/lib/models/attributes/input-constraints/IBANConstraint.js +41 -58
  697. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  698. package/lib/models/attributes/input-constraints/MandatoryConstraint.js +39 -60
  699. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  700. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +63 -82
  701. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  702. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +150 -172
  703. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  704. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +105 -125
  705. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  706. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +92 -114
  707. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  708. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +58 -73
  709. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  710. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +36 -55
  711. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  712. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +51 -65
  713. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  714. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +51 -65
  715. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  716. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +64 -82
  717. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  718. package/lib/models/attributes/input-constraints/RangeConstraint.js +116 -135
  719. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  720. package/lib/models/attributes/input-constraints/RegexConstraint.js +48 -62
  721. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  722. package/lib/models/attributes/input-constraints/StringLengthConstraint.js +158 -177
  723. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  724. package/lib/models/attributes/input-constraints/XMLConstraint.js +49 -69
  725. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  726. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +54 -70
  727. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  728. package/lib/models/attributes/layouthint-rules/DependentAttribute.js +172 -218
  729. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  730. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +43 -74
  731. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  732. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +32 -64
  733. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  734. package/lib/models/base/BaseCollection.js +170 -206
  735. package/lib/models/base/BaseCollection.js.map +1 -1
  736. package/lib/models/base/BaseModel.js +98 -113
  737. package/lib/models/base/BaseModel.js.map +1 -1
  738. package/lib/models/base/ResourceCollection.js +28 -60
  739. package/lib/models/base/ResourceCollection.js.map +1 -1
  740. package/lib/models/base/ResourceModel.js +171 -231
  741. package/lib/models/base/ResourceModel.js.map +1 -1
  742. package/lib/models/caseview/CaseViewModel.js +137 -188
  743. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  744. package/lib/models/concepts/BusinessScenarioModel.js +97 -153
  745. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  746. package/lib/models/concepts/ConceptDetailModel.js +243 -329
  747. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  748. package/lib/models/concepts/ConceptIndexModel.js +118 -156
  749. package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
  750. package/lib/models/concepts/ConceptLinkModel.js +122 -163
  751. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  752. package/lib/models/concepts/ConceptRelationCollection.js +57 -105
  753. package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
  754. package/lib/models/concepts/ConceptRelationModel.js +62 -75
  755. package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
  756. package/lib/models/concepts/ConceptTypeDetailModel.js +87 -127
  757. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  758. package/lib/models/concepts/SourceReferenceCollection.js +13 -44
  759. package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
  760. package/lib/models/concepts/SourceReferenceModel.js +47 -74
  761. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  762. package/lib/models/content/ContentIndexModel.js +112 -156
  763. package/lib/models/content/ContentIndexModel.js.map +1 -1
  764. package/lib/models/content/ContentLinkModel.js +162 -205
  765. package/lib/models/content/ContentLinkModel.js.map +1 -1
  766. package/lib/models/content/ContentModel.js +188 -235
  767. package/lib/models/content/ContentModel.js.map +1 -1
  768. package/lib/models/content/ContentTOCModel.js +133 -209
  769. package/lib/models/content/ContentTOCModel.js.map +1 -1
  770. package/lib/models/content/ContentTypeModel.js +56 -92
  771. package/lib/models/content/ContentTypeModel.js.map +1 -1
  772. package/lib/models/content/SectionModel.js +160 -254
  773. package/lib/models/content/SectionModel.js.map +1 -1
  774. package/lib/models/content/SubSectionModel.js +125 -196
  775. package/lib/models/content/SubSectionModel.js.map +1 -1
  776. package/lib/models/contentconfiguration/ContentConfiguration.js +46 -58
  777. package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  778. package/lib/models/contentconfiguration/ContentConfigurationElements.js +127 -171
  779. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  780. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +28 -45
  781. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  782. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +31 -42
  783. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  784. package/lib/models/contentconfiguration/ContentConfigurationResults.js +74 -98
  785. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  786. package/lib/models/detail/DetailModel.js +176 -232
  787. package/lib/models/detail/DetailModel.js.map +1 -1
  788. package/lib/models/error/ErrorCollection.js +82 -139
  789. package/lib/models/error/ErrorCollection.js.map +1 -1
  790. package/lib/models/error/ErrorModel.js +36 -48
  791. package/lib/models/error/ErrorModel.js.map +1 -1
  792. package/lib/models/error/ErrorResponse.js +177 -205
  793. package/lib/models/error/ErrorResponse.js.map +1 -1
  794. package/lib/models/filters/AssignmentFilterModel.js +144 -195
  795. package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
  796. package/lib/models/filters/BaseFilterModel.js +171 -228
  797. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  798. package/lib/models/filters/ConceptIndexFilterModel.js +9 -39
  799. package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
  800. package/lib/models/filters/FilterCollection.js +109 -177
  801. package/lib/models/filters/FilterCollection.js.map +1 -1
  802. package/lib/models/filters/FilterModel.js +2 -29
  803. package/lib/models/filters/FilterModel.js.map +1 -1
  804. package/lib/models/filters/RangeFilterModel.js +30 -60
  805. package/lib/models/filters/RangeFilterModel.js.map +1 -1
  806. package/lib/models/form/FormModel.js +961 -1150
  807. package/lib/models/form/FormModel.js.map +1 -1
  808. package/lib/models/form/FormObjectModel.js +411 -517
  809. package/lib/models/form/FormObjectModel.js.map +1 -1
  810. package/lib/models/grouping/GroupingModel.js +117 -165
  811. package/lib/models/grouping/GroupingModel.js.map +1 -1
  812. package/lib/models/href/Href.js +392 -452
  813. package/lib/models/href/Href.js.map +1 -1
  814. package/lib/models/href/ListHref.js +119 -159
  815. package/lib/models/href/ListHref.js.map +1 -1
  816. package/lib/models/index.js +97 -99
  817. package/lib/models/index.js.map +1 -1
  818. package/lib/models/layouthint/LayoutHintCollection.js +94 -140
  819. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  820. package/lib/models/links/LinkCollection.js +136 -196
  821. package/lib/models/links/LinkCollection.js.map +1 -1
  822. package/lib/models/links/LinkModel.js +191 -235
  823. package/lib/models/links/LinkModel.js.map +1 -1
  824. package/lib/models/links/normalizeLinkJSON.js +30 -66
  825. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  826. package/lib/models/list/ListDetailModel.js +229 -302
  827. package/lib/models/list/ListDetailModel.js.map +1 -1
  828. package/lib/models/list/ListHeaderModel.js +73 -97
  829. package/lib/models/list/ListHeaderModel.js.map +1 -1
  830. package/lib/models/list/ListItemCollection.js +49 -91
  831. package/lib/models/list/ListItemCollection.js.map +1 -1
  832. package/lib/models/list/ListItemModel.js +76 -114
  833. package/lib/models/list/ListItemModel.js.map +1 -1
  834. package/lib/models/list/ListModel.js +347 -435
  835. package/lib/models/list/ListModel.js.map +1 -1
  836. package/lib/models/lookup/LookupOptionCollection.js +16 -61
  837. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  838. package/lib/models/lookup/LookupOptionsModel.js +48 -79
  839. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  840. package/lib/models/modelcatalog/ModelCatalogModel.js +39 -72
  841. package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  842. package/lib/models/paging/PagesizeModel.js +29 -38
  843. package/lib/models/paging/PagesizeModel.js.map +1 -1
  844. package/lib/models/paging/PagingModel.js +77 -92
  845. package/lib/models/paging/PagingModel.js.map +1 -1
  846. package/lib/models/panels/GroupingPanelModel.js +117 -164
  847. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  848. package/lib/models/parameter/Parameter.js +83 -99
  849. package/lib/models/parameter/Parameter.js.map +1 -1
  850. package/lib/models/process/ProcessStatusSettingsModel.js +67 -105
  851. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  852. package/lib/models/resolveModel.js +3 -5
  853. package/lib/models/resolveModel.js.map +1 -1
  854. package/lib/models/search/CaseSearchModel.js +26 -60
  855. package/lib/models/search/CaseSearchModel.js.map +1 -1
  856. package/lib/models/sorting/SortOptionModel.js +77 -91
  857. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  858. package/lib/models/sorting/SortingModel.js +88 -140
  859. package/lib/models/sorting/SortingModel.js.map +1 -1
  860. package/lib/models/tab/TabModel.js +122 -170
  861. package/lib/models/tab/TabModel.js.map +1 -1
  862. package/lib/models/taskgroup/TaskGroupCollection.js +8 -39
  863. package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
  864. package/lib/models/taskgroup/TaskGroupModel.js +54 -88
  865. package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
  866. package/lib/models/user/UserModel.js +32 -65
  867. package/lib/models/user/UserModel.js.map +1 -1
  868. package/lib/models/user/UserProfileModel.js +21 -56
  869. package/lib/models/user/UserProfileModel.js.map +1 -1
  870. package/lib/models/user/UserServicesModel.js +78 -128
  871. package/lib/models/user/UserServicesModel.js.flow +1 -7
  872. package/lib/models/user/UserServicesModel.js.map +1 -1
  873. package/lib/modularui/Authenticate.js +144 -157
  874. package/lib/modularui/Authenticate.js.flow +13 -7
  875. package/lib/modularui/Authenticate.js.map +1 -1
  876. package/lib/modularui/ModularUIError.js +9 -39
  877. package/lib/modularui/ModularUIError.js.map +1 -1
  878. package/lib/modularui/ModularUIRequest.js +477 -647
  879. package/lib/modularui/ModularUIRequest.js.flow +1 -1
  880. package/lib/modularui/ModularUIRequest.js.map +1 -1
  881. package/lib/modularui/ModularUIResponse.js +102 -120
  882. package/lib/modularui/ModularUIResponse.js.map +1 -1
  883. package/lib/modularui/index.js +3 -3
  884. package/lib/react/ErrorBoundary.js +33 -71
  885. package/lib/react/ErrorBoundary.js.map +1 -1
  886. package/lib/react/ErrorBoundaryFallback.js +8 -6
  887. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  888. package/lib/react/index.js +2 -2
  889. package/lib/react/utils.js +12 -16
  890. package/lib/react/utils.js.map +1 -1
  891. package/lib/react-client/Init.js +9 -7
  892. package/lib/react-client/Init.js.map +1 -1
  893. package/lib/react-client/client.js +22 -23
  894. package/lib/react-client/client.js.map +1 -1
  895. package/lib/react-client/contextPath.js +4 -4
  896. package/lib/react-client/contextPath.js.map +1 -1
  897. package/lib/react-client/index.js +3 -3
  898. package/lib/react-client/rehydrate.js +14 -22
  899. package/lib/react-client/rehydrate.js.map +1 -1
  900. package/lib/react-server/createSSRComplete.js +10 -14
  901. package/lib/react-server/createSSRComplete.js.map +1 -1
  902. package/lib/react-server/htmlpage.js +5 -8
  903. package/lib/react-server/htmlpage.js.map +1 -1
  904. package/lib/react-server/index.js +8 -8
  905. package/lib/react-server/renderSSRComplete.js +50 -55
  906. package/lib/react-server/renderSSRComplete.js.map +1 -1
  907. package/lib/react-server/renderSSRMinimal.js +13 -13
  908. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  909. package/lib/react-server/requestInformation.js +8 -10
  910. package/lib/react-server/requestInformation.js.map +1 -1
  911. package/lib/react-server/serverNoSSR.js +22 -21
  912. package/lib/react-server/serverNoSSR.js.map +1 -1
  913. package/lib/react-server/serverSSR.js +24 -24
  914. package/lib/react-server/serverSSR.js.map +1 -1
  915. package/lib/react-server/serverUtil.js +49 -74
  916. package/lib/react-server/serverUtil.js.map +1 -1
  917. package/lib/react-theme/ThemeProvider.js +10 -7
  918. package/lib/react-theme/ThemeProvider.js.map +1 -1
  919. package/lib/react-theme/createTheme.js +15 -44
  920. package/lib/react-theme/createTheme.js.map +1 -1
  921. package/lib/react-theme/index.js +9 -9
  922. package/lib/react-theme/useTheme.js +1 -1
  923. package/lib/react-theme/useTheme.js.map +1 -1
  924. package/lib/react-theme/utils/background.js +9 -9
  925. package/lib/react-theme/utils/background.js.map +1 -1
  926. package/lib/react-theme/utils/colors.js +12 -12
  927. package/lib/react-theme/utils/colors.js.map +1 -1
  928. package/lib/react-theme/utils/contrast.js +27 -28
  929. package/lib/react-theme/utils/contrast.js.map +1 -1
  930. package/lib/react-theme/utils/corners.js +10 -9
  931. package/lib/react-theme/utils/corners.js.map +1 -1
  932. package/lib/react-theme/utils/spacers.js +23 -22
  933. package/lib/react-theme/utils/spacers.js.map +1 -1
  934. package/lib/react-theme/utils/themeProps.js +28 -30
  935. package/lib/react-theme/utils/themeProps.js.map +1 -1
  936. package/lib/redux/_i18n/actions.js +15 -21
  937. package/lib/redux/_i18n/actions.js.map +1 -1
  938. package/lib/redux/_i18n/index.js +2 -2
  939. package/lib/redux/_i18n/reducer.js +20 -34
  940. package/lib/redux/_i18n/reducer.js.map +1 -1
  941. package/lib/redux/_modularui/actions.js +40 -72
  942. package/lib/redux/_modularui/actions.js.map +1 -1
  943. package/lib/redux/_modularui/connector.js +46 -55
  944. package/lib/redux/_modularui/connector.js.map +1 -1
  945. package/lib/redux/_modularui/index.js +7 -7
  946. package/lib/redux/_modularui/middleware.js +23 -36
  947. package/lib/redux/_modularui/middleware.js.map +1 -1
  948. package/lib/redux/_modularui/modularuiUtils.js +16 -24
  949. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  950. package/lib/redux/_modularui/reducer.js +42 -61
  951. package/lib/redux/_modularui/reducer.js.map +1 -1
  952. package/lib/redux/_modularui/selectors.js +89 -106
  953. package/lib/redux/_modularui/selectors.js.map +1 -1
  954. package/lib/redux/_modularui/withModularUI.js +11 -15
  955. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  956. package/lib/redux/_router/actions.js +29 -39
  957. package/lib/redux/_router/actions.js.map +1 -1
  958. package/lib/redux/_router/connectors.js +7 -9
  959. package/lib/redux/_router/connectors.js.map +1 -1
  960. package/lib/redux/_router/index.js +4 -4
  961. package/lib/redux/_router/middleware.js +27 -29
  962. package/lib/redux/_router/middleware.js.map +1 -1
  963. package/lib/redux/_router/reducer.js +4 -4
  964. package/lib/redux/_router/reducer.js.map +1 -1
  965. package/lib/redux/actions/Application.js +11 -37
  966. package/lib/redux/actions/Application.js.map +1 -1
  967. package/lib/redux/actions/Authorization.js +31 -33
  968. package/lib/redux/actions/Authorization.js.map +1 -1
  969. package/lib/redux/actions/Error.js +33 -43
  970. package/lib/redux/actions/Error.js.map +1 -1
  971. package/lib/redux/actions/Form.js +14 -16
  972. package/lib/redux/actions/Form.js.map +1 -1
  973. package/lib/redux/actions/FormAttributeSet.js +6 -6
  974. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  975. package/lib/redux/actions/FormAttributeSetRepeatable.js +6 -6
  976. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  977. package/lib/redux/actions/FormAutosave.js +12 -18
  978. package/lib/redux/actions/FormAutosave.js.map +1 -1
  979. package/lib/redux/actions/FormAutosubmit.js +2 -2
  980. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  981. package/lib/redux/actions/FormValidations.js +12 -20
  982. package/lib/redux/actions/FormValidations.js.map +1 -1
  983. package/lib/redux/actions/Modals.js +8 -12
  984. package/lib/redux/actions/Modals.js.map +1 -1
  985. package/lib/redux/actions/Notification.js +32 -42
  986. package/lib/redux/actions/Notification.js.map +1 -1
  987. package/lib/redux/actions/Preferences.js +32 -43
  988. package/lib/redux/actions/Preferences.js.map +1 -1
  989. package/lib/redux/actions/ProgressIndicator.js +15 -23
  990. package/lib/redux/actions/ProgressIndicator.js.map +1 -1
  991. package/lib/redux/actions/SignIn.js +43 -57
  992. package/lib/redux/actions/SignIn.js.map +1 -1
  993. package/lib/redux/actions/SignOut.js +9 -17
  994. package/lib/redux/actions/SignOut.js.map +1 -1
  995. package/lib/redux/actions/index.js +15 -15
  996. package/lib/redux/connectors/Application.js +1 -1
  997. package/lib/redux/connectors/Application.js.map +1 -1
  998. package/lib/redux/connectors/Breadcrumb.js +4 -6
  999. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  1000. package/lib/redux/connectors/CaseView.js +4 -2
  1001. package/lib/redux/connectors/CaseView.js.map +1 -1
  1002. package/lib/redux/connectors/ConceptDetail.js +5 -3
  1003. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  1004. package/lib/redux/connectors/ContentBrowser.js +4 -2
  1005. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  1006. package/lib/redux/connectors/ContentDetail.js +5 -3
  1007. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  1008. package/lib/redux/connectors/ContentDetailSection.js +6 -4
  1009. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  1010. package/lib/redux/connectors/Form.js +10 -8
  1011. package/lib/redux/connectors/Form.js.map +1 -1
  1012. package/lib/redux/connectors/FormAttributeSet.js +13 -21
  1013. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  1014. package/lib/redux/connectors/ListDetail.js +4 -2
  1015. package/lib/redux/connectors/ListDetail.js.map +1 -1
  1016. package/lib/redux/connectors/Modal.js +4 -6
  1017. package/lib/redux/connectors/Modal.js.map +1 -1
  1018. package/lib/redux/connectors/ModelCatalog.js +4 -2
  1019. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  1020. package/lib/redux/connectors/Notification.js +8 -10
  1021. package/lib/redux/connectors/Notification.js.map +1 -1
  1022. package/lib/redux/connectors/PanelRenderer.js +7 -6
  1023. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  1024. package/lib/redux/connectors/Preferences.js +6 -8
  1025. package/lib/redux/connectors/Preferences.js.map +1 -1
  1026. package/lib/redux/connectors/Progress.js +2 -2
  1027. package/lib/redux/connectors/Progress.js.map +1 -1
  1028. package/lib/redux/connectors/ProgressIndicator.js +6 -8
  1029. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  1030. package/lib/redux/connectors/QuickSearch.js +5 -3
  1031. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  1032. package/lib/redux/connectors/SignIn.js +4 -4
  1033. package/lib/redux/connectors/SignIn.js.map +1 -1
  1034. package/lib/redux/connectors/SignOut.js +3 -3
  1035. package/lib/redux/connectors/SignOut.js.map +1 -1
  1036. package/lib/redux/connectors/Tab.js +4 -2
  1037. package/lib/redux/connectors/Tab.js.map +1 -1
  1038. package/lib/redux/connectors/index.js +21 -21
  1039. package/lib/redux/index.js +8 -8
  1040. package/lib/redux/reducers/AuthReducer.js +14 -33
  1041. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  1042. package/lib/redux/reducers/ErrorReducer.js +4 -4
  1043. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  1044. package/lib/redux/reducers/ModalsReducer.js +19 -45
  1045. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  1046. package/lib/redux/reducers/NotificationReducer.js +8 -27
  1047. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  1048. package/lib/redux/reducers/PreferencesReducer.js +10 -25
  1049. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  1050. package/lib/redux/reducers/ProgressIndicatorReducer.js +14 -33
  1051. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  1052. package/lib/redux/reducers/createReducer.js +11 -13
  1053. package/lib/redux/reducers/createReducer.js.map +1 -1
  1054. package/lib/redux/reducers/index.js +7 -7
  1055. package/lib/redux/selectors/i18n.js +2 -4
  1056. package/lib/redux/selectors/i18n.js.map +1 -1
  1057. package/lib/redux/selectors/index.js +1 -1
  1058. package/lib/redux/store/beforeRenderHooks.js +5 -29
  1059. package/lib/redux/store/beforeRenderHooks.js.map +1 -1
  1060. package/lib/redux/store/configureStore.js +10 -24
  1061. package/lib/redux/store/configureStore.js.map +1 -1
  1062. package/lib/utils/browser/Cache.js +126 -161
  1063. package/lib/utils/browser/Cache.js.map +1 -1
  1064. package/lib/utils/browser/Cookies.js +4 -4
  1065. package/lib/utils/browser/Cookies.js.map +1 -1
  1066. package/lib/utils/datetime/DateTimeUtil.js +364 -418
  1067. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  1068. package/lib/utils/fetch/serverFetch.js +5 -5
  1069. package/lib/utils/fetch/serverFetch.js.map +1 -1
  1070. package/lib/utils/fetch/universalFetch.js +13 -13
  1071. package/lib/utils/fetch/universalFetch.js.map +1 -1
  1072. package/lib/utils/fetch/xhr.js +281 -365
  1073. package/lib/utils/fetch/xhr.js.map +1 -1
  1074. package/lib/utils/helpers/checkResource.js +7 -7
  1075. package/lib/utils/helpers/checkResource.js.map +1 -1
  1076. package/lib/utils/helpers/createHash.js +5 -5
  1077. package/lib/utils/helpers/createHash.js.map +1 -1
  1078. package/lib/utils/helpers/createUUID.js +4 -4
  1079. package/lib/utils/helpers/createUUID.js.map +1 -1
  1080. package/lib/utils/helpers/objects.js +9 -15
  1081. package/lib/utils/helpers/objects.js.map +1 -1
  1082. package/lib/utils/helpers/sanitizeHtml.js +13 -13
  1083. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  1084. package/lib/utils/helpers/text.js +1 -1
  1085. package/lib/utils/helpers/text.js.map +1 -1
  1086. package/lib/utils/index.js +15 -15
  1087. package/lib/utils/number/DecimalFormat.js +298 -328
  1088. package/lib/utils/number/DecimalFormat.js.map +1 -1
  1089. package/lib/utils/number/formatValue.js +10 -17
  1090. package/lib/utils/number/formatValue.js.map +1 -1
  1091. package/lib/utils/number/parseNumbers.js +13 -13
  1092. package/lib/utils/number/parseNumbers.js.map +1 -1
  1093. package/package.json +18 -18
  1094. package/src/models/attributes/AttributeContent.js +46 -44
  1095. package/src/models/user/UserServicesModel.js +1 -7
  1096. package/src/modularui/Authenticate.js +13 -7
  1097. package/src/modularui/ModularUIRequest.js +1 -1
@@ -459,7 +459,7 @@ class ModularUIRequest {
459
459
  const [key] = Object.keys(response);
460
460
  const { _embedded, actions } = response[key];
461
461
 
462
- const noListItems = _embedded == null;
462
+ const noListItems = _embedded === null;
463
463
  const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;
464
464
 
465
465
  const isHidden = noListItems && noActions;
@@ -1 +1 @@
1
- {"version":3,"file":"ModularUIRequest.js","names":["ModularUIRequest","href","options","HTTP_METHODS","GET","IllegalArgumentException","_response","ModularUIResponse","Href","locale","parameters","targetModel","method","_contributionsHref","contributionsHref","_locale","_href","_method","_options","childmodels","_targetModel","Model","resolveModel","response","isApplicableModel","IllegalStateException","contributionsData","isPlainObject","contributionsKey","error","handleContributionsError","key","contributions","errorMessage","properties","message","ModularUIError","path","toString","data","links","_links","Array","isArray","handleDataError","handleData","universalFetch","url","BASE","cache","params","getQuerystringForModularUI","onProgress","getSetting","processApplicationLinks","processTabLinks","processPanelLinks","resolve","contributionLinks","dataLinks","tab","contributionTabLink","dataTabLinks","dataLink","name","processLinks","components","then","newLinks","replaceApplicationLinks","tabName","tabLink","component","panel","linksPerName","dataLinksPerName","hideWhenEmptyLinks","contributionLink","layouthint","HIDE_WHEN_EMPTY","isHiddenListChecks","push","isHiddenList","all","hiddenLinks","newDataLinks","dataLinkKey","HIDE_WHEN_EMPTY_IGNORE_TASKS","_embedded","actions","noListItems","noActions","isHidden","catch","_progressEvent","progressEvent","model","prevData","JSON","parse","FormModel","newData","validationData","deepmerge","isValidationRequest","currentFormObject","hasDynamicValidations","validationHref","setParameter","getDynamicValidationData","updateValidations","fetchDataService","Error","processDataService","fetchContributionsService","processContributionsService","processAsyncLayoutHints","createModel","loadDynamicValidations","withChildModels","fetchChildModels","fetch","childModelLinks","getInitialChildModelLinks","childModelRequests","childModelLink","request","isCacheable","fetchFromCache","allSettled","childModels","resolvedChildModels","forEach","childModel","status","reason","console","value","addChildModels","withChildSections","ContentModel","childSectionLinks","length","fetchContentChildSections","contentModel","newContentModel","clone","childSectionLink","contentHrefWithEntryDate","selfhref","addParameter","TIMEVERSION_FILTER_NAME","entryDate","fetchContent","sectionModels","childSections"],"sources":["../../src/modularui/ModularUIRequest.js"],"sourcesContent":["// @flow\nimport deepmerge from \"deepmerge\";\n\nimport {\n BASE,\n HTTP_METHODS,\n TIMEVERSION_FILTER_NAME,\n} from \"../constants/Constants\";\n\nimport { HIDE_WHEN_EMPTY } from \"../constants/LayoutHints\";\n\nimport { getSetting } from \"../constants/Settings\";\n\nimport Href from \"../models/href/Href\";\n\nimport universalFetch from \"../utils/fetch/universalFetch\";\nimport resolveModel from \"../models/resolveModel\";\nimport FormModel from \"../models/form/FormModel\";\nimport ContentModel from \"../models/content/ContentModel\";\n\nimport ModularUIResponse from \"./ModularUIResponse\";\n\nimport ModularUIError from \"./ModularUIError\";\nimport { IllegalArgumentException, IllegalStateException } from \"../exceptions\";\n\nimport { isPlainObject } from \"../utils/helpers/objects\";\n\nimport type { RequestBaseOptions } from \"../utils/fetch/types\";\nimport type { ModularUIModel } from \"../models/types\";\n\n/**\n * Helper for fetching data and contributions from the Be Informed modular ui\n * and merge it into a target or resolvable model.\n */\nclass ModularUIRequest {\n _response: ModularUIResponse;\n\n _href: Href;\n _options: RequestBaseOptions;\n _targetModel: ?Class<ModularUIModel>;\n _contributionsHref: string;\n _locale: string;\n _method: $Keys<typeof HTTP_METHODS> = HTTP_METHODS.GET;\n\n _progressEvent: ProgressEventHandler;\n\n /**\n */\n constructor(href: Href | string, options: $Shape<RequestBaseOptions> = {}) {\n if (!href) {\n throw new IllegalArgumentException(\n \"You must pass a href to the resource that is requested\"\n );\n }\n\n this.options = options;\n\n this._response = new ModularUIResponse();\n\n this.href = typeof href === \"string\" ? new Href(href) : href;\n this.locale = options.locale ?? \"en\";\n\n // copy request parameters to response, to be able to use them in the models\n // self links are missing the request parameters\n this._response.parameters = this.href.parameters;\n\n if (options.targetModel) {\n this.targetModel = options.targetModel;\n }\n\n if (options.method) {\n this.method = options.method;\n } else {\n this.method = this.href.method;\n }\n }\n\n /**\n */\n get contributionsHref(): string {\n return this._contributionsHref;\n }\n\n /**\n */\n set contributionsHref(contributionsHref: string) {\n this._contributionsHref = contributionsHref;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n this._response.locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n get response(): ModularUIResponse {\n return this._response;\n }\n\n /**\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n */\n set method(method: $Keys<typeof HTTP_METHODS>) {\n this._method = method;\n }\n\n /**\n */\n get method(): $Keys<typeof HTTP_METHODS> {\n return this._method;\n }\n\n /**\n */\n get options(): RequestBaseOptions {\n return {\n ...this._options,\n locale: this.locale,\n method: this.method,\n };\n }\n\n /**\n */\n set options(options: RequestBaseOptions) {\n this._options = options;\n }\n\n /**\n */\n get withChildModels(): boolean {\n return (\n !(\"childmodels\" in this.options) || this.options.childmodels === true\n );\n }\n\n /**\n */\n set targetModel(targetModel: ?Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n createModel(): ModularUIModel {\n const Model = this.targetModel || resolveModel(this.response);\n\n // check for ResourceModel\n if (Model && Model.isApplicableModel) {\n return new Model(this.response);\n }\n\n throw new IllegalStateException(\n `No model available for data: ${JSON.stringify(this.response)}`\n );\n }\n\n /**\n */\n processContributionsService(contributionsData: Object) {\n if (!isPlainObject(contributionsData)) {\n throw new IllegalArgumentException(\n \"Missing contributions data or contributions is not JSON\"\n );\n }\n\n const [contributionsKey] = Object.keys(contributionsData);\n\n if (contributionsData.error && contributionsKey === \"error\") {\n this.handleContributionsError(contributionsData.error);\n }\n\n // The key of the data service is different from the contributions service for forms\n if (!(this.response.key in contributionsData)) {\n this.response.key = contributionsKey;\n }\n\n this.response.contributions = contributionsData[this.response.key];\n }\n\n /**\n */\n handleContributionsError(error: Object) {\n const errorMessage = error.properties?.message ?? \"Error in contribution\";\n throw new ModularUIError(errorMessage, error, this.contributionsHref);\n }\n\n /**\n */\n handleDataError(error: Object) {\n if (error.properties) {\n const errorMessage = error.properties?.message ?? \"Error in data\";\n throw new ModularUIError(errorMessage, error, this.href.path.toString());\n }\n\n throw new IllegalArgumentException(error);\n }\n\n /**\n */\n handleData(key: string, data: Object) {\n this.response.key = key;\n this.response.data = data;\n\n const links = data._links;\n\n if (links && links.contributions) {\n this.contributionsHref = links.contributions.href;\n } else if (Array.isArray(links) && links[0].contributions) {\n this.contributionsHref = links[0].contributions.href;\n } else {\n throw new IllegalArgumentException(\n `Contributions link not found for data with key ${key}`\n );\n }\n }\n\n /**\n */\n processDataService(data: Object) {\n if (!isPlainObject(data)) {\n throw new IllegalArgumentException(\"Missing data or data is not JSON\");\n }\n\n if (data.error) {\n this.handleDataError(data.error);\n } else {\n const [key] = Object.keys(data);\n this.handleData(key, data[key]);\n }\n }\n\n /**\n */\n fetchContributionsService(): Promise<any> {\n if (!this.contributionsHref) {\n throw new IllegalStateException(\"Missing a contributions href\");\n }\n\n return universalFetch({\n url: `${BASE}${this.contributionsHref}`,\n cache: true,\n locale: this.options.locale,\n });\n }\n\n /**\n */\n fetchDataService(): Promise<any> {\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: this.href.getQuerystringForModularUI(),\n locale: this.options.locale,\n onProgress: this.onProgress,\n });\n }\n\n /**\n * Check if links contain a 'hide-when-empty' layout hint and remove the link from\n * the component when it exists and no results are available\n */\n async processAsyncLayoutHints(): Promise<void> {\n if (getSetting(\"ALLOW_HIDE_WHEN_EMPTY_ON_TABS\")) {\n await this.processApplicationLinks();\n await this.processTabLinks();\n }\n await this.processPanelLinks();\n\n return Promise.resolve();\n }\n\n /**\n * hide application links<br>\n * _links on application data contains an extra level of tab links\n */\n processApplicationLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n const dataLinks = this.response.data._links;\n if (!contributionLinks || !dataLinks) {\n return Promise.resolve();\n }\n\n if (\"tab\" in contributionLinks && \"tab\" in dataLinks) {\n for (const contributionTabLink of contributionLinks.tab) {\n if (\"components\" in contributionTabLink) {\n const dataTabLinks = dataLinks.tab.find(\n (dataLink) => dataLink.name === contributionTabLink.name\n );\n\n if (dataTabLinks && \"components\" in dataTabLinks) {\n return this.processLinks(\n dataTabLinks.components,\n contributionTabLink.components\n ).then((newLinks) =>\n this.replaceApplicationLinks(contributionTabLink.name, newLinks)\n );\n }\n }\n }\n }\n\n return Promise.resolve();\n }\n\n /**\n * Replace hidden link in application link tree\n */\n replaceApplicationLinks(tabName: string, newLinks: Array<Object>): void {\n this.response.data._links.tab = this.response.data._links.tab.map(\n (tabLink) => {\n const key = tabLink.name;\n if (tabName === key) {\n tabLink.components = newLinks;\n }\n return tabLink;\n }\n );\n }\n\n /**\n */\n processTabLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"component\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links.component,\n contributionLinks.component\n ).then((newLinks) => {\n this.response.data._links.component = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n */\n processPanelLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"panel\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links,\n contributionLinks.panel\n ).then((newLinks) => {\n this.response.data._links = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n * Retrieve an object of key: link\n */\n dataLinksPerName(dataLinks: any): { [linkName: string]: any } {\n if (Array.isArray(dataLinks)) {\n const links = {};\n for (const dataLink of dataLinks) {\n links[dataLink.name] = dataLink;\n }\n return links;\n }\n return dataLinks;\n }\n\n /**\n * Check if links are empty and hide them when hide-when-empty hint exists\n */\n processLinks(\n dataLinks: any,\n contributionLinks: any\n ): Promise<Object | Array<Object>> {\n const linksPerName = this.dataLinksPerName(dataLinks);\n const hideWhenEmptyLinks = contributionLinks.filter((contributionLink) =>\n contributionLink.layouthint?.includes(HIDE_WHEN_EMPTY)\n );\n\n const isHiddenListChecks = [];\n\n for (const contributionLink of hideWhenEmptyLinks) {\n const dataLink = linksPerName[contributionLink.name];\n if (dataLink?.href) {\n isHiddenListChecks.push(\n this.isHiddenList(contributionLink.name, dataLink.href)\n );\n }\n }\n\n return Promise.all(isHiddenListChecks).then(\n (hiddenLinks: Array<string>) => {\n if (Array.isArray(dataLinks)) {\n return dataLinks.filter(\n (dataLink) => !hiddenLinks.includes(dataLink.name)\n );\n }\n\n const newDataLinks = {};\n for (const dataLinkKey in dataLinks) {\n if (!hiddenLinks.includes(dataLinkKey)) {\n newDataLinks[dataLinkKey] = dataLinks[dataLinkKey];\n }\n }\n return newDataLinks;\n }\n );\n }\n\n /**\n */\n isHiddenList(name: string, href: string): Promise<string> {\n const HIDE_WHEN_EMPTY_IGNORE_TASKS = getSetting(\n \"HIDE_WHEN_EMPTY_IGNORE_TASKS\",\n false\n );\n\n return universalFetch({\n ...this.options,\n url: `${BASE}${href}`,\n })\n .then((response: Object) => {\n if (isPlainObject(response)) {\n const [key] = Object.keys(response);\n const { _embedded, actions } = response[key];\n\n const noListItems = _embedded == null;\n const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;\n\n const isHidden = noListItems && noActions;\n if (isHidden) {\n return name;\n }\n }\n return \"\";\n })\n .catch(() => {\n return \"\";\n });\n }\n\n /**\n */\n set onProgress(progressEvent: ProgressEventHandler) {\n this._progressEvent = progressEvent;\n }\n\n /**\n */\n get onProgress(): ProgressEventHandler {\n return this._progressEvent || null;\n }\n\n /**\n * Combine previous send request data with new validation data to create a complete request object\n * The received model is new FormModel containing ONLY the current question, not the previously entered questions\n * to create a complete request we append the originally send form objects\n */\n getDynamicValidationData(model: ModularUIModel): string {\n const prevData =\n typeof this.options.data === \"string\"\n ? JSON.parse(this.options.data)\n : this.options.data;\n\n if (model instanceof FormModel) {\n const newData = JSON.parse(model.validationData);\n // $FlowFixMe incompatible-call\n return JSON.stringify(deepmerge(prevData || {}, newData));\n }\n\n return JSON.stringify(prevData) ?? \"{}\";\n }\n\n /**\n * First load of dynamic values when a form is loaded\n */\n loadDynamicValidations(model: ModularUIModel): Promise<ModularUIModel> {\n if (\n !this.options.isValidationRequest &&\n getSetting(\"USE_INSTANT_SERVER_VALIDATION\") &&\n model instanceof FormModel &&\n model.currentFormObject &&\n model.currentFormObject.hasDynamicValidations\n ) {\n const validationHref = this.href.setParameter(\"commit\", \"false\");\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: validationHref.getQuerystringForModularUI(),\n childmodels: false,\n data: this.getDynamicValidationData(model),\n }).then((data) => {\n if (data == null || typeof data !== \"object\") {\n return model;\n }\n\n const [key] = Object.keys(data);\n return model.updateValidations(data[key]);\n });\n }\n\n return Promise.resolve(model);\n }\n\n /**\n */\n fetch(): Promise<ModularUIModel> {\n return this.fetchDataService()\n .then((data) => {\n if (data == null) {\n throw new Error(`No data received for ${this.href.toString()}`);\n }\n\n this.processDataService(data);\n return this.fetchContributionsService();\n })\n .then((contributionsData) => {\n if (contributionsData == null) {\n throw new Error(\n `No contributions data received for ${this.contributionsHref}`\n );\n }\n\n this.processContributionsService(contributionsData);\n return this.processAsyncLayoutHints();\n })\n .then(() => Promise.resolve(this.createModel()))\n .then((model) => this.loadDynamicValidations(model))\n .then((model) => {\n if (this.withChildModels) {\n return this.fetchChildModels(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n */\n fetchFromCache(): Promise<ModularUIModel> {\n this.options = {\n ...this.options,\n cache: true,\n };\n\n return this.fetch();\n }\n\n /**\n */\n fetchChildModels(model: ModularUIModel): Promise<ModularUIModel> {\n const childModelLinks = model.getInitialChildModelLinks();\n\n const childModelRequests = childModelLinks.map((childModelLink) => {\n const request = new ModularUIRequest(childModelLink.href, {\n locale: this.locale,\n });\n\n if (childModelLink.targetModel) {\n request.targetModel = childModelLink.targetModel;\n }\n\n if (childModelLink.isCacheable) {\n return request.fetchFromCache();\n }\n\n return request.fetch();\n });\n\n return Promise.allSettled(childModelRequests).then((childModels) => {\n const resolvedChildModels = [];\n\n childModels.forEach((childModel) => {\n if (childModel.status === \"rejected\") {\n const { reason } = childModel;\n if (reason.name !== \"Error.ChangePasswordRequired\") {\n console.error(\n \"Unexpected error when retrieving child model:\",\n reason\n );\n }\n } else {\n resolvedChildModels.push(childModel.value);\n }\n });\n\n model.addChildModels(resolvedChildModels);\n\n return model;\n });\n }\n\n /**\n */\n fetchContent(withChildSections: boolean): Promise<mixed> {\n return this.fetchFromCache().then((model) => {\n if (\n withChildSections &&\n model instanceof ContentModel &&\n model.childSectionLinks.length > 0\n ) {\n return this.fetchContentChildSections(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n * Recursively return child sections defined on the content model\n */\n fetchContentChildSections(contentModel: ContentModel): Promise<mixed> {\n const newContentModel = contentModel.clone();\n\n return Promise.all(\n contentModel.childSectionLinks.map((childSectionLink) => {\n const contentHrefWithEntryDate = childSectionLink.selfhref.addParameter(\n TIMEVERSION_FILTER_NAME,\n contentModel.entryDate\n );\n\n const request = new ModularUIRequest(contentHrefWithEntryDate, {\n locale: this.locale,\n });\n\n return request.fetchContent(true);\n })\n ).then((sectionModels) => {\n newContentModel.childSections = sectionModels;\n\n return newContentModel;\n });\n }\n}\n\nexport default ModularUIRequest;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAMC,eAAe,GAAGD,YAAY,CAACE,KAAb,EAAxB;MAEA,OAAO,iBAAQ/D,GAAR,CACL,8BAAA6D,YAAY,CAACH,iBAAb,kBAAmC,UAACM,gBAAD,EAAsB;QACvD,IAAMC,wBAAwB,GAAGD,gBAAgB,CAACE,QAAjB,CAA0BC,YAA1B,CAC/BC,kCAD+B,EAE/BP,YAAY,CAACQ,SAFkB,CAAjC;QAKA,IAAM1B,OAAO,GAAG,IAAI9H,gBAAJ,CAAqBoJ,wBAArB,EAA+C;UAC7D3I,MAAM,EAAE,MAAI,CAACA;QADgD,CAA/C,CAAhB;QAIA,OAAOqH,OAAO,CAAC2B,YAAR,CAAqB,IAArB,CAAP;MACD,CAXD,CADK,EAaLtF,IAbK,CAaA,UAACuF,aAAD,EAAmB;QACxBT,eAAe,CAACU,aAAhB,GAAgCD,aAAhC;QAEA,OAAOT,eAAP;MACD,CAjBM,CAAP;IAkBD;;;;;eAGYjJ,gB"}
1
+ {"version":3,"file":"ModularUIRequest.js","names":["ModularUIRequest","constructor","href","options","HTTP_METHODS","GET","IllegalArgumentException","_response","ModularUIResponse","Href","locale","parameters","targetModel","method","contributionsHref","_contributionsHref","_locale","response","_href","_method","_options","withChildModels","childmodels","_targetModel","createModel","Model","resolveModel","isApplicableModel","IllegalStateException","processContributionsService","contributionsData","isPlainObject","contributionsKey","error","handleContributionsError","key","contributions","errorMessage","properties","message","ModularUIError","handleDataError","path","toString","handleData","data","links","_links","Array","isArray","processDataService","fetchContributionsService","universalFetch","url","BASE","cache","fetchDataService","params","getQuerystringForModularUI","onProgress","processAsyncLayoutHints","getSetting","processApplicationLinks","processTabLinks","processPanelLinks","resolve","contributionLinks","dataLinks","contributionTabLink","tab","dataTabLinks","dataLink","name","processLinks","components","then","newLinks","replaceApplicationLinks","tabName","tabLink","component","panel","dataLinksPerName","linksPerName","hideWhenEmptyLinks","contributionLink","layouthint","HIDE_WHEN_EMPTY","isHiddenListChecks","push","isHiddenList","all","hiddenLinks","newDataLinks","dataLinkKey","HIDE_WHEN_EMPTY_IGNORE_TASKS","_embedded","actions","noListItems","noActions","isHidden","catch","progressEvent","_progressEvent","getDynamicValidationData","model","prevData","JSON","parse","FormModel","newData","validationData","deepmerge","loadDynamicValidations","isValidationRequest","currentFormObject","hasDynamicValidations","validationHref","setParameter","updateValidations","fetch","Error","fetchChildModels","fetchFromCache","childModelLinks","getInitialChildModelLinks","childModelRequests","childModelLink","request","isCacheable","allSettled","childModels","resolvedChildModels","forEach","childModel","status","reason","console","value","addChildModels","fetchContent","withChildSections","ContentModel","childSectionLinks","length","fetchContentChildSections","contentModel","newContentModel","clone","childSectionLink","contentHrefWithEntryDate","selfhref","addParameter","TIMEVERSION_FILTER_NAME","entryDate","sectionModels","childSections"],"sources":["../../src/modularui/ModularUIRequest.js"],"sourcesContent":["// @flow\nimport deepmerge from \"deepmerge\";\n\nimport {\n BASE,\n HTTP_METHODS,\n TIMEVERSION_FILTER_NAME,\n} from \"../constants/Constants\";\n\nimport { HIDE_WHEN_EMPTY } from \"../constants/LayoutHints\";\n\nimport { getSetting } from \"../constants/Settings\";\n\nimport Href from \"../models/href/Href\";\n\nimport universalFetch from \"../utils/fetch/universalFetch\";\nimport resolveModel from \"../models/resolveModel\";\nimport FormModel from \"../models/form/FormModel\";\nimport ContentModel from \"../models/content/ContentModel\";\n\nimport ModularUIResponse from \"./ModularUIResponse\";\n\nimport ModularUIError from \"./ModularUIError\";\nimport { IllegalArgumentException, IllegalStateException } from \"../exceptions\";\n\nimport { isPlainObject } from \"../utils/helpers/objects\";\n\nimport type { RequestBaseOptions } from \"../utils/fetch/types\";\nimport type { ModularUIModel } from \"../models/types\";\n\n/**\n * Helper for fetching data and contributions from the Be Informed modular ui\n * and merge it into a target or resolvable model.\n */\nclass ModularUIRequest {\n _response: ModularUIResponse;\n\n _href: Href;\n _options: RequestBaseOptions;\n _targetModel: ?Class<ModularUIModel>;\n _contributionsHref: string;\n _locale: string;\n _method: $Keys<typeof HTTP_METHODS> = HTTP_METHODS.GET;\n\n _progressEvent: ProgressEventHandler;\n\n /**\n */\n constructor(href: Href | string, options: $Shape<RequestBaseOptions> = {}) {\n if (!href) {\n throw new IllegalArgumentException(\n \"You must pass a href to the resource that is requested\"\n );\n }\n\n this.options = options;\n\n this._response = new ModularUIResponse();\n\n this.href = typeof href === \"string\" ? new Href(href) : href;\n this.locale = options.locale ?? \"en\";\n\n // copy request parameters to response, to be able to use them in the models\n // self links are missing the request parameters\n this._response.parameters = this.href.parameters;\n\n if (options.targetModel) {\n this.targetModel = options.targetModel;\n }\n\n if (options.method) {\n this.method = options.method;\n } else {\n this.method = this.href.method;\n }\n }\n\n /**\n */\n get contributionsHref(): string {\n return this._contributionsHref;\n }\n\n /**\n */\n set contributionsHref(contributionsHref: string) {\n this._contributionsHref = contributionsHref;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n this._response.locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n get response(): ModularUIResponse {\n return this._response;\n }\n\n /**\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n */\n set method(method: $Keys<typeof HTTP_METHODS>) {\n this._method = method;\n }\n\n /**\n */\n get method(): $Keys<typeof HTTP_METHODS> {\n return this._method;\n }\n\n /**\n */\n get options(): RequestBaseOptions {\n return {\n ...this._options,\n locale: this.locale,\n method: this.method,\n };\n }\n\n /**\n */\n set options(options: RequestBaseOptions) {\n this._options = options;\n }\n\n /**\n */\n get withChildModels(): boolean {\n return (\n !(\"childmodels\" in this.options) || this.options.childmodels === true\n );\n }\n\n /**\n */\n set targetModel(targetModel: ?Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n createModel(): ModularUIModel {\n const Model = this.targetModel || resolveModel(this.response);\n\n // check for ResourceModel\n if (Model && Model.isApplicableModel) {\n return new Model(this.response);\n }\n\n throw new IllegalStateException(\n `No model available for data: ${JSON.stringify(this.response)}`\n );\n }\n\n /**\n */\n processContributionsService(contributionsData: Object) {\n if (!isPlainObject(contributionsData)) {\n throw new IllegalArgumentException(\n \"Missing contributions data or contributions is not JSON\"\n );\n }\n\n const [contributionsKey] = Object.keys(contributionsData);\n\n if (contributionsData.error && contributionsKey === \"error\") {\n this.handleContributionsError(contributionsData.error);\n }\n\n // The key of the data service is different from the contributions service for forms\n if (!(this.response.key in contributionsData)) {\n this.response.key = contributionsKey;\n }\n\n this.response.contributions = contributionsData[this.response.key];\n }\n\n /**\n */\n handleContributionsError(error: Object) {\n const errorMessage = error.properties?.message ?? \"Error in contribution\";\n throw new ModularUIError(errorMessage, error, this.contributionsHref);\n }\n\n /**\n */\n handleDataError(error: Object) {\n if (error.properties) {\n const errorMessage = error.properties?.message ?? \"Error in data\";\n throw new ModularUIError(errorMessage, error, this.href.path.toString());\n }\n\n throw new IllegalArgumentException(error);\n }\n\n /**\n */\n handleData(key: string, data: Object) {\n this.response.key = key;\n this.response.data = data;\n\n const links = data._links;\n\n if (links && links.contributions) {\n this.contributionsHref = links.contributions.href;\n } else if (Array.isArray(links) && links[0].contributions) {\n this.contributionsHref = links[0].contributions.href;\n } else {\n throw new IllegalArgumentException(\n `Contributions link not found for data with key ${key}`\n );\n }\n }\n\n /**\n */\n processDataService(data: Object) {\n if (!isPlainObject(data)) {\n throw new IllegalArgumentException(\"Missing data or data is not JSON\");\n }\n\n if (data.error) {\n this.handleDataError(data.error);\n } else {\n const [key] = Object.keys(data);\n this.handleData(key, data[key]);\n }\n }\n\n /**\n */\n fetchContributionsService(): Promise<any> {\n if (!this.contributionsHref) {\n throw new IllegalStateException(\"Missing a contributions href\");\n }\n\n return universalFetch({\n url: `${BASE}${this.contributionsHref}`,\n cache: true,\n locale: this.options.locale,\n });\n }\n\n /**\n */\n fetchDataService(): Promise<any> {\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: this.href.getQuerystringForModularUI(),\n locale: this.options.locale,\n onProgress: this.onProgress,\n });\n }\n\n /**\n * Check if links contain a 'hide-when-empty' layout hint and remove the link from\n * the component when it exists and no results are available\n */\n async processAsyncLayoutHints(): Promise<void> {\n if (getSetting(\"ALLOW_HIDE_WHEN_EMPTY_ON_TABS\")) {\n await this.processApplicationLinks();\n await this.processTabLinks();\n }\n await this.processPanelLinks();\n\n return Promise.resolve();\n }\n\n /**\n * hide application links<br>\n * _links on application data contains an extra level of tab links\n */\n processApplicationLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n const dataLinks = this.response.data._links;\n if (!contributionLinks || !dataLinks) {\n return Promise.resolve();\n }\n\n if (\"tab\" in contributionLinks && \"tab\" in dataLinks) {\n for (const contributionTabLink of contributionLinks.tab) {\n if (\"components\" in contributionTabLink) {\n const dataTabLinks = dataLinks.tab.find(\n (dataLink) => dataLink.name === contributionTabLink.name\n );\n\n if (dataTabLinks && \"components\" in dataTabLinks) {\n return this.processLinks(\n dataTabLinks.components,\n contributionTabLink.components\n ).then((newLinks) =>\n this.replaceApplicationLinks(contributionTabLink.name, newLinks)\n );\n }\n }\n }\n }\n\n return Promise.resolve();\n }\n\n /**\n * Replace hidden link in application link tree\n */\n replaceApplicationLinks(tabName: string, newLinks: Array<Object>): void {\n this.response.data._links.tab = this.response.data._links.tab.map(\n (tabLink) => {\n const key = tabLink.name;\n if (tabName === key) {\n tabLink.components = newLinks;\n }\n return tabLink;\n }\n );\n }\n\n /**\n */\n processTabLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"component\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links.component,\n contributionLinks.component\n ).then((newLinks) => {\n this.response.data._links.component = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n */\n processPanelLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"panel\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links,\n contributionLinks.panel\n ).then((newLinks) => {\n this.response.data._links = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n * Retrieve an object of key: link\n */\n dataLinksPerName(dataLinks: any): { [linkName: string]: any } {\n if (Array.isArray(dataLinks)) {\n const links = {};\n for (const dataLink of dataLinks) {\n links[dataLink.name] = dataLink;\n }\n return links;\n }\n return dataLinks;\n }\n\n /**\n * Check if links are empty and hide them when hide-when-empty hint exists\n */\n processLinks(\n dataLinks: any,\n contributionLinks: any\n ): Promise<Object | Array<Object>> {\n const linksPerName = this.dataLinksPerName(dataLinks);\n const hideWhenEmptyLinks = contributionLinks.filter((contributionLink) =>\n contributionLink.layouthint?.includes(HIDE_WHEN_EMPTY)\n );\n\n const isHiddenListChecks = [];\n\n for (const contributionLink of hideWhenEmptyLinks) {\n const dataLink = linksPerName[contributionLink.name];\n if (dataLink?.href) {\n isHiddenListChecks.push(\n this.isHiddenList(contributionLink.name, dataLink.href)\n );\n }\n }\n\n return Promise.all(isHiddenListChecks).then(\n (hiddenLinks: Array<string>) => {\n if (Array.isArray(dataLinks)) {\n return dataLinks.filter(\n (dataLink) => !hiddenLinks.includes(dataLink.name)\n );\n }\n\n const newDataLinks = {};\n for (const dataLinkKey in dataLinks) {\n if (!hiddenLinks.includes(dataLinkKey)) {\n newDataLinks[dataLinkKey] = dataLinks[dataLinkKey];\n }\n }\n return newDataLinks;\n }\n );\n }\n\n /**\n */\n isHiddenList(name: string, href: string): Promise<string> {\n const HIDE_WHEN_EMPTY_IGNORE_TASKS = getSetting(\n \"HIDE_WHEN_EMPTY_IGNORE_TASKS\",\n false\n );\n\n return universalFetch({\n ...this.options,\n url: `${BASE}${href}`,\n })\n .then((response: Object) => {\n if (isPlainObject(response)) {\n const [key] = Object.keys(response);\n const { _embedded, actions } = response[key];\n\n const noListItems = _embedded === null;\n const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;\n\n const isHidden = noListItems && noActions;\n if (isHidden) {\n return name;\n }\n }\n return \"\";\n })\n .catch(() => {\n return \"\";\n });\n }\n\n /**\n */\n set onProgress(progressEvent: ProgressEventHandler) {\n this._progressEvent = progressEvent;\n }\n\n /**\n */\n get onProgress(): ProgressEventHandler {\n return this._progressEvent || null;\n }\n\n /**\n * Combine previous send request data with new validation data to create a complete request object\n * The received model is new FormModel containing ONLY the current question, not the previously entered questions\n * to create a complete request we append the originally send form objects\n */\n getDynamicValidationData(model: ModularUIModel): string {\n const prevData =\n typeof this.options.data === \"string\"\n ? JSON.parse(this.options.data)\n : this.options.data;\n\n if (model instanceof FormModel) {\n const newData = JSON.parse(model.validationData);\n // $FlowFixMe incompatible-call\n return JSON.stringify(deepmerge(prevData || {}, newData));\n }\n\n return JSON.stringify(prevData) ?? \"{}\";\n }\n\n /**\n * First load of dynamic values when a form is loaded\n */\n loadDynamicValidations(model: ModularUIModel): Promise<ModularUIModel> {\n if (\n !this.options.isValidationRequest &&\n getSetting(\"USE_INSTANT_SERVER_VALIDATION\") &&\n model instanceof FormModel &&\n model.currentFormObject &&\n model.currentFormObject.hasDynamicValidations\n ) {\n const validationHref = this.href.setParameter(\"commit\", \"false\");\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: validationHref.getQuerystringForModularUI(),\n childmodels: false,\n data: this.getDynamicValidationData(model),\n }).then((data) => {\n if (data == null || typeof data !== \"object\") {\n return model;\n }\n\n const [key] = Object.keys(data);\n return model.updateValidations(data[key]);\n });\n }\n\n return Promise.resolve(model);\n }\n\n /**\n */\n fetch(): Promise<ModularUIModel> {\n return this.fetchDataService()\n .then((data) => {\n if (data == null) {\n throw new Error(`No data received for ${this.href.toString()}`);\n }\n\n this.processDataService(data);\n return this.fetchContributionsService();\n })\n .then((contributionsData) => {\n if (contributionsData == null) {\n throw new Error(\n `No contributions data received for ${this.contributionsHref}`\n );\n }\n\n this.processContributionsService(contributionsData);\n return this.processAsyncLayoutHints();\n })\n .then(() => Promise.resolve(this.createModel()))\n .then((model) => this.loadDynamicValidations(model))\n .then((model) => {\n if (this.withChildModels) {\n return this.fetchChildModels(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n */\n fetchFromCache(): Promise<ModularUIModel> {\n this.options = {\n ...this.options,\n cache: true,\n };\n\n return this.fetch();\n }\n\n /**\n */\n fetchChildModels(model: ModularUIModel): Promise<ModularUIModel> {\n const childModelLinks = model.getInitialChildModelLinks();\n\n const childModelRequests = childModelLinks.map((childModelLink) => {\n const request = new ModularUIRequest(childModelLink.href, {\n locale: this.locale,\n });\n\n if (childModelLink.targetModel) {\n request.targetModel = childModelLink.targetModel;\n }\n\n if (childModelLink.isCacheable) {\n return request.fetchFromCache();\n }\n\n return request.fetch();\n });\n\n return Promise.allSettled(childModelRequests).then((childModels) => {\n const resolvedChildModels = [];\n\n childModels.forEach((childModel) => {\n if (childModel.status === \"rejected\") {\n const { reason } = childModel;\n if (reason.name !== \"Error.ChangePasswordRequired\") {\n console.error(\n \"Unexpected error when retrieving child model:\",\n reason\n );\n }\n } else {\n resolvedChildModels.push(childModel.value);\n }\n });\n\n model.addChildModels(resolvedChildModels);\n\n return model;\n });\n }\n\n /**\n */\n fetchContent(withChildSections: boolean): Promise<mixed> {\n return this.fetchFromCache().then((model) => {\n if (\n withChildSections &&\n model instanceof ContentModel &&\n model.childSectionLinks.length > 0\n ) {\n return this.fetchContentChildSections(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n * Recursively return child sections defined on the content model\n */\n fetchContentChildSections(contentModel: ContentModel): Promise<mixed> {\n const newContentModel = contentModel.clone();\n\n return Promise.all(\n contentModel.childSectionLinks.map((childSectionLink) => {\n const contentHrefWithEntryDate = childSectionLink.selfhref.addParameter(\n TIMEVERSION_FILTER_NAME,\n contentModel.entryDate\n );\n\n const request = new ModularUIRequest(contentHrefWithEntryDate, {\n locale: this.locale,\n });\n\n return request.fetchContent(true);\n })\n ).then((sectionModels) => {\n newContentModel.childSections = sectionModels;\n\n return newContentModel;\n });\n }\n}\n\nexport default ModularUIRequest;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA;;AAMA;;AAEA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AAKA;AACA;AACA;AACA;AACA,MAAMA,gBAAN,CAAuB;EAYrB;AACF;EACEC,WAAW,CAACC,IAAD,EAAgE;IAAA;;IAAA,IAA1CC,OAA0C,uEAAJ,EAAI;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA,+CANrCC,uBAAA,CAAaC,GAMwB;IAAA;;IACzE,IAAI,CAACH,IAAL,EAAW;MACT,MAAM,IAAII,oCAAJ,CACJ,wDADI,CAAN;IAGD;;IAED,KAAKH,OAAL,GAAeA,OAAf;IAEA,KAAKI,SAAL,GAAiB,IAAIC,0BAAJ,EAAjB;IAEA,KAAKN,IAAL,GAAY,OAAOA,IAAP,KAAgB,QAAhB,GAA2B,IAAIO,aAAJ,CAASP,IAAT,CAA3B,GAA4CA,IAAxD;IACA,KAAKQ,MAAL,sBAAcP,OAAO,CAACO,MAAtB,6DAAgC,IAAhC,CAZyE,CAczE;IACA;;IACA,KAAKH,SAAL,CAAeI,UAAf,GAA4B,KAAKT,IAAL,CAAUS,UAAtC;;IAEA,IAAIR,OAAO,CAACS,WAAZ,EAAyB;MACvB,KAAKA,WAAL,GAAmBT,OAAO,CAACS,WAA3B;IACD;;IAED,IAAIT,OAAO,CAACU,MAAZ,EAAoB;MAClB,KAAKA,MAAL,GAAcV,OAAO,CAACU,MAAtB;IACD,CAFD,MAEO;MACL,KAAKA,MAAL,GAAc,KAAKX,IAAL,CAAUW,MAAxB;IACD;EACF;EAED;AACF;;;EACuB,IAAjBC,iBAAiB,GAAW;IAC9B,OAAO,KAAKC,kBAAZ;EACD;EAED;AACF;;;EACuB,IAAjBD,iBAAiB,CAACA,iBAAD,EAA4B;IAC/C,KAAKC,kBAAL,GAA0B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AM1B,OAAO,GAAG,IAAIhI,gBAAJ,CAAqBsJ,wBAArB,EAA+C;QAC7D5I,MAAM,EAAE,KAAKA;MADgD,CAA/C,CAAhB;MAIA,OAAOsH,OAAO,CAACY,YAAR,CAAqB,IAArB,CAAP;IACD,CAXD,CADK,EAaLjE,IAbK,CAaCgF,aAAD,IAAmB;MACxBR,eAAe,CAACS,aAAhB,GAAgCD,aAAhC;MAEA,OAAOR,eAAP;IACD,CAjBM,CAAP;EAkBD;;AAznBoB;;eA4nBRnJ,gB"}
@@ -9,21 +9,14 @@ exports.default = void 0;
9
9
 
10
10
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
11
11
 
12
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
13
-
14
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
15
-
16
- var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
17
-
18
12
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
19
13
 
20
14
  var _objects = require("../utils/helpers/objects");
21
15
 
22
16
  /**
23
17
  */
24
- var ModularUIResponse = /*#__PURE__*/function () {
25
- function ModularUIResponse() {
26
- (0, _classCallCheck2.default)(this, ModularUIResponse);
18
+ class ModularUIResponse {
19
+ constructor() {
27
20
  (0, _defineProperty2.default)(this, "_key", "unknown");
28
21
  (0, _defineProperty2.default)(this, "_data", void 0);
29
22
  (0, _defineProperty2.default)(this, "_contributions", void 0);
@@ -31,118 +24,107 @@ var ModularUIResponse = /*#__PURE__*/function () {
31
24
  (0, _defineProperty2.default)(this, "_parameters", []);
32
25
  }
33
26
 
34
- (0, _createClass2.default)(ModularUIResponse, [{
35
- key: "locale",
36
- get:
37
- /**
38
- */
39
- function get() {
40
- return this._locale;
41
- }
42
- /**
43
- */
44
- ,
45
- set:
46
- /**
47
- */
48
- function set(locale) {
49
- this._locale = locale;
50
- }
51
- }, {
52
- key: "key",
53
- get:
54
- /**
55
- */
56
- function get() {
57
- return this._key;
58
- }
59
- /**
60
- */
61
- ,
62
- set: function set(key) {
63
- this._key = key;
64
- }
65
- }, {
66
- key: "data",
67
- get:
68
- /**
69
- */
70
- function get() {
71
- return this._data;
72
- }
73
- /**
74
- */
75
- ,
76
- set: function set(data) {
77
- this._data = data;
78
- }
79
- }, {
80
- key: "contributions",
81
- get:
82
- /**
83
- */
84
- function get() {
85
- return this._contributions;
86
- }
87
- /**
88
- */
89
- ,
90
- set: function set(contributions) {
91
- this._contributions = contributions;
92
- }
93
- }, {
94
- key: "parameters",
95
- get:
96
- /**
97
- */
98
- function get() {
99
- return this._parameters;
100
- }
101
- /**
102
- */
103
- ,
104
- set: function set(parameters) {
105
- this._parameters = parameters;
106
- }
107
- }], [{
108
- key: "create",
109
- value:
110
- /**
111
- */
112
- function create(input) {
113
- var response = new ModularUIResponse();
114
-
115
- if ((0, _objects.has)(input, "data") && (0, _objects.has)(input, "contributions")) {
116
- var _input$key, _input$data, _input$contributions;
117
-
118
- var _Object$keys = (0, _keys.default)(input.data),
119
- _Object$keys2 = (0, _slicedToArray2.default)(_Object$keys, 1),
120
- dataKey = _Object$keys2[0];
121
-
122
- var _Object$keys4 = (0, _keys.default)(input.contributions),
123
- _Object$keys5 = (0, _slicedToArray2.default)(_Object$keys4, 1),
124
- contributionsKey = _Object$keys5[0];
125
-
126
- response.key = (_input$key = input.key) !== null && _input$key !== void 0 ? _input$key : contributionsKey;
127
- response.data = (_input$data = input.data) === null || _input$data === void 0 ? void 0 : _input$data[dataKey];
128
- response.contributions = (_input$contributions = input.contributions) === null || _input$contributions === void 0 ? void 0 : _input$contributions[contributionsKey];
129
- }
130
-
131
- return response;
132
- }
133
- }, {
134
- key: "rehydrate",
135
- value: function rehydrate(data) {
136
- var modelData = new ModularUIResponse();
137
- modelData.locale = data.locale;
138
- modelData.key = data.key;
139
- modelData.data = data.data;
140
- modelData.contributions = data.contributions;
141
- return modelData;
27
+ /**
28
+ */
29
+ static create(input) {
30
+ const response = new ModularUIResponse();
31
+
32
+ if ((0, _objects.has)(input, "data") && (0, _objects.has)(input, "contributions")) {
33
+ var _input$key, _input$data, _input$contributions;
34
+
35
+ const [dataKey] = (0, _keys.default)(input.data);
36
+ const [contributionsKey] = (0, _keys.default)(input.contributions);
37
+ response.key = (_input$key = input.key) !== null && _input$key !== void 0 ? _input$key : contributionsKey;
38
+ response.data = (_input$data = input.data) === null || _input$data === void 0 ? void 0 : _input$data[dataKey];
39
+ response.contributions = (_input$contributions = input.contributions) === null || _input$contributions === void 0 ? void 0 : _input$contributions[contributionsKey];
142
40
  }
143
- }]);
144
- return ModularUIResponse;
145
- }();
41
+
42
+ return response;
43
+ }
44
+ /**
45
+ */
46
+
47
+
48
+ set locale(locale) {
49
+ this._locale = locale;
50
+ }
51
+ /**
52
+ */
53
+
54
+
55
+ get locale() {
56
+ return this._locale;
57
+ }
58
+ /**
59
+ */
60
+
61
+
62
+ set key(key) {
63
+ this._key = key;
64
+ }
65
+ /**
66
+ */
67
+
68
+
69
+ get key() {
70
+ return this._key;
71
+ }
72
+ /**
73
+ */
74
+
75
+
76
+ set data(data) {
77
+ this._data = data;
78
+ }
79
+ /**
80
+ */
81
+
82
+
83
+ get data() {
84
+ return this._data;
85
+ }
86
+ /**
87
+ */
88
+
89
+
90
+ set contributions(contributions) {
91
+ this._contributions = contributions;
92
+ }
93
+ /**
94
+ */
95
+
96
+
97
+ get contributions() {
98
+ return this._contributions;
99
+ }
100
+ /**
101
+ */
102
+
103
+
104
+ set parameters(parameters) {
105
+ this._parameters = parameters;
106
+ }
107
+ /**
108
+ */
109
+
110
+
111
+ get parameters() {
112
+ return this._parameters;
113
+ }
114
+ /**
115
+ */
116
+
117
+
118
+ static rehydrate(data) {
119
+ const modelData = new ModularUIResponse();
120
+ modelData.locale = data.locale;
121
+ modelData.key = data.key;
122
+ modelData.data = data.data;
123
+ modelData.contributions = data.contributions;
124
+ return modelData;
125
+ }
126
+
127
+ }
146
128
 
147
129
  var _default = ModularUIResponse;
148
130
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ModularUIResponse.js","names":["ModularUIResponse","_locale","locale","_key","key","_data","data","_contributions","contributions","_parameters","parameters","input","response","has","dataKey","contributionsKey","modelData"],"sources":["../../src/modularui/ModularUIResponse.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport type Parameter from \"../models/parameter/Parameter\";\n\n/**\n */\nclass ModularUIResponse {\n _key: string = \"unknown\";\n _data: Object;\n _contributions: Object;\n _locale: string = \"en\";\n _parameters: Array<Parameter> = [];\n\n /**\n */\n static create(input: {\n key: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const response = new ModularUIResponse();\n\n if (has(input, \"data\") && has(input, \"contributions\")) {\n const [dataKey] = Object.keys(input.data);\n const [contributionsKey] = Object.keys(input.contributions);\n\n response.key = input.key ?? contributionsKey;\n response.data = input.data?.[dataKey];\n response.contributions = input.contributions?.[contributionsKey];\n }\n\n return response;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n set key(key: string) {\n this._key = key;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n set data(data: Object) {\n this._data = data;\n }\n\n /**\n */\n get data(): Object {\n return this._data;\n }\n\n /**\n */\n set contributions(contributions: Object) {\n this._contributions = contributions;\n }\n\n /**\n */\n get contributions(): Object {\n return this._contributions;\n }\n\n /**\n */\n set parameters(parameters: Array<Parameter>) {\n this._parameters = parameters;\n }\n\n /**\n */\n get parameters(): Array<Parameter> {\n return this._parameters;\n }\n\n /**\n */\n static rehydrate(data: {\n key: string,\n locale: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const modelData = new ModularUIResponse();\n\n modelData.locale = data.locale;\n modelData.key = data.key;\n modelData.data = data.data;\n modelData.contributions = data.contribut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AArB,mDAA4BW,gBAA5B;QACAH,QAAQ,CAACN,IAAT,kBAAgBK,KAAK,CAACL,IAAtB,gDAAgB,YAAaQ,OAAb,CAAhB;QACAF,QAAQ,CAACJ,aAAT,2BAAyBG,KAAK,CAACH,aAA/B,yDAAyB,qBAAsBO,gBAAtB,CAAzB;MACD;;MAED,OAAOH,QAAP;IACD;;;WAgED,mBAAiBN,IAAjB,EAKsB;MACpB,IAAMU,SAAS,GAAG,IAAIhB,iBAAJ,EAAlB;MAEAgB,SAAS,CAACd,MAAV,GAAmBI,IAAI,CAACJ,MAAxB;MACAc,SAAS,CAACZ,GAAV,GAAgBE,IAAI,CAACF,GAArB;MACAY,SAAS,CAACV,IAAV,GAAiBA,IAAI,CAACA,IAAtB;MACAU,SAAS,CAACR,aAAV,GAA0BF,IAAI,CAACE,aAA/B;MAEA,OAAOQ,SAAP;IACD;;;;;eAGYhB,iB"}
1
+ {"version":3,"file":"ModularUIResponse.js","names":["ModularUIResponse","create","input","response","has","dataKey","data","contributionsKey","contributions","key","locale","_locale","_key","_data","_contributions","parameters","_parameters","rehydrate","modelData"],"sources":["../../src/modularui/ModularUIResponse.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport type Parameter from \"../models/parameter/Parameter\";\n\n/**\n */\nclass ModularUIResponse {\n _key: string = \"unknown\";\n _data: Object;\n _contributions: Object;\n _locale: string = \"en\";\n _parameters: Array<Parameter> = [];\n\n /**\n */\n static create(input: {\n key: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const response = new ModularUIResponse();\n\n if (has(input, \"data\") && has(input, \"contributions\")) {\n const [dataKey] = Object.keys(input.data);\n const [contributionsKey] = Object.keys(input.contributions);\n\n response.key = input.key ?? contributionsKey;\n response.data = input.data?.[dataKey];\n response.contributions = input.contributions?.[contributionsKey];\n }\n\n return response;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n set key(key: string) {\n this._key = key;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n set data(data: Object) {\n this._data = data;\n }\n\n /**\n */\n get data(): Object {\n return this._data;\n }\n\n /**\n */\n set contributions(contributions: Object) {\n this._contributions = contributions;\n }\n\n /**\n */\n get contributions(): Object {\n return this._contributions;\n }\n\n /**\n */\n set parameters(parameters: Array<Parameter>) {\n this._parameters = parameters;\n }\n\n /**\n */\n get parameters(): Array<Parameter> {\n return this._parameters;\n }\n\n /**\n */\n static rehydrate(data: {\n key: string,\n locale: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const modelData = new ModularUIResponse();\n\n modelData.locale = data.locale;\n modelData.key = data.key;\n modelData.data = data.data;\n modelData.contributions = data.contributions;\n\n return modelData;\n }\n}\n\nexport default ModularUIResponse;\n"],"mappings":";;;;;;;;;;;;;AACA;;AAIA;AACA;AACA,MAAMA,iBAAN,CAAwB;EAAA;IAAA,4CACP,SADO;IAAA;IAAA;IAAA,+CAIJ,IAJI;IAAA,mDAKU,EALV;EAAA;;EAOtB;AACF;EACe,OAANC,MAAM,CAACC,KAAD,EAIS;IACpB,MAAMC,QAAQ,GAAG,IAAIH,iBAAJ,EAAjB;;IAEA,IAAI,IAAAI,YAAA,EAAIF,KAAJ,EAAW,MAAX,KAAsB,IAAAE,YAAA,EAAIF,KAAJ,EAAW,eAAX,CAA1B,EAAuD;MAAA;;MACrD,MAAM,CAACG,OAAD,IAAY,mBAAYH,KAAK,CAACI,IAAlB,CAAlB;MACA,MAAM,CAACC,gBAAD,IAAqB,mBAAYL,KAAK,CAACM,aAAlB,CAA3B;MAEAL,QAAQ,CAACM,GAAT,iBAAeP,KAAK,CAACO,GAArB,mDAA4BF,gBAA5B;MACAJ,QAAQ,CAACG,IAAT,kBAAgBJ,KAAK,CAACI,IAAtB,gDAAgB,YAAaD,OAAb,CAAhB;MACAF,QAAQ,CAACK,aAAT,2BAAyBN,KAAK,CAACM,aAA/B,yD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ports, "__esModule", {
7
7
  });
8
8
  Object.defineProperty(exports, "Authenticate", {
9
9
  enumerable: true,
10
- get: function get() {
10
+ get: function () {
11
11
  return _Authenticate.default;
12
12
  }
13
13
  });
14
14
  Object.defineProperty(exports, "ModularUIRequest", {
15
15
  enumerable: true,
16
- get: function get() {
16
+ get: function () {
17
17
  return _ModularUIRequest.default;
18
18
  }
19
19
  });
20
20
  Object.defineProperty(exports, "ModularUIResponse", {
21
21
  enumerable: true,
22
- get: function get() {
22
+ get: function () {
23
23
  return _ModularUIResponse.default;
24
24
  }
25
25
  });
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct");
4
-
5
3
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
4
 
7
5
  Object.defineProperty(exports, "__esModule", {
@@ -9,20 +7,6 @@ Object.defineProperty(exports, "__esModule", {
9
7
  });
10
8
  exports.default = void 0;
11
9
 
12
- var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
13
-
14
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck"));
15
-
16
- var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass"));
17
-
18
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/assertThisInitialized"));
19
-
20
- var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits"));
21
-
22
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn"));
23
-
24
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf"));
25
-
26
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
27
11
 
28
12
  var _react = require("react");
@@ -31,73 +15,51 @@ var _ErrorBoundaryFallback = _interopRequireDefault(require("./ErrorBoundaryFall
31
15
 
32
16
  var _jsxRuntime = require("react/jsx-runtime");
33
17
 
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
35
-
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
18
  /**
39
19
  */
40
- var ErrorBoundary = /*#__PURE__*/function (_Component) {
41
- (0, _inherits2.default)(ErrorBoundary, _Component);
42
-
43
- var _super = _createSuper(ErrorBoundary);
44
-
45
- function ErrorBoundary() {
46
- var _context;
47
-
48
- var _this;
49
-
50
- (0, _classCallCheck2.default)(this, ErrorBoundary);
51
-
52
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
53
- args[_key] = arguments[_key];
54
- }
55
-
56
- _this = _super.call.apply(_super, (0, _concat.default)(_context = [this]).call(_context, args));
57
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
20
+ class ErrorBoundary extends _react.Component {
21
+ constructor() {
22
+ super(...arguments);
23
+ (0, _defineProperty2.default)(this, "state", {
58
24
  error: null,
59
25
  errorInfo: null
60
26
  });
61
- return _this;
62
27
  }
63
28
 
64
- (0, _createClass2.default)(ErrorBoundary, [{
65
- key: "componentDidCatch",
66
- value:
67
- /**
68
- */
69
- function componentDidCatch(error, errorInfo) {
70
- this.setState({
71
- error: error,
72
- errorInfo: errorInfo
73
- });
74
- }
75
- /**
76
- */
29
+ /**
30
+ */
31
+ componentDidCatch(error, errorInfo) {
32
+ this.setState({
33
+ error,
34
+ errorInfo
35
+ });
36
+ }
37
+ /**
38
+ */
77
39
 
78
- }, {
79
- key: "render",
80
- value: function render() {
81
- var _this$props = this.props,
82
- children = _this$props.children,
83
- FallbackComponent = _this$props.FallbackComponent; // NOSONAR
84
40
 
85
- var _this$state = this.state,
86
- error = _this$state.error,
87
- errorInfo = _this$state.errorInfo;
41
+ render() {
42
+ const {
43
+ children,
44
+ FallbackComponent
45
+ } = this.props; // NOSONAR
88
46
 
89
- if (error != null) {
90
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(FallbackComponent, {
91
- componentStack: errorInfo ? errorInfo.componentStack : "",
92
- error: error
93
- });
94
- }
47
+ const {
48
+ error,
49
+ errorInfo
50
+ } = this.state;
95
51
 
96
- return children !== null && children !== void 0 ? children : null;
52
+ if (error != null) {
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(FallbackComponent, {
54
+ componentStack: errorInfo ? errorInfo.componentStack : "",
55
+ error: error
56
+ });
97
57
  }
98
- }]);
99
- return ErrorBoundary;
100
- }(_react.Component);
58
+
59
+ return children !== null && children !== void 0 ? children : null;
60
+ }
61
+
62
+ }
101
63
 
102
64
  (0, _defineProperty2.default)(ErrorBoundary, "defaultProps", {
103
65
  FallbackComponent: _ErrorBoundaryFallback.default
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","names":["ErrorBoundary","error","errorInfo","setState","props","children","FallbackComponent","state","componentStack","Component","ErrorBoundaryFallback","displayName"],"sources":["../../src/react/ErrorBoundary.js"],"sourcesContent":["// @flow\nimport { Component } from \"react\";\n\nimport ErrorBoundaryFallback from \"./ErrorBoundaryFallback\";\n\nimport type { ComponentType, Node } from \"react\";\nimport type { Props as FallbackProps } from \"./ErrorBoundaryFallback\";\nexport type Props = {\n +children: ?Node,\n +FallbackComponent: ComponentType<FallbackProps>,\n};\n\ntype ErrorInfo = {\n componentStack: string,\n ...\n};\n\ntype State = {\n error: ?Error,\n errorInfo: ?ErrorInfo,\n};\n\n/**\n */\nclass ErrorBoundary extends Component<Props, State> {\n static defaultProps: { FallbackComponent: ComponentType<FallbackProps> } = {\n FallbackComponent: ErrorBoundaryFallback,\n };\n\n state: State = {\n error: null,\n errorInfo: null,\n };\n\n /**\n */\n componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n this.setState({ error, errorInfo });\n }\n\n /**\n */\n render(): Node {\n const { children, FallbackComponent } = this.props; // NOSONAR\n const { error, errorInfo } = this.state;\n\n if (error != null) {\n return (\n <FallbackComponent\n componentStack={errorInfo ? errorInfo.componentStack : \"\"}\n error={error}\n />\n );\n }\n\n return children ?? null;\n }\n}\nErrorBoundary.displayName = \"BI.ErrorBoundary\";\n\nexport default ErrorBoundary;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA;;;;;;;;AAmBA;AACA;IACMA,a;;;;;;;;;;;;;;;;;wFAKW;MACbC,KAAK,EAAE,IADM;MAEbC,SAAS,EAAE;IAFE,C;;;;;;;IAKf;AACF;IACE,2BAAkBD,KAAlB,EAAgCC,SAAhC,EAA4D;MAC1D,KAAKC,QAAL,CAAc;QAAEF,KAAK,EAALA,KAAF;QAASC,SAAS,EAATA;MAAT,CAAd;IACD;IAED;AACF;;;;WACE,kBAAe;MACb,kBAAwC,KAAKE,KAA7C;MAAA,IAAQC,QAAR,eAAQA,QAAR;MAAA,IAAkBC,iBAAlB,eAAkBA,iBAAlB,CADa,CACuC;;MACpD,kBAA6B,KAAKC,KAAlC;MAAA,IAAQN,KAAR,eAAQA,KAAR;MAAA,IAAeC,SAAf,eAAeA,SAAf;;MAEA,IAAID,KAAK,IAAI,IAAb,EAAmB;QACjB,oBACE,qBAAC,iBAAD;UACE,cAAc,EAAEC,SAAS,GAAGA,SAAS,CAACM,cAAb,GAA8B,EADzD;UAEE,KAAK,EAAEP;QAFT,EADF;MAMD;;MAED,OAAOI,QAAP,aAAOA,QAAP,cAAOA,QAAP,GAAmB,IAAnB;IACD;;;EAhCyBI,gB;;8BAAtBT,a,kBACuE;EACzEM,iBAAiB,EAAEI;AADsD,C;AAiC7EV,aAAa,CAACW,WAAd,GAA4B,kBAA5B;eAEeX,a"}
1
+ {"version":3,"file":"ErrorBoundary.js","names":["ErrorBoundary","Component","error","errorInfo","componentDidCatch","setState","render","children","FallbackComponent","props","state","componentStack","ErrorBoundaryFallback","displayName"],"sources":["../../src/react/ErrorBoundary.js"],"sourcesContent":["// @flow\nimport { Component } from \"react\";\n\nimport ErrorBoundaryFallback from \"./ErrorBoundaryFallback\";\n\nimport type { ComponentType, Node } from \"react\";\nimport type { Props as FallbackProps } from \"./ErrorBoundaryFallback\";\nexport type Props = {\n +children: ?Node,\n +FallbackComponent: ComponentType<FallbackProps>,\n};\n\ntype ErrorInfo = {\n componentStack: string,\n ...\n};\n\ntype State = {\n error: ?Error,\n errorInfo: ?ErrorInfo,\n};\n\n/**\n */\nclass ErrorBoundary extends Component<Props, State> {\n static defaultProps: { FallbackComponent: ComponentType<FallbackProps> } = {\n FallbackComponent: ErrorBoundaryFallback,\n };\n\n state: State = {\n error: null,\n errorInfo: null,\n };\n\n /**\n */\n componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n this.setState({ error, errorInfo });\n }\n\n /**\n */\n render(): Node {\n const { children, FallbackComponent } = this.props; // NOSONAR\n const { error, errorInfo } = this.state;\n\n if (error != null) {\n return (\n <FallbackComponent\n componentStack={errorInfo ? errorInfo.componentStack : \"\"}\n error={error}\n />\n );\n }\n\n return children ?? null;\n }\n}\nErrorBoundary.displayName = \"BI.ErrorBoundary\";\n\nexport default ErrorBoundary;\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;;;AAmBA;AACA;AACA,MAAMA,aAAN,SAA4BC,gBAA5B,CAAoD;EAAA;IAAA;IAAA,6CAKnC;MACbC,KAAK,EAAE,IADM;MAEbC,SAAS,EAAE;IAFE,CALmC;EAAA;;EAUlD;AACF;EACEC,iBAAiB,CAACF,KAAD,EAAeC,SAAf,EAA2C;IAC1D,KAAKE,QAAL,CAAc;MAAEH,KAAF;MAASC;IAAT,CAAd;EACD;EAED;AACF;;;EACEG,MAAM,GAAS;IACb,MAAM;MAAEC,QAAF;MAAYC;IAAZ,IAAkC,KAAKC,KAA7C,CADa,CACuC;;IACpD,MAAM;MAAEP,KAAF;MAASC;IAAT,IAAuB,KAAKO,KAAlC;;IAEA,IAAIR,KAAK,IAAI,IAAb,EAAmB;MACjB,oBACE,qBAAC,iBAAD;QACE,cAAc,EAAEC,SAAS,GAAGA,SAAS,CAACQ,cAAb,GAA8B,EADzD;QAEE,KAAK,EAAET;MAFT,EADF;IAMD;;IAED,OAAOK,QAAP,aAAOA,QAAP,cAAOA,QAAP,GAAmB,IAAnB;EACD;;AAhCiD;;8BAA9CP,a,kBACuE;EACzEQ,iBAAiB,EAAEI;AADsD,C;AAiC7EZ,aAAa,CAACa,WAAd,GAA4B,kBAA5B;eAEeb,a"}