@saasquatch/mint-components 2.5.9-1 → 2.5.10-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +30 -22
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +4 -4
  3. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +1 -1
  4. package/dist/cjs/sqm-stencilbook.cjs.entry.js +61 -5
  5. package/dist/cjs/{sqm-user-info-form-view-b2a78083.js → sqm-user-info-form-view-df5b95be.js} +6 -2
  6. package/dist/cjs/{useIndirectTaxForm-c5f31c83.js → useIndirectTaxForm-76b94531.js} +2 -1
  7. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +1 -1
  8. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +55 -2
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +6 -2
  10. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +10 -10
  11. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
  12. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +6 -2
  13. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +11 -11
  14. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -1
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +1 -1
  17. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  18. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -1
  19. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  20. package/dist/esm/sqm-banking-info-form_10.entry.js +30 -22
  21. package/dist/esm/sqm-big-stat_47.entry.js +4 -4
  22. package/dist/esm/sqm-email-verification_2.entry.js +1 -1
  23. package/dist/esm/sqm-stencilbook.entry.js +61 -5
  24. package/dist/esm/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-d35324ba.js} +6 -2
  25. package/dist/esm/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-6ea561e4.js} +2 -1
  26. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  27. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  28. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  29. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  30. package/dist/esm-es5/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-d35324ba.js} +1 -1
  31. package/dist/esm-es5/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-6ea561e4.js} +2 -2
  32. package/dist/mint-components/mint-components.esm.js +1 -1
  33. package/dist/mint-components/{p-51c9df1e.system.js → p-1cb0fc65.system.js} +2 -2
  34. package/dist/mint-components/{p-60c70417.js → p-2401753b.js} +1 -1
  35. package/dist/mint-components/p-4314e5c9.entry.js +147 -0
  36. package/dist/mint-components/p-477fe6fa.system.entry.js +1 -0
  37. package/dist/mint-components/{p-71a5086d.js → p-59f9d9bb.js} +1 -1
  38. package/dist/mint-components/{p-33075c60.system.entry.js → p-615dbc66.system.entry.js} +1 -1
  39. package/dist/mint-components/{p-9ccb9494.system.js → p-98659a12.system.js} +1 -1
  40. package/dist/mint-components/p-9e90f38e.entry.js +83 -0
  41. package/dist/mint-components/{p-3a5e63e3.entry.js → p-aaf05ef1.entry.js} +2 -2
  42. package/dist/mint-components/{p-787a7b1a.system.entry.js → p-d93b8c88.system.entry.js} +1 -1
  43. package/dist/mint-components/p-db8e74e0.system.entry.js +1 -0
  44. package/dist/mint-components/{p-ab326835.entry.js → p-e50bc470.entry.js} +1 -1
  45. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  46. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
  47. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -4
  48. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  49. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -4
  50. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
  51. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -4
  52. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -4
  53. package/dist/types/components.d.ts +32 -32
  54. package/docs/docs.docx +0 -0
  55. package/docs/raisins.json +1 -1
  56. package/docs/stats.json +208 -206
  57. package/grapesjs/grapesjs.js +1 -1
  58. package/package.json +1 -1
  59. package/dist/mint-components/p-197eaa29.system.entry.js +0 -1
  60. package/dist/mint-components/p-e0f614a2.entry.js +0 -147
  61. package/dist/mint-components/p-f05c18b9.system.entry.js +0 -1
  62. package/dist/mint-components/p-fabc805a.entry.js +0 -83
