@flarehr/apollo-super-selection 3.17.52693 → 3.17.52781

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/package.json +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
  4. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  5. package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +0 -1
  6. package/dist/lib/apollo-super-selection/p-082669d9.js +0 -1
  7. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  8. package/dist/lib/apollo-super-selection/p-20136efe.entry.js +0 -1
  9. package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +0 -1
  10. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  11. package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-38ee2795.system.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  14. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-574c7d9b.system.entry.js +0 -69
  16. package/dist/lib/apollo-super-selection/p-61734b66.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-89495496.entry.js +0 -14
  21. package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-abedb220.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  29. package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +0 -1
  30. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
  31. package/dist/lib/cjs/active-router-e92fd784.js +0 -75
  32. package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -23
  33. package/dist/lib/cjs/app-globals-45007120.js +0 -25
  34. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  35. package/dist/lib/cjs/datorama-akita-7f4b082a.js +0 -2704
  36. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  37. package/dist/lib/cjs/fl-button_44.cjs.entry.js +0 -17003
  38. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  39. package/dist/lib/cjs/index-942e6faa.js +0 -1767
  40. package/dist/lib/cjs/index.cjs.js +0 -2
  41. package/dist/lib/cjs/loader.cjs.js +0 -25
  42. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  43. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  44. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  45. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  46. package/dist/lib/collection/collection-manifest.json +0 -127
  47. package/dist/lib/collection/components/app-host/loading-page.js +0 -9
  48. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
  49. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
  50. package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -43
  51. package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
  52. package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
  53. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
  54. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
  55. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
  56. package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
  57. package/dist/lib/collection/components/app-host/services/session.store.js +0 -37
  58. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -28
  59. package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -92
  60. package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
  61. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
  62. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -1
  63. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -1
  64. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -30
  65. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -31
  66. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  67. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -29
  68. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
  69. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
  70. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -31
  71. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -68
  72. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -53
  73. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -108
  74. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -93
  75. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -103
  76. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
  77. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -153
  78. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +0 -1
  79. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -111
  80. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
  81. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +0 -52
  82. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  83. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  84. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
  85. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  86. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -95
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  104. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  105. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  106. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  107. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  108. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
  109. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
  110. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  112. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  113. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  114. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  115. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
  116. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
  117. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
  118. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  119. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  120. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
  121. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
  122. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -76
  123. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
  124. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  125. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
  126. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  127. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  128. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
  129. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
  130. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
  132. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
  133. package/dist/lib/collection/global/init-host.js +0 -22
  134. package/dist/lib/collection/global/main.dev.js +0 -26
  135. package/dist/lib/collection/global/main.js +0 -11
  136. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  137. package/dist/lib/collection/index.js +0 -2
  138. package/dist/lib/collection/utils/config.js +0 -2
  139. package/dist/lib/collection/utils/gtm.js +0 -5
  140. package/dist/lib/collection/utils/iframe.js +0 -33
  141. package/dist/lib/collection/utils/index.js +0 -8
  142. package/dist/lib/collection/utils/lazy.js +0 -29
  143. package/dist/lib/collection/utils/storage.js +0 -5
  144. package/dist/lib/esm/active-router-4c80d3d2.js +0 -73
  145. package/dist/lib/esm/apollo-super-selection.js +0 -21
  146. package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
  147. package/dist/lib/esm/context-consumer.entry.js +0 -25
  148. package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
  149. package/dist/lib/esm/delay-c0555599.js +0 -935
  150. package/dist/lib/esm/fl-button_44.entry.js +0 -16956
  151. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  152. package/dist/lib/esm/index-0496d1af.js +0 -1734
  153. package/dist/lib/esm/index.js +0 -1
  154. package/dist/lib/esm/loader.js +0 -21
  155. package/dist/lib/esm/polyfills/core-js.js +0 -11
  156. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  157. package/dist/lib/esm/polyfills/dom.js +0 -79
  158. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  159. package/dist/lib/esm/polyfills/index.js +0 -34
  160. package/dist/lib/esm/polyfills/system.js +0 -6
  161. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  162. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  163. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  164. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  165. package/dist/lib/esm-es5/active-router-4c80d3d2.js +0 -1
  166. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  167. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
  168. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  169. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  170. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  171. package/dist/lib/esm-es5/fl-button_44.entry.js +0 -69
  172. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  173. package/dist/lib/esm-es5/index-0496d1af.js +0 -1
  174. package/dist/lib/esm-es5/index.js +0 -0
  175. package/dist/lib/esm-es5/loader.js +0 -1
  176. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  177. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  178. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  179. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  180. package/dist/lib/index.cjs.js +0 -1
  181. package/dist/lib/index.js +0 -1
  182. package/dist/lib/loader/cdn.js +0 -3
  183. package/dist/lib/loader/index.cjs.js +0 -3
  184. package/dist/lib/loader/index.d.ts +0 -13
  185. package/dist/lib/loader/index.es2017.js +0 -3
  186. package/dist/lib/loader/index.js +0 -4
  187. package/dist/lib/loader/package.json +0 -10
  188. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  189. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  190. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  191. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  192. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  193. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  194. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  195. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  196. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  197. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  198. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
  199. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  200. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  201. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  202. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  203. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  204. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  205. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
  206. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
  207. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  208. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  209. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
  210. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  211. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -82
  212. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
  213. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
  214. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
  215. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
  216. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
  217. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  218. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
  219. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +0 -7
  227. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  228. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
  229. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  230. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  231. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  232. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  233. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  234. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  235. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  236. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  237. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  246. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  247. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  248. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
  249. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  250. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
  251. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
  252. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  253. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
  254. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  255. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  256. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  257. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
  258. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
  259. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
  260. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  261. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  262. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  263. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
  264. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -25
  265. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
  266. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  267. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
  268. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  269. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
  270. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
  271. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
  272. package/dist/lib/types/components.d.ts +0 -546
  273. package/dist/lib/types/global/init-host.d.ts +0 -1
  274. package/dist/lib/types/global/main.d.ts +0 -1
  275. package/dist/lib/types/global/main.dev.d.ts +0 -1
  276. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  277. package/dist/lib/types/index.d.ts +0 -2
  278. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  279. package/dist/lib/types/utils/config.d.ts +0 -2
  280. package/dist/lib/types/utils/gtm.d.ts +0 -7
  281. package/dist/lib/types/utils/iframe.d.ts +0 -13
  282. package/dist/lib/types/utils/index.d.ts +0 -3
  283. package/dist/lib/types/utils/lazy.d.ts +0 -12
  284. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,28 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .sss-app-container {
10
- --fl-color-primary: #00aa65;
11
- --fl-color-primary-light: #66d7a9;
12
- --fl-color-primary-dark: #00aa65;
13
- --fl-color-primary-disabled: #66d7a9;
14
- --fl-color-primary-hover: #00aa65;
15
- --fl-color-primary-focus: #00aa65;
16
- --fl-color-primary-text: white;
17
- --fl-color-secondary: #e5e5e5;
18
- --fl-color-secondary-hover: #b3b3b3;
19
- --fl-color-secondary-focus: #b3b3b3;
20
- }
21
-
22
- @media screen and (-webkit-min-device-pixel-ratio: 0) {
23
- select,
24
- textarea,
25
- input {
26
- font-size: 16px;
27
- }
28
- }
@@ -1,92 +0,0 @@
1
- import '@flarehr/beacon';
2
- import { ResizeObserver as ResizeObserverPolyfill } from '@juggle/resize-observer';
3
- import { Component, h, Host, State } from '@stencil/core';
4
- import { isNone, toUndefined } from 'fp-ts/lib/Option';
5
- import initHost from '../../global/init-host';
6
- import iframe from '../../utils/iframe';
7
- import appInsights from '../app-host/services/appinsights.service';
8
- import appConfigurationQuery from './services/app-configuration.query';
9
- import appConfigurationService from './services/app-configuration.service';
10
- import sessionQuery from './services/authentication.query';
11
- import hostInteropService from './services/interop/host-interop.service';
12
- import { AuthenticationState } from './services/session.store';
13
- export class SuperSelectionAppHost {
14
- constructor() {
15
- this.areStylesLoaded = false;
16
- }
17
- async componentWillLoad() {
18
- await initHost();
19
- sessionQuery.sessionState$.subscribe((updatedState) => (this.sessionState = updatedState));
20
- sessionQuery.jwt$.subscribe((newToken) => (this.jwt = newToken));
21
- appConfigurationQuery.appConfiguration$.subscribe((updatedConfiguration) => (this.appConfiguration = updatedConfiguration));
22
- }
23
- render() {
24
- if (isNone(this.appConfiguration))
25
- return h("sss-loading-page", null);
26
- return (h(Host, { class: "d-flex flex-fill flex-column justify-content-between" },
27
- this.fetchStyles(),
28
- this.areStylesLoaded && this.renderAppContent()));
29
- }
30
- fetchStyles() {
31
- return [
32
- h("link", { rel: "stylesheet", href: "https://npm-cdn.flarehr.com/@flarehr/beacon@dev/dist/beacon/beacon.css", media: "all", onLoad: () => (this.areStylesLoaded = true) })
33
- ];
34
- }
35
- renderAppContent() {
36
- return (h("stencil-router", { root: appConfigurationService.getAppRootUrl(), class: "sss-app-container" },
37
- h("stencil-route-switch", { scrollTopOffset: 0 },
38
- h("stencil-route", { ref: (el) => this.observeContentResize(el), url: "/", routeRender: this.renderProtectedRoute((props) => (h("super-selection-app", Object.assign({ accessToken: toUndefined(this.jwt), backendUrl: appConfigurationQuery.configuration.ApiBaseUrl, appBaseUrl: this.getAppBaseUrl(), onSuccessPageAcknowledged: this.handleSuccessPageAcknowledged, "onStep-completion": this.handleStepSubmitSuccess, onInitialised: this.handleAppInitialised }, props)))) }))));
39
- }
40
- getAppBaseUrl() {
41
- const splits = window.location.pathname.split('app');
42
- return splits[0] + "app/";
43
- }
44
- handleSuccessPageAcknowledged() {
45
- hostInteropService.completeSuperSelectionStep();
46
- }
47
- handleStepSubmitSuccess() {
48
- iframe.submitSuccess();
49
- }
50
- handleAppInitialised(evt) {
51
- appInsights.addCustomProperties({
52
- 'X-ACCOUNT-ID': evt.detail.accountIdOrDefault,
53
- 'X-PARTNER-ID': evt.detail.partnerIdOrDefault,
54
- 'X-PROFILE-ID': evt.detail.profileId
55
- });
56
- appInsights.getAppInsights().trackPageView();
57
- const loadingPageContainer = document.getElementById('sss-external-loading-page-container');
58
- if (loadingPageContainer) {
59
- document.body.removeChild(loadingPageContainer);
60
- }
61
- }
62
- observeContentResize(appContent) {
63
- const ResizeObserver = window.ResizeObserver || ResizeObserverPolyfill;
64
- new ResizeObserver(() => {
65
- iframe.resize(appContent.offsetHeight, -1);
66
- }).observe(appContent);
67
- }
68
- renderProtectedRoute(renderProtectedComponent) {
69
- switch (this.sessionState) {
70
- case AuthenticationState.Authenticated:
71
- return renderProtectedComponent;
72
- case AuthenticationState.Unauthorized:
73
- return () => h("sss-loading-page", null);
74
- case AuthenticationState.Error:
75
- return () => h("h1", null, "Authentication Error");
76
- }
77
- }
78
- static get is() { return "super-selection-app-host"; }
79
- static get encapsulation() { return "shadow"; }
80
- static get originalStyleUrls() { return {
81
- "$": ["super-selection-app-host.scss"]
82
- }; }
83
- static get styleUrls() { return {
84
- "$": ["super-selection-app-host.css"]
85
- }; }
86
- static get states() { return {
87
- "sessionState": {},
88
- "jwt": {},
89
- "appConfiguration": {},
90
- "areStylesLoaded": {}
91
- }; }
92
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,30 +0,0 @@
1
- import { buildBackendApiClient } from './api-client';
2
- export class SuperSelectionApi {
3
- async getAustralianFundsAsync(searchFilter) {
4
- return buildBackendApiClient()
5
- .url(`super-choice/australian-funds?${this.toQueryString(searchFilter)}`)
6
- .get()
7
- .notFound(() => {
8
- throw new Error('Failed to fetch the list of australian super funds.');
9
- })
10
- .json();
11
- }
12
- async getAppStateAsync() {
13
- return buildBackendApiClient()
14
- .url('client-app-state')
15
- .get()
16
- .notFound(() => {
17
- throw new Error('Failed to fetch application configuration.');
18
- })
19
- .json();
20
- }
21
- toQueryString(searchFilter) {
22
- switch (searchFilter.type) {
23
- case 'partialMatch':
24
- return `search=${searchFilter.searchString}&maxRecordCount=${searchFilter.maxRecordCount}`;
25
- case 'usiMatch':
26
- return `usi=${searchFilter.usi}`;
27
- }
28
- }
29
- }
30
- export default new SuperSelectionApi();
@@ -1,31 +0,0 @@
1
- import { Component, h, Host } from '@stencil/core';
2
- import superSelectionAppService from '../services/super-selection-app.service';
3
- export class Success {
4
- render() {
5
- return (h(Host, { class: "d-flex flex-fill" },
6
- h("div", { class: "container mt-5" },
7
- h("div", { class: "row justify-content-center" },
8
- h("div", { class: "col col-sm-9 col-md-6" },
9
- h("div", { class: "bg-light rounded p-4" },
10
- h("div", { class: "d-flex justify-content-center" },
11
- h("div", null,
12
- h("svg", { width: "3em", height: "3em", viewBox: "0 0 16 16", class: "bi bi-check-circle-fill text-success", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" },
13
- h("path", { "fill-rule": "evenodd", d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" })))),
14
- h("div", { class: "d-flex justify-content-center" },
15
- h("p", { class: "mt-3 confirm-title text-center font-weight-bold px-5" }, "Successfully updated superannuation details")),
16
- h("div", { class: "mt-2 text-center" },
17
- h("p", { class: "confirm-text mb-0" }, "Your superannuation details have been updated successfully."),
18
- h("br", null),
19
- h("p", { class: "confirm-text mb-0" },
20
- "To continue with your onboarding, press ",
21
- h("strong", null, "Continue"),
22
- " below."))),
23
- h("div", { class: "flex-grow-1 mt-4" },
24
- h("fl-promise-button", { isBlockElement: true, onClick: this.handleContinueButtonClick },
25
- h("span", null, "Continue"))))))));
26
- }
27
- handleContinueButtonClick(_event) {
28
- superSelectionAppService.completeSuperSelectionFlow();
29
- }
30
- static get is() { return "sss-success"; }
31
- }
@@ -1,11 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .ss-footer-logo {
10
- max-width: 7rem;
11
- }
@@ -1,29 +0,0 @@
1
- import { Component, h } from '@stencil/core';
2
- import { AppVersion } from '../../../utils';
3
- import navigationService from '../services/navigation.service';
4
- export class FooterSection {
5
- render() {
6
- return (h("div", { class: "container mb-sm-0" },
7
- h("div", { class: "row justify-content-center mt-5 mb-3" },
8
- h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" },
9
- h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
10
- h("h5", { class: "font-weight-bold text-center mb-4" },
11
- h("span", { class: "text-dark mr-1" }, "Simple Financial"),
12
- h("span", { class: "simple-choices-text" }, "Choices")))),
13
- h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" },
14
- h("p", { class: "text-muted small" }, "Simple Financial Choices Pty Ltd is a wholly owned entity of Flare HR. SFC is not acting as a Corporate Authorised Representative for the purposes of any information provided about QSuper. Simple Financial Choices Pty Ltd (ABN 58 629 890 900; AFS Representative No. 001269407), is a Corporate Authorised Representative of True Oak Investments Ltd (ABN 81 002 558 956; AFS Licence No. 238184). Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by Simple Financial Choices Pty Ltd. SFC does not endorse or accept responsibility for any of the QSuper content shown as it is merely passing on QSuper Board's content as provided without any changes. SFC does not express any opinion or make any recommendation about QSuper.")),
15
- h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
16
- }
17
- appVersionBadge() {
18
- return (h("small", { style: { opacity: '0.5' }, class: "text-muted" },
19
- "Powered by Flare, v",
20
- AppVersion));
21
- }
22
- static get is() { return "sss-footer-section"; }
23
- static get originalStyleUrls() { return {
24
- "$": ["footer-section.scss"]
25
- }; }
26
- static get styleUrls() { return {
27
- "$": ["footer-section.css"]
28
- }; }
29
- }
@@ -1,13 +0,0 @@
1
- export const QSuperFundUsi = '60905115063001';
2
- export const QSuperFundId = 'qsuper';
3
- export const QSuperFundName = 'QSuper';
4
- export const QSuperAltFundName = 'Recognised performer';
5
- export const QSuperInsuranceProductName = 'QSuper Insurance';
6
- export const QSuperPdsUrl = 'https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf';
7
- export const QSuperMinAge = 14;
8
- export const QSuperMinInsuranceAge = 16;
9
- export const QSuperMaxAge = 70;
10
- export const SlateFundUsi = '32367272075001';
11
- export const SlateFundId = 'slate';
12
- export const SlateFundName = 'Slate Super';
13
- export const SlateAltFundName = 'Modern Digital Fund';
@@ -1,31 +0,0 @@
1
- import { buildBackendApiClient } from '../../../api/api-client';
2
- export class CustomFundChoiceApi {
3
- async submitDefaultFundChoiceAsync(dto) {
4
- return buildBackendApiClient()
5
- .url('super-choice/default')
6
- .post(dto)
7
- .badRequest(() => {
8
- throw new Error('Failed to process default fund join request');
9
- })
10
- .text();
11
- }
12
- async submitCustomFundChoiceAsync(dto) {
13
- return buildBackendApiClient()
14
- .url('super-choice/custom-fund')
15
- .post(dto)
16
- .badRequest(() => {
17
- throw new Error('Failed to process custom fund join request');
18
- })
19
- .text();
20
- }
21
- async submitSelfManagedFundChoiceAsync(dto) {
22
- return buildBackendApiClient()
23
- .url('super-choice/smsf')
24
- .post(dto)
25
- .badRequest(() => {
26
- throw new Error('Failed to process SMSF choice request');
27
- })
28
- .text();
29
- }
30
- }
31
- export default new CustomFundChoiceApi();
@@ -1,68 +0,0 @@
1
- import { Component, h, Prop, State } 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 customFundState from '../custom-fund/custom-fund.store';
6
- const customFundOptions = customFundState.customFunds;
7
- export class CustomFund {
8
- constructor() {
9
- this.currentCustomFund = customFundOptions[0];
10
- this.fundOptionsList = customFundOptions;
11
- }
12
- componentWillLoad() {
13
- let currentRoute = '';
14
- if (window.location.pathname.includes(SuperSelectionAppRoutes.MyOwnFund))
15
- currentRoute = SuperSelectionAppRoutes.MyOwnFund;
16
- if (window.location.pathname.includes(SuperSelectionAppRoutes.DefaultFund))
17
- currentRoute = SuperSelectionAppRoutes.DefaultFund;
18
- if (window.location.pathname.includes(SuperSelectionAppRoutes.SelfManagedFund))
19
- currentRoute = SuperSelectionAppRoutes.SelfManagedFund;
20
- this.currentCustomFund =
21
- customFundOptions.find((item) => item.value === currentRoute) || customFundOptions[0];
22
- navigationService.navigateInternally(this.history, currentRoute);
23
- }
24
- render() {
25
- return (h("div", { class: "container" },
26
- h("div", { class: "row justify-content-center" },
27
- h("div", { class: "col col-sm-10 col-md-7" },
28
- h("p", { class: "font-weight-bold text-center" }, "Choose your Super"),
29
- h("div", { class: "mb-4" },
30
- h("fl-dropdown", { options: this.fundOptionsList, required: true, requiredValidationMessage: "Select an option", placeholder: "Select...", value: this.currentCustomFund.value, onValueChanged: (ev) => this.handleChange(ev.detail.value.trim()) })),
31
- h("slot", null)))));
32
- }
33
- handleChange(value) {
34
- const newFund = customFundOptions.find((item) => item.value === value) || {
35
- value: SuperSelectionAppRoutes.MyOwnFund
36
- };
37
- navigationService.navigateInternally(this.history, newFund.value);
38
- }
39
- static get is() { return "sss-custom-fund"; }
40
- static get assetsDirs() { return ["assets"]; }
41
- static get properties() { return {
42
- "history": {
43
- "type": "unknown",
44
- "mutable": false,
45
- "complexType": {
46
- "original": "RouterHistory",
47
- "resolved": "RouterHistory",
48
- "references": {
49
- "RouterHistory": {
50
- "location": "import",
51
- "path": "@stencil/router"
52
- }
53
- }
54
- },
55
- "required": false,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": ""
60
- }
61
- }
62
- }; }
63
- static get states() { return {
64
- "currentCustomFund": {},
65
- "fundOptionsList": {}
66
- }; }
67
- }
68
- injectHistory(CustomFund);
@@ -1,53 +0,0 @@
1
- import { createStore } from '@stencil/store';
2
- import * as O from 'fp-ts/Option';
3
- import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
4
- var CustomFundTypes;
5
- (function (CustomFundTypes) {
6
- CustomFundTypes["MyOwnFund"] = "My Own Fund";
7
- CustomFundTypes["DefaultFund"] = "Default Fund";
8
- CustomFundTypes["SelfManagedFund"] = "Self Managed Fund";
9
- })(CustomFundTypes || (CustomFundTypes = {}));
10
- export const initialStateCustomFund = {
11
- continueAllowed: false,
12
- nextRoute: '/',
13
- myOwnFundForm: {
14
- fundUsi: O.none,
15
- memberNumber: O.none,
16
- standardChoiceFormSignature: O.none
17
- },
18
- defaultFundForm: {
19
- standardChoiceFormSignature: ''
20
- },
21
- selfManagedFundForm: {
22
- fundName: '',
23
- fundAbn: '',
24
- fundEsa: '',
25
- addressLine1: '',
26
- addressLine2: '',
27
- state: '',
28
- postcode: '',
29
- city: '',
30
- bankAccountName: '',
31
- bsb: '',
32
- bankAccountNumber: '',
33
- standardChoiceFormSignature: ''
34
- },
35
- currentCustomFundType: CustomFundTypes.MyOwnFund,
36
- customFunds: [
37
- {
38
- label: CustomFundTypes.MyOwnFund,
39
- value: SuperSelectionAppRoutes.MyOwnFund
40
- },
41
- {
42
- label: CustomFundTypes.DefaultFund,
43
- value: SuperSelectionAppRoutes.DefaultFund
44
- },
45
- {
46
- label: CustomFundTypes.SelfManagedFund,
47
- value: SuperSelectionAppRoutes.SelfManagedFund
48
- }
49
- ]
50
- };
51
- const { state, reset } = createStore(initialStateCustomFund);
52
- export const resetCustomFund = reset;
53
- export default state;
@@ -1,108 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import * as O from 'fp-ts/lib/Option';
3
- import australianFundLookupService from '../../../services/australian-fund-lookup.service';
4
- import { EventTrackingService } from '../../../services/event-tracking.service';
5
- import navigationService from '../../../services/navigation.service';
6
- import notificationsService from '../../../services/notifications.service';
7
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
8
- import superSelectionAppService from '../../../services/super-selection-app.service';
9
- import customFundChoiceApi from '../api/custom-fund-choice.api';
10
- import customFundState from '../custom-fund.store';
11
- export class DefaultFund {
12
- constructor() {
13
- this.defaultFundProductName = 'Loading fund...';
14
- this.eventTrackingService = EventTrackingService.Instance;
15
- }
16
- async componentWillLoad() {
17
- const defaultFundUsi = superSelectionAppService.defaultFundUsi;
18
- if (O.isNone(defaultFundUsi)) {
19
- return;
20
- }
21
- this.isDefaultFundExists = true;
22
- const defaultFundSearchResult = await australianFundLookupService.getFundByUsiAsync(defaultFundUsi.value);
23
- if (O.isNone(defaultFundSearchResult)) {
24
- this.isInvalidDefaultFund = true;
25
- notificationsService.showErrorNotification({
26
- title: 'Something is not right',
27
- description: `Couldn't find information about the configured default fund (USI ${defaultFundUsi.value})`
28
- });
29
- return;
30
- }
31
- this.defaultFund = defaultFundSearchResult.value;
32
- this.defaultFundProductName = defaultFundSearchResult.value.productName;
33
- }
34
- componentDidLoad() {
35
- return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
36
- fundUsi: this.defaultFund.usi,
37
- fundName: this.defaultFund.productName
38
- });
39
- }
40
- render() {
41
- const NoDefaultFundBlock = () => (h("div", { class: "card p-4" },
42
- h("p", { class: "font-weight-bold" }, "No Default Fund"),
43
- h("p", { class: "mb-4 small" }, "It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund.")));
44
- const DefaultFundBlock = (props) => [
45
- h("div", { class: "card p-4" },
46
- h("p", { class: "font-weight-bold" }, "Default Fund"),
47
- h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and submit. Your application to join the fund is subject to Trustee approval."),
48
- h("p", { class: "font-weight-bold mt-3" }, "Default Fund Name"),
49
- h("p", null, props.defaultFundName)),
50
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
51
- customFundState.defaultFundForm = Object.assign(Object.assign({}, customFundState.defaultFundForm), event.detail);
52
- } })
53
- ];
54
- return (h(Host, { class: "d-flex flex-fill" },
55
- h("sss-custom-fund", { class: "flex-fill" },
56
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
57
- 'was-validated': this.formState === 'validated'
58
- }, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (h(NoDefaultFundBlock, null))),
59
- h("div", { class: "mt-4" },
60
- h("sss-notifications-section", null)),
61
- h("div", { class: "d-flex mt-4" },
62
- h("div", { class: "flex-grow-1 w-50" },
63
- h("div", { class: "mr-2" },
64
- h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
65
- h("span", null, "Back")))),
66
- h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (h("div", { class: "ml-2" },
67
- h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() },
68
- h("span", null, "Submit")))))))));
69
- }
70
- async handleSubmitForm() {
71
- if (this.isInvalidDefaultFund) {
72
- return;
73
- }
74
- this.formState = 'validated';
75
- if (this.formElement.checkValidity()) {
76
- await customFundChoiceApi.submitDefaultFundChoiceAsync(customFundState.defaultFundForm);
77
- superSelectionAppService.markSuperSelectionAsSubmitted();
78
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
79
- }
80
- }
81
- static get is() { return "sss-default-fund"; }
82
- static get properties() { return {
83
- "history": {
84
- "type": "unknown",
85
- "mutable": false,
86
- "complexType": {
87
- "original": "RouterHistory",
88
- "resolved": "RouterHistory",
89
- "references": {
90
- "RouterHistory": {
91
- "location": "import",
92
- "path": "@stencil/router"
93
- }
94
- }
95
- },
96
- "required": false,
97
- "optional": false,
98
- "docs": {
99
- "tags": [],
100
- "text": ""
101
- }
102
- }
103
- }; }
104
- static get states() { return {
105
- "formState": {},
106
- "defaultFundProductName": {}
107
- }; }
108
- }
@@ -1,93 +0,0 @@
1
- import { Component, Event, h, Prop, State } from '@stencil/core';
2
- import * as O from 'fp-ts/Option';
3
- import australianFundLookupService from '../../../services/australian-fund-lookup.service';
4
- import customFundState from '../custom-fund.store';
5
- export class MyOwnFundInputs {
6
- constructor() {
7
- this.MIN_SEARCH_STRING_LENGTH = 3;
8
- this.MAX_RECORD_COUNT = 10;
9
- this.searchFundsAsync = async (searchBy) => {
10
- const funds = await australianFundLookupService.searchFundsAsync(searchBy, this.MAX_RECORD_COUNT);
11
- return funds
12
- .sort((a, b) => a.productName.localeCompare(b.productName))
13
- .map((fund) => ({
14
- label: `${fund.productName} (${fund.usi})`,
15
- value: fund.usi
16
- }));
17
- };
18
- }
19
- render() {
20
- return (h("div", null,
21
- h("div", { class: "" },
22
- h("label", { class: "mb-2 font-weight-bold" }, "Superannuation Fund Name"),
23
- h("fl-dropdown-async", { searchFunction: this.searchFundsAsync, minSearchStringLength: this.MIN_SEARCH_STRING_LENGTH, required: true, requiredValidationMessage: "Select a fund", placeholder: `Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`, value: this.selectedOption, onValueChanged: (ev) => {
24
- this.selectedOption = ev.detail;
25
- this.updateFundUsi(ev.detail.value.toString());
26
- } }),
27
- h("div", { class: "invalid-feedback" }, "Select a fund"),
28
- O.isSome(this.myOwnFundForm.fundUsi) && (h("div", null,
29
- h("label", { class: "mb-2 mt-3 font-weight-bold" }, "Superannuation Fund USI"),
30
- h("p", { class: "mb-0" }, this.myOwnFundForm.fundUsi.value),
31
- h("p", { class: "small mt-1" }, "Please ensure this is the correct fund USI as some funds have similar names")))),
32
- h("div", { class: "mt-4" },
33
- h("label", { class: "mb-2 font-weight-bold" }, "Member Number"),
34
- h("input", { placeholder: "Enter your member number", type: "text", class: "form-control", required: true, pattern: "[A-Za-z0-9]{4,16}", name: "memberNumber", id: "memberNumber", value: O.toUndefined(customFundState.myOwnFundForm.memberNumber), onChange: (ev) => this.updateMemberNumber(ev.target.value.trim()) }),
35
- h("div", { class: "invalid-feedback" }, "Enter a valid member number (only numbers and / or letters)"))));
36
- }
37
- updateFundUsi(usi) {
38
- this.formChanged.emit({ fundUsi: O.some(usi) });
39
- }
40
- updateMemberNumber(memberNumber) {
41
- this.formChanged.emit({ memberNumber: O.some(memberNumber) });
42
- }
43
- static get is() { return "sss-my-own-fund-inputs"; }
44
- static get properties() { return {
45
- "myOwnFundForm": {
46
- "type": "unknown",
47
- "mutable": false,
48
- "complexType": {
49
- "original": "MyOwnFundFormState",
50
- "resolved": "{ fundUsi: Option<string>; memberNumber: Option<string>; standardChoiceFormSignature: Option<string>; }",
51
- "references": {
52
- "MyOwnFundFormState": {
53
- "location": "import",
54
- "path": "../custom-fund.store"
55
- }
56
- }
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- }
64
- }
65
- }; }
66
- static get states() { return {
67
- "selectedOption": {}
68
- }; }
69
- static get events() { return [{
70
- "method": "formChanged",
71
- "name": "formChanged",
72
- "bubbles": true,
73
- "cancelable": true,
74
- "composed": true,
75
- "docs": {
76
- "tags": [],
77
- "text": ""
78
- },
79
- "complexType": {
80
- "original": "Partial<MyOwnFundFormState>",
81
- "resolved": "{ fundUsi?: None | Some<string> | undefined; memberNumber?: None | Some<string> | undefined; standardChoiceFormSignature?: None | Some<string> | undefined; }",
82
- "references": {
83
- "Partial": {
84
- "location": "global"
85
- },
86
- "MyOwnFundFormState": {
87
- "location": "import",
88
- "path": "../custom-fund.store"
89
- }
90
- }
91
- }
92
- }]; }
93
- }