@saasquatch/mint-components 2.5.10-0 → 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 (87) 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 +27 -20
  4. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +30 -10
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +83 -3
  6. package/dist/cjs/{sqm-user-info-form-view-df5b95be.js → sqm-user-info-form-view-9416da92.js} +9 -7
  7. package/dist/cjs/{subregions-fd4e4ee2.js → subregions-e18b324d.js} +36 -0
  8. package/dist/cjs/{useIndirectTaxForm-76b94531.js → useIndirectTaxForm-31c63877.js} +8 -6
  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/TaxForm.stories.js +1 -0
  15. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
  16. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -1
  17. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
  18. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -3
  19. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +35 -0
  20. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +9 -6
  21. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +199 -1
  22. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -3
  23. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -7
  24. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +34 -0
  25. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +9 -6
  26. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +198 -0
  27. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
  28. package/dist/collection/components/tax-and-cash/utils.js +33 -0
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/mint-components.js +1 -1
  31. package/dist/esm/sqm-banking-info-form_10.entry.js +27 -20
  32. package/dist/esm/sqm-big-stat_47.entry.js +30 -10
  33. package/dist/esm/sqm-stencilbook.entry.js +83 -3
  34. package/dist/esm/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-6693aa82.js} +9 -7
  35. package/dist/esm/{subregions-c7df98a1.js → subregions-7f834e40.js} +34 -1
  36. package/dist/esm/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-58b0ea4b.js} +8 -6
  37. package/dist/esm-es5/loader.js +1 -1
  38. package/dist/esm-es5/mint-components.js +1 -1
  39. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  40. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  41. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  42. package/dist/esm-es5/sqm-user-info-form-view-6693aa82.js +1 -0
  43. package/dist/esm-es5/subregions-7f834e40.js +1 -0
  44. package/dist/esm-es5/useIndirectTaxForm-58b0ea4b.js +6 -0
  45. package/dist/mint-components/mint-components.esm.js +1 -1
  46. package/dist/mint-components/p-0714330d.system.js +6 -0
  47. package/dist/mint-components/p-07f70909.system.entry.js +1 -0
  48. package/dist/mint-components/{p-4314e5c9.entry.js → p-11db4597.entry.js} +3 -3
  49. package/dist/mint-components/p-6116d239.js +108 -0
  50. package/dist/mint-components/p-7a324afd.entry.js +308 -0
  51. package/dist/mint-components/p-9098802a.entry.js +83 -0
  52. package/dist/mint-components/{p-477fe6fa.system.entry.js → p-97f5251b.system.entry.js} +1 -1
  53. package/dist/mint-components/p-9b9a9762.system.js +1 -0
  54. package/dist/mint-components/p-a1eb93fc.system.js +1 -0
  55. package/dist/mint-components/p-c9fc666c.system.entry.js +1 -0
  56. package/dist/mint-components/p-cb7d2088.js +1 -0
  57. package/dist/mint-components/p-d811796f.js +1 -0
  58. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  59. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  60. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +5 -0
  61. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +10 -0
  62. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +36 -0
  63. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
  64. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +38 -2
  65. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +5 -0
  66. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +9 -0
  67. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -0
  68. package/dist/types/components/tax-and-cash/utils.d.ts +38 -1
  69. package/dist/types/components.d.ts +220 -4
  70. package/docs/docs.docx +0 -0
  71. package/docs/raisins.json +1 -1
  72. package/docs/stats.json +1588 -235
  73. package/grapesjs/grapesjs.js +1 -1
  74. package/package.json +1 -1
  75. package/dist/esm-es5/sqm-user-info-form-view-d35324ba.js +0 -1
  76. package/dist/esm-es5/subregions-c7df98a1.js +0 -1
  77. package/dist/esm-es5/useIndirectTaxForm-6ea561e4.js +0 -6
  78. package/dist/mint-components/p-089c0803.js +0 -1
  79. package/dist/mint-components/p-1cb0fc65.system.js +0 -6
  80. package/dist/mint-components/p-2401753b.js +0 -1
  81. package/dist/mint-components/p-59f9d9bb.js +0 -107
  82. package/dist/mint-components/p-615dbc66.system.entry.js +0 -1
  83. package/dist/mint-components/p-98659a12.system.js +0 -1
  84. package/dist/mint-components/p-9e90f38e.entry.js +0 -83
  85. package/dist/mint-components/p-aaf05ef1.entry.js +0 -308
  86. package/dist/mint-components/p-db8e74e0.system.entry.js +0 -1
  87. package/dist/mint-components/p-ed18f6a0.system.js +0 -1
