@expedite-commerce/expedite-components 0.2.15 → 0.2.16

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.
@@ -30554,23 +30554,23 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30554
30554
  ], 64))), 128))
30555
30555
  ]));
30556
30556
  }
30557
- }, By = ["href"], Dy = /* @__PURE__ */ C("link", {
30557
+ }, By = /* @__PURE__ */ C("link", {
30558
30558
  rel: "stylesheet",
30559
30559
  href: "https://fonts.googleapis.com/icon?family=Material+Icons",
30560
30560
  "data-name": "ec-material-icons"
30561
- }, null, -1), My = /* @__PURE__ */ C("link", {
30561
+ }, null, -1), Dy = /* @__PURE__ */ C("link", {
30562
30562
  rel: "stylesheet",
30563
30563
  href: "https://fonts.googleapis.com/icon?family=Material+Icons+Outlined",
30564
30564
  "data-name": "ec-material-icons-outlined"
30565
- }, null, -1), Ry = /* @__PURE__ */ C("link", {
30565
+ }, null, -1), My = /* @__PURE__ */ C("link", {
30566
30566
  rel: "stylesheet",
30567
30567
  href: "https://fonts.googleapis.com/icon?family=Material+Icons+Round",
30568
30568
  "data-name": "ec-material-icons-round"
30569
- }, null, -1), Ly = /* @__PURE__ */ C("link", {
30569
+ }, null, -1), Ry = /* @__PURE__ */ C("link", {
30570
30570
  rel: "stylesheet",
30571
30571
  href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200",
30572
30572
  "data-name": "ec-material-symbols-outlined"
30573
- }, null, -1), Ny = {
30573
+ }, null, -1), Ly = {
30574
30574
  __name: "AtomThemeLoader",
30575
30575
  props: {
30576
30576
  organizationId: {
@@ -30591,14 +30591,16 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30591
30591
  }
30592
30592
  },
30593
30593
  setup(e) {
30594
- const l = e, t = Hn(), n = X(""), r = X(""), s = async () => {
30595
- if (!(!l.organizationId || !l.templateId))
30594
+ const l = e, t = Hn(), n = X(""), r = X(0), s = async () => {
30595
+ if (!(!l.organizationId || !l.templateId)) {
30596
+ n.value = "", r.value++;
30596
30597
  try {
30597
30598
  const u = await t.processTheme(l.isPreview, l.theme);
30598
30599
  u && u.value && (n.value = u.value);
30599
30600
  } catch (u) {
30600
30601
  console.error("[ATOMTHEMELOADER:loadTheme] Error loading theme", u);
30601
30602
  }
30603
+ }
30602
30604
  };
30603
30605
  return Et(() => {
30604
30606
  s();
@@ -30606,7 +30608,7 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30606
30608
  s();
30607
30609
  }, { deep: !0 }), (u, g) => (N(), j(ve, null, [
30608
30610
  n.value ? (N(), pe($n("style"), {
30609
- key: 0,
30611
+ key: r.value,
30610
30612
  "data-name": "template-theme"
30611
30613
  }, {
30612
30614
  default: Me(() => [
@@ -30614,16 +30616,10 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30614
30616
  ]),
30615
30617
  _: 1
30616
30618
  })) : re("", !0),
30617
- r.value ? (N(), j("link", {
30618
- key: 1,
30619
- rel: "stylesheet",
30620
- href: r.value,
30621
- "data-name": "ec-theme-stylesheet-link"
30622
- }, null, 8, By)) : re("", !0),
30619
+ By,
30623
30620
  Dy,
30624
30621
  My,
30625
- Ry,
30626
- Ly
30622
+ Ry
30627
30623
  ], 64));
30628
30624
  }
30629
30625
  }, Xs = {
@@ -30707,7 +30703,7 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30707
30703
  }), He(() => n.sections, async () => {
30708
30704
  console.log("props.sections watch expedite cart", n.sections), await l.processSections();
30709
30705
  }, { deep: !0 }), (r, s) => (N(), j(ve, null, [
30710
- oe(Ny, {
30706
+ oe(Ly, {
30711
30707
  "organization-id": n.organizationId,
30712
30708
  "template-id": n.templateId,
30713
30709
  "is-preview": n.isPreview,
@@ -30718,24 +30714,24 @@ const ao = (e) => (yt("data-v-975857d5"), e = e(), mt(), e), Iv = ["data-test-id
30718
30714
  }, null, 8, ["is-preview"])
30719
30715
  ], 64));
30720
30716
  }
30721
- }, Fy = {
30717
+ }, Ny = {
30722
30718
  ExpediteConfigurator: Os,
30723
30719
  ExpediteGPT: Ss,
30724
30720
  ExpediteCatalog: Hs,
30725
30721
  ExpediteCart: Xs
30726
- }, $y = {
30722
+ }, qy = {
30727
30723
  install(e, l = {}) {
30728
30724
  e.component("ExpediteConfigurator", Os), e.component("ExpediteGPT", Ss), e.component("ExpediteCatalog", Hs), e.component("ExpediteCart", Xs);
30729
30725
  },
30730
30726
  // Also export components for named imports
30731
- ...Fy
30727
+ ...Ny
30732
30728
  };
30733
30729
  export {
30734
- Fy as Components,
30730
+ Ny as Components,
30735
30731
  Xs as ExpediteCart,
30736
30732
  Hs as ExpediteCatalog,
30737
30733
  Os as ExpediteConfigurator,
30738
30734
  Ss as ExpediteGPT,
30739
- $y as default,
30735
+ qy as default,
30740
30736
  Qr as useComRootStore
30741
30737
  };