@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
@@ -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-102d5c24.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-77aac151.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-9b773a7c.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-77aac151.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,
@@ -38397,6 +38436,41 @@ const WithdrawalSettingsInvalid = () => (index$1.h("sqm-payout-status-alert", {
38397
38436
  states: { ...defaultProps$6, status: "WITHDRAWAL_SETTINGS_INVALID" },
38398
38437
  } }));
38399
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
+ } }));
38400
38474
 
38401
38475
  const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
38402
38476
  __proto__: null,
@@ -38418,7 +38492,12 @@ const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
38418
38492
  BeneficiaryNameMismatch: BeneficiaryNameMismatch,
38419
38493
  BankTaxNameMismatch: BankTaxNameMismatch,
38420
38494
  WithdrawalSettingsInvalid: WithdrawalSettingsInvalid,
38421
- PaymentReturned: PaymentReturned
38495
+ PaymentReturned: PaymentReturned,
38496
+ BeneficiaryNameInvalidNonBranded: BeneficiaryNameInvalidNonBranded,
38497
+ BeneficiaryNameMismatchNonBranded: BeneficiaryNameMismatchNonBranded,
38498
+ BankTaxNameMismatchNonBranded: BankTaxNameMismatchNonBranded,
38499
+ WithdrawalSettingsInvalidNonBranded: WithdrawalSettingsInvalidNonBranded,
38500
+ PaymentReturnedNonBranded: PaymentReturnedNonBranded
38422
38501
  });
38423
38502
 
38424
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-77aac151.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,
@@ -907,6 +907,32 @@ function getParticipantEmail(user) {
907
907
  ? user.managedIdentity.email
908
908
  : user === null || user === void 0 ? void 0 : user.email;
909
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
+ }
910
936
  /**
911
937
  * Normalize user input to the domestic form Impact stores: digits only,
912
938
  * with the country dial code and trunk-zero prefix removed.
@@ -1465,6 +1491,7 @@ exports.LoadingView = LoadingView;
1465
1491
  exports.formatErrorMessage = formatErrorMessage;
1466
1492
  exports.formatPayoutThreshold = formatPayoutThreshold;
1467
1493
  exports.getCountryObj = getCountryObj;
1494
+ exports.getEditPayoutInfoButtonProps = getEditPayoutInfoButtonProps;
1468
1495
  exports.getParticipantEmail = getParticipantEmail;
1469
1496
  exports.isBalanceUnderPayoutThreshold = isBalanceUnderPayoutThreshold;
1470
1497
  exports.isValidI18nPhoneNumber = isValidI18nPhoneNumber;
@@ -1473,3 +1500,4 @@ exports.taxTypeToName = taxTypeToName;
1473
1500
  exports.toDomesticNumber = toDomesticNumber;
1474
1501
  exports.validTaxDocument = validTaxDocument;
1475
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-77aac151.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(),
@@ -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",
@@ -345,7 +345,7 @@ export class ShareCode {
345
345
  "mutable": false,
346
346
  "complexType": {
347
347
  "original": "DemoData<CopyTextViewProps>",
348
- "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; }",
348
+ "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; }",
349
349
  "references": {
350
350
  "DemoData": {
351
351
  "location": "import",
@@ -57,3 +57,38 @@ export const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { d
57
57
  states: { ...defaultProps, status: "WITHDRAWAL_SETTINGS_INVALID" },
58
58
  } }));
59
59
  export const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_RETURNED" } } }));
60
+ export const BeneficiaryNameInvalidNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
61
+ states: {
62
+ ...defaultProps,
63
+ status: "BENEFICIARY_NAME_INVALID",
64
+ canEditPayoutInfo: false,
65
+ },
66
+ } }));
67
+ export const BeneficiaryNameMismatchNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
68
+ states: {
69
+ ...defaultProps,
70
+ status: "BENEFICIARY_NAME_MISMATCH",
71
+ canEditPayoutInfo: false,
72
+ },
73
+ } }));
74
+ export const BankTaxNameMismatchNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
75
+ states: {
76
+ ...defaultProps,
77
+ status: "BANK_TAX_NAME_MISMATCH",
78
+ canEditPayoutInfo: false,
79
+ },
80
+ } }));
81
+ export const WithdrawalSettingsInvalidNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
82
+ states: {
83
+ ...defaultProps,
84
+ status: "WITHDRAWAL_SETTINGS_INVALID",
85
+ canEditPayoutInfo: false,
86
+ },
87
+ } }));
88
+ export const PaymentReturnedNonBranded = () => (h("sqm-payout-status-alert", { demoData: {
89
+ states: {
90
+ ...defaultProps,
91
+ status: "PAYMENT_RETURNED",
92
+ canEditPayoutInfo: false,
93
+ },
94
+ } }));
@@ -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 style = {
5
6
  ButtonContainer: {
6
7
  display: "flex",
@@ -41,7 +42,9 @@ const vanillaStyle = `
41
42
  const sheet = createStyleSheet(style);
42
43
  const styleString = sheet.toString();
43
44
  export function PayoutStatusAlertView(props) {
44
- const { text, states, data, callbacks } = props;
45
+ const { states, data, callbacks } = props;
46
+ const text = withPaymentInfoAlertCopy(props.text, states.canEditPayoutInfo);
47
+ const editPayoutInfoButtonProps = getEditPayoutInfoButtonProps(states.canEditPayoutInfo, callbacks.onPaymentInfoClick);
45
48
  function getAlert(status) {
46
49
  if (states.error)
47
50
  return {
@@ -167,7 +170,7 @@ export function PayoutStatusAlertView(props) {
167
170
  }, {
168
171
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
169
172
  }),
170
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
173
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
171
174
  alertType: "warning",
172
175
  icon: "exclamation-triangle",
173
176
  };
@@ -180,7 +183,7 @@ export function PayoutStatusAlertView(props) {
180
183
  }, {
181
184
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
182
185
  }),
183
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
186
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
184
187
  alertType: "warning",
185
188
  icon: "exclamation-triangle",
186
189
  };
@@ -193,7 +196,7 @@ export function PayoutStatusAlertView(props) {
193
196
  }, {
194
197
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
195
198
  }),
196
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
199
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton), h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
197
200
  alertType: "warning",
198
201
  icon: "exclamation-triangle",
199
202
  };
@@ -206,7 +209,7 @@ export function PayoutStatusAlertView(props) {
206
209
  }, {
207
210
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
208
211
  }),
209
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
212
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
210
213
  alertType: "warning",
211
214
  icon: "exclamation-triangle",
212
215
  };
@@ -219,7 +222,7 @@ export function PayoutStatusAlertView(props) {
219
222
  }, {
220
223
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
221
224
  }),
222
- button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
225
+ button: (h("div", { class: sheet.classes.ButtonContainer }, h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", ...editPayoutInfoButtonProps }, text.editPaymentInformationButton))),
223
226
  alertType: "error",
224
227
  icon: "exclamation-triangle",
225
228
  };