@mx-cartographer/experiences 4.1.0-alpha.j16 → 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}`);
@@ -13491,10 +13493,10 @@ const u1 = ({
13491
13493
  });
13492
13494
  var Kn = /* @__PURE__ */ ((A) => (A[A.Main = 0] = "Main", A[A.RightSide = 1] = "RightSide", A))(Kn || {});
13493
13495
  const x1 = T(() => {
13494
- const { appStore: A, isInitialized: e } = an(), { accountBanner: n, loadAccountBanner: r } = Kc();
13496
+ const { appStore: A } = an(), { accountBanner: e, loadAccountBanner: n } = Kc();
13495
13497
  return g.useEffect(() => {
13496
- console.log("appStore", A), e && (console.log("make the call"), r(A.bullseyeUrl, A.user?.guid));
13497
- }, [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 } }) }) });
13498
13500
  }), P1 = () => {
13499
13501
  const { accounts: A } = TA(), { selectedAccountGuids: e, setSelectedAccountGuids: n } = fA(), { isMobile: r } = MA(), { common: a } = I(), i = {
13500
13502
  accountFilterOptionsCopy: {