aesirx-analytics 2.2.20 → 2.3.0

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.
@@ -7,7 +7,7 @@ import {
7
7
  WALLET_CONNECT,
8
8
  getWeb3ID,
9
9
  useConsentStatus_default
10
- } from "./chunk-TDFENDG7.js";
10
+ } from "./chunk-IAQD6GXT.js";
11
11
  import {
12
12
  AnalyticsContext,
13
13
  agreeConsents,
@@ -24,12 +24,12 @@ import {
24
24
  revokeConsents,
25
25
  useTranslation,
26
26
  verifySignature
27
- } from "./chunk-HGACFQLI.js";
27
+ } from "./chunk-NKOHXSTE.js";
28
28
 
29
29
  // src/Components/Consent.tsx
30
30
  import React, { Suspense, useContext, useEffect, useState } from "react";
31
31
  import { Button, Form } from "react-bootstrap";
32
- import { ToastContainer, toast } from "react-toastify";
32
+ import { toast } from "react-toastify";
33
33
 
34
34
  // src/Assets/yes.svg
35
35
  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';
@@ -599,7 +599,7 @@ var ConsentComponentApp = (props) => {
599
599
  (gtagId || gtmId) && loadConsentDefault(gtagId, gtmId);
600
600
  }, [layout]);
601
601
  console.log("level", uuid, level, web3ID, account, loading);
602
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(ToastContainer, null), /* @__PURE__ */ React.createElement("div", { className: `offcanvas-backdrop fade ${showBackdrop && show ? "show" : "d-none"}` }), /* @__PURE__ */ React.createElement(
602
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: `offcanvas-backdrop fade ${showBackdrop && show ? "show" : "d-none"}` }), /* @__PURE__ */ React.createElement(
603
603
  "div",
604
604
  {
605
605
  tabIndex: -1,
@@ -615,7 +615,8 @@ var ConsentComponentApp = (props) => {
615
615
  "img",
616
616
  {
617
617
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
618
- src: bg_default
618
+ src: bg_default,
619
+ alt: "Background Image"
619
620
  }
620
621
  ), /* @__PURE__ */ React.createElement(
621
622
  "div",
@@ -628,7 +629,7 @@ var ConsentComponentApp = (props) => {
628
629
  setShowExpandRevoke(true);
629
630
  }
630
631
  },
631
- /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }),
632
+ /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "SoP Icon" }),
632
633
  t("txt_shield_of_privacy")
633
634
  )), showExpandRevoke && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
634
635
  "div",
@@ -638,7 +639,7 @@ var ConsentComponentApp = (props) => {
638
639
  setShowExpandRevoke(false);
639
640
  }
640
641
  },
