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