@@ -137,6 +137,7 @@ const stepTwoProps = {
137
137
  loading: false,
138
138
  isPartner: false,
139
139
  isPartnerLegacy: false,
140
+ email: "test@example.com",
140
141
  loadingError: false,
141
142
  formState: {
142
143
  checked: undefined,
@@ -307,12 +308,17 @@ export const StepOneDisabled = () => {
307
308
  };
308
309
  export const StepOneIsUser = () => {
309
310
  return (h("sqm-user-info-form", { demoData: {
310
- states: { ...stepOneProps.states, isUser: true },
311
+ states: { ...stepOneProps.states, isUser: true, isUserLegacy: true },
311
312
  } }));
312
313
  };
313
314
  export const StepOneIsPartner = () => {
314
315
  return (h("sqm-user-info-form", { demoData: {
315
- states: { ...stepOneProps.states, disabled: true, isPartner: true },
316
+ states: {
317
+ ...stepOneProps.states,
318
+ disabled: true,
319
+ isPartner: true,
320
+ isPartnerLegacy: true,
321
+ },
316
322
  } }));
317
323
  };
318
324
  export const StepOneWithErrors = () => {
@@ -347,6 +353,22 @@ export const StepOneWithGeneralError = () => {
347
353
  },
348
354
  } }));
349
355
  };
356
+ export const StepOneIsPartnerWithGeneralError = () => {
357
+ return (h("sqm-user-info-form", { demoData: {
358
+ states: {
359
+ ...stepOneProps.states,
360
+ disabled: true,
361
+ isPartner: true,
362
+ isPartnerLegacy: true,
363
+ formState: {
364
+ ...stepOneProps.states.formState,
365
+ errors: {
366
+ general: true,
367
+ },
368
+ },
369
+ },
370
+ } }));
371
+ };
350
372
  export const StepOneWithLoadingError = () => {
351
373
  return (h("sqm-user-info-form", { demoData: {
352
374
  states: {
@@ -390,6 +412,7 @@ export const StepTwoIsPartner = () => {
390
412
  states: {
391
413
  ...stepTwoProps.states,
392
414
  isPartner: true,
415
+ isPartnerLegacy: true,
393
416
  },
394
417
  } }));
395
418
  };
@@ -406,6 +429,21 @@ export const StepTwoWithGeneralError = () => {
406
429
  },
407
430
  } }));
408
431
  };
