@flarehr/apollo-super-selection 1.3.23382 → 1.3.23524

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/package.json +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.css +0 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
  4. package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
  5. package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +0 -3
  6. package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +0 -3
  7. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  8. package/dist/lib/apollo-super-selection/p-00241cf9.system.entry.js +0 -69
  9. package/dist/lib/apollo-super-selection/p-14885f78.system.js +0 -15
  10. package/dist/lib/apollo-super-selection/p-15f0e5eb.system.js +0 -1
  11. package/dist/lib/apollo-super-selection/p-22939048.system.entry.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-29c11183.js +0 -15
  14. package/dist/lib/apollo-super-selection/p-2b42304a.system.entry.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-33eca162.entry.js +0 -1
  16. package/dist/lib/apollo-super-selection/p-4e871154.entry.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-53b231f0.system.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-5c73c587.entry.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-69bbf1dd.entry.js +0 -1
  21. package/dist/lib/apollo-super-selection/p-71ca4cf8.system.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-86e3e03f.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-97188c78.system.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-9d2a7c0e.entry.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-a1e42dfa.entry.js +0 -14
  27. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +0 -1
  29. package/dist/lib/apollo-super-selection/p-c775c0e4.system.entry.js +0 -1
  30. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  31. package/dist/lib/apollo-super-selection/p-db0bded8.js +0 -1
  32. package/dist/lib/apollo-super-selection/p-e957b393.system.entry.js +0 -1
  33. package/dist/lib/apollo-super-selection/p-fdadb647.js +0 -1
  34. package/dist/lib/cjs/active-router-1f555f75.js +0 -75
  35. package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -22
  36. package/dist/lib/cjs/app-globals-b1125d8c.js +0 -25
  37. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  38. package/dist/lib/cjs/custom-fund-choice.api-293c1ace.js +0 -3209
  39. package/dist/lib/cjs/datorama-akita-6c9cb8fb.js +0 -3641
  40. package/dist/lib/cjs/index-eb4f212f.js +0 -1766
  41. package/dist/lib/cjs/index.cjs.js +0 -2
  42. package/dist/lib/cjs/loader.cjs.js +0 -24
  43. package/dist/lib/cjs/sss-button_32.cjs.entry.js +0 -14934
  44. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +0 -111
  45. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  46. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  47. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  48. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  49. package/dist/lib/collection/apollo-super-selection.css +0 -1
  50. package/dist/lib/collection/collection-manifest.json +0 -98
  51. package/dist/lib/collection/components/app-host/loading-page.js +0 -9
  52. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
  53. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
  54. package/dist/lib/collection/components/app-host/services/app-parameters.query.js +0 -13
  55. package/dist/lib/collection/components/app-host/services/app-parameters.service.js +0 -14
  56. package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -46
  57. package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
  58. package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
  59. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
  60. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
  61. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
  62. package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
  63. package/dist/lib/collection/components/app-host/services/session.store.js +0 -38
  64. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -24
  65. package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -87
  66. package/dist/lib/collection/components/external-loading-page/external-loading-page.js +0 -29
  67. package/dist/lib/collection/components/super-byof/super-byof-types.js +0 -1
  68. package/dist/lib/collection/components/super-byof/super-byof.form.js +0 -1
  69. package/dist/lib/collection/components/super-byof/super-byof.js +0 -139
  70. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +0 -49
  71. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +0 -121
  72. package/dist/lib/collection/components/super-campaign/super-campaign-types.js +0 -6
  73. package/dist/lib/collection/components/super-campaign/super-campaign.js +0 -210
  74. package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
  75. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
  76. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +0 -9
  77. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +0 -1
  78. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -16
  79. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -179
  80. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -69
  81. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -36
  82. package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +0 -3
  83. package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +0 -3
  84. package/dist/lib/collection/components/super-selection-app/choice/choice-router.js +0 -42
  85. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +0 -163
  86. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -39
  87. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
  88. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -50
  89. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -109
  90. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -36
  91. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -114
  92. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +0 -113
  93. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +0 -1
  94. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/member-name-input.js +0 -162
  95. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.js +0 -1
  96. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js +0 -115
  97. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.js +0 -11
  98. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
  99. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +0 -161
  100. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +0 -1
  101. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +0 -1
  102. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +0 -31
  103. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  104. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  105. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate.js +0 -4
  106. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +0 -37
  107. package/dist/lib/collection/components/super-selection-app/misc/button.js +0 -195
  108. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +0 -7
  109. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +0 -390
  110. package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +0 -52
  111. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +0 -22
  112. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +0 -42
  113. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +0 -66
  114. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +0 -121
  115. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +0 -145
  116. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +0 -223
  117. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +0 -398
  118. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +0 -288
  119. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +0 -37
  120. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +0 -81
  121. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -15
  122. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -117
  123. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +0 -134
  124. package/dist/lib/collection/components/super-selection-app/services/misc.service.js +0 -7
  125. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -31
  126. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -38
  127. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -171
  128. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -45
  129. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -155
  130. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +0 -11
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -27
  132. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -291
  133. package/dist/lib/collection/components/super-smsf/super-smsf-types.js +0 -1
  134. package/dist/lib/collection/components/super-smsf/super-smsf.form.js +0 -1
  135. package/dist/lib/collection/components/super-smsf/super-smsf.js +0 -166
  136. package/dist/lib/collection/global/init-host.js +0 -25
  137. package/dist/lib/collection/global/main.dev.js +0 -29
  138. package/dist/lib/collection/global/main.js +0 -11
  139. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  140. package/dist/lib/collection/index.js +0 -2
  141. package/dist/lib/collection/utils/config.js +0 -2
  142. package/dist/lib/collection/utils/gtm.js +0 -5
  143. package/dist/lib/collection/utils/iframe.js +0 -33
  144. package/dist/lib/collection/utils/index.js +0 -11
  145. package/dist/lib/collection/utils/lazy.js +0 -29
  146. package/dist/lib/collection/utils/storage.js +0 -5
  147. package/dist/lib/esm/active-router-d18b36fb.js +0 -73
  148. package/dist/lib/esm/apollo-super-selection.js +0 -20
  149. package/dist/lib/esm/app-globals-c1f89805.js +0 -23
  150. package/dist/lib/esm/context-consumer.entry.js +0 -25
  151. package/dist/lib/esm/custom-fund-choice.api-42801d64.js +0 -3188
  152. package/dist/lib/esm/datorama-akita-127aea91.js +0 -3624
  153. package/dist/lib/esm/index-107d7c24.js +0 -1732
  154. package/dist/lib/esm/index.js +0 -1
  155. package/dist/lib/esm/loader.js +0 -20
  156. package/dist/lib/esm/polyfills/core-js.js +0 -11
  157. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  158. package/dist/lib/esm/polyfills/dom.js +0 -79
  159. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  160. package/dist/lib/esm/polyfills/index.js +0 -34
  161. package/dist/lib/esm/polyfills/system.js +0 -6
  162. package/dist/lib/esm/sss-button_32.entry.js +0 -14879
  163. package/dist/lib/esm/sss-super-byof-host.entry.js +0 -107
  164. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  165. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  166. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  167. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  168. package/dist/lib/esm-es5/active-router-d18b36fb.js +0 -1
  169. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  170. package/dist/lib/esm-es5/app-globals-c1f89805.js +0 -1
  171. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  172. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
  173. package/dist/lib/esm-es5/datorama-akita-127aea91.js +0 -15
  174. package/dist/lib/esm-es5/index-107d7c24.js +0 -1
  175. package/dist/lib/esm-es5/index.js +0 -0
  176. package/dist/lib/esm-es5/loader.js +0 -1
  177. package/dist/lib/esm-es5/sss-button_32.entry.js +0 -69
  178. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +0 -1
  179. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  180. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  181. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  182. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  183. package/dist/lib/index.cjs.js +0 -1
  184. package/dist/lib/index.js +0 -1
  185. package/dist/lib/loader/cdn.js +0 -3
  186. package/dist/lib/loader/index.cjs.js +0 -3
  187. package/dist/lib/loader/index.d.ts +0 -13
  188. package/dist/lib/loader/index.es2017.js +0 -3
  189. package/dist/lib/loader/index.js +0 -4
  190. package/dist/lib/loader/package.json +0 -10
  191. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  192. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  193. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  194. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  195. package/dist/lib/types/components/app-host/services/app-parameters.query.d.ts +0 -10
  196. package/dist/lib/types/components/app-host/services/app-parameters.service.d.ts +0 -6
  197. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -15
  198. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  199. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  200. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  201. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  202. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  203. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  204. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -31
  205. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -15
  206. package/dist/lib/types/components/super-byof/super-byof-types.d.ts +0 -26
  207. package/dist/lib/types/components/super-byof/super-byof.d.ts +0 -19
  208. package/dist/lib/types/components/super-byof/super-byof.form.d.ts +0 -6
  209. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +0 -12
  210. package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +0 -15
  211. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +0 -98
  212. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -27
  213. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  214. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  215. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +0 -6
  216. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +0 -7
  217. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -171
  218. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  219. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -248
  220. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -7
  221. package/dist/lib/types/components/super-selection-app/choice/choice-router.d.ts +0 -6
  222. package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +0 -12
  223. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -5
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -10
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -43
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  227. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -27
  228. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -13
  229. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +0 -18
  230. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +0 -26
  231. package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +0 -14
  232. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.d.ts +0 -15
  233. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.d.ts +0 -20
  234. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.d.ts +0 -1
  235. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  236. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +0 -28
  237. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +0 -15
  238. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +0 -8
  239. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +0 -23
  240. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  241. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -9
  242. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +0 -4
  243. package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/misc/button.d.ts +0 -14
  245. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +0 -52
  246. package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +0 -5
  247. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +0 -9
  248. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +0 -5
  249. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +0 -5
  250. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +0 -18
  251. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +0 -28
  252. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +0 -30
  253. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +0 -52
  254. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +0 -95
  255. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +0 -4
  256. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +0 -14
  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 -25
  259. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +0 -75
  260. package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +0 -6
  261. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -17
  262. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -19
  263. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -43
  264. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -37
  265. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -16
  266. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +0 -42
  267. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -27
  268. package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +0 -34
  269. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +0 -20
  270. package/dist/lib/types/components/super-smsf/super-smsf.form.d.ts +0 -15
  271. package/dist/lib/types/components.d.ts +0 -522
  272. package/dist/lib/types/global/init-host.d.ts +0 -1
  273. package/dist/lib/types/global/main.d.ts +0 -1
  274. package/dist/lib/types/global/main.dev.d.ts +0 -1
  275. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  276. package/dist/lib/types/index.d.ts +0 -2
  277. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  278. package/dist/lib/types/utils/config.d.ts +0 -2
  279. package/dist/lib/types/utils/gtm.d.ts +0 -7
  280. package/dist/lib/types/utils/iframe.d.ts +0 -13
  281. package/dist/lib/types/utils/index.d.ts +0 -4
  282. package/dist/lib/types/utils/lazy.d.ts +0 -12
  283. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,155 +0,0 @@
