@flarehr/apollo-super-selection 1.4.56819 → 1.4.56936

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-07893761.system.entry.js +1 -0
  3. package/dist/lib/apollo-super-selection/p-23fd6656.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-65607828.entry.js +14 -0
  10. package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  18. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-f8bb280b.js +1 -0
  21. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  22. package/dist/lib/cjs/australian-fund-lookup.service-4be59dec.js +19 -0
  23. package/dist/lib/cjs/custom-fund.store-3d1ac996.js +37 -0
  24. package/dist/lib/cjs/event-tracking.service-ed12699a.js +296 -0
  25. package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
  26. package/dist/lib/cjs/loader.cjs.js +1 -1
  27. package/dist/lib/cjs/sss-button_32.cjs.entry.js +382 -351
  28. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
  29. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
  30. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
  31. package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-ca52a1fc.js} +7 -331
  32. package/dist/lib/collection/collection-manifest.json +3 -1
  33. package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
  34. package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
  36. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
  37. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  38. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  39. package/dist/lib/esm/apollo-super-selection.js +1 -1
  40. package/dist/lib/esm/australian-fund-lookup.service-a2f593d3.js +17 -0
  41. package/dist/lib/esm/custom-fund.store-dcc61edf.js +36 -0
  42. package/dist/lib/esm/event-tracking.service-9398a317.js +290 -0
  43. package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
  44. package/dist/lib/esm/loader.js +1 -1
  45. package/dist/lib/esm/sss-button_32.entry.js +89 -58
  46. package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
  47. package/dist/lib/esm/sss-default-fund.entry.js +57 -0
  48. package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
  49. package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-50f199de.js} +8 -327
  50. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  51. package/dist/lib/esm-es5/australian-fund-lookup.service-a2f593d3.js +1 -0
  52. package/dist/lib/esm-es5/custom-fund.store-dcc61edf.js +1 -0
  53. package/dist/lib/esm-es5/event-tracking.service-9398a317.js +1 -0
  54. package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
  55. package/dist/lib/esm-es5/loader.js +1 -1
  56. package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
  57. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
  58. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
  59. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  60. package/dist/lib/esm-es5/super-selection-app.service-50f199de.js +1 -0
  61. package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
  62. package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
  63. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  64. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
  65. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  66. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  67. package/dist/lib/types/components.d.ts +30 -0
  68. package/package.json +1 -1
  69. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  70. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  71. package/dist/lib/apollo-super-selection/p-aa9dedee.system.entry.js +0 -69
  72. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-c7ab3701.entry.js +0 -14
  74. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  75. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
