@beinformed/ui 1.18.1 → 1.18.4

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 (624) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/esm/builder/index.js.map +1 -1
  3. package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
  4. package/esm/constants/Constants.js +1 -0
  5. package/esm/constants/Constants.js.map +1 -1
  6. package/esm/constants/LayoutHintConfig.js.map +1 -1
  7. package/esm/constants/LayoutHints.js.map +1 -1
  8. package/esm/constants/Settings.js +10 -3
  9. package/esm/constants/Settings.js.map +1 -1
  10. package/esm/constants/index.js.map +1 -1
  11. package/esm/exceptions/ConfigurationException.js.map +1 -1
  12. package/esm/exceptions/FetchException.js.map +1 -1
  13. package/esm/exceptions/IllegalArgumentException.js.map +1 -1
  14. package/esm/exceptions/IllegalReturnException.js.map +1 -1
  15. package/esm/exceptions/IllegalStateException.js.map +1 -1
  16. package/esm/exceptions/JsonParseException.js.map +1 -1
  17. package/esm/exceptions/MissingPropertyException.js.map +1 -1
  18. package/esm/exceptions/NetworkException.js.map +1 -1
  19. package/esm/exceptions/NotAllowedUriException.js.map +1 -1
  20. package/esm/exceptions/NotFoundException.js.map +1 -1
  21. package/esm/exceptions/ServerRequestException.js.map +1 -1
  22. package/esm/exceptions/ThemePropertyException.js.map +1 -1
  23. package/esm/exceptions/TimeoutException.js.map +1 -1
  24. package/esm/exceptions/UnauthorizedException.js.map +1 -1
  25. package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
  26. package/esm/exceptions/index.js.map +1 -1
  27. package/esm/hooks/index.js.map +1 -1
  28. package/esm/hooks/useAllFormsOnModel.js.map +1 -1
  29. package/esm/hooks/useAuthentication.js.map +1 -1
  30. package/esm/hooks/useContent.js.map +1 -1
  31. package/esm/hooks/useDeepCompareEffect.js.map +1 -1
  32. package/esm/hooks/useForm.js.map +1 -1
  33. package/esm/hooks/useI18n.js.map +1 -1
  34. package/esm/hooks/useModal.js.map +1 -1
  35. package/esm/hooks/useModelCatalog.js.map +1 -1
  36. package/esm/hooks/useModels.js.map +1 -1
  37. package/esm/hooks/useModularUI.js.map +1 -1
  38. package/esm/hooks/useModularUIBasic.js.map +1 -1
  39. package/esm/hooks/useModularUIModel.js.map +1 -1
  40. package/esm/hooks/useModularUIRequest.js.map +1 -1
  41. package/esm/hooks/useNotification.js.map +1 -1
  42. package/esm/hooks/usePreference.js.map +1 -1
  43. package/esm/hooks/useProgressIndicator.js.map +1 -1
  44. package/esm/hooks/useRouter.js.map +1 -1
  45. package/esm/i18n/Locale.js.map +1 -1
  46. package/esm/i18n/Locales.js.map +1 -1
  47. package/esm/i18n/Message.js.map +1 -1
  48. package/esm/i18n/index.js.map +1 -1
  49. package/esm/i18n/languages.js.map +1 -1
  50. package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  51. package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  52. package/esm/i18n/types.js.map +1 -1
  53. package/esm/i18n/withMessage.js.map +1 -1
  54. package/esm/index.js.map +1 -1
  55. package/esm/models/actions/ActionCollection.js.map +1 -1
  56. package/esm/models/actions/ActionModel.js.map +1 -1
  57. package/esm/models/application/ApplicationModel.js.map +1 -1
  58. package/esm/models/attributes/AttributeCollection.js.map +1 -1
  59. package/esm/models/attributes/AttributeContent.js.map +1 -1
  60. package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
  61. package/esm/models/attributes/AttributeModel.js.map +1 -1
  62. package/esm/models/attributes/AttributeSetModel.js.map +1 -1
  63. package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
  64. package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
  65. package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
  66. package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  67. package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  68. package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  69. package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
  70. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  71. package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
  72. package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
  73. package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
  74. package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
  75. package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
  76. package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
  77. package/esm/models/attributes/StringAttributeModel.js.map +1 -1
  78. package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
  79. package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
  80. package/esm/models/attributes/_createAttribute.js.map +1 -1
  81. package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  82. package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  83. package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  84. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  85. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  86. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  87. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  88. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  89. package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  90. package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  91. package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  92. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  93. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  94. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  95. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  96. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  97. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  98. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  99. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  100. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  101. package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  102. package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  103. package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  104. package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  105. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  106. package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  107. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  108. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  109. package/esm/models/base/BaseCollection.js.map +1 -1
  110. package/esm/models/base/BaseModel.js.map +1 -1
  111. package/esm/models/base/ResourceCollection.js.map +1 -1
  112. package/esm/models/base/ResourceModel.js.map +1 -1
  113. package/esm/models/caseview/CaseViewModel.js.map +1 -1
  114. package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
  115. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  116. package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
  117. package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
  118. package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
  119. package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
  120. package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  121. package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
  122. package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
  123. package/esm/models/content/ContentIndexModel.js.map +1 -1
  124. package/esm/models/content/ContentLinkModel.js.map +1 -1
  125. package/esm/models/content/ContentModel.js.map +1 -1
  126. package/esm/models/content/ContentTOCModel.js.map +1 -1
  127. package/esm/models/content/ContentTypeModel.js.map +1 -1
  128. package/esm/models/content/SectionModel.js.map +1 -1
  129. package/esm/models/content/SubSectionModel.js.map +1 -1
  130. package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  131. package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  132. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  133. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  134. package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  135. package/esm/models/detail/DetailModel.js.map +1 -1
  136. package/esm/models/error/ErrorCollection.js.map +1 -1
  137. package/esm/models/error/ErrorModel.js.map +1 -1
  138. package/esm/models/error/ErrorResponse.js.map +1 -1
  139. package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
  140. package/esm/models/filters/BaseFilterModel.js.map +1 -1
  141. package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
  142. package/esm/models/filters/FilterCollection.js.map +1 -1
  143. package/esm/models/filters/FilterModel.js.map +1 -1
  144. package/esm/models/filters/RangeFilterModel.js.map +1 -1
  145. package/esm/models/form/FormModel.js +3 -1
  146. package/esm/models/form/FormModel.js.map +1 -1
  147. package/esm/models/form/FormObjectModel.js.map +1 -1
  148. package/esm/models/grouping/GroupingModel.js.map +1 -1
  149. package/esm/models/href/Href.js.map +1 -1
  150. package/esm/models/href/ListHref.js.map +1 -1
  151. package/esm/models/index.js.map +1 -1
  152. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  153. package/esm/models/links/LinkCollection.js.map +1 -1
  154. package/esm/models/links/LinkModel.js.map +1 -1
  155. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  156. package/esm/models/list/ListDetailModel.js.map +1 -1
  157. package/esm/models/list/ListHeaderModel.js.map +1 -1
  158. package/esm/models/list/ListItemCollection.js.map +1 -1
  159. package/esm/models/list/ListItemModel.js.map +1 -1
  160. package/esm/models/list/ListModel.js +2 -2
  161. package/esm/models/list/ListModel.js.map +1 -1
  162. package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
  163. package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
  164. package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  165. package/esm/models/paging/PagesizeModel.js.map +1 -1
  166. package/esm/models/paging/PagingModel.js.map +1 -1
  167. package/esm/models/panels/GroupingPanelModel.js.map +1 -1
  168. package/esm/models/parameter/Parameter.js.map +1 -1
  169. package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
  170. package/esm/models/resolveModel.js.map +1 -1
  171. package/esm/models/search/CaseSearchModel.js.map +1 -1
  172. package/esm/models/sorting/SortOptionModel.js.map +1 -1
  173. package/esm/models/sorting/SortingModel.js.map +1 -1
  174. package/esm/models/tab/TabModel.js.map +1 -1
  175. package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
  176. package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
  177. package/esm/models/types.js.map +1 -1
  178. package/esm/models/user/UserModel.js.map +1 -1
  179. package/esm/models/user/UserProfileModel.js.map +1 -1
  180. package/esm/models/user/UserServicesModel.js.map +1 -1
  181. package/esm/modularui/Authenticate.js +98 -20
  182. package/esm/modularui/Authenticate.js.map +1 -1
  183. package/esm/modularui/ModularUIError.js.map +1 -1
  184. package/esm/modularui/ModularUIRequest.js.map +1 -1
  185. package/esm/modularui/ModularUIResponse.js.map +1 -1
  186. package/esm/modularui/index.js.map +1 -1
  187. package/esm/react/ErrorBoundary.js.map +1 -1
  188. package/esm/react/ErrorBoundaryFallback.js.map +1 -1
  189. package/esm/react/index.js.map +1 -1
  190. package/esm/react/utils.js.map +1 -1
  191. package/esm/react-client/Init.js.map +1 -1
  192. package/esm/react-client/client.js.map +1 -1
  193. package/esm/react-client/contextPath.js.map +1 -1
  194. package/esm/react-client/index.js.map +1 -1
  195. package/esm/react-client/rehydrate.js.map +1 -1
  196. package/esm/react-server/contextPath.js.map +1 -1
  197. package/esm/react-server/createSSRComplete.js.map +1 -1
  198. package/esm/react-server/htmlpage.js.map +1 -1
  199. package/esm/react-server/index.js.map +1 -1
  200. package/esm/react-server/renderSSRComplete.js.map +1 -1
  201. package/esm/react-server/renderSSRMinimal.js.map +1 -1
  202. package/esm/react-server/requestInformation.js.map +1 -1
  203. package/esm/react-server/serverNoSSR.js.map +1 -1
  204. package/esm/react-server/serverSSR.js.map +1 -1
  205. package/esm/react-server/serverUtil.js.map +1 -1
  206. package/esm/react-theme/ThemeProvider.js.map +1 -1
  207. package/esm/react-theme/createTheme.js.map +1 -1
  208. package/esm/react-theme/index.js.map +1 -1
  209. package/esm/react-theme/types.js.map +1 -1
  210. package/esm/react-theme/useTheme.js.map +1 -1
  211. package/esm/react-theme/utils/background.js.map +1 -1
  212. package/esm/react-theme/utils/colors.js.map +1 -1
  213. package/esm/react-theme/utils/contrast.js.map +1 -1
  214. package/esm/react-theme/utils/corners.js.map +1 -1
  215. package/esm/react-theme/utils/spacers.js.map +1 -1
  216. package/esm/react-theme/utils/themeProps.js.map +1 -1
  217. package/esm/redux/_i18n/actions.js.map +1 -1
  218. package/esm/redux/_i18n/index.js.map +1 -1
  219. package/esm/redux/_i18n/reducer.js.map +1 -1
  220. package/esm/redux/_i18n/types.js.map +1 -1
  221. package/esm/redux/_modularui/actions.js.map +1 -1
  222. package/esm/redux/_modularui/connector.js.map +1 -1
  223. package/esm/redux/_modularui/index.js.map +1 -1
  224. package/esm/redux/_modularui/middleware.js.map +1 -1
  225. package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
  226. package/esm/redux/_modularui/reducer.js.map +1 -1
  227. package/esm/redux/_modularui/selectors.js.map +1 -1
  228. package/esm/redux/_modularui/types.js.map +1 -1
  229. package/esm/redux/_modularui/withModularUI.js.map +1 -1
  230. package/esm/redux/_router/actions.js.map +1 -1
  231. package/esm/redux/_router/connectors.js.map +1 -1
  232. package/esm/redux/_router/index.js.map +1 -1
  233. package/esm/redux/_router/middleware.js.map +1 -1
  234. package/esm/redux/_router/reducer.js.map +1 -1
  235. package/esm/redux/_router/types.js.map +1 -1
  236. package/esm/redux/actions/Application.js.map +1 -1
  237. package/esm/redux/actions/Authorization.js.map +1 -1
  238. package/esm/redux/actions/Error.js.map +1 -1
  239. package/esm/redux/actions/Form.js.map +1 -1
  240. package/esm/redux/actions/FormAttributeSet.js.map +1 -1
  241. package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  242. package/esm/redux/actions/FormAutosave.js.map +1 -1
  243. package/esm/redux/actions/FormAutosubmit.js.map +1 -1
  244. package/esm/redux/actions/FormValidations.js.map +1 -1
  245. package/esm/redux/actions/Modals.js.map +1 -1
  246. package/esm/redux/actions/Notification.js.map +1 -1
  247. package/esm/redux/actions/Preferences.js +2 -2
  248. package/esm/redux/actions/Preferences.js.map +1 -1
  249. package/esm/redux/actions/ProgressIndicator.js.map +1 -1
  250. package/esm/redux/actions/SignIn.js.map +1 -1
  251. package/esm/redux/actions/SignOut.js.map +1 -1
  252. package/esm/redux/actions/index.js.map +1 -1
  253. package/esm/redux/connectors/Application.js.map +1 -1
  254. package/esm/redux/connectors/Breadcrumb.js.map +1 -1
  255. package/esm/redux/connectors/CaseView.js.map +1 -1
  256. package/esm/redux/connectors/ConceptDetail.js.map +1 -1
  257. package/esm/redux/connectors/ContentBrowser.js.map +1 -1
  258. package/esm/redux/connectors/ContentDetail.js.map +1 -1
  259. package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
  260. package/esm/redux/connectors/Form.js.map +1 -1
  261. package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
  262. package/esm/redux/connectors/ListDetail.js.map +1 -1
  263. package/esm/redux/connectors/Modal.js.map +1 -1
  264. package/esm/redux/connectors/ModelCatalog.js.map +1 -1
  265. package/esm/redux/connectors/Notification.js.map +1 -1
  266. package/esm/redux/connectors/PanelRenderer.js.map +1 -1
  267. package/esm/redux/connectors/Preferences.js.map +1 -1
  268. package/esm/redux/connectors/Progress.js.map +1 -1
  269. package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
  270. package/esm/redux/connectors/QuickSearch.js.map +1 -1
  271. package/esm/redux/connectors/SignIn.js.map +1 -1
  272. package/esm/redux/connectors/SignOut.js.map +1 -1
  273. package/esm/redux/connectors/Tab.js.map +1 -1
  274. package/esm/redux/connectors/index.js.map +1 -1
  275. package/esm/redux/index.js.map +1 -1
  276. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  277. package/esm/redux/reducers/ErrorReducer.js.map +1 -1
  278. package/esm/redux/reducers/ModalsReducer.js.map +1 -1
  279. package/esm/redux/reducers/NotificationReducer.js.map +1 -1
  280. package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
  281. package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  282. package/esm/redux/reducers/createReducer.js.map +1 -1
  283. package/esm/redux/reducers/index.js.map +1 -1
  284. package/esm/redux/store/beforeRenderHooks.js.map +1 -1
  285. package/esm/redux/store/configureStore.js.map +1 -1
  286. package/esm/redux/types.js.map +1 -1
  287. package/esm/utils/browser/Cache.js.map +1 -1
  288. package/esm/utils/browser/Cookies.js.map +1 -1
  289. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  290. package/esm/utils/fetch/serverFetch.js.map +1 -1
  291. package/esm/utils/fetch/types.js.map +1 -1
  292. package/esm/utils/fetch/universalFetch.js.map +1 -1
  293. package/esm/utils/fetch/xhr.js.map +1 -1
  294. package/esm/utils/helpers/checkResource.js.map +1 -1
  295. package/esm/utils/helpers/createHash.js.map +1 -1
  296. package/esm/utils/helpers/createUUID.js.map +1 -1
  297. package/esm/utils/helpers/objects.js.map +1 -1
  298. package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
  299. package/esm/utils/helpers/text.js.map +1 -1
  300. package/esm/utils/index.js.map +1 -1
  301. package/esm/utils/number/DecimalFormat.js.map +1 -1
  302. package/esm/utils/number/formatValue.js.map +1 -1
  303. package/esm/utils/number/parseNumbers.js.map +1 -1
  304. package/lib/builder/index.js.map +1 -1
  305. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  306. package/lib/constants/Constants.js +3 -1
  307. package/lib/constants/Constants.js.flow +1 -0
  308. package/lib/constants/Constants.js.map +1 -1
  309. package/lib/constants/LayoutHintConfig.js.map +1 -1
  310. package/lib/constants/LayoutHints.js.map +1 -1
  311. package/lib/constants/Settings.js +13 -3
  312. package/lib/constants/Settings.js.flow +8 -3
  313. package/lib/constants/Settings.js.map +1 -1
  314. package/lib/constants/index.js.map +1 -1
  315. package/lib/exceptions/ConfigurationException.js.map +1 -1
  316. package/lib/exceptions/FetchException.js.map +1 -1
  317. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  318. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  319. package/lib/exceptions/IllegalStateException.js.map +1 -1
  320. package/lib/exceptions/JsonParseException.js.map +1 -1
  321. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  322. package/lib/exceptions/NetworkException.js.map +1 -1
  323. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  324. package/lib/exceptions/NotFoundException.js.map +1 -1
  325. package/lib/exceptions/ServerRequestException.js.map +1 -1
  326. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  327. package/lib/exceptions/TimeoutException.js.map +1 -1
  328. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  329. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  330. package/lib/exceptions/index.js.map +1 -1
  331. package/lib/hooks/index.js.map +1 -1
  332. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  333. package/lib/hooks/useAuthentication.js.map +1 -1
  334. package/lib/hooks/useContent.js.map +1 -1
  335. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  336. package/lib/hooks/useForm.js.map +1 -1
  337. package/lib/hooks/useI18n.js.map +1 -1
  338. package/lib/hooks/useModal.js.map +1 -1
  339. package/lib/hooks/useModelCatalog.js.map +1 -1
  340. package/lib/hooks/useModels.js.map +1 -1
  341. package/lib/hooks/useModularUI.js.map +1 -1
  342. package/lib/hooks/useModularUIBasic.js.map +1 -1
  343. package/lib/hooks/useModularUIModel.js.map +1 -1
  344. package/lib/hooks/useModularUIRequest.js.map +1 -1
  345. package/lib/hooks/useNotification.js.map +1 -1
  346. package/lib/hooks/usePreference.js.map +1 -1
  347. package/lib/hooks/useProgressIndicator.js.map +1 -1
  348. package/lib/hooks/useRouter.js.map +1 -1
  349. package/lib/i18n/Locale.js.map +1 -1
  350. package/lib/i18n/Locales.js.map +1 -1
  351. package/lib/i18n/Message.js.map +1 -1
  352. package/lib/i18n/index.js.map +1 -1
  353. package/lib/i18n/languages.js.map +1 -1
  354. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  355. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  356. package/lib/i18n/types.js.map +1 -1
  357. package/lib/i18n/withMessage.js.map +1 -1
  358. package/lib/index.js.map +1 -1
  359. package/lib/models/actions/ActionCollection.js.map +1 -1
  360. package/lib/models/actions/ActionModel.js.map +1 -1
  361. package/lib/models/application/ApplicationModel.js.map +1 -1
  362. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  363. package/lib/models/attributes/AttributeContent.js.map +1 -1
  364. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  365. package/lib/models/attributes/AttributeModel.js.map +1 -1
  366. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  367. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  368. package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
  369. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  370. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  371. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  372. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  373. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  374. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  375. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  376. package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
  377. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  378. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  379. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  380. package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
  381. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  382. package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
  383. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  384. package/lib/models/attributes/_createAttribute.js.map +1 -1
  385. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  386. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  387. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  388. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  389. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  390. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  391. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  392. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  393. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  394. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  395. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  396. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  397. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  398. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  399. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  400. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  401. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  402. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  403. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  404. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  405. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  406. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  407. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  408. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  409. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  410. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  411. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  412. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  413. package/lib/models/base/BaseCollection.js.map +1 -1
  414. package/lib/models/base/BaseModel.js.map +1 -1
  415. package/lib/models/base/ResourceCollection.js.map +1 -1
  416. package/lib/models/base/ResourceModel.js.map +1 -1
  417. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  418. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  419. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  420. package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
  421. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  422. package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
  423. package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
  424. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  425. package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
  426. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  427. package/lib/models/content/ContentIndexModel.js.map +1 -1
  428. package/lib/models/content/ContentLinkModel.js.map +1 -1
  429. package/lib/models/content/ContentModel.js.map +1 -1
  430. package/lib/models/content/ContentTOCModel.js.map +1 -1
  431. package/lib/models/content/ContentTypeModel.js.map +1 -1
  432. package/lib/models/content/SectionModel.js.map +1 -1
  433. package/lib/models/content/SubSectionModel.js.map +1 -1
  434. package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  435. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  436. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  437. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  438. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  439. package/lib/models/detail/DetailModel.js.map +1 -1
  440. package/lib/models/error/ErrorCollection.js.map +1 -1
  441. package/lib/models/error/ErrorModel.js.map +1 -1
  442. package/lib/models/error/ErrorResponse.js.map +1 -1
  443. package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
  444. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  445. package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
  446. package/lib/models/filters/FilterCollection.js.map +1 -1
  447. package/lib/models/filters/FilterModel.js.map +1 -1
  448. package/lib/models/filters/RangeFilterModel.js.map +1 -1
  449. package/lib/models/form/FormModel.js +3 -1
  450. package/lib/models/form/FormModel.js.flow +1 -1
  451. package/lib/models/form/FormModel.js.map +1 -1
  452. package/lib/models/form/FormObjectModel.js.map +1 -1
  453. package/lib/models/grouping/GroupingModel.js.map +1 -1
  454. package/lib/models/href/Href.js.map +1 -1
  455. package/lib/models/href/ListHref.js.map +1 -1
  456. package/lib/models/index.js.map +1 -1
  457. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  458. package/lib/models/links/LinkCollection.js.map +1 -1
  459. package/lib/models/links/LinkModel.js.map +1 -1
  460. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  461. package/lib/models/list/ListDetailModel.js.map +1 -1
  462. package/lib/models/list/ListHeaderModel.js.map +1 -1
  463. package/lib/models/list/ListItemCollection.js.map +1 -1
  464. package/lib/models/list/ListItemModel.js.map +1 -1
  465. package/lib/models/list/ListModel.js +2 -2
  466. package/lib/models/list/ListModel.js.flow +1 -2
  467. package/lib/models/list/ListModel.js.map +1 -1
  468. package/lib/models/list/__tests__/ListModel.spec.js.flow +13 -0
  469. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  470. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  471. package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  472. package/lib/models/paging/PagesizeModel.js.map +1 -1
  473. package/lib/models/paging/PagingModel.js.map +1 -1
  474. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  475. package/lib/models/parameter/Parameter.js.map +1 -1
  476. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  477. package/lib/models/resolveModel.js.map +1 -1
  478. package/lib/models/search/CaseSearchModel.js.map +1 -1
  479. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  480. package/lib/models/sorting/SortingModel.js.map +1 -1
  481. package/lib/models/tab/TabModel.js.map +1 -1
  482. package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
  483. package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
  484. package/lib/models/types.js.map +1 -1
  485. package/lib/models/user/UserModel.js.map +1 -1
  486. package/lib/models/user/UserProfileModel.js.map +1 -1
  487. package/lib/models/user/UserServicesModel.js.map +1 -1
  488. package/lib/modularui/Authenticate.js +99 -20
  489. package/lib/modularui/Authenticate.js.flow +72 -18
  490. package/lib/modularui/Authenticate.js.map +1 -1
  491. package/lib/modularui/ModularUIError.js.map +1 -1
  492. package/lib/modularui/ModularUIRequest.js.map +1 -1
  493. package/lib/modularui/ModularUIResponse.js.map +1 -1
  494. package/lib/modularui/index.js.map +1 -1
  495. package/lib/react/ErrorBoundary.js.map +1 -1
  496. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  497. package/lib/react/index.js.map +1 -1
  498. package/lib/react/utils.js.map +1 -1
  499. package/lib/react-client/Init.js.map +1 -1
  500. package/lib/react-client/client.js.map +1 -1
  501. package/lib/react-client/contextPath.js.map +1 -1
  502. package/lib/react-client/index.js.map +1 -1
  503. package/lib/react-client/rehydrate.js.map +1 -1
  504. package/lib/react-server/__tests__/serverUtil.spec.js.flow +6 -4
  505. package/lib/react-server/contextPath.js.map +1 -1
  506. package/lib/react-server/createSSRComplete.js.map +1 -1
  507. package/lib/react-server/htmlpage.js.map +1 -1
  508. package/lib/react-server/index.js.map +1 -1
  509. package/lib/react-server/renderSSRComplete.js.map +1 -1
  510. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  511. package/lib/react-server/requestInformation.js.map +1 -1
  512. package/lib/react-server/serverNoSSR.js.map +1 -1
  513. package/lib/react-server/serverSSR.js.map +1 -1
  514. package/lib/react-server/serverUtil.js.map +1 -1
  515. package/lib/react-theme/ThemeProvider.js.map +1 -1
  516. package/lib/react-theme/createTheme.js.map +1 -1
  517. package/lib/react-theme/index.js.map +1 -1
  518. package/lib/react-theme/types.js.map +1 -1
  519. package/lib/react-theme/useTheme.js.map +1 -1
  520. package/lib/react-theme/utils/background.js.map +1 -1
  521. package/lib/react-theme/utils/colors.js.map +1 -1
  522. package/lib/react-theme/utils/contrast.js.map +1 -1
  523. package/lib/react-theme/utils/corners.js.map +1 -1
  524. package/lib/react-theme/utils/spacers.js.map +1 -1
  525. package/lib/react-theme/utils/themeProps.js.map +1 -1
  526. package/lib/redux/_i18n/actions.js.map +1 -1
  527. package/lib/redux/_i18n/index.js.map +1 -1
  528. package/lib/redux/_i18n/reducer.js.map +1 -1
  529. package/lib/redux/_i18n/types.js.map +1 -1
  530. package/lib/redux/_modularui/actions.js.map +1 -1
  531. package/lib/redux/_modularui/connector.js.map +1 -1
  532. package/lib/redux/_modularui/index.js.map +1 -1
  533. package/lib/redux/_modularui/middleware.js.map +1 -1
  534. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  535. package/lib/redux/_modularui/reducer.js.map +1 -1
  536. package/lib/redux/_modularui/selectors.js.map +1 -1
  537. package/lib/redux/_modularui/types.js.map +1 -1
  538. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  539. package/lib/redux/_router/actions.js.map +1 -1
  540. package/lib/redux/_router/connectors.js.map +1 -1
  541. package/lib/redux/_router/index.js.map +1 -1
  542. package/lib/redux/_router/middleware.js.map +1 -1
  543. package/lib/redux/_router/reducer.js.map +1 -1
  544. package/lib/redux/_router/types.js.map +1 -1
  545. package/lib/redux/actions/Application.js.map +1 -1
  546. package/lib/redux/actions/Authorization.js.map +1 -1
  547. package/lib/redux/actions/Error.js.map +1 -1
  548. package/lib/redux/actions/Form.js.map +1 -1
  549. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  550. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  551. package/lib/redux/actions/FormAutosave.js.map +1 -1
  552. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  553. package/lib/redux/actions/FormValidations.js.map +1 -1
  554. package/lib/redux/actions/Modals.js.map +1 -1
  555. package/lib/redux/actions/Notification.js.map +1 -1
  556. package/lib/redux/actions/Preferences.js +1 -1
  557. package/lib/redux/actions/Preferences.js.flow +7 -3
  558. package/lib/redux/actions/Preferences.js.map +1 -1
  559. package/lib/redux/actions/ProgressIndicator.js.map +1 -1
  560. package/lib/redux/actions/SignIn.js.map +1 -1
  561. package/lib/redux/actions/SignOut.js.map +1 -1
  562. package/lib/redux/actions/index.js.map +1 -1
  563. package/lib/redux/connectors/Application.js.map +1 -1
  564. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  565. package/lib/redux/connectors/CaseView.js.map +1 -1
  566. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  567. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  568. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  569. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  570. package/lib/redux/connectors/Form.js.map +1 -1
  571. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  572. package/lib/redux/connectors/ListDetail.js.map +1 -1
  573. package/lib/redux/connectors/Modal.js.map +1 -1
  574. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  575. package/lib/redux/connectors/Notification.js.map +1 -1
  576. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  577. package/lib/redux/connectors/Preferences.js.map +1 -1
  578. package/lib/redux/connectors/Progress.js.map +1 -1
  579. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  580. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  581. package/lib/redux/connectors/SignIn.js.map +1 -1
  582. package/lib/redux/connectors/SignOut.js.map +1 -1
  583. package/lib/redux/connectors/Tab.js.map +1 -1
  584. package/lib/redux/connectors/index.js.map +1 -1
  585. package/lib/redux/index.js.map +1 -1
  586. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  587. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  588. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  589. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  590. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  591. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  592. package/lib/redux/reducers/createReducer.js.map +1 -1
  593. package/lib/redux/reducers/index.js.map +1 -1
  594. package/lib/redux/store/beforeRenderHooks.js.map +1 -1
  595. package/lib/redux/store/configureStore.js.map +1 -1
  596. package/lib/redux/types.js.map +1 -1
  597. package/lib/utils/browser/Cache.js.map +1 -1
  598. package/lib/utils/browser/Cookies.js.map +1 -1
  599. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  600. package/lib/utils/fetch/serverFetch.js.map +1 -1
  601. package/lib/utils/fetch/types.js.map +1 -1
  602. package/lib/utils/fetch/universalFetch.js.map +1 -1
  603. package/lib/utils/fetch/xhr.js.map +1 -1
  604. package/lib/utils/helpers/checkResource.js.map +1 -1
  605. package/lib/utils/helpers/createHash.js.map +1 -1
  606. package/lib/utils/helpers/createUUID.js.map +1 -1
  607. package/lib/utils/helpers/objects.js.map +1 -1
  608. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  609. package/lib/utils/helpers/text.js.map +1 -1
  610. package/lib/utils/index.js.map +1 -1
  611. package/lib/utils/number/DecimalFormat.js.map +1 -1
  612. package/lib/utils/number/formatValue.js.map +1 -1
  613. package/lib/utils/number/parseNumbers.js.map +1 -1
  614. package/package.json +10 -10
  615. package/src/constants/Constants.js +1 -0
  616. package/src/constants/Settings.js +8 -3
  617. package/src/models/form/FormModel.js +1 -1
  618. package/src/models/list/ListModel.js +1 -2
  619. package/src/models/list/__tests__/ListModel.spec.js +13 -0
  620. package/src/models/list/__tests__/related-contributions.json +42 -0
  621. package/src/models/list/__tests__/related-data.json +32 -0
  622. package/src/modularui/Authenticate.js +72 -18
  623. package/src/react-server/__tests__/serverUtil.spec.js +6 -4
  624. package/src/redux/actions/Preferences.js +7 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/Modals.js"],"names":["showModal","modalKey","type","payload","closeModal"],"mappings":";;;;;;;AAGA;AACA;AACO,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,QAAD;AAAA,SAAwC;AAC/DC,IAAAA,IAAI,EAAE,YADyD;AAE/DC,IAAAA,OAAO,EAAEF;AAFsD,GAAxC;AAAA,CAAlB;AAKP;AACA;;;;;AACO,IAAMG,UAAU,GAAG,SAAbA,UAAa,CAACH,QAAD;AAAA,SAAyC;AACjEC,IAAAA,IAAI,EAAE,aAD2D;AAEjEC,IAAAA,OAAO,EAAEF;AAFwD,GAAzC;AAAA,CAAnB","sourcesContent":["// @flow\nimport type { ShowModalAction, CloseModalAction } from \"../types\";\n\n/**\n */\nexport const showModal = (modalKey: string): ShowModalAction => ({\n type: \"SHOW_MODAL\",\n payload: modalKey,\n});\n\n/**\n */\nexport const closeModal = (modalKey: string): CloseModalAction => ({\n type: \"CLOSE_MODAL\",\n payload: modalKey,\n});\n"],"file":"Modals.js"}
