@flarehr/apollo-super-selection 5.87.56845 → 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 (75) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/{p-9cd765f5.system.js → p-035b3fcf.system.js} +1 -1
  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-b3f43d1a.entry.js → p-19be074b.entry.js} +1 -1
  7. package/dist/lib/apollo-super-selection/{p-07893761.system.entry.js → p-240b48ec.system.entry.js} +1 -1
  8. package/dist/lib/apollo-super-selection/{p-d64c4c69.entry.js → p-36ea14fc.entry.js} +4 -4
  9. package/dist/lib/apollo-super-selection/p-3cec4189.system.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-6a4fc9a6.js +1 -0
  11. package/dist/lib/apollo-super-selection/{p-6d4e757b.system.js → p-7b1087e8.system.js} +1 -1
  12. package/dist/lib/apollo-super-selection/{p-f8bb280b.js → p-9640d3ea.js} +1 -1
  13. package/dist/lib/apollo-super-selection/{p-4a95528c.js → p-9a268e32.js} +1 -1
  14. package/dist/lib/apollo-super-selection/{p-dac37462.system.js → p-a68b9b0f.system.js} +1 -1
  15. package/dist/lib/apollo-super-selection/p-a7025e9f.js +1 -0
  16. package/dist/lib/apollo-super-selection/{p-e56506e8.system.entry.js → p-b819e464.system.entry.js} +18 -18
  17. package/dist/lib/apollo-super-selection/p-b88cf353.system.js +1 -0
  18. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  19. package/dist/lib/apollo-super-selection/{p-bbe230d9.entry.js → p-e435c64b.entry.js} +1 -1
  20. package/dist/lib/apollo-super-selection/{p-37ed5963.system.entry.js → p-f924ae7d.system.entry.js} +1 -1
  21. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  22. package/dist/lib/cjs/{australian-fund-lookup.service-4be59dec.js → australian-fund-lookup.service-ee589d6c.js} +1 -1
  23. package/dist/lib/cjs/{custom-fund.store-3d1ac996.js → custom-fund.store-f56ea1fb.js} +1 -1
  24. package/dist/lib/cjs/{event-tracking.service-ed12699a.js → event-tracking.service-35513098.js} +2 -2
  25. package/dist/lib/cjs/loader.cjs.js +1 -1
  26. package/dist/lib/cjs/{sss-button_32.cjs.entry.js → sss-button_33.cjs.entry.js} +211 -50
  27. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +2 -2
  28. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +3 -3
  29. package/dist/lib/cjs/sss-promoted-fund-router.cjs.entry.js +23 -0
  30. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +3 -3
  31. package/dist/lib/cjs/{super-selection-app.service-ca52a1fc.js → super-selection-app.service-352ccc67.js} +6 -1
  32. package/dist/lib/collection/collection-manifest.json +3 -0
  33. package/dist/lib/collection/components/promoted-fund/super-promoted-fund-types.js +1 -0
  34. package/dist/lib/collection/components/promoted-fund/super-promoted-fund.js +194 -0
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +1 -1
  36. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-router.js +37 -0
  37. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
  38. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  39. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  40. package/dist/lib/esm/apollo-super-selection.js +1 -1
  41. package/dist/lib/esm/{australian-fund-lookup.service-a2f593d3.js → australian-fund-lookup.service-139f6b9d.js} +1 -1
  42. package/dist/lib/esm/{custom-fund.store-dcc61edf.js → custom-fund.store-59962585.js} +1 -1
  43. package/dist/lib/esm/{event-tracking.service-9398a317.js → event-tracking.service-83984310.js} +2 -2
  44. package/dist/lib/esm/loader.js +1 -1
  45. package/dist/lib/esm/{sss-button_32.entry.js → sss-button_33.entry.js} +211 -51
  46. package/dist/lib/esm/sss-default-fund-router.entry.js +2 -2
  47. package/dist/lib/esm/sss-default-fund.entry.js +3 -3
  48. package/dist/lib/esm/sss-promoted-fund-router.entry.js +19 -0
  49. package/dist/lib/esm/sss-super-byof-host.entry.js +3 -3
  50. package/dist/lib/esm/{super-selection-app.service-50f199de.js → super-selection-app.service-312ba6b0.js} +6 -1
  51. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  52. package/dist/lib/esm-es5/{australian-fund-lookup.service-a2f593d3.js → australian-fund-lookup.service-139f6b9d.js} +1 -1
  53. package/dist/lib/esm-es5/{custom-fund.store-dcc61edf.js → custom-fund.store-59962585.js} +1 -1
  54. package/dist/lib/esm-es5/event-tracking.service-83984310.js +1 -0
  55. package/dist/lib/esm-es5/loader.js +1 -1
  56. package/dist/lib/esm-es5/{sss-button_32.entry.js → sss-button_33.entry.js} +4 -4
  57. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -1
  58. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -1
  59. package/dist/lib/esm-es5/sss-promoted-fund-router.entry.js +1 -0
  60. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  61. package/dist/lib/esm-es5/{super-selection-app.service-50f199de.js → super-selection-app.service-312ba6b0.js} +1 -1
  62. package/dist/lib/types/components/promoted-fund/super-promoted-fund-types.d.ts +41 -0
  63. package/dist/lib/types/components/promoted-fund/super-promoted-fund.d.ts +23 -0
  64. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  65. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-router.d.ts +5 -0
  66. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  67. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  68. package/dist/lib/types/components.d.ts +30 -0
  69. package/package.json +1 -1
  70. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +0 -1
  71. package/dist/lib/apollo-super-selection/p-5716179f.js +0 -1
  72. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +0 -1
  74. package/dist/lib/apollo-super-selection/p-a99c601b.js +0 -1
  75. package/dist/lib/esm-es5/event-tracking.service-9398a317.js +0 -1
