@saasquatch/mint-components 1.8.0-93 → 1.8.0-95
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/sqm-banking-info-form_16.cjs.entry.js +46 -36
- package/dist/cjs/{sqm-invoice-table-view-0533166d.js → sqm-invoice-table-view-26aeebca.js} +0 -60
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +60 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +13 -14
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -18
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +18 -18
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +10 -14
- package/dist/esm/sqm-banking-info-form_16.entry.js +46 -36
- package/dist/esm/{sqm-invoice-table-view-d4b2e3bc.js → sqm-invoice-table-view-45e3b5c2.js} +1 -59
- package/dist/esm/sqm-stencilbook.entry.js +59 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-d4b2e3bc.js → sqm-invoice-table-view-45e3b5c2.js} +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-5b47017c.entry.js → p-18b77c5f.entry.js} +2 -2
- package/dist/mint-components/p-321a6f30.entry.js +148 -0
- package/dist/mint-components/p-3b0c7a5e.system.entry.js +1 -0
- package/dist/mint-components/p-4220a501.system.entry.js +1 -0
- package/dist/mint-components/{p-995eb7df.js → p-b5b0128d.js} +1 -1
- package/dist/mint-components/p-d5364cae.system.js +1 -1
- package/dist/mint-components/{p-bb6c3abc.system.js → p-eb537272.system.js} +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
- package/docs/TaxAndCash--2024-03-14--14-20-26.xlsx +0 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-2a785bb3.entry.js +0 -148
- package/dist/mint-components/p-33773668.system.entry.js +0 -1
- package/dist/mint-components/p-65d353b6.system.entry.js +0 -1
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
|
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-3caf3e22.js');
|
|
|
16
16
|
const luxon = require('./luxon-33ebaf57.js');
|
|
17
17
|
const useReferralTable = require('./useReferralTable-6a7ad97b.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-26aeebca.js');
|
|
20
20
|
|
|
21
21
|
const mockPaymentOptions = {
|
|
22
22
|
CAD: [
|
|
@@ -1447,7 +1447,7 @@ function parseImpactThreshold(threshold) {
|
|
|
1447
1447
|
return parsed.toString();
|
|
1448
1448
|
}
|
|
1449
1449
|
function useBankingInfoForm(props) {
|
|
1450
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
1450
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1451
1451
|
const locale = index_module.N();
|
|
1452
1452
|
const user = index_module.H();
|
|
1453
1453
|
const formRef = stencilHooks_module.useRef(null);
|
|
@@ -1489,17 +1489,16 @@ function useBankingInfoForm(props) {
|
|
|
1489
1489
|
name,
|
|
1490
1490
|
};
|
|
1491
1491
|
};
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
];
|
|
1492
|
+
const sortByName = (a, b) => a.name < b.name ? -1 : 1;
|
|
1493
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
1494
|
+
const countries = Array.from(availableCountries)
|
|
1495
|
+
.map((c) => getCountryObj(c))
|
|
1496
|
+
.sort(sortByName)
|
|
1497
|
+
.reduce((prev, countryObj) => {
|
|
1498
|
+
if (_topCountries.includes(countryObj.code))
|
|
1499
|
+
return [countryObj, ...prev];
|
|
1500
|
+
return [...prev, countryObj];
|
|
1501
|
+
}, []);
|
|
1503
1502
|
const hasPayPal = !!(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((option) => option.defaultFinancePaymentMethodId === PAYPAL_PAYMENT_METHOD));
|
|
1504
1503
|
const paymentMethodChecked = !hasPayPal
|
|
1505
1504
|
? "toBankAccount"
|
|
@@ -1640,7 +1639,7 @@ function useBankingInfoForm(props) {
|
|
|
1640
1639
|
hideSteps: !!context.hideSteps,
|
|
1641
1640
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1642
1641
|
locale,
|
|
1643
|
-
isPartner: !!((
|
|
1642
|
+
isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
|
|
1644
1643
|
feeCap,
|
|
1645
1644
|
paymentMethodFeeLabel,
|
|
1646
1645
|
disabled: loading,
|
|
@@ -1659,7 +1658,7 @@ function useBankingInfoForm(props) {
|
|
|
1659
1658
|
currentPaymentOption,
|
|
1660
1659
|
bitset: (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || 0,
|
|
1661
1660
|
currency,
|
|
1662
|
-
thresholds: ((
|
|
1661
|
+
thresholds: ((_h = currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.thresholdOptions) === null || _h === void 0 ? void 0 : _h.split(",")) || [],
|
|
1663
1662
|
countries,
|
|
1664
1663
|
hasPayPal,
|
|
1665
1664
|
},
|
|
@@ -2203,15 +2202,27 @@ function useDocusignForm(props) {
|
|
|
2203
2202
|
fetchDocument();
|
|
2204
2203
|
}, [user, publisher, participantType]);
|
|
2205
2204
|
stencilHooks_module.useEffect(() => {
|
|
2206
|
-
|
|
2205
|
+
const onSubmit = async () => {
|
|
2206
|
+
try {
|
|
2207
|
+
setLoading(true);
|
|
2208
|
+
await refetch();
|
|
2209
|
+
// Skip banking info form if it already is saved
|
|
2210
|
+
setStep(context.overrideNextStep || !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings)
|
|
2211
|
+
? "/dashboard"
|
|
2212
|
+
: "/4");
|
|
2213
|
+
}
|
|
2214
|
+
catch (e) {
|
|
2215
|
+
setErrors({ general: true });
|
|
2216
|
+
}
|
|
2217
|
+
finally {
|
|
2218
|
+
setLoading(false);
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2207
2221
|
// Handled in view
|
|
2208
2222
|
if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
|
|
2209
2223
|
return;
|
|
2210
2224
|
if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
2211
|
-
|
|
2212
|
-
setStep(context.overrideNextStep || !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings)
|
|
2213
|
-
? "/dashboard"
|
|
2214
|
-
: "/4");
|
|
2225
|
+
onSubmit();
|
|
2215
2226
|
}
|
|
2216
2227
|
}, [docusignStatus, refetch]);
|
|
2217
2228
|
const onBack = () => {
|
|
@@ -2503,10 +2514,14 @@ const DocusignFormView = (props) => {
|
|
|
2503
2514
|
index.h("p", { class: classes.BoldText }, text.participantType),
|
|
2504
2515
|
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
2505
2516
|
index.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2517
|
+
if (states.disabled || states.participantTypeDisabled)
|
|
2518
|
+
return;
|
|
2506
2519
|
callbacks.setParticipantType("individualParticipant");
|
|
2507
2520
|
} },
|
|
2508
2521
|
index.h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
2509
2522
|
index.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2523
|
+
if (states.disabled || states.participantTypeDisabled)
|
|
2524
|
+
return;
|
|
2510
2525
|
callbacks.setParticipantType("businessEntity");
|
|
2511
2526
|
} },
|
|
2512
2527
|
index.h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
@@ -3157,7 +3172,7 @@ const IndirectTaxForm = class {
|
|
|
3157
3172
|
* Subtext for the option indicating registration for indirect tax in a different region
|
|
3158
3173
|
* @uiName Registered for indirect tax in a different region option sub-text
|
|
3159
3174
|
*/
|
|
3160
|
-
this.otherRegionSubtext = "If you represent a business based outside of the US may be registered.
|
|
3175
|
+
this.otherRegionSubtext = "If you represent a business based outside of the US you may be registered. If you’re not sure, contact our Support team to find out more.";
|
|
3161
3176
|
/**
|
|
3162
3177
|
* Text for the option indicating not being registered for indirect tax
|
|
3163
3178
|
* @uiName Not registered for indirect tax option text
|
|
@@ -4396,7 +4411,7 @@ const TaxAndCashMonolith = class {
|
|
|
4396
4411
|
* @uiName Registered for indirect tax in a different region option sub-text
|
|
4397
4412
|
* @uiGroup Step 2 Properties
|
|
4398
4413
|
*/
|
|
4399
|
-
this.step2_otherRegionSubtext = "If you represent a business based outside of the US may be registered.
|
|
4414
|
+
this.step2_otherRegionSubtext = "If you represent a business based outside of the US you may be registered. If you’re not sure, contact our Support team to find out more.";
|
|
4400
4415
|
/**
|
|
4401
4416
|
* Label text for the not registered radio button
|
|
4402
4417
|
* @uiName Not registered radio button label
|
|
@@ -5512,19 +5527,20 @@ function getCountryName(countryCode, locale) {
|
|
|
5512
5527
|
}).of([countryCode]);
|
|
5513
5528
|
}
|
|
5514
5529
|
function getSubRegionName(regionCode) {
|
|
5515
|
-
var _a
|
|
5516
|
-
// Impact adds an underscore to
|
|
5517
|
-
|
|
5518
|
-
return (_a = sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS.find((r) => r.regionCode === "CANARYISLANDS")) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5519
|
-
}
|
|
5530
|
+
var _a;
|
|
5531
|
+
// Impact adds an underscore to some regions
|
|
5532
|
+
const standardCode = regionCode.replace("_", "");
|
|
5520
5533
|
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5521
|
-
return (
|
|
5534
|
+
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5522
5535
|
}
|
|
5523
5536
|
function getIndirectTaxType(taxInformation) {
|
|
5524
5537
|
var _a;
|
|
5525
5538
|
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5526
5539
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5527
|
-
|
|
5540
|
+
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5541
|
+
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
5542
|
+
if (taxType)
|
|
5543
|
+
return taxType;
|
|
5528
5544
|
}
|
|
5529
5545
|
// Spain regions only have VAT type
|
|
5530
5546
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
@@ -5532,6 +5548,7 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5532
5548
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5533
5549
|
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5534
5550
|
}
|
|
5551
|
+
return "Indirect Tax";
|
|
5535
5552
|
}
|
|
5536
5553
|
const useTaxAndCashDashboard = (props) => {
|
|
5537
5554
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
@@ -5592,10 +5609,6 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5592
5609
|
loading,
|
|
5593
5610
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5594
5611
|
},
|
|
5595
|
-
slots: {
|
|
5596
|
-
// TODO: Replace this story once we have hooks for payment details card
|
|
5597
|
-
payoutDetailsCardSlot: index.h(sqmInvoiceTableView.NextPayout, null),
|
|
5598
|
-
},
|
|
5599
5612
|
callbacks: {
|
|
5600
5613
|
onClick: onNewDocumentClick,
|
|
5601
5614
|
onEditPayoutInfo,
|
|
@@ -5879,9 +5892,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5879
5892
|
onClick: () => console.debug("check step"),
|
|
5880
5893
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5881
5894
|
},
|
|
5882
|
-
slots: {
|
|
5883
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", null)),
|
|
5884
|
-
},
|
|
5885
5895
|
text: props.getTextProps(),
|
|
5886
5896
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5887
5897
|
}
|
|
@@ -1406,64 +1406,6 @@ const OtherRegionSlotView = (props) => {
|
|
|
1406
1406
|
index.h("hr", { class: classes.HR }))));
|
|
1407
1407
|
};
|
|
1408
1408
|
|
|
1409
|
-
const PayoutDetailsCard_stories = {
|
|
1410
|
-
title: "Components/Payout Details Card",
|
|
1411
|
-
};
|
|
1412
|
-
const Loading = () => {
|
|
1413
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1414
|
-
states: {
|
|
1415
|
-
loading: true,
|
|
1416
|
-
},
|
|
1417
|
-
} }));
|
|
1418
|
-
};
|
|
1419
|
-
const Error = () => {
|
|
1420
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1421
|
-
states: {
|
|
1422
|
-
error: true,
|
|
1423
|
-
},
|
|
1424
|
-
} }));
|
|
1425
|
-
};
|
|
1426
|
-
const NextPayout = () => {
|
|
1427
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1428
|
-
states: {
|
|
1429
|
-
badgeStatus: "nextPayout",
|
|
1430
|
-
},
|
|
1431
|
-
} }));
|
|
1432
|
-
};
|
|
1433
|
-
const PayoutToday = () => {
|
|
1434
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1435
|
-
states: {
|
|
1436
|
-
badgeStatus: "payoutToday",
|
|
1437
|
-
},
|
|
1438
|
-
} }));
|
|
1439
|
-
};
|
|
1440
|
-
const ThresholdPayout = () => {
|
|
1441
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1442
|
-
states: {
|
|
1443
|
-
thresholdBalance: "50 USD",
|
|
1444
|
-
badgeStatus: "thresholdPayout",
|
|
1445
|
-
},
|
|
1446
|
-
} }));
|
|
1447
|
-
};
|
|
1448
|
-
const PaypalPayout = () => {
|
|
1449
|
-
return (index.h("sqm-payout-details-card", { demoData: {
|
|
1450
|
-
states: {
|
|
1451
|
-
payoutType: "PAYPAL",
|
|
1452
|
-
},
|
|
1453
|
-
} }));
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
const PayoutDetailsCard = /*#__PURE__*/Object.freeze({
|
|
1457
|
-
__proto__: null,
|
|
1458
|
-
'default': PayoutDetailsCard_stories,
|
|
1459
|
-
Loading: Loading,
|
|
1460
|
-
Error: Error,
|
|
1461
|
-
NextPayout: NextPayout,
|
|
1462
|
-
PayoutToday: PayoutToday,
|
|
1463
|
-
ThresholdPayout: ThresholdPayout,
|
|
1464
|
-
PaypalPayout: PaypalPayout
|
|
1465
|
-
});
|
|
1466
|
-
|
|
1467
1409
|
const style$2 = {
|
|
1468
1410
|
Description: {
|
|
1469
1411
|
fontSize: "var(--sl-font-size-small)",
|
|
@@ -1523,9 +1465,7 @@ exports.INDIRECT_TAX_PROVINCES = INDIRECT_TAX_PROVINCES;
|
|
|
1523
1465
|
exports.INDIRECT_TAX_SPAIN_REGIONS = INDIRECT_TAX_SPAIN_REGIONS;
|
|
1524
1466
|
exports.InvoiceTableView = InvoiceTableView;
|
|
1525
1467
|
exports.LoadingView = LoadingView;
|
|
1526
|
-
exports.NextPayout = NextPayout;
|
|
1527
1468
|
exports.OtherRegionSlotView = OtherRegionSlotView;
|
|
1528
|
-
exports.PayoutDetailsCard = PayoutDetailsCard;
|
|
1529
1469
|
exports.TaxForm = TaxForm;
|
|
1530
1470
|
exports.getIsRequiredErrorMessage = getIsRequiredErrorMessage;
|
|
1531
1471
|
exports.objectIsFull = objectIsFull;
|
|
@@ -30,7 +30,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-d63
|
|
|
30
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1e6255e9.js');
|
|
31
31
|
const ShadowViewAddon = require('./ShadowViewAddon-119ea8d4.js');
|
|
32
32
|
const sqmPortalContainerView = require('./sqm-portal-container-view-e565003b.js');
|
|
33
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
33
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-26aeebca.js');
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -14181,6 +14181,64 @@ const ProgressBar$1 = /*#__PURE__*/Object.freeze({
|
|
|
14181
14181
|
TaxAndPayoutsProgressBar: TaxAndPayoutsProgressBar
|
|
14182
14182
|
});
|
|
14183
14183
|
|
|
14184
|
+
const PayoutDetailsCard_stories = {
|
|
14185
|
+
title: "Components/Payout Details Card",
|
|
14186
|
+
};
|
|
14187
|
+
const Loading$6 = () => {
|
|
14188
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14189
|
+
states: {
|
|
14190
|
+
loading: true,
|
|
14191
|
+
},
|
|
14192
|
+
} }));
|
|
14193
|
+
};
|
|
14194
|
+
const Error$9 = () => {
|
|
14195
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14196
|
+
states: {
|
|
14197
|
+
error: true,
|
|
14198
|
+
},
|
|
14199
|
+
} }));
|
|
14200
|
+
};
|
|
14201
|
+
const NextPayout = () => {
|
|
14202
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14203
|
+
states: {
|
|
14204
|
+
badgeStatus: "nextPayout",
|
|
14205
|
+
},
|
|
14206
|
+
} }));
|
|
14207
|
+
};
|
|
14208
|
+
const PayoutToday = () => {
|
|
14209
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14210
|
+
states: {
|
|
14211
|
+
badgeStatus: "payoutToday",
|
|
14212
|
+
},
|
|
14213
|
+
} }));
|
|
14214
|
+
};
|
|
14215
|
+
const ThresholdPayout = () => {
|
|
14216
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14217
|
+
states: {
|
|
14218
|
+
thresholdBalance: "50 USD",
|
|
14219
|
+
badgeStatus: "thresholdPayout",
|
|
14220
|
+
},
|
|
14221
|
+
} }));
|
|
14222
|
+
};
|
|
14223
|
+
const PaypalPayout = () => {
|
|
14224
|
+
return (index.h("sqm-payout-details-card", { demoData: {
|
|
14225
|
+
states: {
|
|
14226
|
+
payoutType: "PAYPAL",
|
|
14227
|
+
},
|
|
14228
|
+
} }));
|
|
14229
|
+
};
|
|
14230
|
+
|
|
14231
|
+
const PayoutDetailsCard = /*#__PURE__*/Object.freeze({
|
|
14232
|
+
__proto__: null,
|
|
14233
|
+
'default': PayoutDetailsCard_stories,
|
|
14234
|
+
Loading: Loading$6,
|
|
14235
|
+
Error: Error$9,
|
|
14236
|
+
NextPayout: NextPayout,
|
|
14237
|
+
PayoutToday: PayoutToday,
|
|
14238
|
+
ThresholdPayout: ThresholdPayout,
|
|
14239
|
+
PaypalPayout: PaypalPayout
|
|
14240
|
+
});
|
|
14241
|
+
|
|
14184
14242
|
const BankingForm_stories = {
|
|
14185
14243
|
title: "Components/Banking Information Form",
|
|
14186
14244
|
};
|
|
@@ -17494,7 +17552,7 @@ const stories = [
|
|
|
17494
17552
|
RadioCard,
|
|
17495
17553
|
ProgressBar$1,
|
|
17496
17554
|
TaxFormSlots,
|
|
17497
|
-
|
|
17555
|
+
PayoutDetailsCard,
|
|
17498
17556
|
BankingInfoForm,
|
|
17499
17557
|
];
|
|
17500
17558
|
const StencilStorybook = class {
|
|
@@ -268,7 +268,7 @@ function parseImpactThreshold(threshold) {
|
|
|
268
268
|
return parsed.toString();
|
|
269
269
|
}
|
|
270
270
|
export function useBankingInfoForm(props) {
|
|
271
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
271
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
272
272
|
const locale = useLocale();
|
|
273
273
|
const user = useUserIdentity();
|
|
274
274
|
const formRef = useRef(null);
|
|
@@ -310,17 +310,16 @@ export function useBankingInfoForm(props) {
|
|
|
310
310
|
name,
|
|
311
311
|
};
|
|
312
312
|
};
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
];
|
|
313
|
+
const sortByName = (a, b) => a.name < b.name ? -1 : 1;
|
|
314
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
315
|
+
const countries = Array.from(availableCountries)
|
|
316
|
+
.map((c) => getCountryObj(c))
|
|
317
|
+
.sort(sortByName)
|
|
318
|
+
.reduce((prev, countryObj) => {
|
|
319
|
+
if (_topCountries.includes(countryObj.code))
|
|
320
|
+
return [countryObj, ...prev];
|
|
321
|
+
return [...prev, countryObj];
|
|
322
|
+
}, []);
|
|
324
323
|
const hasPayPal = !!(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((option) => option.defaultFinancePaymentMethodId === PAYPAL_PAYMENT_METHOD));
|
|
325
324
|
const paymentMethodChecked = !hasPayPal
|
|
326
325
|
? "toBankAccount"
|
|
@@ -461,7 +460,7 @@ export function useBankingInfoForm(props) {
|
|
|
461
460
|
hideSteps: !!context.hideSteps,
|
|
462
461
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
463
462
|
locale,
|
|
464
|
-
isPartner: !!((
|
|
463
|
+
isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
|
|
465
464
|
feeCap,
|
|
466
465
|
paymentMethodFeeLabel,
|
|
467
466
|
disabled: loading,
|
|
@@ -480,7 +479,7 @@ export function useBankingInfoForm(props) {
|
|
|
480
479
|
currentPaymentOption,
|
|
481
480
|
bitset: (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || 0,
|
|
482
481
|
currency,
|
|
483
|
-
thresholds: ((
|
|
482
|
+
thresholds: ((_h = currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.thresholdOptions) === null || _h === void 0 ? void 0 : _h.split(",")) || [],
|
|
484
483
|
countries,
|
|
485
484
|
hasPayPal,
|
|
486
485
|
},
|
|
@@ -165,10 +165,14 @@ export const DocusignFormView = (props) => {
|
|
|
165
165
|
h("p", { class: classes.BoldText }, text.participantType),
|
|
166
166
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
167
167
|
h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
168
|
+
if (states.disabled || states.participantTypeDisabled)
|
|
169
|
+
return;
|
|
168
170
|
callbacks.setParticipantType("individualParticipant");
|
|
169
171
|
} },
|
|
170
172
|
h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
171
173
|
h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
174
|
+
if (states.disabled || states.participantTypeDisabled)
|
|
175
|
+
return;
|
|
172
176
|
callbacks.setParticipantType("businessEntity");
|
|
173
177
|
} },
|
|
174
178
|
h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
@@ -84,22 +84,10 @@ export function useDocusignForm(props) {
|
|
|
84
84
|
fetchDocument();
|
|
85
85
|
}, [user, publisher, participantType]);
|
|
86
86
|
useEffect(() => {
|
|
87
|
-
// TODO: Determine if check is required
|
|
88
87
|
const onSubmit = async () => {
|
|
89
|
-
var _a, _b, _c, _d, _e;
|
|
90
88
|
try {
|
|
91
89
|
setLoading(true);
|
|
92
|
-
|
|
93
|
-
if ((_a = result) === null || _a === void 0 ? void 0 : _a.message)
|
|
94
|
-
throw new Error();
|
|
95
|
-
const publisher = (_d = (_c = (_b = result) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher;
|
|
96
|
-
const status = (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status;
|
|
97
|
-
// Throw an error if submission didn't actually save a tax document.
|
|
98
|
-
if (!status)
|
|
99
|
-
throw new Error();
|
|
100
|
-
if (status === "NOT_VERIFIED" || status === "ACTIVE") {
|
|
101
|
-
console.debug("Document has been registered as submitted");
|
|
102
|
-
}
|
|
90
|
+
await refetch();
|
|
103
91
|
// Skip banking info form if it already is saved
|
|
104
92
|
setStep(context.overrideNextStep || !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings)
|
|
105
93
|
? "/dashboard"
|
|
@@ -112,15 +100,11 @@ export function useDocusignForm(props) {
|
|
|
112
100
|
setLoading(false);
|
|
113
101
|
}
|
|
114
102
|
};
|
|
115
|
-
console.log({ DOCUSIGN_SUCCESS_STATES, docusignStatus });
|
|
116
103
|
// Handled in view
|
|
117
104
|
if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
|
|
118
105
|
return;
|
|
119
106
|
if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
120
|
-
|
|
121
|
-
setStep(context.overrideNextStep || !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings)
|
|
122
|
-
? "/dashboard"
|
|
123
|
-
: "/4");
|
|
107
|
+
onSubmit();
|
|
124
108
|
}
|
|
125
109
|
}, [docusignStatus, refetch]);
|
|
126
110
|
const onBack = () => {
|
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js
CHANGED
|
@@ -50,7 +50,7 @@ export class IndirectTaxForm {
|
|
|
50
50
|
* Subtext for the option indicating registration for indirect tax in a different region
|
|
51
51
|
* @uiName Registered for indirect tax in a different region option sub-text
|
|
52
52
|
*/
|
|
53
|
-
this.otherRegionSubtext = "If you represent a business based outside of the US may be registered.
|
|
53
|
+
this.otherRegionSubtext = "If you represent a business based outside of the US you may be registered. If you’re not sure, contact our Support team to find out more.";
|
|
54
54
|
/**
|
|
55
55
|
* Text for the option indicating not being registered for indirect tax
|
|
56
56
|
* @uiName Not registered for indirect tax option text
|
|
@@ -360,7 +360,7 @@ export class IndirectTaxForm {
|
|
|
360
360
|
},
|
|
361
361
|
"attribute": "other-region-subtext",
|
|
362
362
|
"reflect": false,
|
|
363
|
-
"defaultValue": "\"If you represent a business based outside of the US may be registered.
|
|
363
|
+
"defaultValue": "\"If you represent a business based outside of the US you may be registered. If you\u2019re not sure, contact our Support team to find out more.\""
|
|
364
364
|
},
|
|
365
365
|
"notRegistered": {
|
|
366
366
|
"type": "string",
|
|
@@ -124,7 +124,7 @@ export class TaxAndCashMonolith {
|
|
|
124
124
|
* @uiName Registered for indirect tax in a different region option sub-text
|
|
125
125
|
* @uiGroup Step 2 Properties
|
|
126
126
|
*/
|
|
127
|
-
this.step2_otherRegionSubtext = "If you represent a business based outside of the US may be registered.
|
|
127
|
+
this.step2_otherRegionSubtext = "If you represent a business based outside of the US you may be registered. If you’re not sure, contact our Support team to find out more.";
|
|
128
128
|
/**
|
|
129
129
|
* Label text for the not registered radio button
|
|
130
130
|
* @uiName Not registered radio button label
|
|
@@ -1346,7 +1346,7 @@ export class TaxAndCashMonolith {
|
|
|
1346
1346
|
},
|
|
1347
1347
|
"attribute": "step-2_other-region-subtext",
|
|
1348
1348
|
"reflect": false,
|
|
1349
|
-
"defaultValue": "\"If you represent a business based outside of the US may be registered.
|
|
1349
|
+
"defaultValue": "\"If you represent a business based outside of the US you may be registered. If you\u2019re not sure, contact our Support team to find out more.\""
|
|
1350
1350
|
},
|
|
1351
1351
|
"step2_notRegistered": {
|
|
1352
1352
|
"type": "string",
|
|
@@ -22,13 +22,13 @@ export function useTaxAndCash() {
|
|
|
22
22
|
const host = useHost();
|
|
23
23
|
function setupDemo() {
|
|
24
24
|
// coleton
|
|
25
|
+
const id = "bd5a0bc8f8c82faa4f37f882ca5839910d6e4524597f3c3398d41d920bed8fc9";
|
|
26
|
+
const accountId = "bd5a0bc8f8c82faa4f37f882ca5839910d6e4524597f3c3398d41d920bed8fc9";
|
|
27
|
+
// andy3
|
|
25
28
|
// const id =
|
|
26
|
-
// "
|
|
29
|
+
// "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
|
|
27
30
|
// const accountId =
|
|
28
|
-
// "
|
|
29
|
-
// andy3
|
|
30
|
-
const id = "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
|
|
31
|
-
const accountId = "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
|
|
31
|
+
// "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
|
|
32
32
|
// // andy
|
|
33
33
|
// const id = "12345";
|
|
34
34
|
// const accountId = "12345";
|
|
@@ -42,31 +42,31 @@ export function useTaxAndCash() {
|
|
|
42
42
|
// "3e0fab4f3e7c7cd3ee971b0c0e9a4ece4061349c837f24c71582330842fc8462";
|
|
43
43
|
// const accountId =
|
|
44
44
|
// "3e0fab4f3e7c7cd3ee971b0c0e9a4ece4061349c837f24c71582330842fc8462";
|
|
45
|
-
const programId = "22514";
|
|
46
|
-
|
|
45
|
+
// const programId = "22514";
|
|
46
|
+
const programId = "22999";
|
|
47
47
|
//@ts-ignore
|
|
48
48
|
window.widgetIdent = {
|
|
49
|
-
tenantAlias: "aprh0cfq6y8tk",
|
|
50
|
-
|
|
49
|
+
// tenantAlias: "aprh0cfq6y8tk",
|
|
50
|
+
tenantAlias: "aswi7zpxl6rjp",
|
|
51
51
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
52
52
|
programId,
|
|
53
53
|
};
|
|
54
54
|
// coleton
|
|
55
|
-
// useEffect(() => {
|
|
56
|
-
// setUserIdentity({
|
|
57
|
-
// accountId,
|
|
58
|
-
// id,
|
|
59
|
-
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiNGM3OTRlYmUzNjdmNzAyMWUzY2U1NDM1NDJlMjczODlkNzYzOTQ1NzFiMWJiOGU3ZWJmYmJkMzNhZTQyMTRkMSIsImFjY291bnRJZCI6IjRjNzk0ZWJlMzY3ZjcwMjFlM2NlNTQzNTQyZTI3Mzg5ZDc2Mzk0NTcxYjFiYjhlN2ViZmJiZDMzYWU0MjE0ZDEiLCJlbWFpbCI6ImNvbGV0b24uYW5uZXR0K3c5bmV3QGltcGFjdC5jb20ifX0.CYQ2Z7QrE304gZsrPANxizOVm7TmC3gp3WJUmCl7TUQ",
|
|
60
|
-
// });
|
|
61
|
-
// }, []);
|
|
62
|
-
// andy3
|
|
63
55
|
useEffect(() => {
|
|
64
56
|
setUserIdentity({
|
|
65
57
|
accountId,
|
|
66
58
|
id,
|
|
67
|
-
jwt: "
|
|
59
|
+
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSZkFUVEdOZXRqUDUwNzYxMDNERjVub0d0TDRnQ0hjYjEifQ.eyJ1c2VyIjp7ImlkIjoiYmQ1YTBiYzhmOGM4MmZhYTRmMzdmODgyY2E1ODM5OTEwZDZlNDUyNDU5N2YzYzMzOThkNDFkOTIwYmVkOGZjOSIsImFjY291bnRJZCI6ImJkNWEwYmM4ZjhjODJmYWE0ZjM3Zjg4MmNhNTgzOTkxMGQ2ZTQ1MjQ1OTdmM2MzMzk4ZDQxZDkyMGJlZDhmYzkiLCJlbWFpbCI6ImNvbGV0b24uYW5uZXR0K3Rlc3RwYXlvdXRAaW1wYWN0LmNvbSJ9fQ.pUJqd22SSowAvOLFF_2U13qsMGW3eOGxKmohWh0Bs4I",
|
|
68
60
|
});
|
|
69
61
|
}, []);
|
|
62
|
+
// andy3
|
|
63
|
+
// useEffect(() => {
|
|
64
|
+
// setUserIdentity({
|
|
65
|
+
// accountId,
|
|
66
|
+
// id,
|
|
67
|
+
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiZTA2MWVlMjFiNDVlZmY4YWRhMjI4NDVkNDQxYzZhMmNkNzE5MGFmMTcxOGE1NTQ1MmFkMmQ0NGIwMjA5MTVhNyIsImFjY291bnRJZCI6ImUwNjFlZTIxYjQ1ZWZmOGFkYTIyODQ1ZDQ0MWM2YTJjZDcxOTBhZjE3MThhNTU0NTJhZDJkNDRiMDIwOTE1YTciLCJlbWFpbCI6InRlc3R1c2VyQGV4YW1wbGUuY29tIn19.92Dtz49tnl8ZL9oDAkNeND8SX5OSFlt5Y7FXP92sGiA",
|
|
68
|
+
// });
|
|
69
|
+
// }, []);
|
|
70
70
|
// andy
|
|
71
71
|
// useEffect(() => {
|
|
72
72
|
// setUserIdentity({
|
|
@@ -1132,7 +1132,7 @@ export class TaxAndCashDashboard {
|
|
|
1132
1132
|
"mutable": false,
|
|
1133
1133
|
"complexType": {
|
|
1134
1134
|
"original": "DemoData<UseTaxAndCashDashboardResult>",
|
|
1135
|
-
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; dateExpired?: string; expiresSoon?: boolean; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; errors?: { general?: boolean; }; };
|
|
1135
|
+
"resolved": "{ states?: { status?: string; documentType: TaxDocumentType; documentTypeString: string; canEditPayoutInfo: boolean; disabled?: boolean; dateSubmitted?: string; dateExpired?: string; expiresSoon?: boolean; noFormNeeded?: boolean; indirectTaxType?: string; qstNumber?: string; subRegionTaxNumber?: string; subRegion?: string; indirectTaxNumber?: string; province?: string; country?: string; notRegistered?: boolean; isBusinessEntity?: boolean; loading?: boolean; loadingError?: boolean; errors?: { general?: boolean; }; }; }",
|
|
1136
1136
|
"references": {
|
|
1137
1137
|
"DemoData": {
|
|
1138
1138
|
"location": "import",
|
|
@@ -1178,9 +1178,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1178
1178
|
onClick: () => console.debug("check step"),
|
|
1179
1179
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
1180
1180
|
},
|
|
1181
|
-
slots: {
|
|
1182
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", null)),
|
|
1183
|
-
},
|
|
1184
1181
|
text: props.getTextProps(),
|
|
1185
1182
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1186
1183
|
}
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { useLocale } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
|
-
import { h } from "@stencil/core";
|
|
4
3
|
import { DateTime } from "luxon";
|
|
5
4
|
import { useParentQueryValue } from "../../../utils/useParentQuery";
|
|
6
5
|
import { useSetParent } from "../../../utils/useParentState";
|
|
7
|
-
import {
|
|
6
|
+
import { vatLabels } from "../countries";
|
|
8
7
|
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
|
|
9
8
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
10
9
|
import { taxTypeToName } from "../utils";
|
|
11
|
-
import { vatLabels } from "../countries";
|
|
12
10
|
function getExpiresSoon(submissionDate, expiryDate) {
|
|
13
11
|
var _a;
|
|
14
12
|
if (!submissionDate || !expiryDate)
|
|
@@ -24,19 +22,20 @@ function getCountryName(countryCode, locale) {
|
|
|
24
22
|
}).of([countryCode]);
|
|
25
23
|
}
|
|
26
24
|
function getSubRegionName(regionCode) {
|
|
27
|
-
var _a
|
|
28
|
-
// Impact adds an underscore to
|
|
29
|
-
|
|
30
|
-
return (_a = INDIRECT_TAX_SPAIN_REGIONS.find((r) => r.regionCode === "CANARYISLANDS")) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
31
|
-
}
|
|
25
|
+
var _a;
|
|
26
|
+
// Impact adds an underscore to some regions
|
|
27
|
+
const standardCode = regionCode.replace("_", "");
|
|
32
28
|
const regions = [...INDIRECT_TAX_PROVINCES, ...INDIRECT_TAX_SPAIN_REGIONS];
|
|
33
|
-
return (
|
|
29
|
+
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
34
30
|
}
|
|
35
31
|
function getIndirectTaxType(taxInformation) {
|
|
36
32
|
var _a;
|
|
37
33
|
const regions = [...INDIRECT_TAX_PROVINCES, ...INDIRECT_TAX_SPAIN_REGIONS];
|
|
38
34
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
39
|
-
|
|
35
|
+
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
36
|
+
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
37
|
+
if (taxType)
|
|
38
|
+
return taxType;
|
|
40
39
|
}
|
|
41
40
|
// Spain regions only have VAT type
|
|
42
41
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
@@ -44,6 +43,7 @@ function getIndirectTaxType(taxInformation) {
|
|
|
44
43
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
45
44
|
return vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
46
45
|
}
|
|
46
|
+
return "Indirect Tax";
|
|
47
47
|
}
|
|
48
48
|
export const useTaxAndCashDashboard = (props) => {
|
|
49
49
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
@@ -104,10 +104,6 @@ export const useTaxAndCashDashboard = (props) => {
|
|
|
104
104
|
loading,
|
|
105
105
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
106
106
|
},
|
|
107
|
-
slots: {
|
|
108
|
-
// TODO: Replace this story once we have hooks for payment details card
|
|
109
|
-
payoutDetailsCardSlot: h(NextPayout, null),
|
|
110
|
-
},
|
|
111
107
|
callbacks: {
|
|
112
108
|
onClick: onNewDocumentClick,
|
|
113
109
|
onEditPayoutInfo,
|