@pagopa/selfcare-common-frontend 1.35.0 → 1.36.0

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 (287) hide show
  1. package/CHANGELOG.md +883 -1
  2. package/README.md +34 -8
  3. package/examples/locale/en.d.ts +20 -0
  4. package/examples/locale/en.js +18 -0
  5. package/examples/locale/index.js +4 -0
  6. package/examples/locale/it.d.ts +20 -0
  7. package/examples/locale/it.js +19 -0
  8. package/{common-polyfill.d.ts → lib/common-polyfill.d.ts} +0 -1
  9. package/lib/common-polyfill.js +9 -0
  10. package/lib/components/BackComponent.d.ts +7 -0
  11. package/lib/components/BackComponent.js +8 -0
  12. package/lib/components/CustomAlert.d.ts +12 -0
  13. package/lib/components/CustomAlert.js +7 -0
  14. package/{components → lib/components}/CustomAvatar.d.ts +2 -3
  15. package/lib/components/CustomAvatar.js +13 -0
  16. package/{components → lib/components}/CustomPagination.d.ts +7 -3
  17. package/lib/components/CustomPagination.js +25 -0
  18. package/{components → lib/components}/EndingPage.d.ts +15 -3
  19. package/lib/components/EndingPage.js +4 -0
  20. package/lib/components/ErrorBoundary/ErrorBoundary.d.ts +11 -0
  21. package/lib/components/ErrorBoundary/ErrorBoundary.js +93 -0
  22. package/{components → lib/components}/ErrorBoundary/components/BlockingErrorPage.d.ts +2 -3
  23. package/lib/components/ErrorBoundary/components/BlockingErrorPage.js +11 -0
  24. package/{components → lib/components}/FilterModal.d.ts +3 -3
  25. package/lib/components/FilterModal.js +29 -0
  26. package/{components → lib/components}/Footer/Footer.d.ts +2 -3
  27. package/lib/components/Footer/Footer.js +179 -0
  28. package/{components → lib/components}/Footer/FooterConfig.js +5 -9
  29. package/{components → lib/components}/Header/Header.d.ts +11 -6
  30. package/lib/components/Header/Header.js +45 -0
  31. package/{components → lib/components}/Loading/LoadingOverlay.d.ts +1 -2
  32. package/lib/components/Loading/LoadingOverlay.js +13 -0
  33. package/lib/components/LoadingOverlayComponent.d.ts +7 -0
  34. package/lib/components/LoadingOverlayComponent.js +25 -0
  35. package/{components → lib/components}/NavigationBar.d.ts +5 -4
  36. package/lib/components/NavigationBar.js +17 -0
  37. package/{components → lib/components}/SessionModal.d.ts +3 -3
  38. package/lib/components/SessionModal.js +17 -0
  39. package/{components → lib/components}/TitleBox.d.ts +7 -7
  40. package/lib/components/TitleBox.js +9 -0
  41. package/{components → lib/components}/Toast.d.ts +3 -3
  42. package/lib/components/Toast.js +25 -0
  43. package/{components → lib/components}/ToastWrapper.d.ts +2 -2
  44. package/lib/components/ToastWrapper.js +12 -0
  45. package/{components → lib/components}/UnloadEventHandler.d.ts +1 -2
  46. package/lib/components/UnloadEventHandler.js +29 -0
  47. package/{components → lib/components}/UserNotifyHandle.d.ts +1 -2
  48. package/lib/components/UserNotifyHandle.js +62 -0
  49. package/{components → lib/components}/icons/CheckIllustrationIcon.d.ts +1 -2
  50. package/lib/components/icons/CheckIllustrationIcon.js +3 -0
  51. package/lib/components/icons/ConfirmIcon.js +4 -0
  52. package/{components → lib/components}/icons/ErrorIcon.d.ts +1 -2
  53. package/lib/components/icons/ErrorIcon.js +3 -0
  54. package/lib/components/icons/ErrorIconExclamation.js +4 -0
  55. package/lib/components/icons/FaultIcon.js +4 -0
  56. package/{components → lib/components}/icons/PagoPaIcon.d.ts +1 -2
  57. package/lib/components/icons/PagoPaIcon.js +3 -0
  58. package/{components → lib/components}/icons/PagoPaIconColored.d.ts +1 -2
  59. package/lib/components/icons/PagoPaIconColored.js +3 -0
  60. package/{components → lib/components}/icons/PagoPaMiniIcon.d.ts +1 -2
  61. package/lib/components/icons/PagoPaMiniIcon.js +3 -0
  62. package/lib/components/tests/FilterModal.test.d.ts +1 -0
  63. package/lib/components/tests/FilterModal.test.js +37 -0
  64. package/{config → lib/config}/env.d.ts +4 -1
  65. package/{config → lib/config}/env.js +13 -17
  66. package/lib/consentManagementConfigure.d.ts +1 -0
  67. package/{consentManagementConfigure.js → lib/consentManagementConfigure.js} +5 -8
  68. package/{decorators → lib/decorators}/__mocks__/withLogin.d.ts +1 -2
  69. package/lib/decorators/__mocks__/withLogin.js +18 -0
  70. package/{decorators → lib/decorators}/withLogin.d.ts +1 -2
  71. package/{decorators → lib/decorators}/withLogin.js +13 -18
  72. package/{decorators → lib/decorators}/withRetrievedValue.d.ts +1 -1
  73. package/{decorators → lib/decorators}/withRetrievedValue.js +9 -14
  74. package/lib/hooks/useErrorDispatcher.js +7 -0
  75. package/{hooks → lib/hooks}/useFakePagination.d.ts +3 -3
  76. package/{hooks → lib/hooks}/useFakePagination.js +9 -15
  77. package/lib/hooks/useFocus.d.ts +1 -0
  78. package/lib/hooks/useFocus.js +8 -0
  79. package/lib/hooks/useLiveAnnouncerWithRegion.d.ts +4 -0
  80. package/lib/hooks/useLiveAnnouncerWithRegion.js +19 -0
  81. package/lib/hooks/useLoading.js +10 -0
  82. package/lib/hooks/useLogin.js +40 -0
  83. package/lib/hooks/usePermissions.d.ts +7 -0
  84. package/lib/hooks/usePermissions.js +25 -0
  85. package/lib/hooks/useReduxCachedValue.d.ts +22 -0
  86. package/{hooks → lib/hooks}/useReduxCachedValue.js +10 -17
  87. package/{hooks → lib/hooks}/useUnloadEventInterceptor.d.ts +3 -3
  88. package/{hooks → lib/hooks}/useUnloadEventInterceptor.js +24 -32
  89. package/lib/hooks/useUserNotify.js +7 -0
  90. package/{index.d.ts → lib/index.d.ts} +11 -8
  91. package/lib/index.js +36 -0
  92. package/{locale/it.d.ts → lib/locale/de.d.ts} +4 -1
  93. package/{locale → lib/locale}/de.js +31 -31
  94. package/{locale → lib/locale}/en.d.ts +4 -1
  95. package/{locale → lib/locale}/en.js +30 -30
  96. package/{locale → lib/locale}/fr.d.ts +5 -2
  97. package/{locale → lib/locale}/fr.js +26 -26
  98. package/{locale/de.d.ts → lib/locale/it.d.ts} +8 -2
  99. package/{locale → lib/locale}/it.js +11 -8
  100. package/lib/locale/locale-utils.js +45 -0
  101. package/{locale → lib/locale}/sl.d.ts +5 -2
  102. package/{locale → lib/locale}/sl.js +31 -31
  103. package/{model → lib/model}/AppError.d.ts +1 -1
  104. package/lib/model/AppError.js +1 -0
  105. package/lib/model/JwtUser.d.ts +9 -0
  106. package/lib/model/JwtUser.js +1 -0
  107. package/{model → lib/model}/Page.d.ts +1 -1
  108. package/lib/model/Page.js +1 -0
  109. package/{model → lib/model}/PageRequest.d.ts +1 -1
  110. package/lib/model/PageRequest.js +1 -0
  111. package/{model → lib/model}/PageResource.d.ts +1 -1
  112. package/lib/model/PageResource.js +1 -0
  113. package/lib/model/User.d.ts +8 -0
  114. package/lib/model/User.js +1 -0
  115. package/{model → lib/model}/UserNotify.d.ts +1 -2
  116. package/lib/model/UserNotify.js +1 -0
  117. package/lib/redux/slices/appStateSlice.d.ts +58 -0
  118. package/{redux → lib/redux}/slices/appStateSlice.js +15 -9
  119. package/lib/redux/slices/permissionsSlice.d.ts +12 -0
  120. package/lib/redux/slices/permissionsSlice.js +23 -0
  121. package/lib/redux/slices/productsSlice.d.ts +204 -0
  122. package/lib/redux/slices/productsSlice.js +26 -0
  123. package/lib/redux/slices/userSlice.d.ts +36 -0
  124. package/lib/redux/slices/userSlice.js +17 -0
  125. package/{services → lib/services}/analyticsService.d.ts +2 -1
  126. package/{services → lib/services}/analyticsService.js +31 -28
  127. package/{services → lib/services}/assistanceService.d.ts +1 -1
  128. package/lib/services/assistanceService.js +14 -0
  129. package/lib/services/errorService.js +8 -0
  130. package/{utils → lib/utils}/api-utils.d.ts +3 -3
  131. package/{utils → lib/utils}/api-utils.js +28 -23
  132. package/lib/utils/constants.d.ts +69 -0
  133. package/lib/utils/constants.js +83 -0
  134. package/lib/utils/productId2ProductTitle.d.ts +1 -0
  135. package/lib/utils/productId2ProductTitle.js +13 -0
  136. package/lib/utils/routes-utils.js +2 -0
  137. package/{utils → lib/utils}/storage-utils.d.ts +3 -3
  138. package/{utils → lib/utils}/storage-utils.js +4 -12
  139. package/{utils → lib/utils}/storage.d.ts +6 -0
  140. package/lib/utils/storage.js +31 -0
  141. package/lib/utils/utils.d.ts +11 -0
  142. package/lib/utils/utils.js +148 -0
  143. package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.js +1 -6
  144. package/{utils → lib/utils}/verifyNameMatchWithTaxCode.d.ts +1 -1
  145. package/lib/utils/verifyNameMatchWithTaxCode.js +27 -0
  146. package/{utils → lib/utils}/verifySurnameMatchWithTaxCode.d.ts +1 -1
  147. package/lib/utils/verifySurnameMatchWithTaxCode.js +17 -0
  148. package/package.json +54 -79
  149. package/build.info +0 -2
  150. package/common-polyfill.js +0 -13
  151. package/common-polyfill.js.map +0 -1
  152. package/components/BackComponent.d.ts +0 -6
  153. package/components/BackComponent.js +0 -12
  154. package/components/BackComponent.js.map +0 -1
  155. package/components/CustomAvatar.js +0 -18
  156. package/components/CustomAvatar.js.map +0 -1
  157. package/components/CustomPagination.js +0 -31
  158. package/components/CustomPagination.js.map +0 -1
  159. package/components/EndingPage.js +0 -7
  160. package/components/EndingPage.js.map +0 -1
  161. package/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
  162. package/components/ErrorBoundary/ErrorBoundary.js +0 -98
  163. package/components/ErrorBoundary/ErrorBoundary.js.map +0 -1
  164. package/components/ErrorBoundary/components/BlockingErrorPage.js +0 -15
  165. package/components/ErrorBoundary/components/BlockingErrorPage.js.map +0 -1
  166. package/components/FilterModal.js +0 -37
  167. package/components/FilterModal.js.map +0 -1
  168. package/components/Footer/Footer.js +0 -213
  169. package/components/Footer/Footer.js.map +0 -1
  170. package/components/Footer/FooterConfig.js.map +0 -1
  171. package/components/Header/Header.js +0 -24
  172. package/components/Header/Header.js.map +0 -1
  173. package/components/Loading/LoadingOverlay.js +0 -18
  174. package/components/Loading/LoadingOverlay.js.map +0 -1
  175. package/components/LoadingOverlayComponent.d.ts +0 -7
  176. package/components/LoadingOverlayComponent.js +0 -20
  177. package/components/LoadingOverlayComponent.js.map +0 -1
  178. package/components/NavigationBar.js +0 -21
  179. package/components/NavigationBar.js.map +0 -1
  180. package/components/SessionModal.js +0 -21
  181. package/components/SessionModal.js.map +0 -1
  182. package/components/TitleBox.js +0 -13
  183. package/components/TitleBox.js.map +0 -1
  184. package/components/Toast.js +0 -29
  185. package/components/Toast.js.map +0 -1
  186. package/components/ToastWrapper.js +0 -16
  187. package/components/ToastWrapper.js.map +0 -1
  188. package/components/UnloadEventHandler.js +0 -35
  189. package/components/UnloadEventHandler.js.map +0 -1
  190. package/components/UserNotifyHandle.js +0 -67
  191. package/components/UserNotifyHandle.js.map +0 -1
  192. package/components/icons/CheckIllustrationIcon.js +0 -7
  193. package/components/icons/CheckIllustrationIcon.js.map +0 -1
  194. package/components/icons/ConfirmIcon.js +0 -7
  195. package/components/icons/ConfirmIcon.js.map +0 -1
  196. package/components/icons/ErrorIcon.js +0 -7
  197. package/components/icons/ErrorIcon.js.map +0 -1
  198. package/components/icons/ErrorIconExclamation.js +0 -7
  199. package/components/icons/ErrorIconExclamation.js.map +0 -1
  200. package/components/icons/FaultIcon.js +0 -7
  201. package/components/icons/FaultIcon.js.map +0 -1
  202. package/components/icons/PagoPaIcon.js +0 -7
  203. package/components/icons/PagoPaIcon.js.map +0 -1
  204. package/components/icons/PagoPaIconColored.js +0 -7
  205. package/components/icons/PagoPaIconColored.js.map +0 -1
  206. package/components/icons/PagoPaMiniIcon.js +0 -7
  207. package/components/icons/PagoPaMiniIcon.js.map +0 -1
  208. package/config/env.js.map +0 -1
  209. package/consentManagementConfigure.js.map +0 -1
  210. package/decorators/__mocks__/withLogin.js +0 -27
  211. package/decorators/__mocks__/withLogin.js.map +0 -1
  212. package/decorators/withLogin.js.map +0 -1
  213. package/decorators/withRetrievedValue.js.map +0 -1
  214. package/hooks/useErrorDispatcher.js +0 -11
  215. package/hooks/useErrorDispatcher.js.map +0 -1
  216. package/hooks/useFakePagination.js.map +0 -1
  217. package/hooks/useLoading.js +0 -14
  218. package/hooks/useLoading.js.map +0 -1
  219. package/hooks/useLogin.js +0 -44
  220. package/hooks/useLogin.js.map +0 -1
  221. package/hooks/useReduxCachedValue.d.ts +0 -14
  222. package/hooks/useReduxCachedValue.js.map +0 -1
  223. package/hooks/useUnloadEventInterceptor.js.map +0 -1
  224. package/hooks/useUserNotify.js +0 -11
  225. package/hooks/useUserNotify.js.map +0 -1
  226. package/index.js +0 -76
  227. package/index.js.map +0 -1
  228. package/locale/de.js.map +0 -1
  229. package/locale/en.js.map +0 -1
  230. package/locale/fr.js.map +0 -1
  231. package/locale/it.js.map +0 -1
  232. package/locale/locale-utils.js +0 -36
  233. package/locale/locale-utils.js.map +0 -1
  234. package/locale/sl.js.map +0 -1
  235. package/model/AppError.js +0 -3
  236. package/model/AppError.js.map +0 -1
  237. package/model/Page.js +0 -3
  238. package/model/Page.js.map +0 -1
  239. package/model/PageRequest.js +0 -3
  240. package/model/PageRequest.js.map +0 -1
  241. package/model/PageResource.js +0 -3
  242. package/model/PageResource.js.map +0 -1
  243. package/model/User.d.ts +0 -7
  244. package/model/User.js +0 -3
  245. package/model/User.js.map +0 -1
  246. package/model/UserNotify.js +0 -3
  247. package/model/UserNotify.js.map +0 -1
  248. package/redux/slices/appStateSlice.d.ts +0 -76
  249. package/redux/slices/appStateSlice.js.map +0 -1
  250. package/redux/slices/userSlice.d.ts +0 -18
  251. package/redux/slices/userSlice.js +0 -21
  252. package/redux/slices/userSlice.js.map +0 -1
  253. package/services/analyticsService.js.map +0 -1
  254. package/services/assistanceService.js +0 -20
  255. package/services/assistanceService.js.map +0 -1
  256. package/services/errorService.js +0 -13
  257. package/services/errorService.js.map +0 -1
  258. package/utils/api-utils.js.map +0 -1
  259. package/utils/constants.d.ts +0 -19
  260. package/utils/constants.js +0 -32
  261. package/utils/constants.js.map +0 -1
  262. package/utils/routes-utils.js +0 -7
  263. package/utils/routes-utils.js.map +0 -1
  264. package/utils/storage-utils.js.map +0 -1
  265. package/utils/storage.js +0 -9
  266. package/utils/storage.js.map +0 -1
  267. package/utils/utils.d.ts +0 -3
  268. package/utils/utils.js +0 -13
  269. package/utils/utils.js.map +0 -1
  270. package/utils/verifyChecksumMatchWithTaxCode.js.map +0 -1
  271. package/utils/verifyNameMatchWithTaxCode.js +0 -26
  272. package/utils/verifyNameMatchWithTaxCode.js.map +0 -1
  273. package/utils/verifySurnameMatchWithTaxCode.js +0 -23
  274. package/utils/verifySurnameMatchWithTaxCode.js.map +0 -1
  275. /package/{consentManagementConfigure.d.ts → examples/locale/index.d.ts} +0 -0
  276. /package/{components → lib/components}/Footer/FooterConfig.d.ts +0 -0
  277. /package/{components → lib/components}/icons/ConfirmIcon.d.ts +0 -0
  278. /package/{components → lib/components}/icons/ErrorIconExclamation.d.ts +0 -0
  279. /package/{components → lib/components}/icons/FaultIcon.d.ts +0 -0
  280. /package/{hooks → lib/hooks}/useErrorDispatcher.d.ts +0 -0
  281. /package/{hooks → lib/hooks}/useLoading.d.ts +0 -0
  282. /package/{hooks → lib/hooks}/useLogin.d.ts +0 -0
  283. /package/{hooks → lib/hooks}/useUserNotify.d.ts +0 -0
  284. /package/{locale → lib/locale}/locale-utils.d.ts +0 -0
  285. /package/{services → lib/services}/errorService.d.ts +0 -0
  286. /package/{utils → lib/utils}/routes-utils.d.ts +0 -0
  287. /package/{utils → lib/utils}/verifyChecksumMatchWithTaxCode.d.ts +0 -0
