@saasquatch/mint-components 2.5.9 → 2.5.10

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 (69) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +44 -38
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +5 -5
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +63 -6
  4. package/dist/cjs/{sqm-user-info-form-view-b2a78083.js → sqm-user-info-form-view-9b773a7c.js} +7 -3
  5. package/dist/cjs/{subregions-fd4e4ee2.js → subregions-77aac151.js} +8 -0
  6. package/dist/cjs/{useIndirectTaxForm-c5f31c83.js → useIndirectTaxForm-102d5c24.js} +2 -1
  7. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +56 -2
  8. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +6 -2
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -11
  10. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
  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/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
  21. package/dist/collection/components/tax-and-cash/utils.js +7 -0
  22. package/dist/esm/sqm-banking-info-form_10.entry.js +44 -38
  23. package/dist/esm/sqm-big-stat_47.entry.js +5 -5
  24. package/dist/esm/sqm-stencilbook.entry.js +63 -6
  25. package/dist/esm/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +7 -3
  26. package/dist/esm/{subregions-c7df98a1.js → subregions-ec4682c7.js} +8 -1
  27. package/dist/esm/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -1
  28. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  29. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  30. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  31. package/dist/esm-es5/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +1 -1
  32. package/dist/esm-es5/{subregions-c7df98a1.js → subregions-ec4682c7.js} +1 -1
  33. package/dist/esm-es5/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -2
  34. package/dist/mint-components/mint-components.esm.js +1 -1
  35. package/dist/mint-components/{p-3a5e63e3.entry.js → p-24d56265.entry.js} +2 -2
  36. package/dist/mint-components/p-2bd3f2ac.system.js +6 -0
  37. package/dist/mint-components/p-363bf460.system.entry.js +1 -0
  38. package/dist/mint-components/{p-9ccb9494.system.js → p-3dc446ec.system.js} +1 -1
  39. package/dist/mint-components/{p-089c0803.js → p-461a068d.js} +1 -1
  40. package/dist/mint-components/p-71b1cd71.entry.js +83 -0
  41. package/dist/mint-components/p-99d4ddee.js +107 -0
  42. package/dist/mint-components/p-b1d6a6f2.system.js +1 -0
  43. package/dist/mint-components/p-c0e26b94.entry.js +147 -0
  44. package/dist/mint-components/{p-33075c60.system.entry.js → p-df62cb1b.system.entry.js} +1 -1
  45. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  46. package/dist/mint-components/p-ec78006c.system.entry.js +1 -0
  47. package/dist/mint-components/{p-60c70417.js → p-f15ad5b6.js} +1 -1
  48. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
  49. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  50. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -4
  51. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  52. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -4
  53. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
  54. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -4
  55. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -4
  56. package/dist/types/components/tax-and-cash/utils.d.ts +3 -1
  57. package/dist/types/components.d.ts +32 -32
  58. package/docs/docs.docx +0 -0
  59. package/docs/raisins.json +1 -1
  60. package/docs/stats.json +279 -276
  61. package/grapesjs/grapesjs.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/mint-components/p-197eaa29.system.entry.js +0 -1
  64. package/dist/mint-components/p-51c9df1e.system.js +0 -6
  65. package/dist/mint-components/p-71a5086d.js +0 -107
  66. package/dist/mint-components/p-e0f614a2.entry.js +0 -147
  67. package/dist/mint-components/p-ed18f6a0.system.js +0 -1
  68. package/dist/mint-components/p-f05c18b9.system.entry.js +0 -1
  69. package/dist/mint-components/p-fabc805a.entry.js +0 -83
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-d41c2c94.js');
4
4
  const JSS = require('./JSS-bf8078e9.js');
5
5
  const global = require('./global-0316d9f8.js');
6
- const subregions = require('./subregions-fd4e4ee2.js');
6
+ const subregions = require('./subregions-77aac151.js');
7
7
  const data = require('./data-7ea0e395.js');
8
8
  const AsYouType = require('./AsYouType-5f15a922.js');
9
9
 
@@ -2287,12 +2287,16 @@ const UserInfoFormView = (props) => {
2287
2287
  }, {
2288
2288
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2289
2289
  })))),
