aesirx-analytics 2.2.12 → 2.2.13

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.
@@ -5,15 +5,14 @@ import {
5
5
  LoadingStatus,
6
6
  TermsComponent,
7
7
  WALLET_CONNECT,
8
- bg_default,
9
8
  getWeb3ID,
10
9
  no_default,
11
- privacy_default,
12
10
  useConsentStatus_default
13
- } from "./chunk-PD33NAQI.js";
11
+ } from "./chunk-MPD57P7C.js";
14
12
  import {
15
13
  AnalyticsContext,
16
14
  agreeConsents,
15
+ bg_default,
17
16
  getConsents,
18
17
  getMember,
19
18
  getNonce,
@@ -21,10 +20,11 @@ import {
21
20
  getWalletNonce,
22
21
  loadGtagScript,
23
22
  loadGtmScript,
23
+ privacy_default,
24
24
  revokeConsents,
25
25
  useTranslation,
26
26
  verifySignature
27
- } from "./chunk-R4T7FUMB.js";
27
+ } from "./chunk-N4WREXIA.js";
28
28
 
29
29
  // src/Components/Consent.tsx
30
30
  import React, { Suspense, useContext, useEffect, useState } from "react";
@@ -453,6 +453,7 @@ var ConsentComponentApp = (props) => {
453
453
  sessionStorage.setItem("aesirx-analytics-rejected", "true");
454
454
  setShowExpandConsent(false);
455
455
  setShowBackdrop(false);
456
+ window.funcAfterReject && window.funcAfterReject();
456
457
  };
457
458
  const handleRevokeBtn = async () => {
458
459
  const levelRevoke = sessionStorage.getItem("aesirx-analytics-revoke");
@@ -8,16 +8,15 @@ import {
8
8
  LoadingStatus,
9
9
  TermsComponent,
10
10
  WALLET_CONNECT,
11
- bg_default,
12
11
  check_circle_default,
13
12
  getWeb3ID,
14
13
  no_default,
15
- privacy_default,
16
14
  useConsentStatus_default
17
- } from "./chunk-PD33NAQI.js";
15
+ } from "./chunk-MPD57P7C.js";
18
16
  import {
19
17
  AnalyticsContext,
20
18
  agreeConsents,
19
+ bg_default,
21
20
  getConsents,
22
21
  getMember,
23
22
  getNonce,
@@ -25,10 +24,11 @@ import {
25
24
  getWalletNonce,
26
25
  loadGtagScript,
27
26
  loadGtmScript,
27
+ privacy_default,
28
28
  revokeConsents,
29
29
  useTranslation,
30
30
  verifySignature
31
- } from "./chunk-R4T7FUMB.js";
31
+ } from "./chunk-N4WREXIA.js";
32
32
 
33
33
  // src/Components/ConsentCustom.tsx
34
34
  import React, { Suspense, useContext, useEffect, useState } from "react";
@@ -521,6 +521,7 @@ var ConsentComponentCustomApp = (props) => {
521
521
  event_name: "Reject consent",
522
522
  event_type: "reject-consent"
523
523
  });
524
+ window.funcAfterReject && window.funcAfterReject();
524
525
  };
525
526
  const handleRevokeBtn = async () => {
526
527
  const levelRevoke = sessionStorage.getItem("aesirx-analytics-revoke");
@@ -691,6 +692,7 @@ var ConsentComponentCustomApp = (props) => {
691
692
  }
692
693
  };
693
694
  const paymentRevoke = sessionStorage.getItem("aesirx-analytics-payment");
695
+ const advisorRevoke = sessionStorage.getItem("aesirx-analytics-advisor");
694
696
  console.log("loading", loading);
