@flarehr/apollo-super-selection 3.17.52781 → 3.21.53721

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 (296) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -0
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.js +130 -0
  3. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  4. package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-082669d9.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-13573238.system.js +15 -0
  7. package/dist/lib/apollo-super-selection/p-20136efe.entry.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-342cee5a.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-381262c1.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-38ee2795.system.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-38f24f69.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-61734b66.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +1 -0
  18. package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-9eff6951.system.entry.js +69 -0
  20. package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +1 -0
  21. package/dist/lib/apollo-super-selection/p-abedb220.entry.js +1 -0
  22. package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +1 -0
  23. package/dist/lib/apollo-super-selection/p-c284a0de.entry.js +14 -0
  24. package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +1 -0
  25. package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +1 -0
  26. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -0
  27. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +15 -0
  28. package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +1 -0
  29. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +1 -0
  30. package/dist/lib/cjs/active-router-e92fd784.js +75 -0
  31. package/dist/lib/cjs/apollo-super-selection.cjs.js +23 -0
  32. package/dist/lib/cjs/app-globals-45007120.js +25 -0
  33. package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
  34. package/dist/lib/cjs/datorama-akita-7f4b082a.js +2704 -0
  35. package/dist/lib/cjs/delay-81aff2f1.js +955 -0
  36. package/dist/lib/cjs/fl-button_46.cjs.entry.js +17199 -0
  37. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +90 -0
  38. package/dist/lib/cjs/index-942e6faa.js +1767 -0
  39. package/dist/lib/cjs/index.cjs.js +2 -0
  40. package/dist/lib/cjs/loader.cjs.js +25 -0
  41. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +32 -0
  42. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +32 -0
  43. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +59 -0
  44. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  45. package/dist/lib/collection/collection-manifest.json +131 -0
  46. package/dist/lib/collection/components/app-host/loading-page.js +9 -0
  47. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +18 -0
  48. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +25 -0
  49. package/dist/lib/collection/components/app-host/services/appinsights.service.js +43 -0
  50. package/dist/lib/collection/components/app-host/services/authentication.query.js +21 -0
  51. package/dist/lib/collection/components/app-host/services/authentication.service.js +50 -0
  52. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +31 -0
  53. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +30 -0
  54. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +20 -0
  55. package/dist/lib/collection/components/app-host/services/interop.query.js +26 -0
  56. package/dist/lib/collection/components/app-host/services/session.store.js +37 -0
  57. package/dist/lib/collection/components/app-host/super-selection-app-host.css +28 -0
  58. package/dist/lib/collection/components/app-host/super-selection-app-host.js +92 -0
  59. package/dist/lib/collection/components/super-selection-app/api/api-client.js +14 -0
  60. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +9 -0
  61. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +1 -0
  62. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +1 -0
  63. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +30 -0
  64. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +31 -0
  65. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +11 -0
  66. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +28 -0
  67. package/dist/lib/collection/components/super-selection-app/funds/constants.js +17 -0
  68. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +1 -0
  69. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +31 -0
  70. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +68 -0
  71. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +53 -0
  72. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +108 -0
  73. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +93 -0
  74. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +103 -0
  75. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +111 -0
  76. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +153 -0
  77. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +1 -0
  78. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +111 -0
  79. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +23 -0
  80. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +52 -0
  81. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
  82. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
  83. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
  84. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
  85. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
  86. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +1 -0
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +13 -0
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +37 -0
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +13 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +89 -0
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +31 -0
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +38 -0
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +63 -0
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +95 -0
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +99 -0
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +18 -0
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +95 -0
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +50 -0
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +10 -0
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +10 -0
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +10 -0
  104. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +10 -0
  105. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +10 -0
  106. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +10 -0
  107. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +10 -0
  108. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +10 -0
  109. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +66 -0
  110. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +64 -0
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +1 -0
  112. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +13 -0
  113. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +127 -0
  114. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +9 -0
  115. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +35 -0
  116. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +67 -0
  117. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  118. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +19 -0
  119. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +25 -0
  120. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +22 -0
  121. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +71 -0
  122. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +22 -0
  123. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +37 -0
  124. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +3 -0
  125. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +53 -0
  126. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +46 -0
  127. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +83 -0
  128. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +12 -0
  129. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +1 -0
  130. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +49 -0
  131. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +18 -0
  132. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +53 -0
  133. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +216 -0
  134. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +53 -0
  135. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +180 -0
  136. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +15 -0
  137. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +229 -0
  138. package/dist/lib/collection/global/init-host.js +22 -0
  139. package/dist/lib/collection/global/main.dev.js +26 -0
  140. package/dist/lib/collection/global/main.js +11 -0
  141. package/dist/lib/collection/global/stencil-router-workaround.js +12 -0
  142. package/dist/lib/collection/index.js +2 -0
  143. package/dist/lib/collection/utils/config.js +2 -0
  144. package/dist/lib/collection/utils/gtm.js +5 -0
  145. package/dist/lib/collection/utils/iframe.js +33 -0
  146. package/dist/lib/collection/utils/index.js +8 -0
  147. package/dist/lib/collection/utils/lazy.js +29 -0
  148. package/dist/lib/collection/utils/storage.js +5 -0
  149. package/dist/lib/esm/active-router-4c80d3d2.js +73 -0
  150. package/dist/lib/esm/apollo-super-selection.js +21 -0
  151. package/dist/lib/esm/app-globals-7ac1ffba.js +23 -0
  152. package/dist/lib/esm/context-consumer.entry.js +25 -0
  153. package/dist/lib/esm/datorama-akita-79ce4385.js +2692 -0
  154. package/dist/lib/esm/delay-c0555599.js +935 -0
  155. package/dist/lib/esm/fl-button_46.entry.js +17150 -0
  156. package/dist/lib/esm/fl-style-guide.entry.js +86 -0
  157. package/dist/lib/esm/index-0496d1af.js +1734 -0
  158. package/dist/lib/esm/index.js +1 -0
  159. package/dist/lib/esm/loader.js +21 -0
  160. package/dist/lib/esm/polyfills/core-js.js +11 -0
  161. package/dist/lib/esm/polyfills/css-shim.js +1 -0
  162. package/dist/lib/esm/polyfills/dom.js +79 -0
  163. package/dist/lib/esm/polyfills/es5-html-element.js +1 -0
  164. package/dist/lib/esm/polyfills/index.js +34 -0
  165. package/dist/lib/esm/polyfills/system.js +6 -0
  166. package/dist/lib/esm/stencil-async-content.entry.js +28 -0
  167. package/dist/lib/esm/stencil-route-title.entry.js +28 -0
  168. package/dist/lib/esm/stencil-router-prompt.entry.js +55 -0
  169. package/dist/lib/esm/stencil-router-redirect.entry.js +28 -0
  170. package/dist/lib/esm-es5/active-router-4c80d3d2.js +1 -0
  171. package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
  172. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +1 -0
  173. package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
  174. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +15 -0
  175. package/dist/lib/esm-es5/delay-c0555599.js +1 -0
  176. package/dist/lib/esm-es5/fl-button_46.entry.js +69 -0
  177. package/dist/lib/esm-es5/fl-style-guide.entry.js +1 -0
  178. package/dist/lib/esm-es5/index-0496d1af.js +1 -0
  179. package/dist/lib/esm-es5/index.js +0 -0
  180. package/dist/lib/esm-es5/loader.js +1 -0
  181. package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -0
  182. package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -0
  183. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -0
  184. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -0
  185. package/dist/lib/index.cjs.js +1 -0
  186. package/dist/lib/index.js +1 -0
  187. package/dist/lib/loader/cdn.js +3 -0
  188. package/dist/lib/loader/index.cjs.js +3 -0
  189. package/dist/lib/loader/index.d.ts +13 -0
  190. package/dist/lib/loader/index.es2017.js +3 -0
  191. package/dist/lib/loader/index.js +4 -0
  192. package/dist/lib/loader/package.json +10 -0
  193. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +45 -0
  194. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +9 -0
  195. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +9 -0
  196. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +141 -0
  197. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +5 -0
  198. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  199. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +3 -0
  200. package/dist/lib/types/components/app-host/loading-page.d.ts +3 -0
  201. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +11 -0
  202. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +9 -0
  203. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +14 -0
  204. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +13 -0
  205. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +9 -0
  206. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +7 -0
  207. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +5 -0
  208. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +7 -0
  209. package/dist/lib/types/components/app-host/services/interop.query.d.ts +11 -0
  210. package/dist/lib/types/components/app-host/services/session.store.d.ts +30 -0
  211. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +17 -0
  212. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +2 -0
  213. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +6 -0
  214. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +73 -0
  215. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +16 -0
  216. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +82 -0
  217. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +4 -0
  218. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +4 -0
  219. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +17 -0
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +8 -0
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +28 -0
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +9 -0
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +30 -0
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +15 -0
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +12 -0
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +12 -0
  227. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +112 -0
  228. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +15 -0
  229. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +14 -0
  230. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +14 -0
  231. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +7 -0
  232. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +6 -0
  233. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +6 -0
  234. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.d.ts +7 -0
  235. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +8 -0
  236. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +9 -0
  237. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.d.ts +11 -0
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +6 -0
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +21 -0
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +1 -0
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +1 -0
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +2 -0
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +1 -0
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +5 -0
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +6 -0
  246. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +7 -0
  247. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +12 -0
  248. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +3 -0
  249. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +11 -0
  250. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +3 -0
  251. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +3 -0
  252. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +3 -0
  253. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +3 -0
  254. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +3 -0
  255. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +3 -0
  256. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +3 -0
  257. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +3 -0
  258. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +6 -0
  259. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +58 -0
  260. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +6 -0
  261. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +4 -0
  262. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +13 -0
  263. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +7 -0
  264. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +7 -0
  265. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +8 -0
  266. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +3 -0
  267. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +5 -0
  268. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +8 -0
  269. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +17 -0
  270. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +9 -0
  271. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +15 -0
  272. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +14 -0
  273. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +18 -0
  274. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +23 -0
  275. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +26 -0
  276. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +14 -0
  277. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +3 -0
  278. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +7 -0
  279. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +5 -0
  280. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +17 -0
  281. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +14 -0
  282. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +26 -0
  283. package/dist/lib/types/components.d.ts +576 -0
  284. package/dist/lib/types/global/init-host.d.ts +1 -0
  285. package/dist/lib/types/global/main.d.ts +1 -0
  286. package/dist/lib/types/global/main.dev.d.ts +1 -0
  287. package/dist/lib/types/global/stencil-router-workaround.d.ts +1 -0
  288. package/dist/lib/types/index.d.ts +2 -0
  289. package/dist/lib/types/stencil-public-runtime.d.ts +1555 -0
  290. package/dist/lib/types/utils/config.d.ts +2 -0
  291. package/dist/lib/types/utils/gtm.d.ts +7 -0
  292. package/dist/lib/types/utils/iframe.d.ts +13 -0
  293. package/dist/lib/types/utils/index.d.ts +3 -0
  294. package/dist/lib/types/utils/lazy.d.ts +12 -0
  295. package/dist/lib/types/utils/storage.d.ts +4 -0
  296. package/package.json +1 -1
