@flarehr/apollo-super-selection 1.3.23524 → 1.3.23827

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 (283) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -0
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -0
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +130 -0
  4. package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
  5. package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
  6. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  7. package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
  8. package/dist/lib/apollo-super-selection/p-15f0e5eb.system.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-22939048.system.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
  12. package/dist/lib/apollo-super-selection/p-2b42304a.system.entry.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-309ea469.system.entry.js +69 -0
  14. package/dist/lib/apollo-super-selection/p-33eca162.entry.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-4e871154.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-53b231f0.system.entry.js +1 -0
  18. package/dist/lib/apollo-super-selection/p-5596ab29.entry.js +14 -0
  19. package/dist/lib/apollo-super-selection/p-5c73c587.entry.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-69bbf1dd.entry.js +1 -0
  21. package/dist/lib/apollo-super-selection/p-71ca4cf8.system.js +1 -0
  22. package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
  23. package/dist/lib/apollo-super-selection/p-97188c78.system.js +1 -0
  24. package/dist/lib/apollo-super-selection/p-9d2a7c0e.entry.js +1 -0
  25. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +1 -0
  26. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +1 -0
  27. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -0
  28. package/dist/lib/apollo-super-selection/p-c775c0e4.system.entry.js +1 -0
  29. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
  30. package/dist/lib/apollo-super-selection/p-db0bded8.js +1 -0
  31. package/dist/lib/apollo-super-selection/p-e957b393.system.entry.js +1 -0
  32. package/dist/lib/apollo-super-selection/p-fdadb647.js +1 -0
  33. package/dist/lib/cjs/active-router-1f555f75.js +75 -0
  34. package/dist/lib/cjs/apollo-super-selection.cjs.js +22 -0
  35. package/dist/lib/cjs/app-globals-b1125d8c.js +25 -0
  36. package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
  37. package/dist/lib/cjs/custom-fund-choice.api-293c1ace.js +3209 -0
  38. package/dist/lib/cjs/datorama-akita-6c9cb8fb.js +3641 -0
  39. package/dist/lib/cjs/index-eb4f212f.js +1766 -0
  40. package/dist/lib/cjs/index.cjs.js +2 -0
  41. package/dist/lib/cjs/loader.cjs.js +24 -0
  42. package/dist/lib/cjs/sss-button_32.cjs.entry.js +14934 -0
  43. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +111 -0
  44. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +32 -0
  45. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +32 -0
  46. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +59 -0
  47. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  48. package/dist/lib/collection/apollo-super-selection.css +1 -0
  49. package/dist/lib/collection/collection-manifest.json +98 -0
  50. package/dist/lib/collection/components/app-host/loading-page.js +9 -0
  51. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +18 -0
  52. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +25 -0
  53. package/dist/lib/collection/components/app-host/services/app-parameters.query.js +13 -0
  54. package/dist/lib/collection/components/app-host/services/app-parameters.service.js +14 -0
  55. package/dist/lib/collection/components/app-host/services/appinsights.service.js +46 -0
  56. package/dist/lib/collection/components/app-host/services/authentication.query.js +21 -0
  57. package/dist/lib/collection/components/app-host/services/authentication.service.js +50 -0
  58. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +31 -0
  59. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +30 -0
  60. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +20 -0
  61. package/dist/lib/collection/components/app-host/services/interop.query.js +26 -0
  62. package/dist/lib/collection/components/app-host/services/session.store.js +38 -0
  63. package/dist/lib/collection/components/app-host/super-selection-app-host.css +24 -0
  64. package/dist/lib/collection/components/app-host/super-selection-app-host.js +87 -0
  65. package/dist/lib/collection/components/external-loading-page/external-loading-page.js +29 -0
  66. package/dist/lib/collection/components/super-byof/super-byof-types.js +1 -0
  67. package/dist/lib/collection/components/super-byof/super-byof.form.js +1 -0
  68. package/dist/lib/collection/components/super-byof/super-byof.js +139 -0
  69. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +49 -0
  70. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +121 -0
  71. package/dist/lib/collection/components/super-campaign/super-campaign-types.js +6 -0
  72. package/dist/lib/collection/components/super-campaign/super-campaign.js +210 -0
  73. package/dist/lib/collection/components/super-selection-app/api/api-client.js +14 -0
  74. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +9 -0
  75. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +9 -0
  76. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
  77. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +16 -0
  78. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +179 -0
  79. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +69 -0
  80. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +36 -0
  81. package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
  82. package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
  83. package/dist/lib/collection/components/super-selection-app/choice/choice-router.js +42 -0
  84. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +163 -0
  85. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +39 -0
  86. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +1 -0
  87. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +50 -0
  88. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +109 -0
  89. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +36 -0
  90. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +114 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +113 -0
  92. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +1 -0
  93. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/member-name-input.js +162 -0
  94. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.js +1 -0
  95. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js +115 -0
  96. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.js +11 -0
  97. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +111 -0
  98. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +161 -0
  99. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
  100. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
  101. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +31 -0
  102. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +1 -0
  103. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +13 -0
  104. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate.js +4 -0
  105. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +37 -0
  106. package/dist/lib/collection/components/super-selection-app/misc/button.js +195 -0
  107. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
  108. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +390 -0
  109. package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
  110. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +22 -0
  111. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +42 -0
  112. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +66 -0
  113. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +121 -0
  114. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +145 -0
  115. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +223 -0
  116. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +398 -0
  117. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +288 -0
  118. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +37 -0
  119. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +81 -0
  120. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +15 -0
  121. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +117 -0
  122. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +134 -0
  123. package/dist/lib/collection/components/super-selection-app/services/misc.service.js +7 -0
  124. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +31 -0
  125. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +38 -0
  126. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +171 -0
  127. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +45 -0
  128. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +155 -0
  129. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +11 -0
  130. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +27 -0
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +291 -0
  132. package/dist/lib/collection/components/super-smsf/super-smsf-types.js +1 -0
  133. package/dist/lib/collection/components/super-smsf/super-smsf.form.js +1 -0
  134. package/dist/lib/collection/components/super-smsf/super-smsf.js +166 -0
  135. package/dist/lib/collection/global/init-host.js +25 -0
  136. package/dist/lib/collection/global/main.dev.js +29 -0
  137. package/dist/lib/collection/global/main.js +11 -0
  138. package/dist/lib/collection/global/stencil-router-workaround.js +12 -0
  139. package/dist/lib/collection/index.js +2 -0
  140. package/dist/lib/collection/utils/config.js +2 -0
  141. package/dist/lib/collection/utils/gtm.js +5 -0
  142. package/dist/lib/collection/utils/iframe.js +33 -0
  143. package/dist/lib/collection/utils/index.js +11 -0
  144. package/dist/lib/collection/utils/lazy.js +29 -0
  145. package/dist/lib/collection/utils/storage.js +5 -0
  146. package/dist/lib/esm/active-router-d18b36fb.js +73 -0
  147. package/dist/lib/esm/apollo-super-selection.js +20 -0
  148. package/dist/lib/esm/app-globals-c1f89805.js +23 -0
  149. package/dist/lib/esm/context-consumer.entry.js +25 -0
  150. package/dist/lib/esm/custom-fund-choice.api-42801d64.js +3188 -0
  151. package/dist/lib/esm/datorama-akita-127aea91.js +3624 -0
  152. package/dist/lib/esm/index-107d7c24.js +1732 -0
  153. package/dist/lib/esm/index.js +1 -0
  154. package/dist/lib/esm/loader.js +20 -0
  155. package/dist/lib/esm/polyfills/core-js.js +11 -0
  156. package/dist/lib/esm/polyfills/css-shim.js +1 -0
  157. package/dist/lib/esm/polyfills/dom.js +79 -0
  158. package/dist/lib/esm/polyfills/es5-html-element.js +1 -0
  159. package/dist/lib/esm/polyfills/index.js +34 -0
  160. package/dist/lib/esm/polyfills/system.js +6 -0
  161. package/dist/lib/esm/sss-button_32.entry.js +14879 -0
  162. package/dist/lib/esm/sss-super-byof-host.entry.js +107 -0
  163. package/dist/lib/esm/stencil-async-content.entry.js +28 -0
  164. package/dist/lib/esm/stencil-route-title.entry.js +28 -0
  165. package/dist/lib/esm/stencil-router-prompt.entry.js +55 -0
  166. package/dist/lib/esm/stencil-router-redirect.entry.js +28 -0
  167. package/dist/lib/esm-es5/active-router-d18b36fb.js +1 -0
  168. package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
  169. package/dist/lib/esm-es5/app-globals-c1f89805.js +1 -0
  170. package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
  171. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
  172. package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
  173. package/dist/lib/esm-es5/index-107d7c24.js +1 -0
  174. package/dist/lib/esm-es5/index.js +0 -0
  175. package/dist/lib/esm-es5/loader.js +1 -0
  176. package/dist/lib/esm-es5/sss-button_32.entry.js +69 -0
  177. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -0
  178. package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -0
  179. package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -0
  180. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -0
  181. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -0
  182. package/dist/lib/index.cjs.js +1 -0
  183. package/dist/lib/index.js +1 -0
  184. package/dist/lib/loader/cdn.js +3 -0
  185. package/dist/lib/loader/index.cjs.js +3 -0
  186. package/dist/lib/loader/index.d.ts +13 -0
  187. package/dist/lib/loader/index.es2017.js +3 -0
  188. package/dist/lib/loader/index.js +4 -0
  189. package/dist/lib/loader/package.json +10 -0
  190. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +3 -0
  191. package/dist/lib/types/components/app-host/loading-page.d.ts +3 -0
  192. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +11 -0
  193. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +9 -0
  194. package/dist/lib/types/components/app-host/services/app-parameters.query.d.ts +10 -0
  195. package/dist/lib/types/components/app-host/services/app-parameters.service.d.ts +6 -0
  196. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +15 -0
  197. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +13 -0
  198. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +9 -0
  199. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +7 -0
  200. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +5 -0
  201. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +7 -0
  202. package/dist/lib/types/components/app-host/services/interop.query.d.ts +11 -0
  203. package/dist/lib/types/components/app-host/services/session.store.d.ts +31 -0
  204. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +15 -0
  205. package/dist/lib/types/components/super-byof/super-byof-types.d.ts +26 -0
  206. package/dist/lib/types/components/super-byof/super-byof.d.ts +19 -0
  207. package/dist/lib/types/components/super-byof/super-byof.form.d.ts +6 -0
  208. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +12 -0
  209. package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +15 -0
  210. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +98 -0
  211. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +27 -0
  212. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +2 -0
  213. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +6 -0
  214. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +6 -0
  215. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
  216. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +171 -0
  217. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +16 -0
  218. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +248 -0
  219. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +7 -0
  220. package/dist/lib/types/components/super-selection-app/choice/choice-router.d.ts +6 -0
  221. package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
  222. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +5 -0
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +10 -0
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +43 -0
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +9 -0
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +27 -0
  227. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +13 -0
  228. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +18 -0
  229. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +26 -0
  230. package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +14 -0
  231. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.d.ts +15 -0
  232. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.d.ts +20 -0
  233. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.d.ts +1 -0
  234. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +112 -0
  235. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +28 -0
  236. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
  237. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +8 -0
  238. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +23 -0
  239. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +6 -0
  240. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +9 -0
  241. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +4 -0
  242. package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +3 -0
  243. package/dist/lib/types/components/super-selection-app/misc/button.d.ts +14 -0
  244. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +52 -0
  245. package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
  246. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +9 -0
  247. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +5 -0
  248. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +5 -0
  249. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +18 -0
  250. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +28 -0
  251. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +30 -0
  252. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +52 -0
  253. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +95 -0
  254. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +4 -0
  255. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +14 -0
  256. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +8 -0
  257. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +25 -0
  258. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +75 -0
  259. package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +6 -0
  260. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +17 -0
  261. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +19 -0
  262. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +43 -0
  263. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +37 -0
  264. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +16 -0
  265. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +42 -0
  266. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +27 -0
  267. package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +34 -0
  268. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +20 -0
  269. package/dist/lib/types/components/super-smsf/super-smsf.form.d.ts +15 -0
  270. package/dist/lib/types/components.d.ts +522 -0
  271. package/dist/lib/types/global/init-host.d.ts +1 -0
  272. package/dist/lib/types/global/main.d.ts +1 -0
  273. package/dist/lib/types/global/main.dev.d.ts +1 -0
  274. package/dist/lib/types/global/stencil-router-workaround.d.ts +1 -0
  275. package/dist/lib/types/index.d.ts +2 -0
  276. package/dist/lib/types/stencil-public-runtime.d.ts +1555 -0
  277. package/dist/lib/types/utils/config.d.ts +2 -0
  278. package/dist/lib/types/utils/gtm.d.ts +7 -0
  279. package/dist/lib/types/utils/iframe.d.ts +13 -0
  280. package/dist/lib/types/utils/index.d.ts +4 -0
  281. package/dist/lib/types/utils/lazy.d.ts +12 -0
  282. package/dist/lib/types/utils/storage.d.ts +4 -0
  283. package/package.json +1 -1
