@flarehr/apollo-super-selection 1.3.19531 → 1.3.19608

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 (22) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-84055483.entry.js +14 -0
  3. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  4. package/dist/lib/apollo-super-selection/{p-f9bff108.system.entry.js → p-f0135646.system.entry.js} +18 -18
  5. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  6. package/dist/lib/cjs/loader.cjs.js +1 -1
  7. package/dist/lib/cjs/{sss-button_31.cjs.entry.js → sss-button_32.cjs.entry.js} +115 -1
  8. package/dist/lib/collection/collection-manifest.json +1 -0
  9. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +0 -1
  10. package/dist/lib/esm/apollo-super-selection.js +1 -1
  11. package/dist/lib/esm/loader.js +1 -1
  12. package/dist/lib/esm/{sss-button_31.entry.js → sss-button_32.entry.js} +115 -2
  13. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  14. package/dist/lib/esm-es5/loader.js +1 -1
  15. package/dist/lib/esm-es5/{sss-button_31.entry.js → sss-button_32.entry.js} +5 -5
  16. package/package.json +1 -1
  17. package/dist/lib/apollo-super-selection/p-4fb35dcb.system.entry.js +0 -1
  18. package/dist/lib/apollo-super-selection/p-65aa4f8a.entry.js +0 -1
  19. package/dist/lib/apollo-super-selection/p-793900e2.entry.js +0 -14
  20. package/dist/lib/cjs/sss-smsf-engagement-step-host.cjs.entry.js +0 -123
  21. package/dist/lib/esm/sss-smsf-engagement-step-host.entry.js +0 -119
  22. package/dist/lib/esm-es5/sss-smsf-engagement-step-host.entry.js +0 -1
