@flarehr/apollo-super-selection 1.4.56819 → 1.4.56843

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 (75) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-0726177d.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-07893761.system.entry.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-1a574672.entry.js +14 -0
  5. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  18. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-f8bb280b.js +1 -0
  21. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  22. package/dist/lib/cjs/australian-fund-lookup.service-4be59dec.js +19 -0
  23. package/dist/lib/cjs/custom-fund.store-3d1ac996.js +37 -0
  24. package/dist/lib/cjs/event-tracking.service-ed12699a.js +296 -0
  25. package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
  26. package/dist/lib/cjs/loader.cjs.js +1 -1
  27. package/dist/lib/cjs/sss-button_32.cjs.entry.js +382 -351
  28. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
  29. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
  30. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
  31. package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-ca52a1fc.js} +7 -331
  32. package/dist/lib/collection/collection-manifest.json +3 -1
  33. package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
  34. package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
  36. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
  37. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  38. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  39. package/dist/lib/esm/apollo-super-selection.js +1 -1
  40. package/dist/lib/esm/australian-fund-lookup.service-a2f593d3.js +17 -0
  41. package/dist/lib/esm/custom-fund.store-dcc61edf.js +36 -0
  42. package/dist/lib/esm/event-tracking.service-9398a317.js +290 -0
  43. package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
  44. package/dist/lib/esm/loader.js +1 -1
  45. package/dist/lib/esm/sss-button_32.entry.js +89 -58
  46. package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
  47. package/dist/lib/esm/sss-default-fund.entry.js +57 -0
  48. package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
  49. package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-50f199de.js} +8 -327
  50. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  51. package/dist/lib/esm-es5/australian-fund-lookup.service-a2f593d3.js +1 -0
  52. package/dist/lib/esm-es5/custom-fund.store-dcc61edf.js +1 -0
  53. package/dist/lib/esm-es5/event-tracking.service-9398a317.js +1 -0
  54. package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
  55. package/dist/lib/esm-es5/loader.js +1 -1
  56. package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
  57. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
  58. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
  59. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  60. package/dist/lib/esm-es5/super-selection-app.service-50f199de.js +1 -0
  61. package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
  62. package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
  63. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  64. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
  65. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  66. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  67. package/dist/lib/types/components.d.ts +30 -0
  68. package/package.json +1 -1
  69. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  70. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  71. package/dist/lib/apollo-super-selection/p-aa9dedee.system.entry.js +0 -69
  72. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-c7ab3701.entry.js +0 -14
  74. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  75. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
@@ -1,5 +1,4 @@
1
- import { e as getRenderingRef, f as forceUpdate, h } from './index-107d7c24.js';
2
- import { A as ActiveRouter } from './active-router-d18b36fb.js';
1
+ import { e as getRenderingRef, f as forceUpdate } from './index-107d7c24.js';
3
2
 
4
3
  // -------------------------------------------------------------------------------------
5
4
  // guards
@@ -93,44 +92,6 @@ function toUndefined(ma) {
93
92
  return isNone(ma) ? undefined : ma.value;
94
93
  }
95
94
 
