aesirx-analytics 2.2.10 → 2.2.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/README.md +2 -0
- package/dist/{Consent-57MTI7TD.js → Consent-QTHZTQUK.js} +14 -10
- package/dist/ConsentCustom-HQ6RMLQ6.js +1157 -0
- package/dist/analytics.js +1168 -378
- package/dist/{chunk-5VSCCPP6.js → chunk-PD33NAQI.js} +1036 -301
- package/dist/{chunk-N36VEWSG.js → chunk-R4T7FUMB.js} +412 -46
- package/dist/chunk-UJTYOAT7.js +464 -0
- package/dist/index.js +25 -470
- package/package.json +2 -2
- package/dist/ConsentCustom-EZS7JI2G.js +0 -934
@@ -2,84 +2,7 @@ import {
|
|
2
2
|
AnalyticsContext,
|
3
3
|
getConsents,
|
4
4
|
useTranslation
|
5
|
-
} from "./chunk-
|
6
|
-
|
7
|
-
// src/utils/Concordium.ts
|
8
|
-
import {
|
9
|
-
AccountAddress,
|
10
|
-
ContractAddress,
|
11
|
-
deserializeReceiveReturnValue,
|
12
|
-
ReceiveName,
|
13
|
-
ReturnValue,
|
14
|
-
SchemaVersion,
|
15
|
-
ContractName,
|
16
|
-
EntrypointName
|
17
|
-
} from "@concordium/web-sdk";
|
18
|
-
|
19
|
-
// src/utils/config.ts
|
20
|
-
var NFT_SMARTCONTRACT = {
|
21
|
-
index: 8602,
|
22
|
-
subIndex: 0,
|
23
|
-
name: "aesirx_web3_web3id",
|
24
|
-
schema: "//8DAQAAABIAAABhZXNpcnhfd2ViM193ZWIzaWQACgAAAAkAAABiYWxhbmNlT2YGEAEUAAIAAAAIAAAAdG9rZW5faWQdAAcAAABhZGRyZXNzFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADBABGyUAAAAVBAAAAA4AAABJbnZhbGlkVG9rZW5JZAIRAAAASW5zdWZmaWNpZW50RnVuZHMCDAAAAFVuYXV0aG9yaXplZAIGAAAAQ3VzdG9tAQEAAAA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ESTNET = {
|
27
|
-
index: 6740,
|
28
|
-
subIndex: 0,
|
29
|
-
name: "aesirx_web3_web3id_testnet_v1_2_1",
|
30
|
-
schema: "//8DAQAAACEAAABhZXNpcnhfd2ViM193ZWIzaWRfdGVzdG5ldF92MV8yXzEACgAAAAkAAABiYWxhbmNlT2YGEAEUAAIAAAAIAAAAdG9rZW5faWQdAAcAAABhZGRyZXNzFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADBABGyUAAAAVBAAAAA4AAABJbnZhbGlkVG9rZW5JZAIRAAAASW5zdWZmaWNpZW50RnVuZHMCDAAAAFVuYXV0aG9yaXplZAIGAAAAQ3VzdG9tAQEAAAAVBgAAAAsAAABQYXJzZVBhcmFtcwIHAAAATG9nRnVsbAIMAAAATG9nTWFsZm9ybWVkAhQAAABUb2tlbklkQWxyZWFkeUV4aXN0cwITAAAASW52b2tlQ29udHJhY3RFcnJvcgINAAAASW52YWxpZFdlYjNJZAIUAAAAZ2xvYmFsVXBkYXRlT3BlcmF0b3IEEAEUAAIAAAAGAAAAdXBkYXRlFQIAAAAGAAAAUmVtb3ZlAgMAAABBZGQCCAAAAG9wZXJhdG9yFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADBUEAAAADgAAAEludmFsaWRUb2tlbklkAhEAAABJbnN1ZmZpY2llbnRGdW5kcwIMAAAAVW5hdXRob3JpemVkAgYAAABDdXN0b20BAQAAABUGAAAACwAAAFBhcnNlUGFyYW1zAgcAAABMb2dGdWxsAgwAAABMb2dNYWxmb3JtZWQCFAAAAFRva2VuSWRBbHJlYWR5RXhpc3RzAhMAAABJbnZva2VDb250cmFjdEVycm9yAg0AAABJbnZhbGlkV2ViM0lkAgQAAABtaW50BBQAAwAAAAUAAABvd25lcgsFAAAAdG9rZW4dAAYAAAB3ZWIzaWQWAhUEAAAADgAAAEludmFsaWRUb2tlbklkAhEAAABJbnN1ZmZpY2llbnRGdW5kcwIMAAAAVW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EFjY291bnQBAQAAAAsIAAAAQ29udHJhY3QBAQAAAAz+BAAAAE1pbnQAAwAAAAgAAAB0b2tlbl9pZB0ABgAAAGFtb3VudBslAAAABQAAAG93bmVyFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADP8IAAAAVHJhbnNmZXIABAAAAAgAAAB0b2tlbl9pZB0ABgAAAGFtb3VudBslAAAABAAAAGZyb20VAgAAAAcAAABBY2NvdW50AQEAAAALCAAAAENvbnRyYWN0AQEAAAAMAgAAAHRvFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADA=="
|
31
|
-
};
|
32
|
-
|
33
|
-
// src/utils/Concordium.ts
|
34
|
-
var invokeSmartContract = async (account, name, index, subIndex, schema, method, rpcClient) => {
|
35
|
-
try {
|
36
|
-
const res = await rpcClient.invokeContract({
|
37
|
-
invoker: AccountAddress.fromBase58(account),
|
38
|
-
method: ReceiveName.fromString(`${name}.${method}`),
|
39
|
-
contract: ContractAddress.create(index, subIndex)
|
40
|
-
});
|
41
|
-
if (!res || res.tag === "failure" || !res.returnValue) {
|
42
|
-
throw new Error(
|
43
|
-
`RPC call 'invokeContract' on method '${name}.view' of contract '${method}' failed`
|
44
|
-
);
|
45
|
-
}
|
46
|
-
const returnValue = await deserializeReceiveReturnValue(
|
47
|
-
ReturnValue.toBuffer(res.returnValue),
|
48
|
-
Buffer.from(schema, "base64"),
|
49
|
-
ContractName.fromString(name),
|
50
|
-
EntrypointName.fromString(method),
|
51
|
-
SchemaVersion.V2
|
52
|
-
);
|
53
|
-
console.log("invokeSmartContract", returnValue);
|
54
|
-
return returnValue;
|
55
|
-
} catch (error) {
|
56
|
-
console.log("invokeSmartContract error", error);
|
57
|
-
return null;
|
58
|
-
}
|
59
|
-
};
|
60
|
-
var getWeb3ID = async (account, gRPCClient, network) => {
|
61
|
-
try {
|
62
|
-
const dataNFT = await invokeSmartContract(
|
63
|
-
account,
|
64
|
-
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.name : NFT_SMARTCONTRACT.name,
|
65
|
-
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.index : NFT_SMARTCONTRACT.index,
|
66
|
-
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.subIndex : NFT_SMARTCONTRACT.subIndex,
|
67
|
-
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.schema : NFT_SMARTCONTRACT.schema,
|
68
|
-
"view",
|
69
|
-
gRPCClient
|
70
|
-
);
|
71
|
-
const nft = dataNFT?.state?.find((arrVal) => account === arrVal[0]?.Account[0]);
|
72
|
-
if (nft) {
|
73
|
-
const tokens = nft[1]["owned_tokens"];
|
74
|
-
if (tokens) {
|
75
|
-
return true;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
} catch (error) {
|
79
|
-
return false;
|
80
|
-
}
|
81
|
-
return false;
|
82
|
-
};
|
5
|
+
} from "./chunk-R4T7FUMB.js";
|
83
6
|
|
84
7
|
// src/Hooks/config.ts
|
85
8
|
import {
|
@@ -113,16 +36,14 @@ import {
|
|
113
36
|
TESTNET
|
114
37
|
} from "@concordium/react-components";
|
115
38
|
import { isDesktop } from "react-device-detect";
|
116
|
-
import { useAccount } from "wagmi";
|
117
39
|
import { BlockHash } from "@concordium/web-sdk";
|
118
40
|
var useConsentStatus = (endpoint, layout, props) => {
|
119
41
|
const [show, setShow] = useState(false);
|
120
42
|
const [showRevoke, setShowRevoke] = useState(false);
|
121
|
-
const [level, setLevel] = useState();
|
43
|
+
const [level, setLevel] = useState(1);
|
122
44
|
const [web3ID, setWeb3ID] = useState();
|
123
45
|
const analyticsContext = useContext(AnalyticsContext);
|
124
46
|
const { activeConnector, network, connectedAccounts, genesisHashes, setActiveConnectorType } = props;
|
125
|
-
const { address, connector } = useAccount();
|
126
47
|
useEffect(() => {
|
127
48
|
const allow = sessionStorage.getItem("aesirx-analytics-allow");
|
128
49
|
const currentUuid = sessionStorage.getItem("aesirx-analytics-uuid");
|
@@ -148,7 +69,11 @@ var useConsentStatus = (endpoint, layout, props) => {
|
|
148
69
|
sessionStorage.setItem("aesirx-analytics-allow", "1");
|
149
70
|
if (consent) {
|
150
71
|
const revokeTier = !consent?.consent_uuid ? "" : consent?.web3id && consent?.address ? "4" : consent?.address && !consent?.web3id ? "3" : "2";
|
151
|
-
|
72
|
+
if (revokeTier) {
|
73
|
+
handleRevoke(true, revokeTier);
|
74
|
+
} else {
|
75
|
+
handleRevoke(true, "1");
|
76
|
+
}
|
152
77
|
}
|
153
78
|
}
|
154
79
|
});
|
@@ -162,7 +87,7 @@ var useConsentStatus = (endpoint, layout, props) => {
|
|
162
87
|
const [, setRpcError] = useState("");
|
163
88
|
const rpc = useGrpcClient(network);
|
164
89
|
useEffect(() => {
|
165
|
-
if (rpc) {
|
90
|
+
if (rpc && layout !== "simple-consent-mode" && layout !== "simple-web-2" && level !== 1) {
|
166
91
|
setRpcGenesisHash(void 0);
|
167
92
|
rpc.getConsensusStatus().then((status) => {
|
168
93
|
return status.genesisBlock;
|
@@ -186,27 +111,7 @@ var useConsentStatus = (endpoint, layout, props) => {
|
|
186
111
|
setRpcError(err.message);
|
187
112
|
});
|
188
113
|
}
|
189
|
-
}, [rpc]);
|
190
|
-
useEffect(() => {
|
191
|
-
const initConnector = async () => {
|
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") {
|
193
|
-
if (window["concordium"]) {
|
194
|
-
const address2 = await window["concordium"]?.requestAccounts() ?? [];
|
195
|
-
if (window["concordium"] && address2?.length) {
|
196
|
-
setActiveConnectorType(BROWSER_WALLET);
|
197
|
-
}
|
198
|
-
} else {
|
199
|
-
window.addEventListener("load", async function() {
|
200
|
-
const address2 = await window["concordium"]?.requestAccounts() ?? [];
|
201
|
-
if (window["concordium"] && address2?.length) {
|
202
|
-
setActiveConnectorType(BROWSER_WALLET);
|
203
|
-
}
|
204
|
-
});
|
205
|
-
}
|
206
|
-
}
|
207
|
-
};
|
208
|
-
initConnector();
|
209
|
-
}, [window["concordium"]]);
|
114
|
+
}, [rpc, level]);
|
210
115
|
useEffect(() => {
|
211
116
|
if (activeConnector) {
|
212
117
|
connect();
|
@@ -217,58 +122,6 @@ var useConsentStatus = (endpoint, layout, props) => {
|
|
217
122
|
toast.error(connectError);
|
218
123
|
}
|
219
124
|
}, [connectError]);
|
220
|
-
useEffect(() => {
|
221
|
-
(async () => {
|
222
|
-
try {
|
223
|
-
let l = level;
|
224
|
-
if (isDesktop) {
|
225
|
-
if (rpc && account) {
|
226
|
-
if (l < 3) {
|
227
|
-
setLevel(null);
|
228
|
-
l = 3;
|
229
|
-
let web3ID2 = false;
|
230
|
-
if (account && sessionStorage.getItem("aesirx-analytics-consent-type") !== "metamask") {
|
231
|
-
web3ID2 = await getWeb3ID(account, rpc, network?.name);
|
232
|
-
if (web3ID2 === true) {
|
233
|
-
l = 4;
|
234
|
-
}
|
235
|
-
}
|
236
|
-
setWeb3ID(web3ID2);
|
237
|
-
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
238
|
-
setLevel(l);
|
239
|
-
} else {
|
240
|
-
setLevel(1);
|
241
|
-
}
|
242
|
-
}
|
243
|
-
} else if (connector) {
|
244
|
-
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
245
|
-
if (l < 3) {
|
246
|
-
l = 3;
|
247
|
-
const web3ID2 = false;
|
248
|
-
setWeb3ID(web3ID2);
|
249
|
-
setLevel(l);
|
250
|
-
} else {
|
251
|
-
if (l === 4) {
|
252
|
-
setLevel(4);
|
253
|
-
} else {
|
254
|
-
setLevel(3);
|
255
|
-
}
|
256
|
-
}
|
257
|
-
} else {
|
258
|
-
setLevel(1);
|
259
|
-
}
|
260
|
-
} else {
|
261
|
-
setLevel(layout === "advance-consent-mode" ? 2 : 1);
|
262
|
-
}
|
263
|
-
} else {
|
264
|
-
setLevel(1);
|
265
|
-
}
|
266
|
-
} catch (error) {
|
267
|
-
setLevel(layout === "advance-consent-mode" ? 2 : 1);
|
268
|
-
console.error(error);
|
269
|
-
}
|
270
|
-
})();
|
271
|
-
}, [account, address, connector, layout]);
|
272
125
|
const handleLevel = useCallback(
|
273
126
|
async (_level) => {
|
274
127
|
if (layout !== "simple-consent-mode" && layout !== "simple-web-2") {
|
@@ -1098,10 +951,13 @@ var css = `:root {
|
|
1098
951
|
color: #5f5e70;
|
1099
952
|
font-size: 16px;
|
1100
953
|
--w3m-z-index: 1060;
|
954
|
+
z-index: 1050;
|
955
|
+
position: relative;
|
1101
956
|
--aesirxconsent-modal-margin: 1.75rem;
|
1102
957
|
--aesirxconsent-btn-padding-y: 9px;
|
1103
958
|
--aesirxconsent-btn-padding-x: 20px;
|
1104
959
|
line-height: 24px;
|
960
|
+
box-sizing: border-box;
|
1105
961
|
}
|
1106
962
|
.aesirxconsent .modal {
|
1107
963
|
--aesirxconsent-modal-zindex: 1055;
|
@@ -4062,6 +3918,766 @@ var css = `:root {
|
|
4062
3918
|
--aesirxconsent-gutter-y: 48px;
|
4063
3919
|
}
|
4064
3920
|
}
|
3921
|
+
.aesirxconsent .form-label {
|
3922
|
+
margin-bottom: 0.5rem;
|
3923
|
+
}
|
3924
|
+
.aesirxconsent .col-form-label {
|
3925
|
+
padding-top: calc(0.375rem + var(--aesirxconsent-border-width));
|
3926
|
+
padding-bottom: calc(0.375rem + var(--aesirxconsent-border-width));
|
3927
|
+
margin-bottom: 0;
|
3928
|
+
font-size: inherit;
|
3929
|
+
line-height: 1.5;
|
3930
|
+
}
|
3931
|
+
.aesirxconsent .col-form-label-lg {
|
3932
|
+
padding-top: calc(0.5rem + var(--aesirxconsent-border-width));
|
3933
|
+
padding-bottom: calc(0.5rem + var(--aesirxconsent-border-width));
|
3934
|
+
font-size: 1.25rem;
|
3935
|
+
}
|
3936
|
+
.aesirxconsent .col-form-label-sm {
|
3937
|
+
padding-top: calc(0.25rem + var(--aesirxconsent-border-width));
|
3938
|
+
padding-bottom: calc(0.25rem + var(--aesirxconsent-border-width));
|
3939
|
+
font-size: 0.875rem;
|
3940
|
+
}
|
3941
|
+
.aesirxconsent .form-text {
|
3942
|
+
margin-top: 0.25rem;
|
3943
|
+
font-size: 0.875em;
|
3944
|
+
color: var(--aesirxconsent-secondary-color);
|
3945
|
+
}
|
3946
|
+
.aesirxconsent .form-control {
|
3947
|
+
display: block;
|
3948
|
+
width: 100%;
|
3949
|
+
padding: 0.375rem 0.75rem;
|
3950
|
+
font-size: 1rem;
|
3951
|
+
font-weight: 400;
|
3952
|
+
line-height: 1.5;
|
3953
|
+
color: var(--aesirxconsent-body-color);
|
3954
|
+
appearance: none;
|
3955
|
+
background-color: var(--aesirxconsent-body-bg);
|
3956
|
+
background-clip: padding-box;
|
3957
|
+
border: var(--aesirxconsent-border-width) solid var(--aesirxconsent-border-color);
|
3958
|
+
border-radius: var(--aesirxconsent-border-radius);
|
3959
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
3960
|
+
}
|
3961
|
+
@media (prefers-reduced-motion: reduce) {
|
3962
|
+
.aesirxconsent .form-control {
|
3963
|
+
transition: none;
|
3964
|
+
}
|
3965
|
+
}
|
3966
|
+
.aesirxconsent .form-control[type=file] {
|
3967
|
+
overflow: hidden;
|
3968
|
+
}
|
3969
|
+
.aesirxconsent .form-control[type=file]:not(:disabled):not([readonly]) {
|
3970
|
+
cursor: pointer;
|
3971
|
+
}
|
3972
|
+
.aesirxconsent .form-control:focus {
|
3973
|
+
color: var(--aesirxconsent-body-color);
|
3974
|
+
background-color: var(--aesirxconsent-body-bg);
|
3975
|
+
border-color: #8991a1;
|
3976
|
+
outline: 0;
|
3977
|
+
box-shadow: 0 0 0 0.25rem rgba(19, 35, 66, 0.25);
|
3978
|
+
}
|
3979
|
+
.aesirxconsent .form-control::-webkit-date-and-time-value {
|
3980
|
+
min-width: 85px;
|
3981
|
+
height: 1.5em;
|
3982
|
+
margin: 0;
|
3983
|
+
}
|
3984
|
+
.aesirxconsent .form-control::-webkit-datetime-edit {
|
3985
|
+
display: block;
|
3986
|
+
padding: 0;
|
3987
|
+
}
|
3988
|
+
.aesirxconsent .form-control::placeholder {
|
3989
|
+
color: var(--aesirxconsent-secondary-color);
|
3990
|
+
opacity: 1;
|
3991
|
+
}
|
3992
|
+
.aesirxconsent .form-control:disabled {
|
3993
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
3994
|
+
opacity: 1;
|
3995
|
+
}
|
3996
|
+
.aesirxconsent .form-control::file-selector-button {
|
3997
|
+
padding: 0.375rem 0.75rem;
|
3998
|
+
margin: -0.375rem -0.75rem;
|
3999
|
+
margin-inline-end: 0.75rem;
|
4000
|
+
color: var(--aesirxconsent-body-color);
|
4001
|
+
background-color: var(--aesirxconsent-tertiary-bg);
|
4002
|
+
pointer-events: none;
|
4003
|
+
border-color: inherit;
|
4004
|
+
border-style: solid;
|
4005
|
+
border-width: 0;
|
4006
|
+
border-inline-end-width: var(--aesirxconsent-border-width);
|
4007
|
+
border-radius: 0;
|
4008
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
4009
|
+
}
|
4010
|
+
@media (prefers-reduced-motion: reduce) {
|
4011
|
+
.aesirxconsent .form-control::file-selector-button {
|
4012
|
+
transition: none;
|
4013
|
+
}
|
4014
|
+
}
|
4015
|
+
.aesirxconsent .form-control:hover:not(:disabled):not([readonly])::file-selector-button {
|
4016
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
4017
|
+
}
|
4018
|
+
.aesirxconsent .form-control-plaintext {
|
4019
|
+
display: block;
|
4020
|
+
width: 100%;
|
4021
|
+
padding: 0.375rem 0;
|
4022
|
+
margin-bottom: 0;
|
4023
|
+
line-height: 1.5;
|
4024
|
+
color: var(--aesirxconsent-body-color);
|
4025
|
+
background-color: transparent;
|
4026
|
+
border: solid transparent;
|
4027
|
+
border-width: var(--aesirxconsent-border-width) 0;
|
4028
|
+
}
|
4029
|
+
.aesirxconsent .form-control-plaintext:focus {
|
4030
|
+
outline: 0;
|
4031
|
+
}
|
4032
|
+
.aesirxconsent .form-control-plaintext.form-control-sm, .aesirxconsent .form-control-plaintext.form-control-lg {
|
4033
|
+
padding-right: 0;
|
4034
|
+
padding-left: 0;
|
4035
|
+
}
|
4036
|
+
.aesirxconsent .form-control-sm {
|
4037
|
+
min-height: calc(1.5em + 0.5rem + calc(var(--aesirxconsent-border-width) * 2));
|
4038
|
+
padding: 0.25rem 0.5rem;
|
4039
|
+
font-size: 0.875rem;
|
4040
|
+
border-radius: var(--aesirxconsent-border-radius-sm);
|
4041
|
+
}
|
4042
|
+
.aesirxconsent .form-control-sm::file-selector-button {
|
4043
|
+
padding: 0.25rem 0.5rem;
|
4044
|
+
margin: -0.25rem -0.5rem;
|
4045
|
+
margin-inline-end: 0.5rem;
|
4046
|
+
}
|
4047
|
+
.aesirxconsent .form-control-lg {
|
4048
|
+
min-height: calc(1.5em + 1rem + calc(var(--aesirxconsent-border-width) * 2));
|
4049
|
+
padding: 0.5rem 1rem;
|
4050
|
+
font-size: 1.25rem;
|
4051
|
+
border-radius: var(--aesirxconsent-border-radius-lg);
|
4052
|
+
}
|
4053
|
+
.aesirxconsent .form-control-lg::file-selector-button {
|
4054
|
+
padding: 0.5rem 1rem;
|
4055
|
+
margin: -0.5rem -1rem;
|
4056
|
+
margin-inline-end: 1rem;
|
4057
|
+
}
|
4058
|
+
.aesirxconsent textarea.form-control {
|
4059
|
+
min-height: calc(1.5em + 0.75rem + calc(var(--aesirxconsent-border-width) * 2));
|
4060
|
+
}
|
4061
|
+
.aesirxconsent textarea.form-control-sm {
|
4062
|
+
min-height: calc(1.5em + 0.5rem + calc(var(--aesirxconsent-border-width) * 2));
|
4063
|
+
}
|
4064
|
+
.aesirxconsent textarea.form-control-lg {
|
4065
|
+
min-height: calc(1.5em + 1rem + calc(var(--aesirxconsent-border-width) * 2));
|
4066
|
+
}
|
4067
|
+
.aesirxconsent .form-control-color {
|
4068
|
+
width: 3rem;
|
4069
|
+
height: calc(1.5em + 0.75rem + calc(var(--aesirxconsent-border-width) * 2));
|
4070
|
+
padding: 0.375rem;
|
4071
|
+
}
|
4072
|
+
.aesirxconsent .form-control-color:not(:disabled):not([readonly]) {
|
4073
|
+
cursor: pointer;
|
4074
|
+
}
|
4075
|
+
.aesirxconsent .form-control-color::-moz-color-swatch {
|
4076
|
+
border: 0 !important;
|
4077
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4078
|
+
}
|
4079
|
+
.aesirxconsent .form-control-color::-webkit-color-swatch {
|
4080
|
+
border: 0 !important;
|
4081
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4082
|
+
}
|
4083
|
+
.aesirxconsent .form-control-color.form-control-sm {
|
4084
|
+
height: calc(1.5em + 0.5rem + calc(var(--aesirxconsent-border-width) * 2));
|
4085
|
+
}
|
4086
|
+
.aesirxconsent .form-control-color.form-control-lg {
|
4087
|
+
height: calc(1.5em + 1rem + calc(var(--aesirxconsent-border-width) * 2));
|
4088
|
+
}
|
4089
|
+
.aesirxconsent .form-select {
|
4090
|
+
--aesirxconsent-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
4091
|
+
display: block;
|
4092
|
+
width: 100%;
|
4093
|
+
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
|
4094
|
+
font-size: 1rem;
|
4095
|
+
font-weight: 400;
|
4096
|
+
line-height: 1.5;
|
4097
|
+
color: var(--aesirxconsent-body-color);
|
4098
|
+
appearance: none;
|
4099
|
+
background-color: var(--aesirxconsent-body-bg);
|
4100
|
+
background-image: var(--aesirxconsent-form-select-bg-img), var(--aesirxconsent-form-select-bg-icon, none);
|
4101
|
+
background-repeat: no-repeat;
|
4102
|
+
background-position: right 0.75rem center;
|
4103
|
+
background-size: 16px 12px;
|
4104
|
+
border: var(--aesirxconsent-border-width) solid var(--aesirxconsent-border-color);
|
4105
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4106
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
4107
|
+
}
|
4108
|
+
@media (prefers-reduced-motion: reduce) {
|
4109
|
+
.aesirxconsent .form-select {
|
4110
|
+
transition: none;
|
4111
|
+
}
|
4112
|
+
}
|
4113
|
+
.aesirxconsent .form-select:focus {
|
4114
|
+
border-color: #8991a1;
|
4115
|
+
outline: 0;
|
4116
|
+
box-shadow: 0 0 0 0.25rem rgba(19, 35, 66, 0.25);
|
4117
|
+
}
|
4118
|
+
.aesirxconsent .form-select[multiple], .aesirxconsent .form-select[size]:not([size="1"]) {
|
4119
|
+
padding-right: 0.75rem;
|
4120
|
+
background-image: none;
|
4121
|
+
}
|
4122
|
+
.aesirxconsent .form-select:disabled {
|
4123
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
4124
|
+
}
|
4125
|
+
.aesirxconsent .form-select:-moz-focusring {
|
4126
|
+
color: transparent;
|
4127
|
+
text-shadow: 0 0 0 var(--aesirxconsent-body-color);
|
4128
|
+
}
|
4129
|
+
.aesirxconsent .form-select-sm {
|
4130
|
+
padding-top: 0.25rem;
|
4131
|
+
padding-bottom: 0.25rem;
|
4132
|
+
padding-left: 0.5rem;
|
4133
|
+
font-size: 0.875rem;
|
4134
|
+
border-radius: var(--aesirxconsent-border-radius-sm);
|
4135
|
+
}
|
4136
|
+
.aesirxconsent .form-select-lg {
|
4137
|
+
padding-top: 0.5rem;
|
4138
|
+
padding-bottom: 0.5rem;
|
4139
|
+
padding-left: 1rem;
|
4140
|
+
font-size: 1.25rem;
|
4141
|
+
border-radius: var(--aesirxconsent-border-radius-lg);
|
4142
|
+
}
|
4143
|
+
.aesirxconsent [data-bs-theme=dark] .form-select {
|
4144
|
+
--aesirxconsent-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
4145
|
+
}
|
4146
|
+
.aesirxconsent .form-check {
|
4147
|
+
display: block;
|
4148
|
+
min-height: 1.5rem;
|
4149
|
+
padding-left: 1.5em;
|
4150
|
+
margin-bottom: 0.125rem;
|
4151
|
+
}
|
4152
|
+
.aesirxconsent .form-check .form-check-input {
|
4153
|
+
float: left;
|
4154
|
+
margin-left: -1.5em;
|
4155
|
+
}
|
4156
|
+
.aesirxconsent .form-check-reverse {
|
4157
|
+
padding-right: 1.5em;
|
4158
|
+
padding-left: 0;
|
4159
|
+
text-align: right;
|
4160
|
+
}
|
4161
|
+
.aesirxconsent .form-check-reverse .form-check-input {
|
4162
|
+
float: right;
|
4163
|
+
margin-right: -1.5em;
|
4164
|
+
margin-left: 0;
|
4165
|
+
}
|
4166
|
+
.aesirxconsent .form-check-input {
|
4167
|
+
--aesirxconsent-form-check-bg: var(--aesirxconsent-body-bg);
|
4168
|
+
flex-shrink: 0;
|
4169
|
+
width: 1em;
|
4170
|
+
height: 1em;
|
4171
|
+
margin-top: 0.25em;
|
4172
|
+
vertical-align: top;
|
4173
|
+
appearance: none;
|
4174
|
+
background-color: var(--aesirxconsent-form-check-bg);
|
4175
|
+
background-image: var(--aesirxconsent-form-check-bg-image);
|
4176
|
+
background-repeat: no-repeat;
|
4177
|
+
background-position: center;
|
4178
|
+
background-size: contain;
|
4179
|
+
border: var(--aesirxconsent-border-width) solid var(--aesirxconsent-border-color);
|
4180
|
+
print-color-adjust: exact;
|
4181
|
+
}
|
4182
|
+
.aesirxconsent .form-check-input[type=checkbox] {
|
4183
|
+
border-radius: 0.25em;
|
4184
|
+
}
|
4185
|
+
.aesirxconsent .form-check-input[type=radio] {
|
4186
|
+
border-radius: 50%;
|
4187
|
+
}
|
4188
|
+
.aesirxconsent .form-check-input:active {
|
4189
|
+
filter: brightness(90%);
|
4190
|
+
}
|
4191
|
+
.aesirxconsent .form-check-input:focus {
|
4192
|
+
border-color: #8991a1;
|
4193
|
+
outline: 0;
|
4194
|
+
box-shadow: 0 0 0 0.25rem rgba(19, 35, 66, 0.25);
|
4195
|
+
}
|
4196
|
+
.aesirxconsent .form-check-input:checked {
|
4197
|
+
background-color: var(--aesirxconsent-success);
|
4198
|
+
border-color: var(--aesirxconsent-success);
|
4199
|
+
}
|
4200
|
+
.aesirxconsent .form-check-input:checked[type=checkbox] {
|
4201
|
+
--aesirxconsent-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
|
4202
|
+
}
|
4203
|
+
.aesirxconsent .form-check-input:checked[type=radio] {
|
4204
|
+
--aesirxconsent-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
|
4205
|
+
}
|
4206
|
+
.aesirxconsent .form-check-input[type=checkbox]:indeterminate {
|
4207
|
+
background-color: #132342;
|
4208
|
+
border-color: #132342;
|
4209
|
+
--aesirxconsent-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
|
4210
|
+
}
|
4211
|
+
.aesirxconsent .form-check-input:disabled {
|
4212
|
+
pointer-events: none;
|
4213
|
+
filter: none;
|
4214
|
+
opacity: 0.5;
|
4215
|
+
}
|
4216
|
+
.aesirxconsent .form-check-input[disabled] ~ .form-check-label, .aesirxconsent .form-check-input:disabled ~ .form-check-label {
|
4217
|
+
cursor: default;
|
4218
|
+
opacity: 0.5;
|
4219
|
+
}
|
4220
|
+
.aesirxconsent .form-switch {
|
4221
|
+
padding-left: 2.5em;
|
4222
|
+
}
|
4223
|
+
.aesirxconsent .form-switch .form-check-input {
|
4224
|
+
--aesirxconsent-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
|
4225
|
+
width: 2em;
|
4226
|
+
margin-left: -2.5em;
|
4227
|
+
background-image: var(--aesirxconsent-form-switch-bg);
|
4228
|
+
background-position: left center;
|
4229
|
+
border-radius: 2em;
|
4230
|
+
transition: background-position 0.15s ease-in-out;
|
4231
|
+
}
|
4232
|
+
@media (prefers-reduced-motion: reduce) {
|
4233
|
+
.aesirxconsent .form-switch .form-check-input {
|
4234
|
+
transition: none;
|
4235
|
+
}
|
4236
|
+
}
|
4237
|
+
.aesirxconsent .form-switch .form-check-input:focus {
|
4238
|
+
--aesirxconsent-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238991a1'/%3e%3c/svg%3e");
|
4239
|
+
}
|
4240
|
+
.aesirxconsent .form-switch .form-check-input:checked {
|
4241
|
+
background-position: right center;
|
4242
|
+
--aesirxconsent-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
4243
|
+
}
|
4244
|
+
.aesirxconsent .form-switch.form-check-reverse {
|
4245
|
+
padding-right: 2.5em;
|
4246
|
+
padding-left: 0;
|
4247
|
+
}
|
4248
|
+
.aesirxconsent .form-switch.form-check-reverse .form-check-input {
|
4249
|
+
margin-right: -2.5em;
|
4250
|
+
margin-left: 0;
|
4251
|
+
}
|
4252
|
+
.aesirxconsent .form-check-inline {
|
4253
|
+
display: inline-block;
|
4254
|
+
margin-right: 1rem;
|
4255
|
+
}
|
4256
|
+
.aesirxconsent .btn-check {
|
4257
|
+
position: absolute;
|
4258
|
+
clip: rect(0, 0, 0, 0);
|
4259
|
+
pointer-events: none;
|
4260
|
+
}
|
4261
|
+
.aesirxconsent .btn-check[disabled] + .btn, .aesirxconsent .btn-check:disabled + .btn {
|
4262
|
+
pointer-events: none;
|
4263
|
+
filter: none;
|
4264
|
+
opacity: 0.65;
|
4265
|
+
}
|
4266
|
+
.aesirxconsent [data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus) {
|
4267
|
+
--aesirxconsent-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e");
|
4268
|
+
}
|
4269
|
+
.aesirxconsent .form-range {
|
4270
|
+
width: 100%;
|
4271
|
+
height: 1.5rem;
|
4272
|
+
padding: 0;
|
4273
|
+
appearance: none;
|
4274
|
+
background-color: transparent;
|
4275
|
+
}
|
4276
|
+
.aesirxconsent .form-range:focus {
|
4277
|
+
outline: 0;
|
4278
|
+
}
|
4279
|
+
.aesirxconsent .form-range:focus::-webkit-slider-thumb {
|
4280
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(19, 35, 66, 0.25);
|
4281
|
+
}
|
4282
|
+
.aesirxconsent .form-range:focus::-moz-range-thumb {
|
4283
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(19, 35, 66, 0.25);
|
4284
|
+
}
|
4285
|
+
.aesirxconsent .form-range::-moz-focus-outer {
|
4286
|
+
border: 0;
|
4287
|
+
}
|
4288
|
+
.aesirxconsent .form-range::-webkit-slider-thumb {
|
4289
|
+
width: 1rem;
|
4290
|
+
height: 1rem;
|
4291
|
+
margin-top: -0.25rem;
|
4292
|
+
appearance: none;
|
4293
|
+
background-color: #132342;
|
4294
|
+
border: 0;
|
4295
|
+
border-radius: 1rem;
|
4296
|
+
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
4297
|
+
}
|
4298
|
+
@media (prefers-reduced-motion: reduce) {
|
4299
|
+
.aesirxconsent .form-range::-webkit-slider-thumb {
|
4300
|
+
transition: none;
|
4301
|
+
}
|
4302
|
+
}
|
4303
|
+
.aesirxconsent .form-range::-webkit-slider-thumb:active {
|
4304
|
+
background-color: #b8bdc6;
|
4305
|
+
}
|
4306
|
+
.aesirxconsent .form-range::-webkit-slider-runnable-track {
|
4307
|
+
width: 100%;
|
4308
|
+
height: 0.5rem;
|
4309
|
+
color: transparent;
|
4310
|
+
cursor: pointer;
|
4311
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
4312
|
+
border-color: transparent;
|
4313
|
+
border-radius: 1rem;
|
4314
|
+
}
|
4315
|
+
.aesirxconsent .form-range::-moz-range-thumb {
|
4316
|
+
width: 1rem;
|
4317
|
+
height: 1rem;
|
4318
|
+
appearance: none;
|
4319
|
+
background-color: #132342;
|
4320
|
+
border: 0;
|
4321
|
+
border-radius: 1rem;
|
4322
|
+
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
4323
|
+
}
|
4324
|
+
@media (prefers-reduced-motion: reduce) {
|
4325
|
+
.aesirxconsent .form-range::-moz-range-thumb {
|
4326
|
+
transition: none;
|
4327
|
+
}
|
4328
|
+
}
|
4329
|
+
.aesirxconsent .form-range::-moz-range-thumb:active {
|
4330
|
+
background-color: #b8bdc6;
|
4331
|
+
}
|
4332
|
+
.aesirxconsent .form-range::-moz-range-track {
|
4333
|
+
width: 100%;
|
4334
|
+
height: 0.5rem;
|
4335
|
+
color: transparent;
|
4336
|
+
cursor: pointer;
|
4337
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
4338
|
+
border-color: transparent;
|
4339
|
+
border-radius: 1rem;
|
4340
|
+
}
|
4341
|
+
.aesirxconsent .form-range:disabled {
|
4342
|
+
pointer-events: none;
|
4343
|
+
}
|
4344
|
+
.aesirxconsent .form-range:disabled::-webkit-slider-thumb {
|
4345
|
+
background-color: var(--aesirxconsent-secondary-color);
|
4346
|
+
}
|
4347
|
+
.aesirxconsent .form-range:disabled::-moz-range-thumb {
|
4348
|
+
background-color: var(--aesirxconsent-secondary-color);
|
4349
|
+
}
|
4350
|
+
.aesirxconsent .form-floating {
|
4351
|
+
position: relative;
|
4352
|
+
}
|
4353
|
+
.aesirxconsent .form-floating > .form-control,
|
4354
|
+
.aesirxconsent .form-floating > .form-control-plaintext,
|
4355
|
+
.aesirxconsent .form-floating > .form-select {
|
4356
|
+
height: calc(3.5rem + calc(var(--aesirxconsent-border-width) * 2));
|
4357
|
+
min-height: calc(3.5rem + calc(var(--aesirxconsent-border-width) * 2));
|
4358
|
+
line-height: 1.25;
|
4359
|
+
}
|
4360
|
+
.aesirxconsent .form-floating > label {
|
4361
|
+
position: absolute;
|
4362
|
+
top: 0;
|
4363
|
+
left: 0;
|
4364
|
+
z-index: 2;
|
4365
|
+
height: 100%;
|
4366
|
+
padding: 1rem 0.75rem;
|
4367
|
+
overflow: hidden;
|
4368
|
+
text-align: start;
|
4369
|
+
text-overflow: ellipsis;
|
4370
|
+
white-space: nowrap;
|
4371
|
+
pointer-events: none;
|
4372
|
+
border: var(--aesirxconsent-border-width) solid transparent;
|
4373
|
+
transform-origin: 0 0;
|
4374
|
+
transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
|
4375
|
+
}
|
4376
|
+
@media (prefers-reduced-motion: reduce) {
|
4377
|
+
.aesirxconsent .form-floating > label {
|
4378
|
+
transition: none;
|
4379
|
+
}
|
4380
|
+
}
|
4381
|
+
.aesirxconsent .form-floating > .form-control,
|
4382
|
+
.aesirxconsent .form-floating > .form-control-plaintext {
|
4383
|
+
padding: 1rem 0.75rem;
|
4384
|
+
}
|
4385
|
+
.aesirxconsent .form-floating > .form-control::placeholder,
|
4386
|
+
.aesirxconsent .form-floating > .form-control-plaintext::placeholder {
|
4387
|
+
color: transparent;
|
4388
|
+
}
|
4389
|
+
.aesirxconsent .form-floating > .form-control:focus, .aesirxconsent .form-floating > .form-control:not(:placeholder-shown),
|
4390
|
+
.aesirxconsent .form-floating > .form-control-plaintext:focus,
|
4391
|
+
.aesirxconsent .form-floating > .form-control-plaintext:not(:placeholder-shown) {
|
4392
|
+
padding-top: 1.625rem;
|
4393
|
+
padding-bottom: 0.625rem;
|
4394
|
+
}
|
4395
|
+
.aesirxconsent .form-floating > .form-control:-webkit-autofill,
|
4396
|
+
.aesirxconsent .form-floating > .form-control-plaintext:-webkit-autofill {
|
4397
|
+
padding-top: 1.625rem;
|
4398
|
+
padding-bottom: 0.625rem;
|
4399
|
+
}
|
4400
|
+
.aesirxconsent .form-floating > .form-select {
|
4401
|
+
padding-top: 1.625rem;
|
4402
|
+
padding-bottom: 0.625rem;
|
4403
|
+
}
|
4404
|
+
.aesirxconsent .form-floating > .form-control:focus ~ label,
|
4405
|
+
.aesirxconsent .form-floating > .form-control:not(:placeholder-shown) ~ label,
|
4406
|
+
.aesirxconsent .form-floating > .form-control-plaintext ~ label,
|
4407
|
+
.aesirxconsent .form-floating > .form-select ~ label {
|
4408
|
+
color: rgba(var(--aesirxconsent-body-color-rgb), 0.65);
|
4409
|
+
transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
|
4410
|
+
}
|
4411
|
+
.aesirxconsent .form-floating > .form-control:focus ~ label::after,
|
4412
|
+
.aesirxconsent .form-floating > .form-control:not(:placeholder-shown) ~ label::after,
|
4413
|
+
.aesirxconsent .form-floating > .form-control-plaintext ~ label::after,
|
4414
|
+
.aesirxconsent .form-floating > .form-select ~ label::after {
|
4415
|
+
position: absolute;
|
4416
|
+
inset: 1rem 0.375rem;
|
4417
|
+
z-index: -1;
|
4418
|
+
height: 1.5em;
|
4419
|
+
content: "";
|
4420
|
+
background-color: var(--aesirxconsent-body-bg);
|
4421
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4422
|
+
}
|
4423
|
+
.aesirxconsent .form-floating > .form-control:-webkit-autofill ~ label {
|
4424
|
+
color: rgba(var(--aesirxconsent-body-color-rgb), 0.65);
|
4425
|
+
transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
|
4426
|
+
}
|
4427
|
+
.aesirxconsent .form-floating > .form-control-plaintext ~ label {
|
4428
|
+
border-width: var(--aesirxconsent-border-width) 0;
|
4429
|
+
}
|
4430
|
+
.aesirxconsent .form-floating > :disabled ~ label,
|
4431
|
+
.aesirxconsent .form-floating > .form-control:disabled ~ label {
|
4432
|
+
color: #6c757d;
|
4433
|
+
}
|
4434
|
+
.aesirxconsent .form-floating > :disabled ~ label::after,
|
4435
|
+
.aesirxconsent .form-floating > .form-control:disabled ~ label::after {
|
4436
|
+
background-color: var(--aesirxconsent-secondary-bg);
|
4437
|
+
}
|
4438
|
+
.aesirxconsent .input-group {
|
4439
|
+
position: relative;
|
4440
|
+
display: flex;
|
4441
|
+
flex-wrap: wrap;
|
4442
|
+
align-items: stretch;
|
4443
|
+
width: 100%;
|
4444
|
+
}
|
4445
|
+
.aesirxconsent .input-group > .form-control,
|
4446
|
+
.aesirxconsent .input-group > .form-select,
|
4447
|
+
.aesirxconsent .input-group > .form-floating {
|
4448
|
+
position: relative;
|
4449
|
+
flex: 1 1 auto;
|
4450
|
+
width: 1%;
|
4451
|
+
min-width: 0;
|
4452
|
+
}
|
4453
|
+
.aesirxconsent .input-group > .form-control:focus,
|
4454
|
+
.aesirxconsent .input-group > .form-select:focus,
|
4455
|
+
.aesirxconsent .input-group > .form-floating:focus-within {
|
4456
|
+
z-index: 5;
|
4457
|
+
}
|
4458
|
+
.aesirxconsent .input-group .btn {
|
4459
|
+
position: relative;
|
4460
|
+
z-index: 2;
|
4461
|
+
}
|
4462
|
+
.aesirxconsent .input-group .btn:focus {
|
4463
|
+
z-index: 5;
|
4464
|
+
}
|
4465
|
+
.aesirxconsent .input-group-text {
|
4466
|
+
display: flex;
|
4467
|
+
align-items: center;
|
4468
|
+
padding: 0.375rem 0.75rem;
|
4469
|
+
font-size: 1rem;
|
4470
|
+
font-weight: 400;
|
4471
|
+
line-height: 1.5;
|
4472
|
+
color: var(--aesirxconsent-body-color);
|
4473
|
+
text-align: center;
|
4474
|
+
white-space: nowrap;
|
4475
|
+
background-color: var(--aesirxconsent-tertiary-bg);
|
4476
|
+
border: var(--aesirxconsent-border-width) solid var(--aesirxconsent-border-color);
|
4477
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4478
|
+
}
|
4479
|
+
.aesirxconsent .input-group-lg > .form-control,
|
4480
|
+
.aesirxconsent .input-group-lg > .form-select,
|
4481
|
+
.aesirxconsent .input-group-lg > .input-group-text,
|
4482
|
+
.aesirxconsent .input-group-lg > .btn {
|
4483
|
+
padding: 0.5rem 1rem;
|
4484
|
+
font-size: 1.25rem;
|
4485
|
+
border-radius: var(--aesirxconsent-border-radius-lg);
|
4486
|
+
}
|
4487
|
+
.aesirxconsent .input-group-sm > .form-control,
|
4488
|
+
.aesirxconsent .input-group-sm > .form-select,
|
4489
|
+
.aesirxconsent .input-group-sm > .input-group-text,
|
4490
|
+
.aesirxconsent .input-group-sm > .btn {
|
4491
|
+
padding: 0.25rem 0.5rem;
|
4492
|
+
font-size: 0.875rem;
|
4493
|
+
border-radius: var(--aesirxconsent-border-radius-sm);
|
4494
|
+
}
|
4495
|
+
.aesirxconsent .input-group-lg > .form-select,
|
4496
|
+
.aesirxconsent .input-group-sm > .form-select {
|
4497
|
+
padding-right: 3rem;
|
4498
|
+
}
|
4499
|
+
.aesirxconsent .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
|
4500
|
+
.aesirxconsent .input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3),
|
4501
|
+
.aesirxconsent .input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-control,
|
4502
|
+
.aesirxconsent .input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-select {
|
4503
|
+
border-top-right-radius: 0;
|
4504
|
+
border-bottom-right-radius: 0;
|
4505
|
+
}
|
4506
|
+
.aesirxconsent .input-group.has-validation > :nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
|
4507
|
+
.aesirxconsent .input-group.has-validation > .dropdown-toggle:nth-last-child(n+4),
|
4508
|
+
.aesirxconsent .input-group.has-validation > .form-floating:nth-last-child(n+3) > .form-control,
|
4509
|
+
.aesirxconsent .input-group.has-validation > .form-floating:nth-last-child(n+3) > .form-select {
|
4510
|
+
border-top-right-radius: 0;
|
4511
|
+
border-bottom-right-radius: 0;
|
4512
|
+
}
|
4513
|
+
.aesirxconsent .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
|
4514
|
+
margin-left: calc(var(--aesirxconsent-border-width) * -1);
|
4515
|
+
border-top-left-radius: 0;
|
4516
|
+
border-bottom-left-radius: 0;
|
4517
|
+
}
|
4518
|
+
.aesirxconsent .input-group > .form-floating:not(:first-child) > .form-control,
|
4519
|
+
.aesirxconsent .input-group > .form-floating:not(:first-child) > .form-select {
|
4520
|
+
border-top-left-radius: 0;
|
4521
|
+
border-bottom-left-radius: 0;
|
4522
|
+
}
|
4523
|
+
.aesirxconsent .valid-feedback {
|
4524
|
+
display: none;
|
4525
|
+
width: 100%;
|
4526
|
+
margin-top: 0.25rem;
|
4527
|
+
font-size: 0.875em;
|
4528
|
+
color: var(--aesirxconsent-form-valid-color);
|
4529
|
+
}
|
4530
|
+
.aesirxconsent .valid-tooltip {
|
4531
|
+
position: absolute;
|
4532
|
+
top: 100%;
|
4533
|
+
z-index: 5;
|
4534
|
+
display: none;
|
4535
|
+
max-width: 100%;
|
4536
|
+
padding: 4px 8px;
|
4537
|
+
margin-top: 0.1rem;
|
4538
|
+
font-size: 0.875rem;
|
4539
|
+
color: #fff;
|
4540
|
+
background-color: var(--aesirxconsent-success);
|
4541
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4542
|
+
}
|
4543
|
+
.was-validated .aesirxconsent:valid ~ .valid-feedback,
|
4544
|
+
.was-validated .aesirxconsent:valid ~ .valid-tooltip, .aesirxconsent.is-valid ~ .valid-feedback,
|
4545
|
+
.aesirxconsent.is-valid ~ .valid-tooltip {
|
4546
|
+
display: block;
|
4547
|
+
}
|
4548
|
+
.was-validated .aesirxconsent .form-control:valid, .aesirxconsent .form-control.is-valid {
|
4549
|
+
border-color: var(--aesirxconsent-form-valid-border-color);
|
4550
|
+
padding-right: calc(1.5em + 0.75rem);
|
4551
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231ab394' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
4552
|
+
background-repeat: no-repeat;
|
4553
|
+
background-position: right calc(0.375em + 0.1875rem) center;
|
4554
|
+
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
4555
|
+
}
|
4556
|
+
.was-validated .aesirxconsent .form-control:valid:focus, .aesirxconsent .form-control.is-valid:focus {
|
4557
|
+
border-color: var(--aesirxconsent-form-valid-border-color);
|
4558
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-success-rgb), 0.25);
|
4559
|
+
}
|
4560
|
+
.was-validated .aesirxconsent textarea.form-control:valid, .aesirxconsent textarea.form-control.is-valid {
|
4561
|
+
padding-right: calc(1.5em + 0.75rem);
|
4562
|
+
background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
|
4563
|
+
}
|
4564
|
+
.was-validated .aesirxconsent .form-select:valid, .aesirxconsent .form-select.is-valid {
|
4565
|
+
border-color: var(--aesirxconsent-form-valid-border-color);
|
4566
|
+
}
|
4567
|
+
.was-validated .aesirxconsent .form-select:valid:not([multiple]):not([size]), .was-validated .aesirxconsent .form-select:valid:not([multiple])[size="1"], .aesirxconsent .form-select.is-valid:not([multiple]):not([size]), .aesirxconsent .form-select.is-valid:not([multiple])[size="1"] {
|
4568
|
+
--aesirxconsent-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231ab394' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
|
4569
|
+
padding-right: 4.125rem;
|
4570
|
+
background-position: right 0.75rem center, center right 2.25rem;
|
4571
|
+
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
4572
|
+
}
|
4573
|
+
.was-validated .aesirxconsent .form-select:valid:focus, .aesirxconsent .form-select.is-valid:focus {
|
4574
|
+
border-color: var(--aesirxconsent-form-valid-border-color);
|
4575
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-success-rgb), 0.25);
|
4576
|
+
}
|
4577
|
+
.was-validated .aesirxconsent .form-control-color:valid, .aesirxconsent .form-control-color.is-valid {
|
4578
|
+
width: calc(3rem + calc(1.5em + 0.75rem));
|
4579
|
+
}
|
4580
|
+
.was-validated .aesirxconsent .form-check-input:valid, .aesirxconsent .form-check-input.is-valid {
|
4581
|
+
border-color: var(--aesirxconsent-form-valid-border-color);
|
4582
|
+
}
|
4583
|
+
.was-validated .aesirxconsent .form-check-input:valid:checked, .aesirxconsent .form-check-input.is-valid:checked {
|
4584
|
+
background-color: var(--aesirxconsent-form-valid-color);
|
4585
|
+
}
|
4586
|
+
.was-validated .aesirxconsent .form-check-input:valid:focus, .aesirxconsent .form-check-input.is-valid:focus {
|
4587
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-success-rgb), 0.25);
|
4588
|
+
}
|
4589
|
+
.was-validated .aesirxconsent .form-check-input:valid ~ .form-check-label, .aesirxconsent .form-check-input.is-valid ~ .form-check-label {
|
4590
|
+
color: var(--aesirxconsent-form-valid-color);
|
4591
|
+
}
|
4592
|
+
.aesirxconsent .form-check-inline .form-check-input ~ .valid-feedback {
|
4593
|
+
margin-left: 0.5em;
|
4594
|
+
}
|
4595
|
+
.was-validated .aesirxconsent .input-group > .form-control:not(:focus):valid, .aesirxconsent .input-group > .form-control:not(:focus).is-valid,
|
4596
|
+
.was-validated .aesirxconsent .input-group > .form-select:not(:focus):valid,
|
4597
|
+
.aesirxconsent .input-group > .form-select:not(:focus).is-valid,
|
4598
|
+
.was-validated .aesirxconsent .input-group > .form-floating:not(:focus-within):valid,
|
4599
|
+
.aesirxconsent .input-group > .form-floating:not(:focus-within).is-valid {
|
4600
|
+
z-index: 3;
|
4601
|
+
}
|
4602
|
+
.aesirxconsent .invalid-feedback {
|
4603
|
+
display: none;
|
4604
|
+
width: 100%;
|
4605
|
+
margin-top: 0.25rem;
|
4606
|
+
font-size: 0.875em;
|
4607
|
+
color: var(--aesirxconsent-form-invalid-color);
|
4608
|
+
}
|
4609
|
+
.aesirxconsent .invalid-tooltip {
|
4610
|
+
position: absolute;
|
4611
|
+
top: 100%;
|
4612
|
+
z-index: 5;
|
4613
|
+
display: none;
|
4614
|
+
max-width: 100%;
|
4615
|
+
padding: 4px 8px;
|
4616
|
+
margin-top: 0.1rem;
|
4617
|
+
font-size: 0.875rem;
|
4618
|
+
color: #fff;
|
4619
|
+
background-color: var(--aesirxconsent-danger);
|
4620
|
+
border-radius: var(--aesirxconsent-border-radius);
|
4621
|
+
}
|
4622
|
+
.was-validated .aesirxconsent:invalid ~ .invalid-feedback,
|
4623
|
+
.was-validated .aesirxconsent:invalid ~ .invalid-tooltip, .aesirxconsent.is-invalid ~ .invalid-feedback,
|
4624
|
+
.aesirxconsent.is-invalid ~ .invalid-tooltip {
|
4625
|
+
display: block;
|
4626
|
+
}
|
4627
|
+
.was-validated .aesirxconsent .form-control:invalid, .aesirxconsent .form-control.is-invalid {
|
4628
|
+
border-color: var(--aesirxconsent-form-invalid-border-color);
|
4629
|
+
padding-right: calc(1.5em + 0.75rem);
|
4630
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
|
4631
|
+
background-repeat: no-repeat;
|
4632
|
+
background-position: right calc(0.375em + 0.1875rem) center;
|
4633
|
+
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
4634
|
+
}
|
4635
|
+
.was-validated .aesirxconsent .form-control:invalid:focus, .aesirxconsent .form-control.is-invalid:focus {
|
4636
|
+
border-color: var(--aesirxconsent-form-invalid-border-color);
|
4637
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-danger-rgb), 0.25);
|
4638
|
+
}
|
4639
|
+
.was-validated .aesirxconsent textarea.form-control:invalid, .aesirxconsent textarea.form-control.is-invalid {
|
4640
|
+
padding-right: calc(1.5em + 0.75rem);
|
4641
|
+
background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
|
4642
|
+
}
|
4643
|
+
.was-validated .aesirxconsent .form-select:invalid, .aesirxconsent .form-select.is-invalid {
|
4644
|
+
border-color: var(--aesirxconsent-form-invalid-border-color);
|
4645
|
+
}
|
4646
|
+
.was-validated .aesirxconsent .form-select:invalid:not([multiple]):not([size]), .was-validated .aesirxconsent .form-select:invalid:not([multiple])[size="1"], .aesirxconsent .form-select.is-invalid:not([multiple]):not([size]), .aesirxconsent .form-select.is-invalid:not([multiple])[size="1"] {
|
4647
|
+
--aesirxconsent-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
|
4648
|
+
padding-right: 4.125rem;
|
4649
|
+
background-position: right 0.75rem center, center right 2.25rem;
|
4650
|
+
background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
|
4651
|
+
}
|
4652
|
+
.was-validated .aesirxconsent .form-select:invalid:focus, .aesirxconsent .form-select.is-invalid:focus {
|
4653
|
+
border-color: var(--aesirxconsent-form-invalid-border-color);
|
4654
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-danger-rgb), 0.25);
|
4655
|
+
}
|
4656
|
+
.was-validated .aesirxconsent .form-control-color:invalid, .aesirxconsent .form-control-color.is-invalid {
|
4657
|
+
width: calc(3rem + calc(1.5em + 0.75rem));
|
4658
|
+
}
|
4659
|
+
.was-validated .aesirxconsent .form-check-input:invalid, .aesirxconsent .form-check-input.is-invalid {
|
4660
|
+
border-color: var(--aesirxconsent-form-invalid-border-color);
|
4661
|
+
}
|
4662
|
+
.was-validated .aesirxconsent .form-check-input:invalid:checked, .aesirxconsent .form-check-input.is-invalid:checked {
|
4663
|
+
background-color: var(--aesirxconsent-form-invalid-color);
|
4664
|
+
}
|
4665
|
+
.was-validated .aesirxconsent .form-check-input:invalid:focus, .aesirxconsent .form-check-input.is-invalid:focus {
|
4666
|
+
box-shadow: 0 0 0 0.25rem rgba(var(--aesirxconsent-danger-rgb), 0.25);
|
4667
|
+
}
|
4668
|
+
.was-validated .aesirxconsent .form-check-input:invalid ~ .form-check-label, .aesirxconsent .form-check-input.is-invalid ~ .form-check-label {
|
4669
|
+
color: var(--aesirxconsent-form-invalid-color);
|
4670
|
+
}
|
4671
|
+
.aesirxconsent .form-check-inline .form-check-input ~ .invalid-feedback {
|
4672
|
+
margin-left: 0.5em;
|
4673
|
+
}
|
4674
|
+
.was-validated .aesirxconsent .input-group > .form-control:not(:focus):invalid, .aesirxconsent .input-group > .form-control:not(:focus).is-invalid,
|
4675
|
+
.was-validated .aesirxconsent .input-group > .form-select:not(:focus):invalid,
|
4676
|
+
.aesirxconsent .input-group > .form-select:not(:focus).is-invalid,
|
4677
|
+
.was-validated .aesirxconsent .input-group > .form-floating:not(:focus-within):invalid,
|
4678
|
+
.aesirxconsent .input-group > .form-floating:not(:focus-within).is-invalid {
|
4679
|
+
z-index: 4;
|
4680
|
+
}
|
4065
4681
|
.aesirxconsent .align-baseline {
|
4066
4682
|
vertical-align: baseline;
|
4067
4683
|
}
|
@@ -9057,6 +9673,9 @@ var css = `:root {
|
|
9057
9673
|
display: none;
|
9058
9674
|
}
|
9059
9675
|
}
|
9676
|
+
.aesirxconsent * {
|
9677
|
+
box-sizing: border-box;
|
9678
|
+
}
|
9060
9679
|
.aesirxconsent-modal .modal-dialog {
|
9061
9680
|
max-width: 500px;
|
9062
9681
|
}
|
@@ -9074,6 +9693,7 @@ var css = `:root {
|
|
9074
9693
|
}
|
9075
9694
|
.aesirxconsent button {
|
9076
9695
|
text-transform: none;
|
9696
|
+
font-family: var(--bs-body-font-family);
|
9077
9697
|
}
|
9078
9698
|
.aesirxconsent .text-primary {
|
9079
9699
|
color: #132342;
|
@@ -9107,22 +9727,21 @@ var css = `:root {
|
|
9107
9727
|
--aesirxconsent-btn-disabled-bg: #222328;
|
9108
9728
|
--aesirxconsent-btn-disabled-border-color: #222328;
|
9109
9729
|
}
|
9110
|
-
.aesirxconsent .btn-success
|
9111
|
-
--aesirxconsent-btn-color: #
|
9112
|
-
--aesirxconsent-btn-bg:
|
9730
|
+
.aesirxconsent .btn-outline-success {
|
9731
|
+
--aesirxconsent-btn-color: #222328;
|
9732
|
+
--aesirxconsent-btn-bg: #fff;
|
9113
9733
|
--aesirxconsent-btn-border-color: #1ab394;
|
9114
|
-
--aesirxconsent-btn-hover-color: #
|
9115
|
-
--aesirxconsent-btn-hover-bg:
|
9734
|
+
--aesirxconsent-btn-hover-color: #fff;
|
9735
|
+
--aesirxconsent-btn-hover-bg: #1ab394;
|
9116
9736
|
--aesirxconsent-btn-hover-border-color: #1ab394;
|
9117
|
-
--aesirxconsent-btn-focus-shadow-rgb:
|
9737
|
+
--aesirxconsent-btn-focus-shadow-rgb: 27, 157, 132;
|
9118
9738
|
--aesirxconsent-btn-active-color: #000;
|
9119
|
-
--aesirxconsent-btn-active-bg:
|
9739
|
+
--aesirxconsent-btn-active-bg: white;
|
9120
9740
|
--aesirxconsent-btn-active-border-color: #31bb9f;
|
9121
9741
|
--aesirxconsent-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
9122
|
-
--aesirxconsent-btn-disabled-color: #
|
9123
|
-
--aesirxconsent-btn-disabled-bg:
|
9742
|
+
--aesirxconsent-btn-disabled-color: #000;
|
9743
|
+
--aesirxconsent-btn-disabled-bg: #fff;
|
9124
9744
|
--aesirxconsent-btn-disabled-border-color: #1ab394;
|
9125
|
-
color: #1ab394;
|
9126
9745
|
}
|
9127
9746
|
.aesirxconsent .btn-gray {
|
9128
9747
|
--aesirxconsent-btn-color: #fff;
|
@@ -9256,13 +9875,10 @@ var css = `:root {
|
|
9256
9875
|
.aesirxconsent .ssoBtnWrapper.rounded-pill {
|
9257
9876
|
border-radius: var(--aesirxconsent-border-radius-pill);
|
9258
9877
|
}
|
9259
|
-
.aesirxconsent .revoke-toast {
|
9260
|
-
width: 530px;
|
9261
|
-
}
|
9262
9878
|
.aesirxconsent .revoke-toast .toast-body .minimize-revoke {
|
9263
9879
|
position: absolute;
|
9264
|
-
top:
|
9265
|
-
right:
|
9880
|
+
top: 1px;
|
9881
|
+
right: 1px;
|
9266
9882
|
cursor: pointer;
|
9267
9883
|
}
|
9268
9884
|
.aesirxconsent .revoke-toast .toast-body .manage-consent {
|
@@ -9347,17 +9963,17 @@ var css = `:root {
|
|
9347
9963
|
}
|
9348
9964
|
.aesirxconsent .consent_level {
|
9349
9965
|
border: 2px solid #dedede;
|
9350
|
-
border-radius:
|
9966
|
+
border-radius: 8px;
|
9351
9967
|
padding: 20px;
|
9352
9968
|
position: relative;
|
9353
9969
|
}
|
9354
9970
|
.aesirxconsent .consent_level.active {
|
9355
9971
|
border: 2px solid #1ab394;
|
9356
|
-
background-color: #
|
9972
|
+
background-color: #faffff;
|
9357
9973
|
}
|
9358
9974
|
.aesirxconsent .consent_level .checkbox_img {
|
9359
9975
|
position: absolute;
|
9360
|
-
|
9976
|
+
top: 20px;
|
9361
9977
|
right: 20px;
|
9362
9978
|
}
|
9363
9979
|
.aesirxconsent .consent_level .consent_upgrade_content {
|
@@ -9368,7 +9984,7 @@ var css = `:root {
|
|
9368
9984
|
padding: 10px;
|
9369
9985
|
}
|
9370
9986
|
.aesirxconsent .consent_level .checkbox_img {
|
9371
|
-
|
9987
|
+
top: 10px;
|
9372
9988
|
right: 10px;
|
9373
9989
|
}
|
9374
9990
|
}
|
@@ -9382,12 +9998,21 @@ var css = `:root {
|
|
9382
9998
|
.aesirxconsent .d-flex.w-100 {
|
9383
9999
|
width: 100%;
|
9384
10000
|
}
|
10001
|
+
.aesirxconsent .d-flex.w-lg-30 {
|
10002
|
+
width: 30%;
|
10003
|
+
}
|
10004
|
+
.aesirxconsent .d-flex.w-lg-35 {
|
10005
|
+
width: 35%;
|
10006
|
+
}
|
9385
10007
|
.aesirxconsent .d-flex.justify-content-between {
|
9386
10008
|
justify-content: space-between;
|
9387
10009
|
}
|
9388
10010
|
.aesirxconsent .d-flex.justify-content-center {
|
9389
10011
|
justify-content: center;
|
9390
10012
|
}
|
10013
|
+
.aesirxconsent .d-flex.justify-content-end {
|
10014
|
+
justify-content: end;
|
10015
|
+
}
|
9391
10016
|
.aesirxconsent .btn.rounded-pill {
|
9392
10017
|
border-radius: var(--aesirxconsent-border-radius-pill);
|
9393
10018
|
}
|
@@ -9407,6 +10032,10 @@ var css = `:root {
|
|
9407
10032
|
.aesirxconsent .cursor-pointer {
|
9408
10033
|
cursor: pointer;
|
9409
10034
|
}
|
10035
|
+
.aesirxconsent .form-check-input {
|
10036
|
+
width: 16px;
|
10037
|
+
height: 16px;
|
10038
|
+
}
|
9410
10039
|
@-webkit-keyframes flash {
|
9411
10040
|
from {
|
9412
10041
|
opacity: 0;
|
@@ -9533,6 +10162,10 @@ body.modal-sso-open .aesirxconsent .toast-container {
|
|
9533
10162
|
[data-bs-theme=dark] .aesirxconsent .text-primary {
|
9534
10163
|
color: #fff;
|
9535
10164
|
}
|
10165
|
+
[data-bs-theme=dark] .aesirxconsent .text-dark,
|
10166
|
+
[data-bs-theme=dark] .aesirxconsent .text-black {
|
10167
|
+
color: #fff !important;
|
10168
|
+
}
|
9536
10169
|
[data-bs-theme=dark] .aesirxconsent .minimize-shield-wrapper .text {
|
9537
10170
|
color: #fff;
|
9538
10171
|
}
|
@@ -9541,11 +10174,14 @@ body.modal-sso-open .aesirxconsent .toast-container {
|
|
9541
10174
|
}
|
9542
10175
|
[data-bs-theme=dark] .aesirxconsent .toast.custom .consent_info_tab .nav-item button.active {
|
9543
10176
|
color: #fff;
|
9544
|
-
background-color: #
|
10177
|
+
background-color: #1b233f;
|
9545
10178
|
}
|
9546
10179
|
[data-bs-theme=dark] .aesirxconsent .item_compliant {
|
9547
|
-
background-color: #
|
10180
|
+
background-color: #f0f3fb;
|
9548
10181
|
color: #222328;
|
10182
|
+
}
|
10183
|
+
[data-bs-theme=dark] .aesirxconsent .consent_level.active {
|
10184
|
+
background-color: transparent;
|
9549
10185
|
}`;
|
9550
10186
|
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
9551
10187
|
|
@@ -9555,8 +10191,8 @@ var bg_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmcAAADSCAYAAAAP
|
|
9555
10191
|
// src/Assets/privacy.svg
|
9556
10192
|
var privacy_default = 'data:image/svg+xml,<svg width="20" height="17" viewBox="0 0 20 17" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M11.7946 13.3067L12.1398 13.9012L7.58187 13.8988L9.64794 10.3713L7.88422 7.3937L2.32098 16.8938L17.1865 16.9062L17.3906 16.8888L15.2943 13.3017L11.7946 13.3067Z" fill="white"/>%0A<path d="M12.1935 0.0377515L10.0947 3.62237L11.8534 6.60748L12.2036 6.01046L14.4788 9.90852L10.3366 9.89359L8.61317 12.9061L19.7422 12.916L12.3144 0.191981L12.1935 0.0377515Z" fill="white"/>%0A<path d="M8.16315 7.08689C8.61415 7.86053 9.5515 9.45756 9.5515 9.45756L9.58669 9.51726L9.65731 9.51726L12.6582 9.51726L13.1016 9.51726L7.54334 -0.000266561L-0.000288009 12.888L4.21756 12.9004L5.98127 9.90284L5.26316 9.90284L7.53079 6.01225L8.16315 7.08689Z" fill="white"/>%0A</svg>%0A';
|
9557
10193
|
|
9558
|
-
// src/Assets/
|
9559
|
-
var
|
10194
|
+
// src/Assets/check_circle.svg
|
10195
|
+
var check_circle_default = 'data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="7" cy="7" r="7" fill="%231AB394"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.4C3.90721 1.4 1.4 3.90721 1.4 7C1.4 10.0928 3.90721 12.6 7 12.6C10.0928 12.6 12.6 10.0928 12.6 7C12.6 3.90721 10.0928 1.4 7 1.4ZM0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z" fill="%231AB394"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M9.59499 5.10542C9.86835 5.37878 9.86835 5.822 9.59499 6.09537L6.79499 8.89537C6.52162 9.16873 6.0784 9.16873 5.80504 8.89537L4.40504 7.49537C4.13167 7.222 4.13167 6.77878 4.40504 6.50542C4.6784 6.23205 5.12162 6.23205 5.39499 6.50542L6.30001 7.41044L8.60504 5.10542C8.8784 4.83205 9.32162 4.83205 9.59499 5.10542Z" fill="white"/>%0A</svg>%0A';
|
9560
10196
|
|
9561
10197
|
// src/Components/Terms.tsx
|
9562
10198
|
import React, { Fragment, useState as useState2 } from "react";
|
@@ -9570,11 +10206,8 @@ var shield_of_privacy_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA
|
|
9570
10206
|
// src/Assets/concordium.svg
|
9571
10207
|
var concordium_default = 'data:image/svg+xml,<svg width="110" height="22" viewBox="0 0 110 22" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M84.7849 8.09678C84.7727 8.09678 84.7645 8.09678 84.7523 8.09678H82.9869C82.9869 8.09678 82.9747 8.10902 82.9747 8.1294V12.8874C82.9747 12.8996 82.9869 12.9159 82.9951 12.92H84.7564C85.7675 12.9281 86.4565 12.7324 86.8724 12.3166C87.2475 11.9374 87.431 11.3462 87.431 10.5063C87.431 9.6787 87.2516 9.09159 86.8765 8.7165C86.4647 8.30064 85.7797 8.09678 84.7849 8.09678ZM84.8135 14.1553C84.789 14.1553 84.7686 14.1553 84.7442 14.1553H82.9828C82.2979 14.1553 81.7393 13.5886 81.7393 12.8874V8.1294C81.7393 7.43222 82.2979 6.86142 82.9828 6.86142H84.7442C86.0692 6.84104 87.0844 7.17128 87.7367 7.8277C88.3442 8.43926 88.6541 9.3403 88.6541 10.5023C88.6541 11.6642 88.3483 12.5612 87.7408 13.1768C87.0926 13.8373 86.1344 14.1553 84.8135 14.1553ZM34.6326 14.192C32.2964 14.192 30.7227 12.708 30.7227 10.5023C30.7227 8.32918 32.329 6.8125 34.6326 6.8125C35.766 6.8125 36.7364 7.1509 37.4376 7.791C37.5599 7.90108 37.6293 8.05194 37.6415 8.2191C37.6496 8.38626 37.5966 8.54526 37.4866 8.67165C37.3765 8.79397 37.2256 8.86735 37.0625 8.87959C36.8954 8.89182 36.7364 8.83474 36.6141 8.72058C36.1452 8.29248 35.4602 8.06417 34.6367 8.06417C32.961 8.06417 31.9621 8.97336 31.9621 10.4982C31.9621 12.023 32.961 12.9322 34.6367 12.9322C35.4643 12.9322 36.1493 12.7039 36.6141 12.2758C36.7364 12.1657 36.8954 12.1086 37.0625 12.1168C37.2256 12.129 37.3765 12.1983 37.4866 12.3247C37.7108 12.5816 37.6904 12.973 37.4376 13.2054C36.7445 13.8536 35.7742 14.192 34.6326 14.192ZM42.8031 8.06824C41.1274 8.06824 40.1285 8.97744 40.1285 10.5023C40.1285 12.0312 41.1274 12.9444 42.8031 12.9444C44.4788 12.9444 45.4777 12.0312 45.4777 10.5023C45.4777 8.98151 44.4788 8.06824 42.8031 8.06824ZM42.8031 14.192C40.4669 14.192 38.8932 12.708 38.8932 10.5023C38.8932 8.32918 40.4995 6.8125 42.8031 6.8125C45.1393 6.8125 46.7089 8.29249 46.7089 10.5023C46.7089 12.7121 45.1393 14.192 42.8031 14.192ZM53.8439 14.192C53.4035 14.192 53.004 13.9637 52.7757 13.5805L49.5425 8.09271C49.5303 8.0764 49.5221 8.07232 49.5181 8.07232L49.5058 13.5723C49.5058 13.9148 49.2327 14.1961 48.8943 14.1961C48.5518 14.1961 48.2745 13.9148 48.2745 13.5723V8.08455C48.2745 7.38737 48.8331 6.81658 49.5181 6.81658C49.9584 6.81658 50.3579 7.05305 50.5944 7.44853L53.8275 12.9363C53.8316 12.9445 53.8398 12.9485 53.8439 12.9485C53.8561 12.9485 53.8642 12.9404 53.8642 12.9241V7.44853C53.8642 7.09382 54.1333 6.81658 54.4758 6.81658C54.8224 6.81658 55.0955 7.09382 55.0955 7.44853V12.9281C55.0955 13.6253 54.537 14.192 53.8439 14.192ZM60.514 14.192C58.1778 14.192 56.6041 12.708 56.6041 10.5023C56.6041 8.32918 58.2104 6.8125 60.514 6.8125C61.6474 6.8125 62.6178 7.1509 63.319 7.791C63.4413 7.90108 63.5147 8.05194 63.5229 8.2191C63.531 8.38626 63.478 8.54526 63.3679 8.67165C63.2579 8.79397 63.107 8.86735 62.9439 8.87959C62.7768 8.89182 62.6178 8.83474 62.4955 8.72058C62.0266 8.29248 61.3416 8.06417 60.5181 8.06417C58.8424 8.06417 57.8435 8.97336 57.8435 10.4982C57.8435 12.023 58.8424 12.9322 60.5181 12.9322C61.3457 12.9322 62.0266 12.7039 62.4955 12.2758C62.6178 12.1657 62.7768 12.1086 62.9439 12.1168C63.107 12.129 63.2579 12.1983 63.3679 12.3247C63.5922 12.5816 63.5718 12.973 63.319 13.2054C62.63 13.8536 61.6596 14.192 60.514 14.192ZM68.6845 8.06824C67.0088 8.06824 66.0099 8.97744 66.0099 10.5023C66.0099 12.0312 67.0088 12.9444 68.6845 12.9444C70.3602 12.9444 71.3631 12.0312 71.3631 10.5023C71.3631 8.98151 70.3602 8.06824 68.6845 8.06824ZM68.6845 14.192C66.3483 14.192 64.7786 12.708 64.7786 10.5023C64.7786 8.32918 66.385 6.8125 68.6845 6.8125C71.0247 6.8125 72.5944 8.29249 72.5944 10.5023C72.5944 12.7121 71.0247 14.192 68.6845 14.192ZM90.9169 14.192C90.5785 14.192 90.3053 13.9107 90.3053 13.5682V7.44853C90.3053 7.10197 90.5785 6.81658 90.9169 6.81658C91.2593 6.81658 91.5366 7.0979 91.5366 7.44853V13.5723C91.5366 13.9148 91.2593 14.192 90.9169 14.192ZM108.95 14.192C108.607 14.192 108.33 13.9107 108.33 13.5682V8.08455C108.314 8.07232 108.306 8.0764 108.298 8.08455L106.83 10.5063C106.61 10.8896 106.206 11.1261 105.753 11.1261C105.317 11.1261 104.926 10.9018 104.685 10.5063L103.226 8.09271C103.217 8.0764 103.201 8.06824 103.197 8.06824L103.185 13.5682C103.185 13.9107 102.908 14.192 102.565 14.192C102.227 14.192 101.954 13.9107 101.954 13.5682V8.08455C101.954 7.38737 102.512 6.81658 103.197 6.81658C103.629 6.81658 104.033 7.04897 104.273 7.44445L105.733 9.85809C105.745 9.87847 105.753 9.88255 105.757 9.88663C105.749 9.88255 105.77 9.86624 105.778 9.85401L107.233 7.44853C107.478 7.04897 107.869 6.82065 108.31 6.82065C108.995 6.82065 109.553 7.38737 109.553 8.08863V13.5723C109.561 13.9148 109.288 14.192 108.95 14.192ZM96.7634 14.192C95.6952 14.192 94.8594 13.8944 94.2805 13.3114C93.6934 12.7161 93.3957 11.8477 93.3957 10.7306V7.44037C93.3957 7.0979 93.6648 6.82065 93.9992 6.82065C94.3416 6.82065 94.6189 7.0979 94.6189 7.44037V10.7306C94.6189 12.2677 95.2875 12.9485 96.7879 12.9485C98.3086 12.9485 98.961 12.284 98.9691 10.7265V7.44037C98.9691 7.0979 99.2423 6.82065 99.5807 6.82065C99.9191 6.82065 100.192 7.0979 100.192 7.44037V10.7306C100.192 12.9648 98.9854 14.1961 96.7879 14.1961C96.7797 14.192 96.7716 14.192 96.7634 14.192ZM79.5744 14.1961C79.4072 14.1961 79.2442 14.1309 79.13 14.0045L76.1252 10.9426C75.9458 10.7591 75.8969 10.49 75.9988 10.2576C76.1007 10.0253 76.3127 9.88255 76.5573 9.88255H77.8335C78.3839 9.88255 78.865 9.45853 78.865 8.97336C78.865 8.50449 78.3757 8.09271 77.8212 8.09271H75.3954C75.3995 8.09271 75.3831 8.11309 75.3831 8.13348V13.5723C75.3831 13.9148 75.1059 14.1961 74.7634 14.1961C74.425 14.1961 74.1519 13.9148 74.1519 13.5723V8.1294C74.1519 7.43222 74.7104 6.86142 75.3954 6.86142H77.8212C79.0688 6.86142 80.084 7.80731 80.084 8.96928C80.084 10.0742 79.1626 11.016 78.0251 11.1138L79.9943 13.1279C80.1248 13.2502 80.1982 13.4215 80.19 13.6049C80.186 13.7721 80.1085 13.9311 79.978 14.0412C79.868 14.1472 79.7212 14.1961 79.5744 14.1961Z" fill="%23FBFBF9"/>%0A<path d="M3.34322 11.0041C3.34322 15.2239 6.75575 18.6486 10.9633 18.6486C12.0927 18.6486 13.1609 18.3959 14.1271 17.9514V21.5352C13.1242 21.8369 12.0641 22 10.9674 22C4.90882 22 0 17.0749 0 11C0 4.92513 4.9129 0 10.9674 0C12.0682 0 13.1282 0.163084 14.1271 0.464789V4.04855C13.1609 3.60823 12.0927 3.35137 10.9633 3.35137C6.75575 3.35952 3.34322 6.78429 3.34322 11.0041ZM10.9674 15.6642C8.39881 15.6642 6.3195 13.5767 6.3195 11.0041C6.3195 8.43143 8.39881 6.34396 10.9674 6.34396C13.536 6.34396 15.6153 8.43143 15.6153 11.0041C15.6153 13.5767 13.5319 15.6642 10.9674 15.6642ZM20.9033 15.6642H16.9974C17.9881 14.3758 18.5875 12.7613 18.5875 11.0082C18.5875 9.25093 17.9881 7.6364 16.9974 6.34396H20.9033C21.5638 7.75871 21.9388 9.34062 21.9388 11.0082C21.9348 12.6716 21.5638 14.2494 20.9033 15.6642Z" fill="%23FBFBF9"/>%0A</svg>%0A';
|
9572
10208
|
|
9573
|
-
// src/Assets/
|
9574
|
-
var
|
9575
|
-
|
9576
|
-
// src/Assets/check_circle.svg
|
9577
|
-
var check_circle_default = 'data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="7" cy="7" r="7" fill="%231AB394"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.4C3.90721 1.4 1.4 3.90721 1.4 7C1.4 10.0928 3.90721 12.6 7 12.6C10.0928 12.6 12.6 10.0928 12.6 7C12.6 3.90721 10.0928 1.4 7 1.4ZM0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z" fill="%231AB394"/>%0A<path fill-rule="evenodd" clip-rule="evenodd" d="M9.59499 5.10542C9.86835 5.37878 9.86835 5.822 9.59499 6.09537L6.79499 8.89537C6.52162 9.16873 6.0784 9.16873 5.80504 8.89537L4.40504 7.49537C4.13167 7.222 4.13167 6.77878 4.40504 6.50542C4.6784 6.23205 5.12162 6.23205 5.39499 6.50542L6.30001 7.41044L8.60504 5.10542C8.8784 4.83205 9.32162 4.83205 9.59499 5.10542Z" fill="white"/>%0A</svg>%0A';
|
10209
|
+
// src/Assets/arrow.svg
|
10210
|
+
var arrow_default = 'data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_14625_53192)">%0A<path d="M9.00044 9.7125L5.28794 6L4.22744 7.0605L9.00044 11.8335L13.7734 7.0605L12.7129 6L9.00044 9.7125Z" fill="%231AB394"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_14625_53192">%0A<rect width="18" height="18" fill="white" transform="translate(18 18) rotate(-180)"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
|
9578
10211
|
|
9579
10212
|
// src/Components/Terms.tsx
|
9580
10213
|
import { Tab, Tabs } from "react-bootstrap";
|
@@ -9631,7 +10264,14 @@ var terms = [
|
|
9631
10264
|
logos: [shield_of_privacy_default, concordium_default]
|
9632
10265
|
}
|
9633
10266
|
];
|
9634
|
-
var TermsComponent = ({
|
10267
|
+
var TermsComponent = ({
|
10268
|
+
children,
|
10269
|
+
level,
|
10270
|
+
handleLevel,
|
10271
|
+
isCustom = false,
|
10272
|
+
layout,
|
10273
|
+
isRejectedLayout
|
10274
|
+
}) => {
|
9635
10275
|
const { t } = useTranslation();
|
9636
10276
|
const handleReadmore = (status) => {
|
9637
10277
|
setShowReadmore(status);
|
@@ -9642,129 +10282,144 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }
|
|
9642
10282
|
(term, key) => term.level === level && /* @__PURE__ */ React.createElement(Fragment, { key }, /* @__PURE__ */ React.createElement(
|
9643
10283
|
"div",
|
9644
10284
|
{
|
9645
|
-
className: `rounded-top
|
10285
|
+
className: `rounded-top align-items-center justify-content-between p-2 p-lg-3 fw-medium flex-wrap ${isCustom ? "py-2 py-lg-3 px-4 header-consent-bg" : "p-2 p-lg-3 border-bottom bg-white"} ${isRejectedLayout ? "d-none" : "d-flex"}`,
|
9646
10286
|
style: {
|
9647
10287
|
...isCustom && {
|
9648
10288
|
borderBottom: "1px solid #DEDEDE"
|
9649
10289
|
}
|
9650
10290
|
}
|
9651
10291
|
},
|
9652
|
-
/* @__PURE__ */ React.createElement("div", { className: "text-primary text-nowrap" }, isCustom ? t("
|
9653
|
-
/* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center fs-14 text-primary" }, isCustom ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9654
|
-
"
|
10292
|
+
/* @__PURE__ */ React.createElement("div", { className: "text-primary text-nowrap" }, isCustom ? t("txt_tracking_data_privacy") : t(term.name)),
|
10293
|
+
/* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center fs-14 text-primary" }, isCustom ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
10294
|
+
"a",
|
9655
10295
|
{
|
9656
|
-
|
9657
|
-
|
9658
|
-
|
9659
|
-
|
9660
|
-
|
9661
|
-
|
9662
|
-
|
9663
|
-
|
9664
|
-
|
9665
|
-
|
9666
|
-
|
9667
|
-
|
9668
|
-
|
9669
|
-
|
10296
|
+
href: "https://shield.aesirx.io/",
|
10297
|
+
rel: "noreferrer",
|
10298
|
+
target: "_blank",
|
10299
|
+
className: "minimize-shield-wrapper position-relative text-decoration-none"
|
10300
|
+
},
|
10301
|
+
/* @__PURE__ */ React.createElement(
|
10302
|
+
"img",
|
10303
|
+
{
|
10304
|
+
className: "cover-img position-absolute h-100 w-100 object-fit-cover z-1",
|
10305
|
+
src: bg_default
|
10306
|
+
}
|
10307
|
+
),
|
10308
|
+
/* @__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"))
|
10309
|
+
)) : /* @__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))))
|
10310
|
+
), /* @__PURE__ */ React.createElement("div", { className: `pb-3 ${isCustom ? "pt-0" : "p-3"} bg-white` }, isCustom ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
9670
10311
|
Tabs,
|
9671
10312
|
{
|
9672
10313
|
id: "consent_info_tab",
|
9673
10314
|
activeKey: activeTab,
|
9674
10315
|
onSelect: (k) => setActiveTab(k),
|
9675
|
-
className:
|
10316
|
+
className: `mb-2 mb-lg-4 w-100 flex-nowrap consent_info_tab ${isRejectedLayout ? "d-none" : ""}`
|
9676
10317
|
},
|
9677
|
-
/* @__PURE__ */ React.createElement(
|
9678
|
-
|
9679
|
-
{
|
9680
|
-
level: term.level,
|
9681
|
-
tier: t(term.tier),
|
9682
|
-
levelname: t(term.levelname),
|
9683
|
-
term_custom: t(term.term_custom),
|
9684
|
-
content_custom: t(term.content_custom)
|
9685
|
-
}
|
9686
|
-
)),
|
9687
|
-
/* @__PURE__ */ React.createElement(Tab, { eventKey: "detail", title: "Detail", className: "px-3" }, /* @__PURE__ */ React.createElement(
|
9688
|
-
"div",
|
10318
|
+
/* @__PURE__ */ React.createElement(
|
10319
|
+
Tab,
|
9689
10320
|
{
|
9690
|
-
|
10321
|
+
eventKey: "consent",
|
10322
|
+
title: "Consent Management",
|
10323
|
+
className: "w-auto px-3 px-lg-4"
|
9691
10324
|
},
|
9692
|
-
/* @__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(
|
10325
|
+
isRejectedLayout ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mt-0 pt-4 mb-2" }, t("txt_you_have_chosen")), /* @__PURE__ */ React.createElement("p", { className: "mt-2 mb-3" }, t("txt_only_anonymized")), /* @__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(
|
9693
10326
|
"div",
|
9694
10327
|
{
|
9695
10328
|
dangerouslySetInnerHTML: {
|
9696
|
-
__html: t("
|
10329
|
+
__html: t("txt_consent_allow_data", {
|
9697
10330
|
interpolation: { escapeValue: false }
|
9698
10331
|
})
|
9699
10332
|
}
|
9700
10333
|
}
|
9701
|
-
))),
|
9702
|
-
/* @__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(
|
10334
|
+
))), /* @__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(
|
9703
10335
|
"div",
|
9704
10336
|
{
|
9705
10337
|
dangerouslySetInnerHTML: {
|
9706
|
-
__html: t("
|
10338
|
+
__html: t("txt_decentralized_consent_allow_data", {
|
9707
10339
|
interpolation: { escapeValue: false }
|
9708
10340
|
})
|
9709
10341
|
}
|
9710
10342
|
}
|
9711
|
-
))),
|
9712
|
-
|
9713
|
-
|
9714
|
-
|
9715
|
-
|
9716
|
-
|
9717
|
-
|
9718
|
-
}
|
9719
|
-
}
|
10343
|
+
)))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mt-0 mb-2 text-black fw-semibold" }, t("txt_manage_your_consent")), /* @__PURE__ */ React.createElement("p", { className: "mt-0 mb-3" }, layout === "simple-consent-mode" ? t("txt_choose_how_we_use_simple") : t("txt_choose_how_we_use")), /* @__PURE__ */ React.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React.createElement("p", { className: "mb-2 text-black" }, t("txt_by_consenting")), /* @__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("div", null, t("txt_analytics_behavioral")))), /* @__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("div", null, t("txt_form_data"))))), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", { className: "mb-2 text-black" }, t("txt_please_note")), /* @__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("div", null, t("txt_we_do_not_share")))), /* @__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("div", null, t("txt_you_can_opt_in")))), /* @__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("div", null, t("txt_for_more_details"))))))
|
10344
|
+
),
|
10345
|
+
/* @__PURE__ */ React.createElement(Tab, { eventKey: "detail", title: "Details", className: "px-3 px-lg-4" }, /* @__PURE__ */ React.createElement("div", { className: `about_section` }, /* @__PURE__ */ React.createElement("p", { className: "mt-0 mb-2 text-black fw-semibold" }, t("txt_manage_your_consent")), /* @__PURE__ */ React.createElement("p", { className: "mt-0 mb-3" }, layout === "simple-consent-mode" ? t("txt_choose_how_we_use_simple") : t("txt_choose_how_we_use")), /* @__PURE__ */ React.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React.createElement("p", { className: "mb-2 text-black fw-semibold" }, t("txt_benefit")), /* @__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(
|
10346
|
+
"div",
|
10347
|
+
{
|
10348
|
+
dangerouslySetInnerHTML: {
|
10349
|
+
__html: t("txt_control_your_data", {
|
10350
|
+
interpolation: { escapeValue: false }
|
10351
|
+
})
|
9720
10352
|
}
|
9721
|
-
|
9722
|
-
|
9723
|
-
|
9724
|
-
|
9725
|
-
|
9726
|
-
|
9727
|
-
|
9728
|
-
|
9729
|
-
levelname: t("txt_tier_1_levelname"),
|
9730
|
-
term_custom: t("txt_tier_1_term_custom"),
|
9731
|
-
content_custom: t("txt_tier_1_content_custom")
|
10353
|
+
}
|
10354
|
+
))), /* @__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(
|
10355
|
+
"div",
|
10356
|
+
{
|
10357
|
+
dangerouslySetInnerHTML: {
|
10358
|
+
__html: t("txt_earn_rewards", {
|
10359
|
+
interpolation: { escapeValue: false }
|
10360
|
+
})
|
9732
10361
|
}
|
9733
|
-
|
9734
|
-
|
9735
|
-
|
9736
|
-
|
9737
|
-
|
9738
|
-
|
9739
|
-
|
9740
|
-
|
9741
|
-
content_custom: t("txt_tier_2_content_custom")
|
10362
|
+
}
|
10363
|
+
))), /* @__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(
|
10364
|
+
"div",
|
10365
|
+
{
|
10366
|
+
dangerouslySetInnerHTML: {
|
10367
|
+
__html: t("txt_transparent_data", {
|
10368
|
+
interpolation: { escapeValue: false }
|
10369
|
+
})
|
9742
10370
|
}
|
9743
|
-
|
9744
|
-
|
9745
|
-
|
9746
|
-
|
9747
|
-
|
9748
|
-
|
9749
|
-
|
9750
|
-
|
10371
|
+
}
|
10372
|
+
)))), /* @__PURE__ */ React.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React.createElement("p", { className: "mb-2 text-black fw-semibold" }, t("txt_understanding_your_privacy")), /* @__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(
|
10373
|
+
"div",
|
10374
|
+
{
|
10375
|
+
dangerouslySetInnerHTML: {
|
10376
|
+
__html: t("txt_reject_no_data", {
|
10377
|
+
interpolation: { escapeValue: false }
|
10378
|
+
})
|
9751
10379
|
}
|
9752
|
-
|
9753
|
-
|
9754
|
-
|
9755
|
-
|
9756
|
-
|
9757
|
-
|
9758
|
-
|
9759
|
-
|
10380
|
+
}
|
10381
|
+
))), /* @__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(
|
10382
|
+
"div",
|
10383
|
+
{
|
10384
|
+
dangerouslySetInnerHTML: {
|
10385
|
+
__html: t("txt_consent_first_third_party", {
|
10386
|
+
interpolation: { escapeValue: false }
|
10387
|
+
})
|
10388
|
+
}
|
10389
|
+
}
|
10390
|
+
))), layout === "simple-consent-mode" ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__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(
|
10391
|
+
"div",
|
10392
|
+
{
|
10393
|
+
dangerouslySetInnerHTML: {
|
10394
|
+
__html: t("txt_decentralizered_consent_choose", {
|
10395
|
+
interpolation: { escapeValue: false }
|
10396
|
+
})
|
10397
|
+
}
|
10398
|
+
}
|
10399
|
+
)))))),
|
10400
|
+
/* @__PURE__ */ React.createElement(Tab, { eventKey: "about", title: "About", className: "px-3 px-lg-4" }, /* @__PURE__ */ React.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React.createElement("p", { className: "mb-2 text-black fw-semibold" }, t("txt_our_commitment_in_action")), /* @__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(
|
10401
|
+
"div",
|
10402
|
+
{
|
10403
|
+
dangerouslySetInnerHTML: {
|
10404
|
+
__html: t("txt_private_protection", {
|
10405
|
+
interpolation: { escapeValue: false }
|
10406
|
+
})
|
10407
|
+
}
|
10408
|
+
}
|
10409
|
+
))), /* @__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(
|
10410
|
+
"div",
|
10411
|
+
{
|
10412
|
+
dangerouslySetInnerHTML: {
|
10413
|
+
__html: t("txt_enables_compliance", {
|
10414
|
+
interpolation: { escapeValue: false }
|
10415
|
+
})
|
9760
10416
|
}
|
9761
|
-
|
9762
|
-
)),
|
9763
|
-
/* @__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(
|
10417
|
+
}
|
10418
|
+
))), /* @__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(
|
9764
10419
|
"div",
|
9765
10420
|
{
|
9766
10421
|
dangerouslySetInnerHTML: {
|
9767
|
-
__html: t("
|
10422
|
+
__html: t("txt_proactive_protection", {
|
9768
10423
|
interpolation: { escapeValue: false }
|
9769
10424
|
})
|
9770
10425
|
}
|
@@ -9773,7 +10428,7 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }
|
|
9773
10428
|
"div",
|
9774
10429
|
{
|
9775
10430
|
dangerouslySetInnerHTML: {
|
9776
|
-
__html: t("
|
10431
|
+
__html: t("txt_flexible_consent", {
|
9777
10432
|
interpolation: { escapeValue: false }
|
9778
10433
|
})
|
9779
10434
|
}
|
@@ -9782,7 +10437,7 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }
|
|
9782
10437
|
"div",
|
9783
10438
|
{
|
9784
10439
|
dangerouslySetInnerHTML: {
|
9785
|
-
__html: t("
|
10440
|
+
__html: t("txt_learn_more", {
|
9786
10441
|
interpolation: { escapeValue: false }
|
9787
10442
|
})
|
9788
10443
|
}
|
@@ -9791,13 +10446,22 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }
|
|
9791
10446
|
"div",
|
9792
10447
|
{
|
9793
10448
|
dangerouslySetInnerHTML: {
|
9794
|
-
__html: t("
|
10449
|
+
__html: t("txt_for_business", {
|
9795
10450
|
interpolation: { escapeValue: false }
|
9796
10451
|
})
|
9797
10452
|
}
|
9798
10453
|
}
|
9799
|
-
))), /* @__PURE__ */ React.createElement("div", { className: "
|
9800
|
-
|
10454
|
+
))), /* @__PURE__ */ React.createElement("div", { className: "ms-4" }, /* @__PURE__ */ React.createElement(
|
10455
|
+
"div",
|
10456
|
+
{
|
10457
|
+
dangerouslySetInnerHTML: {
|
10458
|
+
__html: t("txt_more_info_at", {
|
10459
|
+
interpolation: { escapeValue: false }
|
10460
|
+
})
|
10461
|
+
}
|
10462
|
+
}
|
10463
|
+
))))
|
10464
|
+
)) : /* @__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(
|
9801
10465
|
"a",
|
9802
10466
|
{
|
9803
10467
|
className: "fs-14 text-success fw-bold mb-1",
|
@@ -9825,12 +10489,6 @@ var TermsComponent = ({ children, level, handleLevel, isCustom = false, layout }
|
|
9825
10489
|
), /* @__PURE__ */ React.createElement("div", { className: "position-relative pt-2 pt-lg-3 p-3" }, showReadmore && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "mb-3" }, term.upgrade && t(term.upgrade), t(term.upgradetext), /* @__PURE__ */ React.createElement("div", { className: "fs-14 fst-italic" }, "* ", t("txt_no_collect")))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center justify-content-between flex-wrap" }, /* @__PURE__ */ React.createElement("div", { className: "me-2" }, /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: t(term.name) }), " ", t("txt_shield_of_privacy")), children))))
|
9826
10490
|
));
|
9827
10491
|
};
|
9828
|
-
var ConsentLevel = ({ level, tier, levelname, term_custom, content_custom }) => {
|
9829
|
-
return /* @__PURE__ */ React.createElement("div", { className: "consent_level mt-2 mt-lg-3" }, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center justify-content-between flex-wrap mb-2" }, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center" }, /* @__PURE__ */ React.createElement("div", { className: `status-tier tier-${level} rounded-circle` }), /* @__PURE__ */ React.createElement("div", { className: "status-tier-text fw-semibold fs-14 text-primary" }, tier, " - ", levelname)), /* @__PURE__ */ React.createElement("div", { className: "fw-semibold fs-14 text-primary" }, term_custom)), /* @__PURE__ */ React.createElement("div", null, content_custom));
|
9830
|
-
};
|
9831
|
-
|
9832
|
-
// src/Assets/yes.svg
|
9833
|
-
var yes_default = 'data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M9 1C7.41775 1 5.87103 1.46919 4.55544 2.34824C3.23985 3.22729 2.21447 4.47672 1.60897 5.93853C1.00347 7.40034 0.84504 9.00887 1.15372 10.5607C1.4624 12.1126 2.22433 13.538 3.34315 14.6569C4.46197 15.7757 5.88743 16.5376 7.43928 16.8463C8.99113 17.155 10.5997 16.9965 12.0615 16.391C13.5233 15.7855 14.7727 14.7602 15.6518 13.4446C16.5308 12.129 17 10.5823 17 9C17 6.87827 16.1571 4.84344 14.6569 3.34315C13.1566 1.84285 11.1217 1 9 1V1ZM9 16C7.61553 16 6.26216 15.5895 5.11101 14.8203C3.95987 14.0511 3.06266 12.9579 2.53285 11.6788C2.00303 10.3997 1.86441 8.99223 2.13451 7.63437C2.4046 6.2765 3.07129 5.02922 4.05026 4.05025C5.02922 3.07128 6.2765 2.4046 7.63437 2.1345C8.99224 1.86441 10.3997 2.00303 11.6788 2.53284C12.9579 3.06266 14.0511 3.95986 14.8203 5.11101C15.5895 6.26215 16 7.61553 16 9C16 10.8565 15.2625 12.637 13.9498 13.9497C12.637 15.2625 10.8565 16 9 16Z" fill="white"/>%0A<path d="M13.9985 6.04969C13.9048 5.95657 13.7781 5.9043 13.646 5.9043C13.5139 5.9043 13.3872 5.95657 13.2935 6.04969L7.7435 11.5747L4.7435 8.57469C4.652 8.4759 4.52501 8.4175 4.39045 8.41234C4.25589 8.40719 4.1248 8.45569 4.026 8.54719C3.92721 8.63869 3.86881 8.76569 3.86365 8.90025C3.8585 9.03481 3.907 9.1659 3.9985 9.26469L7.7435 12.9997L13.9985 6.75969C14.0454 6.71321 14.0826 6.65791 14.108 6.59698C14.1333 6.53605 14.1464 6.4707 14.1464 6.40469C14.1464 6.33869 14.1333 6.27333 14.108 6.21241C14.0826 6.15148 14.0454 6.09618 13.9985 6.04969Z" fill="white"/>%0A</svg>%0A';
|
9834
10492
|
|
9835
10493
|
// src/Assets/no.svg
|
9836
10494
|
var no_default = 'data:image/svg+xml,<svg width="18" height="19" viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M9 2C13.1421 2 16.5 5.35786 16.5 9.5C16.5 13.6421 13.1421 17 9 17C4.85786 17 1.5 13.6421 1.5 9.5C1.5 5.35786 4.85786 2 9 2ZM9 3.125C5.47918 3.125 2.625 5.97918 2.625 9.5C2.625 13.0208 5.47918 15.875 9 15.875C12.5208 15.875 15.375 13.0208 15.375 9.5C15.375 5.97918 12.5208 3.125 9 3.125ZM11.5847 6.79779L11.6477 6.85225C11.8474 7.05195 11.8656 7.36445 11.7022 7.58466L11.6477 7.64775L9.79575 9.5L11.6477 11.3523C11.8474 11.552 11.8656 11.8645 11.7022 12.0847L11.6477 12.1477C11.448 12.3474 11.1355 12.3656 10.9153 12.2022L10.8523 12.1477L9 10.2957L7.14775 12.1477C6.94805 12.3474 6.63555 12.3656 6.41534 12.2022L6.35225 12.1477C6.15255 11.948 6.1344 11.6355 6.29779 11.4153L6.35225 11.3523L8.20425 9.5L6.35225 7.64775C6.15255 7.44805 6.1344 7.13555 6.29779 6.91534L6.35225 6.85225C6.55195 6.65255 6.86445 6.6344 7.08466 6.79779L7.14775 6.85225L9 8.70425L10.8523 6.85225C11.052 6.65255 11.3645 6.6344 11.5847 6.79779Z" fill="%231AB394"/>%0A</svg>%0A';
|
@@ -9935,7 +10593,7 @@ var ConnectMetamask = () => {
|
|
9935
10593
|
var connect_default = ConnectMetamask;
|
9936
10594
|
|
9937
10595
|
// src/Components/Connect.tsx
|
9938
|
-
import { useAccount
|
10596
|
+
import { useAccount } from "wagmi";
|
9939
10597
|
var ConnectModal = ({
|
9940
10598
|
isConnecting,
|
9941
10599
|
handleOnConnect,
|
@@ -10001,7 +10659,7 @@ var ConnectModal = ({
|
|
10001
10659
|
));
|
10002
10660
|
};
|
10003
10661
|
var SSOEthereumApp = ({ handleOnConnect }) => {
|
10004
|
-
const { isConnected } =
|
10662
|
+
const { isConnected } = useAccount({
|
10005
10663
|
onConnect() {
|
10006
10664
|
handleOnConnect("", "metamask");
|
10007
10665
|
}
|
@@ -10120,34 +10778,111 @@ var chains = [
|
|
10120
10778
|
zkSync,
|
10121
10779
|
zkSyncTestnet
|
10122
10780
|
];
|
10123
|
-
var
|
10124
|
-
|
10125
|
-
|
10126
|
-
|
10127
|
-
|
10128
|
-
|
10129
|
-
|
10130
|
-
|
10131
|
-
|
10132
|
-
|
10133
|
-
|
10134
|
-
|
10135
|
-
|
10781
|
+
var SSOEthereumProvider = ({ children, layout, level }) => {
|
10782
|
+
const projectId = CONCORDIUM_WALLET_CONNECT_PROJECT_ID2;
|
10783
|
+
const { publicClient, webSocketPublicClient } = configureChains(chains, [
|
10784
|
+
w3mProvider({ projectId })
|
10785
|
+
]);
|
10786
|
+
const revoke = sessionStorage.getItem("aesirx-analytics-revoke");
|
10787
|
+
const wagmiConfig = (layout === "simple-consent-mode" || layout === "simple-web-2" || level === 1) && (!revoke || revoke === "0" || revoke === "1") ? {} : createConfig({
|
10788
|
+
autoConnect: true,
|
10789
|
+
connectors: w3mConnectors({ projectId, chains }),
|
10790
|
+
publicClient,
|
10791
|
+
webSocketPublicClient
|
10792
|
+
});
|
10793
|
+
const ethereumClient = new EthereumClient(wagmiConfig, chains);
|
10794
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, (layout === "simple-consent-mode" || layout === "simple-web-2" || level === 1) && (!revoke || revoke === "0" || revoke === "1") ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, children) : /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement(WagmiConfig, { config: wagmiConfig }, children), /* @__PURE__ */ React5.createElement(Web3Modal, { projectId, ethereumClient })));
|
10136
10795
|
};
|
10137
10796
|
var Ethereum_default = SSOEthereumProvider;
|
10138
10797
|
|
10798
|
+
// src/utils/Concordium.ts
|
10799
|
+
import {
|
10800
|
+
AccountAddress,
|
10801
|
+
ContractAddress,
|
10802
|
+
deserializeReceiveReturnValue,
|
10803
|
+
ReceiveName,
|
10804
|
+
ReturnValue,
|
10805
|
+
SchemaVersion,
|
10806
|
+
ContractName,
|
10807
|
+
EntrypointName
|
10808
|
+
} from "@concordium/web-sdk";
|
10809
|
+
|
10810
|
+
// src/utils/config.ts
|
10811
|
+
var NFT_SMARTCONTRACT = {
|
10812
|
+
index: 8602,
|
10813
|
+
subIndex: 0,
|
10814
|
+
name: "aesirx_web3_web3id",
|
10815
|
+
schema: "//8DAQAAABIAAABhZXNpcnhfd2ViM193ZWIzaWQACgAAAAkAAABiYWxhbmNlT2YGEAEU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XIABAAAAAgAAAB0b2tlbl9pZB0ABgAAAGFtb3VudBslAAAABAAAAGZyb20VAgAAAAcAAABBY2NvdW50AQEAAAALCAAAAENvbnRyYWN0AQEAAAAMAgAAAHRvFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADA"
|
10816
|
+
};
|
10817
|
+
var NFT_SMARTCONTRACT_TESTNET = {
|
10818
|
+
index: 6740,
|
10819
|
+
subIndex: 0,
|
10820
|
+
name: "aesirx_web3_web3id_testnet_v1_2_1",
|
10821
|
+
schema: "//8DAQAAACEAAABhZXNpcnhfd2ViM193ZWIzaWRfdGVzdG5ldF92MV8yXzEACgAAAAkAAABiYWxhbmNlT2YGEAEUAAIAAAAIAAAAdG9rZW5faWQdAAcAAABhZGRyZXNzFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADBABGyUAAAAVBAAAAA4AAABJbnZhbGlkVG9rZW5JZAIRAAAASW5zdWZmaWNpZW50RnVuZHMCDAAAAFVuYXV0aG9yaXplZAIGAAAAQ3VzdG9tAQEAAAAVBgAAAAsAAABQYXJzZVBhcmFtcwIHAAAATG9nRnVsbAIMAAAATG9nTWFsZm9ybWVkAhQAAABUb2tlbklkQWxyZWFkeUV4aXN0cwITAAAASW52b2tlQ29udHJhY3RFcnJvcgINAAAASW52YWxpZFdlYjNJZAIUAAAAZ2xvYmFsVXBkYXRlT3BlcmF0b3IEEAEUAAIAAAAGAAAAdXBkYXRlFQIAAAAGAAAAUmVtb3ZlAgMAAABBZGQCCAAAAG9wZXJhdG9yFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADBUEAAAADgAAAEludmFsaWRUb2tlbklkAhEAAABJbnN1ZmZpY2llbnRGdW5kcwIMAAAAVW5hdXRob3JpemVkAgYAAABDdXN0b20BAQAAABUGAAAACwAAAFBhcnNlUGFyYW1zAgcAAABMb2dGdWxsAgwAAABMb2dNYWxmb3JtZWQCFAAAAF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WRkAgUAAABvd25lchUCAAAABwAAAEFjY291bnQBAQAAAAsIAAAAQ29udHJhY3QBAQAAAAwIAAAAb3BlcmF0b3IVAgAAAAcAAABBY2NvdW50AQEAAAALCAAAAENvbnRyYWN0AQEAAAAM/QQAAABCdXJuAAMAAAAIAAAAdG9rZW5faWQdAAYAAABhbW91bnQbJQAAAAUAAABvd25lchUCAAAABwAAAEFjY291bnQBAQAAAAsIAAAAQ29udHJhY3QBAQAAAAz+BAAAAE1pbnQAAwAAAAgAAAB0b2tlbl9pZB0ABgAAAGFtb3VudBslAAAABQAAAG93bmVyFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADP8IAAAAVHJhbnNmZXIABAAAAAgAAAB0b2tlbl9pZB0ABgAAAGFtb3VudBslAAAABAAAAGZyb20VAgAAAAcAAABBY2NvdW50AQEAAAALCAAAAENvbnRyYWN0AQEAAAAMAgAAAHRvFQIAAAAHAAAAQWNjb3VudAEBAAAACwgAAABDb250cmFjdAEBAAAADA=="
|
10822
|
+
};
|
10823
|
+
|
10824
|
+
// src/utils/Concordium.ts
|
10825
|
+
var invokeSmartContract = async (account, name, index, subIndex, schema, method, rpcClient) => {
|
10826
|
+
try {
|
10827
|
+
const res = await rpcClient.invokeContract({
|
10828
|
+
invoker: AccountAddress.fromBase58(account),
|
10829
|
+
method: ReceiveName.fromString(`${name}.${method}`),
|
10830
|
+
contract: ContractAddress.create(index, subIndex)
|
10831
|
+
});
|
10832
|
+
if (!res || res.tag === "failure" || !res.returnValue) {
|
10833
|
+
throw new Error(
|
10834
|
+
`RPC call 'invokeContract' on method '${name}.view' of contract '${method}' failed`
|
10835
|
+
);
|
10836
|
+
}
|
10837
|
+
const returnValue = await deserializeReceiveReturnValue(
|
10838
|
+
ReturnValue.toBuffer(res.returnValue),
|
10839
|
+
Buffer.from(schema, "base64"),
|
10840
|
+
ContractName.fromString(name),
|
10841
|
+
EntrypointName.fromString(method),
|
10842
|
+
SchemaVersion.V2
|
10843
|
+
);
|
10844
|
+
console.log("invokeSmartContract", returnValue);
|
10845
|
+
return returnValue;
|
10846
|
+
} catch (error) {
|
10847
|
+
console.log("invokeSmartContract error", error);
|
10848
|
+
return null;
|
10849
|
+
}
|
10850
|
+
};
|
10851
|
+
var getWeb3ID = async (account, gRPCClient, network) => {
|
10852
|
+
try {
|
10853
|
+
const dataNFT = await invokeSmartContract(
|
10854
|
+
account,
|
10855
|
+
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.name : NFT_SMARTCONTRACT.name,
|
10856
|
+
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.index : NFT_SMARTCONTRACT.index,
|
10857
|
+
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.subIndex : NFT_SMARTCONTRACT.subIndex,
|
10858
|
+
network === "testnet" ? NFT_SMARTCONTRACT_TESTNET.schema : NFT_SMARTCONTRACT.schema,
|
10859
|
+
"view",
|
10860
|
+
gRPCClient
|
10861
|
+
);
|
10862
|
+
const nft = dataNFT?.state?.find((arrVal) => account === arrVal[0]?.Account[0]);
|
10863
|
+
if (nft) {
|
10864
|
+
const tokens = nft[1]["owned_tokens"];
|
10865
|
+
if (tokens) {
|
10866
|
+
return true;
|
10867
|
+
}
|
10868
|
+
}
|
10869
|
+
} catch (error) {
|
10870
|
+
return false;
|
10871
|
+
}
|
10872
|
+
return false;
|
10873
|
+
};
|
10874
|
+
|
10139
10875
|
export {
|
10140
|
-
getWeb3ID,
|
10141
10876
|
BROWSER_WALLET,
|
10142
10877
|
WALLET_CONNECT,
|
10143
10878
|
useConsentStatus_default,
|
10144
10879
|
bg_default,
|
10145
10880
|
privacy_default,
|
10146
|
-
|
10881
|
+
check_circle_default,
|
10147
10882
|
TermsComponent,
|
10148
|
-
yes_default,
|
10149
10883
|
no_default,
|
10150
10884
|
LoadingStatus,
|
10151
10885
|
Connect_default,
|
10152
|
-
Ethereum_default
|
10886
|
+
Ethereum_default,
|
10887
|
+
getWeb3ID
|
10153
10888
|
};
|