@@ -13,9 +13,9 @@ const data = require('./data-7ea0e395.js');
13
13
  const jsonpointer = require('./jsonpointer-0db21316.js');
14
14
  const keys = require('./keys-5a2c9ed2.js');
15
15
  const parseStates = require('./parseStates-35013ba4.js');
16
- const subregions = require('./subregions-fd4e4ee2.js');
17
- const sqmUserInfoFormView = require('./sqm-user-info-form-view-df5b95be.js');
18
- const useIndirectTaxForm = require('./useIndirectTaxForm-76b94531.js');
16
+ const subregions = require('./subregions-e18b324d.js');
17
+ const sqmUserInfoFormView = require('./sqm-user-info-form-view-9416da92.js');
18
+ const useIndirectTaxForm = require('./useIndirectTaxForm-31c63877.js');
19
19
  const GenericTableView = require('./GenericTableView-12d35117.js');
20
20
  const reRender = require('./re-render-65869eb3.js');
21
21
  const useReferralTable = require('./useReferralTable-21a2e1a4.js');
@@ -802,12 +802,12 @@ const BankingInfoFormView = (props) => {
802
802
  index.h("p", { part: "alert-title" }, global.intl.formatMessage({
803
803
  id: "isPartnerAlertHeader",
804
804
  defaultMessage: text.isPartnerAlertHeader,
805
- }, { emailAddress: states.email || "" })),
805
+ }, { emailAddress: states.partnerEmail || "" })),
806
806
  index.h("p", null, global.intl.formatMessage({
807
807
  id: "isPartnerAlertDescription",
808
808
  defaultMessage: text.isPartnerAlertDescription,
809
809
  }, {
810
- emailAddress: states.email || "",
810
+ emailAddress: states.partnerEmail || "",
811
811
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
812
812
  })))),