1
+ {"version":3,"file":"Modals.js","names":["showModal","modalKey","type","payload","closeModal"],"sources":["../../../src/redux/actions/Modals.js"],"sourcesContent":["// @flow\nimport type { ShowModalAction, CloseModalAction } from \"../types\";\n\n/**\n */\nexport const showModal = (modalKey: string): ShowModalAction => ({\n type: \"SHOW_MODAL\",\n payload: modalKey,\n});\n\n/**\n */\nexport const closeModal = (modalKey: string): CloseModalAction => ({\n type: \"CLOSE_MODAL\",\n payload: modalKey,\n});\n"],"mappings":";;;;;;;AAGA;AACA;AACO,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,QAAD;EAAA,OAAwC;IAC/DC,IAAI,EAAE,YADyD;IAE/DC,OAAO,EAAEF;EAFsD,CAAxC;AAAA,CAAlB;AAKP;AACA;;;;;AACO,IAAMG,UAAU,GAAG,SAAbA,UAAa,CAACH,QAAD;EAAA,OAAyC;IACjEC,IAAI,EAAE,aAD2D;IAEjEC,OAAO,EAAEF;EAFwD,CAAzC;AAAA,CAAnB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/Notification.js"],"names":["dismissNotification","type","showNotification","message","error","timeout","dispatch","payload","setTimeout","getNotificationMessageId","form","actiontype","showFormNotification","NOTIFICATION_TYPES","SUCCESS","id","showXHRErrorNotification","ERROR","defaultMessage","parameters","properties"],"mappings":";;;;;;;AACA;;AAEA;;AAEA;;AAOA;AACA;AACA;AACO,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAsB;AAAA,SAAkC;AACnEC,IAAAA,IAAI,EAAE;AAD6D,GAAlC;AAAA,CAA5B;AAIP;AACA;;;;;AACO,IAAMC,gBAAgB,GAC3B,SADWA,gBACX,CACED,IADF,EAEEE,OAFF,EAGEC,KAHF,EAIEC,OAJF;AAAA,SAMA,UAACC,QAAD,EAAc;AACZA,IAAAA,QAAQ,CAAC;AACPL,MAAAA,IAAI,EAAE,mBADC;AAEPM,MAAAA,OAAO,EAAE;AACPN,QAAAA,IAAI,EAAJA,IADO;AAEPE,QAAAA,OAAO,EAAPA,OAFO;AAGPC,QAAAA,KAAK,EAALA;AAHO;AAFF,KAAD,CAAR;;AASA,QAAIC,OAAJ,EAAa;AACXG,MAAAA,UAAU,CAAC,YAAM;AACfF,QAAAA,QAAQ,CAACN,mBAAmB,EAApB,CAAR;AACD,OAFS,EAEPK,OAFO,CAAV;AAGD;AACF,GArBD;AAAA,CADK;AAwBP;AACA;;;;;AACA,IAAMI,wBAAwB,GAAG,SAA3BA,wBAA2B,CAACC,IAAD,EAAU;AACzC,MAAIA,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;AAChC,WAAO,yBAAP;AACD;;AAED,MAAID,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;AAChC,WAAO,yBAAP;AACD;;AAED,MAAID,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;AAChC,WAAO,yBAAP;AACD;;AAED,SAAO,0BAAP;AACD,CAdD;AAgBA;AACA;AACA;;;AACO,IAAMC,oBAAoB,GAC/B,SADWA,oBACX,CAACF,IAAD;AAAA,SACA,UAACJ,QAAD,EAAc;AACZA,IAAAA,QAAQ,CAAC,uCAAD,CAAR;AAEAA,IAAAA,QAAQ,CACNJ,gBAAgB,CAACW,8BAAmBC,OAApB,EAA6B;AAC3CC,MAAAA,EAAE,EAAEN,wBAAwB,CAACC,IAAD;AADe,KAA7B,CADV,CAAR;AAMAF,IAAAA,UAAU,CAAC,YAAM;AACfF,MAAAA,QAAQ,CAACN,mBAAmB,EAApB,CAAR;AACD,KAFS,EAEP,0BAAW,2BAAX,CAFO,CAAV;AAIA,WAAOM,QAAQ,CAAC,wCAAD,CAAf;AACD,GAfD;AAAA,CADK;AAkBP;AACA;AACA;;;;;AACO,IAAMU,wBAAwB,GACnC,SADWA,wBACX,CAACZ,KAAD;AAAA,SACA,UAACE,QAAD;AAAA,WACEA,QAAQ,CACNJ,gBAAgB,CACdW,8BAAmBI,KADL,EAEd;AACEF,MAAAA,EAAE,EAAEX,KAAK,CAACW,EADZ;AAEEG,MAAAA,cAAc,EAAEd,KAAK,CAACD,OAFxB;AAGEgB,MAAAA,UAAU,EAAEf,KAAK,CAACgB;AAHpB,KAFc,EAOdhB,KAPc,CADV,CADV;AAAA,GADA;AAAA,CADK","sourcesContent":["// @flow\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\n\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { NOTIFICATION_TYPES } from \"../../constants/Constants\";\n\nimport type { DismissNotificationAction, ThunkAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type FormModel from \"../../models/form/FormModel\";\n\n/**\n * Dismiss notification message\n */\nexport const dismissNotification = (): DismissNotificationAction => ({\n type: \"DISMISS_NOTIFICATION\",\n});\n\n/**\n */\nexport const showNotification =\n (\n type: $Keys<typeof NOTIFICATION_TYPES>,\n message: MessageObject,\n error?: ?ErrorResponse,\n timeout?: ?number\n ): ThunkAction =>\n (dispatch) => {\n dispatch({\n type: \"SHOW_NOTIFICATION\",\n payload: {\n type,\n message,\n error,\n },\n });\n\n if (timeout) {\n setTimeout(() => {\n dispatch(dismissNotification());\n }, timeout);\n }\n };\n\n/**\n */\nconst getNotificationMessageId = (form) => {\n if (form.actiontype === \"create\") {\n return \"Notification.Msg.Create\";\n }\n\n if (form.actiontype === \"update\") {\n return \"Notification.Msg.Update\";\n }\n\n if (form.actiontype === \"delete\") {\n return \"Notification.Msg.Delete\";\n }\n\n return \"Notification.Msg.Generic\";\n};\n\n/**\n * Show form notification\n */\nexport const showFormNotification =\n (form: FormModel): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n\n dispatch(\n showNotification(NOTIFICATION_TYPES.SUCCESS, {\n id: getNotificationMessageId(form),\n })\n );\n\n setTimeout(() => {\n dispatch(dismissNotification());\n }, getSetting(\"HIDE_NOTIFICATION_TIMEOUT\"));\n\n return dispatch(finishProgress());\n };\n\n/**\n * Show error notification\n */\nexport const showXHRErrorNotification =\n (error: ErrorResponse): ThunkAction =>\n (dispatch) =>\n dispatch(\n showNotification(\n NOTIFICATION_TYPES.ERROR,\n {\n id: error.id,\n defaultMessage: error.message,\n parameters: error.properties,\n },\n error\n )\n );\n"],"file":"Notification.js"}
1
+ {"version":3,"file":"Notification.js","names":["dismissNotification","type","showNotification","message","error","timeout","dispatch","payload","setTimeout","getNotificationMessageId","form","actiontype","showFormNotification","NOTIFICATION_TYPES","SUCCESS","id","showXHRErrorNotification","ERROR","defaultMessage","parameters","properties"],"sources":["../../../src/redux/actions/Notification.js"],"sourcesContent":["// @flow\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\n\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { NOTIFICATION_TYPES } from \"../../constants/Constants\";\n\nimport type { DismissNotificationAction, ThunkAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type FormModel from \"../../models/form/FormModel\";\n\n/**\n * Dismiss notification message\n */\nexport const dismissNotification = (): DismissNotificationAction => ({\n type: \"DISMISS_NOTIFICATION\",\n});\n\n/**\n */\nexport const showNotification =\n (\n type: $Keys<typeof NOTIFICATION_TYPES>,\n message: MessageObject,\n error?: ?ErrorResponse,\n timeout?: ?number\n ): ThunkAction =>\n (dispatch) => {\n dispatch({\n type: \"SHOW_NOTIFICATION\",\n payload: {\n type,\n message,\n error,\n },\n });\n\n if (timeout) {\n setTimeout(() => {\n dispatch(dismissNotification());\n }, timeout);\n }\n };\n\n/**\n */\nconst getNotificationMessageId = (form) => {\n if (form.actiontype === \"create\") {\n return \"Notification.Msg.Create\";\n }\n\n if (form.actiontype === \"update\") {\n return \"Notification.Msg.Update\";\n }\n\n if (form.actiontype === \"delete\") {\n return \"Notification.Msg.Delete\";\n }\n\n return \"Notification.Msg.Generic\";\n};\n\n/**\n * Show form notification\n */\nexport const showFormNotification =\n (form: FormModel): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n\n dispatch(\n showNotification(NOTIFICATION_TYPES.SUCCESS, {\n id: getNotificationMessageId(form),\n })\n );\n\n setTimeout(() => {\n dispatch(dismissNotification());\n }, getSetting(\"HIDE_NOTIFICATION_TIMEOUT\"));\n\n return dispatch(finishProgress());\n };\n\n/**\n * Show error notification\n */\nexport const showXHRErrorNotification =\n (error: ErrorResponse): ThunkAction =>\n (dispatch) =>\n dispatch(\n showNotification(\n NOTIFICATION_TYPES.ERROR,\n {\n id: error.id,\n defaultMessage: error.message,\n parameters: error.properties,\n },\n error\n )\n );\n"],"mappings":";;;;;;;AACA;;AAEA;;AAEA;;AAOA;AACA;AACA;AACO,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAsB;EAAA,OAAkC;IACnEC,IAAI,EAAE;EAD6D,CAAlC;AAAA,CAA5B;AAIP;AACA;;;;;AACO,IAAMC,gBAAgB,GAC3B,SADWA,gBACX,CACED,IADF,EAEEE,OAFF,EAGEC,KAHF,EAIEC,OAJF;EAAA,OAMA,UAACC,QAAD,EAAc;IACZA,QAAQ,CAAC;MACPL,IAAI,EAAE,mBADC;MAEPM,OAAO,EAAE;QACPN,IAAI,EAAJA,IADO;QAEPE,OAAO,EAAPA,OAFO;QAGPC,KAAK,EAALA;MAHO;IAFF,CAAD,CAAR;;IASA,IAAIC,OAAJ,EAAa;MACXG,UAAU,CAAC,YAAM;QACfF,QAAQ,CAACN,mBAAmB,EAApB,CAAR;MACD,CAFS,EAEPK,OAFO,CAAV;IAGD;EACF,CArBD;AAAA,CADK;AAwBP;AACA;;;;;AACA,IAAMI,wBAAwB,GAAG,SAA3BA,wBAA2B,CAACC,IAAD,EAAU;EACzC,IAAIA,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;IAChC,OAAO,yBAAP;EACD;;EAED,IAAID,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;IAChC,OAAO,yBAAP;EACD;;EAED,IAAID,IAAI,CAACC,UAAL,KAAoB,QAAxB,EAAkC;IAChC,OAAO,yBAAP;EACD;;EAED,OAAO,0BAAP;AACD,CAdD;AAgBA;AACA;AACA;;;AACO,IAAMC,oBAAoB,GAC/B,SADWA,oBACX,CAACF,IAAD;EAAA,OACA,UAACJ,QAAD,EAAc;IACZA,QAAQ,CAAC,uCAAD,CAAR;IAEAA,QAAQ,CACNJ,gBAAgB,CAACW,8BAAmBC,OAApB,EAA6B;MAC3CC,EAAE,EAAEN,wBAAwB,CAACC,IAAD;IADe,CAA7B,CADV,CAAR;IAMAF,UAAU,CAAC,YAAM;MACfF,QAAQ,CAACN,mBAAmB,EAApB,CAAR;IACD,CAFS,EAEP,0BAAW,2BAAX,CAFO,CAAV;IAIA,OAAOM,QAAQ,CAAC,wCAAD,CAAf;EACD,CAfD;AAAA,CADK;AAkBP;AACA;AACA;;;;;AACO,IAAMU,wBAAwB,GACnC,SADWA,wBACX,CAACZ,KAAD;EAAA,OACA,UAACE,QAAD;IAAA,OACEA,QAAQ,CACNJ,gBAAgB,CACdW,8BAAmBI,KADL,EAEd;MACEF,EAAE,EAAEX,KAAK,CAACW,EADZ;MAEEG,cAAc,EAAEd,KAAK,CAACD,OAFxB;MAGEgB,UAAU,EAAEf,KAAK,CAACgB;IAHpB,CAFc,EAOdhB,KAPc,CADV,CADV;EAAA,CADA;AAAA,CADK"}
@@ -147,7 +147,7 @@ exports.setAllContentInDataSetting = setAllContentInDataSetting;
147
147
  var setLoginPreferences = function setLoginPreferences(state) {
148
148
  var _state$preferences$LO, _state$preferences$LO2, _state$preferences$LO3, _state$preferences$LO4, _loginSettings;
149
149
 
150
- var loginSettings = (_loginSettings = {}, (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_PATH_SETTING, getServerPreferenceValue(_constants.LOGIN_PATH_SETTING, (_state$preferences$LO = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_PATH_SETTING]) !== null && _state$preferences$LO !== void 0 ? _state$preferences$LO : "".concat(_constants.BASE, "/j_security_check"))), (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_USERNAME_SETTING, getServerPreferenceValue(_constants.LOGIN_USERNAME_SETTING, (_state$preferences$LO2 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_USERNAME_SETTING]) !== null && _state$preferences$LO2 !== void 0 ? _state$preferences$LO2 : "j_username")), (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_PASSWORD_SETTING, getServerPreferenceValue(_constants.LOGIN_PASSWORD_SETTING, (_state$preferences$LO3 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_PASSWORD_SETTING]) !== null && _state$preferences$LO3 !== void 0 ? _state$preferences$LO3 : "j_password")), (0, _defineProperty2.default)(_loginSettings, _constants.LOGOUT_PATH_SETTING, getServerPreferenceValue(_constants.LOGOUT_PATH_SETTING, (_state$preferences$LO4 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGOUT_PATH_SETTING]) !== null && _state$preferences$LO4 !== void 0 ? _state$preferences$LO4 : "".concat(_constants.BASE, "/Logoff"))), _loginSettings);
150
+ var loginSettings = (_loginSettings = {}, (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_TYPE, getServerPreferenceValue(_constants.LOGIN_TYPE, state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_TYPE])), (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_PATH_SETTING, getServerPreferenceValue(_constants.LOGIN_PATH_SETTING, (_state$preferences$LO = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_PATH_SETTING]) !== null && _state$preferences$LO !== void 0 ? _state$preferences$LO : "/j_security_check")), (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_USERNAME_SETTING, getServerPreferenceValue(_constants.LOGIN_USERNAME_SETTING, (_state$preferences$LO2 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_USERNAME_SETTING]) !== null && _state$preferences$LO2 !== void 0 ? _state$preferences$LO2 : "j_username")), (0, _defineProperty2.default)(_loginSettings, _constants.LOGIN_PASSWORD_SETTING, getServerPreferenceValue(_constants.LOGIN_PASSWORD_SETTING, (_state$preferences$LO3 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGIN_PASSWORD_SETTING]) !== null && _state$preferences$LO3 !== void 0 ? _state$preferences$LO3 : "j_password")), (0, _defineProperty2.default)(_loginSettings, _constants.LOGOUT_PATH_SETTING, getServerPreferenceValue(_constants.LOGOUT_PATH_SETTING, (_state$preferences$LO4 = state === null || state === void 0 ? void 0 : state.preferences[_constants.LOGOUT_PATH_SETTING]) !== null && _state$preferences$LO4 !== void 0 ? _state$preferences$LO4 : "/Logoff")), _loginSettings);
151
151
  (0, _Settings.setSettings)(loginSettings);