@@ -1,123 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-eb4f212f.js');
6
- const customFundChoice_api = require('./custom-fund-choice.api-293c1ace.js');
7
- require('./active-router-1f555f75.js');
8
-
9
- const SmsfEngagementStep = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.allFormFieldsAreFilled = (selfManagedFundForm) => {
13
- return (selfManagedFundForm.fundName != null &&
14
- selfManagedFundForm.fundAbn != null &&
15
- selfManagedFundForm.fundEsa != null &&
16
- selfManagedFundForm.addressLine1 != null &&
17
- selfManagedFundForm.addressLine2 != null &&
18
- selfManagedFundForm.city != null &&
19
- selfManagedFundForm.state != null &&
20
- selfManagedFundForm.postcode != null &&
21
- selfManagedFundForm.bsb != null &&
22
- selfManagedFundForm.bankAccountName != null &&
23
- selfManagedFundForm.bankAccountNumber != null &&
24
- selfManagedFundForm.memberFirstName != null &&
25
- selfManagedFundForm.memberFamilyName != null);
26
- };
27
- this.stepContinued = async (event) => {
28
- if (event.detail.sender == 'smsf-engagement') {
29
- await customFundChoice_api.EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
30
- this.navigateToStandardChoice();
31
- }
32
- };
33
- this.subscribeToStepEvents = () => {
34
- for (const eventName in this.stepEventHandlers) {
35
- document.addEventListener(eventName, this.stepEventHandlers[eventName]);
36
- }
37
- };
38
- this.unSubscribeFromStepEvents = () => {
39
- for (const eventName in this.stepEventHandlers) {
40
- document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
41
- }
42
- };
43
- this.stepEventHandlers = {
44
- continue: this.stepContinued.bind(this)
45
- };
46
- }
47
- async componentWillLoad() {
48
- if (customFundChoice_api.superSelectionAppService.isSmsfCustomStepEnabled &&
49
- customFundChoice_api.superSelectionAppService.isUsingSuperCampaign &&
50
- this.allFormFieldsAreFilled(customFundChoice_api.state.selfManagedFundForm) &&
51
- customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.backendUrl) &&
52
- customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.state.jwt)) {
53
- this.backendUrl = customFundChoice_api.superSelectionAppService.backendUrl.value;
54
- this.accessToken = customFundChoice_api.superSelectionAppService.state.jwt.value;
55
- this.initialiseFormState(customFundChoice_api.state.selfManagedFundForm);
56
- this.unSubscribeFromStepEvents();
57
- this.subscribeToStepEvents();
58
- customFundChoice_api.superSelectionAppService.hideFooterSection = true;
59
- await customFundChoice_api.EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
60
- }
61
- else {
62
- customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.SelfManagedFund);
63
- }
64
- }
65
- disconnectedCallback() {
66
- this.unSubscribeFromStepEvents();
67
- customFundChoice_api.superSelectionAppService.hideFooterSection = false;
68
- }
69
- render() {
70
- return (index.h(index.Host, null, index.h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
71
- }
72
- navigateToStandardChoice() {
73
- customFundChoice_api.navigationService.navigateInternallyToStandardChoice({
74
- history: this.history,
75
- fundName: 'Self-managed super fund',
76
- fundDetails: {
77
- type: 'smsf',
78
- fundName: this.fundName,
79
- fundEsa: this.fundEsa
80
- },
81
- handleSubmitFn: async (standardChoiceFormSignature) => {
82
- const requestDto = Object.assign({ smsfChoice: {
83
- abn: this.fundAbn,
84
- fundName: this.fundName,
85
- fundAddress: {
86
- addressLine1: this.fundAddress.addressLine1,
87
- addressLine2: this.fundAddress.addressLine2,
88
- city: this.fundAddress.city,
89
- state: this.fundAddress.state,
90
- postcode: this.fundAddress.postcode
91
- },
92
- bsb: this.bsb,
93
- bankAccountName: this.bankAccountName,
94
- bankAccountNumber: this.bankAccountNumber,
95
- electronicServiceAddress: this.fundEsa,
96
- memberFirstName: this.memberFirstName,
97
- memberFamilyName: this.memberFamilyName
98
- }, standardChoiceFormSignature }, customFundChoice_api.superSelectionAppService.promotedFundsConfig);
99
- await customFundChoice_api.customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
100
- }
101
- });
102
- }
103
- initialiseFormState(selfManagedFundForm) {
104
- this.fundName = selfManagedFundForm.fundName;
105
- this.fundAbn = selfManagedFundForm.fundAbn;
106
- this.fundEsa = selfManagedFundForm.fundEsa;
107
- this.fundAddress = {
108
- addressLine1: selfManagedFundForm.addressLine1,
109
- addressLine2: selfManagedFundForm.addressLine2,
110
- city: selfManagedFundForm.city,
111
- state: selfManagedFundForm.state,
112
- postcode: selfManagedFundForm.postcode
113
- };
114
- this.bsb = selfManagedFundForm.bsb;
115
- this.bankAccountName = selfManagedFundForm.bankAccountName;
116
- this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
117
- this.memberFirstName = selfManagedFundForm.memberFirstName;
118
- this.memberFamilyName = selfManagedFundForm.memberFamilyName;
119
- }
120
- };
121
- customFundChoice_api.injectHistory(SmsfEngagementStep);
122
-
123
- exports.sss_smsf_engagement_step_host = SmsfEngagementStep;
@@ -1,119 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-107d7c24.js';
2
- import { E as EventTrackingService, a as superSelectionAppService, l as state, O as Option, b as navigationService, S as SuperSelectionAppRoutes, e as customFundChoiceApi, c as injectHistory } from './custom-fund-choice.api-42801d64.js';
3
- import './active-router-d18b36fb.js';
4
-
5
- const SmsfEngagementStep = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.allFormFieldsAreFilled = (selfManagedFundForm) => {
9
- return (selfManagedFundForm.fundName != null &&
10
- selfManagedFundForm.fundAbn != null &&
11
- selfManagedFundForm.fundEsa != null &&
12
- selfManagedFundForm.addressLine1 != null &&
13
- selfManagedFundForm.addressLine2 != null &&
14
- selfManagedFundForm.city != null &&
15
- selfManagedFundForm.state != null &&
16
- selfManagedFundForm.postcode != null &&
17
- selfManagedFundForm.bsb != null &&
18
- selfManagedFundForm.bankAccountName != null &&
19
- selfManagedFundForm.bankAccountNumber != null &&
20
- selfManagedFundForm.memberFirstName != null &&
21
- selfManagedFundForm.memberFamilyName != null);
22
- };
23
- this.stepContinued = async (event) => {
24
- if (event.detail.sender == 'smsf-engagement') {
25
- await EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
26
- this.navigateToStandardChoice();
27
- }
28
- };
29
- this.subscribeToStepEvents = () => {
30
- for (const eventName in this.stepEventHandlers) {
31
- document.addEventListener(eventName, this.stepEventHandlers[eventName]);
32
- }
33
- };
34
- this.unSubscribeFromStepEvents = () => {
35
- for (const eventName in this.stepEventHandlers) {
36
- document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
37
- }
38
- };
39
- this.stepEventHandlers = {
40
- continue: this.stepContinued.bind(this)
41
- };
42
- }
43
- async componentWillLoad() {
44
- if (superSelectionAppService.isSmsfCustomStepEnabled &&
45
- superSelectionAppService.isUsingSuperCampaign &&
46
- this.allFormFieldsAreFilled(state.selfManagedFundForm) &&
47
- Option.isSome(superSelectionAppService.backendUrl) &&
48
- Option.isSome(superSelectionAppService.state.jwt)) {
49
- this.backendUrl = superSelectionAppService.backendUrl.value;
50
- this.accessToken = superSelectionAppService.state.jwt.value;
51
- this.initialiseFormState(state.selfManagedFundForm);
52
- this.unSubscribeFromStepEvents();
53
- this.subscribeToStepEvents();
54
- superSelectionAppService.hideFooterSection = true;
55
- await EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
56
- }
57
- else {
58
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SelfManagedFund);
59
- }
60
- }
61
- disconnectedCallback() {
62
- this.unSubscribeFromStepEvents();
63
- superSelectionAppService.hideFooterSection = false;
64
- }
65
- render() {
66
- return (h(Host, null, h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
67
- }
68
- navigateToStandardChoice() {
69
- navigationService.navigateInternallyToStandardChoice({
70
- history: this.history,
71
- fundName: 'Self-managed super fund',
72
- fundDetails: {
73
- type: 'smsf',
74
- fundName: this.fundName,
75
- fundEsa: this.fundEsa
76
- },
77
- handleSubmitFn: async (standardChoiceFormSignature) => {
78
- const requestDto = Object.assign({ smsfChoice: {
79
- abn: this.fundAbn,
80
- fundName: this.fundName,
81
- fundAddress: {
82
- addressLine1: this.fundAddress.addressLine1,
83
- addressLine2: this.fundAddress.addressLine2,
84
- city: this.fundAddress.city,
85
- state: this.fundAddress.state,
86
- postcode: this.fundAddress.postcode
87
- },
88
- bsb: this.bsb,
89
- bankAccountName: this.bankAccountName,
90
- bankAccountNumber: this.bankAccountNumber,
91
- electronicServiceAddress: this.fundEsa,
92
- memberFirstName: this.memberFirstName,
93
- memberFamilyName: this.memberFamilyName
94
- }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
95
- await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
96
- }
97
- });
98
- }
99
- initialiseFormState(selfManagedFundForm) {
100
- this.fundName = selfManagedFundForm.fundName;
101
- this.fundAbn = selfManagedFundForm.fundAbn;
102
- this.fundEsa = selfManagedFundForm.fundEsa;
103
- this.fundAddress = {
104
- addressLine1: selfManagedFundForm.addressLine1,
105
- addressLine2: selfManagedFundForm.addressLine2,
106
- city: selfManagedFundForm.city,
107
- state: selfManagedFundForm.state,
108
- postcode: selfManagedFundForm.postcode
109
- };
110
- this.bsb = selfManagedFundForm.bsb;
111
- this.bankAccountName = selfManagedFundForm.bankAccountName;
112
- this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
113
- this.memberFirstName = selfManagedFundForm.memberFirstName;
114
- this.memberFamilyName = selfManagedFundForm.memberFamilyName;
115
- }
116
- };
117
- injectHistory(SmsfEngagementStep);
118
-
119
- export { SmsfEngagementStep as sss_smsf_engagement_step_host };
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{u(s.next(e))}catch(e){r(e)}}function o(e){try{u(s["throw"](e))}catch(e){r(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,o)}u((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,i,r,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return u([e,t])}}function u(a){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=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(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{E as EventTrackingService,a as superSelectionAppService,l as state,O as Option,b as navigationService,S as SuperSelectionAppRoutes,e as customFundChoiceApi,c as injectHistory}from"./custom-fund-choice.api-42801d64.js";import"./active-router-d18b36fb.js";var SmsfEngagementStep=function(){function e(e){var t=this;registerInstance(this,e);this.allFormFieldsAreFilled=function(e){return e.fundName!=null&&e.fundAbn!=null&&e.fundEsa!=null&&e.addressLine1!=null&&e.addressLine2!=null&&e.city!=null&&e.state!=null&&e.postcode!=null&&e.bsb!=null&&e.bankAccountName!=null&&e.bankAccountNumber!=null&&e.memberFirstName!=null&&e.memberFamilyName!=null};this.stepContinued=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="smsf-engagement"))return[3,2];return[4,EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(e.detail.reason)];case 1:t.sent();this.navigateToStandardChoice();t.label=2;case 2:return[2]}}))}))};this.subscribeToStepEvents=function(){for(var e in t.stepEventHandlers){document.addEventListener(e,t.stepEventHandlers[e])}};this.unSubscribeFromStepEvents=function(){for(var e in t.stepEventHandlers){document.removeEventListener(e,t.stepEventHandlers[e])}};this.stepEventHandlers={continue:this.stepContinued.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(superSelectionAppService.isSmsfCustomStepEnabled&&superSelectionAppService.isUsingSuperCampaign&&this.allFormFieldsAreFilled(state.selfManagedFundForm)&&Option.isSome(superSelectionAppService.backendUrl)&&Option.isSome(superSelectionAppService.state.jwt)))return[3,2];this.backendUrl=superSelectionAppService.backendUrl.value;this.accessToken=superSelectionAppService.state.jwt.value;this.initialiseFormState(state.selfManagedFundForm);this.unSubscribeFromStepEvents();this.subscribeToStepEvents();superSelectionAppService.hideFooterSection=true;return[4,EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded()];case 1:e.sent();return[3,3];case 2:navigationService.navigateInternally(this.history,SuperSelectionAppRoutes.SelfManagedFund);e.label=3;case 3:return[2]}}))}))};e.prototype.disconnectedCallback=function(){this.unSubscribeFromStepEvents();superSelectionAppService.hideFooterSection=false};e.prototype.render=function(){return h(Host,null,h("apollo-super-smsf-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken}))};e.prototype.navigateToStandardChoice=function(){var e=this;navigationService.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName,fundEsa:this.fundEsa},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({smsfChoice:{abn:this.fundAbn,fundName:this.fundName,fundAddress:{addressLine1:this.fundAddress.addressLine1,addressLine2:this.fundAddress.addressLine2,city:this.fundAddress.city,state:this.fundAddress.state,postcode:this.fundAddress.postcode},bsb:this.bsb,bankAccountName:this.bankAccountName,bankAccountNumber:this.bankAccountNumber,electronicServiceAddress:this.fundEsa,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName},standardChoiceFormSignature:t},superSelectionAppService.promotedFundsConfig);return[4,customFundChoiceApi.submitSelfManagedFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}})};e.prototype.initialiseFormState=function(e){this.fundName=e.fundName;this.fundAbn=e.fundAbn;this.fundEsa=e.fundEsa;this.fundAddress={addressLine1:e.addressLine1,addressLine2:e.addressLine2,city:e.city,state:e.state,postcode:e.postcode};this.bsb=e.bsb;this.bankAccountName=e.bankAccountName;this.bankAccountNumber=e.bankAccountNumber;this.memberFirstName=e.memberFirstName;this.memberFamilyName=e.memberFamilyName};return e}();injectHistory(SmsfEngagementStep);export{SmsfEngagementStep as sss_smsf_engagement_step_host};