aesirx-analytics 2.2.5 → 2.2.6
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/README.md +38 -0
- package/dist/{Consent-ZWVGMKB7.js → Consent-U7ESRVW5.js} +124 -21
- package/dist/{ConsentCustom-P3FMYMS3.js → ConsentCustom-CSPWI25K.js} +192 -86
- package/dist/analytics.js +118 -115
- package/dist/{chunk-PHG7RB3K.js → chunk-7GRKFZZL.js} +125 -298
- package/dist/{chunk-JH54YDTD.js → chunk-N36VEWSG.js} +262 -1
- package/dist/index.js +63 -24
- package/package.json +1 -1
@@ -1,208 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
AnalyticsContext,
|
3
|
+
getConsents,
|
3
4
|
useTranslation
|
4
|
-
} from "./chunk-
|
5
|
-
|
6
|
-
// src/utils/consent.ts
|
7
|
-
import { stringMessage } from "@concordium/react-components";
|
8
|
-
import axios from "axios";
|
9
|
-
var agreeConsents = async (endpoint, level, uuid, consent, wallet, signature, web3id, jwt, network = "concordium") => {
|
10
|
-
const url = `${endpoint}/consent/v1/level${level}/${uuid}`;
|
11
|
-
const urlV2 = `${endpoint}/consent/v2/level${level}/${uuid}`;
|
12
|
-
try {
|
13
|
-
switch (level) {
|
14
|
-
case 1:
|
15
|
-
await axios.post(`${url}/${consent}`);
|
16
|
-
break;
|
17
|
-
case 2:
|
18
|
-
await axios.post(
|
19
|
-
`${url}`,
|
20
|
-
{ consent: [1, 2] },
|
21
|
-
{
|
22
|
-
headers: {
|
23
|
-
"Content-Type": "application/json",
|
24
|
-
Authorization: "Bearer " + jwt
|
25
|
-
}
|
26
|
-
}
|
27
|
-
);
|
28
|
-
break;
|
29
|
-
case 3:
|
30
|
-
await axios.post(`${url}/${network}/${wallet}`, {
|
31
|
-
signature,
|
32
|
-
consent
|
33
|
-
});
|
34
|
-
break;
|
35
|
-
case 4:
|
36
|
-
await axios.post(
|
37
|
-
`${urlV2}/${network}/${wallet}`,
|
38
|
-
{
|
39
|
-
signature,
|
40
|
-
consent
|
41
|
-
},
|
42
|
-
{
|
43
|
-
headers: {
|
44
|
-
"Content-Type": "application/json",
|
45
|
-
Authorization: "Bearer " + jwt
|
46
|
-
}
|
47
|
-
}
|
48
|
-
);
|
49
|
-
break;
|
50
|
-
default:
|
51
|
-
break;
|
52
|
-
}
|
53
|
-
} catch (error) {
|
54
|
-
throw error;
|
55
|
-
}
|
56
|
-
};
|
57
|
-
var getConsents = async (endpoint, uuid) => {
|
58
|
-
try {
|
59
|
-
const response = (await axios.get(`${endpoint}/visitor/v1/${uuid}`))?.data?.visitor_consents;
|
60
|
-
return response;
|
61
|
-
} catch (error) {
|
62
|
-
throw error;
|
63
|
-
}
|
64
|
-
};
|
65
|
-
var getSignature = async (endpoint, address, provider, text, network = "concordium") => {
|
66
|
-
try {
|
67
|
-
const nonce = await getNonce(endpoint, address, text, network);
|
68
|
-
return getSignedNonce(nonce, address, provider);
|
69
|
-
} catch (error) {
|
70
|
-
throw error;
|
71
|
-
}
|
72
|
-
};
|
73
|
-
var getNonce = async (endpoint, address, text, network = "concordium") => {
|
74
|
-
try {
|
75
|
-
const nonce = (await axios.post(`${endpoint}/wallet/v1/${network}/${address}/nonce`, { text }))?.data.nonce;
|
76
|
-
return nonce;
|
77
|
-
} catch (error) {
|
78
|
-
throw error;
|
79
|
-
}
|
80
|
-
};
|
81
|
-
var getSignedNonce = async (nonce, address, provider) => {
|
82
|
-
const signature = await provider.signMessage(address, stringMessage(`${nonce}`));
|
83
|
-
return Buffer.from(
|
84
|
-
typeof signature === "object" && signature !== null ? JSON.stringify(signature) : signature,
|
85
|
-
"utf-8"
|
86
|
-
).toString("base64");
|
87
|
-
};
|
88
|
-
var revokeConsents = async (endpoint, level, uuid, wallet, signature, web3id, jwt, network = "concordium") => {
|
89
|
-
const url = `${endpoint}/consent/v1/level${level}/revoke/${uuid}`;
|
90
|
-
const urlV2 = `${endpoint}/consent/v2/level${level}/revoke/${uuid}`;
|
91
|
-
try {
|
92
|
-
switch (level) {
|
93
|
-
case "2":
|
94
|
-
await axios.put(`${url}`, null, {
|
95
|
-
headers: {
|
96
|
-
"Content-Type": "application/json",
|
97
|
-
Authorization: "Bearer " + jwt
|
98
|
-
}
|
99
|
-
});
|
100
|
-
break;
|
101
|
-
case "3":
|
102
|
-
await axios.put(`${url}/${network}/${wallet}`, {
|
103
|
-
signature
|
104
|
-
});
|
105
|
-
break;
|
106
|
-
case "4":
|
107
|
-
await axios.put(
|
108
|
-
`${urlV2}/${network}/${wallet}`,
|
109
|
-
{
|
110
|
-
signature
|
111
|
-
},
|
112
|
-
{
|
113
|
-
headers: {
|
114
|
-
"Content-Type": "application/json",
|
115
|
-
Authorization: "Bearer " + jwt
|
116
|
-
}
|
117
|
-
}
|
118
|
-
);
|
119
|
-
break;
|
120
|
-
default:
|
121
|
-
break;
|
122
|
-
}
|
123
|
-
} catch (error) {
|
124
|
-
throw error;
|
125
|
-
}
|
126
|
-
};
|
127
|
-
var getMember = async (endpoint, accessToken) => {
|
128
|
-
try {
|
129
|
-
const member = await axios.get(
|
130
|
-
`${endpoint}/index.php?webserviceClient=site&webserviceVersion=1.0.0&option=persona&api=hal&task=getTokenByUser`,
|
131
|
-
{
|
132
|
-
headers: {
|
133
|
-
"Content-Type": "application/json",
|
134
|
-
Authorization: "Bearer " + accessToken
|
135
|
-
}
|
136
|
-
}
|
137
|
-
);
|
138
|
-
if (member?.data?.result?.member_id) {
|
139
|
-
const data = await axios.get(
|
140
|
-
`${endpoint}/index.php?webserviceClient=site&webserviceVersion=1.0.0&option=member&api=hal&id=${member?.data?.result?.member_id}`,
|
141
|
-
{
|
142
|
-
headers: {
|
143
|
-
"Content-Type": "application/json",
|
144
|
-
Authorization: "Bearer " + accessToken
|
145
|
-
}
|
146
|
-
}
|
147
|
-
);
|
148
|
-
return data?.data;
|
149
|
-
}
|
150
|
-
} catch (error) {
|
151
|
-
console.log("getMember", error);
|
152
|
-
throw error;
|
153
|
-
}
|
154
|
-
};
|
155
|
-
var getWalletNonce = async (endpoint, wallet, publicAddress) => {
|
156
|
-
try {
|
157
|
-
const reqAuthFormData = {
|
158
|
-
publicAddress,
|
159
|
-
wallet,
|
160
|
-
text: `Login with nonce: {}`
|
161
|
-
};
|
162
|
-
const config = {
|
163
|
-
method: "post",
|
164
|
-
url: `${endpoint}/index.php?webserviceClient=site&webserviceVersion=1.0.0&option=member&task=getWalletNonce&api=hal`,
|
165
|
-
headers: {
|
166
|
-
"Content-Type": "application/json"
|
167
|
-
},
|
168
|
-
data: reqAuthFormData
|
169
|
-
};
|
170
|
-
const { data } = await axios(config);
|
171
|
-
if (data.result) {
|
172
|
-
return data.result;
|
173
|
-
}
|
174
|
-
throw false;
|
175
|
-
} catch (error) {
|
176
|
-
throw error;
|
177
|
-
}
|
178
|
-
};
|
179
|
-
var verifySignature = async (endpoint, wallet, publicAddress, signature) => {
|
180
|
-
try {
|
181
|
-
const returnParams = new URLSearchParams(window.location.search)?.get("return");
|
182
|
-
const reqAuthFormData = {
|
183
|
-
wallet,
|
184
|
-
publicAddress,
|
185
|
-
signature
|
186
|
-
};
|
187
|
-
const config = {
|
188
|
-
method: "post",
|
189
|
-
url: `${endpoint}/index.php?webserviceClient=site&webserviceVersion=1.0.0&option=member&task=walletLogin&api=hal&return=${returnParams ?? null}`,
|
190
|
-
headers: {
|
191
|
-
"Content-Type": "application/json"
|
192
|
-
},
|
193
|
-
data: reqAuthFormData
|
194
|
-
};
|
195
|
-
const { data } = await axios(config);
|
196
|
-
if (data?.result) {
|
197
|
-
return data?.result;
|
198
|
-
} else {
|
199
|
-
throw false;
|
200
|
-
}
|
201
|
-
} catch (error) {
|
202
|
-
console.log(error);
|
203
|
-
throw error;
|
204
|
-
}
|
205
|
-
};
|
5
|
+
} from "./chunk-N36VEWSG.js";
|
206
6
|
|
207
7
|
// src/utils/Concordium.ts
|
208
8
|
import {
|
@@ -315,7 +115,7 @@ import {
|
|
315
115
|
import { isDesktop } from "react-device-detect";
|
316
116
|
import { useAccount } from "wagmi";
|
317
117
|
import { BlockHash } from "@concordium/web-sdk";
|
318
|
-
var useConsentStatus = (endpoint, props) => {
|
118
|
+
var useConsentStatus = (endpoint, layout, props) => {
|
319
119
|
const [show, setShow] = useState(false);
|
320
120
|
const [showRevoke, setShowRevoke] = useState(false);
|
321
121
|
const [level, setLevel] = useState();
|
@@ -389,7 +189,7 @@ var useConsentStatus = (endpoint, props) => {
|
|
389
189
|
}, [rpc]);
|
390
190
|
useEffect(() => {
|
391
191
|
const initConnector = async () => {
|
392
|
-
if (isDesktop && sessionStorage.getItem("aesirx-analytics-revoke") !== "1" && sessionStorage.getItem("aesirx-analytics-revoke") !== "2" && sessionStorage.getItem("aesirx-analytics-rejected") !== "true") {
|
192
|
+
if (isDesktop && sessionStorage.getItem("aesirx-analytics-revoke") !== "1" && sessionStorage.getItem("aesirx-analytics-revoke") !== "2" && sessionStorage.getItem("aesirx-analytics-rejected") !== "true" && layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
393
193
|
if (window["concordium"]) {
|
394
194
|
const address2 = await window["concordium"]?.requestAccounts() ?? [];
|
395
195
|
if (window["concordium"] && address2?.length) {
|
@@ -426,7 +226,6 @@ var useConsentStatus = (endpoint, props) => {
|
|
426
226
|
setLevel(null);
|
427
227
|
l = 3;
|
428
228
|
let web3ID2 = false;
|
429
|
-
console.log("test", account);
|
430
229
|
if (account && sessionStorage.getItem("aesirx-analytics-consent-type") !== "metamask") {
|
431
230
|
web3ID2 = await getWeb3ID(account, rpc, network?.name);
|
432
231
|
if (web3ID2 === true) {
|
@@ -434,38 +233,50 @@ var useConsentStatus = (endpoint, props) => {
|
|
434
233
|
}
|
435
234
|
}
|
436
235
|
setWeb3ID(web3ID2);
|
437
|
-
|
236
|
+
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
237
|
+
setLevel(l);
|
238
|
+
} else {
|
239
|
+
setLevel(1);
|
240
|
+
}
|
438
241
|
}
|
439
242
|
} else if (connector) {
|
440
|
-
if (
|
441
|
-
l
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
if (l === 4) {
|
447
|
-
setLevel(4);
|
243
|
+
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
244
|
+
if (l < 3) {
|
245
|
+
l = 3;
|
246
|
+
const web3ID2 = false;
|
247
|
+
setWeb3ID(web3ID2);
|
248
|
+
setLevel(l);
|
448
249
|
} else {
|
449
|
-
|
250
|
+
if (l === 4) {
|
251
|
+
setLevel(4);
|
252
|
+
} else {
|
253
|
+
setLevel(3);
|
254
|
+
}
|
450
255
|
}
|
256
|
+
} else {
|
257
|
+
setLevel(1);
|
451
258
|
}
|
452
259
|
} else {
|
453
|
-
setLevel(level ?? 1);
|
260
|
+
setLevel(level ?? layout === "advance-consent-mode" ? 2 : 1);
|
454
261
|
}
|
455
262
|
} catch (error) {
|
456
|
-
setLevel(level ?? 1);
|
263
|
+
setLevel(level ?? layout === "advance-consent-mode" ? 2 : 1);
|
457
264
|
console.error(error);
|
458
265
|
}
|
459
266
|
})();
|
460
|
-
}, [account, address, connector]);
|
267
|
+
}, [account, address, connector, layout]);
|
461
268
|
const handleLevel = useCallback(
|
462
269
|
async (_level) => {
|
463
|
-
|
464
|
-
|
465
|
-
|
270
|
+
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
271
|
+
setLevel(_level);
|
272
|
+
if (_level > 3 && isDesktop && !connection && window["concordium"]) {
|
273
|
+
setActiveConnectorType(BROWSER_WALLET);
|
274
|
+
}
|
275
|
+
} else {
|
276
|
+
setLevel(1);
|
466
277
|
}
|
467
278
|
},
|
468
|
-
[level]
|
279
|
+
[level, layout]
|
469
280
|
);
|
470
281
|
const handleRevoke = (status, level2) => {
|
471
282
|
sessionStorage.setItem("aesirx-analytics-revoke", level2 ? level2 : "0");
|
@@ -9367,16 +9178,19 @@ var css = `:root {
|
|
9367
9178
|
font-weight: 600;
|
9368
9179
|
color: #a5a4b5;
|
9369
9180
|
border: 0;
|
9181
|
+
cursor: pointer;
|
9370
9182
|
}
|
9371
9183
|
.aesirxconsent .toast.custom .consent_info_tab .nav-item button.active {
|
9372
9184
|
color: #132342;
|
9373
9185
|
border-bottom: 2px solid #1ab394;
|
9374
9186
|
}
|
9375
9187
|
.aesirxconsent .toast.custom .about_section {
|
9376
|
-
height: 373px;
|
9377
9188
|
overflow: auto;
|
9378
9189
|
padding: 0 10px;
|
9379
9190
|
}
|
9191
|
+
.aesirxconsent .toast.custom .about_section.fix_height {
|
9192
|
+
height: 373px;
|
9193
|
+
}
|
9380
9194
|
@media (max-width: 991.98px) {
|
9381
9195
|
.aesirxconsent .toast.custom .about_section {
|
9382
9196
|
padding: 0;
|
@@ -9395,16 +9209,16 @@ var css = `:root {
|
|
9395
9209
|
background-color: #222328;
|
9396
9210
|
}
|
9397
9211
|
.aesirxconsent .toast.custom .status-tier.tier-1 {
|
9398
|
-
background-color: #
|
9212
|
+
background-color: #f1c40f;
|
9399
9213
|
}
|
9400
9214
|
.aesirxconsent .toast.custom .status-tier.tier-2 {
|
9401
|
-
background-color: #
|
9215
|
+
background-color: #e67e22;
|
9402
9216
|
}
|
9403
9217
|
.aesirxconsent .toast.custom .status-tier.tier-3 {
|
9404
|
-
background-color: #
|
9218
|
+
background-color: #9b59b6;
|
9405
9219
|
}
|
9406
9220
|
.aesirxconsent .toast.custom .status-tier.tier-4 {
|
9407
|
-
background-color: #
|
9221
|
+
background-color: #c8192e;
|
9408
9222
|
}
|
9409
9223
|
.aesirxconsent .toast-container {
|
9410
9224
|
box-sizing: border-box;
|
@@ -9813,7 +9627,7 @@ var terms = [
|
|
9813
9627
|
logos: [shield_of_privacy_default, concordium_default]
|
9814
9628
|
}
|
9815
9629
|
];
|
9816
|
-
var TermsComponent = ({ children, level, handleLevel, isCustom = false }) => {
|
9630
|
+
var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }) => {
|
9817
9631
|
const { t } = useTranslation();
|
9818
9632
|
const handleReadmore = (status) => {
|
9819
9633
|
setShowReadmore(status);
|
@@ -9839,7 +9653,16 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false }) => {
|
|
9839
9653
|
src: bg_default
|
9840
9654
|
}
|
9841
9655
|
), /* @__PURE__ */ React.createElement("div", { className: "minimize-shield position-relative z-2 py-2" }, /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }), t("txt_shield_of_privacy")))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `status-tier tier-${term.level} rounded-circle` }), /* @__PURE__ */ React.createElement("div", { className: "status-tier-text" }, t(term.tier), " - ", t(term.levelname))))
|
9842
|
-
), /* @__PURE__ */ React.createElement("div", { className: `pb-3 ${isCustom ? "pt-0" : ""} bg-white` }, isCustom ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9656
|
+
), /* @__PURE__ */ React.createElement("div", { className: `pb-3 ${isCustom ? "pt-0" : "p-3"} bg-white` }, isCustom ? /* @__PURE__ */ React.createElement(React.Fragment, null, layout === "simple-web-2" ? /* @__PURE__ */ React.createElement("div", { className: "px-3" }, /* @__PURE__ */ React.createElement(
|
9657
|
+
ConsentLevel,
|
9658
|
+
{
|
9659
|
+
level: 1,
|
9660
|
+
tier: t("txt_tier_1_tier"),
|
9661
|
+
levelname: t("txt_tier_1_levelname"),
|
9662
|
+
term_custom: t("txt_tier_1_term_custom"),
|
9663
|
+
content_custom: t("txt_tier_1_content_custom")
|
9664
|
+
}
|
9665
|
+
)) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9843
9666
|
Tabs,
|
9844
9667
|
{
|
9845
9668
|
id: "consent_info_tab",
|
@@ -9847,7 +9670,7 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false }) => {
|
|
9847
9670
|
onSelect: (k) => setActiveTab(k),
|
9848
9671
|
className: "mb-2 mb-lg-3 w-100 flex-nowrap consent_info_tab"
|
9849
9672
|
},
|
9850
|
-
/* @__PURE__ */ React.createElement(Tab, { eventKey: "consent", title: "Consent", className: "w-
|
9673
|
+
/* @__PURE__ */ React.createElement(Tab, { eventKey: "consent", title: "Consent", className: "w-auto px-3" }, /* @__PURE__ */ React.createElement("p", { className: "mb-2 mb-lg-3" }, t("txt_consent_to_data")), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center flex-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "me-10px" }, t("txt_ethical_compliant")), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center" }, /* @__PURE__ */ React.createElement("div", { className: "item_compliant fw-semibold d-flex align-items-center" }, /* @__PURE__ */ React.createElement("img", { src: check_line_default, width: 24, height: 24 }), "GDPR"), /* @__PURE__ */ React.createElement("div", { className: "item_compliant fw-semibold d-flex align-items-center ms-10px" }, /* @__PURE__ */ React.createElement("img", { src: check_line_default, width: 24, height: 24 }), "CCPA"))), /* @__PURE__ */ React.createElement("div", { className: "fw-semibold mt-2 mt-lg-3 mb-0 text-dark" }, t("txt_your_current_level")), /* @__PURE__ */ React.createElement(
|
9851
9674
|
ConsentLevel,
|
9852
9675
|
{
|
9853
9676
|
level: term.level,
|
@@ -9857,70 +9680,82 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false }) => {
|
|
9857
9680
|
content_custom: t(term.content_custom)
|
9858
9681
|
}
|
9859
9682
|
)),
|
9860
|
-
/* @__PURE__ */ React.createElement(Tab, { eventKey: "detail", title: "Detail", className: "px-3" }, /* @__PURE__ */ React.createElement(
|
9683
|
+
/* @__PURE__ */ React.createElement(Tab, { eventKey: "detail", title: "Detail", className: "px-3" }, /* @__PURE__ */ React.createElement(
|
9861
9684
|
"div",
|
9862
9685
|
{
|
9863
|
-
|
9864
|
-
|
9865
|
-
|
9866
|
-
|
9686
|
+
className: `about_section ${layout !== "simple-consent-mode" && layout !== "simple-web-2" ? "fix_height" : ""}`
|
9687
|
+
},
|
9688
|
+
/* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("img", { src: check_circle_default, width: "14px", height: "15px" })), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, /* @__PURE__ */ React.createElement(
|
9689
|
+
"div",
|
9690
|
+
{
|
9691
|
+
dangerouslySetInnerHTML: {
|
9692
|
+
__html: t("txt_detail_1", {
|
9693
|
+
interpolation: { escapeValue: false }
|
9694
|
+
})
|
9695
|
+
}
|
9867
9696
|
}
|
9868
|
-
|
9869
|
-
|
9870
|
-
|
9871
|
-
|
9872
|
-
|
9873
|
-
|
9874
|
-
|
9875
|
-
|
9697
|
+
))),
|
9698
|
+
/* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("img", { src: check_circle_default, width: "14px", height: "15px" })), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, /* @__PURE__ */ React.createElement(
|
9699
|
+
"div",
|
9700
|
+
{
|
9701
|
+
dangerouslySetInnerHTML: {
|
9702
|
+
__html: t("txt_detail_2", {
|
9703
|
+
interpolation: { escapeValue: false }
|
9704
|
+
})
|
9705
|
+
}
|
9876
9706
|
}
|
9877
|
-
|
9878
|
-
|
9879
|
-
|
9880
|
-
|
9881
|
-
|
9882
|
-
|
9883
|
-
|
9884
|
-
|
9707
|
+
))),
|
9708
|
+
/* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("img", { src: check_circle_default, width: "14px", height: "15px" })), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, /* @__PURE__ */ React.createElement(
|
9709
|
+
"div",
|
9710
|
+
{
|
9711
|
+
dangerouslySetInnerHTML: {
|
9712
|
+
__html: t("txt_detail_3", {
|
9713
|
+
interpolation: { escapeValue: false }
|
9714
|
+
})
|
9715
|
+
}
|
9885
9716
|
}
|
9886
|
-
|
9887
|
-
|
9888
|
-
|
9889
|
-
|
9890
|
-
|
9891
|
-
|
9892
|
-
|
9893
|
-
|
9894
|
-
|
9895
|
-
|
9896
|
-
|
9897
|
-
|
9898
|
-
|
9899
|
-
|
9900
|
-
|
9901
|
-
|
9902
|
-
|
9903
|
-
|
9904
|
-
|
9905
|
-
|
9906
|
-
|
9907
|
-
|
9908
|
-
|
9909
|
-
|
9910
|
-
|
9911
|
-
|
9912
|
-
|
9913
|
-
|
9914
|
-
|
9915
|
-
|
9916
|
-
|
9917
|
-
|
9918
|
-
|
9919
|
-
|
9920
|
-
|
9921
|
-
|
9922
|
-
|
9923
|
-
|
9717
|
+
))),
|
9718
|
+
/* @__PURE__ */ React.createElement("div", { className: "fw-semibold mt-3 mb-2 text-dark" }, t("txt_understanding_your_consent")),
|
9719
|
+
layout !== "simple-consent-mode" && layout !== "advance-consent-mode" ? /* @__PURE__ */ React.createElement("div", { className: "mb-0" }, t("txt_this_website_uses")) : /* @__PURE__ */ React.createElement(React.Fragment, null),
|
9720
|
+
layout === "advance-consent-mode" ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9721
|
+
ConsentLevel,
|
9722
|
+
{
|
9723
|
+
level: 1,
|
9724
|
+
tier: t("txt_tier_1_tier"),
|
9725
|
+
levelname: t("txt_tier_1_levelname"),
|
9726
|
+
term_custom: t("txt_tier_1_term_custom"),
|
9727
|
+
content_custom: t("txt_tier_1_content_custom")
|
9728
|
+
}
|
9729
|
+
)),
|
9730
|
+
layout !== "simple-consent-mode" && layout !== "simple-web-2" ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9731
|
+
ConsentLevel,
|
9732
|
+
{
|
9733
|
+
level: 2,
|
9734
|
+
tier: t("txt_tier_2_tier"),
|
9735
|
+
levelname: t("txt_tier_2_levelname"),
|
9736
|
+
term_custom: t("txt_tier_2_term_custom"),
|
9737
|
+
content_custom: t("txt_tier_2_content_custom")
|
9738
|
+
}
|
9739
|
+
), /* @__PURE__ */ React.createElement(
|
9740
|
+
ConsentLevel,
|
9741
|
+
{
|
9742
|
+
level: 3,
|
9743
|
+
tier: t("txt_tier_3_tier"),
|
9744
|
+
levelname: t("txt_tier_3_levelname"),
|
9745
|
+
term_custom: t("txt_tier_3_term_custom"),
|
9746
|
+
content_custom: t("txt_tier_3_content_custom")
|
9747
|
+
}
|
9748
|
+
), /* @__PURE__ */ React.createElement(
|
9749
|
+
ConsentLevel,
|
9750
|
+
{
|
9751
|
+
level: 4,
|
9752
|
+
tier: t("txt_tier_4_tier"),
|
9753
|
+
levelname: t("txt_tier_4_levelname"),
|
9754
|
+
term_custom: t("txt_tier_4_term_custom"),
|
9755
|
+
content_custom: t("txt_tier_4_content_custom")
|
9756
|
+
}
|
9757
|
+
)) : /* @__PURE__ */ React.createElement(React.Fragment, null)
|
9758
|
+
)),
|
9924
9759
|
/* @__PURE__ */ React.createElement(Tab, { eventKey: "about", title: "About", className: "px-3" }, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement("img", { src: check_circle_default, width: "14px", height: "15px" })), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, /* @__PURE__ */ React.createElement(
|
9925
9760
|
"div",
|
9926
9761
|
{
|
@@ -9958,7 +9793,7 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false }) => {
|
|
9958
9793
|
}
|
9959
9794
|
}
|
9960
9795
|
))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center mt-3 flex-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "me-10px" }, t("txt_ethical_compliant")), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center" }, /* @__PURE__ */ React.createElement("div", { className: "item_compliant fw-semibold d-flex align-items-center" }, /* @__PURE__ */ React.createElement("img", { src: check_line_default, width: 24, height: 24 }), "GDPR"), /* @__PURE__ */ React.createElement("div", { className: "item_compliant fw-semibold d-flex align-items-center ms-10px" }, /* @__PURE__ */ React.createElement("img", { src: check_line_default, width: 24, height: 24 }), "CCPA"))))
|
9961
|
-
)) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "text-dark fw-medium" }, t(term.content)), " ", /* @__PURE__ */ React.createElement("span", { className: "" }, t(term.term)), /* @__PURE__ */ React.createElement("div", { className: "read-more d-flex justify-content-between align-items-center flex-wrap" }, term.upgrade && /* @__PURE__ */ React.createElement(
|
9796
|
+
))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "text-dark fw-medium" }, t(term.content)), " ", /* @__PURE__ */ React.createElement("span", { className: "" }, t(term.term)), /* @__PURE__ */ React.createElement("div", { className: "read-more d-flex justify-content-between align-items-center flex-wrap" }, term.upgrade && /* @__PURE__ */ React.createElement(
|
9962
9797
|
"a",
|
9963
9798
|
{
|
9964
9799
|
className: "fs-14 text-success fw-bold mb-1",
|
@@ -10298,14 +10133,6 @@ var SSOEthereumProvider = ({ children }) => {
|
|
10298
10133
|
var Ethereum_default = SSOEthereumProvider;
|
10299
10134
|
|
10300
10135
|
export {
|
10301
|
-
agreeConsents,
|
10302
|
-
getConsents,
|
10303
|
-
getSignature,
|
10304
|
-
getNonce,
|
10305
|
-
revokeConsents,
|
10306
|
-
getMember,
|
10307
|
-
getWalletNonce,
|
10308
|
-
verifySignature,
|
10309
10136
|
getWeb3ID,
|
10310
10137
|
BROWSER_WALLET,
|
10311
10138
|
WALLET_CONNECT,
|