@flarehr/apollo-super-selection 5.86.53344 → 5.88.58802

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-035b3fcf.system.js +1 -0
  3. package/dist/lib/apollo-super-selection/p-10c435ea.system.entry.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-157712cb.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-19a451d6.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-19be074b.entry.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-240b48ec.system.entry.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-36ea14fc.entry.js +14 -0
  9. package/dist/lib/apollo-super-selection/p-3cec4189.system.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-6a4fc9a6.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-7b1087e8.system.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-9640d3ea.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-9a268e32.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-a68b9b0f.system.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-a7025e9f.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-b819e464.system.entry.js +69 -0
  18. package/dist/lib/apollo-super-selection/p-b88cf353.system.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  20. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  21. package/dist/lib/apollo-super-selection/p-e435c64b.entry.js +1 -0
  22. package/dist/lib/apollo-super-selection/p-f924ae7d.system.entry.js +1 -0
  23. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  24. package/dist/lib/cjs/australian-fund-lookup.service-ee589d6c.js +19 -0
  25. package/dist/lib/cjs/custom-fund.store-f56ea1fb.js +37 -0
  26. package/dist/lib/cjs/event-tracking.service-35513098.js +296 -0
  27. package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
  28. package/dist/lib/cjs/loader.cjs.js +1 -1
  29. package/dist/lib/cjs/{sss-button_32.cjs.entry.js → sss-button_33.cjs.entry.js} +579 -387
  30. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
  31. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
  32. package/dist/lib/cjs/sss-promoted-fund-router.cjs.entry.js +23 -0
  33. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
  34. package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-352ccc67.js} +12 -331
  35. package/dist/lib/collection/collection-manifest.json +6 -1
  36. package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
  37. package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
  38. package/dist/lib/collection/components/promoted-fund/super-promoted-fund-types.js +1 -0
  39. package/dist/lib/collection/components/promoted-fund/super-promoted-fund.js +194 -0
  40. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
  41. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-router.js +37 -0
  42. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -2
  43. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +8 -0
  44. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +3 -1
  45. package/dist/lib/esm/apollo-super-selection.js +1 -1
  46. package/dist/lib/esm/australian-fund-lookup.service-139f6b9d.js +17 -0
  47. package/dist/lib/esm/custom-fund.store-59962585.js +36 -0
  48. package/dist/lib/esm/event-tracking.service-83984310.js +290 -0
  49. package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
  50. package/dist/lib/esm/loader.js +1 -1
  51. package/dist/lib/esm/{sss-button_32.entry.js → sss-button_33.entry.js} +289 -98
  52. package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
  53. package/dist/lib/esm/sss-default-fund.entry.js +57 -0
  54. package/dist/lib/esm/sss-promoted-fund-router.entry.js +19 -0
  55. package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
  56. package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-312ba6b0.js} +13 -327
  57. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  58. package/dist/lib/esm-es5/australian-fund-lookup.service-139f6b9d.js +1 -0
  59. package/dist/lib/esm-es5/custom-fund.store-59962585.js +1 -0
  60. package/dist/lib/esm-es5/event-tracking.service-83984310.js +1 -0
  61. package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
  62. package/dist/lib/esm-es5/loader.js +1 -1
  63. package/dist/lib/esm-es5/sss-button_33.entry.js +69 -0
  64. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
  65. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
  66. package/dist/lib/esm-es5/sss-promoted-fund-router.entry.js +1 -0
  67. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  68. package/dist/lib/esm-es5/super-selection-app.service-312ba6b0.js +1 -0
  69. package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
  70. package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
  71. package/dist/lib/types/components/promoted-fund/super-promoted-fund-types.d.ts +41 -0
  72. package/dist/lib/types/components/promoted-fund/super-promoted-fund.d.ts +23 -0
  73. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +2 -0
  74. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
  75. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-router.d.ts +5 -0
  76. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +2 -0
  77. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -0
  78. package/dist/lib/types/components.d.ts +60 -0
  79. package/package.json +3 -2
  80. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  81. package/dist/lib/apollo-super-selection/p-40bfe38f.entry.js +0 -14
  82. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  83. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  84. package/dist/lib/apollo-super-selection/p-b2de6265.system.entry.js +0 -69
  85. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  86. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
  87. package/dist/lib/esm-es5/sss-button_32.entry.js +0 -69
