@flarehr/apollo-super-selection 4.32.31414 → 4.34.34409
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.css +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/assets/logo-unisuper.svg +15 -0
- package/dist/lib/apollo-super-selection/p-64f29eca.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-95403f2f.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/{sss-button_30.cjs.entry.js → sss-button_38.cjs.entry.js} +948 -9
- package/dist/lib/collection/apollo-super-selection.css +1 -1
- package/dist/lib/collection/collection-manifest.json +16 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +2 -2
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +10 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +3 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/unisuper-default.js +49 -0
- package/dist/lib/collection/components/super-selection-app/misc/button.js +2 -1
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +22 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +41 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +76 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +121 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +144 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +217 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +355 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +281 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +46 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +73 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +10 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +1 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +8 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-unisuper.svg +15 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +4 -1
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/{sss-button_30.entry.js → sss-button_38.entry.js} +941 -10
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_38.entry.js +69 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +20 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +39 -0
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/unisuper-default.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/misc/button.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +18 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +28 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +48 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +90 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +3 -0
- package/dist/lib/types/components.d.ts +132 -0
- package/package.json +2 -2
- package/dist/lib/apollo-super-selection/p-8921567f.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-e8506380.system.entry.js +0 -69
- package/dist/lib/esm-es5/sss-button_30.entry.js +0 -69
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { Component, h, Prop, State } from '@stencil/core';
|
|
2
|
+
import customFundChoiceApi from '../funds/custom-fund/api/custom-fund-choice.api';
|
|
3
|
+
import { EventTrackingService } from '../services/event-tracking.service';
|
|
4
|
+
import navigationService from '../services/navigation.service';
|
|
5
|
+
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
6
|
+
import superSelectionAppService from '../services/super-selection-app.service';
|
|
7
|
+
import { DisabledField, Header, isNullOrWhitespace, Style } from './prefill-common';
|
|
8
|
+
import { BankAccountBsb, BankAccountName, BankAccountNumber, FundAbn, FundAddress, FundAddressCity, FundAddressLine1, FundAddressLine2, FundAddressPostcode, FundAddressState, FundEsa, MemberGivenNames, MemberLastName, SmsfFundName } from './prefill-types';
|
|
9
|
+
export class PrefillSMSF {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.mode = 'review';
|
|
12
|
+
this.formState = 'pristine';
|
|
13
|
+
this.isSubmitDisabled = true;
|
|
14
|
+
this.eventTrackingService = EventTrackingService.Instance;
|
|
15
|
+
this.createSuperFundPrefillDeclinedDetail = (prefill) => {
|
|
16
|
+
return {
|
|
17
|
+
fundType: 'SMSF',
|
|
18
|
+
isAbnValid: prefill.fundAbn.valid,
|
|
19
|
+
isMemberFirstNamePresent: !isNullOrWhitespace(prefill.memberFirstName),
|
|
20
|
+
isMemberLastNamePresent: !isNullOrWhitespace(prefill.memberFamilyName)
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
this.createSuperFundPrefillViewedDetail = (prefill) => {
|
|
24
|
+
return {
|
|
25
|
+
fundType: 'SMSF',
|
|
26
|
+
isAbnValid: prefill.fundAbn.valid,
|
|
27
|
+
isMemberFirstNamePresent: !isNullOrWhitespace(prefill.memberFirstName),
|
|
28
|
+
isMemberLastNamePresent: !isNullOrWhitespace(prefill.memberFamilyName)
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
componentDidLoad() {
|
|
33
|
+
const detail = this.createSuperFundPrefillViewedDetail(this.prefill);
|
|
34
|
+
return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(detail);
|
|
35
|
+
}
|
|
36
|
+
async componentWillLoad() {
|
|
37
|
+
if (this.prefill && this.prefill.fundAbn.valid) {
|
|
38
|
+
this.initialiseComponent(this.prefill);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// If prefill does not exist, or is invalid we should
|
|
42
|
+
// not have landed on this page, navigate to consent page
|
|
43
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const errorMessages = [
|
|
48
|
+
this.fundName.errorMessage,
|
|
49
|
+
this.fundEsa.errorMessage,
|
|
50
|
+
this.fundAddressLine1.errorMessage,
|
|
51
|
+
this.fundAddressLine2.errorMessage,
|
|
52
|
+
this.fundAddressCity.errorMessage,
|
|
53
|
+
this.fundAddressPostcode.errorMessage,
|
|
54
|
+
this.fundAddressState.errorMessage,
|
|
55
|
+
this.memberLastName.errorMessage,
|
|
56
|
+
this.memberGivenNames.errorMessage,
|
|
57
|
+
this.bankAccountName.errorMessage,
|
|
58
|
+
this.bankAccountBsb.errorMessage,
|
|
59
|
+
this.bankAccountNumber.errorMessage
|
|
60
|
+
].filter((err) => err !== null);
|
|
61
|
+
return (h("div", null,
|
|
62
|
+
h(Header, null),
|
|
63
|
+
h("div", { class: "flex flex-col items-center gap-8 mt-8 sm:mt-12" },
|
|
64
|
+
h("div", { class: "flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg" },
|
|
65
|
+
h("div", { class: "flex flex-col items-start gap-3 self-stretch" },
|
|
66
|
+
h("div", { class: "self-stretch text-grey-900 text-lg not-italic font-bold leading-7" }, "Your self-managed super fund (SMSF) details"),
|
|
67
|
+
h("sss-prefill-warning-box", { class: "self-stretch", notificationList: [
|
|
68
|
+
'Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step.'
|
|
69
|
+
] }),
|
|
70
|
+
this.mode === 'review' && errorMessages.length > 0 && (h("sss-prefill-error-box", { class: "self-stretch", notificationList: errorMessages, withHeader: true })),
|
|
71
|
+
this.mode === 'review' && (h("div", { class: "flex flex-col gap-3 self-stretch mt-4" },
|
|
72
|
+
h("sss-prefill-display-field", { field: this.fundName }),
|
|
73
|
+
h("sss-prefill-display-field", { field: this.fundAbn }),
|
|
74
|
+
h("sss-prefill-display-field", { field: this.fundEsa }),
|
|
75
|
+
h("sss-prefill-display-field", { field: this.fundAddress }),
|
|
76
|
+
h("sss-prefill-display-field", { field: this.memberLastName }),
|
|
77
|
+
h("sss-prefill-display-field", { field: this.memberGivenNames }),
|
|
78
|
+
h("sss-prefill-display-field", { field: this.bankAccountName }),
|
|
79
|
+
h("sss-prefill-display-field", { field: this.bankAccountBsb }),
|
|
80
|
+
h("sss-prefill-display-field", { field: this.bankAccountNumber }))),
|
|
81
|
+
this.mode === 'review' && (h("sss-button", { class: "self-stretch", fillWidth: true, variant: "light", promiseFn: () => this.setModeToEdit() },
|
|
82
|
+
h("div", { class: "flex flex-row gap-2" },
|
|
83
|
+
h("div", { class: "text-sm not-italic font-medium leading-4" }, "Edit details"),
|
|
84
|
+
h("div", { class: "w-4 h-4 relative" },
|
|
85
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "currentColor" },
|
|
86
|
+
h("path", { d: "M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z" }),
|
|
87
|
+
h("path", { d: "M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z" })))))),
|
|
88
|
+
this.mode === 'edit' && (h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: { 'was-validated': this.formState === 'validated' }, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = this.formHasMissingData()) },
|
|
89
|
+
h("div", { class: "mt-3" },
|
|
90
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.fundName.name),
|
|
91
|
+
h("div", { class: "mt-1" },
|
|
92
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.fundName.value, onInput: (ev) => {
|
|
93
|
+
this.updateFundName(ev.target.value);
|
|
94
|
+
} }),
|
|
95
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundName.errorMessage))),
|
|
96
|
+
DisabledField(this.fundAbn.name, this.fundAbn.value),
|
|
97
|
+
h("div", { class: "mt-3" },
|
|
98
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.fundEsa.name),
|
|
99
|
+
h("div", { class: "mt-1" },
|
|
100
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, minlength: "2", value: this.fundEsa.value, onInput: (ev) => {
|
|
101
|
+
this.updateFundEsa(ev.target.value);
|
|
102
|
+
} }),
|
|
103
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundEsa.errorMessage))),
|
|
104
|
+
h("div", { class: "mt-3" },
|
|
105
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, "Fund address"),
|
|
106
|
+
h("div", { class: "mt-1 rounded-md shadow-sm -space-y-px" },
|
|
107
|
+
h("input", { placeholder: "Address line 1", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none rounded-t-md shadow-none': true }), required: true, minlength: "2", name: "addressLine1", id: "addressLine1", value: this.fundAddressLine1.value, onChange: (ev) => {
|
|
108
|
+
this.updateAddressLine1(ev.target.value);
|
|
109
|
+
} }),
|
|
110
|
+
h("input", { placeholder: "Address line 2 (optional)", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none': true }), value: this.fundAddressLine2.value, onChange: (ev) => this.updateAddressLine2(ev.target.value) }),
|
|
111
|
+
h("input", { placeholder: "City/suburb", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none': true }), required: true, value: this.fundAddressCity.value, onChange: (ev) => {
|
|
112
|
+
this.updateAddressCity(ev.target.value);
|
|
113
|
+
} }),
|
|
114
|
+
h("div", { class: "flex -space-x-px" },
|
|
115
|
+
h("div", { class: "w-1/2 flex-1 min-w-0" },
|
|
116
|
+
h("input", { placeholder: "Postcode", type: "text", required: true, class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none rounded-bl-md shadow-none': true }), name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", value: this.fundAddressPostcode.value, inputmode: "numeric", onChange: (ev) => {
|
|
117
|
+
this.updateAddressPostcode(ev.target.value);
|
|
118
|
+
} })),
|
|
119
|
+
h("div", { class: "flex-1 min-w-0" },
|
|
120
|
+
h("select", { class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none rounded-br-md shadow-none': true, 'text-gray-500': this.formState !== 'validated' }), name: "state", required: true, id: "state", onChange: (ev) => {
|
|
121
|
+
this.updateAddressState(ev.target.value);
|
|
122
|
+
} },
|
|
123
|
+
h("option", { disabled: true, selected: this.fundAddressState.value !== undefined, value: "" }, "State"),
|
|
124
|
+
this.fundAddressState.options.map((s) => (h("option", { value: s.value, selected: this.fundAddressState.value === s.value }, s.label))))))),
|
|
125
|
+
this.formState === 'validated' && (h("div", { class: "mt-2 text-sm text-red-600" }, this.fundAddressLine1.errorMessage ||
|
|
126
|
+
this.fundAddressLine1.errorMessage ||
|
|
127
|
+
this.fundAddressCity.errorMessage ||
|
|
128
|
+
this.fundAddressPostcode.errorMessage ||
|
|
129
|
+
this.fundAddressState.errorMessage))),
|
|
130
|
+
h("div", { class: "flex gap-x-4 flex-col sm:flex-row" },
|
|
131
|
+
h("div", { class: "mt-3 w-full sm:w-1/2" },
|
|
132
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.memberGivenNames.name),
|
|
133
|
+
h("div", { class: "mt-1" },
|
|
134
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.memberGivenNames.value, onInput: (ev) => {
|
|
135
|
+
this.updateMemberGivenNames(ev.target.value);
|
|
136
|
+
} }),
|
|
137
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberGivenNames.errorMessage))),
|
|
138
|
+
h("div", { class: "mt-3 w-full sm:w-1/2" },
|
|
139
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.memberLastName.name),
|
|
140
|
+
h("div", { class: "mt-1" },
|
|
141
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.memberLastName.value, onInput: (ev) => {
|
|
142
|
+
this.updateMemberLastName(ev.target.value);
|
|
143
|
+
} }),
|
|
144
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberLastName.errorMessage)))),
|
|
145
|
+
h("div", { class: "mt-3" },
|
|
146
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountName.name),
|
|
147
|
+
h("div", { class: "mt-1" },
|
|
148
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountName.value, onInput: (ev) => {
|
|
149
|
+
this.updateBankAccountName(ev.target.value);
|
|
150
|
+
} }),
|
|
151
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountName.errorMessage))),
|
|
152
|
+
h("div", { class: "mt-3" },
|
|
153
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountBsb.name),
|
|
154
|
+
h("div", { class: "mt-1" },
|
|
155
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountBsb.value, onInput: (ev) => {
|
|
156
|
+
this.updateBankAccountBsb(ev.target.value);
|
|
157
|
+
} }),
|
|
158
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountBsb.errorMessage))),
|
|
159
|
+
h("div", { class: "mt-3" },
|
|
160
|
+
h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountNumber.name),
|
|
161
|
+
h("div", { class: "mt-1" },
|
|
162
|
+
h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountNumber.value, onInput: (ev) => {
|
|
163
|
+
this.updateBankAccountNumber(ev.target.value);
|
|
164
|
+
} }),
|
|
165
|
+
h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountNumber.errorMessage))))))),
|
|
166
|
+
h("div", { class: "flex w-80 flex-col items-start gap-4" },
|
|
167
|
+
h("sss-button", { class: "self-stretch", fillWidth: true, variant: "primary", disabled: this.isSubmitDisabled, promiseFn: () => this.handleSubmitForm() }, "Continue"),
|
|
168
|
+
h("sss-button", { class: "self-stretch", fillWidth: true, variant: "secondary", promiseFn: () => this.handleFundNominationDeclined() }, "Choose another fund")))));
|
|
169
|
+
}
|
|
170
|
+
isFormValid() {
|
|
171
|
+
return (this.fundName.isValid &&
|
|
172
|
+
this.fundAbn.isValid &&
|
|
173
|
+
this.fundEsa.isValid &&
|
|
174
|
+
this.fundAddressLine1.isValid &&
|
|
175
|
+
this.fundAddressLine2.isValid &&
|
|
176
|
+
this.fundAddressCity.isValid &&
|
|
177
|
+
this.fundAddressPostcode.isValid &&
|
|
178
|
+
this.fundAddressState.isValid &&
|
|
179
|
+
this.memberGivenNames.isValid &&
|
|
180
|
+
this.memberLastName.isValid &&
|
|
181
|
+
this.bankAccountName.isValid &&
|
|
182
|
+
this.bankAccountBsb.isValid &&
|
|
183
|
+
this.bankAccountNumber.isValid);
|
|
184
|
+
}
|
|
185
|
+
formHasMissingData() {
|
|
186
|
+
return (this.fundName.isEmpty ||
|
|
187
|
+
this.fundAbn.isEmpty ||
|
|
188
|
+
this.fundEsa.isEmpty ||
|
|
189
|
+
this.fundAddressLine1.isEmpty ||
|
|
190
|
+
this.fundAddressCity.isEmpty ||
|
|
191
|
+
this.fundAddressPostcode.isEmpty ||
|
|
192
|
+
this.fundAddressState.isEmpty ||
|
|
193
|
+
this.memberGivenNames.isEmpty ||
|
|
194
|
+
this.memberLastName.isEmpty ||
|
|
195
|
+
this.bankAccountName.isEmpty ||
|
|
196
|
+
this.bankAccountBsb.isEmpty ||
|
|
197
|
+
this.bankAccountNumber.isEmpty);
|
|
198
|
+
}
|
|
199
|
+
setModeToEdit() {
|
|
200
|
+
this.mode = 'edit';
|
|
201
|
+
return Promise.resolve();
|
|
202
|
+
}
|
|
203
|
+
updateFundName(fundName) {
|
|
204
|
+
this.fundName = new SmsfFundName(fundName.trim());
|
|
205
|
+
}
|
|
206
|
+
updateFundEsa(fundEda) {
|
|
207
|
+
this.fundEsa = new FundEsa(fundEda.trim());
|
|
208
|
+
}
|
|
209
|
+
updateAddressLine1(value) {
|
|
210
|
+
this.fundAddressLine1 = new FundAddressLine1(value.trim());
|
|
211
|
+
}
|
|
212
|
+
updateAddressLine2(value) {
|
|
213
|
+
this.fundAddressLine2 = new FundAddressLine2(value.trim());
|
|
214
|
+
}
|
|
215
|
+
updateAddressCity(value) {
|
|
216
|
+
this.fundAddressCity = new FundAddressCity(value.trim());
|
|
217
|
+
}
|
|
218
|
+
updateAddressPostcode(value) {
|
|
219
|
+
this.fundAddressPostcode = new FundAddressPostcode(value.trim());
|
|
220
|
+
}
|
|
221
|
+
updateAddressState(value) {
|
|
222
|
+
this.fundAddressState = new FundAddressState(value.trim());
|
|
223
|
+
}
|
|
224
|
+
updateBankAccountName(bankAccountName) {
|
|
225
|
+
this.bankAccountName = new BankAccountName(bankAccountName.trim());
|
|
226
|
+
}
|
|
227
|
+
updateBankAccountBsb(bankAccountBsb) {
|
|
228
|
+
this.bankAccountBsb = new BankAccountBsb(bankAccountBsb.trim());
|
|
229
|
+
}
|
|
230
|
+
updateBankAccountNumber(bankAccountNumber) {
|
|
231
|
+
this.bankAccountNumber = new BankAccountNumber(bankAccountNumber.trim());
|
|
232
|
+
}
|
|
233
|
+
updateMemberGivenNames(memberGivenNames) {
|
|
234
|
+
this.memberGivenNames = new MemberGivenNames(memberGivenNames);
|
|
235
|
+
}
|
|
236
|
+
updateMemberLastName(memberLastName) {
|
|
237
|
+
this.memberLastName = new MemberLastName(memberLastName.trim());
|
|
238
|
+
}
|
|
239
|
+
async handleSubmitForm() {
|
|
240
|
+
this.formState = 'validated';
|
|
241
|
+
if (!this.isFormValid() || !this.formElement.checkValidity()) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
245
|
+
history: this.history,
|
|
246
|
+
fundName: this.fundName.value,
|
|
247
|
+
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
248
|
+
const smsfChoiceDto = Object.assign({ smsfChoice: {
|
|
249
|
+
abn: this.fundAbn.value,
|
|
250
|
+
fundName: this.fundName.value,
|
|
251
|
+
fundAddress: {
|
|
252
|
+
addressLine1: this.fundAddressLine1.value,
|
|
253
|
+
addressLine2: this.fundAddressLine2.value.trim() === ''
|
|
254
|
+
? null
|
|
255
|
+
: this.fundAddressLine2.value.trim(),
|
|
256
|
+
city: this.fundAddressCity.value,
|
|
257
|
+
state: this.fundAddressState.value,
|
|
258
|
+
postcode: this.fundAddressPostcode.value
|
|
259
|
+
},
|
|
260
|
+
bsb: this.bankAccountBsb.value,
|
|
261
|
+
bankAccountName: this.bankAccountName.value,
|
|
262
|
+
bankAccountNumber: this.bankAccountNumber.value,
|
|
263
|
+
electronicServiceAddress: this.fundEsa.value,
|
|
264
|
+
memberFirstName: this.memberGivenNames.value,
|
|
265
|
+
memberFamilyName: this.memberLastName.value
|
|
266
|
+
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
267
|
+
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(smsfChoiceDto);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
initialiseComponent(prefill) {
|
|
272
|
+
this.fundName = new SmsfFundName(prefill.fundName);
|
|
273
|
+
this.fundAbn = new FundAbn(prefill.fundAbn.value, prefill.fundAbn.valid);
|
|
274
|
+
this.fundEsa = new FundEsa(prefill.electronicServiceAddress);
|
|
275
|
+
this.fundAddressLine1 = new FundAddressLine1(prefill.addressLine1);
|
|
276
|
+
this.fundAddressLine2 = new FundAddressLine2(prefill.addressLine2);
|
|
277
|
+
this.fundAddressCity = new FundAddressCity(prefill.addressCity);
|
|
278
|
+
this.fundAddressPostcode = new FundAddressPostcode(prefill.addressPostcode);
|
|
279
|
+
this.fundAddressState = new FundAddressState(prefill.addressState);
|
|
280
|
+
this.fundAddress = new FundAddress(this.fundAddressLine1, this.fundAddressLine2, this.fundAddressCity, this.fundAddressState, this.fundAddressPostcode);
|
|
281
|
+
this.memberGivenNames = new MemberGivenNames(prefill.memberFirstName);
|
|
282
|
+
this.memberLastName = new MemberLastName(prefill.memberFamilyName);
|
|
283
|
+
this.bankAccountName = new BankAccountName(prefill.bankAccountName);
|
|
284
|
+
this.bankAccountBsb = new BankAccountBsb(prefill.bankAccountBsb);
|
|
285
|
+
this.bankAccountNumber = new BankAccountNumber(prefill.bankAccountNumber);
|
|
286
|
+
this.isSubmitDisabled = this.formHasMissingData();
|
|
287
|
+
}
|
|
288
|
+
async handleFundNominationDeclined() {
|
|
289
|
+
const detail = this.createSuperFundPrefillDeclinedDetail(this.prefill);
|
|
290
|
+
await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(detail);
|
|
291
|
+
return navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
292
|
+
}
|
|
293
|
+
static get is() { return "sss-prefill-smsf"; }
|
|
294
|
+
static get properties() { return {
|
|
295
|
+
"history": {
|
|
296
|
+
"type": "unknown",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "RouterHistory",
|
|
300
|
+
"resolved": "RouterHistory",
|
|
301
|
+
"references": {
|
|
302
|
+
"RouterHistory": {
|
|
303
|
+
"location": "import",
|
|
304
|
+
"path": "@stencil/router"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"prefill": {
|
|
316
|
+
"type": "unknown",
|
|
317
|
+
"mutable": false,
|
|
318
|
+
"complexType": {
|
|
319
|
+
"original": "PrefillSMSFChoiceDto",
|
|
320
|
+
"resolved": "{ fundAbn: { valid: boolean; value: string; }; fundName: string | null; addressLine1: string | null; addressLine2: string | null; addressCity: string | null; addressState: string | null; addressPostcode: string | null; bankAccountBsb: string | null; bankAccountName: string | null; bankAccountNumber: string | null; electronicServiceAddress: string | null; memberFirstName: string | null; memberFamilyName: string | null; }",
|
|
321
|
+
"references": {
|
|
322
|
+
"PrefillSMSFChoiceDto": {
|
|
323
|
+
"location": "import",
|
|
324
|
+
"path": "../api/super-selection.api.dto"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": ""
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}; }
|
|
336
|
+
static get states() { return {
|
|
337
|
+
"mode": {},
|
|
338
|
+
"formState": {},
|
|
339
|
+
"isSubmitDisabled": {},
|
|
340
|
+
"fundName": {},
|
|
341
|
+
"fundAbn": {},
|
|
342
|
+
"fundEsa": {},
|
|
343
|
+
"fundAddressLine1": {},
|
|
344
|
+
"fundAddressLine2": {},
|
|
345
|
+
"fundAddressCity": {},
|
|
346
|
+
"fundAddressPostcode": {},
|
|
347
|
+
"fundAddressState": {},
|
|
348
|
+
"fundAddress": {},
|
|
349
|
+
"memberGivenNames": {},
|
|
350
|
+
"memberLastName": {},
|
|
351
|
+
"bankAccountName": {},
|
|
352
|
+
"bankAccountBsb": {},
|
|
353
|
+
"bankAccountNumber": {}
|
|
354
|
+
}; }
|
|
355
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { isNullOrWhitespace } from './prefill-common';
|
|
2
|
+
export const NAME_PATTERN = "[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";
|
|
3
|
+
export class FormField {
|
|
4
|
+
constructor(name, value) {
|
|
5
|
+
this.name = name;
|
|
6
|
+
this._value = value !== null && value !== void 0 ? value : '';
|
|
7
|
+
this._errorMessage = this.validateAndReturnErrorMessage(this._value);
|
|
8
|
+
}
|
|
9
|
+
get value() {
|
|
10
|
+
return this._value;
|
|
11
|
+
}
|
|
12
|
+
set value(newValue) {
|
|
13
|
+
this._errorMessage = this.validateAndReturnErrorMessage(newValue);
|
|
14
|
+
this._value = newValue;
|
|
15
|
+
}
|
|
16
|
+
get isValid() {
|
|
17
|
+
return this._errorMessage === null;
|
|
18
|
+
}
|
|
19
|
+
get isEmpty() {
|
|
20
|
+
return isNullOrWhitespace(this._value);
|
|
21
|
+
}
|
|
22
|
+
get errorMessage() {
|
|
23
|
+
return this._errorMessage;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class StaticFormField {
|
|
27
|
+
constructor(name, value, isValid) {
|
|
28
|
+
this.name = name;
|
|
29
|
+
this._value = value !== null && value !== void 0 ? value : '';
|
|
30
|
+
this._isValid = isValid;
|
|
31
|
+
}
|
|
32
|
+
get value() {
|
|
33
|
+
return this._value;
|
|
34
|
+
}
|
|
35
|
+
get isValid() {
|
|
36
|
+
return this._isValid;
|
|
37
|
+
}
|
|
38
|
+
get isEmpty() {
|
|
39
|
+
return isNullOrWhitespace(this._value);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class FundUsi extends StaticFormField {
|
|
43
|
+
constructor(value, isValid) {
|
|
44
|
+
super('Fund USI', value, isValid);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export class FundName extends StaticFormField {
|
|
48
|
+
constructor(value, isValid) {
|
|
49
|
+
super('Fund name', value, isValid);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class SmsfFundName extends FormField {
|
|
53
|
+
constructor(value) {
|
|
54
|
+
super('Fund name', value);
|
|
55
|
+
}
|
|
56
|
+
validateAndReturnErrorMessage(newValue) {
|
|
57
|
+
if (isNullOrWhitespace(newValue)) {
|
|
58
|
+
return 'Fund name is required.';
|
|
59
|
+
}
|
|
60
|
+
else if (newValue.length < 2) {
|
|
61
|
+
return 'Enter a valid Fund name.';
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export class MemberNumber extends FormField {
|
|
69
|
+
constructor(value) {
|
|
70
|
+
super('Member number', value);
|
|
71
|
+
}
|
|
72
|
+
validateAndReturnErrorMessage(newValue) {
|
|
73
|
+
const regex = /^[A-Za-z0-9]{4,16}$/;
|
|
74
|
+
if (isNullOrWhitespace(newValue)) {
|
|
75
|
+
return 'Member number is required.';
|
|
76
|
+
}
|
|
77
|
+
else if (!regex.test(newValue)) {
|
|
78
|
+
return 'Enter a valid member number (only numbers and / or letters)';
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export class MemberLastName extends FormField {
|
|
86
|
+
constructor(value) {
|
|
87
|
+
super('Member last name', value);
|
|
88
|
+
}
|
|
89
|
+
validateAndReturnErrorMessage(newValue) {
|
|
90
|
+
const regex = new RegExp(NAME_PATTERN);
|
|
91
|
+
if (isNullOrWhitespace(newValue)) {
|
|
92
|
+
return 'Member last name is required.';
|
|
93
|
+
}
|
|
94
|
+
else if (!regex.test(newValue)) {
|
|
95
|
+
return 'Member last name contains unsupported characters.';
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export class MemberGivenNames extends FormField {
|
|
103
|
+
constructor(value) {
|
|
104
|
+
super('Member given name(s)', value);
|
|
105
|
+
}
|
|
106
|
+
validateAndReturnErrorMessage(newValue) {
|
|
107
|
+
const regex = new RegExp(NAME_PATTERN);
|
|
108
|
+
if (isNullOrWhitespace(newValue)) {
|
|
109
|
+
return 'Member given name(s) is required.';
|
|
110
|
+
}
|
|
111
|
+
else if (!regex.test(newValue)) {
|
|
112
|
+
return 'Member given name(s) contains unsupported characters.';
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
export class FundAbn extends StaticFormField {
|
|
120
|
+
constructor(value, isValid) {
|
|
121
|
+
super('Fund ABN', value, isValid);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export class FundEsa extends FormField {
|
|
125
|
+
constructor(value) {
|
|
126
|
+
super('Fund ESA', value);
|
|
127
|
+
}
|
|
128
|
+
validateAndReturnErrorMessage(newValue) {
|
|
129
|
+
if (isNullOrWhitespace(newValue)) {
|
|
130
|
+
return 'Fund ESA is required.';
|
|
131
|
+
}
|
|
132
|
+
else if (newValue.length < 2) {
|
|
133
|
+
return 'Enter a valid Fund ESA.';
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
export class FundAddressLine1 extends FormField {
|
|
141
|
+
constructor(value) {
|
|
142
|
+
super('Address line 1', value);
|
|
143
|
+
}
|
|
144
|
+
validateAndReturnErrorMessage(newValue) {
|
|
145
|
+
if (isNullOrWhitespace(newValue)) {
|
|
146
|
+
return 'Address line 1 is required.';
|
|
147
|
+
}
|
|
148
|
+
else if (newValue.length < 2) {
|
|
149
|
+
return 'Enter a valid Address line 1.';
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export class FundAddressLine2 extends FormField {
|
|
157
|
+
constructor(value) {
|
|
158
|
+
super('Address line 2', value);
|
|
159
|
+
}
|
|
160
|
+
validateAndReturnErrorMessage(_newValue) {
|
|
161
|
+
return null;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
export class FundAddressCity extends FormField {
|
|
165
|
+
constructor(value) {
|
|
166
|
+
super('City/suburb', value);
|
|
167
|
+
}
|
|
168
|
+
validateAndReturnErrorMessage(newValue) {
|
|
169
|
+
if (isNullOrWhitespace(newValue)) {
|
|
170
|
+
return 'City/suburb is required.';
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export class FundAddressPostcode extends FormField {
|
|
178
|
+
constructor(value) {
|
|
179
|
+
super('Postcode', value);
|
|
180
|
+
}
|
|
181
|
+
validateAndReturnErrorMessage(newValue) {
|
|
182
|
+
const regex = /^[0-9]{4}$/;
|
|
183
|
+
if (isNullOrWhitespace(newValue)) {
|
|
184
|
+
return 'Postcode is required.';
|
|
185
|
+
}
|
|
186
|
+
else if (!regex.test(newValue)) {
|
|
187
|
+
return 'Enter a valid postcode.';
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
export class FundAddressState extends FormField {
|
|
195
|
+
constructor(value) {
|
|
196
|
+
super('State', value);
|
|
197
|
+
}
|
|
198
|
+
get options() {
|
|
199
|
+
return [
|
|
200
|
+
{ value: 'NSW', label: 'NSW' },
|
|
201
|
+
{ value: 'QLD', label: 'QLD' },
|
|
202
|
+
{ value: 'ACT', label: 'ACT' },
|
|
203
|
+
{ value: 'VIC', label: 'VIC' },
|
|
204
|
+
{ value: 'TAS', label: 'TAS' },
|
|
205
|
+
{ value: 'WA', label: 'WA' },
|
|
206
|
+
{ value: 'SA', label: 'SA' },
|
|
207
|
+
{ value: 'NT', label: 'NT' }
|
|
208
|
+
];
|
|
209
|
+
}
|
|
210
|
+
validateAndReturnErrorMessage(newValue) {
|
|
211
|
+
if (isNullOrWhitespace(newValue)) {
|
|
212
|
+
return 'State is required.';
|
|
213
|
+
}
|
|
214
|
+
else if (this.options.find((option) => (option.value = newValue)) === undefined) {
|
|
215
|
+
return 'Enter a valid state.';
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export class FundAddress extends StaticFormField {
|
|
223
|
+
constructor(addrLine1, addrLine2, city, state, postcode) {
|
|
224
|
+
const value = [addrLine1, addrLine2, city, state, postcode]
|
|
225
|
+
.map((x) => x.value)
|
|
226
|
+
.filter((v) => v)
|
|
227
|
+
.join(', ');
|
|
228
|
+
const isValid = addrLine1.isValid && addrLine2.isValid && city.isValid && state.isValid && postcode.isValid;
|
|
229
|
+
super('Fund address', value, isValid);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
export class BankAccountName extends FormField {
|
|
233
|
+
constructor(value) {
|
|
234
|
+
super('Account name', value);
|
|
235
|
+
}
|
|
236
|
+
validateAndReturnErrorMessage(newValue) {
|
|
237
|
+
if (isNullOrWhitespace(newValue)) {
|
|
238
|
+
return 'Account name is required.';
|
|
239
|
+
}
|
|
240
|
+
else if (newValue.length < 2) {
|
|
241
|
+
return 'Enter a valid Account name.';
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
return null;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export class BankAccountBsb extends FormField {
|
|
249
|
+
constructor(value) {
|
|
250
|
+
super('BSB', value);
|
|
251
|
+
}
|
|
252
|
+
validateAndReturnErrorMessage(newValue) {
|
|
253
|
+
const regex = /^[0-9]{6,7}$/;
|
|
254
|
+
if (isNullOrWhitespace(newValue)) {
|
|
255
|
+
return 'BSB is required.';
|
|
256
|
+
}
|
|
257
|
+
else if (!regex.test(newValue)) {
|
|
258
|
+
return 'Enter a valid BSB.';
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export class BankAccountNumber extends FormField {
|
|
266
|
+
constructor(value) {
|
|
267
|
+
super('Account number', value);
|
|
268
|
+
}
|
|
269
|
+
validateAndReturnErrorMessage(newValue) {
|
|
270
|
+
const regex = /^[0-9]{2,11}$/;
|
|
271
|
+
if (isNullOrWhitespace(newValue)) {
|
|
272
|
+
return 'Account number is required.';
|
|
273
|
+
}
|
|
274
|
+
else if (!regex.test(newValue)) {
|
|
275
|
+
return 'Enter a valid Account number.';
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return null;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Component, h, Prop } from '@stencil/core';
|
|
2
|
+
export class PrefillWarningBox {
|
|
3
|
+
render() {
|
|
4
|
+
const bgColour = 'bg-yellow-50';
|
|
5
|
+
const accentColour = 'bg-yellow-400';
|
|
6
|
+
const textColour = 'text-yellow-700';
|
|
7
|
+
const bulletColour = '#B45309';
|
|
8
|
+
const BulletIcon = () => {
|
|
9
|
+
return (h("div", { class: "flex justify-center items-center pt-2" },
|
|
10
|
+
h("div", { class: "w-1.5 h-1.5 fill-yellow-700" },
|
|
11
|
+
h("svg", { width: "6", height: "6", viewBox: "0 0 6 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
12
|
+
h("circle", { id: "Bullet", cx: "3", cy: "3", r: "3", fill: bulletColour })))));
|
|
13
|
+
};
|
|
14
|
+
const WarningIcon = () => {
|
|
15
|
+
return (h("div", { class: "w-5 h-5" },
|
|
16
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
|
|
17
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z", fill: "#FBBF24" }))));
|
|
18
|
+
};
|
|
19
|
+
return (h("div", { class: 'flex items-start self-stretch rounded-md ' + bgColour },
|
|
20
|
+
h("div", { class: 'w-1 self-stretch ' + accentColour }),
|
|
21
|
+
h("div", { class: "flex items-start gap-3 flex-[1_0_0] p-4" },
|
|
22
|
+
h(WarningIcon, null),
|
|
23
|
+
h("div", { class: "flex flex-col items-start gap-2 flex-[1_0_0]" },
|
|
24
|
+
h("div", { class: "flex flex-col items-start gap-1 self-stretch" }, this.notificationList.map((text) => (h("div", { class: "flex items-start gap-[7px] self-stretch pl-0" },
|
|
25
|
+
h(BulletIcon, null),
|
|
26
|
+
h("div", { class: 'flex-[1_0_0] text-sm not-italic font-normal leading-5 ' + textColour }, text)))))))));
|
|
27
|
+
}
|
|
28
|
+
static get is() { return "sss-prefill-warning-box"; }
|
|
29
|
+
static get properties() { return {
|
|
30
|
+
"notificationList": {
|
|
31
|
+
"type": "unknown",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "string[]",
|
|
35
|
+
"resolved": "string[]",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}; }
|
|
46
|
+
}
|