@flarehr/apollo-super-selection 1.4.58913 → 1.4.58932
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-9cd765f5.system.js → p-035b3fcf.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-10c435ea.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-157712cb.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-19a451d6.entry.js +1 -0
- package/dist/lib/apollo-super-selection/{p-b3f43d1a.entry.js → p-19be074b.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-07893761.system.entry.js → p-240b48ec.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-43409544.entry.js → p-3447afcf.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/p-3cec4189.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-6a4fc9a6.js +1 -0
- package/dist/lib/apollo-super-selection/{p-6d4e757b.system.js → p-7b1087e8.system.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-f8bb280b.js → p-9640d3ea.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-4a95528c.js → p-9a268e32.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-dac37462.system.js → p-a68b9b0f.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-a7025e9f.js +1 -0
- package/dist/lib/apollo-super-selection/p-b88cf353.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-bbe230d9.entry.js → p-e435c64b.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-c60d9cd7.system.entry.js → p-f599e4b8.system.entry.js} +18 -18
- package/dist/lib/apollo-super-selection/{p-37ed5963.system.entry.js → p-f924ae7d.system.entry.js} +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/{australian-fund-lookup.service-4be59dec.js → australian-fund-lookup.service-ee589d6c.js} +1 -1
- package/dist/lib/cjs/{custom-fund.store-3d1ac996.js → custom-fund.store-f56ea1fb.js} +1 -1
- package/dist/lib/cjs/{event-tracking.service-ed12699a.js → event-tracking.service-35513098.js} +2 -2
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/{sss-button_32.cjs.entry.js → sss-button_33.cjs.entry.js} +211 -50
- package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +2 -2
- package/dist/lib/cjs/sss-default-fund.cjs.entry.js +3 -3
- package/dist/lib/cjs/sss-promoted-fund-router.cjs.entry.js +23 -0
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +3 -3
- package/dist/lib/cjs/{super-selection-app.service-ca52a1fc.js → super-selection-app.service-352ccc67.js} +6 -1
- package/dist/lib/collection/collection-manifest.json +3 -0
- package/dist/lib/collection/components/promoted-fund/super-promoted-fund-types.js +1 -0
- package/dist/lib/collection/components/promoted-fund/super-promoted-fund.js +194 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-router.js +37 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{australian-fund-lookup.service-a2f593d3.js → australian-fund-lookup.service-139f6b9d.js} +1 -1
- package/dist/lib/esm/{custom-fund.store-dcc61edf.js → custom-fund.store-59962585.js} +1 -1
- package/dist/lib/esm/{event-tracking.service-9398a317.js → event-tracking.service-83984310.js} +2 -2
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/{sss-button_32.entry.js → sss-button_33.entry.js} +211 -51
- package/dist/lib/esm/sss-default-fund-router.entry.js +2 -2
- package/dist/lib/esm/sss-default-fund.entry.js +3 -3
- package/dist/lib/esm/sss-promoted-fund-router.entry.js +19 -0
- package/dist/lib/esm/sss-super-byof-host.entry.js +3 -3
- package/dist/lib/esm/{super-selection-app.service-50f199de.js → super-selection-app.service-312ba6b0.js} +6 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/{australian-fund-lookup.service-a2f593d3.js → australian-fund-lookup.service-139f6b9d.js} +1 -1
- package/dist/lib/esm-es5/{custom-fund.store-dcc61edf.js → custom-fund.store-59962585.js} +1 -1
- package/dist/lib/esm-es5/event-tracking.service-83984310.js +1 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/{sss-button_32.entry.js → sss-button_33.entry.js} +4 -4
- package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -1
- package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -1
- package/dist/lib/esm-es5/sss-promoted-fund-router.entry.js +1 -0
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/esm-es5/{super-selection-app.service-50f199de.js → super-selection-app.service-312ba6b0.js} +1 -1
- package/dist/lib/types/components/promoted-fund/super-promoted-fund-types.d.ts +41 -0
- package/dist/lib/types/components/promoted-fund/super-promoted-fund.d.ts +23 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-router.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
- package/dist/lib/types/components.d.ts +30 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-5716179f.js +0 -1
- package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-a99c601b.js +0 -1
- package/dist/lib/esm-es5/event-tracking.service-9398a317.js +0 -1
package/dist/lib/apollo-super-selection/{p-37ed5963.system.entry.js → p-f924ae7d.system.entry.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
+
const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
|
|
4
4
|
|
|
5
5
|
(function (CustomFundTypes) {
|
|
6
6
|
CustomFundTypes["MyOwnFund"] = "Existing super fund";
|
package/dist/lib/cjs/{event-tracking.service-ed12699a.js → event-tracking.service-35513098.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
-
const customFund_store = require('./custom-fund.store-
|
|
12
|
-
const australianFundLookup_service = require('./australian-fund-lookup.service-
|
|
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 = '1.4.
|
|
292
|
+
const AppVersion = '1.4.58932';
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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-
|
|
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",
|
|
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-
|
|
7
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
8
|
-
const australianFundLookup_service = require('./australian-fund-lookup.service-
|
|
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) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-eb4f212f.js');
|
|
6
|
+
const superSelectionApp_service = require('./super-selection-app.service-352ccc67.js');
|
|
7
|
+
require('./active-router-1f555f75.js');
|
|
8
|
+
const injectHistory = require('./injectHistory-eb188cf0.js');
|
|
9
|
+
|
|
10
|
+
const PromotedFundRouter = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
if (superSelectionApp_service.superSelectionAppService.isPromotedFundNewComponentEnabled) {
|
|
16
|
+
return (index.h(index.Host, null, index.h("sss-promoted-fund-host", { history: this.history })));
|
|
17
|
+
}
|
|
18
|
+
return (index.h(index.Host, null, index.h("sss-super-campaign-host", { history: this.history })));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
injectHistory.injectHistory(PromotedFundRouter);
|
|
22
|
+
|
|
23
|
+
exports.sss_promoted_fund_router = PromotedFundRouter;
|
|
@@ -3,11 +3,11 @@
|
|
|
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-
|
|
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
|
-
const eventTracking_service = require('./event-tracking.service-
|
|
10
|
-
const customFund_store = require('./custom-fund.store-
|
|
9
|
+
const eventTracking_service = require('./event-tracking.service-35513098.js');
|
|
10
|
+
const customFund_store = require('./custom-fund.store-f56ea1fb.js');
|
|
11
11
|
|
|
12
12
|
const LoadWaitingTimeout = 30000;
|
|
13
13
|
|
|
@@ -2694,7 +2694,8 @@ const initialState = {
|
|
|
2694
2694
|
bringYourOwnFundCustomStepEnabled: false,
|
|
2695
2695
|
smsfCustomStepEnabled: false,
|
|
2696
2696
|
featuredFundsEnabled: false,
|
|
2697
|
-
defaultFundNewComponentEnabled: false
|
|
2697
|
+
defaultFundNewComponentEnabled: false,
|
|
2698
|
+
promotedFundNewComponentEnabled: false
|
|
2698
2699
|
};
|
|
2699
2700
|
|
|
2700
2701
|
class SuperSelectionAppService {
|
|
@@ -2797,6 +2798,7 @@ class SuperSelectionAppService {
|
|
|
2797
2798
|
this._state.smsfCustomStepEnabled = appStateResponse.smsfCustomStepEnabled;
|
|
2798
2799
|
this._state.featuredFundsEnabled = appStateResponse.featuredFundsEnabled;
|
|
2799
2800
|
this._state.defaultFundNewComponentEnabled = appStateResponse.defaultFundNewComponentEnabled;
|
|
2801
|
+
this._state.promotedFundNewComponentEnabled = appStateResponse.promotedFundNewComponentEnabled;
|
|
2800
2802
|
this._state.superChoicePrefill = Option.fromNullable(appStateResponse.prefill);
|
|
2801
2803
|
this._state.isDefinedBenefitsEligible = Option.fromNullable(appStateResponse.isDefinedBenefitsEligible);
|
|
2802
2804
|
if (Option.isSome(this._state.accountConfiguration)) {
|
|
@@ -2847,6 +2849,9 @@ class SuperSelectionAppService {
|
|
|
2847
2849
|
get isDefaultFundNewComponentEnabled() {
|
|
2848
2850
|
return this.state.defaultFundNewComponentEnabled;
|
|
2849
2851
|
}
|
|
2852
|
+
get isPromotedFundNewComponentEnabled() {
|
|
2853
|
+
return this.state.promotedFundNewComponentEnabled;
|
|
2854
|
+
}
|
|
2850
2855
|
get superCampaignCanNotBeActivated() {
|
|
2851
2856
|
return (!this.state.superCampaignEnabled ||
|
|
2852
2857
|
this.superCampaignComponentStatus === exports.SuperCampaignComponentStatus.NotWorking);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"./components/app-host/loading-page.js",
|
|
7
7
|
"./components/app-host/super-selection-app-host.js",
|
|
8
8
|
"./components/default-fund/super-default-fund.js",
|
|
9
|
+
"./components/promoted-fund/super-promoted-fund.js",
|
|
9
10
|
"./components/super-byof/super-byof.js",
|
|
10
11
|
"./components/super-campaign/super-campaign.js",
|
|
11
12
|
"./components/super-selection-app/app-state-pages/success.js",
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"./components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js",
|
|
20
21
|
"./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js",
|
|
21
22
|
"./components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js",
|
|
23
|
+
"./components/super-selection-app/funds/promoted-fund/promoted-fund-router.js",
|
|
22
24
|
"./components/super-selection-app/header-section/header-section.js",
|
|
23
25
|
"./components/super-selection-app/misc/loading-indicator.js",
|
|
24
26
|
"./components/super-selection-app/prefill-fund/prefill-display-field.js",
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
"sss-prefill-my-own-fund",
|
|
82
84
|
"sss-prefill-smsf",
|
|
83
85
|
"sss-prefill-warning-box",
|
|
86
|
+
"sss-promoted-fund-host",
|
|
84
87
|
"sss-smsf-engagement-step-host",
|
|
85
88
|
"sss-standard-choice-form",
|
|
86
89
|
"sss-success",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LoadWaitingTimeout = 30000;
|