@saasquatch/mint-components 2.4.3 → 2.4.5

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 (112) hide show
  1. package/dist/cjs/{data-89ac73dd.js → data-04ef5511.js} +2 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +43 -29
  5. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +47 -17
  6. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +3 -3
  7. package/dist/cjs/{sqm-partner-info-modal-view-431100ad.js → sqm-partner-info-modal-view-d9b61d54.js} +1 -1
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +75 -8
  9. package/dist/cjs/{sqm-user-info-form-view-c5f9b79b.js → sqm-user-info-form-view-9745956d.js} +49 -46
  10. package/dist/cjs/{subregions-3d27e279.js → subregions-d12829d6.js} +28 -0
  11. package/dist/cjs/{useIndirectTaxForm-5211013b.js → useIndirectTaxForm-0969e194.js} +26 -3
  12. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
  13. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
  14. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +19 -0
  15. package/dist/collection/components/tax-and-cash/data.js +2 -0
  16. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
  17. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -2
  18. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -4
  19. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +25 -0
  20. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +12 -8
  21. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -0
  22. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +10 -9
  23. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -0
  24. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +24 -13
  25. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +51 -1
  26. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +25 -1
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +64 -2
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +11 -3
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +44 -41
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +51 -1
  31. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -1
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +3 -1
  33. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
  34. package/dist/collection/components/tax-and-cash/utils.js +26 -0
  35. package/dist/esm/{data-8698cbc6.js → data-0be04430.js} +2 -0
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/mint-components.js +1 -1
  38. package/dist/esm/sqm-banking-info-form_10.entry.js +43 -29
  39. package/dist/esm/sqm-big-stat_47.entry.js +47 -17
  40. package/dist/esm/sqm-email-verification_2.entry.js +3 -3
  41. package/dist/esm/{sqm-partner-info-modal-view-34d4be5b.js → sqm-partner-info-modal-view-b921fed1.js} +1 -1
  42. package/dist/esm/sqm-stencilbook.entry.js +75 -8
  43. package/dist/esm/{sqm-user-info-form-view-ceb3917a.js → sqm-user-info-form-view-81526655.js} +49 -46
  44. package/dist/esm/{subregions-810a5c2d.js → subregions-98789b46.js} +27 -1
  45. package/dist/esm/{useIndirectTaxForm-4dc576f0.js → useIndirectTaxForm-bbe8779d.js} +26 -3
  46. package/dist/esm-es5/data-0be04430.js +1 -0
  47. package/dist/esm-es5/loader.js +1 -1
  48. package/dist/esm-es5/mint-components.js +1 -1
  49. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  50. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  51. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  52. package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +1 -0
  53. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  54. package/dist/esm-es5/sqm-user-info-form-view-81526655.js +1 -0
  55. package/dist/esm-es5/subregions-98789b46.js +1 -0
  56. package/dist/esm-es5/useIndirectTaxForm-bbe8779d.js +6 -0
  57. package/dist/mint-components/mint-components.esm.js +1 -1
  58. package/dist/mint-components/p-07b989a3.system.js +6 -0
  59. package/dist/mint-components/{p-05466678.entry.js → p-0d89ef44.entry.js} +3 -3
  60. package/dist/mint-components/p-14f4cce8.js +1 -0
  61. package/dist/mint-components/{p-8bdabf61.entry.js → p-1e9c339f.entry.js} +2 -2
  62. package/dist/mint-components/p-227ca8d4.system.js +1 -0
  63. package/dist/mint-components/p-231926a3.system.entry.js +1 -0
  64. package/dist/mint-components/p-288249ae.system.entry.js +1 -0
  65. package/dist/mint-components/p-53575d04.js +1 -0
  66. package/dist/mint-components/p-549d60ee.system.entry.js +1 -0
  67. package/dist/mint-components/{p-7468e5b8.entry.js → p-654cdee8.entry.js} +2 -2
  68. package/dist/mint-components/{p-5c52100b.js → p-7aa89fa8.js} +2 -0
  69. package/dist/mint-components/p-826e3db0.system.js +1 -0
  70. package/dist/mint-components/p-a1b655ba.system.js +1 -0
  71. package/dist/mint-components/p-b1feb0f1.js +108 -0
  72. package/dist/mint-components/p-bfb00685.system.js +1 -1
  73. package/dist/mint-components/{p-ee6700a3.system.entry.js → p-cf12347b.system.entry.js} +1 -1
  74. package/dist/mint-components/p-db73312a.system.js +1 -0
  75. package/dist/mint-components/p-e1b917ff.entry.js +83 -0
  76. package/dist/mint-components/p-f75ead20.js +1 -0
  77. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  78. package/dist/types/components/tax-and-cash/data.d.ts +2 -0
  79. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +3 -0
  80. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
  81. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
  82. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
  83. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
  84. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
  85. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -0
  86. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +1 -0
  87. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +3 -0
  88. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +8 -0
  89. package/dist/types/components/tax-and-cash/utils.d.ts +5 -1
  90. package/dist/types/components.d.ts +54 -0
  91. package/docs/docs.docx +0 -0
  92. package/docs/raisins.json +1 -1
  93. package/grapesjs/grapesjs.js +1 -1
  94. package/package.json +1 -1
  95. package/dist/esm-es5/data-8698cbc6.js +0 -1
  96. package/dist/esm-es5/sqm-partner-info-modal-view-34d4be5b.js +0 -1
  97. package/dist/esm-es5/sqm-user-info-form-view-ceb3917a.js +0 -1
  98. package/dist/esm-es5/subregions-810a5c2d.js +0 -1
  99. package/dist/esm-es5/useIndirectTaxForm-4dc576f0.js +0 -6
  100. package/dist/mint-components/p-0ad64881.js +0 -101
  101. package/dist/mint-components/p-41e1547d.system.entry.js +0 -1
  102. package/dist/mint-components/p-4481f259.entry.js +0 -83
  103. package/dist/mint-components/p-6c31a79b.system.entry.js +0 -1
  104. package/dist/mint-components/p-6cd93ea3.system.js +0 -6
  105. package/dist/mint-components/p-765e3379.js +0 -1
  106. package/dist/mint-components/p-92f520c9.js +0 -1
  107. package/dist/mint-components/p-93f1e26a.system.entry.js +0 -1
  108. package/dist/mint-components/p-9c1f5317.system.js +0 -1
  109. package/dist/mint-components/p-ad90628d.system.js +0 -1
  110. package/dist/mint-components/p-aef2db59.system.js +0 -1
  111. package/dist/mint-components/p-c36fedea.js +0 -1
  112. package/dist/mint-components/p-fd231c49.system.js +0 -1
