@beinformed/ui 1.18.3 → 1.18.6

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 (236) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/esm/constants/Constants.js +1 -0
  3. package/esm/constants/Constants.js.map +1 -1
  4. package/esm/constants/Settings.js +10 -3
  5. package/esm/constants/Settings.js.map +1 -1
  6. package/esm/hooks/useAuthentication.js +7 -50
  7. package/esm/hooks/useAuthentication.js.map +1 -1
  8. package/esm/i18n/Locales.js.map +1 -1
  9. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  10. package/esm/models/form/FormModel.js +3 -1
  11. package/esm/models/form/FormModel.js.map +1 -1
  12. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  13. package/esm/models/tab/TabModel.js.map +1 -1
  14. package/esm/modularui/Authenticate.js +100 -21
  15. package/esm/modularui/Authenticate.js.map +1 -1
  16. package/esm/redux/actions/Preferences.js +2 -2
  17. package/esm/redux/actions/Preferences.js.map +1 -1
  18. package/esm/redux/actions/SignOut.js +6 -2
  19. package/esm/redux/actions/SignOut.js.map +1 -1
  20. package/esm/redux/connectors/SignIn.js +3 -2
  21. package/esm/redux/connectors/SignIn.js.map +1 -1
  22. package/esm/redux/connectors/SignOut.js +4 -1
  23. package/esm/redux/connectors/SignOut.js.map +1 -1
  24. package/esm/redux/reducers/AuthReducer.js +0 -10
  25. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  26. package/esm/redux/types.js.map +1 -1
  27. package/esm/utils/helpers/checkResource.js +2 -0
  28. package/esm/utils/helpers/checkResource.js.map +1 -1
  29. package/lib/constants/Constants.js +3 -1
  30. package/lib/constants/Constants.js.flow +1 -0
  31. package/lib/constants/Constants.js.map +1 -1
  32. package/lib/constants/LayoutHints.js.map +1 -1
  33. package/lib/constants/Settings.js +13 -3
  34. package/lib/constants/Settings.js.flow +8 -3
  35. package/lib/constants/Settings.js.map +1 -1
  36. package/lib/exceptions/FetchException.js.map +1 -1
  37. package/lib/hooks/__tests__/useAuthentication.spec.js.flow +15 -1
  38. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  39. package/lib/hooks/useAuthentication.js +7 -55
  40. package/lib/hooks/useAuthentication.js.flow +4 -37
  41. package/lib/hooks/useAuthentication.js.map +1 -1
  42. package/lib/hooks/useContent.js.map +1 -1
  43. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  44. package/lib/hooks/useForm.js.map +1 -1
  45. package/lib/hooks/useI18n.js.map +1 -1
  46. package/lib/hooks/useModal.js.map +1 -1
  47. package/lib/hooks/useModelCatalog.js.map +1 -1
  48. package/lib/hooks/useModels.js.map +1 -1
  49. package/lib/hooks/useModularUI.js.map +1 -1
  50. package/lib/hooks/useModularUIBasic.js.map +1 -1
  51. package/lib/hooks/useModularUIModel.js.map +1 -1
  52. package/lib/hooks/useModularUIRequest.js.map +1 -1
  53. package/lib/hooks/useNotification.js.map +1 -1
  54. package/lib/hooks/usePreference.js.map +1 -1
  55. package/lib/hooks/useProgressIndicator.js.map +1 -1
  56. package/lib/hooks/useRouter.js.map +1 -1
  57. package/lib/i18n/Locale.js.map +1 -1
  58. package/lib/i18n/Locales.js.map +1 -1
  59. package/lib/i18n/Message.js.map +1 -1
  60. package/lib/i18n/withMessage.js.map +1 -1
  61. package/lib/models/actions/ActionModel.js.map +1 -1
  62. package/lib/models/application/ApplicationModel.js.map +1 -1
  63. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  64. package/lib/models/attributes/AttributeContent.js.map +1 -1
  65. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  66. package/lib/models/attributes/AttributeModel.js.map +1 -1
  67. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  68. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  69. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  70. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  71. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  72. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  73. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  74. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  75. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  76. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  77. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  78. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  79. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  80. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  81. package/lib/models/attributes/_createAttribute.js.map +1 -1
  82. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  83. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  84. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  85. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  86. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  87. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  88. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  89. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  90. package/lib/models/base/BaseCollection.js.map +1 -1
  91. package/lib/models/base/BaseModel.js.map +1 -1
  92. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  93. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  94. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  95. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  96. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  97. package/lib/models/content/ContentLinkModel.js.map +1 -1
  98. package/lib/models/content/ContentTOCModel.js.map +1 -1
  99. package/lib/models/content/SectionModel.js.map +1 -1
  100. package/lib/models/content/SubSectionModel.js.map +1 -1
  101. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  102. package/lib/models/detail/DetailModel.js.map +1 -1
  103. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  104. package/lib/models/form/FormModel.js +3 -1
  105. package/lib/models/form/FormModel.js.flow +1 -1
  106. package/lib/models/form/FormModel.js.map +1 -1
  107. package/lib/models/form/FormObjectModel.js.map +1 -1
  108. package/lib/models/href/Href.js.map +1 -1
  109. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  110. package/lib/models/links/LinkCollection.js.map +1 -1
  111. package/lib/models/links/LinkModel.js.map +1 -1
  112. package/lib/models/list/ListDetailModel.js.map +1 -1
  113. package/lib/models/list/ListHeaderModel.js.map +1 -1
  114. package/lib/models/list/ListItemCollection.js.map +1 -1
  115. package/lib/models/list/ListModel.js.map +1 -1
  116. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  117. package/lib/models/paging/PagingModel.js.map +1 -1
  118. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  119. package/lib/models/parameter/Parameter.js.map +1 -1
  120. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  121. package/lib/models/resolveModel.js.map +1 -1
  122. package/lib/models/sorting/SortingModel.js.map +1 -1
  123. package/lib/models/tab/TabModel.js.map +1 -1
  124. package/lib/models/user/UserProfileModel.js.map +1 -1
  125. package/lib/models/user/UserServicesModel.js.map +1 -1
  126. package/lib/modularui/Authenticate.js +102 -21
  127. package/lib/modularui/Authenticate.js.flow +75 -20
  128. package/lib/modularui/Authenticate.js.map +1 -1
  129. package/lib/modularui/ModularUIRequest.js.map +1 -1
  130. package/lib/modularui/ModularUIResponse.js.map +1 -1
  131. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  132. package/lib/react-client/client.js.map +1 -1
  133. package/lib/react-client/rehydrate.js.map +1 -1
  134. package/lib/react-server/__tests__/serverUtil.spec.js.flow +6 -4
  135. package/lib/react-server/createSSRComplete.js.map +1 -1
  136. package/lib/react-server/renderSSRComplete.js.map +1 -1
  137. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  138. package/lib/react-server/serverNoSSR.js.map +1 -1
  139. package/lib/react-server/serverSSR.js.map +1 -1
  140. package/lib/react-server/serverUtil.js.map +1 -1
  141. package/lib/react-theme/ThemeProvider.js.map +1 -1
  142. package/lib/react-theme/createTheme.js.map +1 -1
  143. package/lib/react-theme/useTheme.js.map +1 -1
  144. package/lib/react-theme/utils/background.js.map +1 -1
  145. package/lib/react-theme/utils/colors.js.map +1 -1
  146. package/lib/react-theme/utils/contrast.js.map +1 -1
  147. package/lib/react-theme/utils/corners.js.map +1 -1
  148. package/lib/react-theme/utils/spacers.js.map +1 -1
  149. package/lib/react-theme/utils/themeProps.js.map +1 -1
  150. package/lib/redux/_i18n/actions.js.map +1 -1
  151. package/lib/redux/_i18n/reducer.js.map +1 -1
  152. package/lib/redux/_modularui/actions.js.map +1 -1
  153. package/lib/redux/_modularui/connector.js.map +1 -1
  154. package/lib/redux/_modularui/middleware.js.map +1 -1
  155. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  156. package/lib/redux/_modularui/reducer.js.map +1 -1
  157. package/lib/redux/_modularui/selectors.js.map +1 -1
  158. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  159. package/lib/redux/_router/connectors.js.map +1 -1
  160. package/lib/redux/actions/Application.js.map +1 -1
  161. package/lib/redux/actions/Authorization.js.map +1 -1
  162. package/lib/redux/actions/Error.js.map +1 -1
  163. package/lib/redux/actions/Form.js.map +1 -1
  164. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  165. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  166. package/lib/redux/actions/FormAutosave.js.map +1 -1
  167. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  168. package/lib/redux/actions/FormValidations.js.map +1 -1
  169. package/lib/redux/actions/Notification.js.map +1 -1
  170. package/lib/redux/actions/Preferences.js +1 -1
  171. package/lib/redux/actions/Preferences.js.flow +7 -3
  172. package/lib/redux/actions/Preferences.js.map +1 -1
  173. package/lib/redux/actions/SignIn.js.map +1 -1
  174. package/lib/redux/actions/SignOut.js +6 -1
  175. package/lib/redux/actions/SignOut.js.flow +9 -5
  176. package/lib/redux/actions/SignOut.js.map +1 -1
  177. package/lib/redux/connectors/Application.js.map +1 -1
  178. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  179. package/lib/redux/connectors/CaseView.js.map +1 -1
  180. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  181. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  182. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  183. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  184. package/lib/redux/connectors/Form.js.map +1 -1
  185. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  186. package/lib/redux/connectors/ListDetail.js.map +1 -1
  187. package/lib/redux/connectors/Modal.js.map +1 -1
  188. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  189. package/lib/redux/connectors/Notification.js.map +1 -1
  190. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  191. package/lib/redux/connectors/Preferences.js.map +1 -1
  192. package/lib/redux/connectors/Progress.js.map +1 -1
  193. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  194. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  195. package/lib/redux/connectors/SignIn.js +3 -5
  196. package/lib/redux/connectors/SignIn.js.flow +1 -6
  197. package/lib/redux/connectors/SignIn.js.map +1 -1
  198. package/lib/redux/connectors/SignOut.js +5 -1
  199. package/lib/redux/connectors/SignOut.js.flow +2 -1
  200. package/lib/redux/connectors/SignOut.js.map +1 -1
  201. package/lib/redux/connectors/Tab.js.map +1 -1
  202. package/lib/redux/reducers/AuthReducer.js +0 -11
  203. package/lib/redux/reducers/AuthReducer.js.flow +0 -11
  204. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  205. package/lib/redux/reducers/__tests__/AuthReducer.spec.js.flow +0 -9
  206. package/lib/redux/store/configureStore.js.map +1 -1
  207. package/lib/redux/types.js.flow +0 -1
  208. package/lib/redux/types.js.map +1 -1
  209. package/lib/utils/browser/Cookies.js.map +1 -1
  210. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  211. package/lib/utils/fetch/universalFetch.js.map +1 -1
  212. package/lib/utils/fetch/xhr.js.map +1 -1
  213. package/lib/utils/helpers/checkResource.js +2 -0
  214. package/lib/utils/helpers/checkResource.js.flow +3 -0
  215. package/lib/utils/helpers/checkResource.js.map +1 -1
  216. package/lib/utils/helpers/objects.js.map +1 -1
  217. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  218. package/lib/utils/helpers/text.js.map +1 -1
  219. package/lib/utils/number/formatValue.js.map +1 -1
  220. package/lib/utils/number/parseNumbers.js.map +1 -1
  221. package/package.json +22 -22
  222. package/src/constants/Constants.js +1 -0
  223. package/src/constants/Settings.js +8 -3
  224. package/src/hooks/__tests__/useAuthentication.spec.js +15 -1
  225. package/src/hooks/useAuthentication.js +4 -37
  226. package/src/models/form/FormModel.js +1 -1
  227. package/src/modularui/Authenticate.js +75 -20
  228. package/src/react-server/__tests__/serverUtil.spec.js +6 -4
  229. package/src/redux/actions/Preferences.js +7 -3
  230. package/src/redux/actions/SignOut.js +9 -5
  231. package/src/redux/connectors/SignIn.js +1 -6
  232. package/src/redux/connectors/SignOut.js +2 -1
  233. package/src/redux/reducers/AuthReducer.js +0 -11
  234. package/src/redux/reducers/__tests__/AuthReducer.spec.js +0 -9
  235. package/src/redux/types.js +0 -1
  236. package/src/utils/helpers/checkResource.js +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Application.js","names":["connectApplication","propName"],"sources":["../../../src/redux/connectors/Application.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectApplication: ModularUIConnector = modularui(\n \"Application\",\n \"/\",\n {\n propName: \"application\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,kBAAsC,GAAG,wBACpD,aADoD,EAEpD,GAFoD,EAGpD;EACEC,QAAQ,EAAE;AADZ,CAHoD,CAA/C"}
