@beinformed/ui 1.18.1 → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/esm/builder/index.js.map +1 -1
  3. package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
  4. package/esm/constants/Constants.js.map +1 -1
  5. package/esm/constants/LayoutHintConfig.js.map +1 -1
  6. package/esm/constants/LayoutHints.js.map +1 -1
  7. package/esm/constants/Settings.js.map +1 -1
  8. package/esm/constants/index.js.map +1 -1
  9. package/esm/exceptions/ConfigurationException.js.map +1 -1
  10. package/esm/exceptions/FetchException.js.map +1 -1
  11. package/esm/exceptions/IllegalArgumentException.js.map +1 -1
  12. package/esm/exceptions/IllegalReturnException.js.map +1 -1
  13. package/esm/exceptions/IllegalStateException.js.map +1 -1
  14. package/esm/exceptions/JsonParseException.js.map +1 -1
  15. package/esm/exceptions/MissingPropertyException.js.map +1 -1
  16. package/esm/exceptions/NetworkException.js.map +1 -1
  17. package/esm/exceptions/NotAllowedUriException.js.map +1 -1
  18. package/esm/exceptions/NotFoundException.js.map +1 -1
  19. package/esm/exceptions/ServerRequestException.js.map +1 -1
  20. package/esm/exceptions/ThemePropertyException.js.map +1 -1
  21. package/esm/exceptions/TimeoutException.js.map +1 -1
  22. package/esm/exceptions/UnauthorizedException.js.map +1 -1
  23. package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
  24. package/esm/exceptions/index.js.map +1 -1
  25. package/esm/hooks/index.js.map +1 -1
  26. package/esm/hooks/useAllFormsOnModel.js.map +1 -1
  27. package/esm/hooks/useAuthentication.js.map +1 -1
  28. package/esm/hooks/useContent.js.map +1 -1
  29. package/esm/hooks/useDeepCompareEffect.js.map +1 -1
  30. package/esm/hooks/useForm.js.map +1 -1
  31. package/esm/hooks/useI18n.js.map +1 -1
  32. package/esm/hooks/useModal.js.map +1 -1
  33. package/esm/hooks/useModelCatalog.js.map +1 -1
  34. package/esm/hooks/useModels.js.map +1 -1
  35. package/esm/hooks/useModularUI.js.map +1 -1
  36. package/esm/hooks/useModularUIBasic.js.map +1 -1
  37. package/esm/hooks/useModularUIModel.js.map +1 -1
  38. package/esm/hooks/useModularUIRequest.js.map +1 -1
  39. package/esm/hooks/useNotification.js.map +1 -1
  40. package/esm/hooks/usePreference.js.map +1 -1
  41. package/esm/hooks/useProgressIndicator.js.map +1 -1
  42. package/esm/hooks/useRouter.js.map +1 -1
  43. package/esm/i18n/Locale.js.map +1 -1
  44. package/esm/i18n/Locales.js.map +1 -1
  45. package/esm/i18n/Message.js.map +1 -1
  46. package/esm/i18n/index.js.map +1 -1
  47. package/esm/i18n/languages.js.map +1 -1
  48. package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  49. package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  50. package/esm/i18n/types.js.map +1 -1
  51. package/esm/i18n/withMessage.js.map +1 -1
  52. package/esm/index.js.map +1 -1
  53. package/esm/models/actions/ActionCollection.js.map +1 -1
  54. package/esm/models/actions/ActionModel.js.map +1 -1
  55. package/esm/models/application/ApplicationModel.js.map +1 -1
  56. package/esm/models/attributes/AttributeCollection.js.map +1 -1
  57. package/esm/models/attributes/AttributeContent.js.map +1 -1
  58. package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
  59. package/esm/models/attributes/AttributeModel.js.map +1 -1
  60. package/esm/models/attributes/AttributeSetModel.js.map +1 -1
  61. package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
  62. package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
  63. package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
  64. package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  65. package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  66. package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  67. package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
  68. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  69. package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
  70. package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
  71. package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
  72. package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
  73. package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
  74. package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
  75. package/esm/models/attributes/StringAttributeModel.js.map +1 -1
  76. package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
  77. package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
  78. package/esm/models/attributes/_createAttribute.js.map +1 -1
  79. package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  80. package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  81. package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  82. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  83. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  84. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  85. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  86. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  87. package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  88. package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  89. package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  90. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  91. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  92. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  93. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  94. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  95. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  96. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  97. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  98. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  99. package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  100. package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  101. package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  102. package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  103. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  104. package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  105. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  106. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  107. package/esm/models/base/BaseCollection.js.map +1 -1
  108. package/esm/models/base/BaseModel.js.map +1 -1
  109. package/esm/models/base/ResourceCollection.js.map +1 -1
  110. package/esm/models/base/ResourceModel.js.map +1 -1
  111. package/esm/models/caseview/CaseViewModel.js.map +1 -1
  112. package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
  113. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  114. package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
  115. package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
  116. package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
  117. package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
  118. package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  119. package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
  120. package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
  121. package/esm/models/content/ContentIndexModel.js.map +1 -1
  122. package/esm/models/content/ContentLinkModel.js.map +1 -1
  123. package/esm/models/content/ContentModel.js.map +1 -1
  124. package/esm/models/content/ContentTOCModel.js.map +1 -1
  125. package/esm/models/content/ContentTypeModel.js.map +1 -1
  126. package/esm/models/content/SectionModel.js.map +1 -1
  127. package/esm/models/content/SubSectionModel.js.map +1 -1
  128. package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  129. package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  130. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  131. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  132. package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  133. package/esm/models/detail/DetailModel.js.map +1 -1
  134. package/esm/models/error/ErrorCollection.js.map +1 -1
  135. package/esm/models/error/ErrorModel.js.map +1 -1
  136. package/esm/models/error/ErrorResponse.js.map +1 -1
  137. package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
  138. package/esm/models/filters/BaseFilterModel.js.map +1 -1
  139. package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
  140. package/esm/models/filters/FilterCollection.js.map +1 -1
  141. package/esm/models/filters/FilterModel.js.map +1 -1
  142. package/esm/models/filters/RangeFilterModel.js.map +1 -1
  143. package/esm/models/form/FormModel.js.map +1 -1
  144. package/esm/models/form/FormObjectModel.js.map +1 -1
  145. package/esm/models/grouping/GroupingModel.js.map +1 -1
  146. package/esm/models/href/Href.js.map +1 -1
  147. package/esm/models/href/ListHref.js.map +1 -1
  148. package/esm/models/index.js.map +1 -1
  149. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  150. package/esm/models/links/LinkCollection.js.map +1 -1
  151. package/esm/models/links/LinkModel.js.map +1 -1
  152. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  153. package/esm/models/list/ListDetailModel.js.map +1 -1
  154. package/esm/models/list/ListHeaderModel.js.map +1 -1
  155. package/esm/models/list/ListItemCollection.js.map +1 -1
  156. package/esm/models/list/ListItemModel.js.map +1 -1
  157. package/esm/models/list/ListModel.js +2 -2
  158. package/esm/models/list/ListModel.js.map +1 -1
  159. package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
  160. package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
  161. package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  162. package/esm/models/paging/PagesizeModel.js.map +1 -1
  163. package/esm/models/paging/PagingModel.js.map +1 -1
  164. package/esm/models/panels/GroupingPanelModel.js.map +1 -1
  165. package/esm/models/parameter/Parameter.js.map +1 -1
  166. package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
  167. package/esm/models/resolveModel.js.map +1 -1
  168. package/esm/models/search/CaseSearchModel.js.map +1 -1
  169. package/esm/models/sorting/SortOptionModel.js.map +1 -1
  170. package/esm/models/sorting/SortingModel.js.map +1 -1
  171. package/esm/models/tab/TabModel.js.map +1 -1
  172. package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
  173. package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
  174. package/esm/models/types.js.map +1 -1
  175. package/esm/models/user/UserModel.js.map +1 -1
  176. package/esm/models/user/UserProfileModel.js.map +1 -1
  177. package/esm/models/user/UserServicesModel.js.map +1 -1
  178. package/esm/modularui/Authenticate.js.map +1 -1
  179. package/esm/modularui/ModularUIError.js.map +1 -1
  180. package/esm/modularui/ModularUIRequest.js.map +1 -1
  181. package/esm/modularui/ModularUIResponse.js.map +1 -1
  182. package/esm/modularui/index.js.map +1 -1
  183. package/esm/react/ErrorBoundary.js.map +1 -1
  184. package/esm/react/ErrorBoundaryFallback.js.map +1 -1
  185. package/esm/react/index.js.map +1 -1
  186. package/esm/react/utils.js.map +1 -1
  187. package/esm/react-client/Init.js.map +1 -1
  188. package/esm/react-client/client.js.map +1 -1
  189. package/esm/react-client/contextPath.js.map +1 -1
  190. package/esm/react-client/index.js.map +1 -1
  191. package/esm/react-client/rehydrate.js.map +1 -1
  192. package/esm/react-server/contextPath.js.map +1 -1
  193. package/esm/react-server/createSSRComplete.js.map +1 -1
  194. package/esm/react-server/htmlpage.js.map +1 -1
  195. package/esm/react-server/index.js.map +1 -1
  196. package/esm/react-server/renderSSRComplete.js.map +1 -1
  197. package/esm/react-server/renderSSRMinimal.js.map +1 -1
  198. package/esm/react-server/requestInformation.js.map +1 -1
  199. package/esm/react-server/serverNoSSR.js.map +1 -1
  200. package/esm/react-server/serverSSR.js.map +1 -1
  201. package/esm/react-server/serverUtil.js.map +1 -1
  202. package/esm/react-theme/ThemeProvider.js.map +1 -1
  203. package/esm/react-theme/createTheme.js.map +1 -1
  204. package/esm/react-theme/index.js.map +1 -1
  205. package/esm/react-theme/types.js.map +1 -1
  206. package/esm/react-theme/useTheme.js.map +1 -1
  207. package/esm/react-theme/utils/background.js.map +1 -1
  208. package/esm/react-theme/utils/colors.js.map +1 -1
  209. package/esm/react-theme/utils/contrast.js.map +1 -1
  210. package/esm/react-theme/utils/corners.js.map +1 -1
  211. package/esm/react-theme/utils/spacers.js.map +1 -1
  212. package/esm/react-theme/utils/themeProps.js.map +1 -1
  213. package/esm/redux/_i18n/actions.js.map +1 -1
  214. package/esm/redux/_i18n/index.js.map +1 -1
  215. package/esm/redux/_i18n/reducer.js.map +1 -1
  216. package/esm/redux/_i18n/types.js.map +1 -1
  217. package/esm/redux/_modularui/actions.js.map +1 -1
  218. package/esm/redux/_modularui/connector.js.map +1 -1
  219. package/esm/redux/_modularui/index.js.map +1 -1
  220. package/esm/redux/_modularui/middleware.js.map +1 -1
  221. package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
  222. package/esm/redux/_modularui/reducer.js.map +1 -1
  223. package/esm/redux/_modularui/selectors.js.map +1 -1
  224. package/esm/redux/_modularui/types.js.map +1 -1
  225. package/esm/redux/_modularui/withModularUI.js.map +1 -1
  226. package/esm/redux/_router/actions.js.map +1 -1
  227. package/esm/redux/_router/connectors.js.map +1 -1
  228. package/esm/redux/_router/index.js.map +1 -1
  229. package/esm/redux/_router/middleware.js.map +1 -1
  230. package/esm/redux/_router/reducer.js.map +1 -1
  231. package/esm/redux/_router/types.js.map +1 -1
  232. package/esm/redux/actions/Application.js.map +1 -1
  233. package/esm/redux/actions/Authorization.js.map +1 -1
  234. package/esm/redux/actions/Error.js.map +1 -1
  235. package/esm/redux/actions/Form.js.map +1 -1
  236. package/esm/redux/actions/FormAttributeSet.js.map +1 -1
  237. package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  238. package/esm/redux/actions/FormAutosave.js.map +1 -1
  239. package/esm/redux/actions/FormAutosubmit.js.map +1 -1
  240. package/esm/redux/actions/FormValidations.js.map +1 -1
  241. package/esm/redux/actions/Modals.js.map +1 -1
  242. package/esm/redux/actions/Notification.js.map +1 -1
  243. package/esm/redux/actions/Preferences.js.map +1 -1
  244. package/esm/redux/actions/ProgressIndicator.js.map +1 -1
  245. package/esm/redux/actions/SignIn.js.map +1 -1
  246. package/esm/redux/actions/SignOut.js.map +1 -1
  247. package/esm/redux/actions/index.js.map +1 -1
  248. package/esm/redux/connectors/Application.js.map +1 -1
  249. package/esm/redux/connectors/Breadcrumb.js.map +1 -1
  250. package/esm/redux/connectors/CaseView.js.map +1 -1
  251. package/esm/redux/connectors/ConceptDetail.js.map +1 -1
  252. package/esm/redux/connectors/ContentBrowser.js.map +1 -1
  253. package/esm/redux/connectors/ContentDetail.js.map +1 -1
  254. package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
  255. package/esm/redux/connectors/Form.js.map +1 -1
  256. package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
  257. package/esm/redux/connectors/ListDetail.js.map +1 -1
  258. package/esm/redux/connectors/Modal.js.map +1 -1
  259. package/esm/redux/connectors/ModelCatalog.js.map +1 -1
  260. package/esm/redux/connectors/Notification.js.map +1 -1
  261. package/esm/redux/connectors/PanelRenderer.js.map +1 -1
  262. package/esm/redux/connectors/Preferences.js.map +1 -1
  263. package/esm/redux/connectors/Progress.js.map +1 -1
  264. package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
  265. package/esm/redux/connectors/QuickSearch.js.map +1 -1
  266. package/esm/redux/connectors/SignIn.js.map +1 -1
  267. package/esm/redux/connectors/SignOut.js.map +1 -1
  268. package/esm/redux/connectors/Tab.js.map +1 -1
  269. package/esm/redux/connectors/index.js.map +1 -1
  270. package/esm/redux/index.js.map +1 -1
  271. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  272. package/esm/redux/reducers/ErrorReducer.js.map +1 -1
  273. package/esm/redux/reducers/ModalsReducer.js.map +1 -1
  274. package/esm/redux/reducers/NotificationReducer.js.map +1 -1
  275. package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
  276. package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  277. package/esm/redux/reducers/createReducer.js.map +1 -1
  278. package/esm/redux/reducers/index.js.map +1 -1
  279. package/esm/redux/store/beforeRenderHooks.js.map +1 -1
  280. package/esm/redux/store/configureStore.js.map +1 -1
  281. package/esm/redux/types.js.map +1 -1
  282. package/esm/utils/browser/Cache.js.map +1 -1
  283. package/esm/utils/browser/Cookies.js.map +1 -1
  284. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  285. package/esm/utils/fetch/serverFetch.js.map +1 -1
  286. package/esm/utils/fetch/types.js.map +1 -1
  287. package/esm/utils/fetch/universalFetch.js.map +1 -1
  288. package/esm/utils/fetch/xhr.js.map +1 -1
  289. package/esm/utils/helpers/checkResource.js.map +1 -1
  290. package/esm/utils/helpers/createHash.js.map +1 -1
  291. package/esm/utils/helpers/createUUID.js.map +1 -1
  292. package/esm/utils/helpers/objects.js.map +1 -1
  293. package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
  294. package/esm/utils/helpers/text.js.map +1 -1
  295. package/esm/utils/index.js.map +1 -1
  296. package/esm/utils/number/DecimalFormat.js.map +1 -1
  297. package/esm/utils/number/formatValue.js.map +1 -1
  298. package/esm/utils/number/parseNumbers.js.map +1 -1
  299. package/lib/builder/index.js.map +1 -1
  300. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  301. package/lib/constants/Constants.js.map +1 -1
  302. package/lib/constants/LayoutHintConfig.js.map +1 -1
  303. package/lib/constants/LayoutHints.js.map +1 -1
  304. package/lib/constants/Settings.js.map +1 -1
  305. package/lib/constants/index.js.map +1 -1
  306. package/lib/exceptions/ConfigurationException.js.map +1 -1
  307. package/lib/exceptions/FetchException.js.map +1 -1
  308. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  309. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  310. package/lib/exceptions/IllegalStateException.js.map +1 -1
  311. package/lib/exceptions/JsonParseException.js.map +1 -1
  312. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  313. package/lib/exceptions/NetworkException.js.map +1 -1
  314. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  315. package/lib/exceptions/NotFoundException.js.map +1 -1
  316. package/lib/exceptions/ServerRequestException.js.map +1 -1
  317. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  318. package/lib/exceptions/TimeoutException.js.map +1 -1
  319. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  320. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  321. package/lib/exceptions/index.js.map +1 -1
  322. package/lib/hooks/index.js.map +1 -1
  323. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  324. package/lib/hooks/useAuthentication.js.map +1 -1
  325. package/lib/hooks/useContent.js.map +1 -1
  326. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  327. package/lib/hooks/useForm.js.map +1 -1
  328. package/lib/hooks/useI18n.js.map +1 -1
  329. package/lib/hooks/useModal.js.map +1 -1
  330. package/lib/hooks/useModelCatalog.js.map +1 -1
  331. package/lib/hooks/useModels.js.map +1 -1
  332. package/lib/hooks/useModularUI.js.map +1 -1
  333. package/lib/hooks/useModularUIBasic.js.map +1 -1
  334. package/lib/hooks/useModularUIModel.js.map +1 -1
  335. package/lib/hooks/useModularUIRequest.js.map +1 -1
  336. package/lib/hooks/useNotification.js.map +1 -1
  337. package/lib/hooks/usePreference.js.map +1 -1
  338. package/lib/hooks/useProgressIndicator.js.map +1 -1
  339. package/lib/hooks/useRouter.js.map +1 -1
  340. package/lib/i18n/Locale.js.map +1 -1
  341. package/lib/i18n/Locales.js.map +1 -1
  342. package/lib/i18n/Message.js.map +1 -1
  343. package/lib/i18n/index.js.map +1 -1
  344. package/lib/i18n/languages.js.map +1 -1
  345. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  346. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  347. package/lib/i18n/types.js.map +1 -1
  348. package/lib/i18n/withMessage.js.map +1 -1
  349. package/lib/index.js.map +1 -1
  350. package/lib/models/actions/ActionCollection.js.map +1 -1
  351. package/lib/models/actions/ActionModel.js.map +1 -1
  352. package/lib/models/application/ApplicationModel.js.map +1 -1
  353. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  354. package/lib/models/attributes/AttributeContent.js.map +1 -1
  355. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  356. package/lib/models/attributes/AttributeModel.js.map +1 -1
  357. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  358. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  359. package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
  360. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  361. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  362. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  363. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  364. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  365. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  366. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  367. package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
  368. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  369. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  370. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  371. package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
  372. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  373. package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
  374. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  375. package/lib/models/attributes/_createAttribute.js.map +1 -1
  376. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  377. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  378. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  379. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  380. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  381. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  382. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  383. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  384. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  385. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  386. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  387. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  388. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  389. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  390. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  391. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  392. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  393. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  394. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  395. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  396. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  397. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  398. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  399. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  400. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  401. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  402. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  403. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  404. package/lib/models/base/BaseCollection.js.map +1 -1
  405. package/lib/models/base/BaseModel.js.map +1 -1
  406. package/lib/models/base/ResourceCollection.js.map +1 -1
  407. package/lib/models/base/ResourceModel.js.map +1 -1
  408. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  409. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  410. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  411. package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
  412. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  413. package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
  414. package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
  415. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  416. package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
  417. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  418. package/lib/models/content/ContentIndexModel.js.map +1 -1
  419. package/lib/models/content/ContentLinkModel.js.map +1 -1
  420. package/lib/models/content/ContentModel.js.map +1 -1
  421. package/lib/models/content/ContentTOCModel.js.map +1 -1
  422. package/lib/models/content/ContentTypeModel.js.map +1 -1
  423. package/lib/models/content/SectionModel.js.map +1 -1
  424. package/lib/models/content/SubSectionModel.js.map +1 -1
  425. package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  426. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  427. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  428. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  429. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  430. package/lib/models/detail/DetailModel.js.map +1 -1
  431. package/lib/models/error/ErrorCollection.js.map +1 -1
  432. package/lib/models/error/ErrorModel.js.map +1 -1
  433. package/lib/models/error/ErrorResponse.js.map +1 -1
  434. package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
  435. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  436. package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
  437. package/lib/models/filters/FilterCollection.js.map +1 -1
  438. package/lib/models/filters/FilterModel.js.map +1 -1
  439. package/lib/models/filters/RangeFilterModel.js.map +1 -1
  440. package/lib/models/form/FormModel.js.map +1 -1
  441. package/lib/models/form/FormObjectModel.js.map +1 -1
  442. package/lib/models/grouping/GroupingModel.js.map +1 -1
  443. package/lib/models/href/Href.js.map +1 -1
  444. package/lib/models/href/ListHref.js.map +1 -1
  445. package/lib/models/index.js.map +1 -1
  446. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  447. package/lib/models/links/LinkCollection.js.map +1 -1
  448. package/lib/models/links/LinkModel.js.map +1 -1
  449. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  450. package/lib/models/list/ListDetailModel.js.map +1 -1
  451. package/lib/models/list/ListHeaderModel.js.map +1 -1
  452. package/lib/models/list/ListItemCollection.js.map +1 -1
  453. package/lib/models/list/ListItemModel.js.map +1 -1
  454. package/lib/models/list/ListModel.js +2 -2
  455. package/lib/models/list/ListModel.js.flow +1 -2
  456. package/lib/models/list/ListModel.js.map +1 -1
  457. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  458. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  459. package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  460. package/lib/models/paging/PagesizeModel.js.map +1 -1
  461. package/lib/models/paging/PagingModel.js.map +1 -1
  462. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  463. package/lib/models/parameter/Parameter.js.map +1 -1
  464. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  465. package/lib/models/resolveModel.js.map +1 -1
  466. package/lib/models/search/CaseSearchModel.js.map +1 -1
  467. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  468. package/lib/models/sorting/SortingModel.js.map +1 -1
  469. package/lib/models/tab/TabModel.js.map +1 -1
  470. package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
  471. package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
  472. package/lib/models/types.js.map +1 -1
  473. package/lib/models/user/UserModel.js.map +1 -1
  474. package/lib/models/user/UserProfileModel.js.map +1 -1
  475. package/lib/models/user/UserServicesModel.js.map +1 -1
  476. package/lib/modularui/Authenticate.js.map +1 -1
  477. package/lib/modularui/ModularUIError.js.map +1 -1
  478. package/lib/modularui/ModularUIRequest.js.map +1 -1
  479. package/lib/modularui/ModularUIResponse.js.map +1 -1
  480. package/lib/modularui/index.js.map +1 -1
  481. package/lib/react/ErrorBoundary.js.map +1 -1
  482. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  483. package/lib/react/index.js.map +1 -1
  484. package/lib/react/utils.js.map +1 -1
  485. package/lib/react-client/Init.js.map +1 -1
  486. package/lib/react-client/client.js.map +1 -1
  487. package/lib/react-client/contextPath.js.map +1 -1
  488. package/lib/react-client/index.js.map +1 -1
  489. package/lib/react-client/rehydrate.js.map +1 -1
  490. package/lib/react-server/contextPath.js.map +1 -1
  491. package/lib/react-server/createSSRComplete.js.map +1 -1
  492. package/lib/react-server/htmlpage.js.map +1 -1
  493. package/lib/react-server/index.js.map +1 -1
  494. package/lib/react-server/renderSSRComplete.js.map +1 -1
  495. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  496. package/lib/react-server/requestInformation.js.map +1 -1
  497. package/lib/react-server/serverNoSSR.js.map +1 -1
  498. package/lib/react-server/serverSSR.js.map +1 -1
  499. package/lib/react-server/serverUtil.js.map +1 -1
  500. package/lib/react-theme/ThemeProvider.js.map +1 -1
  501. package/lib/react-theme/createTheme.js.map +1 -1
  502. package/lib/react-theme/index.js.map +1 -1
  503. package/lib/react-theme/types.js.map +1 -1
  504. package/lib/react-theme/useTheme.js.map +1 -1
  505. package/lib/react-theme/utils/background.js.map +1 -1
  506. package/lib/react-theme/utils/colors.js.map +1 -1
  507. package/lib/react-theme/utils/contrast.js.map +1 -1
  508. package/lib/react-theme/utils/corners.js.map +1 -1
  509. package/lib/react-theme/utils/spacers.js.map +1 -1
  510. package/lib/react-theme/utils/themeProps.js.map +1 -1
  511. package/lib/redux/_i18n/actions.js.map +1 -1
  512. package/lib/redux/_i18n/index.js.map +1 -1
  513. package/lib/redux/_i18n/reducer.js.map +1 -1
  514. package/lib/redux/_i18n/types.js.map +1 -1
  515. package/lib/redux/_modularui/actions.js.map +1 -1
  516. package/lib/redux/_modularui/connector.js.map +1 -1
  517. package/lib/redux/_modularui/index.js.map +1 -1
  518. package/lib/redux/_modularui/middleware.js.map +1 -1
  519. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  520. package/lib/redux/_modularui/reducer.js.map +1 -1
  521. package/lib/redux/_modularui/selectors.js.map +1 -1
  522. package/lib/redux/_modularui/types.js.map +1 -1
  523. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  524. package/lib/redux/_router/actions.js.map +1 -1
  525. package/lib/redux/_router/connectors.js.map +1 -1
  526. package/lib/redux/_router/index.js.map +1 -1
  527. package/lib/redux/_router/middleware.js.map +1 -1
  528. package/lib/redux/_router/reducer.js.map +1 -1
  529. package/lib/redux/_router/types.js.map +1 -1
  530. package/lib/redux/actions/Application.js.map +1 -1
  531. package/lib/redux/actions/Authorization.js.map +1 -1
  532. package/lib/redux/actions/Error.js.map +1 -1
  533. package/lib/redux/actions/Form.js.map +1 -1
  534. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  535. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  536. package/lib/redux/actions/FormAutosave.js.map +1 -1
  537. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  538. package/lib/redux/actions/FormValidations.js.map +1 -1
  539. package/lib/redux/actions/Modals.js.map +1 -1
  540. package/lib/redux/actions/Notification.js.map +1 -1
  541. package/lib/redux/actions/Preferences.js.map +1 -1
  542. package/lib/redux/actions/ProgressIndicator.js.map +1 -1
  543. package/lib/redux/actions/SignIn.js.map +1 -1
  544. package/lib/redux/actions/SignOut.js.map +1 -1
  545. package/lib/redux/actions/index.js.map +1 -1
  546. package/lib/redux/connectors/Application.js.map +1 -1
  547. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  548. package/lib/redux/connectors/CaseView.js.map +1 -1
  549. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  550. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  551. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  552. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  553. package/lib/redux/connectors/Form.js.map +1 -1
  554. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  555. package/lib/redux/connectors/ListDetail.js.map +1 -1
  556. package/lib/redux/connectors/Modal.js.map +1 -1
  557. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  558. package/lib/redux/connectors/Notification.js.map +1 -1
  559. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  560. package/lib/redux/connectors/Preferences.js.map +1 -1
  561. package/lib/redux/connectors/Progress.js.map +1 -1
  562. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  563. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  564. package/lib/redux/connectors/SignIn.js.map +1 -1
  565. package/lib/redux/connectors/SignOut.js.map +1 -1
  566. package/lib/redux/connectors/Tab.js.map +1 -1
  567. package/lib/redux/connectors/index.js.map +1 -1
  568. package/lib/redux/index.js.map +1 -1
  569. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  570. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  571. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  572. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  573. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  574. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  575. package/lib/redux/reducers/createReducer.js.map +1 -1
  576. package/lib/redux/reducers/index.js.map +1 -1
  577. package/lib/redux/store/beforeRenderHooks.js.map +1 -1
  578. package/lib/redux/store/configureStore.js.map +1 -1
  579. package/lib/redux/types.js.map +1 -1
  580. package/lib/utils/browser/Cache.js.map +1 -1
  581. package/lib/utils/browser/Cookies.js.map +1 -1
  582. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  583. package/lib/utils/fetch/serverFetch.js.map +1 -1
  584. package/lib/utils/fetch/types.js.map +1 -1
  585. package/lib/utils/fetch/universalFetch.js.map +1 -1
  586. package/lib/utils/fetch/xhr.js.map +1 -1
  587. package/lib/utils/helpers/checkResource.js.map +1 -1
  588. package/lib/utils/helpers/createHash.js.map +1 -1
  589. package/lib/utils/helpers/createUUID.js.map +1 -1
  590. package/lib/utils/helpers/objects.js.map +1 -1
  591. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  592. package/lib/utils/helpers/text.js.map +1 -1
  593. package/lib/utils/index.js.map +1 -1
  594. package/lib/utils/number/DecimalFormat.js.map +1 -1
  595. package/lib/utils/number/formatValue.js.map +1 -1
  596. package/lib/utils/number/parseNumbers.js.map +1 -1
  597. package/package.json +7 -7
  598. package/src/models/list/ListModel.js +1 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ListDetail.js"],"names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;;AAIA;AACA;AACA,OAAO,IAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAD4D,EAE5D;AAAA,MAAGG,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAF4D,EAG5D;AACEC,EAAAA,QAAQ,EAAE,QADZ;AAEEC,EAAAA,WAAW,EAAEJ;AAFf,CAH4D,CAAvD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"file":"ListDetail.js"}
