@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
package/dist/esm/{sqm-user-info-form-view-ceb3917a.js → sqm-user-info-form-view-81526655.js}
RENAMED
|
@@ -2,8 +2,8 @@ import { h } from './index-38ad4957.js';
|
|
|
2
2
|
import { i as intl } from './global-32d00a6e.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AsYouType } from './AsYouType-2d56519e.js';
|
|
5
|
-
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-
|
|
6
|
-
import { F as FORM_STEPS } from './data-
|
|
5
|
+
import { f as formatErrorMessage, a as INDIRECT_TAX_PROVINCES, L as LoadingView, i as isValidI18nPhoneNumber, v as validateBillingField } from './subregions-98789b46.js';
|
|
6
|
+
import { F as FORM_STEPS } from './data-0be04430.js';
|
|
7
7
|
|
|
8
8
|
const style = {
|
|
9
9
|
Description: {
|
|
@@ -59,6 +59,18 @@ function InvoiceTableView(props, children) {
|
|
|
59
59
|
children))));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
const holdAlertContainer = (iconColor) => ({
|
|
63
|
+
marginLeft: "-20px",
|
|
64
|
+
"&::part(base)": {
|
|
65
|
+
maxWidth: "850px",
|
|
66
|
+
border: "none",
|
|
67
|
+
backgroundColor: "transparent",
|
|
68
|
+
color: "var(--sqm-text)",
|
|
69
|
+
},
|
|
70
|
+
"& sl-icon::part(base)": {
|
|
71
|
+
color: iconColor,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
62
74
|
const style$1 = {
|
|
63
75
|
ErrorAlertContainer: {
|
|
64
76
|
"&::part(base)": {
|
|
@@ -73,30 +85,9 @@ const style$1 = {
|
|
|
73
85
|
maxWidth: "600px",
|
|
74
86
|
},
|
|
75
87
|
},
|
|
76
|
-
WarningHoldAlertContainer:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
maxWidth: "850px",
|
|
80
|
-
border: "none",
|
|
81
|
-
backgroundColor: "transparent",
|
|
82
|
-
color: "var(--sqm-text)",
|
|
83
|
-
},
|
|
84
|
-
"& sl-icon::part(base)": {
|
|
85
|
-
color: "var(--sqm-warning-color-icon)",
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
ErrorHoldAlertContainer: {
|
|
89
|
-
marginLeft: "-20px",
|
|
90
|
-
"&::part(base)": {
|
|
91
|
-
maxWidth: "850px",
|
|
92
|
-
border: "none",
|
|
93
|
-
backgroundColor: "transparent",
|
|
94
|
-
color: "var(--sqm-text)",
|
|
95
|
-
},
|
|
96
|
-
"& sl-icon::part(base)": {
|
|
97
|
-
color: "var(--sqm-danger-color-icon)",
|
|
98
|
-
},
|
|
99
|
-
},
|
|
88
|
+
WarningHoldAlertContainer: holdAlertContainer("var(--sqm-warning-color-icon)"),
|
|
89
|
+
ErrorHoldAlertContainer: holdAlertContainer("var(--sqm-danger-color-icon)"),
|
|
90
|
+
InfoHoldAlertContainer: holdAlertContainer("var(--sqm-informative-color-icon)"),
|
|
100
91
|
ExpiringSoonAlertContainer: {
|
|
101
92
|
"&::part(base)": {
|
|
102
93
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -356,7 +347,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
356
347
|
id: "payoutHoldAlertDescription",
|
|
357
348
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
358
349
|
}, {
|
|
359
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
350
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
360
351
|
}),
|
|
361
352
|
buttonText: null,
|
|
362
353
|
alertType: "warning",
|
|
@@ -371,7 +362,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
371
362
|
id: "verificationRequiredDescription",
|
|
372
363
|
defaultMessage: text.verificationRequiredDescription,
|
|
373
364
|
}, {
|
|
374
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
365
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
375
366
|
}),
|
|
376
367
|
buttonText: text.verificationRequiredButtonText,
|
|
377
368
|
alertType: "warning",
|
|
@@ -385,7 +376,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
385
376
|
id: "verificationRequiredInternalDescription",
|
|
386
377
|
defaultMessage: text.verificationRequiredInternalDescription,
|
|
387
378
|
}, {
|
|
388
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
379
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
389
380
|
}),
|
|
390
381
|
alertType: "warning",
|
|
391
382
|
icon: "exclamation-triangle",
|
|
@@ -398,7 +389,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
398
389
|
id: "verificationReviewInternalDescription",
|
|
399
390
|
defaultMessage: text.verificationReviewInternalDescription,
|
|
400
391
|
}, {
|
|
401
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
392
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
402
393
|
}),
|
|
403
394
|
alertType: "warning",
|
|
404
395
|
icon: "exclamation-triangle",
|
|
@@ -411,7 +402,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
411
402
|
id: "verificationFailedInternalDescription",
|
|
412
403
|
defaultMessage: text.verificationFailedInternalDescription,
|
|
413
404
|
}, {
|
|
414
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
405
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
415
406
|
}),
|
|
416
407
|
alertType: "error",
|
|
417
408
|
icon: "exclamation-octagon",
|
|
@@ -424,13 +415,25 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
424
415
|
id: "accountReviewDescription",
|
|
425
416
|
defaultMessage: text.accountReviewDescription,
|
|
426
417
|
}, {
|
|
427
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
418
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
428
419
|
}),
|
|
429
420
|
buttonText: null,
|
|
430
421
|
alertType: "warning",
|
|
431
422
|
icon: "exclamation-triangle",
|
|
432
423
|
class: sheet.classes.WarningHoldAlertContainer,
|
|
433
424
|
};
|
|
425
|
+
case "BALANCE_UNDER_THRESHOLD":
|
|
426
|
+
return {
|
|
427
|
+
header: text.balanceUnderThresholdHeader,
|
|
428
|
+
description: intl.formatMessage({
|
|
429
|
+
id: "balanceUnderThresholdDescription",
|
|
430
|
+
defaultMessage: text.balanceUnderThresholdDescription,
|
|
431
|
+
}, { minPayoutAmount: states.minPayoutAmount }),
|
|
432
|
+
buttonText: null,
|
|
433
|
+
alertType: "info",
|
|
434
|
+
icon: "info-circle",
|
|
435
|
+
class: sheet.classes.InfoHoldAlertContainer,
|
|
436
|
+
};
|
|
434
437
|
case "PAYMENT_HOLD_ON_CHANGE":
|
|
435
438
|
return {
|
|
436
439
|
header: text.paymentHoldOnChangeHeader,
|
|
@@ -438,7 +441,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
438
441
|
id: "accountReviewDescription",
|
|
439
442
|
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
440
443
|
}, {
|
|
441
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
444
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
442
445
|
}),
|
|
443
446
|
buttonText: null,
|
|
444
447
|
alertType: "warning",
|
|
@@ -452,7 +455,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
452
455
|
id: "accountReviewDescription",
|
|
453
456
|
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
454
457
|
}, {
|
|
455
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
458
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
456
459
|
}),
|
|
457
460
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
458
461
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -468,7 +471,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
468
471
|
id: "accountReviewDescription",
|
|
469
472
|
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
470
473
|
}, {
|
|
471
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
474
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
472
475
|
}),
|
|
473
476
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
474
477
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -484,7 +487,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
484
487
|
id: "accountReviewDescription",
|
|
485
488
|
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
486
489
|
}, {
|
|
487
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
490
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
488
491
|
}),
|
|
489
492
|
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
490
493
|
h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton),
|
|
@@ -500,7 +503,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
500
503
|
id: "accountReviewDescription",
|
|
501
504
|
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
502
505
|
}, {
|
|
503
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
506
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
504
507
|
}),
|
|
505
508
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
506
509
|
alertType: "warning",
|
|
@@ -514,7 +517,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
514
517
|
id: "accountReviewDescription",
|
|
515
518
|
defaultMessage: text.paymentReturnedDescription,
|
|
516
519
|
}, {
|
|
517
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
520
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
518
521
|
}),
|
|
519
522
|
button: (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", class: sheet.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
|
|
520
523
|
alertType: "error",
|
|
@@ -528,7 +531,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
528
531
|
id: "payoutHoldAlertDescription",
|
|
529
532
|
defaultMessage: text.payoutHoldAlertDescription,
|
|
530
533
|
}, {
|
|
531
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
534
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
532
535
|
}),
|
|
533
536
|
buttonText: null,
|
|
534
537
|
alertType: "warning",
|
|
@@ -662,7 +665,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
662
665
|
id: "loadingErrorAlertDescription",
|
|
663
666
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
664
667
|
}, {
|
|
665
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
668
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
666
669
|
})))),
|
|
667
670
|
((_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 },
|
|
668
671
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
@@ -672,7 +675,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
672
675
|
id: "generalDescription",
|
|
673
676
|
defaultMessage: text.error.generalDescription,
|
|
674
677
|
}, {
|
|
675
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
678
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
676
679
|
}))),
|
|
677
680
|
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 },
|
|
678
681
|
h("strong", null, alertInfo.header),
|
|
@@ -721,14 +724,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
721
724
|
id: "indirectTaxTooltipSupport",
|
|
722
725
|
defaultMessage: text.indirectTaxTooltipSupport,
|
|
723
726
|
}, {
|
|
724
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
727
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com`, class: sheet.classes.DropdownLink }, text.supportLink)),
|
|
725
728
|
})))),
|
|
726
729
|
h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
|
|
727
730
|
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
728
731
|
id: "notRegisteredForTax",
|
|
729
732
|
defaultMessage: text.notRegisteredForTax,
|
|
730
733
|
}, {
|
|
731
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
734
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
732
735
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
733
736
|
!states.notRegistered && (h("div", { class: sheet.classes.TaxNumberContainer },
|
|
734
737
|
h("span", null, intl.formatMessage({
|
|
@@ -2266,7 +2269,7 @@ const UserInfoFormView = (props) => {
|
|
|
2266
2269
|
id: "loadingErrorAlertDescription",
|
|
2267
2270
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2268
2271
|
}, {
|
|
2269
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2272
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2270
2273
|
}))))),
|
|
2271
2274
|
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
2272
2275
|
h("div", { class: classes.TextContainer },
|
|
@@ -2283,7 +2286,7 @@ const UserInfoFormView = (props) => {
|
|
|
2283
2286
|
id: "generalDescription",
|
|
2284
2287
|
defaultMessage: text.error.generalDescription,
|
|
2285
2288
|
}, {
|
|
2286
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2289
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2287
2290
|
})))),
|
|
2288
2291
|
(states.isPartnerLegacy || states.isUserLegacy) && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
2289
2292
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
@@ -2291,7 +2294,7 @@ const UserInfoFormView = (props) => {
|
|
|
2291
2294
|
id: "isPartnerAlertDescription",
|
|
2292
2295
|
defaultMessage: text.isPartnerAlertDescription,
|
|
2293
2296
|
}, {
|
|
2294
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2297
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
2295
2298
|
})))),
|
|
2296
2299
|
h("div", null,
|
|
2297
2300
|
h("div", { class: classes.InputContainer },
|
|
@@ -633,6 +633,32 @@ function getCountryObj({ countryCode, locale, }) {
|
|
|
633
633
|
displayName,
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
+
/** The minimum balance Impact requires before it will issue a payout, e.g. "USD50.00". */
|
|
637
|
+
function formatPayoutThreshold(publisher) {
|
|
638
|
+
var _a, _b;
|
|
639
|
+
const threshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
640
|
+
if (!threshold)
|
|
641
|
+
return undefined;
|
|
642
|
+
return `${(_b = publisher === null || publisher === void 0 ? void 0 : publisher.currency) !== null && _b !== void 0 ? _b : ""}${threshold}`;
|
|
643
|
+
}
|
|
644
|
+
/** `payoutsAccount.balance` is a formatted string; only `balanceAmount` (minor units) is comparable. */
|
|
645
|
+
function isBalanceUnderPayoutThreshold(publisher) {
|
|
646
|
+
var _a;
|
|
647
|
+
const rawThreshold = (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold;
|
|
648
|
+
const account = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount;
|
|
649
|
+
if (!rawThreshold || !account)
|
|
650
|
+
return false;
|
|
651
|
+
const threshold = Number(rawThreshold);
|
|
652
|
+
if (!Number.isFinite(threshold) || !Number.isFinite(account.balanceAmount))
|
|
653
|
+
return false;
|
|
654
|
+
const currency = account.currencyCode || (publisher === null || publisher === void 0 ? void 0 : publisher.currency);
|
|
655
|
+
if (!currency)
|
|
656
|
+
return false;
|
|
657
|
+
const scale = 10 **
|
|
658
|
+
new Intl.NumberFormat("en-US", { style: "currency", currency })
|
|
659
|
+
.resolvedOptions().maximumFractionDigits;
|
|
660
|
+
return account.balanceAmount < Math.round(threshold * scale);
|
|
661
|
+
}
|
|
636
662
|
|
|
637
663
|
const style = {
|
|
638
664
|
Container: {
|
|
@@ -1052,4 +1078,4 @@ const ADDRESS_REGIONS = {
|
|
|
1052
1078
|
},
|
|
1053
1079
|
};
|
|
1054
1080
|
|
|
1055
|
-
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a,
|
|
1081
|
+
export { ADDRESS_REGIONS as A, INDIRECT_TAX_SPAIN_REGIONS as I, LoadingView as L, INDIRECT_TAX_PROVINCES as a, formatPayoutThreshold as b, isBalanceUnderPayoutThreshold as c, validTaxDocument as d, toDomesticNumber as e, formatErrorMessage as f, getCountryObj as g, isValidI18nPhoneNumber as i, objectIsFull as o, taxTypeToName as t, validateBillingField as v };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as useState, f as useEffect, m as useRef, u as useMemo } from './dom-context-hooks.module-50442785.js';
|
|
2
2
|
import { d as dist, J, $ as $e, g as getEnvironmentSDK, w as wn, L, F as Fn, q as Pn, r as $n } from './index.module-02cb914c.js';
|
|
3
3
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
4
|
-
import { I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, g as getCountryObj,
|
|
5
|
-
import { a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, c as USER_QUERY_NAMESPACE } from './data-
|
|
4
|
+
import { b as formatPayoutThreshold, c as isBalanceUnderPayoutThreshold, I as INDIRECT_TAX_SPAIN_REGIONS, a as INDIRECT_TAX_PROVINCES, g as getCountryObj, d as validTaxDocument } from './subregions-98789b46.js';
|
|
5
|
+
import { a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, c as USER_QUERY_NAMESPACE } from './data-0be04430.js';
|
|
6
6
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
7
7
|
|
|
8
8
|
var toArray = function toArray(a) {
|
|
@@ -975,9 +975,16 @@ const GET_USER_STATUS = dist.gql `
|
|
|
975
975
|
connected
|
|
976
976
|
publisher {
|
|
977
977
|
id
|
|
978
|
+
currency
|
|
979
|
+
withdrawalSettings {
|
|
980
|
+
paymentThreshold
|
|
981
|
+
}
|
|
978
982
|
payoutsAccount {
|
|
979
983
|
hold
|
|
980
984
|
holdReasons
|
|
985
|
+
balance
|
|
986
|
+
balanceAmount
|
|
987
|
+
currencyCode
|
|
981
988
|
}
|
|
982
989
|
}
|
|
983
990
|
}
|
|
@@ -1004,7 +1011,22 @@ const GET_TAX_SETTING = dist.gql `
|
|
|
1004
1011
|
}
|
|
1005
1012
|
}
|
|
1006
1013
|
`;
|
|
1014
|
+
/** Transient holds that clear automatically, so a balance under the minimum explains the wait better. */
|
|
1015
|
+
const DISPLACEABLE_STATUSES = [
|
|
1016
|
+
"DONE",
|
|
1017
|
+
"NEW_PAYEE_REVIEW",
|
|
1018
|
+
"PAYMENT_HOLD_ON_CHANGE",
|
|
1019
|
+
];
|
|
1007
1020
|
function getStatus(data) {
|
|
1021
|
+
var _a;
|
|
1022
|
+
const status = getHoldStatus(data);
|
|
1023
|
+
const publisher = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
1024
|
+
return DISPLACEABLE_STATUSES.includes(status) &&
|
|
1025
|
+
isBalanceUnderPayoutThreshold(publisher)
|
|
1026
|
+
? "BALANCE_UNDER_THRESHOLD"
|
|
1027
|
+
: status;
|
|
1028
|
+
}
|
|
1029
|
+
function getHoldStatus(data) {
|
|
1008
1030
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
1009
1031
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1010
1032
|
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) => {
|
|
@@ -1047,7 +1069,7 @@ function getStatus(data) {
|
|
|
1047
1069
|
return "DONE";
|
|
1048
1070
|
}
|
|
1049
1071
|
function usePayoutStatus(props) {
|
|
1050
|
-
var _a;
|
|
1072
|
+
var _a, _b, _c;
|
|
1051
1073
|
const { type } = getEnvironmentSDK();
|
|
1052
1074
|
const { loading, data, errors, refetch } = wn(GET_USER_STATUS, {});
|
|
1053
1075
|
const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
|
|
@@ -1097,6 +1119,7 @@ function usePayoutStatus(props) {
|
|
|
1097
1119
|
status,
|
|
1098
1120
|
error: !!errors,
|
|
1099
1121
|
enforceUsTaxComplianceOption,
|
|
1122
|
+
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),
|
|
1100
1123
|
},
|
|
1101
1124
|
data: { type },
|
|
1102
1125
|
text: props.getTextProps(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};import{d as dist}from"./index.module-02cb914c.js";var TAX_CONTEXT_NAMESPACE="sq:tax-and-cash";var TAX_FORM_CONTEXT_NAMESPACE="sq:tax-form-context";var USER_QUERY_NAMESPACE="sq:user-info-query";var USER_FORM_CONTEXT_NAMESPACE="sq:user-form-context";var FINANCE_NETWORK_SETTINGS_NAMESPACE="sq:finance-network-settings";var COUNTRIES_NAMESPACE="sq:countries:list";var SORTED_COUNTRIES_NAMESPACE="sq:countries:sorted";var COUNTRIES_QUERY_NAMESPACE="sq:countries:query";var CURRENCIES_NAMESPACE="sq:currencies:list";var CURRENCIES_QUERY_NAMESPACE="sq:currencies:query";var GET_USER=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n connectionStatus\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n balanceAmount\n currencyCode\n }\n }\n }\n }\n }\n }\n"],["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n dateScheduled\n dateCreated\n dateTransferred\n }\n }\n }\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n connectionStatus\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n balanceAmount\n currencyCode\n }\n }\n }\n }\n }\n }\n"])));var GET_COUNTRIES=dist.gql(templateObject_2||(templateObject_2=__makeTemplateObject(["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"],["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"])));var GET_CURRENCIES=dist.gql(templateObject_3||(templateObject_3=__makeTemplateObject(["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"],["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"])));var GET_FINANCE_NETWORK_SETTINGS=dist.gql(templateObject_4||(templateObject_4=__makeTemplateObject(["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"],["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"])));var FORM_STEPS=4;export{CURRENCIES_NAMESPACE as C,FORM_STEPS as F,GET_USER as G,SORTED_COUNTRIES_NAMESPACE as S,TAX_CONTEXT_NAMESPACE as T,USER_FORM_CONTEXT_NAMESPACE as U,TAX_FORM_CONTEXT_NAMESPACE as a,COUNTRIES_NAMESPACE as b,USER_QUERY_NAMESPACE as c,COUNTRIES_QUERY_NAMESPACE as d,GET_COUNTRIES as e,FINANCE_NETWORK_SETTINGS_NAMESPACE as f,GET_FINANCE_NETWORK_SETTINGS as g,CURRENCIES_QUERY_NAMESPACE as h,GET_CURRENCIES as i};var templateObject_1,templateObject_2,templateObject_3,templateObject_4;
|