@beinformed/ui 1.17.3 → 1.18.2

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 (648) hide show
  1. package/CHANGELOG.md +21 -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 +4 -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 +25 -1
  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 +1 -11
  33. package/esm/hooks/useForm.js.map +1 -1
  34. package/esm/hooks/useI18n.js.map +1 -1
  35. package/esm/hooks/useModal.js.map +1 -1
  36. package/esm/hooks/useModelCatalog.js.map +1 -1
  37. package/esm/hooks/useModels.js.map +1 -1
  38. package/esm/hooks/useModularUI.js.map +1 -1
  39. package/esm/hooks/useModularUIBasic.js.map +1 -1
  40. package/esm/hooks/useModularUIModel.js.map +1 -1
  41. package/esm/hooks/useModularUIRequest.js.map +1 -1
  42. package/esm/hooks/useNotification.js.map +1 -1
  43. package/esm/hooks/usePreference.js.map +1 -1
  44. package/esm/hooks/useProgressIndicator.js.map +1 -1
  45. package/esm/hooks/useRouter.js.map +1 -1
  46. package/esm/i18n/Locale.js +2 -1
  47. package/esm/i18n/Locale.js.map +1 -1
  48. package/esm/i18n/Locales.js.map +1 -1
  49. package/esm/i18n/Message.js.map +1 -1
  50. package/esm/i18n/index.js.map +1 -1
  51. package/esm/i18n/languages.js.map +1 -1
  52. package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  53. package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  54. package/esm/i18n/types.js.map +1 -1
  55. package/esm/i18n/withMessage.js.map +1 -1
  56. package/esm/index.js.map +1 -1
  57. package/esm/models/actions/ActionCollection.js.map +1 -1
  58. package/esm/models/actions/ActionModel.js.map +1 -1
  59. package/esm/models/application/ApplicationModel.js.map +1 -1
  60. package/esm/models/attributes/AttributeCollection.js.map +1 -1
  61. package/esm/models/attributes/AttributeContent.js.map +1 -1
  62. package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
  63. package/esm/models/attributes/AttributeModel.js.map +1 -1
  64. package/esm/models/attributes/AttributeSetModel.js.map +1 -1
  65. package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
  66. package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
  67. package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
  68. package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  69. package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  70. package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  71. package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
  72. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  73. package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
  74. package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
  75. package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
  76. package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
  77. package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
  78. package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
  79. package/esm/models/attributes/StringAttributeModel.js.map +1 -1
  80. package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
  81. package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
  82. package/esm/models/attributes/_createAttribute.js.map +1 -1
  83. package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  84. package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  85. package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  86. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  87. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  88. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  89. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  90. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  91. package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  92. package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  93. package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  94. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  95. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  96. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  97. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  98. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  99. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  100. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  101. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  102. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  103. package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  104. package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  105. package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  106. package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  107. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  108. package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  109. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  110. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  111. package/esm/models/base/BaseCollection.js.map +1 -1
  112. package/esm/models/base/BaseModel.js.map +1 -1
  113. package/esm/models/base/ResourceCollection.js.map +1 -1
  114. package/esm/models/base/ResourceModel.js.map +1 -1
  115. package/esm/models/caseview/CaseViewModel.js.map +1 -1
  116. package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
  117. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  118. package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
  119. package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
  120. package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
  121. package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
  122. package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  123. package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
  124. package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
  125. package/esm/models/content/ContentIndexModel.js.map +1 -1
  126. package/esm/models/content/ContentLinkModel.js.map +1 -1
  127. package/esm/models/content/ContentModel.js.map +1 -1
  128. package/esm/models/content/ContentTOCModel.js.map +1 -1
  129. package/esm/models/content/ContentTypeModel.js.map +1 -1
  130. package/esm/models/content/SectionModel.js.map +1 -1
  131. package/esm/models/content/SubSectionModel.js.map +1 -1
  132. package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  133. package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  134. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  135. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  136. package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  137. package/esm/models/detail/DetailModel.js.map +1 -1
  138. package/esm/models/error/ErrorCollection.js.map +1 -1
  139. package/esm/models/error/ErrorModel.js.map +1 -1
  140. package/esm/models/error/ErrorResponse.js.map +1 -1
  141. package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
  142. package/esm/models/filters/BaseFilterModel.js.map +1 -1
  143. package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
  144. package/esm/models/filters/FilterCollection.js.map +1 -1
  145. package/esm/models/filters/FilterModel.js.map +1 -1
  146. package/esm/models/filters/RangeFilterModel.js.map +1 -1
  147. package/esm/models/form/FormModel.js.map +1 -1
  148. package/esm/models/form/FormObjectModel.js.map +1 -1
  149. package/esm/models/grouping/GroupingModel.js.map +1 -1
  150. package/esm/models/href/Href.js.map +1 -1
  151. package/esm/models/href/ListHref.js.map +1 -1
  152. package/esm/models/index.js.map +1 -1
  153. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  154. package/esm/models/links/LinkCollection.js.map +1 -1
  155. package/esm/models/links/LinkModel.js.map +1 -1
  156. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  157. package/esm/models/list/ListDetailModel.js.map +1 -1
  158. package/esm/models/list/ListHeaderModel.js.map +1 -1
  159. package/esm/models/list/ListItemCollection.js.map +1 -1
  160. package/esm/models/list/ListItemModel.js.map +1 -1
  161. package/esm/models/list/ListModel.js +2 -2
  162. package/esm/models/list/ListModel.js.map +1 -1
  163. package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
  164. package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
  165. package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  166. package/esm/models/paging/PagesizeModel.js.map +1 -1
  167. package/esm/models/paging/PagingModel.js.map +1 -1
  168. package/esm/models/panels/GroupingPanelModel.js.map +1 -1
  169. package/esm/models/parameter/Parameter.js.map +1 -1
  170. package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
  171. package/esm/models/resolveModel.js.map +1 -1
  172. package/esm/models/search/CaseSearchModel.js.map +1 -1
  173. package/esm/models/sorting/SortOptionModel.js.map +1 -1
  174. package/esm/models/sorting/SortingModel.js.map +1 -1
  175. package/esm/models/tab/TabModel.js.map +1 -1
  176. package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
  177. package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
  178. package/esm/models/types.js.map +1 -1
  179. package/esm/models/user/UserModel.js.map +1 -1
  180. package/esm/models/user/UserProfileModel.js.map +1 -1
  181. package/esm/models/user/UserServicesModel.js.map +1 -1
  182. package/esm/modularui/Authenticate.js +9 -9
  183. package/esm/modularui/Authenticate.js.map +1 -1
  184. package/esm/modularui/ModularUIError.js.map +1 -1
  185. package/esm/modularui/ModularUIRequest.js.map +1 -1
  186. package/esm/modularui/ModularUIResponse.js.map +1 -1
  187. package/esm/modularui/index.js.map +1 -1
  188. package/esm/react/ErrorBoundary.js.map +1 -1
  189. package/esm/react/ErrorBoundaryFallback.js.map +1 -1
  190. package/esm/react/index.js.map +1 -1
  191. package/esm/react/utils.js.map +1 -1
  192. package/esm/react-client/Init.js.map +1 -1
  193. package/esm/react-client/client.js +3 -2
  194. package/esm/react-client/client.js.map +1 -1
  195. package/esm/react-client/contextPath.js.map +1 -1
  196. package/esm/react-client/index.js.map +1 -1
  197. package/esm/react-client/rehydrate.js.map +1 -1
  198. package/esm/react-server/contextPath.js.map +1 -1
  199. package/esm/react-server/createSSRComplete.js.map +1 -1
  200. package/esm/react-server/htmlpage.js.map +1 -1
  201. package/esm/react-server/index.js.map +1 -1
  202. package/esm/react-server/renderSSRComplete.js.map +1 -1
  203. package/esm/react-server/renderSSRMinimal.js.map +1 -1
  204. package/esm/react-server/requestInformation.js.map +1 -1
  205. package/esm/react-server/serverNoSSR.js.map +1 -1
  206. package/esm/react-server/serverSSR.js.map +1 -1
  207. package/esm/react-server/serverUtil.js +2 -1
  208. package/esm/react-server/serverUtil.js.map +1 -1
  209. package/esm/react-theme/ThemeProvider.js.map +1 -1
  210. package/esm/react-theme/createTheme.js.map +1 -1
  211. package/esm/react-theme/index.js.map +1 -1
  212. package/esm/react-theme/types.js.map +1 -1
  213. package/esm/react-theme/useTheme.js.map +1 -1
  214. package/esm/react-theme/utils/background.js.map +1 -1
  215. package/esm/react-theme/utils/colors.js.map +1 -1
  216. package/esm/react-theme/utils/contrast.js.map +1 -1
  217. package/esm/react-theme/utils/corners.js.map +1 -1
  218. package/esm/react-theme/utils/spacers.js.map +1 -1
  219. package/esm/react-theme/utils/themeProps.js.map +1 -1
  220. package/esm/redux/_i18n/actions.js.map +1 -1
  221. package/esm/redux/_i18n/index.js.map +1 -1
  222. package/esm/redux/_i18n/reducer.js.map +1 -1
  223. package/esm/redux/_i18n/types.js.map +1 -1
  224. package/esm/redux/_modularui/actions.js.map +1 -1
  225. package/esm/redux/_modularui/connector.js.map +1 -1
  226. package/esm/redux/_modularui/index.js.map +1 -1
  227. package/esm/redux/_modularui/middleware.js.map +1 -1
  228. package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
  229. package/esm/redux/_modularui/reducer.js.map +1 -1
  230. package/esm/redux/_modularui/selectors.js.map +1 -1
  231. package/esm/redux/_modularui/types.js.map +1 -1
  232. package/esm/redux/_modularui/withModularUI.js.map +1 -1
  233. package/esm/redux/_router/actions.js.map +1 -1
  234. package/esm/redux/_router/connectors.js.map +1 -1
  235. package/esm/redux/_router/index.js.map +1 -1
  236. package/esm/redux/_router/middleware.js.map +1 -1
  237. package/esm/redux/_router/reducer.js.map +1 -1
  238. package/esm/redux/_router/types.js.map +1 -1
  239. package/esm/redux/actions/Application.js.map +1 -1
  240. package/esm/redux/actions/Authorization.js.map +1 -1
  241. package/esm/redux/actions/Error.js.map +1 -1
  242. package/esm/redux/actions/Form.js.map +1 -1
  243. package/esm/redux/actions/FormAttributeSet.js +5 -11
  244. package/esm/redux/actions/FormAttributeSet.js.map +1 -1
  245. package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  246. package/esm/redux/actions/FormAutosave.js.map +1 -1
  247. package/esm/redux/actions/FormAutosubmit.js.map +1 -1
  248. package/esm/redux/actions/FormValidations.js.map +1 -1
  249. package/esm/redux/actions/Modals.js.map +1 -1
  250. package/esm/redux/actions/Notification.js.map +1 -1
  251. package/esm/redux/actions/Preferences.js +32 -2
  252. package/esm/redux/actions/Preferences.js.map +1 -1
  253. package/esm/redux/actions/ProgressIndicator.js.map +1 -1
  254. package/esm/redux/actions/SignIn.js.map +1 -1
  255. package/esm/redux/actions/SignOut.js.map +1 -1
  256. package/esm/redux/actions/index.js.map +1 -1
  257. package/esm/redux/connectors/Application.js.map +1 -1
  258. package/esm/redux/connectors/Breadcrumb.js.map +1 -1
  259. package/esm/redux/connectors/CaseView.js.map +1 -1
  260. package/esm/redux/connectors/ConceptDetail.js.map +1 -1
  261. package/esm/redux/connectors/ContentBrowser.js.map +1 -1
  262. package/esm/redux/connectors/ContentDetail.js.map +1 -1
  263. package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
  264. package/esm/redux/connectors/Form.js.map +1 -1
  265. package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
  266. package/esm/redux/connectors/ListDetail.js.map +1 -1
  267. package/esm/redux/connectors/Modal.js.map +1 -1
  268. package/esm/redux/connectors/ModelCatalog.js.map +1 -1
  269. package/esm/redux/connectors/Notification.js.map +1 -1
  270. package/esm/redux/connectors/PanelRenderer.js.map +1 -1
  271. package/esm/redux/connectors/Preferences.js.map +1 -1
  272. package/esm/redux/connectors/Progress.js.map +1 -1
  273. package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
  274. package/esm/redux/connectors/QuickSearch.js.map +1 -1
  275. package/esm/redux/connectors/SignIn.js.map +1 -1
  276. package/esm/redux/connectors/SignOut.js.map +1 -1
  277. package/esm/redux/connectors/Tab.js.map +1 -1
  278. package/esm/redux/connectors/index.js.map +1 -1
  279. package/esm/redux/index.js.map +1 -1
  280. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  281. package/esm/redux/reducers/ErrorReducer.js.map +1 -1
  282. package/esm/redux/reducers/ModalsReducer.js.map +1 -1
  283. package/esm/redux/reducers/NotificationReducer.js.map +1 -1
  284. package/esm/redux/reducers/PreferencesReducer.js +5 -1
  285. package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
  286. package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  287. package/esm/redux/reducers/createReducer.js.map +1 -1
  288. package/esm/redux/reducers/index.js.map +1 -1
  289. package/esm/redux/store/beforeRenderHooks.js.map +1 -1
  290. package/esm/redux/store/configureStore.js.map +1 -1
  291. package/esm/redux/types.js.map +1 -1
  292. package/esm/utils/browser/Cache.js.map +1 -1
  293. package/esm/utils/browser/Cookies.js.map +1 -1
  294. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  295. package/esm/utils/fetch/serverFetch.js.map +1 -1
  296. package/esm/utils/fetch/types.js.map +1 -1
  297. package/esm/utils/fetch/universalFetch.js.map +1 -1
  298. package/esm/utils/fetch/xhr.js.map +1 -1
  299. package/esm/utils/helpers/checkResource.js.map +1 -1
  300. package/esm/utils/helpers/createHash.js.map +1 -1
  301. package/esm/utils/helpers/createUUID.js.map +1 -1
  302. package/esm/utils/helpers/objects.js.map +1 -1
  303. package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
  304. package/esm/utils/helpers/text.js.map +1 -1
  305. package/esm/utils/index.js.map +1 -1
  306. package/esm/utils/number/DecimalFormat.js.map +1 -1
  307. package/esm/utils/number/formatValue.js.map +1 -1
  308. package/esm/utils/number/parseNumbers.js.map +1 -1
  309. package/lib/builder/index.js.map +1 -1
  310. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  311. package/lib/constants/Constants.js +9 -1
  312. package/lib/constants/Constants.js.flow +5 -0
  313. package/lib/constants/Constants.js.map +1 -1
  314. package/lib/constants/LayoutHintConfig.js.map +1 -1
  315. package/lib/constants/LayoutHints.js.map +1 -1
  316. package/lib/constants/Settings.js +37 -1
  317. package/lib/constants/Settings.js.flow +25 -1
  318. package/lib/constants/Settings.js.map +1 -1
  319. package/lib/constants/index.js.map +1 -1
  320. package/lib/exceptions/ConfigurationException.js.map +1 -1
  321. package/lib/exceptions/FetchException.js.map +1 -1
  322. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  323. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  324. package/lib/exceptions/IllegalStateException.js.map +1 -1
  325. package/lib/exceptions/JsonParseException.js.map +1 -1
  326. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  327. package/lib/exceptions/NetworkException.js.map +1 -1
  328. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  329. package/lib/exceptions/NotFoundException.js.map +1 -1
  330. package/lib/exceptions/ServerRequestException.js.map +1 -1
  331. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  332. package/lib/exceptions/TimeoutException.js.map +1 -1
  333. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  334. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  335. package/lib/exceptions/index.js.map +1 -1
  336. package/lib/hooks/index.js.map +1 -1
  337. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  338. package/lib/hooks/useAuthentication.js.map +1 -1
  339. package/lib/hooks/useContent.js.map +1 -1
  340. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  341. package/lib/hooks/useForm.js +2 -15
  342. package/lib/hooks/useForm.js.flow +0 -14
  343. package/lib/hooks/useForm.js.map +1 -1
  344. package/lib/hooks/useI18n.js.map +1 -1
  345. package/lib/hooks/useModal.js.map +1 -1
  346. package/lib/hooks/useModelCatalog.js.map +1 -1
  347. package/lib/hooks/useModels.js.map +1 -1
  348. package/lib/hooks/useModularUI.js.map +1 -1
  349. package/lib/hooks/useModularUIBasic.js.map +1 -1
  350. package/lib/hooks/useModularUIModel.js.map +1 -1
  351. package/lib/hooks/useModularUIRequest.js.map +1 -1
  352. package/lib/hooks/useNotification.js.map +1 -1
  353. package/lib/hooks/usePreference.js.map +1 -1
  354. package/lib/hooks/useProgressIndicator.js.map +1 -1
  355. package/lib/hooks/useRouter.js.map +1 -1
  356. package/lib/i18n/Locale.js +2 -1
  357. package/lib/i18n/Locale.js.flow +4 -2
  358. package/lib/i18n/Locale.js.map +1 -1
  359. package/lib/i18n/Locales.js.map +1 -1
  360. package/lib/i18n/Message.js.map +1 -1
  361. package/lib/i18n/__tests__/Locale.spec.js.flow +3 -2
  362. package/lib/i18n/index.js.map +1 -1
  363. package/lib/i18n/languages.js.map +1 -1
  364. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  365. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  366. package/lib/i18n/types.js.map +1 -1
  367. package/lib/i18n/withMessage.js.map +1 -1
  368. package/lib/index.js.map +1 -1
  369. package/lib/models/actions/ActionCollection.js.map +1 -1
  370. package/lib/models/actions/ActionModel.js.map +1 -1
  371. package/lib/models/application/ApplicationModel.js.map +1 -1
  372. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  373. package/lib/models/attributes/AttributeContent.js.map +1 -1
  374. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  375. package/lib/models/attributes/AttributeModel.js.map +1 -1
  376. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  377. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  378. package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
  379. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  380. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  381. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  382. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  383. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  384. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  385. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  386. package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
  387. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  388. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  389. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  390. package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
  391. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  392. package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
  393. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  394. package/lib/models/attributes/_createAttribute.js.map +1 -1
  395. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  396. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  397. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  398. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  399. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  400. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  401. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  402. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  403. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  404. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  405. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  406. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  407. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  408. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  409. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  410. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  411. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  412. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  413. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  414. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  415. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  416. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  417. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  418. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  419. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  420. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  421. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  422. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  423. package/lib/models/base/BaseCollection.js.map +1 -1
  424. package/lib/models/base/BaseModel.js.map +1 -1
  425. package/lib/models/base/ResourceCollection.js.map +1 -1
  426. package/lib/models/base/ResourceModel.js.map +1 -1
  427. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  428. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  429. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  430. package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
  431. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  432. package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
  433. package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
  434. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  435. package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
  436. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  437. package/lib/models/content/ContentIndexModel.js.map +1 -1
  438. package/lib/models/content/ContentLinkModel.js.map +1 -1
  439. package/lib/models/content/ContentModel.js.map +1 -1
  440. package/lib/models/content/ContentTOCModel.js.map +1 -1
  441. package/lib/models/content/ContentTypeModel.js.map +1 -1
  442. package/lib/models/content/SectionModel.js.map +1 -1
  443. package/lib/models/content/SubSectionModel.js.map +1 -1
  444. package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  445. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  446. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  447. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  448. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  449. package/lib/models/detail/DetailModel.js.map +1 -1
  450. package/lib/models/error/ErrorCollection.js.map +1 -1
  451. package/lib/models/error/ErrorModel.js.map +1 -1
  452. package/lib/models/error/ErrorResponse.js.map +1 -1
  453. package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
  454. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  455. package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
  456. package/lib/models/filters/FilterCollection.js.map +1 -1
  457. package/lib/models/filters/FilterModel.js.map +1 -1
  458. package/lib/models/filters/RangeFilterModel.js.map +1 -1
  459. package/lib/models/form/FormModel.js.map +1 -1
  460. package/lib/models/form/FormObjectModel.js.map +1 -1
  461. package/lib/models/grouping/GroupingModel.js.map +1 -1
  462. package/lib/models/href/Href.js.map +1 -1
  463. package/lib/models/href/ListHref.js.map +1 -1
  464. package/lib/models/index.js.map +1 -1
  465. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  466. package/lib/models/links/LinkCollection.js.map +1 -1
  467. package/lib/models/links/LinkModel.js.map +1 -1
  468. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  469. package/lib/models/list/ListDetailModel.js.map +1 -1
  470. package/lib/models/list/ListHeaderModel.js.map +1 -1
  471. package/lib/models/list/ListItemCollection.js.map +1 -1
  472. package/lib/models/list/ListItemModel.js.map +1 -1
  473. package/lib/models/list/ListModel.js +2 -2
  474. package/lib/models/list/ListModel.js.flow +1 -2
  475. package/lib/models/list/ListModel.js.map +1 -1
  476. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  477. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  478. package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  479. package/lib/models/paging/PagesizeModel.js.map +1 -1
  480. package/lib/models/paging/PagingModel.js.map +1 -1
  481. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  482. package/lib/models/parameter/Parameter.js.map +1 -1
  483. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  484. package/lib/models/resolveModel.js.map +1 -1
  485. package/lib/models/search/CaseSearchModel.js.map +1 -1
  486. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  487. package/lib/models/sorting/SortingModel.js.map +1 -1
  488. package/lib/models/tab/TabModel.js.map +1 -1
  489. package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
  490. package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
  491. package/lib/models/types.js.map +1 -1
  492. package/lib/models/user/UserModel.js.map +1 -1
  493. package/lib/models/user/UserProfileModel.js.map +1 -1
  494. package/lib/models/user/UserServicesModel.js.map +1 -1
  495. package/lib/modularui/Authenticate.js +10 -10
  496. package/lib/modularui/Authenticate.js.flow +11 -7
  497. package/lib/modularui/Authenticate.js.map +1 -1
  498. package/lib/modularui/ModularUIError.js.map +1 -1
  499. package/lib/modularui/ModularUIRequest.js.map +1 -1
  500. package/lib/modularui/ModularUIResponse.js.map +1 -1
  501. package/lib/modularui/index.js.map +1 -1
  502. package/lib/react/ErrorBoundary.js.map +1 -1
  503. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  504. package/lib/react/index.js.map +1 -1
  505. package/lib/react/utils.js.map +1 -1
  506. package/lib/react-client/Init.js.map +1 -1
  507. package/lib/react-client/client.js +2 -1
  508. package/lib/react-client/client.js.flow +5 -1
  509. package/lib/react-client/client.js.map +1 -1
  510. package/lib/react-client/contextPath.js.map +1 -1
  511. package/lib/react-client/index.js.map +1 -1
  512. package/lib/react-client/rehydrate.js.map +1 -1
  513. package/lib/react-server/__tests__/serverUtil.spec.js.flow +18 -0
  514. package/lib/react-server/contextPath.js.map +1 -1
  515. package/lib/react-server/createSSRComplete.js.map +1 -1
  516. package/lib/react-server/htmlpage.js.map +1 -1
  517. package/lib/react-server/index.js.map +1 -1
  518. package/lib/react-server/renderSSRComplete.js.map +1 -1
  519. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  520. package/lib/react-server/requestInformation.js.map +1 -1
  521. package/lib/react-server/serverNoSSR.js.map +1 -1
  522. package/lib/react-server/serverSSR.js.map +1 -1
  523. package/lib/react-server/serverUtil.js +1 -0
  524. package/lib/react-server/serverUtil.js.flow +2 -0
  525. package/lib/react-server/serverUtil.js.map +1 -1
  526. package/lib/react-theme/ThemeProvider.js.map +1 -1
  527. package/lib/react-theme/createTheme.js.map +1 -1
  528. package/lib/react-theme/index.js.map +1 -1
  529. package/lib/react-theme/types.js.map +1 -1
  530. package/lib/react-theme/useTheme.js.map +1 -1
  531. package/lib/react-theme/utils/background.js.map +1 -1
  532. package/lib/react-theme/utils/colors.js.map +1 -1
  533. package/lib/react-theme/utils/contrast.js.map +1 -1
  534. package/lib/react-theme/utils/corners.js.map +1 -1
  535. package/lib/react-theme/utils/spacers.js.map +1 -1
  536. package/lib/react-theme/utils/themeProps.js.map +1 -1
  537. package/lib/redux/_i18n/actions.js.map +1 -1
  538. package/lib/redux/_i18n/index.js.map +1 -1
  539. package/lib/redux/_i18n/reducer.js.map +1 -1
  540. package/lib/redux/_i18n/types.js.map +1 -1
  541. package/lib/redux/_modularui/actions.js.map +1 -1
  542. package/lib/redux/_modularui/connector.js.map +1 -1
  543. package/lib/redux/_modularui/index.js.map +1 -1
  544. package/lib/redux/_modularui/middleware.js.map +1 -1
  545. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  546. package/lib/redux/_modularui/reducer.js.map +1 -1
  547. package/lib/redux/_modularui/selectors.js.map +1 -1
  548. package/lib/redux/_modularui/types.js.map +1 -1
  549. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  550. package/lib/redux/_router/actions.js.map +1 -1
  551. package/lib/redux/_router/connectors.js.map +1 -1
  552. package/lib/redux/_router/index.js.map +1 -1
  553. package/lib/redux/_router/middleware.js.map +1 -1
  554. package/lib/redux/_router/reducer.js.map +1 -1
  555. package/lib/redux/_router/types.js.map +1 -1
  556. package/lib/redux/actions/Application.js.map +1 -1
  557. package/lib/redux/actions/Authorization.js.map +1 -1
  558. package/lib/redux/actions/Error.js.map +1 -1
  559. package/lib/redux/actions/Form.js.map +1 -1
  560. package/lib/redux/actions/FormAttributeSet.js +6 -15
  561. package/lib/redux/actions/FormAttributeSet.js.flow +3 -16
  562. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  563. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  564. package/lib/redux/actions/FormAutosave.js.map +1 -1
  565. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  566. package/lib/redux/actions/FormValidations.js.map +1 -1
  567. package/lib/redux/actions/Modals.js.map +1 -1
  568. package/lib/redux/actions/Notification.js.map +1 -1
  569. package/lib/redux/actions/Preferences.js +41 -1
  570. package/lib/redux/actions/Preferences.js.flow +49 -2
  571. package/lib/redux/actions/Preferences.js.map +1 -1
  572. package/lib/redux/actions/ProgressIndicator.js.map +1 -1
  573. package/lib/redux/actions/SignIn.js.map +1 -1
  574. package/lib/redux/actions/SignOut.js.map +1 -1
  575. package/lib/redux/actions/__tests__/Preferences.spec.js.flow +11 -0
  576. package/lib/redux/actions/index.js.map +1 -1
  577. package/lib/redux/connectors/Application.js.map +1 -1
  578. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  579. package/lib/redux/connectors/CaseView.js.map +1 -1
  580. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  581. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  582. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  583. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  584. package/lib/redux/connectors/Form.js.map +1 -1
  585. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  586. package/lib/redux/connectors/ListDetail.js.map +1 -1
  587. package/lib/redux/connectors/Modal.js.map +1 -1
  588. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  589. package/lib/redux/connectors/Notification.js.map +1 -1
  590. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  591. package/lib/redux/connectors/Preferences.js.map +1 -1
  592. package/lib/redux/connectors/Progress.js.map +1 -1
  593. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  594. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  595. package/lib/redux/connectors/SignIn.js.map +1 -1
  596. package/lib/redux/connectors/SignOut.js.map +1 -1
  597. package/lib/redux/connectors/Tab.js.map +1 -1
  598. package/lib/redux/connectors/index.js.map +1 -1
  599. package/lib/redux/index.js.map +1 -1
  600. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  601. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  602. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  603. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  604. package/lib/redux/reducers/PreferencesReducer.js +5 -1
  605. package/lib/redux/reducers/PreferencesReducer.js.flow +8 -1
  606. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  607. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  608. package/lib/redux/reducers/__tests__/PreferencesReducer.spec.js.flow +12 -0
  609. package/lib/redux/reducers/createReducer.js.map +1 -1
  610. package/lib/redux/reducers/index.js.map +1 -1
  611. package/lib/redux/store/beforeRenderHooks.js.map +1 -1
  612. package/lib/redux/store/configureStore.js.map +1 -1
  613. package/lib/redux/types.js.flow +5 -0
  614. package/lib/redux/types.js.map +1 -1
  615. package/lib/utils/browser/Cache.js.map +1 -1
  616. package/lib/utils/browser/Cookies.js.map +1 -1
  617. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  618. package/lib/utils/fetch/serverFetch.js.map +1 -1
  619. package/lib/utils/fetch/types.js.map +1 -1
  620. package/lib/utils/fetch/universalFetch.js.map +1 -1
  621. package/lib/utils/fetch/xhr.js.map +1 -1
  622. package/lib/utils/helpers/checkResource.js.map +1 -1
  623. package/lib/utils/helpers/createHash.js.map +1 -1
  624. package/lib/utils/helpers/createUUID.js.map +1 -1
  625. package/lib/utils/helpers/objects.js.map +1 -1
  626. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  627. package/lib/utils/helpers/text.js.map +1 -1
  628. package/lib/utils/index.js.map +1 -1
  629. package/lib/utils/number/DecimalFormat.js.map +1 -1
  630. package/lib/utils/number/formatValue.js.map +1 -1
  631. package/lib/utils/number/parseNumbers.js.map +1 -1
  632. package/package.json +20 -18
  633. package/src/constants/Constants.js +5 -0
  634. package/src/constants/Settings.js +25 -1
  635. package/src/hooks/useForm.js +0 -14
  636. package/src/i18n/Locale.js +4 -2
  637. package/src/i18n/__tests__/Locale.spec.js +3 -2
  638. package/src/models/list/ListModel.js +1 -2
  639. package/src/modularui/Authenticate.js +11 -7
  640. package/src/react-client/client.js +5 -1
  641. package/src/react-server/__tests__/serverUtil.spec.js +18 -0
  642. package/src/react-server/serverUtil.js +2 -0
  643. package/src/redux/actions/FormAttributeSet.js +3 -16
  644. package/src/redux/actions/Preferences.js +49 -2
  645. package/src/redux/actions/__tests__/Preferences.spec.js +11 -0
  646. package/src/redux/reducers/PreferencesReducer.js +8 -1
  647. package/src/redux/reducers/__tests__/PreferencesReducer.spec.js +12 -0
  648. package/src/redux/types.js +5 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/Preferences.js"],"names":["isPlainObject","JsonParseException","setSettings","setSetting","ALL_CONTENT_IN_DATA_SETTING","getServerPreferenceValue","preferenceName","defaultValue","type","value","preferencesProvider","getPreferenceByName","split","val","setServerPreference","propertyName","setPreference","propertyValue","payload","setThemePreference","configTheme","themeData","JSON","parse","error","settings","setAllContentInDataSetting","state","allContentInDataSetting","getModularUIContentInData","preferences"],"mappings":";;;;AACA,SAASA,aAAT,QAA8B,6BAA9B;AAEA,SAASC,kBAAT,QAAmC,kBAAnC;AACA,SAASC,WAAT,EAAsBC,UAAtB,QAAwC,0BAAxC;AAOA,SAASC,2BAAT,QAA4C,iBAA5C;AAEA;AACA;;AACA,IAAMC,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,0BAAAC,KAAK,MAAL,CAAAA,KAAK,EAAU,GAAV,CAA3D,EAA2E;AAAA;;AACzEA,IAAAA,KAAK,GAAG,gCAAAA,KAAK,CAACG,KAAN,CAAY,GAAZ,kBAAqB,UAACC,GAAD;AAAA,aAAS,sBAAAA,GAAG,MAAH,CAAAA,GAAG,CAAZ;AAAA,KAArB,CAAR;AACD;;AAED,SAAOJ,KAAP;AACD,CAnBD;AAqBA;AACA;;;AACA,OAAO,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;;AACA,OAAO,IAAMO,aAAa,GAAG,SAAhBA,aAAgB,CAC3BD,YAD2B;AAAA,MAE3BE,aAF2B,uEAEM,IAFN;AAAA,SAGF;AACzBT,IAAAA,IAAI,EAAE,gBADmB;AAEzBU,IAAAA,OAAO,sBACJH,YADI,EACWE,aADX;AAFkB,GAHE;AAAA,CAAtB;AAUP;AACA;;AACA,OAAO,IAAME,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,IAAIvB,kBAAJ,6CAA4DuB,KAA5D,EAAN;AACD;;AAED,MAAIH,SAAS,IAAIrB,aAAa,CAACqB,SAAD,CAA9B,EAA2C;AACzCnB,IAAAA,WAAW,CAACmB,SAAS,CAACI,QAAX,CAAX;AACD;;AAED,SAAOT,aAAa,CAAC,OAAD,EAAUK,SAAV,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;AACA,OAAO,IAAMK,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,KADwC,EAEhB;AACxB,MAAIC,uBAAuB,GAAG,KAA9B;;AAEA,MACE,OAAOlB,mBAAP,KAA+B,WAA/B,IACA,OAAOA,mBAAmB,CAACmB,yBAA3B,KAAyD,WAF3D,EAGE;AACAD,IAAAA,uBAAuB,GAAGlB,mBAAmB,CAACmB,yBAApB,EAA1B;AACD,GALD,MAKO,IAAI,OAAOF,KAAP,KAAiB,WAArB,EAAkC;AACvCC,IAAAA,uBAAuB,GAAGD,KAAK,CAACG,WAAN,CAAkB1B,2BAAlB,CAA1B;AACD;;AAEDD,EAAAA,UAAU,CAACC,2BAAD,EAA8B,CAAC,CAACwB,uBAAhC,CAAV;AACA,SAAOZ,aAAa,CAACZ,2BAAD,EAA8BwB,uBAA9B,CAApB;AACD,CAhBM","sourcesContent":["// @flow\nimport { isPlainObject } from \"../../utils/helpers/objects\";\n\nimport { JsonParseException } from \"../../exceptions\";\nimport { setSettings, setSetting } from \"../../constants/Settings\";\n\nimport type {\n PreferenceValue,\n ReduxState,\n SetPreferenceAction,\n} from \"../types\";\nimport { ALL_CONTENT_IN_DATA_SETTING } 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 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"],"file":"Preferences.js"}