695
697
  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(
696
698
  "div",
@@ -704,7 +706,7 @@ var ConsentComponentCustomApp = (props) => {
704
706
  className: `toast revoke-toast custom ${showRevoke || sessionStorage.getItem("aesirx-analytics-revoke") && sessionStorage.getItem("aesirx-analytics-revoke") !== "0" ? "show" : ""} ${showExpandRevoke ? "" : "minimize"}`
705
707
  },
706
708
  /* @__PURE__ */ React.createElement(LoadingStatus, { loading }),
707
- /* @__PURE__ */ React.createElement("div", { className: "toast-body p-0 shadow mx-3 mx-md-0" }, /* @__PURE__ */ React.createElement(
709
+ /* @__PURE__ */ React.createElement("div", { className: "toast-body p-0 shadow mx-1 mx-md-0 mb-2 mb-md-0" }, /* @__PURE__ */ React.createElement(
708
710
  "div",
709
711
  {
710
712
  className: `revoke-wrapper minimize-shield-wrapper position-relative ${showExpandRevoke ? "bg-white" : ""}`
@@ -776,6 +778,18 @@ var ConsentComponentCustomApp = (props) => {
776
778
  setRevokeConsentOption(value);
777
779
  }
778
780
  }
781
+ ) : /* @__PURE__ */ React.createElement(React.Fragment, null), advisorRevoke ? /* @__PURE__ */ React.createElement(
782
+ Form.Check,
783
+ {
784
+ id: `option-revoke-advisor`,
785
+ checked: revokeConsentOption === "advisor",
786
+ type: "checkbox",
787
+ label: t("txt_revoke_opt_in_advisor"),
788
+ value: "advisor",
789
+ onChange: ({ target: { value } }) => {
790
+ setRevokeConsentOption(value);
791
+ }
792
+ }
779
793
  ) : /* @__PURE__ */ React.createElement(React.Fragment, null), /* @__PURE__ */ React.createElement(
780
794
  Form.Check,
781
795
  {
@@ -802,13 +816,20 @@ var ConsentComponentCustomApp = (props) => {
802
816
  {
803
817
  variant: "outline-success",
804
818
  onClick: async () => {
805
- if (paymentRevoke) {
819
+ if (revokeConsentOption === "payment") {
806
820
  sessionStorage.removeItem("aesirx-analytics-payment");
807
821
  setShowExpandRevoke(false);
808
822
  setRevokeConsentOption("consent");
809
823
  setTimeout(() => {
810
824
  window.location.reload();
811
825
  }, 1e3);
826
+ } else if (revokeConsentOption === "advisor") {
827
+ sessionStorage.removeItem("aesirx-analytics-advisor");
828
+ setShowExpandRevoke(false);
829
+ setRevokeConsentOption("consent");
830
+ setTimeout(() => {
831
+ window.location.reload();
832
+ }, 1e3);
812
833
  } else {
813
834
  await handleRevokeBtn();
814
835
  if (level > 1) {
@@ -844,7 +865,7 @@ var ConsentComponentCustomApp = (props) => {
844
865
  className: `toast custom ${show ? "show" : ""} ${showExpandConsent ? "" : "minimize"}`
845
866
  },
846
867
  /* @__PURE__ */ React.createElement(LoadingStatus, { loading }),
847
- /* @__PURE__ */ React.createElement("div", { className: "toast-body p-0 shadow mx-3 mx-md-0" }, !showExpandConsent ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "minimize-shield-wrapper position-relative" }, /* @__PURE__ */ React.createElement(
868
+ /* @__PURE__ */ React.createElement("div", { className: "toast-body p-0 shadow mx-1 mx-md-0 mb-2 mb-md-0" }, !showExpandConsent ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "minimize-shield-wrapper position-relative" }, /* @__PURE__ */ React.createElement(
848
869
  "img",
849
870
  {
850
871
  className: "cover-img position-absolute h-100 w-100 object-fit-cover",
@@ -864,34 +885,34 @@ var ConsentComponentCustomApp = (props) => {
864
885
  },
865
886
  /* @__PURE__ */ React.createElement("img", { src: privacy_default, alt: "Shield of Privacy" }),
866
887
  t("txt_shield_of_privacy")
867
- ))) : /* @__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-2 mb-lg-3" }, t("txt_select_your_preferred")), /* @__PURE__ */ React.createElement(Form, null, /* @__PURE__ */ React.createElement(Row, null, /* @__PURE__ */ React.createElement(Col, { lg: 6 }, /* @__PURE__ */ React.createElement(
888
+ ))) : /* @__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(
868
889
  ConsentLevelUprade,
869
890
  {
870
891
  level: 3,
871
892
  levelname: t(`txt_decentralized_wallet`),
872
893
  image: wallet_consent_default,
873
- content: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
894
+ 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(
874
895
  "img",
875
896
  {
876
897
  src: check_circle_default,
877
898
  width: "14px",
878
899
  height: "15px"
879
900
  }
880
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
901
+ )), /* @__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(
881
902
  "img",
882
903
  {
883
904
  src: check_circle_default,
884
905
  width: "14px",
885
906
  height: "15px"
886
907
  }
887
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
908
+ )), /* @__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(
888
909
  "img",
889
910
  {
890
911
  src: check_circle_default,
891
912
  width: "14px",
892
913
  height: "15px"
893
914
  }
894
- )), /* @__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" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
915
+ )), /* @__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(
895
916
  "img",
896
917
  {
897
918
  src: check_circle_default,
@@ -907,35 +928,35 @@ var ConsentComponentCustomApp = (props) => {
907
928
  level: 4,
908
929
  levelname: t(`txt_decentralized_wallet_shield`),
909
930
  image: wallet_shield_consent_default,
910
- content: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
931
+ 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(
911
932
  "img",
912
933
  {
913
934
  src: check_circle_default,
914
935
  width: "14px",
915
936
  height: "15px"
916
937
  }
917
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_decentralized_wallet_will_be_loaded"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
938
+ )), /* @__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(
918
939
  "img",
919
940
  {
920
941
  src: check_circle_default,
921
942
  width: "14px",
922
943
  height: "15px"
923
944
  }
924
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_both_first_party_third_party"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
945
+ )), /* @__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(
925
946
  "img",
926
947
  {
927
948
  src: check_circle_default,
928
949
  width: "14px",
929
950
  height: "15px"
930
951
  }
931
- )), /* @__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" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
952
+ )), /* @__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(
932
953
  "img",
933
954
  {
934
955
  src: check_circle_default,
935
956
  width: "14px",
936
957
  height: "15px"
937
958
  }
938
- )), /* @__PURE__ */ React.createElement("div", { className: "ms-10px" }, t("txt_users_can_revoke_dapp"))), /* @__PURE__ */ React.createElement("div", { className: "d-flex align-items-start" }, /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
959
+ )), /* @__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(
939
960
  "img",
940
961
  {
941
962
  src: check_circle_default,
@@ -1035,7 +1056,7 @@ var ConsentComponentCustomApp = (props) => {
1035
1056
  {
1036
1057
  variant: "outline-success",
1037
1058
  onClick: handleAgree,
1038
- className: "w-100 me-3 d-flex align-items-center justify-content-center fs-14 rounded-pill py-2 py-lg-3"
1059
+ className: "w-100 me-3 mb-2 mb-lg-0 d-flex align-items-center justify-content-center fs-14 rounded-pill py-2 py-lg-3"
1039
1060
  },
1040
1061
  loadingCheckAccount ? /* @__PURE__ */ React.createElement(
1041
1062
  "span",
@@ -1098,7 +1119,7 @@ var ConsentComponentCustomApp = (props) => {
1098
1119
  {
1099
1120
  variant: "outline-success",
1100
1121
  onClick: handleAgree,
1101
- className: "w-100 me-3 d-flex align-items-center justify-content-center fs-14 rounded-pill py-2 py-lg-3"
1122
+ className: "w-100 me-3 mb-2 mb-lg-0 d-flex align-items-center justify-content-center fs-14 rounded-pill py-2 py-lg-3"
1102
1123
  },
1103
1124
  loadingCheckAccount ? /* @__PURE__ */ React.createElement(
1104
1125
  "span",