1
- import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
2
- import * as O from 'fp-ts/Option';
3
- import { assertExhaustive } from '../../../utils';
4
- import { EventTrackingService } from '../services/event-tracking.service';
5
- import navigationService from '../services/navigation.service';
6
- import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
7
- import superSelectionAppService from '../services/super-selection-app.service';
8
- import standardChoiceFormState from './standard-choice-form.store';
9
- export class StandardChoiceFormInputDefaultFund {
10
- constructor() {
11
- this.standardChoiceFormSignature = '';
12
- this.isSubmitDisabled = true;
13
- this.eventTrackingService = EventTrackingService.Instance;
14
- this.ignorePopState = () => window.history.pushState(null, '', null);
15
- }
16
- connectedCallback() {
17
- this.ignorePopState();
18
- window.addEventListener('popstate', this.ignorePopState);
19
- }
20
- disconnectedCallback() {
21
- window.removeEventListener('popstate', this.ignorePopState);
22
- }
23
- render() {
24
- return (h(Host, null,
25
- h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"),
26
- h("div", { class: "sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8" }, "Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."),
27
- h("div", { class: "flex justify-center mt-8 sm:mt-12" },
28
- h("div", { class: "max-w-560" },
29
- h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" },
30
- this.renderLogo(),
31
- h("div", { class: "flex justify-between w-full" },
32
- h("div", null,
33
- h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"),
34
- h("div", { class: "text-sm mt-2" }, standardChoiceFormState.fundName)),
35
- h("div", { class: "grid content-center ml-4" },
36
- h("sss-button", { testid: "change-fund-button", size: "xs", variant: "secondary", promiseFn: async () => {
37
- await this.trackChangeRequestedAsync();
38
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
39
- } }, "Change")))),
40
- h("div", { class: "mt-4 p-4 sm:p-6 border shadow-sm rounded-lg" },
41
- h("div", { class: "sm:text-lg font-bold" }, "Superannuation Standard Choice Form"),
42
- h("div", { class: "bg-blue-50 border-l-4 border-blue-400 p-4 mt-3" },
43
- h("div", { class: "flex" },
44
- h("div", { class: "flex-shrink-0" },
45
- h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-information-circle.svg') })),
46
- h("div", { class: "ml-2" },
47
- h("p", { class: "text-sm text-blue-800 leading-5" }, "Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))),
48
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
49
- 'mt-3': true,
50
- 'was-validated': this.formState === 'validated'
51
- }, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = !this.formElement.checkValidity()) },
52
- h("label", { class: "text-sm font-medium text-gray-700" }, "Type your full name"),
53
- h("input", { "data-testid": "standard-choice-form-signature-input", type: "text", autocomplete: "off", class: {
54
- 'shadow-sm focus:ring-primary-focus focus:border-primary-focus w-full text-base sm:text-sm border-gray-300 rounded-md mt-1': true,
55
- 'invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500': this.formState === 'validated'
56
- }, required: true, minlength: "2", name: "standardChoiceFormSignature", id: "standardChoiceFormSignature", value: this.standardChoiceFormSignature, onInput: (event) => (this.standardChoiceFormSignature = event.target.value) }),
57
- h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Type your full name"),
58
- h("div", { class: "mt-6" },
59
- h("sss-button", { testid: "confirm-and-continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Confirm and continue"))))))));
60
- }
61
- // TODO: fetch external promoted fund logo
62
- renderLogo() {
63
- return;
64
- // if (standardChoiceFormState.promotedFundId == undefined) return;
65
- // const logoSource = getLogoSrcByFundId(standardChoiceFormState.promotedFundId);
66
- // if (isSome(logoSource)) {
67
- // return (
68
- // <div class="pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start">
69
- // <img
70
- // class="h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain"
71
- // alt={standardChoiceFormState.fundName}
72
- // src={logoSource.value}
73
- // />
74
- // </div>
75
- // );
76
- // }
77
- }
78
- async trackChangeRequestedAsync() {
79
- const common = {
80
- promotedFundsShown: superSelectionAppService.promotedFunds,
81
- defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
82
- };
83
- switch (standardChoiceFormState.fundDetails.type) {
84
- case 'default':
85
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
86
- DefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
87
- });
88
- break;
89
- case 'myOwnFund':
90
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
91
- MyOwnFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
92
- });
93
- break;
94
- case 'smsf':
95
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
96
- Smsf: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
97
- });
98
- break;
99
- case 'promoted':
100
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
101
- PromotedFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
102
- });
103
- break;
104
- case 'promotedDefault':
105
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
106
- PromotedDefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
107
- });
108
- break;
109
- case 'promotedDefaultWithJoin':
110
- await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
111
- PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
112
- });
113
- break;
114
- case 'null':
115
- throw 'standardChoiceFormState.fundDetails was not set';
116
- default:
117
- assertExhaustive(standardChoiceFormState.fundDetails);
118
- }
119
- }
120
- async handleSubmitForm() {
121
- this.formState = 'validated';
122
- if (this.formElement.checkValidity()) {
123
- await standardChoiceFormState.handleSubmitFn(this.standardChoiceFormSignature.trim());
124
- superSelectionAppService.markSuperSelectionAsSubmitted();
125
- }
126
- }
127
- static get is() { return "sss-standard-choice-form"; }
128
- static get properties() { return {
129
- "history": {
130
- "type": "unknown",
131
- "mutable": false,
132
- "complexType": {
133
- "original": "RouterHistory",
134
- "resolved": "RouterHistory",
135
- "references": {
136
- "RouterHistory": {
137
- "location": "import",
138
- "path": "@stencil/router"
139
- }
140
- }
141
- },
142
- "required": false,
143
- "optional": false,
144
- "docs": {
145
- "tags": [],
146
- "text": ""
147
- }
148
- }
149
- }; }
150
- static get states() { return {
151
- "standardChoiceFormSignature": {},
152
- "formState": {},
153
- "isSubmitDisabled": {}
154
- }; }
155
- }
@@ -1,11 +0,0 @@
1
- import { createStore } from '@stencil/store';
2
- export const initial = {
3
- handleSubmitFn: async function () {
4
- return;
5
- },
6
- fundName: '',
7
- fundDetails: { type: 'null' },
8
- promotedFundId: undefined
9
- };
10
- const { state } = createStore(initial);
11
- export default state;
@@ -1,27 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- stencil-route {
6
- display: flex;
7
- flex: 1 1 auto;
8
- justify-content: center;
9
- }
10
- stencil-route:empty {
11
- display: none;
12
- }
13
-
14
- input + .invalid-feedback {
15
- display: none;
16
- }
17
-
18
- select + .invalid-feedback {
19
- display: none;
20
- }
21
-
22
- .was-validated input:invalid + .invalid-feedback {
23
- display: block;
24
- }
25
- .was-validated select:invalid + .invalid-feedback {
26
- display: block;
27
- }
@@ -1,291 +0,0 @@
1
- import { Component, Event, getAssetPath, h, Host, Prop, State, Watch } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import * as O from 'fp-ts/lib/Option';
4
- import { isNone, isSome } from 'fp-ts/lib/Option';
5
- import iframe from '../../utils/iframe';
6
- import existingFundService from './services/existing-super-choice-info.service';
7
- import navigationService from './services/navigation.service';
8
- import { SuperSelectionAppRoutes, superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
9
- import superSelectionAppService from './services/super-selection-app.service';
10
- export class SuperSelectionApp {
11
- constructor() {
12
- this.isSelfHosted = false;
13
- this.isAppInitialised = false;
14
- }
15
- async componentWillLoad() {
16
- const jwt = O.fromNullable(this.accessToken);
17
- if (O.isNone(jwt)) {
18
- throw Error(`jwt property is missing.`);
19
- }
20
- superSelectionAppService.state.jwt = jwt;
21
- const apiBaseUrl = O.fromNullable(this.backendUrl);
22
- if (O.isNone(apiBaseUrl)) {
23
- throw Error(`apiBaseUrl property is missing.`);
24
- }
25
- superSelectionAppService.state.apiBaseUrl = O.some(apiBaseUrl.value.replace(/\/$/, '') + '/');
26
- const appBaseUrl = O.fromNullable(this.appBaseUrl);
27
- if (O.isNone(appBaseUrl)) {
28
- throw Error(`appBaseUrl property is missing.`);
29
- }
30
- superSelectionAppService.state.appBaseUrl = O.some(appBaseUrl.value.replace(/\/$/, ''));
31
- superSelectionAppService.onChange('hasSuccessPageBeenAcknowledged', (_) => this.successPageAcknowledged.emit());
32
- superSelectionAppService.onChange('hasSuperSelectionBeenSubmitted', (submitted) => {
33
- if (!submitted)
34
- return;
35
- this.stepSubmitSuccess.emit();
36
- superSelectionAppService.state.hasSuperSelectionBeenSubmitted = false;
37
- if (this.isSelfHosted) {
38
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
39
- }
40
- });
41
- }
42
- async componentDidLoad() {
43
- await superSelectionAppService.loadAppStateAsync();
44
- const chosenFundOption = await existingFundService.GetExistingFundAsync();
45
- this.isAppInitialised = true;
46
- this.initialised.emit({
47
- accountIdOrDefault: superSelectionAppService.accountIdOrDefault,
48
- partnerIdOrDefault: superSelectionAppService.partnerIdOrDefault,
49
- profileId: superSelectionAppService.profileId
50
- });
51
- iframe.appReady();
52
- const ignoreExistingSelectionOption = O.fromNullable(this.ignoreExistingSelection);
53
- const shouldIgnoreExistingDefinedBenefitsChoice = isSome(chosenFundOption) &&
54
- chosenFundOption.value.type == 'Defined Benefits Fund' &&
55
- (isNone(superSelectionAppService.isDefinedBenefitsEligible) ||
56
- !superSelectionAppService.isDefinedBenefitsEligible.value);
57
- const shouldIgnoreExistingChoice = (isSome(ignoreExistingSelectionOption) && ignoreExistingSelectionOption.value) ||
58
- shouldIgnoreExistingDefinedBenefitsChoice;
59
- if (isSome(superSelectionAppService.state.superChoicePrefill)) {
60
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Prefill);
61
- }
62
- else if (isSome(chosenFundOption) &&
63
- chosenFundOption.value.valid !== 'Inactive' &&
64
- !shouldIgnoreExistingChoice) {
65
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ExistingChoicePage);
66
- }
67
- else {
68
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
69
- }
70
- }
71
- authTokenChanged(newValue) {
72
- superSelectionAppService.state.jwt = O.fromNullable(newValue);
73
- }
74
- onRouteChange() {
75
- window === null || window === void 0 ? void 0 : window.scroll(0, 0);
76
- }
77
- render() {
78
- return (h(Host, null,
79
- h("link", { rel: "stylesheet", href: getAssetPath('apollo-super-selection.css'), media: "all" }),
80
- this.renderAppContent()));
81
- }
82
- routerBaseUrl() {
83
- var _a;
84
- return ((_a = this.appBaseUrl) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '')) + '/';
85
- }
86
- renderAppContent() {
87
- return (h("stencil-router", { root: this.routerBaseUrl(), class: "font-inter" },
88
- h("stencil-route-switch", { scrollTopOffset: 0 }, this.isAppInitialised ? (h("div", { class: "pt-28 -mt-12 pb-6" },
89
- superSelectionAppStencilRoutes,
90
- h("sss-footer-section", null))) : (h("div", { class: "flex justify-center py-20" },
91
- h("sss-loading-indicator", null))))));
92
- }
93
- static get is() { return "super-selection-app"; }
94
- static get encapsulation() { return "shadow"; }
95
- static get originalStyleUrls() { return {
96
- "$": ["super-selection-app.scss"]
97
- }; }
98
- static get styleUrls() { return {
99
- "$": ["super-selection-app.css"]
100
- }; }
101
- static get assetsDirs() { return ["assets"]; }
102
- static get properties() { return {
103
- "ignoreExistingSelection": {
104
- "type": "boolean",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "boolean",
108
- "resolved": "boolean | undefined",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": true,
113
- "docs": {
114
- "tags": [],
115
- "text": ""
116
- },
117
- "attribute": "ignore-existing-selection",
118
- "reflect": false
119
- },
120
- "accessToken": {
121
- "type": "string",
122
- "mutable": false,
123
- "complexType": {
124
- "original": "string",
125
- "resolved": "string",
126
- "references": {}
127
- },
128
- "required": false,
129
- "optional": false,
130
- "docs": {
131
- "tags": [],
132
- "text": ""
133
- },
134
- "attribute": "access-token",
135
- "reflect": false
136
- },
137
- "backendUrl": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string",
142
- "resolved": "string | undefined",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": true,
147
- "docs": {
148
- "tags": [],
149
- "text": ""
150
- },
151
- "attribute": "backend-url",
152
- "reflect": false
153
- },
154
- "appBaseUrl": {
155
- "type": "string",
156
- "mutable": false,
157
- "complexType": {
158
- "original": "string",
159
- "resolved": "string | undefined",
160
- "references": {}
161
- },
162
- "required": false,
163
- "optional": true,
164
- "docs": {
165
- "tags": [],
166
- "text": ""
167
- },
168
- "attribute": "app-base-url",
169
- "reflect": false
170
- },
171
- "history": {
172
- "type": "unknown",
173
- "mutable": false,
174
- "complexType": {
175
- "original": "RouterHistory",
176
- "resolved": "RouterHistory",
177
- "references": {
178
- "RouterHistory": {
179
- "location": "import",
180
- "path": "@stencil/router"
181
- }
182
- }
183
- },
184
- "required": false,
185
- "optional": false,
186
- "docs": {
187
- "tags": [],
188
- "text": ""
189
- }
190
- },
191
- "location": {
192
- "type": "unknown",
193
- "mutable": false,
194
- "complexType": {
195
- "original": "LocationSegments",
196
- "resolved": "LocationSegments | undefined",
197
- "references": {
198
- "LocationSegments": {
199
- "location": "import",
200
- "path": "@stencil/router"
201
- }
202
- }
203
- },
204
- "required": false,
205
- "optional": true,
206
- "docs": {
207
- "tags": [],
208
- "text": ""
209
- }
210
- },
211
- "isSelfHosted": {
212
- "type": "boolean",
213
- "mutable": false,
214
- "complexType": {
215
- "original": "boolean",
216
- "resolved": "boolean",
217
- "references": {}
218
- },
219
- "required": false,
220
- "optional": false,
221
- "docs": {
222
- "tags": [],
223
- "text": ""
224
- },
225
- "attribute": "is-self-hosted",
226
- "reflect": false,
227
- "defaultValue": "false"
228
- }
229
- }; }
230
- static get states() { return {
231
- "isAppInitialised": {}
232
- }; }
233
- static get events() { return [{
234
- "method": "stepSubmitSuccess",
235
- "name": "step-completion",
236
- "bubbles": true,
237
- "cancelable": true,
238
- "composed": true,
239
- "docs": {
240
- "tags": [],
241
- "text": ""
242
- },
243
- "complexType": {
244
- "original": "void",
245
- "resolved": "void",
246
- "references": {}
247
- }
248
- }, {
249
- "method": "successPageAcknowledged",
250
- "name": "successPageAcknowledged",
251
- "bubbles": true,
252
- "cancelable": true,
253
- "composed": false,
254
- "docs": {
255
- "tags": [],
256
- "text": ""
257
- },
258
- "complexType": {
259
- "original": "void",
260
- "resolved": "void",
261
- "references": {}
262
- }
263
- }, {
264
- "method": "initialised",
265
- "name": "initialised",
266
- "bubbles": true,
267
- "cancelable": true,
268
- "composed": true,
269
- "docs": {
270
- "tags": [],
271
- "text": ""
272
- },
273
- "complexType": {
274
- "original": "InitialisedWith",
275
- "resolved": "{ accountIdOrDefault: string; partnerIdOrDefault: string; profileId: string; }",
276
- "references": {
277
- "InitialisedWith": {
278
- "location": "local"
279
- }
280
- }
281
- }
282
- }]; }
283
- static get watchers() { return [{
284
- "propName": "accessToken",
285
- "methodName": "authTokenChanged"
286
- }, {
287
- "propName": "location",
288
- "methodName": "onRouteChange"
289
- }]; }
290
- }
291
- injectHistory(SuperSelectionApp);
@@ -1 +0,0 @@
1
- export const LoadWaitingTimeout = 30000;
@@ -1,166 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import { isSome, toUndefined } from 'fp-ts/lib/Option';
4
- import customFundChoiceApi from '../super-selection-app/funds/custom-fund/api/custom-fund-choice.api';
5
- import customFundState from '../super-selection-app/funds/custom-fund/custom-fund.store';
6
- import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
7
- import navigationService from '../super-selection-app/services/navigation.service';
8
- import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
9
- import superSelectionAppService from '../super-selection-app/services/super-selection-app.service';
10
- import { LoadWaitingTimeout } from './super-smsf-types';
11
- var SuperSmsfComponentStatus;
12
- (function (SuperSmsfComponentStatus) {
13
- SuperSmsfComponentStatus[SuperSmsfComponentStatus["NotLoaded"] = 1] = "NotLoaded";
14
- SuperSmsfComponentStatus[SuperSmsfComponentStatus["Loaded"] = 2] = "Loaded";
15
- })(SuperSmsfComponentStatus || (SuperSmsfComponentStatus = {}));
16
- let superSmsfComponentStatus = SuperSmsfComponentStatus.NotLoaded;
17
- export class SuperSmsfHost {
18
- constructor() {
19
- this.eventTrackingService = EventTrackingService.Instance;
20
- this.subscribeToSuperSmsfEvents = () => {
21
- for (const eventName in this.smsfEventHandlers) {
22
- document.addEventListener(eventName, this.smsfEventHandlers[eventName]);
23
- }
24
- };
25
- this.unSubscribeFromSuperSmsfEvents = () => {
26
- for (const eventName in this.smsfEventHandlers) {
27
- document.removeEventListener(eventName, this.smsfEventHandlers[eventName]);
28
- }
29
- };
30
- this.smsfLoaded = async (event) => {
31
- if (event.detail.sender === 'super-smsf') {
32
- superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
33
- clearTimeout(this.loadingTimeoutRef);
34
- await this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
35
- promotedFundsShown: superSelectionAppService.promotedFunds,
36
- defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
37
- });
38
- }
39
- return Promise.resolve();
40
- };
41
- this.smsfCompleted = async (event) => {
42
- if (event.detail.sender === 'super-smsf') {
43
- this.updateCustomFundStateStore(event.detail);
44
- if (superSelectionAppService.isSmsfCustomStepEnabled &&
45
- superSelectionAppService.isUsingSuperCampaign) {
46
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SmsfEngagementStep);
47
- return;
48
- }
49
- navigationService.navigateInternallyToStandardChoice({
50
- history: this.history,
51
- fundName: 'Self-managed super fund',
52
- fundDetails: {
53
- type: 'smsf',
54
- fundName: event.detail.fundName,
55
- fundEsa: event.detail.fundEsa
56
- },
57
- handleSubmitFn: async (standardChoiceFormSignature) => {
58
- const requestDto = Object.assign({ smsfChoice: {
59
- abn: event.detail.fundAbn,
60
- fundName: event.detail.fundName,
61
- fundAddress: {
62
- addressLine1: event.detail.fundAddressLine1,
63
- addressLine2: event.detail.fundAddressLine2,
64
- city: event.detail.fundCity,
65
- state: event.detail.fundState,
66
- postcode: event.detail.fundPostcode
67
- },
68
- bsb: event.detail.bankBsb,
69
- bankAccountName: event.detail.bankAccountName,
70
- bankAccountNumber: event.detail.bankAccountNumber,
71
- electronicServiceAddress: event.detail.fundEsa,
72
- memberFirstName: event.detail.memberFirstName,
73
- memberFamilyName: event.detail.memberLastName
74
- }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
75
- await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
76
- }
77
- });
78
- }
79
- };
80
- this.smsfCancelled = async (event) => {
81
- if (event.detail.sender === 'super-smsf') {
82
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
83
- }
84
- };
85
- this.smsfEventHandlers = {
86
- 'smsf-loaded': this.smsfLoaded.bind(this),
87
- 'smsf-completed': this.smsfCompleted.bind(this),
88
- 'smsf-cancelled': this.smsfCancelled.bind(this)
89
- };
90
- }
91
- async componentWillLoad() {
92
- if (isSome(superSelectionAppService.backendUrl) && isSome(superSelectionAppService.state.jwt)) {
93
- this.backendUrl = superSelectionAppService.backendUrl.value;
94
- this.accessToken = superSelectionAppService.state.jwt.value;
95
- if (superSmsfComponentStatus === SuperSmsfComponentStatus.NotLoaded) {
96
- this.loadingTimeoutRef = setTimeout(this.smsfLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
97
- }
98
- this.subscribeToSuperSmsfEvents();
99
- }
100
- else {
101
- throw Error(`SuperSmsfHost pre-requisites not met.`);
102
- }
103
- }
104
- disconnectedCallback() {
105
- clearTimeout(this.loadingTimeoutRef);
106
- this.unSubscribeFromSuperSmsfEvents();
107
- }
108
- render() {
109
- return (h(Host, null,
110
- h("sss-header-section", null),
111
- h("div", { class: "flex justify-center mt-11" },
112
- h("sss-custom-fund", null,
113
- h("div", null,
114
- h("apollo-super-smsf", { "backend-url": this.backendUrl, "access-token": this.accessToken }))))));
115
- }
116
- updateCustomFundStateStore(details) {
117
- customFundState.selfManagedFundForm = {
118
- fundAbn: details.fundAbn,
119
- fundName: details.fundName,
120
- addressLine1: details.fundAddressLine1,
121
- addressLine2: details.fundAddressLine2,
122
- city: details.fundCity,
123
- state: details.fundState,
124
- postcode: details.fundPostcode,
125
- bsb: details.bankBsb,
126
- bankAccountName: details.bankAccountName,
127
- bankAccountNumber: details.bankAccountNumber,
128
- fundEsa: details.fundEsa,
129
- memberFirstName: details.memberFirstName,
130
- memberFamilyName: details.memberLastName
131
- };
132
- }
133
- async smsfLoadingTimeoutTriggered() {
134
- if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
135
- throw Error(`SMSF component failed to load.`);
136
- }
137
- }
138
- static get is() { return "sss-super-smsf-host"; }
139
- static get properties() { return {
140
- "history": {
141
- "type": "unknown",
142
- "mutable": false,
143
- "complexType": {
144
- "original": "RouterHistory",
145
- "resolved": "RouterHistory",
146
- "references": {
147
- "RouterHistory": {
148
- "location": "import",
149
- "path": "@stencil/router"
150
- }
151
- }
152
- },
153
- "required": false,
154
- "optional": false,
155
- "docs": {
156
- "tags": [],
157
- "text": ""
158
- }
159
- }
160
- }; }
161
- static get states() { return {
162
- "backendUrl": {},
163
- "accessToken": {}
164
- }; }
165
- }
166
- injectHistory(SuperSmsfHost);
@@ -1,25 +0,0 @@
1
- import appConfigurationService from '../components/app-host/services/app-configuration.service';
2
- import appParametersService from '../components/app-host/services/app-parameters.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 { Environment } from '../utils';
8
- import { addSlashToUrl } from '../utils';
9
- export default async function () {
10
- if (Environment !== 'prod') {
11
- // main.dev.ts does the bootstrapping in this case.
12
- return;
13
- }
14
- appParametersService.init(window.location.search);
15
- await appConfigurationService.loadConfigurationAsync();
16
- appInsights.init();
17
- addSlashToUrl();
18
- const doAuthFlow = sessionQuery.isUnauthorized ||
19
- authenticationService.authorizationCodeIsPresent(window.location.search);
20
- if (!doAuthFlow) {
21
- return;
22
- }
23
- hostInteropService.init(window.location.search);
24
- authenticationService.initFromRoute(window.location.search);
25
- }