641
- /* @__PURE__ */ React.createElement("img", { src: no_default })
642
+ /* @__PURE__ */ React.createElement("img", { src: no_default, alt: "No Icon" })
642
643
  ), /* @__PURE__ */ React.createElement("div", { className: "p-3 bg-white text" }, t("txt_you_can_revoke"), " ", /* @__PURE__ */ React.createElement("br", null), t("txt_visit"), " ", /* @__PURE__ */ React.createElement(
643
644
  "a",
644
645
  {
@@ -652,9 +653,10 @@ var ConsentComponentApp = (props) => {
652
653
  "img",
653
654
  {
654
655
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
655
- src: bg_default
656
+ src: bg_default,
657
+ alt: "Background Image"
656
658
  }
657
- ), /* @__PURE__ */ React.createElement("div", { className: "position-relative p-3" }, /* @__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: "Shield of Privacy" }), " ", t("txt_shield_of_privacy")), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center" }, /* @__PURE__ */ React.createElement(
659
+ ), /* @__PURE__ */ React.createElement("div", { className: "position-relative p-3" }, /* @__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: "SoP Icon" }), " ", t("txt_shield_of_privacy")), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center" }, /* @__PURE__ */ React.createElement(
658
660
  "a",
659
661
  {
660
662
  className: "text-success text-decoration-underline manage-consent fs-14",
@@ -691,7 +693,8 @@ var ConsentComponentApp = (props) => {
691
693
  "img",
692
694
  {
693
695
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
694
- src: bg_default
696
+ src: bg_default,
697
+ alt: "Background Image"
695
698
  }
696
699
  ), /* @__PURE__ */ React.createElement(
697
700
  "div",
@@ -702,7 +705,7 @@ var ConsentComponentApp = (props) => {
702
705
  sessionStorage.removeItem("aesirx-analytics-rejected");
703
706
  }
704
707
  },
705
- /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }),
708
+ /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "SoP Icon" }),
706
709
  t("txt_shield_of_privacy")
707
710
  ))) : /* @__PURE__ */ React.createElement(React.Fragment, null, level ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(TermsComponent, { level, handleLevel, layout }, /* @__PURE__ */ React.createElement(Form, { className: "mb-0" }, /* @__PURE__ */ React.createElement(
708
711
  Form.Check,
@@ -733,7 +736,7 @@ var ConsentComponentApp = (props) => {
733
736
  SSOButton,
734
737
  {
735
738
  className: "btn btn-success text-white d-flex align-items-center loginSSO",
736
- text: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("img", { src: yes_default, className: "me-1" }), t("txt_yes_i_consent")),
739
+ text: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("img", { src: yes_default, className: "me-1", alt: "Yes Icon" }), t("txt_yes_i_consent")),
737
740
  ssoState: "noscopes",
738
741
  onGetData,
739
742
  ...level === 2 ? { noCreateAccount: true } : {}
@@ -753,7 +756,7 @@ var ConsentComponentApp = (props) => {
753
756
  role: "status",
754
757
  "aria-hidden": "true"
755
758
  }
756
- ) : /* @__PURE__ */ React.createElement("img", { src: yes_default, className: "me-1" }),
759
+ ) : /* @__PURE__ */ React.createElement("img", { src: yes_default, className: "me-1", alt: "Yes Icon" }),
757
760
  t("txt_yes_i_consent")
758
761
  ), /* @__PURE__ */ React.createElement(
759
762
  Button,
@@ -762,7 +765,7 @@ var ConsentComponentApp = (props) => {
762
765
  onClick: handleNotAllow,
763
766
  className: "d-flex align-items-center fs-14"
764
767
  },
765
- /* @__PURE__ */ React.createElement("img", { src: no_white_default, className: "me-1" }),
768
+ /* @__PURE__ */ React.createElement("img", { src: no_white_default, className: "me-1", alt: "No Icon" }),
766
769
  t("txt_reject_consent")
767
770
  )) : /* @__PURE__ */ React.createElement(React.Fragment, null))))) : /* @__PURE__ */ React.createElement("div", { className: "p-4" }, /* @__PURE__ */ React.createElement(
768
771
  ContentLoader,
@@ -1,9 +1,7 @@
1
- import {
2
- trackEvent
3
- } from "./chunk-UJTYOAT7.js";
4
1
  import {
5
2
  BROWSER_WALLET,
6
3
  Connect_default,
4
+ ConsentHeader_default,
7
5
  Ethereum_default,
8
6
  LoadingStatus,
9
7
  TermsComponent,
@@ -11,7 +9,7 @@ import {
11
9
  check_circle_default,
12
10
  getWeb3ID,
13
11
  useConsentStatus_default
14
- } from "./chunk-TDFENDG7.js";
12
+ } from "./chunk-IAQD6GXT.js";
15
13
  import {
16
14
  AnalyticsContext,
17
15
  agreeConsents,
@@ -26,14 +24,15 @@ import {
26
24
  no_default,
27
25
  privacy_default,
28
26
  revokeConsents,
27
+ trackEvent,
29
28
  useTranslation,
30
29
  verifySignature
31
- } from "./chunk-HGACFQLI.js";
30
+ } from "./chunk-NKOHXSTE.js";
32
31
 
33
32
  // src/Components/ConsentCustom.tsx
34
33
  import React, { Suspense, useContext, useEffect, useState } from "react";
35
34
  import { Button, Col, Form, Row } from "react-bootstrap";
36
- import { ToastContainer, toast } from "react-toastify";
35
+ import { toast } from "react-toastify";
37
36
 
38
37
  // src/Assets/checkbox.svg
39
38
  var checkbox_default = 'data:image/svg+xml,<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="11.5" cy="11.5" r="10.5" stroke="%23DEDEDE" stroke-width="2"/>%0A</svg>%0A';
@@ -73,7 +72,8 @@ var ConsentComponentCustom = ({
73
72
  gtmId,
74
73
  layout,
75
74
  isOptInReplaceAnalytics,
76
- customConsentText
75
+ customConsentText,
76
+ languageSwitcher
77
77
  }) => {
78
78
  return /* @__PURE__ */ React.createElement(React.Fragment, null, !isOptInReplaceAnalytics ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(WithWalletConnector, { network: networkEnv === "testnet" ? TESTNET : MAINNET }, (props) => /* @__PURE__ */ React.createElement(
79
79
  ConsentComponentCustomWrapper,
@@ -86,7 +86,8 @@ var ConsentComponentCustom = ({
86
86
  gtagId,
87
87
  gtmId,
88
88
  layout,
89
- customConsentText
89
+ customConsentText,
90
+ languageSwitcher
90
91
  }
91
92
  ))) : /* @__PURE__ */ React.createElement(React.Fragment, null));
92
93
  };
@@ -116,6 +117,7 @@ var ConsentComponentCustomWrapper = (props) => {
116
117
  gtmId: props?.gtmId,
117
118
  layout: props?.layout,
118
119
  customConsentText: props?.customConsentText,
120
+ languageSwitcher: props?.languageSwitcher,
119
121
  uuid,
120
122
  level,
121
123
  connection,
@@ -140,6 +142,7 @@ var ConsentComponentCustomApp = (props) => {
140
142
  gtmId,
141
143
  layout,
142
144
  customConsentText,
145
+ languageSwitcher,
143
146
  activeConnectorType,
144
147
  activeConnector,
145
148
  activeConnectorError,
@@ -237,8 +240,7 @@ var ConsentComponentCustomApp = (props) => {
237
240
  jwt,
238
241
  "metamask",
239
242
  gtagId,
240
- gtmId,
241
- layout
243
+ gtmId
242
244
  );
243
245
  sessionStorage.setItem("aesirx-analytics-uuid", uuid);
244
246
  sessionStorage.setItem("aesirx-analytics-allow", "1");
@@ -327,8 +329,7 @@ var ConsentComponentCustomApp = (props) => {
327
329
  jwt,
328
330
  "concordium",
329
331
  gtagId,
330
- gtmId,
331
- layout
332
+ gtmId
332
333
  );
333
334
  sessionStorage.setItem("aesirx-analytics-consent-type", "concordium");
334
335
  setUpgradeLayout(false);
@@ -363,8 +364,7 @@ var ConsentComponentCustomApp = (props) => {
363
364
  null,
364
365
  null,
365
366
  gtagId,
366
- gtmId,
367
- layout
367
+ gtmId
368
368
  );
369
369
  } else if (!!existConsent?.consent_uuid && existConsent?.expiration && new Date(existConsent.expiration) < /* @__PURE__ */ new Date()) {
370
370
  await agreeConsents(
@@ -378,8 +378,7 @@ var ConsentComponentCustomApp = (props) => {
378
378
  null,
379
379
  null,
380
380
  gtagId,
381
- gtmId,
382
- layout
381
+ gtmId
383
382
  );
384
383
  }
385
384
  });
@@ -443,8 +442,7 @@ var ConsentComponentCustomApp = (props) => {
443
442
  response?.jwt,
444
443
  "concordium",
445
444
  gtagId,
446
- gtmId,
447
- layout
445
+ gtmId
448
446
  );
449
447
  setShow(false);
450
448
  handleRevoke(true, level);
@@ -498,8 +496,7 @@ var ConsentComponentCustomApp = (props) => {
498
496
  response?.jwt,
499
497
  "concordium",
500
498
  gtagId,
501
- gtmId,
502
- layout
499
+ gtmId
503
500
  );
504
501
  setShow(false);
505
502
  handleRevoke(true, level);
@@ -645,7 +642,7 @@ var ConsentComponentCustomApp = (props) => {
645
642
  }, []);
646
643
  useEffect(() => {
647
644
  (gtagId || gtmId) && loadConsentDefault(gtagId, gtmId);
648
- }, [layout]);
645
+ }, [layout, gtagId, gtmId]);
649
646
  useEffect(() => {
650
647
  if (showExpandRevoke && isDesktop && (sessionStorage.getItem("aesirx-analytics-revoke") === "3" || sessionStorage.getItem("aesirx-analytics-revoke") === "4")) {
651
648
  setActiveConnectorType(BROWSER_WALLET);
@@ -668,7 +665,8 @@ var ConsentComponentCustomApp = (props) => {
668
665
  {
669
666
  width: "23px",
670
667
  height: "23px",
671
- src: upgradeLevel === level2 ? checkbox_active_default : checkbox_default
668
+ src: upgradeLevel === level2 ? checkbox_active_default : checkbox_default,
669
+ alt: "Checkbox icon"
672
670
  }
673
671
  ))
674
672
  );
@@ -678,7 +676,7 @@ var ConsentComponentCustomApp = (props) => {
678
676
  function gtag(p0, p1, p2) {
679
677
  dataLayer.push(arguments);
680
678
  }
681
- if ((layout !== "simple-consent-mode" || sessionStorage.getItem("consentGranted") === "true") && (gtmId2 && !document.querySelector(
679
+ if (sessionStorage.getItem("consentGranted") === "true" && (gtmId2 && !document.querySelector(
682
680
  `script[src="https://www.googletagmanager.com/gtm.js?id=${gtmId2}"]`
683
681
  ) || gtagId2 && !document.querySelector(
684
682
  `script[src="https://www.googletagmanager.com/gtag/js?id=${gtagId2}"]`
@@ -693,17 +691,6 @@ var ConsentComponentCustomApp = (props) => {
693
691
  dataLayer.push({ "gtm.start": (/* @__PURE__ */ new Date()).getTime(), event: "gtm.js" });
694
692
  }
695
693
  }
696
- if (layout !== "simple-consent-mode" && sessionStorage.getItem("consentGranted") !== "true") {
697
- gtag("set", "url_passthrough", true);
698
- gtag("set", "ads_data_redaction", true);
699
- gtag("consent", "default", {
700
- ad_user_data: "denied",
701
- ad_personalization: "denied",
702
- ad_storage: "denied",
703
- analytics_storage: "denied",
704
- wait_for_update: 500
705
- });
706
- }
707
694
  if (sessionStorage.getItem("consentGranted") === "true") {
708
695
  gtag("consent", "update", {
709
696
  ad_user_data: "granted",
@@ -715,7 +702,7 @@ var ConsentComponentCustomApp = (props) => {
715
702
  };
716
703
  const paymentRevoke = sessionStorage.getItem("aesirx-analytics-opt-payment");
717
704
  const optInRevokes = Object.keys(sessionStorage).filter((key) => key.startsWith("aesirx-analytics-optin")).map((key) => key);
718
- return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(ToastContainer, null), /* @__PURE__ */ React.createElement("div", { className: `offcanvas-backdrop fade ${showBackdrop && show ? "show" : "d-none"}` }), /* @__PURE__ */ React.createElement(
705
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: `offcanvas-backdrop fade ${showBackdrop && show ? "show" : "d-none"}` }), /* @__PURE__ */ React.createElement(
719
706
  "div",
720
707
  {
721
708
  tabIndex: -1,
@@ -736,7 +723,8 @@ var ConsentComponentCustomApp = (props) => {
736
723
  "img",
737
724
  {
738
725
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
739
- src: bg_default
726
+ src: bg_default,
727
+ alt: "Background Image"
740
728
  }
741
729
  ), /* @__PURE__ */ React.createElement(
742
730
  "div",
@@ -749,36 +737,10 @@ var ConsentComponentCustomApp = (props) => {
749
737
  setShowExpandRevoke(true);
750
738
  }
751
739
  },
752
- /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }),
753
- t("txt_shield_of_privacy")
740
+ /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "SoP Icon" }),
741
+ window?.aesirx_analytics_translate?.txt_shield_of_privacy ?? t("txt_shield_of_privacy")
754
742
  )),
755
- showExpandRevoke && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
756
- "div",
757
- {
758
- className: `d-flex rounded-top align-items-center justify-content-between p-2 p-lg-3 fw-medium flex-wrap py-2 py-lg-3 px-4 header-consent-bg`,
759
- style: {
760
- borderBottom: "1px solid #DEDEDE"
761
- }
762
- },
763
- /* @__PURE__ */ React.createElement("div", { className: "text-primary text-nowrap" }, t("txt_tracking_data_privacy")),
764
- /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-center fs-14 text-primary" }, /* @__PURE__ */ React.createElement(
765
- "a",
766
- {
767
- href: "https://shield.aesirx.io/",
768
- rel: "noreferrer",
769
- target: "_blank",
770
- className: "minimize-shield-wrapper position-relative text-decoration-none"
771
- },
772
- /* @__PURE__ */ React.createElement(
773
- "img",
774
- {
775
- className: "cover-img position-absolute h-100 w-100 object-fit-cover z-1",
776
- src: bg_default
777
- }
778
- ),
779
- /* @__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"))
780
- ))
781
- ), /* @__PURE__ */ React.createElement(
743
+ showExpandRevoke && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ConsentHeader_default, { languageSwitcher }), /* @__PURE__ */ React.createElement(
782
744
  "div",
783
745
  {
784
746
  className: "minimize-revoke",
@@ -786,14 +748,14 @@ var ConsentComponentCustomApp = (props) => {
786
748
  setShowExpandRevoke(false);
787
749
  }
788
750
  },
789
- /* @__PURE__ */ React.createElement("img", { src: no_default })
790
- ), /* @__PURE__ */ React.createElement("div", { className: "p-3 bg-white" }, paymentRevoke ? t("txt_you_can_revoke_on_the_site") : t("txt_you_can_revoke")), /* @__PURE__ */ React.createElement(Form, { className: "mb-0 w-100 bg-white px-3" }, /* @__PURE__ */ React.createElement(
751
+ /* @__PURE__ */ React.createElement("img", { src: no_default, alt: "No Icon" })
752
+ ), /* @__PURE__ */ React.createElement("div", { className: "p-3 bg-white" }, paymentRevoke ? window?.aesirx_analytics_translate?.txt_you_can_revoke_on_the_site ?? t("txt_you_can_revoke_on_the_site") : window?.aesirx_analytics_translate?.txt_you_can_revoke ?? t("txt_you_can_revoke")), /* @__PURE__ */ React.createElement(Form, { className: "mb-0 w-100 bg-white px-3" }, /* @__PURE__ */ React.createElement(
791
753
  Form.Check,
792
754
  {
793
755
  id: `option-revoke-consent`,
794
756
  checked: revokeConsentOption === "consent",
795
757
  type: "checkbox",
796
- label: t("txt_revoke_consent_for_the_site"),
758
+ label: window?.aesirx_analytics_translate?.txt_revoke_consent_for_the_site ?? t("txt_revoke_consent_for_the_site"),
797
759
  value: "consent",
798
760
  onChange: ({ target: { value } }) => {
799
761
  setRevokeConsentOption(value);
@@ -807,7 +769,7 @@ var ConsentComponentCustomApp = (props) => {
807
769
  id: `option-revoke-${item}`,
808
770
  checked: revokeConsentOption === item,
809
771
  type: "checkbox",
810
- label: item === "aesirx-analytics-optin-default" ? t("txt_revoke_opt_in") : item === "aesirx-analytics-optin-payment" ? t("txt_revoke_opt_in_payment") : item === "aesirx-analytics-optin-advisor" ? t("txt_revoke_opt_in_advisor") : t("txt_revoke_opt_in") + " " + item?.replace("aesirx-analytics-optin-", ""),
772
+ label: item === "aesirx-analytics-optin-default" ? window?.aesirx_analytics_translate?.txt_revoke_opt_in ?? t("txt_revoke_opt_in") : item === "aesirx-analytics-optin-payment" ? window?.aesirx_analytics_translate?.txt_revoke_opt_in_payment ?? t("txt_revoke_opt_in_payment") : item === "aesirx-analytics-optin-advisor" ? window?.aesirx_analytics_translate?.txt_revoke_opt_in_advisor ?? t("txt_revoke_opt_in_advisor") : window?.aesirx_analytics_translate?.txt_revoke_opt_in ?? t("txt_revoke_opt_in") + " " + item?.replace("aesirx-analytics-optin-", ""),
811
773
  value: item,
812
774
  onChange: ({ target: { value } }) => {
813
775
  setRevokeConsentOption(value);
@@ -822,7 +784,7 @@ var ConsentComponentCustomApp = (props) => {
822
784
  target: "_blank",
823
785
  rel: "noreferrer"
824
786
  },
825
- t("txt_manage_consent")
787
+ window?.aesirx_analytics_translate?.txt_manage_consent ?? t("txt_manage_consent")
826
788
  ), loading === "done" ? /* @__PURE__ */ React.createElement(
827
789
  Button,
828
790
  {
@@ -846,7 +808,7 @@ var ConsentComponentCustomApp = (props) => {
846
808
  },
847
809
  className: "d-flex align-items-center justify-content-center w-100 w-lg-35 revoke-btn fs-14 rounded-pill py-2 py-lg-3"
848
810
  },
849
- t("txt_revoke_consent")
811
+ window?.aesirx_analytics_translate?.txt_revoke_consent ?? t("txt_revoke_consent")
850
812
  ) : /* @__PURE__ */ React.createElement(React.Fragment, null), (sessionStorage.getItem("aesirx-analytics-revoke") === "4" || sessionStorage.getItem("aesirx-analytics-revoke") === "2") && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement("div", null, "Loading...") }, /* @__PURE__ */ React.createElement(
851
813
  SSOButton,
852
814
  {
@@ -862,6 +824,7 @@ var ConsentComponentCustomApp = (props) => {
862
824
  "div",
863
825
  {
864
826
  tabIndex: -1,
827
+ id: "consent-modal",
865
828
  className: `toast-container position-fixed m-md-3 ${showExpandConsent ? "top-50 start-50 translate-middle" : "bottom-0 end-0"}`
866
829
  },
867
830
  /* @__PURE__ */ React.createElement(
@@ -874,7 +837,8 @@ var ConsentComponentCustomApp = (props) => {
874
837
  "img",
875
838
  {
876
839
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
877
- src: bg_default
840
+ src: bg_default,
841
+ alt: "Background Image"
878
842
  }
879
843
  ), /* @__PURE__ */ React.createElement(
880
844
  "div",
@@ -888,87 +852,96 @@ var ConsentComponentCustomApp = (props) => {
888
852
  sessionStorage.removeItem("aesirx-analytics-rejected");
889
853
  }
890
854
  },
891
- /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }),
892
- t("txt_shield_of_privacy")
893
- ))) : /* @__PURE__ */ React.createElement("div", { className: "bg-white" }, level ? /* @__PURE__ */ React.createElement(React.Fragment, null, upgradeLayout ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "bg-white rounded p-3 w-auto" }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mb-1 mb-lg-3" }, t("txt_select_your_preferred")), /* @__PURE__ */ React.createElement(Form, null, /* @__PURE__ */ React.createElement(Row, null, /* @__PURE__ */ React.createElement(Col, { lg: 6, className: "mb-2 mb-lg-0" }, /* @__PURE__ */ React.createElement(
855
+ /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "SoP Icon" }),
856
+ window?.aesirx_analytics_translate?.txt_shield_of_privacy ?? t("txt_shield_of_privacy")
857
+ ))) : /* @__PURE__ */ React.createElement("div", { className: "bg-white" }, level ? /* @__PURE__ */ React.createElement(React.Fragment, null, upgradeLayout ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "bg-white rounded p-3 w-auto" }, /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: "mb-1 mb-lg-3" }, window?.aesirx_analytics_translate?.txt_select_your_preferred ?? t("txt_select_your_preferred")), /* @__PURE__ */ React.createElement(Form, null, /* @__PURE__ */ React.createElement(Row, null, /* @__PURE__ */ React.createElement(Col, { lg: 6, className: "mb-2 mb-lg-0" }, /* @__PURE__ */ React.createElement(
894
858
  ConsentLevelUprade,
895
859
  {
896
860
  level: 3,
897
- levelname: t(`txt_decentralized_wallet`),
861
+ levelname: window?.aesirx_analytics_translate?.txt_decentralized_wallet ?? t("txt_decentralized_wallet"),
898
862
  image: wallet_consent_default,
899
863
  content: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
900
864
  "img",
901
865
  {
902
866
  src: check_circle_default,
903
867
  width: "14px",
904
- height: "15px"
868
+ height: "15px",
869
+ alt: "Check Icon"
905
870
  }
906
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
871
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_decentralized_wallet_will_be_loaded ?? t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
907
872
  "img",
908
873
  {
909
874
  src: check_circle_default,
910
875
  width: "14px",
911
- height: "15px"
876
+ height: "15px",
877
+ alt: "Check Icon"
912
878
  }
913
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
879
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_both_first_party_third_party ?? t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
914
880
  "img",
915
881
  {
916
882
  src: check_circle_default,
917
883
  width: "14px",
918
- height: "15px"
884
+ height: "15px",
885
+ alt: "Check Icon"
919
886
  }
920
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_all_consented_data_will_be_collected"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
887
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_all_consented_data_will_be_collected ?? t("txt_all_consented_data_will_be_collected"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
921
888
  "img",
922
889
  {
923
890
  src: check_circle_default,
924
891
  width: "14px",
925
- height: "15px"
892
+ height: "15px",
893
+ alt: "Check Icon"
926
894
  }
927
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_users_can_revoke")))),
895
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_users_can_revoke ?? t("txt_users_can_revoke")))),
928
896
  isUpgrade: true
929
897
  }
930
898
  )), /* @__PURE__ */ React.createElement(Col, { lg: 6 }, /* @__PURE__ */ React.createElement(
931
899
  ConsentLevelUprade,
932
900
  {
933
901
  level: 4,
934
- levelname: t(`txt_decentralized_wallet_shield`),
902
+ levelname: window?.aesirx_analytics_translate?.txt_decentralized_wallet_shield ?? t("txt_decentralized_wallet_shield"),
935
903
  image: wallet_shield_consent_default,
936
904
  content: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
937
905
  "img",
938
906
  {
939
907
  src: check_circle_default,
940
908
  width: "14px",
941
- height: "15px"
909
+ height: "15px",
910
+ alt: "Check Icon"
942
911
  }
943
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
912
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_decentralized_wallet_will_be_loaded ?? t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
944
913
  "img",
945
914
  {
946
915
  src: check_circle_default,
947
916
  width: "14px",
948
- height: "15px"
917
+ height: "15px",
918
+ alt: "Check Icon"
949
919
  }
950
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
920
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_both_first_party_third_party ?? t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
951
921
  "img",
952
922
  {
953
923
  src: check_circle_default,
954
924
  width: "14px",
955
- height: "15px"
925
+ height: "15px",
926
+ alt: "Check Icon"
956
927
  }
957
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_all_consented_data_will_be_collected"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
928
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_all_consented_data_will_be_collected ?? t("txt_all_consented_data_will_be_collected"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
958
929
  "img",
959
930
  {
960
931
  src: check_circle_default,
961
932
  width: "14px",
962
- height: "15px"
933
+ height: "15px",
934
+ alt: "Check Icon"
963
935
  }
964
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_users_can_revoke_dapp"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
936
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_users_can_revoke_dapp ?? t("txt_users_can_revoke_dapp"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start check-line" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
965
937
  "img",
966
938
  {
967
939
  src: check_circle_default,
968
940
  width: "14px",
969
- height: "15px"
941
+ height: "15px",
942
+ alt: "Check Icon"
970
943
  }
971
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_users_can_earn")))),
944
+ )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, window?.aesirx_analytics_translate?.txt_users_can_earn ?? t("txt_users_can_earn")))),
972
945
  isUpgrade: true
973
946
  }
974
947
  )))), /* @__PURE__ */ React.createElement("div", { className: "d-flex w-100 flex-wrap flex-lg-nowrap justify-content-between mt-4" }, /* @__PURE__ */ React.createElement(
@@ -981,7 +954,7 @@ var ConsentComponentCustomApp = (props) => {
981
954
  },
982
955
  className: "d-flex align-items-center justify-content-center fs-14 w-100 w-lg-30 me-3 mb-2 mb-lg-0 rounded-pill py-3"
983
956
  },
984
- t("txt_back")
957
+ window?.aesirx_analytics_translate?.txt_back ?? t("txt_back")
985
958
  ), /* @__PURE__ */ React.createElement(
986
959
  "div",
987
960
  {
@@ -996,7 +969,7 @@ var ConsentComponentCustomApp = (props) => {
996
969
  SSOButton,
997
970
  {
998
971
  className: "btn btn-success d-flex align-items-center justify-content-center loginSSO rounded-pill py-2 py-lg-3 w-100 fs-14 text-white",
999
- text: /* @__PURE__ */ React.createElement(React.Fragment, null, t("txt_continue")),
972
+ text: /* @__PURE__ */ React.createElement(React.Fragment, null, window?.aesirx_analytics_translate?.txt_continue ?? t("txt_continue")),
1000
973
  ssoState: "noscopes",
1001
974
  onGetData,
1002
975
  ...level === 2 ? { noCreateAccount: true } : {}
@@ -1018,7 +991,7 @@ var ConsentComponentCustomApp = (props) => {
1018
991
  "aria-hidden": "true"
1019
992
  }
1020
993
  ) : /* @__PURE__ */ React.createElement(React.Fragment, null),
1021
- t("txt_continue")
994
+ window?.aesirx_analytics_translate?.txt_continue ?? t("txt_continue")
1022
995
  ))))) : showRejectedConsent ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1023