432
+ export const StepTwoIsPartnerWithGeneralError = () => {
433
+ return (h("sqm-indirect-tax-form", { demoData: {
434
+ states: {
435
+ ...stepTwoProps.states,
436
+ isPartner: true,
437
+ isPartnerLegacy: true,
438
+ formState: {
439
+ ...stepTwoProps.states.formState,
440
+ errors: {
441
+ general: true,
442
+ },
443
+ },
444
+ },
445
+ } }));
446
+ };
409
447
  export const StepTwoOtherRegionChecked = () => {
410
448
  return (h("sqm-indirect-tax-form", { demoData: {
411
449
  states: {
@@ -760,6 +798,21 @@ export const StepFourIsPartner = () => {
760
798
  },
761
799
  } }));
762
800
  };
801
+ export const StepFourIsPartnerWithGeneralError = () => {
802
+ return (h("sqm-banking-info-form", { demoData: {
803
+ ...stepFourProps,
804
+ states: {
805
+ ...stepFourProps.states,
806
+ isPartner: true,
807
+ formState: {
808
+ ...stepFourProps.states.formState,
809
+ errors: {
810
+ general: true,
811
+ },
812
+ },
813
+ },
814
+ } }));
815
+ };
763
816
  export const StepFourDirectToBankChecked = () => {
764
817
  return (h("sqm-banking-info-form", { demoData: {
765
818
  ...stepFourProps,
@@ -185,12 +185,16 @@ export const BankingInfoFormView = (props) => {
185
185
  defaultMessage: text.error.generalDescription,
186
186
  }, {
187
187
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
188
- }))), states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info" }, h("p", { part: "alert-title" }, text.isPartnerAlertHeader), intl.formatMessage({
188
+ }))), states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info", transparent: true }, h("p", { part: "alert-title" }, intl.formatMessage({
189
+ id: "isPartnerAlertHeader",
190
+ defaultMessage: text.isPartnerAlertHeader,
191
+ }, { emailAddress: states.email || "" })), h("p", null, intl.formatMessage({
189
192
  id: "isPartnerAlertDescription",
190
193
  defaultMessage: text.isPartnerAlertDescription,
191
194
  }, {
195
+ emailAddress: states.email || "",
192
196
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
193
- }))), h("div", null, h("h4", null, text.paymentMethod), h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))), h("div", null, h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (h("div", { class: classes.RadioContainer }, states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)), formState.paymentMethodChecked === "toBankAccount" && (h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
197
+ })))), h("div", null, h("h4", null, text.paymentMethod), h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))), h("div", null, h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (h("div", { class: classes.RadioContainer }, states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)), formState.paymentMethodChecked === "toBankAccount" && (h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
194
198
  ? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
195
199
  : [
196
200
  slots.countryInputSlot,
@@ -64,12 +64,12 @@ export class BankingInfoForm {
64
64
  this.eftWithdrawalLabel = "EFT withdrawal (free)";
65
65
  this.fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
66
66
  this.searchForCountryText = "Search for country..";
67
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
68
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
67
+ this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
68
+ this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
69
69
  this.verifyEmailHeaderText = "Verify your email";
70
70
  this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
71
71
  this.generalErrorTitle = "There was a problem submitting your information";
72
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
72
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
73
73
  this.fieldRequiredError = "{fieldName} is required";
74
74
  this.fieldInvalidError = "{fieldName} is invalid";
75
75
  this.supportLink = "support team";
@@ -1272,16 +1272,16 @@ export class BankingInfoForm {
1272
1272
  "docs": {
1273
1273
  "tags": [{
1274
1274
  "name": "uiName",
1275
- "text": "Participant is a partner alert title"
1275
+ "text": "Existing account alert title"
1276
1276
  }, {
1277
1277
  "name": "uiWidget",
1278
1278
  "text": "textArea"
1279
1279
  }],
1280
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
1280
+ "text": "Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email."
1281
1281
  },
1282
1282
  "attribute": "is-partner-alert-header",
1283
1283
  "reflect": false,
1284
- "defaultValue": "\"An account with this email already exists with our referral program provider, impact.com\""
1284
+ "defaultValue": "\"Your email {emailAddress} already has an impact.com account\""
1285
1285
  },
1286
1286
  "isPartnerAlertDescription": {
1287
1287
  "type": "string",
@@ -1296,16 +1296,16 @@ export class BankingInfoForm {
1296
1296
  "docs": {
1297
1297
  "tags": [{
1298
1298
  "name": "uiName",
1299
- "text": "Participant is a partner alert description"
1299
+ "text": "Existing account alert description"
1300
1300
  }, {
1301
1301
  "name": "uiWidget",
1302
1302
  "text": "textArea"
1303
1303
  }],
1304
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
1304
+ "text": "Part of the info message displayed at the top of the form if the participant already has an impact.com account."
1305
1305
  },
1306
1306
  "attribute": "is-partner-alert-description",
1307
1307
  "reflect": false,
1308
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.\""
1308
+ "defaultValue": "\"This is normal if you\u2019ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.\""
1309
1309
  },
1310
1310
  "verifyEmailHeaderText": {
1311
1311
  "type": "string",
@@ -1395,7 +1395,7 @@ export class BankingInfoForm {
1395
1395
  },
1396
1396
  "attribute": "general-error-description",
1397
1397
  "reflect": false,
1398
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
1398
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
1399
1399
  },
1400
1400
  "fieldRequiredError": {
1401
1401
  "type": "string",
@@ -30,7 +30,7 @@ export class DocusignForm {
30
30
  this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
31
31
  this.refreshButton = "Refresh Page";
32
32
  this.generalErrorTitle = "There was a problem submitting your information";
33
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
33
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
34
34
  this.loadingErrorAlertHeader = "There was a problem loading your form";
35
35
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
36
36
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
@@ -434,7 +434,7 @@ export class DocusignForm {
434
434
  },
435
435
  "attribute": "general-error-description",
436
436
  "reflect": false,
437
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
437
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
438
438
  },
439
439
  "loadingErrorAlertHeader": {
440
440
  "type": "string",
@@ -138,12 +138,16 @@ export const IndirectTaxFormView = (props) => {
138
138
  defaultMessage: text.error.generalDescription,
139
139
  }, {
140
140
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
141
- }))), states.isPartnerLegacy && (h("sqm-form-message", { loading: states.loading, type: "info" }, h("p", { part: "alert-title" }, text.isPartnerAlertHeader), intl.formatMessage({
141
+ }))), states.isPartnerLegacy && (h("sqm-form-message", { type: "info", transparent: true }, h("p", { part: "alert-title" }, intl.formatMessage({
142
+ id: "isPartnerAlertHeader",
143
+ defaultMessage: text.isPartnerAlertHeader,
144
+ }, { emailAddress: states.email || "" })), h("p", null, intl.formatMessage({
142
145
  id: "isPartnerAlertDescription",
143
146
  defaultMessage: text.isPartnerAlertDescription,
144
147
  }, {
148
+ emailAddress: states.email || "",
145
149
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
146
- }))), h("div", null, h("h4", null, text.indirectTaxDetails))), states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null, h("div", { class: classes.RadioContainer }, h("div", { class: classes.InnerRadioContainer }, h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled }, h("div", { class: classes.RadioContent }, text.notRegistered, h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))), h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled }, h("div", { class: classes.RadioContent }, text.otherRegion, h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))), slots.registeredInDifferentCountryDetailsSlot)), h("sqm-form-message", { type: "info" }, intl.formatMessage({
150
+ })))), h("div", null, h("h4", null, text.indirectTaxDetails))), states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null, h("div", { class: classes.RadioContainer }, h("div", { class: classes.InnerRadioContainer }, h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled }, h("div", { class: classes.RadioContent }, text.notRegistered, h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))), h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled }, h("div", { class: classes.RadioContent }, text.otherRegion, h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))), slots.registeredInDifferentCountryDetailsSlot)), h("sqm-form-message", { type: "info", transparent: true }, intl.formatMessage({
147
151
  id: "cannotChangeInfoAlert",
148
152
  defaultMessage: text.cannotChangeInfoAlert,
149
153
  }, {
@@ -41,12 +41,12 @@ export class IndirectTaxForm {
41
41
  this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
42
42
  this.searchForCountryText = "Search for country..";
43
43
  this.fieldRequiredError = "{fieldName} is required";
44
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
45
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
44
+ this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
45
+ this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
46
46
  this.continueButton = "Continue";
47
47
  this.supportLink = "support team";
48
48
  this.generalErrorTitle = "There was a problem submitting your information";
49
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
49
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
50
50
  this.loadingErrorAlertHeader = "There was a problem loading your form";
51
51
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
52
52
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
@@ -575,16 +575,16 @@ export class IndirectTaxForm {
575
575
  "docs": {
576
576
  "tags": [{
577
577
  "name": "uiName",
578
- "text": "Participant is a partner alert title"
578
+ "text": "Existing account alert title"
579
579
  }, {
580
580
  "name": "uiWidget",
581
581
  "text": "textArea"
582
582
  }],
583
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
583
+ "text": "Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email."
584
584
  },
585
585
  "attribute": "is-partner-alert-header",
586
586
  "reflect": false,
587
- "defaultValue": "\"An account with this email already exists with our referral program provider, impact.com\""
587
+ "defaultValue": "\"Your email {emailAddress} already has an impact.com account\""
588
588
  },
589
589
  "isPartnerAlertDescription": {
590
590
  "type": "string",
@@ -599,16 +599,16 @@ export class IndirectTaxForm {
599
599
  "docs": {
600
600
  "tags": [{
601
601
  "name": "uiName",
602
- "text": "Participant is a partner alert description"
602
+ "text": "Existing account alert description"
603
603
  }, {
604
604
  "name": "uiWidget",
605
605
  "text": "textArea"
606
606
  }],
607
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
607
+ "text": "Part of the info message displayed at the top of the form if the participant already has an impact.com account."
608
608
  },
609
609
  "attribute": "is-partner-alert-description",
610
610
  "reflect": false,
611
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.\""
611
+ "defaultValue": "\"This is normal if you\u2019ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.\""
612
612
  },
613
613
  "continueButton": {
614
614
  "type": "string",
@@ -698,7 +698,7 @@ export class IndirectTaxForm {
698
698
  },
699
699
  "attribute": "general-error-description",
700
700
  "reflect": false,
701
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
701
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
702
702
  },
703
703
  "loadingErrorAlertHeader": {
704
704
  "type": "string",
@@ -774,7 +774,7 @@ export class IndirectTaxForm {
774
774
  "mutable": false,
775
775
  "complexType": {
776
776
  "original": "DemoData<UseIndirectTaxFormResult>",
777
- "resolved": "{ data?: { esRegions: { regionCode: string; taxType: string; displayName: string; }[]; countries: { countryCode: string; displayName: string; }[]; allCountries: { countryCode: string; displayName: string; }[]; provinces: { regionCode: string; taxType: string; displayName: string; }[]; }; states?: { step: string; hideSteps: boolean; disabled: boolean; loading: boolean; isPartner: boolean; isPartnerLegacy: boolean; loadingError: boolean; formState: { checked: \"hstCanada\" | \"otherRegion\" | \"notRegistered\"; errors: {}; }; }; refs?: { formRef: Ref<HTMLFormElement>; }; slotProps?: { formState: { selectedRegion?: string; subRegion?: string; subRegionTaxNumber?: string; qstNumber?: string; province?: string; indirectTaxNumber?: string; hasQst?: boolean; hasSubRegionTaxNumber?: boolean; errors?: any; error?: string; }; }; }",
777
+ "resolved": "{ data?: { esRegions: { regionCode: string; taxType: string; displayName: string; }[]; countries: { countryCode: string; displayName: string; }[]; allCountries: { countryCode: string; displayName: string; }[]; provinces: { regionCode: string; taxType: string; displayName: string; }[]; }; states?: { step: string; hideSteps: boolean; disabled: boolean; loading: boolean; isPartner: boolean; isPartnerLegacy: boolean; email: string; loadingError: boolean; formState: { checked: \"hstCanada\" | \"otherRegion\" | \"notRegistered\"; errors: {}; }; }; refs?: { formRef: Ref<HTMLFormElement>; }; slotProps?: { formState: { selectedRegion?: string; subRegion?: string; subRegionTaxNumber?: string; qstNumber?: string; province?: string; indirectTaxNumber?: string; hasQst?: boolean; hasSubRegionTaxNumber?: boolean; errors?: any; error?: string; }; }; }",
778
778
  "references": {
779
779
  "DemoData": {
780
780
  "location": "import",
@@ -71,7 +71,7 @@ function getOption(countries, countryCode) {
71
71
  }
72
72
  }
73
73
  export function useIndirectTaxForm(props) {
74
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
74
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
75
75
  const user = useUserIdentity();
76
76
  const locale = useLocale();
77
77
  const formRef = useRef(null);
@@ -262,6 +262,7 @@ export function useIndirectTaxForm(props) {
262
262
  isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
263
263
  isPartnerLegacy: !!((_g = (_f = userData === null || userData === void 0 ? void 0 : userData.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) &&
264
264
  ((_j = (_h = userData === null || userData === void 0 ? void 0 : userData.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.connectionStatus) !== "STARTED",
265
+ email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || ((_k = userData === null || userData === void 0 ? void 0 : userData.user) === null || _k === void 0 ? void 0 : _k.email),
265
266
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
266
267
  formState: {
267
268
  checked: option,
@@ -198,15 +198,15 @@ export class TaxAndCashMonolith {
198
198
  this.dashboard_w9RequiredButtonText = "Submit W-9";
199
199
  this.formStep = "Step {step} of {count}";
200
200
  this.generalErrorTitle = "There was a problem submitting your information";
201
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
201
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
202
202
  this.fieldRequiredError = "{fieldName} is required";
203
203
  this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
204
204
  this.fieldInvalidError = "{fieldName} is invalid";
205
205
  this.continueButton = "Continue";
206
206
  this.backButton = "Back";
207
207
  this.cancelButton = "Cancel";
208
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
209
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
208
+ this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
209
+ this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
210
210
  this.searchForCountryText = "Search for country..";
211
211
  this.loadingErrorAlertHeader = "There was a problem loading your form";
212
212
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
@@ -4614,7 +4614,7 @@ export class TaxAndCashMonolith {
4614
4614
  },
4615
4615
  "attribute": "general-error-description",
4616
4616
  "reflect": false,
4617
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
4617
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
4618
4618
  },
4619
4619
  "fieldRequiredError": {
4620
4620
  "type": "string",
@@ -4773,7 +4773,7 @@ export class TaxAndCashMonolith {
4773
4773
  "docs": {
4774
4774
  "tags": [{
4775
4775
  "name": "uiName",
4776
- "text": "Participant is a partner alert title"
4776
+ "text": "Existing account alert title"
4777
4777
  }, {
4778
4778
  "name": "uiGroup",
4779
4779
  "text": "General Form Properties"
@@ -4781,11 +4781,11 @@ export class TaxAndCashMonolith {
4781
4781
  "name": "uiWidget",
4782
4782
  "text": "textArea"
4783
4783
  }],
4784
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
4784
+ "text": "Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email."
4785
4785
  },
4786
4786
  "attribute": "is-partner-alert-header",
4787
4787
  "reflect": false,
4788
- "defaultValue": "\"An account with this email already exists with our referral program provider, impact.com\""
4788
+ "defaultValue": "\"Your email {emailAddress} already has an impact.com account\""
4789
4789
  },
4790
4790
  "isPartnerAlertDescription": {
4791
4791
  "type": "string",
@@ -4800,7 +4800,7 @@ export class TaxAndCashMonolith {
4800
4800
  "docs": {
4801
4801
  "tags": [{
4802
4802
  "name": "uiName",
4803
- "text": "Participant is a partner alert description"
4803
+ "text": "Existing account alert description"
4804
4804
  }, {
4805
4805
  "name": "uiGroup",
4806
4806
  "text": "General Form Properties"
@@ -4808,11 +4808,11 @@ export class TaxAndCashMonolith {
4808
4808
  "name": "uiWidget",
4809
4809
  "text": "textArea"
4810
4810
  }],
4811
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
4811
+ "text": "Part of the info message displayed at the top of the form if the participant already has an impact.com account."
4812
4812
  },
4813
4813
  "attribute": "is-partner-alert-description",
4814
4814
  "reflect": false,
4815
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.\""
4815
+ "defaultValue": "\"This is normal if you\u2019ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.\""
4816
4816
  },
4817
4817
  "searchForCountryText": {
4818
4818
  "type": "string",
@@ -82,7 +82,7 @@ const defaultText = {
82
82
  termsAndConditions: "Terms and Conditions",
83
83
  error: {
84
84
  generalTitle: "There was a problem submitting your information",
85
- generalDescription: "Please review your information and try again. If this problem continues, contact our {supportLink}.",
85
+ generalDescription: "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.",
86
86
  loadingErrorAlertHeader: "There was a problem loading your form",
87
87
  loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our {supportLink}.",
88
88
  },
@@ -80,7 +80,7 @@ export class TaxAndCashDashboard {
80
80
  this.termsAndConditions = "Terms and Conditions";
81
81
  this.w9RequiredButtonText = "Submit W-9";
82
82
  this.generalErrorTitle = "There was a problem submitting your information";
83
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
83
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
84
84
  this.payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
85
85
  this.loadingErrorAlertHeader = "There was a problem loading your form";
86
86
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
@@ -1527,7 +1527,7 @@ export class TaxAndCashDashboard {
1527
1527
  },
1528
1528
  "attribute": "general-error-description",
1529
1529
  "reflect": false,
1530
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
1530
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
1531
1531
  },
1532
1532
  "payoutFromImpact": {
1533
1533
  "type": "string",
@@ -317,10 +317,14 @@ export const UserInfoFormView = (props) => {
317
317
  defaultMessage: text.error.generalDescription,
318
318
  }, {
319
319
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
320
- })))), (states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" }, h("p", { part: "alert-title" }, text.isPartnerAlertHeader), h("p", { part: "alert-description" }, intl.formatMessage({
320
+ })))), (states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info", transparent: true }, h("p", { part: "alert-title" }, intl.formatMessage({
321
+ id: "isPartnerAlertHeader",
322
+ defaultMessage: text.isPartnerAlertHeader,
323
+ }, { emailAddress: formState.email || "" })), h("p", { part: "alert-description" }, intl.formatMessage({
321
324
  id: "isPartnerAlertDescription",
322
325
  defaultMessage: text.isPartnerAlertDescription,
323
326
  }, {
327
+ emailAddress: formState.email || "",
324
328
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
325
329
  })))), h("div", null, h("div", { class: classes.InputContainer }, h("sl-input", { class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName"), ...(((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName)
326
330
  ? {
@@ -34,10 +34,10 @@ export class TaxForm {
34
34
  this.formStep = "Step {step} of {count}";
35
35
  this.personalInformation = "Personal Information";
36
36
  this.continueButton = "Continue";
37
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
38
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
37
+ this.isPartnerAlertHeader = "Your email {emailAddress} already has an impact.com account";
38
+ this.isPartnerAlertDescription = "This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.";
39
39
  this.generalErrorTitle = "There was a problem submitting your information";
40
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
40
+ this.generalErrorDescription = "This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.";
41
41
  this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
42
42
  this.termsAndConditionsLabel = "terms and conditions";
43
43
  this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
@@ -408,16 +408,16 @@ export class TaxForm {
408
408
  "docs": {
409
409
  "tags": [{
410
410
  "name": "uiName",
411
- "text": "Participant is a partner alert title"
411
+ "text": "Existing account alert title"
412
412
  }, {
413
413
  "name": "uiWidget",
414
414
  "text": "textArea"
415
415
  }],
416
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
416
+ "text": "Title of the info message displayed at the top of the form if the participant already has an impact.com account. Use {emailAddress} to show the participant's email."
417
417
  },
418
418
  "attribute": "is-partner-alert-header",
419
419
  "reflect": false,
420
- "defaultValue": "\"An account with this email already exists with our referral program provider, impact.com\""
420
+ "defaultValue": "\"Your email {emailAddress} already has an impact.com account\""
421
421
  },
422
422
  "isPartnerAlertDescription": {
423
423
  "type": "string",
@@ -432,16 +432,16 @@ export class TaxForm {
432
432
  "docs": {
433
433
  "tags": [{
434
434
  "name": "uiName",
435
- "text": "Participant is a partner alert description"
435
+ "text": "Existing account alert description"
436
436
  }, {
437
437
  "name": "uiWidget",
438
438
  "text": "textArea"
439
439
  }],
440
- "text": "Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com."
440
+ "text": "Part of the info message displayed at the top of the form if the participant already has an impact.com account."
441
441
  },
442
442
  "attribute": "is-partner-alert-description",
443
443
  "reflect": false,
444
- "defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.\""
444
+ "defaultValue": "\"This is normal if you\u2019ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue.\""
445
445
  },
446
446
  "generalErrorTitle": {
447
447
  "type": "string",
@@ -489,7 +489,7 @@ export class TaxForm {
489
489
  },
490
490
  "attribute": "general-error-description",
491
491
  "reflect": false,
492
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
492
+ "defaultValue": "\"This is usually temporary. Please review your information and try again in a few minutes. If the problem continues, contact our {supportLink}.\""
493
493
  },
494
494
  "allowBankingCollection": {
495
495
  "type": "string",