@saasquatch/mint-components 1.16.0-12 → 1.16.0-14

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.
@@ -2381,12 +2381,17 @@ function PayoutStatusAlertView(props) {
2381
2381
  }
2382
2382
  else {
2383
2383
  return {
2384
- header: text.informationRequiredHeader,
2385
- description: text.informationRequiredDescription,
2386
- buttonText: text.informationRequiredButtonText,
2387
- alertType: "info",
2388
- icon: "info-circle",
2389
- class: sheet$2.classes.InfoAlertContainer,
2384
+ header: text.holdHeader,
2385
+ description: global.intl.formatMessage({
2386
+ id: "holdDescription",
2387
+ defaultMessage: text.holdDescription,
2388
+ }, {
2389
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2390
+ }),
2391
+ buttonText: null,
2392
+ alertType: "warning",
2393
+ icon: "exclamation-triangle",
2394
+ class: sheet$2.classes.WarningAlertContainer,
2390
2395
  };
2391
2396
  }
2392
2397
  case "HOLD":
@@ -2410,6 +2415,8 @@ function PayoutStatusAlertView(props) {
2410
2415
  function getButton(status) {
2411
2416
  switch (status) {
2412
2417
  case "OVER_W9_THRESHOLD":
2418
+ if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
2419
+ return;
2413
2420
  return data.type === "SquatchJS2" ? (index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (index.h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
2414
2421
  // Demo case
2415
2422
  index.h("sl-button", { type: "default" }, text.w9RequiredButtonText));
@@ -147,12 +147,17 @@ export function PayoutStatusAlertView(props) {
147
147
  }
148
148
  else {
149
149
  return {
150
- header: text.informationRequiredHeader,
151
- description: text.informationRequiredDescription,
152
- buttonText: text.informationRequiredButtonText,
153
- alertType: "info",
154
- icon: "info-circle",
155
- class: sheet.classes.InfoAlertContainer,
150
+ header: text.holdHeader,
151
+ description: intl.formatMessage({
152
+ id: "holdDescription",
153
+ defaultMessage: text.holdDescription,
154
+ }, {
155
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
156
+ }),
157
+ buttonText: null,
158
+ alertType: "warning",
159
+ icon: "exclamation-triangle",
160
+ class: sheet.classes.WarningAlertContainer,
156
161
  };
157
162
  }
158
163
  case "HOLD":
@@ -176,6 +181,8 @@ export function PayoutStatusAlertView(props) {
176
181
  function getButton(status) {
177
182
  switch (status) {
178
183
  case "OVER_W9_THRESHOLD":
184
+ if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
185
+ return;
179
186
  return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
180
187
  // Demo case
181
188
  h("sl-button", { type: "default" }, text.w9RequiredButtonText));
@@ -2377,12 +2377,17 @@ function PayoutStatusAlertView(props) {
2377
2377
  }
2378
2378
  else {
2379
2379
  return {
2380
- header: text.informationRequiredHeader,
2381
- description: text.informationRequiredDescription,
2382
- buttonText: text.informationRequiredButtonText,
2383
- alertType: "info",
2384
- icon: "info-circle",
2385
- class: sheet$2.classes.InfoAlertContainer,
2380
+ header: text.holdHeader,
2381
+ description: intl.formatMessage({
2382
+ id: "holdDescription",
2383
+ defaultMessage: text.holdDescription,
2384
+ }, {
2385
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2386
+ }),
2387
+ buttonText: null,
2388
+ alertType: "warning",
2389
+ icon: "exclamation-triangle",
2390
+ class: sheet$2.classes.WarningAlertContainer,
2386
2391
  };
2387
2392
  }
2388
2393
  case "HOLD":
@@ -2406,6 +2411,8 @@ function PayoutStatusAlertView(props) {
2406
2411
  function getButton(status) {
2407
2412
  switch (status) {
2408
2413
  case "OVER_W9_THRESHOLD":
2414
+ if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
2415
+ return;
2409
2416
  return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
2410
2417
  // Demo case
2411
2418
  h$1("sl-button", { type: "default" }, text.w9RequiredButtonText));