1
+ {"version":3,"file":"Application.js","names":["connectApplication","modularui","propName"],"sources":["../../../src/redux/connectors/Application.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectApplication: ModularUIConnector = modularui(\n \"Application\",\n \"/\",\n {\n propName: \"application\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,kBAAsC,GAAG,IAAAC,kBAAA,EACpD,aADoD,EAEpD,GAFoD,EAGpD;EACEC,QAAQ,EAAE;AADZ,CAHoD,CAA/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumb.js","names":["mapStateToProps","state","items","connectBreadcrumb"],"sources":["../../../src/redux/connectors/Breadcrumb.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { getActiveModels } from \"../_modularui/selectors\";\n\nimport type { ReduxState } from \"../types\";\nimport type Href from \"../../models/href/Href\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n items: Array<{ key: string, href: Href, label: string, type: string }>,\n};\ntype Props = { ...StateProps, ... };\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n items: getActiveModels(state),\n});\n\n/**\n */\nexport const connectBreadcrumb: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n _\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAWA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,KAAK,EAAE,gCAAgBD,KAAhB;EADmD,CAApC;AAAA,CAAxB;AAIA;AACA;;;AACO,IAAME,iBAAqC,GAAG,yBAOnDH,eAPmD,CAA9C"}
1
+ {"version":3,"file":"Breadcrumb.js","names":["mapStateToProps","state","items","getActiveModels","connectBreadcrumb","connect"],"sources":["../../../src/redux/connectors/Breadcrumb.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { getActiveModels } from \"../_modularui/selectors\";\n\nimport type { ReduxState } from \"../types\";\nimport type Href from \"../../models/href/Href\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n items: Array<{ key: string, href: Href, label: string, type: string }>,\n};\ntype Props = { ...StateProps, ... };\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n items: getActiveModels(state),\n});\n\n/**\n */\nexport const connectBreadcrumb: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n _\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAWA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,KAAK,EAAE,IAAAC,0BAAA,EAAgBF,KAAhB;EADmD,CAApC;AAAA,CAAxB;AAIA;AACA;;;AACO,IAAMG,iBAAqC,GAAG,IAAAC,mBAAA,EAOnDL,eAPmD,CAA9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"CaseView.js","names":["connectCaseView","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,eAAmC,GAAG,wBACjD,UADiD,EAEjD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFiD,EAGjD;EACEC,QAAQ,EAAE;AADZ,CAHiD,CAA5C"}
1
+ {"version":3,"file":"CaseView.js","names":["connectCaseView","modularui","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,eAAmC,GAAG,IAAAC,kBAAA,EACjD,UADiD,EAEjD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFiD,EAGjD;EACEC,QAAQ,EAAE;AADZ,CAHiD,CAA5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ConceptDetail.js","names":["connectConceptDetail","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,2DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAFsD,EAGtD;EAAEC,QAAQ,EAAE;AAAZ,CAHsD,CAAjD"}
1
+ {"version":3,"file":"ConceptDetail.js","names":["connectConceptDetail","modularui","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,IAAAC,kBAAA,EACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,2DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAFsD,EAGtD;EAAEC,QAAQ,EAAE;AAAZ,CAHsD,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentBrowser.js","names":["connectContentBrowser","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,qBAAyC,GAAG,wBACvD,gBADuD,EAEvD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFuD,EAGvD;EACEC,QAAQ,EAAE;AADZ,CAHuD,CAAlD"}
1
+ {"version":3,"file":"ContentBrowser.js","names":["connectContentBrowser","modularui","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,qBAAyC,GAAG,IAAAC,kBAAA,EACvD,gBADuD,EAEvD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFuD,EAGvD;EACEC,QAAQ,EAAE;AADZ,CAHuD,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentDetail.js","names":["connectContentDetail","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,wBACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,0DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAFsD,EAItD;EAAEC,QAAQ,EAAE;AAAZ,CAJsD,CAAjD"}
1
+ {"version":3,"file":"ContentDetail.js","names":["connectContentDetail","modularui","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,oBAAwC,GAAG,IAAAC,kBAAA,EACtD,eADsD,EAEtD;EAAA;;EAAA,IAAGC,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,0DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAFsD,EAItD;EAAEC,QAAQ,EAAE;AAAZ,CAJsD,CAAjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentDetailSection.js","names":["connectContentDetailSection","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAIA;AACA;AACO,IAAMA,2BAA+C,GAAG,wBAC7D,sBAD6D,EAE7D;EAAA;;EAAA,IAAGC,cAAH,QAAGA,cAAH;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;EAAA,IAA4BC,SAA5B,QAA4BA,SAA5B;EAAA,OACE,IAAIC,aAAJ,oDACcC,kBAAkB,CAACJ,cAAD,CADhC,uBACoDC,OADpD,GAEEI,YAFF,CAEe,WAFf,EAE4BH,SAF5B,CADF;AAAA,CAF6D,EAM7D;EAAEI,QAAQ,EAAE;AAAZ,CAN6D,CAAxD"}
1
+ {"version":3,"file":"ContentDetailSection.js","names":["connectContentDetailSection","modularui","sectioncontent","section","entryDate","Href","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" }\n);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAIA;AACA;AACO,IAAMA,2BAA+C,GAAG,IAAAC,kBAAA,EAC7D,sBAD6D,EAE7D;EAAA;;EAAA,IAAGC,cAAH,QAAGA,cAAH;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;EAAA,IAA4BC,SAA5B,QAA4BA,SAA5B;EAAA,OACE,IAAIC,aAAJ,oDACcC,kBAAkB,CAACJ,cAAD,CADhC,uBACoDC,OADpD,GAEEI,YAFF,CAEe,WAFf,EAE4BH,SAF5B,CADF;AAAA,CAF6D,EAM7D;EAAEI,QAAQ,EAAE;AAAZ,CAN6D,CAAxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","names":["mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","moduiConnectedForm","href","formHref","Href","pathname","search","addParameter","propName","method","HTTP_METHODS","POST","connectForm"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type {\n ModularUIConnector,\n UpdateModelAction,\n} from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateModelAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST }\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm\n);\n"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AACA;;AAEA;;AAkCA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CACtBC,KADsB,EAEtBC,QAFsB;EAAA;;EAAA,OAGN;IAChBC,OAAO,EAAE,0BAAAF,KAAK,CAACG,MAAN,CAAaC,QAAb,0GAAuBJ,KAAvB,kFAA8BK,KAA9B,KAAuCJ,QAAQ,CAACC,OAAhD,IAA2D;EADpD,CAHM;AAAA,CAAxB;;AAOA,IAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEC,oBAD4B;EAExCC,QAAQ,EAAEC,gBAF8B;EAGxCC,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMC,kBAAkB,GAAG,yBACzBb,eADyB,EAEzBO,kBAFyB,CAA3B;AAKA,IAAMO,kBAAsC,GAAG,wBAC7C,MAD6C,EAE7C,gBAAwB;EAAA;;EAAA,IAArBC,IAAqB,QAArBA,IAAqB;EAAA,IAAfV,QAAe,QAAfA,QAAe;EACtB,IAAMW,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAJ,2CAAYZ,QAAQ,CAACa,QAArB,kBAAgCb,QAAQ,CAACc,MAAzC,EAAzB;;EAEA,IAAI,0BAAW,oBAAX,CAAJ,EAAsC;IACpC,OAAOH,QAAP;EACD;;EAED,OAAOA,QAAQ,CAACI,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAV4C,EAW7C;EAAEC,QAAQ,EAAE,MAAZ;EAAoBC,MAAM,EAAEC,wBAAaC;AAAzC,CAX6C,CAA/C;AAcA;AACA;;AACO,IAAMC,WAEmB,GAAG,oBACjCX,kBADiC,EAEjCD,kBAFiC,CAF5B"}
1
+ {"version":3,"file":"Form.js","names":["mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","previousObject","onCancel","cancelForm","showFormNotification","reduxConnectedForm","connect","moduiConnectedForm","modularui","href","formHref","Href","pathname","search","getSetting","addParameter","propName","method","HTTP_METHODS","POST","connectForm","compose"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type {\n ModularUIConnector,\n UpdateModelAction,\n} from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateModelAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST }\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm\n);\n"],"mappings":";;;;;;;;;;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AACA;;AAEA;;AAkCA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CACtBC,KADsB,EAEtBC,QAFsB;EAAA;;EAAA,OAGN;IAChBC,OAAO,EAAE,0BAAAF,KAAK,CAACG,MAAN,CAAaC,QAAb,0GAAuBJ,KAAvB,kFAA8BK,KAA9B,KAAuCJ,QAAQ,CAACC,OAAhD,IAA2D;EADpD,CAHM;AAAA,CAAxB;;AAOA,IAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEC,oBAD4B;EAExCC,QAAQ,EAAEC,gBAF8B;EAGxCC,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMC,kBAAkB,GAAG,IAAAC,mBAAA,EACzBd,eADyB,EAEzBO,kBAFyB,CAA3B;AAKA,IAAMQ,kBAAsC,GAAG,IAAAC,kBAAA,EAC7C,MAD6C,EAE7C,gBAAwB;EAAA;;EAAA,IAArBC,IAAqB,QAArBA,IAAqB;EAAA,IAAfZ,QAAe,QAAfA,QAAe;EACtB,IAAMa,QAAQ,GAAGD,IAAI,IAAI,IAAIE,aAAJ,2CAAYd,QAAQ,CAACe,QAArB,kBAAgCf,QAAQ,CAACgB,MAAzC,EAAzB;;EAEA,IAAI,IAAAC,oBAAA,EAAW,oBAAX,CAAJ,EAAsC;IACpC,OAAOJ,QAAP;EACD;;EAED,OAAOA,QAAQ,CAACK,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAV4C,EAW7C;EAAEC,QAAQ,EAAE,MAAZ;EAAoBC,MAAM,EAAEC,uBAAA,CAAaC;AAAzC,CAX6C,CAA/C;AAcA;AACA;;AACO,IAAMC,WAEmB,GAAG,IAAAC,cAAA,EACjCd,kBADiC,EAEjCF,kBAFiC,CAF5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormAttributeSet.js","names":["mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateModelAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateModelAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateModelAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit || false,\n autosave: ownProps.autosave || false,\n }\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options\n )\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AAwCA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CACzBC,QADyB,EAEzBC,QAFyB;EAAA,OAGN;IACnBC,iBAAiB,EAAE,2BACjBC,SADiB,EAEjBC,KAFiB;MAAA,IAGjBC,OAHiB,uEAGY;QAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAT,IAAuB,KADR;QAE3BC,QAAQ,EAAEN,QAAQ,CAACM,QAAT,IAAqB;MAFJ,CAHZ;MAAA,OAQjBP,QAAQ,CACN,2CACEC,QAAQ,CAACO,IADX,EAEEP,QAAQ,CAACQ,MAFX,EAGEN,SAHF,EAIEC,KAJF,EAKEC,OALF,CADM,CARS;IAAA,CADA;IAkBnBK,sBAAsB,EAAE;MAAA,OACtBV,QAAQ,CAAC,2DAA0BC,QAAQ,CAACO,IAAnC,CAAD,CADc;IAAA,CAlBL;IAoBnBG,yBAAyB,EAAE,mCAACC,UAAD;MAAA,OACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;IAAA,CApBR;IAsBnBC,yBAAyB,EAAE,mCAACD,UAAD;MAAA,OACzBZ,QAAQ,CAAC,8DAA6BC,QAAQ,CAACO,IAAtC,EAA4CI,UAA5C,CAAD,CADiB;IAAA;EAtBR,CAHM;AAAA,CAA3B;AA6BA;AACA;;;AACO,IAAME,uBAA2C,GAAG,yBAOzD,IAPyD,EAOnDf,kBAPmD,CAApD"}
1
+ {"version":3,"file":"FormAttributeSet.js","names":["mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","updateFormAttribute","form","object","onAddAttributeSetClick","addRepeatableAttributeSet","onCancelAttributeSetClick","formObject","cancelRepeatableAttributeSet","onRemoveAttributeSetClick","removeRepeatableAttributeSet","connectFormAttributeSet","connect"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateModelAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateModelAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateModelAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit || false,\n autosave: ownProps.autosave || false,\n }\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options\n )\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AACA;;AAwCA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CACzBC,QADyB,EAEzBC,QAFyB;EAAA,OAGN;IACnBC,iBAAiB,EAAE,2BACjBC,SADiB,EAEjBC,KAFiB;MAAA,IAGjBC,OAHiB,uEAGY;QAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAT,IAAuB,KADR;QAE3BC,QAAQ,EAAEN,QAAQ,CAACM,QAAT,IAAqB;MAFJ,CAHZ;MAAA,OAQjBP,QAAQ,CACN,IAAAQ,qCAAA,EACEP,QAAQ,CAACQ,IADX,EAEER,QAAQ,CAACS,MAFX,EAGEP,SAHF,EAIEC,KAJF,EAKEC,OALF,CADM,CARS;IAAA,CADA;IAkBnBM,sBAAsB,EAAE;MAAA,OACtBX,QAAQ,CAAC,IAAAY,qDAAA,EAA0BX,QAAQ,CAACQ,IAAnC,CAAD,CADc;IAAA,CAlBL;IAoBnBI,yBAAyB,EAAE,mCAACC,UAAD;MAAA,OACzBd,QAAQ,CAAC,IAAAe,wDAAA,EAA6Bd,QAAQ,CAACQ,IAAtC,EAA4CK,UAA5C,CAAD,CADiB;IAAA,CApBR;IAsBnBE,yBAAyB,EAAE,mCAACF,UAAD;MAAA,OACzBd,QAAQ,CAAC,IAAAiB,wDAAA,EAA6BhB,QAAQ,CAACQ,IAAtC,EAA4CK,UAA5C,CAAD,CADiB;IAAA;EAtBR,CAHM;AAAA,CAA3B;AA6BA;AACA;;;AACO,IAAMI,uBAA2C,GAAG,IAAAC,mBAAA,EAOzD,IAPyD,EAOnDpB,kBAPmD,CAApD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListDetail.js","names":["connectListDetail","href","propName","targetModel","ListDetailModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,iBAAqC,GAAG,wBACnD,YADmD,EAEnD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFmD,EAGnD;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEC;AAFf,CAHmD,CAA9C"}
1
+ {"version":3,"file":"ListDetail.js","names":["connectListDetail","modularui","href","propName","targetModel","ListDetailModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,iBAAqC,GAAG,IAAAC,kBAAA,EACnD,YADmD,EAEnD;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFmD,EAGnD;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEC;AAFf,CAHmD,CAA9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","names":["mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAoBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,8BAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACC,OAAjB;EAAA,CAAzB,CAArB;EAEA,OAAO;IACLC,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;IAELC,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;EAFhD,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEC,iBADY;EAEzBC,YAAY,EAAEC;AAFW,CAA3B;AAKA;AACA;;AACO,IAAMC,YAAgC,GAAG,yBAO9Cf,eAP8C,EAO7BU,kBAP6B,CAAzC"}
1
+ {"version":3,"file":"Modal.js","names":["mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","showModal","onCloseModal","closeModal","connectModal","connect"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;;;;;AACA;;AAEA;;AAoBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,8BAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACC,OAAjB;EAAA,CAAzB,CAArB;EAEA,OAAO;IACLC,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;IAELC,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;EAFhD,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEC,iBADY;EAEzBC,YAAY,EAAEC;AAFW,CAA3B;AAKA;AACA;;AACO,IAAMC,YAAgC,GAAG,IAAAC,mBAAA,EAO9ChB,eAP8C,EAO7BU,kBAP6B,CAAzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModelCatalog.js","names":["connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,mBAAuC,GAAG,wBACrD,cADqD,EAErD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;EACEC,QAAQ,EAAE;AADZ,CAHqD,CAAhD"}
1
+ {"version":3,"file":"ModelCatalog.js","names":["connectModelCatalog","modularui","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,mBAAuC,GAAG,IAAAC,kBAAA,EACrD,cADqD,EAErD;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;EACEC,QAAQ,EAAE;AADZ,CAHqD,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","names":["mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAuBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;IAE1DE,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;IAG1DC,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;IAI1DC,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;EAJ+B,CAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAEC;AADc,CAA3B;AAIA;AACA;;AACO,IAAMC,mBAAuC,GAAG,yBAOrDV,eAPqD,EAOpCO,kBAPoC,CAAhD"}
1
+ {"version":3,"file":"Notification.js","names":["mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","dismissNotification","connectNotification","connect"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAuBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;IAE1DE,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;IAG1DC,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;IAI1DC,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;EAJ+B,CAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAEC;AADc,CAA3B;AAIA;AACA;;AACO,IAAMC,mBAAuC,GAAG,IAAAC,mBAAA,EAOrDX,eAPqD,EAOpCO,kBAPoC,CAAhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"PanelRenderer.js","names":["connectPanel","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,YAAgC,GAAG,wBAC9C,eAD8C,EAE9C,gBAAuC;EAAA,IAApCC,IAAoC,QAApCA,IAAoC;EAAA,IAA9BC,KAA8B,QAA9BA,KAA8B;EAAA,4BAAvBC,WAAuB;EAAA,IAAvBA,WAAuB,iCAAT,EAAS;;EACrC,IAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;IACnB,MAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;EAGD;;EAED,IAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAJ,CAASL,IAAT,CAAH,GAAoB,IAAIK,aAAJ,CAASJ,KAAK,CAACK,GAAf,CAA1C;;EAEA,IAAIL,KAAK,IAAIA,KAAK,CAACM,OAAnB,EAA4B;IAC1BH,SAAS,CAACI,uBAAV,CAAkCN,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhB6C,EAiB9C;EACEK,QAAQ,EAAE;AADZ,CAjB8C,CAAzC"}
1
+ {"version":3,"file":"PanelRenderer.js","names":["connectPanel","modularui","href","match","querystring","Error","panelHref","Href","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAIA;AACA;AACO,IAAMA,YAAgC,GAAG,IAAAC,kBAAA,EAC9C,eAD8C,EAE9C,gBAAuC;EAAA,IAApCC,IAAoC,QAApCA,IAAoC;EAAA,IAA9BC,KAA8B,QAA9BA,KAA8B;EAAA,4BAAvBC,WAAuB;EAAA,IAAvBA,WAAuB,iCAAT,EAAS;;EACrC,IAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;IACnB,MAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;EAGD;;EAED,IAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIK,aAAJ,CAASL,IAAT,CAAH,GAAoB,IAAIK,aAAJ,CAASJ,KAAK,CAACK,GAAf,CAA1C;;EAEA,IAAIL,KAAK,IAAIA,KAAK,CAACM,OAAnB,EAA4B;IAC1BH,SAAS,CAACI,uBAAV,CAAkCN,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhB6C,EAiB9C;EACEK,QAAQ,EAAE;AADZ,CAjB8C,CAAzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Preferences.js","names":["getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"mappings":";;;;;;;AACA;;AAiBA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;EACtD,IAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;EAIA,IAAMI,KAAyB,GAAG,EAAlC;EAEAH,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;IACzCF,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;EACD,CAFD;EAIA,OAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;EACvB;AACF;EACE,IAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;IAAA,OACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;EAAA,CAAxB;;EAGA,OAAO,yBAAqCS,eAArC,EACLD,gBADK,CAAP;AAGD,CAZM"}
1
+ {"version":3,"file":"Preferences.js","names":["getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state","connect"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"mappings":";;;;;;;AACA;;AAiBA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;EACtD,IAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;EAIA,IAAMI,KAAyB,GAAG,EAAlC;EAEAH,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;IACzCF,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;EACD,CAFD;EAIA,OAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;EACvB;AACF;EACE,IAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;IAAA,OACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;EAAA,CAAxB;;EAGA,OAAO,IAAAW,mBAAA,EAAqCF,eAArC,EACLD,gBADK,CAAP;AAGD,CAZM"}
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.js","names":["mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAgBA,IAAMA,kBAAiC,GAAG;EACxCC,eAAe,EAAEC,gCADuB;EAExCC,gBAAgB,EAAEC,iCAFsB;EAGxCC,OAAO,EAAEC;AAH+B,CAA1C;AAMA;AACA;;AACO,IAAMC,eAAmC,GAAG,yBAOjD,IAPiD,EAO3CP,kBAP2C,CAA5C"}
1
+ {"version":3,"file":"Progress.js","names":["mapDispatchToProps","onStartProgress","startProgress","onFinishProgress","finishProgress","onError","handleError","connectProgress","connect"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AAgBA,IAAMA,kBAAiC,GAAG;EACxCC,eAAe,EAAEC,gCADuB;EAExCC,gBAAgB,EAAEC,iCAFsB;EAGxCC,OAAO,EAAEC;AAH+B,CAA1C;AAMA;AACA;;AACO,IAAMC,eAAmC,GAAG,IAAAC,mBAAA,EAOjD,IAPiD,EAO3CR,kBAP2C,CAA5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressIndicator.js","names":["mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAgBA;AACA;AACA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;IAE9CE,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;IAG9CC,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;EAHK,CAAxB;AAAA,CAAxB;AAMA;AACA;;;AACO,IAAMC,wBAA4C,GAAG,yBAO1DN,eAP0D,CAArD"}
1
+ {"version":3,"file":"ProgressIndicator.js","names":["mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator","connect"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"mappings":";;;;;;;AACA;;AAgBA;AACA;AACA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;IAE9CE,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;IAG9CC,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;EAHK,CAAxB;AAAA,CAAxB;AAMA;AACA;;;AACO,IAAMC,wBAA4C,GAAG,IAAAC,mBAAA,EAO1DP,eAP0D,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuickSearch.js","names":["mapDispatchToProps","push","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAKA;;AAYA,IAAMA,kBAAiC,GAAG;EACxCC,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACO,IAAMC,kBAEmB,GAAG,oBACjC,yBAAqC,IAArC,EAA2CF,kBAA3C,CADiC,EAEjC,wBAAU,aAAV,EAAyB;EAAA,IAAGG,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAzB,EAA6C;EAC3CC,QAAQ,EAAE;AADiC,CAA7C,CAFiC,CAF5B"}
1
+ {"version":3,"file":"QuickSearch.js","names":["mapDispatchToProps","push","connectQuickSearch","compose","connect","modularui","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"mappings":";;;;;;;;;AACA;;AACA;;AAEA;;AACA;;AAKA;;AAYA,IAAMA,kBAAiC,GAAG;EACxCC,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACO,IAAMC,kBAEmB,GAAG,IAAAC,cAAA,EACjC,IAAAC,mBAAA,EAAqC,IAArC,EAA2CJ,kBAA3C,CADiC,EAEjC,IAAAK,kBAAA,EAAU,aAAV,EAAyB;EAAA,IAAGC,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAzB,EAA6C;EAC3CC,QAAQ,EAAE;AADiC,CAA7C,CAFiC,CAF5B"}
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -13,12 +11,12 @@ var _SignIn = require("../actions/SignIn");
13
11
 
14
12
  var _selectors = require("../_modularui/selectors");
15
13
 
16
- var _UserServicesModel = _interopRequireDefault(require("../../models/user/UserServicesModel"));
17
-
18
14
  var mapStateToProps = function mapStateToProps(state) {
15
+ var _application$isLogged;
16
+
19
17
  var application = (0, _selectors.getApplication)(state);
20
18
  return {
21
- isAuthenticated: state.auth.isAuthenticated && (application === null || application === void 0 ? void 0 : application.userServices) instanceof _UserServicesModel.default && application.userServices.isLoggedIn,
19
+ isAuthenticated: (_application$isLogged = application === null || application === void 0 ? void 0 : application.isLoggedIn) !== null && _application$isLogged !== void 0 ? _application$isLogged : false,
22
20
  errorMessage: state.auth.error
23
21
  };
24
22
  };
@@ -5,8 +5,6 @@ import { login } from "../actions/SignIn";
5
5
 
6
6
  import { getApplication } from "../_modularui/selectors";
7
7
 
8
- import UserServicesModel from "../../models/user/UserServicesModel";
9
-
10
8
  import type { ReduxState, ThunkAction } from "../types";
11
9
  import type { ComponentType } from "react";
12
10
 
@@ -28,10 +26,7 @@ const mapStateToProps = (state: ReduxState): StateProps => {
28
26
  const application = getApplication(state);
29
27
 
30
28
  return {
31
- isAuthenticated:
32
- state.auth.isAuthenticated &&
33
- application?.userServices instanceof UserServicesModel &&
34
- application.userServices.isLoggedIn,
29
+ isAuthenticated: application?.isLoggedIn ?? false,
35
30
  errorMessage: state.auth.error,
36
31
  };
37
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SignIn.js","names":["mapStateToProps","state","application","isAuthenticated","auth","userServices","UserServicesModel","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","login","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;;;AACA;;AAEA;;AAEA;;AAEA;;AAmBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EACzD,IAAMC,WAAW,GAAG,+BAAeD,KAAf,CAApB;EAEA,OAAO;IACLE,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCC,0BADrC,IAEAJ,WAAW,CAACG,YAAZ,CAAyBE,UAJtB;IAKLC,YAAY,EAAEP,KAAK,CAACG,IAAN,CAAWK;EALpB,CAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEC;AAD8B,CAA1C;AAIA;AACA;;AACO,IAAMC,aAAiC,GAAG,yBAO/Cb,eAP+C,EAO9BU,kBAP8B,CAA1C"}
1
+ {"version":3,"file":"SignIn.js","names":["mapStateToProps","state","application","getApplication","isAuthenticated","isLoggedIn","errorMessage","auth","error","mapDispatchToProps","onSubmit","login","connectSignIn","connect"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated: application?.isLoggedIn ?? false,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAEA;;AAmBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,WAAW,GAAG,IAAAC,yBAAA,EAAeF,KAAf,CAApB;EAEA,OAAO;IACLG,eAAe,2BAAEF,WAAF,aAAEA,WAAF,uBAAEA,WAAW,CAAEG,UAAf,yEAA6B,KADvC;IAELC,YAAY,EAAEL,KAAK,CAACM,IAAN,CAAWC;EAFpB,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEC;AAD8B,CAA1C;AAIA;AACA;;AACO,IAAMC,aAAiC,GAAG,IAAAC,mBAAA,EAO/Cb,eAP+C,EAO9BS,kBAP8B,CAA1C"}
@@ -9,9 +9,13 @@ var _reactRedux = require("react-redux");
9
9
 
10
10
  var _SignOut = require("../actions/SignOut");
11
11
 
12
+ var _modularui = require("../_modularui");
13
+
12
14
  var mapStateToProps = function mapStateToProps(state) {
15
+ var _getApplication$isLog, _getApplication;
16
+
13
17
  return {
14
- isAuthenticated: state.auth.isAuthenticated
18
+ isAuthenticated: (_getApplication$isLog = (_getApplication = (0, _modularui.getApplication)(state)) === null || _getApplication === void 0 ? void 0 : _getApplication.isLoggedIn) !== null && _getApplication$isLog !== void 0 ? _getApplication$isLog : false
15
19
  };
16
20
  };
17
21
 
@@ -5,6 +5,7 @@ import { logout } from "../actions/SignOut";
5
5
 
6
6
  import type { ThunkAction } from "../types";
7
7
  import type { ComponentType } from "react";
8
+ import { getApplication } from "../_modularui";
8
9
 
9
10
  type StateProps = {
10
11
  isAuthenticated: boolean,
@@ -20,7 +21,7 @@ type Props = {
20
21
  };
21
22
 
22
23
  const mapStateToProps = (state): StateProps => ({
23
- isAuthenticated: state.auth.isAuthenticated,
24
+ isAuthenticated: getApplication(state)?.isLoggedIn ?? false,
24
25
  });
25
26
 
26
27
  const mapDispatchToProps = { doLogout: logout };
@@ -1 +1 @@
1
- {"version":3,"file":"SignOut.js","names":["mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","logout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAkBA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;EADkB,CAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;EAAEC,QAAQ,EAAEC;AAAZ,CAA3B;AAEA;AACA;;AACO,IAAMC,cAAkC,GAAG,yBAOhDP,eAPgD,EAO/BI,kBAP+B,CAA3C"}
1
+ {"version":3,"file":"SignOut.js","names":["mapStateToProps","state","isAuthenticated","getApplication","isLoggedIn","mapDispatchToProps","doLogout","logout","connectSignOut","connect"],"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\";\nimport { getApplication } from \"../_modularui\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: getApplication(state)?.isLoggedIn ?? false,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";;;;;;;AACA;;AAEA;;AAIA;;AAeA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA;;EAAA,OAAwB;IAC9CC,eAAe,8CAAE,IAAAC,yBAAA,EAAeF,KAAf,CAAF,oDAAE,gBAAuBG,UAAzB,yEAAuC;EADR,CAAxB;AAAA,CAAxB;;AAIA,IAAMC,kBAAkB,GAAG;EAAEC,QAAQ,EAAEC;AAAZ,CAA3B;AAEA;AACA;;AACO,IAAMC,cAAkC,GAAG,IAAAC,mBAAA,EAOhDT,eAPgD,EAO/BK,kBAP+B,CAA3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.js","names":["connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,UAA8B,GAAG,wBAC5C,KAD4C,EAE5C;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF4C,EAG5C;EACEC,QAAQ,EAAE;AADZ,CAH4C,CAAvC"}
1
+ {"version":3,"file":"Tab.js","names":["connectTab","modularui","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"mappings":";;;;;;;;;AACA;;AAIA;AACA;AACO,IAAMA,UAA8B,GAAG,IAAAC,kBAAA,EAC5C,KAD4C,EAE5C;EAAA,IAAGC,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF4C,EAG5C;EACEC,QAAQ,EAAE;AADZ,CAH4C,CAAvC"}
@@ -19,15 +19,12 @@ exports.default = void 0;
19
19
 
20
20
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
21
21
 
22
- var _Cache = _interopRequireDefault(require("../../utils/browser/Cache"));
23
-
24
22
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
23
 
26
24
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? Object.defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
27
25
 
28
26
  // REDUCER
29
27
  var initialState = {
30
- isAuthenticated: false,
31
28
  mustChangePassword: false,
32
29
  error: null
33
30
  };
@@ -46,7 +43,6 @@ var AuthReducer = function AuthReducer() {
46
43
  switch (action.type) {
47
44
  case "AUTHENTICATION_SUCCESS":
48
45
  return _objectSpread(_objectSpread({}, state), {}, {
49
- isAuthenticated: true,
50
46
  error: null,
51
47
  mustChangePassword: false
52
48
  });
@@ -64,21 +60,14 @@ var AuthReducer = function AuthReducer() {
64
60
 
65
61
  case "AUTHENTICATION_LOGOUT":
66
62
  {
67
- // clear cache because of cached contributions
68
- if (state.isAuthenticated) {
69
- _Cache.default.clear();
70
- }
71
-
72
63
  return _objectSpread(_objectSpread({}, state), {}, {
73
64
  mustChangePassword: false,
74
- isAuthenticated: false,
75
65
  error: null
76
66
  });
77
67
  }
78
68
 
79
69
  case "CHANGE_PASSWORD":
80
70
  return _objectSpread(_objectSpread({}, state), {}, {
81
- isAuthenticated: true,
82
71
  mustChangePassword: true,
83
72
  error: null
84
73
  });
@@ -1,12 +1,9 @@
1
1
  // @flow
2
- import Cache from "../../utils/browser/Cache";
3
-
4
2
  import type { Reducer } from "redux";
5
3
  import type { AuthState, ReduxAction } from "../types";
6
4
 
7
5
  // REDUCER
8
6
  const initialState: AuthState = {
9
- isAuthenticated: false,
10
7
  mustChangePassword: false,
11
8
  error: null,
12
9
  };
@@ -26,7 +23,6 @@ const AuthReducer: Reducer<AuthState, ReduxAction> = (
26
23
  case "AUTHENTICATION_SUCCESS":
27
24
  return {
28
25
  ...state,
29
- isAuthenticated: true,
30
26
  error: null,
31
27
  mustChangePassword: false,
32
28
  };
@@ -38,15 +34,9 @@ const AuthReducer: Reducer<AuthState, ReduxAction> = (
38
34
  return { ...state, error: null };
39
35
 
40
36
  case "AUTHENTICATION_LOGOUT": {
41
- // clear cache because of cached contributions
42
- if (state.isAuthenticated) {
43
- Cache.clear();
44
- }
45
-
46
37
  return {
47
38
  ...state,
48
39
  mustChangePassword: false,
49
- isAuthenticated: false,
50
40
  error: null,
51
41
  };
52
42
  }
@@ -54,7 +44,6 @@ const AuthReducer: Reducer<AuthState, ReduxAction> = (
54
44
  case "CHANGE_PASSWORD":
55
45
  return {
56
46
  ...state,
57
- isAuthenticated: true,
58
47
  mustChangePassword: true,
59
48
  error: null,
60
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AuthReducer.js","names":["initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","Cache","clear"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;;;;;;AAKA;AACA,IAAMA,YAAuB,GAAG;EAC9BC,eAAe,EAAE,KADa;EAE9BC,kBAAkB,EAAE,KAFU;EAG9BC,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;EAAA,IAFHC,KAEG,uEAFKL,YAEL;EAAA,IADHM,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,wBAAL;MACE,uCACKF,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEE,KAAK,EAAE,IAHT;QAIED,kBAAkB,EAAE;MAJtB;;IAOF,KAAK,sBAAL;MACE,uCAAYG,KAAZ;QAAmBH,kBAAkB,EAAE,KAAvC;QAA8CC,KAAK,EAAEG,MAAM,CAACE;MAA5D;;IAEF,KAAK,6BAAL;MACE,uCAAYH,KAAZ;QAAmBF,KAAK,EAAE;MAA1B;;IAEF,KAAK,uBAAL;MAA8B;QAC5B;QACA,IAAIE,KAAK,CAACJ,eAAV,EAA2B;UACzBQ,eAAMC,KAAN;QACD;;QAED,uCACKL,KADL;UAEEH,kBAAkB,EAAE,KAFtB;UAGED,eAAe,EAAE,KAHnB;UAIEE,KAAK,EAAE;QAJT;MAMD;;IAED,KAAK,iBAAL;MACE,uCACKE,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEC,kBAAkB,EAAE,IAHtB;QAIEC,KAAK,EAAE;MAJT;;IAOF;MACE,OAAOE,KAAP;EAtCJ;AAwCD,CAhDD;;eAkDeD,W"}
1
+ {"version":3,"file":"AuthReducer.js","names":["initialState","mustChangePassword","error","AuthReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n return {\n ...state,\n mustChangePassword: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA,IAAMA,YAAuB,GAAG;EAC9BC,kBAAkB,EAAE,KADU;EAE9BC,KAAK,EAAE;AAFuB,CAAhC;AAKA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;EAAA,IAFHC,KAEG,uEAFKJ,YAEL;EAAA,IADHK,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,wBAAL;MACE,uCACKF,KADL;QAEEF,KAAK,EAAE,IAFT;QAGED,kBAAkB,EAAE;MAHtB;;IAMF,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,uCACKE,KADL;UAEEH,kBAAkB,EAAE,KAFtB;UAGEC,KAAK,EAAE;QAHT;MAKD;;IAED,KAAK,iBAAL;MACE,uCACKE,KADL;QAEEH,kBAAkB,EAAE,IAFtB;QAGEC,KAAK,EAAE;MAHT;;IAMF;MACE,OAAOE,KAAP;EA9BJ;AAgCD,CAxCD;;eA0CeD,W"}
@@ -3,13 +3,11 @@ import AuthReducer from "../AuthReducer";
3
3
  describe("authentication reducer", () => {
4
4
  it("should return the initial state", () => {
5
5
  expect(AuthReducer(undefined, {})).toStrictEqual({
6
- isAuthenticated: false,
7
6
  mustChangePassword: false,
8
7
  error: null,
9
8
  });
10
9
 
11
10
  expect(AuthReducer()).toStrictEqual({
12
- isAuthenticated: false,
13
11
  mustChangePassword: false,
14
12
  error: null,
15
13
  });
@@ -24,7 +22,6 @@ describe("authentication reducer", () => {
24
22
  }
25
23
  )
26
24
  ).toStrictEqual({
27
- isAuthenticated: true,
28
25
  mustChangePassword: false,
29
26
  error: null,
30
27
  });
@@ -49,7 +46,6 @@ describe("authentication reducer", () => {
49
46
  expect(
50
47
  AuthReducer(
51
48
  {
52
- isAuthenticated: true,
53
49
  mustChangePassword: false,
54
50
  error: null,
55
51
  },
@@ -58,7 +54,6 @@ describe("authentication reducer", () => {
58
54
  }
59
55
  )
60
56
  ).toStrictEqual({
61
- isAuthenticated: false,
62
57
  mustChangePassword: false,
63
58
  error: null,
64
59
  });
@@ -68,7 +63,6 @@ describe("authentication reducer", () => {
68
63
  expect(
69
64
  AuthReducer(
70
65
  {
71
- isAuthenticated: false,
72
66
  mustChangePassword: false,
73
67
  error: "In error",
74
68
  },
@@ -77,7 +71,6 @@ describe("authentication reducer", () => {
77
71
  }
78
72
  )
79
73
  ).toStrictEqual({
80
- isAuthenticated: false,
81
74
  mustChangePassword: false,
82
75
  error: null,
83
76
  });
@@ -87,7 +80,6 @@ describe("authentication reducer", () => {
87
80
  expect(
88
81
  AuthReducer(
89
82
  {
90
- isAuthenticated: true,
91
83
  mustChangePassword: false,
92
84
  error: null,
93
85
  },
@@ -96,7 +88,6 @@ describe("authentication reducer", () => {
96
88
  }
97
89
  )
98
90
  ).toStrictEqual({
99
- isAuthenticated: true,
100
91
  mustChangePassword: true,
101
92
  error: null,
102
93
  });
@@ -1 +1 @@
1
- {"version":3,"file":"configureStore.js","names":["configureStore","history","customReducers","initialState","composeEnhancers","compose","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","modularuiMiddleware","thunk","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;;AAMA;;AAEA;;AACA;;AAEA;;AACA;;;;;;AAMA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;EAClD,IAAIC,gBAAgB,GAAGC,cAAvB;;EAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;IAC1EL,gBAAgB,GAAGK,MAAM,CAACC,oCAAP,IAA+CL,cAAlE;EACD;;EAED,IAAMM,gBAAkD,GAAG,4DACtDT,cADsD,GAEtD,mCAFsD,EAA3D;EAKA,IAAMU,UAAU,GAAG,4BACjBC,gCADiB,EAEjB,kCAAiBZ,OAAjB,CAFiB,EAGjBa,mBAHiB,CAAnB;EAMA,IAAMC,SAAS,GAAGX,gBAAgB,CAACQ,UAAD,CAAlC;EAEA,IAAMI,KAAiB,GAAG,wBACxBL,gBADwB,EAExBR,YAFwB,EAGxBY,SAHwB,CAA1B;;EAMA,IAAI,CAACZ,YAAL,EAAmB;IACjBa,KAAK,CAACC,QAAN,CAAe,6BAAehB,OAAO,CAACiB,QAAvB,EAAiC,MAAjC,CAAf;EACD;;EACD,OAAO;IAAEjB,OAAO,EAAPA,OAAF;IAAWe,KAAK,EAALA;EAAX,CAAP;AACD,CAlCD;;eAoCehB,c"}
1
+ {"version":3,"file":"configureStore.js","names":["configureStore","history","customReducers","initialState","composeEnhancers","compose","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","combineReducers","createReducer","middleware","applyMiddleware","modularuiMiddleware","routerMiddleware","thunk","enhancers","store","createReduxStore","dispatch","locationChange","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;;AAMA;;AAEA;;AACA;;AAEA;;AACA;;;;;;AAMA;AACA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;EAClD,IAAIC,gBAAgB,GAAGC,cAAvB;;EAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;IAC1EL,gBAAgB,GAAGK,MAAM,CAACC,oCAAP,IAA+CL,cAAlE;EACD;;EAED,IAAMM,gBAAkD,GAAG,IAAAC,sBAAA,kCACtDV,cADsD,GAEtD,IAAAW,4BAAA,GAFsD,EAA3D;EAKA,IAAMC,UAAU,GAAG,IAAAC,sBAAA,EACjBC,gCADiB,EAEjB,IAAAC,4BAAA,EAAiBhB,OAAjB,CAFiB,EAGjBiB,mBAHiB,CAAnB;EAMA,IAAMC,SAAS,GAAGf,gBAAgB,CAACU,UAAD,CAAlC;EAEA,IAAMM,KAAiB,GAAG,IAAAC,kBAAA,EACxBV,gBADwB,EAExBR,YAFwB,EAGxBgB,SAHwB,CAA1B;;EAMA,IAAI,CAAChB,YAAL,EAAmB;IACjBiB,KAAK,CAACE,QAAN,CAAe,IAAAC,uBAAA,EAAetB,OAAO,CAACuB,QAAvB,EAAiC,MAAjC,CAAf;EACD;;EACD,OAAO;IAAEvB,OAAO,EAAPA,OAAF;IAAWmB,KAAK,EAALA;EAAX,CAAP;AACD,CAlCD;;eAoCepB,c"}
@@ -168,7 +168,6 @@ export type ReduxAction =
168
168
 
169
169
  // Redux state
170
170
  export type AuthState = {
171
- +isAuthenticated: boolean,
172
171
  +mustChangePassword: boolean,
173
172
  +error: ?string,
174
173
  };
@@ -1 +1 @@
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
+ {"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 +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,"file":"Cookies.js","names":["getCookie","name","Cookies","get","setCookie","value","days","sameSite","secure","attributes","path","BASE","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;;AAEA;;AAeA;AACA;AACA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,IAAD,EAAiC;EACjD,OAAOC,kBAAQC,GAAR,CAAYF,IAAZ,CAAP;AACD,CAFD;AAIA;AACA;;;;;AACA,IAAMG,SAAS,GAAG,SAAZA,SAAY,CAChBH,IADgB,EAEhBI,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,EAAEC;EAAR,CAArC;;EACA,IAAIL,IAAJ,EAAU;IACRG,UAAU,CAACG,OAAX,GAAqBN,IAArB;EACD;;EACD,IAAIC,QAAJ,EAAc;IACZE,UAAU,CAACF,QAAX,GAAsBA,QAAtB;EACD;;EACD,IAAIC,MAAJ,EAAY;IACVC,UAAU,CAACD,MAAX,GAAoBA,MAApB;EACD;;EAEDN,kBAAQW,GAAR,CAAYZ,IAAZ,EAAkBI,KAAlB,EAAyBI,UAAzB;AACD,CAjBD;AAmBA;AACA;;;;;AACA,IAAMK,WAAW,GAAG,SAAdA,WAAc,CAACb,IAAD,EAAkB;EACpCC,kBAAQa,MAAR,CAAed,IAAf,EAAqB;IAAES,IAAI,EAAEC;EAAR,CAArB;AACD,CAFD"}
1
+ {"version":3,"file":"Cookies.js","names":["getCookie","name","Cookies","get","setCookie","value","days","sameSite","secure","attributes","path","BASE","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;;AAEA;;AAeA;AACA;AACA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,IAAD,EAAiC;EACjD,OAAOC,iBAAA,CAAQC,GAAR,CAAYF,IAAZ,CAAP;AACD,CAFD;AAIA;AACA;;;;;AACA,IAAMG,SAAS,GAAG,SAAZA,SAAY,CAChBH,IADgB,EAEhBI,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,EAAEC;EAAR,CAArC;;EACA,IAAIL,IAAJ,EAAU;IACRG,UAAU,CAACG,OAAX,GAAqBN,IAArB;EACD;;EACD,IAAIC,QAAJ,EAAc;IACZE,UAAU,CAACF,QAAX,GAAsBA,QAAtB;EACD;;EACD,IAAIC,MAAJ,EAAY;IACVC,UAAU,CAACD,MAAX,GAAoBA,MAApB;EACD;;EAEDN,iBAAA,CAAQW,GAAR,CAAYZ,IAAZ,EAAkBI,KAAlB,EAAyBI,UAAzB;AACD,CAjBD;AAmBA;AACA;;;;;AACA,IAAMK,WAAW,GAAG,SAAdA,WAAc,CAACb,IAAD,EAAkB;EACpCC,iBAAA,CAAQa,MAAR,CAAed,IAAf,EAAqB;IAAES,IAAI,EAAEC;EAAR,CAArB;AACD,CAFD"}