@@ -0,0 +1,210 @@
1
+ import { Component, h, Prop, State } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import { isSome } from 'fp-ts/lib/Option';
4
+ import { SuperCampaignErrorApi } from '../super-selection-app/api/super-campaign-errors-api';
5
+ import { SuperFundDisclaimerViewedDetail } from '../super-selection-app/api/super-selection-events.model';
6
+ import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
7
+ import navigationService from '../super-selection-app/services/navigation.service';
8
+ import { SuperCampaignComponentStatus } from '../super-selection-app/services/super-selection.store';
9
+ import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
10
+ import superSelectionAppService from '../super-selection-app/services/super-selection-app.service';
11
+ import { fundTileClicked } from './fund-tile-clicked.handler';
12
+ import { PromotedFundJoinedEventHandler } from './promoted-fund-joined.handler';
13
+ import { LoadWaitingTimeout } from './super-campaign-types';
14
+ export class SuperCampaignHost {
15
+ constructor() {
16
+ this.scriptImported = false;
17
+ this.subscribeToSuperCampaignEvents = () => {
18
+ for (const eventName in this.superCampaignEventHandlers) {
19
+ document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
20
+ }
21
+ };
22
+ this.unSubscribeFromSuperCampaignEvents = () => {
23
+ for (const eventName in this.superCampaignEventHandlers) {
24
+ document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
25
+ }
26
+ };
27
+ this.superCampaignLoaded = async (event) => {
28
+ if (event.detail.sender === 'super-campaign') {
29
+ superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
30
+ clearTimeout(this.loadingTimeoutRef);
31
+ await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
32
+ }
33
+ return Promise.resolve();
34
+ };
35
+ this.superCampaignLoadFailed = async (event) => {
36
+ if (event.detail.sender === 'super-campaign') {
37
+ await this.activateFallbackMechanism({
38
+ type: 'SuperCampaignActivationFailed',
39
+ reason: event.detail.reason || 'Unknown'
40
+ });
41
+ }
42
+ };
43
+ this.superCampaignFailed = async (event) => {
44
+ if (event.detail.sender === 'super-campaign') {
45
+ await this.activateFallbackMechanism({
46
+ type: 'SuperCampaignOperationFailed',
47
+ reason: event.detail.reason || 'Unknown'
48
+ });
49
+ }
50
+ };
51
+ this.chooseAnotherFundRequested = async (event) => {
52
+ if (event.detail.sender === 'super-campaign') {
53
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
54
+ }
55
+ };
56
+ this.fundPanelShown = async (event) => {
57
+ if (event.detail.sender === 'super-campaign') {
58
+ superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
59
+ await superSelectionAppService.viewSuperFundPanelAsync('panel');
60
+ }
61
+ };
62
+ this.fundTileClicked = async (event) => {
63
+ await fundTileClicked({
64
+ sender: event.detail.sender,
65
+ placementId: 'panel',
66
+ fundId: event.detail.fundId,
67
+ fundUsi: event.detail.fundUsi,
68
+ fundName: event.detail.fundName,
69
+ fundType: event.detail.fundType
70
+ });
71
+ };
72
+ this.fundPdsViewed = async (event) => {
73
+ if (event.detail.sender === 'super-campaign') {
74
+ await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
75
+ fundName: event.detail.fundName,
76
+ fundUsi: event.detail.fundUsi,
77
+ pageName: event.detail.pageName,
78
+ superCampaignEnabled: true
79
+ });
80
+ }
81
+ };
82
+ this.disclaimerViewed = async (event) => {
83
+ if (event.detail.sender === 'super-campaign') {
84
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
85
+ }
86
+ };
87
+ this.disclaimerAccepted = async (event) => {
88
+ if (event.detail.sender === 'super-campaign') {
89
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
90
+ superCampaignEnabled: true
91
+ });
92
+ }
93
+ };
94
+ this.superCampaignEventHandlers = {
95
+ 'choose-another-fund-requested': this.chooseAnotherFundRequested.bind(this),
96
+ 'fund-panel-shown': this.fundPanelShown.bind(this),
97
+ 'fund-tile-clicked': this.fundTileClicked.bind(this),
98
+ 'fund-pds-viewed': this.fundPdsViewed.bind(this),
99
+ 'disclaimer-viewed': this.disclaimerViewed.bind(this),
100
+ 'disclaimer-accepted': this.disclaimerAccepted.bind(this),
101
+ 'promoted-fund-joined': new PromotedFundJoinedEventHandler('panel', this.history).handle,
102
+ 'super-campaign-loaded': this.superCampaignLoaded.bind(this),
103
+ 'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
104
+ 'super-campaign-failed': this.superCampaignFailed.bind(this)
105
+ };
106
+ }
107
+ async componentWillLoad() {
108
+ if (superSelectionAppService.state.superCampaignComponentStatus ===
109
+ SuperCampaignComponentStatus.NotWorking) {
110
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
111
+ return;
112
+ }
113
+ let superCampaingScriptPath = undefined;
114
+ try {
115
+ if (isSome(superSelectionAppService.backendUrl) &&
116
+ isSome(superSelectionAppService.state.jwt)) {
117
+ this.backendUrl = superSelectionAppService.backendUrl.value;
118
+ this.accessToken = superSelectionAppService.state.jwt.value;
119
+ this.unSubscribeFromSuperCampaignEvents();
120
+ if (superSelectionAppService.state.superCampaignComponentStatus ===
121
+ SuperCampaignComponentStatus.NotLoaded) {
122
+ superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl();
123
+ await import(superCampaingScriptPath);
124
+ this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
125
+ }
126
+ this.subscribeToSuperCampaignEvents();
127
+ this.scriptImported = true;
128
+ superSelectionAppService.hideFooterSection = true;
129
+ }
130
+ else {
131
+ throw Error(`SuperCampaignHost pre-requisites not met.`);
132
+ }
133
+ }
134
+ catch (error) {
135
+ this.activateFallbackMechanism({
136
+ type: 'SuperCampaignActivationFailed',
137
+ reason: `Problem in loading SuperCampaing script from:${superCampaingScriptPath} Error: ${error}`
138
+ });
139
+ }
140
+ }
141
+ disconnectedCallback() {
142
+ clearTimeout(this.loadingTimeoutRef);
143
+ this.unSubscribeFromSuperCampaignEvents();
144
+ superSelectionAppService.hideFooterSection = false;
145
+ }
146
+ render() {
147
+ return (h("div", null, this.scriptImported ? (h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
148
+ }
149
+ async activateFallbackMechanism(error) {
150
+ if (superSelectionAppService.superCampaignComponentStatus !==
151
+ SuperCampaignComponentStatus.NotWorking) {
152
+ superSelectionAppService.superCampaignComponentStatus =
153
+ SuperCampaignComponentStatus.NotWorking;
154
+ await SuperCampaignErrorApi.Instance.PostError(error);
155
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
156
+ }
157
+ }
158
+ async superCampaignLoadingTimeoutTriggered() {
159
+ if (superSelectionAppService.superCampaignComponentStatus !== SuperCampaignComponentStatus.Loaded) {
160
+ this.activateFallbackMechanism({
161
+ type: 'SuperCampaignActivationFailed',
162
+ reason: `Activation timeout was triggered after:${LoadWaitingTimeout / 1000} seconds`
163
+ });
164
+ }
165
+ }
166
+ createApolloSuperCampaignScriptUrl() {
167
+ const getSubdomain = () => {
168
+ const discriminator = window.location.hostname.toLowerCase().split('.')[0];
169
+ switch (discriminator) {
170
+ case 'test-partner':
171
+ case 'partner':
172
+ case 'sandbox-partner':
173
+ case 'autodev-partner':
174
+ return discriminator;
175
+ default:
176
+ return 'autodev-partner';
177
+ }
178
+ };
179
+ return `https://${getSubdomain()}.flarehr.com/super-campaign/cdn/app/apollo-super-campaign.js`;
180
+ }
181
+ static get is() { return "sss-super-campaign-host"; }
182
+ static get properties() { return {
183
+ "history": {
184
+ "type": "unknown",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "RouterHistory",
188
+ "resolved": "RouterHistory",
189
+ "references": {
190
+ "RouterHistory": {
191
+ "location": "import",
192
+ "path": "@stencil/router"
193
+ }
194
+ }
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": ""
201
+ }
202
+ }
203
+ }; }
204
+ static get states() { return {
205
+ "scriptImported": {},
206
+ "backendUrl": {},
207
+ "accessToken": {}
208
+ }; }
209
+ }
210
+ injectHistory(SuperCampaignHost);
@@ -0,0 +1,14 @@
1
+ import wretch from 'wretch';
2
+ import superSelectionAppService from '../services/super-selection-app.service';
3
+ export function buildBackendApiClient() {
4
+ const jwt = superSelectionAppService.jwt;
5
+ const profileId = superSelectionAppService.profileId;
6
+ const accountId = superSelectionAppService.accountIdOrDefault;
7
+ const partnerId = superSelectionAppService.partnerIdOrDefault;
8
+ return wretch(superSelectionAppService.apiBaseUrl).headers({
9
+ Authorization: `Bearer ${jwt}`,
10
+ 'X-PROFILE-ID': profileId,
11
+ 'X-PARTNER-ID': partnerId,
12
+ 'X-ACCOUNT-ID': accountId
13
+ });
14
+ }
@@ -0,0 +1,9 @@
1
+ import { buildBackendApiClient } from '../api/api-client';
2
+ export class EventTrackingApi {
3
+ static get Instance() {
4
+ return this.instance || (this.instance = new this());
5
+ }
6
+ async PostAnalyticsEventAsync(event) {
7
+ return buildBackendApiClient().url('analytics-events').post(event).res();
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ import { buildBackendApiClient } from './api-client';
2
+ export class SuperCampaignErrorApi {
3
+ static get Instance() {
4
+ return this.instance || (this.instance = new this());
5
+ }
6
+ async PostError(error) {
7
+ buildBackendApiClient().url('super-campaign/errors').post(error);
8
+ }
9
+ }
@@ -0,0 +1,16 @@
1
+ import { isSome } from 'fp-ts/lib/Option';
2
+ import superSelectionService from '../services/super-selection-app.service';
3
+ export const SuperFundDisclaimerViewedDetail = {
4
+ create: (superCampaignEnabled) => {
5
+ let isDefinedBenefitsEligibleString = 'Not set';
6
+ if (isSome(superSelectionService.isDefinedBenefitsEligible)) {
7
+ isDefinedBenefitsEligibleString = superSelectionService.isDefinedBenefitsEligible.value
8
+ ? 'True'
9
+ : 'False';
10
+ }
11
+ return {
12
+ isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
13
+ superCampaignEnabled: superCampaignEnabled
14
+ };
15
+ }
16
+ };
@@ -0,0 +1,179 @@
1
+ import { none, some } from 'fp-ts/Option';
2
+ import { assertExhaustive } from '../../../utils';
3
+ import { slate } from '../funds/slate-super/api/slate';
4
+ export function hydratePromotedFundChoiceDtoKind(dto) {
5
+ if ('slate' in dto) {
6
+ dto.kind = 'slate';
7
+ }
8
+ else if ('australianRetirementTrust' in dto) {
9
+ dto.kind = 'australianRetirementTrust';
10
+ }
11
+ else if ('aware' in dto) {
12
+ dto.kind = 'aware';
13
+ }
14
+ else if ('active' in dto) {
15
+ dto.kind = 'active';
16
+ }
17
+ else if ('australianEthical' in dto) {
18
+ dto.kind = 'australianEthical';
19
+ }
20
+ else if ('virgin' in dto) {
21
+ dto.kind = 'virgin';
22
+ }
23
+ else if ('spirit' in dto) {
24
+ dto.kind = 'spirit';
25
+ }
26
+ else if ('firstSuper' in dto) {
27
+ dto.kind = 'firstSuper';
28
+ }
29
+ else if ('mercerMyChoice' in dto) {
30
+ dto.kind = 'mercerMyChoice';
31
+ }
32
+ else if ('generic' in dto) {
33
+ dto.kind = 'generic';
34
+ }
35
+ }
36
+ function getPromotedFundUsi(dto) {
37
+ switch (dto.kind) {
38
+ case 'slate':
39
+ return slate.usi;
40
+ case 'australianRetirementTrust':
41
+ return dto.australianRetirementTrust.usi;
42
+ case 'aware':
43
+ return dto.aware.usi;
44
+ case 'active':
45
+ return dto.active.usi;
46
+ case 'australianEthical':
47
+ return dto.australianEthical.usi;
48
+ case 'virgin':
49
+ return dto.virgin.usi;
50
+ case 'spirit':
51
+ return dto.spirit.usi;
52
+ case 'firstSuper':
53
+ return dto.firstSuper.usi;
54
+ case 'mercerMyChoice':
55
+ return dto.mercerMyChoice.usi;
56
+ case 'generic':
57
+ return dto.generic.usi;
58
+ default:
59
+ assertExhaustive(dto);
60
+ return '';
61
+ }
62
+ }
63
+ export function getPromotedFundId(dto) {
64
+ switch (dto.kind) {
65
+ case 'slate':
66
+ return slate.fundId;
67
+ case 'australianRetirementTrust':
68
+ return 'australian-retirement-trust';
69
+ case 'aware':
70
+ return 'aware';
71
+ case 'active':
72
+ return 'active';
73
+ case 'australianEthical':
74
+ return 'australian-ethical';
75
+ case 'virgin':
76
+ return 'virgin';
77
+ case 'spirit':
78
+ return 'spirit';
79
+ case 'firstSuper':
80
+ return 'first-super';
81
+ case 'mercerMyChoice':
82
+ return 'mercermychoice';
83
+ case 'generic':
84
+ return dto.generic.fundId;
85
+ default:
86
+ assertExhaustive(dto);
87
+ return '';
88
+ }
89
+ }
90
+ export function getSuperChoiceUsi(dto) {
91
+ switch (dto.kind) {
92
+ case 'Promoted':
93
+ return some(getPromotedFundUsi(dto.promoted));
94
+ case 'MyOwnFund':
95
+ return some(dto.myOwnFund.usi);
96
+ case 'SMSF':
97
+ return none;
98
+ case 'Default':
99
+ return some(dto.default.usi);
100
+ case 'PromotedDefault':
101
+ return some(dto.promotedDefault.usi);
102
+ case 'DefinedBenefits':
103
+ return some(dto.definedBenefits.usi);
104
+ case 'PromotedDefaultWithJoin':
105
+ return some(dto.promotedDefaultWithJoin.usi);
106
+ default:
107
+ assertExhaustive(dto);
108
+ return none;
109
+ }
110
+ }
111
+ function getPromotedFundMemberNumber(dto) {
112
+ switch (dto.kind) {
113
+ case 'slate':
114
+ return dto.slate.memberNumber;
115
+ case 'australianRetirementTrust':
116
+ return dto.australianRetirementTrust.memberNumber;
117
+ case 'aware':
118
+ return dto.aware.memberNumber;
119
+ case 'active':
120
+ return dto.active.memberNumber;
121
+ case 'australianEthical':
122
+ return dto.australianEthical.memberNumber;
123
+ case 'virgin':
124
+ return dto.virgin.memberNumber;
125
+ case 'spirit':
126
+ return dto.spirit.memberNumber;
127
+ case 'firstSuper':
128
+ return dto.firstSuper.memberNumber;
129
+ case 'mercerMyChoice':
130
+ return dto.mercerMyChoice.memberNumber;
131
+ case 'generic':
132
+ return dto.generic.memberNumber;
133
+ default:
134
+ assertExhaustive(dto);
135
+ return '';
136
+ }
137
+ }
138
+ export function getSuperChoiceMemberNumber(dto) {
139
+ switch (dto.kind) {
140
+ case 'Promoted':
141
+ return some(getPromotedFundMemberNumber(dto.promoted));
142
+ case 'MyOwnFund':
143
+ return some(dto.myOwnFund.memberNumber);
144
+ case 'DefinedBenefits':
145
+ return some(dto.definedBenefits.memberNumber);
146
+ case 'PromotedDefaultWithJoin':
147
+ return some(dto.promotedDefaultWithJoin.memberNumber);
148
+ case 'SMSF':
149
+ case 'Default':
150
+ case 'PromotedDefault':
151
+ return none;
152
+ default:
153
+ assertExhaustive(dto);
154
+ return none;
155
+ }
156
+ }
157
+ export function hydrateSuperChoiceDetailsDtoKind(dto) {
158
+ if ('promoted' in dto) {
159
+ dto.kind = 'Promoted';
160
+ }
161
+ else if ('myOwnFund' in dto) {
162
+ dto.kind = 'MyOwnFund';
163
+ }
164
+ else if ('smsf' in dto) {
165
+ dto.kind = 'SMSF';
166
+ }
167
+ else if ('default' in dto) {
168
+ dto.kind = 'Default';
169
+ }
170
+ else if ('promotedDefault' in dto) {
171
+ dto.kind = 'PromotedDefault';
172
+ }
173
+ else if ('definedBenefits' in dto) {
174
+ dto.kind = 'DefinedBenefits';
175
+ }
176
+ else if ('promotedDefaultWithJoin' in dto) {
177
+ dto.kind = 'PromotedDefaultWithJoin';
178
+ }
179
+ }
@@ -0,0 +1,69 @@
1
+ import { assertExhaustive } from '../../../utils';
2
+ import { buildBackendApiClient } from './api-client';
3
+ import { hydratePromotedFundChoiceDtoKind, hydrateSuperChoiceDetailsDtoKind } from './super-selection.api.dto';
4
+ export class SuperSelectionApi {
5
+ async getAustralianFundsAsync(searchFilter, includeInactive = false) {
6
+ return buildBackendApiClient()
7
+ .url(`super-choice/australian-funds-v2?${this.toQueryString(includeInactive, searchFilter)}`)
8
+ .get()
9
+ .notFound(() => {
10
+ throw new Error('Failed to fetch the list of australian super funds.');
11
+ })
12
+ .json();
13
+ }
14
+ async getAustralianFundAsync(usi, includeInactive) {
15
+ const queryStr = includeInactive ? '?includeInactive=true' : '';
16
+ return buildBackendApiClient()
17
+ .url(`super-choice/australian-funds/${usi}${queryStr}`)
18
+ .get()
19
+ .notFound(() => {
20
+ throw new Error('Failed to fetch australian super fund.');
21
+ })
22
+ .json();
23
+ }
24
+ async getAppStateAsync() {
25
+ var _a;
26
+ const response = await buildBackendApiClient()
27
+ .url('client-app-state')
28
+ .get()
29
+ .notFound(() => {
30
+ throw new Error('Failed to fetch application configuration.');
31
+ })
32
+ .json();
33
+ if ((_a = response.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails) {
34
+ hydrateSuperChoiceDetailsDtoKind(response.superBuyer.superChoice.choiceDetails);
35
+ switch (response.superBuyer.superChoice.choiceDetails.kind) {
36
+ case 'Promoted':
37
+ hydratePromotedFundChoiceDtoKind(response.superBuyer.superChoice.choiceDetails.promoted);
38
+ break;
39
+ case 'Default':
40
+ case 'MyOwnFund':
41
+ case 'PromotedDefault':
42
+ case 'SMSF':
43
+ case 'DefinedBenefits':
44
+ case 'PromotedDefaultWithJoin':
45
+ break;
46
+ default:
47
+ assertExhaustive(response.superBuyer.superChoice.choiceDetails);
48
+ }
49
+ }
50
+ return response;
51
+ }
52
+ async clickPromotedTileAsync(payload) {
53
+ return buildBackendApiClient().url('click-promoted-tile').post(payload).res();
54
+ }
55
+ async viewSuperFundPanelAsync(payload) {
56
+ return buildBackendApiClient().url('view-super-fund-panel').post(payload).res();
57
+ }
58
+ toSearchFilterQueryString(searchFilter) {
59
+ return (`search=${searchFilter.searchString}` +
60
+ (searchFilter.maxRecordCount > 0 ? '&maxRecordCount=' + searchFilter.maxRecordCount : ''));
61
+ }
62
+ toQueryString(includeInactive, searchFilter) {
63
+ const search = this.toSearchFilterQueryString(searchFilter);
64
+ const inactive = includeInactive ? 'includeInactive=true' : '';
65
+ const isNotEmpty = (s) => s && s.length;
66
+ return [search, inactive].filter(isNotEmpty).join('&');
67
+ }
68
+ }
69
+ export default new SuperSelectionApi();
@@ -0,0 +1,36 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ import superSelectionAppService from '../services/super-selection-app.service';
3
+ export class Success {
4
+ constructor() {
5
+ this.ignorePopState = () => window.history.pushState(null, '', null);
6
+ }
7
+ connectedCallback() {
8
+ this.ignorePopState();
9
+ window.addEventListener('popstate', this.ignorePopState);
10
+ }
11
+ disconnectedCallback() {
12
+ window.removeEventListener('popstate', this.ignorePopState);
13
+ }
14
+ render() {
15
+ const CheckIcon = () => {
16
+ return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", class: "fill-primary-base" },
17
+ h("path", { d: "M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z" })));
18
+ };
19
+ return (h(Host, { class: "text-center" },
20
+ h("div", { class: "flex justify-center" },
21
+ h("div", { class: "relative" },
22
+ h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
23
+ h("div", { class: "h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2" },
24
+ h(CheckIcon, null)))),
25
+ h("h3", { class: "text-2xl leading-8 font-bold mt-4" }, "Your super choice has been submitted"),
26
+ h("p", { class: "mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto" }, "Your superannuation details have been updated successfully and will be submitted to your employer."),
27
+ h("div", { class: "flex justify-center mt-8" },
28
+ h("div", { class: "max-w-[200px] w-full" },
29
+ h("sss-button", { testid: "continue-button", size: "xl", fillWidth: true, onClick: this.handleContinueButtonClick },
30
+ h("span", null, "Continue"))))));
31
+ }
32
+ handleContinueButtonClick(_event) {
33
+ superSelectionAppService.completeSuperSelectionFlow();
34
+ }
35
+ static get is() { return "sss-success"; }
36
+ }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="#facc15">
2
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="#60a5fa">
2
+ <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
3
+ </svg>
@@ -0,0 +1,42 @@
1
+ import { Component, Fragment, h, Prop } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import navigationService from '../services/navigation.service';
4
+ import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
5
+ import superSelectionService from '../services/super-selection-app.service';
6
+ export class ChoiceRouter {
7
+ async componentWillLoad() {
8
+ if (superSelectionService.superCampaignCanNotBeActivated) {
9
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
10
+ }
11
+ else {
12
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign);
13
+ }
14
+ }
15
+ render() {
16
+ return h(Fragment, null);
17
+ }
18
+ static get is() { return "sss-choice-router"; }
19
+ static get properties() { return {
20
+ "history": {
21
+ "type": "unknown",
22
+ "mutable": false,
23
+ "complexType": {
24
+ "original": "RouterHistory",
25
+ "resolved": "RouterHistory",
26
+ "references": {
27
+ "RouterHistory": {
28
+ "location": "import",
29
+ "path": "@stencil/router"
30
+ }
31
+ }
32
+ },
33
+ "required": false,
34
+ "optional": false,
35
+ "docs": {
36
+ "tags": [],
37
+ "text": ""
38
+ }
39
+ }
40
+ }; }
41
+ }
42
+ injectHistory(ChoiceRouter);