@@ -65,7 +65,7 @@ export function PayoutStatusAlertView(props) {
65
65
  id: "verificationRequiredDescription",
66
66
  defaultMessage: text.verificationRequiredDescription,
67
67
  }, {
68
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
68
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
69
69
  }),
70
70
  buttonText: text.verificationRequiredButtonText,
71
71
  alertType: "warning",
@@ -77,7 +77,7 @@ export function PayoutStatusAlertView(props) {
77
77
  id: "verificationRequiredInternalDescription",
78
78
  defaultMessage: text.verificationRequiredInternalDescription,
79
79
  }, {
80
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
80
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
81
81
  }),
82
82
  alertType: "warning",
83
83
  };
@@ -88,7 +88,7 @@ export function PayoutStatusAlertView(props) {
88
88
  id: "verificationReviewInternalDescription",
89
89
  defaultMessage: text.verificationReviewInternalDescription,
90
90
  }, {
91
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
91
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
92
92
  }),
93
93
  alertType: "warning",
94
94
  };
@@ -99,7 +99,7 @@ export function PayoutStatusAlertView(props) {
99
99
  id: "verificationFailedInternalDescription",
100
100
  defaultMessage: text.verificationFailedInternalDescription,
101
101
  }, {
102
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
102
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
103
103
  }),
104
104
  alertType: "error",
105
105
  };
@@ -125,7 +125,7 @@ export function PayoutStatusAlertView(props) {
125
125
  id: "holdDescription",
126
126
  defaultMessage: text.holdDescription,
127
127
  }, {
128
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
128
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
129
129
  }),
130
130
  buttonText: null,
131
131
  alertType: "warning",