@@ -1,213 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const Footer_1 = require("@pagopa/mui-italia/dist/components/Footer/Footer");
6
- const react_i18next_1 = require("react-i18next");
7
- const react_1 = require("react");
8
- const locale_utils_1 = tslib_1.__importDefault(require("../../locale/locale-utils"));
9
- const env_1 = require("../../config/env");
10
- const FooterConfig_1 = require("./FooterConfig");
11
- // eslint-disable-next-line sonarjs/cognitive-complexity
12
- function Footer({ loggedUser, productsJsonUrl, onExit = (exitAction) => exitAction(), }) {
13
- var _a, _b, _c, _d, _e, _f;
14
- const { t } = (0, react_i18next_1.useTranslation)();
15
- const [selectedLanguage, setSelectedLanguage] = (0, react_1.useState)();
16
- // TODO Temporary solution, will be changed as soon as possible
17
- const isPnpgDev = ((_a = window.location.hostname) === null || _a === void 0 ? void 0 : _a.startsWith('pnpg.dev')) ||
18
- ((_b = window.location.hostname) === null || _b === void 0 ? void 0 : _b.startsWith('imprese.dev'));
19
- const isPnpgUat = ((_c = window.location.hostname) === null || _c === void 0 ? void 0 : _c.startsWith('pnpg.uat')) ||
20
- ((_d = window.location.hostname) === null || _d === void 0 ? void 0 : _d.startsWith('imprese.uat'));
21
- const isPnpg = ((_e = window.location.hostname) === null || _e === void 0 ? void 0 : _e.startsWith('pnpg.selfcare')) ||
22
- ((_f = window.location.hostname) === null || _f === void 0 ? void 0 : _f.startsWith('imprese.notifichedigitali'));
23
- const preLoginLinks = {
24
- // First column
25
- aboutUs: {
26
- title: undefined,
27
- links: [
28
- // TODO
29
- // {
30
- // label: 'PNRR',
31
- // href: 'CONFIG.FOOTER.LINK.PNRR',
32
- // ariaLabel: 'Vai al link: PNRR',
33
- // linkType: 'internal',
34
- // },
35
- {
36
- label: t('common.footer.preLoginLinks.aboutUs.links.aboutUs'),
37
- href: env_1.CONFIG.FOOTER.LINK.ABOUTUS,
38
- ariaLabel: 'Vai al link: Chi siamo',
39
- linkType: 'internal',
40
- },
41
- {
42
- label: t('common.footer.preLoginLinks.aboutUs.links.media'),
43
- href: env_1.CONFIG.FOOTER.LINK.MEDIA,
44
- ariaLabel: 'Vai al link: Media',
45
- linkType: 'internal',
46
- },
47
- {
48
- label: t('common.footer.preLoginLinks.aboutUs.links.workwithud'),
49
- href: env_1.CONFIG.FOOTER.LINK.WORKWITHUS,
50
- ariaLabel: 'Vai al link: Lavora con noi',
51
- linkType: 'internal',
52
- },
53
- ],
54
- },
55
- // Third column
56
- resources: {
57
- title: t('common.footer.preLoginLinks.resources.title'),
58
- links: [
59
- {
60
- label: t('common.footer.preLoginLinks.resources.links.privacyPolicy'),
61
- href: isPnpgDev
62
- ? 'https://imprese.dev.notifichedigitali.it/informativa-privacy'
63
- : isPnpgUat
64
- ? 'https://imprese.uat.notifichedigitali.it/informativa-privacy'
65
- : isPnpg
66
- ? 'https://imprese.notifichedigitali.it/informativa-privacy'
67
- : env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
68
- ariaLabel: 'Vai al link: Privacy Policy',
69
- linkType: 'internal',
70
- },
71
- {
72
- label: t('common.footer.preLoginLinks.resources.links.certifications'),
73
- href: env_1.CONFIG.FOOTER.LINK.CERTIFICATIONS,
74
- ariaLabel: 'Vai al link: Certificazioni',
75
- linkType: 'internal',
76
- },
77
- {
78
- label: t('common.footer.preLoginLinks.resources.links.informationsecurity'),
79
- href: env_1.CONFIG.FOOTER.LINK.INFORMATIONSECURITY,
80
- ariaLabel: 'Vai al link: Sicurezza delle informazioni',
81
- linkType: 'internal',
82
- },
83
- {
84
- label: t('common.footer.preLoginLinks.resources.links.protectionofpersonaldata'),
85
- href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
86
- ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
87
- linkType: 'internal',
88
- },
89
- {
90
- label: t('common.footer.preLoginLinks.resources.links.cookie'),
91
- onClick: () => window.OneTrust.ToggleInfoDisplay(),
92
- ariaLabel: 'Vai al link: Preferenze Cookie',
93
- linkType: 'internal',
94
- },
95
- {
96
- label: t('common.footer.preLoginLinks.resources.links.termsandconditions'),
97
- href: isPnpgDev
98
- ? 'https://imprese.dev.notifichedigitali.it/termini-di-servizio'
99
- : isPnpgUat
100
- ? 'https://imprese.uat.notifichedigitali.it/termini-di-servizio'
101
- : isPnpg
102
- ? 'https://imprese.notifichedigitali.it/termini-di-servizio'
103
- : env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
104
- ariaLabel: 'Vai al link: Termini e Condizioni',
105
- linkType: 'internal',
106
- },
107
- {
108
- label: t('common.footer.preLoginLinks.resources.links.transparentcompany'),
109
- href: env_1.CONFIG.FOOTER.LINK.TRANSPARENTCOMPANY,
110
- ariaLabel: 'Vai al link: Società trasparente',
111
- linkType: 'internal',
112
- },
113
- {
114
- label: t('common.footer.preLoginLinks.resources.links.disclosurePolicy'),
115
- href: env_1.CONFIG.FOOTER.LINK.DISCLOSUREPOLICY,
116
- ariaLabel: 'Vai al link: Responsible Disclosure Policy',
117
- linkType: 'internal',
118
- },
119
- {
120
- label: t('common.footer.preLoginLinks.resources.links.Model321'),
121
- href: env_1.CONFIG.FOOTER.LINK.MODEL321,
122
- ariaLabel: 'Vai al link: Modello 321',
123
- linkType: 'internal',
124
- },
125
- ],
126
- },
127
- // Fourth column
128
- followUs: {
129
- title: t('common.footer.preLoginLinks.followUs.title'),
130
- socialLinks: [
131
- {
132
- icon: 'linkedin',
133
- title: 'LinkedIn',
134
- href: env_1.CONFIG.FOOTER.LINK.LINKEDIN,
135
- ariaLabel: 'Link: vai al sito LinkedIn di PagoPA S.p.A.',
136
- },
137
- {
138
- title: 'Twitter',
139
- icon: 'twitter',
140
- href: env_1.CONFIG.FOOTER.LINK.TWITTER,
141
- ariaLabel: 'Link: vai al sito Twitter di PagoPA S.p.A.',
142
- },
143
- {
144
- icon: 'instagram',
145
- title: 'Instagram',
146
- href: env_1.CONFIG.FOOTER.LINK.INSTAGRAM,
147
- ariaLabel: 'Link: vai al sito Instagram di PagoPA S.p.A.',
148
- },
149
- {
150
- icon: 'medium',
151
- title: 'Medium',
152
- href: env_1.CONFIG.FOOTER.LINK.MEDIUM,
153
- ariaLabel: 'Link: vai al sito Medium di PagoPA S.p.A.',
154
- },
155
- ],
156
- links: [
157
- // TODO
158
- // {
159
- // label: 'Accessibilità',
160
- // href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
161
- // ariaLabel: 'Vai al link: Accessibilità',
162
- // linkType: 'internal',
163
- // },
164
- ],
165
- },
166
- };
167
- const postLoginLinks = [
168
- {
169
- label: t('common.footer.postLoginLinks.privacyPolicy'),
170
- href: isPnpgDev
171
- ? 'https://imprese.dev.notifichedigitali.it/informativa-privacy'
172
- : isPnpgUat
173
- ? 'https://imprese.uat.notifichedigitali.it/informativa-privacy'
174
- : isPnpg
175
- ? 'https://imprese.notifichedigitali.it/informativa-privacy'
176
- : env_1.CONFIG.FOOTER.LINK.PRIVACYPOLICY,
177
- ariaLabel: 'Vai al link: Privacy policy',
178
- linkType: 'internal',
179
- },
180
- {
181
- label: t('common.footer.postLoginLinks.protectionofpersonaldata'),
182
- href: env_1.CONFIG.FOOTER.LINK.PROTECTIONOFPERSONALDATA,
183
- ariaLabel: 'Vai al link: Diritto alla protezione dei dati personali',
184
- linkType: 'internal',
185
- },
186
- {
187
- label: t('common.footer.postLoginLinks.termsandconditions'),
188
- href: isPnpgDev
189
- ? 'https://imprese.dev.notifichedigitali.it/termini-di-servizio'
190
- : isPnpgUat
191
- ? 'https://imprese.uat.notifichedigitali.it/termini-di-servizio'
192
- : isPnpg
193
- ? 'https://imprese.notifichedigitali.it/termini-di-servizio'
194
- : env_1.CONFIG.FOOTER.LINK.TERMSANDCONDITIONS,
195
- ariaLabel: 'Vai al link: Termini e condizioni',
196
- linkType: 'internal',
197
- },
198
- // TODO
199
- // {
200
- // label: 'Accessibilità',
201
- // href: CONFIG.FOOTER.LINK.ACCESSIBILITY,
202
- // ariaLabel: 'Vai al link: Accessibilità',
203
- // linkType: 'internal',
204
- // },
205
- ];
206
- const companyLegalInfo = ((0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: "common.footer.legalInfoText", children: [(0, jsx_runtime_1.jsx)("strong", { children: "PagoPA S.p.A." }), " - Societ\u00E0 per azioni con socio unico - Capitale sociale di euro 1,000,000 interamente versato - Sede legale in Roma, Piazza Colonna 370, ", (0, jsx_runtime_1.jsx)("br", {}), "CAP 00187 - N. di iscrizione a Registro Imprese di Roma, CF e P.IVA 15376371009"] }));
207
- return ((0, jsx_runtime_1.jsx)(Footer_1.Footer, { companyLink: FooterConfig_1.pagoPALink, postLoginLinks: postLoginLinks, preLoginLinks: preLoginLinks, legalInfo: companyLegalInfo, loggedUser: loggedUser, onExit: onExit, languages: FooterConfig_1.LANGUAGES, onLanguageChanged: async (language) => {
208
- await locale_utils_1.default.changeLanguage(language);
209
- setSelectedLanguage(language);
210
- }, currentLangCode: selectedLanguage, productsJsonUrl: productsJsonUrl }));
211
- }
212
- exports.default = Footer;
213
- //# sourceMappingURL=Footer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/Footer.tsx"],"names":[],"mappings":";;;;AAAA,6EAI0D;AAC1D,iDAAsD;AACtD,iCAAiC;AAEjC,qFAA6C;AAC7C,0CAA0C;AAC1C,iDAAuD;AAQvD,wDAAwD;AACxD,SAAwB,MAAM,CAAC,EAC7B,UAAU,EACV,eAAe,EACf,MAAM,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,GACzB;;IACZ,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,GAAY,CAAC;IAErE,+DAA+D;IAC/D,MAAM,SAAS,GACb,CAAA,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,0CAAE,UAAU,CAAC,UAAU,CAAC;SAChD,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,0CAAE,UAAU,CAAC,aAAa,CAAC,CAAA,CAAC;IACtD,MAAM,SAAS,GACb,CAAA,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,0CAAE,UAAU,CAAC,UAAU,CAAC;SAChD,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,0CAAE,UAAU,CAAC,aAAa,CAAC,CAAA,CAAC;IACtD,MAAM,MAAM,GACV,CAAA,MAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,0CAAE,UAAU,CAAC,eAAe,CAAC;SACrD,MAAA,MAAM,CAAC,QAAQ,CAAC,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AiB,EAAE,KAAK,EAAE,QAAkB,EAAE,EAAE;YAC9C,MAAM,sBAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;YACpC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,EACD,eAAe,EAAE,gBAAgB,EACjC,eAAe,EAAE,eAAe,GAChC,CACH,CAAC;AACJ,CAAC;AAnOD,yBAmOC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FooterConfig.js","sourceRoot":"","sources":["../../../src/lib/components/Footer/FooterConfig.tsx"],"names":[],"mappings":";;;AACA,0CAA0C;AAE7B,QAAA,UAAU,GAAoB;IACzC,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACnC,SAAS,EAAE,oCAAoC;CAChD,CAAC;AAIW,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE;QACF,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,SAAS;KACd;IACD,EAAE,EAAE;QACF,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,SAAS;KACd;IACD,EAAE,EAAE;QACF,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;KACd;IACD,EAAE,EAAE;QACF,EAAE,EAAE,aAAa;QACjB,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,aAAa;QACjB,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,YAAY;KACjB;IACD,EAAE,EAAE;QACF,EAAE,EAAE,aAAa;QACjB,EAAE,EAAE,YAAY;QAChB,EAAE,EAAE,aAAa;QACjB,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,WAAW;KAChB;CACF,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const HeaderProduct_1 = require("@pagopa/mui-italia/dist/components/HeaderProduct/HeaderProduct");
6
- const HeaderAccount_1 = require("@pagopa/mui-italia/dist/components/HeaderAccount/HeaderAccount");
7
- const env_1 = require("../../config/env");
8
- const assistanceService_1 = require("../../services/assistanceService");
9
- const selfcareProduct = {
10
- id: 'prod-selfcare',
11
- title: 'Area Riservata',
12
- productUrl: env_1.CONFIG.HEADER.LINK.PRODUCTURL,
13
- linkType: 'internal',
14
- };
15
- const rootLink = {
16
- label: 'PagoPA S.p.A.',
17
- href: env_1.CONFIG.HEADER.LINK.ROOTLINK,
18
- ariaLabel: 'Link: vai al sito di PagoPA S.p.A.',
19
- title: 'Sito di PagoPA S.p.A.',
20
- };
21
- /** SelfCare Header component */
22
- const Header = ({ withSecondHeader, productsList = [], selectedPartyId, selectedProductId = selfcareProduct.id, partyList = [], loggedUser, assistanceEmail, enableLogin = true, userActions = [], enableDropdown = false, addSelfcareProduct = true, onExit = (exitAction) => exitAction(), onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, enableAssistanceButton = true, }) => ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("header", { children: (0, jsx_runtime_1.jsx)(HeaderAccount_1.HeaderAccount, { rootLink: rootLink, loggedUser: loggedUser, onAssistanceClick: () => onExit(() => window.location.assign((0, assistanceService_1.buildAssistanceURI)(assistanceEmail))), onLogin: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGIN)), onLogout: () => onExit(() => window.location.assign(env_1.CONFIG.URL_FE.LOGOUT)), enableLogin: enableLogin, userActions: userActions, enableDropdown: enableDropdown, enableAssistanceButton: enableAssistanceButton }) }), withSecondHeader === true ? ((0, jsx_runtime_1.jsx)("nav", { children: (0, jsx_runtime_1.jsx)(HeaderProduct_1.HeaderProduct, { productId: selectedProductId, productsList: addSelfcareProduct ? [selfcareProduct].concat(productsList) : productsList, partyId: selectedPartyId, partyList: partyList, onSelectedProduct: onSelectedProduct, onSelectedParty: onSelectedParty, maxCharactersNumberMultiLineButton: maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem: maxCharactersNumberMultiLineItem }) })) : ('')] }));
23
- exports.default = Header;
24
- //# sourceMappingURL=Header.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/lib/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,kGAA+F;AAC/F,kGAA+F;AAS/F,0CAA0C;AAC1C,wEAAsE;AAwCtE,MAAM,eAAe,GAAkB;IACrC,EAAE,EAAE,eAAe;IACnB,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU;IACzC,QAAQ,EAAE,UAAU;CACrB,CAAC;AACF,MAAM,QAAQ,GAAiB;IAC7B,KAAK,EAAE,eAAe;IACtB,IAAI,EAAE,YAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;IACjC,SAAS,EAAE,oCAAoC;IAC/C,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AAEF,gCAAgC;AAChC,MAAM,MAAM,GAAG,CAAC,EACd,gBAAgB,EAChB,YAAY,GAAG,EAAE,EACjB,eAAe,EACf,iBAAiB,GAAG,eAAe,CAAC,EAAE,EACtC,SAAS,GAAG,EAAE,EACd,UAAU,EACV,eAAe,EACf,WAAW,GAAG,IAAI,EAClB,WAAW,GAAG,EAAE,EAChB,cAAc,GAAG,KAAK,EACtB,kBAAkB,GAAG,IAAI,EACzB,MAAM,GAAG,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,EACrC,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,gCAAgC,EAChC,sBAAsB,GAAG,IAAI,GACjB,E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jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_redux_1 = require("react-redux");
6
- const appStateSlice_1 = require("../../redux/slices/appStateSlice");
7
- const LoadingOverlayComponent_1 = tslib_1.__importDefault(require("../LoadingOverlayComponent"));
8
- /** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
9
- It allows to draw a loader when an async task to wait is running.
10
-
11
- To use this feature you have to put LoadingOverlay in your App as a child of a redux Provider component.
12
- In order to register the start of an async task you have to use the custom hook useLoading passing the id of the task to await, which will return a setter function used to start and end the loading behavior. */
13
- function LoadingOverlay() {
14
- const loading = (0, react_redux_1.useSelector)(appStateSlice_1.appStateSelectors.selectLoading);
15
- return (0, jsx_runtime_1.jsx)(LoadingOverlayComponent_1.default, { open: loading });
16
- }
17
- exports.default = LoadingOverlay;
18
- //# sourceMappingURL=LoadingOverlay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingOverlay.js","sourceRoot":"","sources":["../../../src/lib/components/Loading/LoadingOverlay.tsx"],"names":[],"mappings":";;;;AAAA,6CAA0C;AAC1C,oEAAqE;AACrE,iGAAiE;AAEjE;;;;kNAIkN;AAClN,SAAwB,cAAc;IACpC,MAAM,OAAO,GAAG,IAAA,yBAAW,EAAC,iCAAiB,CAAC,aAAa,CAAC,CAAC;IAE7D,OAAO,uBAAC,iCAAuB,IAAC,IAAI,EAAE,OAAO,GAAI,CAAC;AACpD,CAAC;AAJD,iCAIC"}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- open: boolean;
4
- };
5
- /** A component which render an overlay loading */
6
- export default function LoadingOverlayComponent({ open }: Props): JSX.Element;
7
- export {};
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
- const system_1 = require("@mui/system");
7
- const react_md_spinner_1 = tslib_1.__importDefault(require("react-md-spinner"));
8
- /** A component which render an overlay loading */
9
- function LoadingOverlayComponent({ open }) {
10
- const theme = (0, material_1.useTheme)();
11
- return ((0, jsx_runtime_1.jsx)(material_1.Modal, { open: open, sx: { outline: 0, zIndex: 1500 }, children: (0, jsx_runtime_1.jsx)(system_1.Box, { sx: {
12
- position: 'absolute',
13
- top: '50%',
14
- left: '50%',
15
- width: '100px',
16
- outline: 0,
17
- }, children: (0, jsx_runtime_1.jsx)(react_md_spinner_1.default, { singleColor: theme.palette.primary.main, role: "loadingSpinner" }) }) }));
18
- }
19
- exports.default = LoadingOverlayComponent;
20
- //# sourceMappingURL=LoadingOverlayComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadingOverlayComponent.js","sourceRoot":"","sources":["../../src/lib/components/LoadingOverlayComponent.tsx"],"names":[],"mappings":";;;;AAAA,4CAAgD;AAChD,wCAAkC;AAClC,gFAAyC;AAMzC,kDAAkD;AAClD,SAAwB,uBAAuB,CAAC,EAAE,IAAI,EAAS;IAC7D,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAC;IAEzB,OAAO,CACL,uBAAC,gBAAK,IAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,YACjD,uBAAC,YAAG,IACF,EAAE,EAAE;gBACF,QAAQ,EAAE,UAAU;gBACpB,GAAG,EAAE,KAAK;gBACV,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE,CAAC;aACX,YAED,uBAAC,0BAAS,IAAC,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAC,gBAAgB,GAAG,GACxE,GACA,CACT,CAAC;AACJ,CAAC;AAlBD,0CAkBC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
- const mui_italia_1 = require("@pagopa/mui-italia");
7
- const useUnloadEventInterceptor_1 = require("../hooks/useUnloadEventInterceptor");
8
- const BackComponent_1 = tslib_1.__importDefault(require("./BackComponent"));
9
- function NavigationBar({ paths, goBack, showBackComponent }) {
10
- const onExit = (0, useUnloadEventInterceptor_1.useUnloadEventOnExit)();
11
- const truncatedText = {
12
- display: 'inline-block',
13
- maxWidth: '50ch',
14
- whiteSpace: 'nowrap',
15
- overflow: 'hidden',
16
- textOverflow: 'ellipsis',
17
- };
18
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 2, display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: truncatedText, children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [p.icon && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: { ...truncatedText, color: 'text.secondary', fontSize: 'fontSize' }, children: p.description }, p.description) })] }, p.description))) }) })] }));
19
- }
20
- exports.default = NavigationBar;
21
- //# sourceMappingURL=NavigationBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,4CAAmE;AACnE,mDAAiD;AACjD,kFAA0E;AAC1E,4EAA4C;AAiB5C,SAAwB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAS;IAC/E,MAAM,MAAM,GAAG,IAAA,gDAAoB,GAAE,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,MAAM;QAChB,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,QAAQ;QAClB,YAAY,EAAE,UAAU;KACzB,CAAC;IAEF,OAAO,CACL,wBAAC,cAAG,IAAC,OAAO,EAAC,MAAM,aAChB,iBAAiB,IAAI,CACpB,uBAAC,cAAG,IAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAE,QAAQ,YAC7C,uBAAC,uBAAa,IAAC,MAAM,EAAE,MAAM,GAAI,GAC7B,CACP,EACD,uBAAC,cAAG,IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAE,QAAQ,YACtC,uBAAC,sBAAW,kBAAY,YAAY,YACjC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACf,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CACV,uBAAC,cAAG,IAAqB,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,YACjF,uBAAC,wBAAW,IACV,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,OAAqB,CAAC,EAC9C,SAAS,EAAE,CAAC,CAAC,IAAI,IAAI,uBAAC,eAAI,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,GAAI,EAChD,EAAE,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EACjC,MAAM,EAAC,SAAS,YAEhB,uBAAC,qBAAU,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAE,aAAa,YAC1C,CAAC,CAAC,WAAW,GACH,GACD,IAXN,CAAC,CAAC,WAAW,CAYjB,CACP,CAAC,CAAC,CAAC,CACF,wBAAC,cAAG,IAAC,OAAO,EAAC,MAAM,aAChB,CAAC,CAAC,IAAI,IAAI,CACT,uBAAC,cAAG,IAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,YAC5C,uBAAC,eAAI,IAAC,SAAS,EAAE,CAAC,CAAC,IAAI,GAAI,GACvB,CACP,EACD,uBAAC,cAAG,IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,YACrC,uBAAC,qBAAU,IAET,OAAO,EAAC,OAAO,EACf,EAAE,EAAE,EAAE,GAAG,aAAa,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,YAEtE,CAAC,CAAC,WAAW,IAJT,CAAC,CAAC,WAAW,CAKP,GACT,KAdiB,CAAC,CAAC,WAAW,CAehC,CACP,CACF,GACW,GACV,IACF,CACP,CAAC;AACJ,CAAC;AA1DD,gCA0DC"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
- const Dialog_1 = tslib_1.__importDefault(require("@mui/material/Dialog"));
7
- const useMediaQuery_1 = tslib_1.__importDefault(require("@mui/material/useMediaQuery"));
8
- const styles_1 = require("@mui/material/styles");
9
- const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
10
- const react_i18next_1 = require("react-i18next");
11
- /** Selfcare's popup */
12
- function SessionModal({ t, open, title, message, onConfirm, onConfirmEnabled = true, onConfirmLabel = t('common.sessionModal.confirmButton'), productEnvironments, handleClose, handleExit = handleClose, onCloseLabel = t('common.sessionModal.closeButton'), height, minHeight, width = '100%', showCloseIcon = false, showCloseButton = true, }) {
13
- const theme = (0, styles_1.useTheme)();
14
- const fullScreen = (0, useMediaQuery_1.default)(theme.breakpoints.down('xs'));
15
- return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, onClose: handleClose, "aria-labelledby": "responsive-dialog-title", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { height, minHeight, width, maxWidth: '100%' }, px: 4, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, mt: 4, children: [showCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleExit, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: '24px', fontWeight: '600', wordBreak: 'break-word' }, children: title })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { width: "100%", children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, my: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: message }) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, display: "flex", justifyContent: productEnvironments ? 'space-between' : 'flex-end', flexWrap: 'wrap-reverse', children: [showCloseButton && ((0, jsx_runtime_1.jsx)(material_1.Box, { mb: 3, mt: 0, children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", variant: "outlined", children: onCloseLabel }) })), onConfirm && ((0, jsx_runtime_1.jsxs)(material_1.Box, { mb: 3, display: "flex", flexDirection: "row-reverse", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { sx: { marginLeft: 2 }, color: "primary", variant: "contained", onClick: onConfirm, disabled: !onConfirmEnabled, children: onConfirmLabel }), productEnvironments &&
16
- productEnvironments.map((p) => ((0, jsx_runtime_1.jsx)(material_1.Box, { ml: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { value: p.environment, color: "primary", variant: "contained", onClick: onConfirm, children: p.environment
17
- .toLowerCase()
18
- .replace(/\b[a-z]/g, p.environment.charAt(0).toUpperCase()) }) }, p.environment)))] }))] })] })] }) }));
19
- }
20
- exports.default = (0, react_i18next_1.withTranslation)()(SessionModal);
21
- //# sourceMappingURL=SessionModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAA2D;AAuC3D,uBAAuB;AACvB,SAAS,YAAY,CAAC,EACpB,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,CAAC,CAAC,mCAAmC,CAAC,EACvD,mBAAmB,EACnB,WAAW,EACX,UAAU,GAAG,WAAW,EACxB,YAAY,GAAG,CAAC,CAAC,iCAAiC,CAAC,EACnD,MAAM,EACN,SAAS,EACT,KAAK,GAAG,MAAM,EACd,aAAa,GAAG,KAAK,EACrB,eAAe,GAAG,IAAI,GAChB;IACN,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,OAAO,CACL,uBAAC,gBAAM,IACL,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,qBACJ,yBAAyB,YAEzC,wBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,EAA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EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,EACrB,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,gBAAgB,YAE1B,cAAc,GACR,EACR,mBAAmB;4CAClB,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC7B,uBAAC,cAAG,IAAC,EAAE,EAAE,CAAC,YACR,uBAAC,iBAAM,IACL,KAAK,EAAE,CAAC,CAAC,WAAW,EACpB,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,WAAW;yDACX,WAAW,EAAE;yDACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GACtD,IAVM,CAAC,CAAC,WAAW,CAWxB,CACP,CAAC,IACA,CACP,IACI,IACH,IACD,GACA,CACV,CAAC;AACJ,CAAC;AACD,kBAAe,IAAA,+BAAe,GAAE,CAAC,YAAY,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- // import React from 'react'
5
- // import { Box } from '@mui/material';
6
- const material_1 = require("@mui/material");
7
- const material_2 = require("@mui/material");
8
- /** Selfcare's page title */
9
- function TitleBox({ title, subTitle, mbTitle = 2, mtTitle, mbSubTitle, variantTitle = 'h1', variantSubTitle = 'h5', titleFontSize, subTitleFontSize = '18px', }) {
10
- return ((0, jsx_runtime_1.jsxs)(material_2.Grid, { container: true, mt: mtTitle, children: [(0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, sx: { fontSize: titleFontSize }, children: title }) }), subTitle && ((0, jsx_runtime_1.jsx)(material_2.Grid, { item: true, xs: 12, mb: mbSubTitle, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantSubTitle, sx: { fontSize: subTitleFontSize }, children: subTitle }) }))] }));
11
- }
12
- exports.default = TitleBox;
13
- //# sourceMappingURL=TitleBox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TitleBox.js","sourceRoot":"","sources":["../../src/lib/components/TitleBox.tsx"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,uCAAuC;AACvC,4CAA2C;AAC3C,4CAAqC;AAwBrC,4BAA4B;AAC5B,SAAwB,QAAQ,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,CAAC,EACX,OAAO,EACP,UAAU,EACV,YAAY,GAAG,IAAI,EACnB,eAAe,GAAG,IAAI,EACtB,aAAa,EACb,gBAAgB,GAAG,MAAM,GACnB;IACN,OAAO,CACL,wBAAC,eAAI,IAAC,SAAS,QAAC,EAAE,EAAE,OAAO,aACzB,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,YAC5B,uBAAC,qBAAU,IAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,YAC/D,KAAK,GACK,GACR,EACN,QAAQ,IAAI,CACX,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,YAC/B,uBAAC,qBAAU,IAAC,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YACrE,QAAQ,GACE,GACR,CACR,IACI,CACR,CAAC;AACJ,CAAC;AA3BD,2BA2BC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const material_1 = require("@mui/material");
7
- const system_1 = require("@mui/system");
8
- const Close_1 = tslib_1.__importDefault(require("@mui/icons-material/Close"));
9
- const CheckCircleOutline_1 = tslib_1.__importDefault(require("@mui/icons-material/CheckCircleOutline"));
10
- const CustomAlert = (0, system_1.styled)(material_1.Alert)({
11
- '.MuiAlert-icon': { display: 'none' },
12
- });
13
- /** Selfcare's toast */
14
- function Toast({ open, title, message, onCloseToast, logo = CheckCircleOutline_1.default, leftBorderColor = '#6CC66A', width = '376px', wrapped = false, bottom = '64px', right = '64px', showToastCloseIcon = false, toastColorIcon = '#6CC66A', }) {
15
- const positionStyle = !wrapped
16
- ? { position: 'fixed', bottom, right, zIndex: 500 }
17
- : { marginTop: 2 };
18
- return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: open && ((0, jsx_runtime_1.jsx)(CustomAlert, { className: "userToast", variant: "outlined", sx: {
19
- ...positionStyle,
20
- width: { width },
21
- backgroundColor: 'white',
22
- borderLeft: `4px solid ${leftBorderColor} !important`,
23
- borderRadius: '5px',
24
- boxShadow: '0px 0px 45px rgba(0, 0, 0, 0.1) ',
25
- border: 'none',
26
- }, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, display: "flex", alignItems: "center", justifyContent: "center", mr: 2, children: (0, jsx_runtime_1.jsx)(material_1.SvgIcon, { fontSize: "small", component: logo, sx: { color: toastColorIcon, width: '140px' } }) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, item: true, xs: showToastCloseIcon ? 9 : 10, display: "flex", justifyContent: "center", direction: "column", children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: 'fontSize', fontWeight: 'fontWeightMedium' }, children: title }), message && (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: 'fontSize' }, children: message })] }), showToastCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 1, children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: onCloseToast, children: (0, jsx_runtime_1.jsx)(Close_1.default, { sx: { fontSize: 'big' } }) }) }))] }) })) }));
27
- }
28
- exports.default = Toast;
29
- //# sourceMappingURL=Toast.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../src/lib/components/Toast.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuD;AACvD,4CAA6E;AAC7E,wCAAqC;AACrC,8EAAkD;AAClD,wGAA4E;AA6B5E,MAAM,WAAW,GAAG,IAAA,eAAM,EAAC,gBAAK,CAAC,CAAC;IAChC,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;CACtC,CAAC,CAAC;AAEH,uBAAuB;AACvB,SAAwB,KAAK,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,YAAY,EACZ,IAAI,GAAG,4BAAsB,EAC7B,eAAe,GAAG,SAAS,EAC3B,KAAK,GAAG,OAAO,EACf,OAAO,GAAG,KAAK,EACf,MAAM,GAAG,MAAM,EACf,KAAK,GAAG,MAAM,EACd,kBAAkB,GAAG,KAAK,EAC1B,cAAc,GAAG,SAAS,GACpB;IACN,MAAM,aAAa,GAAkB,CAAC,OAAO;QAC3C,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE;QACnD,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAErB,OAAO,CACL,uBAAC,gBAAQ,cACN,IAAI,IAAI,CACP,uBAAC,WAAW,IACV,SAAS,EAAC,WAAW,EACrB,OAAO,EAAC,UAAU,EAClB,EAAE,EAAE;gBACF,GAAG,aAAa;gBAChB,KAAK,EAAE,EAAE,KAAK,EAAE;gBAChB,eAAe,EAAE,OAAO;gBACxB,UAAU,EAAE,aAAa,eAAe,aAAa;gBACrD,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,kCAAkC;gBAC7C,MAAM,EAAE,MAAM;aACf,YAED,wBAAC,eAAI,IAAC,SAAS,mBACb,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,EAAE,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,YAChF,uBAAC,kBAAO,IACN,QAAQ,EAAC,OAAO,EAChB,SAAS,EAAE,IAAI,EACf,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,GAC7C,GACG,EACP,wBAAC,eAAI,IACH,SAAS,QACT,IAAI,QACJ,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAC/B,OAAO,EAAC,MAAM,EACd,cAAc,EAAC,QAAQ,EACvB,SAAS,EAAC,QAAQ,aAElB,uBAAC,qBAAU,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,YACrE,KAAK,GACK,EACZ,OAAO,IAAI,uBAAC,qBAAU,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAG,OAAO,GAAc,IACvE,EACN,kBAAkB,IAAI,CACrB,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,YAAY,YAC/B,uBAAC,eAAS,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAI,GAC3B,GACR,CACR,IACI,GACK,CACf,GACQ,CACZ,CAAC;AACJ,CAAC;AAnED,wBAmEC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const material_1 = require("@mui/material");
6
- /** To stack multiple Toast component. Each Toast should have the prop wrapped setted to true */
7
- function ToastWrapper({ children, bottom = '64px', right = '64px' }) {
8
- return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
9
- position: 'fixed',
10
- bottom: { bottom },
11
- right: { right },
12
- zIndex: 500,
13
- }, children: children.slice().reverse() }) }));
14
- }
15
- exports.default = ToastWrapper;
16
- //# sourceMappingURL=ToastWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToastWrapper.js","sourceRoot":"","sources":["../../src/lib/components/ToastWrapper.tsx"],"names":[],"mappings":";;;AAAA,iCAA4C;AAC5C,4CAAoC;AAUpC,gGAAgG;AAChG,SAAwB,YAAY,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,GAAG,MAAM,EAAS;IACvF,OAAO,CACL,uBAAC,gBAAQ,cACP,uBAAC,cAAG,IACF,EAAE,EAAE;gBACF,QAAQ,EAAE,OAAO;gBACjB,MAAM,EAAE,EAAE,MAAM,EAAE;gBAClB,KAAK,EAAE,EAAE,KAAK,EAAE;gBAChB,MAAM,EAAE,GAAG;aACZ,YAEA,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,GACvB,GACG,CACZ,CAAC;AACJ,CAAC;AAfD,+BAeC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_i18next_1 = require("react-i18next");
6
- const react_redux_1 = require("react-redux");
7
- const useUnloadEventInterceptor_1 = require("../hooks/useUnloadEventInterceptor");
8
- const appStateSlice_1 = require("../redux/slices/appStateSlice");
9
- const SessionModal_1 = tslib_1.__importDefault(require("./SessionModal"));
10
- /** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
11
- It allows to intercept when the user try to exit from the current page and ask him if he wants to continue or not.
12
-
13
- To use this feature you have to put UnloadEventHandler in your App as a child of a redux Provider component.
14
- In order to use this feature you have to use the custom hook useUnloadEventInterceptor.
15
- @see {@link useUnloadEventInterceptor}
16
- */
17
- function UnloadEventHandler() {
18
- var _a, _b;
19
- const dispatch = (0, react_redux_1.useDispatch)();
20
- const unloadEventconfiguration = (0, react_redux_1.useSelector)(appStateSlice_1.appStateSelectors.selectUnloadEventConfiguration);
21
- const { unregisterUnloadEvent } = (0, useUnloadEventInterceptor_1.useUnloadEventInterceptor)();
22
- const onClose = () => {
23
- dispatch(appStateSlice_1.appStateActions.closeUnloadEventNotify());
24
- };
25
- const onConfirm = () => {
26
- unregisterUnloadEvent();
27
- if (unloadEventconfiguration.exitAction) {
28
- unloadEventconfiguration.exitAction();
29
- }
30
- };
31
- const { t } = (0, react_i18next_1.useTranslation)();
32
- return ((0, jsx_runtime_1.jsx)(SessionModal_1.default, { open: unloadEventconfiguration.enabled && unloadEventconfiguration.open, title: (_a = unloadEventconfiguration.title) !== null && _a !== void 0 ? _a : t('common.unloadEventHandler.title'), message: (_b = unloadEventconfiguration.description) !== null && _b !== void 0 ? _b : t('common.unloadEventHandler.message'), onConfirm: onConfirm, onConfirmLabel: t('common.unloadEventHandler.confirmLabel'), handleClose: onClose }));
33
- }
34
- exports.default = UnloadEventHandler;
35
- //# sourceMappingURL=UnloadEventHandler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnloadEventHandler.js","sourceRoot":"","sources":["../../src/lib/components/UnloadEventHandler.tsx"],"names":[],"mappings":";;;;AAAA,iDAA+C;AAC/C,6CAAuD;AACvD,kFAA+E;AAC/E,iEAAmF;AACnF,0EAA0C;AAE1C;;;;;;EAME;AACF,SAAwB,kBAAkB;;IACxC,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,wBAAwB,GAAG,IAAA,yBAAW,EAAC,iCAAiB,CAAC,8BAA8B,CAAC,CAAC;IAC/F,MAAM,EAAE,qBAAqB,EAAE,GAAG,IAAA,qDAAyB,GAAE,CAAC;IAE9D,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,QAAQ,CAAC,+BAAe,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC;IACF,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,qBAAqB,EAAE,CAAC;QACxB,IAAI,wBAAwB,CAAC,UAAU,EAAE;YACvC,wBAAwB,CAAC,UAAU,EAAE,CAAC;SACvC;IACH,CAAC,CAAC;IACF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,uBAAC,sBAAY,IACX,IAAI,EAAE,wBAAwB,CAAC,OAAO,IAAI,wBAAwB,CAAC,IAAI,EACvE,KAAK,EAAE,MAAA,wBAAwB,CAAC,KAAK,mCAAI,CAAC,CAAC,iCAAiC,CAAC,EAC7E,OAAO,EAAE,MAAA,wBAAwB,CAAC,WAAW,mCAAI,CAAC,CAAC,mCAAmC,CAAC,EACvF,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,CAAC,CAAC,wCAAwC,CAAC,EAC3D,WAAW,EAAE,OAAO,GACpB,CACH,CAAC;AACJ,CAAC;AAzBD,qCAyBC"}
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const react_redux_1 = require("react-redux");
7
- const __1 = require("..");
8
- const appStateSlice_1 = require("../redux/slices/appStateSlice");
9
- const ToastWrapper_1 = tslib_1.__importDefault(require("./ToastWrapper"));
10
- /** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
11
- It allows to dispatch User Notifies in order to display a pop up or a toast notification.
12
-
13
- To use this feature you have to put UserNotifyHandle in your App as a child of a redux Provider component.
14
- In order to dispatch a User Notify, you have to use the custom hook useUserNotify which will return a fuction to be used to dispatch the User Notify. */
15
- function UserNotifyHandle() {
16
- var _a;
17
- const dispatch = (0, react_redux_1.useDispatch)();
18
- const notifies = (0, react_redux_1.useSelector)(appStateSlice_1.appStateSelectors.selectNotifies);
19
- const lastNotifiesToast = (0, react_1.useRef)([]);
20
- const lastNotifyModal = (0, react_1.useRef)();
21
- const timers = (0, react_1.useRef)({});
22
- const onClose = (notify) => {
23
- dispatch(appStateSlice_1.appStateActions.removeNotify(notify));
24
- // eslint-disable-next-line functional/immutable-data
25
- delete timers.current[notify.id];
26
- if (notify === null || notify === void 0 ? void 0 : notify.onClose) {
27
- notify.onClose();
28
- }
29
- };
30
- const onConfirm = (notify) => {
31
- dispatch(appStateSlice_1.appStateActions.removeNotify(notify));
32
- if (notify === null || notify === void 0 ? void 0 : notify.onConfirm) {
33
- notify.onConfirm();
34
- }
35
- };
36
- const { openModal, openToast } = updateCurrents(lastNotifyModal, lastNotifiesToast, notifies, onClose, timers.current);
37
- const notifyModal = lastNotifyModal.current;
38
- const notifiesToast = lastNotifiesToast.current;
39
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ToastWrapper_1.default, { children: notifiesToast.map((n) => ((0, jsx_runtime_1.jsx)(__1.Toast, { wrapped: true, open: openToast, title: n.title, message: n.message, logo: n.logo, leftBorderColor: n.leftBorderColor, onCloseToast: () => onClose(n), width: n.width, showToastCloseIcon: n.showCloseIcon || n.autoclosable !== 'timer' }, n.id))) }), (0, jsx_runtime_1.jsx)(__1.SessionModal, { open: openModal, title: (_a = notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.title) !== null && _a !== void 0 ? _a : 'Notify Title', message: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.message, onConfirm: (notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.onConfirm) ? () => onConfirm(notifyModal) : undefined, onConfirmLabel: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.confirmLabel, handleClose: () => onClose(notifyModal), onCloseLabel: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.closeLabel, width: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.width, showCloseIcon: notifyModal === null || notifyModal === void 0 ? void 0 : notifyModal.showCloseIcon })] }));
40
- }
41
- exports.default = UserNotifyHandle;
42
- function updateCurrents(lastNotifyModalRef, lastNotifiesToastRef, notifies, onClose, timers) {
43
- const lastNotifiesToast = notifies.filter((e) => e.component === 'Toast');
44
- const lastNotifySessionModal = notifies.find((e) => e.component === 'SessionModal');
45
- const openToast = lastNotifiesToast.length > 0;
46
- const openModal = !!lastNotifySessionModal;
47
- if (lastNotifySessionModal && lastNotifySessionModal !== (lastNotifyModalRef === null || lastNotifyModalRef === void 0 ? void 0 : lastNotifyModalRef.current)) {
48
- // eslint-disable-next-line functional/immutable-data
49
- lastNotifyModalRef.current = lastNotifySessionModal;
50
- }
51
- if (openToast) {
52
- // eslint-disable-next-line functional/immutable-data
53
- lastNotifiesToastRef.current = lastNotifiesToast;
54
- lastNotifiesToast.forEach((n) => {
55
- if (n.autoclosable === 'timer' && !timers[n.id]) {
56
- setTimeout(() => onClose(n), n.autocloseMilliseconds);
57
- // eslint-disable-next-line functional/immutable-data
58
- timers[n.id] = true;
59
- }
60
- });
61
- }
62
- return {
63
- openToast,
64
- openModal,
65
- };
66
- }
67
- //# sourceMappingURL=UserNotifyHandle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserNotifyHandle.js","sourceRoot":"","sources":["../../src/lib/components/UserNotifyHandle.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiD;AACjD,6CAAuD;AACvD,0BAAyC;AAEzC,iEAAmF;AACnF,0EAA0C;AAE1C;;;;wJAIwJ;AACxJ,SAAS,gBAAgB;;IACvB,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,iCAAiB,CAAC,cAAc,CAAC,CAAC;IAC/D,MAAM,iBAAiB,GAAG,IAAA,cAAM,EAAoB,EAAE,CAAC,CAAC;IACxD,MAAM,eAAe,GAAG,IAAA,cAAM,GAAc,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AAiB,CAAC,MAAM,GAAG,CAAC,CAAC;IACxD,MAAM,SAAS,GAAY,CAAC,CAAC,sBAAsB,CAAC;IAEpD,IAAI,sBAAsB,IAAI,sBAAsB,MAAK,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,OAAO,CAAA,EAAE;QACpF,qDAAqD;QACrD,kBAAkB,CAAC,OAAO,GAAG,sBAAsB,CAAC;KACrD;IACD,IAAI,SAAS,EAAE;QACb,qDAAqD;QACrD,oBAAoB,CAAC,OAAO,GAAG,iBAAiB,CAAC;QAEjD,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9B,IAAI,CAAC,CAAC,YAAY,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;gBAC/C,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC;gBACtD,qDAAqD;gBACrD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;KACJ;IACD,OAAO;QACL,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const SvgIcon_1 = tslib_1.__importDefault(require("@mui/material/SvgIcon"));
6
- exports.default = (props) => ((0, jsx_runtime_1.jsxs)(SvgIcon_1.default, { width: "120", height: "120", viewBox: "0 0 120 120", sx: { width: '120px', height: '120px' }, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("mask", { id: "mask0_4967_20179", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "120", height: "120", children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M59.9565 0.506348C27.1467 0.506348 0.452393 27.2007 0.452393 60.0105C0.452393 92.8203 27.1467 119.515 59.9565 119.515C92.7663 119.515 119.461 92.8203 119.461 60.0105C119.461 27.2007 92.7663 0.506348 59.9565 0.506348ZM59.9565 113.569C30.4229 113.569 6.39795 89.5441 6.39795 60.0105C6.39795 30.4768 30.4229 6.45191 59.9565 6.45191C89.4902 6.45191 113.515 30.4768 113.515 60.0105C113.515 89.5441 89.4902 113.569 59.9565 113.569ZM52.7248 68.2129L75.5363 45.5227C76.7012 44.3579 78.5698 44.3579 79.7346 45.5227C80.8752 46.6876 80.8752 48.5562 79.7103 49.721L54.7875 74.4982C54.2051 75.0807 53.4528 75.3719 52.7005 75.3719C51.924 75.3719 51.1717 75.0807 50.5892 74.4982L40.1784 64.0146C39.0379 62.8498 39.0379 60.9569 40.2027 59.8163C41.3675 58.6758 43.2362 58.6758 44.401 59.8406L52.7248 68.2129Z", fill: "white" }) }), (0, jsx_runtime_1.jsx)("g", { mask: "url(#mask0_4967_20179)", children: (0, jsx_runtime_1.jsx)("rect", { x: "-8.92554", y: "-23.8018", width: "144.793", height: "152.727", fill: "#00C5CA" }) })] }));
7
- //# sourceMappingURL=CheckIllustrationIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckIllustrationIcon.js","sourceRoot":"","sources":["../../../src/lib/components/icons/CheckIllustrationIcon.tsx"],"names":[],"mappings":";;;;AAAA,4EAAgE;AAGhE,kBAAe,CAAC,KAA4C,EAAE,EAAE,CAAC,CAC/D,wBAAC,iBAAO,IACN,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,aAAa,EACrB,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EACvC,IAAI,EAAC,MAAM,KACP,KAAK,aAET,iCACE,EAAE,EAAC,kBAAkB,EACrB,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAC5B,SAAS,EAAC,gBAAgB,EAC1B,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,YAEZ,iCACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,yxBAAyxB,EAC3xB,IAAI,EAAC,OAAO,GACZ,GACG,EACP,8BAAG,IAAI,EAAC,wBAAwB,YAC9B,iCAAM,CAAC,EAAC,UAAU,EAAC,CAAC,EAAC,UAAU,EAAC,KAAK,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,GAAG,GAChF,IACI,CACX,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const material_1 = require("@mui/material");
5
- const icon = (0, material_1.createSvgIcon)((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M14.2075 5.94825L8.16666 11.9891L4.87583 8.70742L3.58333 9.99992L8.16666 14.5833L15.5 7.24992L14.2075 5.94825ZM10 0.833252C4.93999 0.833252 0.833328 4.93992 0.833328 9.99992C0.833328 15.0599 4.93999 19.1666 10 19.1666C15.06 19.1666 19.1667 15.0599 19.1667 9.99992C19.1667 4.93992 15.06 0.833252 10 0.833252ZM10 17.3333C5.94833 17.3333 2.66666 14.0516 2.66666 9.99992C2.66666 5.94825 5.94833 2.66659 10 2.66659C14.0517 2.66659 17.3333 5.94825 17.3333 9.99992C17.3333 14.0516 14.0517 17.3333 10 17.3333Z", fill: "#6CC66A" }) }), 'Confirm');
6
- exports.default = icon;
7
- //# sourceMappingURL=ConfirmIcon.js.map