@flarehr/apollo-super-selection 3.18.52782 → 3.19.53196
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-a24a177c.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-a50e40ee.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/{fl-button_44.cjs.entry.js → fl-button_46.cjs.entry.js} +266 -84
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/collection/collection-manifest.json +4 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +1 -2
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +4 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +1 -1
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +4 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +34 -13
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{fl-button_44.entry.js → fl-button_46.entry.js} +265 -85
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/{fl-button_44.entry.js → fl-button_46.entry.js} +4 -4
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +2 -0
- package/dist/lib/types/components.d.ts +30 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-31bdba35.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-bd258159.entry.js +0 -14
|
@@ -18,7 +18,7 @@ const defineCustomElements = (win, options) => {
|
|
|
18
18
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
19
19
|
return patchEsm().then(() => {
|
|
20
20
|
appGlobals.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["fl-style-guide.cjs",[[1,"fl-style-guide",{"themeCssUrl":[1,"theme-css-url"]}]]],["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]}]]],["fl-
|
|
21
|
+
return index.bootstrapLazy([["fl-style-guide.cjs",[[1,"fl-style-guide",{"themeCssUrl":[1,"theme-css-url"]}]]],["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]}]]],["fl-button_46.cjs",[[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"showSmsfNotSupported":[32]}],[0,"sss-qsuper-question-1"],[0,"sss-qsuper-question-2"],[0,"sss-qsuper-question-3"],[0,"sss-qsuper-question-4"],[0,"sss-qsuper-question-5"],[0,"sss-qsuper-question-6"],[0,"sss-qsuper-question-7"],[0,"sss-qsuper-question-8"],[0,"sss-default-fund",{"history":[16],"formState":[32],"defaultFundProductName":[32]}],[0,"sss-qsuper-insurance-opt-in",{"insuranceChosen":[32]}],[0,"sss-qsuper-join"],[0,"sss-slate-standard-choice-page",{"history":[16],"formState":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"areStylesLoaded":[32]}],[0,"sss-qsuper-consent"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"chosenFund":[32]}],[0,"sss-promoted-fund-standard-choice-page",{"history":[16],"formState":[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"super-selection-app",{"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"selectedOption":[32]}],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"currentBank":[32]}],[0,"sss-loading-page"],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{"heading":[1],"isSelected":[4,"is-selected"],"usi":[1],"name":[1],"logo":[1],"pdsLink":[1,"pds-link"],"callToAction":[1,"call-to-action"],"features":[1],"history":[16]}],[0,"sss-selected-super-choice-section",{"fundType":[1,"fund-type"],"fundName":[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[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,"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]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32]}],[0,"fl-dropdown-async",{"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"fl-dropdown",{"placeholder":[1],"options":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-standard-choice-form",{"standardChoiceFormSignature":[32]}],[4,"sss-qsuper-insurance-questions"],[0,"sss-qsuper-question-yes-no-buttons",{"history":[16]}],[0,"sss-qsuper-confirm-header"],[4,"sss-qsuper-layout",{"history":[16]}],[0,"sss-notifications-section"],[4,"fl-promise-button",{"isBlockElement":[4,"is-block-element"],"isRounded":[4,"is-rounded"],"disabled":[4],"variant":[1],"promiseFn":[16],"state":[32]}],[4,"fl-button",{"isBlockElement":[4,"is-block-element"],"disabled":[4],"variant":[1]}],[0,"fl-loading-indicator",{"theme":[1]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js",
|
|
13
13
|
"./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js",
|
|
14
14
|
"./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js",
|
|
15
|
+
"./components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js",
|
|
16
|
+
"./components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js",
|
|
15
17
|
"./components/super-selection-app/funds/qsuper/qsuper-confirm-header.js",
|
|
16
18
|
"./components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js",
|
|
17
19
|
"./components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js",
|
|
@@ -88,6 +90,8 @@
|
|
|
88
90
|
"sss-my-own-fund",
|
|
89
91
|
"sss-my-own-fund-inputs",
|
|
90
92
|
"sss-notifications-section",
|
|
93
|
+
"sss-promoted-fund-join-page",
|
|
94
|
+
"sss-promoted-fund-standard-choice-page",
|
|
91
95
|
"sss-qsuper-confirm-header",
|
|
92
96
|
"sss-qsuper-consent",
|
|
93
97
|
"sss-qsuper-insurance-opt-in",
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Component, h } from '@stencil/core';
|
|
2
2
|
import { AppVersion } from '../../../utils';
|
|
3
|
-
import navigationService from '../services/navigation.service';
|
|
4
3
|
export class FooterSection {
|
|
5
4
|
render() {
|
|
6
5
|
return (h("div", { class: "container mb-sm-0" },
|
|
7
6
|
h("div", { class: "row justify-content-center mt-5 mb-3" },
|
|
8
|
-
h("
|
|
7
|
+
h("div", { class: "text-decoration-none" },
|
|
9
8
|
h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
|
|
10
9
|
h("h5", { class: "font-weight-bold text-center mb-4" },
|
|
11
10
|
h("span", { class: "text-dark mr-1" }, "Simple Financial"),
|
|
@@ -11,3 +11,7 @@ export const SlateFundUsi = '32367272075001';
|
|
|
11
11
|
export const SlateFundId = 'slate';
|
|
12
12
|
export const SlateFundName = 'Slate Super';
|
|
13
13
|
export const SlateAltFundName = 'Modern Digital Fund';
|
|
14
|
+
export const AustralianRetirementTrustFundUsi = 'australian-retirement-trust';
|
|
15
|
+
export const AustralianRetirementTrustFundId = 'australian-retirement-trust';
|
|
16
|
+
export const AustralianRetirementTrustFundName = 'AustralianRetirementTrust';
|
|
17
|
+
export const AustralianRetirementTrustAltFundName = 'TODO';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
+
export class PromotedFundChoiceApi {
|
|
3
|
+
async submitChoiceAsync(dto) {
|
|
4
|
+
return buildBackendApiClient()
|
|
5
|
+
.url('super-choice/promoted-fund')
|
|
6
|
+
.post(dto)
|
|
7
|
+
.badRequest(() => {
|
|
8
|
+
throw new Error('Failed to process Promoted Fund choice request');
|
|
9
|
+
})
|
|
10
|
+
.text();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default new PromotedFundChoiceApi();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
import PromotedFundJoinIFrameBuilder from './services/promoted-fund-join-iframe-builder';
|
|
3
|
+
export class PromotedFundJoinPage {
|
|
4
|
+
componentDidLoad() {
|
|
5
|
+
PromotedFundJoinIFrameBuilder.build(this.iframeElement, this.history);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: "d-flex flex-fill" },
|
|
9
|
+
h("iframe", { width: "100%", height: window.innerHeight, style: { border: 'none' }, ref: (el) => (this.iframeElement = el) })));
|
|
10
|
+
}
|
|
11
|
+
static get is() { return "sss-promoted-fund-join-page"; }
|
|
12
|
+
static get properties() { return {
|
|
13
|
+
"history": {
|
|
14
|
+
"type": "unknown",
|
|
15
|
+
"mutable": false,
|
|
16
|
+
"complexType": {
|
|
17
|
+
"original": "RouterHistory",
|
|
18
|
+
"resolved": "RouterHistory",
|
|
19
|
+
"references": {
|
|
20
|
+
"RouterHistory": {
|
|
21
|
+
"location": "import",
|
|
22
|
+
"path": "@stencil/router"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": false,
|
|
27
|
+
"optional": false,
|
|
28
|
+
"docs": {
|
|
29
|
+
"tags": [],
|
|
30
|
+
"text": ""
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}; }
|
|
34
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import navigationService from '../../services/navigation.service';
|
|
3
|
+
import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
|
|
4
|
+
import superSelectionAppService from '../../services/super-selection-app.service';
|
|
5
|
+
import promotedFundChoiceApi from './api/promoted-fund-choice.api';
|
|
6
|
+
import promotedFundState from './promoted-fund.store';
|
|
7
|
+
export class PromotedFundStandardChoicePage {
|
|
8
|
+
render() {
|
|
9
|
+
return (h(Host, { class: "d-flex flex-fill" },
|
|
10
|
+
h("div", { class: "container" },
|
|
11
|
+
h("div", { class: "row justify-content-center" },
|
|
12
|
+
h("div", { class: "col col-sm-10 col-md-7" },
|
|
13
|
+
h("div", null,
|
|
14
|
+
h("div", null, "You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),
|
|
15
|
+
h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
16
|
+
'was-validated': this.formState === 'validated'
|
|
17
|
+
}, ref: (el) => (this.formElement = el) },
|
|
18
|
+
h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
19
|
+
promotedFundState.standardChoiceFormSignature =
|
|
20
|
+
event.detail.standardChoiceFormSignature;
|
|
21
|
+
} })),
|
|
22
|
+
h("div", { class: "d-flex mt-4" },
|
|
23
|
+
h("div", { class: "flex-grow-1 w-50" },
|
|
24
|
+
h("div", { class: "ml-2" },
|
|
25
|
+
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
26
|
+
h("span", null, "Submit")))))))))));
|
|
27
|
+
}
|
|
28
|
+
async handleSubmitForm() {
|
|
29
|
+
this.formState = 'validated';
|
|
30
|
+
if (this.formElement.checkValidity()) {
|
|
31
|
+
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, promotedFundState));
|
|
32
|
+
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
33
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "sss-promoted-fund-standard-choice-page"; }
|
|
37
|
+
static get properties() { return {
|
|
38
|
+
"history": {
|
|
39
|
+
"type": "unknown",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "RouterHistory",
|
|
43
|
+
"resolved": "RouterHistory",
|
|
44
|
+
"references": {
|
|
45
|
+
"RouterHistory": {
|
|
46
|
+
"location": "import",
|
|
47
|
+
"path": "@stencil/router"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": ""
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}; }
|
|
59
|
+
static get states() { return {
|
|
60
|
+
"formState": {}
|
|
61
|
+
}; }
|
|
62
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import navigationService from '../../../services/navigation.service';
|
|
2
|
+
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
3
|
+
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
4
|
+
import promotedFundState from '../promoted-fund.store';
|
|
5
|
+
class PromotedFundJoinIFrameBuilder {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
|
|
8
|
+
this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
|
|
9
|
+
this.environmentDiscriminator = () => {
|
|
10
|
+
return this.hostIsLocalSuperSelection()
|
|
11
|
+
? 'autodev-partner'
|
|
12
|
+
: window.location.hostname.toLowerCase().split('.')[0];
|
|
13
|
+
};
|
|
14
|
+
this.promotedFundJoinAppUrl = () => {
|
|
15
|
+
return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
build(iframe, history) {
|
|
19
|
+
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
|
|
20
|
+
return;
|
|
21
|
+
const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
|
|
22
|
+
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
23
|
+
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
24
|
+
const redirectUrl = `${baseUrl}/promoted-fund-redirect.html`;
|
|
25
|
+
const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: promotedFundState.fundId, successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, authToken: superSelectionAppService.jwt });
|
|
26
|
+
const handleMessage = (event) => {
|
|
27
|
+
const { data } = event;
|
|
28
|
+
if (!data) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (data.sender === 'promoted-fund-redirect') {
|
|
32
|
+
window.removeEventListener('message', handleMessage);
|
|
33
|
+
switch (data.type) {
|
|
34
|
+
case 'success':
|
|
35
|
+
if (data.memberNumber) {
|
|
36
|
+
promotedFundState.memberNumber = data.memberNumber;
|
|
37
|
+
promotedFundState.usi = data.usi;
|
|
38
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.PromotedFundStandardChoice);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
/* falls through */
|
|
42
|
+
default:
|
|
43
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (data.sender === 'promoted-fund-join') {
|
|
49
|
+
switch (data.type) {
|
|
50
|
+
case 'contentResized':
|
|
51
|
+
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
52
|
+
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
window.addEventListener('message', handleMessage);
|
|
60
|
+
const iframeDoc = iframe.contentDocument;
|
|
61
|
+
iframeDoc.open();
|
|
62
|
+
const form = iframeDoc.createElement('form');
|
|
63
|
+
form.method = 'POST';
|
|
64
|
+
form.target = '_self';
|
|
65
|
+
form.action = this.promotedFundJoinAppUrl();
|
|
66
|
+
let prop;
|
|
67
|
+
for (prop in postData) {
|
|
68
|
+
const value = postData[prop];
|
|
69
|
+
if (value !== undefined) {
|
|
70
|
+
const input = document.createElement('input');
|
|
71
|
+
input.type = 'hidden';
|
|
72
|
+
input.name = prop;
|
|
73
|
+
input.value = value;
|
|
74
|
+
form.append(input);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
iframeDoc.appendChild(form);
|
|
78
|
+
iframeDoc.close();
|
|
79
|
+
form.submit();
|
|
80
|
+
}
|
|
81
|
+
getMemberData() {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
const superBuyer = superSelectionAppService.superBuyer;
|
|
84
|
+
return {
|
|
85
|
+
firstName: superBuyer.userProfile.firstName,
|
|
86
|
+
middleName: superBuyer.userProfile.middleName,
|
|
87
|
+
lastName: superBuyer.userProfile.lastName,
|
|
88
|
+
dateOfBirth: superBuyer.userProfile.dateOfBirth,
|
|
89
|
+
gender: superBuyer.userProfile.gender,
|
|
90
|
+
email: superBuyer.userProfile.email,
|
|
91
|
+
mobilePhone: superBuyer.userProfile.mobilePhone,
|
|
92
|
+
taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
|
|
93
|
+
addressLine1: superBuyer.userProfile.address.addressLine1,
|
|
94
|
+
addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
|
|
95
|
+
city: superBuyer.userProfile.address.city,
|
|
96
|
+
state: superBuyer.userProfile.address.state,
|
|
97
|
+
postCode: superBuyer.userProfile.address.postcode
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export default new PromotedFundJoinIFrameBuilder();
|
|
@@ -31,7 +31,7 @@ class SlateIFrameBuilder {
|
|
|
31
31
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
32
32
|
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
33
33
|
const redirectUrl = `${baseUrl}/slate-redirect.html`;
|
|
34
|
-
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation() });
|
|
34
|
+
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
|
|
35
35
|
if (this.includeJwt()) {
|
|
36
36
|
postData.authToken = superSelectionAppService.jwt;
|
|
37
37
|
}
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js
CHANGED
|
@@ -15,6 +15,8 @@ export var SuperSelectionAppRoutes;
|
|
|
15
15
|
SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
|
|
16
16
|
SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
|
|
17
17
|
SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
|
|
18
|
+
SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
|
|
19
|
+
SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
|
|
18
20
|
SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
|
|
19
21
|
SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
|
|
20
22
|
SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
|
|
@@ -25,6 +27,8 @@ export const superSelectionAppStencilRoutes = [
|
|
|
25
27
|
h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
|
|
26
28
|
h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
|
|
27
29
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
|
|
30
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
|
|
31
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
|
|
28
32
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
|
|
29
33
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
|
|
30
34
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
|
2
2
|
import { isSome, none } from 'fp-ts/Option';
|
|
3
3
|
import iframe from '../../../utils/iframe';
|
|
4
4
|
import * as constants from '../funds/constants';
|
|
5
|
+
import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
|
|
5
6
|
import { resetQSuperState } from '../funds/qsuper/helpers/resetState';
|
|
6
7
|
import { EventTrackingService } from '../services/event-tracking.service';
|
|
7
8
|
import navigationService from '../services/navigation.service';
|
|
@@ -37,11 +38,10 @@ export class SuperChoicePage {
|
|
|
37
38
|
h("div", { class: "container mt-0 mb-0" },
|
|
38
39
|
h("div", { class: "row justify-content-center" },
|
|
39
40
|
h("div", { class: "col" },
|
|
40
|
-
h("
|
|
41
|
-
|
|
42
|
-
h("
|
|
43
|
-
|
|
44
|
-
h("span", { class: "simple-choices-text" }, "Choices"))))),
|
|
41
|
+
h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
|
|
42
|
+
h("h5", { class: "font-weight-bold text-center mb-4" },
|
|
43
|
+
h("span", { class: "text-dark mr-1" }, "Simple Financial"),
|
|
44
|
+
h("span", { class: "simple-choices-text" }, "Choices")))),
|
|
45
45
|
h("div", { class: "row justify-content-center" },
|
|
46
46
|
h("div", { class: "col" },
|
|
47
47
|
h("p", { class: "text-center" }, superChoiceParagraphOne),
|
|
@@ -93,6 +93,21 @@ export class SuperChoicePage {
|
|
|
93
93
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
94
94
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
95
95
|
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
fundId: constants.AustralianRetirementTrustFundId,
|
|
99
|
+
usi: constants.AustralianRetirementTrustFundUsi,
|
|
100
|
+
name: constants.AustralianRetirementTrustFundName,
|
|
101
|
+
heading: constants.AustralianRetirementTrustAltFundName,
|
|
102
|
+
logo: 'logo-qsuper-square.png',
|
|
103
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
104
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
105
|
+
pdsLink: 'https://google.com',
|
|
106
|
+
features: [
|
|
107
|
+
{ order: 1, value: 'Placeholder #1' },
|
|
108
|
+
{ order: 2, value: 'Placeholder #2' },
|
|
109
|
+
{ order: 3, value: 'Placeholder #3' }
|
|
110
|
+
]
|
|
96
111
|
}
|
|
97
112
|
];
|
|
98
113
|
}
|
|
@@ -104,14 +119,20 @@ export class SuperChoicePage {
|
|
|
104
119
|
fundNameAlt: constants.SlateAltFundName
|
|
105
120
|
});
|
|
106
121
|
}
|
|
107
|
-
else {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
122
|
+
else if (fund.fundId === constants.QSuperFundId) {
|
|
123
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
124
|
+
fundUsi: constants.QSuperFundUsi,
|
|
125
|
+
fundName: constants.QSuperFundName,
|
|
126
|
+
fundNameAlt: constants.QSuperAltFundName
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
else if (fund.fundId === constants.AustralianRetirementTrustFundId) {
|
|
130
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
131
|
+
fundUsi: constants.AustralianRetirementTrustFundUsi,
|
|
132
|
+
fundName: constants.AustralianRetirementTrustFundName,
|
|
133
|
+
fundNameAlt: constants.AustralianRetirementTrustAltFundName
|
|
134
|
+
});
|
|
135
|
+
promotedFundState.fundId = fund.fundId;
|
|
115
136
|
}
|
|
116
137
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
117
138
|
}
|
|
@@ -17,5 +17,5 @@ const patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(options => {
|
|
19
19
|
globalScripts();
|
|
20
|
-
return bootstrapLazy([["fl-style-guide",[[1,"fl-style-guide",{"themeCssUrl":[1,"theme-css-url"]}]]],["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["fl-
|
|
20
|
+
return bootstrapLazy([["fl-style-guide",[[1,"fl-style-guide",{"themeCssUrl":[1,"theme-css-url"]}]]],["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["fl-button_46",[[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"showSmsfNotSupported":[32]}],[0,"sss-qsuper-question-1"],[0,"sss-qsuper-question-2"],[0,"sss-qsuper-question-3"],[0,"sss-qsuper-question-4"],[0,"sss-qsuper-question-5"],[0,"sss-qsuper-question-6"],[0,"sss-qsuper-question-7"],[0,"sss-qsuper-question-8"],[0,"sss-default-fund",{"history":[16],"formState":[32],"defaultFundProductName":[32]}],[0,"sss-qsuper-insurance-opt-in",{"insuranceChosen":[32]}],[0,"sss-qsuper-join"],[0,"sss-slate-standard-choice-page",{"history":[16],"formState":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"areStylesLoaded":[32]}],[0,"sss-qsuper-consent"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"chosenFund":[32]}],[0,"sss-promoted-fund-standard-choice-page",{"history":[16],"formState":[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"super-selection-app",{"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"selectedOption":[32]}],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"currentBank":[32]}],[0,"sss-loading-page"],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{"heading":[1],"isSelected":[4,"is-selected"],"usi":[1],"name":[1],"logo":[1],"pdsLink":[1,"pds-link"],"callToAction":[1,"call-to-action"],"features":[1],"history":[16]}],[0,"sss-selected-super-choice-section",{"fundType":[1,"fund-type"],"fundName":[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[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,"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]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32]}],[0,"fl-dropdown-async",{"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"fl-dropdown",{"placeholder":[1],"options":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-standard-choice-form",{"standardChoiceFormSignature":[32]}],[4,"sss-qsuper-insurance-questions"],[0,"sss-qsuper-question-yes-no-buttons",{"history":[16]}],[0,"sss-qsuper-confirm-header"],[4,"sss-qsuper-layout",{"history":[16]}],[0,"sss-notifications-section"],[4,"fl-promise-button",{"isBlockElement":[4,"is-block-element"],"isRounded":[4,"is-rounded"],"disabled":[4],"variant":[1],"promiseFn":[16],"state":[32]}],[4,"fl-button",{"isBlockElement":[4,"is-block-element"],"disabled":[4],"variant":[1]}],[0,"fl-loading-indicator",{"theme":[1]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
|
|
21
21
|
});
|