@moonbase.sh/storefront 0.4.52 → 0.4.53

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/moonbase.js CHANGED
@@ -4909,9 +4909,9 @@ class th {
4909
4909
  // if this is a proxy wrapping a ref, return methods using the raw ref
4910
4910
  // as receiver so that we don't have to call `toRaw` on the ref in all
4911
4911
  // its class methods
4912
- Xe(t) ? t : r
4912
+ Je(t) ? t : r
4913
4913
  );
4914
- return (lr(n) ? eh.has(n) : Bb(n)) || (o || gt(t, "get", n), s) ? a : Xe(a) ? i && Cu(n) ? a : a.value : He(a) ? o ? lh(a) : gi(a) : a;
4914
+ return (lr(n) ? eh.has(n) : Bb(n)) || (o || gt(t, "get", n), s) ? a : Je(a) ? i && Cu(n) ? a : a.value : He(a) ? o ? lh(a) : gi(a) : a;
4915
4915
  }
4916
4916
  }
4917
4917
  class nh extends th {
@@ -4922,14 +4922,14 @@ class nh extends th {
4922
4922
  let s = t[n];
4923
4923
  if (!this._isShallow) {
4924
4924
  const l = Fn(s);
4925
- if (!Ut(r) && !Fn(r) && (s = Oe(s), r = Oe(r)), !ve(t) && Xe(s) && !Xe(r))
4925
+ if (!Ut(r) && !Fn(r) && (s = Oe(s), r = Oe(r)), !ve(t) && Je(s) && !Je(r))
4926
4926
  return l ? !1 : (s.value = r, !0);
4927
4927
  }
4928
4928
  const i = ve(t) && Cu(n) ? Number(n) < t.length : Be(t, n), a = Reflect.set(
4929
4929
  t,
4930
4930
  n,
4931
4931
  r,
4932
- Xe(t) ? t : o
4932
+ Je(t) ? t : o
4933
4933
  );
4934
4934
  return t === Oe(o) && (i ? Cr(r, s) && In(t, "set", n, r, s) : In(t, "add", n, r)), a;
4935
4935
  }
@@ -5196,7 +5196,7 @@ function xr(e) {
5196
5196
  return !Be(e, "__v_skip") && Object.isExtensible(e) && Xs(e, "__v_skip", !0), e;
5197
5197
  }
5198
5198
  const xt = (e) => He(e) ? gi(e) : e, ma = (e) => He(e) ? lh(e) : e;
5199
- function Xe(e) {
5199
+ function Je(e) {
5200
5200
  return e ? e.__v_isRef === !0 : !1;
5201
5201
  }
5202
5202
  function L(e) {
@@ -5206,7 +5206,7 @@ function ng(e) {
5206
5206
  return uh(e, !0);
5207
5207
  }
5208
5208
  function uh(e, t) {
5209
- return Xe(e) ? e : new rg(e, t);
5209
+ return Je(e) ? e : new rg(e, t);
5210
5210
  }
5211
5211
  class rg {
5212
5212
  constructor(t, n) {
@@ -5231,7 +5231,7 @@ class rg {
5231
5231
  }
5232
5232
  }
5233
5233
  function v(e) {
5234
- return Xe(e) ? e.value : e;
5234
+ return Je(e) ? e.value : e;
5235
5235
  }
5236
5236
  function fr(e) {
5237
5237
  return ke(e) ? e() : v(e);
@@ -5240,7 +5240,7 @@ const og = {
5240
5240
  get: (e, t, n) => t === "__v_raw" ? e : v(Reflect.get(e, t, n)),
5241
5241
  set: (e, t, n, r) => {
5242
5242
  const o = e[t];
5243
- return Xe(o) && !Xe(n) ? (o.value = n, !0) : Reflect.set(e, t, n, r);
5243
+ return Je(o) && !Je(n) ? (o.value = n, !0) : Reflect.set(e, t, n, r);
5244
5244
  }
5245
5245
  };
5246
5246
  function ch(e) {
@@ -5277,11 +5277,11 @@ class ig {
5277
5277
  }
5278
5278
  }
5279
5279
  function cl(e, t, n) {
5280
- return Xe(e) ? e : ke(e) ? new ig(e) : He(e) && arguments.length > 1 ? dh(e, t, n) : L(e);
5280
+ return Je(e) ? e : ke(e) ? new ig(e) : He(e) && arguments.length > 1 ? dh(e, t, n) : L(e);
5281
5281
  }
5282
5282
  function dh(e, t, n) {
5283
5283
  const r = e[t];
5284
- return Xe(r) ? r : new sg(e, t, n);
5284
+ return Je(r) ? r : new sg(e, t, n);
5285
5285
  }
5286
5286
  class ag {
5287
5287
  constructor(t, n, r) {
@@ -5330,8 +5330,8 @@ function cg(e, t, n = Ye) {
5330
5330
  );
5331
5331
  }, c = (B) => o ? B : Ut(B) || o === !1 || o === 0 ? Er(B, 1) : Er(B);
5332
5332
  let d, f, h, p, g = !1, _ = !1;
5333
- if (Xe(e) ? (f = () => e.value, g = Ut(e)) : gn(e) ? (f = () => c(e), g = !0) : ve(e) ? (_ = !0, g = e.some((B) => gn(B) || Ut(B)), f = () => e.map((B) => {
5334
- if (Xe(B))
5333
+ if (Je(e) ? (f = () => e.value, g = Ut(e)) : gn(e) ? (f = () => c(e), g = !0) : ve(e) ? (_ = !0, g = e.some((B) => gn(B) || Ut(B)), f = () => e.map((B) => {
5334
+ if (Je(B))
5335
5335
  return B.value;
5336
5336
  if (gn(B))
5337
5337
  return c(B);
@@ -5408,7 +5408,7 @@ function cg(e, t, n = Ye) {
5408
5408
  function Er(e, t = 1 / 0, n) {
5409
5409
  if (t <= 0 || !He(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
5410
5410
  return e;
5411
- if (n.add(e), t--, Xe(e))
5411
+ if (n.add(e), t--, Je(e))
5412
5412
  Er(e.value, t, n);
5413
5413
  else if (ve(e))
5414
5414
  for (let r = 0; r < e.length; r++)
@@ -5502,7 +5502,7 @@ function pg(e) {
5502
5502
  }), n.length > 3 && t.push(" ..."), t;
5503
5503
  }
5504
5504
  function fh(e, t, n) {
5505
- return ot(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Xe(t) ? (t = fh(e, Oe(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : ke(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = Oe(t), n ? t : [`${e}=`, t]);
5505
+ return ot(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Je(t) ? (t = fh(e, Oe(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : ke(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = Oe(t), n ? t : [`${e}=`, t]);
5506
5506
  }
5507
5507
  function mg(e, t) {
5508
5508
  N.NODE_ENV !== "production" && e !== void 0 && (typeof e != "number" ? X(`${t} is not a valid number - got ${JSON.stringify(e)}.`) : isNaN(e) && X(`${t} is NaN - the duration expression might be incorrect.`));
@@ -6361,13 +6361,13 @@ function As(e, t, n, r, o = !1) {
6361
6361
  );
6362
6362
  return;
6363
6363
  }
6364
- const u = t && t.r, c = a.refs === Ye ? a.refs = {} : a.refs, d = a.setupState, f = Oe(d), h = d === Ye ? () => !1 : (p) => N.NODE_ENV !== "production" && (Be(f, p) && !Xe(f[p]) && X(
6364
+ const u = t && t.r, c = a.refs === Ye ? a.refs = {} : a.refs, d = a.setupState, f = Oe(d), h = d === Ye ? () => !1 : (p) => N.NODE_ENV !== "production" && (Be(f, p) && !Je(f[p]) && X(
6365
6365
  `Template ref "${p}" used on a non-ref value. It will not work in the production build.`
6366
6366
  ), Vg.has(f[p])) ? !1 : Be(f, p);
6367
- if (u != null && u !== l && (ot(u) ? (c[u] = null, h(u) && (d[u] = null)) : Xe(u) && (u.value = null)), ke(l))
6367
+ if (u != null && u !== l && (ot(u) ? (c[u] = null, h(u) && (d[u] = null)) : Je(u) && (u.value = null)), ke(l))
6368
6368
  ts(l, a, 12, [i, c]);
6369
6369
  else {
6370
- const p = ot(l), g = Xe(l);
6370
+ const p = ot(l), g = Je(l);
6371
6371
  if (p || g) {
6372
6372
  const _ = () => {
6373
6373
  if (e.f) {
@@ -6849,7 +6849,7 @@ function ev(e, t, n = vt) {
6849
6849
  o.from || r,
6850
6850
  o.default,
6851
6851
  !0
6852
- ) : s = me(o.from || r) : s = me(o), Xe(s) ? Object.defineProperty(t, r, {
6852
+ ) : s = me(o.from || r) : s = me(o), Je(s) ? Object.defineProperty(t, r, {
6853
6853
  enumerable: !0,
6854
6854
  configurable: !0,
6855
6855
  get: () => s.value,
@@ -6868,15 +6868,15 @@ function Lh(e, t, n, r) {
6868
6868
  let o = r.includes(".") ? Kh(n, r) : () => n[r];
6869
6869
  if (ot(e)) {
6870
6870
  const s = t[e];
6871
- ke(s) ? Ke(o, s) : N.NODE_ENV !== "production" && X(`Invalid watch handler specified by key "${e}"`, s);
6871
+ ke(s) ? Xe(o, s) : N.NODE_ENV !== "production" && X(`Invalid watch handler specified by key "${e}"`, s);
6872
6872
  } else if (ke(e))
6873
- Ke(o, e.bind(n));
6873
+ Xe(o, e.bind(n));
6874
6874
  else if (He(e))
6875
6875
  if (ve(e))
6876
6876
  e.forEach((s) => Lh(s, t, n, r));
6877
6877
  else {
6878
6878
  const s = ke(e.handler) ? e.handler.bind(n) : t[e.handler];
6879
- ke(s) ? Ke(o, s, e) : N.NODE_ENV !== "production" && X(`Invalid watch handler specified by key "${e.handler}"`, s);
6879
+ ke(s) ? Xe(o, s, e) : N.NODE_ENV !== "production" && X(`Invalid watch handler specified by key "${e.handler}"`, s);
6880
6880
  }
6881
6881
  else N.NODE_ENV !== "production" && X(`Invalid watch option: "${r}"`, e);
6882
6882
  }
@@ -7617,8 +7617,8 @@ function Ev(e, t) {
7617
7617
  ae,
7618
7618
  oe
7619
7619
  ), Ne && jr(w, null, G, "created"), P(re, w, w.scopeId, ae, G), Ee) {
7620
- for (const Je in Ee)
7621
- Je !== "value" && !Ps(Je) && s(re, Je, null, Ee[Je], Y, G);
7620
+ for (const Qe in Ee)
7621
+ Qe !== "value" && !Ps(Qe) && s(re, Qe, null, Ee[Qe], Y, G);
7622
7622
  "value" in Ee && s(re, "value", null, Ee.value, Y), (K = Ee.onVnodeBeforeMount) && Tn(K, G, w);
7623
7623
  }
7624
7624
  N.NODE_ENV !== "production" && (Xs(re, "__vnode", w, !0), Xs(re, "__vueParentComponent", G, !0)), Ne && jr(w, null, G, "beforeMount");
@@ -7688,8 +7688,8 @@ function Ev(e, t) {
7688
7688
  M(oe, le, ye, F, W);
7689
7689
  else if (re & 2 && le.class !== ye.class && s(oe, "class", null, ye.class, W), re & 4 && s(oe, "style", le.style, ye.style, W), re & 8) {
7690
7690
  const Ue = x.dynamicProps;
7691
- for (let Je = 0; Je < Ue.length; Je++) {
7692
- const We = Ue[Je], qt = le[We], Wt = ye[We];
7691
+ for (let Qe = 0; Qe < Ue.length; Qe++) {
7692
+ const We = Ue[Qe], qt = le[We], Wt = ye[We];
7693
7693
  (Wt !== qt || We === "value") && s(oe, We, qt, Wt, W, F);
7694
7694
  }
7695
7695
  }
@@ -7845,18 +7845,18 @@ function Ev(e, t) {
7845
7845
  }, U = (w, x, F, G, W, Y, ae) => {
7846
7846
  const oe = () => {
7847
7847
  if (w.isMounted) {
7848
- let { next: le, bu: ye, u: Ne, parent: Ue, vnode: Je } = w;
7848
+ let { next: le, bu: ye, u: Ne, parent: Ue, vnode: Qe } = w;
7849
7849
  {
7850
7850
  const Nn = Gh(w);
7851
7851
  if (Nn) {
7852
- le && (le.el = Je.el, ne(w, le, ae)), Nn.asyncDep.then(() => {
7852
+ le && (le.el = Qe.el, ne(w, le, ae)), Nn.asyncDep.then(() => {
7853
7853
  w.isUnmounted || oe();
7854
7854
  });
7855
7855
  return;
7856
7856
  }
7857
7857
  }
7858
7858
  let We = le, qt;
7859
- N.NODE_ENV !== "production" && Wi(le || w.vnode), Ur(w, !1), le ? (le.el = Je.el, ne(w, le, ae)) : le = Je, ye && cs(ye), (qt = le.props && le.props.onVnodeBeforeUpdate) && Tn(qt, Ue, le, Je), Ur(w, !0), N.NODE_ENV !== "production" && _o(w, "render");
7859
+ N.NODE_ENV !== "production" && Wi(le || w.vnode), Ur(w, !1), le ? (le.el = Qe.el, ne(w, le, ae)) : le = Qe, ye && cs(ye), (qt = le.props && le.props.onVnodeBeforeUpdate) && Tn(qt, Ue, le, Qe), Ur(w, !0), N.NODE_ENV !== "production" && _o(w, "render");
7860
7860
  const Wt = jc(w);
7861
7861
  N.NODE_ENV !== "production" && wo(w, "render");
7862
7862
  const Cn = w.subTree;
@@ -7871,12 +7871,12 @@ function Ev(e, t) {
7871
7871
  W,
7872
7872
  Y
7873
7873
  ), N.NODE_ENV !== "production" && wo(w, "patch"), le.el = Wt.el, We === null && Dv(w, Wt.el), Ne && Mt(Ne, W), (qt = le.props && le.props.onVnodeUpdated) && Mt(
7874
- () => Tn(qt, Ue, le, Je),
7874
+ () => Tn(qt, Ue, le, Qe),
7875
7875
  W
7876
7876
  ), N.NODE_ENV !== "production" && _h(w), N.NODE_ENV !== "production" && Zi();
7877
7877
  } else {
7878
7878
  let le;
7879
- const { el: ye, props: Ne } = x, { bm: Ue, m: Je, parent: We, root: qt, type: Wt } = w, Cn = Bo(x);
7879
+ const { el: ye, props: Ne } = x, { bm: Ue, m: Qe, parent: We, root: qt, type: Wt } = w, Cn = Bo(x);
7880
7880
  Ur(w, !1), Ue && cs(Ue), !Cn && (le = Ne && Ne.onVnodeBeforeMount) && Tn(le, We, x), Ur(w, !0);
7881
7881
  {
7882
7882
  qt.ce && // @ts-expect-error _def is private
@@ -7892,7 +7892,7 @@ function Ev(e, t) {
7892
7892
  Y
7893
7893
  ), N.NODE_ENV !== "production" && wo(w, "patch"), x.el = Nn.el;
7894
7894
  }
7895
- if (Je && Mt(Je, W), !Cn && (le = Ne && Ne.onVnodeMounted)) {
7895
+ if (Qe && Mt(Qe, W), !Cn && (le = Ne && Ne.onVnodeMounted)) {
7896
7896
  const Nn = x;
7897
7897
  Mt(
7898
7898
  () => Tn(le, We, Nn),
@@ -8058,14 +8058,14 @@ function Ev(e, t) {
8058
8058
  for (; K <= le; )
8059
8059
  Pe(w[K], W, Y, !0), K++;
8060
8060
  else {
8061
- const Ne = K, Ue = K, Je = /* @__PURE__ */ new Map();
8061
+ const Ne = K, Ue = K, Qe = /* @__PURE__ */ new Map();
8062
8062
  for (K = Ue; K <= ye; K++) {
8063
8063
  const At = x[K] = re ? yr(x[K]) : dn(x[K]);
8064
- At.key != null && (N.NODE_ENV !== "production" && Je.has(At.key) && X(
8064
+ At.key != null && (N.NODE_ENV !== "production" && Qe.has(At.key) && X(
8065
8065
  "Duplicate keys found during update:",
8066
8066
  JSON.stringify(At.key),
8067
8067
  "Make sure keys are unique."
8068
- ), Je.set(At.key, K));
8068
+ ), Qe.set(At.key, K));
8069
8069
  }
8070
8070
  let We, qt = 0;
8071
8071
  const Wt = ye - Ue + 1;
@@ -8080,7 +8080,7 @@ function Ev(e, t) {
8080
8080
  }
8081
8081
  let Pn;
8082
8082
  if (At.key != null)
8083
- Pn = Je.get(At.key);
8083
+ Pn = Qe.get(At.key);
8084
8084
  else
8085
8085
  for (We = Ue; We <= ye; We++)
8086
8086
  if (us[We - Ue] === 0 && Yr(At, x[We])) {
@@ -8146,12 +8146,12 @@ function Ev(e, t) {
8146
8146
  else {
8147
8147
  const { leave: le, delayLeave: ye, afterLeave: Ne } = oe, Ue = () => {
8148
8148
  w.ctx.isUnmounted ? o(Y) : r(Y, x, F);
8149
- }, Je = () => {
8149
+ }, Qe = () => {
8150
8150
  le(Y, () => {
8151
8151
  Ue(), Ne && Ne();
8152
8152
  });
8153
8153
  };
8154
- ye ? ye(Y, Ue, Je) : Je();
8154
+ ye ? ye(Y, Ue, Qe) : Qe();
8155
8155
  }
8156
8156
  else
8157
8157
  r(Y, x, F);
@@ -8171,9 +8171,9 @@ function Ev(e, t) {
8171
8171
  x.ctx.deactivate(w);
8172
8172
  return;
8173
8173
  }
8174
- const Ue = Ee & 1 && ye, Je = !Bo(w);
8174
+ const Ue = Ee & 1 && ye, Qe = !Bo(w);
8175
8175
  let We;
8176
- if (Je && (We = ae && ae.onVnodeBeforeUnmount) && Tn(We, x, w), Ee & 6)
8176
+ if (Qe && (We = ae && ae.onVnodeBeforeUnmount) && Tn(We, x, w), Ee & 6)
8177
8177
  Mm(w.component, F, G);
8178
8178
  else {
8179
8179
  if (Ee & 128) {
@@ -8200,7 +8200,7 @@ function Ev(e, t) {
8200
8200
  !0
8201
8201
  ) : (Y === _e && le & 384 || !W && Ee & 16) && as(re, x, F), G && yt(w);
8202
8202
  }
8203
- (Je && (We = ae && ae.onVnodeUnmounted) || Ue) && Mt(() => {
8203
+ (Qe && (We = ae && ae.onVnodeUnmounted) || Ue) && Mt(() => {
8204
8204
  We && Tn(We, x, w), Ue && jr(w, null, x, "unmounted");
8205
8205
  }, F);
8206
8206
  }, yt = (w) => {
@@ -8345,7 +8345,7 @@ const Ov = Symbol.for("v-scx"), Sv = () => {
8345
8345
  function en(e, t) {
8346
8346
  return ju(e, null, t);
8347
8347
  }
8348
- function Ke(e, t, n) {
8348
+ function Xe(e, t, n) {
8349
8349
  return N.NODE_ENV !== "production" && !ke(t) && X(
8350
8350
  "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
8351
8351
  ), ju(e, t, n);
@@ -8712,7 +8712,7 @@ const Vv = (...e) => np(
8712
8712
  ref: e,
8713
8713
  ref_key: t,
8714
8714
  ref_for: n
8715
- }) => (typeof e == "number" && (e = "" + e), e != null ? ot(e) || Xe(e) || ke(e) ? { i: mt, r: e, k: t, f: !!n } : e : null);
8715
+ }) => (typeof e == "number" && (e = "" + e), e != null ? ot(e) || Je(e) || ke(e) ? { i: mt, r: e, k: t, f: !!n } : e : null);
8716
8716
  function j(e, t = null, n = null, r = 0, o = null, s = e === _e ? 0 : 1, i = !1, a = !1) {
8717
8717
  const l = {
8718
8718
  __v_isVNode: !0,
@@ -9127,7 +9127,7 @@ function Wv(e) {
9127
9127
  const t = (n) => {
9128
9128
  if (N.NODE_ENV !== "production" && (e.exposed && X("expose() should be called only once per setup()."), n != null)) {
9129
9129
  let r = typeof n;
9130
- r === "object" && (ve(n) ? r = "array" : Xe(n) && (r = "ref")), r !== "object" && X(
9130
+ r === "object" && (ve(n) ? r = "array" : Je(n) && (r = "ref")), r !== "object" && X(
9131
9131
  `expose() should be passed a plain object, received ${r}.`
9132
9132
  );
9133
9133
  }
@@ -9215,7 +9215,7 @@ function Gv() {
9215
9215
  return null;
9216
9216
  if (d.__isVue)
9217
9217
  return ["div", e, "VueInstance"];
9218
- if (Xe(d)) {
9218
+ if (Je(d)) {
9219
9219
  wn();
9220
9220
  const f = d.value;
9221
9221
  return En(), [
@@ -10005,7 +10005,7 @@ var xi = class lt {
10005
10005
  }
10006
10006
  get loadedStorefrontPromise() {
10007
10007
  return new Promise((t) => {
10008
- Ke(this.loadedStorefront, (n) => {
10008
+ Xe(this.loadedStorefront, (n) => {
10009
10009
  n && t();
10010
10010
  }, { immediate: !0 });
10011
10011
  });
@@ -10018,7 +10018,7 @@ var xi = class lt {
10018
10018
  }
10019
10019
  get loadedUserPromise() {
10020
10020
  return new Promise((t) => {
10021
- Ke(this.loadedUser, (n) => {
10021
+ Xe(this.loadedUser, (n) => {
10022
10022
  n && t();
10023
10023
  }, { immediate: !0 });
10024
10024
  });
@@ -10148,7 +10148,7 @@ function Wy(e, t) {
10148
10148
  return;
10149
10149
  await n.client.activationRequests.isCompleted(r.value.id) && r.value ? (r.value.status = fn.Completed, a.value = !1) : l.value = setTimeout(u, 1500);
10150
10150
  };
10151
- return Ke(() => fr(e), async (c) => {
10151
+ return Xe(() => fr(e), async (c) => {
10152
10152
  try {
10153
10153
  c && c.length > 0 ? (r.value = await n.client.activationRequests.get(c), r.value.status === fn.Fulfilled && (a.value = !0, u()), s.value = !1) : console.warn("No token given to `useActivationRequest`");
10154
10154
  } catch (d) {
@@ -10156,7 +10156,7 @@ function Wy(e, t) {
10156
10156
  }
10157
10157
  }, { immediate: !0 }), Mu(() => {
10158
10158
  l.value && clearTimeout(l.value);
10159
- }), Ke(n.currentUser, async () => {
10159
+ }), Xe(n.currentUser, async () => {
10160
10160
  var c, d;
10161
10161
  const f = fr(e);
10162
10162
  if (!(!f || (d = (c = r.value) == null ? void 0 : c.licenseEligibility) != null && d.eligible)) {
@@ -11136,7 +11136,7 @@ function E1(e, t) {
11136
11136
  });
11137
11137
  });
11138
11138
  }, !0), t._customProperties.forEach((i) => {
11139
- Ke(() => v(t[i]), (a, l) => {
11139
+ Xe(() => v(t[i]), (a, l) => {
11140
11140
  n.notifyComponentUpdate(), n.sendInspectorState(St), Io && n.addTimelineEvent({
11141
11141
  layerId: Wr,
11142
11142
  event: {
@@ -11253,7 +11253,7 @@ function kp(e, t) {
11253
11253
  if (!(n in e))
11254
11254
  continue;
11255
11255
  const o = e[n];
11256
- po(o) && po(r) && !Xe(r) && !gn(r) ? e[n] = kp(o, r) : e[n] = r;
11256
+ po(o) && po(r) && !Je(r) && !gn(r) ? e[n] = kp(o, r) : e[n] = r;
11257
11257
  }
11258
11258
  return e;
11259
11259
  }
@@ -11279,7 +11279,7 @@ function iu(e, t) {
11279
11279
  if (!t.hasOwnProperty(n))
11280
11280
  continue;
11281
11281
  const r = t[n], o = e[n];
11282
- po(o) && po(r) && e.hasOwnProperty(n) && !Xe(r) && !gn(r) ? e[n] = iu(o, r) : e[n] = r;
11282
+ po(o) && po(r) && e.hasOwnProperty(n) && !Je(r) && !gn(r) ? e[n] = iu(o, r) : e[n] = r;
11283
11283
  }
11284
11284
  return e;
11285
11285
  }
@@ -11292,7 +11292,7 @@ function C1(e) {
11292
11292
  }
11293
11293
  const { assign: rn } = Object;
11294
11294
  function gd(e) {
11295
- return !!(Xe(e) && e.effect);
11295
+ return !!(Je(e) && e.effect);
11296
11296
  }
11297
11297
  function vd(e, t, n, r) {
11298
11298
  const { state: o, actions: s, getters: i } = t, a = n.state.value[e];
@@ -11397,7 +11397,7 @@ function au(e, t, n = {}, r, o, s) {
11397
11397
  $patch: S,
11398
11398
  $reset: R,
11399
11399
  $subscribe($, T = {}) {
11400
- const M = md(d, $, T.detached, () => ie()), ie = i.run(() => Ke(() => r.state.value[e], (xe) => {
11400
+ const M = md(d, $, T.detached, () => ie()), ie = i.run(() => Xe(() => r.state.value[e], (xe) => {
11401
11401
  (T.flush === "sync" ? c : u) && $({
11402
11402
  storeId: e,
11403
11403
  type: Ln.direct,
@@ -11421,8 +11421,8 @@ function au(e, t, n = {}, r, o, s) {
11421
11421
  const A = (r._a && r._a.runWithContext || O1)(() => r._e.run(() => (i = Hf()).run(() => t({ action: z }))));
11422
11422
  for (const $ in A) {
11423
11423
  const T = A[$];
11424
- if (Xe(T) && !gd(T) || gn(T))
11425
- je.NODE_ENV !== "production" && o ? Mi(g.value, $, cl(A, $)) : s || (p && C1(T) && (Xe(T) ? T.value = p[$] : iu(T, p[$])), r.state.value[e][$] = T), je.NODE_ENV !== "production" && B.state.push($);
11424
+ if (Je(T) && !gd(T) || gn(T))
11425
+ je.NODE_ENV !== "production" && o ? Mi(g.value, $, cl(A, $)) : s || (p && C1(T) && (Je(T) ? T.value = p[$] : iu(T, p[$])), r.state.value[e][$] = T), je.NODE_ENV !== "production" && B.state.push($);
11426
11426
  else if (typeof T == "function") {
11427
11427
  const M = je.NODE_ENV !== "production" && o ? T : z(T, $);
11428
11428
  A[$] = M, je.NODE_ENV !== "production" && (B.actions[$] = T), a.actions[$] = T;
@@ -11597,7 +11597,7 @@ const yd = {
11597
11597
  },
11598
11598
  target: void 0
11599
11599
  }, ct = Symbol("options"), P1 = () => window.location.search.includes("mb_debug=true");
11600
- function Qe(...e) {
11600
+ function Ke(...e) {
11601
11601
  P1() && console.debug(...e);
11602
11602
  }
11603
11603
  function Op(e, t) {
@@ -11651,7 +11651,7 @@ const $e = /* @__PURE__ */ N1("ui", () => {
11651
11651
  const h = s.value.pop();
11652
11652
  if (!h)
11653
11653
  return;
11654
- Qe("Going back to ", h);
11654
+ Ke("Going back to ", h);
11655
11655
  const [p, g, _] = h;
11656
11656
  e.value = 1, r.value = _ ?? null, n.value = g, t.value = p;
11657
11657
  }
@@ -12150,7 +12150,7 @@ const ps = Object.assign(
12150
12150
  );
12151
12151
  function L1(e) {
12152
12152
  const t = L(Gr.slice());
12153
- return Ke(
12153
+ return Xe(
12154
12154
  [e],
12155
12155
  ([n], [r]) => {
12156
12156
  r === !0 && n === !1 ? Xa(() => {
@@ -12181,7 +12181,7 @@ function U1({
12181
12181
  }, r) {
12182
12182
  const o = L(null), s = L(!1);
12183
12183
  return ze(() => s.value = !0), zt(() => s.value = !1), ze(() => {
12184
- Ke(
12184
+ Xe(
12185
12185
  // Handle initial focus
12186
12186
  [t, n, r],
12187
12187
  (i, a) => {
@@ -12466,7 +12466,7 @@ function K1(e, t, n) {
12466
12466
  const s = e.value ? r.value.get(e.value) : void 0;
12467
12467
  return s ? s.count > 0 : !1;
12468
12468
  });
12469
- return Ke(
12469
+ return Xe(
12470
12470
  [e, t],
12471
12471
  ([s, i], [a], l) => {
12472
12472
  if (!s || !i)
@@ -12682,7 +12682,7 @@ function s_({
12682
12682
  r == null || r(...i), o(...i);
12683
12683
  }
12684
12684
  ze(() => {
12685
- Ke(
12685
+ Xe(
12686
12686
  t,
12687
12687
  (i, a) => {
12688
12688
  i ? s(0, e, n) : a === !0 && s(1, e, n);
@@ -12744,7 +12744,7 @@ const uu = Symbol("PortalParentContext"), Lp = Symbol("PortalGroupContext"), l_
12744
12744
  const l = me(uu, null);
12745
12745
  let u = !1;
12746
12746
  const c = Ya();
12747
- return Ke(r, () => {
12747
+ return Xe(r, () => {
12748
12748
  if (u || !l)
12749
12749
  return;
12750
12750
  const d = Re(r);
@@ -13230,7 +13230,7 @@ const Xu = Symbol("TabsSSRContext"), b_ = /* @__PURE__ */ pe({
13230
13230
  );
13231
13231
  const h = te(() => e.selectedIndex);
13232
13232
  return ze(() => {
13233
- Ke(
13233
+ Xe(
13234
13234
  [h],
13235
13235
  () => c(e.selectedIndex ?? e.defaultIndex),
13236
13236
  { immediate: !0 }
@@ -13651,7 +13651,7 @@ const Fp = Ko.RenderStrategy, fu = /* @__PURE__ */ pe({
13651
13651
  ));
13652
13652
  }
13653
13653
  return ze(() => {
13654
- Ke(
13654
+ Xe(
13655
13655
  [f],
13656
13656
  (ie, xe, C) => {
13657
13657
  M(C), S.value = !1;
@@ -14152,7 +14152,7 @@ const nt = /* @__PURE__ */ cr(G_, [["render", X_]]), J_ = ["data-contain"], Q_ =
14152
14152
  __name: "Drawer",
14153
14153
  setup(e) {
14154
14154
  const t = $e(), n = rt(), r = me(ct), o = L(""), s = L("");
14155
- Ke(() => [t.active, t.intent, t.next], ([a, l, u]) => {
14155
+ Xe(() => [t.active, t.intent, t.next], ([a, l, u]) => {
14156
14156
  if (s.value = "", u && (l === Q.SignIn || l === Q.SignUp)) {
14157
14157
  const [c, d, f] = u;
14158
14158
  d === Q.ConfirmEmailChange ? s.value = "to confirm email" : d === Q.RedeemVoucher ? s.value = "to redeem voucher" : d === Q.ActivateProduct ? s.value = "to activate product" : d === Q.ManageSubscription && (s.value = "to manage subscription");
@@ -14482,7 +14482,7 @@ function cw() {
14482
14482
  /^bundle\.[a-z][a-z0-9\-]+[a-z0-9]$/,
14483
14483
  /^bundle\.[a-z][a-z0-9\-]+[a-z0-9]\.has_discount(_description)?$/
14484
14484
  ], l = L({}), u = te(() => l.value.user || []), c = te(() => l.value.cart || []), d = te(() => l.value.product || []), f = te(() => l.value.bundle || []), h = rt(), { currency: p, items: g } = rr(), _ = Jy(), S = Zy();
14485
- Ke([r, u, h.user], ([z, B, I]) => {
14485
+ Xe([r, u, h.user], ([z, B, I]) => {
14486
14486
  if (z) {
14487
14487
  for (const y of z)
14488
14488
  if (y.dataset.moonbaseOriginal === void 0 && (y.dataset.moonbaseOriginal = y.textContent || ""), I)
@@ -14498,10 +14498,10 @@ function cw() {
14498
14498
  for (const y of B)
14499
14499
  y.dataset.moonbaseOriginalHidden || (y.dataset.moonbaseOriginalHidden = y.hidden ? "true" : "false"), I ? y.hidden = y.dataset.moonbaseIf === "!user" : y.hidden = y.dataset.moonbaseIf === "user";
14500
14500
  }
14501
- }, { immediate: !0, deep: !0 }), Ke([o, c, g], ([z, B, I]) => {
14501
+ }, { immediate: !0, deep: !0 }), Xe([o, c, g], ([z, B, I]) => {
14502
14502
  if (z) {
14503
14503
  for (const y of z)
14504
- switch (y.dataset.moonbaseOriginal === void 0 && (y.dataset.moonbaseOriginal = y.textContent || ""), Qe("Rendering cart element", y), y.dataset.moonbaseRender) {
14504
+ switch (y.dataset.moonbaseOriginal === void 0 && (y.dataset.moonbaseOriginal = y.textContent || ""), Ke("Rendering cart element", y), y.dataset.moonbaseRender) {
14505
14505
  case "cart.item_count":
14506
14506
  y.textContent = I.reduce((P, A) => P + A.quantity, 0).toString();
14507
14507
  break;
@@ -14525,7 +14525,7 @@ function cw() {
14525
14525
  P[0].startsWith("!") && ($ = !$), y.dataset.moonbaseOriginalHidden || (y.dataset.moonbaseOriginalHidden = y.hidden ? "true" : "false"), $ ? y.hidden = !1 : y.hidden = !0;
14526
14526
  }
14527
14527
  }
14528
- }, { immediate: !0, deep: !0 }), Ke([s, d, _, p], ([z, B, I, y]) => {
14528
+ }, { immediate: !0, deep: !0 }), Xe([s, d, _, p], ([z, B, I, y]) => {
14529
14529
  var P, A, $, T, M, ie, xe, C, q;
14530
14530
  if (z) {
14531
14531
  for (const U of z) {
@@ -14583,7 +14583,7 @@ function cw() {
14583
14583
  ne[0].startsWith("!") && (we = !we), U.dataset.moonbaseOriginalHidden || (U.dataset.moonbaseOriginalHidden = U.hidden ? "true" : "false"), we ? U.hidden = !1 : U.hidden = !0;
14584
14584
  }
14585
14585
  }
14586
- }, { immediate: !0, deep: !0 }), Ke([i, f, S, p], ([z, B, I, y]) => {
14586
+ }, { immediate: !0, deep: !0 }), Xe([i, f, S, p], ([z, B, I, y]) => {
14587
14587
  var P, A, $, T, M, ie, xe, C, q;
14588
14588
  if (z) {
14589
14589
  for (const U of z) {
@@ -14647,7 +14647,7 @@ function cw() {
14647
14647
  console.warn(`Element has an unknown Moonbase target (${I})`, z);
14648
14648
  else if (I) {
14649
14649
  const y = I.split(".")[0];
14650
- n.value[y] = n.value[y] || [], n.value[y].push(z), Qe("Added node to render collection", z);
14650
+ n.value[y] = n.value[y] || [], n.value[y].push(z), Ke("Added node to render collection", z);
14651
14651
  }
14652
14652
  }
14653
14653
  if (z.dataset && z.dataset.moonbaseIf) {
@@ -14656,7 +14656,7 @@ function cw() {
14656
14656
  console.warn(`Element has an unknown Moonbase target (${I})`, z);
14657
14657
  else if (I) {
14658
14658
  const y = I.split(".")[0];
14659
- l.value[y] = l.value[y] || [], l.value[y].push(z), Qe("Added node to conditional collection", z);
14659
+ l.value[y] = l.value[y] || [], l.value[y].push(z), Ke("Added node to conditional collection", z);
14660
14660
  }
14661
14661
  }
14662
14662
  z.nodeType === Node.ELEMENT_NODE && z.querySelectorAll("[data-moonbase-render], [data-moonbase-if]").forEach((I) => R(I));
@@ -14669,7 +14669,7 @@ function cw() {
14669
14669
  console.warn(`Element has an unknown Moonbase target (${I})`, z);
14670
14670
  else if (I) {
14671
14671
  const y = I.split(".")[0];
14672
- n.value[y] ? (n.value[y] = n.value[y].filter((P) => P !== z), Qe("Removed node from render collection", z)) : Qe("Could not find node in render collection", z);
14672
+ n.value[y] ? (n.value[y] = n.value[y].filter((P) => P !== z), Ke("Removed node from render collection", z)) : Ke("Could not find node in render collection", z);
14673
14673
  }
14674
14674
  }
14675
14675
  if (z.dataset && z.dataset.moonbaseIf) {
@@ -14678,7 +14678,7 @@ function cw() {
14678
14678
  console.warn(`Element has an unknown Moonbase target (${I})`, z);
14679
14679
  else if (I) {
14680
14680
  const y = I.split(".")[0];
14681
- l.value[y] ? (l.value[y] = l.value[y].filter((P) => P !== z), Qe("Removed node from conditional collection", z)) : Qe("Could not find node in conditional collection", z);
14681
+ l.value[y] ? (l.value[y] = l.value[y].filter((P) => P !== z), Ke("Removed node from conditional collection", z)) : Ke("Could not find node in conditional collection", z);
14682
14682
  }
14683
14683
  }
14684
14684
  z.nodeType === Node.ELEMENT_NODE && z.querySelectorAll("[data-moonbase-render], [data-moonbase-if]").forEach((I) => H(I));
@@ -14693,36 +14693,36 @@ function cw() {
14693
14693
  H(P);
14694
14694
  } else if (y.type === "attributes" && y.attributeName) {
14695
14695
  const P = y.target.getAttribute(y.attributeName);
14696
- Qe(`The ${y.attributeName} attribute was modified from ${y.oldValue} to ${P}.`);
14696
+ Ke(`The ${y.attributeName} attribute was modified from ${y.oldValue} to ${P}.`);
14697
14697
  const A = y.target;
14698
14698
  if (y.attributeName === "data-moonbase-render") {
14699
14699
  const $ = y.oldValue;
14700
14700
  if ($) {
14701
14701
  const T = $.split(".")[0];
14702
- n.value[T] ? (n.value[T] = n.value[T].filter((M) => M !== A), Qe("Removed node from render collection", A)) : Qe("Could not find node in render collection", A);
14702
+ n.value[T] ? (n.value[T] = n.value[T].filter((M) => M !== A), Ke("Removed node from render collection", A)) : Ke("Could not find node in render collection", A);
14703
14703
  }
14704
14704
  if (!P || !t.some((T) => T.test(P)))
14705
14705
  P && console.warn(`Element has an unknown Moonbase target (${P})`, A), A.dataset.moonbaseOriginal && (A.textContent = A.dataset.moonbaseOriginal);
14706
14706
  else if (P) {
14707
14707
  const T = P == null ? void 0 : P.split(".")[0];
14708
- n.value[T] = n.value[T] || [], n.value[T].includes(A) || n.value[T].push(A), Qe("Added node to render collection", A);
14708
+ n.value[T] = n.value[T] || [], n.value[T].includes(A) || n.value[T].push(A), Ke("Added node to render collection", A);
14709
14709
  }
14710
14710
  }
14711
14711
  if (y.attributeName === "data-moonbase-if") {
14712
14712
  const $ = y.oldValue;
14713
14713
  if ($) {
14714
14714
  const T = $.split(".")[0];
14715
- l.value[T] ? (l.value[T] = l.value[T].filter((M) => M !== A), Qe("Removed node from conditional collection", A)) : Qe("Could not find node in conditional collection", A);
14715
+ l.value[T] ? (l.value[T] = l.value[T].filter((M) => M !== A), Ke("Removed node from conditional collection", A)) : Ke("Could not find node in conditional collection", A);
14716
14716
  }
14717
14717
  if (!P || !a.some((T) => T.test(P)))
14718
14718
  P && console.warn(`Element has an unknown Moonbase target (${P})`, A), A.dataset.moonbaseOriginalHidden === "true" && (A.hidden = !0);
14719
14719
  else if (P) {
14720
14720
  const T = P == null ? void 0 : P.split(".")[0];
14721
- l.value[T] = l.value[T] || [], l.value[T].includes(A) || l.value[T].push(A), Qe("Added node to conditional collection", A);
14721
+ l.value[T] = l.value[T] || [], l.value[T].includes(A) || l.value[T].push(A), Ke("Added node to conditional collection", A);
14722
14722
  }
14723
14723
  }
14724
14724
  } else
14725
- Qe(`A ${y.type} mutation took place.`);
14725
+ Ke(`A ${y.type} mutation took place.`);
14726
14726
  }), e.value.observe(document.body, {
14727
14727
  subtree: !0,
14728
14728
  childList: !0,
@@ -14737,25 +14737,34 @@ function dw() {
14737
14737
  const e = L(null);
14738
14738
  function t(r) {
14739
14739
  const o = r.currentTarget, s = o.getAttribute("href");
14740
- if (Qe("Link was clicked:", o, s, bu), o.tagName === "A" && s && gs.test(s)) {
14740
+ if (Ke("Link was clicked:", o, s, bu), o.tagName === "A" && s && gs.test(s)) {
14741
14741
  r.preventDefault(), r.stopPropagation();
14742
14742
  const i = new URLSearchParams(s.slice(s.indexOf("?"))), a = i.get("mb_intent");
14743
14743
  if (a && Object.values(Q).includes(a)) {
14744
14744
  const l = Object.fromEntries([...i.entries()].filter(([u]) => u.startsWith("mb_")).map(([u, c]) => [u.substring(3), c]));
14745
14745
  if (a === Q.Checkout && l.complete)
14746
14746
  return;
14747
- Qe("Parsed intent, invoking..", a, l), bu[a](l);
14747
+ Ke("Parsed intent, invoking..", a, l), bu[a](l);
14748
14748
  }
14749
14749
  }
14750
14750
  }
14751
14751
  function n(r) {
14752
- if (!(r.nodeType !== Node.ELEMENT_NODE || r.dataset.moonbaseButton))
14752
+ if (r.nodeType === Node.ELEMENT_NODE) {
14753
+ if (r.dataset.moonbaseButton) {
14754
+ Ke(`Link ${r.dataset.moonbaseButton} is already registered, making sure the event listener is still there, element:`, r), r.addEventListener("click", t);
14755
+ return;
14756
+ }
14753
14757
  try {
14754
14758
  const o = r.getAttribute("href");
14755
- r.tagName === "A" && o && gs.test(o) && (Qe("Adding event listener to element:", r), r.addEventListener("click", t), r.dataset.moonbaseButton = "true"), r.querySelectorAll('a[href*="?mb_intent="]').forEach((s) => n(s));
14759
+ if (r.tagName === "A" && o && gs.test(o)) {
14760
+ const s = crypto.randomUUID().slice(0, 8);
14761
+ Ke(`Adding event listener for link ${s} to element:`, r), r.addEventListener("click", t), r.dataset.moonbaseButton = s;
14762
+ }
14763
+ r.querySelectorAll('a[href*="?mb_intent="]').forEach((s) => n(s));
14756
14764
  } catch (o) {
14757
14765
  console.warn("Could not add Moonbase listener to link", r, o);
14758
14766
  }
14767
+ }
14759
14768
  }
14760
14769
  ze(() => {
14761
14770
  e.value = new MutationObserver((o, s) => {
@@ -14765,11 +14774,11 @@ function dw() {
14765
14774
  n(a);
14766
14775
  else if (i.type === "attributes" && i.attributeName) {
14767
14776
  const a = i.target.getAttribute(i.attributeName);
14768
- Qe(`The ${i.attributeName} attribute was modified from ${i.oldValue} to ${a}.`);
14777
+ Ke(`The ${i.attributeName} attribute was modified from ${i.oldValue} to ${a}.`);
14769
14778
  const l = i.target;
14770
14779
  i.attributeName === "href" && (i.oldValue && gs.test(i.oldValue) && (!a || !gs.test(a)) ? l.removeEventListener("click", t) : a && gs.test(a) && n(l));
14771
14780
  } else
14772
- Qe(`A ${i.type} mutation took place.`);
14781
+ Ke(`A ${i.type} mutation took place.`);
14773
14782
  }), e.value.observe(document.body, {
14774
14783
  subtree: !0,
14775
14784
  childList: !0,
@@ -17415,7 +17424,7 @@ function CE(e, t) {
17415
17424
  const Ae = /* @__PURE__ */ cr(OE, [["render", CE]]), NE = { class: "moonbase:about" }, PE = /* @__PURE__ */ pe({
17416
17425
  __name: "About",
17417
17426
  setup(e) {
17418
- const t = $e(), n = "0.4.52";
17427
+ const t = $e(), n = "0.4.53";
17419
17428
  return (r, o) => (b(), O("div", NE, [
17420
17429
  o[2] || (o[2] = op('<svg viewBox="0 0 512 512" height="56px" width="56px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg>', 1)),
17421
17430
  E(v(jp), { as: "h3" }, {
@@ -17605,7 +17614,7 @@ const Qo = /* @__PURE__ */ cr(RE, [["render", jE]]), UE = { class: "moonbase:pro
17605
17614
  fulfillLicense: d,
17606
17615
  fulfillTrial: f
17607
17616
  } = Wy(s), h = me(Ht);
17608
- Ke(i, (y) => {
17617
+ Xe(i, (y) => {
17609
17618
  var P;
17610
17619
  !l.value && !u.value && (y == null ? void 0 : y.status) === fn.Requested && ((P = y == null ? void 0 : y.licenseEligibility) != null && P.eligible) && d(), (y == null ? void 0 : y.status) === fn.Completed && (o == null || o(Zt.ActivatedProduct, {
17611
17620
  product: y.product,
@@ -18853,7 +18862,7 @@ const hk = { class: "moonbase:bundle-cart-item-content" }, pk = {
18853
18862
  },
18854
18863
  setup(e) {
18855
18864
  const n = Ji(e.lineItem.bundleId), r = me(ct), o = rr(), s = L(!1), i = L(null);
18856
- return Ke(s, (a) => {
18865
+ return Xe(s, (a) => {
18857
18866
  i.value && (i.value.style.height = a ? `${i.value.scrollHeight}px` : "0px");
18858
18867
  }), (a, l) => {
18859
18868
  var u;
@@ -19044,7 +19053,7 @@ const hk = { class: "moonbase:bundle-cart-item-content" }, pk = {
19044
19053
  },
19045
19054
  setup(e) {
19046
19055
  const t = e, n = me(ct), { addToCart: r, currency: o } = rr(), s = L(!1), i = L(null);
19047
- Ke(s, (c) => {
19056
+ Xe(s, (c) => {
19048
19057
  i.value && (i.value.style.height = c ? `${i.value.scrollHeight}px` : "0px");
19049
19058
  });
19050
19059
  const a = te(() => {
@@ -19600,7 +19609,7 @@ const hk = { class: "moonbase:bundle-cart-item-content" }, pk = {
19600
19609
  },
19601
19610
  setup(e) {
19602
19611
  const t = L(!1), n = L(null);
19603
- return Ke(t, (r) => {
19612
+ return Xe(t, (r) => {
19604
19613
  n.value && (n.value.style.height = r ? `${n.value.scrollHeight}px` : "0px");
19605
19614
  }), (r, o) => (b(), Z(un, { class: "moonbase:bundle-redemption-item" }, {
19606
19615
  addon: k(() => {
@@ -22438,8 +22447,8 @@ const k3 = { class: "moonbase:subscription-content-card-content" }, x3 = ["data-
22438
22447
  __name: "App",
22439
22448
  setup(e) {
22440
22449
  const t = me(ct), n = $e();
22441
- Ke(() => [n.active, n.intent], ([o, s]) => {
22442
- Qe("UI updated", { view: o, intent: s });
22450
+ Xe(() => [n.active, n.intent], ([o, s]) => {
22451
+ Ke("UI updated", { view: o, intent: s });
22443
22452
  });
22444
22453
  const r = {
22445
22454
  Inter: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
@@ -22457,12 +22466,12 @@ const k3 = { class: "moonbase:subscription-content-card-content" }, x3 = ["data-
22457
22466
  const s = document.createElement("link");
22458
22467
  s.rel = "stylesheet", s.href = r[t.value.theme.fonts.heading], document.head.appendChild(s), document.documentElement.style.setProperty("--moonbase-font-heading", t.value.theme.fonts.heading ?? "");
22459
22468
  }
22460
- return Ke(() => t == null ? void 0 : t.value.theme.colors.primary, (o) => {
22469
+ return Xe(() => t == null ? void 0 : t.value.theme.colors.primary, (o) => {
22461
22470
  if (!o)
22462
22471
  return;
22463
22472
  let s = o;
22464
22473
  typeof s == "string" && (s = Object.fromEntries(gE(s).map((i) => [i.number <= 100 || i.number === 950 ? i.number - 50 : i.number - 100, i.hexcode]))), document.documentElement.style.setProperty("--moonbase-brand-50", s[50] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-100", s[100] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-200", s[200] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-300", s[300] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-400", s[400] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-500", s[500] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-600", s[600] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-700", s[700] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-800", s[800] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-900", s[900] ?? "");
22465
- }, { immediate: !0 }), Ke(() => t == null ? void 0 : t.value.theme.dark, (o) => {
22474
+ }, { immediate: !0 }), Xe(() => t == null ? void 0 : t.value.theme.dark, (o) => {
22466
22475
  o ? document.documentElement.classList.add("moonbase:dark") : document.documentElement.classList.remove("moonbase:dark");
22467
22476
  }, { immediate: !0 }), cw(), dw(), (o, s) => {
22468
22477
  var i;
@@ -22497,7 +22506,7 @@ function Da(e, ...t) {
22497
22506
  return Da(e, ...t);
22498
22507
  }
22499
22508
  function z3(e) {
22500
- const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) : Xe(n) || gn(n) || Go(n) ? t(Oe(n)) : n && typeof n == "object" ? Object.keys(n).reduce((r, o) => (r[o] = t(n[o]), r), {}) : n;
22509
+ const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) : Je(n) || gn(n) || Go(n) ? t(Oe(n)) : n && typeof n == "object" ? Object.keys(n).reduce((r, o) => (r[o] = t(n[o]), r), {}) : n;
22501
22510
  return t(e);
22502
22511
  }
22503
22512
  const Im = Symbol("url"), H3 = Symbol("moonbase_instance"), mr = (e, t) => window.dispatchEvent(new CustomEvent(`moonbase-storefront-${e}`, {
@@ -22518,11 +22527,11 @@ class q3 {
22518
22527
  console.warn("Moonbase has already been initialized!");
22519
22528
  return;
22520
22529
  }
22521
- Qe("Given options:", n), this.options = L(Da(((u = this.options) == null ? void 0 : u.value) ?? yd, n ?? {})), Qe("Merged options:", this.options.value);
22530
+ Ke("Given options:", n), this.options = L(Da(((u = this.options) == null ? void 0 : u.value) ?? yd, n ?? {})), Ke("Merged options:", this.options.value);
22522
22531
  const r = document.createElement("div");
22523
22532
  r.id = "moonbase", r.classList.add("moonbase");
22524
22533
  const o = this.options.value.target ?? document.body;
22525
- Qe("Mounting to target element", o), o.append(r);
22534
+ Ke("Mounting to target element", o), o.append(r);
22526
22535
  let s = t;
22527
22536
  if (t.includes(".moonbase.sh")) {
22528
22537
  const d = /^(https:\/\/[a-z\-]+\.(?:beta\.)?moonbase\.sh)(.+)/.exec(t);
@@ -22550,9 +22559,9 @@ class q3 {
22550
22559
  }
22551
22560
  configure(t) {
22552
22561
  var r;
22553
- Qe("Given options:", t);
22562
+ Ke("Given options:", t);
22554
22563
  const n = Da(((r = this.options) == null ? void 0 : r.value) ?? yd, t ?? {});
22555
- Qe("Merged options:", n), this.options ? this.options.value = n : this.options = L(n);
22564
+ Ke("Merged options:", n), this.options ? this.options.value = n : this.options = L(n);
22556
22565
  }
22557
22566
  on(t, n) {
22558
22567
  window.addEventListener(`moonbase-storefront-${t}`, (r) => n(r.detail));