@mx-cartographer/experiences 4.1.0-alpha.j2 → 4.1.0-alpha.j3

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/dist/index.es.js CHANGED
@@ -13444,27 +13444,27 @@ const cg = ({
13444
13444
  });
13445
13445
  var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(Kn || {});
13446
13446
  const Ig = () => {
13447
- const { appStore: A } = an(), [e, n] = g.useState(null);
13447
+ const { appStore: A, isInitialized: e } = an(), [n, r] = g.useState(null);
13448
13448
  return g.useEffect(() => {
13449
- if (A?.appData) {
13450
- const r = `${A.appData.address?.bullseye}/banner/${A.appData.user_profile?.guid}/account_widget_banner`;
13451
- fetch(r, {
13449
+ if (e) {
13450
+ const a = `${A.appData?.address?.bullseye}/banner/${A.appData?.user_profile?.guid}/account_widget_banner`;
13451
+ fetch(a, {
13452
13452
  method: "GET",
13453
13453
  headers: {
13454
13454
  Accept: "application/json",
13455
13455
  "Content-Type": "application/json"
13456
13456
  }
13457
- }).then((i) => {
13458
- if (i.ok)
13459
- return i.text();
13460
- throw i;
13461
- }).then((i) => i.length ? JSON.parse(i) : {}).then((i) => {
13462
- n(i.banner), console.log(e);
13463
- }).catch((i) => {
13464
- throw ft.notify(i), i;
13457
+ }).then((o) => {
13458
+ if (o.ok)
13459
+ return o.text();
13460
+ throw o;
13461
+ }).then((o) => o.length ? JSON.parse(o) : {}).then((o) => {
13462
+ r(o.banner), console.log(n);
13463
+ }).catch((o) => {
13464
+ throw ft.notify(o), o;
13465
13465
  });
13466
13466
  }
13467
- }, [A]), e && /* @__PURE__ */ t(he, { sx: { mt: 16 }, children: /* @__PURE__ */ t(Ps, { href: e.banner.redirect_url, children: /* @__PURE__ */ t(Ns, { alt: "green iguana", component: "img", height: 100, image: e.banner.image_url, width: "100%" }) }) });
13467
+ }, [e]), n && /* @__PURE__ */ t(he, { sx: { mt: 16 }, children: /* @__PURE__ */ t(Ps, { href: n.banner.redirect_url, children: /* @__PURE__ */ t(Ns, { alt: "green iguana", component: "img", height: 100, image: n.banner.image_url, width: "100%" }) }) });
13468
13468
  }, Dg = () => {
13469
13469
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13470
13470
  accountFilterOptionsCopy: {