96
- function injectHistory(Component) {
97
- ActiveRouter.injectProps(Component, ['history', 'location']);
98
- }
99
-
100
- function appReady() {
101
- postMessage({
102
- type: 'appReady'
103
- });
104
- }
105
- function postMessage(message, origin) {
106
- if (origin === undefined)
107
- origin = '*';
108
- message.sender = 'flare';
109
- window.parent.postMessage(message, origin);
110
- }
111
- function resize(height, width) {
112
- postMessage({
113
- type: 'contentResized',
114
- height,
115
- width
116
- });
117
- }
118
- function navigation(url) {
119
- postMessage({
120
- type: 'pageNavigated',
121
- url
122
- });
123
- }
124
- function complete() {
125
- postMessage({ type: 'complete' });
126
- }
127
- function submitSuccess() {
128
- postMessage({
129
- type: 'submitSuccess'
130
- });
131
- }
132
- const iframe = { appReady, resize, navigation, complete, submitSuccess };
133
-
134
95
  const appendToMap = (map, propName, value) => {
135
96
  const items = map.get(propName);
136
97
  if (!items) {
@@ -302,54 +263,6 @@ const createStore = (defaultState, shouldUpdate) => {
302
263
  return map;
303
264
  };
304
265
 
305
- const initial = {
306
- handleSubmitFn: async function () {
307
- return;
308
- },
309
- fundName: '',
310
- fundDetails: { type: 'null' },
311
- promotedFundId: undefined
312
- };
313
- const { state } = createStore(initial);
314
-
315
- var SuperSelectionAppRoutes;
316
- (function (SuperSelectionAppRoutes) {
317
- SuperSelectionAppRoutes["ExistingChoicePage"] = "/existing";
318
- SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
319
- SuperSelectionAppRoutes["ChoicePage"] = "/";
320
- SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
321
- SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
322
- SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
323
- SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
324
- SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
325
- SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
326
- SuperSelectionAppRoutes["PrefillSMSFPage"] = "/super-choice/prefill-smsf/";
327
- SuperSelectionAppRoutes["PrefillInvalidSMSFPage"] = "/super-choice/prefill-invalid-smsf/";
328
- SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
329
- SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
330
- SuperSelectionAppRoutes["FeaturedFunds"] = "/super-choice/featured-funds/";
331
- SuperSelectionAppRoutes["StandardChoice"] = "/standard-choice/";
332
- SuperSelectionAppRoutes["Success"] = "/success/";
333
- })(SuperSelectionAppRoutes || (SuperSelectionAppRoutes = {}));
334
- const superSelectionAppStencilRoutes = [
335
- h("stencil-route", { url: SuperSelectionAppRoutes.ExistingChoicePage, component: "sss-existing-choice-page" }),
336
- h("stencil-route", { url: SuperSelectionAppRoutes.SuperCampaign, component: "sss-super-campaign-host" }),
337
- h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
338
- h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
339
- h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
340
- h("stencil-route", { url: SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
341
- h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
342
- h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
343
- h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
344
- h("stencil-route", { url: SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
345
- h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
346
- h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-super-smsf-host" }),
347
- h("stencil-route", { url: SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund" }),
348
- h("stencil-route", { url: SuperSelectionAppRoutes.FeaturedFunds, component: "sss-super-campaign-featured-funds" }),
349
- h("stencil-route", { url: SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
350
- h("stencil-route", { url: SuperSelectionAppRoutes.Success, component: "sss-success" })
351
- ];
352
-
353
266
  function createCommonjsModule(fn, basedir, module) {
354
267
  return module = {
355
268
  path: basedir,
@@ -2779,7 +2692,8 @@ const initialState = {
2779
2692
  hideFooterSection: false,
2780
2693
  bringYourOwnFundCustomStepEnabled: false,
2781
2694
  smsfCustomStepEnabled: false,
2782
- featuredFundsEnabled: false
2695
+ featuredFundsEnabled: false,
2696
+ defaultFundNewComponentEnabled: false
2783
2697
  };
2784
2698
 
2785
2699
  class SuperSelectionAppService {
@@ -2881,6 +2795,7 @@ class SuperSelectionAppService {
2881
2795
  appStateResponse.bringYourOwnFundCustomStepEnabled;
2882
2796
  this._state.smsfCustomStepEnabled = appStateResponse.smsfCustomStepEnabled;
2883
2797
  this._state.featuredFundsEnabled = appStateResponse.featuredFundsEnabled;
2798
+ this._state.defaultFundNewComponentEnabled = appStateResponse.defaultFundNewComponentEnabled;
2884
2799
  this._state.superChoicePrefill = Option.fromNullable(appStateResponse.prefill);
2885
2800
  this._state.isDefinedBenefitsEligible = Option.fromNullable(appStateResponse.isDefinedBenefitsEligible);
2886
2801
  if (Option.isSome(this._state.accountConfiguration)) {
@@ -2928,6 +2843,9 @@ class SuperSelectionAppService {
2928
2843
  get isFeaturedFundsEnabled() {
2929
2844
  return this.state.featuredFundsEnabled;
2930
2845
  }
2846
+ get isDefaultFundNewComponentEnabled() {
2847
+ return this.state.defaultFundNewComponentEnabled;
2848
+ }
2931
2849
  get superCampaignCanNotBeActivated() {
2932
2850
  return (!this.state.superCampaignEnabled ||
2933
2851
  this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
@@ -2948,241 +2866,4 @@ class SuperSelectionAppService {
2948
2866
  }
2949
2867
  const superSelectionAppService = new SuperSelectionAppService();
2950
2868
 
2951
- class NavigationService {
2952
- navigateInternally(history, route) {
2953
- const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
2954
- iframe.navigation(path);
2955
- history.push(path);
2956
- }
2957
- navigateInternallyToStandardChoice(options) {
2958
- state.handleSubmitFn = options.handleSubmitFn;
2959
- state.fundName = options.fundName;
2960
- state.fundDetails = options.fundDetails;
2961
- state.promotedFundId = options.promotedFundId;
2962
- this.navigateInternally(options.history, SuperSelectionAppRoutes.StandardChoice);
2963
- }
2964
- toExternalUrl(url) {
2965
- const externalUrl = new URL(url);
2966
- externalUrl.searchParams.append('_extnav', 'true');
2967
- return externalUrl.href;
2968
- }
2969
- get appBaseUrl() {
2970
- const baseUrl = superSelectionAppService.appBaseUrl;
2971
- return baseUrl.replace(/\/$/, '');
2972
- }
2973
- toRouteWithLeadingSlash(route) {
2974
- return route.length > 0 && route[0] === '/' ? route : `/${route}`;
2975
- }
2976
- }
2977
- const navigationService = new NavigationService();
2978
-
2979
- var CustomFundTypes;
2980
- (function (CustomFundTypes) {
2981
- CustomFundTypes["MyOwnFund"] = "Existing super fund";
2982
- CustomFundTypes["DefaultFund"] = "Default super fund";
2983
- CustomFundTypes["SelfManagedFund"] = "Self-managed super fund";
2984
- CustomFundTypes["FeaturedFunds"] = "Featured super funds";
2985
- })(CustomFundTypes || (CustomFundTypes = {}));
2986
- const initialStateCustomFund = {
2987
- myOwnFundForm: {
2988
- fundUsi: none,
2989
- fundName: none,
2990
- memberNumber: none,
2991
- memberFirstName: none,
2992
- memberFamilyName: none
2993
- },
2994
- selfManagedFundForm: {
2995
- fundName: '',
2996
- fundAbn: '',
2997
- fundEsa: '',
2998
- addressLine1: '',
2999
- addressLine2: '',
3000
- state: '',
3001
- postcode: '',
3002
- city: '',
3003
- bankAccountName: '',
3004
- bsb: '',
3005
- bankAccountNumber: '',
3006
- memberFirstName: '',
3007
- memberFamilyName: ''
3008
- }
3009
- };
3010
- const { state: state$1, reset } = createStore(initialStateCustomFund);
3011
-
3012
- class EventTrackingApi {
3013
- static get Instance() {
3014
- return this.instance || (this.instance = new this());
3015
- }
3016
- async PostAnalyticsEventAsync(event) {
3017
- return buildBackendApiClient().url('analytics-events').post(event).res();
3018
- }
3019
- }
3020
-
3021
- class EventTrackingService {
3022
- constructor() {
3023
- this.eventTrackingApi = EventTrackingApi.Instance;
3024
- }
3025
- static get Instance() {
3026
- return this.instance || (this.instance = new this());
3027
- }
3028
- async TrackSuperFundPdsViewedAsync(detail) {
3029
- return this.trackEventAsync({
3030
- SuperFundPdsViewed: detail
3031
- });
3032
- }
3033
- async TrackPromotedSuperFundDetailViewedAsync(detail) {
3034
- return this.trackEventAsync({
3035
- SuperFundDetailViewed: {
3036
- PromotedFund: detail
3037
- }
3038
- });
3039
- }
3040
- async TrackPromotedDefaultSuperFundDetailViewedAsync(detail) {
3041
- return this.trackEventAsync({
3042
- SuperFundDetailViewed: {
3043
- PromotedDefaultFund: detail
3044
- }
3045
- });
3046
- }
3047
- async TrackMyOwnSuperFundDetailViewedAsync(detail) {
3048
- return this.trackEventAsync({
3049
- SuperFundDetailViewed: {
3050
- MyOwnFund: detail
3051
- }
3052
- });
3053
- }
3054
- async TrackSmsfSuperFundDetailViewedAsync(detail) {
3055
- return this.trackEventAsync({
3056
- SuperFundDetailViewed: {
3057
- Smsf: detail
3058
- }
3059
- });
3060
- }
3061
- async TrackDefaultSuperFundDetailViewedAsync(detail) {
3062
- return this.trackEventAsync({
3063
- SuperFundDetailViewed: {
3064
- DefaultFund: detail
3065
- }
3066
- });
3067
- }
3068
- async TrackSuperFundNominationViewedAsync(detail) {
3069
- return this.trackEventAsync({
3070
- SuperFundNominationViewed: detail
3071
- });
3072
- }
3073
- async TrackSuperFundNominationDeclinedAsync(detail) {
3074
- return this.trackEventAsync({
3075
- SuperFundNominationDeclined: detail
3076
- });
3077
- }
3078
- async TrackSuperFundDisclaimerViewedAsync(detail) {
3079
- return this.trackEventAsync({
3080
- SuperFundDisclaimerViewed: detail
3081
- });
3082
- }
3083
- async TrackSuperFundDisclaimerAcceptedAsync(detail) {
3084
- return this.trackEventAsync({
3085
- SuperFundDisclaimerAccepted: detail
3086
- });
3087
- }
3088
- async TrackSuperFundPrefillViewedAsync(detail) {
3089
- return this.trackEventAsync({
3090
- SuperFundPrefillViewed: detail
3091
- });
3092
- }
3093
- async TrackSuperFundPrefillDeclinedAsync(detail) {
3094
- return this.trackEventAsync({
3095
- SuperFundPrefillDeclined: detail
3096
- });
3097
- }
3098
- async TrackSuperFundDetailChangeRequestedAsync(detail) {
3099
- return this.trackEventAsync({
3100
- SuperFundDetailChangeRequested: detail
3101
- });
3102
- }
3103
- async TrackSuperCampaignActivationSucceededAsync(detail) {
3104
- return this.trackEventAsync({
3105
- SuperCampaignActivationSucceeded: detail
3106
- });
3107
- }
3108
- async TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi) {
3109
- return this.trackEventAsync({
3110
- SuperMyOwnFundEngagementStepActivationSucceeded: { fundUsi }
3111
- });
3112
- }
3113
- async TrackSuperMyOwnFundEngagementStepContinued(fundUsi, reason) {
3114
- return this.trackEventAsync({
3115
- SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
3116
- });
3117
- }
3118
- async TrackSuperSmsfEngagementStepActivationSucceeded() {
3119
- return this.trackEventAsync({
3120
- SuperSmsfEngagementStepActivationSucceeded: {}
3121
- });
3122
- }
3123
- async TrackSuperSmsfEngagementStepContinued(reason) {
3124
- return this.trackEventAsync({
3125
- SuperSmsfEngagementStepContinued: { reason }
3126
- });
3127
- }
3128
- async trackEventAsync(event) {
3129
- try {
3130
- await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
3131
- }
3132
- catch (_a) {
3133
- return;
3134
- }
3135
- }
3136
- }
3137
-
3138
- class CustomFundChoiceApi {
3139
- async submitDefaultFundChoiceAsync(dto) {
3140
- return buildBackendApiClient()
3141
- .url('super-choice/default')
3142
- .post(dto)
3143
- .badRequest(() => {
3144
- throw new Error('Failed to process default fund join request');
3145
- })
3146
- .text();
3147
- }
3148
- async submitCustomFundChoiceAsync(dto) {
3149
- return buildBackendApiClient()
3150
- .url('super-choice/custom-fund')
3151
- .post(dto)
3152
- .badRequest(() => {
3153
- throw new Error('Failed to process custom fund join request');
3154
- })
3155
- .text();
3156
- }
3157
- async submitSelfManagedFundChoiceAsync(dto) {
3158
- return buildBackendApiClient()
3159
- .url('super-choice/smsf')
3160
- .post(dto)
3161
- .badRequest(() => {
3162
- throw new Error('Failed to process SMSF choice request');
3163
- })
3164
- .text();
3165
- }
3166
- async submitDefinedBenefitsChoiceAsync(dto) {
3167
- return buildBackendApiClient()
3168
- .url('super-choice/defined-benefits')
3169
- .post(dto)
3170
- .badRequest(() => {
3171
- throw new Error('Failed to process Defined Benefits choice request');
3172
- })
3173
- .text();
3174
- }
3175
- async validateAbnForSMSF(abn) {
3176
- const response = await buildBackendApiClient()
3177
- .url(`super-choice/smsf/${abn}/validate`)
3178
- .get()
3179
- .badRequest(() => {
3180
- throw new Error('Failed to verify that if the provided abn is used for regulated fund');
3181
- })
3182
- .json();
3183
- return response.result;
3184
- }
3185
- }
3186
- const customFundChoiceApi = new CustomFundChoiceApi();
3187
-
3188
- export { CustomFundTypes as C, EventTrackingService as E, Option as O, SuperSelectionAppRoutes as S, superSelectionAppService as a, navigationService as b, injectHistory as c, superSelectionApi as d, customFundChoiceApi as e, isNone as f, getPromotedFundId as g, buildBackendApiClient as h, isSome as i, getSuperChoiceUsi as j, getSuperChoiceMemberNumber as k, state$1 as l, state as m, none as n, slate as o, SuperCampaignComponentStatus as p, iframe as q, superSelectionAppStencilRoutes as r, some as s, toUndefined as t, factory as u, fromNullable as v };
2869
+ export { Option as O, SuperCampaignComponentStatus as S, superSelectionAppService as a, isNone as b, buildBackendApiClient as c, getSuperChoiceUsi as d, getSuperChoiceMemberNumber as e, superSelectionApi as f, getPromotedFundId as g, slate as h, isSome as i, factory as j, fromNullable as k, createStore as l, none as n, some as s, toUndefined as t };
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-107d7c24.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchBrowser=function(){var e=import.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return promiseResolve(s)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_32",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-107d7c24.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchBrowser=function(){var e=import.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return promiseResolve(s)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["sss-default-fund-router",[[0,"sss-default-fund-router",{history:[16]}]]],["sss-super-byof-host",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_32",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-default-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]],["sss-default-fund",[[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}]]]],e)}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?t(e.value):i(e.value).then(a,u)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(n){return c([e,n])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=n.call(e,t)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{f as superSelectionApi,O as Option}from"./super-selection-app.service-50f199de.js";var AustralianFundLookupService=function(){function e(){}e.prototype.searchFundsAsync=function(e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,superSelectionApi.getAustralianFundsAsync({searchString:e,maxRecordCount:n})]}))}))};e.prototype.getFundAsync=function(e,n){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,superSelectionApi.getAustralianFundAsync(e,n)];case 1:t=r.sent();return[2,Option.some(t)]}}))}))};return e}();var australianFundLookupService=new AustralianFundLookupService;export{australianFundLookupService as a};
@@ -0,0 +1 @@
1
+ import{l as createStore,n as none}from"./super-selection-app.service-50f199de.js";var CustomFundTypes;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(CustomFundTypes||(CustomFundTypes={}));var initialStateCustomFund={myOwnFundForm:{fundUsi:none,fundName:none,memberNumber:none,memberFirstName:none,memberFamilyName:none},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var _a=createStore(initialStateCustomFund),state=_a.state,reset=_a.reset;export{CustomFundTypes as C,state as s};
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function u(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(u,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(e){return function(t){return c([e,t])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{h}from"./index-107d7c24.js";import{l as createStore,a as superSelectionAppService,c as buildBackendApiClient}from"./super-selection-app.service-50f199de.js";function appReady(){postMessage({type:"appReady"})}function postMessage(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function resize(e,t){postMessage({type:"contentResized",height:e,width:t})}function navigation(e){postMessage({type:"pageNavigated",url:e})}function complete(){postMessage({type:"complete"})}function submitSuccess(){postMessage({type:"submitSuccess"})}var iframe={appReady:appReady,resize:resize,navigation:navigation,complete:complete,submitSuccess:submitSuccess};var initial={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var state=createStore(initial).state;var SuperSelectionAppRoutes;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["SmsfEngagementStep"]="/super-choice/smsf-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(SuperSelectionAppRoutes||(SuperSelectionAppRoutes={}));var superSelectionAppStencilRoutes=[h("stencil-route",{url:SuperSelectionAppRoutes.ExistingChoicePage,component:"sss-existing-choice-page"}),h("stencil-route",{url:SuperSelectionAppRoutes.SuperCampaign,component:"sss-super-campaign-host"}),h("stencil-route",{exact:true,url:SuperSelectionAppRoutes.ChoicePage,component:"sss-choice-router"}),h("stencil-route",{url:SuperSelectionAppRoutes.MyOwnFund,component:"sss-super-byof-host"}),h("stencil-route",{url:SuperSelectionAppRoutes.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),h("stencil-route",{url:SuperSelectionAppRoutes.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),h("stencil-route",{url:SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),h("stencil-route",{url:SuperSelectionAppRoutes.Prefill,component:"sss-prefill"}),h("stencil-route",{url:SuperSelectionAppRoutes.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),h("stencil-route",{url:SuperSelectionAppRoutes.PrefillSMSFPage,component:"sss-prefill-smsf"}),h("stencil-route",{url:SuperSelectionAppRoutes.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),h("stencil-route",{url:SuperSelectionAppRoutes.SelfManagedFund,component:"sss-super-smsf-host"}),h("stencil-route",{url:SuperSelectionAppRoutes.DefaultFund,component:"sss-default-fund-router"}),h("stencil-route",{url:SuperSelectionAppRoutes.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),h("stencil-route",{url:SuperSelectionAppRoutes.StandardChoice,component:"sss-standard-choice-form"}),h("stencil-route",{url:SuperSelectionAppRoutes.Success,component:"sss-success"})];var NavigationService=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);iframe.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){state.handleSubmitFn=e.handleSubmitFn;state.fundName=e.fundName;state.fundDetails=e.fundDetails;state.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,SuperSelectionAppRoutes.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=superSelectionAppService.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var navigationService=new NavigationService;var CustomFundChoiceApi=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,buildBackendApiClient().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var customFundChoiceApi=new CustomFundChoiceApi;var EventTrackingApi=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("analytics-events").post(e).res()]}))}))};return e}();var EventTrackingService=function(){function e(){this.eventTrackingApi=EventTrackingApi.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.TrackSuperSmsfEngagementStepActivationSucceeded=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})]}))}))};e.prototype.TrackSuperSmsfEngagementStepContinued=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:e}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();export{EventTrackingService as E,SuperSelectionAppRoutes as S,superSelectionAppStencilRoutes as a,customFundChoiceApi as c,iframe as i,navigationService as n,state as s};
@@ -0,0 +1 @@
1
+ import{A as ActiveRouter}from"./active-router-d18b36fb.js";function injectHistory(t){ActiveRouter.injectProps(t,["history","location"])}export{injectHistory as i};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-107d7c24.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,s){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_32",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],s)}))};export{defineCustomElements};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-107d7c24.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,s){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["sss-default-fund-router",[[0,"sss-default-fund-router",{history:[16]}]]],["sss-super-byof-host",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_32",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-default-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]],["sss-default-fund",[[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}]]]],s)}))};export{defineCustomElements};