@stokr/components-library 3.0.13 → 3.0.14

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -23
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9494,7 +9494,7 @@ ${Q}`);
9494
9494
  ] }) }) }) });
9495
9495
  };
9496
9496
  var XC = LC;
9497
- const De = "stokr.info", sA = "https://" + De, yt = {
9497
+ const De = "a7bb1e881f9b2600762fded84d8ce0ea", sA = "https://" + De, yt = {
9498
9498
  LIQUID: "liquid"
9499
9499
  }, Rt = {
9500
9500
  FUND: "fund",
@@ -11226,7 +11226,7 @@ Wt.propTypes = {
11226
11226
  options: g.arrayOf(tc)
11227
11227
  };
11228
11228
  var Xg = Wt;
11229
- const oc = "stokr.info", eA = {
11229
+ const oc = "a7bb1e881f9b2600762fded84d8ce0ea", eA = {
11230
11230
  country: {
11231
11231
  title: {
11232
11232
  entity: "Country of Entity Registration",
@@ -11547,15 +11547,8 @@ function oB(A) {
11547
11547
  if (!A || typeof A != "object" || Array.isArray(A))
11548
11548
  return A ?? {};
11549
11549
  const B = {};
11550
- for (const [n, t] of Object.entries(A)) {
11551
- if (Cc.has(n.toLowerCase()) || cc.some((i) => i.test(n))) {
11552
- process.env.NODE_ENV !== "production" && console.warn(
11553
- `[analytics] Blocked field stripped before sending: "${n}"`
11554
- );
11555
- continue;
11556
- }
11557
- B[n] = t && typeof t == "object" && !Array.isArray(t) ? oB(t) : t;
11558
- }
11550
+ for (const [n, t] of Object.entries(A))
11551
+ Cc.has(n.toLowerCase()) || cc.some((i) => i.test(n)) || (B[n] = t && typeof t == "object" && !Array.isArray(t) ? oB(t) : t);
11559
11552
  return B;
11560
11553
  }
11561
11554
  let pA = !1;
@@ -11564,7 +11557,7 @@ function Zl({
11564
11557
  app: B,
11565
11558
  requireConsent: n = !1,
11566
11559
  scroll: t = !0,
11567
- apiHost: E = process.env.REACT_APP_WEBSITE_DOMAIN ? `https://analytics.${process.env.REACT_APP_WEBSITE_DOMAIN}` : "https://api-eu.mixpanel.com"
11560
+ apiHost: E = "https://analytics.a7bb1e881f9b2600762fded84d8ce0ea"
11568
11561
  } = {}) {
11569
11562
  pA || A && (dA.init(A, {
11570
11563
  api_host: E,
@@ -11582,7 +11575,7 @@ function Zl({
11582
11575
  record_heatmap_data: !0,
11583
11576
  opt_out_tracking_by_default: n,
11584
11577
  persistence: "localStorage",
11585
- debug: process.env.NODE_ENV !== "production"
11578
+ debug: !1
11586
11579
  }), B && dA.register({ app: B }), dA.register({ source: "frontend" }), pA = !0);
11587
11580
  }
11588
11581
  function ql() {
@@ -16119,7 +16112,7 @@ if (Ss)
16119
16112
  }
16120
16113
  const TB = () => {
16121
16114
  const A = {};
16122
- return process.env.NODE_ENV === "production" && (A.domain = "stokr.info"), A;
16115
+ return A.domain = "stokr.info", A;
16123
16116
  };
16124
16117
  class $ {
16125
16118
  /**
@@ -16770,7 +16763,7 @@ class uo extends XB {
16770
16763
  isFetchingUser: !1,
16771
16764
  loggedOutDueToInactivity: n.dueToInactivity === !0,
16772
16765
  loggedOutDueToCookieExpiry: n.dueToCookieExpiry === !0
16773
- }), B && (window.location.href = "https://stokr.info");
16766
+ }), B && (window.location.href = "https://a7bb1e881f9b2600762fded84d8ce0ea");
16774
16767
  };
16775
16768
  clearLoggedOutDueToInactivity = () => {
16776
16769
  this.setState({ loggedOutDueToInactivity: !1 });
@@ -16828,9 +16821,9 @@ class uo extends XB {
16828
16821
  checkUserIsValid = (B) => {
16829
16822
  if (B) {
16830
16823
  if (!B?.emailVerified && !window.location.href.includes("signup."))
16831
- return window.location.href = "https://signup.stokr.info/resend-activation-email", !1;
16824
+ return window.location.href = "https://signup.a7bb1e881f9b2600762fded84d8ce0ea/resend-activation-email", !1;
16832
16825
  if (!B?.country && B?.user_type === "investor" && !window.location.href.includes("signup."))
16833
- return window.location.href = "https://signup.stokr.info/welcome", !1;
16826
+ return window.location.href = "https://signup.a7bb1e881f9b2600762fded84d8ce0ea/welcome", !1;
16834
16827
  } else throw new Error("User is not defined");
16835
16828
  return !0;
16836
16829
  };
@@ -17440,7 +17433,7 @@ const ad = RA.Consumer, Ks = tB(uo), sg = kn(), ld = ({ children: A }) => {
17440
17433
  fluid: !0,
17441
17434
  id: "private-investor-success-button",
17442
17435
  onClick: () => {
17443
- a ? a() : B?._id ? window.location.href = "https://dashboard.stokr.info/checklist" : window.location.href = `/signup?email=${M}`;
17436
+ a ? a() : B?._id ? window.location.href = "https://dashboard.a7bb1e881f9b2600762fded84d8ce0ea/checklist" : window.location.href = `/signup?email=${M}`;
17444
17437
  },
17445
17438
  children: "Continue"
17446
17439
  }
@@ -18850,7 +18843,7 @@ const Ee = o(uA).withConfig({
18850
18843
  const n = {
18851
18844
  expires: 0.041666666666666664
18852
18845
  };
18853
- process.env.NODE_ENV === "production" && (n.domain = "stokr.info"), DA.set("STOKR_INVESTOR_DASHBOARD_REDIRECT", `${window.location.href}${A}`, n);
18846
+ n.domain = "stokr.info", DA.set("STOKR_INVESTOR_DASHBOARD_REDIRECT", `${window.location.href}${A}`, n);
18854
18847
  }, Fo = ({
18855
18848
  title: A,
18856
18849
  message: B,
@@ -21139,10 +21132,10 @@ const So = async (A, B) => {
21139
21132
  background: A && P,
21140
21133
  isModalOpen: Q.login,
21141
21134
  onModalClose: () => {
21142
- window.location.href = "https://stokr.info";
21135
+ window.location.href = "https://a7bb1e881f9b2600762fded84d8ce0ea";
21143
21136
  },
21144
21137
  onModalSwitch: () => {
21145
- window.location.href = "https://stokr.info/signup";
21138
+ window.location.href = "https://a7bb1e881f9b2600762fded84d8ce0ea/signup";
21146
21139
  },
21147
21140
  onForgotPassword: () => {
21148
21141
  l("login", "forgot"), u(), C(void 0);
@@ -22593,7 +22586,7 @@ const wa = o.div.withConfig({
22593
22586
  onModalSwitch: () => {
22594
22587
  const { location: Y } = this.props;
22595
22588
  let b = new URLSearchParams(Y?.search).get("user_type");
22596
- b && b === "sa" ? window.open("https://backoffice.stokr.info") : this.switchOpenModal("confirmReset", "login");
22589
+ b && b === "sa" ? window.open("https://backoffice.a7bb1e881f9b2600762fded84d8ce0ea") : this.switchOpenModal("confirmReset", "login");
22597
22590
  }
22598
22591
  }
22599
22592
  ),
@@ -22605,7 +22598,7 @@ const wa = o.div.withConfig({
22605
22598
  popupError: this.state.popupError,
22606
22599
  popupSuccess: this.state.popupSuccess,
22607
22600
  isModalOpen: B.verifyEmail,
22608
- continueUrl: "https://signup.stokr.info/welcome",
22601
+ continueUrl: "https://signup.a7bb1e881f9b2600762fded84d8ce0ea/welcome",
22609
22602
  error: U,
22610
22603
  isSuccess: !U,
22611
22604
  onModalSwitch: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
4
4
  "description": "STOKR - Components Library",
5
5
  "author": "Bilal Hodzic <bilal@stokr.io>",
6
6
  "license": "MIT",