152
152
  return setPreferences(loginSettings);
153
153
  };
@@ -12,8 +12,8 @@ import type {
12
12
  } from "../types";
13
13
 
14
14
  import {
15
- BASE,
16
15
  ALL_CONTENT_IN_DATA_SETTING,
16
+ LOGIN_TYPE,
17
17
  LOGIN_PASSWORD_SETTING,
18
18
  LOGIN_PATH_SETTING,
19
19
  LOGIN_USERNAME_SETTING,
@@ -123,9 +123,13 @@ export const setLoginPreferences = (
123
123
  state?: ReduxState
124
124
  ): SetPreferencesAction => {
125
125
  const loginSettings = {
126
+ [LOGIN_TYPE]: getServerPreferenceValue(
127
+ LOGIN_TYPE,
128
+ state?.preferences[LOGIN_TYPE]
129
+ ),
126
130
  [LOGIN_PATH_SETTING]: getServerPreferenceValue(
127
131
  LOGIN_PATH_SETTING,
128
- state?.preferences[LOGIN_PATH_SETTING] ?? `${BASE}/j_security_check`
132
+ state?.preferences[LOGIN_PATH_SETTING] ?? `/j_security_check`
129
133
  ),
130
134
  [LOGIN_USERNAME_SETTING]: getServerPreferenceValue(
131
135
  LOGIN_USERNAME_SETTING,
@@ -137,7 +141,7 @@ export const setLoginPreferences = (
137
141
  ),
138
142
  [LOGOUT_PATH_SETTING]: getServerPreferenceValue(
139
143
  LOGOUT_PATH_SETTING,
140
- state?.preferences[LOGOUT_PATH_SETTING] ?? `${BASE}/Logoff`
144
+ state?.preferences[LOGOUT_PATH_SETTING] ?? `/Logoff`
141
145
  ),
142
146
  };
143
147
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/Preferences.js"],"names":["getServerPreferenceValue","preferenceName","defaultValue","type","value","preferencesProvider","getPreferenceByName","split","val","setServerPreference","propertyName","setPreference","propertyValue","payload","setPreferences","preferences","setThemePreference","configTheme","themeData","JSON","parse","error","JsonParseException","settings","setAllContentInDataSetting","state","allContentInDataSetting","getModularUIContentInData","ALL_CONTENT_IN_DATA_SETTING","setLoginPreferences","loginSettings","LOGIN_PATH_SETTING","BASE","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA;;AACA;;AASA;;;;;;AASA;AACA;AACA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAA2B,CAC/BC,cAD+B,EAI5B;AAAA,MAFHC,YAEG,uEAF6B,IAE7B;AAAA,MADHC,IACG;AACH,MAAIC,KAAK,GAAG,IAAZ;;AACA,MAAI,OAAOC,mBAAP,KAA+B,WAAnC,EAAgD;AAC9CD,IAAAA,KAAK,GAAGC,mBAAmB,CAACC,mBAApB,CAAwCL,cAAxC,CAAR;AACD;;AAED,MAAIG,KAAK,IAAI,IAAb,EAAmB;AACjBA,IAAAA,KAAK,GAAGF,YAAR;AACD;;AAED,MAAI,OAAOE,KAAP,KAAiB,QAAjB,IAA6BD,IAAI,KAAK,QAAtC,IAAkD,uBAAAC,KAAK,MAAL,CAAAA,KAAK,EAAU,GAAV,CAA3D,EAA2E;AAAA;;AACzEA,IAAAA,KAAK,GAAG,6BAAAA,KAAK,CAACG,KAAN,CAAY,GAAZ,kBAAqB,UAACC,GAAD;AAAA,aAAS,mBAAAA,GAAG,MAAH,CAAAA,GAAG,CAAZ;AAAA,KAArB,CAAR;AACD;;AAED,SAAOJ,KAAP;AACD,CAnBD;AAqBA;AACA;;;AACO,IAAMK,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCC,YADiC,EAIT;AAAA,MAFxBR,YAEwB,uEAFQ,IAER;AAAA,MADxBC,IACwB;AACxB,MAAMC,KAAK,GAAGJ,wBAAwB,CAACU,YAAD,EAAeR,YAAf,EAA6BC,IAA7B,CAAtC;AACA,SAAOQ,aAAa,CAACD,YAAD,EAAeN,KAAf,CAApB;AACD,CAPM;AASP;AACA;;;;;AACO,IAAMO,aAAa,GAAG,SAAhBA,aAAgB,CAC3BD,YAD2B;AAAA,MAE3BE,aAF2B,uEAEM,IAFN;AAAA,SAGF;AACzBT,IAAAA,IAAI,EAAE,gBADmB;AAEzBU,IAAAA,OAAO,oCACJH,YADI,EACWE,aADX;AAFkB,GAHE;AAAA,CAAtB;AAUP;AACA;;;;;AACO,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD;AAAA,SAAgD;AAC5EZ,IAAAA,IAAI,EAAE,iBADsE;AAE5EU,IAAAA,OAAO,oBACFE,WADE;AAFqE,GAAhD;AAAA,CAAvB;AAOP;AACA;;;;;AACO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,WADgC,EAER;AACxB,MAAIC,SAAS,GAAG,EAAhB;;AAEA,MAAI;AACFA,IAAAA,SAAS,GAAGD,WAAW,GAAGE,IAAI,CAACC,KAAL,CAAWH,WAAX,CAAH,GAA6B,IAApD;AACD,GAFD,CAEE,OAAOI,KAAP,EAAc;AACd,UAAM,IAAIC,8BAAJ,6CAA4DD,KAA5D,EAAN;AACD;;AAED,MAAIH,SAAS,IAAI,4BAAcA,SAAd,CAAjB,EAA2C;AACzC,+BAAYA,SAAS,CAACK,QAAtB;AACD;;AAED,SAAOZ,aAAa,CAAC,OAAD,EAAUO,SAAV,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;;;;AACO,IAAMM,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,KADwC,EAEhB;AACxB,MAAIC,uBAAuB,GAAG,KAA9B;;AAEA,MACE,OAAOrB,mBAAP,KAA+B,WAA/B,IACA,OAAOA,mBAAmB,CAACsB,yBAA3B,KAAyD,WAF3D,EAGE;AACAD,IAAAA,uBAAuB,GAAGrB,mBAAmB,CAACsB,yBAApB,EAA1B;AACD,GALD,MAKO,IAAI,OAAOF,KAAP,KAAiB,WAArB,EAAkC;AACvCC,IAAAA,uBAAuB,GAAGD,KAAK,CAACV,WAAN,CAAkBa,sCAAlB,CAA1B;AACD;;AAED,4BAAWA,sCAAX,EAAwC,CAAC,CAACF,uBAA1C;AACA,SAAOf,aAAa,CAACiB,sCAAD,EAA8BF,uBAA9B,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;;;;AACO,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCJ,KADiC,EAER;AAAA;;AACzB,MAAMK,aAAa,uEAChBC,6BADgB,EACK/B,wBAAwB,CAC5C+B,6BAD4C,2BAE5CN,KAF4C,aAE5CA,KAF4C,uBAE5CA,KAAK,CAAEV,WAAP,CAAmBgB,6BAAnB,CAF4C,mFAECC,eAFD,uBAD7B,iDAKhBC,iCALgB,EAKSjC,wBAAwB,CAChDiC,iCADgD,4BAEhDR,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAEV,WAAP,CAAmBkB,iCAAnB,CAFgD,2EAEF,YAFE,CALjC,iDAShBC,iCATgB,EASSlC,wBAAwB,CAChDkC,iCADgD,4BAEhDT,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAEV,WAAP,CAAmBmB,iCAAnB,CAFgD,2EAEF,YAFE,CATjC,iDAahBC,8BAbgB,EAaMnC,wBAAwB,CAC7CmC,8BAD6C,4BAE7CV,KAF6C,aAE7CA,KAF6C,uBAE7CA,KAAK,CAAEV,WAAP,CAAmBoB,8BAAnB,CAF6C,qFAECH,eAFD,aAb9B,kBAAnB;AAmBA,6BAAYF,aAAZ;AACA,SAAOhB,cAAc,CAACgB,aAAD,CAArB;AACD,CAxBM","sourcesContent":["// @flow\nimport { isPlainObject } from \"../../utils/helpers/objects\";\n\nimport { JsonParseException } from \"../../exceptions\";\nimport { setSetting, setSettings } from \"../../constants/Settings\";\n\nimport type {\n PreferenceValue,\n ReduxState,\n SetPreferenceAction,\n SetPreferencesAction,\n} from \"../types\";\n\nimport {\n BASE,\n ALL_CONTENT_IN_DATA_SETTING,\n LOGIN_PASSWORD_SETTING,\n LOGIN_PATH_SETTING,\n LOGIN_USERNAME_SETTING,\n LOGOUT_PATH_SETTING,\n} from \"../../constants\";\n\n/**\n */\nconst getServerPreferenceValue = (\n preferenceName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n) => {\n let value = null;\n if (typeof preferencesProvider !== \"undefined\") {\n value = preferencesProvider.getPreferenceByName(preferenceName);\n }\n\n if (value == null) {\n value = defaultValue;\n }\n\n if (typeof value === \"string\" && type !== \"string\" && value.includes(\",\")) {\n value = value.split(\",\").map((val) => val.trim());\n }\n\n return value;\n};\n\n/**\n */\nexport const setServerPreference = (\n propertyName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n): SetPreferenceAction => {\n const value = getServerPreferenceValue(propertyName, defaultValue, type);\n return setPreference(propertyName, value);\n};\n\n/**\n */\nexport const setPreference = (\n propertyName: string,\n propertyValue: PreferenceValue = null\n): SetPreferenceAction => ({\n type: \"SET_PREFERENCE\",\n payload: {\n [propertyName]: propertyValue,\n },\n});\n\n/**\n */\nexport const setPreferences = (preferences: Object): SetPreferencesAction => ({\n type: \"SET_PREFERENCES\",\n payload: {\n ...preferences,\n },\n});\n\n/**\n */\nexport const setThemePreference = (\n configTheme: string\n): SetPreferenceAction => {\n let themeData = {};\n\n try {\n themeData = configTheme ? JSON.parse(configTheme) : null;\n } catch (error) {\n throw new JsonParseException(`Theme file contains invalid JSON: ${error}`);\n }\n\n if (themeData && isPlainObject(themeData)) {\n setSettings(themeData.settings);\n }\n\n return setPreference(\"theme\", themeData);\n};\n\n/**\n * Make modular-ui-content-in-data preference available client side\n */\nexport const setAllContentInDataSetting = (\n state?: ReduxState\n): SetPreferenceAction => {\n let allContentInDataSetting = false;\n\n if (\n typeof preferencesProvider !== \"undefined\" &&\n typeof preferencesProvider.getModularUIContentInData !== \"undefined\"\n ) {\n allContentInDataSetting = preferencesProvider.getModularUIContentInData();\n } else if (typeof state !== \"undefined\") {\n allContentInDataSetting = state.preferences[ALL_CONTENT_IN_DATA_SETTING];\n }\n\n setSetting(ALL_CONTENT_IN_DATA_SETTING, !!allContentInDataSetting);\n return setPreference(ALL_CONTENT_IN_DATA_SETTING, allContentInDataSetting);\n};\n\n/**\n * Retrieves login settings from runtime preferences and sets them as setting in the preference reducer\n */\nexport const setLoginPreferences = (\n state?: ReduxState\n): SetPreferencesAction => {\n const loginSettings = {\n [LOGIN_PATH_SETTING]: getServerPreferenceValue(\n LOGIN_PATH_SETTING,\n state?.preferences[LOGIN_PATH_SETTING] ?? `${BASE}/j_security_check`\n ),\n [LOGIN_USERNAME_SETTING]: getServerPreferenceValue(\n LOGIN_USERNAME_SETTING,\n state?.preferences[LOGIN_USERNAME_SETTING] ?? \"j_username\"\n ),\n [LOGIN_PASSWORD_SETTING]: getServerPreferenceValue(\n LOGIN_PASSWORD_SETTING,\n state?.preferences[LOGIN_PASSWORD_SETTING] ?? \"j_password\"\n ),\n [LOGOUT_PATH_SETTING]: getServerPreferenceValue(\n LOGOUT_PATH_SETTING,\n state?.preferences[LOGOUT_PATH_SETTING] ?? `${BASE}/Logoff`\n ),\n };\n\n setSettings(loginSettings);\n return setPreferences(loginSettings);\n};\n"],"file":"Preferences.js"}
1
+ {"version":3,"file":"Preferences.js","names":["getServerPreferenceValue","preferenceName","defaultValue","type","value","preferencesProvider","getPreferenceByName","split","val","setServerPreference","propertyName","setPreference","propertyValue","payload","setPreferences","preferences","setThemePreference","configTheme","themeData","JSON","parse","error","JsonParseException","settings","setAllContentInDataSetting","state","allContentInDataSetting","getModularUIContentInData","ALL_CONTENT_IN_DATA_SETTING","setLoginPreferences","loginSettings","LOGIN_TYPE","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING"],"sources":["../../../src/redux/actions/Preferences.js"],"sourcesContent":["// @flow\nimport { isPlainObject } from \"../../utils/helpers/objects\";\n\nimport { JsonParseException } from \"../../exceptions\";\nimport { setSetting, setSettings } from \"../../constants/Settings\";\n\nimport type {\n PreferenceValue,\n ReduxState,\n SetPreferenceAction,\n SetPreferencesAction,\n} from \"../types\";\n\nimport {\n ALL_CONTENT_IN_DATA_SETTING,\n LOGIN_TYPE,\n LOGIN_PASSWORD_SETTING,\n LOGIN_PATH_SETTING,\n LOGIN_USERNAME_SETTING,\n LOGOUT_PATH_SETTING,\n} from \"../../constants\";\n\n/**\n */\nconst getServerPreferenceValue = (\n preferenceName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n) => {\n let value = null;\n if (typeof preferencesProvider !== \"undefined\") {\n value = preferencesProvider.getPreferenceByName(preferenceName);\n }\n\n if (value == null) {\n value = defaultValue;\n }\n\n if (typeof value === \"string\" && type !== \"string\" && value.includes(\",\")) {\n value = value.split(\",\").map((val) => val.trim());\n }\n\n return value;\n};\n\n/**\n */\nexport const setServerPreference = (\n propertyName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n): SetPreferenceAction => {\n const value = getServerPreferenceValue(propertyName, defaultValue, type);\n return setPreference(propertyName, value);\n};\n\n/**\n */\nexport const setPreference = (\n propertyName: string,\n propertyValue: PreferenceValue = null\n): SetPreferenceAction => ({\n type: \"SET_PREFERENCE\",\n payload: {\n [propertyName]: propertyValue,\n },\n});\n\n/**\n */\nexport const setPreferences = (preferences: Object): SetPreferencesAction => ({\n type: \"SET_PREFERENCES\",\n payload: {\n ...preferences,\n },\n});\n\n/**\n */\nexport const setThemePreference = (\n configTheme: string\n): SetPreferenceAction => {\n let themeData = {};\n\n try {\n themeData = configTheme ? JSON.parse(configTheme) : null;\n } catch (error) {\n throw new JsonParseException(`Theme file contains invalid JSON: ${error}`);\n }\n\n if (themeData && isPlainObject(themeData)) {\n setSettings(themeData.settings);\n }\n\n return setPreference(\"theme\", themeData);\n};\n\n/**\n * Make modular-ui-content-in-data preference available client side\n */\nexport const setAllContentInDataSetting = (\n state?: ReduxState\n): SetPreferenceAction => {\n let allContentInDataSetting = false;\n\n if (\n typeof preferencesProvider !== \"undefined\" &&\n typeof preferencesProvider.getModularUIContentInData !== \"undefined\"\n ) {\n allContentInDataSetting = preferencesProvider.getModularUIContentInData();\n } else if (typeof state !== \"undefined\") {\n allContentInDataSetting = state.preferences[ALL_CONTENT_IN_DATA_SETTING];\n }\n\n setSetting(ALL_CONTENT_IN_DATA_SETTING, !!allContentInDataSetting);\n return setPreference(ALL_CONTENT_IN_DATA_SETTING, allContentInDataSetting);\n};\n\n/**\n * Retrieves login settings from runtime preferences and sets them as setting in the preference reducer\n */\nexport const setLoginPreferences = (\n state?: ReduxState\n): SetPreferencesAction => {\n const loginSettings = {\n [LOGIN_TYPE]: getServerPreferenceValue(\n LOGIN_TYPE,\n state?.preferences[LOGIN_TYPE]\n ),\n [LOGIN_PATH_SETTING]: getServerPreferenceValue(\n LOGIN_PATH_SETTING,\n state?.preferences[LOGIN_PATH_SETTING] ?? `/j_security_check`\n ),\n [LOGIN_USERNAME_SETTING]: getServerPreferenceValue(\n LOGIN_USERNAME_SETTING,\n state?.preferences[LOGIN_USERNAME_SETTING] ?? \"j_username\"\n ),\n [LOGIN_PASSWORD_SETTING]: getServerPreferenceValue(\n LOGIN_PASSWORD_SETTING,\n state?.preferences[LOGIN_PASSWORD_SETTING] ?? \"j_password\"\n ),\n [LOGOUT_PATH_SETTING]: getServerPreferenceValue(\n LOGOUT_PATH_SETTING,\n state?.preferences[LOGOUT_PATH_SETTING] ?? `/Logoff`\n ),\n };\n\n setSettings(loginSettings);\n return setPreferences(loginSettings);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AAEA;;AACA;;AASA;;;;;;AASA;AACA;AACA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAA2B,CAC/BC,cAD+B,EAI5B;EAAA,IAFHC,YAEG,uEAF6B,IAE7B;EAAA,IADHC,IACG;EACH,IAAIC,KAAK,GAAG,IAAZ;;EACA,IAAI,OAAOC,mBAAP,KAA+B,WAAnC,EAAgD;IAC9CD,KAAK,GAAGC,mBAAmB,CAACC,mBAApB,CAAwCL,cAAxC,CAAR;EACD;;EAED,IAAIG,KAAK,IAAI,IAAb,EAAmB;IACjBA,KAAK,GAAGF,YAAR;EACD;;EAED,IAAI,OAAOE,KAAP,KAAiB,QAAjB,IAA6BD,IAAI,KAAK,QAAtC,IAAkD,uBAAAC,KAAK,MAAL,CAAAA,KAAK,EAAU,GAAV,CAA3D,EAA2E;IAAA;;IACzEA,KAAK,GAAG,6BAAAA,KAAK,CAACG,KAAN,CAAY,GAAZ,kBAAqB,UAACC,GAAD;MAAA,OAAS,mBAAAA,GAAG,MAAH,CAAAA,GAAG,CAAZ;IAAA,CAArB,CAAR;EACD;;EAED,OAAOJ,KAAP;AACD,CAnBD;AAqBA;AACA;;;AACO,IAAMK,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCC,YADiC,EAIT;EAAA,IAFxBR,YAEwB,uEAFQ,IAER;EAAA,IADxBC,IACwB;EACxB,IAAMC,KAAK,GAAGJ,wBAAwB,CAACU,YAAD,EAAeR,YAAf,EAA6BC,IAA7B,CAAtC;EACA,OAAOQ,aAAa,CAACD,YAAD,EAAeN,KAAf,CAApB;AACD,CAPM;AASP;AACA;;;;;AACO,IAAMO,aAAa,GAAG,SAAhBA,aAAgB,CAC3BD,YAD2B;EAAA,IAE3BE,aAF2B,uEAEM,IAFN;EAAA,OAGF;IACzBT,IAAI,EAAE,gBADmB;IAEzBU,OAAO,oCACJH,YADI,EACWE,aADX;EAFkB,CAHE;AAAA,CAAtB;AAUP;AACA;;;;;AACO,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD;EAAA,OAAgD;IAC5EZ,IAAI,EAAE,iBADsE;IAE5EU,OAAO,oBACFE,WADE;EAFqE,CAAhD;AAAA,CAAvB;AAOP;AACA;;;;;AACO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,WADgC,EAER;EACxB,IAAIC,SAAS,GAAG,EAAhB;;EAEA,IAAI;IACFA,SAAS,GAAGD,WAAW,GAAGE,IAAI,CAACC,KAAL,CAAWH,WAAX,CAAH,GAA6B,IAApD;EACD,CAFD,CAEE,OAAOI,KAAP,EAAc;IACd,MAAM,IAAIC,8BAAJ,6CAA4DD,KAA5D,EAAN;EACD;;EAED,IAAIH,SAAS,IAAI,4BAAcA,SAAd,CAAjB,EAA2C;IACzC,2BAAYA,SAAS,CAACK,QAAtB;EACD;;EAED,OAAOZ,aAAa,CAAC,OAAD,EAAUO,SAAV,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;;;;AACO,IAAMM,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,KADwC,EAEhB;EACxB,IAAIC,uBAAuB,GAAG,KAA9B;;EAEA,IACE,OAAOrB,mBAAP,KAA+B,WAA/B,IACA,OAAOA,mBAAmB,CAACsB,yBAA3B,KAAyD,WAF3D,EAGE;IACAD,uBAAuB,GAAGrB,mBAAmB,CAACsB,yBAApB,EAA1B;EACD,CALD,MAKO,IAAI,OAAOF,KAAP,KAAiB,WAArB,EAAkC;IACvCC,uBAAuB,GAAGD,KAAK,CAACV,WAAN,CAAkBa,sCAAlB,CAA1B;EACD;;EAED,0BAAWA,sCAAX,EAAwC,CAAC,CAACF,uBAA1C;EACA,OAAOf,aAAa,CAACiB,sCAAD,EAA8BF,uBAA9B,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;;;;AACO,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCJ,KADiC,EAER;EAAA;;EACzB,IAAMK,aAAa,uEAChBC,qBADgB,EACH/B,wBAAwB,CACpC+B,qBADoC,EAEpCN,KAFoC,aAEpCA,KAFoC,uBAEpCA,KAAK,CAAEV,WAAP,CAAmBgB,qBAAnB,CAFoC,CADrB,iDAKhBC,6BALgB,EAKKhC,wBAAwB,CAC5CgC,6BAD4C,2BAE5CP,KAF4C,aAE5CA,KAF4C,uBAE5CA,KAAK,CAAEV,WAAP,CAAmBiB,6BAAnB,CAF4C,6FAL7B,iDAShBC,iCATgB,EASSjC,wBAAwB,CAChDiC,iCADgD,4BAEhDR,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAEV,WAAP,CAAmBkB,iCAAnB,CAFgD,2EAEF,YAFE,CATjC,iDAahBC,iCAbgB,EAaSlC,wBAAwB,CAChDkC,iCADgD,4BAEhDT,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAEV,WAAP,CAAmBmB,iCAAnB,CAFgD,2EAEF,YAFE,CAbjC,iDAiBhBC,8BAjBgB,EAiBMnC,wBAAwB,CAC7CmC,8BAD6C,4BAE7CV,KAF6C,aAE7CA,KAF6C,uBAE7CA,KAAK,CAAEV,WAAP,CAAmBoB,8BAAnB,CAF6C,qFAjB9B,kBAAnB;EAuBA,2BAAYL,aAAZ;EACA,OAAOhB,cAAc,CAACgB,aAAD,CAArB;AACD,CA5BM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/ProgressIndicator.js"],"names":["startProgress","type","finishProgress","resetProgress","updateProgress","percentComplete","payload"],"mappings":";;;;;;;AAQA;;AACA;AACA;AACA;AACO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDC,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;;;;AACO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB;AAAA,SAA6B;AACzDD,IAAAA,IAAI,EAAE;AADmD,GAA7B;AAAA,CAAvB;AAIP;AACA;AACA;;;;;AACO,IAAME,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDF,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;;;;AACO,IAAMG,cAAc,GAAG,SAAjBA,cAAiB,CAC5BC,eAD4B;AAAA,SAEF;AAC1BJ,IAAAA,IAAI,EAAE,iBADoB;AAE1BK,IAAAA,OAAO,EAAE;AAAED,MAAAA,eAAe,EAAfA;AAAF;AAFiB,GAFE;AAAA,CAAvB","sourcesContent":["// @flow\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ResetProgressAction,\n UpdateProgressAction,\n} from \"../types\";\n\n// ACTIONS\n/**\n * Start the progress indicator\n */\nexport const startProgress = (): StartProgressAction => ({\n type: \"START_PROGRESS\",\n});\n\n/**\n * Stop the progress indicator\n */\nexport const finishProgress = (): FinishProgressAction => ({\n type: \"FINISH_PROGRESS\",\n});\n\n/**\n * Reset the progress indicator\n */\nexport const resetProgress = (): ResetProgressAction => ({\n type: \"RESET_PROGRESS\",\n});\n\n/**\n * Update progress complete percentage\n */\nexport const updateProgress = (\n percentComplete: number\n): UpdateProgressAction => ({\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete },\n});\n"],"file":"ProgressIndicator.js"}
1
+ {"version":3,"file":"ProgressIndicator.js","names":["startProgress","type","finishProgress","resetProgress","updateProgress","percentComplete","payload"],"sources":["../../../src/redux/actions/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ResetProgressAction,\n UpdateProgressAction,\n} from \"../types\";\n\n// ACTIONS\n/**\n * Start the progress indicator\n */\nexport const startProgress = (): StartProgressAction => ({\n type: \"START_PROGRESS\",\n});\n\n/**\n * Stop the progress indicator\n */\nexport const finishProgress = (): FinishProgressAction => ({\n type: \"FINISH_PROGRESS\",\n});\n\n/**\n * Reset the progress indicator\n */\nexport const resetProgress = (): ResetProgressAction => ({\n type: \"RESET_PROGRESS\",\n});\n\n/**\n * Update progress complete percentage\n */\nexport const updateProgress = (\n percentComplete: number\n): UpdateProgressAction => ({\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete },\n});\n"],"mappings":";;;;;;;AAQA;;AACA;AACA;AACA;AACO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;;;;AACO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB;EAAA,OAA6B;IACzDD,IAAI,EAAE;EADmD,CAA7B;AAAA,CAAvB;AAIP;AACA;AACA;;;;;AACO,IAAME,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDF,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;;;;AACO,IAAMG,cAAc,GAAG,SAAjBA,cAAiB,CAC5BC,eAD4B;EAAA,OAEF;IAC1BJ,IAAI,EAAE,iBADoB;IAE1BK,OAAO,EAAE;MAAED,eAAe,EAAfA;IAAF;EAFiB,CAFE;AAAA,CAAvB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/SignIn.js"],"names":["loginFailed","errorMessage","type","payload","resetAuthErrors","loginSuccess","changePassword","dispatch","getState","isModal","router","location","state","modal","locationFrom","from","CHANGEPASSWORD_PATH","login","username","password","Authenticate","then","Cache","addItem","catch","error","id","dispatchedReloadApplication","resolve"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AASA;AACA;AACA;AACO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD;AAAA,SAA8C;AACvEC,IAAAA,IAAI,EAAE,sBADiE;AAEvEC,IAAAA,OAAO,EAAEF;AAF8D,GAA9C;AAAA,CAApB;AAKP;AACA;AACA;;;;;AACO,IAAMG,eAAe,GAAG,SAAlBA,eAAkB;AAAA,SAA8B;AAC3DF,IAAAA,IAAI,EAAE;AADqD,GAA9B;AAAA,CAAxB;AAIP;AACA;AACA;;;;;AACO,IAAMG,YAAY,GAAG,SAAfA,YAAe;AAAA,SAA2B;AACrDH,IAAAA,IAAI,EAAE;AAD+C,GAA3B;AAAA,CAArB;AAIP;AACA;AACA;;;;;AACO,IAAMI,cAAc,GAAG,SAAjBA,cAAiB;AAAA,SAAmB,UAACC,QAAD,EAAWC,QAAX,EAAwB;AAAA;;AACvED,IAAAA,QAAQ,CAAC;AACPL,MAAAA,IAAI,EAAE;AADC,KAAD,CAAR;AAIA,QAAMO,OAAO,4BAAGD,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,oFAAG,sBAA4BC,KAA/B,2DAAG,uBAAmCC,KAAnD;AACA,QAAMC,YAAY,6BAAGN,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,qFAAG,uBAA4BC,KAA/B,2DAAG,uBAAmCG,IAAxD;AACA,WAAOR,QAAQ,CACb,mBAAKS,8BAAL,EAA0B;AACxBD,MAAAA,IAAI,EAAED,YAAY,GAAGA,YAAH,GAAkBN,QAAQ,GAAGE,MAAX,CAAkBC,QAD9B;AAExBE,MAAAA,KAAK,EAAEJ;AAFiB,KAA1B,CADa,CAAf;AAMD,GAb6B;AAAA,CAAvB;AAeP;AACA;;;;;AACO,IAAMQ,KAAK,GAChB,SADWA,KACX,CAACC,QAAD,EAAmBC,QAAnB;AAAA,SACA,UAACZ,QAAD,EAAc;AACZA,IAAAA,QAAQ,CAAC,uCAAD,CAAR;AAEA,WAAO,IAAIa,qBAAJ,GACJH,KADI,CACEC,QADF,EACYC,QADZ,EAEJE,IAFI,CAEC;AAAA,aAAMd,QAAQ,CAAC,qCAAD,CAAd;AAAA,KAFD,EAGJc,IAHI,CAGC,YAAM;AACVC,qBAAMC,OAAN,CAAc,MAAd,EAAsB,IAAtB;;AACAhB,MAAAA,QAAQ,CAACF,YAAY,EAAb,CAAR;AAEA,aAAOE,QAAQ,CAAC,wCAAD,CAAf;AACD,KARI,EASJiB,KATI,CASE,UAACC,KAAD,EAAW;AAChB,UAAIA,KAAK,CAACC,EAAN,KAAa,8BAAjB,EAAiD;AAC/C,YAAMC,2BAA2B,GAAGpB,QAAQ,CAAC,qCAAD,CAA5C;AAEA,eAAO,iBAAQqB,OAAR,CAAgBD,2BAAhB,EAA6CN,IAA7C,CAAkD,YAAM;AAC7DC,yBAAMC,OAAN,CAAc,MAAd,EAAsB,IAAtB;;AACA,iBAAOhB,QAAQ,CAACD,cAAc,EAAf,CAAf;AACD,SAHM,CAAP;AAID;;AAEDC,MAAAA,QAAQ,CAACP,WAAW,CAACyB,KAAK,CAACC,EAAP,CAAZ,CAAR;AACA,aAAOnB,QAAQ,CAAC,wCAAD,CAAf;AACD,KArBI,CAAP;AAsBD,GA1BD;AAAA,CADK","sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\nimport Authenticate from \"../../modularui/Authenticate\";\n\nimport { reloadApplication } from \"./Application\";\n\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { push } from \"../_router/actions\";\nimport { CHANGEPASSWORD_PATH } from \"../../constants/Constants\";\n\nimport type {\n LoginFailedAction,\n ResetAuthErrorsAction,\n LoginSuccessAction,\n ThunkAction,\n} from \"../types\";\n\n/**\n * Send login failed action\n */\nexport const loginFailed = (errorMessage: string): LoginFailedAction => ({\n type: \"AUTHENTICATION_ERROR\",\n payload: errorMessage,\n});\n\n/**\n * Resets any authentication errors\n */\nexport const resetAuthErrors = (): ResetAuthErrorsAction => ({\n type: \"AUTHENTICATION_RESET_ERRORS\",\n});\n\n/**\n * Send login success action\n */\nexport const loginSuccess = (): LoginSuccessAction => ({\n type: \"AUTHENTICATION_SUCCESS\",\n});\n\n/**\n * Send change password action\n */\nexport const changePassword = (): ThunkAction => (dispatch, getState) => {\n dispatch({\n type: \"CHANGE_PASSWORD\",\n });\n\n const isModal = getState().router.location?.state?.modal;\n const locationFrom = getState().router.location?.state?.from;\n return dispatch(\n push(CHANGEPASSWORD_PATH, {\n from: locationFrom ? locationFrom : getState().router.location,\n modal: isModal,\n })\n );\n};\n\n/**\n */\nexport const login =\n (username: string, password: string): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate()\n .login(username, password)\n .then(() => dispatch(reloadApplication()))\n .then(() => {\n Cache.addItem(\"auth\", true);\n dispatch(loginSuccess());\n\n return dispatch(finishProgress());\n })\n .catch((error) => {\n if (error.id === \"Error.ChangePasswordRequired\") {\n const dispatchedReloadApplication = dispatch(reloadApplication());\n\n return Promise.resolve(dispatchedReloadApplication).then(() => {\n Cache.addItem(\"auth\", true);\n return dispatch(changePassword());\n });\n }\n\n dispatch(loginFailed(error.id));\n return dispatch(finishProgress());\n });\n };\n"],"file":"SignIn.js"}
1
+ {"version":3,"file":"SignIn.js","names":["loginFailed","errorMessage","type","payload","resetAuthErrors","loginSuccess","changePassword","dispatch","getState","isModal","router","location","state","modal","locationFrom","from","CHANGEPASSWORD_PATH","login","username","password","Authenticate","then","Cache","addItem","catch","error","id","dispatchedReloadApplication","resolve"],"sources":["../../../src/redux/actions/SignIn.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\nimport Authenticate from \"../../modularui/Authenticate\";\n\nimport { reloadApplication } from \"./Application\";\n\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { push } from \"../_router/actions\";\nimport { CHANGEPASSWORD_PATH } from \"../../constants/Constants\";\n\nimport type {\n LoginFailedAction,\n ResetAuthErrorsAction,\n LoginSuccessAction,\n ThunkAction,\n} from \"../types\";\n\n/**\n * Send login failed action\n */\nexport const loginFailed = (errorMessage: string): LoginFailedAction => ({\n type: \"AUTHENTICATION_ERROR\",\n payload: errorMessage,\n});\n\n/**\n * Resets any authentication errors\n */\nexport const resetAuthErrors = (): ResetAuthErrorsAction => ({\n type: \"AUTHENTICATION_RESET_ERRORS\",\n});\n\n/**\n * Send login success action\n */\nexport const loginSuccess = (): LoginSuccessAction => ({\n type: \"AUTHENTICATION_SUCCESS\",\n});\n\n/**\n * Send change password action\n */\nexport const changePassword = (): ThunkAction => (dispatch, getState) => {\n dispatch({\n type: \"CHANGE_PASSWORD\",\n });\n\n const isModal = getState().router.location?.state?.modal;\n const locationFrom = getState().router.location?.state?.from;\n return dispatch(\n push(CHANGEPASSWORD_PATH, {\n from: locationFrom ? locationFrom : getState().router.location,\n modal: isModal,\n })\n );\n};\n\n/**\n */\nexport const login =\n (username: string, password: string): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate()\n .login(username, password)\n .then(() => dispatch(reloadApplication()))\n .then(() => {\n Cache.addItem(\"auth\", true);\n dispatch(loginSuccess());\n\n return dispatch(finishProgress());\n })\n .catch((error) => {\n if (error.id === \"Error.ChangePasswordRequired\") {\n const dispatchedReloadApplication = dispatch(reloadApplication());\n\n return Promise.resolve(dispatchedReloadApplication).then(() => {\n Cache.addItem(\"auth\", true);\n return dispatch(changePassword());\n });\n }\n\n dispatch(loginFailed(error.id));\n return dispatch(finishProgress());\n });\n };\n"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AASA;AACA;AACA;AACO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD;EAAA,OAA8C;IACvEC,IAAI,EAAE,sBADiE;IAEvEC,OAAO,EAAEF;EAF8D,CAA9C;AAAA,CAApB;AAKP;AACA;AACA;;;;;AACO,IAAMG,eAAe,GAAG,SAAlBA,eAAkB;EAAA,OAA8B;IAC3DF,IAAI,EAAE;EADqD,CAA9B;AAAA,CAAxB;AAIP;AACA;AACA;;;;;AACO,IAAMG,YAAY,GAAG,SAAfA,YAAe;EAAA,OAA2B;IACrDH,IAAI,EAAE;EAD+C,CAA3B;AAAA,CAArB;AAIP;AACA;AACA;;;;;AACO,IAAMI,cAAc,GAAG,SAAjBA,cAAiB;EAAA,OAAmB,UAACC,QAAD,EAAWC,QAAX,EAAwB;IAAA;;IACvED,QAAQ,CAAC;MACPL,IAAI,EAAE;IADC,CAAD,CAAR;IAIA,IAAMO,OAAO,4BAAGD,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,oFAAG,sBAA4BC,KAA/B,2DAAG,uBAAmCC,KAAnD;IACA,IAAMC,YAAY,6BAAGN,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,qFAAG,uBAA4BC,KAA/B,2DAAG,uBAAmCG,IAAxD;IACA,OAAOR,QAAQ,CACb,mBAAKS,8BAAL,EAA0B;MACxBD,IAAI,EAAED,YAAY,GAAGA,YAAH,GAAkBN,QAAQ,GAAGE,MAAX,CAAkBC,QAD9B;MAExBE,KAAK,EAAEJ;IAFiB,CAA1B,CADa,CAAf;EAMD,CAb6B;AAAA,CAAvB;AAeP;AACA;;;;;AACO,IAAMQ,KAAK,GAChB,SADWA,KACX,CAACC,QAAD,EAAmBC,QAAnB;EAAA,OACA,UAACZ,QAAD,EAAc;IACZA,QAAQ,CAAC,uCAAD,CAAR;IAEA,OAAO,IAAIa,qBAAJ,GACJH,KADI,CACEC,QADF,EACYC,QADZ,EAEJE,IAFI,CAEC;MAAA,OAAMd,QAAQ,CAAC,qCAAD,CAAd;IAAA,CAFD,EAGJc,IAHI,CAGC,YAAM;MACVC,eAAMC,OAAN,CAAc,MAAd,EAAsB,IAAtB;;MACAhB,QAAQ,CAACF,YAAY,EAAb,CAAR;MAEA,OAAOE,QAAQ,CAAC,wCAAD,CAAf;IACD,CARI,EASJiB,KATI,CASE,UAACC,KAAD,EAAW;MAChB,IAAIA,KAAK,CAACC,EAAN,KAAa,8BAAjB,EAAiD;QAC/C,IAAMC,2BAA2B,GAAGpB,QAAQ,CAAC,qCAAD,CAA5C;QAEA,OAAO,iBAAQqB,OAAR,CAAgBD,2BAAhB,EAA6CN,IAA7C,CAAkD,YAAM;UAC7DC,eAAMC,OAAN,CAAc,MAAd,EAAsB,IAAtB;;UACA,OAAOhB,QAAQ,CAACD,cAAc,EAAf,CAAf;QACD,CAHM,CAAP;MAID;;MAEDC,QAAQ,CAACP,WAAW,CAACyB,KAAK,CAACC,EAAP,CAAZ,CAAR;MACA,OAAOnB,QAAQ,CAAC,wCAAD,CAAf;IACD,CArBI,CAAP;EAsBD,CA1BD;AAAA,CADK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/SignOut.js"],"names":["logoutSuccess","type","logout","dispatch","Authenticate","then"],"mappings":";;;;;;;;;AACA;;AACA;;AACA;;AAIA;AACA;AACA;AACO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDC,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;;;;;AACO,IAAMC,MAAM,GAAG,SAATA,MAAS;AAAA,SAAmB,UAACC,QAAD,EAAwB;AAC/DA,IAAAA,QAAQ,CAAC,uCAAD,CAAR;AAEA,WAAO,IAAIC,qBAAJ,GAAmBF,MAAnB,GAA4BG,IAA5B,CAAiC,YAAM;AAC5CF,MAAAA,QAAQ,CAAC,8BAAD,CAAR;AACAA,MAAAA,QAAQ,CAACH,aAAa,EAAd,CAAR;AACA,aAAOG,QAAQ,CAAC,wCAAD,CAAf;AACD,KAJM,CAAP;AAKD,GARqB;AAAA,CAAf","sourcesContent":["// @flow\nimport Authenticate from \"../../modularui/Authenticate\";\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { resetModularUI } from \"../_modularui/actions\";\n\nimport type { Dispatch, LogoutSuccessAction, ThunkAction } from \"../types\";\n\n/**\n * Send logout success action\n */\nexport const logoutSuccess = (): LogoutSuccessAction => ({\n type: \"AUTHENTICATION_LOGOUT\",\n});\n\n/**\n */\nexport const logout = (): ThunkAction => (dispatch: Dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate().logout().then(() => {\n dispatch(resetModularUI());\n dispatch(logoutSuccess());\n return dispatch(finishProgress());\n });\n};\n"],"file":"SignOut.js"}
1
+ {"version":3,"file":"SignOut.js","names":["logoutSuccess","type","logout","dispatch","Authenticate","then"],"sources":["../../../src/redux/actions/SignOut.js"],"sourcesContent":["// @flow\nimport Authenticate from \"../../modularui/Authenticate\";\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { resetModularUI } from \"../_modularui/actions\";\n\nimport type { Dispatch, LogoutSuccessAction, ThunkAction } from \"../types\";\n\n/**\n * Send logout success action\n */\nexport const logoutSuccess = (): LogoutSuccessAction => ({\n type: \"AUTHENTICATION_LOGOUT\",\n});\n\n/**\n */\nexport const logout = (): ThunkAction => (dispatch: Dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate().logout().then(() => {\n dispatch(resetModularUI());\n dispatch(logoutSuccess());\n return dispatch(finishProgress());\n });\n};\n"],"mappings":";;;;;;;;;AACA;;AACA;;AACA;;AAIA;AACA;AACA;AACO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;;;;;AACO,IAAMC,MAAM,GAAG,SAATA,MAAS;EAAA,OAAmB,UAACC,QAAD,EAAwB;IAC/DA,QAAQ,CAAC,uCAAD,CAAR;IAEA,OAAO,IAAIC,qBAAJ,GAAmBF,MAAnB,GAA4BG,IAA5B,CAAiC,YAAM;MAC5CF,QAAQ,CAAC,8BAAD,CAAR;MACAA,QAAQ,CAACH,aAAa,EAAd,CAAR;MACA,OAAOG,QAAQ,CAAC,wCAAD,CAAf;IACD,CAJM,CAAP;EAKD,CARqB;AAAA,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/index.js"],"names":[],"mappings":";;;;;;;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["// @flow\nexport * from \"./Application\";\nexport * from \"./Authorization\";\nexport * from \"./Error\";\nexport * from \"./Form\";\nexport * from \"./FormAttributeSet\";\nexport * from \"./FormAttributeSetRepeatable\";\nexport * from \"./FormAutosave\";\nexport * from \"./FormAutosubmit\";\nexport * from \"./FormValidations\";\nexport * from \"./Modals\";\nexport * from \"./Notification\";\nexport * from \"./Preferences\";\nexport * from \"./ProgressIndicator\";\nexport * from \"./SignIn\";\nexport * from \"./SignOut\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/redux/actions/index.js"],"sourcesContent":["// @flow\nexport * from \"./Application\";\nexport * from \"./Authorization\";\nexport * from \"./Error\";\nexport * from \"./Form\";\nexport * from \"./FormAttributeSet\";\nexport * from \"./FormAttributeSetRepeatable\";\nexport * from \"./FormAutosave\";\nexport * from \"./FormAutosubmit\";\nexport * from \"./FormValidations\";\nexport * from \"./Modals\";\nexport * from \"./Notification\";\nexport * from \"./Preferences\";\nexport * from \"./ProgressIndicator\";\nexport * from \"./SignIn\";\nexport * from \"./SignOut\";\n"],"mappings":";;;;;;;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Application.js"],"names":["connectApplication","propName"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,kBAAsC,GAAG,wBACpD,aADoD,EAEpD,GAFoD,EAGpD;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHoD,CAA/C","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectApplication: ModularUIConnector = modularui(\n \"Application\",\n \"/\",\n {\n propName: \"application\",\n }\n);\n"],"file":"Application.js"}
1
+ {"version":3,"file":"Application.js","names":["connectApplication","propName"],"sources":["../../../src/redux/connectors/Application.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectApplication: ModularUIConnector = modularui(\n \"Application\",\n \"/\",\n {\n propName: \"application\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,kBAAsC,GAAG,wBACpD,aADoD,EAEpD,GAFoD,EAGpD;EACEC,QAAQ,EAAE;AADZ,CAHoD,CAA/C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Breadcrumb.js"],"names":["mapStateToProps","state","items","connectBreadcrumb"],"mappings":";;;;;;;AACA;;AAEA;;AAWA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAoC;AAC1DC,IAAAA,KAAK,EAAE,gCAAgBD,KAAhB;AADmD,GAApC;AAAA,CAAxB;AAIA;AACA;;;AACO,IAAME,iBAAqC,GAAG,yBAOnDH,eAPmD,CAA9C","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { getActiveModels } from \"../_modularui/selectors\";\n\nimport type { ReduxState } from \"../types\";\nimport type Href from \"../../models/href/Href\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n items: Array<{ key: string, href: Href, label: string, type: string }>,\n};\ntype Props = { ...StateProps, ... };\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n items: getActiveModels(state),\n});\n\n/**\n */\nexport const connectBreadcrumb: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n _\n>(mapStateToProps);\n"],"file":"Breadcrumb.js"}
1
+ {"version":3,"file":"Breadcrumb.js","names":["mapStateToProps","state","items","connectBreadcrumb"],"sources":["../../../src/redux/connectors/Breadcrumb.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { getActiveModels } from \"../_modularui/selectors\";\n\nimport type { ReduxState } from \"../types\";\nimport type Href from \"../../models/href/Href\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n items: Array<{ key: string, href: Href, label: string, type: string }>,\n};\ntype Props = { ...StateProps, ... };\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n items: getActiveModels(state),\n});\n\n/**\n */\nexport const connectBreadcrumb: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n _\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAWA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,KAAK,EAAE,gCAAgBD,KAAhB;EADmD,CAApC;AAAA,CAAxB;AAIA;AACA;;;AACO,IAAME,iBAAqC,GAAG,yBAOnDH,eAPmD,CAA9C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/CaseView.js"],"names":["connectCaseView","match","url","propName"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,eAAmC,GAAG,wBACjD,UADiD,EAEjD;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAFiD,EAGjD;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHiD,CAA5C","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n }\n);\n"],"file":"CaseView.js"}
1
+ {"version":3,"file":"CaseView.js","names":["connectCaseView","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,eAAmC,GAAG,wBACjD,UADiD,EAEjD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFiD,EAGjD;EACEC,QAAQ,EAAE;AADZ,CAHiD,CAA5C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ConceptDetail.js"],"names":["connectConceptDetail","concept","location","search","propName"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;AAAA;;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,QAAZ,QAAYA,QAAZ;AAAA,6DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAFsD,EAGtD;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAHsD,CAAjD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" }\n);\n"],"file":"ConceptDetail.js"}
1
+ {"version":3,"file":"ConceptDetail.js","names":["connectConceptDetail","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,2DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAFsD,EAGtD;EAAEC,QAAQ,EAAE;AAAZ,CAHsD,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentBrowser.js"],"names":["connectContentBrowser","href","propName"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,qBAAyC,GAAG,wBACvD,gBADuD,EAEvD;AAAA,MAAGC,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAFuD,EAGvD;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHuD,CAAlD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n }\n);\n"],"file":"ContentBrowser.js"}
1
+ {"version":3,"file":"ContentBrowser.js","names":["connectContentBrowser","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,qBAAyC,GAAG,wBACvD,gBADuD,EAEvD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFuD,EAGvD;EACEC,QAAQ,EAAE;AADZ,CAHuD,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentDetail.js"],"names":["connectContentDetail","content","location","decodeURIComponent","search","propName"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;AAAA;;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,QAAZ,QAAYA,QAAZ;AAAA,4DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAFsD,EAItD;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAJsD,CAAjD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" }\n);\n"],"file":"ContentDetail.js"}
1
+ {"version":3,"file":"ContentDetail.js","names":["connectContentDetail","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,0DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAFsD,EAItD;EAAEC,QAAQ,EAAE;AAAZ,CAJsD,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"names":["connectContentDetailSection","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAIA;AACA;AACO,IAAMA,2BAA+C,GAAG,wBAC7D,sBAD6D,EAE7D;AAAA;;AAAA,MAAGC,cAAH,QAAGA,cAAH;AAAA,MAAmBC,OAAnB,QAAmBA,OAAnB;AAAA,MAA4BC,SAA5B,QAA4BA,SAA5B;AAAA,SACE,IAAIC,aAAJ,oDACcC,kBAAkB,CAACJ,cAAD,CADhC,uBACoDC,OADpD,GAEEI,YAFF,CAEe,WAFf,EAE4BH,SAF5B,CADF;AAAA,CAF6D,EAM7D;AAAEI,EAAAA,QAAQ,EAAE;AAAZ,CAN6D,CAAxD","sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" }\n);\n"],"file":"ContentDetailSection.js"}
1
+ {"version":3,"file":"ContentDetailSection.js","names":["connectContentDetailSection","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAIA;AACA;AACO,IAAMA,2BAA+C,GAAG,wBAC7D,sBAD6D,EAE7D;EAAA;;EAAA,IAAGC,cAAH,QAAGA,cAAH;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;EAAA,IAA4BC,SAA5B,QAA4BA,SAA5B;EAAA,OACE,IAAIC,aAAJ,oDACcC,kBAAkB,CAACJ,cAAD,CADhC,uBACoDC,OADpD,GAEEI,YAFF,CAEe,WAFf,EAE4BH,SAF5B,CADF;AAAA,CAF6D,EAM7D;EAAEI,QAAQ,EAAE;AAAZ,CAN6D,CAAxD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Form.js"],"names":["mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","moduiConnectedForm","href","formHref","Href","pathname","search","addParameter","propName","method","HTTP_METHODS","POST","connectForm"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AACA;;AAEA;;AAkCA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CACtBC,KADsB,EAEtBC,QAFsB;AAAA;;AAAA,SAGN;AAChBC,IAAAA,OAAO,EAAE,0BAAAF,KAAK,CAACG,MAAN,CAAaC,QAAb,0GAAuBJ,KAAvB,kFAA8BK,KAA9B,KAAuCJ,QAAQ,CAACC,OAAhD,IAA2D;AADpD,GAHM;AAAA,CAAxB;;AAOA,IAAMI,kBAAiC,GAAG;AACxCC,EAAAA,UAAU,EAAEC,oBAD4B;AAExCC,EAAAA,QAAQ,EAAEC,gBAF8B;AAGxCC,EAAAA,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMC,kBAAkB,GAAG,yBACzBb,eADyB,EAEzBO,kBAFyB,CAA3B;AAKA,IAAMO,kBAAsC,GAAG,wBAC7C,MAD6C,EAE7C,gBAAwB;AAAA;;AAAA,MAArBC,IAAqB,QAArBA,IAAqB;AAAA,MAAfV,QAAe,QAAfA,QAAe;AACtB,MAAMW,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAJ,2CAAYZ,QAAQ,CAACa,QAArB,kBAAgCb,QAAQ,CAACc,MAAzC,EAAzB;;AAEA,MAAI,0BAAW,oBAAX,CAAJ,EAAsC;AACpC,WAAOH,QAAP;AACD;;AAED,SAAOA,QAAQ,CAACI,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAV4C,EAW7C;AAAEC,EAAAA,QAAQ,EAAE,MAAZ;AAAoBC,EAAAA,MAAM,EAAEC,wBAAaC;AAAzC,CAX6C,CAA/C;AAcA;AACA;;AACO,IAAMC,WAEmB,GAAG,oBACjCX,kBADiC,EAEjCD,kBAFiC,CAF5B","sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type {\n ModularUIConnector,\n UpdateModelAction,\n} from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateModelAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST }\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm\n);\n"],"file":"Form.js"}
1
+ {"version":3,"file":"Form.js","names":["mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","moduiConnectedForm","href","formHref","Href","pathname","search","addParameter","propName","method","HTTP_METHODS","POST","connectForm"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type {\n ModularUIConnector,\n UpdateModelAction,\n} from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateModelAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST }\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm\n);\n"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AACA;;AAEA;;AAkCA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CACtBC,KADsB,EAEtBC,QAFsB;EAAA;;EAAA,OAGN;IAChBC,OAAO,EAAE,0BAAAF,KAAK,CAACG,MAAN,CAAaC,QAAb,0GAAuBJ,KAAvB,kFAA8BK,KAA9B,KAAuCJ,QAAQ,CAACC,OAAhD,IAA2D;EADpD,CAHM;AAAA,CAAxB;;AAOA,IAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEC,oBAD4B;EAExCC,QAAQ,EAAEC,gBAF8B;EAGxCC,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMC,kBAAkB,GAAG,yBACzBb,eADyB,EAEzBO,kBAFyB,CAA3B;AAKA,IAAMO,kBAAsC,GAAG,wBAC7C,MAD6C,EAE7C,gBAAwB;EAAA;;EAAA,IAArBC,IAAqB,QAArBA,IAAqB;EAAA,IAAfV,QAAe,QAAfA,QAAe;EACtB,IAAMW,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAJ,2CAAYZ,QAAQ,CAACa,QAArB,kBAAgCb,QAAQ,CAACc,MAAzC,EAAzB;;EAEA,IAAI,0BAAW,oBAAX,CAAJ,EAAsC;IACpC,OAAOH,QAAP;EACD;;EAED,OAAOA,QAAQ,CAACI,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAV4C,EAW7C;EAAEC,QAAQ,EAAE,MAAZ;EAAoBC,MAAM,EAAEC,wBAAaC;AAAzC,CAX6C,CAA/C;AAcA;AACA;;AACO,IAAMC,WAEmB,GAAG,oBACjCX,kBADiC,EAEjCD,kBAFiC,CAF5B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"names":["mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AAwCA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CACzBC,QADyB,EAEzBC,QAFyB;AAAA,SAGN;AACnBC,IAAAA,iBAAiB,EAAE,2BACjBC,SADiB,EAEjBC,KAFiB;AAAA,UAGjBC,OAHiB,uEAGY;AAC3BC,QAAAA,UAAU,EAAEL,QAAQ,CAACK,UAAT,IAAuB,KADR;AAE3BC,QAAAA,QAAQ,EAAEN,QAAQ,CAACM,QAAT,IAAqB;AAFJ,OAHZ;AAAA,aAQjBP,QAAQ,CACN,2CACEC,QAAQ,CAACO,IADX,EAEEP,QAAQ,CAACQ,MAFX,EAGEN,SAHF,EAIEC,KAJF,EAKEC,OALF,CADM,CARS;AAAA,KADA;AAkBnBK,IAAAA,sBAAsB,EAAE;AAAA,aACtBV,QAAQ,CAAC,2DAA0BC,QAAQ,CAACO,IAAnC,CAAD,CADc;AAAA,KAlBL;AAoBnBG,IAAAA,yBAAyB,EAAE,mCAACC,UAAD;AAAA,aACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;AAAA,KApBR;AAsBnBC,IAAAA,yBAAyB,EAAE,mCAACD,UAAD;AAAA,aACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;AAAA;AAtBR,GAHM;AAAA,CAA3B;AA6BA;AACA;;;AACO,IAAME,uBAA2C,GAAG,yBAOzD,IAPyD,EAOnDf,kBAPmD,CAApD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateModelAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateModelAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateModelAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit || false,\n autosave: ownProps.autosave || false,\n }\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options\n )\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _\n>(null, mapDispatchToProps);\n"],"file":"FormAttributeSet.js"}
1
+ {"version":3,"file":"FormAttributeSet.js","names":["mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateModelAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateModelAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateModelAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit || false,\n autosave: ownProps.autosave || false,\n }\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options\n )\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AAwCA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CACzBC,QADyB,EAEzBC,QAFyB;EAAA,OAGN;IACnBC,iBAAiB,EAAE,2BACjBC,SADiB,EAEjBC,KAFiB;MAAA,IAGjBC,OAHiB,uEAGY;QAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAT,IAAuB,KADR;QAE3BC,QAAQ,EAAEN,QAAQ,CAACM,QAAT,IAAqB;MAFJ,CAHZ;MAAA,OAQjBP,QAAQ,CACN,2CACEC,QAAQ,CAACO,IADX,EAEEP,QAAQ,CAACQ,MAFX,EAGEN,SAHF,EAIEC,KAJF,EAKEC,OALF,CADM,CARS;IAAA,CADA;IAkBnBK,sBAAsB,EAAE;MAAA,OACtBV,QAAQ,CAAC,2DAA0BC,QAAQ,CAACO,IAAnC,CAAD,CADc;IAAA,CAlBL;IAoBnBG,yBAAyB,EAAE,mCAACC,UAAD;MAAA,OACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;IAAA,CApBR;IAsBnBC,yBAAyB,EAAE,mCAACD,UAAD;MAAA,OACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;IAAA;EAtBR,CAHM;AAAA,CAA3B;AA6BA;AACA;;;AACO,IAAME,uBAA2C,GAAG,yBAOzD,IAPyD,EAOnDf,kBAPmD,CAApD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ListDetail.js"],"names":["connectListDetail","href","propName","targetModel","ListDetailModel"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,iBAAqC,GAAG,wBACnD,YADmD,EAEnD;AAAA,MAAGC,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAFmD,EAGnD;AACEC,EAAAA,QAAQ,EAAE,QADZ;AAEEC,EAAAA,WAAW,EAAEC;AAFf,CAHmD,CAA9C","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"file":"ListDetail.js"}
1
+ {"version":3,"file":"ListDetail.js","names":["connectListDetail","href","propName","targetModel","ListDetailModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,iBAAqC,GAAG,wBACnD,YADmD,EAEnD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFmD,EAGnD;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEC;AAFf,CAHmD,CAA9C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Modal.js"],"names":["mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAoBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AAAA;;AACzD,MAAMC,YAAY,GAAG,8BAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;AAAA,WAAWA,KAAK,CAACC,OAAjB;AAAA,GAAzB,CAArB;AAEA,SAAO;AACLC,IAAAA,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;AAELC,IAAAA,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;AAFhD,GAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,WAAW,EAAEC,iBADY;AAEzBC,EAAAA,YAAY,EAAEC;AAFW,CAA3B;AAKA;AACA;;AACO,IAAMC,YAAgC,GAAG,yBAO9Cf,eAP8C,EAO7BU,kBAP6B,CAAzC","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"Modal.js"}
1
+ {"version":3,"file":"Modal.js","names":["mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAoBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,8BAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACC,OAAjB;EAAA,CAAzB,CAArB;EAEA,OAAO;IACLC,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;IAELC,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;EAFhD,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEC,iBADY;EAEzBC,YAAY,EAAEC;AAFW,CAA3B;AAKA;AACA;;AACO,IAAMC,YAAgC,GAAG,yBAO9Cf,eAP8C,EAO7BU,kBAP6B,CAAzC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ModelCatalog.js"],"names":["connectModelCatalog","match","url","propName"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,mBAAuC,GAAG,wBACrD,cADqD,EAErD;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHqD,CAAhD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"file":"ModelCatalog.js"}
1
+ {"version":3,"file":"ModelCatalog.js","names":["connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,mBAAuC,GAAG,wBACrD,cADqD,EAErD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;EACEC,QAAQ,EAAE;AADZ,CAHqD,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Notification.js"],"names":["mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification"],"mappings":";;;;;;;AACA;;AAEA;;AAuBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAoC;AAC1DC,IAAAA,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;AAE1DE,IAAAA,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;AAG1DC,IAAAA,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;AAI1DC,IAAAA,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;AAJ+B,GAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,SAAS,EAAEC;AADc,CAA3B;AAIA;AACA;;AACO,IAAMC,mBAAuC,GAAG,yBAOrDV,eAPqD,EAOpCO,kBAPoC,CAAhD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"Notification.js"}
1
+ {"version":3,"file":"Notification.js","names":["mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAuBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;IAE1DE,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;IAG1DC,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;IAI1DC,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;EAJ+B,CAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAEC;AADc,CAA3B;AAIA;AACA;;AACO,IAAMC,mBAAuC,GAAG,yBAOrDV,eAPqD,EAOpCO,kBAPoC,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/PanelRenderer.js"],"names":["connectPanel","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,YAAgC,GAAG,wBAC9C,eAD8C,EAE9C,gBAAuC;AAAA,MAApCC,IAAoC,QAApCA,IAAoC;AAAA,MAA9BC,KAA8B,QAA9BA,KAA8B;AAAA,8BAAvBC,WAAuB;AAAA,MAAvBA,WAAuB,iCAAT,EAAS;;AACrC,MAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;AACnB,UAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;AAGD;;AAED,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAJ,CAASL,IAAT,CAAH,GAAoB,IAAIK,aAAJ,CAASJ,KAAK,CAACK,GAAf,CAA1C;;AAEA,MAAIL,KAAK,IAAIA,KAAK,CAACM,OAAnB,EAA4B;AAC1BH,IAAAA,SAAS,CAACI,uBAAV,CAAkCN,WAAlC;AACD;;AAED,SAAOE,SAAP;AACD,CAhB6C,EAiB9C;AACEK,EAAAA,QAAQ,EAAE;AADZ,CAjB8C,CAAzC","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"file":"PanelRenderer.js"}
1
+ {"version":3,"file":"PanelRenderer.js","names":["connectPanel","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,YAAgC,GAAG,wBAC9C,eAD8C,EAE9C,gBAAuC;EAAA,IAApCC,IAAoC,QAApCA,IAAoC;EAAA,IAA9BC,KAA8B,QAA9BA,KAA8B;EAAA,4BAAvBC,WAAuB;EAAA,IAAvBA,WAAuB,iCAAT,EAAS;;EACrC,IAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;IACnB,MAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;EAGD;;EAED,IAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAJ,CAASL,IAAT,CAAH,GAAoB,IAAIK,aAAJ,CAASJ,KAAK,CAACK,GAAf,CAA1C;;EAEA,IAAIL,KAAK,IAAIA,KAAK,CAACM,OAAnB,EAA4B;IAC1BH,SAAS,CAACI,uBAAV,CAAkCN,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhB6C,EAiB9C;EACEK,QAAQ,EAAE;AADZ,CAjB8C,CAAzC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Preferences.js"],"names":["getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"mappings":";;;;;;;AACA;;AAiBA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;AACtD,MAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;AAIA,MAAMI,KAAyB,GAAG,EAAlC;AAEAH,EAAAA,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;AACzCF,IAAAA,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;AACD,GAFD;AAIA,SAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;AACvB;AACF;AACE,MAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,WACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;AAAA,GAAxB;;AAGA,SAAO,yBAAqCS,eAArC,EACLD,gBADK,CAAP;AAGD,CAZM","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"file":"Preferences.js"}
1
+ {"version":3,"file":"Preferences.js","names":["getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"mappings":";;;;;;;AACA;;AAiBA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;EACtD,IAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;EAIA,IAAMI,KAAyB,GAAG,EAAlC;EAEAH,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;IACzCF,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;EACD,CAFD;EAIA,OAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;EACvB;AACF;EACE,IAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;IAAA,OACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;EAAA,CAAxB;;EAGA,OAAO,yBAAqCS,eAArC,EACLD,gBADK,CAAP;AAGD,CAZM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Progress.js"],"names":["mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAgBA,IAAMA,kBAAiC,GAAG;AACxCC,EAAAA,eAAe,EAAEC,gCADuB;AAExCC,EAAAA,gBAAgB,EAAEC,iCAFsB;AAGxCC,EAAAA,OAAO,EAAEC;AAH+B,CAA1C;AAMA;AACA;;AACO,IAAMC,eAAmC,GAAG,yBAOjD,IAPiD,EAO3CP,kBAP2C,CAA5C","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"file":"Progress.js"}
1
+ {"version":3,"file":"Progress.js","names":["mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAgBA,IAAMA,kBAAiC,GAAG;EACxCC,eAAe,EAAEC,gCADuB;EAExCC,gBAAgB,EAAEC,iCAFsB;EAGxCC,OAAO,EAAEC;AAH+B,CAA1C;AAMA;AACA;;AACO,IAAMC,eAAmC,GAAG,yBAOjD,IAPiD,EAO3CP,kBAP2C,CAA5C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"names":["mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"mappings":";;;;;;;AACA;;AAgBA;AACA;AACA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAwB;AAC9CC,IAAAA,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;AAE9CE,IAAAA,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;AAG9CC,IAAAA,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;AAHK,GAAxB;AAAA,CAAxB;AAMA;AACA;;;AACO,IAAMC,wBAA4C,GAAG,yBAO1DN,eAP0D,CAArD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"file":"ProgressIndicator.js"}
1
+ {"version":3,"file":"ProgressIndicator.js","names":["mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAgBA;AACA;AACA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;IAE9CE,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;IAG9CC,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;EAHK,CAAxB;AAAA,CAAxB;AAMA;AACA;;;AACO,IAAMC,wBAA4C,GAAG,yBAO1DN,eAP0D,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/QuickSearch.js"],"names":["mapDispatchToProps","push","connectQuickSearch","href","propName"],"mappings":";;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAKA;;AAYA,IAAMA,kBAAiC,GAAG;AACxCC,EAAAA,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACO,IAAMC,kBAEmB,GAAG,oBACjC,yBAAqC,IAArC,EAA2CF,kBAA3C,CADiC,EAEjC,wBAAU,aAAV,EAAyB;AAAA,MAAGG,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAAzB,EAA6C;AAC3CC,EAAAA,QAAQ,EAAE;AADiC,CAA7C,CAFiC,CAF5B","sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"file":"QuickSearch.js"}
1
+ {"version":3,"file":"QuickSearch.js","names":["mapDispatchToProps","push","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAKA;;AAYA,IAAMA,kBAAiC,GAAG;EACxCC,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACO,IAAMC,kBAEmB,GAAG,oBACjC,yBAAqC,IAArC,EAA2CF,kBAA3C,CADiC,EAEjC,wBAAU,aAAV,EAAyB;EAAA,IAAGG,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAzB,EAA6C;EAC3CC,QAAQ,EAAE;AADiC,CAA7C,CAFiC,CAF5B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignIn.js"],"names":["mapStateToProps","state","application","isAuthenticated","auth","userServices","UserServicesModel","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","login","connectSignIn"],"mappings":";;;;;;;;;AACA;;AAEA;;AAEA;;AAEA;;AAmBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AACzD,MAAMC,WAAW,GAAG,+BAAeD,KAAf,CAApB;AAEA,SAAO;AACLE,IAAAA,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCC,0BADrC,IAEAJ,WAAW,CAACG,YAAZ,CAAyBE,UAJtB;AAKLC,IAAAA,YAAY,EAAEP,KAAK,CAACG,IAAN,CAAWK;AALpB,GAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;AACxCC,EAAAA,QAAQ,EAAEC;AAD8B,CAA1C;AAIA;AACA;;AACO,IAAMC,aAAiC,GAAG,yBAO/Cb,eAP+C,EAO9BU,kBAP8B,CAA1C","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"SignIn.js"}
1
+ {"version":3,"file":"SignIn.js","names":["mapStateToProps","state","application","isAuthenticated","auth","userServices","UserServicesModel","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","login","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;;;AACA;;AAEA;;AAEA;;AAEA;;AAmBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EACzD,IAAMC,WAAW,GAAG,+BAAeD,KAAf,CAApB;EAEA,OAAO;IACLE,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCC,0BADrC,IAEAJ,WAAW,CAACG,YAAZ,CAAyBE,UAJtB;IAKLC,YAAY,EAAEP,KAAK,CAACG,IAAN,CAAWK;EALpB,CAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEC;AAD8B,CAA1C;AAIA;AACA;;AACO,IAAMC,aAAiC,GAAG,yBAO/Cb,eAP+C,EAO9BU,kBAP8B,CAA1C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignOut.js"],"names":["mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","logout","connectSignOut"],"mappings":";;;;;;;AACA;;AAEA;;AAkBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAwB;AAC9CC,IAAAA,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;AADkB,GAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;AAAEC,EAAAA,QAAQ,EAAEC;AAAZ,CAA3B;AAEA;AACA;;AACO,IAAMC,cAAkC,GAAG,yBAOhDP,eAPgD,EAO/BI,kBAP+B,CAA3C","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"SignOut.js"}
1
+ {"version":3,"file":"SignOut.js","names":["mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","logout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAkBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;EADkB,CAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;EAAEC,QAAQ,EAAEC;AAAZ,CAA3B;AAEA;AACA;;AACO,IAAMC,cAAkC,GAAG,yBAOhDP,eAPgD,EAO/BI,kBAP+B,CAA3C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Tab.js"],"names":["connectTab","match","url","propName"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,UAA8B,GAAG,wBAC5C,KAD4C,EAE5C;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAF4C,EAG5C;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAH4C,CAAvC","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"file":"Tab.js"}
1
+ {"version":3,"file":"Tab.js","names":["connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,UAA8B,GAAG,wBAC5C,KAD4C,EAE5C;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF4C,EAG5C;EACEC,QAAQ,EAAE;AADZ,CAH4C,CAAvC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA","sourcesContent":["// @flow\nexport { connectApplication } from \"./Application\";\nexport { connectBreadcrumb } from \"./Breadcrumb\";\nexport { connectCaseView } from \"./CaseView\";\nexport { connectConceptDetail } from \"./ConceptDetail\";\nexport { connectContentBrowser } from \"./ContentBrowser\";\nexport { connectContentDetail } from \"./ContentDetail\";\nexport { connectContentDetailSection } from \"./ContentDetailSection\";\nexport { connectForm } from \"./Form\";\nexport { connectFormAttributeSet } from \"./FormAttributeSet\";\nexport { connectListDetail } from \"./ListDetail\";\nexport { connectModal } from \"./Modal\";\nexport { connectModelCatalog } from \"./ModelCatalog\";\nexport { connectNotification } from \"./Notification\";\nexport { connectPanel } from \"./PanelRenderer\";\nexport { connectPreferences } from \"./Preferences\";\nexport { connectProgress } from \"./Progress\";\nexport { connectProgressIndicator } from \"./ProgressIndicator\";\nexport { connectQuickSearch } from \"./QuickSearch\";\nexport { connectSignIn } from \"./SignIn\";\nexport { connectSignOut } from \"./SignOut\";\nexport { connectTab } from \"./Tab\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/redux/connectors/index.js"],"sourcesContent":["// @flow\nexport { connectApplication } from \"./Application\";\nexport { connectBreadcrumb } from \"./Breadcrumb\";\nexport { connectCaseView } from \"./CaseView\";\nexport { connectConceptDetail } from \"./ConceptDetail\";\nexport { connectContentBrowser } from \"./ContentBrowser\";\nexport { connectContentDetail } from \"./ContentDetail\";\nexport { connectContentDetailSection } from \"./ContentDetailSection\";\nexport { connectForm } from \"./Form\";\nexport { connectFormAttributeSet } from \"./FormAttributeSet\";\nexport { connectListDetail } from \"./ListDetail\";\nexport { connectModal } from \"./Modal\";\nexport { connectModelCatalog } from \"./ModelCatalog\";\nexport { connectNotification } from \"./Notification\";\nexport { connectPanel } from \"./PanelRenderer\";\nexport { connectPreferences } from \"./Preferences\";\nexport { connectProgress } from \"./Progress\";\nexport { connectProgressIndicator } from \"./ProgressIndicator\";\nexport { connectQuickSearch } from \"./QuickSearch\";\nexport { connectSignIn } from \"./SignIn\";\nexport { connectSignOut } from \"./SignOut\";\nexport { connectTab } from \"./Tab\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["// @flow\n\n// ROUTER\nexport * from \"./_router/index\";\n\n// I18N\nexport * from \"./_i18n/index\";\n\n// MODULAR UI\nexport * from \"./_modularui/index\";\n\n// STORE\nexport { default as configureStore } from \"./store/configureStore\";\n\n// ACTIONS\nexport * from \"./actions/index\";\n\n// CONNECTORS\nexport * from \"./connectors/index\";\n\n// REDUCERS\nexport * from \"./reducers/index\";\n\nexport type * from \"./types\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/redux/index.js"],"sourcesContent":["// @flow\n\n// ROUTER\nexport * from \"./_router/index\";\n\n// I18N\nexport * from \"./_i18n/index\";\n\n// MODULAR UI\nexport * from \"./_modularui/index\";\n\n// STORE\nexport { default as configureStore } from \"./store/configureStore\";\n\n// ACTIONS\nexport * from \"./actions/index\";\n\n// CONNECTORS\nexport * from \"./connectors/index\";\n\n// REDUCERS\nexport * from \"./reducers/index\";\n\nexport type * from \"./types\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAGA;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAGA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/AuthReducer.js"],"names":["initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","Cache","clear"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;;;;;AAKA;AACA,IAAMA,YAAuB,GAAG;AAC9BC,EAAAA,eAAe,EAAE,KADa;AAE9BC,EAAAA,kBAAkB,EAAE,KAFU;AAG9BC,EAAAA,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;AAAA,MAFHC,KAEG,uEAFKL,YAEL;AAAA,MADHM,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOD,KAAP;AACD;;AAED,UAAQC,MAAM,CAACC,IAAf;AACE,SAAK,wBAAL;AACE,6CACKF,KADL;AAEEJ,QAAAA,eAAe,EAAE,IAFnB;AAGEE,QAAAA,KAAK,EAAE,IAHT;AAIED,QAAAA,kBAAkB,EAAE;AAJtB;;AAOF,SAAK,sBAAL;AACE,6CAAYG,KAAZ;AAAmBH,QAAAA,kBAAkB,EAAE,KAAvC;AAA8CC,QAAAA,KAAK,EAAEG,MAAM,CAACE;AAA5D;;AAEF,SAAK,6BAAL;AACE,6CAAYH,KAAZ;AAAmBF,QAAAA,KAAK,EAAE;AAA1B;;AAEF,SAAK,uBAAL;AAA8B;AAC5B;AACA,YAAIE,KAAK,CAACJ,eAAV,EAA2B;AACzBQ,yBAAMC,KAAN;AACD;;AAED,+CACKL,KADL;AAEEH,UAAAA,kBAAkB,EAAE,KAFtB;AAGED,UAAAA,eAAe,EAAE,KAHnB;AAIEE,UAAAA,KAAK,EAAE;AAJT;AAMD;;AAED,SAAK,iBAAL;AACE,6CACKE,KADL;AAEEJ,QAAAA,eAAe,EAAE,IAFnB;AAGEC,QAAAA,kBAAkB,EAAE,IAHtB;AAIEC,QAAAA,KAAK,EAAE;AAJT;;AAOF;AACE,aAAOE,KAAP;AAtCJ;AAwCD,CAhDD;;eAkDeD,W","sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"file":"AuthReducer.js"}
1
+ {"version":3,"file":"AuthReducer.js","names":["initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","Cache","clear"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;;;;;AAKA;AACA,IAAMA,YAAuB,GAAG;EAC9BC,eAAe,EAAE,KADa;EAE9BC,kBAAkB,EAAE,KAFU;EAG9BC,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;EAAA,IAFHC,KAEG,uEAFKL,YAEL;EAAA,IADHM,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,wBAAL;MACE,uCACKF,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEE,KAAK,EAAE,IAHT;QAIED,kBAAkB,EAAE;MAJtB;;IAOF,KAAK,sBAAL;MACE,uCAAYG,KAAZ;QAAmBH,kBAAkB,EAAE,KAAvC;QAA8CC,KAAK,EAAEG,MAAM,CAACE;MAA5D;;IAEF,KAAK,6BAAL;MACE,uCAAYH,KAAZ;QAAmBF,KAAK,EAAE;MAA1B;;IAEF,KAAK,uBAAL;MAA8B;QAC5B;QACA,IAAIE,KAAK,CAACJ,eAAV,EAA2B;UACzBQ,eAAMC,KAAN;QACD;;QAED,uCACKL,KADL;UAEEH,kBAAkB,EAAE,KAFtB;UAGED,eAAe,EAAE,KAHnB;UAIEE,KAAK,EAAE;QAJT;MAMD;;IAED,KAAK,iBAAL;MACE,uCACKE,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEC,kBAAkB,EAAE,IAHtB;QAIEC,KAAK,EAAE;MAJT;;IAOF;MACE,OAAOE,KAAP;EAtCJ;AAwCD,CAhDD;;eAkDeD,W"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ErrorReducer.js"],"names":["initialState","ErrorReducer","state","action","type","payload"],"mappings":";;;;;;AAIA;AACA,IAAMA,YAAwB,GAAG,IAAjC;AAEA;AACA;AACA;;AACA,IAAMC,YAA8C,GAAG,SAAjDA,YAAiD,GAGlD;AAAA,MAFHC,KAEG,uEAFKF,YAEL;AAAA,MADHG,MACG;;AACH,MAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,YAA9B,EAA4C;AAC1C,WAAOD,MAAM,CAACE,OAAd;AACD;;AAED,SAAOH,KAAP;AACD,CATD;;eAWeD,Y","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ErrorState } from \"../types\";\n\n// REDUCER\nconst initialState: ErrorState = null;\n\n/**\n * Error reducer\n */\nconst ErrorReducer: Reducer<ErrorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action && action.type === \"SAVE_ERROR\") {\n return action.payload;\n }\n\n return state;\n};\n\nexport default ErrorReducer;\n"],"file":"ErrorReducer.js"}
1
+ {"version":3,"file":"ErrorReducer.js","names":["initialState","ErrorReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/ErrorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ErrorState } from \"../types\";\n\n// REDUCER\nconst initialState: ErrorState = null;\n\n/**\n * Error reducer\n */\nconst ErrorReducer: Reducer<ErrorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action && action.type === \"SAVE_ERROR\") {\n return action.payload;\n }\n\n return state;\n};\n\nexport default ErrorReducer;\n"],"mappings":";;;;;;AAIA;AACA,IAAMA,YAAwB,GAAG,IAAjC;AAEA;AACA;AACA;;AACA,IAAMC,YAA8C,GAAG,SAAjDA,YAAiD,GAGlD;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,YAA9B,EAA4C;IAC1C,OAAOD,MAAM,CAACE,OAAd;EACD;;EAED,OAAOH,KAAP;AACD,CATD;;eAWeD,Y"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ModalsReducer.js"],"names":["showModal","state","modalKey","modals","modal","visible","key","closeModal","idx","arr","length","initialState","ModalsReducer","action","type","payload"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAQC,QAAR;AAAA;;AAAA,6FACb,8BAAAD,KAAK,CAACE,MAAN,kBAAiB,UAACC,KAAD;AAAA,2CACfA,KADe;AAElBC,MAAAA,OAAO,EAAE;AAFS;AAAA,GAAjB,CADa,IAKhB;AACEC,IAAAA,GAAG,EAAEJ,QADP;AAEEG,IAAAA,OAAO,EAAE;AAFX,GALgB;AAAA,CAAlB;;AAWA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACN,KAAD,EAAQC,QAAR;AAAA;;AAAA,SACjB,+DAAAD,KAAK,CAACE,MAAN,kBACU,UAACC,KAAD;AAAA,WAAWA,KAAK,CAACE,GAAN,KAAcJ,QAAzB;AAAA,GADV,mBAEO,UAACE,KAAD,EAAQI,GAAR,EAAaC,GAAb;AAAA,2CACAL,KADA;AAEHC,MAAAA,OAAO,EAAEI,GAAG,CAACC,MAAJ,KAAeF,GAAG,GAAG;AAF3B;AAAA,GAFP,CADiB;AAAA,CAAnB,C,CAQA;;;AACA,IAAMG,YAAyB,GAAG;AAChCR,EAAAA,MAAM,EAAE;AADwB,CAAlC;AAIA;AACA;AACA;;AACA,IAAMS,aAAgD,GAAG,SAAnDA,aAAmD,GAGpD;AAAA,MAFHX,KAEG,uEAFKU,YAEL;AAAA,MADHE,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOZ,KAAP;AACD;;AAED,UAAQY,MAAM,CAACC,IAAf;AACE,SAAK,YAAL;AACE,6CACKb,KADL;AAEEE,QAAAA,MAAM,EAAEH,SAAS,CAACC,KAAD,EAAQY,MAAM,CAACE,OAAf;AAFnB;;AAKF,SAAK,aAAL;AACE,6CACKd,KADL;AAEEE,QAAAA,MAAM,EAAEI,UAAU,CAACN,KAAD,EAAQY,MAAM,CAACE,OAAf;AAFpB;;AAKF;AACE,aAAOd,KAAP;AAdJ;AAgBD,CAxBD;;eA0BeW,a","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state, modalKey) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state, modalKey) =>\n state.modals\n .filter((modal) => modal.key !== modalKey)\n .map((modal, idx, arr) => ({\n ...modal,\n visible: arr.length === idx + 1,\n }));\n\n// REDUCER\nconst initialState: ModalsState = {\n modals: [],\n};\n\n/**\n * Modals reducer\n */\nconst ModalsReducer: Reducer<ModalsState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SHOW_MODAL\":\n return {\n ...state,\n modals: showModal(state, action.payload),\n };\n\n case \"CLOSE_MODAL\":\n return {\n ...state,\n modals: closeModal(state, action.payload),\n };\n\n default:\n return state;\n }\n};\n\nexport default ModalsReducer;\n"],"file":"ModalsReducer.js"}
1
+ {"version":3,"file":"ModalsReducer.js","names":["showModal","state","modalKey","modals","modal","visible","key","closeModal","idx","arr","length","initialState","ModalsReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ModalsReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state, modalKey) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state, modalKey) =>\n state.modals\n .filter((modal) => modal.key !== modalKey)\n .map((modal, idx, arr) => ({\n ...modal,\n visible: arr.length === idx + 1,\n }));\n\n// REDUCER\nconst initialState: ModalsState = {\n modals: [],\n};\n\n/**\n * Modals reducer\n */\nconst ModalsReducer: Reducer<ModalsState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SHOW_MODAL\":\n return {\n ...state,\n modals: showModal(state, action.payload),\n };\n\n case \"CLOSE_MODAL\":\n return {\n ...state,\n modals: closeModal(state, action.payload),\n };\n\n default:\n return state;\n }\n};\n\nexport default ModalsReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAQC,QAAR;EAAA;;EAAA,2FACb,8BAAAD,KAAK,CAACE,MAAN,kBAAiB,UAACC,KAAD;IAAA,uCACfA,KADe;MAElBC,OAAO,EAAE;IAFS;EAAA,CAAjB,CADa,IAKhB;IACEC,GAAG,EAAEJ,QADP;IAEEG,OAAO,EAAE;EAFX,CALgB;AAAA,CAAlB;;AAWA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACN,KAAD,EAAQC,QAAR;EAAA;;EAAA,OACjB,+DAAAD,KAAK,CAACE,MAAN,kBACU,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACE,GAAN,KAAcJ,QAAzB;EAAA,CADV,mBAEO,UAACE,KAAD,EAAQI,GAAR,EAAaC,GAAb;IAAA,uCACAL,KADA;MAEHC,OAAO,EAAEI,GAAG,CAACC,MAAJ,KAAeF,GAAG,GAAG;IAF3B;EAAA,CAFP,CADiB;AAAA,CAAnB,C,CAQA;;;AACA,IAAMG,YAAyB,GAAG;EAChCR,MAAM,EAAE;AADwB,CAAlC;AAIA;AACA;AACA;;AACA,IAAMS,aAAgD,GAAG,SAAnDA,aAAmD,GAGpD;EAAA,IAFHX,KAEG,uEAFKU,YAEL;EAAA,IADHE,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOZ,KAAP;EACD;;EAED,QAAQY,MAAM,CAACC,IAAf;IACE,KAAK,YAAL;MACE,uCACKb,KADL;QAEEE,MAAM,EAAEH,SAAS,CAACC,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFnB;;IAKF,KAAK,aAAL;MACE,uCACKd,KADL;QAEEE,MAAM,EAAEI,UAAU,CAACN,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFpB;;IAKF;MACE,OAAOd,KAAP;EAdJ;AAgBD,CAxBD;;eA0BeW,a"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/NotificationReducer.js"],"names":["initialState","render","messageType","message","error","NotificationReducer","state","action","type","payload"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA,IAAMA,YAA+B,GAAG;AACtCC,EAAAA,MAAM,EAAE,KAD8B;AAEtCC,EAAAA,WAAW,EAAE,IAFyB;AAGtCC,EAAAA,OAAO,EAAE,IAH6B;AAItCC,EAAAA,KAAK,EAAE;AAJ+B,CAAxC;AAOA;AACA;AACA;;AACA,IAAMC,mBAA4D,GAAG,SAA/DA,mBAA+D,GAGhE;AAAA,MAFHC,KAEG,uEAFKN,YAEL;AAAA,MADHO,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOD,KAAP;AACD;;AAED,UAAQC,MAAM,CAACC,IAAf;AACE,SAAK,sBAAL;AACE,6CACKF,KADL;AAEEL,QAAAA,MAAM,EAAE;AAFV;;AAKF,SAAK,mBAAL;AACE,6CACKK,KADL;AAEEL,QAAAA,MAAM,EAAE,IAFV;AAGEC,QAAAA,WAAW,EAAEK,MAAM,CAACE,OAAP,CAAeD,IAH9B;AAIEL,QAAAA,OAAO,EAAEI,MAAM,CAACE,OAAP,CAAeN,OAJ1B;AAKEC,QAAAA,KAAK,EAAEG,MAAM,CAACE,OAAP,CAAeL;AALxB;;AAQF;AACE,aAAOE,KAAP;AAjBJ;AAmBD,CA3BD;;eA6BeD,mB","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, NotificationState } from \"../types\";\n\n// REDUCER\nconst initialState: NotificationState = {\n render: false,\n messageType: null,\n message: null,\n error: null,\n};\n\n/**\n * Form reducer\n */\nconst NotificationReducer: Reducer<NotificationState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"DISMISS_NOTIFICATION\":\n return {\n ...state,\n render: false,\n };\n\n case \"SHOW_NOTIFICATION\":\n return {\n ...state,\n render: true,\n messageType: action.payload.type,\n message: action.payload.message,\n error: action.payload.error,\n };\n\n default:\n return state;\n }\n};\n\nexport default NotificationReducer;\n"],"file":"NotificationReducer.js"}
1
+ {"version":3,"file":"NotificationReducer.js","names":["initialState","render","messageType","message","error","NotificationReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/NotificationReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, NotificationState } from \"../types\";\n\n// REDUCER\nconst initialState: NotificationState = {\n render: false,\n messageType: null,\n message: null,\n error: null,\n};\n\n/**\n * Form reducer\n */\nconst NotificationReducer: Reducer<NotificationState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"DISMISS_NOTIFICATION\":\n return {\n ...state,\n render: false,\n };\n\n case \"SHOW_NOTIFICATION\":\n return {\n ...state,\n render: true,\n messageType: action.payload.type,\n message: action.payload.message,\n error: action.payload.error,\n };\n\n default:\n return state;\n }\n};\n\nexport default NotificationReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA,IAAMA,YAA+B,GAAG;EACtCC,MAAM,EAAE,KAD8B;EAEtCC,WAAW,EAAE,IAFyB;EAGtCC,OAAO,EAAE,IAH6B;EAItCC,KAAK,EAAE;AAJ+B,CAAxC;AAOA;AACA;AACA;;AACA,IAAMC,mBAA4D,GAAG,SAA/DA,mBAA+D,GAGhE;EAAA,IAFHC,KAEG,uEAFKN,YAEL;EAAA,IADHO,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,sBAAL;MACE,uCACKF,KADL;QAEEL,MAAM,EAAE;MAFV;;IAKF,KAAK,mBAAL;MACE,uCACKK,KADL;QAEEL,MAAM,EAAE,IAFV;QAGEC,WAAW,EAAEK,MAAM,CAACE,OAAP,CAAeD,IAH9B;QAIEL,OAAO,EAAEI,MAAM,CAACE,OAAP,CAAeN,OAJ1B;QAKEC,KAAK,EAAEG,MAAM,CAACE,OAAP,CAAeL;MALxB;;IAQF;MACE,OAAOE,KAAP;EAjBJ;AAmBD,CA3BD;;eA6BeD,mB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/PreferencesReducer.js"],"names":["initialState","PreferencesReducer","state","action","type","payload"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAsC,GAAG,EAA/C;AAEA;AACA;AACA;;AACA,IAAMC,kBAA0D,GAAG,SAA7DA,kBAA6D,GAG9D;AAAA,MAFHC,KAEG,uEAFKF,YAEL;AAAA,MADHG,MACG;;AACH,MAAI,CAAAA,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,gBAArB,EAAuC;AACrC,2CACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;AAID;;AAED,MAAI,CAAAF,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,iBAArB,EAAwC;AACtC,2CACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;AAID;;AAED,SAAOH,KAAP;AACD,CAnBD;;eAqBeD,kB","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, PreferencesState } from \"../types\";\n\nconst initialState: $Shape<PreferencesState> = {};\n\n/**\n * Pref reducer\n */\nconst PreferencesReducer: Reducer<PreferencesState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action?.type === \"SET_PREFERENCE\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n if (action?.type === \"SET_PREFERENCES\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n return state;\n};\n\nexport default PreferencesReducer;\n"],"file":"PreferencesReducer.js"}
1
+ {"version":3,"file":"PreferencesReducer.js","names":["initialState","PreferencesReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/PreferencesReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, PreferencesState } from \"../types\";\n\nconst initialState: $Shape<PreferencesState> = {};\n\n/**\n * Pref reducer\n */\nconst PreferencesReducer: Reducer<PreferencesState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action?.type === \"SET_PREFERENCE\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n if (action?.type === \"SET_PREFERENCES\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n return state;\n};\n\nexport default PreferencesReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAsC,GAAG,EAA/C;AAEA;AACA;AACA;;AACA,IAAMC,kBAA0D,GAAG,SAA7DA,kBAA6D,GAG9D;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAI,CAAAA,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,gBAArB,EAAuC;IACrC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,IAAI,CAAAF,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,iBAArB,EAAwC;IACtC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,OAAOH,KAAP;AACD,CAnBD;;eAqBeD,kB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ProgressIndicatorReducer.js"],"names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","action","type","payload"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA,IAAMA,YAAoC,GAAG;AAC3CC,EAAAA,KAAK,EAAE,CADoC;AAE3CC,EAAAA,SAAS,EAAE,CAFgC;AAG3CC,EAAAA,eAAe,EAAE;AAH0B,CAA7C;;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;AAChC,MAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAN,GAAc,CAAd,KAAoB,CAA1C;AACA,yCACKI,KADL;AAEEJ,IAAAA,KAAK,EAAEI,KAAK,CAACJ,KAAN,IAAe,CAAf,GAAmB,CAAnB,GAAuBI,KAAK,CAACJ,KAAN,GAAc,CAF9C;AAGEC,IAAAA,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAL,EAAH,GAAgBH,KAAK,CAACH,SAHhD;AAIEC,IAAAA,eAAe,EAAEG,aAAa,GAAG,CAAH,GAAOD,KAAK,CAACF;AAJ7C;AAMD,CARD;AAUA;AACA;AACA;;;AACA,IAAMM,wBAAsE,GAAG,SAAzEA,wBAAyE,GAG1E;AAAA;;AAAA,MAFHJ,KAEG,uEAFKL,YAEL;AAAA,MADHU,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOL,KAAP;AACD;;AAED,UAAQK,MAAM,CAACC,IAAf;AACE,SAAK,iBAAL;AACE,6CACKN,KADL;AAEEF,QAAAA,eAAe,qBAAEO,MAAM,CAACE,OAAT,oDAAE,gBAAgBT;AAFnC;;AAKF,SAAK,iBAAL;AACE,aAAOC,cAAc,CAACC,KAAD,CAArB;;AAEF,SAAK,gBAAL;AACE,6CACKA,KADL;AAEEJ,QAAAA,KAAK,EAAEI,KAAK,CAACJ,KAAN,GAAc;AAFvB;;AAKF,SAAK,gBAAL;AACE,6CACKI,KADL;AAEEJ,QAAAA,KAAK,EAAE;AAFT;;AAKF;AACE,aAAOI,KAAP;AAvBJ;AAyBD,CAjCD;;eAmCeI,wB","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ProgressIndicatorState } from \"../types\";\n\n// REDUCER\nconst initialState: ProgressIndicatorState = {\n count: 0,\n timestamp: 0,\n percentComplete: 0,\n};\n\nconst finishProgress = (state) => {\n const isFinalFinish = state.count - 1 === 0;\n return {\n ...state,\n count: state.count <= 0 ? 0 : state.count - 1,\n timestamp: isFinalFinish ? Date.now() : state.timestamp,\n percentComplete: isFinalFinish ? 0 : state.percentComplete,\n };\n};\n\n/**\n * Keep state for the progress indicator\n */\nconst progressIndicatorReducer: Reducer<ProgressIndicatorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"UPDATE_PROGRESS\":\n return {\n ...state,\n percentComplete: action.payload?.percentComplete,\n };\n\n case \"FINISH_PROGRESS\":\n return finishProgress(state);\n\n case \"START_PROGRESS\":\n return {\n ...state,\n count: state.count + 1,\n };\n\n case \"RESET_PROGRESS\":\n return {\n ...state,\n count: 0,\n };\n\n default:\n return state;\n }\n};\n\nexport default progressIndicatorReducer;\n"],"file":"ProgressIndicatorReducer.js"}
1
+ {"version":3,"file":"ProgressIndicatorReducer.js","names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ProgressIndicatorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ProgressIndicatorState } from \"../types\";\n\n// REDUCER\nconst initialState: ProgressIndicatorState = {\n count: 0,\n timestamp: 0,\n percentComplete: 0,\n};\n\nconst finishProgress = (state) => {\n const isFinalFinish = state.count - 1 === 0;\n return {\n ...state,\n count: state.count <= 0 ? 0 : state.count - 1,\n timestamp: isFinalFinish ? Date.now() : state.timestamp,\n percentComplete: isFinalFinish ? 0 : state.percentComplete,\n };\n};\n\n/**\n * Keep state for the progress indicator\n */\nconst progressIndicatorReducer: Reducer<ProgressIndicatorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"UPDATE_PROGRESS\":\n return {\n ...state,\n percentComplete: action.payload?.percentComplete,\n };\n\n case \"FINISH_PROGRESS\":\n return finishProgress(state);\n\n case \"START_PROGRESS\":\n return {\n ...state,\n count: state.count + 1,\n };\n\n case \"RESET_PROGRESS\":\n return {\n ...state,\n count: 0,\n };\n\n default:\n return state;\n }\n};\n\nexport default progressIndicatorReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA,IAAMA,YAAoC,GAAG;EAC3CC,KAAK,EAAE,CADoC;EAE3CC,SAAS,EAAE,CAFgC;EAG3CC,eAAe,EAAE;AAH0B,CAA7C;;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;EAChC,IAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAN,GAAc,CAAd,KAAoB,CAA1C;EACA,uCACKI,KADL;IAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,IAAe,CAAf,GAAmB,CAAnB,GAAuBI,KAAK,CAACJ,KAAN,GAAc,CAF9C;IAGEC,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAL,EAAH,GAAgBH,KAAK,CAACH,SAHhD;IAIEC,eAAe,EAAEG,aAAa,GAAG,CAAH,GAAOD,KAAK,CAACF;EAJ7C;AAMD,CARD;AAUA;AACA;AACA;;;AACA,IAAMM,wBAAsE,GAAG,SAAzEA,wBAAyE,GAG1E;EAAA;;EAAA,IAFHJ,KAEG,uEAFKL,YAEL;EAAA,IADHU,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOL,KAAP;EACD;;EAED,QAAQK,MAAM,CAACC,IAAf;IACE,KAAK,iBAAL;MACE,uCACKN,KADL;QAEEF,eAAe,qBAAEO,MAAM,CAACE,OAAT,oDAAE,gBAAgBT;MAFnC;;IAKF,KAAK,iBAAL;MACE,OAAOC,cAAc,CAACC,KAAD,CAArB;;IAEF,KAAK,gBAAL;MACE,uCACKA,KADL;QAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,GAAc;MAFvB;;IAKF,KAAK,gBAAL;MACE,uCACKI,KADL;QAEEJ,KAAK,EAAE;MAFT;;IAKF;MACE,OAAOI,KAAP;EAvBJ;AAyBD,CAjCD;;eAmCeI,wB"}