@saasquatch/mint-components 1.16.0-2 → 1.16.0-21
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +107 -29
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +50 -4
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/cjs/{usePayoutStatus-c84a7d98.js → usePayoutStatus-d459ddde.js} +32 -11
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -1
- package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +3 -3
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +41 -3
- 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 +32 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +81 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +48 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +76 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +22 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +108 -30
- package/dist/esm/sqm-big-stat_43.entry.js +50 -4
- package/dist/esm/sqm-qr-code.entry.js +1 -13
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm/{usePayoutStatus-f07bcf90.js → usePayoutStatus-4a7625b9.js} +32 -11
- 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_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-f07bcf90.js → usePayoutStatus-4a7625b9.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0309fdfa.entry.js +1 -0
- package/dist/mint-components/{p-9a176cdf.entry.js → p-05389a8e.entry.js} +7 -7
- package/dist/mint-components/{p-c46a0007.entry.js → p-1a838f4d.entry.js} +1 -1
- package/dist/mint-components/{p-eff2e68b.entry.js → p-267c8f8c.entry.js} +2 -2
- package/dist/mint-components/p-2bf6eef0.entry.js +211 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-776733b5.system.entry.js → p-37a4452c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6bb25c02.js → p-3b2f1211.js} +9 -3
- package/dist/mint-components/p-4b29afb2.system.entry.js +1 -0
- package/dist/mint-components/p-8b584c46.system.entry.js +1 -0
- package/dist/mint-components/p-986d4c17.system.entry.js +1 -0
- package/dist/mint-components/{p-0c9debc1.system.js → p-9f22f58a.system.js} +2 -2
- package/dist/mint-components/p-a12f854d.system.entry.js +1 -0
- package/dist/mint-components/{p-0e864c3c.system.entry.js → p-beba8f57.system.entry.js} +1 -1
- package/dist/mint-components/p-c9b08184.entry.js +17 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -1
- 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 +8 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +4 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +12 -5
- package/dist/types/components.d.ts +66 -10
- 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/mint-components/p-0c78815e.system.entry.js +0 -1
- package/dist/mint-components/p-1c67bf1c.system.entry.js +0 -1
- package/dist/mint-components/p-43b4bb99.entry.js +0 -1
- package/dist/mint-components/p-47bd2d7a.entry.js +0 -205
- package/dist/mint-components/p-53730ffe.entry.js +0 -17
- package/dist/mint-components/p-6f65f9e1.system.entry.js +0 -1
- package/dist/mint-components/p-ef75f3a9.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -21,7 +21,7 @@ const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
|
21
21
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
|
|
22
22
|
const extractProps = require('./extractProps-fd93ba62.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-d459ddde.js');
|
|
25
25
|
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
26
|
|
|
27
27
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -1074,6 +1074,10 @@ function useBankingInfoForm(props) {
|
|
|
1074
1074
|
const paymentMethodChecked = !hasPayPal
|
|
1075
1075
|
? "toBankAccount"
|
|
1076
1076
|
: _paymentMethodChecked;
|
|
1077
|
+
stencilHooks_module.useEffect(() => {
|
|
1078
|
+
// reset redirect hash
|
|
1079
|
+
window.location.hash = "";
|
|
1080
|
+
}, []);
|
|
1077
1081
|
stencilHooks_module.useEffect(() => {
|
|
1078
1082
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1079
1083
|
if (!userData)
|
|
@@ -2685,7 +2689,7 @@ const DocusignForm = class {
|
|
|
2685
2689
|
* @uiName W-8 BEN-E tax form description
|
|
2686
2690
|
* @uiWidget textArea
|
|
2687
2691
|
*/
|
|
2688
|
-
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US
|
|
2692
|
+
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
2689
2693
|
/**
|
|
2690
2694
|
* This appears inside the Docusign frame.
|
|
2691
2695
|
* @uiName Docusign session expired messag
|
|
@@ -3114,6 +3118,10 @@ function useIndirectTaxForm(props) {
|
|
|
3114
3118
|
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
|
|
3115
3119
|
const [option, setOption] = stencilHooks_module.useState("notRegistered");
|
|
3116
3120
|
const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
|
|
3121
|
+
stencilHooks_module.useEffect(() => {
|
|
3122
|
+
// reset redirect hash
|
|
3123
|
+
window.location.hash = "";
|
|
3124
|
+
}, []);
|
|
3117
3125
|
stencilHooks_module.useEffect(() => {
|
|
3118
3126
|
var _a;
|
|
3119
3127
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
@@ -4748,7 +4756,7 @@ const TaxAndCashMonolith = class {
|
|
|
4748
4756
|
* @uiGroup Step 3 Properties
|
|
4749
4757
|
* @uiWidget textArea
|
|
4750
4758
|
*/
|
|
4751
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US
|
|
4759
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
4752
4760
|
/**
|
|
4753
4761
|
* This appears inside the Docusign frame.
|
|
4754
4762
|
* @uiName Docusign session expired message
|
|
@@ -5407,6 +5415,19 @@ const TaxAndCashMonolith = class {
|
|
|
5407
5415
|
* @uiWidget textArea
|
|
5408
5416
|
*/
|
|
5409
5417
|
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
5418
|
+
/**
|
|
5419
|
+
* @uiName Account review alert header
|
|
5420
|
+
*/
|
|
5421
|
+
this.dashboard_accountReviewHeader = "Your account is under review";
|
|
5422
|
+
/**
|
|
5423
|
+
* @uiName Account review alert description
|
|
5424
|
+
*/
|
|
5425
|
+
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}.";
|
|
5426
|
+
/**
|
|
5427
|
+
* @uiName Terms and Conditions text
|
|
5428
|
+
* @uiGroup Dashboard Properties
|
|
5429
|
+
*/
|
|
5430
|
+
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
5410
5431
|
/**
|
|
5411
5432
|
* @uiName W9 payment threshold alert button text
|
|
5412
5433
|
* @uiGroup Dashboard Properties
|
|
@@ -5785,14 +5806,36 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5785
5806
|
function getAlert(status) {
|
|
5786
5807
|
switch (status) {
|
|
5787
5808
|
case "OVER_W9_THRESHOLD":
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5809
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
|
|
5810
|
+
return {
|
|
5811
|
+
header: text.w9RequiredHeader,
|
|
5812
|
+
description: global.intl.formatMessage({
|
|
5813
|
+
id: "w9RequiredDescription",
|
|
5814
|
+
defaultMessage: text.w9RequiredDescription,
|
|
5815
|
+
}, {
|
|
5816
|
+
termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
5817
|
+
}),
|
|
5818
|
+
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
5819
|
+
alertType: "info",
|
|
5820
|
+
icon: "info-circle",
|
|
5821
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5822
|
+
};
|
|
5823
|
+
}
|
|
5824
|
+
else {
|
|
5825
|
+
return {
|
|
5826
|
+
header: text.payoutHoldAlertHeader,
|
|
5827
|
+
description: global.intl.formatMessage({
|
|
5828
|
+
id: "payoutHoldAlertDescription",
|
|
5829
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5830
|
+
}, {
|
|
5831
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5832
|
+
}),
|
|
5833
|
+
buttonText: null,
|
|
5834
|
+
alertType: "warning",
|
|
5835
|
+
icon: "exclamation-triangle",
|
|
5836
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5837
|
+
};
|
|
5838
|
+
}
|
|
5796
5839
|
case "VERIFICATION:REQUIRED":
|
|
5797
5840
|
return {
|
|
5798
5841
|
header: text.verificationRequiredHeader,
|
|
@@ -5846,6 +5889,20 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5846
5889
|
icon: "exclamation-octagon",
|
|
5847
5890
|
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5848
5891
|
};
|
|
5892
|
+
case "ACCOUNT_REVIEW":
|
|
5893
|
+
return {
|
|
5894
|
+
header: text.accountReviewHeader,
|
|
5895
|
+
description: global.intl.formatMessage({
|
|
5896
|
+
id: "accountReviewDescription",
|
|
5897
|
+
defaultMessage: text.accountReviewDescription,
|
|
5898
|
+
}, {
|
|
5899
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5900
|
+
}),
|
|
5901
|
+
buttonText: null,
|
|
5902
|
+
alertType: "warning",
|
|
5903
|
+
icon: "exclamation-triangle",
|
|
5904
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5905
|
+
};
|
|
5849
5906
|
case "HOLD":
|
|
5850
5907
|
return {
|
|
5851
5908
|
header: text.payoutHoldAlertHeader,
|
|
@@ -5982,12 +6039,11 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5982
6039
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5983
6040
|
index.h("div", null,
|
|
5984
6041
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5985
|
-
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5986
6042
|
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
5987
6043
|
slots.payoutDetailsCardSlot,
|
|
5988
6044
|
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5989
6045
|
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5990
|
-
!states.noFormNeeded && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
6046
|
+
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5991
6047
|
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5992
6048
|
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5993
6049
|
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
@@ -5998,10 +6054,11 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5998
6054
|
id: "section-subheader",
|
|
5999
6055
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6000
6056
|
}, {
|
|
6001
|
-
documentType: states.documentTypeString,
|
|
6057
|
+
documentType: states.documentTypeString || "W9",
|
|
6002
6058
|
})),
|
|
6003
6059
|
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
6004
|
-
states.
|
|
6060
|
+
states.noFormNeeded &&
|
|
6061
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
6005
6062
|
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6006
6063
|
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6007
6064
|
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
@@ -6049,6 +6106,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
6049
6106
|
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
6050
6107
|
};
|
|
6051
6108
|
|
|
6109
|
+
const GET_TAX_SETTING = index_module.dist.gql `
|
|
6110
|
+
query getTenantSettings {
|
|
6111
|
+
tenantSettings {
|
|
6112
|
+
enforceUsTaxCompliance
|
|
6113
|
+
}
|
|
6114
|
+
}
|
|
6115
|
+
`;
|
|
6052
6116
|
function getCountryName(countryCode, locale) {
|
|
6053
6117
|
if (!countryCode)
|
|
6054
6118
|
return undefined;
|
|
@@ -6084,11 +6148,12 @@ function getIndirectTaxType(taxInformation) {
|
|
|
6084
6148
|
return "Indirect Tax";
|
|
6085
6149
|
}
|
|
6086
6150
|
const useTaxAndCashDashboard = (props) => {
|
|
6087
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
6151
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6088
6152
|
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6089
6153
|
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6090
6154
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
6091
6155
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
6156
|
+
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
6092
6157
|
const locale = index_module.L();
|
|
6093
6158
|
stencilHooks_module.useEffect(() => {
|
|
6094
6159
|
// Clear override context once on submitted
|
|
@@ -6129,30 +6194,32 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
6129
6194
|
window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
6130
6195
|
};
|
|
6131
6196
|
}, []);
|
|
6197
|
+
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
6132
6198
|
return {
|
|
6133
6199
|
states: {
|
|
6134
6200
|
dateSubmitted,
|
|
6135
6201
|
documentType,
|
|
6136
6202
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
6137
6203
|
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
6138
|
-
status: (
|
|
6139
|
-
subRegion: getSubRegionName((
|
|
6140
|
-
subRegionTaxNumber: (
|
|
6141
|
-
qstNumber: (
|
|
6204
|
+
status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
|
|
6205
|
+
subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
|
|
6206
|
+
subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
|
|
6207
|
+
qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
|
|
6142
6208
|
indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
|
|
6143
|
-
indirectTaxNumber: (
|
|
6209
|
+
indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
|
|
6144
6210
|
isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
|
|
6145
6211
|
province: provinceName,
|
|
6146
|
-
country: getCountryName((
|
|
6147
|
-
notRegistered: !((
|
|
6212
|
+
country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
|
|
6213
|
+
notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
|
|
6148
6214
|
noFormNeeded: !documentType,
|
|
6149
6215
|
disabled: loading,
|
|
6150
6216
|
loading,
|
|
6151
6217
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6152
6218
|
showNewFormDialog: showDialog,
|
|
6153
|
-
hasHold: !!((
|
|
6219
|
+
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
6154
6220
|
payoutStatus,
|
|
6155
6221
|
veriffLoading,
|
|
6222
|
+
enforceUsTaxComplianceOption,
|
|
6156
6223
|
},
|
|
6157
6224
|
callbacks: {
|
|
6158
6225
|
onClick: () => setShowDialog(true),
|
|
@@ -6397,6 +6464,18 @@ const TaxAndCashDashboard = class {
|
|
|
6397
6464
|
* @uiName W9 payment threshold alert description
|
|
6398
6465
|
*/
|
|
6399
6466
|
this.w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
6467
|
+
/**
|
|
6468
|
+
* @uiName Account review alert header
|
|
6469
|
+
*/
|
|
6470
|
+
this.accountReviewHeader = "Your account is under review";
|
|
6471
|
+
/**
|
|
6472
|
+
* @uiName Account review alert description
|
|
6473
|
+
*/
|
|
6474
|
+
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}.";
|
|
6475
|
+
/**
|
|
6476
|
+
* @uiName Terms and Conditions text
|
|
6477
|
+
*/
|
|
6478
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
6400
6479
|
/**
|
|
6401
6480
|
* @uiName W9 payment threshold alert button text
|
|
6402
6481
|
*/
|
|
@@ -6468,11 +6547,6 @@ const TaxAndCashDashboard = class {
|
|
|
6468
6547
|
this.invoiceEmptyStateHeader = "View your invoice details";
|
|
6469
6548
|
/** @uiName Empty invoice table description */
|
|
6470
6549
|
this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
6471
|
-
/**
|
|
6472
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
6473
|
-
* @uiName Page description
|
|
6474
|
-
*/
|
|
6475
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
6476
6550
|
/**
|
|
6477
6551
|
* @uiName Replace tax form modal header
|
|
6478
6552
|
*/
|
|
@@ -7840,6 +7914,10 @@ function useUserInfoForm(props) {
|
|
|
7840
7914
|
const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
|
|
7841
7915
|
const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
|
|
7842
7916
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
7917
|
+
stencilHooks_module.useEffect(() => {
|
|
7918
|
+
// reset redirect hash
|
|
7919
|
+
window.location.hash = "";
|
|
7920
|
+
}, []);
|
|
7843
7921
|
stencilHooks_module.useEffect(() => {
|
|
7844
7922
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7845
7923
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
@@ -26,7 +26,7 @@ const AsYouType = require('./AsYouType-6788393a.js');
|
|
|
26
26
|
const utilities = require('./utilities-78f5e169.js');
|
|
27
27
|
const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
|
|
28
28
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
29
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
29
|
+
const usePayoutStatus = require('./usePayoutStatus-d459ddde.js');
|
|
30
30
|
|
|
31
31
|
const BigStat = class {
|
|
32
32
|
constructor(hostRef) {
|
|
@@ -2364,10 +2364,46 @@ function PayoutStatusAlertView(props) {
|
|
|
2364
2364
|
class: sheet$2.classes.ErrorAlertContainer,
|
|
2365
2365
|
};
|
|
2366
2366
|
case "OVER_W9_THRESHOLD":
|
|
2367
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
|
|
2368
|
+
return {
|
|
2369
|
+
header: text.w9RequiredHeader,
|
|
2370
|
+
description: global.intl.formatMessage({
|
|
2371
|
+
id: "w9RequiredDescription",
|
|
2372
|
+
defaultMessage: text.w9RequiredDescription,
|
|
2373
|
+
}, {
|
|
2374
|
+
termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
2375
|
+
}),
|
|
2376
|
+
buttonText: text.w9RequiredButtonText,
|
|
2377
|
+
alertType: "warning",
|
|
2378
|
+
icon: "exclamation-triangle",
|
|
2379
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
else {
|
|
2383
|
+
return {
|
|
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,
|
|
2395
|
+
};
|
|
2396
|
+
}
|
|
2397
|
+
case "ACCOUNT_REVIEW":
|
|
2367
2398
|
return {
|
|
2368
|
-
header: text.
|
|
2369
|
-
description: global.intl.formatMessage({
|
|
2370
|
-
|
|
2399
|
+
header: text.accountReviewHeader,
|
|
2400
|
+
description: global.intl.formatMessage({
|
|
2401
|
+
id: "accountReviewDescription",
|
|
2402
|
+
defaultMessage: text.accountReviewDescription,
|
|
2403
|
+
}, {
|
|
2404
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2405
|
+
}),
|
|
2406
|
+
buttonText: null,
|
|
2371
2407
|
alertType: "warning",
|
|
2372
2408
|
icon: "exclamation-triangle",
|
|
2373
2409
|
class: sheet$2.classes.WarningAlertContainer,
|
|
@@ -2393,6 +2429,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2393
2429
|
function getButton(status) {
|
|
2394
2430
|
switch (status) {
|
|
2395
2431
|
case "OVER_W9_THRESHOLD":
|
|
2432
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
|
|
2433
|
+
return;
|
|
2396
2434
|
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)) : (
|
|
2397
2435
|
// Demo case
|
|
2398
2436
|
index.h("sl-button", { type: "default" }, text.w9RequiredButtonText));
|
|
@@ -2473,6 +2511,14 @@ const PayoutStatusAlert = class {
|
|
|
2473
2511
|
* @uiName Verification failed internal alert description
|
|
2474
2512
|
*/
|
|
2475
2513
|
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
2514
|
+
/**
|
|
2515
|
+
* @uiName Account review alert header
|
|
2516
|
+
*/
|
|
2517
|
+
this.accountReviewHeader = "Your account is under review";
|
|
2518
|
+
/**
|
|
2519
|
+
* @uiName Account review alert description
|
|
2520
|
+
*/
|
|
2521
|
+
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}.";
|
|
2476
2522
|
/**
|
|
2477
2523
|
* @uiName W9 payment threshold alert header
|
|
2478
2524
|
*/
|
|
@@ -48,19 +48,7 @@ function useQRCode(props) {
|
|
|
48
48
|
if (!shareLink)
|
|
49
49
|
return;
|
|
50
50
|
const getQrCode = async () => {
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
const res = await fetch(`${shareLink}?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0`);
|
|
54
|
-
const blob = await res.blob();
|
|
55
|
-
const url = URL.createObjectURL(blob);
|
|
56
|
-
setQrUrl(url);
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
setError(true);
|
|
60
|
-
}
|
|
61
|
-
finally {
|
|
62
|
-
setLoading(false);
|
|
63
|
-
}
|
|
51
|
+
setQrUrl(`${shareLink}?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0`);
|
|
64
52
|
};
|
|
65
53
|
getQrCode();
|
|
66
54
|
}, [shareLink]);
|
|
@@ -428,7 +428,7 @@ const ReferralTableRewardsCell = class {
|
|
|
428
428
|
constructor(hostRef) {
|
|
429
429
|
index.registerInstance(this, hostRef);
|
|
430
430
|
this.statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
431
|
-
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward
|
|
431
|
+
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings, barring any account holds.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
432
432
|
this.locale = "en";
|
|
433
433
|
}
|
|
434
434
|
render() {
|
|
@@ -647,7 +647,7 @@ const ReferralTableRewardsColumn = class {
|
|
|
647
647
|
* @uiName Reward status long text
|
|
648
648
|
* @uiWidget textArea
|
|
649
649
|
*/
|
|
650
|
-
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward
|
|
650
|
+
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings, barring any account holds.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
651
651
|
/**
|
|
652
652
|
* Shown in the dropdown details when a reward has an associated fuel tank code.
|
|
653
653
|
*
|
|
@@ -1066,7 +1066,7 @@ const RewardTableStatusColumn = class {
|
|
|
1066
1066
|
*
|
|
1067
1067
|
* @uiName Payout approved text
|
|
1068
1068
|
*/
|
|
1069
|
-
this.payoutApproved = "Reward
|
|
1069
|
+
this.payoutApproved = "Reward was scheduled for payment based on your settings, barring any account holds.";
|
|
1070
1070
|
stencilHooks_module.h$1(this);
|
|
1071
1071
|
}
|
|
1072
1072
|
disconnectedCallback() { }
|