@flarehr/apollo-super-selection 3.17.52693 → 3.17.52781

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/package.json +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
  4. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  5. package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +0 -1
  6. package/dist/lib/apollo-super-selection/p-082669d9.js +0 -1
  7. package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
  8. package/dist/lib/apollo-super-selection/p-20136efe.entry.js +0 -1
  9. package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +0 -1
  10. package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
  11. package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
  12. package/dist/lib/apollo-super-selection/p-38ee2795.system.js +0 -1
  13. package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
  14. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
  15. package/dist/lib/apollo-super-selection/p-574c7d9b.system.entry.js +0 -69
  16. package/dist/lib/apollo-super-selection/p-61734b66.js +0 -1
  17. package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
  20. package/dist/lib/apollo-super-selection/p-89495496.entry.js +0 -14
  21. package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +0 -1
  22. package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +0 -1
  23. package/dist/lib/apollo-super-selection/p-abedb220.entry.js +0 -1
  24. package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +0 -1
  25. package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +0 -1
  26. package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +0 -1
  27. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
  28. package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
  29. package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +0 -1
  30. package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
  31. package/dist/lib/cjs/active-router-e92fd784.js +0 -75
  32. package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -23
  33. package/dist/lib/cjs/app-globals-45007120.js +0 -25
  34. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  35. package/dist/lib/cjs/datorama-akita-7f4b082a.js +0 -2704
  36. package/dist/lib/cjs/delay-81aff2f1.js +0 -955
  37. package/dist/lib/cjs/fl-button_44.cjs.entry.js +0 -17003
  38. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
  39. package/dist/lib/cjs/index-942e6faa.js +0 -1767
  40. package/dist/lib/cjs/index.cjs.js +0 -2
  41. package/dist/lib/cjs/loader.cjs.js +0 -25
  42. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  43. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  44. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  45. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  46. package/dist/lib/collection/collection-manifest.json +0 -127
  47. package/dist/lib/collection/components/app-host/loading-page.js +0 -9
  48. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
  49. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
  50. package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -43
  51. package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
  52. package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
  53. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
  54. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
  55. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
  56. package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
  57. package/dist/lib/collection/components/app-host/services/session.store.js +0 -37
  58. package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -28
  59. package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -92
  60. package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
  61. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
  62. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -1
  63. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -1
  64. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -30
  65. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -31
  66. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
  67. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -29
  68. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
  69. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
  70. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -31
  71. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -68
  72. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -53
  73. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -108
  74. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -93
  75. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -103
  76. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
  77. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -153
  78. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +0 -1
  79. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -111
  80. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
  81. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +0 -52
  82. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  83. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  84. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
  85. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  86. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  87. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  88. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
  89. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
  90. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -95
  92. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
  93. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  94. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  95. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  96. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  97. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  98. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  99. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  100. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  101. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  102. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  103. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  104. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  105. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  106. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
  107. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
  108. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
  109. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
  110. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
  111. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
  112. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
  113. package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
  114. package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
  115. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
  116. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
  117. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
  118. package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
  119. package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
  120. package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
  121. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
  122. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -76
  123. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
  124. package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
  125. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
  126. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
  127. package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
  128. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
  129. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
  130. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
  132. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
  133. package/dist/lib/collection/global/init-host.js +0 -22
  134. package/dist/lib/collection/global/main.dev.js +0 -26
  135. package/dist/lib/collection/global/main.js +0 -11
  136. package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
  137. package/dist/lib/collection/index.js +0 -2
  138. package/dist/lib/collection/utils/config.js +0 -2
  139. package/dist/lib/collection/utils/gtm.js +0 -5
  140. package/dist/lib/collection/utils/iframe.js +0 -33
  141. package/dist/lib/collection/utils/index.js +0 -8
  142. package/dist/lib/collection/utils/lazy.js +0 -29
  143. package/dist/lib/collection/utils/storage.js +0 -5
  144. package/dist/lib/esm/active-router-4c80d3d2.js +0 -73
  145. package/dist/lib/esm/apollo-super-selection.js +0 -21
  146. package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
  147. package/dist/lib/esm/context-consumer.entry.js +0 -25
  148. package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
  149. package/dist/lib/esm/delay-c0555599.js +0 -935
  150. package/dist/lib/esm/fl-button_44.entry.js +0 -16956
  151. package/dist/lib/esm/fl-style-guide.entry.js +0 -86
  152. package/dist/lib/esm/index-0496d1af.js +0 -1734
  153. package/dist/lib/esm/index.js +0 -1
  154. package/dist/lib/esm/loader.js +0 -21
  155. package/dist/lib/esm/polyfills/core-js.js +0 -11
  156. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  157. package/dist/lib/esm/polyfills/dom.js +0 -79
  158. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  159. package/dist/lib/esm/polyfills/index.js +0 -34
  160. package/dist/lib/esm/polyfills/system.js +0 -6
  161. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  162. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  163. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  164. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  165. package/dist/lib/esm-es5/active-router-4c80d3d2.js +0 -1
  166. package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
  167. package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
  168. package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
  169. package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
  170. package/dist/lib/esm-es5/delay-c0555599.js +0 -1
  171. package/dist/lib/esm-es5/fl-button_44.entry.js +0 -69
  172. package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
  173. package/dist/lib/esm-es5/index-0496d1af.js +0 -1
  174. package/dist/lib/esm-es5/index.js +0 -0
  175. package/dist/lib/esm-es5/loader.js +0 -1
  176. package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
  177. package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
  178. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
  179. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
  180. package/dist/lib/index.cjs.js +0 -1
  181. package/dist/lib/index.js +0 -1
  182. package/dist/lib/loader/cdn.js +0 -3
  183. package/dist/lib/loader/index.cjs.js +0 -3
  184. package/dist/lib/loader/index.d.ts +0 -13
  185. package/dist/lib/loader/index.es2017.js +0 -3
  186. package/dist/lib/loader/index.js +0 -4
  187. package/dist/lib/loader/package.json +0 -10
  188. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
  189. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  190. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  191. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  192. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  193. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  194. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  195. package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
  196. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
  197. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
  198. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
  199. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
  200. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
  201. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
  202. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
  203. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
  204. package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
  205. package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
  206. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
  207. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
  208. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
  209. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
  210. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
  211. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -82
  212. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
  213. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
  214. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
  215. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
  216. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
  217. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
  218. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
  219. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
  220. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
  221. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
  222. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +0 -7
  227. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  228. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
  229. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  230. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  231. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  232. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  233. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  234. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  235. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  236. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  237. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  238. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  239. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  240. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  241. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  242. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  243. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  244. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  245. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  246. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  247. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  248. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
  249. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
  250. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
  251. package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
  252. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
  253. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
  254. package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
  255. package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
  256. package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
  257. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
  258. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
  259. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
  260. package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
  261. package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
  262. package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
  263. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
  264. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -25
  265. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
  266. package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
  267. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
  268. package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
  269. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
  270. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
  271. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
  272. package/dist/lib/types/components.d.ts +0 -546
  273. package/dist/lib/types/global/init-host.d.ts +0 -1
  274. package/dist/lib/types/global/main.d.ts +0 -1
  275. package/dist/lib/types/global/main.dev.d.ts +0 -1
  276. package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
  277. package/dist/lib/types/index.d.ts +0 -2
  278. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  279. package/dist/lib/types/utils/config.d.ts +0 -2
  280. package/dist/lib/types/utils/gtm.d.ts +0 -7
  281. package/dist/lib/types/utils/iframe.d.ts +0 -13
  282. package/dist/lib/types/utils/index.d.ts +0 -3
  283. package/dist/lib/types/utils/lazy.d.ts +0 -12
  284. package/dist/lib/types/utils/storage.d.ts +0 -4
