@saasquatch/mint-components 2.5.10 → 2.5.11-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 (76) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +12 -3
  4. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +30 -10
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +82 -3
  6. package/dist/cjs/{sqm-user-info-form-view-9b773a7c.js → sqm-user-info-form-view-9416da92.js} +9 -7
  7. package/dist/cjs/{subregions-77aac151.js → subregions-e18b324d.js} +28 -0
  8. package/dist/cjs/{useIndirectTaxForm-102d5c24.js → useIndirectTaxForm-31c63877.js} +6 -4
  9. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  10. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  11. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
  12. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  13. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  14. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +35 -0
  15. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +9 -6
  16. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +199 -1
  17. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -3
  18. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -7
  19. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +34 -0
  20. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +9 -6
  21. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +198 -0
  22. package/dist/collection/components/tax-and-cash/utils.js +26 -0
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/esm/mint-components.js +1 -1
  25. package/dist/esm/sqm-banking-info-form_10.entry.js +12 -3
  26. package/dist/esm/sqm-big-stat_47.entry.js +30 -10
  27. package/dist/esm/sqm-stencilbook.entry.js +82 -3
  28. package/dist/esm/{sqm-user-info-form-view-0d95c791.js → sqm-user-info-form-view-6693aa82.js} +9 -7
  29. package/dist/esm/{subregions-ec4682c7.js → subregions-7f834e40.js} +27 -1
  30. package/dist/esm/{useIndirectTaxForm-09809605.js → useIndirectTaxForm-58b0ea4b.js} +6 -4
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mint-components.js +1 -1
  33. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  34. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  35. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  36. package/dist/esm-es5/sqm-user-info-form-view-6693aa82.js +1 -0
  37. package/dist/esm-es5/subregions-7f834e40.js +1 -0
  38. package/dist/esm-es5/{useIndirectTaxForm-09809605.js → useIndirectTaxForm-58b0ea4b.js} +2 -2
  39. package/dist/mint-components/mint-components.esm.js +1 -1
  40. package/dist/mint-components/{p-2bd3f2ac.system.js → p-0714330d.system.js} +2 -2
  41. package/dist/mint-components/p-07f70909.system.entry.js +1 -0
  42. package/dist/mint-components/{p-c0e26b94.entry.js → p-11db4597.entry.js} +3 -3
  43. package/dist/mint-components/p-6116d239.js +108 -0
  44. package/dist/mint-components/p-7a324afd.entry.js +308 -0
  45. package/dist/mint-components/{p-71b1cd71.entry.js → p-9098802a.entry.js} +7 -7
  46. package/dist/mint-components/{p-363bf460.system.entry.js → p-97f5251b.system.entry.js} +1 -1
  47. package/dist/mint-components/p-9b9a9762.system.js +1 -0
  48. package/dist/mint-components/p-a1eb93fc.system.js +1 -0
  49. package/dist/mint-components/{p-ec78006c.system.entry.js → p-c9fc666c.system.entry.js} +1 -1
  50. package/dist/mint-components/p-cb7d2088.js +1 -0
  51. package/dist/mint-components/p-d811796f.js +1 -0
  52. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  53. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +5 -0
  54. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +10 -0
  55. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +36 -0
  56. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
  57. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +38 -2
  58. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +5 -0
  59. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +9 -0
  60. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -0
  61. package/dist/types/components/tax-and-cash/utils.d.ts +35 -0
  62. package/dist/types/components.d.ts +220 -4
  63. package/docs/docs.docx +0 -0
  64. package/docs/raisins.json +1 -1
  65. package/docs/stats.json +1584 -232
  66. package/grapesjs/grapesjs.js +1 -1
  67. package/package.json +1 -1
  68. package/dist/esm-es5/sqm-user-info-form-view-0d95c791.js +0 -1
  69. package/dist/esm-es5/subregions-ec4682c7.js +0 -1
  70. package/dist/mint-components/p-24d56265.entry.js +0 -308
  71. package/dist/mint-components/p-3dc446ec.system.js +0 -1
  72. package/dist/mint-components/p-461a068d.js +0 -1
  73. package/dist/mint-components/p-99d4ddee.js +0 -107
  74. package/dist/mint-components/p-b1d6a6f2.system.js +0 -1
  75. package/dist/mint-components/p-df62cb1b.system.entry.js +0 -1
  76. package/dist/mint-components/p-f15ad5b6.js +0 -1
