@saasquatch/mint-components 1.14.5-2 → 1.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +3 -4
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +3 -4
- package/dist/esm/sqm-big-stat_41.entry.js +3 -4
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-28c615f2.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-510785fc.entry.js → p-f7f8545f.entry.js} +8 -8
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/shoelace/assets/icons/x-octagon-fill.svg +3 -0
- package/dist/mint-components/p-b17d5515.system.entry.js +0 -1
|
@@ -318,12 +318,10 @@ function useCouponCode(props) {
|
|
|
318
318
|
const countdownRef = stencilHooks_module.useRef(undefined);
|
|
319
319
|
const { data, loading, refetch, errors } = index_module.wn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
320
320
|
async function checkReward() {
|
|
321
|
-
var _a, _b, _c, _d, _e;
|
|
321
|
+
var _a, _b, _c, _d, _e, _f;
|
|
322
322
|
const data = await refetch();
|
|
323
323
|
setRetried(true);
|
|
324
|
-
if (
|
|
325
|
-
// @ts-ignore
|
|
326
|
-
!((_e = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
324
|
+
if (!((_f = (_e = (_d = (_c = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.instantAccessRewards) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.pendingReasons) === null || _f === void 0 ? void 0 : _f.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
327
325
|
return clearInterval(timerRef.current);
|
|
328
326
|
}
|
|
329
327
|
}
|
|
@@ -437,6 +435,7 @@ function useCouponCode(props) {
|
|
|
437
435
|
case "EMPTY_TANK":
|
|
438
436
|
case "CANCELLED":
|
|
439
437
|
case "ERROR":
|
|
438
|
+
case "ERROR_SYNCING_FUEL_TANK_CODE":
|
|
440
439
|
return "warning";
|
|
441
440
|
case "PENDING":
|
|
442
441
|
return "info";
|
|
@@ -45,12 +45,10 @@ export function useCouponCode(props) {
|
|
|
45
45
|
const countdownRef = useRef(undefined);
|
|
46
46
|
const { data, loading, refetch, errors } = useQuery(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
47
47
|
async function checkReward() {
|
|
48
|
-
var _a, _b, _c, _d, _e;
|
|
48
|
+
var _a, _b, _c, _d, _e, _f;
|
|
49
49
|
const data = await refetch();
|
|
50
50
|
setRetried(true);
|
|
51
|
-
if (
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
!((_e = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
51
|
+
if (!((_f = (_e = (_d = (_c = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.instantAccessRewards) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.pendingReasons) === null || _f === void 0 ? void 0 : _f.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
54
52
|
return clearInterval(timerRef.current);
|
|
55
53
|
}
|
|
56
54
|
}
|
|
@@ -164,6 +162,7 @@ export function useCouponCode(props) {
|
|
|
164
162
|
case "EMPTY_TANK":
|
|
165
163
|
case "CANCELLED":
|
|
166
164
|
case "ERROR":
|
|
165
|
+
case "ERROR_SYNCING_FUEL_TANK_CODE":
|
|
167
166
|
return "warning";
|
|
168
167
|
case "PENDING":
|
|
169
168
|
return "info";
|
|
@@ -314,12 +314,10 @@ function useCouponCode(props) {
|
|
|
314
314
|
const countdownRef = useRef(undefined);
|
|
315
315
|
const { data, loading, refetch, errors } = wn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
316
316
|
async function checkReward() {
|
|
317
|
-
var _a, _b, _c, _d, _e;
|
|
317
|
+
var _a, _b, _c, _d, _e, _f;
|
|
318
318
|
const data = await refetch();
|
|
319
319
|
setRetried(true);
|
|
320
|
-
if (
|
|
321
|
-
// @ts-ignore
|
|
322
|
-
!((_e = (_d = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pendingReasons) === null || _e === void 0 ? void 0 : _e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
320
|
+
if (!((_f = (_e = (_d = (_c = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.instantAccessRewards) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.pendingReasons) === null || _f === void 0 ? void 0 : _f.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
323
321
|
return clearInterval(timerRef.current);
|
|
324
322
|
}
|
|
325
323
|
}
|
|
@@ -433,6 +431,7 @@ function useCouponCode(props) {
|
|
|
433
431
|
case "EMPTY_TANK":
|
|
434
432
|
case "CANCELLED":
|
|
435
433
|
case "ERROR":
|
|
434
|
+
case "ERROR_SYNCING_FUEL_TANK_CODE":
|
|
436
435
|
return "warning";
|
|
437
436
|
case "PENDING":
|
|
438
437
|
return "info";
|