@@ -139,12 +139,23 @@ export function PayoutStatusAlertView(props) {
139
139
  id: "accountReviewDescription",
140
140
  defaultMessage: text.accountReviewDescription,
141
141
  }, {
142
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
142
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
143
143
  }),
144
144
  buttonText: null,
145
145
  alertType: "warning",
146
146
  icon: "exclamation-triangle",
147
147
  };
148
+ case "BALANCE_UNDER_THRESHOLD":
149
+ return {
150
+ header: text.balanceUnderThresholdHeader,
151
+ description: intl.formatMessage({
152
+ id: "balanceUnderThresholdDescription",
153
+ defaultMessage: text.balanceUnderThresholdDescription,
154
+ }, { minPayoutAmount: states.minPayoutAmount }),
155
+ buttonText: null,
156
+ alertType: "info",
157
+ icon: "info-circle",
158
+ };
148
159
  case "PAYMENT_HOLD_ON_CHANGE":
149
160
  return {
150
161
  header: text.paymentHoldOnChangeHeader,
@@ -152,7 +163,7 @@ export function PayoutStatusAlertView(props) {
152
163
  id: "accountReviewDescription",
153
164
  defaultMessage: text.paymentHoldOnChangeDescription,
154
165
  }, {
155
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
166
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
156
167
  }),
157
168
  buttonText: null,
158
169
  alertType: "warning",
@@ -165,7 +176,7 @@ export function PayoutStatusAlertView(props) {
165
176
  id: "accountReviewDescription",
166
177
  defaultMessage: text.beneficiaryNameInvalidDescription,
167
178
  }, {
168
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
179
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
169
180
  }),
