@saasquatch/mint-components 1.8.0-104 → 1.8.0-106
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 +13 -7
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -0
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -4
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +0 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -0
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -5
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +12 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +22 -22
- package/dist/esm/sqm-banking-info-form_16.entry.js +13 -7
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -0
- package/dist/esm/sqm-referral-table_11.entry.js +3 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -4
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-95e549a9.system.entry.js → p-0eddde50.system.entry.js} +1 -1
- package/dist/mint-components/p-46dae838.entry.js +1 -0
- package/dist/mint-components/p-5f2e1467.system.entry.js +1 -0
- package/dist/mint-components/{p-88380a45.entry.js → p-78858dfe.entry.js} +1 -1
- package/dist/mint-components/{p-7689bdec.entry.js → p-7b22a2eb.entry.js} +1 -1
- package/dist/mint-components/p-8f8591ca.system.entry.js +1 -0
- package/dist/mint-components/{p-9bd20f34.system.entry.js → p-9727a6a4.system.entry.js} +1 -1
- package/dist/mint-components/p-d5364cae.system.js +1 -1
- package/dist/mint-components/p-d78f72e1.entry.js +148 -0
- package/dist/mint-components/p-d9e34573.entry.js +144 -0
- package/dist/mint-components/p-db118e79.system.entry.js +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-portal-email-verification/usePortalEmailVerification.d.ts +2 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.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-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- 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.d.ts +8 -8
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-0c2a6340.entry.js +0 -144
- package/dist/mint-components/p-26ec23ad.entry.js +0 -1
- package/dist/mint-components/p-7bb67e92.entry.js +0 -148
- package/dist/mint-components/p-8019e18f.system.entry.js +0 -1
- package/dist/mint-components/p-a2728372.system.entry.js +0 -1
- package/dist/mint-components/p-b54e8ce2.system.entry.js +0 -1
|
@@ -1524,14 +1524,21 @@ function useBankingInfoForm(props) {
|
|
|
1524
1524
|
paymentDay: withdrawalSettings.paymentDay,
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) =>
|
|
1527
|
+
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
1528
|
+
if (paymentOption.countryCode !== initialData.bankCountry)
|
|
1529
|
+
return false;
|
|
1530
|
+
if (initialData.paymentMethod === "PAYPAL" &&
|
|
1531
|
+
paymentOption.defaultFinancePaymentMethodId !== 7)
|
|
1532
|
+
return false;
|
|
1533
|
+
return true;
|
|
1534
|
+
});
|
|
1535
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1528
1536
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1529
1537
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
1530
1538
|
setFormState(initialData);
|
|
1531
1539
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
1532
1540
|
? "toPayPalAccount"
|
|
1533
1541
|
: "toBankAccount");
|
|
1534
|
-
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1535
1542
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
1536
1543
|
const updateBankCountry = (bankCountry) => {
|
|
1537
1544
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
@@ -1565,7 +1572,7 @@ function useBankingInfoForm(props) {
|
|
|
1565
1572
|
try {
|
|
1566
1573
|
if (!currentPaymentOption)
|
|
1567
1574
|
throw new Error("No currentPaymentOption");
|
|
1568
|
-
const
|
|
1575
|
+
const input = {
|
|
1569
1576
|
setImpactPublisherWithdrawalSettingsInput: {
|
|
1570
1577
|
user: {
|
|
1571
1578
|
id: user.id,
|
|
@@ -1575,7 +1582,8 @@ function useBankingInfoForm(props) {
|
|
|
1575
1582
|
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1576
1583
|
paymentSchedulingType: paymentScheduleChecked,
|
|
1577
1584
|
},
|
|
1578
|
-
}
|
|
1585
|
+
};
|
|
1586
|
+
const response = await saveWithdrawalSettings(input);
|
|
1579
1587
|
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
1580
1588
|
throw new Error();
|
|
1581
1589
|
}
|
|
@@ -3736,7 +3744,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3736
3744
|
}
|
|
3737
3745
|
disconnectedCallback() { }
|
|
3738
3746
|
async renderCell(data) {
|
|
3739
|
-
console.log({ data, property: this.property });
|
|
3740
3747
|
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3741
3748
|
}
|
|
3742
3749
|
async renderLabel() {
|
|
@@ -3772,8 +3779,7 @@ const InvoiceTableDateColumn = class {
|
|
|
3772
3779
|
}
|
|
3773
3780
|
disconnectedCallback() { }
|
|
3774
3781
|
async renderCell(data, options) {
|
|
3775
|
-
|
|
3776
|
-
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options.locale }));
|
|
3782
|
+
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3777
3783
|
}
|
|
3778
3784
|
async renderLabel() {
|
|
3779
3785
|
return this.columnTitle;
|
|
@@ -117,6 +117,8 @@ function usePortalEmailVerification(props) {
|
|
|
117
117
|
resendEmailButtonText: props.resendEmailButtonText,
|
|
118
118
|
verificationLoadingMessage: props.verificationLoadingMessage,
|
|
119
119
|
verificationStatusMessage: props.verificationStatusMessage,
|
|
120
|
+
verificationResentMessage: props.verificationResentMessage,
|
|
121
|
+
networkErrorMessage: props.networkErrorMessage,
|
|
120
122
|
},
|
|
121
123
|
};
|
|
122
124
|
}
|
|
@@ -409,7 +409,7 @@ const ReferralTableDateColumn = class {
|
|
|
409
409
|
disconnectedCallback() { }
|
|
410
410
|
async renderCell(data, options) {
|
|
411
411
|
// TODO - Validate `dateShown` against a set of known values
|
|
412
|
-
return (index.h("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
412
|
+
return (index.h("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
413
413
|
}
|
|
414
414
|
async renderLabel() {
|
|
415
415
|
return this.columnTitle;
|
|
@@ -520,7 +520,7 @@ const ReferralTableRewardsCell = class {
|
|
|
520
520
|
const partnerFundsStatus = (_g = reward.partnerFundsTransfer) === null || _g === void 0 ? void 0 : _g.status;
|
|
521
521
|
if (partnerFundsStatus === "NOT_YET_DUE" ||
|
|
522
522
|
partnerFundsStatus === "TRANSFERRED") {
|
|
523
|
-
return "
|
|
523
|
+
return "PAYOUT_APPROVED";
|
|
524
524
|
}
|
|
525
525
|
else if (partnerFundsStatus === "OVERDUE")
|
|
526
526
|
return "PAYOUT_FAILED";
|
|
@@ -684,8 +684,7 @@ const ReferralTableRewardsColumn = class {
|
|
|
684
684
|
}
|
|
685
685
|
disconnectedCallback() { }
|
|
686
686
|
async renderCell(data, options) {
|
|
687
|
-
|
|
688
|
-
return (index.h("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options.locale, exportparts: "sqm-cell-value" }));
|
|
687
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-cell-value" }));
|
|
689
688
|
}
|
|
690
689
|
async renderLabel() {
|
|
691
690
|
return this.columnTitle;
|
|
@@ -20,7 +20,7 @@ const RewardTableCustomerNoteColumn = class {
|
|
|
20
20
|
async renderCell(data, options) {
|
|
21
21
|
var _a;
|
|
22
22
|
const reward = data;
|
|
23
|
-
return (index.h("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options.locale }));
|
|
23
|
+
return (index.h("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
24
24
|
}
|
|
25
25
|
async renderLabel() {
|
|
26
26
|
return this.columnTitle;
|
|
@@ -465,7 +465,7 @@ const RewardTableDateColumn = class {
|
|
|
465
465
|
}
|
|
466
466
|
disconnectedCallback() { }
|
|
467
467
|
async renderCell(data, options) {
|
|
468
|
-
return (index.h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
468
|
+
return (index.h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
469
469
|
}
|
|
470
470
|
async renderLabel() {
|
|
471
471
|
return this.columnTitle;
|
|
@@ -647,7 +647,7 @@ const RewardsTableColumn = class {
|
|
|
647
647
|
}
|
|
648
648
|
disconnectedCallback() { }
|
|
649
649
|
async renderCell(data, options) {
|
|
650
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
650
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
651
651
|
}
|
|
652
652
|
async renderLabel() {
|
|
653
653
|
return this.columnTitle;
|
|
@@ -764,7 +764,7 @@ const RewardTableUserColumn = class {
|
|
|
764
764
|
}
|
|
765
765
|
disconnectedCallback() { }
|
|
766
766
|
async renderCell(data, options) {
|
|
767
|
-
return (index.h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options.locale }));
|
|
767
|
+
return (index.h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
768
768
|
}
|
|
769
769
|
async renderLabel() {
|
|
770
770
|
return this.columnTitle;
|
|
@@ -1069,7 +1069,7 @@ const RewardTableStatusColumn = class {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
disconnectedCallback() { }
|
|
1071
1071
|
async renderCell(data, options) {
|
|
1072
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options.locale }));
|
|
1072
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
1073
1073
|
}
|
|
1074
1074
|
async renderLabel() {
|
|
1075
1075
|
return this.columnTitle;
|
package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js
CHANGED
|
@@ -13,8 +13,7 @@ export class InvoiceTableDateColumn {
|
|
|
13
13
|
}
|
|
14
14
|
disconnectedCallback() { }
|
|
15
15
|
async renderCell(data, options) {
|
|
16
|
-
|
|
17
|
-
return (h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options.locale }));
|
|
16
|
+
return (h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
18
17
|
}
|
|
19
18
|
async renderLabel() {
|
|
20
19
|
return this.columnTitle;
|
|
@@ -51,7 +50,7 @@ export class InvoiceTableDateColumn {
|
|
|
51
50
|
static get methods() { return {
|
|
52
51
|
"renderCell": {
|
|
53
52
|
"complexType": {
|
|
54
|
-
"signature": "(data: Invoice, options
|
|
53
|
+
"signature": "(data: Invoice, options?: { locale: string; }) => Promise<any>",
|
|
55
54
|
"parameters": [{
|
|
56
55
|
"tags": [],
|
|
57
56
|
"text": ""
|
package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js
CHANGED
|
@@ -105,6 +105,8 @@ export function usePortalEmailVerification(props) {
|
|
|
105
105
|
resendEmailButtonText: props.resendEmailButtonText,
|
|
106
106
|
verificationLoadingMessage: props.verificationLoadingMessage,
|
|
107
107
|
verificationStatusMessage: props.verificationStatusMessage,
|
|
108
|
+
verificationResentMessage: props.verificationResentMessage,
|
|
109
|
+
networkErrorMessage: props.networkErrorMessage,
|
|
108
110
|
},
|
|
109
111
|
};
|
|
110
112
|
}
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -99,7 +99,7 @@ export class ReferralTableRewardsCell {
|
|
|
99
99
|
const partnerFundsStatus = (_g = reward.partnerFundsTransfer) === null || _g === void 0 ? void 0 : _g.status;
|
|
100
100
|
if (partnerFundsStatus === "NOT_YET_DUE" ||
|
|
101
101
|
partnerFundsStatus === "TRANSFERRED") {
|
|
102
|
-
return "
|
|
102
|
+
return "PAYOUT_APPROVED";
|
|
103
103
|
}
|
|
104
104
|
else if (partnerFundsStatus === "OVERDUE")
|
|
105
105
|
return "PAYOUT_FAILED";
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js
CHANGED
|
@@ -39,7 +39,7 @@ export class ReferralTableDateColumn {
|
|
|
39
39
|
disconnectedCallback() { }
|
|
40
40
|
async renderCell(data, options) {
|
|
41
41
|
// TODO - Validate `dateShown` against a set of known values
|
|
42
|
-
return (h("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
42
|
+
return (h("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
43
43
|
}
|
|
44
44
|
async renderLabel() {
|
|
45
45
|
return this.columnTitle;
|
|
@@ -115,7 +115,7 @@ export class ReferralTableDateColumn {
|
|
|
115
115
|
static get methods() { return {
|
|
116
116
|
"renderCell": {
|
|
117
117
|
"complexType": {
|
|
118
|
-
"signature": "(data: Referral, options
|
|
118
|
+
"signature": "(data: Referral, options?: { locale: string; }) => Promise<any>",
|
|
119
119
|
"parameters": [{
|
|
120
120
|
"tags": [],
|
|
121
121
|
"text": ""
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -66,8 +66,7 @@ export class ReferralTableRewardsColumn {
|
|
|
66
66
|
}
|
|
67
67
|
disconnectedCallback() { }
|
|
68
68
|
async renderCell(data, options) {
|
|
69
|
-
|
|
70
|
-
return (h("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options.locale, exportparts: "sqm-cell-value" }));
|
|
69
|
+
return (h("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-cell-value" }));
|
|
71
70
|
}
|
|
72
71
|
async renderLabel() {
|
|
73
72
|
return this.columnTitle;
|
|
@@ -294,7 +293,7 @@ export class ReferralTableRewardsColumn {
|
|
|
294
293
|
static get methods() { return {
|
|
295
294
|
"renderCell": {
|
|
296
295
|
"complexType": {
|
|
297
|
-
"signature": "(data: Referral, options
|
|
296
|
+
"signature": "(data: Referral, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
|
|
298
297
|
"parameters": [{
|
|
299
298
|
"tags": [],
|
|
300
299
|
"text": ""
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js
CHANGED
|
@@ -28,7 +28,7 @@ export class RewardTableDateColumn {
|
|
|
28
28
|
}
|
|
29
29
|
disconnectedCallback() { }
|
|
30
30
|
async renderCell(data, options) {
|
|
31
|
-
return (h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
31
|
+
return (h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
32
32
|
}
|
|
33
33
|
async renderLabel() {
|
|
34
34
|
return this.columnTitle;
|
|
@@ -95,7 +95,7 @@ export class RewardTableDateColumn {
|
|
|
95
95
|
static get methods() { return {
|
|
96
96
|
"renderCell": {
|
|
97
97
|
"complexType": {
|
|
98
|
-
"signature": "(data: Reward, options
|
|
98
|
+
"signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
|
|
99
99
|
"parameters": [{
|
|
100
100
|
"tags": [],
|
|
101
101
|
"text": ""
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js
CHANGED
|
@@ -19,7 +19,7 @@ export class RewardTableCustomerNoteColumn {
|
|
|
19
19
|
async renderCell(data, options) {
|
|
20
20
|
var _a;
|
|
21
21
|
const reward = data;
|
|
22
|
-
return (h("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options.locale }));
|
|
22
|
+
return (h("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
23
23
|
}
|
|
24
24
|
async renderLabel() {
|
|
25
25
|
return this.columnTitle;
|
|
@@ -56,7 +56,7 @@ export class RewardTableCustomerNoteColumn {
|
|
|
56
56
|
static get methods() { return {
|
|
57
57
|
"renderCell": {
|
|
58
58
|
"complexType": {
|
|
59
|
-
"signature": "(data: Reward, options
|
|
59
|
+
"signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
|
|
60
60
|
"parameters": [{
|
|
61
61
|
"tags": [],
|
|
62
62
|
"text": ""
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js
CHANGED
|
@@ -29,7 +29,7 @@ export class RewardsTableColumn {
|
|
|
29
29
|
}
|
|
30
30
|
disconnectedCallback() { }
|
|
31
31
|
async renderCell(data, options) {
|
|
32
|
-
return (h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
32
|
+
return (h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
33
33
|
}
|
|
34
34
|
async renderLabel() {
|
|
35
35
|
return this.columnTitle;
|
|
@@ -134,7 +134,7 @@ export class RewardsTableColumn {
|
|
|
134
134
|
static get methods() { return {
|
|
135
135
|
"renderCell": {
|
|
136
136
|
"complexType": {
|
|
137
|
-
"signature": "(data: Reward, options
|
|
137
|
+
"signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
|
|
138
138
|
"parameters": [{
|
|
139
139
|
"tags": [],
|
|
140
140
|
"text": ""
|
|
@@ -148,9 +148,6 @@ export class RewardsTableColumn {
|
|
|
148
148
|
},
|
|
149
149
|
"Reward": {
|
|
150
150
|
"location": "global"
|
|
151
|
-
},
|
|
152
|
-
"ImpactConnection": {
|
|
153
|
-
"location": "global"
|
|
154
151
|
}
|
|
155
152
|
},
|
|
156
153
|
"return": "Promise<any>"
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js
CHANGED
|
@@ -47,7 +47,7 @@ export class RewardTableUserColumn {
|
|
|
47
47
|
}
|
|
48
48
|
disconnectedCallback() { }
|
|
49
49
|
async renderCell(data, options) {
|
|
50
|
-
return (h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options.locale }));
|
|
50
|
+
return (h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
51
51
|
}
|
|
52
52
|
async renderLabel() {
|
|
53
53
|
return this.columnTitle;
|
|
@@ -202,7 +202,7 @@ export class RewardTableUserColumn {
|
|
|
202
202
|
static get methods() { return {
|
|
203
203
|
"renderCell": {
|
|
204
204
|
"complexType": {
|
|
205
|
-
"signature": "(data: Reward, options
|
|
205
|
+
"signature": "(data: Reward, options?: { locale: string; }) => Promise<any>",
|
|
206
206
|
"parameters": [{
|
|
207
207
|
"tags": [],
|
|
208
208
|
"text": ""
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js
CHANGED
|
@@ -100,7 +100,7 @@ export class RewardTableStatusColumn {
|
|
|
100
100
|
}
|
|
101
101
|
disconnectedCallback() { }
|
|
102
102
|
async renderCell(data, options) {
|
|
103
|
-
return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options.locale }));
|
|
103
|
+
return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
104
104
|
}
|
|
105
105
|
async renderLabel() {
|
|
106
106
|
return this.columnTitle;
|
|
@@ -442,7 +442,7 @@ export class RewardTableStatusColumn {
|
|
|
442
442
|
static get methods() { return {
|
|
443
443
|
"renderCell": {
|
|
444
444
|
"complexType": {
|
|
445
|
-
"signature": "(data: Reward, options
|
|
445
|
+
"signature": "(data: Reward, options?: { locale: string; taxConnection: ImpactConnection; }) => Promise<any>",
|
|
446
446
|
"parameters": [{
|
|
447
447
|
"tags": [],
|
|
448
448
|
"text": ""
|
|
@@ -345,14 +345,21 @@ export function useBankingInfoForm(props) {
|
|
|
345
345
|
paymentDay: withdrawalSettings.paymentDay,
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) =>
|
|
348
|
+
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
349
|
+
if (paymentOption.countryCode !== initialData.bankCountry)
|
|
350
|
+
return false;
|
|
351
|
+
if (initialData.paymentMethod === "PAYPAL" &&
|
|
352
|
+
paymentOption.defaultFinancePaymentMethodId !== 7)
|
|
353
|
+
return false;
|
|
354
|
+
return true;
|
|
355
|
+
});
|
|
356
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
349
357
|
setCurrentPaymentOption(currentPaymentOption);
|
|
350
358
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
351
359
|
setFormState(initialData);
|
|
352
360
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
353
361
|
? "toPayPalAccount"
|
|
354
362
|
: "toBankAccount");
|
|
355
|
-
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
356
363
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
357
364
|
const updateBankCountry = (bankCountry) => {
|
|
358
365
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
@@ -386,7 +393,7 @@ export function useBankingInfoForm(props) {
|
|
|
386
393
|
try {
|
|
387
394
|
if (!currentPaymentOption)
|
|
388
395
|
throw new Error("No currentPaymentOption");
|
|
389
|
-
const
|
|
396
|
+
const input = {
|
|
390
397
|
setImpactPublisherWithdrawalSettingsInput: {
|
|
391
398
|
user: {
|
|
392
399
|
id: user.id,
|
|
@@ -396,7 +403,8 @@ export function useBankingInfoForm(props) {
|
|
|
396
403
|
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
397
404
|
paymentSchedulingType: paymentScheduleChecked,
|
|
398
405
|
},
|
|
399
|
-
}
|
|
406
|
+
};
|
|
407
|
+
const response = await saveWithdrawalSettings(input);
|
|
400
408
|
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
401
409
|
throw new Error();
|
|
402
410
|
}
|
|
@@ -22,8 +22,10 @@ export function useTaxAndCash() {
|
|
|
22
22
|
const host = useHost();
|
|
23
23
|
function setupDemo() {
|
|
24
24
|
// coleton
|
|
25
|
-
const id =
|
|
26
|
-
|
|
25
|
+
// const id =
|
|
26
|
+
// "bd5a0bc8f8c82faa4f37f882ca5839910d6e4524597f3c3398d41d920bed8fc9";
|
|
27
|
+
// const accountId =
|
|
28
|
+
// "bd5a0bc8f8c82faa4f37f882ca5839910d6e4524597f3c3398d41d920bed8fc9";
|
|
27
29
|
// andy3
|
|
28
30
|
// const id =
|
|
29
31
|
// "e061ee21b45eff8ada22845d441c6a2cd7190af1718a55452ad2d44b020915a7";
|
|
@@ -38,41 +40,31 @@ export function useTaxAndCash() {
|
|
|
38
40
|
// const accountId =
|
|
39
41
|
// "80d24e8d6133bdcf859844ca1fc7552c57d5d0661a7f46f791ea0785827a70ed";
|
|
40
42
|
// sam
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
// const accountId =
|
|
44
|
-
// "3e0fab4f3e7c7cd3ee971b0c0e9a4ece4061349c837f24c71582330842fc8462";
|
|
43
|
+
const id = "ae6fec98a3dae2e73cb6c94df240b2bce1633068b4d625fb7778ddeef18ae748";
|
|
44
|
+
const accountId = "ae6fec98a3dae2e73cb6c94df240b2bce1633068b4d625fb7778ddeef18ae748";
|
|
45
45
|
// const programId = "22514";
|
|
46
46
|
const programId = "22999";
|
|
47
47
|
//@ts-ignore
|
|
48
48
|
window.widgetIdent = {
|
|
49
|
-
|
|
50
|
-
tenantAlias: "aswi7zpxl6rjp",
|
|
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: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSZkFUVEdOZXRqUDUwNzYxMDNERjVub0d0TDRnQ0hjYjEifQ.eyJ1c2VyIjp7ImlkIjoiYmQ1YTBiYzhmOGM4MmZhYTRmMzdmODgyY2E1ODM5OTEwZDZlNDUyNDU5N2YzYzMzOThkNDFkOTIwYmVkOGZjOSIsImFjY291bnRJZCI6ImJkNWEwYmM4ZjhjODJmYWE0ZjM3Zjg4MmNhNTgzOTkxMGQ2ZTQ1MjQ1OTdmM2MzMzk4ZDQxZDkyMGJlZDhmYzkiLCJlbWFpbCI6ImNvbGV0b24uYW5uZXR0K3Rlc3RwYXlvdXRAaW1wYWN0LmNvbSJ9fQ.pUJqd22SSowAvOLFF_2U13qsMGW3eOGxKmohWh0Bs4I",
|
|
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
|
// }, []);
|
|
70
|
-
//
|
|
62
|
+
// andy3
|
|
71
63
|
// useEffect(() => {
|
|
72
64
|
// setUserIdentity({
|
|
73
65
|
// accountId,
|
|
74
66
|
// id,
|
|
75
|
-
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.
|
|
67
|
+
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiZTA2MWVlMjFiNDVlZmY4YWRhMjI4NDVkNDQxYzZhMmNkNzE5MGFmMTcxOGE1NTQ1MmFkMmQ0NGIwMjA5MTVhNyIsImFjY291bnRJZCI6ImUwNjFlZTIxYjQ1ZWZmOGFkYTIyODQ1ZDQ0MWM2YTJjZDcxOTBhZjE3MThhNTU0NTJhZDJkNDRiMDIwOTE1YTciLCJlbWFpbCI6InRlc3R1c2VyQGV4YW1wbGUuY29tIn19.92Dtz49tnl8ZL9oDAkNeND8SX5OSFlt5Y7FXP92sGiA",
|
|
76
68
|
// });
|
|
77
69
|
// }, []);
|
|
78
70
|
// andy
|
|
@@ -80,17 +72,25 @@ export function useTaxAndCash() {
|
|
|
80
72
|
// setUserIdentity({
|
|
81
73
|
// accountId,
|
|
82
74
|
// id,
|
|
83
|
-
// jwt: "
|
|
75
|
+
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSTVhzWXk2WVlxcTQ2OTQzN21HOEVSUXQ4UW9LRkJhRzEifQ.eyJ1c2VyIjp7ImlkIjoiMGExZTFmYTE3OGQ1MmRlZDAzZTg2YjZiZDAxYThhMDIwNDZkOGJlZjMzNjc2MzRlMTkyNzQ2ZTcxMTljNDFlMyIsImFjY291bnRJZCI6IjBhMWUxZmExNzhkNTJkZWQwM2U4NmI2YmQwMWE4YTAyMDQ2ZDhiZWYzMzY3NjM0ZTE5Mjc0NmU3MTE5YzQxZTMifX0.OO18YDc8LG3XeKJAug1oahqapmHY61RncrbRiK7Yer4",
|
|
84
76
|
// });
|
|
85
77
|
// }, []);
|
|
86
|
-
//
|
|
78
|
+
// andy
|
|
87
79
|
// useEffect(() => {
|
|
88
80
|
// setUserIdentity({
|
|
89
81
|
// accountId,
|
|
90
82
|
// id,
|
|
91
|
-
// jwt: "
|
|
83
|
+
// jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IklSZkFUVEdOZXRqUDUwNzYxMDNERjVub0d0TDRnQ0hjYjEifQ.eyJ1c2VyIjp7ImlkIjoiODBkMjRlOGQ2MTMzYmRjZjg1OTg0NGNhMWZjNzU1MmM1N2Q1ZDA2NjFhN2Y0NmY3OTFlYTA3ODU4MjdhNzBlZCIsImFjY291bnRJZCI6IjgwZDI0ZThkNjEzM2JkY2Y4NTk4NDRjYTFmYzc1NTJjNTdkNWQwNjYxYTdmNDZmNzkxZWEwNzg1ODI3YTcwZWQifX0.8VWa3R_pSeRJeNw07AZPjCdTuTiwBYXOAc-ouVItuYs",
|
|
92
84
|
// });
|
|
93
85
|
// }, []);
|
|
86
|
+
// sam
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
setUserIdentity({
|
|
89
|
+
accountId,
|
|
90
|
+
id,
|
|
91
|
+
jwt: "eyJraWQiOiJJUk1Yc1l5NllZcXE0Njk0MzdtRzhFUlF0OFFvS0ZCYUcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJqdGkiOiI2NWZkYmQyYThiODQ5NjIwMTU5ODZkMDEiLCJpYXQiOjE3MTExMjc4NTAsImV4cCI6MTcxMTIxNDI1MCwic3ViIjoiWVdVMlptVmpPVGhoTTJSaFpUSmxOek5qWWpaak9UUmtaakkwTUdJeVltTmxNVFl6TXpBMk9HSTBaRFl5TldaaU56YzNPR1JrWldWbU1UaGhaVGMwT0E9PTpZV1UyWm1Wak9UaGhNMlJoWlRKbE56TmpZalpqT1RSa1pqSTBNR0l5WW1ObE1UWXpNekEyT0dJMFpEWXlOV1ppTnpjM09HUmtaV1ZtTVRoaFpUYzBPQT09QGFwcmgwY2ZxNnk4dGs6dXNlcnMiLCJ1c2VyIjp7ImlkIjoiYWU2ZmVjOThhM2RhZTJlNzNjYjZjOTRkZjI0MGIyYmNlMTYzMzA2OGI0ZDYyNWZiNzc3OGRkZWVmMThhZTc0OCIsImFjY291bnRJZCI6ImFlNmZlYzk4YTNkYWUyZTczY2I2Yzk0ZGYyNDBiMmJjZTE2MzMwNjhiNGQ2MjVmYjc3NzhkZGVlZjE4YWU3NDgiLCJkYXRlQmxvY2tlZCI6bnVsbH19.xgTjcNdqgX2un7n2YlbGwhkIQhdE0QC02s_awIkfPMo",
|
|
92
|
+
});
|
|
93
|
+
}, []);
|
|
94
94
|
}
|
|
95
95
|
// setupDemo();
|
|
96
96
|
/** END DEMO DATA */
|
|
@@ -1520,14 +1520,21 @@ function useBankingInfoForm(props) {
|
|
|
1520
1520
|
paymentDay: withdrawalSettings.paymentDay,
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) =>
|
|
1523
|
+
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
1524
|
+
if (paymentOption.countryCode !== initialData.bankCountry)
|
|
1525
|
+
return false;
|
|
1526
|
+
if (initialData.paymentMethod === "PAYPAL" &&
|
|
1527
|
+
paymentOption.defaultFinancePaymentMethodId !== 7)
|
|
1528
|
+
return false;
|
|
1529
|
+
return true;
|
|
1530
|
+
});
|
|
1531
|
+
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1524
1532
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1525
1533
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
1526
1534
|
setFormState(initialData);
|
|
1527
1535
|
setPaymentMethodChecked(initialData.paymentMethod === "PAYPAL"
|
|
1528
1536
|
? "toPayPalAccount"
|
|
1529
1537
|
: "toBankAccount");
|
|
1530
|
-
updateBankCountry(currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.countryCode);
|
|
1531
1538
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
1532
1539
|
const updateBankCountry = (bankCountry) => {
|
|
1533
1540
|
const currentPaymentOption = paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.find((paymentOption) => {
|
|
@@ -1561,7 +1568,7 @@ function useBankingInfoForm(props) {
|
|
|
1561
1568
|
try {
|
|
1562
1569
|
if (!currentPaymentOption)
|
|
1563
1570
|
throw new Error("No currentPaymentOption");
|
|
1564
|
-
const
|
|
1571
|
+
const input = {
|
|
1565
1572
|
setImpactPublisherWithdrawalSettingsInput: {
|
|
1566
1573
|
user: {
|
|
1567
1574
|
id: user.id,
|
|
@@ -1571,7 +1578,8 @@ function useBankingInfoForm(props) {
|
|
|
1571
1578
|
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1572
1579
|
paymentSchedulingType: paymentScheduleChecked,
|
|
1573
1580
|
},
|
|
1574
|
-
}
|
|
1581
|
+
};
|
|
1582
|
+
const response = await saveWithdrawalSettings(input);
|
|
1575
1583
|
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
1576
1584
|
throw new Error();
|
|
1577
1585
|
}
|
|
@@ -3732,7 +3740,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3732
3740
|
}
|
|
3733
3741
|
disconnectedCallback() { }
|
|
3734
3742
|
async renderCell(data) {
|
|
3735
|
-
console.log({ data, property: this.property });
|
|
3736
3743
|
return (h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3737
3744
|
}
|
|
3738
3745
|
async renderLabel() {
|
|
@@ -3768,8 +3775,7 @@ const InvoiceTableDateColumn = class {
|
|
|
3768
3775
|
}
|
|
3769
3776
|
disconnectedCallback() { }
|
|
3770
3777
|
async renderCell(data, options) {
|
|
3771
|
-
|
|
3772
|
-
return (h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options.locale }));
|
|
3778
|
+
return (h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3773
3779
|
}
|
|
3774
3780
|
async renderLabel() {
|
|
3775
3781
|
return this.columnTitle;
|
|
@@ -113,6 +113,8 @@ function usePortalEmailVerification(props) {
|
|
|
113
113
|
resendEmailButtonText: props.resendEmailButtonText,
|
|
114
114
|
verificationLoadingMessage: props.verificationLoadingMessage,
|
|
115
115
|
verificationStatusMessage: props.verificationStatusMessage,
|
|
116
|
+
verificationResentMessage: props.verificationResentMessage,
|
|
117
|
+
networkErrorMessage: props.networkErrorMessage,
|
|
116
118
|
},
|
|
117
119
|
};
|
|
118
120
|
}
|
|
@@ -405,7 +405,7 @@ const ReferralTableDateColumn = class {
|
|
|
405
405
|
disconnectedCallback() { }
|
|
406
406
|
async renderCell(data, options) {
|
|
407
407
|
// TODO - Validate `dateShown` against a set of known values
|
|
408
|
-
return (h$1("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
408
|
+
return (h$1("sqm-referral-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
409
409
|
}
|
|
410
410
|
async renderLabel() {
|
|
411
411
|
return this.columnTitle;
|
|
@@ -516,7 +516,7 @@ const ReferralTableRewardsCell = class {
|
|
|
516
516
|
const partnerFundsStatus = (_g = reward.partnerFundsTransfer) === null || _g === void 0 ? void 0 : _g.status;
|
|
517
517
|
if (partnerFundsStatus === "NOT_YET_DUE" ||
|
|
518
518
|
partnerFundsStatus === "TRANSFERRED") {
|
|
519
|
-
return "
|
|
519
|
+
return "PAYOUT_APPROVED";
|
|
520
520
|
}
|
|
521
521
|
else if (partnerFundsStatus === "OVERDUE")
|
|
522
522
|
return "PAYOUT_FAILED";
|
|
@@ -680,8 +680,7 @@ const ReferralTableRewardsColumn = class {
|
|
|
680
680
|
}
|
|
681
681
|
disconnectedCallback() { }
|
|
682
682
|
async renderCell(data, options) {
|
|
683
|
-
|
|
684
|
-
return (h$1("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options.locale, exportparts: "sqm-cell-value" }));
|
|
683
|
+
return (h$1("sqm-referral-table-rewards-cell", { rewards: data.rewards, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, statusText: this.statusText, statusLongText: this.statusLongText, fuelTankText: this.fuelTankText, rewardReceivedText: this.rewardReceivedText, expiringText: this.expiringText, pendingForText: this.pendingForText, hideDetails: this.hideDetails, deniedHelpText: this.deniedHelpText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-cell-value" }));
|
|
685
684
|
}
|
|
686
685
|
async renderLabel() {
|
|
687
686
|
return this.columnTitle;
|
|
@@ -16,7 +16,7 @@ const RewardTableCustomerNoteColumn = class {
|
|
|
16
16
|
async renderCell(data, options) {
|
|
17
17
|
var _a;
|
|
18
18
|
const reward = data;
|
|
19
|
-
return (h$1("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options.locale }));
|
|
19
|
+
return (h$1("sqm-rewards-table-customer-note-cell", { note: (_a = reward === null || reward === void 0 ? void 0 : reward.meta) === null || _a === void 0 ? void 0 : _a.message, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
20
20
|
}
|
|
21
21
|
async renderLabel() {
|
|
22
22
|
return this.columnTitle;
|
|
@@ -461,7 +461,7 @@ const RewardTableDateColumn = class {
|
|
|
461
461
|
}
|
|
462
462
|
disconnectedCallback() { }
|
|
463
463
|
async renderCell(data, options) {
|
|
464
|
-
return (h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options.locale }));
|
|
464
|
+
return (h("sqm-rewards-table-date-cell", { date: data[this.dateShown], locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
465
465
|
}
|
|
466
466
|
async renderLabel() {
|
|
467
467
|
return this.columnTitle;
|
|
@@ -643,7 +643,7 @@ const RewardsTableColumn = class {
|
|
|
643
643
|
}
|
|
644
644
|
disconnectedCallback() { }
|
|
645
645
|
async renderCell(data, options) {
|
|
646
|
-
return (h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
646
|
+
return (h("sqm-rewards-table-reward-cell", { reward: data, redeemedText: this.redeemedText, availableText: this.availableText, copyText: this.copyText, locale: options === null || options === void 0 ? void 0 : options.locale, exportparts: "sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext" }));
|
|
647
647
|
}
|
|
648
648
|
async renderLabel() {
|
|
649
649
|
return this.columnTitle;
|
|
@@ -760,7 +760,7 @@ const RewardTableUserColumn = class {
|
|
|
760
760
|
}
|
|
761
761
|
disconnectedCallback() { }
|
|
762
762
|
async renderCell(data, options) {
|
|
763
|
-
return (h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options.locale }));
|
|
763
|
+
return (h("sqm-rewards-table-source-cell", { reward: data, anonymousUserText: this.anonymousUser, deletedUserText: this.deletedUser, rewardExchangeText: this.rewardExchangeText, referralText: this.referralText, rewardSourceText: this.rewardSourceText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
764
764
|
}
|
|
765
765
|
async renderLabel() {
|
|
766
766
|
return this.columnTitle;
|
|
@@ -1065,7 +1065,7 @@ const RewardTableStatusColumn = class {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
disconnectedCallback() { }
|
|
1067
1067
|
async renderCell(data, options) {
|
|
1068
|
-
return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options.locale }));
|
|
1068
|
+
return (h("sqm-rewards-table-status-cell", { statusText: this.statusText, reward: data, taxConnection: options === null || options === void 0 ? void 0 : options.taxConnection, expiryText: this.expiryText, pendingScheduled: this.pendingScheduled, pendingUsTax: this.pendingUsTax, pendingUnhandled: this.pendingUnhandled, pendingReviewText: this.pendingReviewText, payoutFailed: this.payoutFailed, payoutApproved: this.payoutApproved, payoutCancelled: this.payoutCancelled, deniedText: this.deniedText, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
1069
1069
|
}
|
|
1070
1070
|
async renderLabel() {
|
|
1071
1071
|
return this.columnTitle;
|