@saasquatch/mint-components 1.11.1-10 → 1.11.1-12
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/{ShadowViewAddon-af975b90.js → ShadowViewAddon-f6656672.js} +7 -2
- package/dist/cjs/{copy-text-view-35a47e8d.js → copy-text-view-79484ca2.js} +6 -6
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +1 -1
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +7 -7
- package/dist/collection/components/sqm-share-button/useShareButton.js +6 -1
- package/dist/esm/{ShadowViewAddon-faef41b7.js → ShadowViewAddon-58f39af3.js} +7 -2
- package/dist/esm/{copy-text-view-3fa5df7b.js → copy-text-view-fef437c3.js} +6 -6
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/ShadowViewAddon-58f39af3.js +1 -0
- package/dist/esm-es5/{copy-text-view-3fa5df7b.js → copy-text-view-fef437c3.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.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-85e74fae.system.entry.js → p-0025d642.system.entry.js} +1 -1
- package/dist/mint-components/p-19e6af4c.system.entry.js +1 -0
- package/dist/mint-components/{p-e11adbe0.entry.js → p-26061987.entry.js} +1 -1
- package/dist/mint-components/p-5e9c6394.js +48 -0
- package/dist/mint-components/p-5fc8d87c.system.js +1 -1
- package/dist/mint-components/p-608af4e1.system.js +1 -0
- package/dist/mint-components/{p-56760017.entry.js → p-74b989e4.entry.js} +2 -2
- package/dist/mint-components/{p-650f6529.system.entry.js → p-908799a4.system.entry.js} +1 -1
- package/dist/mint-components/{p-baaf39b8.js → p-9ef1c919.js} +2 -2
- package/dist/mint-components/{p-3d6d95f0.entry.js → p-aa4697c9.entry.js} +1 -1
- package/dist/mint-components/p-df76f28c.system.js +1 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-faef41b7.js +0 -1
- package/dist/mint-components/p-7a974e40.system.js +0 -1
- package/dist/mint-components/p-b80a5030.system.js +0 -1
- package/dist/mint-components/p-ee284980.system.entry.js +0 -1
- package/dist/mint-components/p-f5e1e208.js +0 -48
|
@@ -6,7 +6,7 @@ const global = require('./global-02e50f09.js');
|
|
|
6
6
|
const index_module = require('./index.module-df530553.js');
|
|
7
7
|
const utils = require('./utils-6847bc06.js');
|
|
8
8
|
const JSS = require('./JSS-8503a151.js');
|
|
9
|
-
const copyTextView = require('./copy-text-view-
|
|
9
|
+
const copyTextView = require('./copy-text-view-79484ca2.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const mixins = require('./mixins-fe9d4112.js');
|
|
12
12
|
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
@@ -498,7 +498,12 @@ function useShareButton(props) {
|
|
|
498
498
|
GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
return {
|
|
501
|
+
return {
|
|
502
|
+
...props,
|
|
503
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
504
|
+
onClick,
|
|
505
|
+
hide,
|
|
506
|
+
};
|
|
502
507
|
}
|
|
503
508
|
|
|
504
509
|
const debug = stencilHooks_module.browser("sq:useBigStat");
|
|
@@ -90,20 +90,20 @@ function useReferralCodes(props) {
|
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
stencilHooks_module.useEffect(() => {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
94
94
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
95
95
|
const data = referralData.data[0];
|
|
96
96
|
setReferralCodesContext({
|
|
97
97
|
referralCode: data.code,
|
|
98
|
-
shareLink: (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b[0]) === null ||
|
|
98
|
+
shareLink: (_d = (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.direct,
|
|
99
99
|
email: {
|
|
100
|
-
messageLink: (
|
|
100
|
+
messageLink: (_g = (_f = (_e = data.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.email,
|
|
101
101
|
},
|
|
102
102
|
fbMessenger: {
|
|
103
|
-
messageLink: (
|
|
104
|
-
shareLink: (
|
|
103
|
+
messageLink: (_k = (_j = (_h = data.shareLinkCodes) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.fbMessenger,
|
|
104
|
+
shareLink: (_o = (_m = (_l = data.shareLinkCodes) === null || _l === void 0 ? void 0 : _l.data) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.fbMessenger,
|
|
105
105
|
},
|
|
106
|
-
whatsApp: { messageLink: (
|
|
106
|
+
whatsApp: { messageLink: (_r = (_q = (_p = data.shareLinkCodes) === null || _p === void 0 ? void 0 : _p.data) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.whatsApp },
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
}, [referralData]);
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-df530553.js');
|
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const copyTextView = require('./copy-text-view-
|
|
12
|
+
const copyTextView = require('./copy-text-view-79484ca2.js');
|
|
13
13
|
const cjs = require('./cjs-1066ec21.js');
|
|
14
14
|
require('./mixins-fe9d4112.js');
|
|
15
15
|
const reRender = require('./re-render-1976e05e.js');
|
|
@@ -20,7 +20,7 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
20
20
|
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
21
21
|
const utilities = require('./utilities-cec9dd36.js');
|
|
22
22
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
23
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-f6656672.js');
|
|
24
24
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
|
7
7
|
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
|
-
const copyTextView = require('./copy-text-view-
|
|
10
|
+
const copyTextView = require('./copy-text-view-79484ca2.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
|
|
@@ -62,7 +62,7 @@ const Pagination = class {
|
|
|
62
62
|
: usePagination();
|
|
63
63
|
console.log("pagination", { hookProps });
|
|
64
64
|
const props = {
|
|
65
|
-
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
65
|
+
currentPage: ((_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage) + 1,
|
|
66
66
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
67
67
|
onNext: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) + 1); },
|
|
68
68
|
onPrev: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) - 1); },
|
|
@@ -8,7 +8,7 @@ require('./global-02e50f09.js');
|
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
require('./utils-6847bc06.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
|
-
const copyTextView = require('./copy-text-view-
|
|
11
|
+
const copyTextView = require('./copy-text-view-79484ca2.js');
|
|
12
12
|
require('./cjs-1066ec21.js');
|
|
13
13
|
require('./mixins-fe9d4112.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-a3f48e15.js');
|
|
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-fde54e35.js');
|
|
|
29
29
|
require('./utilities-cec9dd36.js');
|
|
30
30
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-34771d2c.js');
|
|
31
31
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-c8f91506.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-f6656672.js');
|
|
33
33
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
34
34
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
|
|
35
35
|
|
|
@@ -25,7 +25,7 @@ export class Pagination {
|
|
|
25
25
|
: usePagination();
|
|
26
26
|
console.log("pagination", { hookProps });
|
|
27
27
|
const props = {
|
|
28
|
-
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
28
|
+
currentPage: ((_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage) + 1,
|
|
29
29
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
30
30
|
onNext: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) + 1); },
|
|
31
31
|
onPrev: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) - 1); },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEngagementMedium, usePaginatedQuery, useParentState, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { gql } from "graphql-request";
|
|
3
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { gql } from "graphql-request";
|
|
4
4
|
const GET_REFERRAL_CODES = gql `
|
|
5
5
|
query getCodes(
|
|
6
6
|
$limit: Int!
|
|
@@ -85,20 +85,20 @@ export function useReferralCodes(props) {
|
|
|
85
85
|
},
|
|
86
86
|
});
|
|
87
87
|
useEffect(() => {
|
|
88
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
88
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
89
89
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
90
90
|
const data = referralData.data[0];
|
|
91
91
|
setReferralCodesContext({
|
|
92
92
|
referralCode: data.code,
|
|
93
|
-
shareLink: (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b[0]) === null ||
|
|
93
|
+
shareLink: (_d = (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.direct,
|
|
94
94
|
email: {
|
|
95
|
-
messageLink: (
|
|
95
|
+
messageLink: (_g = (_f = (_e = data.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.email,
|
|
96
96
|
},
|
|
97
97
|
fbMessenger: {
|
|
98
|
-
messageLink: (
|
|
99
|
-
shareLink: (
|
|
98
|
+
messageLink: (_k = (_j = (_h = data.shareLinkCodes) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.fbMessenger,
|
|
99
|
+
shareLink: (_o = (_m = (_l = data.shareLinkCodes) === null || _l === void 0 ? void 0 : _l.data) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.fbMessenger,
|
|
100
100
|
},
|
|
101
|
-
whatsApp: { messageLink: (
|
|
101
|
+
whatsApp: { messageLink: (_r = (_q = (_p = data.shareLinkCodes) === null || _p === void 0 ? void 0 : _p.data) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.whatsApp },
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
}, [referralData]);
|
|
@@ -89,5 +89,10 @@ export function useShareButton(props) {
|
|
|
89
89
|
GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
return {
|
|
92
|
+
return {
|
|
93
|
+
...props,
|
|
94
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
95
|
+
onClick,
|
|
96
|
+
hide,
|
|
97
|
+
};
|
|
93
98
|
}
|
|
@@ -4,7 +4,7 @@ import { i as intl } from './global-b89b6edc.js';
|
|
|
4
4
|
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-f122af7b.js';
|
|
5
5
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
7
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_USED, C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_USED, C as CopyTextView } from './copy-text-view-fef437c3.js';
|
|
8
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
10
10
|
import { u as useChildElements } from './useChildElements-37daf533.js';
|
|
@@ -496,7 +496,12 @@ function useShareButton(props) {
|
|
|
496
496
|
GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
return {
|
|
499
|
+
return {
|
|
500
|
+
...props,
|
|
501
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
502
|
+
onClick,
|
|
503
|
+
hide,
|
|
504
|
+
};
|
|
500
505
|
}
|
|
501
506
|
|
|
502
507
|
const debug = browser("sq:useBigStat");
|
|
@@ -88,20 +88,20 @@ function useReferralCodes(props) {
|
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
90
|
useEffect(() => {
|
|
91
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
91
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
92
92
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
93
93
|
const data = referralData.data[0];
|
|
94
94
|
setReferralCodesContext({
|
|
95
95
|
referralCode: data.code,
|
|
96
|
-
shareLink: (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b[0]) === null ||
|
|
96
|
+
shareLink: (_d = (_c = (_b = data.shareLinkCodes) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.direct,
|
|
97
97
|
email: {
|
|
98
|
-
messageLink: (
|
|
98
|
+
messageLink: (_g = (_f = (_e = data.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.email,
|
|
99
99
|
},
|
|
100
100
|
fbMessenger: {
|
|
101
|
-
messageLink: (
|
|
102
|
-
shareLink: (
|
|
101
|
+
messageLink: (_k = (_j = (_h = data.shareLinkCodes) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.fbMessenger,
|
|
102
|
+
shareLink: (_o = (_m = (_l = data.shareLinkCodes) === null || _l === void 0 ? void 0 : _l.data) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.fbMessenger,
|
|
103
103
|
},
|
|
104
|
-
whatsApp: { messageLink: (
|
|
104
|
+
whatsApp: { messageLink: (_r = (_q = (_p = data.shareLinkCodes) === null || _p === void 0 ? void 0 : _p.data) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.whatsApp },
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}, [referralData]);
|
|
@@ -5,7 +5,7 @@ import { i as isDemo, _, d as dist, Q, H, $ as $e, y as yn, B, L, g as gn, e as
|
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
8
|
+
import { C as CopyTextView } from './copy-text-view-fef437c3.js';
|
|
9
9
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
10
10
|
import './mixins-f60a614c.js';
|
|
11
11
|
import { a as useRequestRerender } from './re-render-c64289f3.js';
|
|
@@ -16,7 +16,7 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
|
16
16
|
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-53c71782.js';
|
|
17
17
|
import { i as isEmpty } from './utilities-18d10876.js';
|
|
18
18
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
19
|
-
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
19
|
+
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-58f39af3.js';
|
|
20
20
|
import './sqm-portal-container-view-6c582684.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
@@ -3,7 +3,7 @@ import { n as h$1, k as useState } from './stencil-hooks.module-ac12ca1c.js';
|
|
|
3
3
|
import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-f122af7b.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
6
|
-
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_USED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-
|
|
6
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_USED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-fef437c3.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
|
|
@@ -58,7 +58,7 @@ const Pagination = class {
|
|
|
58
58
|
: usePagination();
|
|
59
59
|
console.log("pagination", { hookProps });
|
|
60
60
|
const props = {
|
|
61
|
-
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
61
|
+
currentPage: ((_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage) + 1,
|
|
62
62
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
63
63
|
onNext: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) + 1); },
|
|
64
64
|
onPrev: () => { var _a, _b; return (_a = hookProps.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.currentPage) - 1); },
|
|
@@ -4,7 +4,7 @@ import './global-b89b6edc.js';
|
|
|
4
4
|
import { e as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-f122af7b.js';
|
|
5
5
|
import './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { C as CopyTextView } from './copy-text-view-fef437c3.js';
|
|
8
8
|
import './cjs-bdfb4486.js';
|
|
9
9
|
import './mixins-f60a614c.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-bf154727.js';
|
|
@@ -25,7 +25,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-d72dd5ac.js';
|
|
|
25
25
|
import './utilities-18d10876.js';
|
|
26
26
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f1454d43.js';
|
|
27
27
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-3739f523.js';
|
|
28
|
-
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-
|
|
28
|
+
import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-58f39af3.js';
|
|
29
29
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
30
30
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-09cc28d6.js';
|
|
31
31
|
|