@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,99 @@
1
+ import { Component, h, Host, State } from '@stencil/core';
2
+ import { EventTrackingService } from '../../services/event-tracking.service';
3
+ import notificationsService from '../../services/notifications.service';
4
+ import superSelectionAppService from '../../services/super-selection-app.service';
5
+ import * as constants from '../constants';
6
+ import { continueEnabledCheck } from './helpers/continueCheck';
7
+ import { getNextRoute } from './helpers/getNextRoute';
8
+ import { resetQSuperState } from './helpers/resetState';
9
+ import qSuperState from './services/qsuper.store';
10
+ export class QsuperInsuranceOptIn {
11
+ constructor() {
12
+ this.insuranceChosen = false;
13
+ this.eventTrackingService = EventTrackingService.Instance;
14
+ this.isEligibleForInsurance = false;
15
+ }
16
+ componentDidLoad() {
17
+ return this.eventTrackingService.TrackFinancialProductViewedAsync({
18
+ fundUsi: constants.QSuperFundUsi,
19
+ fundName: constants.QSuperFundName,
20
+ fundNameAlt: constants.QSuperAltFundName,
21
+ financialProduct: constants.QSuperInsuranceProductName
22
+ });
23
+ }
24
+ componentWillLoad() {
25
+ resetQSuperState();
26
+ this.ensureInsuranceEligibility();
27
+ }
28
+ render() {
29
+ return (h(Host, { class: "d-flex flex-fill" },
30
+ h("sss-qsuper-layout", { class: "d-flex flex-fill" },
31
+ h("sss-qsuper-confirm-header", null),
32
+ h("div", { class: "mt-4 p-3 checkbox-container" },
33
+ h("p", null,
34
+ "As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",
35
+ h("br", null),
36
+ h("br", null),
37
+ "You will receive this cover when: ",
38
+ h("br", null),
39
+ h("br", null),
40
+ "You are 25 years or older; ",
41
+ h("br", null),
42
+ "and You have had at least $6,000 in your accumulation account; ",
43
+ h("br", null),
44
+ "and At that time, we have received money into your account within the previous 13 months ",
45
+ h("br", null),
46
+ h("br", null),
47
+ "Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",
48
+ h("br", null),
49
+ h("br", null),
50
+ "Do you want this insurance cover?"),
51
+ h("div", { class: "d-flex justify-content-between mt-4" },
52
+ h("div", { class: "button-holder flex-grow-1 mr-2" },
53
+ h("fl-button", { disabled: !this.isEligibleForInsurance, isBlockElement: true, variant: this.insuranceChosen ? 'primary' : 'secondary', onClick: () => this.handleInsuranceToggle(true) }, "Yes")),
54
+ h("div", { class: "button-holder flex-grow-1 ml-2" },
55
+ h("fl-button", { disabled: !this.isEligibleForInsurance, isBlockElement: true, variant: !this.insuranceChosen ? 'primary' : 'secondary', onClick: () => this.handleInsuranceToggle(false) }, "No")))),
56
+ h("div", null,
57
+ h("label", { class: "d-flex\u00A0mt-3\u00A0p-3\u00A0checkbox-container", htmlFor: "ackCheckBox" },
58
+ h("div", { class: "w-auto\u00A0px-2 fl-checkbox-container" },
59
+ h("input", { id: "ackCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })),
60
+ h("div", { class: "pl-3" },
61
+ h("p", { class: "confirm-item-text\u00A0mb-0" }, "I acknowledge that my personal information will be shared with QSuper as part of their application process.")))))));
62
+ }
63
+ ensureInsuranceEligibility() {
64
+ if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuperMinAge) {
65
+ return;
66
+ }
67
+ else if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuperMinInsuranceAge) {
68
+ this.showIneligibleNotification(`You may still apply for QSuper, however people under the age of ${constants.QSuperMinInsuranceAge} are not able to apply for insurance.`);
69
+ return;
70
+ }
71
+ this.isEligibleForInsurance = true;
72
+ }
73
+ showIneligibleNotification(description) {
74
+ notificationsService.showInfoNotification({
75
+ title: "Unable to apply for Insurance",
76
+ description
77
+ });
78
+ }
79
+ handleInsuranceToggle(input) {
80
+ qSuperState.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
81
+ this.insuranceChosen = qSuperState.qSuperQuestionnaire.insuranceChosen;
82
+ qSuperState.nextRoute = getNextRoute();
83
+ }
84
+ handleCheckboxToggle() {
85
+ qSuperState.qSuperOptInPageCheckbox = !qSuperState.qSuperOptInPageCheckbox;
86
+ continueEnabledCheck();
87
+ qSuperState.nextRoute = getNextRoute();
88
+ }
89
+ static get is() { return "sss-qsuper-insurance-opt-in"; }
90
+ static get originalStyleUrls() { return {
91
+ "$": ["qsuper.scss"]
92
+ }; }
93
+ static get styleUrls() { return {
94
+ "$": ["qsuper.css"]
95
+ }; }
96
+ static get states() { return {
97
+ "insuranceChosen": {}
98
+ }; }
99
+ }
@@ -0,0 +1,18 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class QsuperInsuranceQuestions {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-layout", { class: "d-flex flex-fill" },
6
+ h("sss-qsuper-confirm-header", null),
7
+ h("div", { class: "p-3 mt-4 checkbox-container" },
8
+ h("slot", null),
9
+ h("sss-qsuper-question-yes-no-buttons", null)))));
10
+ }
11
+ static get is() { return "sss-qsuper-insurance-questions"; }
12
+ static get originalStyleUrls() { return {
13
+ "$": ["./qsuper.scss"]
14
+ }; }
15
+ static get styleUrls() { return {
16
+ "$": ["qsuper.css"]
17
+ }; }
18
+ }
@@ -0,0 +1,95 @@
1
+ import { Component, h, Prop } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import navigationService from '../../services/navigation.service';
4
+ import notificationsService from '../../services/notifications.service';
5
+ import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
6
+ import superSelectionAppService from '../../services/super-selection-app.service';
7
+ import * as constants from '../constants';
8
+ import { handleConfirmClickAsync } from './helpers/confirmCheck';
9
+ import { getNextRoute } from './helpers/getNextRoute';
10
+ import qSuperState from './services/qsuper.store';
11
+ export class QsuperLayout {
12
+ constructor() {
13
+ this.isEligible = false;
14
+ this.canContinue = () => this.isEligible && qSuperState.continueAllowed;
15
+ this.ensureEligibility = () => {
16
+ if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuperMinAge) {
17
+ this.showIneligibleNotification(`People under the age of ${constants.QSuperMinAge} are not able to open accounts.`);
18
+ }
19
+ else if (superSelectionAppService.superBuyer.userProfile.yearsOfAge > constants.QSuperMaxAge) {
20
+ this.showIneligibleNotification(`People over the age of ${constants.QSuperMaxAge} are not able to open accounts.`);
21
+ }
22
+ else {
23
+ this.isEligible = true;
24
+ }
25
+ };
26
+ this.showIneligibleNotification = (description) => {
27
+ notificationsService.showInfoNotification({
28
+ title: "Unable to apply for QSuper",
29
+ description
30
+ });
31
+ };
32
+ }
33
+ async componentWillLoad() {
34
+ this.ensureEligibility();
35
+ qSuperState.nextRoute = getNextRoute();
36
+ }
37
+ render() {
38
+ return (h("div", { class: "container" },
39
+ h("div", { class: "row justify-content-center" },
40
+ h("div", { class: "col col-sm-10 col-md-7" },
41
+ h("slot", null),
42
+ h("div", { class: "mt-4" },
43
+ h("sss-notifications-section", null)),
44
+ h("div", { class: "d-flex mt-4" },
45
+ h("div", { class: "flex-grow-1 w-50" },
46
+ h("div", { class: "mr-2" },
47
+ h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
48
+ h("span", null, "Back")))),
49
+ h("div", { class: "flex-grow-1 w-50" },
50
+ h("div", { class: "ml-2" },
51
+ h("fl-promise-button", { isBlockElement: true, disabled: !this.canContinue(), promiseFn: () => this.tryAsync() },
52
+ h("span", null, "Continue")))))))));
53
+ }
54
+ async tryAsync() {
55
+ try {
56
+ if (!this.canContinue()) {
57
+ return;
58
+ }
59
+ await handleConfirmClickAsync();
60
+ navigationService.navigateInternally(this.history, qSuperState.nextRoute);
61
+ }
62
+ catch (error) {
63
+ notificationsService.showErrorNotification({
64
+ title: "Couldn't process your request",
65
+ description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
66
+ });
67
+ qSuperState.continueAllowed = true;
68
+ }
69
+ }
70
+ static get is() { return "sss-qsuper-layout"; }
71
+ static get assetsDirs() { return ["assets"]; }
72
+ static get properties() { return {
73
+ "history": {
74
+ "type": "unknown",
75
+ "mutable": false,
76
+ "complexType": {
77
+ "original": "RouterHistory",
78
+ "resolved": "RouterHistory",
79
+ "references": {
80
+ "RouterHistory": {
81
+ "location": "import",
82
+ "path": "@stencil/router"
83
+ }
84
+ }
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": ""
91
+ }
92
+ }
93
+ }; }
94
+ }
95
+ injectHistory(QsuperLayout);
@@ -0,0 +1,50 @@
1
+ html {
2
+ scroll-behavior: smooth;
3
+ }
4
+
5
+ img.fluid-fit {
6
+ object-fit: cover;
7
+ }
8
+
9
+ .choice-container {
10
+ margin-top: 0 !important;
11
+ margin-bottom: 0 !important;
12
+ }
13
+
14
+ .confirm-title {
15
+ font-size: 20px;
16
+ margin-bottom: 0;
17
+ }
18
+
19
+ .confirm-text {
20
+ font-size: 14px;
21
+ }
22
+
23
+ .edit-toggle {
24
+ cursor: pointer;
25
+ }
26
+
27
+ .form-value-text {
28
+ overflow-wrap: anywhere;
29
+ }
30
+
31
+ .confirm-checkbox-item {
32
+ transform: scale(1.7);
33
+ }
34
+
35
+ .checkbox-container {
36
+ border-radius: 4px;
37
+ background-color: #f5f4f2;
38
+ }
39
+
40
+ .confirm-item-text {
41
+ font-size: 13px;
42
+ }
43
+
44
+ .button-holder {
45
+ min-width: 8rem;
46
+ }
47
+
48
+ .confirm-form-view-only-holder * {
49
+ font-size: 14px;
50
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question1 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 1"),
7
+ h("p", { class: " mb-0" }, "Are you currently a registered or enrolled nurse or assistant in nursing who is qualified and currently practicing, or working in the retail sector, or food and beverage service?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-1"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question2 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 2"),
7
+ h("p", { class: " mb-0" }, "Are you currently a qualified tradesperson currently working within your area of expertise (e.g. hairdresser, chef, plumber, electrician, plasterer, carpenter or concreter), or a skilled worker with light manual duties (e.g. jeweller, building inspector, laboratory technician, foreman or office equipment technician)?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-2"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question3 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 3"),
7
+ h("p", { class: " mb-0" }, "Are you currently a police officer, firefighter, paramedic, or other emergency or protective services worker, including security guard or corrections officer, or a professional sportsperson, or working in a manual occupation which does not require trade specific qualifications and may be subject to accident or environment hazards (e.g. earthmover, driver, cleaner, labourer, factory worker or agricultural worker)?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-3"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question4 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 4"),
7
+ h("p", { class: " mb-0" }, "Are the usual work activities of your job considered office based or school teaching ( meaning you spend at least 80% of your work time doing clerical, call centre, administrative or other office or classroom based activities), or are you a medical practitioner, lawyer or engineer who spends at least 80% of your work hours in an office or clinical environment?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-4"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question5 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 5"),
7
+ h("p", { class: " mb-0" }, "Do you currently perform, or intend to work in a job within the next three months that includes, any of the following risky activities: handling firearms (other than as a police officer, correctional officer or licensed security guard), dangerous chemicals or explosives, or offshore work \u2013 oil and gas platforms, ships at sea, or being underground (in construction and mining environments) or underwater for more than 20% of total at work time, or working at heights over 20 metres in any environment requiring hard hat and harness for safety by law, or crop dusting, aerial mustering or any low level flying activity (defined as below 150 metres or 500 feet), or flying more than 200 hours per annum as a passenger other than on a commercial airline, or as a pilot (fixed wing or helicopter)?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-5"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question6 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 6"),
7
+ h("p", { class: " mb-0" }, "Are you earning more than $120,000 a year, (before tax and employer paid superannuation), from your job?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-6"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question7 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 7"),
7
+ h("p", { class: " mb-0" }, "Do you have a university qualification which you are using/is required in your current role?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-7"; }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, h, Host } from '@stencil/core';
2
+ export class Question8 {
3
+ render() {
4
+ return (h(Host, { class: "d-flex flex-fill" },
5
+ h("sss-qsuper-insurance-questions", null,
6
+ h("p", { class: "font-weight-bold" }, "Question 8"),
7
+ h("p", { class: " mb-0" }, "Do you have a senior/executive level management role in your company (your direct reports would be mid-level managers or skilled specialists in a sedentary setting), or is your role considered professional (e.g. doctor, solicitor, accountant \u2013 requiring membership of a professional or government body to practice in your occupation)?"))));
8
+ }
9
+ static get is() { return "sss-qsuper-question-8"; }
10
+ }
@@ -0,0 +1,66 @@
1
+ import { Component, h, Prop } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import navigationService from '../../../../services/navigation.service';
4
+ import superSelectionAppService from '../../../../services/super-selection-app.service';
5
+ import { getNextRoute } from '../../helpers/getNextRoute';
6
+ import qSuperState from '../../services/qsuper.store';
7
+ export class QsuperQuestionYesNoButtons {
8
+ render() {
9
+ return (h("div", { class: "d-flex mt-4" },
10
+ h("div", { class: "flex-grow-1 w-50" },
11
+ h("div", { class: "mr-2" },
12
+ h("fl-button", { onClick: () => this.handleQuestionClick(true), isBlockElement: true, variant: "secondary" },
13
+ h("span", null, "Yes")))),
14
+ h("div", { class: "flex-grow-1 w-50" },
15
+ h("div", { class: "ml-2" },
16
+ h("fl-promise-button", { isBlockElement: true, variant: "secondary", onClick: () => this.handleQuestionClick(false) },
17
+ h("span", null, "No"))))));
18
+ }
19
+ handleQuestionClick(input) {
20
+ // on click of yes or no - record this to state
21
+ const baseAppUrl = superSelectionAppService.appBaseUrl;
22
+ const currentQuestion = window.location.pathname
23
+ .split(baseAppUrl + '/qsuper/insurance/')[1]
24
+ .replace(/\/+$/, '');
25
+ if (qSuperState.qSuperQuestionnaire.questions === undefined) {
26
+ qSuperState.qSuperQuestionnaire.questions = {
27
+ question1: false,
28
+ question2: false,
29
+ question3: false,
30
+ question4: false,
31
+ question5: false,
32
+ question6: false,
33
+ question7: false,
34
+ question8: false
35
+ };
36
+ }
37
+ qSuperState.qSuperQuestionnaire.questions[currentQuestion] = input;
38
+ qSuperState.qSuperInsuranceQuestions[currentQuestion].answered = true;
39
+ qSuperState.nextRoute = getNextRoute();
40
+ navigationService.navigateInternally(this.history, qSuperState.nextRoute);
41
+ }
42
+ static get is() { return "sss-qsuper-question-yes-no-buttons"; }
43
+ static get properties() { return {
44
+ "history": {
45
+ "type": "unknown",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "RouterHistory",
49
+ "resolved": "RouterHistory",
50
+ "references": {
51
+ "RouterHistory": {
52
+ "location": "import",
53
+ "path": "@stencil/router"
54
+ }
55
+ }
56
+ },
57
+ "required": false,
58
+ "optional": false,
59
+ "docs": {
60
+ "tags": [],
61
+ "text": ""
62
+ }
63
+ }
64
+ }; }
65
+ }
66
+ injectHistory(QsuperQuestionYesNoButtons);
@@ -0,0 +1,64 @@
1
+ import { createStore } from '@stencil/store';
2
+ export var QSuperFormPages;
3
+ (function (QSuperFormPages) {
4
+ QSuperFormPages[QSuperFormPages["InsuranceConfirm"] = 0] = "InsuranceConfirm";
5
+ QSuperFormPages[QSuperFormPages["InsuranceQuestions"] = 1] = "InsuranceQuestions";
6
+ QSuperFormPages[QSuperFormPages["AccumulationAccount"] = 2] = "AccumulationAccount";
7
+ QSuperFormPages[QSuperFormPages["ConfirmSelection"] = 3] = "ConfirmSelection";
8
+ })(QSuperFormPages || (QSuperFormPages = {}));
9
+ export var QSuperInsuranceQuestions;
10
+ (function (QSuperInsuranceQuestions) {
11
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question1"] = 0] = "question1";
12
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question2"] = 1] = "question2";
13
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question3"] = 2] = "question3";
14
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question4"] = 3] = "question4";
15
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question5"] = 4] = "question5";
16
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question6"] = 5] = "question6";
17
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question7"] = 6] = "question7";
18
+ QSuperInsuranceQuestions[QSuperInsuranceQuestions["question8"] = 7] = "question8";
19
+ })(QSuperInsuranceQuestions || (QSuperInsuranceQuestions = {}));
20
+ export const initialStateQSuper = {
21
+ currentQSuperInsuranceQuestion: QSuperInsuranceQuestions.question1,
22
+ currentQSuperFormPage: QSuperFormPages.InsuranceConfirm,
23
+ qSuperFormValid: false,
24
+ nextRoute: '/',
25
+ continueAllowed: false,
26
+ qSuperOptInPageCheckbox: false,
27
+ qSuperJoinPageCheckbox: false,
28
+ qSuperInsuranceQuestions: {
29
+ question1: {
30
+ answered: false
31
+ },
32
+ question2: {
33
+ answered: false
34
+ },
35
+ question3: {
36
+ answered: false
37
+ },
38
+ question4: {
39
+ answered: false
40
+ },
41
+ question5: {
42
+ answered: false
43
+ },
44
+ question6: {
45
+ answered: false
46
+ },
47
+ question7: {
48
+ answered: false
49
+ },
50
+ question8: {
51
+ answered: false
52
+ }
53
+ },
54
+ qSuperQuestionnaire: {
55
+ reviewedApplication: false,
56
+ acceptedDeclaration: false,
57
+ readDutyOfDisclosure: false,
58
+ insuranceChosen: false
59
+ },
60
+ standardChoiceFormSignature: ''
61
+ };
62
+ const { state, reset } = createStore(initialStateQSuper);
63
+ export const resetQSuperStore = reset;
64
+ export default state;
@@ -0,0 +1,13 @@
1
+ import { buildBackendApiClient } from '../../../api/api-client';
2
+ export class SlateChoiceApi {
3
+ async submitSlateChoiceAsync(dto) {
4
+ return buildBackendApiClient()
5
+ .url('super-choice/slate')
6
+ .post(dto)
7
+ .badRequest(() => {
8
+ throw new Error('Failed to process Slate join request');
9
+ })
10
+ .text();
11
+ }
12
+ }
13
+ export default new SlateChoiceApi();
@@ -0,0 +1,127 @@
1
+ import interopQuery from '../../../../app-host/services/interop.query';
2
+ import navigationService from '../../../services/navigation.service';
3
+ import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
4
+ import superSelectionAppService from '../../../services/super-selection-app.service';
5
+ import slateFundState from '../../slate-super/slate-fund.store';
6
+ class SlateIFrameBuilder {
7
+ constructor() {
8
+ this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
9
+ this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
10
+ this.skipConsolidation = () => (interopQuery.isReactNativeInteropEnabled() ? 'true' : 'false');
11
+ this.environmentDiscriminator = () => {
12
+ const discriminator = window.location.hostname.toLowerCase().split('.')[0];
13
+ switch (discriminator) {
14
+ case 'autodev-partner':
15
+ case 'test-partner':
16
+ case 'partner':
17
+ case 'sandbox-partner':
18
+ return discriminator.replace('partner', '');
19
+ default:
20
+ return 'autodev-';
21
+ }
22
+ };
23
+ this.slateJoinAppUrl = () => {
24
+ return `https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`;
25
+ };
26
+ }
27
+ build(iframe, history) {
28
+ if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
29
+ return;
30
+ const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
31
+ ? `${window.location.origin}/super-selection/embed/v1.0/app`
32
+ : 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
33
+ const redirectUrl = `${baseUrl}/slate-redirect.html`;
34
+ const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
35
+ if (this.includeJwt()) {
36
+ postData.authToken = superSelectionAppService.jwt;
37
+ }
38
+ const handleMessage = (event) => {
39
+ const { data, origin } = event;
40
+ if (!data) {
41
+ return;
42
+ }
43
+ if (data.sender === 'slate-redirect') {
44
+ window.removeEventListener('message', handleMessage);
45
+ switch (data.type) {
46
+ case 'success':
47
+ if (data.memberNumber) {
48
+ slateFundState.slateFundForm.memberNumber = data.memberNumber;
49
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
50
+ break;
51
+ }
52
+ /* falls through */
53
+ default:
54
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
55
+ break;
56
+ }
57
+ return;
58
+ }
59
+ if (data.sender === 'flare' && origin.endsWith('join.slatesuper.com.au')) {
60
+ switch (data.type) {
61
+ case 'contentResized':
62
+ iframe.height = data.height > 0 ? data.height : iframe.height;
63
+ iframe.width = data.width > 0 ? data.width : iframe.width;
64
+ break;
65
+ default:
66
+ break;
67
+ }
68
+ }
69
+ };
70
+ window.addEventListener('message', handleMessage);
71
+ const iframeDoc = iframe.contentDocument;
72
+ iframeDoc.open();
73
+ const form = iframeDoc.createElement('form');
74
+ form.method = 'POST';
75
+ form.target = '_self';
76
+ form.action = this.slateJoinAppUrl();
77
+ let prop;
78
+ for (prop in postData) {
79
+ const value = postData[prop];
80
+ if (value !== undefined) {
81
+ const input = document.createElement('input');
82
+ input.type = 'hidden';
83
+ input.name = prop;
84
+ input.value = value;
85
+ form.append(input);
86
+ }
87
+ }
88
+ iframeDoc.appendChild(form);
89
+ iframeDoc.close();
90
+ form.submit();
91
+ }
92
+ getSlateJoinMemberData() {
93
+ var _a, _b;
94
+ const superBuyer = superSelectionAppService.superBuyer;
95
+ const toSlateGender = (gender) => {
96
+ switch (gender) {
97
+ case 'Male':
98
+ return 'Male';
99
+ case 'Female':
100
+ return 'Female';
101
+ case 'Intersex':
102
+ return 'Intersex/Indeterminate';
103
+ default:
104
+ return 'Unknown';
105
+ }
106
+ };
107
+ return {
108
+ firstName: superBuyer.userProfile.firstName,
109
+ middleName: superBuyer.userProfile.middleName,
110
+ lastName: superBuyer.userProfile.lastName,
111
+ dateOfBirth: superBuyer.userProfile.dateOfBirth,
112
+ gender: toSlateGender(superBuyer.userProfile.gender),
113
+ email: superBuyer.userProfile.email,
114
+ mobilePhone: superBuyer.userProfile.mobilePhone,
115
+ taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
116
+ addressLine1: superBuyer.userProfile.address.addressLine1,
117
+ addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
118
+ city: superBuyer.userProfile.address.city,
119
+ state: superBuyer.userProfile.address.state,
120
+ postCode: superBuyer.userProfile.address.postcode
121
+ };
122
+ }
123
+ includeJwt() {
124
+ return !this.slateJoinAppUrl().match(/autodev|sandbox/);
125
+ }
126
+ }
127
+ export default new SlateIFrameBuilder();
@@ -0,0 +1,9 @@
1
+ import { createStore } from '@stencil/store';
2
+ export const initialSlateSuper = {
3
+ slateFundForm: {
4
+ memberNumber: '',
5
+ standardChoiceFormSignature: ''
6
+ }
7
+ };
8
+ const { state } = createStore(initialSlateSuper);
9
+ export default state;