@@ -1,10 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,66 +0,0 @@
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);
@@ -1,64 +0,0 @@
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;
@@ -1,13 +0,0 @@
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();
@@ -1,127 +0,0 @@
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() });
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();
@@ -1,9 +0,0 @@
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;
@@ -1,35 +0,0 @@
1
- import { Component, h, Host, Prop } from '@stencil/core';
2
- import slateIFrameBuilder from './services/slate-iframe-builder';
3
- export class SlateJoinPage {
4
- componentDidLoad() {
5
- slateIFrameBuilder.build(this.iframeElement, this.history);
6
- }
7
- render() {
8
- return (h(Host, { class: "d-flex flex-fill" },
9
- h("iframe", { width: "100%", height: window.innerHeight, style: { "border": "none" }, ref: (el) => (this.iframeElement = el) })));
10
- }
11
- ;
12
- static get is() { return "sss-slate-join-page"; }
13
- static get properties() { return {
14
- "history": {
15
- "type": "unknown",
16
- "mutable": false,
17
- "complexType": {
18
- "original": "RouterHistory",
19
- "resolved": "RouterHistory",
20
- "references": {
21
- "RouterHistory": {
22
- "location": "import",
23
- "path": "@stencil/router"
24
- }
25
- }
26
- },
27
- "required": false,
28
- "optional": false,
29
- "docs": {
30
- "tags": [],
31
- "text": ""
32
- }
33
- }
34
- }; }
35
- }
@@ -1,67 +0,0 @@
1
- import { Component, h, Host, Prop, State } from '@stencil/core';
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 slateState from '../slate-super/slate-fund.store';
6
- import slateFundState from '../slate-super/slate-fund.store';
7
- import slateChoiceApi from './api/slate-choice.api';
8
- export class SlateStandardChoicePage {
9
- render() {
10
- return (h(Host, { class: "d-flex flex-fill" },
11
- h("div", { class: "container" },
12
- h("div", { class: "row justify-content-center" },
13
- h("div", { class: "col col-sm-10 col-md-7" },
14
- h("sss-slatesuper-header", null),
15
- h("div", null,
16
- h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
17
- 'was-validated': this.formState === 'validated'
18
- }, ref: (el) => (this.formElement = el) },
19
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
20
- slateFundState.slateFundForm = Object.assign(Object.assign({}, slateFundState.slateFundForm), event.detail);
21
- } })),
22
- h("div", { class: "d-flex mt-4" },
23
- h("div", { class: "flex-grow-1 w-50" },
24
- h("div", { class: "mr-2" },
25
- h("stencil-route-link", { url: "/" },
26
- h("fl-button", { isBlockElement: true, variant: "secondary" },
27
- h("span", null, "Back"))))),
28
- h("div", { class: "flex-grow-1 w-50" },
29
- h("div", { class: "ml-2" },
30
- h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
31
- h("span", null, "Submit")))))))))));
32
- }
33
- async handleSubmitForm() {
34
- this.formState = 'validated';
35
- if (this.formElement.checkValidity()) {
36
- await slateChoiceApi.submitSlateChoiceAsync(slateState.slateFundForm);
37
- superSelectionAppService.markSuperSelectionAsSubmitted();
38
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
39
- }
40
- }
41
- static get is() { return "sss-slate-standard-choice-page"; }
42
- static get properties() { return {
43
- "history": {
44
- "type": "unknown",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "RouterHistory",
48
- "resolved": "RouterHistory",
49
- "references": {
50
- "RouterHistory": {
51
- "location": "import",
52
- "path": "@stencil/router"
53
- }
54
- }
55
- },
56
- "required": false,
57
- "optional": false,
58
- "docs": {
59
- "tags": [],
60
- "text": ""
61
- }
62
- }
63
- }; }
64
- static get states() { return {
65
- "formState": {}
66
- }; }
67
- }
@@ -1,19 +0,0 @@
1
- import { Component, getAssetPath, h } from '@stencil/core';
2
- export class SlatesuperHeader {
3
- render() {
4
- return (h("div", { class: "d-flex" },
5
- h("div", null,
6
- h("img", { class: "ss-choice-logo img-thumbnail", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/logo-slate.png`) })),
7
- h("div", { class: "d-flex flex-column ml-3 align-items-left" },
8
- h("p", { class: "confirm-title font-weight-bold mb-0" }, "You\u2019re almost there!"),
9
- h("p", { class: "confirm-text mb-0" }, "To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection."))));
10
- }
11
- static get is() { return "sss-slatesuper-header"; }
12
- static get originalStyleUrls() { return {
13
- "$": ["slatesuper-header.scss"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["slatesuper-header.css"]
17
- }; }
18
- static get assetsDirs() { return ["assets"]; }
19
- }
@@ -1,25 +0,0 @@
1
- import { Component, h, Host } from '@stencil/core';
2
- import notificationsService from '../services/notifications.service';
3
- export class NotificationsSection {
4
- disconnectedCallback() {
5
- notificationsService.clearNotifications();
6
- }
7
- render() {
8
- const { items } = notificationsService.state;
9
- if (items.length <= 0)
10
- return h(Host, null);
11
- const firstAlert = items[0];
12
- const className = `alert alert-${firstAlert.type}`;
13
- return (h("div", { class: className, role: "alert" },
14
- h("div", { class: "d-flex" },
15
- h("p", { class: "mb-0 flex-grow-1" },
16
- h("strong", null, items[0].details.title)),
17
- h("button", { onClick: this.handleClose, type: "button", class: "close pb-1", "aria-label": "Close" },
18
- h("span", { "aria-hidden": "true" }, "\u00D7"))),
19
- h("p", { class: "mb-0 mt-1" }, items[0].details.description)));
20
- }
21
- handleClose() {
22
- notificationsService.closeCurrent();
23
- }
24
- static get is() { return "sss-notifications-section"; }
25
- }
@@ -1,22 +0,0 @@
1
- import { none, some } from 'fp-ts/lib/Option';
2
- import superSelectionApi from '../api/super-selection.api';
3
- export class AustralianFundLookupService {
4
- searchFundsAsync(searchString, maxRecordCount) {
5
- return superSelectionApi.getAustralianFundsAsync({
6
- type: 'partialMatch',
7
- searchString,
8
- maxRecordCount
9
- });
10
- }
11
- async getFundByUsiAsync(usi) {
12
- const results = await superSelectionApi.getAustralianFundsAsync({
13
- type: 'usiMatch',
14
- usi
15
- });
16
- if (results.length === 1) {
17
- return some(results[0]);
18
- }
19
- return none;
20
- }
21
- }
22
- export default new AustralianFundLookupService();
@@ -1,71 +0,0 @@
1
- import { EventTrackingApi } from '../api/event-tracking.api';
2
- export class EventTrackingService {
3
- constructor() {
4
- this.eventTrackingApi = EventTrackingApi.Instance;
5
- }
6
- static get Instance() {
7
- return this.instance || (this.instance = new this());
8
- }
9
- async TrackFinancialProductViewedAsync(detail) {
10
- return this.trackEventAsync({
11
- FinancialProductViewed: detail
12
- });
13
- }
14
- async TrackSuperFundPdsViewedAsync(detail) {
15
- return this.trackEventAsync({
16
- SuperFundPdsViewed: detail
17
- });
18
- }
19
- async TrackFinancialProductAcceptedAsync(detail) {
20
- return this.trackEventAsync({
21
- FinancialProductAccepted: detail
22
- });
23
- }
24
- async TrackFinancialProductRejectedAsync(detail) {
25
- return this.trackEventAsync({
26
- FinancialProductRejected: detail
27
- });
28
- }
29
- async TrackSuperFundPrivacyConfirmationAcceptedAsync(detail) {
30
- return this.trackEventAsync({
31
- SuperFundPrivacyConfirmationAccepted: detail
32
- });
33
- }
34
- async TrackPromotedSuperFundDetailViewedAsync(detail) {
35
- return this.trackEventAsync({
36
- SuperFundDetailViewed: {
37
- PromotedFund: detail
38
- }
39
- });
40
- }
41
- async TrackMyOwnSuperFundDetailViewedAsync() {
42
- return this.trackEventAsync({
43
- SuperFundDetailViewed: 'MyOwnFund'
44
- });
45
- }
46
- async TrackSmsfSuperFundDetailViewedAsync() {
47
- return this.trackEventAsync({
48
- SuperFundDetailViewed: 'Smsf'
49
- });
50
- }
51
- async TrackDefaultSuperFundDetailViewedAsync(detail) {
52
- return this.trackEventAsync({
53
- SuperFundDetailViewed: {
54
- DefaultFund: detail
55
- }
56
- });
57
- }
58
- async TrackSuperFundPanelViewedAsync(detail) {
59
- return this.trackEventAsync({
60
- SuperFundPanelViewed: detail
61
- });
62
- }
63
- async trackEventAsync(event) {
64
- try {
65
- await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
66
- }
67
- catch (_a) {
68
- return;
69
- }
70
- }
71
- }
@@ -1,22 +0,0 @@
1
- import iframe from '../../../utils/iframe';
2
- import superSelectionAppService from './super-selection-app.service';
3
- class NavigationService {
4
- navigateInternally(history, route) {
5
- const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
6
- iframe.navigation(path);
7
- history.push(path);
8
- }
9
- toExternalUrl(url) {
10
- const externalUrl = new URL(url);
11
- externalUrl.searchParams.append('_extnav', 'true');
12
- return externalUrl.href;
13
- }
14
- get appBaseUrl() {
15
- const baseUrl = superSelectionAppService.appBaseUrl;
16
- return baseUrl.replace(/\/$/, '');
17
- }
18
- toRouteWithLeadingSlash(route) {
19
- return route.length > 0 && route[0] === '/' ? route : `/${route}`;
20
- }
21
- }
22
- export default new NavigationService();
@@ -1,37 +0,0 @@
1
- import { createStore } from '@stencil/store';
2
- import { initialState } from './notifications.store';
3
- class NotificationsService {
4
- constructor() {
5
- const { state } = createStore(initialState);
6
- this._state = state;
7
- }
8
- get state() {
9
- return this._state;
10
- }
11
- closeCurrent() {
12
- const items = [...this._state.items];
13
- items.shift();
14
- this._state.items = items;
15
- }
16
- clearNotifications() {
17
- this._state.items = [];
18
- }
19
- showErrorNotification(details, priority) {
20
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'danger');
21
- }
22
- showInfoNotification(details, priority) {
23
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'info');
24
- }
25
- showWarningNotification(details, priority) {
26
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'warning');
27
- }
28
- showSuccessNotification(details, priority) {
29
- this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'success');
30
- }
31
- pushNotification(details, priority, type) {
32
- const items = [...this._state.items];
33
- items.push({ details, type, priority });
34
- this._state.items = items.sort((a, b) => b.priority - a.priority);
35
- }
36
- }
37
- export default new NotificationsService();
@@ -1,3 +0,0 @@
1
- export const initialState = {
2
- items: []
3
- };