@saasquatch/mint-components 2.0.2-2 → 2.0.2-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/sqm-banking-info-form_10.cjs.entry.js +44 -23
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +12 -12
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/{usePayoutStatus-67c78085.js → usePayoutStatus-9abe2de8.js} +16 -19
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +5 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +16 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +12 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +20 -11
- package/dist/esm/sqm-banking-info-form_10.entry.js +44 -23
- package/dist/esm/sqm-big-stat_47.entry.js +12 -12
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +16 -19
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-f064247b.js → usePayoutStatus-e0ef2374.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-2a404185.system.entry.js +1 -0
- package/dist/mint-components/{p-40e0251f.system.js → p-59bb2d52.system.js} +2 -2
- package/dist/mint-components/p-7fb4470e.entry.js +1 -0
- package/dist/mint-components/{p-09ab53fb.system.entry.js → p-8fa77acf.system.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-a3323ecb.system.entry.js +1 -0
- package/dist/mint-components/{p-838c6cf8.entry.js → p-bf2fc399.entry.js} +13 -6
- package/dist/mint-components/{p-f17b6de6.js → p-c41108ae.js} +7 -7
- package/dist/mint-components/{p-e728337d.entry.js → p-e4f6a6c8.entry.js} +9 -9
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-2dc720db.system.entry.js +0 -1
- package/dist/mint-components/p-7e009640.system.entry.js +0 -1
- package/dist/mint-components/p-ab111e29.entry.js +0 -1
|
@@ -11,6 +11,7 @@ const HeroImage = class {
|
|
|
11
11
|
/**
|
|
12
12
|
* @uiWidget color
|
|
13
13
|
* @uiName Logo text color
|
|
14
|
+
* @default #555555
|
|
14
15
|
*/
|
|
15
16
|
this.logoTextColor = "#555555";
|
|
16
17
|
/**
|
|
@@ -28,10 +29,9 @@ const HeroImage = class {
|
|
|
28
29
|
}
|
|
29
30
|
disconnectedCallback() { }
|
|
30
31
|
render() {
|
|
31
|
-
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
|
|
32
|
+
return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link", style: { textDecoration: "none" } }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
|
|
32
33
|
fontSize: `${this.logoTextSize}px`,
|
|
33
34
|
color: this.logoTextColor || "#555555",
|
|
34
|
-
textDecoration: "none",
|
|
35
35
|
} }, this.logoText)))));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
@@ -1127,7 +1127,7 @@ const GET_TAX_SETTING = dist.gql `
|
|
|
1127
1127
|
}
|
|
1128
1128
|
`;
|
|
1129
1129
|
function getStatus(data) {
|
|
1130
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
1131
1131
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1132
1132
|
const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
|
|
1133
1133
|
reward.partnerFundsTransfer.status === "TRANSFERRED");
|
|
@@ -1144,19 +1144,22 @@ function getStatus(data) {
|
|
|
1144
1144
|
return "VERIFICATION:REVIEW";
|
|
1145
1145
|
if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
1146
1146
|
return "VERIFICATION:FAILED";
|
|
1147
|
+
// only show banner for NEW_PAYEE_REVIEW if a PFT was created
|
|
1147
1148
|
if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
|
|
1148
1149
|
return "NEW_PAYEE_REVIEW";
|
|
1149
|
-
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("
|
|
1150
|
+
if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
|
|
1151
|
+
return "DONE";
|
|
1152
|
+
if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
|
|
1150
1153
|
return "PAYMENT_HOLD_ON_CHANGE";
|
|
1151
|
-
if ((
|
|
1154
|
+
if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
|
|
1152
1155
|
return "BENEFICIARY_NAME_INVALID";
|
|
1153
|
-
if ((
|
|
1156
|
+
if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
|
|
1154
1157
|
return "BENEFICIARY_NAME_MISMATCH";
|
|
1155
|
-
if ((
|
|
1158
|
+
if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
|
|
1156
1159
|
return "BANK_TAX_NAME_MISMATCH";
|
|
1157
|
-
if ((
|
|
1160
|
+
if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
|
|
1158
1161
|
return "WITHDRAWAL_SETTINGS_INVALID";
|
|
1159
|
-
if ((
|
|
1162
|
+
if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
|
|
1160
1163
|
return "PAYMENT_RETURNED";
|
|
1161
1164
|
if (account.hold)
|
|
1162
1165
|
return "HOLD";
|
|
@@ -1199,20 +1202,14 @@ function usePayoutStatus(props) {
|
|
|
1199
1202
|
window.history.pushState(null, "", url);
|
|
1200
1203
|
};
|
|
1201
1204
|
const onPaymentInfoClick = () => {
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
hideSteps: true,
|
|
1206
|
-
});
|
|
1207
|
-
setStep("/4");
|
|
1205
|
+
let url = props.cashPayoutsPageUrl;
|
|
1206
|
+
url += "#4";
|
|
1207
|
+
window.history.pushState(null, "", url);
|
|
1208
1208
|
};
|
|
1209
1209
|
const onNewFormClick = () => {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
hideSteps: true,
|
|
1214
|
-
});
|
|
1215
|
-
setStep("/3");
|
|
1210
|
+
let url = props.cashPayoutsPageUrl;
|
|
1211
|
+
url += "#3";
|
|
1212
|
+
window.history.pushState(null, "", url);
|
|
1216
1213
|
};
|
|
1217
1214
|
return {
|
|
1218
1215
|
states: {
|