@@ -0,0 +1 @@
1
+ System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js","./p-97188c78.system.js","./p-524b1ff5.system.js"],(function(t){"use strict";var n,s,e,u,r;return{setters:[function(t){n=t.r;s=t.h;e=t.H},function(t){u=t.a},function(){},function(t){r=t.i}],execute:function(){var f=t("sss_default_fund_router",function(){function t(t){n(this,t)}t.prototype.render=function(){if(u.isDefaultFundNewComponentEnabled){return s(e,null,s("sss-default-fund-host",null))}return s(e,null,s("sss-default-fund",{history:this.history}))};return t}());r(f)}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,s){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,u){function a(t){try{o(s.next(t))}catch(t){u(t)}}function r(t){try{o(s["throw"](t))}catch(t){u(t)}}function o(t){t.done?n(t.value):i(t.value).then(a,r)}o((s=s.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,i,u,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(t){return function(e){return o([t,e])}}function o(a){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,i&&(u=a[0]&2?i["return"]:a[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,a[1])).done)return u;if(i=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(u=n.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){n.label=a[1];break}if(a[0]===6&&n.label<u[1]){n.label=u[1];u=a;break}if(u&&n.label<u[2]){n.label=u[2];n.ops.push(a);break}if(u[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{s=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-9cd765f5.system.js","./p-a2b4e667.system.js","./p-6d4e757b.system.js"],(function(t){"use strict";var e,n,s,i,u,a,r,o,l,d,c;return{setters:[function(t){e=t.r;n=t.h;s=t.g;i=t.H},function(t){u=t.O;a=t.a},function(t){r=t.E;o=t.S;l=t.n;d=t.c},function(t){c=t.a}],execute:function(){var f=t("sss_default_fund",function(){function t(t){e(this,t);this.defaultFundProductName="Loading fund...";this.eventTrackingService=r.Instance}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:t=a.defaultFundUsi;if(u.isNone(t)){return[2]}this.isDefaultFundExists=true;return[4,c.getFundAsync(t.value,true)];case 1:e=n.sent();if(u.isNone(e)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=e.value;this.defaultFundProductName=e.value.productName;return[2]}}))}))};t.prototype.componentDidLoad=function(){var t,e,n,s;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(e=(t=this.defaultFund)===null||t===void 0?void 0:t.usi)!==null&&e!==void 0?e:"",fundName:(s=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&s!==void 0?s:"",promotedFundsShown:a.promotedFunds,defaultFundUsiSet:u.toUndefined(a.defaultFundUsi)})};t.prototype.render=function(){var t=this;return n(i,null,n("sss-header-section",null),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),n("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},n("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",null,n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),n("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),n("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),n("div",{class:"text-sm text-gray-700"},n("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),n("ul",{class:"list-disc list-outside pl-5"},n("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),n("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),n("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",{class:"mb-4"},n("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return t.handleSubmitForm()}},"Continue")),n("stencil-route-link",{url:o.ChoicePage},n("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back")))))))};t.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(this.isInvalidDefaultFund){return[2]}l.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,d.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:e},a.promotedFundsConfig))];case 1:t.sent();return[2]}}))}))}});return[2]}))}))};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{l as e,n as a}from"./p-f8bb280b.js";var m;!function(e){e.MyOwnFund="Existing super fund",e.DefaultFund="Default super fund",e.SelfManagedFund="Self-managed super fund",e.FeaturedFunds="Featured super funds"}(m||(m={}));const n={myOwnFundForm:{fundUsi:a,fundName:a,memberNumber:a,memberFirstName:a,memberFamilyName:a},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}},{state:s}=e(n);export{m as C,s}
@@ -0,0 +1 @@
1
+ System.register(["./p-97188c78.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.A}],execute:function(){t("i",n);function n(t){e.injectProps(t,["history","location"])}}}}));
@@ -0,0 +1 @@
1
+ import{h as e}from"./p-db0bded8.js";import{l as n,a as t,c as s}from"./p-f8bb280b.js";function r(e,n){void 0===n&&(n="*"),e.sender="flare",window.parent.postMessage(e,n)}const u={appReady:function(){r({type:"appReady"})},resize:function(e,n){r({type:"contentResized",height:e,width:n})},navigation:function(e){r({type:"pageNavigated",url:e})},complete:function(){r({type:"complete"})},submitSuccess:function(){r({type:"submitSuccess"})}},{state:i}=n({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var c;!function(e){e.ExistingChoicePage="/existing",e.SuperCampaign="/super-campaign",e.ChoicePage="/",e.MyOwnFund="/super-choice/my-own-fund/",e.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",e.SmsfEngagementStep="/super-choice/smsf-engagement/",e.Prefill="/super-choice/prefill/",e.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",e.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",e.PrefillSMSFPage="/super-choice/prefill-smsf/",e.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",e.SelfManagedFund="/super-choice/smsf/",e.DefaultFund="/super-choice/default/",e.FeaturedFunds="/super-choice/featured-funds/",e.StandardChoice="/standard-choice/",e.Success="/success/"}(c||(c={}));const a=[e("stencil-route",{url:c.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:c.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:c.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:c.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:c.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:c.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),e("stencil-route",{url:c.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:c.Prefill,component:"sss-prefill"}),e("stencil-route",{url:c.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:c.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:c.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:c.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:c.DefaultFund,component:"sss-default-fund-router"}),e("stencil-route",{url:c.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:c.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:c.Success,component:"sss-success"})],o=new class{navigateInternally(e,n){const t=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(n)}`;u.navigation(t),e.push(t)}navigateInternallyToStandardChoice(e){i.handleSubmitFn=e.handleSubmitFn,i.fundName=e.fundName,i.fundDetails=e.fundDetails,i.promotedFundId=e.promotedFundId,this.navigateInternally(e.history,c.StandardChoice)}toExternalUrl(e){const n=new URL(e);return n.searchParams.append("_extnav","true"),n.href}get appBaseUrl(){return t.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(e){return e.length>0&&"/"===e[0]?e:"/"+e}},d=new class{async submitDefaultFundChoiceAsync(e){return s().url("super-choice/default").post(e).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(e){return s().url("super-choice/custom-fund").post(e).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(e){return s().url("super-choice/smsf").post(e).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(e){return s().url("super-choice/defined-benefits").post(e).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(e){return(await s().url(`super-choice/smsf/${e}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};class p{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(e){return s().url("analytics-events").post(e).res()}}class l{constructor(){this.eventTrackingApi=p.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(e){return this.trackEventAsync({SuperFundPdsViewed:e})}async TrackPromotedSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})}async TrackMyOwnSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})}async TrackSmsfSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})}async TrackDefaultSuperFundDetailViewedAsync(e){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})}async TrackSuperFundNominationViewedAsync(e){return this.trackEventAsync({SuperFundNominationViewed:e})}async TrackSuperFundNominationDeclinedAsync(e){return this.trackEventAsync({SuperFundNominationDeclined:e})}async TrackSuperFundDisclaimerViewedAsync(e){return this.trackEventAsync({SuperFundDisclaimerViewed:e})}async TrackSuperFundDisclaimerAcceptedAsync(e){return this.trackEventAsync({SuperFundDisclaimerAccepted:e})}async TrackSuperFundPrefillViewedAsync(e){return this.trackEventAsync({SuperFundPrefillViewed:e})}async TrackSuperFundPrefillDeclinedAsync(e){return this.trackEventAsync({SuperFundPrefillDeclined:e})}async TrackSuperFundDetailChangeRequestedAsync(e){return this.trackEventAsync({SuperFundDetailChangeRequested:e})}async TrackSuperCampaignActivationSucceededAsync(e){return this.trackEventAsync({SuperCampaignActivationSucceeded:e})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(e){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})}async TrackSuperMyOwnFundEngagementStepContinued(e,n){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:n}})}async TrackSuperSmsfEngagementStepActivationSucceeded(){return this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})}async TrackSuperSmsfEngagementStepContinued(e){return this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:e}})}async trackEventAsync(e){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:e})}catch(e){return}}}export{l as E,c as S,a,d as c,u as i,o as n,i as s}