170
181
  button: (h("div", { class: sheet.classes.ButtonContainer },
171
182
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -180,7 +191,7 @@ export function PayoutStatusAlertView(props) {
180
191
  id: "accountReviewDescription",
181
192
  defaultMessage: text.beneficiaryNameMismatchDescription,
182
193
  }, {
183
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
194
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
184
195
  }),
185
196
  button: (h("div", { class: sheet.classes.ButtonContainer },
186
197
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -195,7 +206,7 @@ export function PayoutStatusAlertView(props) {
195
206
  id: "accountReviewDescription",
196
207
  defaultMessage: text.bankTaxNameMismatchDescription,
197
208
  }, {
198
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
209
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
199
210
  }),
200
211
  button: (h("div", { class: sheet.classes.ButtonContainer },
201
212
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
@@ -210,7 +221,7 @@ export function PayoutStatusAlertView(props) {
210
221
  id: "accountReviewDescription",
211
222
  defaultMessage: text.withdrawalSettingsInvalidDescription,
212
223
  }, {
213
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
224
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
214
225
  }),
215
226
  button: (h("div", { class: sheet.classes.ButtonContainer },
216
227
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
@@ -224,7 +235,7 @@ export function PayoutStatusAlertView(props) {
224
235
  id: "accountReviewDescription",
225
236
  defaultMessage: text.paymentReturnedDescription,
226
237
  }, {
227
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
238
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
228
239
  }),
229
240
  button: (h("div", { class: sheet.classes.ButtonContainer },
230
241
  h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
@@ -238,7 +249,7 @@ export function PayoutStatusAlertView(props) {
238
249
  id: "holdDescription",
239
250
  defaultMessage: text.holdDescription,
240
251
  }, {
241
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
252
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
242
253
  }),
243
254
  buttonText: null,
244
255
  alertType: "warning",
@@ -79,6 +79,14 @@ export class PayoutStatusAlert {
79
79
  * @uiName Account review alert description
80
80
  */
81
81
  this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
82
+ /**
83
+ * @uiName Balance under payout minimum alert header
84
+ */
85
+ this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
86
+ /**
87
+ * @uiName Balance under payout minimum alert description
88
+ */
89
+ this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
82
90
  /**
83
91
  * @uiName Payment on hold alert header
84
92
  */
@@ -526,6 +534,48 @@ export class PayoutStatusAlert {
526
534
  "reflect": false,
527
535
  "defaultValue": "\"This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.\""
528
536
  },
537
+ "balanceUnderThresholdHeader": {
538
+ "type": "string",
539
+ "mutable": false,
540
+ "complexType": {
541
+ "original": "string",
542
+ "resolved": "string",
543
+ "references": {}
544
+ },
545
+ "required": false,
546
+ "optional": false,
547
+ "docs": {
548
+ "tags": [{
549
+ "text": "Balance under payout minimum alert header",
550
+ "name": "uiName"
551
+ }],
552
+ "text": ""
553
+ },
554
+ "attribute": "balance-under-threshold-header",
555
+ "reflect": false,
556
+ "defaultValue": "\"Your balance is under the minimum payout\""
557
+ },
558
+ "balanceUnderThresholdDescription": {
559
+ "type": "string",
560
+ "mutable": false,
561
+ "complexType": {
562
+ "original": "string",
563
+ "resolved": "string",
564
+ "references": {}
565
+ },
566
+ "required": false,
567
+ "optional": false,
568
+ "docs": {
569
+ "tags": [{
570
+ "text": "Balance under payout minimum alert description",
571
+ "name": "uiName"
572
+ }],
573
+ "text": ""
574
+ },
575
+ "attribute": "balance-under-threshold-description",
576
+ "reflect": false,
577
+ "defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
578
+ },
529
579
  "paymentHoldOnChangeHeader": {
530
580
  "type": "string",
531
581
  "mutable": false,
@@ -1026,7 +1076,7 @@ export class PayoutStatusAlert {
1026
1076
  "mutable": false,
1027
1077
  "complexType": {
1028
1078
  "original": "DemoData<PayoutStatusAlertViewProps>",
1029
- "resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
1079
+ "resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; minPayoutAmount?: string; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
1030
1080
  "references": {
1031
1081
  "DemoData": {
1032
1082
  "location": "import",
@@ -3,6 +3,7 @@ import { useEffect, useState } from "@saasquatch/stencil-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
5
5
  import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
6
+ import { formatPayoutThreshold, isBalanceUnderPayoutThreshold, } from "../utils";
6
7
  const GET_USER_STATUS = gql `
7
8
  query getUserStatus {
8
9
  user: viewer {
@@ -12,9 +13,16 @@ const GET_USER_STATUS = gql `
12
13
  connected
13
14
  publisher {
14
15
  id
16
+ currency
17
+ withdrawalSettings {
18
+ paymentThreshold
19
+ }
15
20
  payoutsAccount {
16
21
  hold
17
22
  holdReasons
23
+ balance
24
+ balanceAmount
25
+ currencyCode
18
26
  }
19
27
  }
20
28
  }
@@ -41,7 +49,22 @@ const GET_TAX_SETTING = gql `
41
49
  }
42
50
  }
43
51
  `;
52
+ /** Transient holds that clear automatically, so a balance under the minimum explains the wait better. */
53
+ const DISPLACEABLE_STATUSES = [
54
+ "DONE",
55
+ "NEW_PAYEE_REVIEW",
56
+ "PAYMENT_HOLD_ON_CHANGE",
57
+ ];
44
58
  export function getStatus(data) {
59
+ var _a;
60
+ const status = getHoldStatus(data);
61
+ const publisher = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
62
+ return DISPLACEABLE_STATUSES.includes(status) &&
63
+ isBalanceUnderPayoutThreshold(publisher)
64
+ ? "BALANCE_UNDER_THRESHOLD"
65
+ : status;
66
+ }
67
+ function getHoldStatus(data) {
45
68
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
46
69
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
47
70
  const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => {
@@ -84,7 +107,7 @@ export function getStatus(data) {
84
107
  return "DONE";
85
108
  }
86
109
  export function usePayoutStatus(props) {
87
- var _a;
110
+ var _a, _b, _c;
88
111
  const { type } = getEnvironmentSDK();
89
112
  const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
90
113
  const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
@@ -134,6 +157,7 @@ export function usePayoutStatus(props) {
134
157
  status,
135
158
  error: !!errors,
136
159
  enforceUsTaxComplianceOption,
160
+ minPayoutAmount: formatPayoutThreshold((_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),
137
161
  },
138
162
  data: { type },
139
163
  text: props.getTextProps(),
@@ -947,6 +947,17 @@ export class TaxAndCashMonolith {
947
947
  * @uiName Account review alert description
948
948
  */
949
949
  this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
950
+ /**
951
+ * @uiName Balance under payout minimum alert header
952
+ * @uiGroup Dashboard Properties
953
+ */
954
+ this.dashboard_balanceUnderThresholdHeader = "Your balance is under the minimum payout";
955
+ /**
956
+ * @uiName Balance under payout minimum alert description
957
+ * @uiGroup Dashboard Properties
958
+ * @uiWidget textArea
959
+ */
960
+ this.dashboard_balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
950
961
  /**
951
962
  * @uiName Payment on hold alert header
952
963
  */
@@ -1183,7 +1194,7 @@ export class TaxAndCashMonolith {
1183
1194
  id: "loadingErrorAlertDescription",
1184
1195
  defaultMessage: this.loadingErrorAlertDescription,
1185
1196
  }, {
1186
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
1197
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, this.supportLink)),
1187
1198
  }) }));
1188
1199
  }
1189
1200
  return h(LoadingView, null);
@@ -5097,6 +5108,57 @@ export class TaxAndCashMonolith {
5097
5108
  "reflect": false,
5098
5109
  "defaultValue": "\"This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.\""
5099
5110
  },
5111
+ "dashboard_balanceUnderThresholdHeader": {
5112
+ "type": "string",
5113
+ "mutable": false,
5114
+ "complexType": {
5115
+ "original": "string",
5116
+ "resolved": "string",
5117
+ "references": {}
5118
+ },
5119
+ "required": false,
5120
+ "optional": false,
5121
+ "docs": {
5122
+ "tags": [{
5123
+ "text": "Balance under payout minimum alert header",
5124
+ "name": "uiName"
5125
+ }, {
5126
+ "text": "Dashboard Properties",
5127
+ "name": "uiGroup"
5128
+ }],
5129
+ "text": ""
5130
+ },
5131
+ "attribute": "dashboard_balance-under-threshold-header",
5132
+ "reflect": false,
5133
+ "defaultValue": "\"Your balance is under the minimum payout\""
5134
+ },
5135
+ "dashboard_balanceUnderThresholdDescription": {
5136
+ "type": "string",
5137
+ "mutable": false,
5138
+ "complexType": {
5139
+ "original": "string",
5140
+ "resolved": "string",
5141
+ "references": {}
5142
+ },
5143
+ "required": false,
5144
+ "optional": false,
5145
+ "docs": {
5146
+ "tags": [{
5147
+ "text": "Balance under payout minimum alert description",
5148
+ "name": "uiName"
5149
+ }, {
5150
+ "text": "Dashboard Properties",
5151
+ "name": "uiGroup"
5152
+ }, {
5153
+ "text": "textArea",
5154
+ "name": "uiWidget"
5155
+ }],
5156
+ "text": ""
5157
+ },
5158
+ "attribute": "dashboard_balance-under-threshold-description",
5159
+ "reflect": false,
5160
+ "defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
5161
+ },
5100
5162
  "dashboard_paymentOnHoldHeader": {
5101
5163
  "type": "string",
5102
5164
  "mutable": false,
@@ -5867,7 +5929,7 @@ export class TaxAndCashMonolith {
5867
5929
  "mutable": false,
5868
5930
  "complexType": {
5869
5931
  "original": "DemoData<TaxAndCashMonolith>",
5870
- "resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
5932
+ "resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step3_modalTitle?: string; step3_modalDescription?: string; step3_modalButtonText?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_beneficiaryAccountNameDescription?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_branchNameLabel?: string; step4_classificationLabel?: string; step4_classificationCodeLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; step4_modalTitle?: string; step4_modalDescription?: string; step4_modalButtonText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_statusTextRequired?: string; dashboard_requiredTaxForm?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; dashboard_w9RequiredHeader?: string; dashboard_w9RequiredDescription?: string; dashboard_accountReviewHeader?: string; dashboard_accountReviewDescription?: string; dashboard_balanceUnderThresholdHeader?: string; dashboard_balanceUnderThresholdDescription?: string; dashboard_paymentOnHoldHeader?: string; dashboard_paymentOnHoldDescription?: string; dashboard_beneficiaryNameInvalidHeader?: string; dashboard_beneficiaryNameInvalidDescription?: string; dashboard_beneficiaryNameMismatchHeader?: string; dashboard_beneficiaryNameMismatchDescription?: string; dashboard_bankNameMismatchHeader?: string; dashboard_bankNameMismatchDescription?: string; dashboard_withdrawalSettingsInvalidHeader?: string; dashboard_withdrawalSettingsInvalidDescription?: string; dashboard_paymentReturnedHeader?: string; dashboard_paymentReturnedDescription?: string; dashboard_termsAndConditions?: string; dashboard_w9RequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; termsAndConditions?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step3_modalTitle\" | \"step3_modalDescription\" | \"step3_modalButtonText\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_beneficiaryAccountNameDescription\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_branchNameLabel\" | \"step4_classificationLabel\" | \"step4_classificationCodeLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"step4_modalTitle\" | \"step4_modalDescription\" | \"step4_modalButtonText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_statusTextRequired\" | \"dashboard_requiredTaxForm\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"dashboard_w9RequiredHeader\" | \"dashboard_w9RequiredDescription\" | \"dashboard_accountReviewHeader\" | \"dashboard_accountReviewDescription\" | \"dashboard_balanceUnderThresholdHeader\" | \"dashboard_balanceUnderThresholdDescription\" | \"dashboard_paymentOnHoldHeader\" | \"dashboard_paymentOnHoldDescription\" | \"dashboard_beneficiaryNameInvalidHeader\" | \"dashboard_beneficiaryNameInvalidDescription\" | \"dashboard_beneficiaryNameMismatchHeader\" | \"dashboard_beneficiaryNameMismatchDescription\" | \"dashboard_bankNameMismatchHeader\" | \"dashboard_bankNameMismatchDescription\" | \"dashboard_withdrawalSettingsInvalidHeader\" | \"dashboard_withdrawalSettingsInvalidDescription\" | \"dashboard_paymentReturnedHeader\" | \"dashboard_paymentReturnedDescription\" | \"dashboard_termsAndConditions\" | \"dashboard_w9RequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"termsAndConditions\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
5871
5933
  "references": {
5872
5934
  "DemoData": {
5873
5935
  "location": "import",
@@ -65,6 +65,8 @@ const defaultText = {
65
65
  w9RequiredButtonText: "Submit W-9",
66
66
  accountReviewHeader: "Your account is under review",
67
67
  accountReviewDescription: "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",
68
+ balanceUnderThresholdHeader: "Your balance is under the minimum payout",
69
+ balanceUnderThresholdDescription: "Your total balance is under {minPayoutAmount}, the minimum required for payout.",
68
70
  paymentHoldOnChangeHeader: "We are reviewing your new payout settings",
69
71
  paymentHoldOnChangeDescription: "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",
70
72
  beneficiaryNameInvalidHeader: "Your payment information does not match your tax form",
@@ -92,9 +94,10 @@ const defaultCallbacks = {
92
94
  onNewFormCancel: () => { },
93
95
  onNewFormClick: () => { },
94
96
  };
95
- const defaultSlots = {
96
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
97
- };
97
+ const buildSlots = (cardStates = {}) => ({
98
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout", ...cardStates } } })),
99
+ });
100
+ const defaultSlots = buildSlots();
98
101
  const baseStates = {
99
102
  payoutStatus: "DONE",
100
103
  veriffLoading: false,
@@ -126,6 +129,11 @@ export const TaxFormRequired = () => (h(TaxAndCashDashboardView, { states: {
126
129
  // ─── Payout hold statuses not in TaxForm.stories.tsx ─────────────────────────
127
130
  export const AccountUnderReview = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "NEW_PAYEE_REVIEW" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
128
131
  export const PaymentHoldOnChange = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
132
+ export const BalanceUnderThreshold = () => (h(TaxAndCashDashboardView, { states: {
133
+ ...baseStates,
134
+ payoutStatus: "BALANCE_UNDER_THRESHOLD",
135
+ minPayoutAmount: "USD50.00",
136
+ }, text: defaultText, callbacks: defaultCallbacks, slots: buildSlots({ belowPayoutThreshold: true }) }));
129
137
  export const BeneficiaryNameInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
130
138
  export const BeneficiaryNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
131
139
  export const BankTaxNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));