@flarehr/apollo-super-selection 3.14.52544 → 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 (281) 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-13573238.system.js +0 -15
  6. package/dist/lib/apollo-super-selection/p-27129f6d.system.js +0 -1
  7. package/dist/lib/apollo-super-selection/p-2bbd0732.system.entry.js +0 -1
  8. package/dist/lib/apollo-super-selection/p-2bd70644.system.entry.js +0 -1
  9. package/dist/lib/apollo-super-selection/p-30bebd30.entry.js +0 -1
  10. package/dist/lib/apollo-super-selection/p-31a3ef1a.entry.js +0 -14
  11. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  14. package/dist/lib/apollo-super-selection/p-48e99aba.system.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-4ceefd14.system.entry.js +0 -1
  16. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-52cb55a8.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-55737760.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-59a986b0.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-7b72a245.system.entry.js +0 -1
  21. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-84240b0b.entry.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-943b206b.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-9b5fb4bc.system.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-cbe37145.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-cc209002.system.entry.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-cc9c37a4.entry.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-dd3a95d5.system.entry.js +0 -69
  29. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  30. package/dist/lib/apollo-super-selection/p-fbcce741.entry.js +0 -1
  31. package/dist/lib/cjs/active-router-08eabf9a.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_43.cjs.entry.js +0 -16969
  38. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  39. package/dist/lib/cjs/index-b2214bec.js +0 -1764
  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 -125
  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 -96
  80. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  81. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  82. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
  83. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  84. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  85. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  86. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -95
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  104. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  105. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  106. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
  107. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
  108. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
  109. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  110. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  112. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  113. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
  114. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
  115. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
  116. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  117. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  118. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
  119. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
  120. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -73
  121. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
  122. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  123. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
  124. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  125. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  126. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
  127. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
  128. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
  129. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
  130. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
  131. package/dist/lib/collection/global/init-host.js +0 -22
  132. package/dist/lib/collection/global/main.dev.js +0 -26
  133. package/dist/lib/collection/global/main.js +0 -11
  134. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  135. package/dist/lib/collection/index.js +0 -2
  136. package/dist/lib/collection/utils/config.js +0 -2
  137. package/dist/lib/collection/utils/gtm.js +0 -5
  138. package/dist/lib/collection/utils/iframe.js +0 -33
  139. package/dist/lib/collection/utils/index.js +0 -8
  140. package/dist/lib/collection/utils/lazy.js +0 -29
  141. package/dist/lib/collection/utils/storage.js +0 -5
  142. package/dist/lib/esm/active-router-09eb3641.js +0 -73
  143. package/dist/lib/esm/apollo-super-selection.js +0 -21
  144. package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
  145. package/dist/lib/esm/context-consumer.entry.js +0 -25
  146. package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
  147. package/dist/lib/esm/delay-c0555599.js +0 -935
  148. package/dist/lib/esm/fl-button_43.entry.js +0 -16923
  149. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  150. package/dist/lib/esm/index-227ab0f1.js +0 -1731
  151. package/dist/lib/esm/index.js +0 -1
  152. package/dist/lib/esm/loader.js +0 -21
  153. package/dist/lib/esm/polyfills/core-js.js +0 -11
  154. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  155. package/dist/lib/esm/polyfills/dom.js +0 -79
  156. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  157. package/dist/lib/esm/polyfills/index.js +0 -34
  158. package/dist/lib/esm/polyfills/system.js +0 -6
  159. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  160. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  161. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  162. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  163. package/dist/lib/esm-es5/active-router-09eb3641.js +0 -1
  164. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  165. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
  166. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  167. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  168. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  169. package/dist/lib/esm-es5/fl-button_43.entry.js +0 -69
  170. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  171. package/dist/lib/esm-es5/index-227ab0f1.js +0 -1
  172. package/dist/lib/esm-es5/index.js +0 -0
  173. package/dist/lib/esm-es5/loader.js +0 -1
  174. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  175. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  176. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  177. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  178. package/dist/lib/index.cjs.js +0 -1
  179. package/dist/lib/index.js +0 -1
  180. package/dist/lib/loader/cdn.js +0 -3
  181. package/dist/lib/loader/index.cjs.js +0 -3
  182. package/dist/lib/loader/index.d.ts +0 -13
  183. package/dist/lib/loader/index.es2017.js +0 -3
  184. package/dist/lib/loader/index.js +0 -4
  185. package/dist/lib/loader/package.json +0 -10
  186. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  187. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  188. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  189. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  190. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  191. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  192. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  193. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  194. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  195. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  196. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
  197. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  198. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  199. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  200. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  201. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  202. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  203. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
  204. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
  205. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  206. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  207. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
  208. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  209. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -81
  210. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
  211. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
  212. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
  213. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
  214. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
  215. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  216. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
  217. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
  218. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
  219. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -10
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
  224. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  225. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
  226. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  227. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  228. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  229. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  230. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  231. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  232. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  233. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  234. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  235. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  236. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  237. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
  246. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  247. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
  248. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
  249. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  250. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
  251. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  252. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  253. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  254. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
  255. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
  256. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
  257. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  258. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  259. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  260. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
  261. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -24
  262. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
  263. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  264. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
  265. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  266. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
  267. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
  268. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
  269. package/dist/lib/types/components.d.ts +0 -532
  270. package/dist/lib/types/global/init-host.d.ts +0 -1
  271. package/dist/lib/types/global/main.d.ts +0 -1
  272. package/dist/lib/types/global/main.dev.d.ts +0 -1
  273. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  274. package/dist/lib/types/index.d.ts +0 -2
  275. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  276. package/dist/lib/types/utils/config.d.ts +0 -2
  277. package/dist/lib/types/utils/gtm.d.ts +0 -7
  278. package/dist/lib/types/utils/iframe.d.ts +0 -13
  279. package/dist/lib/types/utils/index.d.ts +0 -3
  280. package/dist/lib/types/utils/lazy.d.ts +0 -12
  281. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,103 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import { pipe } from 'fp-ts/lib/function';
