@flarehr/apollo-super-selection 3.17.52693 → 3.17.52781

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 (284) hide show
  1. package/package.json +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
  4. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  5. package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +0 -1
  6. package/dist/lib/apollo-super-selection/p-082669d9.js +0 -1
  7. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  8. package/dist/lib/apollo-super-selection/p-20136efe.entry.js +0 -1
  9. package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +0 -1
  10. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  11. package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-38ee2795.system.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  14. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-574c7d9b.system.entry.js +0 -69
  16. package/dist/lib/apollo-super-selection/p-61734b66.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-89495496.entry.js +0 -14
  21. package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-abedb220.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  29. package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +0 -1
  30. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
  31. package/dist/lib/cjs/active-router-e92fd784.js +0 -75
  32. package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -23
  33. package/dist/lib/cjs/app-globals-45007120.js +0 -25
  34. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  35. package/dist/lib/cjs/datorama-akita-7f4b082a.js +0 -2704
  36. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  37. package/dist/lib/cjs/fl-button_44.cjs.entry.js +0 -17003
  38. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  39. package/dist/lib/cjs/index-942e6faa.js +0 -1767
  40. package/dist/lib/cjs/index.cjs.js +0 -2
  41. package/dist/lib/cjs/loader.cjs.js +0 -25
  42. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  43. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  44. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  45. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  46. package/dist/lib/collection/collection-manifest.json +0 -127
  47. package/dist/lib/collection/components/app-host/loading-page.js +0 -9
  48. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
  49. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
  50. package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -43
  51. package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
  52. package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
  53. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
  54. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
  55. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
  56. package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
  57. package/dist/lib/collection/components/app-host/services/session.store.js +0 -37
  58. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -28
  59. package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -92
  60. package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
  61. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
  62. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -1
  63. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -1
  64. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -30
  65. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -31
  66. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  67. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -29
  68. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
  69. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
  70. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -31
  71. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -68
  72. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -53
  73. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -108
  74. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -93
  75. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -103
  76. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
  77. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -153
  78. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +0 -1
  79. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -111
  80. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
  81. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +0 -52
  82. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  83. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  84. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
  85. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  86. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -95
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  104. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  105. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  106. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  107. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  108. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
  109. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
  110. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  112. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  113. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  114. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  115. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
  116. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
  117. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
  118. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  119. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  120. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
  121. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
  122. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -76
  123. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
  124. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  125. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
  126. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  127. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  128. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
  129. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
  130. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
  132. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
  133. package/dist/lib/collection/global/init-host.js +0 -22
  134. package/dist/lib/collection/global/main.dev.js +0 -26
  135. package/dist/lib/collection/global/main.js +0 -11
  136. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  137. package/dist/lib/collection/index.js +0 -2
  138. package/dist/lib/collection/utils/config.js +0 -2
  139. package/dist/lib/collection/utils/gtm.js +0 -5
  140. package/dist/lib/collection/utils/iframe.js +0 -33
  141. package/dist/lib/collection/utils/index.js +0 -8
  142. package/dist/lib/collection/utils/lazy.js +0 -29
  143. package/dist/lib/collection/utils/storage.js +0 -5
  144. package/dist/lib/esm/active-router-4c80d3d2.js +0 -73
  145. package/dist/lib/esm/apollo-super-selection.js +0 -21
  146. package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
  147. package/dist/lib/esm/context-consumer.entry.js +0 -25
  148. package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
  149. package/dist/lib/esm/delay-c0555599.js +0 -935
  150. package/dist/lib/esm/fl-button_44.entry.js +0 -16956
  151. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  152. package/dist/lib/esm/index-0496d1af.js +0 -1734
  153. package/dist/lib/esm/index.js +0 -1
  154. package/dist/lib/esm/loader.js +0 -21
  155. package/dist/lib/esm/polyfills/core-js.js +0 -11
  156. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  157. package/dist/lib/esm/polyfills/dom.js +0 -79
  158. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  159. package/dist/lib/esm/polyfills/index.js +0 -34
  160. package/dist/lib/esm/polyfills/system.js +0 -6
  161. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  162. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  163. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  164. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  165. package/dist/lib/esm-es5/active-router-4c80d3d2.js +0 -1
  166. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  167. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
  168. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  169. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  170. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  171. package/dist/lib/esm-es5/fl-button_44.entry.js +0 -69
  172. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  173. package/dist/lib/esm-es5/index-0496d1af.js +0 -1
  174. package/dist/lib/esm-es5/index.js +0 -0
  175. package/dist/lib/esm-es5/loader.js +0 -1
  176. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  177. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  178. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  179. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  180. package/dist/lib/index.cjs.js +0 -1
  181. package/dist/lib/index.js +0 -1
  182. package/dist/lib/loader/cdn.js +0 -3
  183. package/dist/lib/loader/index.cjs.js +0 -3
  184. package/dist/lib/loader/index.d.ts +0 -13
  185. package/dist/lib/loader/index.es2017.js +0 -3
  186. package/dist/lib/loader/index.js +0 -4
  187. package/dist/lib/loader/package.json +0 -10
  188. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  189. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  190. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  191. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  192. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  193. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  194. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  195. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  196. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  197. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  198. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
  199. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  200. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  201. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  202. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  203. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  204. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  205. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
  206. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
  207. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  208. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  209. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
  210. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  211. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -82
  212. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
  213. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
  214. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
  215. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
  216. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
  217. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  218. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
  219. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +0 -7
  227. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  228. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
  229. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  230. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  231. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  232. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  233. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  234. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  235. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  236. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  237. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  246. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  247. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  248. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
  249. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  250. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
  251. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
  252. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  253. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
  254. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  255. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  256. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  257. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
  258. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
  259. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
  260. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  261. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  262. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  263. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
  264. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -25
  265. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
  266. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  267. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
  268. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  269. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
  270. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
  271. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
  272. package/dist/lib/types/components.d.ts +0 -546
  273. package/dist/lib/types/global/init-host.d.ts +0 -1
  274. package/dist/lib/types/global/main.d.ts +0 -1
  275. package/dist/lib/types/global/main.dev.d.ts +0 -1
  276. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  277. package/dist/lib/types/index.d.ts +0 -2
  278. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  279. package/dist/lib/types/utils/config.d.ts +0 -2
  280. package/dist/lib/types/utils/gtm.d.ts +0 -7
  281. package/dist/lib/types/utils/iframe.d.ts +0 -13
  282. package/dist/lib/types/utils/index.d.ts +0 -3
  283. package/dist/lib/types/utils/lazy.d.ts +0 -12
  284. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,152 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import { isSome, none } from 'fp-ts/Option';