@@ -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-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-e56506e8.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)}))}}}));
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)}))}}}));
@@ -1 +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
+ 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}
@@ -1 +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}())}}}));
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-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);
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
  });
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
3
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
4
4
 
5
5
  class AustralianFundLookupService {
6
6
  async searchFundsAsync(searchString, maxRecordCount) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
3
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
4
4
 
5
5
  (function (CustomFundTypes) {
6
6
  CustomFundTypes["MyOwnFund"] = "Existing super fund";
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-eb4f212f.js');
4
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
4
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
5
5
 
6
6
  function appReady() {
7
7
  postMessage({
@@ -67,7 +67,7 @@ const { state } = superSelectionApp_service.createStore(initial);
67
67
  })(exports.SuperSelectionAppRoutes || (exports.SuperSelectionAppRoutes = {}));
68
68
  const superSelectionAppStencilRoutes = [
69
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-super-campaign-host" }),
70
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SuperCampaign, component: "sss-promoted-fund-router" }),
71
71
  index.h("stencil-route", { exact: true, url: exports.SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
72
72
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
73
73
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
@@ -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-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);
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
 
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-eb4f212f.js');
6
6
  const datoramaAkita = require('./datorama-akita-6c9cb8fb.js');
7
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
7
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
8
8
  const activeRouter = require('./active-router-1f555f75.js');
9
9
  const injectHistory = require('./injectHistory-eb188cf0.js');
10
- const eventTracking_service = require('./event-tracking.service-ed12699a.js');
11
- const customFund_store = require('./custom-fund.store-3d1ac996.js');
12
- const australianFundLookup_service = require('./australian-fund-lookup.service-4be59dec.js');
10
+ const eventTracking_service = require('./event-tracking.service-35513098.js');
11
+ const customFund_store = require('./custom-fund.store-f56ea1fb.js');
12
+ const australianFundLookup_service = require('./australian-fund-lookup.service-ee589d6c.js');
13
13
 
14
14
  function _interopNamespace(e) {
15
15
  if (e && e.__esModule) return e;
@@ -289,7 +289,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
289
289
  }
290
290
  }
291
291
 
292
- const AppVersion = '5.87.56845';
292
+ const AppVersion = '5.88.58802';
293
293
 
294
294
  class Lazy {
295
295
  constructor(factory) {
@@ -2614,6 +2614,206 @@ const PrefillWarningBox = class {
2614
2614
  }
2615
2615
  };
2616
2616
 
2617
+ class SuperCampaignErrorApi {
2618
+ static get Instance() {
2619
+ return this.instance || (this.instance = new this());
2620
+ }
2621
+ async PostError(error) {
2622
+ superSelectionApp_service.buildBackendApiClient().url('super-campaign/errors').post(error);
2623
+ }
2624
+ }
2625
+
2626
+ class PromotedFundChoiceApi {
2627
+ async submitChoiceAsync(dto) {
2628
+ return superSelectionApp_service.buildBackendApiClient()
2629
+ .url('super-choice/promoted-fund')
2630
+ .post(dto)
2631
+ .badRequest(() => {
2632
+ throw new Error('Failed to process Promoted Fund choice request');
2633
+ })
2634
+ .text();
2635
+ }
2636
+ async submitDefaultChoiceAsync(dto) {
2637
+ return superSelectionApp_service.buildBackendApiClient()
2638
+ .url('super-choice/promoted-fund/default')
2639
+ .post(dto)
2640
+ .badRequest(() => {
2641
+ throw new Error('Failed to process Promoted Default Fund choice request');
2642
+ })
2643
+ .text();
2644
+ }
2645
+ async submitDefaultChoiceWithJoinAsync(dto) {
2646
+ return superSelectionApp_service.buildBackendApiClient()
2647
+ .url('super-choice/promoted-fund/default-with-join')
2648
+ .post(dto)
2649
+ .badRequest(() => {
2650
+ throw new Error('Failed to process Promoted Default Fund With Join choice request');
2651
+ })
2652
+ .text();
2653
+ }
2654
+ }
2655
+ const promotedFundChoiceApi = new PromotedFundChoiceApi();
2656
+
2657
+ const LoadWaitingTimeout$1 = 30000;
2658
+
2659
+ var SuperPromotedFundComponentStatus;
2660
+ (function (SuperPromotedFundComponentStatus) {
2661
+ SuperPromotedFundComponentStatus[SuperPromotedFundComponentStatus["NotLoaded"] = 1] = "NotLoaded";
2662
+ SuperPromotedFundComponentStatus[SuperPromotedFundComponentStatus["Loaded"] = 2] = "Loaded";
2663
+ })(SuperPromotedFundComponentStatus || (SuperPromotedFundComponentStatus = {}));
2664
+ let superPromotedFundComponentStatus = SuperPromotedFundComponentStatus.NotLoaded;
2665
+ const SuperPromotedFundHost = class {
2666
+ constructor(hostRef) {
2667
+ index.registerInstance(this, hostRef);
2668
+ this.subscribeToSuperPromotedFundEvents = () => {
2669
+ for (const eventName in this.promotedFundEventHandlers) {
2670
+ document.addEventListener(eventName, this.promotedFundEventHandlers[eventName]);
2671
+ }
2672
+ };
2673
+ this.unSubscribeFromSuperPromotedFundEvents = () => {
2674
+ for (const eventName in this.promotedFundEventHandlers) {
2675
+ document.removeEventListener(eventName, this.promotedFundEventHandlers[eventName]);
2676
+ }
2677
+ };
2678
+ this.promotedFundLoaded = async (event) => {
2679
+ if (event.detail.sender === 'super-promoted-fund') {
2680
+ superPromotedFundComponentStatus = SuperPromotedFundComponentStatus.Loaded;
2681
+ clearTimeout(this.loadingTimeoutRef);
2682
+ }
2683
+ };
2684
+ this.promotedFundCompleted = async (event) => {
2685
+ if (event.detail.sender === 'super-promoted-fund') {
2686
+ const { fundType, fundId, fundUsi, fundName, memberNumber } = event.detail;
2687
+ const fundDetails = this.buildFundDetails(fundType, fundId, fundUsi, fundName, memberNumber);
2688
+ const handleSubmitFn = this.buildHandleSubmitFn(event.detail);
2689
+ eventTracking_service.navigationService.navigateInternallyToStandardChoice({
2690
+ history: this.history,
2691
+ fundName,
2692
+ promotedFundId: fundId,
2693
+ fundDetails,
2694
+ handleSubmitFn
2695
+ });
2696
+ }
2697
+ };
2698
+ this.promotedFundCancelled = async (event) => {
2699
+ if (event.detail.sender === 'super-promoted-fund') {
2700
+ eventTracking_service.navigationService.navigateInternally(this.history, eventTracking_service.SuperSelectionAppRoutes.MyOwnFund);
2701
+ }
2702
+ };
2703
+ this.superCampaignLoadFailed = async (event) => {
2704
+ if (event.detail.sender === 'super-promoted-fund') {
2705
+ await this.activateFallbackMechanism({
2706
+ type: 'SuperCampaignActivationFailed',
2707
+ reason: event.detail.reason || 'Unknown'
2708
+ });
2709
+ }
2710
+ };
2711
+ this.superCampaignFailed = async (event) => {
2712
+ if (event.detail.sender === 'super-promoted-fund') {
2713
+ await this.activateFallbackMechanism({
2714
+ type: 'SuperCampaignOperationFailed',
2715
+ reason: event.detail.reason || 'Unknown'
2716
+ });
2717
+ }
2718
+ };
2719
+ this.promotedFundEventHandlers = {
2720
+ 'promoted-fund-loaded': this.promotedFundLoaded.bind(this),
2721
+ 'promoted-fund-completed': this.promotedFundCompleted.bind(this),
2722
+ 'promoted-fund-cancelled': this.promotedFundCancelled.bind(this),
2723
+ 'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
2724
+ 'super-campaign-failed': this.superCampaignFailed.bind(this)
2725
+ };
2726
+ }
2727
+ async componentWillLoad() {
2728
+ if (superSelectionApp_service.Option.isSome(superSelectionApp_service.superSelectionAppService.backendUrl) &&
2729
+ superSelectionApp_service.Option.isSome(superSelectionApp_service.superSelectionAppService.state.jwt)) {
2730
+ this.backendUrl = superSelectionApp_service.superSelectionAppService.backendUrl.value;
2731
+ this.accessToken = superSelectionApp_service.superSelectionAppService.state.jwt.value;
2732
+ superSelectionApp_service.superSelectionAppService.hideFooterSection = true;
2733
+ if (superPromotedFundComponentStatus === SuperPromotedFundComponentStatus.NotLoaded) {
2734
+ this.loadingTimeoutRef = setTimeout(this.promotedFundLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$1);
2735
+ }
2736
+ this.subscribeToSuperPromotedFundEvents();
2737
+ }
2738
+ else {
2739
+ throw Error(`SuperPromotedFundHost pre-requisites not met.`);
2740
+ }
2741
+ }
2742
+ disconnectedCallback() {
2743
+ clearTimeout(this.loadingTimeoutRef);
2744
+ this.unSubscribeFromSuperPromotedFundEvents();
2745
+ superSelectionApp_service.superSelectionAppService.hideFooterSection = false;
2746
+ }
2747
+ render() {
2748
+ return (index.h(index.Host, null, index.h("apollo-super-promoted-fund", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
2749
+ }
2750
+ buildFundDetails(fundType, fundId, fundUsi, fundName, memberNumber) {
2751
+ switch (fundType) {
2752
+ case 'Promoted':
2753
+ return {
2754
+ type: 'promoted',
2755
+ fundName,
2756
+ fundUsi,
2757
+ memberNumber: memberNumber !== null && memberNumber !== void 0 ? memberNumber : '',
2758
+ promotedFundId: fundId
2759
+ };
2760
+ case 'PromotedDefault':
2761
+ return {
2762
+ type: 'promotedDefault',
2763
+ fundName,
2764
+ fundUsi,
2765
+ promotedFundId: fundId
2766
+ };
2767
+ case 'PromotedDefaultWithJoin':
2768
+ return {
2769
+ type: 'promotedDefaultWithJoin',
2770
+ fundName,
2771
+ fundUsi,
2772
+ memberNumber: memberNumber !== null && memberNumber !== void 0 ? memberNumber : '',
2773
+ promotedFundId: fundId
2774
+ };
2775
+ }
2776
+ }
2777
+ buildHandleSubmitFn(detail) {
2778
+ const { fundType, fundId, fundUsi, memberNumber, memberFirstName, memberFamilyName, sourceOfJoin, isDefaultExclusive } = detail;
2779
+ const defaultFundUsiSet = superSelectionApp_service.Option.toUndefined(superSelectionApp_service.superSelectionAppService.defaultFundUsi);
2780
+ const promotedFundsConfig = superSelectionApp_service.superSelectionAppService.promotedFundsConfig;
2781
+ switch (fundType) {
2782
+ case 'Promoted':
2783
+ return (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId, memberNumber: memberNumber !== null && memberNumber !== void 0 ? memberNumber : '', memberFirstName,
2784
+ memberFamilyName, usi: fundUsi, standardChoiceFormSignature,
2785
+ defaultFundUsiSet, placementId: 'panel', sourceOfJoin,
2786
+ isDefaultExclusive }, promotedFundsConfig));
2787
+ case 'PromotedDefault':
2788
+ return (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId, usi: fundUsi, standardChoiceFormSignature,
2789
+ defaultFundUsiSet, placementId: 'panel', sourceOfJoin,
2790
+ isDefaultExclusive }, promotedFundsConfig));
2791
+ case 'PromotedDefaultWithJoin':
2792
+ return (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId, memberNumber: memberNumber !== null && memberNumber !== void 0 ? memberNumber : '', memberFirstName: memberFirstName !== null && memberFirstName !== void 0 ? memberFirstName : '', memberFamilyName: memberFamilyName !== null && memberFamilyName !== void 0 ? memberFamilyName : '', usi: fundUsi, standardChoiceFormSignature,
2793
+ defaultFundUsiSet, placementId: 'panel', sourceOfJoin,
2794
+ isDefaultExclusive }, promotedFundsConfig));
2795
+ }
2796
+ }
2797
+ async activateFallbackMechanism(error) {
2798
+ if (superSelectionApp_service.superSelectionAppService.superCampaignComponentStatus !==
2799
+ superSelectionApp_service.SuperCampaignComponentStatus.NotWorking) {
2800
+ superSelectionApp_service.superSelectionAppService.superCampaignComponentStatus =
2801
+ superSelectionApp_service.SuperCampaignComponentStatus.NotWorking;
2802
+ await SuperCampaignErrorApi.Instance.PostError(error);
2803
+ eventTracking_service.navigationService.navigateInternally(this.history, eventTracking_service.SuperSelectionAppRoutes.MyOwnFund);
2804
+ }
2805
+ }
2806
+ async promotedFundLoadingTimeoutTriggered() {
2807
+ if (superPromotedFundComponentStatus !== SuperPromotedFundComponentStatus.Loaded) {
2808
+ this.activateFallbackMechanism({
2809
+ type: 'SuperCampaignActivationFailed',
2810
+ reason: `Activation timeout was triggered after:${LoadWaitingTimeout$1 / 1000} seconds`
2811
+ });
2812
+ }
2813
+ }
2814
+ };
2815
+ injectHistory.injectHistory(SuperPromotedFundHost);
2816
+
2617
2817
  const SmsfEngagementStep = class {
2618
2818
  constructor(hostRef) {
2619
2819
  index.registerInstance(this, hostRef);
@@ -12560,37 +12760,6 @@ class AppInsightsService {
12560
12760
  }
12561
12761
  const appInsights = new AppInsightsService();
12562
12762
 
12563
- class PromotedFundChoiceApi {
12564
- async submitChoiceAsync(dto) {
12565
- return superSelectionApp_service.buildBackendApiClient()
12566
- .url('super-choice/promoted-fund')
12567
- .post(dto)
12568
- .badRequest(() => {
12569
- throw new Error('Failed to process Promoted Fund choice request');
12570
- })
12571
- .text();
12572
- }
12573
- async submitDefaultChoiceAsync(dto) {
12574
- return superSelectionApp_service.buildBackendApiClient()
12575
- .url('super-choice/promoted-fund/default')
12576
- .post(dto)
12577
- .badRequest(() => {
12578
- throw new Error('Failed to process Promoted Default Fund choice request');
12579
- })
12580
- .text();
12581
- }
12582
- async submitDefaultChoiceWithJoinAsync(dto) {
12583
- return superSelectionApp_service.buildBackendApiClient()
12584
- .url('super-choice/promoted-fund/default-with-join')
12585
- .post(dto)
12586
- .badRequest(() => {
12587
- throw new Error('Failed to process Promoted Default Fund With Join choice request');
12588
- })
12589
- .text();
12590
- }
12591
- }
12592
- const promotedFundChoiceApi = new PromotedFundChoiceApi();
12593
-
12594
12763
  class SlateChoiceApi {
12595
12764
  async submitSlateChoiceAsync(dto) {
12596
12765
  return superSelectionApp_service.buildBackendApiClient()
@@ -12609,7 +12778,7 @@ const Usi = {
12609
12778
  return usi.replace(/ /g, '');
12610
12779
  }
12611
12780
  };
12612
- const LoadWaitingTimeout$1 = 30000;
12781
+ const LoadWaitingTimeout$2 = 30000;
12613
12782
 
12614
12783
  class PromotedFundJoinedEventHandler {
12615
12784
  constructor(placementId, history) {
@@ -12801,15 +12970,6 @@ const FeaturedFunds = class {
12801
12970
  };
12802
12971
  injectHistory.injectHistory(FeaturedFunds);
12803
12972
 
12804
- class SuperCampaignErrorApi {
12805
- static get Instance() {
12806
- return this.instance || (this.instance = new this());
12807
- }
12808
- async PostError(error) {
12809
- superSelectionApp_service.buildBackendApiClient().url('super-campaign/errors').post(error);
12810
- }
12811
- }
12812
-
12813
12973
  const SuperFundDisclaimerViewedDetail = {
12814
12974
  create: (superCampaignEnabled) => {
12815
12975
  let isDefinedBenefitsEligibleString = 'Not set';
@@ -12938,7 +13098,7 @@ const SuperCampaignHost = class {
12938
13098
  superSelectionApp_service.SuperCampaignComponentStatus.NotLoaded) {
12939
13099
  superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl();
12940
13100
  await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(superCampaingScriptPath)); });
12941
- this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$1);
13101
+ this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$2);
12942
13102
  }
12943
13103
  this.subscribeToSuperCampaignEvents();
12944
13104
  this.scriptImported = true;
@@ -12976,7 +13136,7 @@ const SuperCampaignHost = class {
12976
13136
  if (superSelectionApp_service.superSelectionAppService.superCampaignComponentStatus !== superSelectionApp_service.SuperCampaignComponentStatus.Loaded) {
12977
13137
  this.activateFallbackMechanism({
12978
13138
  type: 'SuperCampaignActivationFailed',
12979
- reason: `Activation timeout was triggered after:${LoadWaitingTimeout$1 / 1000} seconds`
13139
+ reason: `Activation timeout was triggered after:${LoadWaitingTimeout$2 / 1000} seconds`
12980
13140
  });
12981
13141
  }
12982
13142
  }
@@ -12998,7 +13158,7 @@ const SuperCampaignHost = class {
12998
13158
  };
12999
13159
  injectHistory.injectHistory(SuperCampaignHost);
13000
13160
 
13001
- const LoadWaitingTimeout$2 = 30000;
13161
+ const LoadWaitingTimeout$3 = 30000;
13002
13162
 
13003
13163
  var SuperSmsfComponentStatus;
13004
13164
  (function (SuperSmsfComponentStatus) {
@@ -13086,7 +13246,7 @@ const SuperSmsfHost = class {
13086
13246
  this.backendUrl = superSelectionApp_service.superSelectionAppService.backendUrl.value;
13087
13247
  this.accessToken = superSelectionApp_service.superSelectionAppService.state.jwt.value;
13088
13248
  if (superSmsfComponentStatus === SuperSmsfComponentStatus.NotLoaded) {
13089
- this.loadingTimeoutRef = setTimeout(this.smsfLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$2);
13249
+ this.loadingTimeoutRef = setTimeout(this.smsfLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$3);
13090
13250
  }
13091
13251
  this.subscribeToSuperSmsfEvents();
13092
13252
  }
@@ -14959,6 +15119,7 @@ exports.sss_prefill_invalid_smsf = PrefillInvalidSMSF;
14959
15119
  exports.sss_prefill_my_own_fund = PrefillMyOwnFund;
14960
15120
  exports.sss_prefill_smsf = PrefillSMSF;
14961
15121
  exports.sss_prefill_warning_box = PrefillWarningBox;
15122
+ exports.sss_promoted_fund_host = SuperPromotedFundHost;
14962
15123
  exports.sss_smsf_engagement_step_host = SmsfEngagementStep;
14963
15124
  exports.sss_standard_choice_form = StandardChoiceFormInputDefaultFund;
14964
15125
  exports.sss_success = Success;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-eb4f212f.js');
6
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
6
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
7
7
  require('./active-router-1f555f75.js');
8
8
  const injectHistory = require('./injectHistory-eb188cf0.js');
9
9
 
@@ -13,7 +13,7 @@ const DefaultFundRouter = class {
13
13
  }
14
14
  render() {
15
15
  if (superSelectionApp_service.superSelectionAppService.isDefaultFundNewComponentEnabled) {
16
- return (index.h(index.Host, null, index.h("sss-default-fund-host", null)));
16
+ return (index.h(index.Host, null, index.h("sss-default-fund-host", { history: this.history })));
17
17
  }
18
18
  return (index.h(index.Host, null, index.h("sss-default-fund", { history: this.history })));
19
19
  }
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-eb4f212f.js');
6
- const superSelectionApp_service = require('./super-selection-app.service-ca52a1fc.js');
7
- const eventTracking_service = require('./event-tracking.service-ed12699a.js');
8
- const australianFundLookup_service = require('./australian-fund-lookup.service-4be59dec.js');
6
+ const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
7
+ const eventTracking_service = require('./event-tracking.service-35513098.js');
8
+ const australianFundLookup_service = require('./australian-fund-lookup.service-ee589d6c.js');
9
9
 
10
10
  const DefaultFund = class {
11
11
  constructor(hostRef) {