4
- import * as O from 'fp-ts/Option';
5
- import { EventTrackingService } from '../../../services/event-tracking.service';
6
- import navigationService from '../../../services/navigation.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 MyOwnFund {
12
- constructor() {
13
- this.isNotAllInformationProvidedMessageVisible = false;
14
- this.eventTrackingService = EventTrackingService.Instance;
15
- }
16
- componentDidLoad() {
17
- return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync();
18
- }
19
- render() {
20
- return (h(Host, { class: "d-flex flex-fill" },
21
- h("sss-custom-fund", { class: "flex-fill" },
22
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
23
- 'was-validated': this.formState === 'validated'
24
- }, ref: (el) => (this.formElement = el) },
25
- h("div", { class: "card p-4" },
26
- h("p", { class: "font-weight-bold" }, "Fund details"),
27
- h("p", { class: "text-warning mb-4 small" }, "Make sure you are already a member of the fund before completing this step."),
28
- h("sss-my-own-fund-inputs", { myOwnFundForm: customFundState.myOwnFundForm, onFormChanged: (event) => {
29
- customFundState.myOwnFundForm = Object.assign(Object.assign({}, customFundState.myOwnFundForm), event.detail);
30
- this.isNotAllInformationProvidedMessageVisible = false;
31
- } })),
32
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
33
- customFundState.myOwnFundForm = Object.assign(Object.assign({}, customFundState.myOwnFundForm), { standardChoiceFormSignature: O.fromNullable(event.detail.standardChoiceFormSignature) });
34
- } })),
35
- h("div", { class: "mt-4" },
36
- h("sss-notifications-section", null)),
37
- this.isNotAllInformationProvidedMessageVisible && (h("div", { class: "mt-4 alert alert-danger", role: "alert" }, "All fields are required to complete submission. Make sure you have selected a fund.")),
38
- h("div", { class: "d-flex mt-4" },
39
- h("div", { class: "flex-grow-1 w-50" },
40
- h("div", { class: "mr-2" },
41
- h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
42
- h("span", null, "Back")))),
43
- h("div", { class: "flex-grow-1 w-50" },
44
- h("div", { class: "ml-2" },
45
- h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
46
- h("span", null, "Submit"))))))));
47
- }
48
- async handleSubmitForm() {
49
- this.formState = 'validated';
50
- if (!this.formElement.checkValidity()) {
51
- return;
52
- }
53
- const isAllInformationProvided = O.isSome(customFundState.myOwnFundForm.fundUsi) &&
54
- O.isSome(customFundState.myOwnFundForm.memberNumber) &&
55
- O.isSome(customFundState.myOwnFundForm.standardChoiceFormSignature);
56
- if (!isAllInformationProvided) {
57
- this.isNotAllInformationProvidedMessageVisible = true;
58
- return;
59
- }
60
- const customFundChoiceDto = {
61
- fundUsi: this.getOrError(customFundState.myOwnFundForm.fundUsi),
62
- memberNumber: this.getOrError(customFundState.myOwnFundForm.memberNumber),
63
- standardChoiceFormSignature: this.getOrError(customFundState.myOwnFundForm.standardChoiceFormSignature)
64
- };
65
- await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
66
- superSelectionAppService.markSuperSelectionAsSubmitted();
67
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
68
- }
69
- getOrError(option) {
70
- return pipe(option, O.getOrElse(() => {
71
- throw new Error('Option value is none.');
72
- }));
73
- }
74
- static get is() { return "sss-my-own-fund"; }
75
- static get assetsDirs() { return ["assets"]; }
76
- static get properties() { return {
77
- "history": {
78
- "type": "unknown",
79
- "mutable": false,
80
- "complexType": {
81
- "original": "RouterHistory",
82
- "resolved": "RouterHistory",
83
- "references": {
84
- "RouterHistory": {
85
- "location": "import",
86
- "path": "@stencil/router"
87
- }
88
- }
89
- },
90
- "required": false,
91
- "optional": false,
92
- "docs": {
93
- "tags": [],
94
- "text": ""
95
- }
96
- }
97
- }; }
98
- static get states() { return {
99
- "formState": {},
100
- "isNotAllInformationProvidedMessageVisible": {}
101
- }; }
102
- }
103
- injectHistory(MyOwnFund);
@@ -1,111 +0,0 @@
1
- export default {
2
- '01': 'Australia and New Zealand Banking Group',
3
- '03': 'Westpac Banking Corporation',
4
- '73': 'Westpac Banking Corporation',
5
- '06': 'Commonwealth Bank of Australia',
6
- '76': 'Commonwealth Bank of Australia',
7
- '08': 'National Australia Bank',
8
- '78': 'National Australia Bank',
9
- '09': 'Reserve Bank of Australia',
10
- '10': 'BankSA (division of Westpac Bank)',
11
- '11': 'St George Bank (division of Westpac Bank)',
12
- '33': 'St George Bank (division of Westpac Bank)',
13
- '12': 'Bank of Queensland',
14
- '14': 'Rabobank',
15
- '15': 'Town & Country Bank',
16
- '18': 'Macquarie Bank',
17
- '19': 'Bank of Melbourne (division of Westpac Bank)',
18
- '55': 'Bank of Melbourne (division of Westpac Bank)',
19
- '21': 'JP Morgan Chase Bank',
20
- '22': 'BNP Paribas',
21
- '23': 'Bank of America',
22
- '24': 'Citibank & Citibank NA',
23
- '510': 'Citibank & Citibank NA',
24
- '25': 'BNP Paribas Securities',
25
- '26': 'Bankers Trust Australia (division of Westpac Bank)',
26
- '29': 'MUFG Bank',
27
- '30': 'Bankwest (division of Commonwealth Bank)',
28
- '31': 'Bank Australia',
29
- '325': 'Beyond Bank',
30
- '34': 'HSBC Bank Australia',
31
- '985': 'HSBC Bank Australia',
32
- '35': 'Bank of China',
33
- '980': 'Bank of China',
34
- '40': 'Commonwealth Bank of Australia',
35
- '41': 'Deutsche Bank',
36
- '42': 'Commonwealth Bank of Australia',
37
- '52': 'Commonwealth Bank of Australia',
38
- '45': 'OCBC Bank',
39
- '46': 'Advance Bank (division of Westpac Bank)',
40
- '47': 'Challenge Bank (division of Westpac Bank)',
41
- '48': 'Suncorp-Metway',
42
- '664': 'Suncorp-Metway',
43
- '512': 'Community First Credit Union',
44
- '514': 'RACQ Bank',
45
- '517': 'Volt Bank',
46
- '533': 'Bananacoast Community Credit Union',
47
- '57': 'Australian Settlements',
48
- '61': 'Adelaide Bank (division of Bendigo and Adelaide Bank)',
49
- '611': 'Endeavour Mutual Bank',
50
- '823': 'Endeavour Mutual Bank',
51
- '630': 'Greater Bank',
52
- '637': 'Greater Bank',
53
- '632': 'B&E',
54
- '633': 'Bendigo Bank',
55
- '634': 'Uniting Financial Services',
56
- '638': 'Heritage Bank',
57
- '880': 'Heritage Bank',
58
- '639': 'Home Building Society (division of Bank of Queensland)',
59
- '640': 'Hume Bank',
60
- '641': 'IMB',
61
- '647': 'IMB',
62
- '642': 'Australian Military Bank',
63
- '645': 'Auswide Bank',
64
- '656': 'Auswide Bank',
65
- '646': 'Maitland Mutual Building Society',
66
- '650': 'Newcastle Permanent Building Society',
67
- '653': 'Pioneer Permanent Building Society (division of Bank of Queensland)',
68
- '654': 'Queensland Country Credit Union',
69
- '655': 'The Rock',
70
- '659': 'G&C Mutual Bank',
71
- '676': 'Gateway Bank',
72
- '70': 'Indue',
73
- '721': 'Holiday Coast Credit Union',
74
- '722': 'Southern Cross Credit Union',
75
- '723': 'Bank of Heritage Isle',
76
- '724': 'MOVE',
77
- '728': 'Summerland Credit Union',
78
- '777': 'Police & Nurse',
79
- '80': 'Cuscal',
80
- '670': 'Cuscal',
81
- '812': 'Teachers Mutual Bank',
82
- '813': 'Capricornian',
83
- '814': 'Credit Union Australia',
84
- '815': 'Police Bank',
85
- '817': 'Warwick Credit Union',
86
- '818': 'Bank of Communications',
87
- '819': 'Industrial & Commercial Bank of China',
88
- '824': 'Sutherland Credit Union',
89
- '825': 'Big Sky Building Society',
90
- '833': 'Defence Bank',
91
- '882': 'Unity Bank',
92
- '888': 'China Construction Bank',
93
- '90': 'Australia Post',
94
- '911': 'Sumitomo Mitsui Banking Corporation',
95
- '913': 'State Street Bank & Trust Company',
96
- '917': 'Arab Bank Australia',
97
- '918': 'Mizuho Bank',
98
- '922': 'United Overseas Bank',
99
- '923': 'ING Bank',
100
- '936': 'ING Bank',
101
- '931': 'Mega International Commercial Bank',
102
- '932': 'Regional Australia Bank',
103
- '939': 'AMP Bank',
104
- '941': 'Delphi Bank (division of Bendigo and Adelaide Bank)',
105
- '942': 'Bank of Sydney',
106
- '943': 'Taiwan Business Bank',
107
- '944': 'Members Equity Bank',
108
- '946': 'UBS AG',
109
- '951': 'BOQ Specialist',
110
- '969': 'Tyro Payments'
111
- };
@@ -1,153 +0,0 @@
1
- import { Component, Event, h, Prop, State } from '@stencil/core';
2
- import { isSome, none, some } from 'fp-ts/Option';
3
- import customFundState from '../custom-fund.store';
4
- import bsbNumbers from './bankBsbNumbers';
5
- export class SelfManagedFundInputs {
6
- constructor() {
7
- this.currentBank = none;
8
- this.stateOptions = [
9
- { value: 'NSW', label: 'NSW' },
10
- { value: 'QLD', label: 'QLD' },
11
- { value: 'ACT', label: 'ACT' },
12
- { value: 'VIC', label: 'VIC' },
13
- { value: 'TAS', label: 'TAS' },
14
- { value: 'WA', label: 'WA' },
15
- { value: 'SA', label: 'SA' },
16
- { value: 'NT', label: 'NT' }
17
- ];
18
- this.bsbRegex = new RegExp(/^[0-9]{3}[0-9]{3}$/);
19
- this.bankAccountNumberRegex = new RegExp(/^[0-9]{2,10}$/);
20
- }
21
- render() {
22
- return (h("div", null,
23
- h("div", { class: "mt-4" },
24
- h("label", { class: "mb-2 font-weight-bold" }, "Fund name *"),
25
- h("input", { placeholder: "Enter your fund name", type: "text", class: "form-control", required: true, minlength: "2", name: "fundName", id: "fundName", value: customFundState.selfManagedFundForm.fundName, onChange: (ev) => this.updateFormField('fundName', ev.target.value.trim()) }),
26
- h("div", { class: "invalid-feedback" }, "Enter a valid fund name")),
27
- h("div", { class: "mt-4" },
28
- h("label", { class: "mb-2 font-weight-bold" }, "Fund ABN *"),
29
- h("input", { placeholder: "Enter your fund ABN", type: "text", class: "form-control", required: true, minlength: "2", name: "fundAbn", id: "fundAbn", value: customFundState.selfManagedFundForm.fundAbn, onChange: (ev) => this.updateFormField('fundAbn', ev.target.value.trim()) }),
30
- h("div", { class: "invalid-feedback" }, "Enter a valid fund ABN")),
31
- h("div", { class: "mt-4" },
32
- h("label", { class: "mb-2 font-weight-bold" }, "Electronic service address alias (ESA) *"),
33
- h("input", { placeholder: "Enter your ESA", type: "text", class: "form-control", required: true, minlength: "2", name: "fundEsa", id: "fundEsa", value: customFundState.selfManagedFundForm.fundEsa, onChange: (ev) => this.updateFormField('fundEsa', ev.target.value.trim()) }),
34
- h("div", { class: "invalid-feedback" }, "Enter a valid fund ESA")),
35
- h("div", { class: "mt-4" },
36
- h("label", { class: "mb-2 font-weight-bold" }, "Address line 1 *"),
37
- h("input", { placeholder: "Enter your address", type: "text", class: "form-control", required: true, minlength: "2", name: "addressLine1", id: "addressLine1", value: customFundState.selfManagedFundForm.addressLine1, onChange: (ev) => this.updateFormField('addressLine1', ev.target.value.trim()) }),
38
- h("div", { class: "invalid-feedback" }, "Enter a valid address")),
39
- h("div", { class: "mt-4" },
40
- h("label", { class: "mb-2 font-weight-bold" }, "Address line 2 (optional)"),
41
- h("input", { placeholder: "Enter your address", type: "text", class: "form-control", name: "addressLine2", id: "addressLine2", value: customFundState.selfManagedFundForm.addressLine2, onChange: (ev) => this.updateFormField('addressLine2', ev.target.value.trim()) }),
42
- h("div", { class: "invalid-feedback" }, "Enter a valid address")),
43
- h("div", { class: "mt-4" },
44
- h("label", { class: "mb-2 font-weight-bold" }, "City/suburb *"),
45
- h("input", { placeholder: "Enter your city", type: "text", class: "form-control", name: "city", required: true, id: "city", value: customFundState.selfManagedFundForm.city, onChange: (ev) => this.updateFormField('city', ev.target.value.trim()) }),
46
- h("div", { class: "invalid-feedback" }, "Enter a valid city/suburb *")),
47
- h("div", { class: "mt-3" },
48
- h("label", { class: "mb-2 font-weight-bold" }, "State *"),
49
- h("fl-dropdown", { options: this.stateOptions, required: true, requiredValidationMessage: "Select a state", placeholder: "Select a state", value: this.fundForm.state, onValueChanged: (ev) => {
50
- this.updateFormField('state', ev.detail.value.toString());
51
- } }),
52
- h("div", { class: "invalid-feedback" }, "Select a state")),
53
- h("div", { class: "mt-4" },
54
- h("label", { class: "mb-2 font-weight-bold" }, "Post code *"),
55
- h("input", { placeholder: "Enter your post code", type: "text", required: true, class: "form-control", name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", value: customFundState.selfManagedFundForm.postcode, onChange: (ev) => this.updateFormField('postcode', ev.target.value.trim()) }),
56
- h("div", { class: "invalid-feedback" }, "Enter a valid post code")),
57
- h("div", null,
58
- h("i", { class: "fas fa-check-circle" })),
59
- h("div", { class: "mt-4" },
60
- h("label", { class: "mb-2 font-weight-bold" }, "BSB *"),
61
- h("input", { placeholder: "Enter your BSB", type: "text", required: true, class: "form-control", name: "bsb", id: "bsb", minlength: "6", maxlength: "7", onKeyUp: (ev) => this.updateCurrentBank(ev), pattern: this.bsbRegex.source, value: customFundState.selfManagedFundForm.bsb }),
62
- isSome(this.currentBank) && (h("p", { class: "mt-3" },
63
- h("strong", null, "Bank name"),
64
- h("br", null),
65
- h("span", { class: "ml-2" }, this.currentBank.value))),
66
- h("div", { class: "invalid-feedback" }, "Enter a valid BSB")),
67
- h("div", { class: "mt-4" },
68
- h("label", { class: "mb-2 font-weight-bold" }, "Bank account name *"),
69
- h("input", { placeholder: "Enter your bank account name", type: "text", required: true, class: "form-control", name: "bankAccountName", minlength: "2", id: "bankAccountName", value: customFundState.selfManagedFundForm.bankAccountName, onChange: (ev) => this.updateFormField('bankAccountName', ev.target.value.trim()) }),
70
- h("div", { class: "invalid-feedback" }, "Enter a valid bank account name")),
71
- h("div", { class: "mt-4" },
72
- h("label", { class: "mb-2 font-weight-bold" }, "Bank account number *"),
73
- h("input", { placeholder: "Enter your bank account number", type: "text", required: true, class: "form-control", name: "bankAccountNumber", id: "bankAccountNumber", minlength: "2", maxlength: "11", pattern: this.bankAccountNumberRegex.source, value: customFundState.selfManagedFundForm.bankAccountNumber, onKeyUp: (ev) => this.updateCurrentBankAccountNumber(ev), onChange: (ev) => this.updateFormField('bankAccountNumber', ev.target.value.trim()) }),
74
- h("div", { class: "invalid-feedback" }, "Enter a valid bank account number"))));
75
- }
76
- updateFormField(key, value) {
77
- this.formChanged.emit({ [key]: value });
78
- }
79
- filterDigits(str) {
80
- return str.replace(/[^0-9]/g, '');
81
- }
82
- updateCurrentBank(ev) {
83
- const value = this.filterDigits(ev.target.value);
84
- const firstTwoNumbers = value.substring(0, 2);
85
- const firstThreeNumbers = value.substring(0, 3);
86
- const firstTwoNumberBankName = bsbNumbers[firstTwoNumbers];
87
- const firstThreeNumberBankName = bsbNumbers[firstThreeNumbers];
88
- if (firstTwoNumberBankName)
89
- this.currentBank = some(firstTwoNumberBankName);
90
- if (firstThreeNumberBankName)
91
- this.currentBank = some(firstThreeNumberBankName);
92
- if (value === '')
93
- this.currentBank = none;
94
- this.updateFormField('bsb', value);
95
- }
96
- updateCurrentBankAccountNumber(ev) {
97
- const value = this.filterDigits(ev.target.value);
98
- this.updateFormField('bankAccountNumber', value);
99
- }
100
- static get is() { return "sss-self-managed-fund-inputs"; }
101
- static get properties() { return {
102
- "fundForm": {
103
- "type": "unknown",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "Partial<SelfManagedFundForm>",
107
- "resolved": "{ fundName?: string | undefined; fundAbn?: string | undefined; fundEsa?: string | undefined; addressLine1?: string | undefined; addressLine2?: string | undefined; state?: string | undefined; postcode?: string | undefined; city?: string | undefined; bankAccountName?: string | undefined; bsb?: string | undefined; bankAccountNumber?: string | undefined; standardChoiceFormSignature?: string | undefined; }",
108
- "references": {
109
- "Partial": {
110
- "location": "global"
111
- },
112
- "SelfManagedFundForm": {
113
- "location": "import",
114
- "path": "./self-managed-fund.form"
115
- }
116
- }
117
- },
118
- "required": false,
119
- "optional": false,
120
- "docs": {
121
- "tags": [],
122
- "text": ""
123
- }
124
- }
125
- }; }
126
- static get states() { return {
127
- "currentBank": {}
128
- }; }
129
- static get events() { return [{
130
- "method": "formChanged",
131
- "name": "formChanged",
132
- "bubbles": true,
133
- "cancelable": true,
134
- "composed": true,
135
- "docs": {
136
- "tags": [],
137
- "text": ""
138
- },
139
- "complexType": {
140
- "original": "Partial<SelfManagedFundForm>",
141
- "resolved": "{ fundName?: string | undefined; fundAbn?: string | undefined; fundEsa?: string | undefined; addressLine1?: string | undefined; addressLine2?: string | undefined; state?: string | undefined; postcode?: string | undefined; city?: string | undefined; bankAccountName?: string | undefined; bsb?: string | undefined; bankAccountNumber?: string | undefined; standardChoiceFormSignature?: string | undefined; }",
142
- "references": {
143
- "Partial": {
144
- "location": "global"
145
- },
146
- "SelfManagedFundForm": {
147
- "location": "import",
148
- "path": "./self-managed-fund.form"
149
- }
150
- }
151
- }
152
- }]; }
153
- }
@@ -1,96 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import { EventTrackingService } from '../../../services/event-tracking.service';
4
- import navigationService from '../../../services/navigation.service';
5
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
6
- import superSelectionAppService from '../../../services/super-selection-app.service';
7
- import customFundChoiceApi from '../api/custom-fund-choice.api';
8
- import customFundState from '../custom-fund.store';
9
- export class SelfManagedFund {
10
- constructor() {
11
- this.eventTrackingService = EventTrackingService.Instance;
12
- }
13
- componentDidLoad() {
14
- return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync();
15
- }
16
- render() {
17
- return (h(Host, { class: "d-flex flex-fill" },
18
- h("sss-custom-fund", { class: "flex-fill" },
19
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
20
- 'was-validated': this.formState === 'validated'
21
- }, ref: (el) => (this.formElement = el) },
22
- h("div", { class: "card p-4" },
23
- h("p", { class: "font-weight-bold" }, "Fund details"),
24
- h("p", { class: "text-warning mb-4 small" }, "Make sure you are already a member of the fund before completing this step."),
25
- h("sss-self-managed-fund-inputs", { fundForm: customFundState.selfManagedFundForm, onFormChanged: (event) => {
26
- customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
27
- } })),
28
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
29
- customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
30
- } })),
31
- h("div", { class: "mt-4" },
32
- h("sss-notifications-section", null)),
33
- h("div", { class: "d-flex mt-4" },
34
- h("div", { class: "flex-grow-1 w-50" },
35
- h("div", { class: "mr-2" },
36
- h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
37
- h("span", null, "Back")))),
38
- h("div", { class: "flex-grow-1 w-50" },
39
- h("div", { class: "ml-2" },
40
- h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
41
- h("span", null, "Submit"))))))));
42
- }
43
- async handleSubmitForm() {
44
- this.formState = 'validated';
45
- if (this.formElement.checkValidity()) {
46
- const requestDto = {
47
- smsfChoice: {
48
- abn: customFundState.selfManagedFundForm.fundAbn,
49
- fundName: customFundState.selfManagedFundForm.fundName,
50
- fundAddress: {
51
- addressLine1: customFundState.selfManagedFundForm.addressLine1,
52
- addressLine2: customFundState.selfManagedFundForm.addressLine2,
53
- city: customFundState.selfManagedFundForm.city,
54
- state: customFundState.selfManagedFundForm.state,
55
- postcode: customFundState.selfManagedFundForm.postcode
56
- },
57
- bsb: customFundState.selfManagedFundForm.bsb,
58
- bankAccountName: customFundState.selfManagedFundForm.bankAccountName,
59
- bankAccountNumber: customFundState.selfManagedFundForm.bankAccountNumber,
60
- electronicServiceAddress: customFundState.selfManagedFundForm.fundEsa
61
- },
62
- standardChoiceFormSignature: customFundState.selfManagedFundForm.standardChoiceFormSignature
63
- };
64
- await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
65
- superSelectionAppService.markSuperSelectionAsSubmitted();
66
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
67
- }
68
- }
69
- static get is() { return "sss-self-managed-fund"; }
70
- static get properties() { return {
71
- "history": {
72
- "type": "unknown",
73
- "mutable": false,
74
- "complexType": {
75
- "original": "RouterHistory",
76
- "resolved": "RouterHistory",
77
- "references": {
78
- "RouterHistory": {
79
- "location": "import",
80
- "path": "@stencil/router"
81
- }
82
- }
83
- },
84
- "required": false,
85
- "optional": false,
86
- "docs": {
87
- "tags": [],
88
- "text": ""
89
- }
90
- }
91
- }; }
92
- static get states() { return {
93
- "formState": {}
94
- }; }
95
- }
96
- injectHistory(SelfManagedFund);
@@ -1,13 +0,0 @@
1
- import { buildBackendApiClient } from '../../../api/api-client';
2
- export class QSuperChoiceApi {
3
- async submitQSuperChoiceAsync(dto) {
4
- return buildBackendApiClient()
5
- .url('super-choice/qsuper')
6
- .post(dto)
7
- .badRequest(() => {
8
- throw new Error('Failed to process QSuper join request');
9
- })
10
- .text();
11
- }
12
- }
13
- export default new QSuperChoiceApi();
@@ -1,37 +0,0 @@
1
- import superSelectionAppService from '../../../services/super-selection-app.service';
2
- import qsuperChoiceApi from '../api/qsuper-choice.api';
3
- import qSuperState, { QSuperFormPages } from '../services/qsuper.store';
4
- export async function handleConfirmClickAsync() {
5
- if (!qSuperState.continueAllowed)
6
- return;
7
- qSuperState.continueAllowed = false;
8
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
9
- qSuperState.qSuperQuestionnaire.insuranceChosen) {
10
- qSuperState.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
11
- return;
12
- }
13
- // if insurance hasn't been chosen - skip the accumulation page
14
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
15
- !qSuperState.qSuperQuestionnaire.insuranceChosen) {
16
- qSuperState.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
17
- return;
18
- }
19
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
20
- qSuperState.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
21
- return;
22
- }
23
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
24
- qSuperState.qSuperFormValid = false;
25
- qSuperState.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
26
- return;
27
- }
28
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
29
- qSuperState.qSuperQuestionnaire.acceptedDeclaration = true;
30
- const qSuperJoinRequest = {
31
- questionnaire: qSuperState.qSuperQuestionnaire,
32
- standardChoiceFormSignature: qSuperState.standardChoiceFormSignature
33
- };
34
- await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
35
- superSelectionAppService.markSuperSelectionAsSubmitted();
36
- }
37
- }
@@ -1,13 +0,0 @@
1
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
2
- import superSelectionAppService from '../../../services/super-selection-app.service';
3
- import qSuperState from '../services/qsuper.store';
4
- export function continueEnabledCheck() {
5
- // for a given route, ensure the checks on that page are checked before allowing to continue
6
- const baseAppUrl = superSelectionAppService.appBaseUrl;
7
- const currentRoute = window.location.pathname.split(baseAppUrl)[1];
8
- const continueValidConditions = {
9
- [SuperSelectionAppRoutes.QSuperOptIn]: qSuperState.qSuperOptInPageCheckbox,
10
- [SuperSelectionAppRoutes.QSuperJoin]: qSuperState.qSuperJoinPageCheckbox && qSuperState.standardChoiceFormSignature
11
- };
12
- qSuperState.continueAllowed = continueValidConditions[currentRoute];
13
- }
@@ -1,89 +0,0 @@
1
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
2
- import superSelectionAppService from '../../../services/super-selection-app.service';
3
- import qSuperState from '../services/qsuper.store';
4
- export function getNextRoute() {
5
- var _a, _b, _c, _d;
6
- const baseAppUrl = superSelectionAppService.appBaseUrl;
7
- const route = window.location.pathname.split(baseAppUrl)[1];
8
- const nextRoutes = {
9
- [SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
10
- [SuperSelectionAppRoutes.QSuperQuestion1]: qSuperState.qSuperInsuranceQuestions.question1
11
- .answered
12
- ? ((_a = qSuperState.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
13
- ? SuperSelectionAppRoutes.QSuperQuestion4
14
- : SuperSelectionAppRoutes.QSuperQuestion2
15
- : SuperSelectionAppRoutes.QSuperQuestion1,
16
- [SuperSelectionAppRoutes.QSuperQuestion2]: qSuperState.qSuperInsuranceQuestions.question2
17
- .answered
18
- ? ((_b = qSuperState.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
19
- ? SuperSelectionAppRoutes.QSuperQuestion4
20
- : SuperSelectionAppRoutes.QSuperQuestion3
21
- : SuperSelectionAppRoutes.QSuperQuestion2,
22
- [SuperSelectionAppRoutes.QSuperQuestion3]: qSuperState.qSuperInsuranceQuestions.question3
23
- .answered
24
- ? SuperSelectionAppRoutes.QSuperQuestion4
25
- : SuperSelectionAppRoutes.QSuperQuestion3,
26
- [SuperSelectionAppRoutes.QSuperQuestion4]: qSuperState.qSuperInsuranceQuestions.question4
27
- .answered
28
- ? SuperSelectionAppRoutes.QSuperQuestion5
29
- : SuperSelectionAppRoutes.QSuperQuestion4,
30
- [SuperSelectionAppRoutes.QSuperQuestion5]: qSuperState.qSuperInsuranceQuestions.question5
31
- .answered
32
- ? SuperSelectionAppRoutes.QSuperQuestion6
33
- : SuperSelectionAppRoutes.QSuperQuestion5,
34
- [SuperSelectionAppRoutes.QSuperQuestion6]: qSuperState.qSuperInsuranceQuestions.question6
35
- .answered
36
- ? SuperSelectionAppRoutes.QSuperQuestion7
37
- : SuperSelectionAppRoutes.QSuperQuestion6,
38
- [SuperSelectionAppRoutes.QSuperQuestion7]: qSuperState.qSuperInsuranceQuestions.question7
39
- .answered
40
- ? SuperSelectionAppRoutes.QSuperQuestion8
41
- : SuperSelectionAppRoutes.QSuperQuestion7,
42
- [SuperSelectionAppRoutes.QSuperQuestion8]: qSuperState.qSuperInsuranceQuestions.question8
43
- .answered
44
- ? SuperSelectionAppRoutes.QSuperConsent
45
- : SuperSelectionAppRoutes.QSuperQuestion8,
46
- [SuperSelectionAppRoutes.QSuperConsent]: qSuperState.qSuperQuestionnaire.readDutyOfDisclosure &&
47
- qSuperState.qSuperQuestionnaire.reviewedApplication
48
- ? SuperSelectionAppRoutes.QSuperJoin
49
- : SuperSelectionAppRoutes.QSuperConsent,
50
- [SuperSelectionAppRoutes.QSuperJoin]: qSuperState.qSuperJoinPageCheckbox
51
- ? SuperSelectionAppRoutes.Success
52
- : SuperSelectionAppRoutes.QSuperJoin
53
- };
54
- // special cases
55
- // if question 3 or 5 are selected as Yes, show questions 6,7,8
56
- // if we are on question 5, and question 3 or 5 have been selected yes, go to question 6
57
- const firstFiveQuestionsAnswered = qSuperState.qSuperInsuranceQuestions.question1.answered &&
58
- qSuperState.qSuperInsuranceQuestions.question2.answered &&
59
- qSuperState.qSuperInsuranceQuestions.question3.answered &&
60
- qSuperState.qSuperInsuranceQuestions.question4.answered &&
61
- qSuperState.qSuperInsuranceQuestions.question5.answered;
62
- // if we are on question 5 - check if question 3 or 5 have been answered yes
63
- // if they have then show questions 6,7,8 - otherwise go to the consent page
64
- if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
65
- if (firstFiveQuestionsAnswered &&
66
- (((_c = qSuperState.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
67
- ((_d = qSuperState.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
68
- return SuperSelectionAppRoutes.QSuperQuestion6;
69
- }
70
- return SuperSelectionAppRoutes.QSuperConsent;
71
- }
72
- // if in opt in page
73
- if (route === SuperSelectionAppRoutes.QSuperOptIn) {
74
- // if checkbox is ticked and insurance selected - go to question 1
75
- if (qSuperState.qSuperOptInPageCheckbox) {
76
- if (qSuperState.qSuperQuestionnaire.insuranceChosen) {
77
- return SuperSelectionAppRoutes.QSuperQuestion1;
78
- }
79
- else {
80
- return SuperSelectionAppRoutes.QSuperConsent;
81
- }
82
- }
83
- else {
84
- // otherwise go to the consent page
85
- return route;
86
- }
87
- }
88
- return nextRoutes[route];
89
- }