@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,216 @@
1
+ import { Component, Event, getAssetPath, h, Host, Prop } from '@stencil/core';
2
+ import { EventTrackingService } from '../services/event-tracking.service';
3
+ export class SuperChoiceItem {
4
+ constructor() {
5
+ this.eventTrackingService = EventTrackingService.Instance;
6
+ }
7
+ render() {
8
+ return (h(Host, { class: {
9
+ 'd-flex p-3': true,
10
+ 'ss-picked-fund': this.isSelected
11
+ } },
12
+ h("div", { class: "card-body pb-0 px-0 px-xl-3" },
13
+ this.isSelected && (h("div", { class: "px-3 py-2 text-white picked-block position-absolute" }, "You picked")),
14
+ h("div", { class: "d-flex flex-fill flex-column align-items-center" },
15
+ h("img", { class: "ss-choice-logo", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/${this.logo}`) }),
16
+ h("p", { class: "font-weight-bold text-center mt-3 mb-0" }, this.heading),
17
+ h("div", { class: "mt-3" }, JSON.parse(this.features).map((feature) => (h("p", { class: "text-center" }, feature.value)))))),
18
+ h("div", { class: "text-center" },
19
+ h("div", { class: "p-3" },
20
+ h("fl-button", { class: "uuid-button-continue", isBlockElement: true, onClick: () => this.handleFundClick() }, this.callToAction)),
21
+ h("a", { target: "_blank", href: this.pdsLink, onClick: () => this.pdsViewedAsync() }, "View PDS"))));
22
+ }
23
+ handleFundClick() {
24
+ return this.joinFundClicked.emit();
25
+ }
26
+ pdsViewedAsync() {
27
+ return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
28
+ fundUsi: this.usi,
29
+ fundName: this.name,
30
+ fundNameAlt: this.heading,
31
+ pageName: 'Panel Fund Page'
32
+ });
33
+ }
34
+ static get is() { return "sss-super-choice-item"; }
35
+ static get originalStyleUrls() { return {
36
+ "$": ["super-choice-page.scss"]
37
+ }; }
38
+ static get styleUrls() { return {
39
+ "$": ["super-choice-page.css"]
40
+ }; }
41
+ static get assetsDirs() { return ["assets"]; }
42
+ static get properties() { return {
43
+ "heading": {
44
+ "type": "string",
45
+ "mutable": false,
46
+ "complexType": {
47
+ "original": "string",
48
+ "resolved": "string",
49
+ "references": {}
50
+ },
51
+ "required": false,
52
+ "optional": false,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": ""
56
+ },
57
+ "attribute": "heading",
58
+ "reflect": false
59
+ },
60
+ "isSelected": {
61
+ "type": "boolean",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "boolean",
65
+ "resolved": "boolean",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": false,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": ""
73
+ },
74
+ "attribute": "is-selected",
75
+ "reflect": false
76
+ },
77
+ "usi": {
78
+ "type": "string",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "string",
82
+ "resolved": "string",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": ""
90
+ },
91
+ "attribute": "usi",
92
+ "reflect": false
93
+ },
94
+ "name": {
95
+ "type": "string",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "string",
99
+ "resolved": "string",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "attribute": "name",
109
+ "reflect": false
110
+ },
111
+ "logo": {
112
+ "type": "string",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "string",
116
+ "resolved": "string",
117
+ "references": {}
118
+ },
119
+ "required": false,
120
+ "optional": false,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": ""
124
+ },
125
+ "attribute": "logo",
126
+ "reflect": false
127
+ },
128
+ "pdsLink": {
129
+ "type": "string",
130
+ "mutable": false,
131
+ "complexType": {
132
+ "original": "string",
133
+ "resolved": "string",
134
+ "references": {}
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": ""
141
+ },
142
+ "attribute": "pds-link",
143
+ "reflect": false
144
+ },
145
+ "callToAction": {
146
+ "type": "string",
147
+ "mutable": false,
148
+ "complexType": {
149
+ "original": "string",
150
+ "resolved": "string",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": false,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": ""
158
+ },
159
+ "attribute": "call-to-action",
160
+ "reflect": false
161
+ },
162
+ "features": {
163
+ "type": "string",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "string",
167
+ "resolved": "string",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "attribute": "features",
177
+ "reflect": false
178
+ },
179
+ "history": {
180
+ "type": "unknown",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "RouterHistory",
184
+ "resolved": "RouterHistory",
185
+ "references": {
186
+ "RouterHistory": {
187
+ "location": "import",
188
+ "path": "@stencil/router"
189
+ }
190
+ }
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": ""
197
+ }
198
+ }
199
+ }; }
200
+ static get events() { return [{
201
+ "method": "joinFundClicked",
202
+ "name": "joinFundClicked",
203
+ "bubbles": true,
204
+ "cancelable": true,
205
+ "composed": true,
206
+ "docs": {
207
+ "tags": [],
208
+ "text": ""
209
+ },
210
+ "complexType": {
211
+ "original": "void",
212
+ "resolved": "void",
213
+ "references": {}
214
+ }
215
+ }]; }
216
+ }
@@ -0,0 +1,53 @@
1
+ html {
2
+ scroll-behavior: smooth;
3
+ }
4
+
5
+ img.fluid-fit {
6
+ object-fit: cover;
7
+ }
8
+
9
+ .checkbox-container {
10
+ border-radius: 4px;
11
+ background-color: #f5f4f2;
12
+ }
13
+
14
+ .confirm-checkbox-item {
15
+ transform: scale(1.7);
16
+ }
17
+
18
+ .simple-choices-text {
19
+ color: #489882;
20
+ }
21
+
22
+ .choice-card {
23
+ background: #ffffff;
24
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
25
+ border-radius: 3px;
26
+ }
27
+ .choice-card.ss-picked-fund {
28
+ border: 2px solid var(--fl-color-primary);
29
+ }
30
+
31
+ .card.ss-picked-fund {
32
+ border: 2px solid var(--fl-color-primary);
33
+ }
34
+
35
+ .ss-choice-logo {
36
+ height: 70px;
37
+ width: 70px;
38
+ object-fit: contain;
39
+ }
40
+
41
+ img {
42
+ width: 100%;
43
+ display: block;
44
+ }
45
+
46
+ .choice-component {
47
+ width: 100%;
48
+ position: relative;
49
+ }
50
+
51
+ .flexible {
52
+ flex-grow: 1;
53
+ }
@@ -0,0 +1,180 @@
1
+ import { Component, h, Host, Prop, State } from '@stencil/core';
2
+ import { isSome, none } from 'fp-ts/Option';
3
+ import iframe from '../../../utils/iframe';
4
+ import * as constants from '../funds/constants';
5
+ import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
6
+ import { resetQSuperState } from '../funds/qsuper/helpers/resetState';
7
+ import { EventTrackingService } from '../services/event-tracking.service';
8
+ import navigationService from '../services/navigation.service';
9
+ import chosenFundService from '../services/selected-super-choice-info.service';
10
+ import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
11
+ import SuperSelectionAppService from '../services/super-selection-app.service';
12
+ export class SuperChoicePage {
13
+ constructor() {
14
+ this.promotedFunds = this.getPromotedFunds();
15
+ this.chosenFund = none;
16
+ this.eventTrackingService = EventTrackingService.Instance;
17
+ this.isPromotedFundSelected = (fundId) => {
18
+ return (isSome(this.chosenFund) &&
19
+ this.chosenFund.value.isPromoted &&
20
+ this.chosenFund.value.promotedId === fundId);
21
+ };
22
+ }
23
+ componentDidLoad() {
24
+ iframe.appReady();
25
+ const enabledFundIds = this.promotedFunds.map((item) => item.usi);
26
+ this.eventTrackingService.TrackSuperFundPanelViewedAsync({
27
+ enabledFundIds
28
+ });
29
+ }
30
+ async componentWillLoad() {
31
+ resetQSuperState();
32
+ this.chosenFund = await chosenFundService.GetChosenFundAsync();
33
+ }
34
+ render() {
35
+ const superChoiceParagraphOne = `Selecting the right super fund is very important. Simple Financial Choices have provided you with easy access to the below funds to make your choice an easy one, if you think that one of them might suit your needs.`;
36
+ const superChoiceParagraphTwo = `The content on this page and on the following pages relating to superannuation is provided by Simple Financial Choices (SFC), except for any content in relation to QSuper which is prepared, and provided to SFC, by QSuper Board ABN 32 125 059 006. The superannuation funds presented below are neither selected nor recommended by your employer nor by Flare HR.`;
37
+ const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
38
+ return (h(Host, null,
39
+ h("div", { class: "container mt-0 mb-0" },
40
+ h("div", { class: "row justify-content-center" },
41
+ h("div", { class: "col" },
42
+ h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
43
+ h("h5", { class: "font-weight-bold text-center mb-4" },
44
+ h("span", { class: "text-dark mr-1" }, "Simple Financial"),
45
+ h("span", { class: "simple-choices-text" }, "Choices")))),
46
+ h("div", { class: "row justify-content-center" },
47
+ h("div", { class: "col" },
48
+ h("p", { class: "text-center" }, superChoiceParagraphOne),
49
+ h("p", { class: "text-center small" }, superChoiceParagraphTwo),
50
+ h("p", { class: "text-center small" }, superChoiceParagraphThree))),
51
+ h("div", { class: "row" },
52
+ h("div", { class: "col" },
53
+ h("sss-notifications-section", null))),
54
+ h("div", { class: "row justify-content-center mt-4" },
55
+ h("div", { class: "col col-sm-10 col-md-8 col-xl-7" },
56
+ h("div", { class: "row" },
57
+ h("div", { class: "col" },
58
+ h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))),
59
+ h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" },
60
+ h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))),
61
+ h("div", { class: "row mt-3" },
62
+ h("div", { class: "col" },
63
+ h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
64
+ h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
65
+ }
66
+ allFunds() {
67
+ return [
68
+ {
69
+ fundId: constants.SlateFundId,
70
+ usi: constants.SlateFundUsi,
71
+ name: constants.SlateFundName,
72
+ heading: constants.SlateAltFundName,
73
+ logo: 'logo-slate.png',
74
+ route: SuperSelectionAppRoutes.SlateJoin,
75
+ callToAction: 'Join Slate Super',
76
+ pdsLink: 'https://slatesuper.com.au/pds/?utm_source=flare&utm_medium=superselection',
77
+ features: [
78
+ { order: 1, value: 'Personalised lifestages investment strategy that evolves with you' },
79
+ { order: 2, value: 'Advanced mobile app with retirement forecast and smart features' },
80
+ { order: 3, value: 'Your own personal concierge at Slate to assist with your account' }
81
+ ]
82
+ },
83
+ {
84
+ fundId: constants.QSuperFundId,
85
+ usi: constants.QSuperFundUsi,
86
+ name: constants.QSuperFundName,
87
+ heading: constants.QSuperAltFundName,
88
+ logo: 'logo-qsuper-square.png',
89
+ route: SuperSelectionAppRoutes.QSuperOptIn,
90
+ callToAction: 'Join QSuper',
91
+ pdsLink: 'https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements',
92
+ features: [
93
+ { order: 1, value: '100 years strong' },
94
+ { order: 2, value: `One of Australia's largest funds` },
95
+ { order: 3, value: 'Awarded SuperRatings highest performance rating' }
96
+ ]
97
+ },
98
+ {
99
+ fundId: constants.AustralianRetirementTrustFundId,
100
+ usi: constants.AustralianRetirementTrustFundUsi,
101
+ name: constants.AustralianRetirementTrustFundName,
102
+ heading: constants.AustralianRetirementTrustAltFundName,
103
+ logo: 'logo-qsuper-square.png',
104
+ route: SuperSelectionAppRoutes.PromotedFundJoin,
105
+ callToAction: 'Join AustralianRetirementTrust',
106
+ pdsLink: 'https://google.com',
107
+ features: []
108
+ }
109
+ ];
110
+ }
111
+ getPromotedFunds() {
112
+ const fundTiles = [];
113
+ SuperSelectionAppService.promotedFunds.forEach((fundId) => {
114
+ const fund = this.allFunds().find((fund) => fundId == fund.fundId);
115
+ if (fund !== undefined) {
116
+ fundTiles.push(fund);
117
+ }
118
+ });
119
+ return fundTiles;
120
+ }
121
+ async handleJoinSuperClickAsync(fund) {
122
+ if (fund.fundId === constants.SlateFundId) {
123
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
124
+ fundUsi: constants.SlateFundUsi,
125
+ fundName: constants.SlateFundName,
126
+ fundNameAlt: constants.SlateAltFundName
127
+ });
128
+ }
129
+ else if (fund.fundId === constants.QSuperFundId) {
130
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
131
+ fundUsi: constants.QSuperFundUsi,
132
+ fundName: constants.QSuperFundName,
133
+ fundNameAlt: constants.QSuperAltFundName
134
+ });
135
+ }
136
+ else if (fund.fundId === constants.AustralianRetirementTrustFundId) {
137
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
138
+ fundUsi: constants.AustralianRetirementTrustFundUsi,
139
+ fundName: constants.AustralianRetirementTrustFundName,
140
+ fundNameAlt: constants.AustralianRetirementTrustAltFundName
141
+ });
142
+ promotedFundState.fundId = fund.fundId;
143
+ }
144
+ return navigationService.navigateInternally(this.history, fund.route);
145
+ }
146
+ static get is() { return "sss-super-choice-page"; }
147
+ static get originalStyleUrls() { return {
148
+ "$": ["super-choice-page.scss"]
149
+ }; }
150
+ static get styleUrls() { return {
151
+ "$": ["super-choice-page.css"]
152
+ }; }
153
+ static get assetsDirs() { return ["assets"]; }
154
+ static get properties() { return {
155
+ "history": {
156
+ "type": "unknown",
157
+ "mutable": false,
158
+ "complexType": {
159
+ "original": "RouterHistory",
160
+ "resolved": "RouterHistory",
161
+ "references": {
162
+ "RouterHistory": {
163
+ "location": "import",
164
+ "path": "@stencil/router"
165
+ }
166
+ }
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": ""
173
+ }
174
+ }
175
+ }; }
176
+ static get states() { return {
177
+ "promotedFunds": {},
178
+ "chosenFund": {}
179
+ }; }
180
+ }
@@ -0,0 +1,15 @@
1
+ html {
2
+ scroll-behavior: smooth;
3
+ }
4
+
5
+ img.fluid-fit {
6
+ object-fit: cover;
7
+ }
8
+
9
+ stencil-route {
10
+ display: flex;
11
+ flex: 1 1 auto;
12
+ }
13
+ stencil-route:empty {
14
+ display: none;
15
+ }
@@ -0,0 +1,229 @@
1
+ import '@flarehr/beacon';
2
+ import { Component, Event, h, Host, Prop, State, Watch } from '@stencil/core';
3
+ import { injectHistory } from '@stencil/router';
4
+ import * as O from 'fp-ts/lib/Option';
5
+ import { resetQSuperState } from './funds/qsuper/helpers/resetState';
6
+ import { superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
7
+ import superSelectionAppService from './services/super-selection-app.service';
8
+ export class SuperSelectionApp {
9
+ constructor() {
10
+ this.isAppInitialised = false;
11
+ }
12
+ async componentWillLoad() {
13
+ const jwt = O.fromNullable(this.accessToken);
14
+ if (O.isNone(jwt)) {
15
+ throw Error(`jwt property is missing.`);
16
+ }
17
+ superSelectionAppService.state.jwt = jwt;
18
+ const apiBaseUrl = O.fromNullable(this.backendUrl);
19
+ if (O.isNone(apiBaseUrl)) {
20
+ throw Error(`apiBaseUrl property is missing.`);
21
+ }
22
+ superSelectionAppService.state.apiBaseUrl = O.some(apiBaseUrl.value.replace(/\/$/, '') + '/');
23
+ const appBaseUrl = O.fromNullable(this.appBaseUrl);
24
+ if (O.isNone(appBaseUrl)) {
25
+ throw Error(`appBaseUrl property is missing.`);
26
+ }
27
+ superSelectionAppService.state.appBaseUrl = O.some(appBaseUrl.value.replace(/\/$/, ''));
28
+ superSelectionAppService.onChange('hasSuccessPageBeenAcknowledged', (_) => this.successPageAcknowledged.emit());
29
+ superSelectionAppService.onChange('hasSuperSelectionBeenSubmitted', (submitted) => {
30
+ if (!submitted)
31
+ return;
32
+ this.stepSubmitSuccess.emit();
33
+ superSelectionAppService.state.hasSuperSelectionBeenSubmitted = false;
34
+ });
35
+ }
36
+ async componentDidLoad() {
37
+ resetQSuperState();
38
+ await superSelectionAppService.loadAppStateAsync();
39
+ this.isAppInitialised = true;
40
+ this.initialised.emit({
41
+ accountIdOrDefault: superSelectionAppService.accountIdOrDefault,
42
+ partnerIdOrDefault: superSelectionAppService.partnerIdOrDefault,
43
+ profileId: superSelectionAppService.profileId
44
+ });
45
+ }
46
+ authTokenChanged(newValue) {
47
+ superSelectionAppService.state.jwt = O.fromNullable(newValue);
48
+ }
49
+ onRouteChange() {
50
+ window === null || window === void 0 ? void 0 : window.scroll(0, 0);
51
+ }
52
+ render() {
53
+ return (h(Host, { class: "d-flex justify-content-center flex-grow-1" },
54
+ h("div", { class: "d-flex flex-column justify-content-between" }, this.renderAppContent())));
55
+ }
56
+ routerBaseUrl() {
57
+ var _a;
58
+ return ((_a = this.appBaseUrl) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '')) + '/';
59
+ }
60
+ renderAppContent() {
61
+ return (h("stencil-router", { root: this.routerBaseUrl() },
62
+ h("stencil-route-switch", { scrollTopOffset: 0 },
63
+ h("div", { class: "d-flex flex-column" },
64
+ h("div", { class: "d-flex justify-content-center" }, this.isAppInitialised ? (superSelectionAppStencilRoutes) : (h("fl-loading-indicator", { class: "mt-5" }))),
65
+ h("div", { class: "d-flex justify-content-center" },
66
+ h("sss-footer-section", null))))));
67
+ }
68
+ static get is() { return "super-selection-app"; }
69
+ static get originalStyleUrls() { return {
70
+ "$": ["super-selection-app.scss"]
71
+ }; }
72
+ static get styleUrls() { return {
73
+ "$": ["super-selection-app.css"]
74
+ }; }
75
+ static get properties() { return {
76
+ "accessToken": {
77
+ "type": "string",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "string",
81
+ "resolved": "string | undefined",
82
+ "references": {}
83
+ },
84
+ "required": false,
85
+ "optional": true,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": ""
89
+ },
90
+ "attribute": "access-token",
91
+ "reflect": false
92
+ },
93
+ "backendUrl": {
94
+ "type": "string",
95
+ "mutable": false,
96
+ "complexType": {
97
+ "original": "string",
98
+ "resolved": "string | undefined",
99
+ "references": {}
100
+ },
101
+ "required": false,
102
+ "optional": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": ""
106
+ },
107
+ "attribute": "backend-url",
108
+ "reflect": false
109
+ },
110
+ "appBaseUrl": {
111
+ "type": "string",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "string",
115
+ "resolved": "string | undefined",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": true,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": ""
123
+ },
124
+ "attribute": "app-base-url",
125
+ "reflect": false
126
+ },
127
+ "history": {
128
+ "type": "unknown",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "RouterHistory",
132
+ "resolved": "RouterHistory",
133
+ "references": {
134
+ "RouterHistory": {
135
+ "location": "import",
136
+ "path": "@stencil/router"
137
+ }
138
+ }
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": ""
145
+ }
146
+ },
147
+ "location": {
148
+ "type": "unknown",
149
+ "mutable": false,
150
+ "complexType": {
151
+ "original": "LocationSegments",
152
+ "resolved": "LocationSegments | undefined",
153
+ "references": {
154
+ "LocationSegments": {
155
+ "location": "import",
156
+ "path": "@stencil/router"
157
+ }
158
+ }
159
+ },
160
+ "required": false,
161
+ "optional": true,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": ""
165
+ }
166
+ }
167
+ }; }
168
+ static get states() { return {
169
+ "isAppInitialised": {}
170
+ }; }
171
+ static get events() { return [{
172
+ "method": "stepSubmitSuccess",
173
+ "name": "step-completion",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "complexType": {
182
+ "original": "void",
183
+ "resolved": "void",
184
+ "references": {}
185
+ }
186
+ }, {
187
+ "method": "successPageAcknowledged",
188
+ "name": "successPageAcknowledged",
189
+ "bubbles": true,
190
+ "cancelable": true,
191
+ "composed": false,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": ""
195
+ },
196
+ "complexType": {
197
+ "original": "void",
198
+ "resolved": "void",
199
+ "references": {}
200
+ }
201
+ }, {
202
+ "method": "initialised",
203
+ "name": "initialised",
204
+ "bubbles": true,
205
+ "cancelable": true,
206
+ "composed": true,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": ""
210
+ },
211
+ "complexType": {
212
+ "original": "InitialisedWith",
213
+ "resolved": "{ accountIdOrDefault: string; partnerIdOrDefault: string; profileId: string; }",
214
+ "references": {
215
+ "InitialisedWith": {
216
+ "location": "local"
217
+ }
218
+ }
219
+ }
220
+ }]; }
221
+ static get watchers() { return [{
222
+ "propName": "accessToken",
223
+ "methodName": "authTokenChanged"
224
+ }, {
225
+ "propName": "location",
226
+ "methodName": "onRouteChange"
227
+ }]; }
228
+ }
229
+ injectHistory(SuperSelectionApp);