@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.
- package/dist/cjs/{data-89ac73dd.js → data-04ef5511.js} +2 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +43 -29
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +47 -17
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-partner-info-modal-view-431100ad.js → sqm-partner-info-modal-view-d9b61d54.js} +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +75 -8
- package/dist/cjs/{sqm-user-info-form-view-c5f9b79b.js → sqm-user-info-form-view-9745956d.js} +49 -46
- package/dist/cjs/{subregions-3d27e279.js → subregions-d12829d6.js} +28 -0
- package/dist/cjs/{useIndirectTaxForm-5211013b.js → useIndirectTaxForm-0969e194.js} +26 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +19 -0
- package/dist/collection/components/tax-and-cash/data.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +25 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +10 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +24 -13
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +25 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +64 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +11 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +44 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +51 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
- package/dist/collection/components/tax-and-cash/utils.js +26 -0
- package/dist/esm/{data-8698cbc6.js → data-0be04430.js} +2 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +43 -29
- package/dist/esm/sqm-big-stat_47.entry.js +47 -17
- package/dist/esm/sqm-email-verification_2.entry.js +3 -3
- package/dist/esm/{sqm-partner-info-modal-view-34d4be5b.js → sqm-partner-info-modal-view-b921fed1.js} +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +75 -8
- package/dist/esm/{sqm-user-info-form-view-ceb3917a.js → sqm-user-info-form-view-81526655.js} +49 -46
- package/dist/esm/{subregions-810a5c2d.js → subregions-98789b46.js} +27 -1
- package/dist/esm/{useIndirectTaxForm-4dc576f0.js → useIndirectTaxForm-bbe8779d.js} +26 -3
- package/dist/esm-es5/data-0be04430.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-81526655.js +1 -0
- package/dist/esm-es5/subregions-98789b46.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-bbe8779d.js +6 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-07b989a3.system.js +6 -0
- package/dist/mint-components/{p-05466678.entry.js → p-0d89ef44.entry.js} +3 -3
- package/dist/mint-components/p-14f4cce8.js +1 -0
- package/dist/mint-components/{p-8bdabf61.entry.js → p-1e9c339f.entry.js} +2 -2
- package/dist/mint-components/p-227ca8d4.system.js +1 -0
- package/dist/mint-components/p-231926a3.system.entry.js +1 -0
- package/dist/mint-components/p-288249ae.system.entry.js +1 -0
- package/dist/mint-components/p-53575d04.js +1 -0
- package/dist/mint-components/p-549d60ee.system.entry.js +1 -0
- package/dist/mint-components/{p-7468e5b8.entry.js → p-654cdee8.entry.js} +2 -2
- package/dist/mint-components/{p-5c52100b.js → p-7aa89fa8.js} +2 -0
- package/dist/mint-components/p-826e3db0.system.js +1 -0
- package/dist/mint-components/p-a1b655ba.system.js +1 -0
- package/dist/mint-components/p-b1feb0f1.js +108 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-ee6700a3.system.entry.js → p-cf12347b.system.entry.js} +1 -1
- package/dist/mint-components/p-db73312a.system.js +1 -0
- package/dist/mint-components/p-e1b917ff.entry.js +83 -0
- package/dist/mint-components/p-f75ead20.js +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/data.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +8 -0
- package/dist/types/components/tax-and-cash/utils.d.ts +5 -1
- package/dist/types/components.d.ts +54 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/data-8698cbc6.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-34d4be5b.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-ceb3917a.js +0 -1
- package/dist/esm-es5/subregions-810a5c2d.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-4dc576f0.js +0 -6
- package/dist/mint-components/p-0ad64881.js +0 -101
- package/dist/mint-components/p-41e1547d.system.entry.js +0 -1
- package/dist/mint-components/p-4481f259.entry.js +0 -83
- package/dist/mint-components/p-6c31a79b.system.entry.js +0 -1
- package/dist/mint-components/p-6cd93ea3.system.js +0 -6
- package/dist/mint-components/p-765e3379.js +0 -1
- package/dist/mint-components/p-92f520c9.js +0 -1
- package/dist/mint-components/p-93f1e26a.system.entry.js +0 -1
- package/dist/mint-components/p-9c1f5317.system.js +0 -1
- package/dist/mint-components/p-ad90628d.system.js +0 -1
- package/dist/mint-components/p-aef2db59.system.js +0 -1
- package/dist/mint-components/p-c36fedea.js +0 -1
- package/dist/mint-components/p-fd231c49.system.js +0 -1
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
+
const holdAlertContainer = (iconColor) => ({
|
|
5
|
+
marginLeft: "-20px",
|
|
6
|
+
"&::part(base)": {
|
|
7
|
+
maxWidth: "850px",
|
|
8
|
+
border: "none",
|
|
9
|
+
backgroundColor: "transparent",
|
|
10
|
+
color: "var(--sqm-text)",
|
|
11
|
+
},
|
|
12
|
+
"& sl-icon::part(base)": {
|
|
13
|
+
color: iconColor,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
4
16
|
const style = {
|
|
5
17
|
ErrorAlertContainer: {
|
|
6
18
|
"&::part(base)": {
|
|
@@ -15,30 +27,9 @@ const style = {
|
|
|
15
27
|
maxWidth: "600px",
|
|
16
28
|
},
|
|
17
29
|
},
|
|
18
|
-
WarningHoldAlertContainer:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
maxWidth: "850px",
|
|
22
|
-
border: "none",
|
|
23
|
-
backgroundColor: "transparent",
|
|
24
|
-
color: "var(--sqm-text)",
|
|
25
|
-
},
|
|
26
|
-
"& sl-icon::part(base)": {
|
|
27
|
-
color: "var(--sqm-warning-color-icon)",
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
ErrorHoldAlertContainer: {
|
|
31
|
-
marginLeft: "-20px",
|
|
32
|
-
"&::part(base)": {
|
|
33
|
-
maxWidth: "850px",
|
|
34
|
-
border: "none",
|
|
35
|
-
backgroundColor: "transparent",
|
|
36
|
-
color: "var(--sqm-text)",
|
|
37
|
-
},
|
|
38
|
-
"& sl-icon::part(base)": {
|
|
39
|
-
color: "var(--sqm-danger-color-icon)",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
30
|
+
WarningHoldAlertContainer: holdAlertContainer("var(--sqm-warning-color-icon)"),
|
|
31
|
+
ErrorHoldAlertContainer: holdAlertContainer("var(--sqm-danger-color-icon)"),
|
|
32
|
+
InfoHoldAlertContainer: holdAlertContainer("var(--sqm-informative-color-icon)"),
|
|
42
33
|
ExpiringSoonAlertContainer: {
|
|
43
34
|
"&::part(base)": {
|
|
44
35
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -298,7 +289,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
298
289
|
id: "payoutHoldAlertDescription",
|
|
299
290
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
300
291
|
}, {
|
|
301
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
292
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
302
293
|
}),
|
|
303
294
|
buttonText: null,
|
|
304
295
|
alertType: "warning",
|
|
@@ -313,7 +304,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
313
304
|
id: "verificationRequiredDescription",
|
|
314
305
|
defaultMessage: text.verificationRequiredDescription,
|
|
315
306
|
}, {
|
|
316
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
307
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
317
308
|
}),
|
|
318
309
|
buttonText: text.verificationRequiredButtonText,
|
|
319
310
|
alertType: "warning",
|
|
@@ -327,7 +318,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
327
318
|
id: "verificationRequiredInternalDescription",
|
|
328
319
|
defaultMessage: text.verificationRequiredInternalDescription,
|
|
329
320
|
}, {
|
|
330
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
321
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
331
322
|
}),
|
|
332
323
|
alertType: "warning",
|
|
333
324
|
icon: "exclamation-triangle",
|
|
@@ -340,7 +331,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
340
331
|
id: "verificationReviewInternalDescription",
|
|
341
332
|
defaultMessage: text.verificationReviewInternalDescription,
|
|
342
333
|
}, {
|
|
343
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
334
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
344
335
|
}),
|
|
345
336
|
alertType: "warning",
|
|
346
337
|
icon: "exclamation-triangle",
|
|
@@ -353,7 +344,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
353
344
|
id: "verificationFailedInternalDescription",
|
|
354
345
|
defaultMessage: text.verificationFailedInternalDescription,
|
|
355
346
|
}, {
|
|
356
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
347
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
357
348
|
}),
|
|
358
349
|
alertType: "error",
|
|
359
350
|
icon: "exclamation-octagon",
|
|
@@ -366,13 +357,25 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
366
357
|
id: "accountReviewDescription",
|
|
367
358
|
defaultMessage: text.accountReviewDescription,
|
|
368
359
|
}, {
|
|
369
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
360
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
370
361
|
}),
|
|
371
362
|
buttonText: null,
|
|
372
363
|
alertType: "warning",
|
|
373
364
|
icon: "exclamation-triangle",
|
|
374
365
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
375
366
|
};
|
|
367
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
368
|
+
return {
|
|
369
|
+
header: text.balanceUnderThresholdHeader,
|
|
370
|
+
description: intl.formatMessage({
|
|
371
|
+
id: "balanceUnderThresholdDescription",
|
|
372
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
373
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
374
|
+
buttonText: null,
|
|
375
|
+
alertType: "info",
|
|
376
|
+
icon: "info-circle",
|
|
377
|
+
class: sheet.classes.InfoHoldAlertContainer,
|
|
378
|
+
};
|
|
376
379
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
377
380
|
return {
|
|
378
381
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -380,7 +383,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
380
383
|
id: "accountReviewDescription",
|
|
381
384
|
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
382
385
|
}, {
|
|
383
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
386
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
384
387
|
}),
|
|
385
388
|
buttonText: null,
|
|
386
389
|
alertType: "warning",
|
|
@@ -394,7 +397,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
394
397
|
id: "accountReviewDescription",
|
|
395
398
|
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
396
399
|
}, {
|
|
397
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
400
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
398
401
|
}),
|
|
399
402
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
400
403
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -410,7 +413,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
410
413
|
id: "accountReviewDescription",
|
|
411
414
|
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
412
415
|
}, {
|
|
413
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
416
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
414
417
|
}),
|
|
415
418
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
416
419
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -426,7 +429,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
426
429
|
id: "accountReviewDescription",
|
|
427
430
|
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
428
431
|
}, {
|
|
429
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
432
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
430
433
|
}),
|
|
431
434
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
432
435
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -442,7 +445,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
442
445
|
id: "accountReviewDescription",
|
|
443
446
|
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
444
447
|
}, {
|
|
445
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
448
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
446
449
|
}),
|
|
447
450
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
448
451
|
alertType: "warning",
|
|
@@ -456,7 +459,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
456
459
|
id: "accountReviewDescription",
|
|
457
460
|
defaultMessage: text.paymentReturnedDescription,
|
|
458
461
|
}, {
|
|
459
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
462
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
460
463
|
}),
|
|
461
464
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
462
465
|
alertType: "error",
|
|
@@ -470,7 +473,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
470
473
|
id: "payoutHoldAlertDescription",
|
|
471
474
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
472
475
|
}, {
|
|
473
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
476
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
474
477
|
}),
|
|
475
478
|
buttonText: null,
|
|
476
479
|
alertType: "warning",
|
|
@@ -604,7 +607,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
604
607
|
id: "loadingErrorAlertDescription",
|
|
605
608
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
606
609
|
}, {
|
|
607
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
610
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
608
611
|
})))),
|
|
609
612
|
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
610
613
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
@@ -614,7 +617,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
614
617
|
id: "generalDescription",
|
|
615
618
|
defaultMessage: text.error.generalDescription,
|
|
616
619
|
}, {
|
|
617
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
620
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
618
621
|
}))),
|
|
619
622
|
alertInfo && (h("sqm-form-message", { loading: states.loading, exportparts: "base: alert-base, icon:alert-icon", type: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class, icon: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon, transparent: true },
|
|
620
623
|
h("strong", null, alertInfo.header),
|
|
@@ -663,14 +666,14 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
663
666
|
id: "indirectTaxTooltipSupport",
|
|
664
667
|
defaultMessage: text.indirectTaxTooltipSupport,
|
|
665
668
|
}, {
|
|
666
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
669
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
667
670
|
})))),
|
|
668
671
|
h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
|
|
669
672
|
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
670
673
|
id: "notRegisteredForTax",
|
|
671
674
|
defaultMessage: text.notRegisteredForTax,
|
|
672
675
|
}, {
|
|
673
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
676
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
674
677
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
675
678
|
!states.notRegistered && (h("div", { class: sheet.classes.TaxNumberContainer },
|
|
676
679
|
h("span", null, intl.formatMessage({
|
|
@@ -253,6 +253,14 @@ export class TaxAndCashDashboard {
|
|
|
253
253
|
* @uiName Account review alert description
|
|
254
254
|
*/
|
|
255
255
|
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}.";
|
|
256
|
+
/**
|
|
257
|
+
* @uiName Balance under payout minimum alert header
|
|
258
|
+
*/
|
|
259
|
+
this.balanceUnderThresholdHeader = "Your balance is under the minimum payout";
|
|
260
|
+
/**
|
|
261
|
+
* @uiName Balance under payout minimum alert description
|
|
262
|
+
*/
|
|
263
|
+
this.balanceUnderThresholdDescription = "Your total balance is under {minPayoutAmount}, the minimum required for payout.";
|
|
256
264
|
/**
|
|
257
265
|
* @uiName Payment hold on change alert header
|
|
258
266
|
*/
|
|
@@ -1441,6 +1449,48 @@ export class TaxAndCashDashboard {
|
|
|
1441
1449
|
"reflect": false,
|
|
1442
1450
|
"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}.\""
|
|
1443
1451
|
},
|
|
1452
|
+
"balanceUnderThresholdHeader": {
|
|
1453
|
+
"type": "string",
|
|
1454
|
+
"mutable": false,
|
|
1455
|
+
"complexType": {
|
|
1456
|
+
"original": "string",
|
|
1457
|
+
"resolved": "string",
|
|
1458
|
+
"references": {}
|
|
1459
|
+
},
|
|
1460
|
+
"required": false,
|
|
1461
|
+
"optional": false,
|
|
1462
|
+
"docs": {
|
|
1463
|
+
"tags": [{
|
|
1464
|
+
"text": "Balance under payout minimum alert header",
|
|
1465
|
+
"name": "uiName"
|
|
1466
|
+
}],
|
|
1467
|
+
"text": ""
|
|
1468
|
+
},
|
|
1469
|
+
"attribute": "balance-under-threshold-header",
|
|
1470
|
+
"reflect": false,
|
|
1471
|
+
"defaultValue": "\"Your balance is under the minimum payout\""
|
|
1472
|
+
},
|
|
1473
|
+
"balanceUnderThresholdDescription": {
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"mutable": false,
|
|
1476
|
+
"complexType": {
|
|
1477
|
+
"original": "string",
|
|
1478
|
+
"resolved": "string",
|
|
1479
|
+
"references": {}
|
|
1480
|
+
},
|
|
1481
|
+
"required": false,
|
|
1482
|
+
"optional": false,
|
|
1483
|
+
"docs": {
|
|
1484
|
+
"tags": [{
|
|
1485
|
+
"text": "Balance under payout minimum alert description",
|
|
1486
|
+
"name": "uiName"
|
|
1487
|
+
}],
|
|
1488
|
+
"text": ""
|
|
1489
|
+
},
|
|
1490
|
+
"attribute": "balance-under-threshold-description",
|
|
1491
|
+
"reflect": false,
|
|
1492
|
+
"defaultValue": "\"Your total balance is under {minPayoutAmount}, the minimum required for payout.\""
|
|
1493
|
+
},
|
|
1444
1494
|
"paymentHoldOnChangeHeader": {
|
|
1445
1495
|
"type": "string",
|
|
1446
1496
|
"mutable": false,
|
|
@@ -2175,7 +2225,7 @@ export class TaxAndCashDashboard {
|
|
|
2175
2225
|
"mutable": false,
|
|
2176
2226
|
"complexType": {
|
|
2177
2227
|
"original": "DemoData<UseTaxAndCashDashboardResult>",
|
|
2178
|
-
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2228
|
+
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; showNewFormDialog: boolean; hasHold: boolean; payoutStatus: PayoutStatus; minPayoutAmount?: string; veriffLoading: boolean; errors?: { general?: boolean; }; enforceUsTaxComplianceOption?: string; }; }",
|
|
2179
2229
|
"references": {
|
|
2180
2230
|
"DemoData": {
|
|
2181
2231
|
"location": "import",
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getStatus, } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
|
6
6
|
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
7
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
8
8
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
9
|
-
import { taxTypeToName } from "../utils";
|
|
9
|
+
import { formatPayoutThreshold, taxTypeToName } from "../utils";
|
|
10
10
|
import { gql } from "graphql-request";
|
|
11
11
|
const GET_TAX_SETTING = gql `
|
|
12
12
|
query getTenantSettings {
|
|
@@ -126,6 +126,7 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
126
126
|
showNewFormDialog: showDialog,
|
|
127
127
|
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
128
128
|
payoutStatus,
|
|
129
|
+
minPayoutAmount: formatPayoutThreshold(publisher),
|
|
129
130
|
veriffLoading,
|
|
130
131
|
enforceUsTaxComplianceOption,
|
|
131
132
|
},
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -315,7 +315,7 @@ export const UserInfoFormView = (props) => {
|
|
|
315
315
|
id: "loadingErrorAlertDescription",
|
|
316
316
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
317
317
|
}, {
|
|
318
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
318
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
319
319
|
}))))),
|
|
320
320
|
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
321
321
|
h("div", { class: classes.TextContainer },
|
|
@@ -332,7 +332,7 @@ export const UserInfoFormView = (props) => {
|
|
|
332
332
|
id: "generalDescription",
|
|
333
333
|
defaultMessage: text.error.generalDescription,
|
|
334
334
|
}, {
|
|
335
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
335
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
336
336
|
})))),
|
|
337
337
|
(states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
338
338
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
@@ -340,7 +340,7 @@ export const UserInfoFormView = (props) => {
|
|
|
340
340
|
id: "isPartnerAlertDescription",
|
|
341
341
|
defaultMessage: text.isPartnerAlertDescription,
|
|
342
342
|
}, {
|
|
343
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
343
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
344
344
|
})))),
|
|
345
345
|
h("div", null,
|
|
346
346
|
h("div", { class: classes.InputContainer },
|
|
@@ -100,3 +100,29 @@ export function getCountryObj({ countryCode, locale, }) {
|
|
|
100
100
|
displayName,
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
+
/** The minimum balance Impact requires before it will issue a payout, e.g. "USD50.00". */
|
|
104
|
+
export function formatPayoutThreshold(publisher) {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
const threshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
107
|
+
if (!threshold)
|
|
108
|
+
return undefined;
|
|
109
|
+
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
110
|
+
}
|
|
111
|
+
/** `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable. */
|
|
112
|
+
export function isBalanceUnderPayoutThreshold(publisher) {
|
|
113
|
+
var _a;
|
|
114
|
+
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
115
|
+
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
116
|
+
if (!rawThreshold || !account)
|
|
117
|
+
return false;
|
|
118
|
+
const threshold = Number(rawThreshold);
|
|
119
|
+
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
120
|
+
return false;
|
|
121
|
+
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
122
|
+
if (!currency)
|
|
123
|
+
return false;
|
|
124
|
+
const scale = 10 **
|
|
125
|
+
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
126
|
+
.resolvedOptions().maximumFractionDigits;
|
|
127
|
+
return account.balanceAmount < Math.round(threshold * scale);
|
|
128
|
+
}
|