@@ -0,0 +1,103 @@
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);
@@ -0,0 +1,111 @@
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
+ };
@@ -0,0 +1,153 @@
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
+ }
@@ -0,0 +1,111 @@
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.showSmsfNotSupported = false;
12
+ this.eventTrackingService = EventTrackingService.Instance;
13
+ this.success = () => {
14
+ superSelectionAppService.markSuperSelectionAsSubmitted();
15
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
16
+ };
17
+ }
18
+ componentDidLoad() {
19
+ return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync();
20
+ }
21
+ render() {
22
+ return (h(Host, { class: "d-flex flex-fill" },
23
+ h("sss-custom-fund", { class: "flex-fill" },
24
+ h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
25
+ 'was-validated': this.formState === 'validated'
26
+ }, ref: (el) => (this.formElement = el) },
27
+ h("div", { class: "card p-4" },
28
+ h("p", { class: "font-weight-bold" }, "Fund details"),
29
+ h("p", { class: "text-warning mb-4 small" }, "Make sure you are already a member of the fund before completing this step."),
30
+ h("sss-self-managed-fund-inputs", { fundForm: customFundState.selfManagedFundForm, onFormChanged: (event) => {
31
+ customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
32
+ } })),
33
+ h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
34
+ customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
35
+ } }),
36
+ this.showSmsfNotSupported && (h("sss-smsf-not-supported-dialog", { ref: (el) => (this.notSupportedDialog = el), onContinue: this.success }))),
37
+ h("div", { class: "mt-4" },
38
+ h("sss-notifications-section", null)),
39
+ h("div", { class: "d-flex mt-4" },
40
+ h("div", { class: "flex-grow-1 w-50" },
41
+ h("div", { class: "mr-2" },
42
+ h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
43
+ h("span", null, "Back")))),
44
+ h("div", { class: "flex-grow-1 w-50" },
45
+ h("div", { class: "ml-2" },
46
+ h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
47
+ h("span", null, "Submit"))))))));
48
+ }
49
+ componentDidRender() {
50
+ var _a;
51
+ this.showSmsfNotSupported && ((_a = this.notSupportedDialog) === null || _a === void 0 ? void 0 : _a.scrollIntoView());
52
+ }
53
+ async handleSubmitForm() {
54
+ this.formState = 'validated';
55
+ if (this.formElement.checkValidity()) {
56
+ const requestDto = {
57
+ smsfChoice: {
58
+ abn: customFundState.selfManagedFundForm.fundAbn,
59
+ fundName: customFundState.selfManagedFundForm.fundName,
60
+ fundAddress: {
61
+ addressLine1: customFundState.selfManagedFundForm.addressLine1,
62
+ addressLine2: customFundState.selfManagedFundForm.addressLine2,
63
+ city: customFundState.selfManagedFundForm.city,
64
+ state: customFundState.selfManagedFundForm.state,
65
+ postcode: customFundState.selfManagedFundForm.postcode
66
+ },
67
+ bsb: customFundState.selfManagedFundForm.bsb,
68
+ bankAccountName: customFundState.selfManagedFundForm.bankAccountName,
69
+ bankAccountNumber: customFundState.selfManagedFundForm.bankAccountNumber,
70
+ electronicServiceAddress: customFundState.selfManagedFundForm.fundEsa
71
+ },
72
+ standardChoiceFormSignature: customFundState.selfManagedFundForm.standardChoiceFormSignature
73
+ };
74
+ await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
75
+ if (superSelectionAppService.showSmsfNotSupported) {
76
+ this.showSmsfNotSupported = true;
77
+ }
78
+ else {
79
+ this.success();
80
+ }
81
+ }
82
+ }
83
+ static get is() { return "sss-self-managed-fund"; }
84
+ static get properties() { return {
85
+ "history": {
86
+ "type": "unknown",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "RouterHistory",
90
+ "resolved": "RouterHistory",
91
+ "references": {
92
+ "RouterHistory": {
93
+ "location": "import",
94
+ "path": "@stencil/router"
95
+ }
96
+ }
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": ""
103
+ }
104
+ }
105
+ }; }
106
+ static get states() { return {
107
+ "formState": {},
108
+ "showSmsfNotSupported": {}
109
+ }; }
110
+ }
111
+ injectHistory(SelfManagedFund);
@@ -0,0 +1,23 @@
1
+ html {
2
+ scroll-behavior: smooth;
3
+ }
4
+
5
+ img.fluid-fit {
6
+ object-fit: cover;
7
+ }
8
+
9
+ .overlay {
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ z-index: 100;
14
+ background-color: #fff;
15
+ opacity: 0.7;
16
+ width: 100%;
17
+ height: 100%;
18
+ }
19
+
20
+ .dialog {
21
+ z-index: 101;
22
+ position: relative;
23
+ }
@@ -0,0 +1,52 @@
1
+ import { Component, Event, h, Host } from '@stencil/core';
2
+ export class SmsfNotSupportedDialog {
3
+ constructor() {
4
+ this.standardChoiceFormUrl = '/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf';
5
+ this.handleContinue = () => {
6
+ this.continue.emit();
7
+ };
8
+ }
9
+ render() {
10
+ return (h(Host, null,
11
+ h("div", { class: "overlay" }),
12
+ h("div", { class: "dialog" },
13
+ h("div", { class: "card p-4 mt-4 bg-light text-center" },
14
+ h("div", { style: { 'text-align': 'center' } },
15
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "orange", viewBox: "0 0 16 16" },
16
+ h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" }))),
17
+ h("p", { class: "small mt-4 mb-0" },
18
+ "You\u2019ve selected a self-managed super fund (SMSF). Currently, SMSF information can\u2019t be sent via this form. You\u2019ll need to provide your employer with a",
19
+ ' ',
20
+ h("a", { target: "_blank", href: this.standardChoiceFormUrl }, "standard choice form"),
21
+ ' ',
22
+ "for your SMSF details."),
23
+ h("div", { class: "d-flex mt-4" },
24
+ h("div", { class: "w-25" }),
25
+ h("div", { class: "w-50" },
26
+ h("fl-button", { onClick: this.handleContinue, isBlockElement: true, variant: "primary" },
27
+ h("span", null, "Continue"))))))));
28
+ }
29
+ static get is() { return "sss-smsf-not-supported-dialog"; }
30
+ static get originalStyleUrls() { return {
31
+ "$": ["self-managed-not-supported.scss"]
32
+ }; }
33
+ static get styleUrls() { return {
34
+ "$": ["self-managed-not-supported.css"]
35
+ }; }
36
+ static get events() { return [{
37
+ "method": "continue",
38
+ "name": "continue",
39
+ "bubbles": true,
40
+ "cancelable": true,
41
+ "composed": true,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "complexType": {
47
+ "original": "void",
48
+ "resolved": "void",
49
+ "references": {}
50
+ }
51
+ }]; }
52
+ }
@@ -0,0 +1,13 @@
1
+ import { buildBackendApiClient } from '../../../api/api-client';
2
+ export class PromotedFundChoiceApi {
3
+ async submitChoiceAsync(dto) {
4
+ return buildBackendApiClient()
5
+ .url('super-choice/promoted-fund')
6
+ .post(dto)
7
+ .badRequest(() => {
8
+ throw new Error('Failed to process Promoted Fund choice request');
9
+ })
10
+ .text();
11
+ }
12
+ }
13
+ export default new PromotedFundChoiceApi();
@@ -0,0 +1,34 @@
1
+ import { Component, h, Host, Prop } from '@stencil/core';
2
+ import PromotedFundJoinIFrameBuilder from './services/promoted-fund-join-iframe-builder';
3
+ export class PromotedFundJoinPage {
4
+ componentDidLoad() {
5
+ PromotedFundJoinIFrameBuilder.build(this.iframeElement, this.history);
6
+ }
7
+ render() {
8
+ return (h(Host, { class: "d-flex flex-fill" },
9
+ h("iframe", { width: "100%", height: window.innerHeight, style: { border: 'none' }, ref: (el) => (this.iframeElement = el) })));
10
+ }
11
+ static get is() { return "sss-promoted-fund-join-page"; }
12
+ static get properties() { return {
13
+ "history": {
14
+ "type": "unknown",
15
+ "mutable": false,
16
+ "complexType": {
17
+ "original": "RouterHistory",
18
+ "resolved": "RouterHistory",
19
+ "references": {
20
+ "RouterHistory": {
21
+ "location": "import",
22
+ "path": "@stencil/router"
23
+ }
24
+ }
25
+ },
26
+ "required": false,
27
+ "optional": false,
28
+ "docs": {
29
+ "tags": [],
30
+ "text": ""
31
+ }
32
+ }
33
+ }; }
34
+ }