@mx-cartographer/experiences 4.1.0-alpha.j15 → 4.1.0-alpha.j17

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
@@ -3645,13 +3645,15 @@ let rl = class {
3645
3645
  SA(this);
3646
3646
  }
3647
3647
  initialize = async (e, n) => {
3648
- this.api = new zr(e, n), await this.loadAppData();
3648
+ this.api = new zr(e, n), await this.loadAppData(), J(() => {
3649
+ this.isInitialized = !0;
3650
+ });
3649
3651
  };
3650
3652
  loadAppData = async () => {
3651
3653
  try {
3652
3654
  const e = await this.api.getAppData();
3653
3655
  J(() => {
3654
- this.appData = e, this.bullseyeUrl = e?.address?.bullseye, this.user = e?.user, this.isInitialized = !0;
3656
+ this.appData = e, this.bullseyeUrl = e.address?.bullseye, this.user = e.user;
3655
3657
  });
3656
3658
  } catch (e) {
3657
3659
  console.error(`Error occurred while loading app data: ${e}`);
@@ -10214,10 +10216,11 @@ class Oh {
10214
10216
  SA(this);
10215
10217
  }
10216
10218
  loadAccountBanner = async (e, n) => {
10219
+ console.log("load banner", e, n);
10217
10220
  try {
10218
10221
  const r = await this.api.getAccountBanner(e, n);
10219
10222
  J(() => {
10220
- console.log("ACCOUNT_BANNER", r), this.accountBanner = r;
10223
+ console.log("Update ACCOUNT_BANNER", r), this.accountBanner = r;
10221
10224
  });
10222
10225
  } catch (r) {
10223
10226
  console.error(`Error occurred while loading account banner: ${r}`);
@@ -13490,10 +13493,10 @@ const u1 = ({
13490
13493
  });
13491
13494
  var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(Kn || {});
13492
13495
  const x1 = T(() => {
13493
- const { appStore: A, isInitialized: e } = an(), { accountBanner: n, loadAccountBanner: r } = Kc();
13496
+ const { appStore: A } = an(), { accountBanner: e, loadAccountBanner: n } = Kc();
13494
13497
  return g.useEffect(() => {
13495
- console.log("appStore", A), e && (console.log("make the call"), r(A.bullseyeUrl, A.user?.guid));
13496
- }, [e]), n?.image_url && n?.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: n?.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(Ns, { alt: "marketing image", component: "img", image: n?.image_url, sx: { height: 110, width: 615 } }) }) });
13498
+ A.isInitialized && (console.log("appStore", A), console.log("make the call"), n(A.bullseyeUrl, A.user?.guid));
13499
+ }, [A]), e?.image_url && e?.redirect_url && /* @__PURE__ */ t(he, { elevation: 0, sx: { mt: 16, ml: "auto", mr: "auto", width: 615 }, children: /* @__PURE__ */ t(Ps, { href: e?.redirect_url, sx: { margin: "0 auto" }, children: /* @__PURE__ */ t(Ns, { alt: "marketing image", component: "img", image: e?.image_url, sx: { height: 110, width: 615 } }) }) });
13497
13500
  }), P1 = () => {
13498
13501
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13499
13502
  accountFilterOptionsCopy: {