@flarehr/apollo-super-selection 1.4.56747 → 1.4.56843
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-0726177d.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-07893761.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-1a574672.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
- package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
- package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
- package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
- package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-f8bb280b.js +1 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/australian-fund-lookup.service-4be59dec.js +19 -0
- package/dist/lib/cjs/custom-fund.store-3d1ac996.js +37 -0
- package/dist/lib/cjs/event-tracking.service-ed12699a.js +296 -0
- package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/sss-button_32.cjs.entry.js +382 -351
- package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
- package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
- package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-ca52a1fc.js} +7 -331
- package/dist/lib/collection/collection-manifest.json +3 -1
- package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
- package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
- 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 +2 -1
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/australian-fund-lookup.service-a2f593d3.js +17 -0
- package/dist/lib/esm/custom-fund.store-dcc61edf.js +36 -0
- package/dist/lib/esm/event-tracking.service-9398a317.js +290 -0
- package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_32.entry.js +89 -58
- package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
- package/dist/lib/esm/sss-default-fund.entry.js +57 -0
- package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
- package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-50f199de.js} +8 -327
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/australian-fund-lookup.service-a2f593d3.js +1 -0
- package/dist/lib/esm-es5/custom-fund.store-dcc61edf.js +1 -0
- package/dist/lib/esm-es5/event-tracking.service-9398a317.js +1 -0
- package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
- package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
- package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/esm-es5/super-selection-app.service-50f199de.js +1 -0
- package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
- package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -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/default-fund/default-fund-router.d.ts +5 -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.d.ts +30 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
- package/dist/lib/apollo-super-selection/p-754c4c99.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-b52579e3.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
- package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js","./p-97188c78.system.js","./p-524b1ff5.system.js"],(function(t){"use strict";var n,s,e,u,r;return{setters:[function(t){n=t.r;s=t.h;e=t.H},function(t){u=t.a},function(){},function(t){r=t.i}],execute:function(){var f=t("sss_default_fund_router",function(){function t(t){n(this,t)}t.prototype.render=function(){if(u.isDefaultFundNewComponentEnabled){return s(e,null,s("sss-default-fund-host",null))}return s(e,null,s("sss-default-fund",{history:this.history}))};return t}());r(f)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,s){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function a(t){try{o(s.next(t))}catch(t){u(t)}}function r(t){try{o(s["throw"](t))}catch(t){u(t)}}function o(t){t.done?n(t.value):i(t.value).then(a,r)}o((s=s.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,i,u,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return o([t,e])}}function o(a){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,i&&(u=a[0]&2?i["return"]:a[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,a[1])).done)return u;if(i=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){n.label=a[1];break}if(a[0]===6&&n.label<u[1]){n.label=u[1];u=a;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(a);break}if(u[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{s=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js","./p-a2b4e667.system.js","./p-6d4e757b.system.js"],(function(t){"use strict";var e,n,s,i,u,a,r,o,l,d,c;return{setters:[function(t){e=t.r;n=t.h;s=t.g;i=t.H},function(t){u=t.O;a=t.a},function(t){r=t.E;o=t.S;l=t.n;d=t.c},function(t){c=t.a}],execute:function(){var f=t("sss_default_fund",function(){function t(t){e(this,t);this.defaultFundProductName="Loading fund...";this.eventTrackingService=r.Instance}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:t=a.defaultFundUsi;if(u.isNone(t)){return[2]}this.isDefaultFundExists=true;return[4,c.getFundAsync(t.value,true)];case 1:e=n.sent();if(u.isNone(e)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=e.value;this.defaultFundProductName=e.value.productName;return[2]}}))}))};t.prototype.componentDidLoad=function(){var t,e,n,s;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(e=(t=this.defaultFund)===null||t===void 0?void 0:t.usi)!==null&&e!==void 0?e:"",fundName:(s=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&s!==void 0?s:"",promotedFundsShown:a.promotedFunds,defaultFundUsiSet:u.toUndefined(a.defaultFundUsi)})};t.prototype.render=function(){var t=this;return n(i,null,n("sss-header-section",null),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),n("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},n("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",null,n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),n("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),n("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),n("div",{class:"text-sm text-gray-700"},n("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),n("ul",{class:"list-disc list-outside pl-5"},n("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),n("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),n("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",{class:"mb-4"},n("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return t.handleSubmitForm()}},"Continue")),n("stencil-route-link",{url:o.ChoicePage},n("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back")))))))};t.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this.isInvalidDefaultFund){return[2]}l.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,d.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:e},a.promotedFundsConfig))];case 1:t.sent();return[2]}}))}))}});return[2]}))}))};return t}())}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e,n as a}from"./p-f8bb280b.js";var m;!function(e){e.MyOwnFund="Existing super fund",e.DefaultFund="Default super fund",e.SelfManagedFund="Self-managed super fund",e.FeaturedFunds="Featured super funds"}(m||(m={}));const n={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:""}},{state:s}=e(n);export{m as C,s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-97188c78.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.A}],execute:function(){t("i",n);function n(t){e.injectProps(t,["history","location"])}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./p-db0bded8.js";import{l as n,a as t,c as s}from"./p-f8bb280b.js";function r(e,n){void 0===n&&(n="*"),e.sender="flare",window.parent.postMessage(e,n)}const u={appReady:function(){r({type:"appReady"})},resize:function(e,n){r({type:"contentResized",height:e,width:n})},navigation:function(e){r({type:"pageNavigated",url:e})},complete:function(){r({type:"complete"})},submitSuccess:function(){r({type:"submitSuccess"})}},{state:i}=n({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var c;!function(e){e.ExistingChoicePage="/existing",e.SuperCampaign="/super-campaign",e.ChoicePage="/",e.MyOwnFund="/super-choice/my-own-fund/",e.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",e.SmsfEngagementStep="/super-choice/smsf-engagement/",e.Prefill="/super-choice/prefill/",e.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",e.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",e.PrefillSMSFPage="/super-choice/prefill-smsf/",e.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",e.SelfManagedFund="/super-choice/smsf/",e.DefaultFund="/super-choice/default/",e.FeaturedFunds="/super-choice/featured-funds/",e.StandardChoice="/standard-choice/",e.Success="/success/"}(c||(c={}));const a=[e("stencil-route",{url:c.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:c.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:c.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:c.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:c.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:c.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),e("stencil-route",{url:c.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:c.Prefill,component:"sss-prefill"}),e("stencil-route",{url:c.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:c.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:c.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:c.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:c.DefaultFund,component:"sss-default-fund-router"}),e("stencil-route",{url:c.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:c.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:c.Success,component:"sss-success"})],o=new class{navigateInternally(e,n){const t=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(n)}`;u.navigation(t),e.push(t)}navigateInternallyToStandardChoice(e){i.handleSubmitFn=e.handleSubmitFn,i.fundName=e.fundName,i.fundDetails=e.fundDetails,i.promotedFundId=e.promotedFundId,this.navigateInternally(e.history,c.StandardChoice)}toExternalUrl(e){const n=new URL(e);return n.searchParams.append("_extnav","true"),n.href}get appBaseUrl(){return t.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(e){return e.length>0&&"/"===e[0]?e:"/"+e}},d=new class{async submitDefaultFundChoiceAsync(e){return s().url("super-choice/default").post(e).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(e){return s().url("super-choice/custom-fund").post(e).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(e){return s().url("super-choice/smsf").post(e).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(e){return s().url("super-choice/defined-benefits").post(e).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(e){return(await s().url(`super-choice/smsf/${e}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};class p{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(e){return s().url("analytics-events").post(e).res()}}class l{constructor(){this.eventTrackingApi=p.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(e){return this.trackEventAsync({SuperFundPdsViewed:e})}async TrackPromotedSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})}async TrackMyOwnSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})}async TrackSmsfSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})}async TrackDefaultSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})}async TrackSuperFundNominationViewedAsync(e){return this.trackEventAsync({SuperFundNominationViewed:e})}async TrackSuperFundNominationDeclinedAsync(e){return this.trackEventAsync({SuperFundNominationDeclined:e})}async TrackSuperFundDisclaimerViewedAsync(e){return this.trackEventAsync({SuperFundDisclaimerViewed:e})}async TrackSuperFundDisclaimerAcceptedAsync(e){return this.trackEventAsync({SuperFundDisclaimerAccepted:e})}async TrackSuperFundPrefillViewedAsync(e){return this.trackEventAsync({SuperFundPrefillViewed:e})}async TrackSuperFundPrefillDeclinedAsync(e){return this.trackEventAsync({SuperFundPrefillDeclined:e})}async TrackSuperFundDetailChangeRequestedAsync(e){return this.trackEventAsync({SuperFundDetailChangeRequested:e})}async TrackSuperCampaignActivationSucceededAsync(e){return this.trackEventAsync({SuperCampaignActivationSucceeded:e})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(e){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})}async TrackSuperMyOwnFundEngagementStepContinued(e,n){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:n}})}async TrackSuperSmsfEngagementStepActivationSucceeded(){return this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})}async TrackSuperSmsfEngagementStepContinued(e){return this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:e}})}async trackEventAsync(e){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:e})}catch(e){return}}}export{l as E,c as S,a,d as c,u as i,o as n,i as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,a)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={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(t){return function(n){return c([t,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(e)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:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];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-9cd765f5.system.js"],(function(t){"use strict";var n,e;return{setters:[function(t){n=t.f;e=t.O}],execute:function(){var r=function(){function t(){}t.prototype.searchFundsAsync=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){return[2,n.getAustralianFundsAsync({searchString:t,maxRecordCount:e})]}))}))};t.prototype.getFundAsync=function(t,r){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){switch(o.label){case 0:return[4,n.getAustralianFundAsync(t,r)];case 1:i=o.sent();return[2,e.some(i)]}}))}))};return t}();var i=t("a",new r)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r,H as t}from"./p-db0bded8.js";import{a as o}from"./p-f8bb280b.js";import"./p-fdadb647.js";import{i as d}from"./p-d5c7a35f.js";const a=class{constructor(r){s(this,r)}render(){return r(t,null,o.isDefaultFundNewComponentEnabled?r("sss-default-fund-host",null):r("sss-default-fund",{history:this.history}))}};d(a);export{a as sss_default_fund_router}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function u(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):o(e.value).then(u,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,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(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;o=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.e;r=e.f}],execute:function(){e({S:void 0,c:Q,d:Z,e:ee,g:V,k:a,t:s});var n=e("i",(function(e){return e._tag==="Some"}));var o=e("b",(function(e){return e._tag==="None"}));var i=e("n",{_tag:"None"});var u=e("s",(function(e){return{_tag:"Some",value:e}}));function a(e){return e==null?i:u(e)}function s(e){return o(e)?undefined:e.value}var f=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var c=function(e,t){var r;return function(){var n=[];for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var l=function(e){return!("isConnected"in e)||e.isConnected};var p=c((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(l))}}),2e3);var d=function(e){var n=e.on;var o=new Map;if(typeof t==="function"){n("dispose",(function(){o.clear()}));n("get",(function(e){var r=t();if(r){f(o,e,r)}}));n("set",(function(e){var t=o.get(e);if(t){o.set(e,t.filter(r))}p(o)}));n("reset",(function(){o.forEach((function(e){return e.forEach(r)}));p(o)}))}};var h=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var o=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));o()};var u=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var a=function(e,o){var i=r.get(e);if(t(o,i,e)){r.set(e,o);n.set.forEach((function(t){return t(e,o,i)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){a(t,r);return true}});var f=function(e,t){n[e].push(t);return function(){v(n[e],t)}};var c=function(t,r){var n=f("set",(function(e,n){if(e===t){r(n)}}));var o=f("reset",(function(){return r(e[t])}));return function(){n();o()}};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){f("set",e.set)}if(e.get){f("get",e.get)}if(e.reset){f("reset",e.reset)}}))};return{state:s,get:u,set:a,on:f,onChange:c,use:l,dispose:i,reset:o}};var v=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var m=e("l",(function(e,t){var r=h(e,t);d(r);return r}));function g(e,t,r){return r={path:t,exports:{},require:function(e,t){return y()}},e(r,r.exports),r.exports}function y(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var b=g((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 r(e){return e}t.identity=r;t.unsafeCoerce=r;function n(e){return function(t){return!e(t)}}t.not=n;function o(e){return function(){return e}}t.constant=o;t.constTrue=o(true);t.constFalse=o(false);t.constNull=o(null);t.constUndefined=o(undefined);t.constVoid=t.constUndefined;function i(e){return function(t,r){return e(r,t)}}t.flip=i;function u(e,t,r,n,o,i,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 r(t(e.apply(this,arguments)))};case 4:return function(){return n(r(t(e.apply(this,arguments))))};case 5:return function(){return o(n(r(t(e.apply(this,arguments)))))};case 6:return function(){return i(o(n(r(t(e.apply(this,arguments))))))};case 7:return function(){return u(i(o(n(r(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(i(o(n(r(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(i(o(n(r(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 f(e){return e-1}t.decrement=f;function c(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=c;function l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return e(t)}}t.untupled=p;function d(e,t,r,n,o,i,u,a,s,f,c,l,p,d,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return r(t(e));case 4:return n(r(t(e)));case 5:return o(n(r(t(e))));case 6:return i(o(n(r(t(e)))));case 7:return u(i(o(n(r(t(e))))));case 8:return a(u(i(o(n(r(t(e)))))));case 9:return s(a(u(i(o(n(r(t(e))))))));case 10:return f(s(a(u(i(o(n(r(t(e)))))))));case 11:return c(f(s(a(u(i(o(n(r(t(e))))))))));case 12:return l(c(f(s(a(u(i(o(n(r(t(e)))))))))));case 13:return p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))));case 14:return d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))));case 15:return h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))));case 16:return v(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))));case 17:return m(v(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=c;var h=function(e,t,r){var n;return Object.assign({},e,(n={},n[t]=r,n))};t.bind_=h;var v=function(e){return function(t){var r;return r={},r[e]=t,r}};t.bindTo_=v}));var w=e("O",g((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 r=function(e){return e._tag==="Some"};t.isSome=r;var n=function(e){return e._tag==="None"};t.isNone=n;t.none={_tag:"None"};var o=function(e){return{_tag:"Some",value:e}};t.some=o;function i(e){return e==null?t.none:t.some(e)}t.fromNullable=i;function u(e){return function(r){return e(r)?t.some(r):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 f(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=f;t.fromEither=f;function c(e,r){return function(n){return t.isNone(n)?e():r(n.value)}}t.fold=c;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(r){return t.isNone(r)?e():r.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return i(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(r){return t.isNone(r)?t.none:i(e(r.value))}}t.chainNullableK=v;var m=function(e,r){return b.pipe(e,t.map(r))};var g=function(e,r){return b.pipe(e,t.ap(r))};var y=function(e,r){return b.pipe(e,t.chain(r))};var w=function(e,r,n){return b.pipe(e,t.reduce(r,n))};var _=function(e){var r=t.foldMap(e);return function(e,t){return b.pipe(e,r(t))}};var S=function(e,r,n){return b.pipe(e,t.reduceRight(r,n))};var C=function(e){var r=t.traverse(e);return function(e,t){return b.pipe(e,r(t))}};var F=function(e,r){return b.pipe(e,t.alt(r))};var N=function(e,r){return b.pipe(e,t.filter(r))};var E=function(e,r){return b.pipe(e,t.filterMap(r))};var O=function(e,r){return b.pipe(e,t.extend(r))};var P=function(e,r){return b.pipe(e,t.partition(r))};var j=function(e,r){return b.pipe(e,t.partitionMap(r))};var I=function(e){var r=t.wither(e);return function(e,t){return b.pipe(e,r(t))}};var R=function(e){var r=t.wilt(e);return function(e,t){return b.pipe(e,r(t))}};var U=function(e){return function(r){return t.isNone(r)?t.none:t.some(e(r.value))}};t.map=U;var A=function(e){return function(r){return t.isNone(r)?t.none:t.isNone(e)?t.none:t.some(r.value(e.value))}};t.ap=A;var M=function(e){return b.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=M;var k=function(e){return b.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=k;t.of=t.some;var T=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)}};t.chain=T;var D=function(e){return t.chain((function(r){return b.pipe(e(r),t.map((function(){return r})))}))};t.chainFirst=D;t.flatten=t.chain(b.identity);var B=function(e){return function(r){return t.isNone(r)?e():r}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var L=function(){return t.none};t.throwError=L;var W=function(e){return function(r){return t.isNone(r)?t.none:t.some(e(r))}};t.extend=W;t.duplicate=t.extend(b.identity);var q=function(e,r){return function(n){return t.isNone(n)?e:r(e,n.value)}};t.reduce=q;var z=function(e){return function(r){return function(n){return t.isNone(n)?e.empty:r(n.value)}}};t.foldMap=z;var J=function(e,r){return function(n){return t.isNone(n)?e:r(n.value,e)}};t.reduceRight=J;t.compact=t.flatten;var K={left:t.none,right:t.none};var Y=function(e){var r=b.pipe(e,t.map((function(e){return{left:s(e),right:f(e)}})));return t.isNone(r)?K:r.value};t.separate=Y;var Q=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)?r:t.none}};t.filter=Q;var X=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)}};t.filterMap=X;var G=function(e){return function(t){return{left:N(t,(function(t){return!e(t)})),right:N(t,e)}}};t.partition=G;var H=function(e){return b.flow(t.map(e),t.separate)};t.partitionMap=H;var V=function(e){return function(r){return function(n){return t.isNone(n)?e.of(t.none):e.map(r(n.value),t.some)}}};t.traverse=V;var Z=function(e){return function(r){return t.isNone(r)?e.of(t.none):e.map(r.value,t.some)}};t.sequence=Z;var $=function(e){return function(r){return function(n){return t.isNone(n)?e.of(t.none):r(n.value)}}};t.wither=$;var ee=function(e){return function(r){return function(n){return t.isNone(n)?e.of({left:t.none,right:t.none}):e.map(r(n.value),(function(e){return{left:s(e),right:f(e)}}))}}};t.wilt=ee;t.URI="Option";function te(e){return{show:function(r){return t.isNone(r)?"none":"some("+e.show(r.value)+")"}}}t.getShow=te;function re(e){return{equals:function(r,n){return r===n||(t.isNone(r)?t.isNone(n):t.isNone(n)?false:e.equals(r.value,n.value))}}}t.getEq=re;function ne(e){return{equals:re(e).equals,compare:function(r,n){return r===n?0:t.isSome(r)?t.isSome(n)?e.compare(r.value,n.value):1:-1}}}t.getOrd=ne;function oe(e){return{concat:function(r,n){return t.isSome(r)&&t.isSome(n)?t.some(e.concat(r.value,n.value)):t.none}}}t.getApplySemigroup=oe;function ie(e){return{concat:oe(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ue(){return{concat:function(e,r){return t.isNone(e)?r:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,r){return t.isNone(r)?e:r},empty:t.none}}t.getLastMonoid=ae;function se(e){return{concat:function(r,n){return t.isNone(r)?n:t.isNone(n)?r:t.some(e.concat(r.value,n.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:w,foldMap:_,reduceRight:S};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:O};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:N,filterMap:E,partition:P,partitionMap:j};t.Traversable={URI:t.URI,map:m,reduce:w,foldMap:_,reduceRight:S,traverse:C,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:w,foldMap:_,reduceRight:S,traverse:C,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:N,filterMap:E,partition:P,partitionMap:j,wither:I,wilt:R};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:w,foldMap:_,reduceRight:S,traverse:C,sequence:t.sequence,zero:t.zero,alt:F,extend:O,compact:t.compact,separate:t.separate,filter:N,filterMap:E,partition:P,partitionMap:j,wither:I,wilt:R,throwError:t.throwError};function fe(e){return function(r,n){return t.isNone(n)?false:e.equals(r,n.value)}}t.elem=fe;function ce(e){return function(r){return t.isNone(r)?false:e(r.value)}}t.exists=ce;function le(e){return function(r){return t.isSome(e(r))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(b.bindTo_(e))};t.bindTo=pe;var de=function(e,r){return t.chain((function(n){return b.pipe(r(n),t.map((function(t){return b.bind_(n,e,t)})))}))};t.bind=de;var he=function(e,r){return b.flow(t.map((function(t){return function(r){return b.bind_(t,e,r)}})),t.ap(r))};t.apS=he;var ve=function(e){return function(r){var n=[];for(var o=0;o<r.length;o++){var i=e(o,r[o]);if(t.isNone(i)){return t.none}n.push(i.value)}return t.some(n)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,r){return e(r)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(b.identity)})));function _(e){this.message=e}_.prototype=new Error,_.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new _("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,u="";n=t.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?u+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return u};function C(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(S(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return S(t)}}function F(e){this.message=e}function N(e,t){if("string"!=typeof e)throw new F("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[r]))}catch(e){throw new F("Invalid token specified: "+e.message)}}F.prototype=new Error,F.prototype.name="InvalidTokenError";var E=undefined&&undefined.__assign||function(){E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return E.apply(this,arguments)};var O=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var P=function(e,t,r){if(r===void 0){r=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var n=E({},e);for(var o in t){if(t.hasOwnProperty(o)){if(t[o]instanceof Array&&e[o]instanceof Array){n[o]=r?O(e[o],t[o]):t[o]}else if(typeof t[o]==="object"&&typeof e[o]==="object"){n[o]=P(e[o],t[o],r)}else{n[o]=t[o]}}}return n};var j=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var I={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var r=t===void 0?{}:t,n=r.doThrow,o=n===void 0?true:n,i=r.instance,u=i===void 0?false:i;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var f=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(o&&!f)throw new Error(e+" is not defined");return u&&f?new(f.bind.apply(f,j([void 0],a))):f}};var R=function(e,t,r,n){if(!e.getEntriesByName)return false;var o=e.getEntriesByName(t);if(o&&o.length>0){r(o.reverse()[0]);if(n.clearMeasures)n.clearMeasures(t);A.callbacks.delete(t);if(A.callbacks.size<1){A.observer.disconnect();if(n.clearResourceTimings){n.clearResourceTimings()}}return true}return false};var U=function(e,t){if(!A.observer&&e&&t){A.observer=new t((function(t){A.callbacks.forEach((function(r,n){R(t,n,r,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return A.observer};var A={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var r=I.polyfill("performance",{doThrow:false});var n=I.polyfill("PerformanceObserver",{doThrow:false});if(!U(r,n))return;if(!R(r,e,t,r)){if(A.callbacks.size<1)A.observer.observe({entryTypes:["resource","measure"]});A.callbacks.set(e,t)}}};var M=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(r,n,o){return o===e.length-2?n(r(t)):n(r)}))}};var k=function(){function e(e){this.error=e}return e}();var T=function(e){var t=e._url,r=e._catchers,n=e._resolvers,o=e._middlewares,i=e._options;var u=new Map(r);var a=P(I.defaults,i);var s=I.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var f={ref:null,clear:function(){if(f.ref){clearTimeout(f.ref);f.ref=null}}};var c=M(o)(I.polyfill("fetch"))(t,a);var l=c.catch((function(e){throw new k(e)})).then((function(e){f.clear();if(!e.ok){return e[I.errorType||"text"]().then((function(t){var r=new Error(t);r[I.errorType||"text"]=t;r["status"]=e.status;r["response"]=e;throw r}))}return e}));var p=function(t){return t.catch((function(t){f.clear();var r=t instanceof k?t.error:t;if(t instanceof k&&u.has("__fromFetch"))return u.get("__fromFetch")(r,e);else if(u.has(r.status))return u.get(r.status)(r,e);else if(u.has(r.name))return u.get(r.name)(r,e);else throw r}))};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){c.then((function(t){return A.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}f.clear();f.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 n.reduce((function(t,r){return r(t,e)}),h)};var D=undefined&&undefined.__assign||function(){D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return D.apply(this,arguments)};var B=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var x="application/json";var L="Content-Type";var W=function(){function e(e,t,r,n,o,i){if(r===void 0){r=new Map}if(n===void 0){n=[]}if(o===void 0){o=[]}if(i===void 0){i=[]}this._url=e;this._options=t;this._catchers=r;this._resolvers=n;this._middlewares=o;this._deferredChain=i}e.factory=function(t,r){if(t===void 0){t=""}if(r===void 0){r={}}return new e(t,r)};e.prototype.selfFactory=function(t){var r=t===void 0?{}:t,n=r.url,o=n===void 0?this._url:n,i=r.options,u=i===void 0?this._options:i,a=r.catchers,s=a===void 0?this._catchers:a,f=r.resolvers,c=f===void 0?this._resolvers:f,l=r.middlewares,p=l===void 0?this._middlewares:l,d=r.deferredChain,h=d===void 0?this._deferredChain:d;return new e(o,D({},u),new Map(s),B(c),B(p),B(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}I.defaults=t?P(I.defaults,e):e;return this};e.prototype.errorType=function(e){I.errorType=e;return this};e.prototype.polyfills=function(e){I.polyfills=D(D({},I.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var r=this._url.split("?");return this.selfFactory({url:r.length>1?r[0]+e+"?"+r[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?P(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:q(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:P(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[L]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var r=new Map(this._catchers);r.set(e,t);return this.selfFactory({catchers:r})};e.prototype.signal=function(e){return this.selfFactory({options:D(D({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:B(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:B(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:B(this._middlewares,e)})};e.prototype.method=function(e,t,r){if(t===void 0){t={}}if(r===void 0){r=null}var n=this._options.headers;var o=!r?this:typeof r==="object"&&(!n||Object.entries(n).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==L.toLowerCase()||r.startsWith(x)})))?this.json(r):this.body(r);o=o.options(D(D({},t),{method:e}));var i=o._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),o);return T(i)};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:D(D({},this._options),{body:e})})};e.prototype.json=function(e){var t;var r=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===L.toLowerCase()&&r.startsWith(x)})))===null||t===void 0?void 0:t[1];return this.content(r||x).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(z(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:K(e)).content("application/x-www-form-urlencoded")};return e}();var q=function(e,t,r){var n;if(typeof t==="string"){n=t}else{var o=I.polyfill("URLSearchParams",{instance:true});for(var i in t){if(t[i]instanceof Array){for(var u=0,a=t[i];u<a.length;u++){var s=a[u];o.append(i,s)}}else{o.append(i,t[i])}}n=o.toString()}var f=e.split("?");if(r||f.length<2)return f[0]+"?"+n;return e+"&"+n};function z(e,t,r,n){if(t===void 0){t=false}if(r===void 0){r=I.polyfill("FormData",{instance:true})}if(n===void 0){n=[]}Object.entries(e).forEach((function(e){var o=e[0],i=e[1];var u=n.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+o+"]":o;if(i instanceof Array){for(var a=0,s=i;a<s.length;a++){var f=s[a];r.append(u+"[]",f)}}else if(t&&typeof i==="object"&&(!(t instanceof Array)||!t.includes(o))){if(i!==null){z(i,t,r,B(n,[o]))}}else{r.append(u,i)}}));return r}function J(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function K(e){return Object.keys(e).map((function(t){var r=e[t];if(r instanceof Array){return r.map((function(e){return J(t,e)})).join("&")}return J(t,r)})).join("&")}var Y=e("j",W.factory);Y["default"]=W.factory;function Q(){var e=se.jwt;var t=se.profileId;var r=se.accountIdOrDefault;var n=se.partnerIdOrDefault;return Y(se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":n,"X-ACCOUNT-ID":r})}var X=e("h",{fundId:"slate",usi:"32367272075001"});function G(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 H(e){switch(e.kind){case"slate":return X.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 V(e){switch(e.kind){case"slate":return X.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 Z(e){switch(e.kind){case"Promoted":return u(H(e.promoted));case"MyOwnFund":return u(e.myOwnFund.usi);case"SMSF":return i;case"Default":return u(e.default.usi);case"PromotedDefault":return u(e.promotedDefault.usi);case"DefinedBenefits":return u(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return u(e.promotedDefaultWithJoin.usi);default:return i}}function $(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 ee(e){switch(e.kind){case"Promoted":return u($(e.promoted));case"MyOwnFund":return u(e.myOwnFund.memberNumber);case"DefinedBenefits":return u(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return u(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return i;default:return i}}function te(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 re=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(r){return[2,Q().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 r;return __generator(this,(function(n){r=t?"?includeInactive=true":"";return[2,Q().url("super-choice/australian-funds/"+e+r).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(r){switch(r.label){case 0:return[4,Q().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=r.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){te(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":G(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,Q().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,Q().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 r=this.toSearchFilterQueryString(t);var n=e?"includeInactive=true":"";var o=function(e){return e&&e.length};return[r,n].filter(o).join("&")};return e}();var ne=e("f",new re);var oe;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(oe||(oe=e("S",{})));var ie=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 ue={apiBaseUrl:w.none,appBaseUrl:w.none,profileId:w.none,jwt:w.none,superBuyer:w.none,superChoicePrefill:w.none,promotedFunds:w.none,accountConfiguration:w.none,profileConfiguration:w.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:w.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:oe.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,smsfCustomStepEnabled:false,featuredFundsEnabled:false,defaultFundNewComponentEnabled:false};var ae=function(){function e(){var e=this;var t=m(ue),r=t.state,n=t.onChange;this._state=r;this._onChange=n;n("jwt",(function(t){e._state.profileId=b.pipe(t,w.chain((function(e){return w.fromNullable(N(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(w.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(w.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(w.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(w.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 w.fromNullable(this.superCampaignState.DefaultFundPosition)}return w.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:w.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(w.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=b.pipe(this._state.profileConfiguration,w.map((function(e){return w.fromNullable(e.defaultFundUsi)})),w.flatten);if(w.isSome(e)){return e}return b.pipe(this._state.accountConfiguration,w.map((function(e){return w.fromNullable(e.defaultFundUsi)})),w.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return b.pipe(this._state.accountConfiguration,w.map((function(e){return e.accountId})),w.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return b.pipe(this._state.superBuyer,w.map((function(e){return e.partnerId})),w.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(w.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,ne.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=w.fromNullable(e.accountConfiguration);this._state.profileConfiguration=w.fromNullable(e.profileConfiguration);this._state.superBuyer=w.fromNullable(e.superBuyer);this._state.promotedFunds=w.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.smsfCustomStepEnabled=e.smsfCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.defaultFundNewComponentEnabled=e.defaultFundNewComponentEnabled;this._state.superChoicePrefill=w.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=w.fromNullable(e.isDefinedBenefitsEligible);if(w.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 ne.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===oe.Loaded){this._state.superCampaignComponentStatus=oe.Loaded;this._state.superCampaignState=new ie}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,"isSmsfCustomStepEnabled",{get:function(){return this.state.smsfCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDefaultFundNewComponentEnabled",{get:function(){return this.state.defaultFundNewComponentEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===oe.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 w.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 ae)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,u){function o(e){try{c(r.next(e))}catch(e){u(e)}}function s(e){try{c(r["throw"](e))}catch(e){u(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(u=o[0]&2?i["return"]:o[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,o[1])).done)return u;if(i=0,u)o=[o[0]&2,u.value];switch(o[0]){case 0:case 1:u=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!u||o[1]>u[0]&&o[1]<u[3])){n.label=o[1];break}if(o[0]===6&&n.label<u[1]){n.label=u[1];u=o;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(o);break}if(u[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=u=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.h},function(e){n=e.l;r=e.a;i=e.c}],execute:function(){e("S",void 0);function u(){o({type:"appReady"})}function o(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function s(e,t){o({type:"contentResized",height:e,width:t})}function c(e){o({type:"pageNavigated",url:e})}function a(){o({type:"complete"})}function d(){o({type:"submitSuccess"})}var f=e("i",{appReady:u,resize:s,navigation:c,complete:a,submitSuccess:d});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 l=n(p).state;e("s",l);var h;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["SmsfEngagementStep"]="/super-choice/smsf-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(h||(h=e("S",{})));var v=e("a",[t("stencil-route",{url:h.ExistingChoicePage,component:"sss-existing-choice-page"}),t("stencil-route",{url:h.SuperCampaign,component:"sss-super-campaign-host"}),t("stencil-route",{exact:true,url:h.ChoicePage,component:"sss-choice-router"}),t("stencil-route",{url:h.MyOwnFund,component:"sss-super-byof-host"}),t("stencil-route",{url:h.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),t("stencil-route",{url:h.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),t("stencil-route",{url:h.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),t("stencil-route",{url:h.Prefill,component:"sss-prefill"}),t("stencil-route",{url:h.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),t("stencil-route",{url:h.PrefillSMSFPage,component:"sss-prefill-smsf"}),t("stencil-route",{url:h.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),t("stencil-route",{url:h.SelfManagedFund,component:"sss-super-smsf-host"}),t("stencil-route",{url:h.DefaultFund,component:"sss-default-fund-router"}),t("stencil-route",{url:h.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),t("stencil-route",{url:h.StandardChoice,component:"sss-standard-choice-form"}),t("stencil-route",{url:h.Success,component:"sss-success"})]);var y=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);f.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){l.handleSubmitFn=e.handleSubmitFn;l.fundName=e.fundName;l.fundDetails=e.fundDetails;l.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,h.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=r.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var g=e("n",new y);var _=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,i().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,i().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,i().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,i().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,i().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 m=e("c",new _);var w=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,i().url("analytics-events").post(e).res()]}))}))};return e}();var S=function(){function e(){this.eventTrackingApi=w.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.TrackSuperSmsfEngagementStepActivationSucceeded=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})]}))}))};e.prototype.TrackSuperSmsfEngagementStepContinued=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:e}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();e("E",S)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as s,O as n}from"./p-f8bb280b.js";const a=new class{async searchFundsAsync(n,a){return s.getAustralianFundsAsync({searchString:n,maxRecordCount:a})}async getFundAsync(a,r){const c=await s.getAustralianFundAsync(a,r);return n.some(c)}};export{a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as e}from"./p-db0bded8.js";import{a as i,O as o}from"./p-f8bb280b.js";import"./p-fdadb647.js";import{i as r}from"./p-d5c7a35f.js";import{E as a,n as m,S as n,c as d}from"./p-5716179f.js";import{s as h}from"./p-4a95528c.js";var u;!function(s){s[s.NotLoaded=1]="NotLoaded",s[s.Loaded=2]="Loaded"}(u||(u={}));let c=u.NotLoaded;const f=class{constructor(t){s(this,t),this.eventTrackingService=a.Instance,this.subscribeToSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.addEventListener(s,this.byofEventHandlers[s])},this.unSubscribeFromSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.removeEventListener(s,this.byofEventHandlers[s])},this.byofLoaded=async s=>("super-byof"===s.detail.sender&&(c=u.Loaded,clearTimeout(this.loadingTimeoutRef),this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:i.promotedFunds,defaultFundUsiSet:o.toUndefined(i.defaultFundUsi)})),Promise.resolve()),this.byofCompleted=async s=>{if("super-byof"===s.detail.sender){if(h.myOwnFundForm={fundUsi:o.fromNullable(s.detail.fundUsi),fundName:o.fromNullable(s.detail.fundName),memberNumber:o.fromNullable(s.detail.memberNumber),memberFirstName:o.fromNullable(s.detail.memberFirstName),memberFamilyName:o.fromNullable(s.detail.memberLastName)},i.isBringYourOwnFundCustomStepEnabled&&i.isUsingSuperCampaign)return void m.navigateInternally(this.history,n.MyOwnFundEngagementStep);m.navigateInternallyToStandardChoice({history:this.history,fundName:s.detail.fundName,fundDetails:{type:"myOwnFund",fundName:s.detail.fundName,fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber,memberFirstName:s.detail.memberFirstName,memberFamilyName:s.detail.memberLastName,standardChoiceFormSignature:t},i.promotedFundsConfig);await d.submitCustomFundChoiceAsync(e)}})}},this.byofCancelled=async s=>{"super-byof"===s.detail.sender&&await m.navigateInternally(this.history,n.ChoicePage)},this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}async componentWillLoad(){if(!o.isSome(i.backendUrl)||!o.isSome(i.state.jwt))throw Error("SuperByofHost pre-requisites not met.");this.backendUrl=i.backendUrl.value,this.accessToken=i.state.jwt.value,c===u.NotLoaded&&(this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),3e4)),this.subscribeToSuperByofEvents()}disconnectedCallback(){clearTimeout(this.loadingTimeoutRef),this.unSubscribeFromSuperByofEvents()}render(){return t(e,null,t("sss-header-section",null),t("div",{class:"flex justify-center mt-11"},t("sss-custom-fund",null,t("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))}async byofLoadingTimeoutTriggered(){if(c!==u.Loaded)throw Error("BYOF component failed to load.")}};r(f);export{f as sss_super_byof_host}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,g as e,H as a}from"./p-db0bded8.js";import{O as l,a as i}from"./p-f8bb280b.js";import{E as o,S as d,n,c as r}from"./p-5716179f.js";import{a as u}from"./p-a99c601b.js";const m=class{constructor(t){s(this,t),this.defaultFundProductName="Loading fund...",this.eventTrackingService=o.Instance}async componentWillLoad(){const s=i.defaultFundUsi;if(l.isNone(s))return;this.isDefaultFundExists=!0;const t=await u.getFundAsync(s.value,!0);l.isNone(t)?this.isInvalidDefaultFund=!0:(this.defaultFund=t.value,this.defaultFundProductName=t.value.productName)}componentDidLoad(){var s,t,e,a;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:null!==(t=null===(s=this.defaultFund)||void 0===s?void 0:s.usi)&&void 0!==t?t:"",fundName:null!==(a=null===(e=this.defaultFund)||void 0===e?void 0:e.productName)&&void 0!==a?a:"",promotedFundsShown:i.promotedFunds,defaultFundUsiSet:l.toUndefined(i.defaultFundUsi)})}render(){return t(a,null,t("sss-header-section",null),t("div",{class:"flex justify-center mt-11"},t("sss-custom-fund",null,t("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},t("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&t("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},t("div",{class:"flex"},t("div",{class:"flex-shrink-0"},t("img",{class:"h-5 w-5",src:e("assets/icon-exclamation.svg")})),t("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},t("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&t("div",null,t("div",{class:"mt-3"},t("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),t("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),t("div",{class:"mt-3"},t("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),t("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),t("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),t("div",{class:"text-sm text-gray-700"},t("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),t("ul",{class:"list-disc list-outside pl-5"},t("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),t("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),t("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),t("div",{class:"flex justify-center mt-8"},t("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&t("div",{class:"mb-4"},t("sss-button",{testid:"continue-button",fillWidth:!0,promiseFn:()=>this.handleSubmitForm()},"Continue")),t("stencil-route-link",{url:d.ChoicePage},t("sss-button",{testid:"back-button",fillWidth:!0,variant:"secondary"},"Back")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||n.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:async s=>{await r.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:s},i.promotedFundsConfig))}})}};export{m as sss_default_fund}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,r,i;return{setters:[function(e){t=e.p;r=e.b},function(){},function(e){i=e.g}],execute:function(){var e=function(){var e=s.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){i();return r([["p-
|
|
1
|
+
System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,r,i;return{setters:[function(e){t=e.p;r=e.b},function(){},function(e){i=e.g}],execute:function(){var e=function(){var e=s.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return t(r)};e().then((function(e){i();return r([["p-2c136506.system",[[0,"sss-default-fund-router",{history:[16]}]]],["p-07893761.system",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-53b231f0.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-2b42304a.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-22939048.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-e957b393.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-c775c0e4.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-0726177d.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-default-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]],["p-37ed5963.system",[[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}]]]],e)}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as o}from"./p-fdadb647.js";function i(i){o.injectProps(i,["history","location"])}export{i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-9cd765f5.system.js"],(function(e){"use strict";var n,u;return{setters:[function(e){n=e.l;u=e.n}],execute:function(){e("C",void 0);var s;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(s||(s=e("C",{})));var a={myOwnFundForm:{fundUsi:u,fundName:u,memberNumber:u,memberFirstName:u,memberFamilyName:u},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var r=n(a),t=r.state,d=r.reset;e("s",t)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t,f as n}from"./p-db0bded8.js";var r=function(t){return"Some"===t._tag},e=function(t){return"None"===t._tag},u={_tag:"None"},i=function(t){return{_tag:"Some",value:t}};function o(t){return null==t?u:i(t)}function c(t){return e(t)?void 0:t.value}const a=t=>!("isConnected"in t)||t.isConnected,s=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(a))})(...n)}),2e3)}})(),f=(r,e)=>{const u=((t,n=((t,n)=>t!==n))=>{let r=new Map(Object.entries(null!=t?t:{}));const e={dispose:[],get:[],set:[],reset:[]},u=()=>{r=new Map(Object.entries(null!=t?t:{})),e.reset.forEach((t=>t()))},i=t=>(e.get.forEach((n=>n(t))),r.get(t)),o=(t,u)=>{const i=r.get(t);n(u,i,t)&&(r.set(t,u),e.set.forEach((n=>n(t,u,i))))},c="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,n)=>i(n),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>r.has(n),set:(t,n,r)=>(o(n,r),!0)}),a=(t,n)=>(e[t].push(n),()=>{((t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)})(e[t],n)});return{state:c,get:i,set:o,on:a,onChange:(n,r)=>{const e=a("set",((t,e)=>{t===n&&r(e)})),u=a("reset",(()=>r(t[n])));return()=>{e(),u()}},use:(...t)=>t.forEach((t=>{t.set&&a("set",t.set),t.get&&a("get",t.get),t.reset&&a("reset",t.reset)})),dispose:()=>{e.dispose.forEach((t=>t())),u()},reset:u}})(r,e);return(({on:r})=>{const e=new Map;"function"==typeof t&&(r("dispose",(()=>{e.clear()})),r("get",(n=>{const r=t();r&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(e,n,r)})),r("set",(t=>{const r=e.get(t);r&&e.set(t,r.filter(n)),s(e)})),r("reset",(()=>{e.forEach((t=>t.forEach(n))),s(e)})))})(u),u};function h(t,n,r){return t(r={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var l=h((function(t,n){function r(t){return t}function e(t){return function(){return t}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(n,"__esModule",{value:!0}),n.bindTo_=n.bind_=n.hole=n.pipe=n.untupled=n.tupled=n.absurd=n.decrement=n.increment=n.tuple=n.flow=n.flip=n.constVoid=n.constUndefined=n.constNull=n.constFalse=n.constTrue=n.constant=n.not=n.unsafeCoerce=n.identity=void 0,n.identity=r,n.unsafeCoerce=r,n.not=function(t){return function(n){return!t(n)}},n.constant=e,n.constTrue=e(!0),n.constFalse=e(!1),n.constNull=e(null),n.constUndefined=e(void 0),n.constVoid=n.constUndefined,n.flip=function(t){return function(n,r){return t(r,n)}},n.flow=function(t,n,r,e,u,i,o,c,a){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return r(n(t.apply(this,arguments)))};case 4:return function(){return e(r(n(t.apply(this,arguments))))};case 5:return function(){return u(e(r(n(t.apply(this,arguments)))))};case 6:return function(){return i(u(e(r(n(t.apply(this,arguments))))))};case 7:return function(){return o(i(u(e(r(n(t.apply(this,arguments)))))))};case 8:return function(){return c(o(i(u(e(r(n(t.apply(this,arguments))))))))};case 9:return function(){return a(c(o(i(u(e(r(n(t.apply(this,arguments)))))))))}}},n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},n.increment=function(t){return t+1},n.decrement=function(t){return t-1},n.absurd=u,n.tupled=function(t){return function(n){return t.apply(void 0,n)}},n.untupled=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(n)}},n.pipe=function(t,n,r,e,u,i,o,c,a,s,f,h,l,d,p,v,m,w,g,y){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return r(n(t));case 4:return e(r(n(t)));case 5:return u(e(r(n(t))));case 6:return i(u(e(r(n(t)))));case 7:return o(i(u(e(r(n(t))))));case 8:return c(o(i(u(e(r(n(t)))))));case 9:return a(c(o(i(u(e(r(n(t))))))));case 10:return s(a(c(o(i(u(e(r(n(t)))))))));case 11:return f(s(a(c(o(i(u(e(r(n(t))))))))));case 12:return h(f(s(a(c(o(i(u(e(r(n(t)))))))))));case 13:return l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))));case 14:return d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))));case 15:return p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))));case 16:return v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))));case 17:return m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))))));case 18:return w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))))));case 19:return g(w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t))))))))))))))))));case 20:return y(g(w(m(v(p(d(l(h(f(s(a(c(o(i(u(e(r(n(t)))))))))))))))))))}},n.hole=u,n.bind_=function(t,n,r){var e;return Object.assign({},t,((e={})[n]=r,e))},n.bindTo_=function(t){return function(n){var r;return(r={})[t]=n,r}}})),d=h((function(t,n){function r(t){return null==t?n.none:n.some(t)}function e(t){return"Right"===t._tag?n.none:n.some(t.left)}function u(t){return"Left"===t._tag?n.none:n.some(t.right)}function i(t){return function(e){return n.isNone(e)?n.none:r(t(e.value))}}Object.defineProperty(n,"__esModule",{value:!0}),n.getApplySemigroup=n.getOrd=n.getEq=n.getShow=n.URI=n.wilt=n.wither=n.sequence=n.traverse=n.partitionMap=n.partition=n.filterMap=n.filter=n.separate=n.compact=n.reduceRight=n.foldMap=n.reduce=n.duplicate=n.extend=n.throwError=n.zero=n.alt=n.altW=n.flatten=n.chainFirst=n.chain=n.of=n.apSecond=n.apFirst=n.ap=n.map=n.chainNullableK=n.mapNullable=n.fromNullableK=n.getOrElse=n.getOrElseW=n.toUndefined=n.toNullable=n.fold=n.fromEither=n.getRight=n.getLeft=n.tryCatch=n.fromPredicate=n.fromNullable=n.some=n.none=n.isNone=n.isSome=void 0,n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.apS=n.bind=n.bindTo=n.Do=n.getRefinement=n.exists=n.elem=n.option=n.MonadThrow=n.Witherable=n.Traversable=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.Alt=n.Foldable=n.Monad=n.Applicative=n.Functor=n.getMonoid=n.getLastMonoid=n.getFirstMonoid=n.getApplyMonoid=void 0,n.isSome=function(t){return"Some"===t._tag},n.isNone=function(t){return"None"===t._tag},n.none={_tag:"None"},n.some=function(t){return{_tag:"Some",value:t}},n.fromNullable=r,n.fromPredicate=function(t){return function(r){return t(r)?n.some(r):n.none}},n.tryCatch=function(t){try{return n.some(t())}catch(t){return n.none}},n.getLeft=e,n.getRight=u,n.fromEither=u,n.fold=function(t,r){return function(e){return n.isNone(e)?t():r(e.value)}},n.toNullable=function(t){return n.isNone(t)?null:t.value},n.toUndefined=function(t){return n.isNone(t)?void 0:t.value},n.getOrElseW=function(t){return function(r){return n.isNone(r)?t():r.value}},n.getOrElse=n.getOrElseW,n.fromNullableK=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return r(t.apply(void 0,n))}},n.mapNullable=i,n.chainNullableK=i;var o=function(t,r){return l.pipe(t,n.map(r))},c=function(t,r){return l.pipe(t,n.ap(r))},a=function(t,r){return l.pipe(t,n.chain(r))},s=function(t,r,e){return l.pipe(t,n.reduce(r,e))},f=function(t){var r=n.foldMap(t);return function(t,n){return l.pipe(t,r(n))}},h=function(t,r,e){return l.pipe(t,n.reduceRight(r,e))},d=function(t){var r=n.traverse(t);return function(t,n){return l.pipe(t,r(n))}},p=function(t,r){return l.pipe(t,n.alt(r))},v=function(t,r){return l.pipe(t,n.filter(r))},m=function(t,r){return l.pipe(t,n.filterMap(r))},w=function(t,r){return l.pipe(t,n.extend(r))},g=function(t,r){return l.pipe(t,n.partition(r))},y=function(t,r){return l.pipe(t,n.partitionMap(r))},b=function(t){var r=n.wither(t);return function(t,n){return l.pipe(t,r(n))}},S=function(t){var r=n.wilt(t);return function(t,n){return l.pipe(t,r(n))}};n.map=function(t){return function(r){return n.isNone(r)?n.none:n.some(t(r.value))}},n.ap=function(t){return function(r){return n.isNone(r)||n.isNone(t)?n.none:n.some(r.value(t.value))}},n.apFirst=function(t){return l.flow(n.map((function(t){return function(){return t}})),n.ap(t))},n.apSecond=function(t){return l.flow(n.map((function(){return function(t){return t}})),n.ap(t))},n.of=n.some,n.chain=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)}},n.chainFirst=function(t){return n.chain((function(r){return l.pipe(t(r),n.map((function(){return r})))}))},n.flatten=n.chain(l.identity),n.altW=function(t){return function(r){return n.isNone(r)?t():r}},n.alt=n.altW,n.zero=function(){return n.none},n.throwError=function(){return n.none},n.extend=function(t){return function(r){return n.isNone(r)?n.none:n.some(t(r))}},n.duplicate=n.extend(l.identity),n.reduce=function(t,r){return function(e){return n.isNone(e)?t:r(t,e.value)}},n.foldMap=function(t){return function(r){return function(e){return n.isNone(e)?t.empty:r(e.value)}}},n.reduceRight=function(t,r){return function(e){return n.isNone(e)?t:r(e.value,t)}},n.compact=n.flatten;var C={left:n.none,right:n.none};function F(t){return{equals:function(r,e){return r===e||(n.isNone(r)?n.isNone(e):!n.isNone(e)&&t.equals(r.value,e.value))}}}function E(t){return{concat:function(r,e){return n.isSome(r)&&n.isSome(e)?n.some(t.concat(r.value,e.value)):n.none}}}n.separate=function(t){var r=l.pipe(t,n.map((function(t){return{left:e(t),right:u(t)}})));return n.isNone(r)?C:r.value},n.filter=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)?r:n.none}},n.filterMap=function(t){return function(r){return n.isNone(r)?n.none:t(r.value)}},n.partition=function(t){return function(n){return{left:v(n,(function(n){return!t(n)})),right:v(n,t)}}},n.partitionMap=function(t){return l.flow(n.map(t),n.separate)},n.traverse=function(t){return function(r){return function(e){return n.isNone(e)?t.of(n.none):t.map(r(e.value),n.some)}}},n.sequence=function(t){return function(r){return n.isNone(r)?t.of(n.none):t.map(r.value,n.some)}},n.wither=function(t){return function(r){return function(e){return n.isNone(e)?t.of(n.none):r(e.value)}}},n.wilt=function(t){return function(r){return function(i){return n.isNone(i)?t.of({left:n.none,right:n.none}):t.map(r(i.value),(function(t){return{left:e(t),right:u(t)}}))}}},n.URI="Option",n.getShow=function(t){return{show:function(r){return n.isNone(r)?"none":"some("+t.show(r.value)+")"}}},n.getEq=F,n.getOrd=function(t){return{equals:F(t).equals,compare:function(r,e){return r===e?0:n.isSome(r)?n.isSome(e)?t.compare(r.value,e.value):1:-1}}},n.getApplySemigroup=E,n.getApplyMonoid=function(t){return{concat:E(t).concat,empty:n.some(t.empty)}},n.getFirstMonoid=function(){return{concat:function(t,r){return n.isNone(t)?r:t},empty:n.none}},n.getLastMonoid=function(){return{concat:function(t,r){return n.isNone(r)?t:r},empty:n.none}},n.getMonoid=function(t){return{concat:function(r,e){return n.isNone(r)?e:n.isNone(e)?r:n.some(t.concat(r.value,e.value))},empty:n.none}},n.Functor={URI:n.URI,map:o},n.Applicative={URI:n.URI,map:o,ap:c,of:n.of},n.Monad={URI:n.URI,map:o,ap:c,of:n.of,chain:a},n.Foldable={URI:n.URI,reduce:s,foldMap:f,reduceRight:h},n.Alt={URI:n.URI,map:o,alt:p},n.Alternative={URI:n.URI,map:o,ap:c,of:n.of,alt:p,zero:n.zero},n.Extend={URI:n.URI,map:o,extend:w},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:o,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y},n.Traversable={URI:n.URI,map:o,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence},n.Witherable={URI:n.URI,map:o,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y,wither:b,wilt:S},n.MonadThrow={URI:n.URI,map:o,ap:c,of:n.of,chain:a,throwError:n.throwError},n.option={URI:n.URI,map:o,of:n.of,ap:c,chain:a,reduce:s,foldMap:f,reduceRight:h,traverse:d,sequence:n.sequence,zero:n.zero,alt:p,extend:w,compact:n.compact,separate:n.separate,filter:v,filterMap:m,partition:g,partitionMap:y,wither:b,wilt:S,throwError:n.throwError},n.elem=function(t){return function(r,e){return!n.isNone(e)&&t.equals(r,e.value)}},n.exists=function(t){return function(r){return!n.isNone(r)&&t(r.value)}},n.getRefinement=function(t){return function(r){return n.isSome(t(r))}},n.Do=n.of({}),n.bindTo=function(t){return n.map(l.bindTo_(t))},n.bind=function(t,r){return n.chain((function(e){return l.pipe(r(e),n.map((function(n){return l.bind_(e,t,n)})))}))},n.apS=function(t,r){return l.flow(n.map((function(n){return function(r){return l.bind_(n,t,r)}})),n.ap(r))},n.traverseArrayWithIndex=function(t){return function(r){for(var e=[],u=0;u<r.length;u++){var i=t(u,r[u]);if(n.isNone(i))return n.none;e.push(i.value)}return n.some(e)}},n.traverseArray=function(t){return n.traverseArrayWithIndex((function(n,r){return t(r)}))},n.sequenceArray=n.traverseArray(l.identity)}));function p(t){this.message=t}(p.prototype=new Error).name="InvalidCharacterError";var v="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,u=0,i=0,o="";e=n.charAt(i++);~e&&(r=u%4?64*r+e:e,u++%4)?o+=String.fromCharCode(255&r>>(-2*u&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return o};function m(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(v(t).replace(/(.)/g,(function(t,n){var r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(n)}catch(t){return v(n)}}function w(t){this.message=t}(w.prototype=new Error).name="InvalidTokenError";var g=function(){return(g=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var u in n=arguments[r])Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u]);return t}).apply(this,arguments)},y=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},b=function(t,n,r){if(void 0===r&&(r=!1),!t||!n||"object"!=typeof t||"object"!=typeof n)return t;var e=g({},t);for(var u in n)n.hasOwnProperty(u)&&(e[u]=n[u]instanceof Array&&t[u]instanceof Array?r?y(t[u],n[u]):n[u]:"object"==typeof n[u]&&"object"==typeof t[u]?b(t[u],n[u],r):n[u]);return e},S=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},C={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,n){for(var r=void 0===n?{}:n,e=r.doThrow,u=void 0===e||e,i=r.instance,o=void 0!==i&&i,c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];var s=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(u&&!s)throw new Error(t+" is not defined");return o&&s?new(s.bind.apply(s,S([void 0],c))):s}},F=function(t,n,r,e){if(!t.getEntriesByName)return!1;var u=t.getEntriesByName(n);return!!(u&&u.length>0)&&(r(u.reverse()[0]),e.clearMeasures&&e.clearMeasures(n),E.callbacks.delete(n),E.callbacks.size<1&&(E.observer.disconnect(),e.clearResourceTimings&&e.clearResourceTimings()),!0)},E={callbacks:new Map,observer:null,observe:function(t,n){if(t&&n){var r=C.polyfill("performance",{doThrow:!1});(function(t,n){return!E.observer&&t&&n&&(E.observer=new n((function(n){E.callbacks.forEach((function(r,e){F(n,e,r,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),E.observer})(r,C.polyfill("PerformanceObserver",{doThrow:!1}))&&(F(r,t,n,r)||(E.callbacks.size<1&&E.observer.observe({entryTypes:["resource","measure"]}),E.callbacks.set(t,n)))}}},A=function(t){this.error=t},I=function(){return(I=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var u in n=arguments[r])Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u]);return t}).apply(this,arguments)},O=function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var e=Array(t),u=0;for(n=0;n<r;n++)for(var i=arguments[n],o=0,c=i.length;o<c;o++,u++)e[u]=i[o];return e},P=function(){function t(t,n,r,e,u,i){void 0===r&&(r=new Map),void 0===e&&(e=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=t,this._options=n,this._catchers=r,this._resolvers=e,this._middlewares=u,this._deferredChain=i}return t.factory=function(n,r){return void 0===n&&(n=""),void 0===r&&(r={}),new t(n,r)},t.prototype.selfFactory=function(n){var r=void 0===n?{}:n,e=r.url,u=r.options,i=r.catchers,o=void 0===i?this._catchers:i,c=r.resolvers,a=void 0===c?this._resolvers:c,s=r.middlewares,f=void 0===s?this._middlewares:s,h=r.deferredChain,l=void 0===h?this._deferredChain:h;return new t(void 0===e?this._url:e,I({},void 0===u?this._options:u),new Map(o),O(a),O(f),O(l))},t.prototype.defaults=function(t,n){return void 0===n&&(n=!1),C.defaults=n?b(C.defaults,t):t,this},t.prototype.errorType=function(t){return C.errorType=t,this},t.prototype.polyfills=function(t){return C.polyfills=I(I({},C.polyfills),t),this},t.prototype.url=function(t,n){if(void 0===n&&(n=!1),n)return this.selfFactory({url:t});var r=this._url.split("?");return this.selfFactory({url:r.length>1?r[0]+t+"?"+r[1]:this._url+t})},t.prototype.options=function(t,n){return void 0===n&&(n=!0),this.selfFactory({options:n?b(this._options,t):t})},t.prototype.query=function(t,n){return void 0===n&&(n=!1),this.selfFactory({url:R(this._url,t,n)})},t.prototype.headers=function(t){return this.selfFactory({options:b(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var n;return this.headers(((n={})["Content-Type"]=t,n))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,n){var r=new Map(this._catchers);return r.set(t,n),this.selfFactory({catchers:r})},t.prototype.signal=function(t){return this.selfFactory({options:I(I({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,n){return void 0===n&&(n=!1),this.selfFactory({resolvers:n?[t]:O(this._resolvers,[t])})},t.prototype.defer=function(t,n){return void 0===n&&(n=!1),this.selfFactory({deferredChain:n?[t]:O(this._deferredChain,[t])})},t.prototype.middlewares=function(t,n){return void 0===n&&(n=!1),this.selfFactory({middlewares:n?t:O(this._middlewares,t)})},t.prototype.method=function(t,n,r){void 0===n&&(n={}),void 0===r&&(r=null);var e=this._options.headers,u=r?"object"!=typeof r||e&&!Object.entries(e).every((function(t){var n=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||n.startsWith("application/json")}))?this.body(r):this.json(r):this;return function(t){var n=t._url,r=t._resolvers,e=t._middlewares,u=t._options,i=new Map(t._catchers),o=b(C.defaults,u),c=C.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&c&&(o.signal=c.signal);var a={ref:null,clear:function(){a.ref&&(clearTimeout(a.ref),a.ref=null)}},s=function(t){return function(n){return 0===t.length?n:1===t.length?t[0](n):t.reduceRight((function(r,e,u){return e(u===t.length-2?r(n):r)}))}}(e)(C.polyfill("fetch"))(n,o),f=s.catch((function(t){throw new A(t)})).then((function(t){return a.clear(),t.ok?t:t[C.errorType||"text"]().then((function(n){var r=new Error(n);throw r[C.errorType||"text"]=n,r.status=t.status,r.response=t,r}))})),h=function(n){return function(r){return(n?f.then((function(t){return t&&t[n]()})).then((function(t){return r?r(t):t})):f.then((function(t){return r?r(t):t}))).catch((function(n){a.clear();var r=n instanceof A?n.error:n;if(n instanceof A&&i.has("__fromFetch"))return i.get("__fromFetch")(r,t);if(i.has(r.status))return i.get(r.status)(r,t);if(i.has(r.name))return i.get(r.name)(r,t);throw r}))}},l={res:h(null),json:h("json"),blob:h("blob"),formData:h("formData"),arrayBuffer:h("arrayBuffer"),text:h("text"),perfs:function(t){return s.then((function(n){return E.observe(n.url,t)})),l},setTimeout:function(t,n){return void 0===n&&(n=c),a.clear(),a.ref=setTimeout((function(){return n.abort()}),t),l},controller:function(){return[c,l]},error:function(t,n){return i.set(t,n),l},badRequest:function(t){return l.error(400,t)},unauthorized:function(t){return l.error(401,t)},forbidden:function(t){return l.error(403,t)},notFound:function(t){return l.error(404,t)},timeout:function(t){return l.error(408,t)},internalError:function(t){return l.error(500,t)},fetchError:function(t){return l.error("__fromFetch",t)},onAbort:function(t){return l.error("AbortError",t)}};return r.reduce((function(n,r){return r(n,t)}),l)}((u=u.options(I(I({},n),{method:t})))._deferredChain.reduce((function(t,n){return n(t,t._url,t._options)}),u))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,n){return this.method("PUT",n,t)},t.prototype.post=function(t,n){return this.method("POST",n,t)},t.prototype.patch=function(t,n){return this.method("PATCH",n,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:I(I({},this._options),{body:t})})},t.prototype.json=function(t){var n,r=null===(n=Object.entries(this._options.headers||{}).find((function(t){var n=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&n.startsWith("application/json")})))||void 0===n?void 0:n[1];return this.content(r||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,n){return void 0===n&&(n=!1),this.body(D(t,n))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(n=t,Object.keys(n).map((function(t){var r=n[t];return r instanceof Array?r.map((function(n){return j(t,n)})).join("&"):j(t,r)})).join("&"))).content("application/x-www-form-urlencoded");var n},t}(),R=function(t,n,r){var e;if("string"==typeof n)e=n;else{var u=C.polyfill("URLSearchParams",{instance:!0});for(var i in n)if(n[i]instanceof Array)for(var o=0,c=n[i];o<c.length;o++)u.append(i,c[o]);else u.append(i,n[i]);e=u.toString()}var a=t.split("?");return r||a.length<2?a[0]+"?"+e:t+"&"+e};function D(t,n,r,e){return void 0===n&&(n=!1),void 0===r&&(r=C.polyfill("FormData",{instance:!0})),void 0===e&&(e=[]),Object.entries(t).forEach((function(t){var u=t[0],i=t[1],o=e.reduce((function(t,n){return t?t+"["+n+"]":n}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var c=0,a=i;c<a.length;c++)r.append(o+"[]",a[c]);else!n||"object"!=typeof i||n instanceof Array&&n.includes(u)?r.append(o,i):null!==i&&D(i,n,r,O(e,[u]))})),r}function j(t,n){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof n?JSON.stringify(n):""+n)}var U=P.factory;function M(){const t=J.jwt,n=J.profileId,r=J.accountIdOrDefault,e=J.partnerIdOrDefault;return U(J.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":n,"X-PARTNER-ID":e,"X-ACCOUNT-ID":r})}U.default=P.factory;const T={fundId:"slate",usi:"32367272075001"};function B(t){switch(t.kind){case"slate":return T.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 t.generic.fundId;default:return""}}function N(t){switch(t.kind){case"Promoted":return i(function(t){switch(t.kind){case"slate":return T.usi;case"australianRetirementTrust":return t.australianRetirementTrust.usi;case"aware":return t.aware.usi;case"active":return t.active.usi;case"australianEthical":return t.australianEthical.usi;case"virgin":return t.virgin.usi;case"spirit":return t.spirit.usi;case"firstSuper":return t.firstSuper.usi;case"mercerMyChoice":return t.mercerMyChoice.usi;case"generic":return t.generic.usi;default:return""}}(t.promoted));case"MyOwnFund":return i(t.myOwnFund.usi);case"SMSF":return u;case"Default":return i(t.default.usi);case"PromotedDefault":return i(t.promotedDefault.usi);case"DefinedBenefits":return i(t.definedBenefits.usi);case"PromotedDefaultWithJoin":return i(t.promotedDefaultWithJoin.usi);default:return u}}function k(t){switch(t.kind){case"Promoted":return i(function(t){switch(t.kind){case"slate":return t.slate.memberNumber;case"australianRetirementTrust":return t.australianRetirementTrust.memberNumber;case"aware":return t.aware.memberNumber;case"active":return t.active.memberNumber;case"australianEthical":return t.australianEthical.memberNumber;case"virgin":return t.virgin.memberNumber;case"spirit":return t.spirit.memberNumber;case"firstSuper":return t.firstSuper.memberNumber;case"mercerMyChoice":return t.mercerMyChoice.memberNumber;case"generic":return t.generic.memberNumber;default:return""}}(t.promoted));case"MyOwnFund":return i(t.myOwnFund.memberNumber);case"DefinedBenefits":return i(t.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return i(t.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return u}}const _=new class{async getAustralianFundsAsync(t,n=!1){return M().url("super-choice/australian-funds-v2?"+this.toQueryString(n,t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(t,n){const r=n?"?includeInactive=true":"";return M().url(`super-choice/australian-funds/${t}${r}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var t;const n=await M().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(t=n.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails)switch("promoted"in(r=n.superBuyer.superChoice.choiceDetails)?r.kind="Promoted":"myOwnFund"in r?r.kind="MyOwnFund":"smsf"in r?r.kind="SMSF":"default"in r?r.kind="Default":"promotedDefault"in r?r.kind="PromotedDefault":"definedBenefits"in r?r.kind="DefinedBenefits":"promotedDefaultWithJoin"in r&&(r.kind="PromotedDefaultWithJoin"),n.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(t){"slate"in t?t.kind="slate":"australianRetirementTrust"in t?t.kind="australianRetirementTrust":"aware"in t?t.kind="aware":"active"in t?t.kind="active":"australianEthical"in t?t.kind="australianEthical":"virgin"in t?t.kind="virgin":"spirit"in t?t.kind="spirit":"firstSuper"in t?t.kind="firstSuper":"mercerMyChoice"in t?t.kind="mercerMyChoice":"generic"in t&&(t.kind="generic")}(n.superBuyer.superChoice.choiceDetails.promoted)}var r;return n}async clickPromotedTileAsync(t){return M().url("click-promoted-tile").post(t).res()}async viewSuperFundPanelAsync(t){return M().url("view-super-fund-panel").post(t).res()}toSearchFilterQueryString(t){return"search="+t.searchString+(t.maxRecordCount>0?"&maxRecordCount="+t.maxRecordCount:"")}toQueryString(t,n){return[this.toSearchFilterQueryString(n),t?"includeInactive=true":""].filter((t=>t&&t.length)).join("&")}};var x;!function(t){t[t.NotLoaded=1]="NotLoaded",t[t.Loaded=2]="Loaded",t[t.NotWorking=3]="NotWorking"}(x||(x={}));class L{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((t=>t.fundId))}set promotedFundsShown(t){this._promotedFundsShown=t}get DefaultFundPosition(){const t=this._promotedFundsShown.findIndex((t=>"promoted-default"===t.fundType));if(-1!==t)return t+1}}const q={apiBaseUrl:d.none,appBaseUrl:d.none,profileId:d.none,jwt:d.none,superBuyer:d.none,superChoicePrefill:d.none,promotedFunds:d.none,accountConfiguration:d.none,profileConfiguration:d.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:d.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:x.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,smsfCustomStepEnabled:!1,featuredFundsEnabled:!1,defaultFundNewComponentEnabled:!1},J=new class{constructor(){const{state:t,onChange:n}=f(q);this._state=t,this._onChange=n,n("jwt",(t=>{this._state.profileId=l.pipe(t,d.chain((t=>d.fromNullable(function(t,n){if("string"!=typeof t)throw new w("Invalid token specified");var r=!0===(n=n||{}).header?0:1;try{return JSON.parse(m(t.split(".")[r]))}catch(t){throw new w("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(d.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(d.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(d.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(d.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?d.fromNullable(this.superCampaignState.DefaultFundPosition):d.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:d.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(d.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const t=l.pipe(this._state.profileConfiguration,d.map((t=>d.fromNullable(t.defaultFundUsi))),d.flatten);return d.isSome(t)?t:l.pipe(this._state.accountConfiguration,d.map((t=>d.fromNullable(t.defaultFundUsi))),d.flatten)}get accountIdOrDefault(){return l.pipe(this._state.accountConfiguration,d.map((t=>t.accountId)),d.getOrElse((()=>"")))}get partnerIdOrDefault(){return l.pipe(this._state.superBuyer,d.map((t=>t.partnerId)),d.getOrElse((()=>"")))}get jwt(){if(d.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 t=await _.getAppStateAsync();this._state.accountConfiguration=d.fromNullable(t.accountConfiguration),this._state.profileConfiguration=d.fromNullable(t.profileConfiguration),this._state.superBuyer=d.fromNullable(t.superBuyer),this._state.promotedFunds=d.fromNullable(t.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=t.bringYourOwnFundCustomStepEnabled,this._state.smsfCustomStepEnabled=t.smsfCustomStepEnabled,this._state.featuredFundsEnabled=t.featuredFundsEnabled,this._state.defaultFundNewComponentEnabled=t.defaultFundNewComponentEnabled,this._state.superChoicePrefill=d.fromNullable(t.prefill),this._state.isDefinedBenefitsEligible=d.fromNullable(t.isDefinedBenefitsEligible),d.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(t){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=t}viewSuperFundPanelAsync(t,n){return _.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:n||this.promotedFundsConfig.shownFunds,placementId:t}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(t){t===x.Loaded?(this._state.superCampaignComponentStatus=x.Loaded,this._state.superCampaignState=new L):(this._state.superCampaignComponentStatus=t,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isSmsfCustomStepEnabled(){return this.state.smsfCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get isDefaultFundNewComponentEnabled(){return this.state.defaultFundNewComponentEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===x.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(t){this._state.hideFooterSection=t}get backendUrl(){return d.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(t){const n=new URL(t);return`${n.protocol}//${n.hostname}${n.port.length>0?":"+n.port:""}`}};export{d as O,x as S,J as a,e as b,M as c,N as d,k as e,_ as f,B as g,T as h,r as i,U as j,o as k,f as l,u as n,i as s,c as t}
|
|
@@ -18,5 +18,5 @@ const patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
20
|
appGlobals.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-
|
|
21
|
+
return index.bootstrapLazy([["sss-default-fund-router.cjs",[[0,"sss-default-fund-router",{"history":[16]}]]],["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-default-fund-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]],["sss-default-fund.cjs",[[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}]]]], options);
|
|
22
22
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
|
|
4
|
+
|
|
5
|
+
class AustralianFundLookupService {
|
|
6
|
+
async searchFundsAsync(searchString, maxRecordCount) {
|
|
7
|
+
return superSelectionApp_service.superSelectionApi.getAustralianFundsAsync({
|
|
8
|
+
searchString,
|
|
9
|
+
maxRecordCount
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async getFundAsync(usi, includeInactive) {
|
|
13
|
+
const result = await superSelectionApp_service.superSelectionApi.getAustralianFundAsync(usi, includeInactive);
|
|
14
|
+
return superSelectionApp_service.Option.some(result);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const australianFundLookupService = new AustralianFundLookupService();
|
|
18
|
+
|
|
19
|
+
exports.australianFundLookupService = australianFundLookupService;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
|
|
4
|
+
|
|
5
|
+
(function (CustomFundTypes) {
|
|
6
|
+
CustomFundTypes["MyOwnFund"] = "Existing super fund";
|
|
7
|
+
CustomFundTypes["DefaultFund"] = "Default super fund";
|
|
8
|
+
CustomFundTypes["SelfManagedFund"] = "Self-managed super fund";
|
|
9
|
+
CustomFundTypes["FeaturedFunds"] = "Featured super funds";
|
|
10
|
+
})(exports.CustomFundTypes || (exports.CustomFundTypes = {}));
|
|
11
|
+
const initialStateCustomFund = {
|
|
12
|
+
myOwnFundForm: {
|
|
13
|
+
fundUsi: superSelectionApp_service.none,
|
|
14
|
+
fundName: superSelectionApp_service.none,
|
|
15
|
+
memberNumber: superSelectionApp_service.none,
|
|
16
|
+
memberFirstName: superSelectionApp_service.none,
|
|
17
|
+
memberFamilyName: superSelectionApp_service.none
|
|
18
|
+
},
|
|
19
|
+
selfManagedFundForm: {
|
|
20
|
+
fundName: '',
|
|
21
|
+
fundAbn: '',
|
|
22
|
+
fundEsa: '',
|
|
23
|
+
addressLine1: '',
|
|
24
|
+
addressLine2: '',
|
|
25
|
+
state: '',
|
|
26
|
+
postcode: '',
|
|
27
|
+
city: '',
|
|
28
|
+
bankAccountName: '',
|
|
29
|
+
bsb: '',
|
|
30
|
+
bankAccountNumber: '',
|
|
31
|
+
memberFirstName: '',
|
|
32
|
+
memberFamilyName: ''
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const { state, reset } = superSelectionApp_service.createStore(initialStateCustomFund);
|
|
36
|
+
|
|
37
|
+
exports.state = state;
|