996
  TermsComponent,
1024
997
  {
@@ -1026,7 +999,8 @@ var ConsentComponentCustomApp = (props) => {
1026
999
  handleLevel,
1027
1000
  isCustom: true,
1028
1001
  layout,
1029
- isRejectedLayout: true
1002
+ isRejectedLayout: true,
1003
+ languageSwitcher
1030
1004
  },
1031
1005
  /* @__PURE__ */ React.createElement(Form, { className: "mb-0 w-100" }, /* @__PURE__ */ React.createElement(
1032
1006
  Form.Check,
@@ -1055,7 +1029,7 @@ var ConsentComponentCustomApp = (props) => {
1055
1029
  onClick: handleNotAllow,
1056
1030
  className: "d-flex align-items-center justify-content-center fs-14 w-100 me-3 mb-2 mb-lg-0 rounded-pill py-2 py-lg-3"
1057
1031
  },
1058
- t("txt_reject_consent")
1032
+ window?.aesirx_analytics_translate?.txt_reject_consent ?? t("txt_reject_consent")
1059
1033
  ), level === 2 || level === 4 && !account && !address ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(
1060
1034
  Button,
1061
1035
  {
@@ -1071,7 +1045,7 @@ var ConsentComponentCustomApp = (props) => {
1071
1045
  "aria-hidden": "true"
1072
1046
  }
1073
1047
  ) : /* @__PURE__ */ React.createElement(React.Fragment, null),
1074
- t("txt_yes_i_consent")
1048
+ window?.aesirx_analytics_translate?.txt_yes_i_consent ?? t("txt_yes_i_consent")
1075
1049
  ), layout === "simple-consent-mode" ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1076
1050
  Button,
1077
1051
  {
@@ -1081,7 +1055,7 @@ var ConsentComponentCustomApp = (props) => {
1081
1055
  },
1082
1056
  className: "d-flex align-items-center justify-content-center fs-14 w-100 me-3 mb-2 mb-lg-0 rounded-pill py-2 py-lg-3"
1083
1057
  },
1084
- t("txt_change_consent")
1058
+ window?.aesirx_analytics_translate?.txt_change_consent ?? t("txt_change_consent")
1085
1059
  ), " ")) : /* @__PURE__ */ React.createElement(React.Fragment, null)))