813
813
  index.h("div", null,
@@ -1309,6 +1309,7 @@ function useBankingInfoForm(props) {
1309
1309
  bankCountry: formState.bankCountry,
1310
1310
  countrySearch,
1311
1311
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1312
+ partnerEmail: subregions.getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
1312
1313
  showModal,
1313
1314
  },
1314
1315
  refs: {
@@ -3475,14 +3476,23 @@ const TaxAndCashDashboard = class {
3475
3476
  this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
3476
3477
  this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
3477
3478
  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.";
3479
+ this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
3480
+ 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.";
3478
3481
  this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
3479
3482
  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.";
3483
+ this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
3484
+ 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.";
3480
3485
  this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
3481
3486
  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.";
3487
+ this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
3488
+ 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.";
3482
3489
  this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
3483
3490
  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.";
3491
+ this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
3492
+ 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.";
3484
3493
  this.paymentReturnedHeader = "Payout unsuccessful";
3485
3494
  this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
3495
+ 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.";
3486
3496
  this.termsAndConditions = "Terms and Conditions";
3487
3497
  this.w9RequiredButtonText = "Submit W-9";
3488
3498
  this.generalErrorTitle = "There was a problem submitting your information";
@@ -3618,18 +3628,15 @@ function useUserInfoForm(props) {
3618
3628
  window.location.hash = "";
3619
3629
  }, []);
3620
3630
  domContextHooks_module.useEffect(() => {
3621
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
3631
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
3622
3632
  const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
3623
3633
  if (!user || step !== "/1")
3624
3634
  return;
3625
3635
  // If form already filled out, skip initialising it
3626
3636
  if (subregions.objectIsFull(userFormContext))
3627
3637
  return;
3628
- // Prefer MI email if it was verified before this
3629
- const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified)
3630
- ? user.managedIdentity.email
3631
- : user.email;
3632
- if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
3638
+ const email = subregions.getParticipantEmail(user);
3639
+ if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
3633
3640
  // Initialise with partner information
3634
3641
  setUserFormContext({
3635
3642
  email,
@@ -3654,16 +3661,16 @@ function useUserInfoForm(props) {
3654
3661
  // Initialise with user information
3655
3662
  setUserFormContext({
3656
3663
  email,
3657
- firstName: ((_e = (_d = user.impactConnection) === null || _d === void 0 ? void 0 : _d.user) === null || _e === void 0 ? void 0 : _e.firstName) || user.firstName,
3658
- lastName: ((_g = (_f = user.impactConnection) === null || _f === void 0 ? void 0 : _f.user) === null || _g === void 0 ? void 0 : _g.lastName) || user.lastName,
3664
+ firstName: ((_d = (_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.firstName) || user.firstName,
3665
+ lastName: ((_f = (_e = user.impactConnection) === null || _e === void 0 ? void 0 : _e.user) === null || _f === void 0 ? void 0 : _f.lastName) || user.lastName,
3659
3666
  countryCode: user.countryCode || "US",
3660
- currency: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.currency,
3661
- phoneNumberCountryCode: ((_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumberCountryCode) || "US",
3662
- phoneNumber: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.phoneNumber,
3663
- address: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.address,
3664
- city: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.city,
3665
- state: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.state,
3666
- postalCode: (_p = user.customFields) === null || _p === void 0 ? void 0 : _p.postalCode,
3667
+ currency: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.currency,
3668
+ phoneNumberCountryCode: ((_h = user.customFields) === null || _h === void 0 ? void 0 : _h.phoneNumberCountryCode) || "US",
3669
+ phoneNumber: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.phoneNumber,
3670
+ address: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.address,
3671
+ city: (_l = user.customFields) === null || _l === void 0 ? void 0 : _l.city,
3672
+ state: (_m = user.customFields) === null || _m === void 0 ? void 0 : _m.state,
3673
+ postalCode: (_o = user.customFields) === null || _o === void 0 ? void 0 : _o.postalCode,
3667
3674
  });
3668
3675
  }
3669
3676
  }, [data$1, step, userFormContext]);
@@ -16,7 +16,8 @@ const utilities = require('./utilities-4995dc8f.js');
16
16
  const imageUrl = require('./imageUrl-a7880cab.js');
17
17
  const jsonpointer = require('./jsonpointer-0db21316.js');
18
18
  const AsYouType = require('./AsYouType-5f15a922.js');
19
- const useIndirectTaxForm = require('./useIndirectTaxForm-76b94531.js');
19
+ const subregions = require('./subregions-e18b324d.js');
20
+ const useIndirectTaxForm = require('./useIndirectTaxForm-31c63877.js');
20
21
  const parseStates = require('./parseStates-35013ba4.js');
21
22
  const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5473e24d.js');
22
23
  const usePortalRegistrationForm = require('./usePortalRegistrationForm-671d2863.js');
@@ -26,7 +27,6 @@ const emailRegistrationView = require('./email-registration-view-36a74293.js');
26
27
  const index$2 = require('./index-f1dd6136.js');
27
28
  const copyTextView = require('./copy-text-view-49517b2a.js');
28
29
  const ErrorView = require('./ErrorView-8f6cf1cb.js');
29
- const subregions = require('./subregions-fd4e4ee2.js');
30
30
  const data = require('./data-7ea0e395.js');
31
31
  const reRender = require('./re-render-65869eb3.js');
32
32
  const luxon = require('./luxon-d3612a3d.js');
@@ -2633,7 +2633,9 @@ const vanillaStyle$2 = `
2633
2633
  const sheet$1 = JSS.createStyleSheet(style$1);
2634
2634
  const styleString$1 = sheet$1.toString();
2635
2635
  function PayoutStatusAlertView(props) {
2636
- const { text, states, data, callbacks } = props;
2636
+ const { states, data, callbacks } = props;
2637
+ const text = subregions.withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
2638
+ const editPayoutInfoButtonProps = subregions.getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onPaymentInfoClick);
2637
2639
  function getAlert(status) {
2638
2640
  if (states.error)
2639
2641
  return {
@@ -2760,7 +2762,7 @@ function PayoutStatusAlertView(props) {
2760
2762
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2761
2763
  }),
2762
2764
  button: (index.h("div", { class: sheet$1.classes.ButtonContainer },
2763
- index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
2765
+ index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
2764
2766
  index.h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
2765
2767
  alertType: "warning",
2766
2768
  icon: "exclamation-triangle",
@@ -2775,7 +2777,7 @@ function PayoutStatusAlertView(props) {
2775
2777
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2776
2778
  }),
2777
2779
  button: (index.h("div", { class: sheet$1.classes.ButtonContainer },
2778
- index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
2780
+ index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
2779
2781
  index.h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
2780
2782
  alertType: "warning",
2781
2783
  icon: "exclamation-triangle",
@@ -2790,7 +2792,7 @@ function PayoutStatusAlertView(props) {
2790
2792
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2791
2793
  }),
2792
2794
  button: (index.h("div", { class: sheet$1.classes.ButtonContainer },
2793
- index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
2795
+ index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
2794
2796
  index.h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
2795
2797
  alertType: "warning",
2796
2798
  icon: "exclamation-triangle",
@@ -2805,7 +2807,7 @@ function PayoutStatusAlertView(props) {
2805
2807
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2806
2808
  }),
2807
2809
  button: (index.h("div", { class: sheet$1.classes.ButtonContainer },
2808
- index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
2810
+ index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
2809
2811
  alertType: "warning",
2810
2812
  icon: "exclamation-triangle",
2811
2813
  };
@@ -2819,7 +2821,7 @@ function PayoutStatusAlertView(props) {
2819
2821
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
2820
2822
  }),
2821
2823
  button: (index.h("div", { class: sheet$1.classes.ButtonContainer },
2822
- index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
2824
+ index.h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
2823
2825
  alertType: "error",
2824
2826
  icon: "exclamation-triangle",
2825
2827
  };
@@ -2908,14 +2910,23 @@ const PayoutStatusAlert = class {
2908
2910
  this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
2909
2911
  this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
2910
2912
  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.";
2913
+ this.beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
2914
+ 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.";
2911
2915
  this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
2912
2916
  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.";
2917
+ this.beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
2918
+ 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.";
2913
2919
  this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
2914
2920
  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.";
2921
+ this.bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
2922
+ 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.";
2915
2923
  this.withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
2916
2924
  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.";
2925
+ this.withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
2926
+ 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.";
2917
2927
  this.paymentReturnedHeader = "Payout unsuccessful";
2918
2928
  this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
2929
+ 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.";
2919
2930
  this.w9RequiredHeader = "Your next payout is on hold";
2920
2931
  this.w9RequiredDescription = "You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
2921
2932
  this.w9RequiredButtonText = "Submit W-9";
@@ -6066,14 +6077,23 @@ const TaxAndCashMonolith = class {
6066
6077
  this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
6067
6078
  this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
6068
6079
  this.dashboard_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.";
6080
+ this.dashboard_beneficiaryNameInvalidNonBrandedHeader = "Account holder name contains invalid characters";
6081
+ this.dashboard_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.";
6069
6082
  this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
6070
6083
  this.dashboard_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.";
6071
- this.dashboard_bankNameMismatchHeader = "Your payment information does not match your tax form";
6072
- this.dashboard_bankNameMismatchDescription = "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.";
6084
+ this.dashboard_beneficiaryNameMismatchNonBrandedHeader = "Account holder name doesn't match your tax form";
6085
+ this.dashboard_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.";
6086
+ this.dashboard_bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
6087
+ this.dashboard_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.";
6088
+ this.dashboard_bankTaxNameMismatchNonBrandedHeader = "Bank account name doesn't match your tax form";
6089
+ this.dashboard_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.";
6073
6090
  this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information is incomplete or includes invalid characters";
6074
6091
  this.dashboard_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.";
6092
+ this.dashboard_withdrawalSettingsInvalidNonBrandedHeader = "Payment information is incomplete or contains errors";
6093
+ this.dashboard_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.";
6075
6094
  this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
6076
6095
  this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
6096
+ this.dashboard_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.";
6077
6097
  this.dashboard_termsAndConditions = "Terms and Conditions";
6078
6098
  this.dashboard_w9RequiredButtonText = "Submit W-9";
6079
6099
  this.formStep = "Step {step} of {count}";
@@ -15,7 +15,7 @@ const index = require('./index-88a40938.js');
15
15
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-08be7dec.js');
16
16
  const sqmCloseButtonView = require('./sqm-close-button-view-74e5e1e9.js');
17
17
  const GenericTableView = require('./GenericTableView-12d35117.js');
18
- const sqmUserInfoFormView = require('./sqm-user-info-form-view-df5b95be.js');
18
+ const sqmUserInfoFormView = require('./sqm-user-info-form-view-9416da92.js');
19
19
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-e992762c.js');
20
20
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-ebee238e.js');
21
21
  const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-ff5e33b9.js');
@@ -23,7 +23,7 @@ const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-vi
23
23
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-7a6f55c5.js');
24
24
  const sqmQrCodeView = require('./sqm-qr-code-view-70da70f9.js');
25
25
  const luxon = require('./luxon-d3612a3d.js');
26
- const subregions = require('./subregions-fd4e4ee2.js');
26
+ const subregions = require('./subregions-e18b324d.js');
27
27
  const emailRegistrationView = require('./email-registration-view-36a74293.js');
28
28
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-67aaabf7.js');
29
29
  const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-e12e8cb6.js');
@@ -36539,6 +36539,15 @@ const defaultText$2 = {
36539
36539
  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.",
36540
36540
  paymentReturnedHeader: "Payout unsuccessful",
36541
36541
  paymentReturnedDescription: "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",
36542
+ beneficiaryNameInvalidNonBrandedHeader: "Account holder name contains invalid characters",
36543
+ 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.",
36544
+ beneficiaryNameMismatchNonBrandedHeader: "Account holder name doesn't match your tax form",
36545
+ 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.",
36546
+ bankTaxNameMismatchNonBrandedHeader: "Bank account name doesn't match your tax form",
36547
+ 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.",
36548
+ withdrawalSettingsInvalidNonBrandedHeader: "Payment information is incomplete or contains errors",
36549
+ 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.",
36550
+ 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.",
36542
36551
  termsAndConditions: "Terms and Conditions",
36543
36552
  error: {
36544
36553
  generalTitle: "There was a problem submitting your information",
@@ -36606,6 +36615,31 @@ const BeneficiaryNameMismatch$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCas
36606
36615
  const BankTaxNameMismatch$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36607
36616
  const WithdrawalSettingsInvalid$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "WITHDRAWAL_SETTINGS_INVALID" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36608
36617
  const PaymentReturned$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_RETURNED" }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36618
+ const BeneficiaryNameInvalidNonBranded$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36619
+ ...baseStates,
36620
+ payoutStatus: "BENEFICIARY_NAME_INVALID",
36621
+ canEditPayoutInfo: false,
36622
+ }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36623
+ const BeneficiaryNameMismatchNonBranded$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36624
+ ...baseStates,
36625
+ payoutStatus: "BENEFICIARY_NAME_MISMATCH",
36626
+ canEditPayoutInfo: false,
36627
+ }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36628
+ const BankTaxNameMismatchNonBranded$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36629
+ ...baseStates,
36630
+ payoutStatus: "BANK_TAX_NAME_MISMATCH",
36631
+ canEditPayoutInfo: false,
36632
+ }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36633
+ const WithdrawalSettingsInvalidNonBranded$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36634
+ ...baseStates,
36635
+ payoutStatus: "WITHDRAWAL_SETTINGS_INVALID",
36636
+ canEditPayoutInfo: false,
36637
+ }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36638
+ const PaymentReturnedNonBranded$1 = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36639
+ ...baseStates,
36640
+ payoutStatus: "PAYMENT_RETURNED",
36641
+ canEditPayoutInfo: false,
36642
+ }, text: defaultText$2, callbacks: defaultCallbacks, slots: defaultSlots }));
36609
36643
  const W9ThresholdReachedHardBlock = () => (index$1.h(sqmUserInfoFormView.TaxAndCashDashboardView, { states: {
36610
36644
  ...baseStates,
36611
36645
  payoutStatus: "OVER_W9_THRESHOLD",
@@ -36639,6 +36673,11 @@ const TaxAndCashDashboardView = /*#__PURE__*/Object.freeze({
36639
36673
  BankTaxNameMismatch: BankTaxNameMismatch$1,
36640
36674
  WithdrawalSettingsInvalid: WithdrawalSettingsInvalid$1,
36641
36675
  PaymentReturned: PaymentReturned$1,
36676
+ BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded$1,
36677
+ BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded$1,
36678
+ BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded$1,
36679
+ WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded$1,
36680
+ PaymentReturnedNonBranded: PaymentReturnedNonBranded$1,
36642
36681
  W9ThresholdReachedHardBlock: W9ThresholdReachedHardBlock,
36643
36682
  VerificationRequiredLoading: VerificationRequiredLoading,
36644
36683
  Loading: Loading$8,
@@ -36859,6 +36898,7 @@ const stepFourProps = {
36859
36898
  thresholds: [],
36860
36899
  loadingError: false,
36861
36900
  email: "test@example.com",
36901
+ partnerEmail: "test@example.com",
36862
36902
  formState: {
36863
36903
  paymentMethodChecked: "toBankAccount",
36864
36904
  },
@@ -38396,6 +38436,41 @@ const WithdrawalSettingsInvalid = () => (index$1.h("sqm-payout-status-alert", {
38396
38436
  states: { ...defaultProps$6, status: "WITHDRAWAL_SETTINGS_INVALID" },
38397
38437
  } }));
38398
38438
  const PaymentReturned = () => (index$1.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$6, status: "PAYMENT_RETURNED" } } }));
38439
+ const BeneficiaryNameInvalidNonBranded = () => (index$1.h("sqm-payout-status-alert", { demoData: {
38440
+ states: {
38441
+ ...defaultProps$6,
38442
+ status: "BENEFICIARY_NAME_INVALID",
38443
+ canEditPayoutInfo: false,
38444
+ },
38445
+ } }));
38446
+ const BeneficiaryNameMismatchNonBranded = () => (index$1.h("sqm-payout-status-alert", { demoData: {
38447
+ states: {
38448
+ ...defaultProps$6,
38449
+ status: "BENEFICIARY_NAME_MISMATCH",
38450
+ canEditPayoutInfo: false,
38451
+ },
38452
+ } }));
38453
+ const BankTaxNameMismatchNonBranded = () => (index$1.h("sqm-payout-status-alert", { demoData: {
38454
+ states: {
38455
+ ...defaultProps$6,
38456
+ status: "BANK_TAX_NAME_MISMATCH",
38457
+ canEditPayoutInfo: false,
38458
+ },
38459
+ } }));
38460
+ const WithdrawalSettingsInvalidNonBranded = () => (index$1.h("sqm-payout-status-alert", { demoData: {
38461
+ states: {
38462
+ ...defaultProps$6,
38463
+ status: "WITHDRAWAL_SETTINGS_INVALID",
38464
+ canEditPayoutInfo: false,
38465
+ },
38466
+ } }));
38467
+ const PaymentReturnedNonBranded = () => (index$1.h("sqm-payout-status-alert", { demoData: {
38468
+ states: {
38469
+ ...defaultProps$6,
38470
+ status: "PAYMENT_RETURNED",
38471
+ canEditPayoutInfo: false,
38472
+ },
38473
+ } }));
38399
38474
 
38400
38475
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
38401
38476
  __proto__: null,
@@ -38417,7 +38492,12 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
38417
38492
  BeneficiaryNameMismatch: BeneficiaryNameMismatch,
38418
38493
  BankTaxNameMismatch: BankTaxNameMismatch,
38419
38494
  WithdrawalSettingsInvalid: WithdrawalSettingsInvalid,
38420
- PaymentReturned: PaymentReturned
38495
+ PaymentReturned: PaymentReturned,
38496
+ BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded,
38497
+ BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded,
38498
+ BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded,
38499
+ WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded,
38500
+ PaymentReturnedNonBranded: PaymentReturnedNonBranded
38421
38501
  });
38422
38502
 
38423
38503
  // ! IMPORTANT: These objects cannot be used as default values for component props
@@ -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-e18b324d.js');
7
7
  const data = require('./data-7ea0e395.js');
8
8
  const AsYouType = require('./AsYouType-5f15a922.js');
9
9
 
@@ -323,7 +323,9 @@ const vanillaStyle$2 = `
323
323
  `;
324
324
  const TaxAndCashDashboardView = (props) => {
325
325
  var _a;
326
- const { states, text, callbacks, slots } = props;
326
+ const { states, callbacks, slots } = props;
327
+ const text = subregions.withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
328
+ const editPayoutInfoButtonProps = subregions.getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onEditPayoutInfo);
327
329
  function getAlert(status) {
328
330
  switch (status) {
329
331
  case "OVER_W9_THRESHOLD":
@@ -448,7 +450,7 @@ const TaxAndCashDashboardView = (props) => {
448
450
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
449
451
  }),
450
452
  button: (index.h("div", { class: sheet$2.classes.ButtonContainer },
451
- index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
453
+ index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
452
454
  index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
453
455
  alertType: "warning",
454
456
  icon: "exclamation-triangle",
@@ -464,7 +466,7 @@ const TaxAndCashDashboardView = (props) => {
464
466
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
465
467
  }),
466
468
  button: (index.h("div", { class: sheet$2.classes.ButtonContainer },
467
- index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
469
+ index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
468
470
  index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
469
471
  alertType: "warning",
470
472
  icon: "exclamation-triangle",
@@ -480,7 +482,7 @@ const TaxAndCashDashboardView = (props) => {
480
482
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
481
483
  }),
482
484
  button: (index.h("div", { class: sheet$2.classes.ButtonContainer },
483
- index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
485
+ index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton),
484
486
  index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: secondarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onNewFormClick }, text.newFormButton))),
485
487
  alertType: "warning",
486
488
  icon: "exclamation-triangle",
@@ -495,7 +497,7 @@ const TaxAndCashDashboardView = (props) => {
495
497
  }, {
496
498
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
497
499
  }),
498
- button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
500
+ button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
499
501
  alertType: "warning",
500
502
  icon: "exclamation-triangle",
501
503
  class: sheet$2.classes.WarningHoldAlertContainer,
@@ -509,7 +511,7 @@ const TaxAndCashDashboardView = (props) => {
509
511
  }, {
510
512
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
511
513
  }),
512
- button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
514
+ button: (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", class: sheet$2.classes.EditBankDetailsButton, ...editPayoutInfoButtonProps }, text.editPaymentInformationButton)),
513
515
  alertType: "error",
514
516
  icon: "exclamation-triangle",
515
517
  class: sheet$2.classes.WarningHoldAlertContainer,
@@ -900,6 +900,39 @@ 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
+ }
910
+ const IMPACT_APP_URL = "https://app.impact.com";
911
+ /**
912
+ * Non-branded partners manage their payment information on impact.com, so
913
+ * their payment information alerts use copy that points them there.
914
+ */
915
+ function withPaymentInfoAlertCopy(text, canEditPayoutInfo) {
916
+ if (canEditPayoutInfo !== false)
917
+ return text;
918
+ return {
919
+ ...text,
920
+ beneficiaryNameInvalidHeader: text.beneficiaryNameInvalidNonBrandedHeader,
921
+ beneficiaryNameInvalidDescription: text.beneficiaryNameInvalidNonBrandedDescription,
922
+ beneficiaryNameMismatchHeader: text.beneficiaryNameMismatchNonBrandedHeader,
923
+ beneficiaryNameMismatchDescription: text.beneficiaryNameMismatchNonBrandedDescription,
924
+ bankTaxNameMismatchHeader: text.bankTaxNameMismatchNonBrandedHeader,
925
+ bankTaxNameMismatchDescription: text.bankTaxNameMismatchNonBrandedDescription,
926
+ withdrawalSettingsInvalidHeader: text.withdrawalSettingsInvalidNonBrandedHeader,
927
+ withdrawalSettingsInvalidDescription: text.withdrawalSettingsInvalidNonBrandedDescription,
928
+ paymentReturnedDescription: text.paymentReturnedNonBrandedDescription,
929
+ };
930
+ }
931
+ function getEditPayoutInfoButtonProps(canEditPayoutInfo, onClick) {
932
+ return canEditPayoutInfo === false
933
+ ? { href: IMPACT_APP_URL, target: "_blank" }
934
+ : { onClick };
935
+ }
903
936
  /**
904
937
  * Normalize user input to the domestic form Impact stores: digits only,
905
938
  * with the country dial code and trunk-zero prefix removed.
@@ -1458,6 +1491,8 @@ exports.LoadingView = LoadingView;
1458
1491
  exports.formatErrorMessage = formatErrorMessage;
1459
1492
  exports.formatPayoutThreshold = formatPayoutThreshold;
1460
1493
  exports.getCountryObj = getCountryObj;
1494
+ exports.getEditPayoutInfoButtonProps = getEditPayoutInfoButtonProps;
1495
+ exports.getParticipantEmail = getParticipantEmail;
1461
1496
  exports.isBalanceUnderPayoutThreshold = isBalanceUnderPayoutThreshold;
1462
1497
  exports.isValidI18nPhoneNumber = isValidI18nPhoneNumber;
1463
1498
  exports.objectIsFull = objectIsFull;
@@ -1465,3 +1500,4 @@ exports.taxTypeToName = taxTypeToName;
1465
1500
  exports.toDomesticNumber = toDomesticNumber;
1466
1501
  exports.validTaxDocument = validTaxDocument;
1467
1502
  exports.validateBillingField = validateBillingField;
1503
+ exports.withPaymentInfoAlertCopy = withPaymentInfoAlertCopy;
@@ -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-e18b324d.js');
7
7
  const jsonpointer = require('./jsonpointer-0db21316.js');
8
8
  const data = require('./data-7ea0e395.js');
9
9
 
@@ -978,6 +978,7 @@ const GET_USER_STATUS = index.dist.gql `
978
978
  publisher {
979
979
  id
980
980
  currency
981
+ brandedSignup
981
982
  currentTaxDocument {
982
983
  status
983
984
  type
@@ -1052,7 +1053,7 @@ function getStatus(data) {
1052
1053
  return "DONE";
1053
1054
  }
1054
1055
  function usePayoutStatus(props) {
1055
- var _a, _b, _c, _d, _e;
1056
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1056
1057
  const { type } = index.getEnvironmentSDK();
1057
1058
  const { loading, data, errors, refetch } = index.useQuery(GET_USER_STATUS, {});
1058
1059
  const { data: taxSettingRes } = index.useQuery(GET_TAX_SETTING, {});
@@ -1102,8 +1103,9 @@ function usePayoutStatus(props) {
1102
1103
  status,
1103
1104
  error: !!errors,
1104
1105
  enforceUsTaxComplianceOption,
1105
- belowPayoutThreshold: subregions.isBalanceUnderPayoutThreshold((_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher),
1106
- minPayoutAmount: subregions.formatPayoutThreshold((_e = (_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
1106
+ canEditPayoutInfo: (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.brandedSignup,
1107
+ belowPayoutThreshold: subregions.isBalanceUnderPayoutThreshold((_f = (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher),
1108
+ minPayoutAmount: subregions.formatPayoutThreshold((_h = (_g = data === null || data === void 0 ? void 0 : data.user) === null || _g === void 0 ? void 0 : _g.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher),
1107
1109
  },
1108
1110
  data: { type },
1109
1111
  text: props.getTextProps(),
@@ -1181,7 +1183,7 @@ function getOption(countries, countryCode) {
1181
1183
  }
1182
1184
  }
1183
1185
  function useIndirectTaxForm(props) {
1184
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1186
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1185
1187
  const user = index.useUserIdentity();
1186
1188
  const locale = index.useLocale();
1187
1189
  const formRef = domContextHooks_module.useRef(null);
@@ -1372,7 +1374,7 @@ function useIndirectTaxForm(props) {
1372
1374
  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
1375
  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
1376
  ((_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) || ((_k = userData === null || userData === void 0 ? void 0 : userData.user) === null || _k === void 0 ? void 0 : _k.email),
1377
+ email: (userForm === null || userForm === void 0 ? void 0 : userForm.email) || subregions.getParticipantEmail(userData === null || userData === void 0 ? void 0 : userData.user),
1376
1378
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
1377
1379
  formState: {
1378
1380
  checked: option,
@@ -620,7 +620,7 @@ export class CouponCode {
620
620
  "mutable": false,
621
621
  "complexType": {
622
622
  "original": "DemoData<CouponCodeViewProps>",
623
- "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; loading?: boolean; onClick?: () => void; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; couponCodeLabel?: string; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; errorType?: \"error\" | \"info\" | \"success\" | \"warning\"; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
623
+ "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; onClick?: () => void; loading?: boolean; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; couponCodeLabel?: string; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; errorType?: \"error\" | \"info\" | \"success\" | \"warning\"; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
624
624
  "references": {
625
625
  "DemoData": {
626
626
  "location": "import",
@@ -115,7 +115,7 @@ export class LogoutCurrentUser {
115
115
  "mutable": false,
116
116
  "complexType": {
117
117
  "original": "DemoData<CopyTextViewProps>",
118
- "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; loading?: boolean; onClick?: () => void; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
118
+ "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; onClick?: () => void; loading?: boolean; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
119
119
  "references": {
120
120
  "DemoData": {
121
121
  "location": "import",
@@ -389,7 +389,7 @@ export class ReferralCode {
389
389
  "mutable": false,
390
390
  "complexType": {
391
391
  "original": "DemoData<CopyTextViewProps>",
392
- "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; loading?: boolean; onClick?: () => void; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
392
+ "resolved": "{ error?: boolean; backgroundColor?: string; textAlign?: \"left\" | \"right\" | \"center\"; borderColor?: string; borderRadius?: string; open?: boolean; disabled?: boolean; onClick?: () => void; loading?: boolean; textColor?: string; buttonStyle?: \"icon\" | \"button-outside\" | \"button-below\"; buttonType?: \"primary\" | \"secondary\"; tooltiptext?: string; copyButtonLabel?: string; copyString?: string; errorText?: string; notificationText?: string; showNotificationText?: boolean; inputPlaceholderText?: string; dateAvailable?: string; isCopied?: boolean; }",
393
393
  "references": {
394
394
  "DemoData": {
395
395
  "location": "import",
@@ -525,7 +525,7 @@ export class ShareButton {
525
525
  "mutable": false,
526
526
  "complexType": {
527
527
  "original": "DemoData<ShareButtonViewProps>",
528
- "resolved": "{ type?: \"text\" | \"default\" | \"primary\" | \"info\" | \"secondary\" | \"success\" | \"warning\" | \"danger\"; border?: string; medium?: \"email\" | \"facebook\" | \"twitter\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; size?: \"small\" | \"medium\" | \"large\"; hide?: boolean; icon?: string; disabled?: boolean; loading?: boolean; onClick?: () => void; pill?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; iconslot?: \"suffix\" | \"prefix\"; hideicon?: boolean; hidetext?: boolean; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
528
+ "resolved": "{ type?: \"text\" | \"default\" | \"primary\" | \"info\" | \"secondary\" | \"success\" | \"warning\" | \"danger\"; border?: string; medium?: \"email\" | \"facebook\" | \"twitter\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; size?: \"small\" | \"medium\" | \"large\"; hide?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; loading?: boolean; pill?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; iconslot?: \"suffix\" | \"prefix\"; hideicon?: boolean; hidetext?: boolean; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
529
529
  "references": {
530
530
  "DemoData": {
531
531
  "location": "import",