1
+ {"version":3,"file":"ListDetail.js","names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;;AAIA;AACA;AACA,OAAO,IAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAD4D,EAE5D;EAAA,IAAGG,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAF4D,EAG5D;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEJ;AAFf,CAH4D,CAAvD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Modal.js"],"names":["connect","showModal","closeModal","mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"mappings":";AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,mBAAtC;;AAoBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AAAA;;AACzD,MAAMC,YAAY,GAAG,iCAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;AAAA,WAAWA,KAAK,CAACC,OAAjB;AAAA,GAAzB,CAArB;;AAEA,SAAO;AACLC,IAAAA,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;AAELC,IAAAA,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;AAFhD,GAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,WAAW,EAAEb,SADY;AAEzBc,EAAAA,YAAY,EAAEb;AAFW,CAA3B;AAKA;AACA;;AACA,OAAO,IAAMc,YAAgC,GAAGhB,OAAO,CAOrDG,eAPqD,EAOpCU,kBAPoC,CAAhD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"Modal.js"}
1
+ {"version":3,"file":"Modal.js","names":["connect","showModal","closeModal","mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,mBAAtC;;AAoBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,iCAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACC,OAAjB;EAAA,CAAzB,CAArB;;EAEA,OAAO;IACLC,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;IAELC,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;EAFhD,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEb,SADY;EAEzBc,YAAY,EAAEb;AAFW,CAA3B;AAKA;AACA;;AACA,OAAO,IAAMc,YAAgC,GAAGhB,OAAO,CAOrDG,eAPqD,EAOpCU,kBAPoC,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ModelCatalog.js"],"names":["modularui","connectModelCatalog","match","url","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAD8D,EAE9D;AAAA,MAAGE,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAF8D,EAG9D;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAH8D,CAAzD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"file":"ModelCatalog.js"}
1
+ {"version":3,"file":"ModelCatalog.js","names":["modularui","connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAD8D,EAE9D;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF8D,EAG9D;EACEC,QAAQ,EAAE;AADZ,CAH8D,CAAzD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Notification.js"],"names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,yBAApC;;AAuBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAoC;AAC1DC,IAAAA,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;AAE1DE,IAAAA,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;AAG1DC,IAAAA,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;AAI1DC,IAAAA,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;AAJ+B,GAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,SAAS,EAAET;AADc,CAA3B;AAIA;AACA;;AACA,OAAO,IAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAP4D,EAO3CO,kBAP2C,CAAvD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"Notification.js"}
1
+ {"version":3,"file":"Notification.js","names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,yBAApC;;AAuBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;IAE1DE,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;IAG1DC,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;IAI1DC,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;EAJ+B,CAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAET;AADc,CAA3B;AAIA;AACA;;AACA,OAAO,IAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAP4D,EAO3CO,kBAP2C,CAAvD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/PanelRenderer.js"],"names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;;AAIA;AACA;AACA,OAAO,IAAMC,YAAgC,GAAGF,SAAS,CACvD,eADuD,EAEvD,gBAAuC;AAAA,MAApCG,IAAoC,QAApCA,IAAoC;AAAA,MAA9BC,KAA8B,QAA9BA,KAA8B;AAAA,8BAAvBC,WAAuB;AAAA,MAAvBA,WAAuB,iCAAT,EAAS;;AACrC,MAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;AACnB,UAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;AAGD;;AAED,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIF,IAAJ,CAASE,IAAT,CAAH,GAAoB,IAAIF,IAAJ,CAASG,KAAK,CAACI,GAAf,CAA1C;;AAEA,MAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAnB,EAA4B;AAC1BF,IAAAA,SAAS,CAACG,uBAAV,CAAkCL,WAAlC;AACD;;AAED,SAAOE,SAAP;AACD,CAhBsD,EAiBvD;AACEI,EAAAA,QAAQ,EAAE;AADZ,CAjBuD,CAAlD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"file":"PanelRenderer.js"}
1
+ {"version":3,"file":"PanelRenderer.js","names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;;AAIA;AACA;AACA,OAAO,IAAMC,YAAgC,GAAGF,SAAS,CACvD,eADuD,EAEvD,gBAAuC;EAAA,IAApCG,IAAoC,QAApCA,IAAoC;EAAA,IAA9BC,KAA8B,QAA9BA,KAA8B;EAAA,4BAAvBC,WAAuB;EAAA,IAAvBA,WAAuB,iCAAT,EAAS;;EACrC,IAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;IACnB,MAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;EAGD;;EAED,IAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIF,IAAJ,CAASE,IAAT,CAAH,GAAoB,IAAIF,IAAJ,CAASG,KAAK,CAACI,GAAf,CAA1C;;EAEA,IAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAnB,EAA4B;IAC1BF,SAAS,CAACG,uBAAV,CAAkCL,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhBsD,EAiBvD;EACEI,QAAQ,EAAE;AADZ,CAjBuD,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Preferences.js"],"names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAiBA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;AACtD,MAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;AAIA,MAAMI,KAAyB,GAAG,EAAlC;AAEAH,EAAAA,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;AACzCF,IAAAA,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;AACD,GAFD;AAIA,SAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACA,OAAO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;AACvB;AACF;AACE,MAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,WACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;AAAA,GAAxB;;AAGA,SAAOH,OAAO,CAA8BY,eAA9B,CAAP,CACLD,gBADK,CAAP;AAGD,CAZM","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"file":"Preferences.js"}
1
+ {"version":3,"file":"Preferences.js","names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAiBA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;EACtD,IAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;EAIA,IAAMI,KAAyB,GAAG,EAAlC;EAEAH,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;IACzCF,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;EACD,CAFD;EAIA,OAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACA,OAAO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;EACvB;AACF;EACE,IAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;IAAA,OACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;EAAA,CAAxB;;EAGA,OAAOH,OAAO,CAA8BY,eAA9B,CAAP,CACLD,gBADK,CAAP;AAGD,CAZM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Progress.js"],"names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,8BAA9C;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAgBA,IAAMC,kBAAiC,GAAG;AACxCC,EAAAA,eAAe,EAAEH,aADuB;AAExCI,EAAAA,gBAAgB,EAAEL,cAFsB;AAGxCM,EAAAA,OAAO,EAAEJ;AAH+B,CAA1C;AAMA;AACA;;AACA,OAAO,IAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAPwD,EAOlDI,kBAPkD,CAAnD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"file":"Progress.js"}
1
+ {"version":3,"file":"Progress.js","names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,8BAA9C;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAgBA,IAAMC,kBAAiC,GAAG;EACxCC,eAAe,EAAEH,aADuB;EAExCI,gBAAgB,EAAEL,cAFsB;EAGxCM,OAAO,EAAEJ;AAH+B,CAA1C;AAMA;AACA;;AACA,OAAO,IAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAPwD,EAOlDI,kBAPkD,CAAnD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAgBA;AACA;AACA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAwB;AAC9CC,IAAAA,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;AAE9CE,IAAAA,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;AAG9CC,IAAAA,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;AAHK,GAAxB;AAAA,CAAxB;AAMA;AACA;;;AACA,OAAO,IAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAPiE,CAA5D","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"file":"ProgressIndicator.js"}
1
+ {"version":3,"file":"ProgressIndicator.js","names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAgBA;AACA;AACA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;IAE9CE,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;IAG9CC,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;EAHK,CAAxB;AAAA,CAAxB;AAMA;AACA;;;AACA,OAAO,IAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAPiE,CAA5D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/QuickSearch.js"],"names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AACA,SAASC,IAAT,QAAqB,oBAArB;AAKA,OAAOC,IAAP,MAAiB,wBAAjB;AAYA,IAAMC,kBAAiC,GAAG;AACxCF,EAAAA,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAA9B,EAAoCI,kBAApC,CADiC,EAExCH,SAAS,CAAC,aAAD,EAAgB;AAAA,MAAGK,IAAH,QAAGA,IAAH;AAAA,SAAcA,IAAd;AAAA,CAAhB,EAAoC;AAC3CC,EAAAA,QAAQ,EAAE;AADiC,CAApC,CAF+B,CAFnC","sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"file":"QuickSearch.js"}
1
+ {"version":3,"file":"QuickSearch.js","names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AACA,SAASC,IAAT,QAAqB,oBAArB;AAKA,OAAOC,IAAP,MAAiB,wBAAjB;AAYA,IAAMC,kBAAiC,GAAG;EACxCF,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAA9B,EAAoCI,kBAApC,CADiC,EAExCH,SAAS,CAAC,aAAD,EAAgB;EAAA,IAAGK,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAhB,EAAoC;EAC3CC,QAAQ,EAAE;AADiC,CAApC,CAF+B,CAFnC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignIn.js"],"names":["connect","login","getApplication","UserServicesModel","mapStateToProps","state","application","isAuthenticated","auth","userServices","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","connectSignIn"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,KAAT,QAAsB,mBAAtB;AAEA,SAASC,cAAT,QAA+B,yBAA/B;AAEA,OAAOC,iBAAP,MAA8B,qCAA9B;;AAmBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;AACzD,MAAMC,WAAW,GAAGJ,cAAc,CAACG,KAAD,CAAlC;AAEA,SAAO;AACLE,IAAAA,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCN,iBADrC,IAEAG,WAAW,CAACG,YAAZ,CAAyBC,UAJtB;AAKLC,IAAAA,YAAY,EAAEN,KAAK,CAACG,IAAN,CAAWI;AALpB,GAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;AACxCC,EAAAA,QAAQ,EAAEb;AAD8B,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMc,aAAiC,GAAGf,OAAO,CAOtDI,eAPsD,EAOrCS,kBAPqC,CAAjD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"SignIn.js"}
1
+ {"version":3,"file":"SignIn.js","names":["connect","login","getApplication","UserServicesModel","mapStateToProps","state","application","isAuthenticated","auth","userServices","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,KAAT,QAAsB,mBAAtB;AAEA,SAASC,cAAT,QAA+B,yBAA/B;AAEA,OAAOC,iBAAP,MAA8B,qCAA9B;;AAmBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EACzD,IAAMC,WAAW,GAAGJ,cAAc,CAACG,KAAD,CAAlC;EAEA,OAAO;IACLE,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCN,iBADrC,IAEAG,WAAW,CAACG,YAAZ,CAAyBC,UAJtB;IAKLC,YAAY,EAAEN,KAAK,CAACG,IAAN,CAAWI;EALpB,CAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEb;AAD8B,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMc,aAAiC,GAAGf,OAAO,CAOtDI,eAPsD,EAOrCS,kBAPqC,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/SignOut.js"],"names":["connect","logout","mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","connectSignOut"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,MAAT,QAAuB,oBAAvB;;AAkBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAwB;AAC9CC,IAAAA,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;AADkB,GAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;AAAEC,EAAAA,QAAQ,EAAEN;AAAZ,CAA3B;AAEA;AACA;;AACA,OAAO,IAAMO,cAAkC,GAAGR,OAAO,CAOvDE,eAPuD,EAOtCI,kBAPsC,CAAlD","sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"file":"SignOut.js"}
1
+ {"version":3,"file":"SignOut.js","names":["connect","logout","mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,MAAT,QAAuB,oBAAvB;;AAkBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;EADkB,CAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;EAAEC,QAAQ,EAAEN;AAAZ,CAA3B;AAEA;AACA;;AACA,OAAO,IAAMO,cAAkC,GAAGR,OAAO,CAOvDE,eAPuD,EAOtCI,kBAPsC,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/Tab.js"],"names":["modularui","connectTab","match","url","propName"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,UAA8B,GAAGD,SAAS,CACrD,KADqD,EAErD;AAAA,MAAGE,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;AACEC,EAAAA,QAAQ,EAAE;AADZ,CAHqD,CAAhD","sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"file":"Tab.js"}
1
+ {"version":3,"file":"Tab.js","names":["modularui","connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,UAA8B,GAAGD,SAAS,CACrD,KADqD,EAErD;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;EACEC,QAAQ,EAAE;AADZ,CAHqD,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/connectors/index.js"],"names":["connectApplication","connectBreadcrumb","connectCaseView","connectConceptDetail","connectContentBrowser","connectContentDetail","connectContentDetailSection","connectForm","connectFormAttributeSet","connectListDetail","connectModal","connectModelCatalog","connectNotification","connectPanel","connectPreferences","connectProgress","connectProgressIndicator","connectQuickSearch","connectSignIn","connectSignOut","connectTab"],"mappings":"AACA,SAASA,kBAAT,QAAmC,eAAnC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,qBAAT,QAAsC,kBAAtC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,2BAAT,QAA4C,wBAA5C;AACA,SAASC,WAAT,QAA4B,QAA5B;AACA,SAASC,uBAAT,QAAwC,oBAAxC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,wBAAT,QAAyC,qBAAzC;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,UAAT,QAA2B,OAA3B","sourcesContent":["// @flow\nexport { connectApplication } from \"./Application\";\nexport { connectBreadcrumb } from \"./Breadcrumb\";\nexport { connectCaseView } from \"./CaseView\";\nexport { connectConceptDetail } from \"./ConceptDetail\";\nexport { connectContentBrowser } from \"./ContentBrowser\";\nexport { connectContentDetail } from \"./ContentDetail\";\nexport { connectContentDetailSection } from \"./ContentDetailSection\";\nexport { connectForm } from \"./Form\";\nexport { connectFormAttributeSet } from \"./FormAttributeSet\";\nexport { connectListDetail } from \"./ListDetail\";\nexport { connectModal } from \"./Modal\";\nexport { connectModelCatalog } from \"./ModelCatalog\";\nexport { connectNotification } from \"./Notification\";\nexport { connectPanel } from \"./PanelRenderer\";\nexport { connectPreferences } from \"./Preferences\";\nexport { connectProgress } from \"./Progress\";\nexport { connectProgressIndicator } from \"./ProgressIndicator\";\nexport { connectQuickSearch } from \"./QuickSearch\";\nexport { connectSignIn } from \"./SignIn\";\nexport { connectSignOut } from \"./SignOut\";\nexport { connectTab } from \"./Tab\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["connectApplication","connectBreadcrumb","connectCaseView","connectConceptDetail","connectContentBrowser","connectContentDetail","connectContentDetailSection","connectForm","connectFormAttributeSet","connectListDetail","connectModal","connectModelCatalog","connectNotification","connectPanel","connectPreferences","connectProgress","connectProgressIndicator","connectQuickSearch","connectSignIn","connectSignOut","connectTab"],"sources":["../../../src/redux/connectors/index.js"],"sourcesContent":["// @flow\nexport { connectApplication } from \"./Application\";\nexport { connectBreadcrumb } from \"./Breadcrumb\";\nexport { connectCaseView } from \"./CaseView\";\nexport { connectConceptDetail } from \"./ConceptDetail\";\nexport { connectContentBrowser } from \"./ContentBrowser\";\nexport { connectContentDetail } from \"./ContentDetail\";\nexport { connectContentDetailSection } from \"./ContentDetailSection\";\nexport { connectForm } from \"./Form\";\nexport { connectFormAttributeSet } from \"./FormAttributeSet\";\nexport { connectListDetail } from \"./ListDetail\";\nexport { connectModal } from \"./Modal\";\nexport { connectModelCatalog } from \"./ModelCatalog\";\nexport { connectNotification } from \"./Notification\";\nexport { connectPanel } from \"./PanelRenderer\";\nexport { connectPreferences } from \"./Preferences\";\nexport { connectProgress } from \"./Progress\";\nexport { connectProgressIndicator } from \"./ProgressIndicator\";\nexport { connectQuickSearch } from \"./QuickSearch\";\nexport { connectSignIn } from \"./SignIn\";\nexport { connectSignOut } from \"./SignOut\";\nexport { connectTab } from \"./Tab\";\n"],"mappings":"AACA,SAASA,kBAAT,QAAmC,eAAnC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,qBAAT,QAAsC,kBAAtC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,2BAAT,QAA4C,wBAA5C;AACA,SAASC,WAAT,QAA4B,QAA5B;AACA,SAASC,uBAAT,QAAwC,oBAAxC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,wBAAT,QAAyC,qBAAzC;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,UAAT,QAA2B,OAA3B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/redux/index.js"],"names":["default","configureStore"],"mappings":"AAEA;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,eAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,SAASA,OAAO,IAAIC,cAApB,QAA0C,wBAA1C,C,CAEA;;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,cAAc,kBAAd","sourcesContent":["// @flow\n\n// ROUTER\nexport * from \"./_router/index\";\n\n// I18N\nexport * from \"./_i18n/index\";\n\n// MODULAR UI\nexport * from \"./_modularui/index\";\n\n// STORE\nexport { default as configureStore } from \"./store/configureStore\";\n\n// ACTIONS\nexport * from \"./actions/index\";\n\n// CONNECTORS\nexport * from \"./connectors/index\";\n\n// REDUCERS\nexport * from \"./reducers/index\";\n\nexport type * from \"./types\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["default","configureStore"],"sources":["../../src/redux/index.js"],"sourcesContent":["// @flow\n\n// ROUTER\nexport * from \"./_router/index\";\n\n// I18N\nexport * from \"./_i18n/index\";\n\n// MODULAR UI\nexport * from \"./_modularui/index\";\n\n// STORE\nexport { default as configureStore } from \"./store/configureStore\";\n\n// ACTIONS\nexport * from \"./actions/index\";\n\n// CONNECTORS\nexport * from \"./connectors/index\";\n\n// REDUCERS\nexport * from \"./reducers/index\";\n\nexport type * from \"./types\";\n"],"mappings":"AAEA;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,eAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,SAASA,OAAO,IAAIC,cAApB,QAA0C,wBAA1C,C,CAEA;;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,cAAc,kBAAd"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/AuthReducer.js"],"names":["Cache","initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","clear"],"mappings":";;;;;;;;;;;AACA,OAAOA,KAAP,MAAkB,2BAAlB;AAKA;AACA,IAAMC,YAAuB,GAAG;AAC9BC,EAAAA,eAAe,EAAE,KADa;AAE9BC,EAAAA,kBAAkB,EAAE,KAFU;AAG9BC,EAAAA,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;AAAA,MAFHC,KAEG,uEAFKL,YAEL;AAAA,MADHM,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOD,KAAP;AACD;;AAED,UAAQC,MAAM,CAACC,IAAf;AACE,SAAK,wBAAL;AACE,6CACKF,KADL;AAEEJ,QAAAA,eAAe,EAAE,IAFnB;AAGEE,QAAAA,KAAK,EAAE,IAHT;AAIED,QAAAA,kBAAkB,EAAE;AAJtB;;AAOF,SAAK,sBAAL;AACE,6CAAYG,KAAZ;AAAmBH,QAAAA,kBAAkB,EAAE,KAAvC;AAA8CC,QAAAA,KAAK,EAAEG,MAAM,CAACE;AAA5D;;AAEF,SAAK,6BAAL;AACE,6CAAYH,KAAZ;AAAmBF,QAAAA,KAAK,EAAE;AAA1B;;AAEF,SAAK,uBAAL;AAA8B;AAC5B;AACA,YAAIE,KAAK,CAACJ,eAAV,EAA2B;AACzBF,UAAAA,KAAK,CAACU,KAAN;AACD;;AAED,+CACKJ,KADL;AAEEH,UAAAA,kBAAkB,EAAE,KAFtB;AAGED,UAAAA,eAAe,EAAE,KAHnB;AAIEE,UAAAA,KAAK,EAAE;AAJT;AAMD;;AAED,SAAK,iBAAL;AACE,6CACKE,KADL;AAEEJ,QAAAA,eAAe,EAAE,IAFnB;AAGEC,QAAAA,kBAAkB,EAAE,IAHtB;AAIEC,QAAAA,KAAK,EAAE;AAJT;;AAOF;AACE,aAAOE,KAAP;AAtCJ;AAwCD,CAhDD;;AAkDA,eAAeD,WAAf","sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"file":"AuthReducer.js"}
1
+ {"version":3,"file":"AuthReducer.js","names":["Cache","initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","clear"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;;;;;;AACA,OAAOA,KAAP,MAAkB,2BAAlB;AAKA;AACA,IAAMC,YAAuB,GAAG;EAC9BC,eAAe,EAAE,KADa;EAE9BC,kBAAkB,EAAE,KAFU;EAG9BC,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;EAAA,IAFHC,KAEG,uEAFKL,YAEL;EAAA,IADHM,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,wBAAL;MACE,uCACKF,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEE,KAAK,EAAE,IAHT;QAIED,kBAAkB,EAAE;MAJtB;;IAOF,KAAK,sBAAL;MACE,uCAAYG,KAAZ;QAAmBH,kBAAkB,EAAE,KAAvC;QAA8CC,KAAK,EAAEG,MAAM,CAACE;MAA5D;;IAEF,KAAK,6BAAL;MACE,uCAAYH,KAAZ;QAAmBF,KAAK,EAAE;MAA1B;;IAEF,KAAK,uBAAL;MAA8B;QAC5B;QACA,IAAIE,KAAK,CAACJ,eAAV,EAA2B;UACzBF,KAAK,CAACU,KAAN;QACD;;QAED,uCACKJ,KADL;UAEEH,kBAAkB,EAAE,KAFtB;UAGED,eAAe,EAAE,KAHnB;UAIEE,KAAK,EAAE;QAJT;MAMD;;IAED,KAAK,iBAAL;MACE,uCACKE,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEC,kBAAkB,EAAE,IAHtB;QAIEC,KAAK,EAAE;MAJT;;IAOF;MACE,OAAOE,KAAP;EAtCJ;AAwCD,CAhDD;;AAkDA,eAAeD,WAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ErrorReducer.js"],"names":["initialState","ErrorReducer","state","action","type","payload"],"mappings":"AAIA;AACA,IAAMA,YAAwB,GAAG,IAAjC;AAEA;AACA;AACA;;AACA,IAAMC,YAA8C,GAAG,SAAjDA,YAAiD,GAGlD;AAAA,MAFHC,KAEG,uEAFKF,YAEL;AAAA,MADHG,MACG;;AACH,MAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,YAA9B,EAA4C;AAC1C,WAAOD,MAAM,CAACE,OAAd;AACD;;AAED,SAAOH,KAAP;AACD,CATD;;AAWA,eAAeD,YAAf","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ErrorState } from \"../types\";\n\n// REDUCER\nconst initialState: ErrorState = null;\n\n/**\n * Error reducer\n */\nconst ErrorReducer: Reducer<ErrorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action && action.type === \"SAVE_ERROR\") {\n return action.payload;\n }\n\n return state;\n};\n\nexport default ErrorReducer;\n"],"file":"ErrorReducer.js"}
1
+ {"version":3,"file":"ErrorReducer.js","names":["initialState","ErrorReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/ErrorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ErrorState } from \"../types\";\n\n// REDUCER\nconst initialState: ErrorState = null;\n\n/**\n * Error reducer\n */\nconst ErrorReducer: Reducer<ErrorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action && action.type === \"SAVE_ERROR\") {\n return action.payload;\n }\n\n return state;\n};\n\nexport default ErrorReducer;\n"],"mappings":"AAIA;AACA,IAAMA,YAAwB,GAAG,IAAjC;AAEA;AACA;AACA;;AACA,IAAMC,YAA8C,GAAG,SAAjDA,YAAiD,GAGlD;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,YAA9B,EAA4C;IAC1C,OAAOD,MAAM,CAACE,OAAd;EACD;;EAED,OAAOH,KAAP;AACD,CATD;;AAWA,eAAeD,YAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ModalsReducer.js"],"names":["showModal","state","modalKey","modals","modal","visible","key","closeModal","idx","arr","length","initialState","ModalsReducer","action","type","payload"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAQC,QAAR;AAAA;;AAAA,kFACb,iCAAAD,KAAK,CAACE,MAAN,kBAAiB,UAACC,KAAD;AAAA,2CACfA,KADe;AAElBC,MAAAA,OAAO,EAAE;AAFS;AAAA,GAAjB,CADa,IAKhB;AACEC,IAAAA,GAAG,EAAEJ,QADP;AAEEG,IAAAA,OAAO,EAAE;AAFX,GALgB;AAAA,CAAlB;;AAWA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACN,KAAD,EAAQC,QAAR;AAAA;;AAAA,SACjB,qEAAAD,KAAK,CAACE,MAAN,kBACU,UAACC,KAAD;AAAA,WAAWA,KAAK,CAACE,GAAN,KAAcJ,QAAzB;AAAA,GADV,mBAEO,UAACE,KAAD,EAAQI,GAAR,EAAaC,GAAb;AAAA,2CACAL,KADA;AAEHC,MAAAA,OAAO,EAAEI,GAAG,CAACC,MAAJ,KAAeF,GAAG,GAAG;AAF3B;AAAA,GAFP,CADiB;AAAA,CAAnB,C,CAQA;;;AACA,IAAMG,YAAyB,GAAG;AAChCR,EAAAA,MAAM,EAAE;AADwB,CAAlC;AAIA;AACA;AACA;;AACA,IAAMS,aAAgD,GAAG,SAAnDA,aAAmD,GAGpD;AAAA,MAFHX,KAEG,uEAFKU,YAEL;AAAA,MADHE,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOZ,KAAP;AACD;;AAED,UAAQY,MAAM,CAACC,IAAf;AACE,SAAK,YAAL;AACE,6CACKb,KADL;AAEEE,QAAAA,MAAM,EAAEH,SAAS,CAACC,KAAD,EAAQY,MAAM,CAACE,OAAf;AAFnB;;AAKF,SAAK,aAAL;AACE,6CACKd,KADL;AAEEE,QAAAA,MAAM,EAAEI,UAAU,CAACN,KAAD,EAAQY,MAAM,CAACE,OAAf;AAFpB;;AAKF;AACE,aAAOd,KAAP;AAdJ;AAgBD,CAxBD;;AA0BA,eAAeW,aAAf","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state, modalKey) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state, modalKey) =>\n state.modals\n .filter((modal) => modal.key !== modalKey)\n .map((modal, idx, arr) => ({\n ...modal,\n visible: arr.length === idx + 1,\n }));\n\n// REDUCER\nconst initialState: ModalsState = {\n modals: [],\n};\n\n/**\n * Modals reducer\n */\nconst ModalsReducer: Reducer<ModalsState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SHOW_MODAL\":\n return {\n ...state,\n modals: showModal(state, action.payload),\n };\n\n case \"CLOSE_MODAL\":\n return {\n ...state,\n modals: closeModal(state, action.payload),\n };\n\n default:\n return state;\n }\n};\n\nexport default ModalsReducer;\n"],"file":"ModalsReducer.js"}
1
+ {"version":3,"file":"ModalsReducer.js","names":["showModal","state","modalKey","modals","modal","visible","key","closeModal","idx","arr","length","initialState","ModalsReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ModalsReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state, modalKey) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state, modalKey) =>\n state.modals\n .filter((modal) => modal.key !== modalKey)\n .map((modal, idx, arr) => ({\n ...modal,\n visible: arr.length === idx + 1,\n }));\n\n// REDUCER\nconst initialState: ModalsState = {\n modals: [],\n};\n\n/**\n * Modals reducer\n */\nconst ModalsReducer: Reducer<ModalsState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SHOW_MODAL\":\n return {\n ...state,\n modals: showModal(state, action.payload),\n };\n\n case \"CLOSE_MODAL\":\n return {\n ...state,\n modals: closeModal(state, action.payload),\n };\n\n default:\n return state;\n }\n};\n\nexport default ModalsReducer;\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAQC,QAAR;EAAA;;EAAA,gFACb,iCAAAD,KAAK,CAACE,MAAN,kBAAiB,UAACC,KAAD;IAAA,uCACfA,KADe;MAElBC,OAAO,EAAE;IAFS;EAAA,CAAjB,CADa,IAKhB;IACEC,GAAG,EAAEJ,QADP;IAEEG,OAAO,EAAE;EAFX,CALgB;AAAA,CAAlB;;AAWA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACN,KAAD,EAAQC,QAAR;EAAA;;EAAA,OACjB,qEAAAD,KAAK,CAACE,MAAN,kBACU,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACE,GAAN,KAAcJ,QAAzB;EAAA,CADV,mBAEO,UAACE,KAAD,EAAQI,GAAR,EAAaC,GAAb;IAAA,uCACAL,KADA;MAEHC,OAAO,EAAEI,GAAG,CAACC,MAAJ,KAAeF,GAAG,GAAG;IAF3B;EAAA,CAFP,CADiB;AAAA,CAAnB,C,CAQA;;;AACA,IAAMG,YAAyB,GAAG;EAChCR,MAAM,EAAE;AADwB,CAAlC;AAIA;AACA;AACA;;AACA,IAAMS,aAAgD,GAAG,SAAnDA,aAAmD,GAGpD;EAAA,IAFHX,KAEG,uEAFKU,YAEL;EAAA,IADHE,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOZ,KAAP;EACD;;EAED,QAAQY,MAAM,CAACC,IAAf;IACE,KAAK,YAAL;MACE,uCACKb,KADL;QAEEE,MAAM,EAAEH,SAAS,CAACC,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFnB;;IAKF,KAAK,aAAL;MACE,uCACKd,KADL;QAEEE,MAAM,EAAEI,UAAU,CAACN,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFpB;;IAKF;MACE,OAAOd,KAAP;EAdJ;AAgBD,CAxBD;;AA0BA,eAAeW,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/NotificationReducer.js"],"names":["initialState","render","messageType","message","error","NotificationReducer","state","action","type","payload"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAA+B,GAAG;AACtCC,EAAAA,MAAM,EAAE,KAD8B;AAEtCC,EAAAA,WAAW,EAAE,IAFyB;AAGtCC,EAAAA,OAAO,EAAE,IAH6B;AAItCC,EAAAA,KAAK,EAAE;AAJ+B,CAAxC;AAOA;AACA;AACA;;AACA,IAAMC,mBAA4D,GAAG,SAA/DA,mBAA+D,GAGhE;AAAA,MAFHC,KAEG,uEAFKN,YAEL;AAAA,MADHO,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOD,KAAP;AACD;;AAED,UAAQC,MAAM,CAACC,IAAf;AACE,SAAK,sBAAL;AACE,6CACKF,KADL;AAEEL,QAAAA,MAAM,EAAE;AAFV;;AAKF,SAAK,mBAAL;AACE,6CACKK,KADL;AAEEL,QAAAA,MAAM,EAAE,IAFV;AAGEC,QAAAA,WAAW,EAAEK,MAAM,CAACE,OAAP,CAAeD,IAH9B;AAIEL,QAAAA,OAAO,EAAEI,MAAM,CAACE,OAAP,CAAeN,OAJ1B;AAKEC,QAAAA,KAAK,EAAEG,MAAM,CAACE,OAAP,CAAeL;AALxB;;AAQF;AACE,aAAOE,KAAP;AAjBJ;AAmBD,CA3BD;;AA6BA,eAAeD,mBAAf","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, NotificationState } from \"../types\";\n\n// REDUCER\nconst initialState: NotificationState = {\n render: false,\n messageType: null,\n message: null,\n error: null,\n};\n\n/**\n * Form reducer\n */\nconst NotificationReducer: Reducer<NotificationState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"DISMISS_NOTIFICATION\":\n return {\n ...state,\n render: false,\n };\n\n case \"SHOW_NOTIFICATION\":\n return {\n ...state,\n render: true,\n messageType: action.payload.type,\n message: action.payload.message,\n error: action.payload.error,\n };\n\n default:\n return state;\n }\n};\n\nexport default NotificationReducer;\n"],"file":"NotificationReducer.js"}
1
+ {"version":3,"file":"NotificationReducer.js","names":["initialState","render","messageType","message","error","NotificationReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/NotificationReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, NotificationState } from \"../types\";\n\n// REDUCER\nconst initialState: NotificationState = {\n render: false,\n messageType: null,\n message: null,\n error: null,\n};\n\n/**\n * Form reducer\n */\nconst NotificationReducer: Reducer<NotificationState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"DISMISS_NOTIFICATION\":\n return {\n ...state,\n render: false,\n };\n\n case \"SHOW_NOTIFICATION\":\n return {\n ...state,\n render: true,\n messageType: action.payload.type,\n message: action.payload.message,\n error: action.payload.error,\n };\n\n default:\n return state;\n }\n};\n\nexport default NotificationReducer;\n"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAA+B,GAAG;EACtCC,MAAM,EAAE,KAD8B;EAEtCC,WAAW,EAAE,IAFyB;EAGtCC,OAAO,EAAE,IAH6B;EAItCC,KAAK,EAAE;AAJ+B,CAAxC;AAOA;AACA;AACA;;AACA,IAAMC,mBAA4D,GAAG,SAA/DA,mBAA+D,GAGhE;EAAA,IAFHC,KAEG,uEAFKN,YAEL;EAAA,IADHO,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,sBAAL;MACE,uCACKF,KADL;QAEEL,MAAM,EAAE;MAFV;;IAKF,KAAK,mBAAL;MACE,uCACKK,KADL;QAEEL,MAAM,EAAE,IAFV;QAGEC,WAAW,EAAEK,MAAM,CAACE,OAAP,CAAeD,IAH9B;QAIEL,OAAO,EAAEI,MAAM,CAACE,OAAP,CAAeN,OAJ1B;QAKEC,KAAK,EAAEG,MAAM,CAACE,OAAP,CAAeL;MALxB;;IAQF;MACE,OAAOE,KAAP;EAjBJ;AAmBD,CA3BD;;AA6BA,eAAeD,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/PreferencesReducer.js"],"names":["initialState","PreferencesReducer","state","action","type","payload"],"mappings":";;;;;;;;;;;AAIA,IAAMA,YAAsC,GAAG,EAA/C;AAEA;AACA;AACA;;AACA,IAAMC,kBAA0D,GAAG,SAA7DA,kBAA6D,GAG9D;AAAA,MAFHC,KAEG,uEAFKF,YAEL;AAAA,MADHG,MACG;;AACH,MAAI,CAAAA,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,gBAArB,EAAuC;AACrC,2CACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;AAID;;AAED,MAAI,CAAAF,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,iBAArB,EAAwC;AACtC,2CACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;AAID;;AAED,SAAOH,KAAP;AACD,CAnBD;;AAqBA,eAAeD,kBAAf","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, PreferencesState } from \"../types\";\n\nconst initialState: $Shape<PreferencesState> = {};\n\n/**\n * Pref reducer\n */\nconst PreferencesReducer: Reducer<PreferencesState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action?.type === \"SET_PREFERENCE\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n if (action?.type === \"SET_PREFERENCES\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n return state;\n};\n\nexport default PreferencesReducer;\n"],"file":"PreferencesReducer.js"}
1
+ {"version":3,"file":"PreferencesReducer.js","names":["initialState","PreferencesReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/PreferencesReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, PreferencesState } from \"../types\";\n\nconst initialState: $Shape<PreferencesState> = {};\n\n/**\n * Pref reducer\n */\nconst PreferencesReducer: Reducer<PreferencesState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action?.type === \"SET_PREFERENCE\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n if (action?.type === \"SET_PREFERENCES\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n return state;\n};\n\nexport default PreferencesReducer;\n"],"mappings":";;;;;;;;;;;AAIA,IAAMA,YAAsC,GAAG,EAA/C;AAEA;AACA;AACA;;AACA,IAAMC,kBAA0D,GAAG,SAA7DA,kBAA6D,GAG9D;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAI,CAAAA,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,gBAArB,EAAuC;IACrC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,IAAI,CAAAF,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,iBAArB,EAAwC;IACtC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,OAAOH,KAAP;AACD,CAnBD;;AAqBA,eAAeD,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/ProgressIndicatorReducer.js"],"names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","action","type","payload"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAAoC,GAAG;AAC3CC,EAAAA,KAAK,EAAE,CADoC;AAE3CC,EAAAA,SAAS,EAAE,CAFgC;AAG3CC,EAAAA,eAAe,EAAE;AAH0B,CAA7C;;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;AAChC,MAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAN,GAAc,CAAd,KAAoB,CAA1C;AACA,yCACKI,KADL;AAEEJ,IAAAA,KAAK,EAAEI,KAAK,CAACJ,KAAN,IAAe,CAAf,GAAmB,CAAnB,GAAuBI,KAAK,CAACJ,KAAN,GAAc,CAF9C;AAGEC,IAAAA,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAL,EAAH,GAAgBH,KAAK,CAACH,SAHhD;AAIEC,IAAAA,eAAe,EAAEG,aAAa,GAAG,CAAH,GAAOD,KAAK,CAACF;AAJ7C;AAMD,CARD;AAUA;AACA;AACA;;;AACA,IAAMM,wBAAsE,GAAG,SAAzEA,wBAAyE,GAG1E;AAAA;;AAAA,MAFHJ,KAEG,uEAFKL,YAEL;AAAA,MADHU,MACG;;AACH,MAAI,CAACA,MAAL,EAAa;AACX,WAAOL,KAAP;AACD;;AAED,UAAQK,MAAM,CAACC,IAAf;AACE,SAAK,iBAAL;AACE,6CACKN,KADL;AAEEF,QAAAA,eAAe,qBAAEO,MAAM,CAACE,OAAT,oDAAE,gBAAgBT;AAFnC;;AAKF,SAAK,iBAAL;AACE,aAAOC,cAAc,CAACC,KAAD,CAArB;;AAEF,SAAK,gBAAL;AACE,6CACKA,KADL;AAEEJ,QAAAA,KAAK,EAAEI,KAAK,CAACJ,KAAN,GAAc;AAFvB;;AAKF,SAAK,gBAAL;AACE,6CACKI,KADL;AAEEJ,QAAAA,KAAK,EAAE;AAFT;;AAKF;AACE,aAAOI,KAAP;AAvBJ;AAyBD,CAjCD;;AAmCA,eAAeI,wBAAf","sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ProgressIndicatorState } from \"../types\";\n\n// REDUCER\nconst initialState: ProgressIndicatorState = {\n count: 0,\n timestamp: 0,\n percentComplete: 0,\n};\n\nconst finishProgress = (state) => {\n const isFinalFinish = state.count - 1 === 0;\n return {\n ...state,\n count: state.count <= 0 ? 0 : state.count - 1,\n timestamp: isFinalFinish ? Date.now() : state.timestamp,\n percentComplete: isFinalFinish ? 0 : state.percentComplete,\n };\n};\n\n/**\n * Keep state for the progress indicator\n */\nconst progressIndicatorReducer: Reducer<ProgressIndicatorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"UPDATE_PROGRESS\":\n return {\n ...state,\n percentComplete: action.payload?.percentComplete,\n };\n\n case \"FINISH_PROGRESS\":\n return finishProgress(state);\n\n case \"START_PROGRESS\":\n return {\n ...state,\n count: state.count + 1,\n };\n\n case \"RESET_PROGRESS\":\n return {\n ...state,\n count: 0,\n };\n\n default:\n return state;\n }\n};\n\nexport default progressIndicatorReducer;\n"],"file":"ProgressIndicatorReducer.js"}
1
+ {"version":3,"file":"ProgressIndicatorReducer.js","names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ProgressIndicatorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ProgressIndicatorState } from \"../types\";\n\n// REDUCER\nconst initialState: ProgressIndicatorState = {\n count: 0,\n timestamp: 0,\n percentComplete: 0,\n};\n\nconst finishProgress = (state) => {\n const isFinalFinish = state.count - 1 === 0;\n return {\n ...state,\n count: state.count <= 0 ? 0 : state.count - 1,\n timestamp: isFinalFinish ? Date.now() : state.timestamp,\n percentComplete: isFinalFinish ? 0 : state.percentComplete,\n };\n};\n\n/**\n * Keep state for the progress indicator\n */\nconst progressIndicatorReducer: Reducer<ProgressIndicatorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"UPDATE_PROGRESS\":\n return {\n ...state,\n percentComplete: action.payload?.percentComplete,\n };\n\n case \"FINISH_PROGRESS\":\n return finishProgress(state);\n\n case \"START_PROGRESS\":\n return {\n ...state,\n count: state.count + 1,\n };\n\n case \"RESET_PROGRESS\":\n return {\n ...state,\n count: 0,\n };\n\n default:\n return state;\n }\n};\n\nexport default progressIndicatorReducer;\n"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAAoC,GAAG;EAC3CC,KAAK,EAAE,CADoC;EAE3CC,SAAS,EAAE,CAFgC;EAG3CC,eAAe,EAAE;AAH0B,CAA7C;;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;EAChC,IAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAN,GAAc,CAAd,KAAoB,CAA1C;EACA,uCACKI,KADL;IAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,IAAe,CAAf,GAAmB,CAAnB,GAAuBI,KAAK,CAACJ,KAAN,GAAc,CAF9C;IAGEC,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAL,EAAH,GAAgBH,KAAK,CAACH,SAHhD;IAIEC,eAAe,EAAEG,aAAa,GAAG,CAAH,GAAOD,KAAK,CAACF;EAJ7C;AAMD,CARD;AAUA;AACA;AACA;;;AACA,IAAMM,wBAAsE,GAAG,SAAzEA,wBAAyE,GAG1E;EAAA;;EAAA,IAFHJ,KAEG,uEAFKL,YAEL;EAAA,IADHU,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOL,KAAP;EACD;;EAED,QAAQK,MAAM,CAACC,IAAf;IACE,KAAK,iBAAL;MACE,uCACKN,KADL;QAEEF,eAAe,qBAAEO,MAAM,CAACE,OAAT,oDAAE,gBAAgBT;MAFnC;;IAKF,KAAK,iBAAL;MACE,OAAOC,cAAc,CAACC,KAAD,CAArB;;IAEF,KAAK,gBAAL;MACE,uCACKA,KADL;QAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,GAAc;MAFvB;;IAKF,KAAK,gBAAL;MACE,uCACKI,KADL;QAEEJ,KAAK,EAAE;MAFT;;IAKF;MACE,OAAOI,KAAP;EAvBJ;AAyBD,CAjCD;;AAmCA,eAAeI,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/createReducer.js"],"names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","notification","progressindicator","preferences"],"mappings":"AACA,SAASA,aAAT,QAA8B,oBAA9B;AACA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;;AA4BA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,SAAiB;AAC5CC,IAAAA,MAAM,EAAEV,aADoC;AAE5CW,IAAAA,SAAS,EAAEV,gBAFiC;AAG5CW,IAAAA,IAAI,EAAEV,WAHsC;AAI5CW,IAAAA,IAAI,EAAET,WAJsC;AAK5CU,IAAAA,KAAK,EAAET,YALqC;AAM5CU,IAAAA,MAAM,EAAEZ,aANoC;AAO5Ca,IAAAA,YAAY,EAAEV,mBAP8B;AAQ5CW,IAAAA,iBAAiB,EAAEV,wBARyB;AAS5CW,IAAAA,WAAW,EAAEV;AAT+B,GAAjB;AAAA,CAAtB","sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/reducer\";\nimport { ModularUIReducer } from \"../_modularui/reducer\";\nimport { I18nReducer } from \"../_i18n/reducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"file":"createReducer.js"}
1
+ {"version":3,"file":"createReducer.js","names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","notification","progressindicator","preferences"],"sources":["../../../src/redux/reducers/createReducer.js"],"sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/reducer\";\nimport { ModularUIReducer } from \"../_modularui/reducer\";\nimport { I18nReducer } from \"../_i18n/reducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"mappings":"AACA,SAASA,aAAT,QAA8B,oBAA9B;AACA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;;AA4BA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAAiB;IAC5CC,MAAM,EAAEV,aADoC;IAE5CW,SAAS,EAAEV,gBAFiC;IAG5CW,IAAI,EAAEV,WAHsC;IAI5CW,IAAI,EAAET,WAJsC;IAK5CU,KAAK,EAAET,YALqC;IAM5CU,MAAM,EAAEZ,aANoC;IAO5Ca,YAAY,EAAEV,mBAP8B;IAQ5CW,iBAAiB,EAAEV,wBARyB;IAS5CW,WAAW,EAAEV;EAT+B,CAAjB;AAAA,CAAtB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/reducers/index.js"],"names":["default","AuthReducer","ErrorReducer","ModalsReducer","NotificationReducer","PreferencesReducer","ProgressIndicatorReducer"],"mappings":"AACA,cAAc,iBAAd;AAEA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,gBAAxC;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,iBAAzC;AACA,SAASH,OAAO,IAAII,mBAApB,QAA+C,uBAA/C;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,sBAA9C;AACA,SAASL,OAAO,IAAIM,wBAApB,QAAoD,4BAApD","sourcesContent":["// @flow\nexport * from \"./createReducer\";\n\nexport { default as AuthReducer } from \"./AuthReducer\";\nexport { default as ErrorReducer } from \"./ErrorReducer\";\nexport { default as ModalsReducer } from \"./ModalsReducer\";\nexport { default as NotificationReducer } from \"./NotificationReducer\";\nexport { default as PreferencesReducer } from \"./PreferencesReducer\";\nexport { default as ProgressIndicatorReducer } from \"./ProgressIndicatorReducer\";\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["default","AuthReducer","ErrorReducer","ModalsReducer","NotificationReducer","PreferencesReducer","ProgressIndicatorReducer"],"sources":["../../../src/redux/reducers/index.js"],"sourcesContent":["// @flow\nexport * from \"./createReducer\";\n\nexport { default as AuthReducer } from \"./AuthReducer\";\nexport { default as ErrorReducer } from \"./ErrorReducer\";\nexport { default as ModalsReducer } from \"./ModalsReducer\";\nexport { default as NotificationReducer } from \"./NotificationReducer\";\nexport { default as PreferencesReducer } from \"./PreferencesReducer\";\nexport { default as ProgressIndicatorReducer } from \"./ProgressIndicatorReducer\";\n"],"mappings":"AACA,cAAc,iBAAd;AAEA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,gBAAxC;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,iBAAzC;AACA,SAASH,OAAO,IAAII,mBAApB,QAA+C,uBAA/C;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,sBAA9C;AACA,SAASL,OAAO,IAAIM,wBAApB,QAAoD,4BAApD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/store/beforeRenderHooks.js"],"names":["handleBeforeRenderHooks","beforeRenderHooks","props","length","beforeRenderHook"],"mappings":";;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,uBAAuB,GAAG,SAA1BA,uBAA0B,GAGlC;AAAA,MAFHC,iBAEG,uEAF0C,EAE1C;AAAA,MADHC,KACG;;AACH,MAAID,iBAAiB,CAACE,MAAlB,GAA2B,CAA/B,EAAkC;AAAA,+CACDF,iBADC;AAAA;;AAAA;AAChC,0DAAkD;AAAA,YAAvCG,gBAAuC;AAChDA,QAAAA,gBAAgB,CAACF,KAAD,CAAhB;AACD;AAH+B;AAAA;AAAA;AAAA;AAAA;AAIjC;AACF,CATM","sourcesContent":["// @flow\nimport type { ReduxStore } from \"../types\";\n\nexport type BeforeRenderHookProps = {\n store: ReduxStore,\n request?: HttpServletRequestJava,\n};\nexport type BeforeRenderHook = (props: BeforeRenderHookProps) => void;\n\n/**\n * Process handlers that need to be run before the react application starts,\n * for example to start a third party service<br>\n * An object with the store is available to make it possible to read state available in the redux store,\n * for example server preferences, and the request is available to retrieve request information\n *\n */\nexport const handleBeforeRenderHooks = (\n beforeRenderHooks: Array<BeforeRenderHook> = [],\n props: BeforeRenderHookProps\n) => {\n if (beforeRenderHooks.length > 0) {\n for (const beforeRenderHook of beforeRenderHooks) {\n beforeRenderHook(props);\n }\n }\n};\n"],"file":"beforeRenderHooks.js"}
1
+ {"version":3,"file":"beforeRenderHooks.js","names":["handleBeforeRenderHooks","beforeRenderHooks","props","length","beforeRenderHook"],"sources":["../../../src/redux/store/beforeRenderHooks.js"],"sourcesContent":["// @flow\nimport type { ReduxStore } from \"../types\";\n\nexport type BeforeRenderHookProps = {\n store: ReduxStore,\n request?: HttpServletRequestJava,\n};\nexport type BeforeRenderHook = (props: BeforeRenderHookProps) => void;\n\n/**\n * Process handlers that need to be run before the react application starts,\n * for example to start a third party service<br>\n * An object with the store is available to make it possible to read state available in the redux store,\n * for example server preferences, and the request is available to retrieve request information\n *\n */\nexport const handleBeforeRenderHooks = (\n beforeRenderHooks: Array<BeforeRenderHook> = [],\n props: BeforeRenderHookProps\n) => {\n if (beforeRenderHooks.length > 0) {\n for (const beforeRenderHook of beforeRenderHooks) {\n beforeRenderHook(props);\n }\n }\n};\n"],"mappings":";;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,uBAAuB,GAAG,SAA1BA,uBAA0B,GAGlC;EAAA,IAFHC,iBAEG,uEAF0C,EAE1C;EAAA,IADHC,KACG;;EACH,IAAID,iBAAiB,CAACE,MAAlB,GAA2B,CAA/B,EAAkC;IAAA,2CACDF,iBADC;IAAA;;IAAA;MAChC,oDAAkD;QAAA,IAAvCG,gBAAuC;QAChDA,gBAAgB,CAACF,KAAD,CAAhB;MACD;IAH+B;MAAA;IAAA;MAAA;IAAA;EAIjC;AACF,CATM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/redux/store/configureStore.js"],"names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularuiMiddleware","createReducer","locationChange","configureStore","history","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","dispatch","location"],"mappings":";;;;;;;;;;;AACA,SACEA,eADF,EAEEC,OAFF,EAGEC,eAHF,EAIEC,WAAW,IAAIC,gBAJjB,QAKO,OALP;AAMA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,mBAAT,QAAoC,0BAApC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAMA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;AAClD,MAAIC,gBAAgB,GAAGb,OAAvB;;AAEA,MAAIc,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;AAC1EJ,IAAAA,gBAAgB,GAAGI,MAAM,CAACC,oCAAP,IAA+ClB,OAAlE;AACD;;AAED,MAAMmB,gBAAkD,GAAGlB,eAAe,iCACrEU,cADqE,GAErEJ,aAAa,EAFwD,EAA1E;AAKA,MAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBADgC,EAEhCD,gBAAgB,CAACK,OAAD,CAFgB,EAGhCN,KAHgC,CAAlC;AAMA,MAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAD,CAAlC;AAEA,MAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBADwC,EAExCP,YAFwC,EAGxCS,SAHwC,CAA1C;;AAMA,MAAI,CAACT,YAAL,EAAmB;AACjBU,IAAAA,KAAK,CAACC,QAAN,CAAef,cAAc,CAACE,OAAO,CAACc,QAAT,EAAmB,MAAnB,CAA7B;AACD;;AACD,SAAO;AAAEd,IAAAA,OAAO,EAAPA,OAAF;AAAWY,IAAAA,KAAK,EAALA;AAAX,GAAP;AACD,CAlCD;;AAoCA,eAAeb,cAAf","sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/middleware\";\nimport { modularuiMiddleware } from \"../_modularui/middleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/actions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n history: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>\n): { history: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularuiMiddleware,\n routerMiddleware(history),\n thunk\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers\n );\n\n if (!initialState) {\n store.dispatch(locationChange(history.location, \"PUSH\"));\n }\n return { history, store };\n};\n\nexport default configureStore;\n"],"file":"configureStore.js"}
1
+ {"version":3,"file":"configureStore.js","names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularuiMiddleware","createReducer","locationChange","configureStore","history","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","dispatch","location"],"sources":["../../../src/redux/store/configureStore.js"],"sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/middleware\";\nimport { modularuiMiddleware } from \"../_modularui/middleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/actions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n history: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>\n): { history: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularuiMiddleware,\n routerMiddleware(history),\n thunk\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers\n );\n\n if (!initialState) {\n store.dispatch(locationChange(history.location, \"PUSH\"));\n }\n return { history, store };\n};\n\nexport default configureStore;\n"],"mappings":";;;;;;;;;;;AACA,SACEA,eADF,EAEEC,OAFF,EAGEC,eAHF,EAIEC,WAAW,IAAIC,gBAJjB,QAKO,OALP;AAMA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,mBAAT,QAAoC,0BAApC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAMA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;EAClD,IAAIC,gBAAgB,GAAGb,OAAvB;;EAEA,IAAIc,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;IAC1EJ,gBAAgB,GAAGI,MAAM,CAACC,oCAAP,IAA+ClB,OAAlE;EACD;;EAED,IAAMmB,gBAAkD,GAAGlB,eAAe,iCACrEU,cADqE,GAErEJ,aAAa,EAFwD,EAA1E;EAKA,IAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBADgC,EAEhCD,gBAAgB,CAACK,OAAD,CAFgB,EAGhCN,KAHgC,CAAlC;EAMA,IAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAD,CAAlC;EAEA,IAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBADwC,EAExCP,YAFwC,EAGxCS,SAHwC,CAA1C;;EAMA,IAAI,CAACT,YAAL,EAAmB;IACjBU,KAAK,CAACC,QAAN,CAAef,cAAc,CAACE,OAAO,CAACc,QAAT,EAAmB,MAAnB,CAA7B;EACD;;EACD,OAAO;IAAEd,OAAO,EAAPA,OAAF;IAAWY,KAAK,EAALA;EAAX,CAAP;AACD,CAlCD;;AAoCA,eAAeb,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../src/redux/types.js"],"sourcesContent":["// @flow\nimport type { Store, DispatchAPI } from \"redux\";\n\nimport type ErrorResponse from \"../models/error/ErrorResponse\";\n\nimport type FormModel from \"../models/form/FormModel\";\nimport typeof {\n NOTIFICATION_TYPES,\n AUTOSAVE_STATUS,\n} from \"../constants/Constants\";\n\nimport type { MessageObject } from \"../i18n/types\";\nimport type {\n I18nState,\n UpdateLocaleAction,\n SetLocalesAction,\n} from \"./_i18n/types\";\nimport type {\n ModularUIState,\n ModularUIAction,\n UpdateStatusAction,\n SetModelAction,\n UpdateModelAction,\n RemoveModelByKeyAction,\n ResetModularUIAction,\n} from \"./_modularui/types\";\nimport type {\n RouterState,\n LocationChangeAction,\n PushAction,\n ReplaceAction,\n GoAction,\n GoBackAction,\n GoForwardAction,\n} from \"./_router/types\";\n\nexport type PreferenceValue =\n | null\n | string\n | boolean\n | { [key: string]: any }\n | Array<PreferenceValue>;\n\nexport type UpdateFormOptions = {\n autosubmit: boolean,\n autosave: boolean,\n forceUpdate?: boolean,\n /** Default true: Activate/deactivate the form object validate by an update */\n validate?: boolean,\n};\n\nexport type NoAction = {\n type: \"NO_ACTION\",\n};\n\nexport type SaveErrorAction = {\n type: \"SAVE_ERROR\",\n payload: ErrorResponse,\n};\n\nexport type ShowModalAction = {\n type: \"SHOW_MODAL\",\n payload: string,\n};\n\nexport type CloseModalAction = {\n type: \"CLOSE_MODAL\",\n payload: string,\n};\n\nexport type DismissNotificationAction = {\n type: \"DISMISS_NOTIFICATION\",\n};\nexport type ShowNotificationAction = {\n type: \"SHOW_NOTIFICATION\",\n payload: {\n type: $Keys<NOTIFICATION_TYPES>,\n message: MessageObject,\n error: ?ErrorResponse,\n },\n};\n\nexport type SetPreferenceAction = {\n type: \"SET_PREFERENCE\",\n payload: { [name: string]: PreferenceValue },\n};\nexport type SetPreferencesAction = {\n type: \"SET_PREFERENCES\",\n payload: { [name: string]: PreferenceValue },\n};\n\nexport type StartProgressAction = {\n type: \"START_PROGRESS\",\n};\nexport type FinishProgressAction = {\n type: \"FINISH_PROGRESS\",\n};\nexport type ResetProgressAction = {\n type: \"RESET_PROGRESS\",\n};\nexport type UpdateProgressAction = {\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete: number },\n};\n\nexport type LoginFailedAction = {\n type: \"AUTHENTICATION_ERROR\",\n payload: string,\n};\n\nexport type ResetAuthErrorsAction = {\n type: \"AUTHENTICATION_RESET_ERRORS\",\n};\n\nexport type LoginSuccessAction = {\n type: \"AUTHENTICATION_SUCCESS\",\n};\n\nexport type ChangePasswordAction = {\n type: \"CHANGE_PASSWORD\",\n};\n\nexport type LogoutSuccessAction = {\n type: \"AUTHENTICATION_LOGOUT\",\n};\n\nexport type UpdateAutosaveAction = {\n type: \"UPDATE_AUTOSAVE_STATUS\",\n payload: {\n status: $Keys<AUTOSAVE_STATUS>,\n model: FormModel,\n },\n};\n\nexport type ReduxAction =\n | UpdateStatusAction\n | SetModelAction\n | UpdateModelAction\n | RemoveModelByKeyAction\n | ResetModularUIAction\n | SaveErrorAction\n | UpdateLocaleAction\n | SetLocalesAction\n | ShowModalAction\n | CloseModalAction\n | DismissNotificationAction\n | ShowNotificationAction\n | SetPreferenceAction\n | SetPreferencesAction\n | StartProgressAction\n | FinishProgressAction\n | ResetProgressAction\n | UpdateProgressAction\n | LoginFailedAction\n | ResetAuthErrorsAction\n | LoginSuccessAction\n | ChangePasswordAction\n | LogoutSuccessAction\n | UpdateAutosaveAction\n | LocationChangeAction\n | PushAction\n | ReplaceAction\n | GoAction\n | GoBackAction\n | GoForwardAction\n | ModularUIAction\n | NoAction;\n\n// Redux state\nexport type AuthState = {\n +isAuthenticated: boolean,\n +mustChangePassword: boolean,\n +error: ?string,\n};\n\nexport type ErrorState = null | ErrorResponse;\n\nexport type ModalState = {\n +key: string,\n +visible: boolean,\n +size?: string,\n};\n\nexport type ModalsState = {\n +modals: Array<ModalState>,\n};\n\nexport type NotificationState = {\n +render: boolean,\n +messageType: string | null,\n +message: MessageObject | null,\n +error: ?ErrorResponse | null,\n};\n\nexport type PreferencesState = {\n +[name: string]: PreferenceValue,\n};\n\nexport type ProgressIndicatorState = {\n +count: number,\n +timestamp: number,\n +percentComplete: number,\n};\n\nexport type ReduxState = {\n +router: RouterState,\n +modularui: ModularUIState,\n +i18n: I18nState,\n +auth: AuthState,\n +error: ErrorState,\n +modals: ModalsState,\n +notification: NotificationState,\n +progressindicator: ProgressIndicatorState,\n +preferences: PreferencesState,\n ...\n};\n\nexport type GetState = () => ReduxState;\nexport type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;\nexport type PromiseAction = Promise<PossibleAction>;\nexport type Dispatch = DispatchAPI<PossibleAction>;\nexport type ReduxStore = Store<ReduxState, ReduxAction, Dispatch>;\n\nexport type PossibleAction = ReduxAction | ThunkAction | PromiseAction;\n\nexport type CustomReducers = { [reducerKey: string]: any };\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/browser/Cache.js"],"names":["RESOURCE_CACHE_PREFIX","Cache","sessionStorage","_cache","requestArgs","resourceKey","url","params","locale","key","cache","cacheItem","getItem","JSON","parse","error","value","stringValue","setItem","addItem","removeItem","pattern","k","RegExp","test","forEach","clear","callback","window","addEventListener","e","sendSessionStorage","receiveSessionStorage","length","localStorage","Date","now","toString","newData","newValue","hasItem"],"mappings":";;;;;;;;AAGA,IAAMA,qBAAqB,GAAG,MAA9B;AAEA;AACA;AACA;;IACMC,K;AAGJ;AACF;AACE,mBAAc;AAAA;;AAAA;;AACZ,QAAI,OAAOC,cAAP,KAA0B,WAA9B,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AAwB,gBAAxB;AACD;AACF;AAED;AACF;;;;WACE,+BAAsBU,CAAtB,EAAuCH,QAAvC,EAAgE;AAAA;;AAC9D,UAAIG,CAAC,CAACrB,GAAF,KAAU,gBAAV,IAA8B,CAAC,KAAKG,OAAL,CAAa,sBAAb,CAAnC,EAAyE;AAAA;;AACvE;AACA,YAAM0B,OAAO,GAAGR,CAAC,CAACS,QAAF,GAAa1B,IAAI,CAACC,KAAL,CAAWgB,CAAC,CAACS,QAAb,CAAb,GAAsC,EAAtD;;AACA,4DAAeD,OAAf,mBACU;AAAA;AAAA,cAAE7B,GAAF;;AAAA,iBAAW,CAAC,MAAI,CAAC+B,OAAL,CAAa/B,GAAb,CAAZ;AAAA,SADV,EAEGgB,OAFH,CAEW,iBAAkB;AAAA;AAAA,cAAhBhB,GAAgB;AAAA,cAAXO,KAAW;;AACzB,UAAA,MAAI,CAACG,OAAL,CAAaV,GAAb,EAAkBO,KAAlB;AACD,SAJH;;AAMA,aAAKE,OAAL,CAAa,sBAAb,EAAqCiB,IAAI,CAACC,GAAL,GAAWC,QAAX,EAArC;AAEA,eAAOV,QAAQ,EAAf;AACD;;AAED,aAAO,IAAP;AACD;;;;;;AAGH,eAAgB,IAAI1B,KAAJ,EAAhB","sourcesContent":["// @flow\nimport type { RequestOptions } from \"../fetch/types\";\n\nconst RESOURCE_CACHE_PREFIX = \"res:\";\n\n/**\n * Manage the browser cache\n */\nclass Cache {\n _cache: Storage;\n\n /**\n */\n constructor() {\n if (typeof sessionStorage !== \"undefined\") {\n this._cache = sessionStorage;\n }\n }\n\n /**\n * Create a key that can be used to cache resources, needs the request arguments and uses url, params and header of the request args\n * to create a key that is unique for time versions and locale\n */\n createResourceKey(requestArgs: RequestOptions): string {\n let resourceKey = requestArgs.url;\n\n if (requestArgs.params) {\n resourceKey += `|${requestArgs.params}`;\n }\n\n if (requestArgs.locale) {\n resourceKey += `|${requestArgs.locale}`;\n }\n\n return `${RESOURCE_CACHE_PREFIX}${resourceKey}`;\n }\n\n /**\n * Get a cached item by it's key\n */\n getItem(key: string): any {\n const cache = this._cache;\n\n if (!cache) {\n return null;\n }\n\n const cacheItem = cache.getItem(key);\n\n if (!cacheItem) {\n return null;\n }\n\n try {\n return JSON.parse(cacheItem);\n } catch (error) {\n return this._cache.getItem(key);\n }\n }\n\n /**\n * Check if the item with key exists in the browser cache\n */\n hasItem(key: string): boolean {\n return this.getItem(key) !== null;\n }\n\n /**\n * Add an item to the cache\n */\n addItem(key: string, value: string | Object) {\n const stringValue =\n typeof value === \"string\" ? value : JSON.stringify(value);\n\n this._cache.setItem(key, stringValue);\n }\n\n /**\n */\n setItem(key: string, value: string | Object) {\n this.addItem(key, value);\n }\n\n /**\n */\n removeItem(key: string) {\n this._cache.removeItem(key);\n }\n\n /**\n * Clear complete cache storage\n */\n clear(pattern: ?string) {\n if (!this._cache) {\n return;\n }\n\n if (pattern) {\n Object.keys(this._cache)\n .filter((k) => (pattern ? new RegExp(pattern).test(k) : true))\n .forEach((k) => this._cache.removeItem(k));\n } else {\n this._cache.clear();\n }\n }\n\n // Session storage is not available between different tabs in the same window,\n // this load method copies sessionStorage from other tabs into this tab using localStorage\n // see https://blog.guya.net/2015/06/12/sharing-sessionstorage-between-tabs-for-secure-multi-tab-authentication/\n /**\n */\n loadOtherBrowserTabs(callback: Function) {\n window.addEventListener(\"storage\", (e) => {\n this.sendSessionStorage(e);\n this.receiveSessionStorage(e, callback);\n });\n\n if (this._cache.length === 0) {\n // trigger retrieval of sessionstorage on other tabs\n localStorage.setItem(\"getSessionStorage\", Date.now().toString());\n }\n }\n\n /**\n */\n sendSessionStorage(e: StorageEvent) {\n if (e.key === \"getSessionStorage\") {\n localStorage.setItem(\"sessionStorage\", JSON.stringify(this._cache));\n localStorage.removeItem(\"sessionStorage\");\n }\n }\n\n /**\n */\n receiveSessionStorage(e: StorageEvent, callback: Function): any {\n if (e.key === \"sessionStorage\" && !this.getItem(\"sessionStorageCopied\")) {\n // receive sessionstorage from other tabs\n const newData = e.newValue ? JSON.parse(e.newValue) : {};\n Object.entries(newData)\n .filter(([key]) => !this.hasItem(key))\n .forEach(([key, value]) => {\n this.addItem(key, value);\n });\n\n this.setItem(\"sessionStorageCopied\", Date.now().toString());\n\n return callback();\n }\n\n return null;\n }\n}\n\nexport default (new Cache(): Cache);\n"],"file":"Cache.js"}
1
+ {"version":3,"file":"Cache.js","names":["RESOURCE_CACHE_PREFIX","Cache","sessionStorage","_cache","requestArgs","resourceKey","url","params","locale","key","cache","cacheItem","getItem","JSON","parse","error","value","stringValue","setItem","addItem","removeItem","pattern","k","RegExp","test","forEach","clear","callback","window","addEventListener","e","sendSessionStorage","receiveSessionStorage","length","localStorage","Date","now","toString","newData","newValue","hasItem"],"sources":["../../../src/utils/browser/Cache.js"],"sourcesContent":["// @flow\nimport type { RequestOptions } from \"../fetch/types\";\n\nconst RESOURCE_CACHE_PREFIX = \"res:\";\n\n/**\n * Manage the browser cache\n */\nclass Cache {\n _cache: Storage;\n\n /**\n */\n constructor() {\n if (typeof sessionStorage !== \"undefined\") {\n this._cache = sessionStorage;\n }\n }\n\n /**\n * Create a key that can be used to cache resources, needs the request arguments and uses url, params and header of the request args\n * to create a key that is unique for time versions and locale\n */\n createResourceKey(requestArgs: RequestOptions): string {\n let resourceKey = requestArgs.url;\n\n if (requestArgs.params) {\n resourceKey += `|${requestArgs.params}`;\n }\n\n if (requestArgs.locale) {\n resourceKey += `|${requestArgs.locale}`;\n }\n\n return `${RESOURCE_CACHE_PREFIX}${resourceKey}`;\n }\n\n /**\n * Get a cached item by it's key\n */\n getItem(key: string): any {\n const cache = this._cache;\n\n if (!cache) {\n return null;\n }\n\n const cacheItem = cache.getItem(key);\n\n if (!cacheItem) {\n return null;\n }\n\n try {\n return JSON.parse(cacheItem);\n } catch (error) {\n return this._cache.getItem(key);\n }\n }\n\n /**\n * Check if the item with key exists in the browser cache\n */\n hasItem(key: string): boolean {\n return this.getItem(key) !== null;\n }\n\n /**\n * Add an item to the cache\n */\n addItem(key: string, value: string | Object) {\n const stringValue =\n typeof value === \"string\" ? value : JSON.stringify(value);\n\n this._cache.setItem(key, stringValue);\n }\n\n /**\n */\n setItem(key: string, value: string | Object) {\n this.addItem(key, value);\n }\n\n /**\n */\n removeItem(key: string) {\n this._cache.removeItem(key);\n }\n\n /**\n * Clear complete cache storage\n */\n clear(pattern: ?string) {\n if (!this._cache) {\n return;\n }\n\n if (pattern) {\n Object.keys(this._cache)\n .filter((k) => (pattern ? new RegExp(pattern).test(k) : true))\n .forEach((k) => this._cache.removeItem(k));\n } else {\n this._cache.clear();\n }\n }\n\n // Session storage is not available between different tabs in the same window,\n // this load method copies sessionStorage from other tabs into this tab using localStorage\n // see https://blog.guya.net/2015/06/12/sharing-sessionstorage-between-tabs-for-secure-multi-tab-authentication/\n /**\n */\n loadOtherBrowserTabs(callback: Function) {\n window.addEventListener(\"storage\", (e) => {\n this.sendSessionStorage(e);\n this.receiveSessionStorage(e, callback);\n });\n\n if (this._cache.length === 0) {\n // trigger retrieval of sessionstorage on other tabs\n localStorage.setItem(\"getSessionStorage\", Date.now().toString());\n }\n }\n\n /**\n */\n sendSessionStorage(e: StorageEvent) {\n if (e.key === \"getSessionStorage\") {\n localStorage.setItem(\"sessionStorage\", JSON.stringify(this._cache));\n localStorage.removeItem(\"sessionStorage\");\n }\n }\n\n /**\n */\n receiveSessionStorage(e: StorageEvent, callback: Function): any {\n if (e.key === \"sessionStorage\" && !this.getItem(\"sessionStorageCopied\")) {\n // receive sessionstorage from other tabs\n const newData = e.newValue ? JSON.parse(e.newValue) : {};\n Object.entries(newData)\n .filter(([key]) => !this.hasItem(key))\n .forEach(([key, value]) => {\n this.addItem(key, value);\n });\n\n this.setItem(\"sessionStorageCopied\", Date.now().toString());\n\n return callback();\n }\n\n return null;\n }\n}\n\nexport default (new Cache(): Cache);\n"],"mappings":";;;;;;;;AAGA,IAAMA,qBAAqB,GAAG,MAA9B;AAEA;AACA;AACA;;IACMC,K;EAGJ;AACF;EACE,iBAAc;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B,gBAAxB;MACD;IACF;IAED;AACF;;;;WACE,+BAAsBU,CAAtB,EAAuCH,QAAvC,EAAgE;MAAA;;MAC9D,IAAIG,CAAC,CAACrB,GAAF,KAAU,gBAAV,IAA8B,CAAC,KAAKG,OAAL,CAAa,sBAAb,CAAnC,EAAyE;QAAA;;QACvE;QACA,IAAM0B,OAAO,GAAGR,CAAC,CAACS,QAAF,GAAa1B,IAAI,CAACC,KAAL,CAAWgB,CAAC,CAACS,QAAb,CAAb,GAAsC,EAAtD;;QACA,oDAAeD,OAAf,mBACU;UAAA;UAAA,IAAE7B,GAAF;;UAAA,OAAW,CAAC,MAAI,CAAC+B,OAAL,CAAa/B,GAAb,CAAZ;QAAA,CADV,EAEGgB,OAFH,CAEW,iBAAkB;UAAA;UAAA,IAAhBhB,GAAgB;UAAA,IAAXO,KAAW;;UACzB,MAAI,CAACG,OAAL,CAAaV,GAAb,EAAkBO,KAAlB;QACD,CAJH;;QAMA,KAAKE,OAAL,CAAa,sBAAb,EAAqCiB,IAAI,CAACC,GAAL,GAAWC,QAAX,EAArC;QAEA,OAAOV,QAAQ,EAAf;MACD;;MAED,OAAO,IAAP;IACD;;;;;;AAGH,eAAgB,IAAI1B,KAAJ,EAAhB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/browser/Cookies.js"],"names":["Cookies","BASE","getCookie","name","get","setCookie","value","days","sameSite","secure","attributes","path","expires","set","clearCookie","remove"],"mappings":"AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,SAASC,IAAT,QAAqB,2BAArB;;AAeA;AACA;AACA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACC,IAAD,EAAiC;AACjD,SAAOH,OAAO,CAACI,GAAR,CAAYD,IAAZ,CAAP;AACD,CAFD;AAIA;AACA;;;AACA,IAAME,SAAS,GAAG,SAAZA,SAAY,CAChBF,IADgB,EAEhBG,KAFgB,EAIb;AAAA,iFADoD,EACpD;AAAA,MADDC,IACC,QADDA,IACC;AAAA,2BADKC,QACL;AAAA,MADKA,QACL,8BADgB,QAChB;AAAA,MAD0BC,MAC1B,QAD0BA,MAC1B;;AACH,MAAMC,UAA4B,GAAG;AAAEC,IAAAA,IAAI,EAAEV;AAAR,GAArC;;AACA,MAAIM,IAAJ,EAAU;AACRG,IAAAA,UAAU,CAACE,OAAX,GAAqBL,IAArB;AACD;;AACD,MAAIC,QAAJ,EAAc;AACZE,IAAAA,UAAU,CAACF,QAAX,GAAsBA,QAAtB;AACD;;AACD,MAAIC,MAAJ,EAAY;AACVC,IAAAA,UAAU,CAACD,MAAX,GAAoBA,MAApB;AACD;;AAEDT,EAAAA,OAAO,CAACa,GAAR,CAAYV,IAAZ,EAAkBG,KAAlB,EAAyBI,UAAzB;AACD,CAjBD;AAmBA;AACA;;;AACA,IAAMI,WAAW,GAAG,SAAdA,WAAc,CAACX,IAAD,EAAkB;AACpCH,EAAAA,OAAO,CAACe,MAAR,CAAeZ,IAAf,EAAqB;AAAEQ,IAAAA,IAAI,EAAEV;AAAR,GAArB;AACD,CAFD;;AAIA,SAASC,SAAT,EAAoBG,SAApB,EAA+BS,WAA/B","sourcesContent":["// @flow\nimport Cookies from \"js-cookie\";\n\nimport { BASE } from \"../../constants/Constants\";\n\ntype CookieOptions = {\n days?: number,\n sameSite?: \"None\" | \"Lax\" | \"Strict\",\n secure?: boolean,\n};\n\ntype CookieAttributes = {\n path: string,\n expires?: number,\n sameSite?: string,\n secure?: boolean,\n};\n\n/**\n */\nconst getCookie = (name: string): null | string => {\n return Cookies.get(name);\n};\n\n/**\n */\nconst setCookie = (\n name: string,\n value: any,\n { days, sameSite = \"Strict\", secure }: CookieOptions = {}\n) => {\n const attributes: CookieAttributes = { path: BASE };\n if (days) {\n attributes.expires = days;\n }\n if (sameSite) {\n attributes.sameSite = sameSite;\n }\n if (secure) {\n attributes.secure = secure;\n }\n\n Cookies.set(name, value, attributes);\n};\n\n/**\n */\nconst clearCookie = (name: string) => {\n Cookies.remove(name, { path: BASE });\n};\n\nexport { getCookie, setCookie, clearCookie };\n"],"file":"Cookies.js"}
1
+ {"version":3,"file":"Cookies.js","names":["Cookies","BASE","getCookie","name","get","setCookie","value","days","sameSite","secure","attributes","path","expires","set","clearCookie","remove"],"sources":["../../../src/utils/browser/Cookies.js"],"sourcesContent":["// @flow\nimport Cookies from \"js-cookie\";\n\nimport { BASE } from \"../../constants/Constants\";\n\ntype CookieOptions = {\n days?: number,\n sameSite?: \"None\" | \"Lax\" | \"Strict\",\n secure?: boolean,\n};\n\ntype CookieAttributes = {\n path: string,\n expires?: number,\n sameSite?: string,\n secure?: boolean,\n};\n\n/**\n */\nconst getCookie = (name: string): null | string => {\n return Cookies.get(name);\n};\n\n/**\n */\nconst setCookie = (\n name: string,\n value: any,\n { days, sameSite = \"Strict\", secure }: CookieOptions = {}\n) => {\n const attributes: CookieAttributes = { path: BASE };\n if (days) {\n attributes.expires = days;\n }\n if (sameSite) {\n attributes.sameSite = sameSite;\n }\n if (secure) {\n attributes.secure = secure;\n }\n\n Cookies.set(name, value, attributes);\n};\n\n/**\n */\nconst clearCookie = (name: string) => {\n Cookies.remove(name, { path: BASE });\n};\n\nexport { getCookie, setCookie, clearCookie };\n"],"mappings":"AACA,OAAOA,OAAP,MAAoB,WAApB;AAEA,SAASC,IAAT,QAAqB,2BAArB;;AAeA;AACA;AACA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACC,IAAD,EAAiC;EACjD,OAAOH,OAAO,CAACI,GAAR,CAAYD,IAAZ,CAAP;AACD,CAFD;AAIA;AACA;;;AACA,IAAME,SAAS,GAAG,SAAZA,SAAY,CAChBF,IADgB,EAEhBG,KAFgB,EAIb;EAAA,+EADoD,EACpD;EAAA,IADDC,IACC,QADDA,IACC;EAAA,yBADKC,QACL;EAAA,IADKA,QACL,8BADgB,QAChB;EAAA,IAD0BC,MAC1B,QAD0BA,MAC1B;;EACH,IAAMC,UAA4B,GAAG;IAAEC,IAAI,EAAEV;EAAR,CAArC;;EACA,IAAIM,IAAJ,EAAU;IACRG,UAAU,CAACE,OAAX,GAAqBL,IAArB;EACD;;EACD,IAAIC,QAAJ,EAAc;IACZE,UAAU,CAACF,QAAX,GAAsBA,QAAtB;EACD;;EACD,IAAIC,MAAJ,EAAY;IACVC,UAAU,CAACD,MAAX,GAAoBA,MAApB;EACD;;EAEDT,OAAO,CAACa,GAAR,CAAYV,IAAZ,EAAkBG,KAAlB,EAAyBI,UAAzB;AACD,CAjBD;AAmBA;AACA;;;AACA,IAAMI,WAAW,GAAG,SAAdA,WAAc,CAACX,IAAD,EAAkB;EACpCH,OAAO,CAACe,MAAR,CAAeZ,IAAf,EAAqB;IAAEQ,IAAI,EAAEV;EAAR,CAArB;AACD,CAFD;;AAIA,SAASC,SAAT,EAAoBG,SAApB,EAA+BS,WAA/B"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/datetime/DateTimeUtil.js"],"names":["parse","format","isValid","isAfter","isBefore","isSameDay","addSeconds","addMinutes","addHours","addDays","addWeeks","addMonths","addYears","subSeconds","subMinutes","subHours","subDays","subWeeks","subMonths","subYears","startOfMonth","endOfMonth","startOfWeek","getHours","getMinutes","getDay","getWeek","setMilliseconds","setSeconds","setMinutes","setHours","setMonth","setYear","set","nl","enGB","getCookie","getSetting","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","BaseDateTimeUtil","isoFormat","_isoFormat","locale","weekStartsOn","firstWeekContainsDate","date","inputFormat","getOptions","Date","targetFormat","parsedDate","toDate","getLocale","sourceFormat","toISO","realDate","formattedValue","isOutsideRange","replace","toUpperCase","inputDate","afterISODate","isSame","beforeISODate","compareDate","getTime","SATURDAY_NUMBER","SUNDAY_NUMBER","weekDay","amount","year","month","hour","minute","second","milliseconds","hours","minutes","seconds","DateUtil","DateTimeUtil","TimeUtil","TimestampUtil"],"mappings":";;;AACA,SACEA,K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FqB;AAGrBC,QAAAA,OAAO,EAAPA,OAHqB;AAIrBH,QAAAA,YAAY,EAAZA;AAJqB,OAApB,CADE,CAAP;AAQD;;;;;AAGH;AACA;AACA;;;AACA,IAAMI,QAA0B,GAAG,IAAIxC,gBAAJ,CAAqBN,eAArB,CAAnC;AAEA;AACA;AACA;;AACA,IAAM+C,YAA8B,GAAG,IAAIzC,gBAAJ,CACrCL,mBADqC,CAAvC;AAIA;AACA;AACA;;AACA,IAAM+C,QAA0B,GAAG,IAAI1C,gBAAJ,CAAqBJ,eAArB,CAAnC;AAEA;AACA;AACA;;AACA,IAAM+C,aAA+B,GAAG,IAAI3C,gBAAJ,CACtCH,oBADsC,CAAxC;AAIA,SAAS2C,QAAT,EAAmBC,YAAnB,EAAiCC,QAAjC,EAA2CC,aAA3C","sourcesContent":["// @flow\nimport {\n parse,\n format,\n isValid,\n isAfter,\n isBefore,\n isSameDay,\n addSeconds,\n addMinutes,\n addHours,\n addDays,\n addWeeks,\n addMonths,\n addYears,\n subSeconds,\n subMinutes,\n subHours,\n subDays,\n subWeeks,\n subMonths,\n subYears,\n startOfMonth,\n endOfMonth,\n startOfWeek,\n getHours,\n getMinutes,\n getDay,\n getWeek,\n setMilliseconds,\n setSeconds,\n setMinutes,\n setHours,\n setMonth,\n setYear,\n set,\n} from \"date-fns\";\nimport { nl, enGB } from \"date-fns/locale\";\n\nimport { getCookie } from \"../browser/Cookies\";\n\nimport { getSetting } from \"../../constants/Settings\";\n\nimport {\n ISO_DATE_FORMAT,\n ISO_DATETIME_FORMAT,\n ISO_TIME_FORMAT,\n ISO_TIMESTAMP_FORMAT,\n DEFAULT_WEEK_STARTS_ON,\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n} from \"../../constants\";\n\n/**\n * @hideconstructor\n */\nclass BaseDateTimeUtil {\n _isoFormat: string;\n\n constructor(isoFormat: string) {\n this._isoFormat = isoFormat;\n }\n\n /**\n */\n getLocale(): typeof nl | typeof enGB {\n const locale = getCookie(\"locale\") || \"en\";\n\n if (locale === \"nl\") {\n return nl;\n }\n\n return enGB;\n }\n\n // returns the options defined in settings\n getOptions(): {\n weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6,\n firstWeekContainsDate: 1 | 2 | 3 | 4 | 5 | 6 | 7,\n } {\n // indicates on what day the week starts\n const weekStartsOn = getSetting(\n \"CALENDAR_WEEK_STARTS_ON\",\n DEFAULT_WEEK_STARTS_ON\n );\n\n // indicates which date indicates the first week of the year\n const firstWeekContainsDate = getSetting(\n \"CALENDAR_FIRST_WEEK_CONTAINS_DATE\",\n DEFAULT_FIRST_WEEK_CONTAINS_DATE\n );\n\n return { weekStartsOn, firstWeekContainsDate };\n }\n\n /**\n */\n toDate(date: string, inputFormat: string = this._isoFormat): Date {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return parse(date, inputFormat, new Date(), {\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n */\n toFormat(date: string | Date, targetFormat: string): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n\n if (isValid(parsedDate)) {\n return format(parsedDate, targetFormat, {\n weekStartsOn,\n locale: this.getLocale(),\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n toISO(date: string | Date, sourceFormat: string = this._isoFormat): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate =\n typeof date === \"string\" ? this.toDate(date, sourceFormat) : date;\n\n if (isValid(parsedDate)) {\n return format(parsedDate, this._isoFormat, {\n weekStartsOn,\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n now(): string {\n return this.toISO(new Date());\n }\n\n /**\n */\n convertFormat(sourceFormat: string): string {\n return sourceFormat ? sourceFormat : this._isoFormat;\n }\n\n /**\n * VALIDATION\n */\n hasFormat(date: string, sourceFormat: string): boolean {\n const { weekStartsOn } = this.getOptions();\n\n const realDate = this.toDate(date, sourceFormat);\n if (isValid(realDate)) {\n const formattedValue = format(realDate, sourceFormat, {\n weekStartsOn,\n });\n\n const isOutsideRange =\n isBefore(realDate, new Date(1000, 1, 1)) ||\n isAfter(realDate, new Date(9999, 11, 31));\n if (isOutsideRange) {\n return false;\n }\n\n return (\n formattedValue.replace(/0/gu, \"\").toUpperCase() ===\n date.replace(/0/gu, \"\").toUpperCase()\n );\n }\n\n return false;\n }\n\n /**\n */\n isValid(date: string, inputFormat: string = this._isoFormat): boolean {\n return isValid(this.toDate(date, inputFormat));\n }\n\n /**\n */\n isAfter(\n inputDate: string,\n afterISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n afterISODate != null &&\n isAfter(this.toDate(inputDate, inputFormat), this.toDate(afterISODate))\n );\n }\n\n /**\n */\n isSameOrAfter(\n inputDate: string,\n afterISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n afterISODate != null &&\n (this.isAfter(inputDate, afterISODate, inputFormat) ||\n this.isSame(inputDate, afterISODate, inputFormat))\n );\n }\n\n /**\n */\n isBefore(\n inputDate: string,\n beforeISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n beforeISODate != null &&\n isBefore(this.toDate(inputDate, inputFormat), this.toDate(beforeISODate))\n );\n }\n\n /**\n */\n isSameOrBefore(\n inputDate: string,\n beforeISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n beforeISODate != null &&\n (this.isBefore(inputDate, beforeISODate, inputFormat) ||\n this.isSame(inputDate, beforeISODate, inputFormat))\n );\n }\n\n /**\n */\n isSame(\n inputDate: string,\n compareDate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n compareDate != null &&\n this.toDate(inputDate, inputFormat).getTime() ===\n this.toDate(compareDate).getTime()\n );\n }\n\n /**\n */\n isSameDay(\n inputDate: string,\n compareDate: string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n compareDate != null &&\n isSameDay(\n this.toDate(inputDate, inputFormat),\n this.toDate(compareDate, inputFormat)\n )\n );\n }\n\n /**\n */\n isOther(\n inputDate: string,\n compareDate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return !this.isSame(inputDate, compareDate, inputFormat);\n }\n\n /**\n */\n isWeekend(inputDate: string): boolean {\n const SATURDAY_NUMBER = 6;\n const SUNDAY_NUMBER = 0;\n const weekDay = getDay(this.toDate(inputDate));\n\n return weekDay === SATURDAY_NUMBER || weekDay === SUNDAY_NUMBER;\n }\n\n /**\n * CALCULATIONS\n */\n addSeconds(date: string, amount: number): string {\n return this.toISO(addSeconds(this.toDate(date), amount));\n }\n\n /**\n */\n addMinutes(date: string, amount: number): string {\n return this.toISO(addMinutes(this.toDate(date), amount));\n }\n\n /**\n */\n addHours(date: string, amount: number): string {\n return this.toISO(addHours(this.toDate(date), amount));\n }\n\n /**\n */\n addDays(date: string, amount: number): string {\n return this.toISO(addDays(this.toDate(date), amount));\n }\n\n /**\n */\n addWeeks(date: string, amount: number): string {\n return this.toISO(addWeeks(this.toDate(date), amount));\n }\n\n /**\n */\n addMonths(date: string, amount: number): string {\n return this.toISO(addMonths(this.toDate(date), amount));\n }\n\n /**\n */\n addYears(date: string, amount: number): string {\n return this.toISO(addYears(this.toDate(date), amount));\n }\n\n /**\n */\n subtractSeconds(date: string, amount: number): string {\n return this.toISO(subSeconds(this.toDate(date), amount));\n }\n\n /**\n */\n subtractMinutes(date: string, amount: number): string {\n return this.toISO(subMinutes(this.toDate(date), amount));\n }\n\n /**\n */\n subtractHours(date: string, amount: number): string {\n return this.toISO(subHours(this.toDate(date), amount));\n }\n\n /**\n */\n subtractDays(date: string, amount: number): string {\n return this.toISO(subDays(this.toDate(date), amount));\n }\n\n /**\n */\n subtractWeeks(date: string, amount: number): string {\n return this.toISO(subWeeks(this.toDate(date), amount));\n }\n\n /**\n */\n subtractMonths(date: string, amount: number): string {\n return this.toISO(subMonths(this.toDate(date), amount));\n }\n\n /**\n */\n subtractYears(date: string, amount: number): string {\n return this.toISO(subYears(this.toDate(date), amount));\n }\n\n /**\n * GETTERS\n */\n startOfMonth(date: string, inputFormat: string = this._isoFormat): string {\n return this.toISO(startOfMonth(this.toDate(date, inputFormat)));\n }\n\n /**\n */\n endOfMonth(date: string, inputFormat: string = this._isoFormat): string {\n return this.toISO(endOfMonth(this.toDate(date, inputFormat)));\n }\n\n /**\n */\n startOfWeek(date: string, inputFormat: string = this._isoFormat): string {\n const { weekStartsOn } = this.getOptions();\n\n return this.toISO(\n startOfWeek(this.toDate(date, inputFormat), {\n weekStartsOn,\n })\n );\n }\n\n /**\n */\n getHours(date: string | Date): number {\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n return getHours(parsedDate);\n }\n\n /**\n */\n getMinutes(date: string | Date): number {\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n return getMinutes(parsedDate);\n }\n\n /**\n */\n getWeek(date: string): number {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return getWeek(this.toDate(date), {\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n * SETTERS\n */\n setYear(date: string, year: number): string {\n return this.toISO(setYear(this.toDate(date), year));\n }\n\n /**\n */\n setMonth(date: string, month: number): string {\n return this.toISO(setMonth(this.toDate(date), month));\n }\n\n /**\n */\n setHour(date: string, hour: number): string {\n return this.toISO(setHours(this.toDate(date), hour));\n }\n\n /**\n */\n setMinute(date: string, minute: number): string {\n return this.toISO(setMinutes(this.toDate(date), minute));\n }\n\n /**\n */\n setSecond(date: string, second: number): string {\n return this.toISO(setSeconds(this.toDate(date), second));\n }\n\n /**\n */\n setMilliseconds(date: string, milliseconds: number): string {\n return this.toISO(setMilliseconds(this.toDate(date), milliseconds));\n }\n\n /**\n */\n setTime(\n date: string,\n hours: number,\n minutes: number,\n seconds: number,\n milliseconds: number\n ): string {\n return this.toISO(\n set(this.toDate(date), {\n hours,\n minutes,\n seconds,\n milliseconds,\n })\n );\n }\n}\n\n/**\n * DateUtil\n */\nconst DateUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_DATE_FORMAT);\n\n/**\n * DateTimeUtil\n */\nconst DateTimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_DATETIME_FORMAT\n);\n\n/**\n * TimeUtil\n */\nconst TimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_TIME_FORMAT);\n\n/**\n * TimestampUtil\n */\nconst TimestampUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_TIMESTAMP_FORMAT\n);\n\nexport { DateUtil, DateTimeUtil, TimeUtil, TimestampUtil };\n"],"file":"DateTimeUtil.js"}
1
+ {"version":3,"file":"DateTimeUtil.js","names":["parse","format","isValid","isAfter","isBefore","isSameDay","addSeconds","addMinutes","addHours","addDays","addWeeks","addMonths","addYears","subSeconds","subMinutes","subHours","subDays","subWeeks","subMonths","subYears","startOfMonth","endOfMonth","startOfWeek","getHours","getMinutes","getDay","getWeek","setMilliseconds","setSeconds","setMinutes","setHours","setMonth","setYear","set","nl","enGB","getCookie","getSetting","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","BaseDateTimeUtil","isoFormat","_isoFormat","locale","weekStartsOn","firstWeekContainsDate","date","inputFormat","getOptions","Date","targetFormat","parsedDate","toDate","getLocale","sourceFormat","toISO","realDate","formattedValue","isOutsideRange","replace","toUpperCase","inputDate","afterISODate","isSame","beforeISODate","compareDate","getTime","SATURDAY_NUMBER","SUNDAY_NUMBER","weekDay","amount","year","month","hour","minute","second","milliseconds","hours","minutes","seconds","DateUtil","DateTimeUtil","TimeUtil","TimestampUtil"],"sources":["../../../src/utils/datetime/DateTimeUtil.js"],"sourcesContent":["// @flow\nimport {\n parse,\n format,\n isValid,\n isAfter,\n isBefore,\n isSameDay,\n addSeconds,\n addMinutes,\n addHours,\n addDays,\n addWeeks,\n addMonths,\n addYears,\n subSeconds,\n subMinutes,\n subHours,\n subDays,\n subWeeks,\n subMonths,\n subYears,\n startOfMonth,\n endOfMonth,\n startOfWeek,\n getHours,\n getMinutes,\n getDay,\n getWeek,\n setMilliseconds,\n setSeconds,\n setMinutes,\n setHours,\n setMonth,\n setYear,\n set,\n} from \"date-fns\";\nimport { nl, enGB } from \"date-fns/locale\";\n\nimport { getCookie } from \"../browser/Cookies\";\n\nimport { getSetting } from \"../../constants/Settings\";\n\nimport {\n ISO_DATE_FORMAT,\n ISO_DATETIME_FORMAT,\n ISO_TIME_FORMAT,\n ISO_TIMESTAMP_FORMAT,\n DEFAULT_WEEK_STARTS_ON,\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n} from \"../../constants\";\n\n/**\n * @hideconstructor\n */\nclass BaseDateTimeUtil {\n _isoFormat: string;\n\n constructor(isoFormat: string) {\n this._isoFormat = isoFormat;\n }\n\n /**\n */\n getLocale(): typeof nl | typeof enGB {\n const locale = getCookie(\"locale\") || \"en\";\n\n if (locale === \"nl\") {\n return nl;\n }\n\n return enGB;\n }\n\n // returns the options defined in settings\n getOptions(): {\n weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6,\n firstWeekContainsDate: 1 | 2 | 3 | 4 | 5 | 6 | 7,\n } {\n // indicates on what day the week starts\n const weekStartsOn = getSetting(\n \"CALENDAR_WEEK_STARTS_ON\",\n DEFAULT_WEEK_STARTS_ON\n );\n\n // indicates which date indicates the first week of the year\n const firstWeekContainsDate = getSetting(\n \"CALENDAR_FIRST_WEEK_CONTAINS_DATE\",\n DEFAULT_FIRST_WEEK_CONTAINS_DATE\n );\n\n return { weekStartsOn, firstWeekContainsDate };\n }\n\n /**\n */\n toDate(date: string, inputFormat: string = this._isoFormat): Date {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return parse(date, inputFormat, new Date(), {\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n */\n toFormat(date: string | Date, targetFormat: string): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n\n if (isValid(parsedDate)) {\n return format(parsedDate, targetFormat, {\n weekStartsOn,\n locale: this.getLocale(),\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n toISO(date: string | Date, sourceFormat: string = this._isoFormat): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate =\n typeof date === \"string\" ? this.toDate(date, sourceFormat) : date;\n\n if (isValid(parsedDate)) {\n return format(parsedDate, this._isoFormat, {\n weekStartsOn,\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n now(): string {\n return this.toISO(new Date());\n }\n\n /**\n */\n convertFormat(sourceFormat: string): string {\n return sourceFormat ? sourceFormat : this._isoFormat;\n }\n\n /**\n * VALIDATION\n */\n hasFormat(date: string, sourceFormat: string): boolean {\n const { weekStartsOn } = this.getOptions();\n\n const realDate = this.toDate(date, sourceFormat);\n if (isValid(realDate)) {\n const formattedValue = format(realDate, sourceFormat, {\n weekStartsOn,\n });\n\n const isOutsideRange =\n isBefore(realDate, new Date(1000, 1, 1)) ||\n isAfter(realDate, new Date(9999, 11, 31));\n if (isOutsideRange) {\n return false;\n }\n\n return (\n formattedValue.replace(/0/gu, \"\").toUpperCase() ===\n date.replace(/0/gu, \"\").toUpperCase()\n );\n }\n\n return false;\n }\n\n /**\n */\n isValid(date: string, inputFormat: string = this._isoFormat): boolean {\n return isValid(this.toDate(date, inputFormat));\n }\n\n /**\n */\n isAfter(\n inputDate: string,\n afterISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n afterISODate != null &&\n isAfter(this.toDate(inputDate, inputFormat), this.toDate(afterISODate))\n );\n }\n\n /**\n */\n isSameOrAfter(\n inputDate: string,\n afterISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n afterISODate != null &&\n (this.isAfter(inputDate, afterISODate, inputFormat) ||\n this.isSame(inputDate, afterISODate, inputFormat))\n );\n }\n\n /**\n */\n isBefore(\n inputDate: string,\n beforeISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n beforeISODate != null &&\n isBefore(this.toDate(inputDate, inputFormat), this.toDate(beforeISODate))\n );\n }\n\n /**\n */\n isSameOrBefore(\n inputDate: string,\n beforeISODate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n beforeISODate != null &&\n (this.isBefore(inputDate, beforeISODate, inputFormat) ||\n this.isSame(inputDate, beforeISODate, inputFormat))\n );\n }\n\n /**\n */\n isSame(\n inputDate: string,\n compareDate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n compareDate != null &&\n this.toDate(inputDate, inputFormat).getTime() ===\n this.toDate(compareDate).getTime()\n );\n }\n\n /**\n */\n isSameDay(\n inputDate: string,\n compareDate: string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return (\n compareDate != null &&\n isSameDay(\n this.toDate(inputDate, inputFormat),\n this.toDate(compareDate, inputFormat)\n )\n );\n }\n\n /**\n */\n isOther(\n inputDate: string,\n compareDate: ?string,\n inputFormat: string = this._isoFormat\n ): boolean {\n return !this.isSame(inputDate, compareDate, inputFormat);\n }\n\n /**\n */\n isWeekend(inputDate: string): boolean {\n const SATURDAY_NUMBER = 6;\n const SUNDAY_NUMBER = 0;\n const weekDay = getDay(this.toDate(inputDate));\n\n return weekDay === SATURDAY_NUMBER || weekDay === SUNDAY_NUMBER;\n }\n\n /**\n * CALCULATIONS\n */\n addSeconds(date: string, amount: number): string {\n return this.toISO(addSeconds(this.toDate(date), amount));\n }\n\n /**\n */\n addMinutes(date: string, amount: number): string {\n return this.toISO(addMinutes(this.toDate(date), amount));\n }\n\n /**\n */\n addHours(date: string, amount: number): string {\n return this.toISO(addHours(this.toDate(date), amount));\n }\n\n /**\n */\n addDays(date: string, amount: number): string {\n return this.toISO(addDays(this.toDate(date), amount));\n }\n\n /**\n */\n addWeeks(date: string, amount: number): string {\n return this.toISO(addWeeks(this.toDate(date), amount));\n }\n\n /**\n */\n addMonths(date: string, amount: number): string {\n return this.toISO(addMonths(this.toDate(date), amount));\n }\n\n /**\n */\n addYears(date: string, amount: number): string {\n return this.toISO(addYears(this.toDate(date), amount));\n }\n\n /**\n */\n subtractSeconds(date: string, amount: number): string {\n return this.toISO(subSeconds(this.toDate(date), amount));\n }\n\n /**\n */\n subtractMinutes(date: string, amount: number): string {\n return this.toISO(subMinutes(this.toDate(date), amount));\n }\n\n /**\n */\n subtractHours(date: string, amount: number): string {\n return this.toISO(subHours(this.toDate(date), amount));\n }\n\n /**\n */\n subtractDays(date: string, amount: number): string {\n return this.toISO(subDays(this.toDate(date), amount));\n }\n\n /**\n */\n subtractWeeks(date: string, amount: number): string {\n return this.toISO(subWeeks(this.toDate(date), amount));\n }\n\n /**\n */\n subtractMonths(date: string, amount: number): string {\n return this.toISO(subMonths(this.toDate(date), amount));\n }\n\n /**\n */\n subtractYears(date: string, amount: number): string {\n return this.toISO(subYears(this.toDate(date), amount));\n }\n\n /**\n * GETTERS\n */\n startOfMonth(date: string, inputFormat: string = this._isoFormat): string {\n return this.toISO(startOfMonth(this.toDate(date, inputFormat)));\n }\n\n /**\n */\n endOfMonth(date: string, inputFormat: string = this._isoFormat): string {\n return this.toISO(endOfMonth(this.toDate(date, inputFormat)));\n }\n\n /**\n */\n startOfWeek(date: string, inputFormat: string = this._isoFormat): string {\n const { weekStartsOn } = this.getOptions();\n\n return this.toISO(\n startOfWeek(this.toDate(date, inputFormat), {\n weekStartsOn,\n })\n );\n }\n\n /**\n */\n getHours(date: string | Date): number {\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n return getHours(parsedDate);\n }\n\n /**\n */\n getMinutes(date: string | Date): number {\n const parsedDate = typeof date === \"string\" ? this.toDate(date) : date;\n return getMinutes(parsedDate);\n }\n\n /**\n */\n getWeek(date: string): number {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return getWeek(this.toDate(date), {\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n * SETTERS\n */\n setYear(date: string, year: number): string {\n return this.toISO(setYear(this.toDate(date), year));\n }\n\n /**\n */\n setMonth(date: string, month: number): string {\n return this.toISO(setMonth(this.toDate(date), month));\n }\n\n /**\n */\n setHour(date: string, hour: number): string {\n return this.toISO(setHours(this.toDate(date), hour));\n }\n\n /**\n */\n setMinute(date: string, minute: number): string {\n return this.toISO(setMinutes(this.toDate(date), minute));\n }\n\n /**\n */\n setSecond(date: string, second: number): string {\n return this.toISO(setSeconds(this.toDate(date), second));\n }\n\n /**\n */\n setMilliseconds(date: string, milliseconds: number): string {\n return this.toISO(setMilliseconds(this.toDate(date), milliseconds));\n }\n\n /**\n */\n setTime(\n date: string,\n hours: number,\n minutes: number,\n seconds: number,\n milliseconds: number\n ): string {\n return this.toISO(\n set(this.toDate(date), {\n hours,\n minutes,\n seconds,\n milliseconds,\n })\n );\n }\n}\n\n/**\n * DateUtil\n */\nconst DateUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_DATE_FORMAT);\n\n/**\n * DateTimeUtil\n */\nconst DateTimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_DATETIME_FORMAT\n);\n\n/**\n * TimeUtil\n */\nconst TimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_TIME_FORMAT);\n\n/**\n * TimestampUtil\n */\nconst TimestampUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_TIMESTAMP_FORMAT\n);\n\nexport { DateUtil, DateTimeUtil, TimeUtil, TimestampUtil };\n"],"mappings":";;;AACA,SACEA,KADF,EAEEC,MAFF,EAGEC,OAAO,IAAPA,QAHF,EAIEC,OAAO,IAAPA,QAJF,EAKEC,QAAQ,IAARA,SALF,EAMEC,SAAS,IAATA,UANF,EAOEC,UAAU,IAAVA,WAPF,EAQEC,UAAU,IAAVA,WARF,EASEC,QAAQ,IAARA,SATF,EAUEC,OAAO,IAAPA,QAVF,EAWEC,QAAQ,IAARA,SAXF,EAYEC,SAAS,IAATA,UAZF,EA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+B,GAAG,IAAI3C,gBAAJ,CACtCH,oBADsC,CAAxC;AAIA,SAAS2C,QAAT,EAAmBC,YAAnB,EAAiCC,QAAjC,EAA2CC,aAA3C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/fetch/serverFetch.js"],"names":["BASE","FetchException","serverFetch","args","urlNoBase","url","replace","params","data","dataFetcher","fetch","jsonData","JSON","parse","error","reject","resolve"],"mappings":";;;AACA,SAASA,IAAT,QAAqB,2BAArB;AACA,SAASC,cAAT,QAA+B,kBAA/B;;AAIA;AACA;AACA;AACA,eAAe,SAASC,WAAT,CAAqBC,IAArB,EAAyD;AAAA;;AACtE;AACA,MAAMC,SAAS,GAAG,qCAAAD,IAAI,CAACE,GAAL,iBAAkB,MAAlB,IACdF,IAAI,CAACE,GADS,GAEdF,IAAI,CAACE,GAAL,CAASC,OAAT,CAAiBN,IAAjB,EAAuB,EAAvB,CAFJ;AAGA,MAAMO,MAAM,GAAGJ,IAAI,CAACI,MAAL,GACXJ,IAAI,CAACI,MAAL,CAAYD,OAAZ,CAAoB,qBAApB,EAA2C,EAA3C,CADW,GAEX,EAFJ;AAGA,MAAMD,GAAG,GAAGE,MAAM,KAAK,EAAX,GAAgBH,SAAhB,iDAA+BA,SAA/B,wBAA4CG,MAA5C,CAAZ;AAEA,MAAMC,IAAI,GAAGC,WAAW,CAACC,KAAZ,CAAkBL,GAAlB,EAAuBF,IAAvB,CAAb;;AAEA,MAAI;AACF,QAAMQ,QAAQ,GAAGC,IAAI,CAACC,KAAL,CAAWL,IAAX,CAAjB;;AAEA,QAAIG,QAAQ,CAACG,KAAb,EAAoB;AAClB,aAAO,SAAQC,MAAR,CAAe,IAAId,cAAJ,CAAmBU,QAAnB,EAA6B,IAA7B,EAAmCR,IAAnC,CAAf,CAAP;AACD;;AAED,WAAO,SAAQa,OAAR,CAAgBL,QAAhB,CAAP;AACD,GARD,CAQE,OAAOG,KAAP,EAAc;AACd,WAAO,SAAQC,MAAR,CAAeD,KAAf,CAAP;AACD;AACF","sourcesContent":["// @flow\nimport { BASE } from \"../../constants/Constants\";\nimport { FetchException } from \"../../exceptions\";\n\nimport type { RequestOptions } from \"./types\";\n\n/**\n * Fetch data from server (uses nashorn and datafetcher).\n */\nexport default function serverFetch(args: RequestOptions): Promise<any> {\n // remove contextPath of url, when the request is internal the context path is not needed\n const urlNoBase = args.url.includes(\"http\")\n ? args.url\n : args.url.replace(BASE, \"\");\n const params = args.params\n ? args.params.replace(\"includeContext=true\", \"\")\n : \"\";\n const url = params === \"\" ? urlNoBase : `${urlNoBase}?${params}`;\n\n const data = dataFetcher.fetch(url, args);\n\n try {\n const jsonData = JSON.parse(data);\n\n if (jsonData.error) {\n return Promise.reject(new FetchException(jsonData, null, args));\n }\n\n return Promise.resolve(jsonData);\n } catch (error) {\n return Promise.reject(error);\n }\n}\n"],"file":"serverFetch.js"}
1
+ {"version":3,"file":"serverFetch.js","names":["BASE","FetchException","serverFetch","args","urlNoBase","url","replace","params","data","dataFetcher","fetch","jsonData","JSON","parse","error","reject","resolve"],"sources":["../../../src/utils/fetch/serverFetch.js"],"sourcesContent":["// @flow\nimport { BASE } from \"../../constants/Constants\";\nimport { FetchException } from \"../../exceptions\";\n\nimport type { RequestOptions } from \"./types\";\n\n/**\n * Fetch data from server (uses nashorn and datafetcher).\n */\nexport default function serverFetch(args: RequestOptions): Promise<any> {\n // remove contextPath of url, when the request is internal the context path is not needed\n const urlNoBase = args.url.includes(\"http\")\n ? args.url\n : args.url.replace(BASE, \"\");\n const params = args.params\n ? args.params.replace(\"includeContext=true\", \"\")\n : \"\";\n const url = params === \"\" ? urlNoBase : `${urlNoBase}?${params}`;\n\n const data = dataFetcher.fetch(url, args);\n\n try {\n const jsonData = JSON.parse(data);\n\n if (jsonData.error) {\n return Promise.reject(new FetchException(jsonData, null, args));\n }\n\n return Promise.resolve(jsonData);\n } catch (error) {\n return Promise.reject(error);\n }\n}\n"],"mappings":";;;AACA,SAASA,IAAT,QAAqB,2BAArB;AACA,SAASC,cAAT,QAA+B,kBAA/B;;AAIA;AACA;AACA;AACA,eAAe,SAASC,WAAT,CAAqBC,IAArB,EAAyD;EAAA;;EACtE;EACA,IAAMC,SAAS,GAAG,qCAAAD,IAAI,CAACE,GAAL,iBAAkB,MAAlB,IACdF,IAAI,CAACE,GADS,GAEdF,IAAI,CAACE,GAAL,CAASC,OAAT,CAAiBN,IAAjB,EAAuB,EAAvB,CAFJ;EAGA,IAAMO,MAAM,GAAGJ,IAAI,CAACI,MAAL,GACXJ,IAAI,CAACI,MAAL,CAAYD,OAAZ,CAAoB,qBAApB,EAA2C,EAA3C,CADW,GAEX,EAFJ;EAGA,IAAMD,GAAG,GAAGE,MAAM,KAAK,EAAX,GAAgBH,SAAhB,iDAA+BA,SAA/B,wBAA4CG,MAA5C,CAAZ;EAEA,IAAMC,IAAI,GAAGC,WAAW,CAACC,KAAZ,CAAkBL,GAAlB,EAAuBF,IAAvB,CAAb;;EAEA,IAAI;IACF,IAAMQ,QAAQ,GAAGC,IAAI,CAACC,KAAL,CAAWL,IAAX,CAAjB;;IAEA,IAAIG,QAAQ,CAACG,KAAb,EAAoB;MAClB,OAAO,SAAQC,MAAR,CAAe,IAAId,cAAJ,CAAmBU,QAAnB,EAA6B,IAA7B,EAAmCR,IAAnC,CAAf,CAAP;IACD;;IAED,OAAO,SAAQa,OAAR,CAAgBL,QAAhB,CAAP;EACD,CARD,CAQE,OAAOG,KAAP,EAAc;IACd,OAAO,SAAQC,MAAR,CAAeD,KAAf,CAAP;EACD;AACF"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../src/utils/fetch/types.js"],"sourcesContent":["// @flow\nimport typeof { HTTP_METHODS } from \"../../constants/Constants\";\nimport type { ModularUIModel } from \"../../models/types\";\n\nexport type RequestURLOptions = {\n url: string,\n};\nexport type RequestBaseOptions = {\n method?: $Keys<HTTP_METHODS>,\n params?: string,\n data?: string | { [key: string]: string },\n timeout?: number,\n responseType?: string,\n headers?: {\n [headerName: string]: string,\n Accept?: string,\n \"Accept-Language\"?: string,\n \"Content-Type\"?: string,\n \"x-filename\"?: string,\n \"x-filesize\"?: string,\n },\n events?: { [eventName: string]: () => void },\n onProgress?: ProgressEventHandler,\n includeContext?: boolean,\n locale?: string,\n cache?: boolean,\n childmodels?: boolean,\n isValidationRequest?: boolean,\n targetModel?: Class<ModularUIModel>,\n updateModel?: ModularUIModel,\n isReload?: boolean,\n removeOnUnmount?: boolean,\n};\nexport type RequestOptions = { ...RequestURLOptions, ...RequestBaseOptions };\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/utils/fetch/universalFetch.js"],"names":["isPlainObject","IS_SYNC","USE_CACHE","serverFetch","xhr","Cache","IS_FETCHING","waitForCachedItem","cacheKey","TIMEOUT","CHECK_TIMEOUT","resolve","reject","check","getItem","cachedItem","Error","setTimeout","browserFetch","args","cache","createResourceKey","hasItem","cacheItem","addItem","then","response","universalFetch","locale","headers","includeContext","url"],"mappings":";AACA,SAASA,aAAT,QAA8B,oBAA9B;AAEA,SAASC,OAAT,EAAkBC,SAAlB,QAAmC,2BAAnC;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,GAAP,MAAgB,OAAhB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAMA,IAAMC,WAAW,GAAG,aAApB;AAEA;AACA;AACA;AACA;;AACA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,QAAD,EAAc;AACtC,MAAIC,OAAO,GAAG,IAAd;AACA,MAAMC,aAAa,GAAG,GAAtB;AAEA,SAAO,aAA4B,UAACC,OAAD,EAAUC,MAAV,EAAqB;AACtD,QAAMC,KAAK,GAAG,SAARA,KAAQ,GAAM;AAClB,UAAIR,KAAK,CAACS,OAAN,CAAcN,QAAd,MAA4BF,WAAhC,EAA6C;AAC3C,YAAMS,UAAU,GAAGV,KAAK,CAAC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,UAACC,QAAD,EAAc;AAClC,QAAIxB,SAAS,IAAIiB,IAAI,CAACC,KAAtB,EAA6B;AAC3B,UAAMZ,SAAQ,GAAGH,KAAK,CAACgB,iBAAN,CAAwBF,IAAxB,CAAjB;;AAEAd,MAAAA,KAAK,CAACmB,OAAN,CAAchB,SAAd,EAAwBkB,QAAxB;AACD;;AAED,WAAOA,QAAP;AACD,GARM,CAAP;AASD,CA5BD;AA8BA;AACA;AACA;;;AACA,eAAe,SAASC,cAAT,CACbR,IADa,EAE2C;AACxD;AACA,MAAIA,IAAI,CAACS,MAAT,EAAiB;AACfT,IAAAA,IAAI,CAACU,OAAL,GAAe;AACb,yBAAmBV,IAAI,CAACS;AADX,KAAf;AAGD;;AAED,MAAIT,IAAI,CAACW,cAAT,EAAyB;AACvBX,IAAAA,IAAI,CAACY,GAAL,aAAcZ,IAAI,CAACY,GAAnB;AACD,GAVuD,CAYxD;;;AACA,MAAI9B,OAAJ,EAAa;AACX,WAAOE,WAAW,CAACgB,IAAD,CAAlB;AACD;;AAED,SAAOD,YAAY,CAACC,IAAD,CAAnB;AACD","sourcesContent":["// @flow\nimport { isPlainObject } from \"../helpers/objects\";\n\nimport { IS_SYNC, USE_CACHE } from \"../../constants/Constants\";\nimport serverFetch from \"./serverFetch\";\nimport xhr from \"./xhr\";\nimport Cache from \"../browser/Cache\";\n\nimport type { RequestOptions } from \"./types\";\n\ntype CachedResponse = string | { ... };\n\nconst IS_FETCHING = \"is-fetching\";\n\n/**\n * Checks each x ms if a cache item is set after fetching the item.\n * @private\n */\nconst waitForCachedItem = (cacheKey) => {\n let TIMEOUT = 3000;\n const CHECK_TIMEOUT = 100;\n\n return new Promise<CachedResponse>((resolve, reject) => {\n const check = () => {\n if (Cache.getItem(cacheKey) !== IS_FETCHING) {\n const cachedItem = Cache.getItem(cacheKey);\n if (cachedItem != null) {\n resolve(cachedItem);\n } else {\n reject(new Error(\"Empty cached item\"));\n }\n } else if (TIMEOUT <= 0) {\n reject(new Error(\"Empty cached item\"));\n } else {\n TIMEOUT = TIMEOUT - CHECK_TIMEOUT;\n setTimeout(check, CHECK_TIMEOUT);\n }\n };\n\n setTimeout(check, CHECK_TIMEOUT);\n });\n};\n\n/**\n * @private\n */\nconst browserFetch = (args) => {\n if (USE_CACHE && args.cache) {\n const cacheKey = Cache.createResourceKey(args);\n\n if (Cache.hasItem(cacheKey)) {\n const cacheItem = Cache.getItem(cacheKey);\n\n if (cacheItem != null) {\n if (cacheItem === IS_FETCHING) {\n return waitForCachedItem(cacheKey);\n } else if (isPlainObject(cacheItem)) {\n return Promise.resolve(cacheItem);\n }\n }\n }\n\n Cache.addItem(cacheKey, IS_FETCHING);\n }\n\n return xhr(args).then((response) => {\n if (USE_CACHE && args.cache) {\n const cacheKey = Cache.createResourceKey(args);\n\n Cache.addItem(cacheKey, response);\n }\n\n return response;\n });\n};\n\n/**\n * Request data from server, uses server datafetcher or xhr in browser.\n */\nexport default function universalFetch(\n args: RequestOptions\n): Promise<CachedResponse> | Promise<?(string | { ... })> {\n // Set locale as Accept-Language header\n if (args.locale) {\n args.headers = {\n \"Accept-Language\": args.locale,\n };\n }\n\n if (args.includeContext) {\n args.url = `${args.url}?includeContext=true`;\n }\n\n // server side no access to the browser cache apis, no cache available\n if (IS_SYNC) {\n return serverFetch(args);\n }\n\n return browserFetch(args);\n}\n"],"file":"universalFetch.js"}
1
+ {"version":3,"file":"universalFetch.js","names":["isPlainObject","IS_SYNC","USE_CACHE","serverFetch","xhr","Cache","IS_FETCHING","waitForCachedItem","cacheKey","TIMEOUT","CHECK_TIMEOUT","resolve","reject","check","getItem","cachedItem","Error","setTimeout","browserFetch","args","cache","createResourceKey","hasItem","cacheItem","addItem","then","response","universalFetch","locale","headers","includeContext","url"],"sources":["../../../src/utils/fetch/universalFetch.js"],"sourcesContent":["// @flow\nimport { isPlainObject } from \"../helpers/objects\";\n\nimport { IS_SYNC, USE_CACHE } from \"../../constants/Constants\";\nimport serverFetch from \"./serverFetch\";\nimport xhr from \"./xhr\";\nimport Cache from \"../browser/Cache\";\n\nimport type { RequestOptions } from \"./types\";\n\ntype CachedResponse = string | { ... };\n\nconst IS_FETCHING = \"is-fetching\";\n\n/**\n * Checks each x ms if a cache item is set after fetching the item.\n * @private\n */\nconst waitForCachedItem = (cacheKey) => {\n let TIMEOUT = 3000;\n const CHECK_TIMEOUT = 100;\n\n return new Promise<CachedResponse>((resolve, reject) => {\n const check = () => {\n if (Cache.getItem(cacheKey) !== IS_FETCHING) {\n const cachedItem = Cache.getItem(cacheKey);\n if (cachedItem != null) {\n resolve(cachedItem);\n } else {\n reject(new Error(\"Empty cached item\"));\n }\n } else if (TIMEOUT <= 0) {\n reject(new Error(\"Empty cached item\"));\n } else {\n TIMEOUT = TIMEOUT - CHECK_TIMEOUT;\n setTimeout(check, CHECK_TIMEOUT);\n }\n };\n\n setTimeout(check, CHECK_TIMEOUT);\n });\n};\n\n/**\n * @private\n */\nconst browserFetch = (args) => {\n if (USE_CACHE && args.cache) {\n const cacheKey = Cache.createResourceKey(args);\n\n if (Cache.hasItem(cacheKey)) {\n const cacheItem = Cache.getItem(cacheKey);\n\n if (cacheItem != null) {\n if (cacheItem === IS_FETCHING) {\n return waitForCachedItem(cacheKey);\n } else if (isPlainObject(cacheItem)) {\n return Promise.resolve(cacheItem);\n }\n }\n }\n\n Cache.addItem(cacheKey, IS_FETCHING);\n }\n\n return xhr(args).then((response) => {\n if (USE_CACHE && args.cache) {\n const cacheKey = Cache.createResourceKey(args);\n\n Cache.addItem(cacheKey, response);\n }\n\n return response;\n });\n};\n\n/**\n * Request data from server, uses server datafetcher or xhr in browser.\n */\nexport default function universalFetch(\n args: RequestOptions\n): Promise<CachedResponse> | Promise<?(string | { ... })> {\n // Set locale as Accept-Language header\n if (args.locale) {\n args.headers = {\n \"Accept-Language\": args.locale,\n };\n }\n\n if (args.includeContext) {\n args.url = `${args.url}?includeContext=true`;\n }\n\n // server side no access to the browser cache apis, no cache available\n if (IS_SYNC) {\n return serverFetch(args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