@flarehr/apollo-super-selection 5.62.19178 → 5.64.20066
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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
- package/dist/lib/apollo-super-selection/{p-c0d65783.entry.js → p-9660d87b.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/{p-c00d428d.system.entry.js → p-a0063575.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-613cd290.entry.js → p-b00f648b.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
- package/dist/lib/apollo-super-selection/{p-50f74f33.system.entry.js → p-e2eeb893.system.entry.js} +18 -18
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/{custom-fund-choice.api-0545c774.js → custom-fund-choice.api-293c1ace.js} +17 -0
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/{sss-button_31.cjs.entry.js → sss-button_32.cjs.entry.js} +141 -4
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +1 -1
- package/dist/lib/collection/collection-manifest.json +2 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +157 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
- package/dist/lib/collection/components/super-smsf/super-smsf.js +26 -2
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{custom-fund-choice.api-1d1d018f.js → custom-fund-choice.api-42801d64.js} +17 -0
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/{sss-button_31.entry.js → sss-button_32.entry.js} +141 -5
- package/dist/lib/esm/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/{sss-button_31.entry.js → sss-button_32.entry.js} +5 -5
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +26 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
- package/dist/lib/types/components/super-smsf/super-smsf.d.ts +2 -1
- package/dist/lib/types/components.d.ts +15 -0
- package/package.json +2 -2
- package/dist/lib/apollo-super-selection/p-026415b5.js +0 -1
- package/dist/lib/apollo-super-selection/p-9c959cc0.system.js +0 -1
- package/dist/lib/esm-es5/custom-fund-choice.api-1d1d018f.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{E as EventTrackingService,a as superSelectionAppService,O as Option,l as state,b as navigationService,S as SuperSelectionAppRoutes,e as customFundChoiceApi,c as injectHistory}from"./custom-fund-choice.api-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{E as EventTrackingService,a as superSelectionAppService,O as Option,l as state,b as navigationService,S as SuperSelectionAppRoutes,e as customFundChoiceApi,c as injectHistory}from"./custom-fund-choice.api-42801d64.js";import"./active-router-d18b36fb.js";var LoadWaitingTimeout=3e4;var SuperByofComponentStatus;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(SuperByofComponentStatus||(SuperByofComponentStatus={}));var superByofComponentStatus=SuperByofComponentStatus.NotLoaded;var SuperByofHost=function(){function e(e){var t=this;registerInstance(this,e);this.eventTrackingService=EventTrackingService.Instance;this.subscribeToSuperByofEvents=function(){for(var e in t.byofEventHandlers){document.addEventListener(e,t.byofEventHandlers[e])}};this.unSubscribeFromSuperByofEvents=function(){for(var e in t.byofEventHandlers){document.removeEventListener(e,t.byofEventHandlers[e])}};this.byofLoaded=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-byof"){superByofComponentStatus=SuperByofComponentStatus.Loaded;clearTimeout(this.loadingTimeoutRef);this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:superSelectionAppService.promotedFunds,defaultFundUsiSet:Option.toUndefined(superSelectionAppService.defaultFundUsi)})}return[2,Promise.resolve()]}))}))};this.byofCompleted=function(e){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-byof"){state.myOwnFundForm={fundUsi:Option.fromNullable(e.detail.fundUsi),fundName:Option.fromNullable(e.detail.fundName),memberNumber:Option.fromNullable(e.detail.memberNumber),memberFirstName:Option.fromNullable(e.detail.memberFirstName),memberFamilyName:Option.fromNullable(e.detail.memberLastName)};if(superSelectionAppService.isBringYourOwnFundCustomStepEnabled&&superSelectionAppService.isUsingSuperCampaign){navigationService.navigateInternally(this.history,SuperSelectionAppRoutes.MyOwnFundEngagementStep);return[2]}navigationService.navigateInternallyToStandardChoice({history:this.history,fundName:e.detail.fundName,fundDetails:{type:"myOwnFund",fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber},handleSubmitFn:function(n){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Object.assign({fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber,memberFirstName:e.detail.memberFirstName,memberFamilyName:e.detail.memberLastName,standardChoiceFormSignature:n},superSelectionAppService.promotedFundsConfig);return[4,customFundChoiceApi.submitCustomFundChoiceAsync(t)];case 1:r.sent();return[2]}}))}))}})}return[2]}))}))};this.byofCancelled=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-byof"))return[3,2];return[4,navigationService.navigateInternally(this.history,SuperSelectionAppRoutes.ChoicePage)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(Option.isSome(superSelectionAppService.backendUrl)&&Option.isSome(superSelectionAppService.state.jwt)){this.backendUrl=superSelectionAppService.backendUrl.value;this.accessToken=superSelectionAppService.state.jwt.value;if(superByofComponentStatus===SuperByofComponentStatus.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),LoadWaitingTimeout)}this.subscribeToSuperByofEvents()}else{throw Error("SuperByofHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperByofEvents()};e.prototype.render=function(){return h(Host,null,h("sss-header-section",null),h("div",{class:"flex justify-center mt-11"},h("sss-custom-fund",null,h("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))};e.prototype.byofLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(superByofComponentStatus!==SuperByofComponentStatus.Loaded){throw Error("BYOF component failed to load.")}return[2]}))}))};return e}();injectHistory(SuperByofHost);export{SuperByofHost as sss_super_byof_host};
|
|
@@ -129,6 +129,10 @@ export declare type SuperMyOwnFundEngagementStepContinuedDetail = {
|
|
|
129
129
|
fundUsi: string;
|
|
130
130
|
reason: string;
|
|
131
131
|
};
|
|
132
|
+
export declare type SuperSmsfEngagementStepActivationSucceededDetail = {};
|
|
133
|
+
export declare type SuperSmsfEngagementStepContinuedDetail = {
|
|
134
|
+
reason: string;
|
|
135
|
+
};
|
|
132
136
|
export declare type SuperSelectionAnalyticsEvent = {
|
|
133
137
|
SuperFundPdsViewed: SuperFundPdsViewedDetail;
|
|
134
138
|
} | {
|
|
@@ -157,6 +161,10 @@ export declare type SuperSelectionAnalyticsEvent = {
|
|
|
157
161
|
SuperMyOwnFundEngagementStepActivationSucceeded: SuperMyOwnFundEngagementStepActivationSucceededDetail;
|
|
158
162
|
} | {
|
|
159
163
|
SuperMyOwnFundEngagementStepContinued: SuperMyOwnFundEngagementStepContinuedDetail;
|
|
164
|
+
} | {
|
|
165
|
+
SuperSmsfEngagementStepActivationSucceeded: SuperSmsfEngagementStepActivationSucceededDetail;
|
|
166
|
+
} | {
|
|
167
|
+
SuperSmsfEngagementStepContinued: SuperSmsfEngagementStepContinuedDetail;
|
|
160
168
|
};
|
|
161
169
|
export declare type SuperSelectionEventDto = {
|
|
162
170
|
event: SuperSelectionAnalyticsEvent;
|
|
@@ -219,6 +219,7 @@ export declare type AppStateDto = {
|
|
|
219
219
|
profileConfiguration: ProfileConfigurationDto;
|
|
220
220
|
promotedFunds: string[];
|
|
221
221
|
bringYourOwnFundCustomStepEnabled: boolean;
|
|
222
|
+
smsfCustomStepEnabled: boolean;
|
|
222
223
|
featuredFundsEnabled: boolean;
|
|
223
224
|
isDefinedBenefitsEligible: boolean | null;
|
|
224
225
|
prefill: SuperChoicePrefillDto | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RouterHistory } from '@stencil/router';
|
|
2
|
+
export declare class SmsfEngagementStep {
|
|
3
|
+
history: RouterHistory;
|
|
4
|
+
private backendUrl;
|
|
5
|
+
private accessToken;
|
|
6
|
+
private fundName;
|
|
7
|
+
private fundAbn;
|
|
8
|
+
private fundEsa;
|
|
9
|
+
private fundAddress;
|
|
10
|
+
private bsb;
|
|
11
|
+
private bankAccountName;
|
|
12
|
+
private bankAccountNumber;
|
|
13
|
+
private memberFirstName;
|
|
14
|
+
private memberFamilyName;
|
|
15
|
+
private readonly stepEventHandlers;
|
|
16
|
+
constructor();
|
|
17
|
+
componentWillLoad(): Promise<void>;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
render(): Element[];
|
|
20
|
+
private navigateToStandardChoice;
|
|
21
|
+
private initialiseFormState;
|
|
22
|
+
private allFormFieldsAreFilled;
|
|
23
|
+
private stepContinued;
|
|
24
|
+
private subscribeToStepEvents;
|
|
25
|
+
private unSubscribeFromStepEvents;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type Sender = 'smsf-engagement';
|
|
2
|
+
export declare type CommonEventPayload = {
|
|
3
|
+
sender: Sender;
|
|
4
|
+
};
|
|
5
|
+
export declare type ContinueEvent = CommonEventPayload & {
|
|
6
|
+
type: 'continue';
|
|
7
|
+
reason: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type EventPayload = ContinueEvent;
|
|
10
|
+
export declare type EventType = EventPayload['type'];
|
|
11
|
+
export declare type EventHandlers = {
|
|
12
|
+
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
13
|
+
type: k;
|
|
14
|
+
}>>) => Promise<void>;
|
|
15
|
+
};
|
|
@@ -19,5 +19,7 @@ export declare class EventTrackingService {
|
|
|
19
19
|
TrackSuperCampaignActivationSucceededAsync(detail: model.SuperCampaignActivationSucceededDetail): Promise<void>;
|
|
20
20
|
TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi: any): Promise<void>;
|
|
21
21
|
TrackSuperMyOwnFundEngagementStepContinued(fundUsi: string, reason: string): Promise<void>;
|
|
22
|
+
TrackSuperSmsfEngagementStepActivationSucceeded(): Promise<void>;
|
|
23
|
+
TrackSuperSmsfEngagementStepContinued(reason: string): Promise<void>;
|
|
22
24
|
private trackEventAsync;
|
|
23
25
|
}
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare enum SuperSelectionAppRoutes {
|
|
|
4
4
|
ChoicePage = "/",
|
|
5
5
|
MyOwnFund = "/super-choice/my-own-fund/",
|
|
6
6
|
MyOwnFundEngagementStep = "/super-choice/my-own-fund-engagement/",
|
|
7
|
+
SmsfEngagementStep = "/super-choice/smsf-engagement/",
|
|
7
8
|
Prefill = "/super-choice/prefill/",
|
|
8
9
|
PrefillInvalidMyOwnFundPage = "/super-choice/sss-prefill-invalid-my-own-fund/",
|
|
9
10
|
PrefillMyOwnFundPage = "/super-choice/prefill-my-own-fund/",
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare class SuperSelectionAppService {
|
|
|
31
31
|
set superCampaignComponentStatus(value: SuperCampaignComponentStatus);
|
|
32
32
|
get isUsingSuperCampaign(): boolean;
|
|
33
33
|
get isBringYourOwnFundCustomStepEnabled(): boolean;
|
|
34
|
+
get isSmsfCustomStepEnabled(): boolean;
|
|
34
35
|
get isFeaturedFundsEnabled(): boolean;
|
|
35
36
|
get superCampaignCanNotBeActivated(): boolean;
|
|
36
37
|
get hideFooterSection(): boolean;
|
|
@@ -21,6 +21,7 @@ export declare type AppContextState = {
|
|
|
21
21
|
isDefinedBenefitsEligible: O.Option<boolean>;
|
|
22
22
|
superCampaignEnabled: boolean;
|
|
23
23
|
bringYourOwnFundCustomStepEnabled: boolean;
|
|
24
|
+
smsfCustomStepEnabled: boolean;
|
|
24
25
|
featuredFundsEnabled: boolean;
|
|
25
26
|
superCampaignState: SuperCampaignState | undefined;
|
|
26
27
|
superCampaignComponentStatus: SuperCampaignComponentStatus;
|
|
@@ -3,7 +3,7 @@ export declare class SuperSmsfHost {
|
|
|
3
3
|
history: RouterHistory;
|
|
4
4
|
private backendUrl;
|
|
5
5
|
private accessToken;
|
|
6
|
-
private smsfEventHandlers;
|
|
6
|
+
private readonly smsfEventHandlers;
|
|
7
7
|
private loadingTimeoutRef;
|
|
8
8
|
private readonly eventTrackingService;
|
|
9
9
|
constructor();
|
|
@@ -13,6 +13,7 @@ export declare class SuperSmsfHost {
|
|
|
13
13
|
private subscribeToSuperSmsfEvents;
|
|
14
14
|
private unSubscribeFromSuperSmsfEvents;
|
|
15
15
|
private smsfLoaded;
|
|
16
|
+
private updateCustomFundStateStore;
|
|
16
17
|
private smsfCompleted;
|
|
17
18
|
private smsfCancelled;
|
|
18
19
|
private smsfLoadingTimeoutTriggered;
|
|
@@ -94,6 +94,9 @@ export namespace Components {
|
|
|
94
94
|
interface SssPrefillWarningBox {
|
|
95
95
|
"notificationList": string[];
|
|
96
96
|
}
|
|
97
|
+
interface SssSmsfEngagementStepHost {
|
|
98
|
+
"history": RouterHistory;
|
|
99
|
+
}
|
|
97
100
|
interface SssStandardChoiceForm {
|
|
98
101
|
"history": RouterHistory;
|
|
99
102
|
}
|
|
@@ -244,6 +247,12 @@ declare global {
|
|
|
244
247
|
prototype: HTMLSssPrefillWarningBoxElement;
|
|
245
248
|
new (): HTMLSssPrefillWarningBoxElement;
|
|
246
249
|
};
|
|
250
|
+
interface HTMLSssSmsfEngagementStepHostElement extends Components.SssSmsfEngagementStepHost, HTMLStencilElement {
|
|
251
|
+
}
|
|
252
|
+
var HTMLSssSmsfEngagementStepHostElement: {
|
|
253
|
+
prototype: HTMLSssSmsfEngagementStepHostElement;
|
|
254
|
+
new (): HTMLSssSmsfEngagementStepHostElement;
|
|
255
|
+
};
|
|
247
256
|
interface HTMLSssStandardChoiceFormElement extends Components.SssStandardChoiceForm, HTMLStencilElement {
|
|
248
257
|
}
|
|
249
258
|
var HTMLSssStandardChoiceFormElement: {
|
|
@@ -313,6 +322,7 @@ declare global {
|
|
|
313
322
|
"sss-prefill-my-own-fund": HTMLSssPrefillMyOwnFundElement;
|
|
314
323
|
"sss-prefill-smsf": HTMLSssPrefillSmsfElement;
|
|
315
324
|
"sss-prefill-warning-box": HTMLSssPrefillWarningBoxElement;
|
|
325
|
+
"sss-smsf-engagement-step-host": HTMLSssSmsfEngagementStepHostElement;
|
|
316
326
|
"sss-standard-choice-form": HTMLSssStandardChoiceFormElement;
|
|
317
327
|
"sss-success": HTMLSssSuccessElement;
|
|
318
328
|
"sss-super-byof-host": HTMLSssSuperByofHostElement;
|
|
@@ -408,6 +418,9 @@ declare namespace LocalJSX {
|
|
|
408
418
|
interface SssPrefillWarningBox {
|
|
409
419
|
"notificationList"?: string[];
|
|
410
420
|
}
|
|
421
|
+
interface SssSmsfEngagementStepHost {
|
|
422
|
+
"history"?: RouterHistory;
|
|
423
|
+
}
|
|
411
424
|
interface SssStandardChoiceForm {
|
|
412
425
|
"history"?: RouterHistory;
|
|
413
426
|
}
|
|
@@ -460,6 +473,7 @@ declare namespace LocalJSX {
|
|
|
460
473
|
"sss-prefill-my-own-fund": SssPrefillMyOwnFund;
|
|
461
474
|
"sss-prefill-smsf": SssPrefillSmsf;
|
|
462
475
|
"sss-prefill-warning-box": SssPrefillWarningBox;
|
|
476
|
+
"sss-smsf-engagement-step-host": SssSmsfEngagementStepHost;
|
|
463
477
|
"sss-standard-choice-form": SssStandardChoiceForm;
|
|
464
478
|
"sss-success": SssSuccess;
|
|
465
479
|
"sss-super-byof-host": SssSuperByofHost;
|
|
@@ -494,6 +508,7 @@ declare module "@stencil/core" {
|
|
|
494
508
|
"sss-prefill-my-own-fund": LocalJSX.SssPrefillMyOwnFund & JSXBase.HTMLAttributes<HTMLSssPrefillMyOwnFundElement>;
|
|
495
509
|
"sss-prefill-smsf": LocalJSX.SssPrefillSmsf & JSXBase.HTMLAttributes<HTMLSssPrefillSmsfElement>;
|
|
496
510
|
"sss-prefill-warning-box": LocalJSX.SssPrefillWarningBox & JSXBase.HTMLAttributes<HTMLSssPrefillWarningBoxElement>;
|
|
511
|
+
"sss-smsf-engagement-step-host": LocalJSX.SssSmsfEngagementStepHost & JSXBase.HTMLAttributes<HTMLSssSmsfEngagementStepHostElement>;
|
|
497
512
|
"sss-standard-choice-form": LocalJSX.SssStandardChoiceForm & JSXBase.HTMLAttributes<HTMLSssStandardChoiceFormElement>;
|
|
498
513
|
"sss-success": LocalJSX.SssSuccess & JSXBase.HTMLAttributes<HTMLSssSuccessElement>;
|
|
499
514
|
"sss-super-byof-host": LocalJSX.SssSuperByofHost & JSXBase.HTMLAttributes<HTMLSssSuperByofHostElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/apollo-super-selection",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.64.20066",
|
|
4
4
|
"description": "Apollo Super Selection",
|
|
5
5
|
"main": "dist/lib/index.cjs.js",
|
|
6
6
|
"module": "dist/lib/index.js",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@juggle/resize-observer": "^3.3.0",
|
|
63
63
|
"@microsoft/applicationinsights-web": "^2.5.10",
|
|
64
64
|
"@stencil/router": "1.0.1",
|
|
65
|
-
"caniuse-lite": "^1.0.
|
|
65
|
+
"caniuse-lite": "^1.0.30001700",
|
|
66
66
|
"date-fns": "^2.16.1",
|
|
67
67
|
"fp-ts": "^2.9.3",
|
|
68
68
|
"jwt-decode": "^3.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const y=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function g(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=g((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,y,g){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return g(y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=g((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0,t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},y=function(n,e){return S.pipe(n,t.partitionMap(e))},g=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function D(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=D,t.getApplyMonoid=function(n){return{concat:D(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function D(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function C(n){this.message=n}(C.prototype=new Error).name="InvalidTokenError";var E=function(){return(E=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},P=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},T=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=E({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?P(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?T(n[u],t[u],e):t[u]);return r},O=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},R={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,O([void 0],s))):a}},I=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=R.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){I(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,R.polyfill("PerformanceObserver",{doThrow:!1}))&&(I(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},N=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),R.defaults=t?T(R.defaults,n):n,this},n.prototype.errorType=function(n){return R.errorType=n,this},n.prototype.polyfills=function(n){return R.polyfills=j(j({},R.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?T(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:B(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:T(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=T(R.defaults,u),s=R.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(R.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[R.errorType||"text"]().then((function(t){var e=new Error(t);throw e[R.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(x(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return V(n,t)})).join("&"):V(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),B=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=R.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function x(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=R.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&x(i,t,e,k(r,[u]))})),e}function V(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=N.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=N.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new C("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(D(n.split(".")[e]))}catch(n){throw new C("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};var K;!function(n){n.MyOwnFund="Existing super fund",n.DefaultFund="Default super fund",n.SelfManagedFund="Self-managed super fund",n.FeaturedFunds="Featured super funds"}(K||(K={}));const Z={myOwnFundForm:{fundUsi:o,fundName:o,memberNumber:o,memberFirstName:o,memberFamilyName:o},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}},{state:nn}=m(Z);class tn{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class en{constructor(){this.eventTrackingApi=tn.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const rn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{K as C,en as E,F as O,w as S,Y as a,G as b,f as c,W as d,rn as e,i as f,$ as g,_ as h,u as i,J as j,z as k,nn as l,v as m,o as n,L as o,X as p,l as q,y as r,s,a as t,q as u,c as v}
|
|
@@ -1 +0,0 @@
|
|
|
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{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(u,a)}s((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:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(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}}};System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.e;n=e.f;r=e.h},function(e){i=e.A}],execute:function(){e({C:void 0,S:void 0,c:l,g:le,h:ae,j:pe,k:he,p:void 0,t:f,v:c});var o=e("i",(function(e){return e._tag==="Some"}));var u=e("f",(function(e){return e._tag==="None"}));var a=e("n",{_tag:"None"});var s=e("s",(function(e){return{_tag:"Some",value:e}}));function c(e){return e==null?a:s(e)}function f(e){return u(e)?undefined:e.value}function l(e){i.injectProps(e,["history","location"])}function p(){d({type:"appReady"})}function d(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function h(e,t){d({type:"contentResized",height:e,width:t})}function v(e){d({type:"pageNavigated",url:e})}function m(){d({type:"complete"})}function g(){d({type:"submitSuccess"})}var y=e("q",{appReady:p,resize:h,navigation:v,complete:m,submitSuccess:g});var b=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var w=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var _=function(e){return!("isConnected"in e)||e.isConnected};var S=w((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(_))}}),2e3);var F=function(e){var r=e.on;var i=new Map;if(typeof t==="function"){r("dispose",(function(){i.clear()}));r("get",(function(e){var n=t();if(n){b(i,e,n)}}));r("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}S(i)}));r("reset",(function(){i.forEach((function(e){return e.forEach(n)}));S(i)}))}};var C=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){E(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var l=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:s,get:u,set:a,on:c,onChange:f,use:l,dispose:o,reset:i}};var E=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var A=function(e,t){var n=C(e,t);F(n);return n};var P={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var N=A(P).state;e("m",N);var O;(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["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/"})(O||(O=e("S",{})));var k=e("r",[r("stencil-route",{url:O.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:O.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:O.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:O.MyOwnFund,component:"sss-super-byof-host"}),r("stencil-route",{url:O.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:O.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:O.Prefill,component:"sss-prefill"}),r("stencil-route",{url:O.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:O.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:O.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:O.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:O.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:O.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:O.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:O.Success,component:"sss-success"})]);function D(e,t,n){return n={path:t,exports:{},require:function(e,t){return M()}},e(n,n.exports),n.exports}function M(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var I=D((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function u(e,t,n,r,i,o,u,a,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=u;function a(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=a;function s(e){return e+1}t.increment=s;function c(e){return e-1}t.decrement=c;function f(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=f;function l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=p;function d(e,t,n,r,i,o,u,a,s,c,f,l,p,d,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return s(a(u(o(i(r(n(t(e))))))));case 10:return c(s(a(u(o(i(r(n(t(e)))))))));case 11:return f(c(s(a(u(o(i(r(n(t(e))))))))));case 12:return l(f(c(s(a(u(o(i(r(n(t(e)))))))))));case 13:return p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))));case 14:return d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))));case 15:return h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))));case 16:return v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=f;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var R=e("O",D((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function u(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=u;function a(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=a;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function f(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=f;function l(e){return t.isNone(e)?null:e.value}t.toNullable=l;function p(e){return t.isNone(e)?undefined:e.value}t.toUndefined=p;var d=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return I.pipe(e,t.map(n))};var g=function(e,n){return I.pipe(e,t.ap(n))};var y=function(e,n){return I.pipe(e,t.chain(n))};var b=function(e,n,r){return I.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return I.pipe(e,n(t))}};var _=function(e,n,r){return I.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return I.pipe(e,n(t))}};var F=function(e,n){return I.pipe(e,t.alt(n))};var C=function(e,n){return I.pipe(e,t.filter(n))};var E=function(e,n){return I.pipe(e,t.filterMap(n))};var A=function(e,n){return I.pipe(e,t.extend(n))};var P=function(e,n){return I.pipe(e,t.partition(n))};var N=function(e,n){return I.pipe(e,t.partitionMap(n))};var O=function(e){var n=t.wither(e);return function(e,t){return I.pipe(e,n(t))}};var k=function(e){var n=t.wilt(e);return function(e,t){return I.pipe(e,n(t))}};var D=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=D;var M=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=M;var R=function(e){return I.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=R;var j=function(e){return I.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=j;t.of=t.some;var U=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=U;var T=function(e){return t.chain((function(n){return I.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=T;t.flatten=t.chain(I.identity);var B=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var q=function(){return t.none};t.throwError=q;var L=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=L;t.duplicate=t.extend(I.identity);var W=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=W;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var J={left:t.none,right:t.none};var K=function(e){var n=I.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?J:n.value};t.separate=K;var Y=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=Y;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=Q;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var G=function(e){return I.flow(t.map(e),t.separate)};t.partitionMap=G;var H=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=H;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var ee=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:s(e),right:c(e)}}))}}};t.wilt=ee;t.URI="Option";function te(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=te;function ne(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=ne;function re(e){return{equals:ne(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=re;function ie(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=ie;function oe(e){return{concat:ie(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=oe;function ue(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:_};t.Alt={URI:t.URI,map:m,alt:F};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:A};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N,wither:O,wilt:k};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:A,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N,wither:O,wilt:k,throwError:t.throwError};function ce(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ce;function fe(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=fe;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(I.bindTo_(e))};t.bindTo=pe;var de=function(e,n){return t.chain((function(r){return I.pipe(n(r),t.map((function(t){return I.bind_(r,e,t)})))}))};t.bind=de;var he=function(e,n){return I.flow(t.map((function(t){return function(n){return I.bind_(t,e,n)}})),t.ap(n))};t.apS=he;var ve=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(I.identity)})));function j(e){this.message=e}j.prototype=new Error,j.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new j("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?u+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function T(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(U(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return U(t)}}function B(e){this.message=e}function x(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(T(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}}B.prototype=new Error,B.prototype.name="InvalidTokenError";var q=undefined&&undefined.__assign||function(){q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return q.apply(this,arguments)};var L=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var W=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=q({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?L(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=W(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var V=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var z={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,o=n.instance,u=o===void 0?false:o;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return u&&c?new(c.bind.apply(c,V([void 0],a))):c}};var J=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Y.callbacks.delete(t);if(Y.callbacks.size<1){Y.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var K=function(e,t){if(!Y.observer&&e&&t){Y.observer=new t((function(t){Y.callbacks.forEach((function(n,r){J(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Y.observer};var Y={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=z.polyfill("performance",{doThrow:false});var r=z.polyfill("PerformanceObserver",{doThrow:false});if(!K(n,r))return;if(!J(n,e,t,n)){if(Y.callbacks.size<1)Y.observer.observe({entryTypes:["resource","measure"]});Y.callbacks.set(e,t)}}};var Q=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var X=function(){function e(e){this.error=e}return e}();var G=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var u=new Map(n);var a=W(z.defaults,o);var s=z.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=Q(i)(z.polyfill("fetch"))(t,a);var l=f.catch((function(e){throw new X(e)})).then((function(e){c.clear();if(!e.ok){return e[z.errorType||"text"]().then((function(t){var n=new Error(t);n[z.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var p=function(t){return t.catch((function(t){c.clear();var n=t instanceof X?t.error:t;if(t instanceof X&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};var d=function(e){return function(t){return e?p(l.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):p(l.then((function(e){return t?t(e):e})))}};var h={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(e){f.then((function(t){return Y.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){u.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var H=undefined&&undefined.__assign||function(){H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return H.apply(this,arguments)};var $=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var Z="application/json";var ee="Content-Type";var te=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,o=n.options,u=o===void 0?this._options:o,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,l=n.middlewares,p=l===void 0?this._middlewares:l,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(i,H({},u),new Map(s),$(f),$(p),$(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}z.defaults=t?W(z.defaults,e):e;return this};e.prototype.errorType=function(e){z.errorType=e;return this};e.prototype.polyfills=function(e){z.polyfills=H(H({},z.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?W(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:ne(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:W(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[ee]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:H(H({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:$(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:$(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:$(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==ee.toLowerCase()||n.startsWith(Z)})))?this.json(n):this.body(n);i=i.options(H(H({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return G(o)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:H(H({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===ee.toLowerCase()&&n.startsWith(Z)})))===null||t===void 0?void 0:t[1];return this.content(n||Z).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(re(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:oe(e)).content("application/x-www-form-urlencoded")};return e}();var ne=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=z.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var u=0,a=t[o];u<a.length;u++){var s=a[u];i.append(o,s)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function re(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=z.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+i+"]":i;if(o instanceof Array){for(var a=0,s=o;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){re(o,t,n,$(r,[i]))}}else{n.append(u,o)}}));return n}function ie(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function oe(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return ie(t,e)})).join("&")}return ie(t,n)})).join("&")}var ue=e("u",te.factory);ue["default"]=te.factory;function ae(){var e=Se.jwt;var t=Se.profileId;var n=Se.accountIdOrDefault;var r=Se.partnerIdOrDefault;return ue(Se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var se=e("o",{fundId:"slate",usi:"32367272075001"});function ce(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function fe(e){switch(e.kind){case"slate":return se.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function le(e){switch(e.kind){case"slate":return se.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function pe(e){switch(e.kind){case"Promoted":return s(fe(e.promoted));case"MyOwnFund":return s(e.myOwnFund.usi);case"SMSF":return a;case"Default":return s(e.default.usi);case"PromotedDefault":return s(e.promotedDefault.usi);case"DefinedBenefits":return s(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.usi);default:return a}}function de(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function he(e){switch(e.kind){case"Promoted":return s(de(e.promoted));case"MyOwnFund":return s(e.myOwnFund.memberNumber);case"DefinedBenefits":return s(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return a;default:return a}}function ve(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var me=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,ae().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,ae().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){ve(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":ce(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var ge=e("d",new me);var ye;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(ye||(ye=e("p",{})));var be=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var we={apiBaseUrl:R.none,appBaseUrl:R.none,profileId:R.none,jwt:R.none,superBuyer:R.none,superChoicePrefill:R.none,promotedFunds:R.none,accountConfiguration:R.none,profileConfiguration:R.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:R.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:ye.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var _e=function(){function e(){var e=this;var t=A(we),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=I.pipe(t,R.chain((function(e){return R.fromNullable(x(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(R.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(R.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(R.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(R.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return R.fromNullable(this.superCampaignState.DefaultFundPosition)}return R.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:R.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(R.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=I.pipe(this._state.profileConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten);if(R.isSome(e)){return e}return I.pipe(this._state.accountConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return I.pipe(this._state.accountConfiguration,R.map((function(e){return e.accountId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return I.pipe(this._state.superBuyer,R.map((function(e){return e.partnerId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(R.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,ge.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=R.fromNullable(e.accountConfiguration);this._state.profileConfiguration=R.fromNullable(e.profileConfiguration);this._state.superBuyer=R.fromNullable(e.superBuyer);this._state.promotedFunds=R.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=R.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=R.fromNullable(e.isDefinedBenefitsEligible);if(R.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return ge.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===ye.Loaded){this._state.superCampaignComponentStatus=ye.Loaded;this._state.superCampaignState=new be}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===ye.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return R.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var Se=e("a",new _e);var Fe=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);y.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){N.handleSubmitFn=e.handleSubmitFn;N.fundName=e.fundName;N.fundDetails=e.fundDetails;N.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,O.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=Se.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Ce=e("b",new Fe);var Ee;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(Ee||(Ee=e("C",{})));var Ae={myOwnFundForm:{fundUsi:a,fundName:a,memberNumber:a,memberFirstName:a,memberFamilyName:a},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var Pe=A(Ae),Ne=Pe.state,Oe=Pe.reset;e("l",Ne);var ke=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,ae().url("analytics-events").post(e).res()]}))}))};return e}();var De=function(){function e(){this.eventTrackingApi=ke.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.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}();e("E",De);var Me=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().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,ae().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,ae().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,ae().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,ae().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 Ie=e("e",new Me)}}}));
|
|
@@ -1 +0,0 @@
|
|
|
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{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(u,a)}s((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:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(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{e as getRenderingRef,f as forceUpdate,h}from"./index-107d7c24.js";import{A as ActiveRouter}from"./active-router-d18b36fb.js";var isSome=function(e){return e._tag==="Some"};var isNone=function(e){return e._tag==="None"};var none={_tag:"None"};var some=function(e){return{_tag:"Some",value:e}};function fromNullable(e){return e==null?none:some(e)}function toUndefined(e){return isNone(e)?undefined:e.value}function injectHistory(e){ActiveRouter.injectProps(e,["history","location"])}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 appendToMap=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var debounce=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(isConnected))}}),2e3);var stencilSubscription=function(e){var t=e.on;var n=new Map;if(typeof getRenderingRef==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=getRenderingRef();if(t){appendToMap(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(forceUpdate))}cleanupElements(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(n)}))}};var createObservableMap=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){removeFromArray(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var p=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:s,get:u,set:a,on:c,onChange:f,use:p,dispose:o,reset:i}};var removeFromArray=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var createStore=function(e,t){var n=createObservableMap(e,t);stencilSubscription(n);return n};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["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.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"}),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"})];function createCommonjsModule(e,t,n){return n={path:t,exports:{},require:function(e,t){return commonjsRequire()}},e(n,n.exports),n.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var _function=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function u(e,t,n,r,i,o,u,a,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=u;function a(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=a;function s(e){return e+1}t.increment=s;function c(e){return e-1}t.decrement=c;function f(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=f;function p(e){return function(t){return e.apply(void 0,t)}}t.tupled=p;function l(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=l;function d(e,t,n,r,i,o,u,a,s,c,f,p,l,d,h,m,v,g,y,_){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return s(a(u(o(i(r(n(t(e))))))));case 10:return c(s(a(u(o(i(r(n(t(e)))))))));case 11:return f(c(s(a(u(o(i(r(n(t(e))))))))));case 12:return p(f(c(s(a(u(o(i(r(n(t(e)))))))))));case 13:return l(p(f(c(s(a(u(o(i(r(n(t(e))))))))))));case 14:return d(l(p(f(c(s(a(u(o(i(r(n(t(e)))))))))))));case 15:return h(d(l(p(f(c(s(a(u(o(i(r(n(t(e))))))))))))));case 16:return m(h(d(l(p(f(c(s(a(u(o(i(r(n(t(e)))))))))))))));case 17:return v(m(h(d(l(p(f(c(s(a(u(o(i(r(n(t(e))))))))))))))));case 18:return g(v(m(h(d(l(p(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(v(m(h(d(l(p(f(c(s(a(u(o(i(r(n(t(e))))))))))))))))));case 20:return _(y(g(v(m(h(d(l(p(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=f;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var m=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=m}));var Option=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function u(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=u;function a(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=a;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function f(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=f;function p(e){return t.isNone(e)?null:e.value}t.toNullable=p;function l(e){return t.isNone(e)?undefined:e.value}t.toUndefined=l;var d=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=m;function m(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=m;var v=function(e,n){return _function.pipe(e,t.map(n))};var g=function(e,n){return _function.pipe(e,t.ap(n))};var y=function(e,n){return _function.pipe(e,t.chain(n))};var _=function(e,n,r){return _function.pipe(e,t.reduce(n,r))};var b=function(e){var n=t.foldMap(e);return function(e,t){return _function.pipe(e,n(t))}};var S=function(e,n,r){return _function.pipe(e,t.reduceRight(n,r))};var w=function(e){var n=t.traverse(e);return function(e,t){return _function.pipe(e,n(t))}};var F=function(e,n){return _function.pipe(e,t.alt(n))};var C=function(e,n){return _function.pipe(e,t.filter(n))};var A=function(e,n){return _function.pipe(e,t.filterMap(n))};var O=function(e,n){return _function.pipe(e,t.extend(n))};var E=function(e,n){return _function.pipe(e,t.partition(n))};var N=function(e,n){return _function.pipe(e,t.partitionMap(n))};var P=function(e){var n=t.wither(e);return function(e,t){return _function.pipe(e,n(t))}};var R=function(e){var n=t.wilt(e);return function(e,t){return _function.pipe(e,n(t))}};var M=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=M;var k=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=k;var D=function(e){return _function.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var T=function(e){return _function.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=T;t.of=t.some;var I=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=I;var j=function(e){return t.chain((function(n){return _function.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=j;t.flatten=t.chain(_function.identity);var U=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=U;t.alt=t.altW;var B=function(){return t.none};t.zero=B;var x=function(){return t.none};t.throwError=x;var W=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=W;t.duplicate=t.extend(_function.identity);var q=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=q;var L=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=L;var $=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=$;t.compact=t.flatten;var V={left:t.none,right:t.none};var z=function(e){var n=_function.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?V:n.value};t.separate=z;var J=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=J;var H=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=H;var K=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=K;var Q=function(e){return _function.flow(t.map(e),t.separate)};t.partitionMap=Q;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var X=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=X;var G=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=G;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:s(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function oe(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=oe;function ue(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ue;function ae(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=ae;t.Functor={URI:t.URI,map:v};t.Applicative={URI:t.URI,map:v,ap:g,of:t.of};t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:_,foldMap:b,reduceRight:S};t.Alt={URI:t.URI,map:v,alt:F};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:O};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:C,filterMap:A,partition:E,partitionMap:N};t.Traversable={URI:t.URI,map:v,reduce:_,foldMap:b,reduceRight:S,traverse:w,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:_,foldMap:b,reduceRight:S,traverse:w,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:A,partition:E,partitionMap:N,wither:P,wilt:R};t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:v,of:t.of,ap:g,chain:y,reduce:_,foldMap:b,reduceRight:S,traverse:w,sequence:t.sequence,zero:t.zero,alt:F,extend:O,compact:t.compact,separate:t.separate,filter:C,filterMap:A,partition:E,partitionMap:N,wither:P,wilt:R,throwError:t.throwError};function se(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=se;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function fe(e){return function(n){return t.isSome(e(n))}}t.getRefinement=fe;t.Do=t.of({});var pe=function(e){return t.map(_function.bindTo_(e))};t.bindTo=pe;var le=function(e,n){return t.chain((function(r){return _function.pipe(n(r),t.map((function(t){return _function.bind_(r,e,t)})))}))};t.bind=le;var de=function(e,n){return _function.flow(t.map((function(t){return function(n){return _function.bind_(t,e,n)}})),t.ap(n))};t.apS=de;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(_function.identity)}));function e(e){this.message=e}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,u=0,a="";i=n.charAt(u++);~i&&(r=o%4?64*r+i:i,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var i=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[i]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";var __assign=undefined&&undefined.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __spreadArrays=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var mix=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=__assign({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?__spreadArrays(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=mix(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var __spreadArrays$1=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var config={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,o=n.instance,u=o===void 0?false:o;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return u&&c?new(c.bind.apply(c,__spreadArrays$1([void 0],a))):c}};var onMatch=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);perfs.callbacks.delete(t);if(perfs.callbacks.size<1){perfs.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var lazyObserver=function(e,t){if(!perfs.observer&&e&&t){perfs.observer=new t((function(t){perfs.callbacks.forEach((function(n,r){onMatch(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return perfs.observer};var perfs={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=config.polyfill("performance",{doThrow:false});var r=config.polyfill("PerformanceObserver",{doThrow:false});if(!lazyObserver(n,r))return;if(!onMatch(n,e,t,n)){if(perfs.callbacks.size<1)perfs.observer.observe({entryTypes:["resource","measure"]});perfs.callbacks.set(e,t)}}};var middlewareHelper=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var WretchErrorWrapper=function(){function e(e){this.error=e}return e}();var resolver=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var u=new Map(n);var a=mix(config.defaults,o);var s=config.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=middlewareHelper(i)(config.polyfill("fetch"))(t,a);var p=f.catch((function(e){throw new WretchErrorWrapper(e)})).then((function(e){c.clear();if(!e.ok){return e[config.errorType||"text"]().then((function(t){var n=new Error(t);n[config.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var l=function(t){return t.catch((function(t){c.clear();var n=t instanceof WretchErrorWrapper?t.error:t;if(t instanceof WretchErrorWrapper&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};var d=function(e){return function(t){return e?l(p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):l(p.then((function(e){return t?t(e):e})))}};var h={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(e){f.then((function(t){return perfs.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){u.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var __assign$1=undefined&&undefined.__assign||function(){__assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign$1.apply(this,arguments)};var __spreadArrays$2=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var JSON_MIME="application/json";var CONTENT_TYPE_HEADER="Content-Type";var Wretcher=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,o=n.options,u=o===void 0?this._options:o,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,p=n.middlewares,l=p===void 0?this._middlewares:p,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(i,__assign$1({},u),new Map(s),__spreadArrays$2(f),__spreadArrays$2(l),__spreadArrays$2(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}config.defaults=t?mix(config.defaults,e):e;return this};e.prototype.errorType=function(e){config.errorType=e;return this};e.prototype.polyfills=function(e){config.polyfills=__assign$1(__assign$1({},config.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?mix(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:appendQueryParams(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:mix(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[CONTENT_TYPE_HEADER]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:__assign$1(__assign$1({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:__spreadArrays$2(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:__spreadArrays$2(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:__spreadArrays$2(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==CONTENT_TYPE_HEADER.toLowerCase()||n.startsWith(JSON_MIME)})))?this.json(n):this.body(n);i=i.options(__assign$1(__assign$1({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return resolver(o)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:__assign$1(__assign$1({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===CONTENT_TYPE_HEADER.toLowerCase()&&n.startsWith(JSON_MIME)})))===null||t===void 0?void 0:t[1];return this.content(n||JSON_MIME).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(convertFormData(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:convertFormUrl(e)).content("application/x-www-form-urlencoded")};return e}();var appendQueryParams=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=config.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var u=0,a=t[o];u<a.length;u++){var s=a[u];i.append(o,s)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function convertFormData(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=config.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+i+"]":i;if(o instanceof Array){for(var a=0,s=o;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){convertFormData(o,t,n,__spreadArrays$2(r,[i]))}}else{n.append(u,o)}}));return n}function encodeQueryValue(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function convertFormUrl(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return encodeQueryValue(t,e)})).join("&")}return encodeQueryValue(t,n)})).join("&")}var factory=Wretcher.factory;factory["default"]=Wretcher.factory;function buildBackendApiClient(){var e=superSelectionAppService.jwt;var t=superSelectionAppService.profileId;var n=superSelectionAppService.accountIdOrDefault;var r=superSelectionAppService.partnerIdOrDefault;return factory(superSelectionAppService.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var slate={fundId:"slate",usi:"32367272075001"};function hydratePromotedFundChoiceDtoKind(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function getPromotedFundUsi(e){switch(e.kind){case"slate":return slate.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function getPromotedFundId(e){switch(e.kind){case"slate":return slate.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function getSuperChoiceUsi(e){switch(e.kind){case"Promoted":return some(getPromotedFundUsi(e.promoted));case"MyOwnFund":return some(e.myOwnFund.usi);case"SMSF":return none;case"Default":return some(e.default.usi);case"PromotedDefault":return some(e.promotedDefault.usi);case"DefinedBenefits":return some(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return some(e.promotedDefaultWithJoin.usi);default:return none}}function getPromotedFundMemberNumber(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function getSuperChoiceMemberNumber(e){switch(e.kind){case"Promoted":return some(getPromotedFundMemberNumber(e.promoted));case"MyOwnFund":return some(e.myOwnFund.memberNumber);case"DefinedBenefits":return some(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return some(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return none;default:return none}}function hydrateSuperChoiceDetailsDtoKind(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var SuperSelectionApi=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,buildBackendApiClient().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,buildBackendApiClient().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,buildBackendApiClient().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){hydrateSuperChoiceDetailsDtoKind(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":hydratePromotedFundChoiceDtoKind(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var superSelectionApi=new SuperSelectionApi;var SuperCampaignComponentStatus;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(SuperCampaignComponentStatus||(SuperCampaignComponentStatus={}));var SuperCampaignState=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var initialState={apiBaseUrl:Option.none,appBaseUrl:Option.none,profileId:Option.none,jwt:Option.none,superBuyer:Option.none,superChoicePrefill:Option.none,promotedFunds:Option.none,accountConfiguration:Option.none,profileConfiguration:Option.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:Option.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:SuperCampaignComponentStatus.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var SuperSelectionAppService=function(){function e(){var e=this;var t=createStore(initialState),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=_function.pipe(t,Option.chain((function(e){return Option.fromNullable(o(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(Option.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(Option.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(Option.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(Option.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return Option.fromNullable(this.superCampaignState.DefaultFundPosition)}return Option.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:Option.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(Option.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=_function.pipe(this._state.profileConfiguration,Option.map((function(e){return Option.fromNullable(e.defaultFundUsi)})),Option.flatten);if(Option.isSome(e)){return e}return _function.pipe(this._state.accountConfiguration,Option.map((function(e){return Option.fromNullable(e.defaultFundUsi)})),Option.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return _function.pipe(this._state.accountConfiguration,Option.map((function(e){return e.accountId})),Option.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return _function.pipe(this._state.superBuyer,Option.map((function(e){return e.partnerId})),Option.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(Option.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,superSelectionApi.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=Option.fromNullable(e.accountConfiguration);this._state.profileConfiguration=Option.fromNullable(e.profileConfiguration);this._state.superBuyer=Option.fromNullable(e.superBuyer);this._state.promotedFunds=Option.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=Option.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=Option.fromNullable(e.isDefinedBenefitsEligible);if(Option.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===SuperCampaignComponentStatus.Loaded){this._state.superCampaignComponentStatus=SuperCampaignComponentStatus.Loaded;this._state.superCampaignState=new SuperCampaignState}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===SuperCampaignComponentStatus.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return Option.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var superSelectionAppService=new SuperSelectionAppService;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 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 _j=createStore(initialStateCustomFund),state$1=_j.state,reset=_j.reset;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.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}();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;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};
|