@saasquatch/mint-components 1.11.1-34 → 1.11.1-36
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-c518d202.js → ShadowViewAddon-99091de6.js} +1 -1
- package/dist/cjs/{copy-text-view-be6c1c9f.js → copy-text-view-460654ac.js} +19 -14
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +20 -15
- package/dist/esm/{ShadowViewAddon-d0818a3b.js → ShadowViewAddon-aac87ae0.js} +1 -1
- package/dist/esm/{copy-text-view-5ba60181.js → copy-text-view-1d7c8f2a.js} +20 -15
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/{ShadowViewAddon-d0818a3b.js → ShadowViewAddon-aac87ae0.js} +1 -1
- package/dist/esm-es5/copy-text-view-1d7c8f2a.js +1 -0
- 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-296f32c8.entry.js → p-3ca30ac1.entry.js} +1 -1
- package/dist/mint-components/{p-bf0f0ae1.system.entry.js → p-4ed7e559.system.entry.js} +1 -1
- package/dist/mint-components/p-5a83aa32.js +56 -0
- package/dist/mint-components/{p-5c567c37.system.entry.js → p-652790dc.system.entry.js} +1 -1
- package/dist/mint-components/p-9ed09b3a.system.js +1 -1
- package/dist/mint-components/{p-73d7428b.js → p-9fd6b4a2.js} +1 -1
- package/dist/mint-components/{p-318e365b.entry.js → p-a7cb7282.entry.js} +1 -1
- package/dist/mint-components/{p-ea0c9ea3.system.entry.js → p-b057e502.system.entry.js} +1 -1
- package/dist/mint-components/{p-8c05df1c.system.js → p-b3f771d9.system.js} +1 -1
- package/dist/mint-components/{p-33ff6f3e.entry.js → p-c2274979.entry.js} +1 -1
- package/dist/mint-components/p-d55dcd10.system.js +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/copy-text-view-5ba60181.js +0 -1
- package/dist/mint-components/p-bb9113ca.system.js +0 -1
- package/dist/mint-components/p-c21483a4.js +0 -59
|
@@ -6,7 +6,7 @@ const global = require('./global-e067aa06.js');
|
|
|
6
6
|
const index_module = require('./index.module-224d7b8d.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-460654ac.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const mixins = require('./mixins-fe9d4112.js');
|
|
12
12
|
const useChildElements = require('./useChildElements-176ac928.js');
|
|
@@ -18,16 +18,13 @@ const GET_REFERRAL_CODES = index_module.dist.gql `
|
|
|
18
18
|
referralCodeList(
|
|
19
19
|
limit: $limit
|
|
20
20
|
offset: $offset
|
|
21
|
-
filter: {
|
|
22
|
-
fuelTank_eq: true
|
|
23
|
-
programId_eq: $programId
|
|
24
|
-
dateLastUsedInReferral_exists: false
|
|
25
|
-
}
|
|
21
|
+
filter: { fuelTank_eq: true, programId_eq: $programId }
|
|
26
22
|
) {
|
|
27
23
|
data {
|
|
28
24
|
code
|
|
29
25
|
dateUsed
|
|
30
26
|
dateCopied
|
|
27
|
+
singleUse
|
|
31
28
|
shareLinkCodes(limit: $limit) {
|
|
32
29
|
data {
|
|
33
30
|
linkCode
|
|
@@ -82,6 +79,14 @@ function useReferralCodes(props) {
|
|
|
82
79
|
limit: 1,
|
|
83
80
|
offset: 0,
|
|
84
81
|
}, { engagementMedium, programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
82
|
+
const filteredReferralData = stencilHooks_module.useMemo(() => { var _a; return (_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.filter((referralCode) => {
|
|
83
|
+
if ((referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse) && !(referralCode === null || referralCode === void 0 ? void 0 : referralCode.dateUsed))
|
|
84
|
+
return true;
|
|
85
|
+
if (!(referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse))
|
|
86
|
+
return true;
|
|
87
|
+
return false;
|
|
88
|
+
}); }, [referralData]);
|
|
89
|
+
console.log({ props, referralData, filteredReferralData });
|
|
85
90
|
const [paginationContext, setPaginationContext] = index_module.Cn({
|
|
86
91
|
namespace: REFERRAL_CODES_PAGINATION_CONTEXT,
|
|
87
92
|
initialValue: { states, callbacks },
|
|
@@ -106,27 +111,27 @@ function useReferralCodes(props) {
|
|
|
106
111
|
},
|
|
107
112
|
});
|
|
108
113
|
stencilHooks_module.useEffect(() => {
|
|
109
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
110
|
-
if (
|
|
111
|
-
const data =
|
|
114
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
115
|
+
if (filteredReferralData === null || filteredReferralData === void 0 ? void 0 : filteredReferralData.length) {
|
|
116
|
+
const data = filteredReferralData[0];
|
|
112
117
|
setReferralCodesContext({
|
|
113
118
|
refresh,
|
|
114
119
|
referralCode: data.code,
|
|
115
120
|
isCopied: !!data.dateCopied,
|
|
116
121
|
isUsed: !!data.dateUsed,
|
|
117
|
-
shareLink: (
|
|
122
|
+
shareLink: (_c = (_b = (_a = data.shareLinkCodes) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.direct,
|
|
118
123
|
email: {
|
|
119
|
-
messageLink: (
|
|
124
|
+
messageLink: (_f = (_e = (_d = data.shareLinkCodes) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.email,
|
|
120
125
|
},
|
|
121
126
|
fbmessenger: {
|
|
122
|
-
messageLink: (
|
|
123
|
-
shareLink: (
|
|
127
|
+
messageLink: (_j = (_h = (_g = data.shareLinkCodes) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.fbMessenger,
|
|
128
|
+
shareLink: (_m = (_l = (_k = data.shareLinkCodes) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.fbMessenger,
|
|
124
129
|
},
|
|
125
|
-
whatsapp: { messageLink: (
|
|
130
|
+
whatsapp: { messageLink: (_q = (_p = (_o = data.shareLinkCodes) === null || _o === void 0 ? void 0 : _o.data) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.whatsApp },
|
|
126
131
|
});
|
|
127
132
|
setPaginationContext({ states, callbacks });
|
|
128
133
|
}
|
|
129
|
-
}, [
|
|
134
|
+
}, [filteredReferralData]);
|
|
130
135
|
console.log({ referralData, states });
|
|
131
136
|
return {
|
|
132
137
|
states: {
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-224d7b8d.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-460654ac.js');
|
|
13
13
|
const cjs = require('./cjs-1066ec21.js');
|
|
14
14
|
require('./mixins-fe9d4112.js');
|
|
15
15
|
const reRender = require('./re-render-cd2f8774.js');
|
|
@@ -20,7 +20,7 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
20
20
|
const useRegistrationFormState = require('./useRegistrationFormState-49dd9295.js');
|
|
21
21
|
const utilities = require('./utilities-719c980a.js');
|
|
22
22
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
23
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-99091de6.js');
|
|
24
24
|
require('./sqm-portal-container-view-976bf0f5.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-8f69ed33.js');
|
|
|
7
7
|
const index_module = require('./index.module-224d7b8d.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-460654ac.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
|
|
@@ -8,7 +8,7 @@ require('./global-e067aa06.js');
|
|
|
8
8
|
const index_module = require('./index.module-224d7b8d.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-460654ac.js');
|
|
12
12
|
require('./cjs-1066ec21.js');
|
|
13
13
|
require('./mixins-fe9d4112.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-bb2fcd95.js');
|
|
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-7c70d7f9.js');
|
|
|
29
29
|
require('./utilities-719c980a.js');
|
|
30
30
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-1b85b8cf.js');
|
|
31
31
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-cc3c87c3.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-99091de6.js');
|
|
33
33
|
const sqmPortalContainerView = require('./sqm-portal-container-view-976bf0f5.js');
|
|
34
34
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-2f4f426b.js');
|
|
35
35
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEngagementMedium, usePaginatedQuery, useParentState, useProgramId, useRefreshDispatcher, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import { useEffect } from "@saasquatch/universal-hooks";
|
|
2
|
+
import { useEffect, useMemo } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
const GET_REFERRAL_CODES = gql `
|
|
5
5
|
query getCodes(
|
|
@@ -13,16 +13,13 @@ const GET_REFERRAL_CODES = gql `
|
|
|
13
13
|
referralCodeList(
|
|
14
14
|
limit: $limit
|
|
15
15
|
offset: $offset
|
|
16
|
-
filter: {
|
|
17
|
-
fuelTank_eq: true
|
|
18
|
-
programId_eq: $programId
|
|
19
|
-
dateLastUsedInReferral_exists: false
|
|
20
|
-
}
|
|
16
|
+
filter: { fuelTank_eq: true, programId_eq: $programId }
|
|
21
17
|
) {
|
|
22
18
|
data {
|
|
23
19
|
code
|
|
24
20
|
dateUsed
|
|
25
21
|
dateCopied
|
|
22
|
+
singleUse
|
|
26
23
|
shareLinkCodes(limit: $limit) {
|
|
27
24
|
data {
|
|
28
25
|
linkCode
|
|
@@ -77,6 +74,14 @@ export function useReferralCodes(props) {
|
|
|
77
74
|
limit: 1,
|
|
78
75
|
offset: 0,
|
|
79
76
|
}, { engagementMedium, programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
77
|
+
const filteredReferralData = useMemo(() => { var _a; return (_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.filter((referralCode) => {
|
|
78
|
+
if ((referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse) && !(referralCode === null || referralCode === void 0 ? void 0 : referralCode.dateUsed))
|
|
79
|
+
return true;
|
|
80
|
+
if (!(referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse))
|
|
81
|
+
return true;
|
|
82
|
+
return false;
|
|
83
|
+
}); }, [referralData]);
|
|
84
|
+
console.log({ props, referralData, filteredReferralData });
|
|
80
85
|
const [paginationContext, setPaginationContext] = useParentState({
|
|
81
86
|
namespace: REFERRAL_CODES_PAGINATION_CONTEXT,
|
|
82
87
|
initialValue: { states, callbacks },
|
|
@@ -101,27 +106,27 @@ export function useReferralCodes(props) {
|
|
|
101
106
|
},
|
|
102
107
|
});
|
|
103
108
|
useEffect(() => {
|
|
104
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
105
|
-
if (
|
|
106
|
-
const data =
|
|
109
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
110
|
+
if (filteredReferralData === null || filteredReferralData === void 0 ? void 0 : filteredReferralData.length) {
|
|
111
|
+
const data = filteredReferralData[0];
|
|
107
112
|
setReferralCodesContext({
|
|
108
113
|
refresh,
|
|
109
114
|
referralCode: data.code,
|
|
110
115
|
isCopied: !!data.dateCopied,
|
|
111
116
|
isUsed: !!data.dateUsed,
|
|
112
|
-
shareLink: (
|
|
117
|
+
shareLink: (_c = (_b = (_a = data.shareLinkCodes) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.direct,
|
|
113
118
|
email: {
|
|
114
|
-
messageLink: (
|
|
119
|
+
messageLink: (_f = (_e = (_d = data.shareLinkCodes) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.email,
|
|
115
120
|
},
|
|
116
121
|
fbmessenger: {
|
|
117
|
-
messageLink: (
|
|
118
|
-
shareLink: (
|
|
122
|
+
messageLink: (_j = (_h = (_g = data.shareLinkCodes) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.fbMessenger,
|
|
123
|
+
shareLink: (_m = (_l = (_k = data.shareLinkCodes) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.fbMessenger,
|
|
119
124
|
},
|
|
120
|
-
whatsapp: { messageLink: (
|
|
125
|
+
whatsapp: { messageLink: (_q = (_p = (_o = data.shareLinkCodes) === null || _o === void 0 ? void 0 : _o.data) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.whatsApp },
|
|
121
126
|
});
|
|
122
127
|
setPaginationContext({ states, callbacks });
|
|
123
128
|
}
|
|
124
|
-
}, [
|
|
129
|
+
}, [filteredReferralData]);
|
|
125
130
|
console.log({ referralData, states });
|
|
126
131
|
return {
|
|
127
132
|
states: {
|
|
@@ -4,7 +4,7 @@ import { i as intl } from './global-701bd5b0.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-5eb0926c.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_COPIED, C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-1d7c8f2a.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-ebcfbc19.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-014ddfa3.js';
|
|
2
|
-
import { f as useEffect } from './stencil-hooks.module-576d7f01.js';
|
|
2
|
+
import { u as useMemo, f as useEffect } from './stencil-hooks.module-576d7f01.js';
|
|
3
3
|
import { d as dist, Q, H, z as ze, k as kn, C as Cn, B } from './index.module-5eb0926c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { H as HostBlock } from './mixins-f60a614c.js';
|
|
@@ -16,16 +16,13 @@ const GET_REFERRAL_CODES = dist.gql `
|
|
|
16
16
|
referralCodeList(
|
|
17
17
|
limit: $limit
|
|
18
18
|
offset: $offset
|
|
19
|
-
filter: {
|
|
20
|
-
fuelTank_eq: true
|
|
21
|
-
programId_eq: $programId
|
|
22
|
-
dateLastUsedInReferral_exists: false
|
|
23
|
-
}
|
|
19
|
+
filter: { fuelTank_eq: true, programId_eq: $programId }
|
|
24
20
|
) {
|
|
25
21
|
data {
|
|
26
22
|
code
|
|
27
23
|
dateUsed
|
|
28
24
|
dateCopied
|
|
25
|
+
singleUse
|
|
29
26
|
shareLinkCodes(limit: $limit) {
|
|
30
27
|
data {
|
|
31
28
|
linkCode
|
|
@@ -80,6 +77,14 @@ function useReferralCodes(props) {
|
|
|
80
77
|
limit: 1,
|
|
81
78
|
offset: 0,
|
|
82
79
|
}, { engagementMedium, programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
80
|
+
const filteredReferralData = useMemo(() => { var _a; return (_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.filter((referralCode) => {
|
|
81
|
+
if ((referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse) && !(referralCode === null || referralCode === void 0 ? void 0 : referralCode.dateUsed))
|
|
82
|
+
return true;
|
|
83
|
+
if (!(referralCode === null || referralCode === void 0 ? void 0 : referralCode.singleUse))
|
|
84
|
+
return true;
|
|
85
|
+
return false;
|
|
86
|
+
}); }, [referralData]);
|
|
87
|
+
console.log({ props, referralData, filteredReferralData });
|
|
83
88
|
const [paginationContext, setPaginationContext] = Cn({
|
|
84
89
|
namespace: REFERRAL_CODES_PAGINATION_CONTEXT,
|
|
85
90
|
initialValue: { states, callbacks },
|
|
@@ -104,27 +109,27 @@ function useReferralCodes(props) {
|
|
|
104
109
|
},
|
|
105
110
|
});
|
|
106
111
|
useEffect(() => {
|
|
107
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
108
|
-
if (
|
|
109
|
-
const data =
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
113
|
+
if (filteredReferralData === null || filteredReferralData === void 0 ? void 0 : filteredReferralData.length) {
|
|
114
|
+
const data = filteredReferralData[0];
|
|
110
115
|
setReferralCodesContext({
|
|
111
116
|
refresh,
|
|
112
117
|
referralCode: data.code,
|
|
113
118
|
isCopied: !!data.dateCopied,
|
|
114
119
|
isUsed: !!data.dateUsed,
|
|
115
|
-
shareLink: (
|
|
120
|
+
shareLink: (_c = (_b = (_a = data.shareLinkCodes) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.direct,
|
|
116
121
|
email: {
|
|
117
|
-
messageLink: (
|
|
122
|
+
messageLink: (_f = (_e = (_d = data.shareLinkCodes) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.email,
|
|
118
123
|
},
|
|
119
124
|
fbmessenger: {
|
|
120
|
-
messageLink: (
|
|
121
|
-
shareLink: (
|
|
125
|
+
messageLink: (_j = (_h = (_g = data.shareLinkCodes) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.fbMessenger,
|
|
126
|
+
shareLink: (_m = (_l = (_k = data.shareLinkCodes) === null || _k === void 0 ? void 0 : _k.data) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.fbMessenger,
|
|
122
127
|
},
|
|
123
|
-
whatsapp: { messageLink: (
|
|
128
|
+
whatsapp: { messageLink: (_q = (_p = (_o = data.shareLinkCodes) === null || _o === void 0 ? void 0 : _o.data) === null || _p === void 0 ? void 0 : _p[0]) === null || _q === void 0 ? void 0 : _q.whatsApp },
|
|
124
129
|
});
|
|
125
130
|
setPaginationContext({ states, callbacks });
|
|
126
131
|
}
|
|
127
|
-
}, [
|
|
132
|
+
}, [filteredReferralData]);
|
|
128
133
|
console.log({ referralData, states });
|
|
129
134
|
return {
|
|
130
135
|
states: {
|
|
@@ -5,7 +5,7 @@ import { i as isDemo, _, d as dist, Q, H, $ as $e, y as yn, B, L, g as gn, f 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-1d7c8f2a.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-b31d83d7.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-faea9402.js';
|
|
17
17
|
import { i as isEmpty } from './utilities-292b61b9.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-aac87ae0.js';
|
|
20
20
|
import './sqm-portal-container-view-83df005d.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
@@ -3,7 +3,7 @@ import { n as h$1, k as useState } from './stencil-hooks.module-576d7f01.js';
|
|
|
3
3
|
import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-5eb0926c.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_COPIED, 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_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-1d7c8f2a.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import './global-701bd5b0.js';
|
|
|
4
4
|
import { f as $n, S as Sn, c as setUserIdentity, d as dist, X as Xe, p as setProgramId } from './index.module-5eb0926c.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-1d7c8f2a.js';
|
|
8
8
|
import './cjs-bdfb4486.js';
|
|
9
9
|
import './mixins-f60a614c.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-706f5b56.js';
|
|
@@ -25,7 +25,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-847526a2.js';
|
|
|
25
25
|
import './utilities-292b61b9.js';
|
|
26
26
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-865655da.js';
|
|
27
27
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6c60df25.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-aac87ae0.js';
|
|
29
29
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-83df005d.js';
|
|
30
30
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7d1aa71f.js';
|
|
31
31
|
|