1
+ {"version":3,"file":"Preferences.js","names":["isPlainObject","JsonParseException","setSetting","setSettings","BASE","ALL_CONTENT_IN_DATA_SETTING","LOGIN_PASSWORD_SETTING","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGOUT_PATH_SETTING","getServerPreferenceValue","preferenceName","defaultValue","type","value","preferencesProvider","getPreferenceByName","split","val","setServerPreference","propertyName","setPreference","propertyValue","payload","setPreferences","preferences","setThemePreference","configTheme","themeData","JSON","parse","error","settings","setAllContentInDataSetting","state","allContentInDataSetting","getModularUIContentInData","setLoginPreferences","loginSettings"],"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 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"],"mappings":";;;;;;;;;;;;;;AACA,SAASA,aAAT,QAA8B,6BAA9B;AAEA,SAASC,kBAAT,QAAmC,kBAAnC;AACA,SAASC,UAAT,EAAqBC,WAArB,QAAwC,0BAAxC;AASA,SACEC,IADF,EAEEC,2BAFF,EAGEC,sBAHF,EAIEC,kBAJF,EAKEC,sBALF,EAMEC,mBANF,QAOO,iBAPP;AASA;AACA;;AACA,IAAMC,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,0BAAAC,KAAK,MAAL,CAAAA,KAAK,EAAU,GAAV,CAA3D,EAA2E;IAAA;;IACzEA,KAAK,GAAG,gCAAAA,KAAK,CAACG,KAAN,CAAY,GAAZ,kBAAqB,UAACC,GAAD;MAAA,OAAS,sBAAAA,GAAG,MAAH,CAAAA,GAAG,CAAZ;IAAA,CAArB,CAAR;EACD;;EAED,OAAOJ,KAAP;AACD,CAnBD;AAqBA;AACA;;;AACA,OAAO,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;;AACA,OAAO,IAAMO,aAAa,GAAG,SAAhBA,aAAgB,CAC3BD,YAD2B;EAAA,IAE3BE,aAF2B,uEAEM,IAFN;EAAA,OAGF;IACzBT,IAAI,EAAE,gBADmB;IAEzBU,OAAO,sBACJH,YADI,EACWE,aADX;EAFkB,CAHE;AAAA,CAAtB;AAUP;AACA;;AACA,OAAO,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD;EAAA,OAAgD;IAC5EZ,IAAI,EAAE,iBADsE;IAE5EU,OAAO,oBACFE,WADE;EAFqE,CAAhD;AAAA,CAAvB;AAOP;AACA;;AACA,OAAO,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,IAAI9B,kBAAJ,6CAA4D8B,KAA5D,EAAN;EACD;;EAED,IAAIH,SAAS,IAAI5B,aAAa,CAAC4B,SAAD,CAA9B,EAA2C;IACzCzB,WAAW,CAACyB,SAAS,CAACI,QAAX,CAAX;EACD;;EAED,OAAOX,aAAa,CAAC,OAAD,EAAUO,SAAV,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;AACA,OAAO,IAAMK,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,KADwC,EAEhB;EACxB,IAAIC,uBAAuB,GAAG,KAA9B;;EAEA,IACE,OAAOpB,mBAAP,KAA+B,WAA/B,IACA,OAAOA,mBAAmB,CAACqB,yBAA3B,KAAyD,WAF3D,EAGE;IACAD,uBAAuB,GAAGpB,mBAAmB,CAACqB,yBAApB,EAA1B;EACD,CALD,MAKO,IAAI,OAAOF,KAAP,KAAiB,WAArB,EAAkC;IACvCC,uBAAuB,GAAGD,KAAK,CAACT,WAAN,CAAkBpB,2BAAlB,CAA1B;EACD;;EAEDH,UAAU,CAACG,2BAAD,EAA8B,CAAC,CAAC8B,uBAAhC,CAAV;EACA,OAAOd,aAAa,CAAChB,2BAAD,EAA8B8B,uBAA9B,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;AACA,OAAO,IAAME,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCH,KADiC,EAER;EAAA;;EACzB,IAAMI,aAAa,yDAChB/B,kBADgB,EACKG,wBAAwB,CAC5CH,kBAD4C,2BAE5C2B,KAF4C,aAE5CA,KAF4C,uBAE5CA,KAAK,CAAET,WAAP,CAAmBlB,kBAAnB,CAF4C,mFAECH,IAFD,uBAD7B,mCAKhBI,sBALgB,EAKSE,wBAAwB,CAChDF,sBADgD,4BAEhD0B,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAET,WAAP,CAAmBjB,sBAAnB,CAFgD,2EAEF,YAFE,CALjC,mCAShBF,sBATgB,EASSI,wBAAwB,CAChDJ,sBADgD,4BAEhD4B,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAET,WAAP,CAAmBnB,sBAAnB,CAFgD,2EAEF,YAFE,CATjC,mCAahBG,mBAbgB,EAaMC,wBAAwB,CAC7CD,mBAD6C,4BAE7CyB,KAF6C,aAE7CA,KAF6C,uBAE7CA,KAAK,CAAET,WAAP,CAAmBhB,mBAAnB,CAF6C,qFAECL,IAFD,aAb9B,kBAAnB;EAmBAD,WAAW,CAACmC,aAAD,CAAX;EACA,OAAOd,cAAc,CAACc,aAAD,CAArB;AACD,CAxBM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/ProgressIndicator.js"],"names":["startProgress","type","finishProgress","resetProgress","updateProgress","percentComplete","payload"],"mappings":"AAQA;;AACA;AACA;AACA;AACA,OAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDC,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB;AAAA,SAA6B;AACzDD,IAAAA,IAAI,EAAE;AADmD,GAA7B;AAAA,CAAvB;AAIP;AACA;AACA;;AACA,OAAO,IAAME,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDF,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,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;AACA,OAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB;EAAA,OAA6B;IACzDD,IAAI,EAAE;EADmD,CAA7B;AAAA,CAAvB;AAIP;AACA;AACA;;AACA,OAAO,IAAME,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDF,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,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":["Cache","Authenticate","reloadApplication","startProgress","finishProgress","push","CHANGEPASSWORD_PATH","loginFailed","errorMessage","type","payload","resetAuthErrors","loginSuccess","changePassword","dispatch","getState","isModal","router","location","state","modal","locationFrom","from","login","username","password","then","addItem","catch","error","id","dispatchedReloadApplication","resolve"],"mappings":";AACA,OAAOA,KAAP,MAAkB,2BAAlB;AACA,OAAOC,YAAP,MAAyB,8BAAzB;AAEA,SAASC,iBAAT,QAAkC,eAAlC;AAEA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,IAAT,QAAqB,oBAArB;AACA,SAASC,mBAAT,QAAoC,2BAApC;;AASA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD;AAAA,SAA8C;AACvEC,IAAAA,IAAI,EAAE,sBADiE;AAEvEC,IAAAA,OAAO,EAAEF;AAF8D,GAA9C;AAAA,CAApB;AAKP;AACA;AACA;;AACA,OAAO,IAAMG,eAAe,GAAG,SAAlBA,eAAkB;AAAA,SAA8B;AAC3DF,IAAAA,IAAI,EAAE;AADqD,GAA9B;AAAA,CAAxB;AAIP;AACA;AACA;;AACA,OAAO,IAAMG,YAAY,GAAG,SAAfA,YAAe;AAAA,SAA2B;AACrDH,IAAAA,IAAI,EAAE;AAD+C,GAA3B;AAAA,CAArB;AAIP;AACA;AACA;;AACA,OAAO,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,CACbT,IAAI,CAACC,mBAAD,EAAsB;AACxBgB,MAAAA,IAAI,EAAED,YAAY,GAAGA,YAAH,GAAkBN,QAAQ,GAAGE,MAAX,CAAkBC,QAD9B;AAExBE,MAAAA,KAAK,EAAEJ;AAFiB,KAAtB,CADS,CAAf;AAMD,GAb6B;AAAA,CAAvB;AAeP;AACA;;AACA,OAAO,IAAMO,KAAK,GAChB,SADWA,KACX,CAACC,QAAD,EAAmBC,QAAnB;AAAA,SACA,UAACX,QAAD,EAAc;AACZA,IAAAA,QAAQ,CAACX,aAAa,EAAd,CAAR;AAEA,WAAO,IAAIF,YAAJ,GACJsB,KADI,CACEC,QADF,EACYC,QADZ,EAEJC,IAFI,CAEC;AAAA,aAAMZ,QAAQ,CAACZ,iBAAiB,EAAlB,CAAd;AAAA,KAFD,EAGJwB,IAHI,CAGC,YAAM;AACV1B,MAAAA,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;AACAb,MAAAA,QAAQ,CAACF,YAAY,EAAb,CAAR;AAEA,aAAOE,QAAQ,CAACV,cAAc,EAAf,CAAf;AACD,KARI,EASJwB,KATI,CASE,UAACC,KAAD,EAAW;AAChB,UAAIA,KAAK,CAACC,EAAN,KAAa,8BAAjB,EAAiD;AAC/C,YAAMC,2BAA2B,GAAGjB,QAAQ,CAACZ,iBAAiB,EAAlB,CAA5C;AAEA,eAAO,SAAQ8B,OAAR,CAAgBD,2BAAhB,EAA6CL,IAA7C,CAAkD,YAAM;AAC7D1B,UAAAA,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;AACA,iBAAOb,QAAQ,CAACD,cAAc,EAAf,CAAf;AACD,SAHM,CAAP;AAID;;AAEDC,MAAAA,QAAQ,CAACP,WAAW,CAACsB,KAAK,CAACC,EAAP,CAAZ,CAAR;AACA,aAAOhB,QAAQ,CAACV,cAAc,EAAf,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":["Cache","Authenticate","reloadApplication","startProgress","finishProgress","push","CHANGEPASSWORD_PATH","loginFailed","errorMessage","type","payload","resetAuthErrors","loginSuccess","changePassword","dispatch","getState","isModal","router","location","state","modal","locationFrom","from","login","username","password","then","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,OAAOA,KAAP,MAAkB,2BAAlB;AACA,OAAOC,YAAP,MAAyB,8BAAzB;AAEA,SAASC,iBAAT,QAAkC,eAAlC;AAEA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,IAAT,QAAqB,oBAArB;AACA,SAASC,mBAAT,QAAoC,2BAApC;;AASA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD;EAAA,OAA8C;IACvEC,IAAI,EAAE,sBADiE;IAEvEC,OAAO,EAAEF;EAF8D,CAA9C;AAAA,CAApB;AAKP;AACA;AACA;;AACA,OAAO,IAAMG,eAAe,GAAG,SAAlBA,eAAkB;EAAA,OAA8B;IAC3DF,IAAI,EAAE;EADqD,CAA9B;AAAA,CAAxB;AAIP;AACA;AACA;;AACA,OAAO,IAAMG,YAAY,GAAG,SAAfA,YAAe;EAAA,OAA2B;IACrDH,IAAI,EAAE;EAD+C,CAA3B;AAAA,CAArB;AAIP;AACA;AACA;;AACA,OAAO,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,CACbT,IAAI,CAACC,mBAAD,EAAsB;MACxBgB,IAAI,EAAED,YAAY,GAAGA,YAAH,GAAkBN,QAAQ,GAAGE,MAAX,CAAkBC,QAD9B;MAExBE,KAAK,EAAEJ;IAFiB,CAAtB,CADS,CAAf;EAMD,CAb6B;AAAA,CAAvB;AAeP;AACA;;AACA,OAAO,IAAMO,KAAK,GAChB,SADWA,KACX,CAACC,QAAD,EAAmBC,QAAnB;EAAA,OACA,UAACX,QAAD,EAAc;IACZA,QAAQ,CAACX,aAAa,EAAd,CAAR;IAEA,OAAO,IAAIF,YAAJ,GACJsB,KADI,CACEC,QADF,EACYC,QADZ,EAEJC,IAFI,CAEC;MAAA,OAAMZ,QAAQ,CAACZ,iBAAiB,EAAlB,CAAd;IAAA,CAFD,EAGJwB,IAHI,CAGC,YAAM;MACV1B,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;MACAb,QAAQ,CAACF,YAAY,EAAb,CAAR;MAEA,OAAOE,QAAQ,CAACV,cAAc,EAAf,CAAf;IACD,CARI,EASJwB,KATI,CASE,UAACC,KAAD,EAAW;MAChB,IAAIA,KAAK,CAACC,EAAN,KAAa,8BAAjB,EAAiD;QAC/C,IAAMC,2BAA2B,GAAGjB,QAAQ,CAACZ,iBAAiB,EAAlB,CAA5C;QAEA,OAAO,SAAQ8B,OAAR,CAAgBD,2BAAhB,EAA6CL,IAA7C,CAAkD,YAAM;UAC7D1B,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;UACA,OAAOb,QAAQ,CAACD,cAAc,EAAf,CAAf;QACD,CAHM,CAAP;MAID;;MAEDC,QAAQ,CAACP,WAAW,CAACsB,KAAK,CAACC,EAAP,CAAZ,CAAR;MACA,OAAOhB,QAAQ,CAACV,cAAc,EAAf,CAAf;IACD,CArBI,CAAP;EAsBD,CA1BD;AAAA,CADK"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/SignOut.js"],"names":["Authenticate","startProgress","finishProgress","resetModularUI","logoutSuccess","type","logout","dispatch","then"],"mappings":"AACA,OAAOA,YAAP,MAAyB,8BAAzB;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,cAAT,QAA+B,uBAA/B;;AAIA;AACA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAA4B;AACvDC,IAAAA,IAAI,EAAE;AADiD,GAA5B;AAAA,CAAtB;AAIP;AACA;;AACA,OAAO,IAAMC,MAAM,GAAG,SAATA,MAAS;AAAA,SAAmB,UAACC,QAAD,EAAwB;AAC/DA,IAAAA,QAAQ,CAACN,aAAa,EAAd,CAAR;AAEA,WAAO,IAAID,YAAJ,GAAmBM,MAAnB,GAA4BE,IAA5B,CAAiC,YAAM;AAC5CD,MAAAA,QAAQ,CAACJ,cAAc,EAAf,CAAR;AACAI,MAAAA,QAAQ,CAACH,aAAa,EAAd,CAAR;AACA,aAAOG,QAAQ,CAACL,cAAc,EAAf,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":["Authenticate","startProgress","finishProgress","resetModularUI","logoutSuccess","type","logout","dispatch","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,OAAOA,YAAP,MAAyB,8BAAzB;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,cAAT,QAA+B,uBAA/B;;AAIA;AACA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;;AACA,OAAO,IAAMC,MAAM,GAAG,SAATA,MAAS;EAAA,OAAmB,UAACC,QAAD,EAAwB;IAC/DA,QAAQ,CAACN,aAAa,EAAd,CAAR;IAEA,OAAO,IAAID,YAAJ,GAAmBM,MAAnB,GAA4BE,IAA5B,CAAiC,YAAM;MAC5CD,QAAQ,CAACJ,cAAc,EAAf,CAAR;MACAI,QAAQ,CAACH,aAAa,EAAd,CAAR;MACA,OAAOG,QAAQ,CAACL,cAAc,EAAf,CAAf;IACD,CAJM,CAAP;EAKD,CARqB;AAAA,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/actions/index.js"],"names":[],"mappings":"AACA,cAAc,eAAd;AACA,cAAc,iBAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,oBAAd;AACA,cAAc,8BAAd;AACA,cAAc,gBAAd;AACA,cAAc,kBAAd;AACA,cAAc,mBAAd;AACA,cAAc,UAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,qBAAd;AACA,cAAc,UAAd;AACA,cAAc,WAAd","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,cAAc,eAAd;AACA,cAAc,iBAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,oBAAd;AACA,cAAc,8BAAd;AACA,cAAc,gBAAd;AACA,cAAc,kBAAd;AACA,cAAc,mBAAd;AACA,cAAc,UAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,qBAAd;AACA,cAAc,UAAd;AACA,cAAc,WAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Application.js"],"names":["modularui","connectApplication","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,kBAAsC,GAAGD,SAAS,CAC7D,aAD6D,EAE7D,GAF6D,EAG7D;AACEE,EAAAA,QAAQ,EAAE;AADZ,CAH6D,CAAxD","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,kBAAsC,GAAGD,SAAS,CAC7D,aAD6D,EAE7D,GAF6D,EAG7D;EACEE,QAAQ,EAAE;AADZ,CAH6D,CAAxD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Breadcrumb.js"],"names":["connect","getActiveModels","mapStateToProps","state","items","connectBreadcrumb"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,eAAT,QAAgC,yBAAhC;;AAWA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAoC;AAC1DC,IAAAA,KAAK,EAAEH,eAAe,CAACE,KAAD;AADoC,GAApC;AAAA,CAAxB;AAIA;AACA;;;AACA,OAAO,IAAME,iBAAqC,GAAGL,OAAO,CAO1DE,eAP0D,CAArD","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":["connect","getActiveModels","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,eAAT,QAAgC,yBAAhC;;AAWA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,KAAK,EAAEH,eAAe,CAACE,KAAD;EADoC,CAApC;AAAA,CAAxB;AAIA;AACA;;;AACA,OAAO,IAAME,iBAAqC,GAAGL,OAAO,CAO1DE,eAP0D,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/CaseView.js"],"names":["modularui","connectCaseView","match","url","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,eAAmC,GAAGD,SAAS,CAC1D,UAD0D,EAE1D;AAAA,MAAGE,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAF0D,EAG1D;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAH0D,CAArD","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,eAAmC,GAAGD,SAAS,CAC1D,UAD0D,EAE1D;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF0D,EAG1D;EACEC,QAAQ,EAAE;AADZ,CAH0D,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ConceptDetail.js"],"names":["modularui","connectConceptDetail","concept","location","search","propName"],"mappings":";AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;AAAA;;AAAA,MAAGE,OAAH,QAAGA,OAAH;AAAA,MAAYC,QAAZ,QAAYA,QAAZ;AAAA,gEAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAF+D,EAG/D;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAH+D,CAA1D","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;EAAA;;EAAA,IAAGE,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,8DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAF+D,EAG/D;EAAEC,QAAQ,EAAE;AAAZ,CAH+D,CAA1D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentBrowser.js"],"names":["modularui","connectContentBrowser","href","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,qBAAyC,GAAGD,SAAS,CAChE,gBADgE,EAEhE;AAAA,MAAGE,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAFgE,EAGhE;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHgE,CAA3D","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,qBAAyC,GAAGD,SAAS,CAChE,gBADgE,EAEhE;EAAA,IAAGE,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFgE,EAGhE;EACEC,QAAQ,EAAE;AADZ,CAHgE,CAA3D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentDetail.js"],"names":["modularui","connectContentDetail","content","location","decodeURIComponent","search","propName"],"mappings":";AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;AAAA;;AAAA,MAAGE,OAAH,QAAGA,OAAH;AAAA,MAAYC,QAAZ,QAAYA,QAAZ;AAAA,+DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAF+D,EAI/D;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAJ+D,CAA1D","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;EAAA;;EAAA,IAAGE,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,6DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAF+D,EAI/D;EAAEC,QAAQ,EAAE;AAAZ,CAJ+D,CAA1D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"names":["Href","modularui","connectContentDetailSection","sectioncontent","section","entryDate","decodeURIComponent","addParameter","propName"],"mappings":";AACA,OAAOA,IAAP,MAAiB,wBAAjB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,2BAA+C,GAAGD,SAAS,CACtE,sBADsE,EAEtE;AAAA;;AAAA,MAAGE,cAAH,QAAGA,cAAH;AAAA,MAAmBC,OAAnB,QAAmBA,OAAnB;AAAA,MAA4BC,SAA5B,QAA4BA,SAA5B;AAAA,SACE,IAAIL,IAAJ,uDACcM,kBAAkB,CAACH,cAAD,CADhC,uBACoDC,OADpD,GAEEG,YAFF,CAEe,WAFf,EAE4BF,SAF5B,CADF;AAAA,CAFsE,EAMtE;AAAEG,EAAAA,QAAQ,EAAE;AAAZ,CANsE,CAAjE","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":["Href","modularui","connectContentDetailSection","sectioncontent","section","entryDate","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,OAAOA,IAAP,MAAiB,wBAAjB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,2BAA+C,GAAGD,SAAS,CACtE,sBADsE,EAEtE;EAAA;;EAAA,IAAGE,cAAH,QAAGA,cAAH;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;EAAA,IAA4BC,SAA5B,QAA4BA,SAA5B;EAAA,OACE,IAAIL,IAAJ,uDACcM,kBAAkB,CAACH,cAAD,CADhC,uBACoDC,OADpD,GAEEG,YAFF,CAEe,WAFf,EAE4BF,SAF5B,CADF;AAAA,CAFsE,EAMtE;EAAEG,QAAQ,EAAE;AAAZ,CANsE,CAAjE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Form.js"],"names":["compose","connect","modularui","HTTP_METHODS","getSetting","cancelForm","previousObject","showFormNotification","Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","onCancel","reduxConnectedForm","moduiConnectedForm","href","formHref","pathname","search","addParameter","propName","method","POST","connectForm"],"mappings":";AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AAEA,SAASC,YAAT,QAA6B,2BAA7B;AACA,SAASC,UAAT,QAA2B,0BAA3B;AAEA,SAASC,UAAT,EAAqBC,cAArB,QAA2C,iBAA3C;AACA,SAASC,oBAAT,QAAqC,yBAArC;AAEA,OAAOC,IAAP,MAAiB,wBAAjB;;AAkCA,IAAMC,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,EAAEX,cAD4B;AAExCY,EAAAA,QAAQ,EAAEb,UAF8B;AAGxCE,EAAAA,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMY,kBAAkB,GAAGlB,OAAO,CAChCQ,eADgC,EAEhCO,kBAFgC,CAAlC;AAKA,IAAMI,kBAAsC,GAAGlB,SAAS,CACtD,MADsD,EAEtD,gBAAwB;AAAA;;AAAA,MAArBmB,IAAqB,QAArBA,IAAqB;AAAA,MAAfP,QAAe,QAAfA,QAAe;AACtB,MAAMQ,QAAQ,GAAGD,IAAI,IAAI,IAAIb,IAAJ,8CAAYM,QAAQ,CAACS,QAArB,kBAAgCT,QAAQ,CAACU,MAAzC,EAAzB;;AAEA,MAAIpB,UAAU,CAAC,oBAAD,CAAd,EAAsC;AACpC,WAAOkB,QAAP;AACD;;AAED,SAAOA,QAAQ,CAACG,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAVqD,EAWtD;AAAEC,EAAAA,QAAQ,EAAE,MAAZ;AAAoBC,EAAAA,MAAM,EAAExB,YAAY,CAACyB;AAAzC,CAXsD,CAAxD;AAcA;AACA;;AACA,OAAO,IAAMC,WAEmB,GAAG7B,OAAO,CACxCoB,kBADwC,EAExCD,kBAFwC,CAFnC","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":["compose","connect","modularui","HTTP_METHODS","getSetting","cancelForm","previousObject","showFormNotification","Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","onCancel","reduxConnectedForm","moduiConnectedForm","href","formHref","pathname","search","addParameter","propName","method","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,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AAEA,SAASC,YAAT,QAA6B,2BAA7B;AACA,SAASC,UAAT,QAA2B,0BAA3B;AAEA,SAASC,UAAT,EAAqBC,cAArB,QAA2C,iBAA3C;AACA,SAASC,oBAAT,QAAqC,yBAArC;AAEA,OAAOC,IAAP,MAAiB,wBAAjB;;AAkCA,IAAMC,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,EAAEX,cAD4B;EAExCY,QAAQ,EAAEb,UAF8B;EAGxCE,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMY,kBAAkB,GAAGlB,OAAO,CAChCQ,eADgC,EAEhCO,kBAFgC,CAAlC;AAKA,IAAMI,kBAAsC,GAAGlB,SAAS,CACtD,MADsD,EAEtD,gBAAwB;EAAA;;EAAA,IAArBmB,IAAqB,QAArBA,IAAqB;EAAA,IAAfP,QAAe,QAAfA,QAAe;EACtB,IAAMQ,QAAQ,GAAGD,IAAI,IAAI,IAAIb,IAAJ,8CAAYM,QAAQ,CAACS,QAArB,kBAAgCT,QAAQ,CAACU,MAAzC,EAAzB;;EAEA,IAAIpB,UAAU,CAAC,oBAAD,CAAd,EAAsC;IACpC,OAAOkB,QAAP;EACD;;EAED,OAAOA,QAAQ,CAACG,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAVqD,EAWtD;EAAEC,QAAQ,EAAE,MAAZ;EAAoBC,MAAM,EAAExB,YAAY,CAACyB;AAAzC,CAXsD,CAAxD;AAcA;AACA;;AACA,OAAO,IAAMC,WAEmB,GAAG7B,OAAO,CACxCoB,kBADwC,EAExCD,kBAFwC,CAFnC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"names":["connect","updateFormAttribute","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,6BAApC;AACA,SACEC,yBADF,EAEEC,4BAFF,EAGEC,4BAHF,QAIO,uCAJP;;AAwCA,IAAMC,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,CACNL,mBAAmB,CACjBM,QAAQ,CAACO,IADQ,EAEjBP,QAAQ,CAACQ,MAFQ,EAGjBN,SAHiB,EAIjBC,KAJiB,EAKjBC,OALiB,CADb,CARS;AAAA,KADA;AAkBnBK,IAAAA,sBAAsB,EAAE;AAAA,aACtBV,QAAQ,CAACJ,yBAAyB,CAACK,QAAQ,CAACO,IAAV,CAA1B,CADc;AAAA,KAlBL;AAoBnBG,IAAAA,yBAAyB,EAAE,mCAACC,UAAD;AAAA,aACzBZ,QAAQ,CAACH,4BAA4B,CAACI,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;AAAA,KApBR;AAsBnBC,IAAAA,yBAAyB,EAAE,mCAACD,UAAD;AAAA,aACzBZ,QAAQ,CAACF,4BAA4B,CAACG,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;AAAA;AAtBR,GAHM;AAAA,CAA3B;AA6BA;AACA;;;AACA,OAAO,IAAME,uBAA2C,GAAGpB,OAAO,CAOhE,IAPgE,EAO1DK,kBAP0D,CAA3D","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":["connect","updateFormAttribute","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,6BAApC;AACA,SACEC,yBADF,EAEEC,4BAFF,EAGEC,4BAHF,QAIO,uCAJP;;AAwCA,IAAMC,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,CACNL,mBAAmB,CACjBM,QAAQ,CAACO,IADQ,EAEjBP,QAAQ,CAACQ,MAFQ,EAGjBN,SAHiB,EAIjBC,KAJiB,EAKjBC,OALiB,CADb,CARS;IAAA,CADA;IAkBnBK,sBAAsB,EAAE;MAAA,OACtBV,QAAQ,CAACJ,yBAAyB,CAACK,QAAQ,CAACO,IAAV,CAA1B,CADc;IAAA,CAlBL;IAoBnBG,yBAAyB,EAAE,mCAACC,UAAD;MAAA,OACzBZ,QAAQ,CAACH,4BAA4B,CAACI,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;IAAA,CApBR;IAsBnBC,yBAAyB,EAAE,mCAACD,UAAD;MAAA,OACzBZ,QAAQ,CAACF,4BAA4B,CAACG,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;IAAA;EAtBR,CAHM;AAAA,CAA3B;AA6BA;AACA;;;AACA,OAAO,IAAME,uBAA2C,GAAGpB,OAAO,CAOhE,IAPgE,EAO1DK,kBAP0D,CAA3D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ListDetail.js"],"names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;;AAIA;AACA;AACA,OAAO,IAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAD4D,EAE5D;AAAA,MAAGG,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAF4D,EAG5D;AACEC,EAAAA,QAAQ,EAAE,QADZ;AAEEC,EAAAA,WAAW,EAAEJ;AAFf,CAH4D,CAAvD","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":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"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,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;;AAIA;AACA;AACA,OAAO,IAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAD4D,EAE5D;EAAA,IAAGG,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAF4D,EAG5D;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEJ;AAFf,CAH4D,CAAvD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Modal.js"],"names":["connect","showModal","closeModal","mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"mappings":";AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,mBAAtC;;AAoBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AAAA;;AACzD,MAAMC,YAAY,GAAG,iCAAAD,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,EAAEb,SADY;AAEzBc,EAAAA,YAAY,EAAEb;AAFW,CAA3B;AAKA;AACA;;AACA,OAAO,IAAMc,YAAgC,GAAGhB,OAAO,CAOrDG,eAPqD,EAOpCU,kBAPoC,CAAhD","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":["connect","showModal","closeModal","mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,mBAAtC;;AAoBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,iCAAAD,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,EAAEb,SADY;EAEzBc,YAAY,EAAEb;AAFW,CAA3B;AAKA;AACA;;AACA,OAAO,IAAMc,YAAgC,GAAGhB,OAAO,CAOrDG,eAPqD,EAOpCU,kBAPoC,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ModelCatalog.js"],"names":["modularui","connectModelCatalog","match","url","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAD8D,EAE9D;AAAA,MAAGE,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAF8D,EAG9D;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAH8D,CAAzD","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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAD8D,EAE9D;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF8D,EAG9D;EACEC,QAAQ,EAAE;AADZ,CAH8D,CAAzD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Notification.js"],"names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,yBAApC;;AAuBA,IAAMC,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,EAAET;AADc,CAA3B;AAIA;AACA;;AACA,OAAO,IAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAP4D,EAO3CO,kBAP2C,CAAvD","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":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,yBAApC;;AAuBA,IAAMC,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,EAAET;AADc,CAA3B;AAIA;AACA;;AACA,OAAO,IAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAP4D,EAO3CO,kBAP2C,CAAvD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/PanelRenderer.js"],"names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;;AAIA;AACA;AACA,OAAO,IAAMC,YAAgC,GAAGF,SAAS,CACvD,eADuD,EAEvD,gBAAuC;AAAA,MAApCG,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,IAAIF,IAAJ,CAASE,IAAT,CAAH,GAAoB,IAAIF,IAAJ,CAASG,KAAK,CAACI,GAAf,CAA1C;;AAEA,MAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAnB,EAA4B;AAC1BF,IAAAA,SAAS,CAACG,uBAAV,CAAkCL,WAAlC;AACD;;AAED,SAAOE,SAAP;AACD,CAhBsD,EAiBvD;AACEI,EAAAA,QAAQ,EAAE;AADZ,CAjBuD,CAAlD","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":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","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,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;;AAIA;AACA;AACA,OAAO,IAAMC,YAAgC,GAAGF,SAAS,CACvD,eADuD,EAEvD,gBAAuC;EAAA,IAApCG,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,IAAIF,IAAJ,CAASE,IAAT,CAAH,GAAoB,IAAIF,IAAJ,CAASG,KAAK,CAACI,GAAf,CAA1C;;EAEA,IAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAnB,EAA4B;IAC1BF,SAAS,CAACG,uBAAV,CAAkCL,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhBsD,EAiBvD;EACEI,QAAQ,EAAE;AADZ,CAjBuD,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Preferences.js"],"names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAiBA;AACA;AACA,IAAMC,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;;;AACA,OAAO,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,SAAOH,OAAO,CAA8BY,eAA9B,CAAP,CACLD,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":["connect","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,SAASA,OAAT,QAAwB,aAAxB;;AAiBA;AACA;AACA,IAAMC,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;;;AACA,OAAO,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,OAAOH,OAAO,CAA8BY,eAA9B,CAAP,CACLD,gBADK,CAAP;AAGD,CAZM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Progress.js"],"names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,8BAA9C;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAgBA,IAAMC,kBAAiC,GAAG;AACxCC,EAAAA,eAAe,EAAEH,aADuB;AAExCI,EAAAA,gBAAgB,EAAEL,cAFsB;AAGxCM,EAAAA,OAAO,EAAEJ;AAH+B,CAA1C;AAMA;AACA;;AACA,OAAO,IAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAPwD,EAOlDI,kBAPkD,CAAnD","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":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","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,SAASA,OAAT,QAAwB,aAAxB;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,8BAA9C;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAgBA,IAAMC,kBAAiC,GAAG;EACxCC,eAAe,EAAEH,aADuB;EAExCI,gBAAgB,EAAEL,cAFsB;EAGxCM,OAAO,EAAEJ;AAH+B,CAA1C;AAMA;AACA;;AACA,OAAO,IAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAPwD,EAOlDI,kBAPkD,CAAnD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAgBA;AACA;AACA,IAAMC,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;;;AACA,OAAO,IAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAPiE,CAA5D","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":["connect","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,SAASA,OAAT,QAAwB,aAAxB;;AAgBA;AACA;AACA,IAAMC,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;;;AACA,OAAO,IAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAPiE,CAA5D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/QuickSearch.js"],"names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AACA,SAASC,IAAT,QAAqB,oBAArB;AAKA,OAAOC,IAAP,MAAiB,wBAAjB;AAYA,IAAMC,kBAAiC,GAAG;AACxCF,EAAAA,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAA9B,EAAoCI,kBAApC,CADiC,EAExCH,SAAS,CAAC,aAAD,EAAgB;AAAA,MAAGK,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAAhB,EAAoC;AAC3CC,EAAAA,QAAQ,EAAE;AADiC,CAApC,CAF+B,CAFnC","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":["compose","connect","modularui","push","Href","mapDispatchToProps","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,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AACA,SAASC,IAAT,QAAqB,oBAArB;AAKA,OAAOC,IAAP,MAAiB,wBAAjB;AAYA,IAAMC,kBAAiC,GAAG;EACxCF,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAA9B,EAAoCI,kBAApC,CADiC,EAExCH,SAAS,CAAC,aAAD,EAAgB;EAAA,IAAGK,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAhB,EAAoC;EAC3CC,QAAQ,EAAE;AADiC,CAApC,CAF+B,CAFnC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignIn.js"],"names":["connect","login","getApplication","UserServicesModel","mapStateToProps","state","application","isAuthenticated","auth","userServices","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","connectSignIn"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,KAAT,QAAsB,mBAAtB;AAEA,SAASC,cAAT,QAA+B,yBAA/B;AAEA,OAAOC,iBAAP,MAA8B,qCAA9B;;AAmBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AACzD,MAAMC,WAAW,GAAGJ,cAAc,CAACG,KAAD,CAAlC;AAEA,SAAO;AACLE,IAAAA,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCN,iBADrC,IAEAG,WAAW,CAACG,YAAZ,CAAyBC,UAJtB;AAKLC,IAAAA,YAAY,EAAEN,KAAK,CAACG,IAAN,CAAWI;AALpB,GAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;AACxCC,EAAAA,QAAQ,EAAEb;AAD8B,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMc,aAAiC,GAAGf,OAAO,CAOtDI,eAPsD,EAOrCS,kBAPqC,CAAjD","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":["connect","login","getApplication","UserServicesModel","mapStateToProps","state","application","isAuthenticated","auth","userServices","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,KAAT,QAAsB,mBAAtB;AAEA,SAASC,cAAT,QAA+B,yBAA/B;AAEA,OAAOC,iBAAP,MAA8B,qCAA9B;;AAmBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EACzD,IAAMC,WAAW,GAAGJ,cAAc,CAACG,KAAD,CAAlC;EAEA,OAAO;IACLE,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCN,iBADrC,IAEAG,WAAW,CAACG,YAAZ,CAAyBC,UAJtB;IAKLC,YAAY,EAAEN,KAAK,CAACG,IAAN,CAAWI;EALpB,CAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEb;AAD8B,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMc,aAAiC,GAAGf,OAAO,CAOtDI,eAPsD,EAOrCS,kBAPqC,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignOut.js"],"names":["connect","logout","mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","connectSignOut"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,MAAT,QAAuB,oBAAvB;;AAkBA,IAAMC,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,EAAEN;AAAZ,CAA3B;AAEA;AACA;;AACA,OAAO,IAAMO,cAAkC,GAAGR,OAAO,CAOvDE,eAPuD,EAOtCI,kBAPsC,CAAlD","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":["connect","logout","mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","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,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,MAAT,QAAuB,oBAAvB;;AAkBA,IAAMC,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,EAAEN;AAAZ,CAA3B;AAEA;AACA;;AACA,OAAO,IAAMO,cAAkC,GAAGR,OAAO,CAOvDE,eAPuD,EAOtCI,kBAPsC,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Tab.js"],"names":["modularui","connectTab","match","url","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,UAA8B,GAAGD,SAAS,CACrD,KADqD,EAErD;AAAA,MAAGE,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 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":["modularui","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,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,UAA8B,GAAGD,SAAS,CACrD,KADqD,EAErD;EAAA,IAAGE,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/index.js"],"names":["connectApplication","connectBreadcrumb","connectCaseView","connectConceptDetail","connectContentBrowser","connectContentDetail","connectContentDetailSection","connectForm","connectFormAttributeSet","connectListDetail","connectModal","connectModelCatalog","connectNotification","connectPanel","connectPreferences","connectProgress","connectProgressIndicator","connectQuickSearch","connectSignIn","connectSignOut","connectTab"],"mappings":"AACA,SAASA,kBAAT,QAAmC,eAAnC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,qBAAT,QAAsC,kBAAtC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,2BAAT,QAA4C,wBAA5C;AACA,SAASC,WAAT,QAA4B,QAA5B;AACA,SAASC,uBAAT,QAAwC,oBAAxC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,wBAAT,QAAyC,qBAAzC;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,UAAT,QAA2B,OAA3B","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":["connectApplication","connectBreadcrumb","connectCaseView","connectConceptDetail","connectContentBrowser","connectContentDetail","connectContentDetailSection","connectForm","connectFormAttributeSet","connectListDetail","connectModal","connectModelCatalog","connectNotification","connectPanel","connectPreferences","connectProgress","connectProgressIndicator","connectQuickSearch","connectSignIn","connectSignOut","connectTab"],"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,SAASA,kBAAT,QAAmC,eAAnC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,qBAAT,QAAsC,kBAAtC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,2BAAT,QAA4C,wBAA5C;AACA,SAASC,WAAT,QAA4B,QAA5B;AACA,SAASC,uBAAT,QAAwC,oBAAxC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,wBAAT,QAAyC,qBAAzC;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,UAAT,QAA2B,OAA3B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/index.js"],"names":["default","configureStore"],"mappings":"AAEA;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,eAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,SAASA,OAAO,IAAIC,cAApB,QAA0C,wBAA1C,C,CAEA;;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,cAAc,kBAAd","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":["default","configureStore"],"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":"AAEA;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,eAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,SAASA,OAAO,IAAIC,cAApB,QAA0C,wBAA1C,C,CAEA;;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,cAAc,kBAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/AuthReducer.js"],"names":["Cache","initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","clear"],"mappings":";;;;;;;;;;;AACA,OAAOA,KAAP,MAAkB,2BAAlB;AAKA;AACA,IAAMC,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;AACzBF,UAAAA,KAAK,CAACU,KAAN;AACD;;AAED,+CACKJ,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;;AAkDA,eAAeD,WAAf","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":["Cache","initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","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,OAAOA,KAAP,MAAkB,2BAAlB;AAKA;AACA,IAAMC,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;UACzBF,KAAK,CAACU,KAAN;QACD;;QAED,uCACKJ,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;;AAkDA,eAAeD,WAAf"}
@@ -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;;AAWA,eAAeD,YAAf","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;;AAWA,eAAeD,YAAf"}
@@ -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,kFACb,iCAAAD,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,qEAAAD,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;;AA0BA,eAAeW,aAAf","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,gFACb,iCAAAD,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,qEAAAD,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;;AA0BA,eAAeW,aAAf"}
@@ -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;;AA6BA,eAAeD,mBAAf","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;;AA6BA,eAAeD,mBAAf"}
@@ -18,7 +18,11 @@ var PreferencesReducer = function PreferencesReducer() {
18
18
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
19
19
  var action = arguments.length > 1 ? arguments[1] : undefined;
20
20
 
21
- if (action && action.type === "SET_PREFERENCE") {
21
+ if ((action === null || action === void 0 ? void 0 : action.type) === "SET_PREFERENCE") {
22
+ return _objectSpread(_objectSpread({}, state), action.payload);
23
+ }
24
+
25
+ if ((action === null || action === void 0 ? void 0 : action.type) === "SET_PREFERENCES") {
22
26
  return _objectSpread(_objectSpread({}, state), action.payload);
23
27
  }
24
28
 
@@ -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,MAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,gBAA9B,EAAgD;AAC9C,2CACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;AAID;;AAED,SAAOH,KAAP;AACD,CAZD;;AAcA,eAAeD,kBAAf","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 && action.type === \"SET_PREFERENCE\") {\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;;AAqBA,eAAeD,kBAAf"}
@@ -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;;AAmCA,eAAeI,wBAAf","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;;AAmCA,eAAeI,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/createReducer.js"],"names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","notification","progressindicator","preferences"],"mappings":"AACA,SAASA,aAAT,QAA8B,oBAA9B;AACA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;;AA4BA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAAiB;AAC5CC,IAAAA,MAAM,EAAEV,aADoC;AAE5CW,IAAAA,SAAS,EAAEV,gBAFiC;AAG5CW,IAAAA,IAAI,EAAEV,WAHsC;AAI5CW,IAAAA,IAAI,EAAET,WAJsC;AAK5CU,IAAAA,KAAK,EAAET,YALqC;AAM5CU,IAAAA,MAAM,EAAEZ,aANoC;AAO5Ca,IAAAA,YAAY,EAAEV,mBAP8B;AAQ5CW,IAAAA,iBAAiB,EAAEV,wBARyB;AAS5CW,IAAAA,WAAW,EAAEV;AAT+B,GAAjB;AAAA,CAAtB","sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/reducer\";\nimport { ModularUIReducer } from \"../_modularui/reducer\";\nimport { I18nReducer } from \"../_i18n/reducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"file":"createReducer.js"}
1
+ {"version":3,"file":"createReducer.js","names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","notification","progressindicator","preferences"],"sources":["../../../src/redux/reducers/createReducer.js"],"sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/reducer\";\nimport { ModularUIReducer } from \"../_modularui/reducer\";\nimport { I18nReducer } from \"../_i18n/reducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"mappings":"AACA,SAASA,aAAT,QAA8B,oBAA9B;AACA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;;AA4BA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAAiB;IAC5CC,MAAM,EAAEV,aADoC;IAE5CW,SAAS,EAAEV,gBAFiC;IAG5CW,IAAI,EAAEV,WAHsC;IAI5CW,IAAI,EAAET,WAJsC;IAK5CU,KAAK,EAAET,YALqC;IAM5CU,MAAM,EAAEZ,aANoC;IAO5Ca,YAAY,EAAEV,mBAP8B;IAQ5CW,iBAAiB,EAAEV,wBARyB;IAS5CW,WAAW,EAAEV;EAT+B,CAAjB;AAAA,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/index.js"],"names":["default","AuthReducer","ErrorReducer","ModalsReducer","NotificationReducer","PreferencesReducer","ProgressIndicatorReducer"],"mappings":"AACA,cAAc,iBAAd;AAEA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,gBAAxC;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,iBAAzC;AACA,SAASH,OAAO,IAAII,mBAApB,QAA+C,uBAA/C;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,sBAA9C;AACA,SAASL,OAAO,IAAIM,wBAApB,QAAoD,4BAApD","sourcesContent":["// @flow\nexport * from \"./createReducer\";\n\nexport { default as AuthReducer } from \"./AuthReducer\";\nexport { default as ErrorReducer } from \"./ErrorReducer\";\nexport { default as ModalsReducer } from \"./ModalsReducer\";\nexport { default as NotificationReducer } from \"./NotificationReducer\";\nexport { default as PreferencesReducer } from \"./PreferencesReducer\";\nexport { default as ProgressIndicatorReducer } from \"./ProgressIndicatorReducer\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["default","AuthReducer","ErrorReducer","ModalsReducer","NotificationReducer","PreferencesReducer","ProgressIndicatorReducer"],"sources":["../../../src/redux/reducers/index.js"],"sourcesContent":["// @flow\nexport * from \"./createReducer\";\n\nexport { default as AuthReducer } from \"./AuthReducer\";\nexport { default as ErrorReducer } from \"./ErrorReducer\";\nexport { default as ModalsReducer } from \"./ModalsReducer\";\nexport { default as NotificationReducer } from \"./NotificationReducer\";\nexport { default as PreferencesReducer } from \"./PreferencesReducer\";\nexport { default as ProgressIndicatorReducer } from \"./ProgressIndicatorReducer\";\n"],"mappings":"AACA,cAAc,iBAAd;AAEA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,gBAAxC;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,iBAAzC;AACA,SAASH,OAAO,IAAII,mBAApB,QAA+C,uBAA/C;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,sBAA9C;AACA,SAASL,OAAO,IAAIM,wBAApB,QAAoD,4BAApD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/store/beforeRenderHooks.js"],"names":["handleBeforeRenderHooks","beforeRenderHooks","props","length","beforeRenderHook"],"mappings":";;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,uBAAuB,GAAG,SAA1BA,uBAA0B,GAGlC;AAAA,MAFHC,iBAEG,uEAF0C,EAE1C;AAAA,MADHC,KACG;;AACH,MAAID,iBAAiB,CAACE,MAAlB,GAA2B,CAA/B,EAAkC;AAAA,+CACDF,iBADC;AAAA;;AAAA;AAChC,0DAAkD;AAAA,YAAvCG,gBAAuC;AAChDA,QAAAA,gBAAgB,CAACF,KAAD,CAAhB;AACD;AAH+B;AAAA;AAAA;AAAA;AAAA;AAIjC;AACF,CATM","sourcesContent":["// @flow\nimport type { ReduxStore } from \"../types\";\n\nexport type BeforeRenderHookProps = {\n store: ReduxStore,\n request?: HttpServletRequestJava,\n};\nexport type BeforeRenderHook = (props: BeforeRenderHookProps) => void;\n\n/**\n * Process handlers that need to be run before the react application starts,\n * for example to start a third party service<br>\n * An object with the store is available to make it possible to read state available in the redux store,\n * for example server preferences, and the request is available to retrieve request information\n *\n */\nexport const handleBeforeRenderHooks = (\n beforeRenderHooks: Array<BeforeRenderHook> = [],\n props: BeforeRenderHookProps\n) => {\n if (beforeRenderHooks.length > 0) {\n for (const beforeRenderHook of beforeRenderHooks) {\n beforeRenderHook(props);\n }\n }\n};\n"],"file":"beforeRenderHooks.js"}
1
+ {"version":3,"file":"beforeRenderHooks.js","names":["handleBeforeRenderHooks","beforeRenderHooks","props","length","beforeRenderHook"],"sources":["../../../src/redux/store/beforeRenderHooks.js"],"sourcesContent":["// @flow\nimport type { ReduxStore } from \"../types\";\n\nexport type BeforeRenderHookProps = {\n store: ReduxStore,\n request?: HttpServletRequestJava,\n};\nexport type BeforeRenderHook = (props: BeforeRenderHookProps) => void;\n\n/**\n * Process handlers that need to be run before the react application starts,\n * for example to start a third party service<br>\n * An object with the store is available to make it possible to read state available in the redux store,\n * for example server preferences, and the request is available to retrieve request information\n *\n */\nexport const handleBeforeRenderHooks = (\n beforeRenderHooks: Array<BeforeRenderHook> = [],\n props: BeforeRenderHookProps\n) => {\n if (beforeRenderHooks.length > 0) {\n for (const beforeRenderHook of beforeRenderHooks) {\n beforeRenderHook(props);\n }\n }\n};\n"],"mappings":";;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,uBAAuB,GAAG,SAA1BA,uBAA0B,GAGlC;EAAA,IAFHC,iBAEG,uEAF0C,EAE1C;EAAA,IADHC,KACG;;EACH,IAAID,iBAAiB,CAACE,MAAlB,GAA2B,CAA/B,EAAkC;IAAA,2CACDF,iBADC;IAAA;;IAAA;MAChC,oDAAkD;QAAA,IAAvCG,gBAAuC;QAChDA,gBAAgB,CAACF,KAAD,CAAhB;MACD;IAH+B;MAAA;IAAA;MAAA;IAAA;EAIjC;AACF,CATM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/store/configureStore.js"],"names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularuiMiddleware","createReducer","locationChange","configureStore","history","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","dispatch","location"],"mappings":";;;;;;;;;;;AACA,SACEA,eADF,EAEEC,OAFF,EAGEC,eAHF,EAIEC,WAAW,IAAIC,gBAJjB,QAKO,OALP;AAMA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,mBAAT,QAAoC,0BAApC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAMA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;AAClD,MAAIC,gBAAgB,GAAGb,OAAvB;;AAEA,MAAIc,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;AAC1EJ,IAAAA,gBAAgB,GAAGI,MAAM,CAACC,oCAAP,IAA+ClB,OAAlE;AACD;;AAED,MAAMmB,gBAAkD,GAAGlB,eAAe,iCACrEU,cADqE,GAErEJ,aAAa,EAFwD,EAA1E;AAKA,MAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBADgC,EAEhCD,gBAAgB,CAACK,OAAD,CAFgB,EAGhCN,KAHgC,CAAlC;AAMA,MAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAD,CAAlC;AAEA,MAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBADwC,EAExCP,YAFwC,EAGxCS,SAHwC,CAA1C;;AAMA,MAAI,CAACT,YAAL,EAAmB;AACjBU,IAAAA,KAAK,CAACC,QAAN,CAAef,cAAc,CAACE,OAAO,CAACc,QAAT,EAAmB,MAAnB,CAA7B;AACD;;AACD,SAAO;AAAEd,IAAAA,OAAO,EAAPA,OAAF;AAAWY,IAAAA,KAAK,EAALA;AAAX,GAAP;AACD,CAlCD;;AAoCA,eAAeb,cAAf","sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/middleware\";\nimport { modularuiMiddleware } from \"../_modularui/middleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/actions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n history: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>\n): { history: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularuiMiddleware,\n routerMiddleware(history),\n thunk\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers\n );\n\n if (!initialState) {\n store.dispatch(locationChange(history.location, \"PUSH\"));\n }\n return { history, store };\n};\n\nexport default configureStore;\n"],"file":"configureStore.js"}
1
+ {"version":3,"file":"configureStore.js","names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularuiMiddleware","createReducer","locationChange","configureStore","history","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","dispatch","location"],"sources":["../../../src/redux/store/configureStore.js"],"sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/middleware\";\nimport { modularuiMiddleware } from \"../_modularui/middleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/actions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n history: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>\n): { history: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularuiMiddleware,\n routerMiddleware(history),\n thunk\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers\n );\n\n if (!initialState) {\n store.dispatch(locationChange(history.location, \"PUSH\"));\n }\n return { history, store };\n};\n\nexport default configureStore;\n"],"mappings":";;;;;;;;;;;AACA,SACEA,eADF,EAEEC,OAFF,EAGEC,eAHF,EAIEC,WAAW,IAAIC,gBAJjB,QAKO,OALP;AAMA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,mBAAT,QAAoC,0BAApC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAMA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;EAClD,IAAIC,gBAAgB,GAAGb,OAAvB;;EAEA,IAAIc,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;IAC1EJ,gBAAgB,GAAGI,MAAM,CAACC,oCAAP,IAA+ClB,OAAlE;EACD;;EAED,IAAMmB,gBAAkD,GAAGlB,eAAe,iCACrEU,cADqE,GAErEJ,aAAa,EAFwD,EAA1E;EAKA,IAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBADgC,EAEhCD,gBAAgB,CAACK,OAAD,CAFgB,EAGhCN,KAHgC,CAAlC;EAMA,IAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAD,CAAlC;EAEA,IAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBADwC,EAExCP,YAFwC,EAGxCS,SAHwC,CAA1C;;EAMA,IAAI,CAACT,YAAL,EAAmB;IACjBU,KAAK,CAACC,QAAN,CAAef,cAAc,CAACE,OAAO,CAACc,QAAT,EAAmB,MAAnB,CAA7B;EACD;;EACD,OAAO;IAAEd,OAAO,EAAPA,OAAF;IAAWY,KAAK,EAALA;EAAX,CAAP;AACD,CAlCD;;AAoCA,eAAeb,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../src/redux/types.js"],"sourcesContent":["// @flow\nimport type { Store, DispatchAPI } from \"redux\";\n\nimport type ErrorResponse from \"../models/error/ErrorResponse\";\n\nimport type FormModel from \"../models/form/FormModel\";\nimport typeof {\n NOTIFICATION_TYPES,\n AUTOSAVE_STATUS,\n} from \"../constants/Constants\";\n\nimport type { MessageObject } from \"../i18n/types\";\nimport type {\n I18nState,\n UpdateLocaleAction,\n SetLocalesAction,\n} from \"./_i18n/types\";\nimport type {\n ModularUIState,\n ModularUIAction,\n UpdateStatusAction,\n SetModelAction,\n UpdateModelAction,\n RemoveModelByKeyAction,\n ResetModularUIAction,\n} from \"./_modularui/types\";\nimport type {\n RouterState,\n LocationChangeAction,\n PushAction,\n ReplaceAction,\n GoAction,\n GoBackAction,\n GoForwardAction,\n} from \"./_router/types\";\n\nexport type PreferenceValue =\n | null\n | string\n | boolean\n | { [key: string]: any }\n | Array<PreferenceValue>;\n\nexport type UpdateFormOptions = {\n autosubmit: boolean,\n autosave: boolean,\n forceUpdate?: boolean,\n /** Default true: Activate/deactivate the form object validate by an update */\n validate?: boolean,\n};\n\nexport type NoAction = {\n type: \"NO_ACTION\",\n};\n\nexport type SaveErrorAction = {\n type: \"SAVE_ERROR\",\n payload: ErrorResponse,\n};\n\nexport type ShowModalAction = {\n type: \"SHOW_MODAL\",\n payload: string,\n};\n\nexport type CloseModalAction = {\n type: \"CLOSE_MODAL\",\n payload: string,\n};\n\nexport type DismissNotificationAction = {\n type: \"DISMISS_NOTIFICATION\",\n};\nexport type ShowNotificationAction = {\n type: \"SHOW_NOTIFICATION\",\n payload: {\n type: $Keys<NOTIFICATION_TYPES>,\n message: MessageObject,\n error: ?ErrorResponse,\n },\n};\n\nexport type SetPreferenceAction = {\n type: \"SET_PREFERENCE\",\n payload: { [name: string]: PreferenceValue },\n};\nexport type SetPreferencesAction = {\n type: \"SET_PREFERENCES\",\n payload: { [name: string]: PreferenceValue },\n};\n\nexport type StartProgressAction = {\n type: \"START_PROGRESS\",\n};\nexport type FinishProgressAction = {\n type: \"FINISH_PROGRESS\",\n};\nexport type ResetProgressAction = {\n type: \"RESET_PROGRESS\",\n};\nexport type UpdateProgressAction = {\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete: number },\n};\n\nexport type LoginFailedAction = {\n type: \"AUTHENTICATION_ERROR\",\n payload: string,\n};\n\nexport type ResetAuthErrorsAction = {\n type: \"AUTHENTICATION_RESET_ERRORS\",\n};\n\nexport type LoginSuccessAction = {\n type: \"AUTHENTICATION_SUCCESS\",\n};\n\nexport type ChangePasswordAction = {\n type: \"CHANGE_PASSWORD\",\n};\n\nexport type LogoutSuccessAction = {\n type: \"AUTHENTICATION_LOGOUT\",\n};\n\nexport type UpdateAutosaveAction = {\n type: \"UPDATE_AUTOSAVE_STATUS\",\n payload: {\n status: $Keys<AUTOSAVE_STATUS>,\n model: FormModel,\n },\n};\n\nexport type ReduxAction =\n | UpdateStatusAction\n | SetModelAction\n | UpdateModelAction\n | RemoveModelByKeyAction\n | ResetModularUIAction\n | SaveErrorAction\n | UpdateLocaleAction\n | SetLocalesAction\n | ShowModalAction\n | CloseModalAction\n | DismissNotificationAction\n | ShowNotificationAction\n | SetPreferenceAction\n | SetPreferencesAction\n | StartProgressAction\n | FinishProgressAction\n | ResetProgressAction\n | UpdateProgressAction\n | LoginFailedAction\n | ResetAuthErrorsAction\n | LoginSuccessAction\n | ChangePasswordAction\n | LogoutSuccessAction\n | UpdateAutosaveAction\n | LocationChangeAction\n | PushAction\n | ReplaceAction\n | GoAction\n | GoBackAction\n | GoForwardAction\n | ModularUIAction\n | NoAction;\n\n// Redux state\nexport type AuthState = {\n +isAuthenticated: boolean,\n +mustChangePassword: boolean,\n +error: ?string,\n};\n\nexport type ErrorState = null | ErrorResponse;\n\nexport type ModalState = {\n +key: string,\n +visible: boolean,\n +size?: string,\n};\n\nexport type ModalsState = {\n +modals: Array<ModalState>,\n};\n\nexport type NotificationState = {\n +render: boolean,\n +messageType: string | null,\n +message: MessageObject | null,\n +error: ?ErrorResponse | null,\n};\n\nexport type PreferencesState = {\n +[name: string]: PreferenceValue,\n};\n\nexport type ProgressIndicatorState = {\n +count: number,\n +timestamp: number,\n +percentComplete: number,\n};\n\nexport type ReduxState = {\n +router: RouterState,\n +modularui: ModularUIState,\n +i18n: I18nState,\n +auth: AuthState,\n +error: ErrorState,\n +modals: ModalsState,\n +notification: NotificationState,\n +progressindicator: ProgressIndicatorState,\n +preferences: PreferencesState,\n ...\n};\n\nexport type GetState = () => ReduxState;\nexport type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;\nexport type PromiseAction = Promise<PossibleAction>;\nexport type Dispatch = DispatchAPI<PossibleAction>;\nexport type ReduxStore = Store<ReduxState, ReduxAction, Dispatch>;\n\nexport type PossibleAction = ReduxAction | ThunkAction | PromiseAction;\n\nexport type CustomReducers = { [reducerKey: string]: any };\n"],"mappings":""}