@flarehr/apollo-super-selection 5.0.47164 → 5.11.47776

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.
@@ -1,8 +1,9 @@
1
1
  import { isNullOrWhitespace } from './prefill-common';
2
2
  export const NAME_PATTERN = "[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";
3
3
  export class FormField {
4
- constructor(name, value) {
4
+ constructor(name, testId, value) {
5
5
  this.name = name;
6
+ this.testId = testId;
6
7
  this._value = value !== null && value !== void 0 ? value : '';
7
8
  this._errorMessage = this.validateAndReturnErrorMessage(this._value);
8
9
  }
@@ -24,8 +25,9 @@ export class FormField {
24
25
  }
25
26
  }
26
27
  export class StaticFormField {
27
- constructor(name, value, isValid) {
28
+ constructor(name, testId, value, isValid) {
28
29
  this.name = name;
30
+ this.testId = testId;
29
31
  this._value = value !== null && value !== void 0 ? value : '';
30
32
  this._isValid = isValid;
31
33
  }
@@ -41,17 +43,17 @@ export class StaticFormField {
41
43
  }
42
44
  export class FundUsi extends StaticFormField {
43
45
  constructor(value, isValid) {
44
- super('Fund USI', value, isValid);
46
+ super('Fund USI', 'fund-usi', value, isValid);
45
47
  }
46
48
  }
47
49
  export class FundName extends StaticFormField {
48
50
  constructor(value, isValid) {
49
- super('Fund name', value, isValid);
51
+ super('Fund name', 'fund-name', value, isValid);
50
52
  }
51
53
  }
52
54
  export class SmsfFundName extends FormField {
53
55
  constructor(value) {
54
- super('Fund name', value);
56
+ super('Fund name', 'smsf-fund-name', value);
55
57
  }
56
58
  validateAndReturnErrorMessage(newValue) {
57
59
  if (isNullOrWhitespace(newValue)) {
@@ -67,7 +69,7 @@ export class SmsfFundName extends FormField {
67
69
  }
68
70
  export class MemberNumber extends FormField {
69
71
  constructor(value) {
70
- super('Member number', value);
72
+ super('Member number', 'member-number', value);
71
73
  }
72
74
  validateAndReturnErrorMessage(newValue) {
73
75
  const regex = /^[A-Za-z0-9]{4,16}$/;
@@ -84,7 +86,7 @@ export class MemberNumber extends FormField {
84
86
  }
85
87
  export class MemberLastName extends FormField {
86
88
  constructor(value) {
87
- super('Member last name', value);
89
+ super('Member last name', 'member-last-name', value);
88
90
  }
89
91
  validateAndReturnErrorMessage(newValue) {
90
92
  const regex = new RegExp(NAME_PATTERN);
@@ -101,7 +103,7 @@ export class MemberLastName extends FormField {
101
103
  }
102
104
  export class MemberGivenNames extends FormField {
103
105
  constructor(value) {
104
- super('Member given name(s)', value);
106
+ super('Member given name(s)', 'member-given-names', value);
105
107
  }
106
108
  validateAndReturnErrorMessage(newValue) {
107
109
  const regex = new RegExp(NAME_PATTERN);
@@ -118,12 +120,12 @@ export class MemberGivenNames extends FormField {
118
120
  }
119
121
  export class FundAbn extends StaticFormField {
120
122
  constructor(value, isValid) {
121
- super('Fund ABN', value, isValid);
123
+ super('Fund ABN', 'fund-abn', value, isValid);
122
124
  }
123
125
  }
124
126
  export class FundEsa extends FormField {
125
127
  constructor(value) {
126
- super('Fund ESA', value);
128
+ super('Fund ESA', 'fund-esa', value);
127
129
  }
128
130
  validateAndReturnErrorMessage(newValue) {
129
131
  if (isNullOrWhitespace(newValue)) {
@@ -139,7 +141,7 @@ export class FundEsa extends FormField {
139
141
  }
140
142
  export class FundAddressLine1 extends FormField {
141
143
  constructor(value) {
142
- super('Address line 1', value);
144
+ super('Address line 1', 'address-line-one', value);
143
145
  }
144
146
  validateAndReturnErrorMessage(newValue) {
145
147
  if (isNullOrWhitespace(newValue)) {
@@ -155,7 +157,7 @@ export class FundAddressLine1 extends FormField {
155
157
  }
156
158
  export class FundAddressLine2 extends FormField {
157
159
  constructor(value) {
158
- super('Address line 2', value);
160
+ super('Address line 2', 'address-line-two', value);
159
161
  }
160
162
  validateAndReturnErrorMessage(_newValue) {
161
163
  return null;
@@ -163,7 +165,7 @@ export class FundAddressLine2 extends FormField {
163
165
  }
164
166
  export class FundAddressCity extends FormField {
165
167
  constructor(value) {
166
- super('City/suburb', value);
168
+ super('City/suburb', 'city-suburb', value);
167
169
  }
168
170
  validateAndReturnErrorMessage(newValue) {
169
171
  if (isNullOrWhitespace(newValue)) {
@@ -176,7 +178,7 @@ export class FundAddressCity extends FormField {
176
178
  }
177
179
  export class FundAddressPostcode extends FormField {
178
180
  constructor(value) {
179
- super('Postcode', value);
181
+ super('Postcode', 'postcode', value);
180
182
  }
181
183
  validateAndReturnErrorMessage(newValue) {
182
184
  const regex = /^[0-9]{4}$/;
@@ -193,7 +195,7 @@ export class FundAddressPostcode extends FormField {
193
195
  }
194
196
  export class FundAddressState extends FormField {
195
197
  constructor(value) {
196
- super('State', value);
198
+ super('State', 'state', value);
197
199
  }
198
200
  get options() {
199
201
  return [
@@ -226,12 +228,12 @@ export class FundAddress extends StaticFormField {
226
228
  .filter((v) => v)
227
229
  .join(', ');
228
230
  const isValid = addrLine1.isValid && addrLine2.isValid && city.isValid && state.isValid && postcode.isValid;
229
- super('Fund address', value, isValid);
231
+ super('Fund address', 'fund-address', value, isValid);
230
232
  }
231
233
  }
232
234
  export class BankAccountName extends FormField {
233
235
  constructor(value) {
234
- super('Account name', value);
236
+ super('Account name', 'account-name', value);
235
237
  }
236
238
  validateAndReturnErrorMessage(newValue) {
237
239
  if (isNullOrWhitespace(newValue)) {
@@ -247,12 +249,12 @@ export class BankAccountName extends FormField {
247
249
  }
248
250
  export class BankName extends StaticFormField {
249
251
  constructor(value, isValid) {
250
- super('Bank name', value, isValid);
252
+ super('Bank name', 'bank-name', value, isValid);
251
253
  }
252
254
  }
253
255
  export class BankAccountBsb extends FormField {
254
256
  constructor(value) {
255
- super('BSB', value);
257
+ super('BSB', 'bsb', value);
256
258
  }
257
259
  validateAndReturnErrorMessage(newValue) {
258
260
  const regex = /^[0-9]{6,7}$/;
@@ -269,7 +271,7 @@ export class BankAccountBsb extends FormField {
269
271
  }
270
272
  export class BankAccountNumber extends FormField {
271
273
  constructor(value) {
272
- super('Account number', value);
274
+ super('Account number', 'account-number', value);
273
275
  }
274
276
  validateAndReturnErrorMessage(newValue) {
275
277
  const regex = /^[0-9]{2,11}$/;
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '5.0.47164';
263
+ const AppVersion = '5.11.47776';
264
264
 
265
265
  // -------------------------------------------------------------------------------------
266
266
  // guards
@@ -5343,7 +5343,7 @@ const DisplayField = class {
5343
5343
  return (h("div", { class: "flex w-full flex-col sm:flex-row sm:min-h-5 justify-center items-start gap-0.5 sm:gap-4 self-stretch" }, h("div", { class: {
5344
5344
  'sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5': true,
5345
5345
  'text-red-600': !this.field.isValid
5346
- } }, this.field.name), h("div", { class: {
5346
+ } }, this.field.name), h("div", { "data-testid": this.field.testId, class: {
5347
5347
  'sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words': true,
5348
5348
  'h-5 sm:h-auto': this.field.isEmpty,
5349
5349
  'text-red-600': !this.field.isValid
@@ -5369,10 +5369,10 @@ const PrefillErrorBox = class {
5369
5369
  function isNullOrWhitespace(value) {
5370
5370
  return value == null || value.trim() === '';
5371
5371
  }
5372
- const DisabledField = (name, value) => {
5372
+ const DisabledField = (name, testId, value) => {
5373
5373
  return (h("div", { class: "mt-3" },
5374
5374
  h("label", { class: "text-sm font-medium text-gray-700" }, name),
5375
- h("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" }, value)));
5375
+ h("div", { "data-testid": testId, 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" }, value)));
5376
5376
  };
5377
5377
  const Header = () => {
5378
5378
  return (h("div", null,
@@ -5390,8 +5390,9 @@ class Style {
5390
5390
 
5391
5391
  const NAME_PATTERN = "[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";
5392
5392
  class FormField {
5393
- constructor(name, value) {
5393
+ constructor(name, testId, value) {
5394
5394
  this.name = name;
5395
+ this.testId = testId;
5395
5396
  this._value = value !== null && value !== void 0 ? value : '';
5396
5397
  this._errorMessage = this.validateAndReturnErrorMessage(this._value);
5397
5398
  }
@@ -5413,8 +5414,9 @@ class FormField {
5413
5414
  }
5414
5415
  }
5415
5416
  class StaticFormField {
5416
- constructor(name, value, isValid) {
5417
+ constructor(name, testId, value, isValid) {
5417
5418
  this.name = name;
5419
+ this.testId = testId;
5418
5420
  this._value = value !== null && value !== void 0 ? value : '';
5419
5421
  this._isValid = isValid;
5420
5422
  }
@@ -5430,17 +5432,17 @@ class StaticFormField {
5430
5432
  }
5431
5433
  class FundUsi extends StaticFormField {
5432
5434
  constructor(value, isValid) {
5433
- super('Fund USI', value, isValid);
5435
+ super('Fund USI', 'fund-usi', value, isValid);
5434
5436
  }
5435
5437
  }
5436
5438
  class FundName extends StaticFormField {
5437
5439
  constructor(value, isValid) {
5438
- super('Fund name', value, isValid);
5440
+ super('Fund name', 'fund-name', value, isValid);
5439
5441
  }
5440
5442
  }
5441
5443
  class SmsfFundName extends FormField {
5442
5444
  constructor(value) {
5443
- super('Fund name', value);
5445
+ super('Fund name', 'smsf-fund-name', value);
5444
5446
  }
5445
5447
  validateAndReturnErrorMessage(newValue) {
5446
5448
  if (isNullOrWhitespace(newValue)) {
@@ -5456,7 +5458,7 @@ class SmsfFundName extends FormField {
5456
5458
  }
5457
5459
  class MemberNumber extends FormField {
5458
5460
  constructor(value) {
5459
- super('Member number', value);
5461
+ super('Member number', 'member-number', value);
5460
5462
  }
5461
5463
  validateAndReturnErrorMessage(newValue) {
5462
5464
  const regex = /^[A-Za-z0-9]{4,16}$/;
@@ -5473,7 +5475,7 @@ class MemberNumber extends FormField {
5473
5475
  }
5474
5476
  class MemberLastName extends FormField {
5475
5477
  constructor(value) {
5476
- super('Member last name', value);
5478
+ super('Member last name', 'member-last-name', value);
5477
5479
  }
5478
5480
  validateAndReturnErrorMessage(newValue) {
5479
5481
  const regex = new RegExp(NAME_PATTERN);
@@ -5490,7 +5492,7 @@ class MemberLastName extends FormField {
5490
5492
  }
5491
5493
  class MemberGivenNames extends FormField {
5492
5494
  constructor(value) {
5493
- super('Member given name(s)', value);
5495
+ super('Member given name(s)', 'member-given-names', value);
5494
5496
  }
5495
5497
  validateAndReturnErrorMessage(newValue) {
5496
5498
  const regex = new RegExp(NAME_PATTERN);
@@ -5507,12 +5509,12 @@ class MemberGivenNames extends FormField {
5507
5509
  }
5508
5510
  class FundAbn extends StaticFormField {
5509
5511
  constructor(value, isValid) {
5510
- super('Fund ABN', value, isValid);
5512
+ super('Fund ABN', 'fund-abn', value, isValid);
5511
5513
  }
5512
5514
  }
5513
5515
  class FundEsa extends FormField {
5514
5516
  constructor(value) {
5515
- super('Fund ESA', value);
5517
+ super('Fund ESA', 'fund-esa', value);
5516
5518
  }
5517
5519
  validateAndReturnErrorMessage(newValue) {
5518
5520
  if (isNullOrWhitespace(newValue)) {
@@ -5528,7 +5530,7 @@ class FundEsa extends FormField {
5528
5530
  }
5529
5531
  class FundAddressLine1 extends FormField {
5530
5532
  constructor(value) {
5531
- super('Address line 1', value);
5533
+ super('Address line 1', 'address-line-one', value);
5532
5534
  }
5533
5535
  validateAndReturnErrorMessage(newValue) {
5534
5536
  if (isNullOrWhitespace(newValue)) {
@@ -5544,7 +5546,7 @@ class FundAddressLine1 extends FormField {
5544
5546
  }
5545
5547
  class FundAddressLine2 extends FormField {
5546
5548
  constructor(value) {
5547
- super('Address line 2', value);
5549
+ super('Address line 2', 'address-line-two', value);
5548
5550
  }
5549
5551
  validateAndReturnErrorMessage(_newValue) {
5550
5552
  return null;
@@ -5552,7 +5554,7 @@ class FundAddressLine2 extends FormField {
5552
5554
  }
5553
5555
  class FundAddressCity extends FormField {
5554
5556
  constructor(value) {
5555
- super('City/suburb', value);
5557
+ super('City/suburb', 'city-suburb', value);
5556
5558
  }
5557
5559
  validateAndReturnErrorMessage(newValue) {
5558
5560
  if (isNullOrWhitespace(newValue)) {
@@ -5565,7 +5567,7 @@ class FundAddressCity extends FormField {
5565
5567
  }
5566
5568
  class FundAddressPostcode extends FormField {
5567
5569
  constructor(value) {
5568
- super('Postcode', value);
5570
+ super('Postcode', 'postcode', value);
5569
5571
  }
5570
5572
  validateAndReturnErrorMessage(newValue) {
5571
5573
  const regex = /^[0-9]{4}$/;
@@ -5582,7 +5584,7 @@ class FundAddressPostcode extends FormField {
5582
5584
  }
5583
5585
  class FundAddressState extends FormField {
5584
5586
  constructor(value) {
5585
- super('State', value);
5587
+ super('State', 'state', value);
5586
5588
  }
5587
5589
  get options() {
5588
5590
  return [
@@ -5615,12 +5617,12 @@ class FundAddress extends StaticFormField {
5615
5617
  .filter((v) => v)
5616
5618
  .join(', ');
5617
5619
  const isValid = addrLine1.isValid && addrLine2.isValid && city.isValid && state.isValid && postcode.isValid;
5618
- super('Fund address', value, isValid);
5620
+ super('Fund address', 'fund-address', value, isValid);
5619
5621
  }
5620
5622
  }
5621
5623
  class BankAccountName extends FormField {
5622
5624
  constructor(value) {
5623
- super('Account name', value);
5625
+ super('Account name', 'account-name', value);
5624
5626
  }
5625
5627
  validateAndReturnErrorMessage(newValue) {
5626
5628
  if (isNullOrWhitespace(newValue)) {
@@ -5636,12 +5638,12 @@ class BankAccountName extends FormField {
5636
5638
  }
5637
5639
  class BankName extends StaticFormField {
5638
5640
  constructor(value, isValid) {
5639
- super('Bank name', value, isValid);
5641
+ super('Bank name', 'bank-name', value, isValid);
5640
5642
  }
5641
5643
  }
5642
5644
  class BankAccountBsb extends FormField {
5643
5645
  constructor(value) {
5644
- super('BSB', value);
5646
+ super('BSB', 'bsb', value);
5645
5647
  }
5646
5648
  validateAndReturnErrorMessage(newValue) {
5647
5649
  const regex = /^[0-9]{6,7}$/;
@@ -5658,7 +5660,7 @@ class BankAccountBsb extends FormField {
5658
5660
  }
5659
5661
  class BankAccountNumber extends FormField {
5660
5662
  constructor(value) {
5661
- super('Account number', value);
5663
+ super('Account number', 'account-number', value);
5662
5664
  }
5663
5665
  validateAndReturnErrorMessage(newValue) {
5664
5666
  const regex = /^[0-9]{2,11}$/;
@@ -5839,11 +5841,11 @@ const PrefillMyOwnFund = class {
5839
5841
  return (h("div", null, h(Header, null), h("div", { class: "flex flex-col items-center gap-8 mt-8 sm:mt-12" }, h("div", { class: "flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg" }, h("div", { class: "flex flex-col items-start gap-3.5 self-stretch" }, h("div", { class: "self-stretch text-grey-900 text-lg not-italic font-bold leading-7" }, "Your fund details"), h("sss-prefill-warning-box", { class: "self-stretch", notificationList: [
5840
5842
  'Make sure you are a current member of the fund before completing this step.',
5841
5843
  'Please check that the fund USI is correct as some funds have similar names.'
5842
- ] }), this.mode === 'review' && errorMessages.length > 0 && (h("sss-prefill-error-box", { class: "self-stretch", notificationList: errorMessages, withHeader: true })), this.mode === 'review' && (h("div", { class: "flex flex-col gap-3 self-stretch mt-4" }, h("sss-prefill-display-field", { field: this.fundUsi }), h("sss-prefill-display-field", { field: this.fundName }), h("sss-prefill-display-field", { field: this.memberNumber }), h("sss-prefill-display-field", { field: this.memberLastName }), h("sss-prefill-display-field", { field: this.memberGivenNames }))), this.mode === 'review' && (h("sss-button", { class: "self-stretch mt-3", fillWidth: true, variant: "secondary", promiseFn: () => this.setModeToEdit() }, h("div", { class: "flex flex-row gap-2" }, h("div", { class: "text-sm not-italic font-medium leading-4" }, "Edit details"), h("div", { class: "w-4 h-4 relative" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "currentColor" }, 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" }), h("path", { d: "M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z" })))))), 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()) }, DisabledField(this.fundName.name, this.fundName.value), DisabledField(this.fundUsi.name, this.fundUsi.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberNumber.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: "[A-Za-z0-9]{4,16}", value: this.memberNumber.value, onInput: (ev) => {
5844
+ ] }), this.mode === 'review' && errorMessages.length > 0 && (h("sss-prefill-error-box", { class: "self-stretch", notificationList: errorMessages, withHeader: true })), this.mode === 'review' && (h("div", { class: "flex flex-col gap-3 self-stretch mt-4" }, h("sss-prefill-display-field", { field: this.fundUsi }), h("sss-prefill-display-field", { field: this.fundName }), h("sss-prefill-display-field", { field: this.memberNumber }), h("sss-prefill-display-field", { field: this.memberLastName }), h("sss-prefill-display-field", { field: this.memberGivenNames }))), this.mode === 'review' && (h("sss-button", { class: "self-stretch mt-3", fillWidth: true, variant: "secondary", promiseFn: () => this.setModeToEdit() }, h("div", { class: "flex flex-row gap-2" }, h("div", { class: "text-sm not-italic font-medium leading-4" }, "Edit details"), h("div", { class: "w-4 h-4 relative" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "currentColor" }, 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" }), h("path", { d: "M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z" })))))), 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()) }, DisabledField(this.fundName.name, this.fundName.testId, this.fundName.value), DisabledField(this.fundUsi.name, this.fundUsi.testId, this.fundUsi.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberNumber.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: "[A-Za-z0-9]{4,16}", "data-testid": this.memberNumber.testId, value: this.memberNumber.value, onInput: (ev) => {
5843
5845
  this.updateMemberNumber(ev.target.value);
5844
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberNumber.errorMessage))), h("div", { class: "flex mt-3 gap-x-4 flex-col sm:flex-row" }, h("div", { class: "w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberGivenNames.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: NAME_PATTERN, value: this.memberGivenNames.value, onInput: (ev) => {
5846
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberNumber.errorMessage))), h("div", { class: "flex mt-3 gap-x-4 flex-col sm:flex-row" }, h("div", { class: "w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberGivenNames.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: NAME_PATTERN, "data-testid": this.memberGivenNames.testId, value: this.memberGivenNames.value, onInput: (ev) => {
5845
5847
  this.updateMemberGivenNames(ev.target.value);
5846
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberGivenNames.errorMessage))), h("div", { class: "w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberLastName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: NAME_PATTERN, value: this.memberLastName.value, onInput: (ev) => {
5848
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberGivenNames.errorMessage))), h("div", { class: "w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberLastName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, pattern: NAME_PATTERN, "data-testid": this.memberLastName.testId, value: this.memberLastName.value, onInput: (ev) => {
5847
5849
  this.updateMemberLastName(ev.target.value);
5848
5850
  } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberLastName.errorMessage)))))))), h("div", { class: "flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4" }, h("sss-button", { class: "self-stretch", fillWidth: true, variant: "primary", disabled: this.isSubmitDisabled, promiseFn: () => this.handleSubmitForm() }, "Continue"), h("sss-button", { class: "self-stretch", fillWidth: true, variant: "secondary", promiseFn: () => this.handleFundNominationDeclined() }, "Choose another fund")))));
5849
5851
  }
@@ -6082,33 +6084,34 @@ const PrefillSMSF = class {
6082
6084
  ] }), this.mode === 'review' && errorMessages.length > 0 && (h("sss-prefill-error-box", { class: "self-stretch", notificationList: errorMessages, withHeader: true })), this.mode === 'review' && (h("div", { class: "flex flex-col gap-3 self-stretch mt-4" }, h("sss-prefill-display-field", { field: this.fundName }), h("sss-prefill-display-field", { field: this.fundAbn }), h("sss-prefill-display-field", { field: this.fundEsa }), h("sss-prefill-display-field", { field: this.fundAddress }), h("sss-prefill-display-field", { field: this.memberLastName }), h("sss-prefill-display-field", { field: this.memberGivenNames }), h("div", { class: "mt-4 mb-2 text-gray-900 text-lg font-bold leading-7" }, "Fund bank details"), h("sss-prefill-display-field", { field: this.bankAccountName }), h("sss-prefill-display-field", { field: this.bankAccountBsb }), this.bankName.isValid && (h("sss-prefill-display-field", { field: this.bankName })), h("sss-prefill-display-field", { field: this.bankAccountNumber }))), this.mode === 'review' && (h("sss-button", { class: "self-stretch mt-3", fillWidth: true, variant: "secondary", promiseFn: () => this.setModeToEdit() }, h("div", { class: "flex flex-row gap-2" }, h("div", { class: "text-sm not-italic font-medium leading-4" }, "Edit details"), h("div", { class: "w-4 h-4 relative" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "16", viewBox: "0 0 17 16", fill: "currentColor" }, 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" }), h("path", { d: "M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z" })))))), this.mode === 'edit' && (h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
6083
6085
  'w-full': true,
6084
6086
  'was-validated': this.formState === 'validated'
6085
- }, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = this.formHasMissingData()) }, h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.fundName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.fundName.value, onInput: (ev) => {
6087
+ }, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = this.formHasMissingData()) }, h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.fundName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.fundName.testId, value: this.fundName.value, onInput: (ev) => {
6086
6088
  this.updateFundName(ev.target.value);
6087
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundName.errorMessage))), DisabledField(this.fundAbn.name, this.fundAbn.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.fundEsa.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, minlength: "2", value: this.fundEsa.value, onInput: (ev) => {
6089
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundName.errorMessage))), DisabledField(this.fundAbn.name, this.fundAbn.testId, this.fundAbn.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.fundEsa.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, minlength: "2", "data-testid": this.fundEsa.testId, value: this.fundEsa.value, onInput: (ev) => {
6088
6090
  this.updateFundEsa(ev.target.value);
6089
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundEsa.errorMessage))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Fund address"), h("div", { class: "mt-1 rounded-md shadow-sm -space-y-px" }, 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 border-b-0': true }), required: true, minlength: "2", name: "addressLine1", id: "addressLine1", value: this.fundAddressLine1.value, onInput: (ev) => {
6091
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.fundEsa.errorMessage))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Fund address"), h("div", { class: "mt-1 rounded-md shadow-sm -space-y-px" }, 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 border-b-0': true }), required: true, minlength: "2", name: "addressLine1", id: "addressLine1", "data-testid": this.fundAddressLine1.testId, value: this.fundAddressLine1.value, onInput: (ev) => {
6090
6092
  this.updateAddressLine1(ev.target.value);
6091
- } }), h("input", { placeholder: "Address line 2 (optional)", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none border-b-0': true }), value: this.fundAddressLine2.value, onInput: (ev) => this.updateAddressLine2(ev.target.value) }), h("input", { placeholder: "City/suburb", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none border-b-0': true }), required: true, value: this.fundAddressCity.value, onInput: (ev) => {
6093
+ } }), h("input", { placeholder: "Address line 2 (optional)", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none border-b-0': true }), "data-testid": this.fundAddressLine2.testId, value: this.fundAddressLine2.value, onInput: (ev) => this.updateAddressLine2(ev.target.value) }), h("input", { placeholder: "City/suburb", type: "text", class: Object.assign(Object.assign({}, Style.Input(this.formState === 'validated')), { 'rounded-none shadow-none border-b-0': true }), required: true, "data-testid": this.fundAddressCity.testId, value: this.fundAddressCity.value, onInput: (ev) => {
6092
6094
  this.updateAddressCity(ev.target.value);
6093
- } }), h("div", { class: "flex -space-x-px" }, h("div", { class: "w-1/2 flex-1 min-w-0" }, 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 border-r-0': true }), name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", value: this.fundAddressPostcode.value, inputmode: "numeric", onInput: (ev) => {
6095
+ } }), h("div", { class: "flex -space-x-px" }, h("div", { class: "w-1/2 flex-1 min-w-0" }, 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 border-r-0': true }), name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", "data-testid": this.fundAddressPostcode.testId, value: this.fundAddressPostcode.value, inputmode: "numeric", onInput: (ev) => {
6094
6096
  this.updateAddressPostcode(ev.target.value);
6095
- } })), h("div", { class: "flex-1 min-w-0" }, 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", onInput: (ev) => {
6097
+ } })), h("div", { class: "flex-1 min-w-0" }, 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, "data-testid": this.fundAddressState.testId, id: "state", onInput: (ev) => {
6096
6098
  this.updateAddressState(ev.target.value);
6097
6099
  } }, h("option", { disabled: true, selected: this.fundAddressState.value !== undefined, value: "" }, "State"), this.fundAddressState.options.map((s) => (h("option", { value: s.value, selected: this.fundAddressState.value === s.value }, s.label))))))), this.formState === 'validated' && (h("div", { class: "mt-2 text-sm text-red-600" }, this.fundAddressLine1.errorMessage ||
6098
6100
  this.fundAddressLine1.errorMessage ||
6099
6101
  this.fundAddressCity.errorMessage ||
6100
6102
  this.fundAddressPostcode.errorMessage ||
6101
- this.fundAddressState.errorMessage))), h("div", { class: "flex gap-x-4 flex-col sm:flex-row" }, h("div", { class: "mt-3 w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberGivenNames.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.memberGivenNames.value, onInput: (ev) => {
6103
+ this.fundAddressState.errorMessage))), h("div", { class: "flex gap-x-4 flex-col sm:flex-row" }, h("div", { class: "mt-3 w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberGivenNames.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.memberGivenNames.testId, value: this.memberGivenNames.value, onInput: (ev) => {
6102
6104
  this.updateMemberGivenNames(ev.target.value);
6103
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberGivenNames.errorMessage))), h("div", { class: "mt-3 w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberLastName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.memberLastName.value, onInput: (ev) => {
6105
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberGivenNames.errorMessage))), h("div", { class: "mt-3 w-full sm:w-1/2" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.memberLastName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.memberLastName.testId, value: this.memberLastName.value, onInput: (ev) => {
6104
6106
  this.updateMemberLastName(ev.target.value);
6105
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberLastName.errorMessage)))), h("div", { class: "mt-6 text-gray-900 text-lg font-bold leading-7" }, "Fund bank details"), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountName.value, onInput: (ev) => {
6107
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.memberLastName.errorMessage)))), h("div", { class: "mt-6 text-gray-900 text-lg font-bold leading-7" }, "Fund bank details"), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountName.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.bankAccountName.testId, value: this.bankAccountName.value, onInput: (ev) => {
6106
6108
  this.updateBankAccountName(ev.target.value);
6107
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountName.errorMessage))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountBsb.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountBsb.value, onInput: (ev) => {
6109
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountName.errorMessage))), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountBsb.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.bankAccountBsb.testId, value: this.bankAccountBsb.value, onInput: (ev) => {
6108
6110
  const bsb = ev.target.value;
6109
6111
  this.updateBankName(bsb);
6110
6112
  this.updateBankAccountBsb(bsb);
6111
- } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountBsb.errorMessage))), this.bankName.isValid && DisabledField(this.bankName.name, this.bankName.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountNumber.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, value: this.bankAccountNumber.value, onInput: (ev) => {
6113
+ } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountBsb.errorMessage))), this.bankName.isValid &&
6114
+ DisabledField(this.bankName.name, this.bankName.testId, this.bankName.value), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, this.bankAccountNumber.name), h("div", { class: "mt-1" }, h("input", { type: "text", class: Style.Input(this.formState === 'validated'), required: true, "data-testid": this.bankAccountNumber.testId, value: this.bankAccountNumber.value, onInput: (ev) => {
6112
6115
  this.updateBankAccountNumber(ev.target.value);
6113
6116
  } }), h("div", { class: "mt-2 text-sm text-red-600" }, this.formState === 'validated' && this.bankAccountNumber.errorMessage))))))), h("div", { class: "flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4" }, h("sss-button", { class: "self-stretch", fillWidth: true, variant: "primary", disabled: this.isSubmitDisabled, promiseFn: () => this.handleSubmitForm() }, "Continue"), h("sss-button", { class: "self-stretch", fillWidth: true, variant: "secondary", promiseFn: () => this.handleFundNominationDeclined() }, "Make another nomination")))));
6114
6117
  }
@@ -16852,10 +16855,13 @@ const SuperCampaignHost = class {
16852
16855
  const discriminator = window.location.hostname.toLowerCase().split('.')[0];
16853
16856
  switch (discriminator) {
16854
16857
  case 'autodev-partner':
16858
+ return 'autodev';
16855
16859
  case 'test-partner':
16860
+ return 'test';
16856
16861
  case 'partner':
16862
+ return 'prod';
16857
16863
  case 'sandbox-partner':
16858
- return discriminator.replace('partner', '').replace('-', '');
16864
+ return 'sandbox';
16859
16865
  default:
16860
16866
  return 'autodev';
16861
16867
  }