@beinformed/ui 1.34.0 → 1.34.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 (299) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/esm/builder/mergeLayoutHintConfigurations.js +29 -28
  3. package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
  4. package/esm/react-client/client.js +1 -2
  5. package/esm/react-client/client.js.map +1 -1
  6. package/lib/builder/__tests__/mergeLayoutHintConfigurations.spec.js.flow +23 -16
  7. package/lib/builder/mergeLayoutHintConfigurations.js +29 -28
  8. package/lib/builder/mergeLayoutHintConfigurations.js.flow +33 -37
  9. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  10. package/lib/constants/Constants.js +33 -66
  11. package/lib/constants/Constants.js.map +1 -1
  12. package/lib/constants/LayoutHintConfig.js +1 -2
  13. package/lib/constants/LayoutHintConfig.js.map +1 -1
  14. package/lib/constants/LayoutHints.js +18 -36
  15. package/lib/constants/LayoutHints.js.map +1 -1
  16. package/lib/constants/Settings.js +3 -6
  17. package/lib/constants/Settings.js.map +1 -1
  18. package/lib/exceptions/ConfigurationException.js +1 -2
  19. package/lib/exceptions/ConfigurationException.js.map +1 -1
  20. package/lib/exceptions/IllegalArgumentException.js +1 -2
  21. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  22. package/lib/exceptions/IllegalReturnException.js +1 -2
  23. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  24. package/lib/exceptions/IllegalStateException.js +1 -2
  25. package/lib/exceptions/IllegalStateException.js.map +1 -1
  26. package/lib/exceptions/JsonParseException.js +1 -2
  27. package/lib/exceptions/JsonParseException.js.map +1 -1
  28. package/lib/exceptions/MissingPropertyException.js +1 -2
  29. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  30. package/lib/exceptions/NetworkException.js +1 -2
  31. package/lib/exceptions/NetworkException.js.map +1 -1
  32. package/lib/exceptions/NotAllowedUriException.js +1 -2
  33. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  34. package/lib/exceptions/NotFoundException.js +1 -2
  35. package/lib/exceptions/NotFoundException.js.map +1 -1
  36. package/lib/exceptions/ServerRequestException.js +1 -2
  37. package/lib/exceptions/ServerRequestException.js.map +1 -1
  38. package/lib/exceptions/ThemePropertyException.js +1 -2
  39. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  40. package/lib/exceptions/TimeoutException.js +1 -2
  41. package/lib/exceptions/TimeoutException.js.map +1 -1
  42. package/lib/exceptions/UnauthorizedException.js +1 -2
  43. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  44. package/lib/exceptions/UnsupportedOperationException.js +1 -2
  45. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  46. package/lib/hooks/useDeepCompareEffect.js +1 -2
  47. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  48. package/lib/i18n/Locale.js +1 -2
  49. package/lib/i18n/Locale.js.map +1 -1
  50. package/lib/i18n/Locales.js +2 -4
  51. package/lib/i18n/Locales.js.map +1 -1
  52. package/lib/i18n/Message.js +1 -2
  53. package/lib/i18n/Message.js.map +1 -1
  54. package/lib/i18n/languages.js +1 -2
  55. package/lib/i18n/languages.js.map +1 -1
  56. package/lib/i18n/translations/beinformed_error_messages_en.nl.js +1 -2
  57. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  58. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +1 -2
  59. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  60. package/lib/i18n/withMessage.js +1 -2
  61. package/lib/i18n/withMessage.js.map +1 -1
  62. package/lib/models/attributes/AttributeCollection.js +1 -2
  63. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  64. package/lib/models/attributes/AttributeContent.js +1 -2
  65. package/lib/models/attributes/AttributeContent.js.map +1 -1
  66. package/lib/models/attributes/AttributeDataHelper.js +1 -2
  67. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  68. package/lib/models/attributes/ChoiceAttributeOptionCollection.js +1 -2
  69. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  70. package/lib/models/attributes/ChoiceAttributeOptionModel.js +1 -2
  71. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  72. package/lib/models/attributes/CompositeAttributeChildCollection.js +1 -2
  73. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  74. package/lib/models/attributes/CompositeAttributeModel.js +1 -2
  75. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  76. package/lib/models/attributes/DatetimeAttributeModel.js +1 -2
  77. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  78. package/lib/models/attributes/_createAttribute.js +1 -2
  79. package/lib/models/attributes/_createAttribute.js.map +1 -1
  80. package/lib/models/attributes/input-constraints/BSNConstraint.js +1 -2
  81. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  82. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +1 -2
  83. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  84. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +1 -2
  85. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  86. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +1 -2
  87. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  88. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +1 -2
  89. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  90. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +1 -2
  91. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  92. package/lib/models/attributes/input-constraints/FileSizeConstraint.js +1 -2
  93. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  94. package/lib/models/attributes/input-constraints/IBANConstraint.js +1 -2
  95. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  96. package/lib/models/attributes/input-constraints/MandatoryConstraint.js +1 -2
  97. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  98. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +1 -2
  99. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  100. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +1 -2
  101. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  102. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +1 -2
  103. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  104. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +1 -2
  105. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  106. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +1 -2
  107. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  108. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +1 -2
  109. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  110. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +1 -2
  111. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  112. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +1 -2
  113. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  114. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +1 -2
  115. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  116. package/lib/models/attributes/input-constraints/RangeConstraint.js +1 -2
  117. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  118. package/lib/models/attributes/input-constraints/RegexConstraint.js +1 -2
  119. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  120. package/lib/models/attributes/input-constraints/StringLengthConstraint.js +1 -2
  121. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  122. package/lib/models/attributes/input-constraints/XMLConstraint.js +1 -2
  123. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  124. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +1 -2
  125. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  126. package/lib/models/attributes/layouthint-rules/DependentAttribute.js +1 -2
  127. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  128. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +1 -2
  129. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  130. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +1 -2
  131. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  132. package/lib/models/base/BaseCollection.js +1 -2
  133. package/lib/models/base/BaseCollection.js.map +1 -1
  134. package/lib/models/base/BaseModel.js +1 -2
  135. package/lib/models/base/BaseModel.js.map +1 -1
  136. package/lib/models/base/ResourceCollection.js +1 -2
  137. package/lib/models/base/ResourceCollection.js.map +1 -1
  138. package/lib/models/base/ResourceModel.js +1 -2
  139. package/lib/models/base/ResourceModel.js.map +1 -1
  140. package/lib/models/concepts/BusinessScenarioModel.js +1 -2
  141. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  142. package/lib/models/concepts/ConceptTypeDetailModel.js +1 -2
  143. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  144. package/lib/models/concepts/SourceReferenceModel.js +1 -2
  145. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  146. package/lib/models/content/SectionModel.js +1 -2
  147. package/lib/models/content/SectionModel.js.map +1 -1
  148. package/lib/models/contentconfiguration/ContentConfigurationElements.js +1 -2
  149. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  150. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +1 -2
  151. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  152. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +1 -2
  153. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  154. package/lib/models/contentconfiguration/ContentConfigurationResults.js +1 -2
  155. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  156. package/lib/models/error/ErrorModel.js +1 -2
  157. package/lib/models/error/ErrorModel.js.map +1 -1
  158. package/lib/models/form/FormModel.js +1 -2
  159. package/lib/models/form/FormModel.js.map +1 -1
  160. package/lib/models/href/Href.js +1 -2
  161. package/lib/models/href/Href.js.map +1 -1
  162. package/lib/models/links/LinkModel.js +1 -2
  163. package/lib/models/links/LinkModel.js.map +1 -1
  164. package/lib/models/links/normalizeLinkJSON.js +1 -2
  165. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  166. package/lib/models/list/ListItemCollection.js +1 -2
  167. package/lib/models/list/ListItemCollection.js.map +1 -1
  168. package/lib/models/lookup/LookupOptionCollection.js +1 -2
  169. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  170. package/lib/models/parameter/Parameter.js +1 -2
  171. package/lib/models/parameter/Parameter.js.map +1 -1
  172. package/lib/models/resolveModel.js +1 -2
  173. package/lib/models/resolveModel.js.map +1 -1
  174. package/lib/models/sorting/SortOptionModel.js +1 -2
  175. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  176. package/lib/models/sorting/SortingModel.js +1 -2
  177. package/lib/models/sorting/SortingModel.js.map +1 -1
  178. package/lib/models/user/UserServicesModel.js +1 -2
  179. package/lib/models/user/UserServicesModel.js.map +1 -1
  180. package/lib/modularui/Authenticate.js +1 -2
  181. package/lib/modularui/Authenticate.js.map +1 -1
  182. package/lib/modularui/CaptchaRequest.js +1 -2
  183. package/lib/modularui/CaptchaRequest.js.map +1 -1
  184. package/lib/modularui/ModularUIError.js +1 -2
  185. package/lib/modularui/ModularUIError.js.map +1 -1
  186. package/lib/modularui/ModularUIRequest.js +1 -2
  187. package/lib/modularui/ModularUIRequest.js.map +1 -1
  188. package/lib/modularui/ModularUIResponse.js +1 -2
  189. package/lib/modularui/ModularUIResponse.js.map +1 -1
  190. package/lib/modularui/UploadRequest.js +1 -2
  191. package/lib/modularui/UploadRequest.js.map +1 -1
  192. package/lib/react/ErrorBoundary.js +1 -2
  193. package/lib/react/ErrorBoundary.js.map +1 -1
  194. package/lib/react/ErrorBoundaryFallback.js +1 -2
  195. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  196. package/lib/react-client/client.js +1 -2
  197. package/lib/react-client/client.js.flow +6 -3
  198. package/lib/react-client/client.js.map +1 -1
  199. package/lib/react-client/rehydrate.js +1 -2
  200. package/lib/react-client/rehydrate.js.map +1 -1
  201. package/lib/react-server/createSSRComplete.js +1 -2
  202. package/lib/react-server/createSSRComplete.js.map +1 -1
  203. package/lib/react-server/htmlpage.js +1 -2
  204. package/lib/react-server/htmlpage.js.map +1 -1
  205. package/lib/react-server/renderSSRComplete.js +1 -2
  206. package/lib/react-server/renderSSRComplete.js.map +1 -1
  207. package/lib/react-server/renderSSRMinimal.js +1 -2
  208. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  209. package/lib/react-server/serverNoSSR.js +1 -2
  210. package/lib/react-server/serverNoSSR.js.map +1 -1
  211. package/lib/react-server/serverSSR.js +1 -2
  212. package/lib/react-server/serverSSR.js.map +1 -1
  213. package/lib/react-theme/ThemeProvider.js +1 -2
  214. package/lib/react-theme/ThemeProvider.js.map +1 -1
  215. package/lib/react-theme/createTheme.js +1 -2
  216. package/lib/react-theme/createTheme.js.map +1 -1
  217. package/lib/redux/_modularui/ModularUIConnector.js +1 -2
  218. package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
  219. package/lib/redux/_modularui/ModularUISelectors.js +1 -2
  220. package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
  221. package/lib/redux/_modularui/withModularUI.js +1 -2
  222. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  223. package/lib/redux/_router/RouterConnectors.js +5 -10
  224. package/lib/redux/_router/RouterConnectors.js.map +1 -1
  225. package/lib/redux/connectors/Application.js +1 -2
  226. package/lib/redux/connectors/Application.js.map +1 -1
  227. package/lib/redux/connectors/Breadcrumb.js +1 -2
  228. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  229. package/lib/redux/connectors/CaseView.js +1 -2
  230. package/lib/redux/connectors/CaseView.js.map +1 -1
  231. package/lib/redux/connectors/ConceptDetail.js +1 -2
  232. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  233. package/lib/redux/connectors/ContentBrowser.js +1 -2
  234. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  235. package/lib/redux/connectors/ContentDetail.js +1 -2
  236. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  237. package/lib/redux/connectors/ContentDetailSection.js +1 -2
  238. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  239. package/lib/redux/connectors/Form.js +1 -2
  240. package/lib/redux/connectors/Form.js.map +1 -1
  241. package/lib/redux/connectors/FormAttributeSet.js +1 -2
  242. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  243. package/lib/redux/connectors/ListDetail.js +1 -2
  244. package/lib/redux/connectors/ListDetail.js.map +1 -1
  245. package/lib/redux/connectors/Modal.js +1 -2
  246. package/lib/redux/connectors/Modal.js.map +1 -1
  247. package/lib/redux/connectors/ModelCatalog.js +1 -2
  248. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  249. package/lib/redux/connectors/Notification.js +1 -2
  250. package/lib/redux/connectors/Notification.js.map +1 -1
  251. package/lib/redux/connectors/PanelRenderer.js +1 -2
  252. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  253. package/lib/redux/connectors/Progress.js +1 -2
  254. package/lib/redux/connectors/Progress.js.map +1 -1
  255. package/lib/redux/connectors/ProgressIndicator.js +1 -2
  256. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  257. package/lib/redux/connectors/QuickSearch.js +1 -2
  258. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  259. package/lib/redux/connectors/SignIn.js +1 -2
  260. package/lib/redux/connectors/SignIn.js.map +1 -1
  261. package/lib/redux/connectors/SignOut.js +1 -2
  262. package/lib/redux/connectors/SignOut.js.map +1 -1
  263. package/lib/redux/connectors/Tab.js +1 -2
  264. package/lib/redux/connectors/Tab.js.map +1 -1
  265. package/lib/redux/reducers/AuthReducer.js +1 -2
  266. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  267. package/lib/redux/reducers/ErrorReducer.js +1 -2
  268. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  269. package/lib/redux/reducers/ModalsReducer.js +1 -2
  270. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  271. package/lib/redux/reducers/NotificationReducer.js +1 -2
  272. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  273. package/lib/redux/reducers/PreferencesReducer.js +1 -2
  274. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  275. package/lib/redux/reducers/ProgressIndicatorReducer.js +1 -2
  276. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  277. package/lib/redux/store/configureStore.js +1 -2
  278. package/lib/redux/store/configureStore.js.map +1 -1
  279. package/lib/utils/browser/Cache.js +1 -2
  280. package/lib/utils/browser/Cache.js.map +1 -1
  281. package/lib/utils/datetime/DateTimeUtil.js +4 -8
  282. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  283. package/lib/utils/fetch/universalFetch.js +1 -2
  284. package/lib/utils/fetch/universalFetch.js.map +1 -1
  285. package/lib/utils/fetch/xhr.js +1 -2
  286. package/lib/utils/fetch/xhr.js.map +1 -1
  287. package/lib/utils/helpers/createUUID.js +1 -2
  288. package/lib/utils/helpers/createUUID.js.map +1 -1
  289. package/lib/utils/number/DecimalFormat.js +1 -2
  290. package/lib/utils/number/DecimalFormat.js.map +1 -1
  291. package/lib/utils/number/formatValue.js +1 -2
  292. package/lib/utils/number/formatValue.js.map +1 -1
  293. package/package.json +12 -13
  294. package/src/builder/__tests__/LayoutHintConfig.json +11 -0
  295. package/src/builder/__tests__/mergeLayoutHintConfigurations.spec.js +23 -16
  296. package/src/builder/__tests__/subdir/LayoutHintConfig.json +11 -0
  297. package/src/builder/mergeLayoutHintConfigurations.js +33 -37
  298. package/src/react-client/client.js +6 -3
  299. package/types/models/filters/StringFilterModel.d.ts +15 -0