@@ -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-035b3fcf.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-promoted-fund-router"}),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)}}}));
@@ -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-a0063575.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-b2de6265.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
1
+ 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-3cec4189.system",[[0,"sss-default-fund-router",{history:[16]}]]],["p-240b48ec.system",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-10c435ea.system",[[0,"sss-promoted-fund-router",{history:[16]}]]],["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-b819e464.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-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-promoted-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[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-f924ae7d.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
+ 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-9640d3ea.js";import{E as o,S as d,n,c as r}from"./p-6a4fc9a6.js";import{a as u}from"./p-a7025e9f.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}
@@ -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-035b3fcf.system.js","./p-b88cf353.system.js","./p-7b1087e8.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}())}}}));
@@ -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-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
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]}]]],["sss-promoted-fund-router.cjs",[[0,"sss-promoted-fund-router",{"history":[16]}]]],["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_33.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-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-promoted-fund-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[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-352ccc67.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-352ccc67.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;
@@ -0,0 +1,296 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-eb4f212f.js');
4
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
5
+
6
+ function appReady() {
7
+ postMessage({
8
+ type: 'appReady'
9
+ });
10
+ }
11
+ function postMessage(message, origin) {
12
+ if (origin === undefined)
13
+ origin = '*';
14
+ message.sender = 'flare';
15
+ window.parent.postMessage(message, origin);
16
+ }
17
+ function resize(height, width) {
18
+ postMessage({
19
+ type: 'contentResized',
20
+ height,
21
+ width
22
+ });
23
+ }
24
+ function navigation(url) {
25
+ postMessage({
26
+ type: 'pageNavigated',
27
+ url
28
+ });
29
+ }
30
+ function complete() {
31
+ postMessage({ type: 'complete' });
32
+ }
33
+ function submitSuccess() {
34
+ postMessage({
35
+ type: 'submitSuccess'
36
+ });
37
+ }
38
+ const iframe = { appReady, resize, navigation, complete, submitSuccess };
39
+
40
+ const initial = {
41
+ handleSubmitFn: async function () {
42
+ return;
43
+ },
44
+ fundName: '',
45
+ fundDetails: { type: 'null' },
46
+ promotedFundId: undefined
47
+ };
48
+ const { state } = superSelectionApp_service.createStore(initial);
49
+
50
+ (function (SuperSelectionAppRoutes) {
51
+ SuperSelectionAppRoutes["ExistingChoicePage"] = "/existing";
52
+ SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
53
+ SuperSelectionAppRoutes["ChoicePage"] = "/";
54
+ SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
55
+ SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
56
+ SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
57
+ SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
58
+ SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
59
+ SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
60
+ SuperSelectionAppRoutes["PrefillSMSFPage"] = "/super-choice/prefill-smsf/";
61
+ SuperSelectionAppRoutes["PrefillInvalidSMSFPage"] = "/super-choice/prefill-invalid-smsf/";
62
+ SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
63
+ SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
64
+ SuperSelectionAppRoutes["FeaturedFunds"] = "/super-choice/featured-funds/";
65
+ SuperSelectionAppRoutes["StandardChoice"] = "/standard-choice/";
66
+ SuperSelectionAppRoutes["Success"] = "/success/";
67
+ })(exports.SuperSelectionAppRoutes || (exports.SuperSelectionAppRoutes = {}));
68
+ const superSelectionAppStencilRoutes = [
69
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.ExistingChoicePage, component: "sss-existing-choice-page" }),
70
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SuperCampaign, component: "sss-promoted-fund-router" }),
71
+ index.h("stencil-route", { exact: true, url: exports.SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
72
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
73
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
74
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
75
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
76
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
77
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
78
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
79
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
80
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SelfManagedFund, component: "sss-super-smsf-host" }),
81
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund-router" }),
82
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.FeaturedFunds, component: "sss-super-campaign-featured-funds" }),
83
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
84
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.Success, component: "sss-success" })
85
+ ];
86
+
87
+ class NavigationService {
88
+ navigateInternally(history, route) {
89
+ const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
90
+ iframe.navigation(path);
91
+ history.push(path);
92
+ }
93
+ navigateInternallyToStandardChoice(options) {
94
+ state.handleSubmitFn = options.handleSubmitFn;
95
+ state.fundName = options.fundName;
96
+ state.fundDetails = options.fundDetails;
97
+ state.promotedFundId = options.promotedFundId;
98
+ this.navigateInternally(options.history, exports.SuperSelectionAppRoutes.StandardChoice);
99
+ }
100
+ toExternalUrl(url) {
101
+ const externalUrl = new URL(url);
102
+ externalUrl.searchParams.append('_extnav', 'true');
103
+ return externalUrl.href;
104
+ }
105
+ get appBaseUrl() {
106
+ const baseUrl = superSelectionApp_service.superSelectionAppService.appBaseUrl;
107
+ return baseUrl.replace(/\/$/, '');
108
+ }
109
+ toRouteWithLeadingSlash(route) {
110
+ return route.length > 0 && route[0] === '/' ? route : `/${route}`;
111
+ }
112
+ }
113
+ const navigationService = new NavigationService();
114
+
115
+ class CustomFundChoiceApi {
116
+ async submitDefaultFundChoiceAsync(dto) {
117
+ return superSelectionApp_service.buildBackendApiClient()
118
+ .url('super-choice/default')
119
+ .post(dto)
120
+ .badRequest(() => {
121
+ throw new Error('Failed to process default fund join request');
122
+ })
123
+ .text();
124
+ }
125
+ async submitCustomFundChoiceAsync(dto) {
126
+ return superSelectionApp_service.buildBackendApiClient()
127
+ .url('super-choice/custom-fund')
128
+ .post(dto)
129
+ .badRequest(() => {
130
+ throw new Error('Failed to process custom fund join request');
131
+ })
132
+ .text();
133
+ }
134
+ async submitSelfManagedFundChoiceAsync(dto) {
135
+ return superSelectionApp_service.buildBackendApiClient()
136
+ .url('super-choice/smsf')
137
+ .post(dto)
138
+ .badRequest(() => {
139
+ throw new Error('Failed to process SMSF choice request');
140
+ })
141
+ .text();
142
+ }
143
+ async submitDefinedBenefitsChoiceAsync(dto) {
144
+ return superSelectionApp_service.buildBackendApiClient()
145
+ .url('super-choice/defined-benefits')
146
+ .post(dto)
147
+ .badRequest(() => {
148
+ throw new Error('Failed to process Defined Benefits choice request');
149
+ })
150
+ .text();
151
+ }
152
+ async validateAbnForSMSF(abn) {
153
+ const response = await superSelectionApp_service.buildBackendApiClient()
154
+ .url(`super-choice/smsf/${abn}/validate`)
155
+ .get()
156
+ .badRequest(() => {
157
+ throw new Error('Failed to verify that if the provided abn is used for regulated fund');
158
+ })
159
+ .json();
160
+ return response.result;
161
+ }
162
+ }
163
+ const customFundChoiceApi = new CustomFundChoiceApi();
164
+
165
+ class EventTrackingApi {
166
+ static get Instance() {
167
+ return this.instance || (this.instance = new this());
168
+ }
169
+ async PostAnalyticsEventAsync(event) {
170
+ return superSelectionApp_service.buildBackendApiClient().url('analytics-events').post(event).res();
171
+ }
172
+ }
173
+
174
+ class EventTrackingService {
175
+ constructor() {
176
+ this.eventTrackingApi = EventTrackingApi.Instance;
177
+ }
178
+ static get Instance() {
179
+ return this.instance || (this.instance = new this());
180
+ }
181
+ async TrackSuperFundPdsViewedAsync(detail) {
182
+ return this.trackEventAsync({
183
+ SuperFundPdsViewed: detail
184
+ });
185
+ }
186
+ async TrackPromotedSuperFundDetailViewedAsync(detail) {
187
+ return this.trackEventAsync({
188
+ SuperFundDetailViewed: {
189
+ PromotedFund: detail
190
+ }
191
+ });
192
+ }
193
+ async TrackPromotedDefaultSuperFundDetailViewedAsync(detail) {
194
+ return this.trackEventAsync({
195
+ SuperFundDetailViewed: {
196
+ PromotedDefaultFund: detail
197
+ }
198
+ });
199
+ }
200
+ async TrackMyOwnSuperFundDetailViewedAsync(detail) {
201
+ return this.trackEventAsync({
202
+ SuperFundDetailViewed: {
203
+ MyOwnFund: detail
204
+ }
205
+ });
206
+ }
207
+ async TrackSmsfSuperFundDetailViewedAsync(detail) {
208
+ return this.trackEventAsync({
209
+ SuperFundDetailViewed: {
210
+ Smsf: detail
211
+ }
212
+ });
213
+ }
214
+ async TrackDefaultSuperFundDetailViewedAsync(detail) {
215
+ return this.trackEventAsync({
216
+ SuperFundDetailViewed: {
217
+ DefaultFund: detail
218
+ }
219
+ });
220
+ }
221
+ async TrackSuperFundNominationViewedAsync(detail) {
222
+ return this.trackEventAsync({
223
+ SuperFundNominationViewed: detail
224
+ });
225
+ }
226
+ async TrackSuperFundNominationDeclinedAsync(detail) {
227
+ return this.trackEventAsync({
228
+ SuperFundNominationDeclined: detail
229
+ });
230
+ }
231
+ async TrackSuperFundDisclaimerViewedAsync(detail) {
232
+ return this.trackEventAsync({
233
+ SuperFundDisclaimerViewed: detail
234
+ });
235
+ }
236
+ async TrackSuperFundDisclaimerAcceptedAsync(detail) {
237
+ return this.trackEventAsync({
238
+ SuperFundDisclaimerAccepted: detail
239
+ });
240
+ }
241
+ async TrackSuperFundPrefillViewedAsync(detail) {
242
+ return this.trackEventAsync({
243
+ SuperFundPrefillViewed: detail
244
+ });
245
+ }
246
+ async TrackSuperFundPrefillDeclinedAsync(detail) {
247
+ return this.trackEventAsync({
248
+ SuperFundPrefillDeclined: detail
249
+ });
250
+ }
251
+ async TrackSuperFundDetailChangeRequestedAsync(detail) {
252
+ return this.trackEventAsync({
253
+ SuperFundDetailChangeRequested: detail
254
+ });
255
+ }
256
+ async TrackSuperCampaignActivationSucceededAsync(detail) {
257
+ return this.trackEventAsync({
258
+ SuperCampaignActivationSucceeded: detail
259
+ });
260
+ }
261
+ async TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi) {
262
+ return this.trackEventAsync({
263
+ SuperMyOwnFundEngagementStepActivationSucceeded: { fundUsi }
264
+ });
265
+ }
266
+ async TrackSuperMyOwnFundEngagementStepContinued(fundUsi, reason) {
267
+ return this.trackEventAsync({
268
+ SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
269
+ });
270
+ }
271
+ async TrackSuperSmsfEngagementStepActivationSucceeded() {
272
+ return this.trackEventAsync({
273
+ SuperSmsfEngagementStepActivationSucceeded: {}
274
+ });
275
+ }
276
+ async TrackSuperSmsfEngagementStepContinued(reason) {
277
+ return this.trackEventAsync({
278
+ SuperSmsfEngagementStepContinued: { reason }
279
+ });
280
+ }
281
+ async trackEventAsync(event) {
282
+ try {
283
+ await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
284
+ }
285
+ catch (_a) {
286
+ return;
287
+ }
288
+ }
289
+ }
290
+
291
+ exports.EventTrackingService = EventTrackingService;
292
+ exports.customFundChoiceApi = customFundChoiceApi;
293
+ exports.iframe = iframe;
294
+ exports.navigationService = navigationService;
295
+ exports.state = state;
296
+ exports.superSelectionAppStencilRoutes = superSelectionAppStencilRoutes;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const activeRouter = require('./active-router-1f555f75.js');
4
+
5
+ function injectHistory(Component) {
6
+ activeRouter.ActiveRouter.injectProps(Component, ['history', 'location']);
7
+ }
8
+
9
+ exports.injectHistory = injectHistory;
@@ -17,7 +17,7 @@ const defineCustomElements = (win, options) => {
17
17
  if (typeof window === 'undefined') return Promise.resolve();
18
18
  return patchEsm().then(() => {
19
19
  appGlobals.globalScripts();
20
- 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-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32],"accountId":[32],"partnerId":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
20
+ 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]}]]],["sss-promoted-fund-router.cjs",[[0,"sss-promoted-fund-router",{"history":[16]}]]],["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_33.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-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-promoted-fund-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[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);
21
21
  });
22
22
  };
23
23