@expedite-commerce/expedite-components 0.2.136 → 0.2.138

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.
@@ -628,8 +628,13 @@ const hn = St("error", {
628
628
  }), oc = St("comShare", () => {
629
629
  const e = z({}), r = z(""), t = z(""), n = z(""), o = z(""), a = z(""), i = z(""), l = z(""), s = z(""), f = z("Single"), c = z({}), p = fe(() => f.value === "Single"), u = z({});
630
630
  function m(g) {
631
- var h;
632
- return !g || g.includes("http") || g.includes("://") || !((h = u.value) != null && h.siteUrl) ? g : `${u.value.siteUrl}${g}`;
631
+ var y;
632
+ if (!g || g.includes("://") || !((y = u.value) != null && y.siteUrl))
633
+ return g;
634
+ if (/^[\w-]+(\.[\w-]+)+\//.test(g))
635
+ return `https://${g}`;
636
+ const h = u.value.siteUrl.replace(/\/+$/, ""), v = g.replace(/^(?:\.\.?\/)+/, "").replace(/^\/+/, "");
637
+ return `${h}/${v}`;
633
638
  }
634
639
  async function d(g, h, v, y) {
635
640
  r.value = g.orgType || "Production", t.value = g.orgId || "", n.value = g.userId || "", o.value = g.accountId || "", a.value = g.opportunityId || "", s.value = g.userLocale || "en_US", f.value = g.pricingSchema || "Single", e.value = h || {}, c.value = v || {}, u.value = y || {};
@@ -6625,7 +6630,7 @@ const bl = /* @__PURE__ */ Ne(Nf, [["render", $f]]), $t = (e, r = {}) => {
6625
6630
  ], 40, $h);
6626
6631
  };
6627
6632
  }
6628
- }, Ro = /* @__PURE__ */ Ne(Vh, [["__scopeId", "data-v-5cd60070"]]), Sc = (e) => (Kt("data-v-58fd16d7"), e = e(), Xt(), e), zh = ["data-test-id", "data-publish-key"], Gh = {
6633
+ }, Ro = /* @__PURE__ */ Ne(Vh, [["__scopeId", "data-v-5cd60070"]]), Sc = (e) => (Kt("data-v-e1277629"), e = e(), Xt(), e), zh = ["data-test-id", "data-publish-key"], Gh = {
6629
6634
  key: 0,
6630
6635
  class: "ect-text-xs ect-text-gray-500 ect-text-white ect-font-medium ect-leading-tight ect-absolute ect-top-[-.7rem] ect-left-[-1rem] ect-bg-text-success ect-rounded-xl ect-px-2 ect-py-1"
6631
6636
  }, Kh = {
@@ -6729,7 +6734,7 @@ const bl = /* @__PURE__ */ Ne(Nf, [["render", $f]]), $t = (e, r = {}) => {
6729
6734
  key: 0,
6730
6735
  src: e.imageUrl,
6731
6736
  alt: f.value,
6732
- class: "ect-w-full ect-h-full ect-object-cover"
6737
+ class: "ect-w-full ect-h-full ect-object-contain"
6733
6738
  }, null, 8, Wh)) : (M(), Ae(Ve, {
6734
6739
  key: 1,
6735
6740
  disabled: "",
@@ -6834,7 +6839,7 @@ const bl = /* @__PURE__ */ Ne(Nf, [["render", $f]]), $t = (e, r = {}) => {
6834
6839
  key: 0,
6835
6840
  src: e.imageUrl,
6836
6841
  alt: e.name,
6837
- class: "ect-w-full ect-h-full ect-object-cover"
6842
+ class: "ect-w-full ect-h-full ect-object-contain"
6838
6843
  }, null, 8, c5)) : ae("", !0)
6839
6844
  ])) : ae("", !0),
6840
6845
  _("div", d5, [
@@ -6932,7 +6937,7 @@ const bl = /* @__PURE__ */ Ne(Nf, [["render", $f]]), $t = (e, r = {}) => {
6932
6937
  ])) : ae("", !0)
6933
6938
  ], 10, zh));
6934
6939
  }
6935
- }, k5 = /* @__PURE__ */ Ne(E5, [["__scopeId", "data-v-58fd16d7"]]), A5 = {
6940
+ }, k5 = /* @__PURE__ */ Ne(E5, [["__scopeId", "data-v-e1277629"]]), A5 = {
6936
6941
  "af-ZA": ",",
6937
6942
  "sq-AL": ",",
6938
6943
  "ar-DZ": ",",
@@ -17709,7 +17714,7 @@ const gu = {
17709
17714
  key: 0,
17710
17715
  src: e.config.defaultImageURL,
17711
17716
  alt: e.config.itemName,
17712
- class: "ect-w-full ect-h-full ect-object-cover"
17717
+ class: "ect-w-full ect-h-full ect-object-contain"
17713
17718
  }, null, 8, I6)) : ae("", !0)
17714
17719
  ], 2)) : ae("", !0),
17715
17720
  e.scroll < 50 ? (M(), P("div", S6, [