@@ -79,6 +79,15 @@ const defaultText = {
79
79
  withdrawalSettingsInvalidDescription: "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",
80
80
  paymentReturnedHeader: "Payout unsuccessful",
81
81
  paymentReturnedDescription: "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",
82
+ beneficiaryNameInvalidNonBrandedHeader: "Account holder name contains invalid characters",
83
+ beneficiaryNameInvalidNonBrandedDescription: "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.",
84
+ beneficiaryNameMismatchNonBrandedHeader: "Account holder name doesn't match your tax form",
85
+ beneficiaryNameMismatchNonBrandedDescription: "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.",
86
+ bankTaxNameMismatchNonBrandedHeader: "Bank account name doesn't match your tax form",
87
+ bankTaxNameMismatchNonBrandedDescription: "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.",
88
+ withdrawalSettingsInvalidNonBrandedHeader: "Payment information is incomplete or contains errors",
89
+ withdrawalSettingsInvalidNonBrandedDescription: "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.",
90
+ paymentReturnedNonBrandedDescription: "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.",
82
91
  termsAndConditions: "Terms and Conditions",
83
92
  error: {
84
93
  generalTitle: "There was a problem submitting your information",
@@ -146,6 +155,31 @@ export const BeneficiaryNameMismatch = () => (h(TaxAndCashDashboardView, { state
146
155
  export const BankTaxNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
147
156
  export const WithdrawalSettingsInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "WITHDRAWAL_SETTINGS_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
148
157
  export const PaymentReturned = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_RETURNED" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
158
+ export const BeneficiaryNameInvalidNonBranded = () => (h(TaxAndCashDashboardView, { states: {
159
+ ...baseStates,
160
+ payoutStatus: "BENEFICIARY_NAME_INVALID",
161
+ canEditPayoutInfo: false,
162
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
163
+ export const BeneficiaryNameMismatchNonBranded = () => (h(TaxAndCashDashboardView, { states: {
164
+ ...baseStates,
165
+ payoutStatus: "BENEFICIARY_NAME_MISMATCH",
166
+ canEditPayoutInfo: false,
167
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
168
+ export const BankTaxNameMismatchNonBranded = () => (h(TaxAndCashDashboardView, { states: {
169
+ ...baseStates,
170
+ payoutStatus: "BANK_TAX_NAME_MISMATCH",
171
+ canEditPayoutInfo: false,
172
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
173
+ export const WithdrawalSettingsInvalidNonBranded = () => (h(TaxAndCashDashboardView, { states: {
174
+ ...baseStates,
175
+ payoutStatus: "WITHDRAWAL_SETTINGS_INVALID",
176
+ canEditPayoutInfo: false,
177
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
178
+ export const PaymentReturnedNonBranded = () => (h(TaxAndCashDashboardView, { states: {
179
+ ...baseStates,
180
+ payoutStatus: "PAYMENT_RETURNED",
181
+ canEditPayoutInfo: false,
182
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
149
183
  export const W9ThresholdReachedHardBlock = () => (h(TaxAndCashDashboardView, { states: {
150
184
  ...baseStates,
151
185
  payoutStatus: "OVER_W9_THRESHOLD",
@@ -1,6 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { intl } from "../../../global/global";
3
3
  import { createStyleSheet } from "../../../styling/JSS";
4
+ import { getEditPayoutInfoButtonProps, withPaymentInfoAlertCopy, } from "../utils";
4
5
  const holdAlertContainer = (iconColor) => ({
5
6
  marginLeft: "-20px",
6
7
  "&::part(base)": {
@@ -263,7 +264,9 @@ const vanillaStyle = `
263
264
  `;
264
265
  export const TaxAndCashDashboardView = (props) => {
265
266
  var _a;
266
- const { states, text, callbacks, slots } = props;
267
+ const { states, callbacks, slots } = props;
268
+ const text = withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
269
+ const editPayoutInfoButtonProps = getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onEditPayoutInfo);
267
270
  function getAlert(status) {
268
271
  switch (status) {
269
272
  case "OVER_W9_THRESHOLD":
@@ -387,7 +390,7 @@ export const TaxAndCashDashboardView = (props) => {
387
390
  }, {
388
391
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
389
392
  }),
390
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
393
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
391
394
  alertType: "warning",
392
395
  icon: "exclamation-triangle",
393
396
  class: sheet.classes.WarningHoldAlertContainer,
@@ -401,7 +404,7 @@ export const TaxAndCashDashboardView = (props) => {
401
404
  }, {
402
405
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
403
406
  }),
404
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
407
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
405
408
  alertType: "warning",
406
409
  icon: "exclamation-triangle",
407
410
  class: sheet.classes.WarningHoldAlertContainer,
@@ -415,7 +418,7 @@ export const TaxAndCashDashboardView = (props) => {
415
418
  }, {
416
419
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
417
420
  }),
418
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
421
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
419
422
  alertType: "warning",
420
423
  icon: "exclamation-triangle",
421
424
  class: sheet.classes.WarningHoldAlertContainer,
@@ -429,7 +432,7 @@ export const TaxAndCashDashboardView = (props) => {
429
432
  }, {
430
433
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
431
434
  }),
432
- button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
435
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
433
436
  alertType: "warning",
434
437
  icon: "exclamation-triangle",
435
438
  class: sheet.classes.WarningHoldAlertContainer,
@@ -443,7 +446,7 @@ export const TaxAndCashDashboardView = (props) => {
443
446
  }, {
444
447
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
445
448
  }),
446
- button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
449
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
447
450
  alertType: "error",
448
451
  icon: "exclamation-triangle",
449
452
  class: sheet.classes.WarningHoldAlertContainer,
@@ -69,14 +69,23 @@ export class TaxAndCashDashboard {
69
69
  this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
70
70
  this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
71
71
  this.beneficiaryNameInvalidDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
72
+ this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
73
+ this.beneficiaryNameInvalidNonBrandedDescription = "The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.";
72
74
  this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
73
75
  this.beneficiaryNameMismatchDescription = "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
76
+ this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
77
+ this.beneficiaryNameMismatchNonBrandedDescription = "The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.";
74
78
  this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
75
79
  this.bankTaxNameMismatchDescription = "The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
80
+ this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
81
+ this.bankTaxNameMismatchNonBrandedDescription = "The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.";
76
82
  this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
77
83
  this.withdrawalSettingsInvalidDescription = "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.";
84
+ this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
85
+ this.withdrawalSettingsInvalidNonBrandedDescription = "Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.";
78
86
  this.paymentReturnedHeader = "Payout unsuccessful";
79
87
  this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
88
+ this.paymentReturnedNonBrandedDescription = "Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.";
80
89
  this.termsAndConditions = "Terms and Conditions";
81
90
  this.w9RequiredButtonText = "Submit W-9";
82
91
  this.generalErrorTitle = "There was a problem submitting your information";
@@ -1271,6 +1280,48 @@ export class TaxAndCashDashboard {
1271
1280
  "reflect": false,
1272
1281
  "defaultValue": "\"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
1273
1282
  },
1283
+ "beneficiaryNameInvalidNonBrandedHeader": {
1284
+ "type": "string",
1285
+ "mutable": false,
1286
+ "complexType": {
1287
+ "original": "string",
1288
+ "resolved": "string",
1289
+ "references": {}
1290
+ },
1291
+ "required": false,
1292
+ "optional": false,
1293
+ "docs": {
1294
+ "tags": [{
1295
+ "name": "uiName",
1296
+ "text": "Beneficiary name invalid alert header (non-branded partners)"
1297
+ }],
1298
+ "text": ""
1299
+ },
1300
+ "attribute": "beneficiary-name-invalid-non-branded-header",
1301
+ "reflect": false,
1302
+ "defaultValue": "\"Account holder name contains invalid characters\""
1303
+ },
1304
+ "beneficiaryNameInvalidNonBrandedDescription": {
1305
+ "type": "string",
1306
+ "mutable": false,
1307
+ "complexType": {
1308
+ "original": "string",
1309
+ "resolved": "string",
1310
+ "references": {}
1311
+ },
1312
+ "required": false,
1313
+ "optional": false,
1314
+ "docs": {
1315
+ "tags": [{
1316
+ "name": "uiName",
1317
+ "text": "Beneficiary name invalid alert description (non-branded partners)"
1318
+ }],
1319
+ "text": ""
1320
+ },
1321
+ "attribute": "beneficiary-name-invalid-non-branded-description",
1322
+ "reflect": false,
1323
+ "defaultValue": "\"The account holder name in your payment information contains characters we can't accept. Go to impact.com to update it so it is valid and matches the name on your tax form. Your payouts are on hold until this is resolved.\""
1324
+ },
1274
1325
  "beneficiaryNameMismatchHeader": {
1275
1326
  "type": "string",
1276
1327
  "mutable": false,
@@ -1313,6 +1364,48 @@ export class TaxAndCashDashboard {
1313
1364
  "reflect": false,
1314
1365
  "defaultValue": "\"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
1315
1366
  },
1367
+ "beneficiaryNameMismatchNonBrandedHeader": {
1368
+ "type": "string",
1369
+ "mutable": false,
1370
+ "complexType": {
1371
+ "original": "string",
1372
+ "resolved": "string",
1373
+ "references": {}
1374
+ },
1375
+ "required": false,
1376
+ "optional": false,
1377
+ "docs": {
1378
+ "tags": [{
1379
+ "name": "uiName",
1380
+ "text": "Beneficiary name mismatch alert header (non-branded partners)"
1381
+ }],
1382
+ "text": ""
1383
+ },
1384
+ "attribute": "beneficiary-name-mismatch-non-branded-header",
1385
+ "reflect": false,
1386
+ "defaultValue": "\"Account holder name doesn't match your tax form\""
1387
+ },
1388
+ "beneficiaryNameMismatchNonBrandedDescription": {
1389
+ "type": "string",
1390
+ "mutable": false,
1391
+ "complexType": {
1392
+ "original": "string",
1393
+ "resolved": "string",
1394
+ "references": {}
1395
+ },
1396
+ "required": false,
1397
+ "optional": false,
1398
+ "docs": {
1399
+ "tags": [{
1400
+ "name": "uiName",
1401
+ "text": "Beneficiary name mismatch alert description (non-branded partners)"
1402
+ }],
1403
+ "text": ""
1404
+ },
1405
+ "attribute": "beneficiary-name-mismatch-non-branded-description",
1406
+ "reflect": false,
1407
+ "defaultValue": "\"The account holder name in your payment information doesn't match the name on your tax form. Go to impact.com to update one or both so the names match exactly. Your payouts are on hold until this is resolved.\""
1408
+ },
1316
1409
  "bankTaxNameMismatchHeader": {
1317
1410
  "type": "string",
1318
1411
  "mutable": false,
@@ -1355,6 +1448,48 @@ export class TaxAndCashDashboard {
1355
1448
  "reflect": false,
1356
1449
  "defaultValue": "\"The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.\""
1357
1450
  },
1451
+ "bankTaxNameMismatchNonBrandedHeader": {
1452
+ "type": "string",
1453
+ "mutable": false,
1454
+ "complexType": {
1455
+ "original": "string",
1456
+ "resolved": "string",
1457
+ "references": {}
1458
+ },
1459
+ "required": false,
1460
+ "optional": false,
1461
+ "docs": {
1462
+ "tags": [{
1463
+ "name": "uiName",
1464
+ "text": "Bank name mismatch alert header (non-branded partners)"
1465
+ }],
1466
+ "text": ""
1467
+ },
1468
+ "attribute": "bank-tax-name-mismatch-non-branded-header",
1469
+ "reflect": false,
1470
+ "defaultValue": "\"Bank account name doesn't match your tax form\""
1471
+ },
1472
+ "bankTaxNameMismatchNonBrandedDescription": {
1473
+ "type": "string",
1474
+ "mutable": false,
1475
+ "complexType": {
1476
+ "original": "string",
1477
+ "resolved": "string",
1478
+ "references": {}
1479
+ },
1480
+ "required": false,
1481
+ "optional": false,
1482
+ "docs": {
1483
+ "tags": [{
1484
+ "name": "uiName",
1485
+ "text": "Bank name mismatch alert description (non-branded partners)"
1486
+ }],
1487
+ "text": ""
1488
+ },
1489
+ "attribute": "bank-tax-name-mismatch-non-branded-description",
1490
+ "reflect": false,
1491
+ "defaultValue": "\"The name on your bank account doesn't match the name on your tax form. Go to impact.com to update your payment information or your tax form so the two names match exactly. Your payouts are on hold until this is resolved.\""
1492
+ },
1358
1493
  "withdrawalSettingsInvalidHeader": {
1359
1494
  "type": "string",
1360
1495
  "mutable": false,
@@ -1397,6 +1532,48 @@ export class TaxAndCashDashboard {
1397
1532
  "reflect": false,
1398
1533
  "defaultValue": "\"There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.\""
1399
1534
  },
1535
+ "withdrawalSettingsInvalidNonBrandedHeader": {
1536
+ "type": "string",
1537
+ "mutable": false,
1538
+ "complexType": {
1539
+ "original": "string",
1540
+ "resolved": "string",
1541
+ "references": {}
1542
+ },
1543
+ "required": false,
1544
+ "optional": false,
1545
+ "docs": {
1546
+ "tags": [{
1547
+ "name": "uiName",
1548
+ "text": "Withdrawal settings invalid alert header (non-branded partners)"
1549
+ }],
1550
+ "text": ""
1551
+ },
1552
+ "attribute": "withdrawal-settings-invalid-non-branded-header",
1553
+ "reflect": false,
1554
+ "defaultValue": "\"Payment information is incomplete or contains errors\""
1555
+ },
1556
+ "withdrawalSettingsInvalidNonBrandedDescription": {
1557
+ "type": "string",
1558
+ "mutable": false,
1559
+ "complexType": {
1560
+ "original": "string",
1561
+ "resolved": "string",
1562
+ "references": {}
1563
+ },
1564
+ "required": false,
1565
+ "optional": false,
1566
+ "docs": {
1567
+ "tags": [{
1568
+ "name": "uiName",
1569
+ "text": "Withdrawal settings invalid alert description (non-branded partners)"
1570
+ }],
1571
+ "text": ""
1572
+ },
1573
+ "attribute": "withdrawal-settings-invalid-non-branded-description",
1574
+ "reflect": false,
1575
+ "defaultValue": "\"Some required details in your payment information are missing or contain invalid characters. Go to impact.com to review and complete your information. Your payouts are on hold until this is resolved.\""
1576
+ },
1400
1577
  "paymentReturnedHeader": {
1401
1578
  "type": "string",
1402
1579
  "mutable": false,
@@ -1439,6 +1616,27 @@ export class TaxAndCashDashboard {
1439
1616
  "reflect": false,
1440
1617
  "defaultValue": "\"Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.\""
1441
1618
  },
1619
+ "paymentReturnedNonBrandedDescription": {
1620
+ "type": "string",
1621
+ "mutable": false,
1622
+ "complexType": {
1623
+ "original": "string",
1624
+ "resolved": "string",
1625
+ "references": {}
1626
+ },
1627
+ "required": false,
1628
+ "optional": false,
1629
+ "docs": {
1630
+ "tags": [{
1631
+ "name": "uiName",
1632
+ "text": "Payment returned alert description (non-branded partners)"
1633
+ }],
1634
+ "text": ""
1635
+ },
1636
+ "attribute": "payment-returned-non-branded-description",
1637
+ "reflect": false,
1638
+ "defaultValue": "\"Your most recent payment for your earnings was returned. Go to impact.com to check that your payment information is correct and up to date.\""
1639
+ },
1442
1640
  "termsAndConditions": {
1443
1641
  "type": "string",
1444
1642
  "mutable": false,
@@ -7,6 +7,32 @@ export function getParticipantEmail(user) {
7
7
  ? user.managedIdentity.email
8
8
  : user === null || user === void 0 ? void 0 : user.email;
9
9
  }
10
+ const IMPACT_APP_URL = "https://app.impact.com";
11
+ /**
12
+ * Non-branded partners manage their payment information on impact.com, so
13
+ * their payment information alerts use copy that points them there.
14
+ */
15
+ export function withPaymentInfoAlertCopy(text, canEditPayoutInfo) {
16
+ if (canEditPayoutInfo !== false)
17
+ return text;
18
+ return {
19
+ ...text,
20
+ beneficiaryNameInvalidHeader: text.beneficiaryNameInvalidNonBrandedHeader,
21
+ beneficiaryNameInvalidDescription: text.beneficiaryNameInvalidNonBrandedDescription,
22
+ beneficiaryNameMismatchHeader: text.beneficiaryNameMismatchNonBrandedHeader,
23
+ beneficiaryNameMismatchDescription: text.beneficiaryNameMismatchNonBrandedDescription,
24
+ bankTaxNameMismatchHeader: text.bankTaxNameMismatchNonBrandedHeader,
25
+ bankTaxNameMismatchDescription: text.bankTaxNameMismatchNonBrandedDescription,
26
+ withdrawalSettingsInvalidHeader: text.withdrawalSettingsInvalidNonBrandedHeader,
27
+ withdrawalSettingsInvalidDescription: text.withdrawalSettingsInvalidNonBrandedDescription,
28
+ paymentReturnedDescription: text.paymentReturnedNonBrandedDescription,
29
+ };
30
+ }
31
+ export function getEditPayoutInfoButtonProps(canEditPayoutInfo, onClick) {
32
+ return canEditPayoutInfo === false
33
+ ? { href: IMPACT_APP_URL, target: "_blank" }
34
+ : { onClick };
35
+ }
10
36
  /**
11
37
  * Normalize user input to the domestic form Impact stores: digits only,
12
38
  * with the country dial code and trunk-zero prefix removed.