@@ -8,7 +8,7 @@ exports.connectContentBrowser = void 0;
8
8
  var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularUIConnector"));
9
9
  /**
10
10
  */
11
- const connectContentBrowser = (0, _ModularUIConnector.default)("ContentBrowser", _ref => {
11
+ const connectContentBrowser = exports.connectContentBrowser = (0, _ModularUIConnector.default)("ContentBrowser", _ref => {
12
12
  let {
13
13
  href
14
14
  } = _ref;
@@ -16,5 +16,4 @@ const connectContentBrowser = (0, _ModularUIConnector.default)("ContentBrowser",
16
16
  }, {
17
17
  propName: "contentindex"
18
18
  });
19
- exports.connectContentBrowser = connectContentBrowser;
20
19
  //# sourceMappingURL=ContentBrowser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentBrowser.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectContentBrowser","modularui","_ref","href","propName","exports"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,qBAAyC,GAAG,IAAAC,2BAAS,EAChE,gBAAgB,EAChBC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAClB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC;AAACC,OAAA,CAAAL,qBAAA,GAAAA,qBAAA"}
1
+ {"version":3,"file":"ContentBrowser.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectContentBrowser","exports","modularui","_ref","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,qBAAyC,GAAAC,OAAA,CAAAD,qBAAA,GAAG,IAAAE,2BAAS,EAChE,gBAAgB,EAChBC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAClB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC"}
@@ -8,7 +8,7 @@ exports.connectContentDetail = void 0;
8
8
  var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularUIConnector"));
9
9
  /**
10
10
  */
11
- const connectContentDetail = (0, _ModularUIConnector.default)("ContentDetail", _ref => {
11
+ const connectContentDetail = exports.connectContentDetail = (0, _ModularUIConnector.default)("ContentDetail", _ref => {
12
12
  let {
13
13
  content,
14
14
  location
@@ -17,5 +17,4 @@ const connectContentDetail = (0, _ModularUIConnector.default)("ContentDetail", _
17
17
  }, {
18
18
  propName: "contentTOC"
19
19
  });
20
- exports.connectContentDetail = connectContentDetail;
21
20
  //# sourceMappingURL=ContentDetail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentDetail.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectContentDetail","modularui","_ref","content","location","decodeURIComponent","search","propName","exports"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,oBAAwC,GAAG,IAAAC,2BAAS,EAC/D,eAAe,EACfC,IAAA;EAAA,IAAC;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAAF,IAAA;EAAA,OACnB,YAAWG,kBAAkB,CAACF,OAAO,CAAE,GAAEC,QAAQ,CAACE,MAAO,EAAC;AAAA,GAC7D;EAAEC,QAAQ,EAAE;AAAa,CAC3B,CAAC;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA"}
1
+ {"version":3,"file":"ContentDetail.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectContentDetail","exports","modularui","_ref","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,oBAAwC,GAAAC,OAAA,CAAAD,oBAAA,GAAG,IAAAE,2BAAS,EAC/D,eAAe,EACfC,IAAA;EAAA,IAAC;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAAF,IAAA;EAAA,OACnB,YAAWG,kBAAkB,CAACF,OAAO,CAAE,GAAEC,QAAQ,CAACE,MAAO,EAAC;AAAA,GAC7D;EAAEC,QAAQ,EAAE;AAAa,CAC3B,CAAC"}
@@ -9,7 +9,7 @@ var _Href = _interopRequireDefault(require("../../models/href/Href"));
9
9
  var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularUIConnector"));
10
10
  /**
11
11
  */
12
- const connectContentDetailSection = (0, _ModularUIConnector.default)("ContentDetailSection", _ref => {
12
+ const connectContentDetailSection = exports.connectContentDetailSection = (0, _ModularUIConnector.default)("ContentDetailSection", _ref => {
13
13
  let {
14
14
  sectioncontent,
15
15
  section,
@@ -19,5 +19,4 @@ const connectContentDetailSection = (0, _ModularUIConnector.default)("ContentDet
19
19
  }, {
20
20
  propName: "content"
21
21
  });
22
- exports.connectContentDetailSection = connectContentDetailSection;
23
22
  //# sourceMappingURL=ContentDetailSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentDetailSection.js","names":["_Href","_interopRequireDefault","require","_ModularUIConnector","connectContentDetailSection","modularui","_ref","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName","exports"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,2BAA+C,GAAG,IAAAC,2BAAS,EACtE,sBAAsB,EACtBC,IAAA;EAAA,IAAC;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAU,CAAC,GAAAH,IAAA;EAAA,OACrC,IAAII,aAAI,CACL,YAAWC,kBAAkB,CAACJ,cAAc,CAAE,IAAGC,OAAQ,EAC5D,CAAC,CAACI,YAAY,CAAC,WAAW,EAAEH,SAAS,CAAC;AAAA,GACxC;EAAEI,QAAQ,EAAE;AAAU,CACxB,CAAC;AAACC,OAAA,CAAAV,2BAAA,GAAAA,2BAAA"}
1
+ {"version":3,"file":"ContentDetailSection.js","names":["_Href","_interopRequireDefault","require","_ModularUIConnector","connectContentDetailSection","exports","modularui","_ref","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,2BAA+C,GAAAC,OAAA,CAAAD,2BAAA,GAAG,IAAAE,2BAAS,EACtE,sBAAsB,EACtBC,IAAA;EAAA,IAAC;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAU,CAAC,GAAAH,IAAA;EAAA,OACrC,IAAII,aAAI,CACL,YAAWC,kBAAkB,CAACJ,cAAc,CAAE,IAAGC,OAAQ,EAC5D,CAAC,CAACI,YAAY,CAAC,WAAW,EAAEH,SAAS,CAAC;AAAA,GACxC;EAAEI,QAAQ,EAAE;AAAU,CACxB,CAAC"}
@@ -39,6 +39,5 @@ const moduiConnectedForm = (0, _ModularUIConnector.default)("Form", _ref => {
39
39
 
40
40
  /**
41
41
  */
42
- const connectForm = (0, _redux.compose)(moduiConnectedForm, reduxConnectedForm);
43
- exports.connectForm = connectForm;
42
+ const connectForm = exports.connectForm = (0, _redux.compose)(moduiConnectedForm, reduxConnectedForm);
44
43
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","names":["_redux","require","_reactRedux","_ModularUIConnector","_interopRequireDefault","_Constants","_Settings","_Form","_Notification","_Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","connect","moduiConnectedForm","modularui","_ref","href","formHref","Href","pathname","search","getSetting","addParameter","propName","method","HTTP_METHODS","POST","connectForm","compose","exports"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\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 { ModularUIConnector, UpdateFormAction } 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) => UpdateFormAction,\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,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAEA,IAAAQ,KAAA,GAAAL,sBAAA,CAAAH,OAAA;AA+BA,MAAMS,eAAe,GAAGA,CACtBC,KAAiB,EACjBC,QAAkB,MACF;EAChBC,OAAO,EAAEF,KAAK,CAACG,MAAM,CAACC,QAAQ,EAAEJ,KAAK,EAAEK,KAAK,IAAIJ,QAAQ,CAACC,OAAO,IAAI;AACtE,CAAC,CAAC;AAEF,MAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEC,oBAAc;EAC1BC,QAAQ,EAAEC,gBAAU;EACpBC,oBAAoB,EAApBA;AACF,CAAC;AAED,MAAMC,kBAAkB,GAAG,IAAAC,mBAAO,EAChCd,eAAe,EACfO,kBACF,CAAC;AAED,MAAMQ,kBAAsC,GAAG,IAAAC,2BAAS,EACtD,MAAM,EACNC,IAAA,IAAwB;EAAA,IAAvB;IAAEC,IAAI;IAAEb;EAAS,CAAC,GAAAY,IAAA;EACjB,MAAME,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAI,CAAE,GAAEf,QAAQ,CAACgB,QAAS,GAAEhB,QAAQ,CAACiB,MAAO,EAAC,CAAC;EAE3E,IAAI,IAAAC,oBAAU,EAAC,oBAAoB,CAAC,EAAE;IACpC,OAAOJ,QAAQ;EACjB;EAEA,OAAOA,QAAQ,CAACK,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;AACjD,CAAC,EACD;EAAEC,QAAQ,EAAE,MAAM;EAAEC,MAAM,EAAEC,uBAAY,CAACC;AAAK,CAChD,CAAC;;AAED;AACA;AACO,MAAMC,WAEmB,GAAG,IAAAC,cAAO,EACxCf,kBAAkB,EAClBF,kBACF,CAAC;AAACkB,OAAA,CAAAF,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"Form.js","names":["_redux","require","_reactRedux","_ModularUIConnector","_interopRequireDefault","_Constants","_Settings","_Form","_Notification","_Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","connect","moduiConnectedForm","modularui","_ref","href","formHref","Href","pathname","search","getSetting","addParameter","propName","method","HTTP_METHODS","POST","connectForm","exports","compose"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\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 { ModularUIConnector, UpdateFormAction } 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) => UpdateFormAction,\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,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAEA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAEA,IAAAQ,KAAA,GAAAL,sBAAA,CAAAH,OAAA;AA+BA,MAAMS,eAAe,GAAGA,CACtBC,KAAiB,EACjBC,QAAkB,MACF;EAChBC,OAAO,EAAEF,KAAK,CAACG,MAAM,CAACC,QAAQ,EAAEJ,KAAK,EAAEK,KAAK,IAAIJ,QAAQ,CAACC,OAAO,IAAI;AACtE,CAAC,CAAC;AAEF,MAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEC,oBAAc;EAC1BC,QAAQ,EAAEC,gBAAU;EACpBC,oBAAoB,EAApBA;AACF,CAAC;AAED,MAAMC,kBAAkB,GAAG,IAAAC,mBAAO,EAChCd,eAAe,EACfO,kBACF,CAAC;AAED,MAAMQ,kBAAsC,GAAG,IAAAC,2BAAS,EACtD,MAAM,EACNC,IAAA,IAAwB;EAAA,IAAvB;IAAEC,IAAI;IAAEb;EAAS,CAAC,GAAAY,IAAA;EACjB,MAAME,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAI,CAAE,GAAEf,QAAQ,CAACgB,QAAS,GAAEhB,QAAQ,CAACiB,MAAO,EAAC,CAAC;EAE3E,IAAI,IAAAC,oBAAU,EAAC,oBAAoB,CAAC,EAAE;IACpC,OAAOJ,QAAQ;EACjB;EAEA,OAAOA,QAAQ,CAACK,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;AACjD,CAAC,EACD;EAAEC,QAAQ,EAAE,MAAM;EAAEC,MAAM,EAAEC,uBAAY,CAACC;AAAK,CAChD,CAAC;;AAED;AACA;AACO,MAAMC,WAEmB,GAAAC,OAAA,CAAAD,WAAA,GAAG,IAAAE,cAAO,EACxChB,kBAAkB,EAClBF,kBACF,CAAC"}
@@ -22,6 +22,5 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
22
22
 
23
23
  /**
24
24
  */
25
- const connectFormAttributeSet = (0, _reactRedux.connect)(null, mapDispatchToProps);
26
- exports.connectFormAttributeSet = connectFormAttributeSet;
25
+ const connectFormAttributeSet = exports.connectFormAttributeSet = (0, _reactRedux.connect)(null, mapDispatchToProps);
27
26
  //# sourceMappingURL=FormAttributeSet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormAttributeSet.js","names":["_reactRedux","require","_FormAttributeSet","_FormAttributeSetRepeatable","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","arguments","length","undefined","autosubmit","autosave","updateFormAttribute","form","object","onAddAttributeSetClick","addRepeatableAttributeSet","onCancelAttributeSetClick","formObject","cancelRepeatableAttributeSet","onRemoveAttributeSetClick","removeRepeatableAttributeSet","connectFormAttributeSet","connect","exports"],"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 { UpdateFormAction } 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<UpdateFormAction> & 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: () => UpdateFormAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAwCA,MAAMG,kBAAkB,GAAGA,CACzBC,QAAkB,EAClBC,QAAkB,MACC;EACnBC,iBAAiB,EAAE,SAAAA,CACjBC,SAAwB,EACxBC,KAAa;IAAA,IACbC,OAA0B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG;MAC3BG,UAAU,EAAER,QAAQ,CAACQ,UAAU,IAAI,KAAK;MACxCC,QAAQ,EAAET,QAAQ,CAACS,QAAQ,IAAI;IACjC,CAAC;IAAA,OAEDV,QAAQ,CACN,IAAAW,qCAAmB,EACjBV,QAAQ,CAACW,IAAI,EACbX,QAAQ,CAACY,MAAM,EACfV,SAAS,EACTC,KAAK,EACLC,OACF,CACF,CAAC;EAAA;EACHS,sBAAsB,EAAEA,CAAA,KACtBd,QAAQ,CAAC,IAAAe,qDAAyB,EAACd,QAAQ,CAACW,IAAI,CAAC,CAAC;EACpDI,yBAAyB,EAAGC,UAA2B,IACrDjB,QAAQ,CAAC,IAAAkB,wDAA4B,EAACjB,QAAQ,CAACW,IAAI,EAAEK,UAAU,CAAC,CAAC;EACnEE,yBAAyB,EAAGF,UAA2B,IACrDjB,QAAQ,CAAC,IAAAoB,wDAA4B,EAACnB,QAAQ,CAACW,IAAI,EAAEK,UAAU,CAAC;AACpE,CAAC,CAAC;;AAEF;AACA;AACO,MAAMI,uBAA2C,GAAG,IAAAC,mBAAO,EAOhE,IAAI,EAAEvB,kBAAkB,CAAC;AAACwB,OAAA,CAAAF,uBAAA,GAAAA,uBAAA"}
1
+ {"version":3,"file":"FormAttributeSet.js","names":["_reactRedux","require","_FormAttributeSet","_FormAttributeSetRepeatable","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","arguments","length","undefined","autosubmit","autosave","updateFormAttribute","form","object","onAddAttributeSetClick","addRepeatableAttributeSet","onCancelAttributeSetClick","formObject","cancelRepeatableAttributeSet","onRemoveAttributeSetClick","removeRepeatableAttributeSet","connectFormAttributeSet","exports","connect"],"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 { UpdateFormAction } 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<UpdateFormAction> & 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: () => UpdateFormAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAF,OAAA;AAwCA,MAAMG,kBAAkB,GAAGA,CACzBC,QAAkB,EAClBC,QAAkB,MACC;EACnBC,iBAAiB,EAAE,SAAAA,CACjBC,SAAwB,EACxBC,KAAa;IAAA,IACbC,OAA0B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG;MAC3BG,UAAU,EAAER,QAAQ,CAACQ,UAAU,IAAI,KAAK;MACxCC,QAAQ,EAAET,QAAQ,CAACS,QAAQ,IAAI;IACjC,CAAC;IAAA,OAEDV,QAAQ,CACN,IAAAW,qCAAmB,EACjBV,QAAQ,CAACW,IAAI,EACbX,QAAQ,CAACY,MAAM,EACfV,SAAS,EACTC,KAAK,EACLC,OACF,CACF,CAAC;EAAA;EACHS,sBAAsB,EAAEA,CAAA,KACtBd,QAAQ,CAAC,IAAAe,qDAAyB,EAACd,QAAQ,CAACW,IAAI,CAAC,CAAC;EACpDI,yBAAyB,EAAGC,UAA2B,IACrDjB,QAAQ,CAAC,IAAAkB,wDAA4B,EAACjB,QAAQ,CAACW,IAAI,EAAEK,UAAU,CAAC,CAAC;EACnEE,yBAAyB,EAAGF,UAA2B,IACrDjB,QAAQ,CAAC,IAAAoB,wDAA4B,EAACnB,QAAQ,CAACW,IAAI,EAAEK,UAAU,CAAC;AACpE,CAAC,CAAC;;AAEF;AACA;AACO,MAAMI,uBAA2C,GAAAC,OAAA,CAAAD,uBAAA,GAAG,IAAAE,mBAAO,EAOhE,IAAI,EAAExB,kBAAkB,CAAC"}
@@ -9,7 +9,7 @@ var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularU
9
9
  var _ListDetailModel = _interopRequireDefault(require("../../models/list/ListDetailModel"));
10
10
  /**
11
11
  */
12
- const connectListDetail = (0, _ModularUIConnector.default)("ListDetail", _ref => {
12
+ const connectListDetail = exports.connectListDetail = (0, _ModularUIConnector.default)("ListDetail", _ref => {
13
13
  let {
14
14
  href
15
15
  } = _ref;
@@ -18,5 +18,4 @@ const connectListDetail = (0, _ModularUIConnector.default)("ListDetail", _ref =>
18
18
  propName: "detail",
19
19
  targetModel: _ListDetailModel.default
20
20
  });
21
- exports.connectListDetail = connectListDetail;
22
21
  //# sourceMappingURL=ListDetail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListDetail.js","names":["_ModularUIConnector","_interopRequireDefault","require","_ListDetailModel","connectListDetail","modularui","_ref","href","propName","targetModel","ListDetailModel","exports"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,iBAAqC,GAAG,IAAAC,2BAAS,EAC5D,YAAY,EACZC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAClB;EACEC,QAAQ,EAAE,QAAQ;EAClBC,WAAW,EAAEC;AACf,CACF,CAAC;AAACC,OAAA,CAAAP,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"file":"ListDetail.js","names":["_ModularUIConnector","_interopRequireDefault","require","_ListDetailModel","connectListDetail","exports","modularui","_ref","href","propName","targetModel","ListDetailModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,iBAAqC,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,2BAAS,EAC5D,YAAY,EACZC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAClB;EACEC,QAAQ,EAAE,QAAQ;EAClBC,WAAW,EAAEC;AACf,CACF,CAAC"}
@@ -23,6 +23,5 @@ const mapDispatchToProps = {
23
23
 
24
24
  /**
25
25
  */
26
- const connectModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
27
- exports.connectModal = connectModal;
26
+ const connectModal = exports.connectModal = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
28
27
  //# sourceMappingURL=Modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","names":["_reactRedux","require","_Modals","mapStateToProps","state","_context","visibleModal","_find","default","modals","call","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal","connect","exports"],"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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAoBA,MAAME,eAAe,GAAIC,KAAiB,IAAiB;EAAA,IAAAC,QAAA;EACzD,MAAMC,YAAY,GAAG,IAAAC,KAAA,CAAAC,OAAA,EAAAH,QAAA,GAAAD,KAAK,CAACK,MAAM,CAACA,MAAM,EAAAC,IAAA,CAAAL,QAAA,EAAOM,KAAK,IAAKA,KAAK,CAACC,OAAO,CAAC;EAEvE,OAAO;IACLC,eAAe,EAAEP,YAAY,GAAGA,YAAY,CAACQ,GAAG,GAAG,IAAI;IACvDC,gBAAgB,EAAET,YAAY,GAAGA,YAAY,CAACU,IAAI,GAAG;EACvD,CAAC;AACH,CAAC;AAED,MAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEC,iBAAS;EACtBC,YAAY,EAAEC;AAChB,CAAC;;AAED;AACA;AACO,MAAMC,YAAgC,GAAG,IAAAC,mBAAO,EAOrDpB,eAAe,EAAEc,kBAAkB,CAAC;AAACO,OAAA,CAAAF,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"Modal.js","names":["_reactRedux","require","_Modals","mapStateToProps","state","_context","visibleModal","_find","default","modals","call","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal","exports","connect"],"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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAoBA,MAAME,eAAe,GAAIC,KAAiB,IAAiB;EAAA,IAAAC,QAAA;EACzD,MAAMC,YAAY,GAAG,IAAAC,KAAA,CAAAC,OAAA,EAAAH,QAAA,GAAAD,KAAK,CAACK,MAAM,CAACA,MAAM,EAAAC,IAAA,CAAAL,QAAA,EAAOM,KAAK,IAAKA,KAAK,CAACC,OAAO,CAAC;EAEvE,OAAO;IACLC,eAAe,EAAEP,YAAY,GAAGA,YAAY,CAACQ,GAAG,GAAG,IAAI;IACvDC,gBAAgB,EAAET,YAAY,GAAGA,YAAY,CAACU,IAAI,GAAG;EACvD,CAAC;AACH,CAAC;AAED,MAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEC,iBAAS;EACtBC,YAAY,EAAEC;AAChB,CAAC;;AAED;AACA;AACO,MAAMC,YAAgC,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,mBAAO,EAOrDrB,eAAe,EAAEc,kBAAkB,CAAC"}
@@ -8,7 +8,7 @@ exports.connectModelCatalog = void 0;
8
8
  var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularUIConnector"));
9
9
  /**
10
10
  */
11
- const connectModelCatalog = (0, _ModularUIConnector.default)("ModelCatalog", _ref => {
11
+ const connectModelCatalog = exports.connectModelCatalog = (0, _ModularUIConnector.default)("ModelCatalog", _ref => {
12
12
  let {
13
13
  match
14
14
  } = _ref;
@@ -16,5 +16,4 @@ const connectModelCatalog = (0, _ModularUIConnector.default)("ModelCatalog", _re
16
16
  }, {
17
17
  propName: "modelcatalog"
18
18
  });
19
- exports.connectModelCatalog = connectModelCatalog;
20
19
  //# sourceMappingURL=ModelCatalog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModelCatalog.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectModelCatalog","modularui","_ref","match","url","propName","exports"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,mBAAuC,GAAG,IAAAC,2BAAS,EAC9D,cAAc,EACdC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,GAAG;AAAA,GACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC;AAACC,OAAA,CAAAN,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"file":"ModelCatalog.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectModelCatalog","exports","modularui","_ref","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,mBAAuC,GAAAC,OAAA,CAAAD,mBAAA,GAAG,IAAAE,2BAAS,EAC9D,cAAc,EACdC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,GAAG;AAAA,GACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC"}
@@ -18,6 +18,5 @@ const mapDispatchToProps = {
18
18
 
19
19
  /**
20
20
  */
21
- const connectNotification = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
22
- exports.connectNotification = connectNotification;
21
+ const connectNotification = exports.connectNotification = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
23
22
  //# sourceMappingURL=Notification.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","names":["_reactRedux","require","_Notification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification","connect","exports"],"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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAuBA,MAAME,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,WAAW,EAAED,KAAK,CAACE,YAAY,CAACD,WAAW;EAC3CE,OAAO,EAAEH,KAAK,CAACE,YAAY,CAACC,OAAO;EACnCC,KAAK,EAAEJ,KAAK,CAACE,YAAY,CAACE,KAAK;EAC/BC,MAAM,EAAEL,KAAK,CAACE,YAAY,CAACG;AAC7B,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAEC;AACb,CAAC;;AAED;AACA;AACO,MAAMC,mBAAuC,GAAG,IAAAC,mBAAO,EAO5DX,eAAe,EAAEO,kBAAkB,CAAC;AAACK,OAAA,CAAAF,mBAAA,GAAAA,mBAAA"}
1
+ {"version":3,"file":"Notification.js","names":["_reactRedux","require","_Notification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification","exports","connect"],"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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAuBA,MAAME,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,WAAW,EAAED,KAAK,CAACE,YAAY,CAACD,WAAW;EAC3CE,OAAO,EAAEH,KAAK,CAACE,YAAY,CAACC,OAAO;EACnCC,KAAK,EAAEJ,KAAK,CAACE,YAAY,CAACE,KAAK;EAC/BC,MAAM,EAAEL,KAAK,CAACE,YAAY,CAACG;AAC7B,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAEC;AACb,CAAC;;AAED;AACA;AACO,MAAMC,mBAAuC,GAAAC,OAAA,CAAAD,mBAAA,GAAG,IAAAE,mBAAO,EAO5DZ,eAAe,EAAEO,kBAAkB,CAAC"}
@@ -9,7 +9,7 @@ var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularU
9
9
  var _Href = _interopRequireDefault(require("../../models/href/Href"));
10
10
  /**
11
11
  */
12
- const connectPanel = (0, _ModularUIConnector.default)("PanelRenderer", _ref => {
12
+ const connectPanel = exports.connectPanel = (0, _ModularUIConnector.default)("PanelRenderer", _ref => {
13
13
  let {
14
14
  href,
15
15
  match,
@@ -26,5 +26,4 @@ const connectPanel = (0, _ModularUIConnector.default)("PanelRenderer", _ref => {
26
26
  }, {
27
27
  propName: "panel"
28
28
  });
29
- exports.connectPanel = connectPanel;
30
29
  //# sourceMappingURL=PanelRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PanelRenderer.js","names":["_ModularUIConnector","_interopRequireDefault","require","_Href","connectPanel","modularui","_ref","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName","exports"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,YAAgC,GAAG,IAAAC,2BAAS,EACvD,eAAe,EACfC,IAAA,IAAuC;EAAA,IAAtC;IAAEC,IAAI;IAAEC,KAAK;IAAEC,WAAW,GAAG;EAAG,CAAC,GAAAH,IAAA;EAChC,IAAI,CAACC,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,MAAM,IAAIE,KAAK,CACb,8DACF,CAAC;EACH;EAEA,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAI,CAACL,IAAI,CAAC,GAAG,IAAIK,aAAI,CAACJ,KAAK,CAACK,GAAG,CAAC;EAE7D,IAAIL,KAAK,IAAIA,KAAK,CAACM,OAAO,EAAE;IAC1BH,SAAS,CAACI,uBAAuB,CAACN,WAAW,CAAC;EAChD;EAEA,OAAOE,SAAS;AAClB,CAAC,EACD;EACEK,QAAQ,EAAE;AACZ,CACF,CAAC;AAACC,OAAA,CAAAb,YAAA,GAAAA,YAAA"}
1
+ {"version":3,"file":"PanelRenderer.js","names":["_ModularUIConnector","_interopRequireDefault","require","_Href","connectPanel","exports","modularui","_ref","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAME,YAAgC,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,2BAAS,EACvD,eAAe,EACfC,IAAA,IAAuC;EAAA,IAAtC;IAAEC,IAAI;IAAEC,KAAK;IAAEC,WAAW,GAAG;EAAG,CAAC,GAAAH,IAAA;EAChC,IAAI,CAACC,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,MAAM,IAAIE,KAAK,CACb,8DACF,CAAC;EACH;EAEA,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAI,CAACL,IAAI,CAAC,GAAG,IAAIK,aAAI,CAACJ,KAAK,CAACK,GAAG,CAAC;EAE7D,IAAIL,KAAK,IAAIA,KAAK,CAACM,OAAO,EAAE;IAC1BH,SAAS,CAACI,uBAAuB,CAACN,WAAW,CAAC;EAChD;EAEA,OAAOE,SAAS;AAClB,CAAC,EACD;EACEK,QAAQ,EAAE;AACZ,CACF,CAAC"}
@@ -15,6 +15,5 @@ const mapDispatchToProps = {
15
15
 
16
16
  /**
17
17
  */
18
- const connectProgress = (0, _reactRedux.connect)(null, mapDispatchToProps);
19
- exports.connectProgress = connectProgress;
18
+ const connectProgress = exports.connectProgress = (0, _reactRedux.connect)(null, mapDispatchToProps);
20
19
  //# sourceMappingURL=Progress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.js","names":["_reactRedux","require","_ProgressIndicator","_Error","mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress","connect","exports"],"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,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAgBA,MAAMG,kBAAiC,GAAG;EACxCC,eAAe,EAAEC,gCAAa;EAC9BC,gBAAgB,EAAEC,iCAAc;EAChCC,OAAO,EAAEC;AACX,CAAC;;AAED;AACA;AACO,MAAMC,eAAmC,GAAG,IAAAC,mBAAO,EAOxD,IAAI,EAAER,kBAAkB,CAAC;AAACS,OAAA,CAAAF,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"Progress.js","names":["_reactRedux","require","_ProgressIndicator","_Error","mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress","exports","connect"],"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,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAgBA,MAAMG,kBAAiC,GAAG;EACxCC,eAAe,EAAEC,gCAAa;EAC9BC,gBAAgB,EAAEC,iCAAc;EAChCC,OAAO,EAAEC;AACX,CAAC;;AAED;AACA;AACO,MAAMC,eAAmC,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,mBAAO,EAOxD,IAAI,EAAET,kBAAkB,CAAC"}
@@ -15,6 +15,5 @@ const mapStateToProps = state => ({
15
15
 
16
16
  /**
17
17
  */
18
- const connectProgressIndicator = (0, _reactRedux.connect)(mapStateToProps);
19
- exports.connectProgressIndicator = connectProgressIndicator;
18
+ const connectProgressIndicator = exports.connectProgressIndicator = (0, _reactRedux.connect)(mapStateToProps);
20
19
  //# sourceMappingURL=ProgressIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressIndicator.js","names":["_reactRedux","require","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator","connect","exports"],"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,IAAAA,WAAA,GAAAC,OAAA;AAgBA;AACA;AACA,MAAMC,eAAe,GAAIC,KAAiB,KAAM;EAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAiB,CAACD,KAAK;EACpCE,SAAS,EAAEH,KAAK,CAACE,iBAAiB,CAACC,SAAS;EAC5CC,eAAe,EAAEJ,KAAK,CAACE,iBAAiB,CAACE;AAC3C,CAAC,CAAC;;AAEF;AACA;AACO,MAAMC,wBAA4C,GAAG,IAAAC,mBAAO,EAOjEP,eAAe,CAAC;AAACQ,OAAA,CAAAF,wBAAA,GAAAA,wBAAA"}
1
+ {"version":3,"file":"ProgressIndicator.js","names":["_reactRedux","require","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator","exports","connect"],"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,IAAAA,WAAA,GAAAC,OAAA;AAgBA;AACA;AACA,MAAMC,eAAe,GAAIC,KAAiB,KAAM;EAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAiB,CAACD,KAAK;EACpCE,SAAS,EAAEH,KAAK,CAACE,iBAAiB,CAACC,SAAS;EAC5CC,eAAe,EAAEJ,KAAK,CAACE,iBAAiB,CAACE;AAC3C,CAAC,CAAC;;AAEF;AACA;AACO,MAAMC,wBAA4C,GAAAC,OAAA,CAAAD,wBAAA,GAAG,IAAAE,mBAAO,EAOjER,eAAe,CAAC"}
@@ -16,7 +16,7 @@ const mapDispatchToProps = {
16
16
 
17
17
  /**
18
18
  */
19
- const connectQuickSearch = (0, _redux.compose)((0, _reactRedux.connect)(null, mapDispatchToProps), (0, _ModularUIConnector.default)("QuickSearch", _ref => {
19
+ const connectQuickSearch = exports.connectQuickSearch = (0, _redux.compose)((0, _reactRedux.connect)(null, mapDispatchToProps), (0, _ModularUIConnector.default)("QuickSearch", _ref => {
20
20
  let {
21
21
  href
22
22
  } = _ref;
@@ -24,5 +24,4 @@ const connectQuickSearch = (0, _redux.compose)((0, _reactRedux.connect)(null, ma
24
24
  }, {
25
25
  propName: "search"
26
26
  }));
27
- exports.connectQuickSearch = connectQuickSearch;
28
27
  //# sourceMappingURL=QuickSearch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuickSearch.js","names":["_redux","require","_reactRedux","_ModularUIConnector","_interopRequireDefault","_RouterActions","_Href","mapDispatchToProps","push","connectQuickSearch","compose","connect","modularui","_ref","href","propName","exports"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport { push } from \"../_router/RouterActions\";\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,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAKA,IAAAK,KAAA,GAAAF,sBAAA,CAAAH,OAAA;AAYA,MAAMM,kBAAiC,GAAG;EACxCC,IAAI,EAAJA;AACF,CAAC;;AAED;AACA;AACO,MAAMC,kBAEmB,GAAG,IAAAC,cAAO,EACxC,IAAAC,mBAAO,EAA8B,IAAI,EAAEJ,kBAAkB,CAAC,EAC9D,IAAAK,2BAAS,EAAC,aAAa,EAAEC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAAE;EAC3CC,QAAQ,EAAE;AACZ,CAAC,CACH,CAAC;AAACC,OAAA,CAAAP,kBAAA,GAAAA,kBAAA"}
1
+ {"version":3,"file":"QuickSearch.js","names":["_redux","require","_reactRedux","_ModularUIConnector","_interopRequireDefault","_RouterActions","_Href","mapDispatchToProps","push","connectQuickSearch","exports","compose","connect","modularui","_ref","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport { push } from \"../_router/RouterActions\";\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,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAKA,IAAAK,KAAA,GAAAF,sBAAA,CAAAH,OAAA;AAYA,MAAMM,kBAAiC,GAAG;EACxCC,IAAI,EAAJA;AACF,CAAC;;AAED;AACA;AACO,MAAMC,kBAEmB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,cAAO,EACxC,IAAAC,mBAAO,EAA8B,IAAI,EAAEL,kBAAkB,CAAC,EAC9D,IAAAM,2BAAS,EAAC,aAAa,EAAEC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,GAAE;EAC3CC,QAAQ,EAAE;AACZ,CAAC,CACH,CAAC"}
@@ -20,6 +20,5 @@ const mapDispatchToProps = {
20
20
 
21
21
  /**
22
22
  */
23
- const connectSignIn = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
24
- exports.connectSignIn = connectSignIn;
23
+ const connectSignIn = exports.connectSignIn = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
25
24
  //# sourceMappingURL=SignIn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignIn.js","names":["_reactRedux","require","_SignIn","_ModularUISelectors","mapStateToProps","state","application","getApplication","isAuthenticated","isLoggedIn","errorMessage","auth","error","mapDispatchToProps","onSubmit","login","connectSignIn","connect","exports"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/ModularUISelectors\";\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: application?.isLoggedIn ?? false,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AAmBA,MAAMG,eAAe,GAAIC,KAAiB,IAAiB;EACzD,MAAMC,WAAW,GAAG,IAAAC,kCAAc,EAACF,KAAK,CAAC;EAEzC,OAAO;IACLG,eAAe,EAAEF,WAAW,EAAEG,UAAU,IAAI,KAAK;IACjDC,YAAY,EAAEL,KAAK,CAACM,IAAI,CAACC;EAC3B,CAAC;AACH,CAAC;AAED,MAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEC;AACZ,CAAC;;AAED;AACA;AACO,MAAMC,aAAiC,GAAG,IAAAC,mBAAO,EAOtDb,eAAe,EAAES,kBAAkB,CAAC;AAACK,OAAA,CAAAF,aAAA,GAAAA,aAAA"}
1
+ {"version":3,"file":"SignIn.js","names":["_reactRedux","require","_SignIn","_ModularUISelectors","mapStateToProps","state","application","getApplication","isAuthenticated","isLoggedIn","errorMessage","auth","error","mapDispatchToProps","onSubmit","login","connectSignIn","exports","connect"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/ModularUISelectors\";\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: application?.isLoggedIn ?? false,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAF,OAAA;AAmBA,MAAMG,eAAe,GAAIC,KAAiB,IAAiB;EACzD,MAAMC,WAAW,GAAG,IAAAC,kCAAc,EAACF,KAAK,CAAC;EAEzC,OAAO;IACLG,eAAe,EAAEF,WAAW,EAAEG,UAAU,IAAI,KAAK;IACjDC,YAAY,EAAEL,KAAK,CAACM,IAAI,CAACC;EAC3B,CAAC;AACH,CAAC;AAED,MAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEC;AACZ,CAAC;;AAED;AACA;AACO,MAAMC,aAAiC,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,mBAAO,EAOtDd,eAAe,EAAES,kBAAkB,CAAC"}
@@ -16,6 +16,5 @@ const mapDispatchToProps = {
16
16
 
17
17
  /**
18
18
  */
19
- const connectSignOut = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
20
- exports.connectSignOut = connectSignOut;
19
+ const connectSignOut = exports.connectSignOut = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps);
21
20
  //# sourceMappingURL=SignOut.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignOut.js","names":["_reactRedux","require","_SignOut","_modularui","mapStateToProps","state","isAuthenticated","getApplication","isLoggedIn","mapDispatchToProps","doLogout","logout","connectSignOut","connect","exports"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\nimport { getApplication } from \"../_modularui\";\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: ReduxState): StateProps => ({\n isAuthenticated: getApplication(state)?.isLoggedIn ?? false,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAIA,IAAAE,UAAA,GAAAF,OAAA;AAeA,MAAMG,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,eAAe,EAAE,IAAAC,yBAAc,EAACF,KAAK,CAAC,EAAEG,UAAU,IAAI;AACxD,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EAAEC,QAAQ,EAAEC;AAAO,CAAC;;AAE/C;AACA;AACO,MAAMC,cAAkC,GAAG,IAAAC,mBAAO,EAOvDT,eAAe,EAAEK,kBAAkB,CAAC;AAACK,OAAA,CAAAF,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"file":"SignOut.js","names":["_reactRedux","require","_SignOut","_modularui","mapStateToProps","state","isAuthenticated","getApplication","isLoggedIn","mapDispatchToProps","doLogout","logout","connectSignOut","exports","connect"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\nimport { getApplication } from \"../_modularui\";\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: ReduxState): StateProps => ({\n isAuthenticated: getApplication(state)?.isLoggedIn ?? false,\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,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAIA,IAAAE,UAAA,GAAAF,OAAA;AAeA,MAAMG,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,eAAe,EAAE,IAAAC,yBAAc,EAACF,KAAK,CAAC,EAAEG,UAAU,IAAI;AACxD,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EAAEC,QAAQ,EAAEC;AAAO,CAAC;;AAE/C;AACA;AACO,MAAMC,cAAkC,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,mBAAO,EAOvDV,eAAe,EAAEK,kBAAkB,CAAC"}
@@ -8,7 +8,7 @@ exports.connectTab = void 0;
8
8
  var _ModularUIConnector = _interopRequireDefault(require("../_modularui/ModularUIConnector"));
9
9
  /**
10
10
  */
11
- const connectTab = (0, _ModularUIConnector.default)("Tab", _ref => {
11
+ const connectTab = exports.connectTab = (0, _ModularUIConnector.default)("Tab", _ref => {
12
12
  let {
13
13
  match
14
14
  } = _ref;
@@ -16,5 +16,4 @@ const connectTab = (0, _ModularUIConnector.default)("Tab", _ref => {
16
16
  }, {
17
17
  propName: "tab"
18
18
  });
19
- exports.connectTab = connectTab;
20
19
  //# sourceMappingURL=Tab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectTab","modularui","_ref","match","url","propName","exports"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,UAA8B,GAAG,IAAAC,2BAAS,EACrD,KAAK,EACLC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,GAAG;AAAA,GACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC;AAACC,OAAA,CAAAN,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"file":"Tab.js","names":["_ModularUIConnector","_interopRequireDefault","require","connectTab","exports","modularui","_ref","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA;AACA;AACO,MAAMC,UAA8B,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,2BAAS,EACrD,KAAK,EACLC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,GAAG;AAAA,GACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC"}
@@ -55,6 +55,5 @@ const AuthReducer = function () {
55
55
  return state;
56
56
  }
57
57
  };
58
- var _default = AuthReducer;
59
- exports.default = _default;
58
+ var _default = exports.default = AuthReducer;
60
59
  //# sourceMappingURL=AuthReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthReducer.js","names":["initialState","mustChangePassword","error","AuthReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\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 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 return {\n ...state,\n mustChangePassword: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;AAIA;AACA,MAAMA,YAAuB,GAAG;EAC9BC,kBAAkB,EAAE,KAAK;EACzBC,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACA,MAAMC,WAA4C,GAAG,SAAAA,CAAA,EAGhD;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGL,YAAY;EAAA,IACpBQ,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOJ,KAAK;EACd;EAEA,QAAQI,MAAM,CAACC,IAAI;IACjB,KAAK,wBAAwB;MAC3B,OAAO;QACL,GAAGL,KAAK;QACRF,KAAK,EAAE,IAAI;QACXD,kBAAkB,EAAE;MACtB,CAAC;IAEH,KAAK,sBAAsB;MACzB,OAAO;QAAE,GAAGG,KAAK;QAAEH,kBAAkB,EAAE,KAAK;QAAEC,KAAK,EAAEM,MAAM,CAACE;MAAQ,CAAC;IAEvE,KAAK,6BAA6B;MAChC,OAAO;QAAE,GAAGN,KAAK;QAAEF,KAAK,EAAE;MAAK,CAAC;IAElC,KAAK,uBAAuB;MAAE;QAC5B,OAAO;UACL,GAAGE,KAAK;UACRH,kBAAkB,EAAE,KAAK;UACzBC,KAAK,EAAE;QACT,CAAC;MACH;IAEA,KAAK,iBAAiB;MACpB,OAAO;QACL,GAAGE,KAAK;QACRH,kBAAkB,EAAE,IAAI;QACxBC,KAAK,EAAE;MACT,CAAC;IAEH;MACE,OAAOE,KAAK;EAChB;AACF,CAAC;AAAC,IAAAO,QAAA,GAEaR,WAAW;AAAAS,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"AuthReducer.js","names":["initialState","mustChangePassword","error","AuthReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\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 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 return {\n ...state,\n mustChangePassword: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;AAIA;AACA,MAAMA,YAAuB,GAAG;EAC9BC,kBAAkB,EAAE,KAAK;EACzBC,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACA,MAAMC,WAA4C,GAAG,SAAAA,CAAA,EAGhD;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGL,YAAY;EAAA,IACpBQ,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOJ,KAAK;EACd;EAEA,QAAQI,MAAM,CAACC,IAAI;IACjB,KAAK,wBAAwB;MAC3B,OAAO;QACL,GAAGL,KAAK;QACRF,KAAK,EAAE,IAAI;QACXD,kBAAkB,EAAE;MACtB,CAAC;IAEH,KAAK,sBAAsB;MACzB,OAAO;QAAE,GAAGG,KAAK;QAAEH,kBAAkB,EAAE,KAAK;QAAEC,KAAK,EAAEM,MAAM,CAACE;MAAQ,CAAC;IAEvE,KAAK,6BAA6B;MAChC,OAAO;QAAE,GAAGN,KAAK;QAAEF,KAAK,EAAE;MAAK,CAAC;IAElC,KAAK,uBAAuB;MAAE;QAC5B,OAAO;UACL,GAAGE,KAAK;UACRH,kBAAkB,EAAE,KAAK;UACzBC,KAAK,EAAE;QACT,CAAC;MACH;IAEA,KAAK,iBAAiB;MACpB,OAAO;QACL,GAAGE,KAAK;QACRH,kBAAkB,EAAE,IAAI;QACxBC,KAAK,EAAE;MACT,CAAC;IAEH;MACE,OAAOE,KAAK;EAChB;AACF,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaV,WAAW"}
@@ -18,6 +18,5 @@ const ErrorReducer = function () {
18
18
  }
19
19
  return state;
20
20
  };
21
- var _default = ErrorReducer;
22
- exports.default = _default;
21
+ var _default = exports.default = ErrorReducer;
23
22
  //# sourceMappingURL=ErrorReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorReducer.js","names":["initialState","ErrorReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAAwB,GAAG,IAAI;;AAErC;AACA;AACA;AACA,MAAMC,YAA8C,GAAG,SAAAA,CAAA,EAGlD;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,YAAY;EAAA,IACpBM,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAIC,MAAM,IAAIA,MAAM,CAACC,IAAI,KAAK,YAAY,EAAE;IAC1C,OAAOD,MAAM,CAACE,OAAO;EACvB;EAEA,OAAON,KAAK;AACd,CAAC;AAAC,IAAAO,QAAA,GAEaR,YAAY;AAAAS,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"ErrorReducer.js","names":["initialState","ErrorReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAAwB,GAAG,IAAI;;AAErC;AACA;AACA;AACA,MAAMC,YAA8C,GAAG,SAAAA,CAAA,EAGlD;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,YAAY;EAAA,IACpBM,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAIC,MAAM,IAAIA,MAAM,CAACC,IAAI,KAAK,YAAY,EAAE;IAC1C,OAAOD,MAAM,CAACE,OAAO;EACvB;EAEA,OAAON,KAAK;AACd,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaV,YAAY"}
@@ -54,6 +54,5 @@ const ModalsReducer = function () {
54
54
  return state;
55
55
  }
56
56
  };
57
- var _default = ModalsReducer;
58
- exports.default = _default;
57
+ var _default = exports.default = ModalsReducer;
59
58
  //# sourceMappingURL=ModalsReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalsReducer.js","names":["showModal","state","modalKey","_context","_map","default","modals","call","modal","visible","key","closeModal","_context2","_context3","_filter","idx","arr","length","initialState","ModalsReducer","arguments","undefined","action","type","payload","_default","exports"],"sources":["../../../src/redux/reducers/ModalsReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state: ModalsState, modalKey: string) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state: ModalsState, modalKey: string) =>\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,MAAMA,SAAS,GAAGA,CAACC,KAAkB,EAAEC,QAAgB;EAAA,IAAAC,QAAA;EAAA,OAAK,CAC1D,GAAG,IAAAC,IAAA,CAAAC,OAAA,EAAAF,QAAA,GAAAF,KAAK,CAACK,MAAM,EAAAC,IAAA,CAAAJ,QAAA,EAAMK,KAAK,KAAM;IAC9B,GAAGA,KAAK;IACRC,OAAO,EAAE;EACX,CAAC,CAAC,CAAC,EACH;IACEC,GAAG,EAAER,QAAQ;IACbO,OAAO,EAAE;EACX,CAAC,CACF;AAAA;AAED,MAAME,UAAU,GAAGA,CAACV,KAAkB,EAAEC,QAAgB;EAAA,IAAAU,SAAA,EAAAC,SAAA;EAAA,OACtD,IAAAT,IAAA,CAAAC,OAAA,EAAAO,SAAA,OAAAE,OAAA,CAAAT,OAAA,EAAAQ,SAAA,GAAAZ,KAAK,CAACK,MAAM,EAAAC,IAAA,CAAAM,SAAA,EACDL,KAAK,IAAKA,KAAK,CAACE,GAAG,KAAKR,QAAQ,CAAC,EAAAK,IAAA,CAAAK,SAAA,EACrC,CAACJ,KAAK,EAAEO,GAAG,EAAEC,GAAG,MAAM;IACzB,GAAGR,KAAK;IACRC,OAAO,EAAEO,GAAG,CAACC,MAAM,KAAKF,GAAG,GAAG;EAChC,CAAC,CAAC,CAAC;AAAA;;AAEP;AACA,MAAMG,YAAyB,GAAG;EAChCZ,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA,MAAMa,aAAgD,GAAG,SAAAA,CAAA,EAGpD;EAAA,IAFHlB,KAAK,GAAAmB,SAAA,CAAAH,MAAA,QAAAG,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGF,YAAY;EAAA,IACpBI,MAAM,GAAAF,SAAA,CAAAH,MAAA,OAAAG,SAAA,MAAAC,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOrB,KAAK;EACd;EAEA,QAAQqB,MAAM,CAACC,IAAI;IACjB,KAAK,YAAY;MACf,OAAO;QACL,GAAGtB,KAAK;QACRK,MAAM,EAAEN,SAAS,CAACC,KAAK,EAAEqB,MAAM,CAACE,OAAO;MACzC,CAAC;IAEH,KAAK,aAAa;MAChB,OAAO;QACL,GAAGvB,KAAK;QACRK,MAAM,EAAEK,UAAU,CAACV,KAAK,EAAEqB,MAAM,CAACE,OAAO;MAC1C,CAAC;IAEH;MACE,OAAOvB,KAAK;EAChB;AACF,CAAC;AAAC,IAAAwB,QAAA,GAEaN,aAAa;AAAAO,OAAA,CAAArB,OAAA,GAAAoB,QAAA"}
1
+ {"version":3,"file":"ModalsReducer.js","names":["showModal","state","modalKey","_context","_map","default","modals","call","modal","visible","key","closeModal","_context2","_context3","_filter","idx","arr","length","initialState","ModalsReducer","arguments","undefined","action","type","payload","_default","exports"],"sources":["../../../src/redux/reducers/ModalsReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state: ModalsState, modalKey: string) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state: ModalsState, modalKey: string) =>\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,MAAMA,SAAS,GAAGA,CAACC,KAAkB,EAAEC,QAAgB;EAAA,IAAAC,QAAA;EAAA,OAAK,CAC1D,GAAG,IAAAC,IAAA,CAAAC,OAAA,EAAAF,QAAA,GAAAF,KAAK,CAACK,MAAM,EAAAC,IAAA,CAAAJ,QAAA,EAAMK,KAAK,KAAM;IAC9B,GAAGA,KAAK;IACRC,OAAO,EAAE;EACX,CAAC,CAAC,CAAC,EACH;IACEC,GAAG,EAAER,QAAQ;IACbO,OAAO,EAAE;EACX,CAAC,CACF;AAAA;AAED,MAAME,UAAU,GAAGA,CAACV,KAAkB,EAAEC,QAAgB;EAAA,IAAAU,SAAA,EAAAC,SAAA;EAAA,OACtD,IAAAT,IAAA,CAAAC,OAAA,EAAAO,SAAA,OAAAE,OAAA,CAAAT,OAAA,EAAAQ,SAAA,GAAAZ,KAAK,CAACK,MAAM,EAAAC,IAAA,CAAAM,SAAA,EACDL,KAAK,IAAKA,KAAK,CAACE,GAAG,KAAKR,QAAQ,CAAC,EAAAK,IAAA,CAAAK,SAAA,EACrC,CAACJ,KAAK,EAAEO,GAAG,EAAEC,GAAG,MAAM;IACzB,GAAGR,KAAK;IACRC,OAAO,EAAEO,GAAG,CAACC,MAAM,KAAKF,GAAG,GAAG;EAChC,CAAC,CAAC,CAAC;AAAA;;AAEP;AACA,MAAMG,YAAyB,GAAG;EAChCZ,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA,MAAMa,aAAgD,GAAG,SAAAA,CAAA,EAGpD;EAAA,IAFHlB,KAAK,GAAAmB,SAAA,CAAAH,MAAA,QAAAG,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAGF,YAAY;EAAA,IACpBI,MAAM,GAAAF,SAAA,CAAAH,MAAA,OAAAG,SAAA,MAAAC,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOrB,KAAK;EACd;EAEA,QAAQqB,MAAM,CAACC,IAAI;IACjB,KAAK,YAAY;MACf,OAAO;QACL,GAAGtB,KAAK;QACRK,MAAM,EAAEN,SAAS,CAACC,KAAK,EAAEqB,MAAM,CAACE,OAAO;MACzC,CAAC;IAEH,KAAK,aAAa;MAChB,OAAO;QACL,GAAGvB,KAAK;QACRK,MAAM,EAAEK,UAAU,CAACV,KAAK,EAAEqB,MAAM,CAACE,OAAO;MAC1C,CAAC;IAEH;MACE,OAAOvB,KAAK;EAChB;AACF,CAAC;AAAC,IAAAwB,QAAA,GAAAC,OAAA,CAAArB,OAAA,GAEac,aAAa"}
@@ -39,6 +39,5 @@ const NotificationReducer = function () {
39
39
  return state;
40
40
  }
41
41
  };
42
- var _default = NotificationReducer;
43
- exports.default = _default;
42
+ var _default = exports.default = NotificationReducer;
44
43
  //# sourceMappingURL=NotificationReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationReducer.js","names":["initialState","render","messageType","message","error","NotificationReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAA+B,GAAG;EACtCC,MAAM,EAAE,KAAK;EACbC,WAAW,EAAE,IAAI;EACjBC,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACA,MAAMC,mBAA4D,GAAG,SAAAA,CAAA,EAGhE;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGP,YAAY;EAAA,IACpBU,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOJ,KAAK;EACd;EAEA,QAAQI,MAAM,CAACC,IAAI;IACjB,KAAK,sBAAsB;MACzB,OAAO;QACL,GAAGL,KAAK;QACRL,MAAM,EAAE;MACV,CAAC;IAEH,KAAK,mBAAmB;MACtB,OAAO;QACL,GAAGK,KAAK;QACRL,MAAM,EAAE,IAAI;QACZC,WAAW,EAAEQ,MAAM,CAACE,OAAO,CAACD,IAAI;QAChCR,OAAO,EAAEO,MAAM,CAACE,OAAO,CAACT,OAAO;QAC/BC,KAAK,EAAEM,MAAM,CAACE,OAAO,CAACR;MACxB,CAAC;IAEH;MACE,OAAOE,KAAK;EAChB;AACF,CAAC;AAAC,IAAAO,QAAA,GAEaR,mBAAmB;AAAAS,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"NotificationReducer.js","names":["initialState","render","messageType","message","error","NotificationReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAA+B,GAAG;EACtCC,MAAM,EAAE,KAAK;EACbC,WAAW,EAAE,IAAI;EACjBC,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE;AACT,CAAC;;AAED;AACA;AACA;AACA,MAAMC,mBAA4D,GAAG,SAAAA,CAAA,EAGhE;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGP,YAAY;EAAA,IACpBU,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOJ,KAAK;EACd;EAEA,QAAQI,MAAM,CAACC,IAAI;IACjB,KAAK,sBAAsB;MACzB,OAAO;QACL,GAAGL,KAAK;QACRL,MAAM,EAAE;MACV,CAAC;IAEH,KAAK,mBAAmB;MACtB,OAAO;QACL,GAAGK,KAAK;QACRL,MAAM,EAAE,IAAI;QACZC,WAAW,EAAEQ,MAAM,CAACE,OAAO,CAACD,IAAI;QAChCR,OAAO,EAAEO,MAAM,CAACE,OAAO,CAACT,OAAO;QAC/BC,KAAK,EAAEM,MAAM,CAACE,OAAO,CAACR;MACxB,CAAC;IAEH;MACE,OAAOE,KAAK;EAChB;AACF,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaV,mBAAmB"}
@@ -26,6 +26,5 @@ const PreferencesReducer = function () {
26
26
  }
27
27
  return state;
28
28
  };
29
- var _default = PreferencesReducer;
30
- exports.default = _default;
29
+ var _default = exports.default = PreferencesReducer;
31
30
  //# sourceMappingURL=PreferencesReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesReducer.js","names":["initialState","PreferencesReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAAsC,GAAG,CAAC,CAAC;;AAEjD;AACA;AACA;AACA,MAAMC,kBAA0D,GAAG,SAAAA,CAAA,EAG9D;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,YAAY;EAAA,IACpBM,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAIC,MAAM,EAAEC,IAAI,KAAK,gBAAgB,EAAE;IACrC,OAAO;MACL,GAAGL,KAAK;MACR,GAAGI,MAAM,CAACE;IACZ,CAAC;EACH;EAEA,IAAIF,MAAM,EAAEC,IAAI,KAAK,iBAAiB,EAAE;IACtC,OAAO;MACL,GAAGL,KAAK;MACR,GAAGI,MAAM,CAACE;IACZ,CAAC;EACH;EAEA,OAAON,KAAK;AACd,CAAC;AAAC,IAAAO,QAAA,GAEaR,kBAAkB;AAAAS,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"PreferencesReducer.js","names":["initialState","PreferencesReducer","state","arguments","length","undefined","action","type","payload","_default","exports","default"],"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,MAAMA,YAAsC,GAAG,CAAC,CAAC;;AAEjD;AACA;AACA;AACA,MAAMC,kBAA0D,GAAG,SAAAA,CAAA,EAG9D;EAAA,IAFHC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGH,YAAY;EAAA,IACpBM,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAIC,MAAM,EAAEC,IAAI,KAAK,gBAAgB,EAAE;IACrC,OAAO;MACL,GAAGL,KAAK;MACR,GAAGI,MAAM,CAACE;IACZ,CAAC;EACH;EAEA,IAAIF,MAAM,EAAEC,IAAI,KAAK,iBAAiB,EAAE;IACtC,OAAO;MACL,GAAGL,KAAK;MACR,GAAGI,MAAM,CAACE;IACZ,CAAC;EACH;EAEA,OAAON,KAAK;AACd,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaV,kBAAkB"}
@@ -51,6 +51,5 @@ const progressIndicatorReducer = function () {
51
51
  return state;
52
52
  }
53
53
  };
54
- var _default = progressIndicatorReducer;
55
- exports.default = _default;
54
+ var _default = exports.default = progressIndicatorReducer;
56
55
  //# sourceMappingURL=ProgressIndicatorReducer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressIndicatorReducer.js","names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","arguments","length","undefined","action","type","payload","_default","exports","default"],"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: ProgressIndicatorState) => {\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,MAAMA,YAAoC,GAAG;EAC3CC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,cAAc,GAAIC,KAA6B,IAAK;EACxD,MAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAK,GAAG,CAAC,KAAK,CAAC;EAC3C,OAAO;IACL,GAAGI,KAAK;IACRJ,KAAK,EAAEI,KAAK,CAACJ,KAAK,IAAI,CAAC,GAAG,CAAC,GAAGI,KAAK,CAACJ,KAAK,GAAG,CAAC;IAC7CC,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGH,KAAK,CAACH,SAAS;IACvDC,eAAe,EAAEG,aAAa,GAAG,CAAC,GAAGD,KAAK,CAACF;EAC7C,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,MAAMM,wBAAsE,GAAG,SAAAA,CAAA,EAG1E;EAAA,IAFHJ,KAAK,GAAAK,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGV,YAAY;EAAA,IACpBa,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOR,KAAK;EACd;EAEA,QAAQQ,MAAM,CAACC,IAAI;IACjB,KAAK,iBAAiB;MACpB,OAAO;QACL,GAAGT,KAAK;QACRF,eAAe,EAAEU,MAAM,CAACE,OAAO,EAAEZ;MACnC,CAAC;IAEH,KAAK,iBAAiB;MACpB,OAAOC,cAAc,CAACC,KAAK,CAAC;IAE9B,KAAK,gBAAgB;MACnB,OAAO;QACL,GAAGA,KAAK;QACRJ,KAAK,EAAEI,KAAK,CAACJ,KAAK,GAAG;MACvB,CAAC;IAEH,KAAK,gBAAgB;MACnB,OAAO;QACL,GAAGI,KAAK;QACRJ,KAAK,EAAE;MACT,CAAC;IAEH;MACE,OAAOI,KAAK;EAChB;AACF,CAAC;AAAC,IAAAW,QAAA,GAEaP,wBAAwB;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"ProgressIndicatorReducer.js","names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","arguments","length","undefined","action","type","payload","_default","exports","default"],"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: ProgressIndicatorState) => {\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,MAAMA,YAAoC,GAAG;EAC3CC,KAAK,EAAE,CAAC;EACRC,SAAS,EAAE,CAAC;EACZC,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,cAAc,GAAIC,KAA6B,IAAK;EACxD,MAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAK,GAAG,CAAC,KAAK,CAAC;EAC3C,OAAO;IACL,GAAGI,KAAK;IACRJ,KAAK,EAAEI,KAAK,CAACJ,KAAK,IAAI,CAAC,GAAG,CAAC,GAAGI,KAAK,CAACJ,KAAK,GAAG,CAAC;IAC7CC,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,GAAGH,KAAK,CAACH,SAAS;IACvDC,eAAe,EAAEG,aAAa,GAAG,CAAC,GAAGD,KAAK,CAACF;EAC7C,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,MAAMM,wBAAsE,GAAG,SAAAA,CAAA,EAG1E;EAAA,IAFHJ,KAAK,GAAAK,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGV,YAAY;EAAA,IACpBa,MAAM,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAEN,IAAI,CAACC,MAAM,EAAE;IACX,OAAOR,KAAK;EACd;EAEA,QAAQQ,MAAM,CAACC,IAAI;IACjB,KAAK,iBAAiB;MACpB,OAAO;QACL,GAAGT,KAAK;QACRF,eAAe,EAAEU,MAAM,CAACE,OAAO,EAAEZ;MACnC,CAAC;IAEH,KAAK,iBAAiB;MACpB,OAAOC,cAAc,CAACC,KAAK,CAAC;IAE9B,KAAK,gBAAgB;MACnB,OAAO;QACL,GAAGA,KAAK;QACRJ,KAAK,EAAEI,KAAK,CAACJ,KAAK,GAAG;MACvB,CAAC;IAEH,KAAK,gBAAgB;MACnB,OAAO;QACL,GAAGI,KAAK;QACRJ,KAAK,EAAE;MACT,CAAC;IAEH;MACE,OAAOI,KAAK;EAChB;AACF,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaT,wBAAwB"}
@@ -33,6 +33,5 @@ const configureStore = (routerHistory, customReducers, initialState) => {
33
33
  store
34
34
  };
35
35
  };
36
- var _default = configureStore;
37
- exports.default = _default;
36
+ var _default = exports.default = configureStore;
38
37
  //# sourceMappingURL=configureStore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configureStore.js","names":["_redux","require","_reduxThunk","_interopRequireDefault","_RouterMiddleware","_ModularUIMiddleware","_createReducer","_RouterActions","configureStore","routerHistory","customReducers","initialState","composeEnhancers","compose","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","combineReducers","createReducer","middleware","applyMiddleware","modularUIMiddleware","routerMiddleware","thunk","enhancers","store","createReduxStore","router","dispatch","locationChange","location","_default","exports","default"],"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/RouterMiddleware\";\nimport { modularUIMiddleware } from \"../_modularui/ModularUIMiddleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/RouterActions\";\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 routerHistory: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>,\n): { routerHistory: 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(routerHistory),\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?.router) {\n store.dispatch(locationChange(routerHistory.location, \"PUSH\"));\n }\n return { routerHistory, store };\n};\n\nexport default configureStore;\n"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAMA;AACA;AACA,MAAMO,cAAc,GAAGA,CACrBC,aAA4B,EAC5BC,cAAuB,EACvBC,YAAiC,KACuB;EACxD,IAAIC,gBAAgB,GAAGC,cAAO;EAE9B,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IAC1EL,gBAAgB,GAAGK,MAAM,CAACC,oCAAoC,IAAIL,cAAO;EAC3E;EAEA,MAAMM,gBAAkD,GAAG,IAAAC,sBAAe,EAAC;IACzE,GAAGV,cAAc;IACjB,GAAG,IAAAW,4BAAa,EAAC;EACnB,CAAC,CAAC;EAEF,MAAMC,UAAU,GAAG,IAAAC,sBAAe,EAChCC,wCAAmB,EACnB,IAAAC,kCAAgB,EAAChB,aAAa,CAAC,EAC/BiB,mBACF,CAAC;EAED,MAAMC,SAAS,GAAGf,gBAAgB,CAACU,UAAU,CAAC;EAE9C,MAAMM,KAAiB,GAAG,IAAAC,kBAAgB,EACxCV,gBAAgB,EAChBR,YAAY,EACZgB,SACF,CAAC;EAED,IAAI,CAAChB,YAAY,EAAEmB,MAAM,EAAE;IACzBF,KAAK,CAACG,QAAQ,CAAC,IAAAC,6BAAc,EAACvB,aAAa,CAACwB,QAAQ,EAAE,MAAM,CAAC,CAAC;EAChE;EACA,OAAO;IAAExB,aAAa;IAAEmB;EAAM,CAAC;AACjC,CAAC;AAAC,IAAAM,QAAA,GAEa1B,cAAc;AAAA2B,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"configureStore.js","names":["_redux","require","_reduxThunk","_interopRequireDefault","_RouterMiddleware","_ModularUIMiddleware","_createReducer","_RouterActions","configureStore","routerHistory","customReducers","initialState","composeEnhancers","compose","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","combineReducers","createReducer","middleware","applyMiddleware","modularUIMiddleware","routerMiddleware","thunk","enhancers","store","createReduxStore","router","dispatch","locationChange","location","_default","exports","default"],"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/RouterMiddleware\";\nimport { modularUIMiddleware } from \"../_modularui/ModularUIMiddleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/RouterActions\";\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 routerHistory: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>,\n): { routerHistory: 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(routerHistory),\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?.router) {\n store.dispatch(locationChange(routerHistory.location, \"PUSH\"));\n }\n return { routerHistory, store };\n};\n\nexport default configureStore;\n"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAEA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAMA;AACA;AACA,MAAMO,cAAc,GAAGA,CACrBC,aAA4B,EAC5BC,cAAuB,EACvBC,YAAiC,KACuB;EACxD,IAAIC,gBAAgB,GAAGC,cAAO;EAE9B,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IAC1EL,gBAAgB,GAAGK,MAAM,CAACC,oCAAoC,IAAIL,cAAO;EAC3E;EAEA,MAAMM,gBAAkD,GAAG,IAAAC,sBAAe,EAAC;IACzE,GAAGV,cAAc;IACjB,GAAG,IAAAW,4BAAa,EAAC;EACnB,CAAC,CAAC;EAEF,MAAMC,UAAU,GAAG,IAAAC,sBAAe,EAChCC,wCAAmB,EACnB,IAAAC,kCAAgB,EAAChB,aAAa,CAAC,EAC/BiB,mBACF,CAAC;EAED,MAAMC,SAAS,GAAGf,gBAAgB,CAACU,UAAU,CAAC;EAE9C,MAAMM,KAAiB,GAAG,IAAAC,kBAAgB,EACxCV,gBAAgB,EAChBR,YAAY,EACZgB,SACF,CAAC;EAED,IAAI,CAAChB,YAAY,EAAEmB,MAAM,EAAE;IACzBF,KAAK,CAACG,QAAQ,CAAC,IAAAC,6BAAc,EAACvB,aAAa,CAACwB,QAAQ,EAAE,MAAM,CAAC,CAAC;EAChE;EACA,OAAO;IAAExB,aAAa;IAAEmB;EAAM,CAAC;AACjC,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa5B,cAAc"}