2290
- (states.isPartnerLegacy || states.isUserLegacy) && (index.h("sqm-form-message", { loading: states.loading, type: "info" },
2291
- index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
2290
+ (states.isPartnerLegacy || states.isUserLegacy) && (index.h("sqm-form-message", { loading: states.loading, type: "info", transparent: true },
2291
+ index.h("p", { part: "alert-title" }, global.intl.formatMessage({
2292
+ id: "isPartnerAlertHeader",
2293
+ defaultMessage: text.isPartnerAlertHeader,
2294
+ }, { emailAddress: formState.email || "" })),
2292
2295
  index.h("p", { part: "alert-description" }, global.intl.formatMessage({
2293
2296
  id: "isPartnerAlertDescription",
2294
2297
  defaultMessage: text.isPartnerAlertDescription,
2295
2298
  }, {
2299
+ emailAddress: formState.email || "",
2296
2300
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2297
2301
  })))),
2298
2302
  index.h("div", null,
@@ -900,6 +900,13 @@ function parsePhoneNumber() {
900
900
  return withMetadataArgument(parsePhoneNumber$1, arguments)
901
901
  }
902
902
 
903
+ /** Managed identity email once verified, else the profile email. */
904
+ function getParticipantEmail(user) {
905
+ var _a;
906
+ return ((_a = user === null || user === void 0 ? void 0 : user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)
907
+ ? user.managedIdentity.email
908
+ : user === null || user === void 0 ? void 0 : user.email;
909
+ }
903
910
  /**
904
911
  * Normalize user input to the domestic form Impact stores: digits only,
905
912
  * with the country dial code and trunk-zero prefix removed.
@@ -1458,6 +1465,7 @@ exports.LoadingView = LoadingView;
1458
1465
  exports.formatErrorMessage = formatErrorMessage;
1459
1466
  exports.formatPayoutThreshold = formatPayoutThreshold;
1460
1467
  exports.getCountryObj = getCountryObj;
1468
+ exports.getParticipantEmail = getParticipantEmail;
1461
1469
  exports.isBalanceUnderPayoutThreshold = isBalanceUnderPayoutThreshold;
1462
1470
  exports.isValidI18nPhoneNumber = isValidI18nPhoneNumber;
1463
1471
  exports.objectIsFull = objectIsFull;
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-88a40938.js');
4
4
  const domContextHooks_module = require('./dom-context-hooks.module-735c3942.js');
5
5
  const parseStates = require('./parseStates-35013ba4.js');
6
- const subregions = require('./subregions-fd4e4ee2.js');
6
+ const subregions = require('./subregions-77aac151.js');
7
7
  const jsonpointer = require('./jsonpointer-0db21316.js');
8
8
  const data = require('./data-7ea0e395.js');
9
9
 
@@ -1372,6 +1372,7 @@ function useIndirectTaxForm(props) {
1372
1372
  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),
1373
1373
  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) &&
1374
1374
  ((_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",
1375
+ email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || subregions.getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
1375
1376
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
1376
1377
  formState: {
1377
1378
  checked: option,
@@ -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,
@@ -213,6 +214,7 @@ const stepFourProps = {
213
214
  thresholds: [],
214
215
  loadingError: false,
215
216
  email: "test@example.com",
217
+ partnerEmail: "test@example.com",
216
218
  formState: {
217
219
  paymentMethodChecked: "toBankAccount",
218
220
  },
@@ -307,12 +309,17 @@ export const StepOneDisabled = () => {
307
309
  };
308
310
  export const StepOneIsUser = () => {
309
311
  return (h("sqm-user-info-form", { demoData: {
310
- states: { ...stepOneProps.states, isUser: true },
312
+ states: { ...stepOneProps.states, isUser: true, isUserLegacy: true },
311
313
  } }));
312
314
  };
313
315
  export const StepOneIsPartner = () => {
314
316
  return (h("sqm-user-info-form", { demoData: {
315
- states: { ...stepOneProps.states, disabled: true, isPartner: true },
317
+ states: {
318
+ ...stepOneProps.states,
319
+ disabled: true,
320
+ isPartner: true,
321
+ isPartnerLegacy: true,
322
+ },
316
323
  } }));
317
324
  };
318
325
  export const StepOneWithErrors = () => {
@@ -347,6 +354,22 @@ export const StepOneWithGeneralError = () => {
347
354
  },
348
355
  } }));
349
356
  };
357
+ export const StepOneIsPartnerWithGeneralError = () => {
358
+ return (h("sqm-user-info-form", { demoData: {
359
+ states: {
360
+ ...stepOneProps.states,
361
+ disabled: true,
362
+ isPartner: true,
363
+ isPartnerLegacy: true,
364
+ formState: {
365
+ ...stepOneProps.states.formState,
366
+ errors: {
367
+ general: true,
368
+ },
369
+ },
370
+ },
371
+ } }));
372
+ };
350
373
  export const StepOneWithLoadingError = () => {
351
374
  return (h("sqm-user-info-form", { demoData: {
352
375
  states: {
@@ -390,6 +413,7 @@ export const StepTwoIsPartner = () => {
390
413
  states: {
391
414
  ...stepTwoProps.states,
392
415
  isPartner: true,
416
+ isPartnerLegacy: true,
393
417
  },
394
418
  } }));
395
419
  };
@@ -406,6 +430,21 @@ export const StepTwoWithGeneralError = () => {
406
430
  },
407
431
  } }));
408
432
  };
433
+ export const StepTwoIsPartnerWithGeneralError = () => {
434
+ return (h("sqm-indirect-tax-form", { demoData: {
435
+ states: {
436
+ ...stepTwoProps.states,
437
+ isPartner: true,
438
+ isPartnerLegacy: true,
439
+ formState: {
440
+ ...stepTwoProps.states.formState,
441
+ errors: {
442
+ general: true,
443
+ },
444
+ },
445
+ },
446
+ } }));
447
+ };
409
448
  export const StepTwoOtherRegionChecked = () => {
410
449
  return (h("sqm-indirect-tax-form", { demoData: {
411
450
  states: {
@@ -760,6 +799,21 @@ export const StepFourIsPartner = () => {
760
799
  },
761
800
  } }));
762
801
  };
802
+ export const StepFourIsPartnerWithGeneralError = () => {
803
+ return (h("sqm-banking-info-form", { demoData: {
804
+ ...stepFourProps,
805
+ states: {
806
+ ...stepFourProps.states,
807
+ isPartner: true,
808
+ formState: {
809
+ ...stepFourProps.states.formState,
810
+ errors: {
811
+ general: true,
812
+ },
813
+ },
814
+ },
815
+ } }));
816
+ };
763
817
  export const StepFourDirectToBankChecked = () => {
764
818
  return (h("sqm-banking-info-form", { demoData: {
765
819
  ...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.partnerEmail || "" })), h("p", null, intl.formatMessage({
189
192
  id: "isPartnerAlertDescription",
190
193
  defaultMessage: text.isPartnerAlertDescription,
191
194
  }, {
195
+ emailAddress: states.partnerEmail || "",
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",
@@ -2098,7 +2098,7 @@ export class BankingInfoForm {
2098
2098
  "mutable": false,
2099
2099
  "complexType": {
2100
2100
  "original": "DemoData<BankingInfoFormViewProps>",
2101
- "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toPayPalAccount\" | \"toBankAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"invalid\" | \"required\"; errorCode?: string; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; showModal: boolean; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
2101
+ "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toPayPalAccount\" | \"toBankAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"invalid\" | \"required\"; errorCode?: string; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; partnerEmail?: string; showModal: boolean; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
2102
2102
  "references": {
2103
2103
  "DemoData": {
2104
2104
  "location": "import",
@@ -6,6 +6,7 @@ import { intl } from "../../../global/global";
6
6
  import { VERIFICATION_EVENT_KEY } from "../../sqm-widget-verification/keys";
7
7
  import { FINANCE_NETWORK_SETTINGS_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
8
8
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
9
+ import { getParticipantEmail } from "../utils";
9
10
  // Hardcoded in Impact backend
10
11
  export const paypalFeeMap = {
11
12
  USD: "USD20.00",
@@ -468,6 +469,7 @@ export function useBankingInfoForm(props) {
468
469
  bankCountry: formState.bankCountry,
469
470
  countrySearch,
470
471
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
472
+ partnerEmail: getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
471
473
  showModal,
472
474
  },
473
475
  refs: {
@@ -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",
@@ -5,7 +5,7 @@ import JSONPointer from "jsonpointer";
5
5
  import { COUNTRIES_QUERY_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
6
6
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
7
7
  import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
8
- import { getCountryObj, validTaxDocument } from "../utils";
8
+ import { getCountryObj, getParticipantEmail, validTaxDocument } from "../utils";
9
9
  export const CONNECT_PARTNER = gql `
10
10
  mutation createImpactConnection($vars: ImpactConnectionInput!) {
11
11
  createImpactConnection(impactConnectionInput: $vars) {
@@ -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) || getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
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
  ? {