1086
1060
  )) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1087
1061
  TermsComponent,
@@ -1090,7 +1064,8 @@ var ConsentComponentCustomApp = (props) => {
1090
1064
  handleLevel,
1091
1065
  isCustom: true,
1092
1066
  layout,
1093
- customConsentText
1067
+ customConsentText,
1068
+ languageSwitcher
1094
1069
  },
1095
1070
  /* @__PURE__ */ React.createElement(Form, { className: "mb-0 w-100" }, /* @__PURE__ */ React.createElement(
1096
1071
  Form.Check,
@@ -1119,7 +1094,7 @@ var ConsentComponentCustomApp = (props) => {
1119
1094
  onClick: handleNotAllow,
1120
1095
  className: "d-flex align-items-center justify-content-center fs-14 w-100 me-3 mb-2 mb-lg-0 rounded-pill py-2 py-lg-3"
1121
1096
  },
1122
- t("txt_reject_consent")
1097
+ window?.aesirx_analytics_translate?.txt_reject_consent ?? t("txt_reject_consent")
1123
1098
  ), level === 2 || level === 4 && !account && !address ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(
1124
1099
  Button,
1125
1100
  {
@@ -1135,7 +1110,7 @@ var ConsentComponentCustomApp = (props) => {
1135
1110
  "aria-hidden": "true"
1136
1111
  }
1137
1112
  ) : /* @__PURE__ */ React.createElement(React.Fragment, null),
1138
- t("txt_yes_i_consent")
1113
+ window?.aesirx_analytics_translate?.txt_yes_i_consent ?? t("txt_yes_i_consent")
1139
1114
  ), layout === "simple-consent-mode" ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1140
1115
  Button,
1141
1116
  {
@@ -1145,7 +1120,7 @@ var ConsentComponentCustomApp = (props) => {
1145
1120
  },
1146
1121
  className: "d-flex align-items-center justify-content-center fs-14 w-100 me-3 mb-2 mb-lg-0 rounded-pill py-2 py-lg-3"
1147
1122
  },
1148
- t("txt_change_consent")
1123
+ window?.aesirx_analytics_translate?.txt_change_consent ?? t("txt_change_consent")
1149
1124
  ), " ")) : /* @__PURE__ */ React.createElement(React.Fragment, null)))
1150
1125
  ))) : /* @__PURE__ */ React.createElement("div", { className: "p-4" }, /* @__PURE__ */ React.createElement(
1151
1126
  ContentLoader,