3
- import iframe from '../../../utils/iframe';
4
- import * as constants from '../funds/constants';
5
- import { resetQSuperState } from '../funds/qsuper/helpers/resetState';
6
- import { EventTrackingService } from '../services/event-tracking.service';
7
- import navigationService from '../services/navigation.service';
8
- import chosenFundService from '../services/selected-super-choice-info.service';
9
- import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
10
- export class SuperChoicePage {
11
- constructor() {
12
- this.promotedFunds = this.getPromotedFunds();
13
- this.chosenFund = none;
14
- this.eventTrackingService = EventTrackingService.Instance;
15
- this.isPromotedFundSelected = (fundId) => {
16
- return (isSome(this.chosenFund) &&
17
- this.chosenFund.value.isPromoted &&
18
- this.chosenFund.value.promotedId === fundId);
19
- };
20
- }
21
- componentDidLoad() {
22
- iframe.appReady();
23
- const enabledFundIds = this.promotedFunds.map((item) => item.usi);
24
- this.eventTrackingService.TrackSuperFundPanelViewedAsync({
25
- enabledFundIds
26
- });
27
- }
28
- async componentWillLoad() {
29
- resetQSuperState();
30
- this.chosenFund = await chosenFundService.GetChosenFundAsync();
31
- }
32
- render() {
33
- const superChoiceParagraphOne = `Selecting the right super fund is very important. Simple Financial Choices have provided you with easy access to the below funds to make your choice an easy one, if you think that one of them might suit your needs.`;
34
- const superChoiceParagraphTwo = `The content on this page and on the following pages relating to superannuation is provided by Simple Financial Choices (SFC), except for any content in relation to QSuper which is prepared, and provided to SFC, by QSuper Board ABN 32 125 059 006. The superannuation funds presented below are neither selected nor recommended by your employer nor by Flare HR.`;
35
- const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
36
- return (h(Host, null,
37
- h("div", { class: "container mt-0 mb-0" },
38
- h("div", { class: "row justify-content-center" },
39
- h("div", { class: "col" },
40
- h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" },
41
- h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
42
- h("h5", { class: "font-weight-bold text-center mb-4" },
43
- h("span", { class: "text-dark mr-1" }, "Simple Financial"),
44
- h("span", { class: "simple-choices-text" }, "Choices"))))),
45
- h("div", { class: "row justify-content-center" },
46
- h("div", { class: "col" },
47
- h("p", { class: "text-center" }, superChoiceParagraphOne),
48
- h("p", { class: "text-center small" }, superChoiceParagraphTwo),
49
- h("p", { class: "text-center small" }, superChoiceParagraphThree))),
50
- h("div", { class: "row" },
51
- h("div", { class: "col" },
52
- h("sss-notifications-section", null))),
53
- h("div", { class: "row justify-content-center mt-4" },
54
- h("div", { class: "col col-sm-10 col-md-8 col-xl-7" },
55
- h("div", { class: "row" },
56
- h("div", { class: "col" },
57
- h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))),
58
- h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" },
59
- h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))),
60
- h("div", { class: "row mt-3" },
61
- h("div", { class: "col" },
62
- h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
63
- h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
64
- }
65
- getPromotedFunds() {
66
- return [
67
- {
68
- fundId: constants.SlateFundId,
69
- usi: constants.SlateFundUsi,
70
- name: constants.SlateFundName,
71
- heading: constants.SlateAltFundName,
72
- logo: 'logo-slate.png',
73
- route: SuperSelectionAppRoutes.SlateJoin,
74
- callToAction: 'Join Slate Super',
75
- pdsLink: 'https://slatesuper.com.au/pds/?utm_source=flare&utm_medium=superselection',
76
- features: [
77
- { order: 1, value: 'Personalised lifestages investment strategy that evolves with you' },
78
- { order: 2, value: 'Advanced mobile app with retirement forecast and smart features' },
79
- { order: 3, value: 'Your own personal concierge at Slate to assist with your account' }
80
- ]
81
- },
82
- {
83
- fundId: constants.QSuperFundId,
84
- usi: constants.QSuperFundUsi,
85
- name: constants.QSuperFundName,
86
- heading: constants.QSuperAltFundName,
87
- logo: 'logo-qsuper-square.png',
88
- route: SuperSelectionAppRoutes.QSuperOptIn,
89
- callToAction: 'Join QSuper',
90
- pdsLink: 'https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements',
91
- features: [
92
- { order: 1, value: '100 years strong' },
93
- { order: 2, value: `One of Australia's largest funds` },
94
- { order: 3, value: 'Awarded SuperRatings highest performance rating' }
95
- ]
96
- }
97
- ];
98
- }
99
- async handleJoinSuperClickAsync(fund) {
100
- if (fund.fundId === constants.SlateFundId) {
101
- await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
102
- fundUsi: constants.SlateFundUsi,
103
- fundName: constants.SlateFundName,
104
- fundNameAlt: constants.SlateAltFundName
105
- });
106
- }
107
- else {
108
- if (fund.fundId === constants.QSuperFundId) {
109
- await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
110
- fundUsi: constants.QSuperFundUsi,
111
- fundName: constants.QSuperFundName,
112
- fundNameAlt: constants.QSuperAltFundName
113
- });
114
- }
115
- }
116
- return navigationService.navigateInternally(this.history, fund.route);
117
- }
118
- static get is() { return "sss-super-choice-page"; }
119
- static get originalStyleUrls() { return {
120
- "$": ["super-choice-page.scss"]
121
- }; }
122
- static get styleUrls() { return {
123
- "$": ["super-choice-page.css"]
124
- }; }
125
- static get assetsDirs() { return ["assets"]; }
126
- static get properties() { return {
127
- "history": {
128
- "type": "unknown",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "RouterHistory",
132
- "resolved": "RouterHistory",
133
- "references": {
134
- "RouterHistory": {
135
- "location": "import",
136
- "path": "@stencil/router"
137
- }
138
- }
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": ""
145
- }
146
- }
147
- }; }
148
- static get states() { return {
149
- "promotedFunds": {},
150
- "chosenFund": {}
151
- }; }
152
- }
@@ -1,15 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- stencil-route {
10
- display: flex;
11
- flex: 1 1 auto;
12
- }
13
- stencil-route:empty {
14
- display: none;
15
- }
@@ -1,229 +0,0 @@
1
- import '@flarehr/beacon';
2
- import { Component, Event, h, Host, Prop, State, Watch } from '@stencil/core';
3
- import { injectHistory } from '@stencil/router';
4
- import * as O from 'fp-ts/lib/Option';
5
- import { resetQSuperState } from './funds/qsuper/helpers/resetState';
6
- import { superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
7
- import superSelectionAppService from './services/super-selection-app.service';
8
- export class SuperSelectionApp {
9
- constructor() {
10
- this.isAppInitialised = false;
11
- }
12
- async componentWillLoad() {
13
- const jwt = O.fromNullable(this.accessToken);
14
- if (O.isNone(jwt)) {
15
- throw Error(`jwt property is missing.`);
16
- }
17
- superSelectionAppService.state.jwt = jwt;
18
- const apiBaseUrl = O.fromNullable(this.backendUrl);
19
- if (O.isNone(apiBaseUrl)) {
20
- throw Error(`apiBaseUrl property is missing.`);
21
- }
22
- superSelectionAppService.state.apiBaseUrl = O.some(apiBaseUrl.value.replace(/\/$/, '') + '/');
23
- const appBaseUrl = O.fromNullable(this.appBaseUrl);
24
- if (O.isNone(appBaseUrl)) {
25
- throw Error(`appBaseUrl property is missing.`);
26
- }
27
- superSelectionAppService.state.appBaseUrl = O.some(appBaseUrl.value.replace(/\/$/, ''));
28
- superSelectionAppService.onChange('hasSuccessPageBeenAcknowledged', (_) => this.successPageAcknowledged.emit());
29
- superSelectionAppService.onChange('hasSuperSelectionBeenSubmitted', (submitted) => {
30
- if (!submitted)
31
- return;
32
- this.stepSubmitSuccess.emit();
33
- superSelectionAppService.state.hasSuperSelectionBeenSubmitted = false;
34
- });
35
- }
36
- async componentDidLoad() {
37
- resetQSuperState();
38
- await superSelectionAppService.loadAppStateAsync();
39
- this.isAppInitialised = true;
40
- this.initialised.emit({
41
- accountIdOrDefault: superSelectionAppService.accountIdOrDefault,
42
- partnerIdOrDefault: superSelectionAppService.partnerIdOrDefault,
43
- profileId: superSelectionAppService.profileId
44
- });
45
- }
46
- authTokenChanged(newValue) {
47
- superSelectionAppService.state.jwt = O.fromNullable(newValue);
48
- }
49
- onRouteChange() {
50
- window === null || window === void 0 ? void 0 : window.scroll(0, 0);
51
- }
52
- render() {
53
- return (h(Host, { class: "d-flex justify-content-center flex-grow-1" },
54
- h("div", { class: "d-flex flex-column justify-content-between" }, this.renderAppContent())));
55
- }
56
- routerBaseUrl() {
57
- var _a;
58
- return ((_a = this.appBaseUrl) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '')) + '/';
59
- }
60
- renderAppContent() {
61
- return (h("stencil-router", { root: this.routerBaseUrl() },
62
- h("stencil-route-switch", { scrollTopOffset: 0 },
63
- h("div", { class: "d-flex flex-column" },
64
- h("div", { class: "d-flex justify-content-center" }, this.isAppInitialised ? (superSelectionAppStencilRoutes) : (h("fl-loading-indicator", { class: "mt-5" }))),
65
- h("div", { class: "d-flex justify-content-center" },
66
- h("sss-footer-section", null))))));
67
- }
68
- static get is() { return "super-selection-app"; }
69
- static get originalStyleUrls() { return {
70
- "$": ["super-selection-app.scss"]
71
- }; }
72
- static get styleUrls() { return {
73
- "$": ["super-selection-app.css"]
74
- }; }
75
- static get properties() { return {
76
- "accessToken": {
77
- "type": "string",
78
- "mutable": false,
79
- "complexType": {
80
- "original": "string",
81
- "resolved": "string | undefined",
82
- "references": {}
83
- },
84
- "required": false,
85
- "optional": true,
86
- "docs": {
87
- "tags": [],
88
- "text": ""
89
- },
90
- "attribute": "access-token",
91
- "reflect": false
92
- },
93
- "backendUrl": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string | undefined",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": true,
103
- "docs": {
104
- "tags": [],
105
- "text": ""
106
- },
107
- "attribute": "backend-url",
108
- "reflect": false
109
- },
110
- "appBaseUrl": {
111
- "type": "string",
112
- "mutable": false,
113
- "complexType": {
114
- "original": "string",
115
- "resolved": "string | undefined",
116
- "references": {}
117
- },
118
- "required": false,
119
- "optional": true,
120
- "docs": {
121
- "tags": [],
122
- "text": ""
123
- },
124
- "attribute": "app-base-url",
125
- "reflect": false
126
- },
127
- "history": {
128
- "type": "unknown",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "RouterHistory",
132
- "resolved": "RouterHistory",
133
- "references": {
134
- "RouterHistory": {
135
- "location": "import",
136
- "path": "@stencil/router"
137
- }
138
- }
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": ""
145
- }
146
- },
147
- "location": {
148
- "type": "unknown",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "LocationSegments",
152
- "resolved": "LocationSegments | undefined",
153
- "references": {
154
- "LocationSegments": {
155
- "location": "import",
156
- "path": "@stencil/router"
157
- }
158
- }
159
- },
160
- "required": false,
161
- "optional": true,
162
- "docs": {
163
- "tags": [],
164
- "text": ""
165
- }
166
- }
167
- }; }
168
- static get states() { return {
169
- "isAppInitialised": {}
170
- }; }
171
- static get events() { return [{
172
- "method": "stepSubmitSuccess",
173
- "name": "step-completion",
174
- "bubbles": true,
175
- "cancelable": true,
176
- "composed": true,
177
- "docs": {
178
- "tags": [],
179
- "text": ""
180
- },
181
- "complexType": {
182
- "original": "void",
183
- "resolved": "void",
184
- "references": {}
185
- }
186
- }, {
187
- "method": "successPageAcknowledged",
188
- "name": "successPageAcknowledged",
189
- "bubbles": true,
190
- "cancelable": true,
191
- "composed": false,
192
- "docs": {
193
- "tags": [],
194
- "text": ""
195
- },
196
- "complexType": {
197
- "original": "void",
198
- "resolved": "void",
199
- "references": {}
200
- }
201
- }, {
202
- "method": "initialised",
203
- "name": "initialised",
204
- "bubbles": true,
205
- "cancelable": true,
206
- "composed": true,
207
- "docs": {
208
- "tags": [],
209
- "text": ""
210
- },
211
- "complexType": {
212
- "original": "InitialisedWith",
213
- "resolved": "{ accountIdOrDefault: string; partnerIdOrDefault: string; profileId: string; }",
214
- "references": {
215
- "InitialisedWith": {
216
- "location": "local"
217
- }
218
- }
219
- }
220
- }]; }
221
- static get watchers() { return [{
222
- "propName": "accessToken",
223
- "methodName": "authTokenChanged"
224
- }, {
225
- "propName": "location",
226
- "methodName": "onRouteChange"
227
- }]; }
228
- }
229
- injectHistory(SuperSelectionApp);
@@ -1,22 +0,0 @@
1
- import appConfigurationService from '../components/app-host/services/app-configuration.service';
2
- import appInsights from '../components/app-host/services/appinsights.service';
3
- import sessionQuery from '../components/app-host/services/authentication.query';
4
- import authenticationService from '../components/app-host/services/authentication.service';
5
- import hostInteropService from '../components/app-host/services/interop/host-interop.service';
6
- import { Environment } from '../utils';
7
- import { addSlashToUrl } from '../utils';
8
- export default async function () {
9
- if (Environment !== 'prod') {
10
- // main.dev.ts does the bootstrapping in this case.
11
- return;
12
- }
13
- await appConfigurationService.loadConfigurationAsync();
14
- appInsights.init();
15
- addSlashToUrl();
16
- const doAuthFlow = sessionQuery.isUnauthorized || authenticationService.authorizationCodeIsPresent(window.location.search);
17
- if (!doAuthFlow) {
18
- return;
19
- }
20
- hostInteropService.init(window.location.search);
21
- authenticationService.initFromRoute(window.location.search);
22
- }
@@ -1,26 +0,0 @@
1
- import { akitaDevtools } from '@datorama/akita';
2
- import appConfigurationService from '../components/app-host/services/app-configuration.service';
3
- import appInsights from '../components/app-host/services/appinsights.service';
4
- import sessionQuery from '../components/app-host/services/authentication.query';
5
- import authenticationService from '../components/app-host/services/authentication.service';
6
- import hostInteropService from '../components/app-host/services/interop/host-interop.service';
7
- import { addSlashToUrl, Environment } from '../utils';
8
- import stencilRouterWorkaround from './stencil-router-workaround';
9
- export default async function () {
10
- if (Environment !== 'dev') {
11
- // main.ts does the bootstrapping in this case.
12
- return;
13
- }
14
- stencilRouterWorkaround();
15
- akitaDevtools();
16
- await appConfigurationService.loadConfigurationAsync();
17
- appInsights.init();
18
- appInsights.getAppInsights().addTelemetryInitializer(() => false);
19
- addSlashToUrl();
20
- const doAuthFlow = sessionQuery.isUnauthorized || authenticationService.authorizationCodeIsPresent(window.location.search);
21
- if (!doAuthFlow) {
22
- return;
23
- }
24
- hostInteropService.init(window.location.search);
25
- authenticationService.initFromRoute(window.location.search);
26
- }
@@ -1,11 +0,0 @@
1
- import { enableAkitaProdMode } from '@datorama/akita';
2
- import { Environment } from '../utils';
3
- import stencilRouterWorkaround from './stencil-router-workaround';
4
- export default async function () {
5
- if (Environment !== 'prod') {
6
- // main.dev.ts does the bootstrapping in this case.
7
- return;
8
- }
9
- stencilRouterWorkaround();
10
- enableAkitaProdMode();
11
- }
@@ -1,12 +0,0 @@
1
- // Interim workaround for stencil router accessing session storage.
2
- // See https://github.com/ionic-team/stencil-router/pull/111/files.
3
- // In incognito mode, window.sessionStorage read access is denied from a third party iframe.
4
- // Stencil router checks for the presence of session storage, but does not handle a read access exception.
5
- export default function () {
6
- if (window.location == window.parent.location) {
7
- // Only apply this workaround when running in an embedded iframe.
8
- return;
9
- }
10
- delete window.sessionStorage;
11
- window.sessionStorage = {};
12
- }
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- import '@stencil/router';
@@ -1,2 +0,0 @@
1
- export const Environment = '$ENVIRONMENT';
2
- export const AppVersion = '$APP_VERSION';
@@ -1,5 +0,0 @@
1
- export function sendAnalyticsEvent(action, data) {
2
- if (window['gtag']) {
3
- window['gtag']('event', action, data);
4
- }
5
- }
@@ -1,33 +0,0 @@
1
- function appReady() {
2
- postMessage({
3
- type: 'appReady'
4
- });
5
- }
6
- function postMessage(message, origin) {
7
- if (origin === undefined)
8
- origin = '*';
9
- message.sender = 'flare';
10
- window.parent.postMessage(message, origin);
11
- }
12
- function resize(height, width) {
13
- postMessage({
14
- type: 'contentResized',
15
- height,
16
- width
17
- });
18
- }
19
- function navigation(url) {
20
- postMessage({
21
- type: 'pageNavigated',
22
- url
23
- });
24
- }
25
- function complete() {
26
- postMessage({ type: 'complete' });
27
- }
28
- function submitSuccess() {
29
- postMessage({
30
- type: 'submitSuccess'
31
- });
32
- }
33
- export default { appReady, resize, navigation, complete, submitSuccess };
@@ -1,8 +0,0 @@
1
- export * from './config';
2
- export * from './lazy';
3
- export function addSlashToUrl() {
4
- if (!window.location.pathname.endsWith('/')) {
5
- const url = window.location.pathname + '/' + window.location.search + window.location.hash;
6
- history.pushState(history.state, '', url);
7
- }
8
- }
@@ -1,29 +0,0 @@
1
- import * as O from 'fp-ts/Option';
2
- export class Lazy {
3
- constructor(factory) {
4
- this.factory = factory;
5
- this._value = O.none;
6
- }
7
- get value() {
8
- if (O.isSome(this._value)) {
9
- return this._value.value;
10
- }
11
- const lazyValue = this.factory();
12
- this._value = O.some(lazyValue);
13
- return lazyValue;
14
- }
15
- }
16
- export class AsyncLazy {
17
- constructor(factory) {
18
- this.factory = factory;
19
- this._value = O.none;
20
- }
21
- async getValueAsync() {
22
- if (O.isSome(this._value)) {
23
- return this._value.value;
24
- }
25
- const lazyValue = await this.factory();
26
- this._value = O.some(lazyValue);
27
- return lazyValue;
28
- }
29
- }
@@ -1,5 +0,0 @@
1
- import * as O from 'fp-ts/lib/Option';
2
- import { pipe } from 'fp-ts/lib/pipeable';
3
- export const getFromSessionStorage = (key) => pipe(sessionStorage.getItem(key), O.fromNullable, O.mapNullable(JSON.parse));
4
- export const saveToSessionStorage = (key, value) => sessionStorage.setItem(key, JSON.stringify(value));
5
- export const clearFromSessionStorage = (key) => sessionStorage.removeItem(key);
@@ -1,73 +0,0 @@
1
- import { h } from './index-0496d1af.js';
2
-
3
- const createProviderConsumer = (defaultState, consumerRender) => {
4
- let listeners = new Map();
5
- let currentState = defaultState;
6
- const updateListener = (fields, instance) => {
7
- if (Array.isArray(fields)) {
8
- [...fields].forEach(fieldName => {
9
- instance[fieldName] = currentState[fieldName];
10
- });
11
- }
12
- else {
13
- instance[fields] = Object.assign({}, currentState);
14
- }
15
- };
16
- const subscribe = (instance, propList) => {
17
- if (!listeners.has(instance)) {
18
- listeners.set(instance, propList);
19
- updateListener(propList, instance);
20
- }
21
- return () => {
22
- if (listeners.has(instance)) {
23
- listeners.delete(instance);
24
- }
25
- };
26
- };
27
- const Provider = ({ state }, children) => {
28
- currentState = state;
29
- listeners.forEach(updateListener);
30
- return children;
31
- };
32
- const Consumer = (props, children) => {
33
- // The casting on subscribe is to allow for crossover through the stencil compiler
34
- // In the future we should allow for generics in components.
35
- return consumerRender(subscribe, children[0]);
36
- };
37
- const injectProps = (Cstr, fieldList) => {
38
- const CstrPrototype = Cstr.prototype;
39
- const cstrConnectedCallback = CstrPrototype.connectedCallback;
40
- const cstrDisconnectedCallback = CstrPrototype.disconnectedCallback;
41
- CstrPrototype.connectedCallback = function () {
42
- subscribe(this, fieldList);
43
- if (cstrConnectedCallback) {
44
- return cstrConnectedCallback.call(this);
45
- }
46
- };
47
- CstrPrototype.disconnectedCallback = function () {
48
- listeners.delete(this);
49
- if (cstrDisconnectedCallback) {
50
- cstrDisconnectedCallback.call(this);
51
- }
52
- };
53
- };
54
- return {
55
- Provider,
56
- Consumer,
57
- injectProps
58
- };
59
- };
60
-
61
- const ActiveRouter = createProviderConsumer({
62
- historyType: 'browser',
63
- location: {
64
- pathname: '',
65
- query: {},
66
- key: ''
67
- },
68
- titleSuffix: '',
69
- root: '/',
70
- routeViewsUpdated: () => { }
71
- }, (subscribe, child) => (h("context-consumer", { subscribe: subscribe, renderer: child })));
72
-
73
- export { ActiveRouter as A };