@moonbase.sh/storefront 0.2.142 → 0.2.144

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
@@ -3070,7 +3070,7 @@ var fl = { exports: {} };
3070
3070
  O.bodyUsed = !0;
3071
3071
  }
3072
3072
  }
3073
- function P(O) {
3073
+ function $(O) {
3074
3074
  return new Promise(function(M, X) {
3075
3075
  O.onload = function() {
3076
3076
  M(O.result);
@@ -3080,11 +3080,11 @@ var fl = { exports: {} };
3080
3080
  });
3081
3081
  }
3082
3082
  function z(O) {
3083
- var M = new FileReader(), X = P(M);
3083
+ var M = new FileReader(), X = $(M);
3084
3084
  return M.readAsArrayBuffer(O), X;
3085
3085
  }
3086
3086
  function H(O) {
3087
- var M = new FileReader(), X = P(M), ie = /charset=([A-Za-z0-9_-]+)/.exec(O.type), ge = ie ? ie[1] : "utf-8";
3087
+ var M = new FileReader(), X = $(M), ie = /charset=([A-Za-z0-9_-]+)/.exec(O.type), ge = ie ? ie[1] : "utf-8";
3088
3088
  return M.readAsText(O, ge), X;
3089
3089
  }
3090
3090
  function L(O) {
@@ -3239,7 +3239,7 @@ var fl = { exports: {} };
3239
3239
  this.stack = ie.stack;
3240
3240
  }, i.DOMException.prototype = Object.create(Error.prototype), i.DOMException.prototype.constructor = i.DOMException;
3241
3241
  }
3242
- function he(O, M) {
3242
+ function pe(O, M) {
3243
3243
  return new Promise(function(X, ie) {
3244
3244
  var ge = new A(O, M);
3245
3245
  if (ge.signal && ge.signal.aborted)
@@ -3294,7 +3294,7 @@ var fl = { exports: {} };
3294
3294
  }), de.send(typeof ge._bodyInit > "u" ? null : ge._bodyInit);
3295
3295
  });
3296
3296
  }
3297
- return he.polyfill = !0, a.fetch || (a.fetch = he, a.Headers = _, a.Request = A, a.Response = S), i.Headers = _, i.Request = A, i.Response = S, i.fetch = he, i;
3297
+ return pe.polyfill = !0, a.fetch || (a.fetch = pe, a.Headers = _, a.Request = A, a.Response = S), i.Headers = _, i.Request = A, i.Response = S, i.fetch = pe, i;
3298
3298
  })({});
3299
3299
  })(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
3300
3300
  var o = n.fetch ? n : r;
@@ -5122,8 +5122,8 @@ function vb(e, t, n = He) {
5122
5122
  const V = f, D = o === !0 ? 1 / 0 : o;
5123
5123
  f = () => cr(V(), D);
5124
5124
  }
5125
- const P = tf(), z = () => {
5126
- d.stop(), P && P.active && Yl(P.effects, d);
5125
+ const $ = tf(), z = () => {
5126
+ d.stop(), $ && $.active && Yl($.effects, d);
5127
5127
  };
5128
5128
  if (s && t) {
5129
5129
  const V = t;
@@ -5602,7 +5602,7 @@ function Yi(e) {
5602
5602
  const t = pt;
5603
5603
  return pt = e, Df = e && e.type.__scopeId || null, t;
5604
5604
  }
5605
- function $(e, t = pt, n) {
5605
+ function P(e, t = pt, n) {
5606
5606
  if (!t || e._n)
5607
5607
  return e;
5608
5608
  const r = (...o) => {
@@ -5658,7 +5658,7 @@ const Vf = Symbol("_vte"), Mf = (e) => e.__isTeleport, Zr = (e) => e && (e.disab
5658
5658
  pc: d,
5659
5659
  pbc: f,
5660
5660
  o: { insert: h, querySelector: m, createText: _, createComment: k }
5661
- } = u, P = Zr(t.props);
5661
+ } = u, $ = Zr(t.props);
5662
5662
  let { shapeFlag: z, children: H, dynamicChildren: L } = t;
5663
5663
  if (N.NODE_ENV !== "production" && sn && (l = !1, L = null), e == null) {
5664
5664
  const V = t.el = N.NODE_ENV !== "production" ? k("teleport start") : _(""), D = t.anchor = N.NODE_ENV !== "production" ? k("teleport end") : _("");
@@ -5676,13 +5676,13 @@ const Vf = Symbol("_vte"), Mf = (e) => e.__isTeleport, Zr = (e) => e && (e.disab
5676
5676
  ));
5677
5677
  }, T = () => {
5678
5678
  const A = t.target = El(t.props, m), C = jf(A, t, _, h);
5679
- A ? (i !== "svg" && ec(A) ? i = "svg" : i !== "mathml" && tc(A) && (i = "mathml"), P || (p(A, C), Ci(t, !1))) : N.NODE_ENV !== "production" && !P && Y(
5679
+ A ? (i !== "svg" && ec(A) ? i = "svg" : i !== "mathml" && tc(A) && (i = "mathml"), $ || (p(A, C), Ci(t, !1))) : N.NODE_ENV !== "production" && !$ && Y(
5680
5680
  "Invalid Teleport target on mount:",
5681
5681
  A,
5682
5682
  `(${typeof A})`
5683
5683
  );
5684
5684
  };
5685
- P && (p(n, D), Ci(t, !0)), Qu(t.props) ? Tt(() => {
5685
+ $ && (p(n, D), Ci(t, !0)), Qu(t.props) ? Tt(() => {
5686
5686
  T(), t.el.__isMounted = !0;
5687
5687
  }, s) : T();
5688
5688
  } else {
@@ -5723,7 +5723,7 @@ const Vf = Symbol("_vte"), Mf = (e) => e.__isTeleport, Zr = (e) => e && (e.disab
5723
5723
  i,
5724
5724
  a,
5725
5725
  !1
5726
- ), P)
5726
+ ), $)
5727
5727
  T ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : ci(
5728
5728
  t,
5729
5729
  n,
@@ -5754,7 +5754,7 @@ const Vf = Symbol("_vte"), Mf = (e) => e.__isTeleport, Zr = (e) => e && (e.disab
5754
5754
  u,
5755
5755
  1
5756
5756
  );
5757
- Ci(t, P);
5757
+ Ci(t, $);
5758
5758
  }
5759
5759
  },
5760
5760
  remove(e, t, n, { um: r, o: { remove: o } }, s) {
@@ -5984,7 +5984,7 @@ function xl(e, t, n, r, o) {
5984
5984
  onAfterLeave: m,
5985
5985
  onLeaveCancelled: _,
5986
5986
  onBeforeAppear: k,
5987
- onAppear: P,
5987
+ onAppear: $,
5988
5988
  onAfterAppear: z,
5989
5989
  onAppearCancelled: H
5990
5990
  } = t, L = String(e.key), V = Bf(n, e), D = (A, C) => {
@@ -6018,14 +6018,14 @@ function xl(e, t, n, r, o) {
6018
6018
  let C = u, x = c, S = d;
6019
6019
  if (!n.isMounted)
6020
6020
  if (s)
6021
- C = P || u, x = z || c, S = H || d;
6021
+ C = $ || u, x = z || c, S = H || d;
6022
6022
  else
6023
6023
  return;
6024
6024
  let ee = !1;
6025
- const he = A[di] = (O) => {
6025
+ const pe = A[di] = (O) => {
6026
6026
  ee || (ee = !0, O ? D(S, [A]) : D(x, [A]), T.delayedLeave && T.delayedLeave(), A[di] = void 0);
6027
6027
  };
6028
- C ? p(C, [A, he]) : he();
6028
+ C ? p(C, [A, pe]) : pe();
6029
6029
  },
6030
6030
  leave(A, C) {
6031
6031
  const x = String(e.key);
@@ -6036,8 +6036,8 @@ function xl(e, t, n, r, o) {
6036
6036
  return C();
6037
6037
  D(f, [A]);
6038
6038
  let S = !1;
6039
- const ee = A[lr] = (he) => {
6040
- S || (S = !0, C(), he ? D(_, [A]) : D(m, [A]), A[lr] = void 0, V[x] === e && delete V[x]);
6039
+ const ee = A[lr] = (pe) => {
6040
+ S || (S = !0, C(), pe ? D(_, [A]) : D(m, [A]), A[lr] = void 0, V[x] === e && delete V[x]);
6041
6041
  };
6042
6042
  V[x] = e, h ? p(h, [A, ee]) : ee();
6043
6043
  },
@@ -6090,7 +6090,7 @@ function Hf(e, t = !1, n) {
6090
6090
  }
6091
6091
  /*! #__NO_SIDE_EFFECTS__ */
6092
6092
  // @__NO_SIDE_EFFECTS__
6093
- function pe(e, t) {
6093
+ function he(e, t) {
6094
6094
  return _e(e) ? (
6095
6095
  // #8236: extend call and options.name access are considered side-effects
6096
6096
  // by Rollup, so we have to wrap it in a pure-annotated IIFE.
@@ -6135,8 +6135,8 @@ function Ji(e, t, n, r, o = !1) {
6135
6135
  if (m || _) {
6136
6136
  const k = () => {
6137
6137
  if (e.f) {
6138
- const P = m ? h(l) ? d[l] : c[l] : l.value;
6139
- o ? me(P) && Yl(P, s) : me(P) ? P.includes(s) || P.push(s) : m ? (c[l] = [s], h(l) && (d[l] = c[l])) : (l.value = [s], e.k && (c[e.k] = l.value));
6138
+ const $ = m ? h(l) ? d[l] : c[l] : l.value;
6139
+ o ? me($) && Yl($, s) : me($) ? $.includes(s) || $.push(s) : m ? (c[l] = [s], h(l) && (d[l] = c[l])) : (l.value = [s], e.k && (c[e.k] = l.value));
6140
6140
  } else m ? (c[l] = i, h(l) && (d[l] = i)) : _ ? (l.value = i, e.k && (c[e.k] = i)) : N.NODE_ENV !== "production" && Y("Invalid template ref type:", l, `(${typeof l})`);
6141
6141
  };
6142
6142
  i ? (k.id = -1, Tt(k, n)) : k();
@@ -6507,7 +6507,7 @@ function ag(e) {
6507
6507
  updated: m,
6508
6508
  activated: _,
6509
6509
  deactivated: k,
6510
- beforeDestroy: P,
6510
+ beforeDestroy: $,
6511
6511
  beforeUnmount: z,
6512
6512
  destroyed: H,
6513
6513
  unmounted: L,
@@ -6522,7 +6522,7 @@ function ag(e) {
6522
6522
  // assets
6523
6523
  components: S,
6524
6524
  directives: ee,
6525
- filters: he
6525
+ filters: pe
6526
6526
  } = t, O = N.NODE_ENV !== "production" ? ig() : null;
6527
6527
  if (N.NODE_ENV !== "production") {
6528
6528
  const [X] = e.propsOptions;
@@ -7039,8 +7039,8 @@ function nh(e, t, n = !1) {
7039
7039
  const f = s[c], h = i[d] = me(f) || _e(f) ? { type: f } : nt({}, f), m = h.type;
7040
7040
  let _ = !1, k = !0;
7041
7041
  if (me(m))
7042
- for (let P = 0; P < m.length; ++P) {
7043
- const z = m[P], H = _e(z) && z.name;
7042
+ for (let $ = 0; $ < m.length; ++$) {
7043
+ const z = m[$], H = _e(z) && z.name;
7044
7044
  if (H === "Boolean") {
7045
7045
  _ = !0;
7046
7046
  break;
@@ -7138,7 +7138,7 @@ function kg(...e) {
7138
7138
  const oh = (e) => e[0] === "_" || e === "$stable", uu = (e) => me(e) ? e.map(nn) : [nn(e)], Og = (e, t, n) => {
7139
7139
  if (t._n)
7140
7140
  return t;
7141
- const r = $((...o) => (N.NODE_ENV !== "production" && ct && (!n || n.root === ct.root) && Y(
7141
+ const r = P((...o) => (N.NODE_ENV !== "production" && ct && (!n || n.root === ct.root) && Y(
7142
7142
  `Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
7143
7143
  ), uu(t(...o))), n);
7144
7144
  return r._c = !1, r;
@@ -7243,7 +7243,7 @@ function Pg(e, t) {
7243
7243
  k(b, E, R, Z);
7244
7244
  break;
7245
7245
  case st:
7246
- P(b, E, R, Z);
7246
+ $(b, E, R, Z);
7247
7247
  break;
7248
7248
  case ps:
7249
7249
  b == null ? z(E, R, Z, re) : N.NODE_ENV !== "production" && H(b, E, R, re);
@@ -7272,7 +7272,7 @@ function Pg(e, t) {
7272
7272
  re,
7273
7273
  te,
7274
7274
  Q
7275
- ) : oe & 6 ? he(
7275
+ ) : oe & 6 ? pe(
7276
7276
  b,
7277
7277
  E,
7278
7278
  R,
@@ -7307,7 +7307,7 @@ function Pg(e, t) {
7307
7307
  const B = E.el = b.el;
7308
7308
  E.children !== b.children && u(B, E.children);
7309
7309
  }
7310
- }, P = (b, E, R, Z) => {
7310
+ }, $ = (b, E, R, Z) => {
7311
7311
  b == null ? r(
7312
7312
  E.el = l(E.children || ""),
7313
7313
  R,
@@ -7557,7 +7557,7 @@ function Pg(e, t) {
7557
7557
  te,
7558
7558
  Q
7559
7559
  );
7560
- }, he = (b, E, R, Z, B, q, re, te, Q) => {
7560
+ }, pe = (b, E, R, Z, B, q, re, te, Q) => {
7561
7561
  E.slotScopeIds = te, b == null ? E.shapeFlag & 512 ? B.ctx.activate(
7562
7562
  E,
7563
7563
  R,
@@ -7582,7 +7582,7 @@ function Pg(e, t) {
7582
7582
  if (N.NODE_ENV !== "production" && te.type.__hmrId && Cb(te), N.NODE_ENV !== "production" && (ki(b), lo(te, "mount")), Ys(b) && (te.ctx.renderer = Ho), N.NODE_ENV !== "production" && lo(te, "init"), Yg(te, !1, re), N.NODE_ENV !== "production" && uo(te, "init"), te.asyncDep) {
7583
7583
  if (N.NODE_ENV !== "production" && sn && (b.el = null), B && B.registerDep(te, X, re), !b.el) {
7584
7584
  const Q = te.subTree = w(st);
7585
- P(null, Q, E, R);
7585
+ $(null, Q, E, R);
7586
7586
  }
7587
7587
  } else
7588
7588
  X(
@@ -8246,7 +8246,7 @@ function pc(e) {
8246
8246
  ctx: m,
8247
8247
  inheritAttrs: _
8248
8248
  } = e, k = Yi(e);
8249
- let P, z;
8249
+ let $, z;
8250
8250
  N.NODE_ENV !== "production" && (Tl = !1);
8251
8251
  try {
8252
8252
  if (n.shapeFlag & 4) {
@@ -8259,7 +8259,7 @@ function pc(e) {
8259
8259
  ), Reflect.get(p, T, A);
8260
8260
  }
8261
8261
  }) : V;
8262
- P = nn(
8262
+ $ = nn(
8263
8263
  u.call(
8264
8264
  D,
8265
8265
  V,
@@ -8272,7 +8272,7 @@ function pc(e) {
8272
8272
  ), z = a;
8273
8273
  } else {
8274
8274
  const V = t;
8275
- N.NODE_ENV !== "production" && a === d && ea(), P = nn(
8275
+ N.NODE_ENV !== "production" && a === d && ea(), $ = nn(
8276
8276
  V.length > 1 ? V(
8277
8277
  N.NODE_ENV !== "production" ? Nn(d) : d,
8278
8278
  N.NODE_ENV !== "production" ? {
@@ -8289,10 +8289,10 @@ function pc(e) {
8289
8289
  ), z = t.props ? a : jg(a);
8290
8290
  }
8291
8291
  } catch (V) {
8292
- ms.length = 0, Gs(V, e, 1), P = w(st);
8292
+ ms.length = 0, Gs(V, e, 1), $ = w(st);
8293
8293
  }
8294
- let H = P, L;
8295
- if (N.NODE_ENV !== "production" && P.patchFlag > 0 && P.patchFlag & 2048 && ([H, L] = ch(P)), z && _ !== !1) {
8294
+ let H = $, L;
8295
+ if (N.NODE_ENV !== "production" && $.patchFlag > 0 && $.patchFlag & 2048 && ([H, L] = ch($)), z && _ !== !1) {
8296
8296
  const V = Object.keys(z), { shapeFlag: D } = H;
8297
8297
  if (V.length) {
8298
8298
  if (D & 7)
@@ -8318,7 +8318,7 @@ function pc(e) {
8318
8318
  "Runtime directive used on component with non-element root node. The directives will not function as intended."
8319
8319
  ), H = pn(H, null, !1, !0), H.dirs = H.dirs ? H.dirs.concat(n.dirs) : n.dirs), n.transition && (N.NODE_ENV !== "production" && !mc(H) && Y(
8320
8320
  "Component inside <Transition> renders non-element root node that cannot be animated."
8321
- ), Vs(H, n.transition)), N.NODE_ENV !== "production" && L ? L(H) : P = H, Yi(k), P;
8321
+ ), Vs(H, n.transition)), N.NODE_ENV !== "production" && L ? L(H) : $ = H, Yi(k), $;
8322
8322
  }
8323
8323
  const ch = (e) => {
8324
8324
  const t = e.children, n = e.dynamicChildren, r = du(t, !1);
@@ -9175,27 +9175,27 @@ function cv(e) {
9175
9175
  leaveActiveClass: f = `${n}-leave-active`,
9176
9176
  leaveToClass: h = `${n}-leave-to`
9177
9177
  } = e, m = dv(o), _ = m && m[0], k = m && m[1], {
9178
- onBeforeEnter: P,
9178
+ onBeforeEnter: $,
9179
9179
  onEnter: z,
9180
9180
  onEnterCancelled: H,
9181
9181
  onLeave: L,
9182
9182
  onLeaveCancelled: V,
9183
- onBeforeAppear: D = P,
9183
+ onBeforeAppear: D = $,
9184
9184
  onAppear: p = z,
9185
9185
  onAppearCancelled: T = H
9186
- } = t, A = (S, ee, he, O) => {
9187
- S._enterCancelled = O, Ar(S, ee ? c : a), Ar(S, ee ? u : i), he && he();
9186
+ } = t, A = (S, ee, pe, O) => {
9187
+ S._enterCancelled = O, Ar(S, ee ? c : a), Ar(S, ee ? u : i), pe && pe();
9188
9188
  }, C = (S, ee) => {
9189
9189
  S._isLeaving = !1, Ar(S, d), Ar(S, h), Ar(S, f), ee && ee();
9190
- }, x = (S) => (ee, he) => {
9191
- const O = S ? p : z, M = () => A(ee, S, he);
9190
+ }, x = (S) => (ee, pe) => {
9191
+ const O = S ? p : z, M = () => A(ee, S, pe);
9192
9192
  $r(O, [ee, M]), Oc(() => {
9193
9193
  Ar(ee, S ? l : s), Vn(ee, S ? c : a), kc(O) || Nc(ee, r, _, M);
9194
9194
  });
9195
9195
  };
9196
9196
  return nt(t, {
9197
9197
  onBeforeEnter(S) {
9198
- $r(P, [S]), Vn(S, s), Vn(S, i);
9198
+ $r($, [S]), Vn(S, s), Vn(S, i);
9199
9199
  },
9200
9200
  onBeforeAppear(S) {
9201
9201
  $r(D, [S]), Vn(S, l), Vn(S, u);
@@ -9204,10 +9204,10 @@ function cv(e) {
9204
9204
  onAppear: x(!0),
9205
9205
  onLeave(S, ee) {
9206
9206
  S._isLeaving = !0;
9207
- const he = () => C(S, ee);
9207
+ const pe = () => C(S, ee);
9208
9208
  Vn(S, d), S._enterCancelled ? (Vn(S, f), Tc()) : (Tc(), Vn(S, f)), Oc(() => {
9209
- S._isLeaving && (Ar(S, d), Vn(S, h), kc(L) || Nc(S, r, k, he));
9210
- }), $r(L, [S, he]);
9209
+ S._isLeaving && (Ar(S, d), Vn(S, h), kc(L) || Nc(S, r, k, pe));
9210
+ }), $r(L, [S, pe]);
9211
9211
  },
9212
9212
  onEnterCancelled(S) {
9213
9213
  A(S, !1, void 0, !0), $r(H, [S]);
@@ -10997,7 +10997,7 @@ function Ml(e, t, n = {}, r, o, s) {
10997
10997
  !s && !m && (Ie.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
10998
10998
  const _ = j({});
10999
10999
  let k;
11000
- function P(C) {
11000
+ function $(C) {
11001
11001
  let x;
11002
11002
  u = c = !1, Ie.NODE_ENV !== "production" && (h = []), typeof C == "function" ? (C(r.state.value[e]), x = {
11003
11003
  type: Tn.patchFunction,
@@ -11033,9 +11033,9 @@ function Ml(e, t, n = {}, r, o, s) {
11033
11033
  return C[Za] = x, C;
11034
11034
  const S = function() {
11035
11035
  Ls(r);
11036
- const ee = Array.from(arguments), he = [], O = [];
11036
+ const ee = Array.from(arguments), pe = [], O = [];
11037
11037
  function M(ge) {
11038
- he.push(ge);
11038
+ pe.push(ge);
11039
11039
  }
11040
11040
  function X(ge) {
11041
11041
  O.push(ge);
@@ -11053,7 +11053,7 @@ function Ml(e, t, n = {}, r, o, s) {
11053
11053
  } catch (ge) {
11054
11054
  throw fo(O, ge), ge;
11055
11055
  }
11056
- return ie instanceof Promise ? ie.then((ge) => (fo(he, ge), ge)).catch((ge) => (fo(O, ge), Promise.reject(ge))) : (fo(he, ie), ie);
11056
+ return ie instanceof Promise ? ie.then((ge) => (fo(pe, ge), ge)).catch((ge) => (fo(O, ge), Promise.reject(ge))) : (fo(pe, ie), ie);
11057
11057
  };
11058
11058
  return S[zc] = !0, S[Za] = x, S;
11059
11059
  }, V = /* @__PURE__ */ fr({
@@ -11066,15 +11066,15 @@ function Ml(e, t, n = {}, r, o, s) {
11066
11066
  // _s: scope,
11067
11067
  $id: e,
11068
11068
  $onAction: qc.bind(null, f),
11069
- $patch: P,
11069
+ $patch: $,
11070
11070
  $reset: z,
11071
11071
  $subscribe(C, x = {}) {
11072
- const S = qc(d, C, x.detached, () => ee()), ee = i.run(() => Ke(() => r.state.value[e], (he) => {
11072
+ const S = qc(d, C, x.detached, () => ee()), ee = i.run(() => Ke(() => r.state.value[e], (pe) => {
11073
11073
  (x.flush === "sync" ? c : u) && C({
11074
11074
  storeId: e,
11075
11075
  type: Tn.direct,
11076
11076
  events: h
11077
- }, he);
11077
+ }, pe);
11078
11078
  }, Gt({}, l, x)));
11079
11079
  return S;
11080
11080
  },
@@ -11109,7 +11109,7 @@ function Ml(e, t, n = {}, r, o, s) {
11109
11109
  set: (C) => {
11110
11110
  if (Ie.NODE_ENV !== "production" && o)
11111
11111
  throw new Error("cannot set hotState");
11112
- P((x) => {
11112
+ $((x) => {
11113
11113
  Gt(x, C);
11114
11114
  });
11115
11115
  }
@@ -11479,7 +11479,7 @@ function jy(e) {
11479
11479
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
11480
11480
  }
11481
11481
  var Us = /* @__PURE__ */ ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Us || {});
11482
- let Fs = /* @__PURE__ */ pe({
11482
+ let Fs = /* @__PURE__ */ he({
11483
11483
  name: "Hidden",
11484
11484
  props: {
11485
11485
  as: { type: [Object, String], default: "div" },
@@ -11686,7 +11686,7 @@ function Hh(e) {
11686
11686
  }
11687
11687
  var qh = /* @__PURE__ */ ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(qh || {});
11688
11688
  const Yo = Object.assign(
11689
- /* @__PURE__ */ pe({
11689
+ /* @__PURE__ */ he({
11690
11690
  name: "FocusTrap",
11691
11691
  props: {
11692
11692
  as: { type: [Object, String], default: "div" },
@@ -11761,7 +11761,7 @@ const Yo = Object.assign(
11761
11761
  ) : h.target instanceof HTMLElement && Kr(h.target)));
11762
11762
  }
11763
11763
  return () => {
11764
- const h = {}, m = { ref: o, onKeydown: d, onFocusout: f }, { features: _, initialFocus: k, containers: P, ...z } = e;
11764
+ const h = {}, m = { ref: o, onKeydown: d, onFocusout: f }, { features: _, initialFocus: k, containers: $, ...z } = e;
11765
11765
  return ut(Re, [
11766
11766
  !!(_ & 4) && ut(Fs, {
11767
11767
  as: "button",
@@ -12288,7 +12288,7 @@ const Gh = Symbol("ForcePortalRootContext");
12288
12288
  function u1() {
12289
12289
  return ye(Gh, !1);
12290
12290
  }
12291
- const Jc = /* @__PURE__ */ pe({
12291
+ const Jc = /* @__PURE__ */ he({
12292
12292
  name: "ForcePortalRoot",
12293
12293
  props: {
12294
12294
  as: { type: [Object, String], default: "template" },
@@ -12370,7 +12370,7 @@ function Xc(e) {
12370
12370
  "[Moonbase]: Cannot find existing root element"
12371
12371
  );
12372
12372
  }
12373
- const Ll = Symbol("PortalParentContext"), Yh = Symbol("PortalGroupContext"), p1 = /* @__PURE__ */ pe({
12373
+ const Ll = Symbol("PortalParentContext"), Yh = Symbol("PortalGroupContext"), p1 = /* @__PURE__ */ he({
12374
12374
  name: "Portal",
12375
12375
  props: {
12376
12376
  as: { type: [Object, String], default: "div" }
@@ -12432,7 +12432,7 @@ function m1() {
12432
12432
  };
12433
12433
  return [
12434
12434
  t,
12435
- /* @__PURE__ */ pe({
12435
+ /* @__PURE__ */ he({
12436
12436
  name: "PortalWrapper",
12437
12437
  setup(s, { slots: i }) {
12438
12438
  return jt(Ll, o), () => {
@@ -12443,7 +12443,7 @@ function m1() {
12443
12443
  })
12444
12444
  ];
12445
12445
  }
12446
- const b1 = /* @__PURE__ */ pe({
12446
+ const b1 = /* @__PURE__ */ he({
12447
12447
  name: "PortalGroup",
12448
12448
  props: {
12449
12449
  as: { type: [Object, String], default: "template" },
@@ -12474,7 +12474,7 @@ function Eu(e) {
12474
12474
  throw new Error(`<${e} /> is missing a parent <Dialog /> component.`);
12475
12475
  return t;
12476
12476
  }
12477
- const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12477
+ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ he({
12478
12478
  name: "Dialog",
12479
12479
  inheritAttrs: !1,
12480
12480
  // Manually handling this
@@ -12512,7 +12512,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12512
12512
  ), _ = se(
12513
12513
  () => m.value === 0
12514
12514
  /* Open */
12515
- ), k = j(null), P = {
12515
+ ), k = j(null), $ = {
12516
12516
  titleId: k,
12517
12517
  panelRef: j(null),
12518
12518
  dialogState: m,
@@ -12528,7 +12528,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12528
12528
  MainTreeNode: T
12529
12529
  } = i1({
12530
12530
  portals: L,
12531
- defaultContainers: [se(() => P.panelRef.value ?? d.value)]
12531
+ defaultContainers: [se(() => $.panelRef.value ?? d.value)]
12532
12532
  }), A = se(() => z.value ? "parent" : "leaf"), C = se(
12533
12533
  () => u !== null ? (u.value & Ft.Closing) === Ft.Closing : !1
12534
12534
  ), x = se(() => !e.makeInert || H || C.value ? !1 : _.value), S = se(() => {
@@ -12536,13 +12536,13 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12536
12536
  return Array.from(((de = f.value) == null ? void 0 : de.querySelectorAll("body > *")) ?? []).find((Ue) => Ue.id === "moonbase" ? !1 : Ue.contains($e(p)) && Ue instanceof HTMLElement) ?? null;
12537
12537
  });
12538
12538
  Kc(S, x);
12539
- const ee = se(() => z.value ? !0 : _.value), he = se(() => {
12539
+ const ee = se(() => z.value ? !0 : _.value), pe = se(() => {
12540
12540
  var de;
12541
12541
  return Array.from(
12542
12542
  ((de = f.value) == null ? void 0 : de.querySelectorAll("[data-moonbase-portal]")) ?? []
12543
12543
  ).find((Ue) => Ue.contains($e(p)) && Ue instanceof HTMLElement) ?? null;
12544
12544
  });
12545
- Kc(he, ee), d1({
12545
+ Kc(pe, ee), d1({
12546
12546
  type: "Dialog",
12547
12547
  enabled: se(
12548
12548
  () => m.value === 0
@@ -12561,18 +12561,18 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12561
12561
  name: "DialogDescription",
12562
12562
  slot: se(() => ({ open: c.value }))
12563
12563
  });
12564
- jt(Ul, P);
12564
+ jt(Ul, $);
12565
12565
  const M = se(() => !(!_.value || z.value));
12566
12566
  s1(
12567
12567
  D,
12568
12568
  (de, Ue) => {
12569
- de.preventDefault(), P.close(), Gi(() => Ue == null ? void 0 : Ue.focus());
12569
+ de.preventDefault(), $.close(), Gi(() => Ue == null ? void 0 : Ue.focus());
12570
12570
  },
12571
12571
  M
12572
12572
  );
12573
12573
  const X = se(() => !(z.value || m.value !== 0));
12574
12574
  jh((ge = f.value) == null ? void 0 : ge.defaultView, "keydown", (de) => {
12575
- X.value && (de.defaultPrevented || de.key === Kt.Escape && (de.preventDefault(), de.stopPropagation(), P.close()));
12575
+ X.value && (de.defaultPrevented || de.key === Kt.Escape && (de.preventDefault(), de.stopPropagation(), $.close()));
12576
12576
  });
12577
12577
  const ie = se(() => !(!e.lockScroll || C.value || m.value !== 0 || H));
12578
12578
  return n1(f, ie, (de) => ({
@@ -12586,7 +12586,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12586
12586
  const it = new ResizeObserver((rt) => {
12587
12587
  for (const We of rt) {
12588
12588
  const vt = We.target.getBoundingClientRect();
12589
- vt.x === 0 && vt.y === 0 && vt.width === 0 && vt.height === 0 && P.close();
12589
+ vt.x === 0 && vt.y === 0 && vt.width === 0 && vt.height === 0 && $.close();
12590
12590
  }
12591
12591
  });
12592
12592
  it.observe(Ue), de(() => it.disconnect());
@@ -12631,7 +12631,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12631
12631
  ]);
12632
12632
  };
12633
12633
  }
12634
- }), v1 = /* @__PURE__ */ pe({
12634
+ }), v1 = /* @__PURE__ */ he({
12635
12635
  name: "DialogOverlay",
12636
12636
  props: {
12637
12637
  as: { type: [Object, String], default: "div" },
@@ -12661,7 +12661,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12661
12661
  });
12662
12662
  };
12663
12663
  }
12664
- }), y1 = /* @__PURE__ */ pe({
12664
+ }), y1 = /* @__PURE__ */ he({
12665
12665
  name: "DialogPanel",
12666
12666
  props: {
12667
12667
  as: { type: [Object, String], default: "div" },
@@ -12692,7 +12692,7 @@ const mi = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", g1 = /* @__PURE__ */ pe({
12692
12692
  });
12693
12693
  };
12694
12694
  }
12695
- }), Jh = /* @__PURE__ */ pe({
12695
+ }), Jh = /* @__PURE__ */ he({
12696
12696
  name: "DialogTitle",
12697
12697
  props: {
12698
12698
  as: { type: [Object, String], default: "h2" },
@@ -12734,7 +12734,7 @@ function _1(e, t) {
12734
12734
  n.value || $e(t) && $e(t) instanceof HTMLButtonElement && !((r = $e(t)) != null && r.hasAttribute("type")) && (n.value = "button");
12735
12735
  }), n;
12736
12736
  }
12737
- let w1 = /* @__PURE__ */ pe({
12737
+ let w1 = /* @__PURE__ */ he({
12738
12738
  props: {
12739
12739
  onFocus: {
12740
12740
  type: Function,
@@ -12774,7 +12774,7 @@ function ka(e) {
12774
12774
  throw new Error(`<${e} /> is missing a parent <TabGroup /> component.`);
12775
12775
  return t;
12776
12776
  }
12777
- const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12777
+ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ he({
12778
12778
  name: "TabGroup",
12779
12779
  emits: {
12780
12780
  change: (e) => !0
@@ -12823,7 +12823,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12823
12823
  }
12824
12824
  };
12825
12825
  function c(m) {
12826
- const _ = yo(u.tabs.value, $e), k = yo(u.panels.value, $e), P = _.filter((z) => {
12826
+ const _ = yo(u.tabs.value, $e), k = yo(u.panels.value, $e), $ = _.filter((z) => {
12827
12827
  var H;
12828
12828
  return !((H = $e(z)) != null && H.hasAttribute("disabled"));
12829
12829
  });
@@ -12851,12 +12851,12 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12851
12851
  /* Forwards */
12852
12852
  }
12853
12853
  ), H = qt(z, {
12854
- 0: () => _.indexOf(P[0]),
12855
- 1: () => _.indexOf(P[P.length - 1])
12854
+ 0: () => _.indexOf($[0]),
12855
+ 1: () => _.indexOf($[$.length - 1])
12856
12856
  });
12857
12857
  H !== -1 && (o.value = H), u.tabs.value = _, u.panels.value = k;
12858
12858
  } else {
12859
- const z = _.slice(0, m), L = [..._.slice(m), ...z].find((D) => P.includes(D));
12859
+ const z = _.slice(0, m), L = [..._.slice(m), ...z].find((D) => $.includes(D));
12860
12860
  if (!L)
12861
12861
  return;
12862
12862
  let V = _.indexOf(L) ?? u.selectedIndex.value;
@@ -12882,7 +12882,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12882
12882
  if (!a.value || l.value == null || u.tabs.value.length <= 0)
12883
12883
  return;
12884
12884
  const m = yo(u.tabs.value, $e);
12885
- m.some((k, P) => $e(u.tabs.value[P]) !== $e(k)) && u.setSelectedIndex(
12885
+ m.some((k, $) => $e(u.tabs.value[$]) !== $e(k)) && u.setSelectedIndex(
12886
12886
  m.findIndex((k) => $e(k) === $e(u.tabs.value[l.value]))
12887
12887
  );
12888
12888
  }), () => {
@@ -12912,7 +12912,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12912
12912
  ]);
12913
12913
  };
12914
12914
  }
12915
- }), x1 = /* @__PURE__ */ pe({
12915
+ }), x1 = /* @__PURE__ */ he({
12916
12916
  name: "TabList",
12917
12917
  props: {
12918
12918
  as: { type: [Object, String], default: "div" }
@@ -12934,7 +12934,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12934
12934
  });
12935
12935
  };
12936
12936
  }
12937
- }), Ga = /* @__PURE__ */ pe({
12937
+ }), Ga = /* @__PURE__ */ he({
12938
12938
  name: "Tab",
12939
12939
  props: {
12940
12940
  as: { type: [Object, String], default: "button" },
@@ -12956,15 +12956,15 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12956
12956
  }), u = se(() => l.value === o.selectedIndex.value);
12957
12957
  function c(k) {
12958
12958
  var z;
12959
- const P = k();
12960
- if (P === Eo.Success && o.activation.value === "auto") {
12959
+ const $ = k();
12960
+ if ($ === Eo.Success && o.activation.value === "auto") {
12961
12961
  const H = (z = Ro(s)) == null ? void 0 : z.activeElement, L = o.tabs.value.findIndex((V) => $e(V) === H);
12962
12962
  L !== -1 && o.setSelectedIndex(L);
12963
12963
  }
12964
- return P;
12964
+ return $;
12965
12965
  }
12966
12966
  function d(k) {
12967
- const P = o.tabs.value.map((H) => $e(H)).filter(Boolean);
12967
+ const $ = o.tabs.value.map((H) => $e(H)).filter(Boolean);
12968
12968
  if (k.key === Kt.Space || k.key === Kt.Enter) {
12969
12969
  k.preventDefault(), k.stopPropagation(), o.setSelectedIndex(l.value);
12970
12970
  return;
@@ -12972,18 +12972,18 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
12972
12972
  switch (k.key) {
12973
12973
  case Kt.Home:
12974
12974
  case Kt.PageUp:
12975
- return k.preventDefault(), k.stopPropagation(), c(() => xn(P, mt.First));
12975
+ return k.preventDefault(), k.stopPropagation(), c(() => xn($, mt.First));
12976
12976
  case Kt.End:
12977
12977
  case Kt.PageDown:
12978
- return k.preventDefault(), k.stopPropagation(), c(() => xn(P, mt.Last));
12978
+ return k.preventDefault(), k.stopPropagation(), c(() => xn($, mt.Last));
12979
12979
  }
12980
12980
  if (c(
12981
12981
  () => qt(o.orientation.value, {
12982
12982
  vertical() {
12983
- return k.key === Kt.ArrowUp ? xn(P, mt.Previous | mt.WrapAround) : k.key === Kt.ArrowDown ? xn(P, mt.Next | mt.WrapAround) : Eo.Error;
12983
+ return k.key === Kt.ArrowUp ? xn($, mt.Previous | mt.WrapAround) : k.key === Kt.ArrowDown ? xn($, mt.Next | mt.WrapAround) : Eo.Error;
12984
12984
  },
12985
12985
  horizontal() {
12986
- return k.key === Kt.ArrowLeft ? xn(P, mt.Previous | mt.WrapAround) : k.key === Kt.ArrowRight ? xn(P, mt.Next | mt.WrapAround) : Eo.Error;
12986
+ return k.key === Kt.ArrowLeft ? xn($, mt.Previous | mt.WrapAround) : k.key === Kt.ArrowRight ? xn($, mt.Next | mt.WrapAround) : Eo.Error;
12987
12987
  }
12988
12988
  })
12989
12989
  ) === Eo.Success)
@@ -13005,12 +13005,12 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
13005
13005
  );
13006
13006
  return () => {
13007
13007
  var L;
13008
- const k = { selected: u.value, disabled: e.disabled ?? !1 }, { id: P, ...z } = e, H = {
13008
+ const k = { selected: u.value, disabled: e.disabled ?? !1 }, { id: $, ...z } = e, H = {
13009
13009
  ref: s,
13010
13010
  onKeydown: d,
13011
13011
  onMousedown: m,
13012
13012
  onClick: h,
13013
- id: P,
13013
+ id: $,
13014
13014
  role: "tab",
13015
13015
  type: _.value,
13016
13016
  "aria-controls": (L = $e(o.panels.value[l.value])) == null ? void 0 : L.id,
@@ -13028,7 +13028,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
13028
13028
  });
13029
13029
  };
13030
13030
  }
13031
- }), k1 = /* @__PURE__ */ pe({
13031
+ }), k1 = /* @__PURE__ */ he({
13032
13032
  name: "TabPanels",
13033
13033
  props: {
13034
13034
  as: { type: [Object, String], default: "div" }
@@ -13047,7 +13047,7 @@ const xu = Symbol("TabsSSRContext"), E1 = /* @__PURE__ */ pe({
13047
13047
  });
13048
13048
  };
13049
13049
  }
13050
- }), Ka = /* @__PURE__ */ pe({
13050
+ }), Ka = /* @__PURE__ */ he({
13051
13051
  name: "TabPanel",
13052
13052
  props: {
13053
13053
  as: { type: [Object, String], default: "div" },
@@ -13190,7 +13190,7 @@ function Qh(e) {
13190
13190
  unregister: r
13191
13191
  };
13192
13192
  }
13193
- const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13193
+ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ he({
13194
13194
  props: {
13195
13195
  as: { type: [Object, String], default: "div" },
13196
13196
  show: { type: [Boolean], default: null },
@@ -13241,7 +13241,7 @@ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13241
13241
  const { show: f, appear: h } = S1(), { register: m, unregister: _ } = T1(), k = j(
13242
13242
  f.value ? "visible" : "hidden"
13243
13243
  /* Hidden */
13244
- ), P = { value: !0 }, z = so(), H = { value: !1 }, L = Qh(() => {
13244
+ ), $ = { value: !0 }, z = so(), H = { value: !1 }, L = Qh(() => {
13245
13245
  !H.value && k.value !== "hidden" && (k.value = "hidden", _(z), u());
13246
13246
  });
13247
13247
  ze(() => {
@@ -13270,8 +13270,8 @@ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13270
13270
  });
13271
13271
  });
13272
13272
  function S(ee) {
13273
- const he = P.value && !h.value, O = $e(c);
13274
- !O || !(O instanceof HTMLElement) || he || (H.value = !0, f.value && i(), f.value || l(), ee(
13273
+ const pe = $.value && !h.value, O = $e(c);
13274
+ !O || !(O instanceof HTMLElement) || pe || (H.value = !0, f.value && i(), f.value || l(), ee(
13275
13275
  f.value ? ed(
13276
13276
  O,
13277
13277
  V,
@@ -13296,8 +13296,8 @@ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13296
13296
  return ze(() => {
13297
13297
  Ke(
13298
13298
  [f],
13299
- (ee, he, O) => {
13300
- S(O), P.value = !1;
13299
+ (ee, pe, O) => {
13300
+ S(O), $.value = !1;
13301
13301
  },
13302
13302
  { immediate: !0 }
13303
13303
  );
@@ -13311,7 +13311,7 @@ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13311
13311
  ), () => {
13312
13312
  const {
13313
13313
  appear: ee,
13314
- show: he,
13314
+ show: pe,
13315
13315
  // Class names
13316
13316
  enter: O,
13317
13317
  enterFrom: M,
@@ -13346,7 +13346,7 @@ const ep = Do.RenderStrategy, Bl = /* @__PURE__ */ pe({
13346
13346
  });
13347
13347
  };
13348
13348
  }
13349
- }), P1 = Bl, tp = /* @__PURE__ */ pe({
13349
+ }), P1 = Bl, tp = /* @__PURE__ */ he({
13350
13350
  inheritAttrs: !1,
13351
13351
  props: {
13352
13352
  as: { type: [Object, String], default: "div" },
@@ -13718,7 +13718,7 @@ function Z1(e, t) {
13718
13718
  })
13719
13719
  ]);
13720
13720
  }
13721
- const W1 = ["href", "disabled", "data-variant", "data-size", "data-corners", "data-background"], G1 = ["disabled", "data-variant", "data-size", "data-corners", "data-background"], bs = /* @__PURE__ */ pe({
13721
+ const W1 = ["href", "disabled", "data-variant", "data-size", "data-corners", "data-background"], G1 = ["disabled", "data-variant", "data-size", "data-corners", "data-background"], bs = /* @__PURE__ */ he({
13722
13722
  __name: "MoonIconButton",
13723
13723
  props: {
13724
13724
  variant: {},
@@ -13774,7 +13774,7 @@ function t_(e, t) {
13774
13774
  kt(e.$slots, "default")
13775
13775
  ]);
13776
13776
  }
13777
- const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ = { class: "moonbase:drawer-header" }, o_ = ["data-background"], s_ = /* @__PURE__ */ pe({
13777
+ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ = { class: "moonbase:drawer-header" }, o_ = ["data-background"], s_ = /* @__PURE__ */ he({
13778
13778
  __name: "Drawer",
13779
13779
  setup(e) {
13780
13780
  const t = Ae(), n = et(), r = ye(Vt), o = j(""), s = j("");
@@ -13837,7 +13837,7 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13837
13837
  as: "template",
13838
13838
  show: v(t).active !== v(ue).None
13839
13839
  }, {
13840
- default: $(() => {
13840
+ default: P(() => {
13841
13841
  var u, c, d;
13842
13842
  return [
13843
13843
  w(v(g1), {
@@ -13848,7 +13848,7 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13848
13848
  "lock-scroll": !((d = v(r)) != null && d.target),
13849
13849
  onClose: l[2] || (l[2] = (f) => v(t).reset())
13850
13850
  }, {
13851
- default: $(() => {
13851
+ default: P(() => {
13852
13852
  var f;
13853
13853
  return [
13854
13854
  F("div", {
@@ -13856,7 +13856,7 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13856
13856
  "data-contain": !!((f = v(r)) != null && f.target) || void 0
13857
13857
  }, [
13858
13858
  w(v(Bl), { as: "template" }, {
13859
- default: $(() => {
13859
+ default: P(() => {
13860
13860
  var h;
13861
13861
  return [
13862
13862
  w(v(v1), {
@@ -13868,7 +13868,7 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13868
13868
  _: 1
13869
13869
  }),
13870
13870
  w(v(Bl), { as: "template" }, {
13871
- default: $(() => {
13871
+ default: P(() => {
13872
13872
  var h, m;
13873
13873
  return [
13874
13874
  w(v(y1), {
@@ -13876,25 +13876,25 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13876
13876
  "data-contain": !!((h = v(r)) != null && h.target) || void 0,
13877
13877
  "data-background": (m = v(r)) == null ? void 0 : m.theme.colors.background
13878
13878
  }, {
13879
- default: $(() => {
13879
+ default: P(() => {
13880
13880
  var _, k;
13881
13881
  return [
13882
13882
  F("div", r_, [
13883
13883
  v(t).history.length > 0 ? (y(), le(bs, {
13884
13884
  key: 0,
13885
13885
  variant: "subtle",
13886
- onClick: l[0] || (l[0] = (P) => v(t).back())
13886
+ onClick: l[0] || (l[0] = ($) => v(t).back())
13887
13887
  }, {
13888
- default: $(() => [
13888
+ default: P(() => [
13889
13889
  w(v(A1))
13890
13890
  ]),
13891
13891
  _: 1
13892
13892
  })) : (y(), le(bs, {
13893
13893
  key: 1,
13894
13894
  variant: "subtle",
13895
- onClick: l[1] || (l[1] = (P) => v(t).reset())
13895
+ onClick: l[1] || (l[1] = ($) => v(t).reset())
13896
13896
  }, {
13897
- default: $(() => [
13897
+ default: P(() => [
13898
13898
  w(v(Z1))
13899
13899
  ]),
13900
13900
  _: 1
@@ -13904,17 +13904,17 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13904
13904
  variant: "subtle",
13905
13905
  onClick: i
13906
13906
  }, {
13907
- default: $(() => [
13907
+ default: P(() => [
13908
13908
  w(v(z1))
13909
13909
  ]),
13910
13910
  _: 1
13911
13911
  })) : be("", !0)
13912
13912
  ]),
13913
13913
  w(v(Jh), { as: X1 }, {
13914
- default: $(() => [
13914
+ default: P(() => [
13915
13915
  U(K(o.value) + " ", 1),
13916
13916
  s.value ? (y(), le(Je, { key: 0 }, {
13917
- default: $(() => [
13917
+ default: P(() => [
13918
13918
  U(K(s.value), 1)
13919
13919
  ]),
13920
13920
  _: 1
@@ -13930,7 +13930,7 @@ const Je = /* @__PURE__ */ nr(Q1, [["render", t_]]), n_ = ["data-contain"], r_ =
13930
13930
  name: v(t).direction === v(yu).Forward ? "moonbase:slide-left" : "moonbase:slide-right",
13931
13931
  mode: "out-in"
13932
13932
  }, {
13933
- default: $(() => [
13933
+ default: P(() => [
13934
13934
  kt(a.$slots, "default")
13935
13935
  ]),
13936
13936
  _: 3
@@ -13970,7 +13970,7 @@ const gs = /* @__PURE__ */ nr(i_, [["render", l_]]), u_ = ["data-visible", "data
13970
13970
  }, d_ = ["disabled"], f_ = {
13971
13971
  key: 0,
13972
13972
  class: "moonbase:toolbar-cart-count"
13973
- }, h_ = /* @__PURE__ */ pe({
13973
+ }, h_ = /* @__PURE__ */ he({
13974
13974
  __name: "Toolbar",
13975
13975
  setup(e) {
13976
13976
  const t = j(!1), n = Ae(), r = et(), { items: o } = kr(), s = ye(Vt), i = se(() => (o.value ?? []).reduce((l, u) => l + u.quantity, 0));
@@ -14005,7 +14005,7 @@ const gs = /* @__PURE__ */ nr(i_, [["render", l_]]), u_ = ["data-visible", "data
14005
14005
  onClick: a
14006
14006
  }, [
14007
14007
  w(gs, null, {
14008
- default: $(() => u[2] || (u[2] = [
14008
+ default: P(() => u[2] || (u[2] = [
14009
14009
  U("Log in")
14010
14010
  ])),
14011
14011
  _: 1
@@ -14017,7 +14017,7 @@ const gs = /* @__PURE__ */ nr(i_, [["render", l_]]), u_ = ["data-visible", "data
14017
14017
  onClick: a
14018
14018
  }, [
14019
14019
  w(gs, null, {
14020
- default: $(() => {
14020
+ default: P(() => {
14021
14021
  var k;
14022
14022
  return [
14023
14023
  U(K((k = v(r).user.value) == null ? void 0 : k.name), 1)
@@ -14033,7 +14033,7 @@ const gs = /* @__PURE__ */ nr(i_, [["render", l_]]), u_ = ["data-visible", "data
14033
14033
  onClick: u[0] || (u[0] = (k) => v(n).show(v(ue).Cart, v(ne).AddToCart))
14034
14034
  }, [
14035
14035
  w(gs, null, {
14036
- default: $(() => u[3] || (u[3] = [
14036
+ default: P(() => u[3] || (u[3] = [
14037
14037
  U(" Cart ")
14038
14038
  ])),
14039
14039
  _: 1
@@ -14079,7 +14079,7 @@ function p_() {
14079
14079
  /^cart.has_items$/,
14080
14080
  /^product\.[a-z\-]+(\.has_discount)?$/,
14081
14081
  /^bundle\.[a-z\-]+(\.has_discount)?$/
14082
- ], l = j({}), u = se(() => l.value.user || []), c = se(() => l.value.cart || []), d = se(() => l.value.product || []), f = se(() => l.value.bundle || []), h = et(), { currency: m, items: _ } = kr(), k = sy(), P = ry();
14082
+ ], l = j({}), u = se(() => l.value.user || []), c = se(() => l.value.cart || []), d = se(() => l.value.product || []), f = se(() => l.value.bundle || []), h = et(), { currency: m, items: _ } = kr(), k = sy(), $ = ry();
14083
14083
  Ke([r, u, h.user], ([L, V, D]) => {
14084
14084
  if (L) {
14085
14085
  for (const p of L)
@@ -14121,17 +14121,17 @@ function p_() {
14121
14121
  var T, A, C;
14122
14122
  if (L) {
14123
14123
  for (const x of L) {
14124
- const S = (T = x.dataset.moonbaseRender) == null ? void 0 : T.split(".")[1], ee = (A = x.dataset.moonbaseRender) == null ? void 0 : A.split(".")[2], he = D.find((O) => O.id === S);
14125
- if (x.textContent && !x.dataset.moonbaseOriginal && (x.dataset.moonbaseOriginal = x.textContent), he && he.defaultVariation)
14124
+ const S = (T = x.dataset.moonbaseRender) == null ? void 0 : T.split(".")[1], ee = (A = x.dataset.moonbaseRender) == null ? void 0 : A.split(".")[2], pe = D.find((O) => O.id === S);
14125
+ if (x.textContent && !x.dataset.moonbaseOriginal && (x.dataset.moonbaseOriginal = x.textContent), pe && pe.defaultVariation)
14126
14126
  switch (ee) {
14127
14127
  case "name":
14128
- x.textContent = he.name;
14128
+ x.textContent = pe.name;
14129
14129
  break;
14130
14130
  case "price":
14131
- x.textContent = Cn(he.defaultVariation.price[p], p);
14131
+ x.textContent = Cn(pe.defaultVariation.price[p], p);
14132
14132
  break;
14133
14133
  case "original_price":
14134
- x.textContent = Cn(he.defaultVariation.originalPrice[p], p);
14134
+ x.textContent = Cn(pe.defaultVariation.originalPrice[p], p);
14135
14135
  break;
14136
14136
  }
14137
14137
  else x.dataset.moonbaseOriginal ? x.textContent = x.dataset.moonbaseOriginal : x.textContent = "";
@@ -14139,7 +14139,7 @@ function p_() {
14139
14139
  for (const x of V) {
14140
14140
  if (!x.dataset.moonbaseIf)
14141
14141
  return;
14142
- const S = x.dataset.moonbaseIf.split("."), ee = S.length === 2 ? "product" : S[2], he = S[1], O = D.find((X) => X.id === he);
14142
+ const S = x.dataset.moonbaseIf.split("."), ee = S.length === 2 ? "product" : S[2], pe = S[1], O = D.find((X) => X.id === pe);
14143
14143
  let M = !1;
14144
14144
  switch (ee) {
14145
14145
  case "product":
@@ -14152,21 +14152,21 @@ function p_() {
14152
14152
  S[0].startsWith("!") && (M = !M), x.dataset.moonbaseOriginalHidden || (x.dataset.moonbaseOriginalHidden = x.hidden ? "true" : "false"), M ? x.hidden = !1 : x.hidden = !0;
14153
14153
  }
14154
14154
  }
14155
- }, { immediate: !0, deep: !0 }), Ke([i, f, P, m], ([L, V, D, p]) => {
14155
+ }, { immediate: !0, deep: !0 }), Ke([i, f, $, m], ([L, V, D, p]) => {
14156
14156
  var T, A, C;
14157
14157
  if (L) {
14158
14158
  for (const x of L) {
14159
- const S = (T = x.dataset.moonbaseRender) == null ? void 0 : T.split(".")[1], ee = (A = x.dataset.moonbaseRender) == null ? void 0 : A.split(".")[2], he = D.find((O) => O.id === S);
14160
- if (x.textContent && !x.dataset.moonbaseOriginal && (x.dataset.moonbaseOriginal = x.textContent), he && he.defaultVariation)
14159
+ const S = (T = x.dataset.moonbaseRender) == null ? void 0 : T.split(".")[1], ee = (A = x.dataset.moonbaseRender) == null ? void 0 : A.split(".")[2], pe = D.find((O) => O.id === S);
14160
+ if (x.textContent && !x.dataset.moonbaseOriginal && (x.dataset.moonbaseOriginal = x.textContent), pe && pe.defaultVariation)
14161
14161
  switch (ee) {
14162
14162
  case "name":
14163
- x.textContent = he.name;
14163
+ x.textContent = pe.name;
14164
14164
  break;
14165
14165
  case "price":
14166
- x.textContent = Cn(he.defaultVariation.price[p], p);
14166
+ x.textContent = Cn(pe.defaultVariation.price[p], p);
14167
14167
  break;
14168
14168
  case "original_price":
14169
- x.textContent = Cn(he.defaultVariation.originalPrice[p], p);
14169
+ x.textContent = Cn(pe.defaultVariation.originalPrice[p], p);
14170
14170
  break;
14171
14171
  }
14172
14172
  else x.dataset.moonbaseOriginal ? x.textContent = x.dataset.moonbaseOriginal : x.textContent = "";
@@ -14174,7 +14174,7 @@ function p_() {
14174
14174
  for (const x of V) {
14175
14175
  if (!x.dataset.moonbaseIf)
14176
14176
  return;
14177
- const S = x.dataset.moonbaseIf.split("."), ee = S.length === 2 ? "bundle" : S[2], he = S[1], O = D.find((X) => X.id === he);
14177
+ const S = x.dataset.moonbaseIf.split("."), ee = S.length === 2 ? "bundle" : S[2], pe = S[1], O = D.find((X) => X.id === pe);
14178
14178
  let M = !1;
14179
14179
  switch (ee) {
14180
14180
  case "bundle":
@@ -14656,13 +14656,13 @@ const Cu = (...e) => {
14656
14656
  const [t, n, r] = e, [o, s, i] = x_(t, n, r), [a, l, u] = lp(o, s, i);
14657
14657
  return [a, l, u, e.length > 3 ? e[3] : 1];
14658
14658
  }, x_ = (e, t, n) => {
14659
- const { kE: r, kK: o, kKE: s, Xn: i, Yn: a, Zn: l } = Pn, u = (e + 16) / 116, c = 2e-3 * t + u, d = u - 5e-3 * n, f = c * c * c, h = d * d * d, m = f > r ? f : (116 * c - 16) / o, _ = e > s ? Math.pow((e + 16) / 116, 3) : e / o, k = h > r ? h : (116 * d - 16) / o, P = m * i, z = _ * a, H = k * l;
14660
- return [P, z, H];
14659
+ const { kE: r, kK: o, kKE: s, Xn: i, Yn: a, Zn: l } = Pn, u = (e + 16) / 116, c = 2e-3 * t + u, d = u - 5e-3 * n, f = c * c * c, h = d * d * d, m = f > r ? f : (116 * c - 16) / o, _ = e > s ? Math.pow((e + 16) / 116, 3) : e / o, k = h > r ? h : (116 * d - 16) / o, $ = m * i, z = _ * a, H = k * l;
14660
+ return [$, z, H];
14661
14661
  }, Xa = (e) => {
14662
14662
  const t = Math.sign(e);
14663
14663
  return e = Math.abs(e), (e <= 31308e-7 ? e * 12.92 : 1.055 * Math.pow(e, 1 / 2.4) - 0.055) * t;
14664
14664
  }, lp = (e, t, n) => {
14665
- const { MtxAdaptMa: r, MtxAdaptMaI: o, MtxXYZ2RGB: s, RefWhiteRGB: i, Xn: a, Yn: l, Zn: u } = Pn, c = a * r.m00 + l * r.m10 + u * r.m20, d = a * r.m01 + l * r.m11 + u * r.m21, f = a * r.m02 + l * r.m12 + u * r.m22, h = i.X * r.m00 + i.Y * r.m10 + i.Z * r.m20, m = i.X * r.m01 + i.Y * r.m11 + i.Z * r.m21, _ = i.X * r.m02 + i.Y * r.m12 + i.Z * r.m22, k = (e * r.m00 + t * r.m10 + n * r.m20) * (h / c), P = (e * r.m01 + t * r.m11 + n * r.m21) * (m / d), z = (e * r.m02 + t * r.m12 + n * r.m22) * (_ / f), H = k * o.m00 + P * o.m10 + z * o.m20, L = k * o.m01 + P * o.m11 + z * o.m21, V = k * o.m02 + P * o.m12 + z * o.m22, D = Xa(
14665
+ const { MtxAdaptMa: r, MtxAdaptMaI: o, MtxXYZ2RGB: s, RefWhiteRGB: i, Xn: a, Yn: l, Zn: u } = Pn, c = a * r.m00 + l * r.m10 + u * r.m20, d = a * r.m01 + l * r.m11 + u * r.m21, f = a * r.m02 + l * r.m12 + u * r.m22, h = i.X * r.m00 + i.Y * r.m10 + i.Z * r.m20, m = i.X * r.m01 + i.Y * r.m11 + i.Z * r.m21, _ = i.X * r.m02 + i.Y * r.m12 + i.Z * r.m22, k = (e * r.m00 + t * r.m10 + n * r.m20) * (h / c), $ = (e * r.m01 + t * r.m11 + n * r.m21) * (m / d), z = (e * r.m02 + t * r.m12 + n * r.m22) * (_ / f), H = k * o.m00 + $ * o.m10 + z * o.m20, L = k * o.m01 + $ * o.m11 + z * o.m21, V = k * o.m02 + $ * o.m12 + z * o.m22, D = Xa(
14666
14666
  H * s.m00 + L * s.m10 + V * s.m20
14667
14667
  ), p = Xa(
14668
14668
  H * s.m01 + L * s.m11 + V * s.m21
@@ -14686,9 +14686,9 @@ const up = (e, t, n) => {
14686
14686
  e = Qa(e / 255), t = Qa(t / 255), n = Qa(n / 255);
14687
14687
  const { MtxRGB2XYZ: r, MtxAdaptMa: o, MtxAdaptMaI: s, Xn: i, Yn: a, Zn: l, As: u, Bs: c, Cs: d } = Pn;
14688
14688
  let f = e * r.m00 + t * r.m10 + n * r.m20, h = e * r.m01 + t * r.m11 + n * r.m21, m = e * r.m02 + t * r.m12 + n * r.m22;
14689
- const _ = i * o.m00 + a * o.m10 + l * o.m20, k = i * o.m01 + a * o.m11 + l * o.m21, P = i * o.m02 + a * o.m12 + l * o.m22;
14689
+ const _ = i * o.m00 + a * o.m10 + l * o.m20, k = i * o.m01 + a * o.m11 + l * o.m21, $ = i * o.m02 + a * o.m12 + l * o.m22;
14690
14690
  let z = f * o.m00 + h * o.m10 + m * o.m20, H = f * o.m01 + h * o.m11 + m * o.m21, L = f * o.m02 + h * o.m12 + m * o.m22;
14691
- return z *= _ / u, H *= k / c, L *= P / d, f = z * s.m00 + H * s.m10 + L * s.m20, h = z * s.m01 + H * s.m11 + L * s.m21, m = z * s.m02 + H * s.m12 + L * s.m22, [f, h, m];
14691
+ return z *= _ / u, H *= k / c, L *= $ / d, f = z * s.m00 + H * s.m10 + L * s.m20, h = z * s.m01 + H * s.m11 + L * s.m21, m = z * s.m02 + H * s.m12 + L * s.m22, [f, h, m];
14692
14692
  };
14693
14693
  J.prototype.lab = function() {
14694
14694
  return Su(this._rgb);
@@ -15200,7 +15200,7 @@ function sa(e) {
15200
15200
  s.push(T / (p.length - 1));
15201
15201
  }
15202
15202
  return V(), l = p;
15203
- }, P = function(p) {
15203
+ }, $ = function(p) {
15204
15204
  if (a != null) {
15205
15205
  const T = a.length - 1;
15206
15206
  let A = 0;
@@ -15215,7 +15215,7 @@ function sa(e) {
15215
15215
  let A, C;
15216
15216
  if (T == null && (T = !1), isNaN(p) || p === null)
15217
15217
  return n;
15218
- T ? C = p : a && a.length > 2 ? C = P(p) / (a.length - 2) : d !== c ? C = (p - c) / (d - c) : C = 1, C = H(C), T || (C = z(C)), _ !== 1 && (C = _w(C, _)), C = i[0] + C * (1 - i[0] - i[1]), C = Yr(C, 0, 1);
15218
+ T ? C = p : a && a.length > 2 ? C = $(p) / (a.length - 2) : d !== c ? C = (p - c) / (d - c) : C = 1, C = H(C), T || (C = z(C)), _ !== 1 && (C = _w(C, _)), C = i[0] + C * (1 - i[0] - i[1]), C = Yr(C, 0, 1);
15219
15219
  const x = Math.floor(C * 1e4);
15220
15220
  if (m && h[x])
15221
15221
  A = h[x];
@@ -15299,10 +15299,10 @@ function sa(e) {
15299
15299
  const A = L(0, !0).lab()[0], C = L(1, !0).lab()[0], x = A > C;
15300
15300
  let S = L(T, !0).lab()[0];
15301
15301
  const ee = A + (C - A) * T;
15302
- let he = S - ee, O = 0, M = 1, X = 20;
15303
- for (; Math.abs(he) > 0.01 && X-- > 0; )
15302
+ let pe = S - ee, O = 0, M = 1, X = 20;
15303
+ for (; Math.abs(pe) > 0.01 && X-- > 0; )
15304
15304
  (function() {
15305
- return x && (he *= -1), he < 0 ? (O = T, T += (M - T) * 0.5) : (M = T, T += (O - T) * 0.5), S = L(T, !0).lab()[0], he = S - ee;
15305
+ return x && (pe *= -1), pe < 0 ? (O = T, T += (M - T) * 0.5) : (M = T, T += (O - T) * 0.5), S = L(T, !0).lab()[0], pe = S - ee;
15306
15306
  })();
15307
15307
  return T;
15308
15308
  } : z = (T) => T, D;
@@ -15437,8 +15437,8 @@ function Rw(e = 300, t = -1.5, n = 1, r = 1, o = [0, 1]) {
15437
15437
  let s = 0, i;
15438
15438
  De(o) === "array" ? i = o[1] - o[0] : (i = 0, o = [o, o]);
15439
15439
  const a = function(l) {
15440
- const u = Fn * ((e + 120) / 360 + t * l), c = Iw(o[0] + i * l, r), f = (s !== 0 ? n[0] + l * s : n) * c * (1 - c) / 2, h = Mw(u), m = Vw(u), _ = c + f * (-0.14861 * h + 1.78277 * m), k = c + f * (-0.29227 * h - 0.90649 * m), P = c + f * (1.97294 * h);
15441
- return Te(Nu([_ * 255, k * 255, P * 255, 1]));
15440
+ const u = Fn * ((e + 120) / 360 + t * l), c = Iw(o[0] + i * l, r), f = (s !== 0 ? n[0] + l * s : n) * c * (1 - c) / 2, h = Mw(u), m = Vw(u), _ = c + f * (-0.14861 * h + 1.78277 * m), k = c + f * (-0.29227 * h - 0.90649 * m), $ = c + f * (1.97294 * h);
15441
+ return Te(Nu([_ * 255, k * 255, $ * 255, 1]));
15442
15442
  };
15443
15443
  return a.start = function(l) {
15444
15444
  return l == null ? e : (e = l, a);
@@ -15511,26 +15511,26 @@ function bp(e, t = "equal", n = 7) {
15511
15511
  for (let k = 1; k < n; k++)
15512
15512
  h.push(r + k / n * (o - r));
15513
15513
  for (h.push(o); d; ) {
15514
- for (let P = 0; P < n; P++)
15515
- c[P] = 0;
15516
- for (let P = 0; P < l; P++) {
15517
- const z = s[P];
15514
+ for (let $ = 0; $ < n; $++)
15515
+ c[$] = 0;
15516
+ for (let $ = 0; $ < l; $++) {
15517
+ const z = s[$];
15518
15518
  let H = Number.MAX_VALUE, L;
15519
15519
  for (let V = 0; V < n; V++) {
15520
15520
  const D = qw(h[V] - z);
15521
- D < H && (H = D, L = V), c[L]++, u[P] = L;
15521
+ D < H && (H = D, L = V), c[L]++, u[$] = L;
15522
15522
  }
15523
15523
  }
15524
15524
  const k = new Array(n);
15525
- for (let P = 0; P < n; P++)
15526
- k[P] = null;
15527
- for (let P = 0; P < l; P++)
15528
- a = u[P], k[a] === null ? k[a] = s[P] : k[a] += s[P];
15529
- for (let P = 0; P < n; P++)
15530
- k[P] *= 1 / c[P];
15525
+ for (let $ = 0; $ < n; $++)
15526
+ k[$] = null;
15527
+ for (let $ = 0; $ < l; $++)
15528
+ a = u[$], k[a] === null ? k[a] = s[$] : k[a] += s[$];
15529
+ for (let $ = 0; $ < n; $++)
15530
+ k[$] *= 1 / c[$];
15531
15531
  d = !1;
15532
- for (let P = 0; P < n; P++)
15533
- if (k[P] !== h[P]) {
15532
+ for (let $ = 0; $ < n; $++)
15533
+ if (k[$] !== h[$]) {
15534
15534
  d = !0;
15535
15535
  break;
15536
15536
  }
@@ -15544,10 +15544,10 @@ function bp(e, t = "equal", n = 7) {
15544
15544
  let _ = [];
15545
15545
  for (let k = 0; k < n; k++)
15546
15546
  _.push(m[k][0]), _.push(m[k][m[k].length - 1]);
15547
- _ = _.sort((k, P) => k - P), i.push(_[0]);
15547
+ _ = _.sort((k, $) => k - $), i.push(_[0]);
15548
15548
  for (let k = 1; k < _.length; k += 2) {
15549
- const P = _[k];
15550
- !isNaN(P) && i.indexOf(P) === -1 && i.push(P);
15549
+ const $ = _[k];
15550
+ !isNaN($) && i.indexOf($) === -1 && i.push($);
15551
15551
  }
15552
15552
  }
15553
15553
  return i;
@@ -15586,11 +15586,11 @@ function Xw(e, t, n = 1, r = 1, o = 1) {
15586
15586
  return 2 * fd * rt / 360;
15587
15587
  };
15588
15588
  e = new J(e), t = new J(t);
15589
- const [a, l, u] = Array.from(e.lab()), [c, d, f] = Array.from(t.lab()), h = (a + c) / 2, m = Rn(at(l, 2) + at(u, 2)), _ = Rn(at(d, 2) + at(f, 2)), k = (m + _) / 2, P = 0.5 * (1 - Rn(at(k, 7) / (at(k, 7) + at(25, 7)))), z = l * (1 + P), H = d * (1 + P), L = Rn(at(z, 2) + at(u, 2)), V = Rn(at(H, 2) + at(f, 2)), D = (L + V) / 2, p = s(ud(u, z)), T = s(ud(f, H)), A = p >= 0 ? p : p + 360, C = T >= 0 ? T : T + 360, x = cd(A - C) > 180 ? (A + C + 360) / 2 : (A + C) / 2, S = 1 - 0.17 * yi(i(x - 30)) + 0.24 * yi(i(2 * x)) + 0.32 * yi(i(3 * x + 6)) - 0.2 * yi(i(4 * x - 63));
15589
+ const [a, l, u] = Array.from(e.lab()), [c, d, f] = Array.from(t.lab()), h = (a + c) / 2, m = Rn(at(l, 2) + at(u, 2)), _ = Rn(at(d, 2) + at(f, 2)), k = (m + _) / 2, $ = 0.5 * (1 - Rn(at(k, 7) / (at(k, 7) + at(25, 7)))), z = l * (1 + $), H = d * (1 + $), L = Rn(at(z, 2) + at(u, 2)), V = Rn(at(H, 2) + at(f, 2)), D = (L + V) / 2, p = s(ud(u, z)), T = s(ud(f, H)), A = p >= 0 ? p : p + 360, C = T >= 0 ? T : T + 360, x = cd(A - C) > 180 ? (A + C + 360) / 2 : (A + C) / 2, S = 1 - 0.17 * yi(i(x - 30)) + 0.24 * yi(i(2 * x)) + 0.32 * yi(i(3 * x + 6)) - 0.2 * yi(i(4 * x - 63));
15590
15590
  let ee = C - A;
15591
15591
  ee = cd(ee) <= 180 ? ee : C <= A ? ee + 360 : ee - 360, ee = 2 * Rn(L * V) * dd(i(ee) / 2);
15592
- const he = c - a, O = V - L, M = 1 + 0.015 * at(h - 50, 2) / Rn(20 + at(h - 50, 2)), X = 1 + 0.045 * D, ie = 1 + 0.015 * D * S, ge = 30 * Jw(-at((x - 275) / 25, 2)), Ue = -(2 * Rn(at(D, 7) / (at(D, 7) + at(25, 7)))) * dd(2 * i(ge)), it = Rn(
15593
- at(he / (n * M), 2) + at(O / (r * X), 2) + at(ee / (o * ie), 2) + Ue * (O / (r * X)) * (ee / (o * ie))
15592
+ const pe = c - a, O = V - L, M = 1 + 0.015 * at(h - 50, 2) / Rn(20 + at(h - 50, 2)), X = 1 + 0.045 * D, ie = 1 + 0.015 * D * S, ge = 30 * Jw(-at((x - 275) / 25, 2)), Ue = -(2 * Rn(at(D, 7) / (at(D, 7) + at(25, 7)))) * dd(2 * i(ge)), it = Rn(
15593
+ at(pe / (n * M), 2) + at(O / (r * X), 2) + at(ee / (o * ie), 2) + Ue * (O / (r * X)) * (ee / (o * ie))
15594
15594
  );
15595
15595
  return Yw(0, Kw(100, it));
15596
15596
  }
@@ -16822,7 +16822,7 @@ function x2(e, t) {
16822
16822
  }, null, -1)
16823
16823
  ]));
16824
16824
  }
16825
- const bn = /* @__PURE__ */ nr(w2, [["render", x2], ["__scopeId", "data-v-687bcaf0"]]), k2 = { "aria-hidden": "true" }, Vu = /* @__PURE__ */ pe({
16825
+ const bn = /* @__PURE__ */ nr(w2, [["render", x2], ["__scopeId", "data-v-687bcaf0"]]), k2 = { "aria-hidden": "true" }, Vu = /* @__PURE__ */ he({
16826
16826
  __name: "MoonButtonBase",
16827
16827
  props: {
16828
16828
  label: {},
@@ -16856,7 +16856,7 @@ const bn = /* @__PURE__ */ nr(w2, [["render", x2], ["__scopeId", "data-v-687bcaf
16856
16856
  "data-icon-visible": s.working || s.success || s.error || !!s.icon || void 0,
16857
16857
  onClick: i[0] || (i[0] = (u) => s.$emit("click", u))
16858
16858
  }, {
16859
- default: $(() => [
16859
+ default: P(() => [
16860
16860
  F("div", k2, [
16861
16861
  s.working ? (y(), le(bn, { key: 0 })) : s.success ? (y(), le(v(R1), { key: 1 })) : s.error ? (y(), le(v(F1), { key: 2 })) : s.icon ? (y(), le(rc(s.icon), { key: 3 })) : be("", !0)
16862
16862
  ]),
@@ -16866,7 +16866,7 @@ const bn = /* @__PURE__ */ nr(w2, [["render", x2], ["__scopeId", "data-v-687bcaf
16866
16866
  }, 8, ["type", "disabled", "data-success", "data-error", "data-working", "data-variant", "data-size", "data-corners", "data-background", "data-icon-visible"]);
16867
16867
  };
16868
16868
  }
16869
- }), ht = /* @__PURE__ */ pe({
16869
+ }), ht = /* @__PURE__ */ he({
16870
16870
  __name: "MoonButton",
16871
16871
  props: {
16872
16872
  handler: { type: Function },
@@ -16915,26 +16915,26 @@ function P2(e, t) {
16915
16915
  kt(e.$slots, "default")
16916
16916
  ]);
16917
16917
  }
16918
- const tt = /* @__PURE__ */ nr(S2, [["render", P2]]), $2 = { class: "moonbase:about" }, A2 = /* @__PURE__ */ pe({
16918
+ const tt = /* @__PURE__ */ nr(S2, [["render", P2]]), $2 = { class: "moonbase:about" }, A2 = /* @__PURE__ */ he({
16919
16919
  __name: "About",
16920
16920
  setup(e) {
16921
- const t = Ae(), n = "0.2.142";
16921
+ const t = Ae(), n = "0.2.144";
16922
16922
  return (r, o) => (y(), I("div", $2, [
16923
16923
  o[2] || (o[2] = bh('<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)),
16924
16924
  w(v(Jh), { as: "h3" }, {
16925
- default: $(() => o[0] || (o[0] = [
16925
+ default: P(() => o[0] || (o[0] = [
16926
16926
  U(" Moonbase Embedded Storefront ")
16927
16927
  ])),
16928
16928
  _: 1
16929
16929
  }),
16930
16930
  w(tt, null, {
16931
- default: $(() => [
16931
+ default: P(() => [
16932
16932
  U(" Version " + K(v(n)), 1)
16933
16933
  ]),
16934
16934
  _: 1
16935
16935
  }),
16936
16936
  w(Xe, null, {
16937
- default: $(() => o[1] || (o[1] = [
16937
+ default: P(() => o[1] || (o[1] = [
16938
16938
  U(" This store is using the "),
16939
16939
  F("a", {
16940
16940
  href: "https://moonbase.sh/solutions/payments",
@@ -16953,7 +16953,7 @@ const tt = /* @__PURE__ */ nr(S2, [["render", P2]]), $2 = { class: "moonbase:abo
16953
16953
  }
16954
16954
  });
16955
16955
  var Rt = /* @__PURE__ */ ((e) => (e.SignedIn = "signed-in", e.SignedUp = "signed-up", e.SignedOut = "signed-out", e.RedeemedVoucher = "redeemed-voucher", e.DownloadedProduct = "downloaded-product", e.ActivatedProduct = "activated-product", e.AddedToCart = "added-to-cart", e.CheckoutInitiated = "checkout-initiated", e.CheckoutClosed = "checkout-closed", e.CheckoutCompleted = "checkout-completed", e))(Rt || {});
16956
- const D2 = ["data-corners", "data-variant"], I2 = { class: "moonbase:card-content" }, Wn = /* @__PURE__ */ pe({
16956
+ const D2 = ["data-corners", "data-variant"], I2 = { class: "moonbase:card-content" }, Wn = /* @__PURE__ */ he({
16957
16957
  __name: "MoonCard",
16958
16958
  setup(e) {
16959
16959
  const t = ye(Vt);
@@ -16974,7 +16974,7 @@ const D2 = ["data-corners", "data-variant"], I2 = { class: "moonbase:card-conten
16974
16974
  }), V2 = ["data-corners"], M2 = ["src"], R2 = {
16975
16975
  key: 1,
16976
16976
  class: "moonbase:image-placeholder"
16977
- }, Gn = /* @__PURE__ */ pe({
16977
+ }, Gn = /* @__PURE__ */ he({
16978
16978
  __name: "ProductIcon",
16979
16979
  props: {
16980
16980
  url: {},
@@ -17005,21 +17005,21 @@ function U2(e, t) {
17005
17005
  kt(e.$slots, "default")
17006
17006
  ]);
17007
17007
  }
17008
- const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:product-card-content" }, Ap = /* @__PURE__ */ pe({
17008
+ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:product-card-content" }, Ap = /* @__PURE__ */ he({
17009
17009
  __name: "ProductCard",
17010
17010
  props: {
17011
17011
  product: {}
17012
17012
  },
17013
17013
  setup(e) {
17014
17014
  return (t, n) => (y(), le(Wn, { class: "moonbase:product-card" }, {
17015
- default: $(() => [
17015
+ default: P(() => [
17016
17016
  w(Gn, {
17017
17017
  url: t.product.iconUrl,
17018
17018
  size: 72
17019
17019
  }, null, 8, ["url"]),
17020
17020
  F("div", F2, [
17021
17021
  w(Sa, null, {
17022
- default: $(() => {
17022
+ default: P(() => {
17023
17023
  var r;
17024
17024
  return [
17025
17025
  U(K((r = t.product) == null ? void 0 : r.name), 1)
@@ -17028,7 +17028,7 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17028
17028
  _: 1
17029
17029
  }),
17030
17030
  w(tt, null, {
17031
- default: $(() => {
17031
+ default: P(() => {
17032
17032
  var r;
17033
17033
  return [
17034
17034
  U(K((r = t.product) == null ? void 0 : r.tagline), 1)
@@ -17079,7 +17079,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17079
17079
  }, rE = { class: "moonbase:auto-activation-cta" }, oE = {
17080
17080
  key: 4,
17081
17081
  class: "moonbase:auto-activation-option"
17082
- }, sE = { class: "moonbase:auto-activation-cta" }, iE = /* @__PURE__ */ pe({
17082
+ }, sE = {
17083
+ key: 4,
17084
+ class: "moonbase:auto-activation-cta"
17085
+ }, iE = {
17086
+ key: 5,
17087
+ class: "moonbase:auto-activation-cta"
17088
+ }, aE = /* @__PURE__ */ he({
17083
17089
  __name: "AutoActivation",
17084
17090
  setup(e) {
17085
17091
  const t = Ae(), { user: n, loaded: r } = et(), o = ye(io), s = t.getParameter("token"), {
@@ -17102,7 +17108,7 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17102
17108
  const m = se(() => {
17103
17109
  if (i.value)
17104
17110
  return v(Pi(i.value.product.id));
17105
- }), _ = se(() => m.value && m.value.defaultVariation), { currency: k, addToCart: P, setQuantity: z } = kr();
17111
+ }), _ = se(() => m.value && m.value.defaultVariation), { currency: k, addToCart: $, setQuantity: z } = kr();
17106
17112
  function H() {
17107
17113
  t.show(ue.Product, ne.ViewProduct, { product_id: i.value.product.id });
17108
17114
  }
@@ -17112,7 +17118,7 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17112
17118
  function V() {
17113
17119
  if (!m.value)
17114
17120
  return;
17115
- const p = P(m.value);
17121
+ const p = $(m.value);
17116
17122
  z(p, 1), t.enqueue(
17117
17123
  ue.Activation,
17118
17124
  ne.ActivateProduct,
@@ -17131,19 +17137,19 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17131
17137
  ), n.value ? t.show(ue.Customer, ne.RedeemVoucher) : t.show(ue.Redeem, ne.RedeemVoucher);
17132
17138
  }
17133
17139
  return (p, T) => {
17134
- var A, C, x, S, ee, he;
17140
+ var A, C, x, S, ee;
17135
17141
  return y(), I("div", B2, [
17136
17142
  v(a) || !v(r) || !((A = v(h)) != null && A.loadedStorefront) ? (y(), I("div", H2, [
17137
17143
  w(bn)
17138
17144
  ])) : v(c) ? (y(), I("div", q2, [
17139
17145
  w(Je, null, {
17140
- default: $(() => T[0] || (T[0] = [
17146
+ default: P(() => T[0] || (T[0] = [
17141
17147
  U(" Uh oh ")
17142
17148
  ])),
17143
17149
  _: 1
17144
17150
  }),
17145
17151
  w(Xe, null, {
17146
- default: $(() => [
17152
+ default: P(() => [
17147
17153
  U(K(v(c)), 1)
17148
17154
  ]),
17149
17155
  _: 1
@@ -17155,13 +17161,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17155
17161
  }, null, 8, ["product"])) : be("", !0),
17156
17162
  ((C = v(i)) == null ? void 0 : C.status) === v(rn).Cancelled ? (y(), I("div", W2, [
17157
17163
  w(Je, null, {
17158
- default: $(() => T[3] || (T[3] = [
17164
+ default: P(() => T[3] || (T[3] = [
17159
17165
  U(" Uh oh ")
17160
17166
  ])),
17161
17167
  _: 1
17162
17168
  }),
17163
17169
  w(Xe, null, {
17164
- default: $(() => T[4] || (T[4] = [
17170
+ default: P(() => T[4] || (T[4] = [
17165
17171
  U(" This activation request was cancelled, open your app to try again. ")
17166
17172
  ])),
17167
17173
  _: 1
@@ -17169,20 +17175,20 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17169
17175
  ])) : v(l) || v(u) ? (y(), I("div", G2, [
17170
17176
  w(bn),
17171
17177
  w(Xe, null, {
17172
- default: $(() => [
17178
+ default: P(() => [
17173
17179
  U(" Activating " + K(v(i).product.name) + "... ", 1)
17174
17180
  ]),
17175
17181
  _: 1
17176
17182
  })
17177
17183
  ])) : ((x = v(i)) == null ? void 0 : x.status) === v(rn).Completed ? (y(), I("div", K2, [
17178
17184
  w(Je, null, {
17179
- default: $(() => T[5] || (T[5] = [
17185
+ default: P(() => T[5] || (T[5] = [
17180
17186
  U(" Done! ")
17181
17187
  ])),
17182
17188
  _: 1
17183
17189
  }),
17184
17190
  w(Xe, null, {
17185
- default: $(() => T[6] || (T[6] = [
17191
+ default: P(() => T[6] || (T[6] = [
17186
17192
  U(" Your product is activated. "),
17187
17193
  F("br", null, null, -1),
17188
17194
  U(" You may close this window and return to the app. ")
@@ -17192,13 +17198,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17192
17198
  ])) : (y(), I("div", Y2, [
17193
17199
  _.value ? (y(), I("div", J2, [
17194
17200
  w(Je, null, {
17195
- default: $(() => T[7] || (T[7] = [
17201
+ default: P(() => T[7] || (T[7] = [
17196
17202
  U(" Option 1: Purchase product ")
17197
17203
  ])),
17198
17204
  _: 1
17199
17205
  }),
17200
17206
  w(Xe, null, {
17201
- default: $(() => [
17207
+ default: P(() => [
17202
17208
  U(" Buy a copy of " + K(m.value.name) + " for ", 1),
17203
17209
  F("strong", null, K(v(Cn)(m.value.defaultVariation.price[v(k)], v(k))), 1),
17204
17210
  T[8] || (T[8] = U(". "))
@@ -17215,26 +17221,26 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17215
17221
  ])) : be("", !0),
17216
17222
  v(n) ? !v(n).ownedProducts || !((S = v(n).ownedProducts) != null && S.includes(v(i).product.id)) ? (y(), I("div", tE, [
17217
17223
  w(Je, null, {
17218
- default: $(() => [
17224
+ default: P(() => [
17219
17225
  U(" Option " + K(_.value ? "2" : "1") + ": Use license ", 1)
17220
17226
  ]),
17221
17227
  _: 1
17222
17228
  }),
17223
17229
  w(Xe, null, {
17224
- default: $(() => T[10] || (T[10] = [
17230
+ default: P(() => T[10] || (T[10] = [
17225
17231
  U(" You don't own any licenses for this product. ")
17226
17232
  ])),
17227
17233
  _: 1
17228
17234
  })
17229
17235
  ])) : (ee = v(n).ownedProducts) != null && ee.includes(v(i).product.id) ? (y(), I("div", nE, [
17230
17236
  w(Je, null, {
17231
- default: $(() => [
17237
+ default: P(() => [
17232
17238
  U(" Option " + K(_.value ? "2" : "1") + ": Use license ", 1)
17233
17239
  ]),
17234
17240
  _: 1
17235
17241
  }),
17236
17242
  w(Xe, null, {
17237
- default: $(() => T[11] || (T[11] = [
17243
+ default: P(() => T[11] || (T[11] = [
17238
17244
  U(" You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ")
17239
17245
  ])),
17240
17246
  _: 1
@@ -17248,13 +17254,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17248
17254
  ])
17249
17255
  ])) : be("", !0) : (y(), I("div", Q2, [
17250
17256
  w(Je, null, {
17251
- default: $(() => [
17257
+ default: P(() => [
17252
17258
  U(" Option " + K(_.value ? "2" : "1") + ": Use license ", 1)
17253
17259
  ]),
17254
17260
  _: 1
17255
17261
  }),
17256
17262
  w(Xe, null, {
17257
- default: $(() => T[9] || (T[9] = [
17263
+ default: P(() => T[9] || (T[9] = [
17258
17264
  U(" Please sign in to use a license for this product. ")
17259
17265
  ])),
17260
17266
  _: 1
@@ -17267,47 +17273,52 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17267
17273
  }, null, 8, ["handler"])
17268
17274
  ])
17269
17275
  ])),
17270
- (he = v(i).trialEligibility) != null && he.eligible ? (y(), I("div", oE, [
17276
+ v(i).trialEligibility ? (y(), I("div", oE, [
17271
17277
  w(Je, null, {
17272
- default: $(() => [
17278
+ default: P(() => [
17273
17279
  U(" Option " + K(_.value ? "3" : "2") + ": Start trial ", 1)
17274
17280
  ]),
17275
17281
  _: 1
17276
17282
  }),
17277
- v(i).trialEligibility.requiresAccount && !v(n) ? (y(), le(Xe, { key: 0 }, {
17278
- default: $(() => T[12] || (T[12] = [
17283
+ v(i).trialEligibility.eligible && v(i).trialEligibility.requiresAccount && !v(n) ? (y(), le(Xe, { key: 0 }, {
17284
+ default: P(() => T[12] || (T[12] = [
17279
17285
  U(" You need to be signed in to start a trial for this product. ")
17280
17286
  ])),
17281
17287
  _: 1
17282
- })) : v(i).trialEligibility.existing ? (y(), le(Xe, { key: 1 }, {
17283
- default: $(() => [
17288
+ })) : v(i).trialEligibility.eligible && v(i).trialEligibility.existing ? (y(), le(Xe, { key: 1 }, {
17289
+ default: P(() => [
17284
17290
  U(" You are eligible for a " + K(v(i).trialEligibility.numberOfDaysPerProduct) + " day trial of which you have " + K(v(i).trialEligibility.numberOfDaysRemaining) + " days remaining. ", 1)
17285
17291
  ]),
17286
17292
  _: 1
17287
- })) : (y(), le(Xe, { key: 2 }, {
17288
- default: $(() => [
17293
+ })) : v(i).trialEligibility.eligible ? (y(), le(Xe, { key: 2 }, {
17294
+ default: P(() => [
17289
17295
  U(" You are eligible for a " + K(v(i).trialEligibility.numberOfDaysPerProduct) + " day trial. ", 1)
17290
17296
  ]),
17291
17297
  _: 1
17298
+ })) : (y(), le(Xe, { key: 3 }, {
17299
+ default: P(() => T[13] || (T[13] = [
17300
+ U(" This device or product is not eligible for a trial. ")
17301
+ ])),
17302
+ _: 1
17292
17303
  })),
17293
- F("span", sE, [
17294
- v(i).trialEligibility.requiresAccount && !v(n) ? (y(), le(ht, {
17295
- key: 0,
17304
+ v(i).trialEligibility.eligible && v(i).trialEligibility.requiresAccount && !v(n) ? (y(), I("span", sE, [
17305
+ w(ht, {
17296
17306
  label: "Sign in",
17297
17307
  variant: "secondary",
17298
17308
  handler: () => L()
17299
- }, null, 8, ["handler"])) : (y(), le(ht, {
17300
- key: 1,
17309
+ }, null, 8, ["handler"])
17310
+ ])) : v(i).trialEligibility.eligible ? (y(), I("span", iE, [
17311
+ w(ht, {
17301
17312
  label: "Start trial",
17302
17313
  variant: "secondary",
17303
17314
  handler: v(f)
17304
- }, null, 8, ["handler"]))
17305
- ])
17315
+ }, null, 8, ["handler"])
17316
+ ])) : be("", !0)
17306
17317
  ])) : be("", !0),
17307
- T[14] || (T[14] = F("div", { class: "moonbase:grow" }, null, -1)),
17318
+ T[15] || (T[15] = F("div", { class: "moonbase:grow" }, null, -1)),
17308
17319
  w(tt, { class: "moonbase:auto-activation-redeem" }, {
17309
- default: $(() => [
17310
- T[13] || (T[13] = U(" Have a voucher code? ")),
17320
+ default: P(() => [
17321
+ T[14] || (T[14] = U(" Have a voucher code? ")),
17311
17322
  F("button", {
17312
17323
  type: "button",
17313
17324
  onClick: D
@@ -17318,13 +17329,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17318
17329
  ]))
17319
17330
  ])) : (y(), I("div", z2, [
17320
17331
  w(Je, null, {
17321
- default: $(() => T[1] || (T[1] = [
17332
+ default: P(() => T[1] || (T[1] = [
17322
17333
  U(" Uh oh ")
17323
17334
  ])),
17324
17335
  _: 1
17325
17336
  }),
17326
17337
  w(Xe, null, {
17327
- default: $(() => T[2] || (T[2] = [
17338
+ default: P(() => T[2] || (T[2] = [
17328
17339
  U(" Could not find activation request ")
17329
17340
  ])),
17330
17341
  _: 1
@@ -17333,13 +17344,13 @@ const Sa = /* @__PURE__ */ nr(j2, [["render", U2]]), F2 = { class: "moonbase:pro
17333
17344
  ]);
17334
17345
  };
17335
17346
  }
17336
- }), aE = {}, lE = { class: "moonbase:text-caption" };
17337
- function uE(e, t) {
17338
- return y(), I("span", lE, [
17347
+ }), lE = {}, uE = { class: "moonbase:text-caption" };
17348
+ function cE(e, t) {
17349
+ return y(), I("span", uE, [
17339
17350
  kt(e.$slots, "default")
17340
17351
  ]);
17341
17352
  }
17342
- const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE = ["accept"], fE = { "data-error": "" }, hE = /* @__PURE__ */ pe({
17353
+ const xo = /* @__PURE__ */ nr(lE, [["render", cE]]), dE = ["data-corners"], fE = ["accept"], hE = { "data-error": "" }, pE = /* @__PURE__ */ he({
17343
17354
  __name: "DeviceTokenInput",
17344
17355
  props: {
17345
17356
  error: {}
@@ -17401,18 +17412,18 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17401
17412
  accept: s.value,
17402
17413
  class: "moonbase:sr-only",
17403
17414
  onChange: l
17404
- }, null, 40, dE),
17405
- F("p", fE, K((f = u.error) == null ? void 0 : f.message), 1)
17406
- ], 42, cE);
17415
+ }, null, 40, fE),
17416
+ F("p", hE, K((f = u.error) == null ? void 0 : f.message), 1)
17417
+ ], 42, dE);
17407
17418
  };
17408
17419
  }
17409
- }), pE = { class: "moonbase:manual-activation" }, mE = {
17420
+ }), mE = { class: "moonbase:manual-activation" }, bE = {
17410
17421
  key: 1,
17411
17422
  class: "moonbase:loader"
17412
- }, bE = {
17423
+ }, gE = {
17413
17424
  key: 2,
17414
17425
  class: "moonbase:manual-activation-content"
17415
- }, gE = /* @__PURE__ */ pe({
17426
+ }, vE = /* @__PURE__ */ he({
17416
17427
  __name: "ManualActivation",
17417
17428
  setup(e) {
17418
17429
  const t = ye(Vt), { activateProduct: n } = ti(), r = da.Offline, o = j(
@@ -17427,9 +17438,9 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17427
17438
  s.value = u, o.value = 0;
17428
17439
  }
17429
17440
  }
17430
- return (l, u) => (y(), I("div", pE, [
17441
+ return (l, u) => (y(), I("div", mE, [
17431
17442
  w(Xe, null, {
17432
- default: $(() => u[2] || (u[2] = [
17443
+ default: P(() => u[2] || (u[2] = [
17433
17444
  U(" Upload your machine file here to get a license file for activating offline devices. The machine file can be generated in the installed app. ")
17434
17445
  ])),
17435
17446
  _: 1
@@ -17438,23 +17449,23 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17438
17449
  mode: "out-in",
17439
17450
  name: "moonbase:slide-left"
17440
17451
  }, {
17441
- default: $(() => [
17442
- o.value === 0 ? (y(), le(hE, {
17452
+ default: P(() => [
17453
+ o.value === 0 ? (y(), le(pE, {
17443
17454
  key: 0,
17444
17455
  error: s.value,
17445
17456
  onInput: u[0] || (u[0] = (c) => a(c)),
17446
17457
  onError: u[1] || (u[1] = (c) => s.value = c)
17447
- }, null, 8, ["error"])) : o.value === 1 ? (y(), I("div", mE, [
17458
+ }, null, 8, ["error"])) : o.value === 1 ? (y(), I("div", bE, [
17448
17459
  w(bn)
17449
- ])) : o.value === 2 && i.value ? (y(), I("div", bE, [
17460
+ ])) : o.value === 2 && i.value ? (y(), I("div", gE, [
17450
17461
  w(Je, null, {
17451
- default: $(() => u[3] || (u[3] = [
17462
+ default: P(() => u[3] || (u[3] = [
17452
17463
  U(" Success! ")
17453
17464
  ])),
17454
17465
  _: 1
17455
17466
  }),
17456
17467
  w(Xe, null, {
17457
- default: $(() => u[4] || (u[4] = [
17468
+ default: P(() => u[4] || (u[4] = [
17458
17469
  U(" Your license can be downloaded below: ")
17459
17470
  ])),
17460
17471
  _: 1
@@ -17463,15 +17474,15 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17463
17474
  key: 0,
17464
17475
  product: i.value.license.product
17465
17476
  }, {
17466
- description: $(() => [
17477
+ description: P(() => [
17467
17478
  w(xo, null, {
17468
- default: $(() => [
17479
+ default: P(() => [
17469
17480
  U(K(i.value.license.activeNumberOfActivations) + " of " + K(i.value.license.maxNumberOfActivations) + " devices activated ", 1)
17470
17481
  ]),
17471
17482
  _: 1
17472
17483
  })
17473
17484
  ]),
17474
- default: $(() => {
17485
+ default: P(() => {
17475
17486
  var c;
17476
17487
  return [
17477
17488
  w(bs, {
@@ -17480,7 +17491,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17480
17491
  download: ((c = v(t)) == null ? void 0 : c.activation.licenseTokenFileName) ?? "license-file.mb",
17481
17492
  class: "moonbase:manual-activation-download-button"
17482
17493
  }, {
17483
- default: $(() => [
17494
+ default: P(() => [
17484
17495
  w(v(L1))
17485
17496
  ]),
17486
17497
  _: 1
@@ -17497,15 +17508,15 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17497
17508
  })
17498
17509
  ]));
17499
17510
  }
17500
- }), vE = { class: "moonbase:activation" }, yE = /* @__PURE__ */ pe({
17511
+ }), yE = { class: "moonbase:activation" }, _E = /* @__PURE__ */ he({
17501
17512
  __name: "Activation",
17502
17513
  setup(e) {
17503
17514
  const t = Ae();
17504
- return (n, r) => (y(), I("div", vE, [
17505
- v(t).getParameter("token") ? (y(), le(iE, { key: 0 })) : (y(), le(gE, { key: 1 }))
17515
+ return (n, r) => (y(), I("div", yE, [
17516
+ v(t).getParameter("token") ? (y(), le(aE, { key: 0 })) : (y(), le(vE, { key: 1 }))
17506
17517
  ]));
17507
17518
  }
17508
- }), _E = ["disabled"], Dp = Symbol("form-state"), Kn = /* @__PURE__ */ pe({
17519
+ }), wE = ["disabled"], Dp = Symbol("form-state"), Kn = /* @__PURE__ */ he({
17509
17520
  __name: "MoonForm",
17510
17521
  props: {
17511
17522
  handler: { type: Function },
@@ -17537,9 +17548,9 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17537
17548
  isError: o.value,
17538
17549
  disabled: n.value || r.value
17539
17550
  })
17540
- ], 40, _E));
17551
+ ], 40, wE));
17541
17552
  }
17542
- }), wE = ["hidden"], EE = ["for"], xE = ["id", "type", "name", "placeholder", "value", "disabled", "aria-invalid", "aria-describedby", "data-corners"], kE = ["id"], OE = ["id"], Et = /* @__PURE__ */ pe({
17553
+ }), EE = ["hidden"], xE = ["for"], kE = ["id", "type", "name", "placeholder", "value", "disabled", "aria-invalid", "aria-describedby", "data-corners"], OE = ["id"], NE = ["id"], Et = /* @__PURE__ */ he({
17543
17554
  inheritAttrs: !1,
17544
17555
  __name: "MoonInput",
17545
17556
  props: {
@@ -17564,7 +17575,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17564
17575
  }, [
17565
17576
  F("label", {
17566
17577
  for: `mb-${n.name}`
17567
- }, K(n.label), 9, EE),
17578
+ }, K(n.label), 9, xE),
17568
17579
  F("input", hu({
17569
17580
  id: `mb-${n.name}`,
17570
17581
  type: n.type ?? "text",
@@ -17580,21 +17591,21 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17580
17591
  var i;
17581
17592
  return n.$emit("update:modelValue", (i = s.target) == null ? void 0 : i.value);
17582
17593
  })
17583
- }), null, 16, xE),
17594
+ }), null, 16, kE),
17584
17595
  n.error ? (y(), I("p", {
17585
17596
  key: 0,
17586
17597
  id: `mb-${n.name}-error`,
17587
17598
  class: "moonbase:input-hint",
17588
17599
  "data-type": "error"
17589
- }, K(n.error), 9, kE)) : n.hint ? (y(), I("p", {
17600
+ }, K(n.error), 9, OE)) : n.hint ? (y(), I("p", {
17590
17601
  key: 1,
17591
17602
  id: `mb-${n.name}-hint`,
17592
17603
  class: "moonbase:input-hint"
17593
- }, K(n.hint), 9, OE)) : be("", !0)
17594
- ], 8, wE);
17604
+ }, K(n.hint), 9, NE)) : be("", !0)
17605
+ ], 8, EE);
17595
17606
  };
17596
17607
  }
17597
- }), Yn = /* @__PURE__ */ pe({
17608
+ }), Yn = /* @__PURE__ */ he({
17598
17609
  __name: "MoonSubmitButton",
17599
17610
  props: {
17600
17611
  label: {},
@@ -17623,7 +17634,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17623
17634
  size: s.size
17624
17635
  }, null, 8, ["label", "working", "success-label", "success", "error-label", "error", "disabled", "variant", "size"]));
17625
17636
  }
17626
- }), NE = ["data-visible"], CE = { class: "moonbase:sign-in-actions" }, SE = /* @__PURE__ */ pe({
17637
+ }), CE = ["data-visible"], SE = { class: "moonbase:sign-in-actions" }, TE = /* @__PURE__ */ he({
17627
17638
  __name: "SignIn",
17628
17639
  emits: ["signedIn"],
17629
17640
  setup(e, { emit: t }) {
@@ -17641,7 +17652,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17641
17652
  handler: c,
17642
17653
  class: "moonbase:sign-in"
17643
17654
  }, {
17644
- default: $(() => {
17655
+ default: P(() => {
17645
17656
  var h;
17646
17657
  return [
17647
17658
  w(Et, {
@@ -17667,13 +17678,13 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17667
17678
  F("span", {
17668
17679
  class: "moonbase:error",
17669
17680
  "data-visible": !!u.value || void 0
17670
- }, K(u.value), 9, NE),
17681
+ }, K(u.value), 9, CE),
17671
17682
  w(Yn, {
17672
17683
  success: "Signed in",
17673
17684
  label: "Sign in",
17674
17685
  error: "Error"
17675
17686
  }),
17676
- F("div", CE, [
17687
+ F("div", SE, [
17677
17688
  (h = v(s)) != null && h.auth.signUp.enabled ? (y(), le(ht, {
17678
17689
  key: 0,
17679
17690
  label: "Create account",
@@ -17691,14 +17702,14 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17691
17702
  _: 1
17692
17703
  }));
17693
17704
  }
17694
- }), TE = {
17705
+ }), PE = {
17695
17706
  key: 0,
17696
17707
  class: "moonbase:loader"
17697
- }, PE = {
17708
+ }, $E = {
17698
17709
  key: 1,
17699
17710
  class: "moonbase:error",
17700
17711
  "data-visible": ""
17701
- }, $E = ["data-visible"], AE = /* @__PURE__ */ pe({
17712
+ }, AE = ["data-visible"], DE = /* @__PURE__ */ he({
17702
17713
  __name: "ConfirmAccount",
17703
17714
  emits: ["confirmedAccount"],
17704
17715
  setup(e, { emit: t }) {
@@ -17730,8 +17741,8 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17730
17741
  handler: u,
17731
17742
  class: "moonbase:confirm-account"
17732
17743
  }, {
17733
- default: $(() => [
17734
- s.value ? (y(), I("div", TE, [
17744
+ default: P(() => [
17745
+ s.value ? (y(), I("div", PE, [
17735
17746
  w(bn)
17736
17747
  ])) : i.value ? (y(), I(Re, { key: 2 }, [
17737
17748
  F("h3", null, " Hi " + K(i.value.name) + ", ", 1),
@@ -17764,20 +17775,20 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17764
17775
  F("span", {
17765
17776
  class: "moonbase:error",
17766
17777
  "data-visible": !!l.value || void 0
17767
- }, K(l.value), 9, $E)
17768
- ], 64)) : (y(), I("div", PE, K(l.value), 1))
17778
+ }, K(l.value), 9, AE)
17779
+ ], 64)) : (y(), I("div", $E, K(l.value), 1))
17769
17780
  ]),
17770
17781
  _: 1
17771
17782
  }));
17772
17783
  }
17773
- }), DE = { class: "moonbase:confirm-email-change" }, IE = {
17784
+ }), IE = { class: "moonbase:confirm-email-change" }, VE = {
17774
17785
  key: 0,
17775
17786
  class: "moonbase:loader"
17776
- }, VE = {
17787
+ }, ME = {
17777
17788
  key: 1,
17778
17789
  class: "moonbase:error",
17779
17790
  "data-visible": ""
17780
- }, ME = /* @__PURE__ */ pe({
17791
+ }, RE = /* @__PURE__ */ he({
17781
17792
  __name: "ConfirmEmail",
17782
17793
  emits: ["confirmed"],
17783
17794
  setup(e, { emit: t }) {
@@ -17792,12 +17803,12 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17792
17803
  a.value = l.message;
17793
17804
  }
17794
17805
  i.value = !1;
17795
- }), (l, u) => (y(), I("div", DE, [
17796
- i.value ? (y(), I("div", IE, [
17806
+ }), (l, u) => (y(), I("div", IE, [
17807
+ i.value ? (y(), I("div", VE, [
17797
17808
  w(bn)
17798
- ])) : a.value ? (y(), I("div", VE, K(a.value), 1)) : (y(), I(Re, { key: 2 }, [
17809
+ ])) : a.value ? (y(), I("div", ME, K(a.value), 1)) : (y(), I(Re, { key: 2 }, [
17799
17810
  w(Je, null, {
17800
- default: $(() => u[0] || (u[0] = [
17811
+ default: P(() => u[0] || (u[0] = [
17801
17812
  U(" Success! ")
17802
17813
  ])),
17803
17814
  _: 1
@@ -17811,14 +17822,14 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17811
17822
  ], 64))
17812
17823
  ]));
17813
17824
  }
17814
- }), RE = { class: "moonbase:confirm-email-change" }, jE = {
17825
+ }), jE = { class: "moonbase:confirm-email-change" }, LE = {
17815
17826
  key: 0,
17816
17827
  class: "moonbase:loader"
17817
- }, LE = {
17828
+ }, UE = {
17818
17829
  key: 1,
17819
17830
  class: "moonbase:error",
17820
17831
  "data-visible": ""
17821
- }, UE = /* @__PURE__ */ pe({
17832
+ }, FE = /* @__PURE__ */ he({
17822
17833
  __name: "ConfirmEmailChange",
17823
17834
  emits: ["confirmed"],
17824
17835
  setup(e, { emit: t }) {
@@ -17835,17 +17846,17 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17835
17846
  i.value = !1;
17836
17847
  }), (l, u) => {
17837
17848
  var c;
17838
- return y(), I("div", RE, [
17839
- i.value ? (y(), I("div", jE, [
17849
+ return y(), I("div", jE, [
17850
+ i.value ? (y(), I("div", LE, [
17840
17851
  w(bn)
17841
- ])) : a.value ? (y(), I("div", LE, K(a.value), 1)) : (y(), I(Re, { key: 2 }, [
17852
+ ])) : a.value ? (y(), I("div", UE, K(a.value), 1)) : (y(), I(Re, { key: 2 }, [
17842
17853
  F("h3", null, " Hi " + K((c = v(o)) == null ? void 0 : c.name) + ", ", 1),
17843
17854
  u[0] || (u[0] = F("p", null, " Thanks for confirming your new email. You can now sign in using this new address. ", -1))
17844
17855
  ], 64))
17845
17856
  ]);
17846
17857
  };
17847
17858
  }
17848
- }), FE = ["data-visible"], BE = /* @__PURE__ */ pe({
17859
+ }), BE = ["data-visible"], HE = /* @__PURE__ */ he({
17849
17860
  __name: "ForgotPassword",
17850
17861
  setup(e) {
17851
17862
  const t = Ae(), n = et(), r = j(t.getParameter("email") ?? ""), o = j(null), s = j(!1);
@@ -17864,7 +17875,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17864
17875
  class: "moonbase:sign-in",
17865
17876
  "no-reset": ""
17866
17877
  }, {
17867
- default: $(({ disabled: u }) => [
17878
+ default: P(({ disabled: u }) => [
17868
17879
  l[1] || (l[1] = F("p", null, " Please enter your username or email address. You will receive an email message with instructions on how to reset your password. ", -1)),
17869
17880
  w(Et, {
17870
17881
  modelValue: r.value,
@@ -17885,12 +17896,12 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17885
17896
  F("span", {
17886
17897
  class: "moonbase:error",
17887
17898
  "data-visible": !!o.value || void 0
17888
- }, K(o.value), 9, FE)
17899
+ }, K(o.value), 9, BE)
17889
17900
  ]),
17890
17901
  _: 1
17891
17902
  }));
17892
17903
  }
17893
- }), HE = ["data-visible"], qE = /* @__PURE__ */ pe({
17904
+ }), qE = ["data-visible"], zE = /* @__PURE__ */ he({
17894
17905
  __name: "ResetPassword",
17895
17906
  emits: ["passwordReset"],
17896
17907
  setup(e, { emit: t }) {
@@ -17914,7 +17925,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17914
17925
  handler: l,
17915
17926
  class: "moonbase:reset-password"
17916
17927
  }, {
17917
- default: $(() => [
17928
+ default: P(() => [
17918
17929
  F("h3", null, " Hi " + K(s.value) + ", ", 1),
17919
17930
  c[1] || (c[1] = F("p", null, " Please create a new password for your account: ", -1)),
17920
17931
  w(Et, {
@@ -17945,12 +17956,12 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17945
17956
  F("span", {
17946
17957
  class: "moonbase:error",
17947
17958
  "data-visible": !!a.value || void 0
17948
- }, K(a.value), 9, HE)
17959
+ }, K(a.value), 9, qE)
17949
17960
  ]),
17950
17961
  _: 1
17951
17962
  }));
17952
17963
  }
17953
- }), zE = { class: "moonbase:checkbox" }, ZE = { class: "moonbase:checkbox-container" }, WE = ["id", "name", "value", "disabled", "aria-invalid", "aria-describedby"], GE = { class: "moonbase:checkbox-description" }, KE = ["for"], YE = ["id"], JE = ["id"], Ip = /* @__PURE__ */ pe({
17964
+ }), ZE = { class: "moonbase:checkbox" }, WE = { class: "moonbase:checkbox-container" }, GE = ["id", "name", "value", "disabled", "aria-invalid", "aria-describedby"], KE = { class: "moonbase:checkbox-description" }, YE = ["for"], JE = ["id"], XE = ["id"], Ip = /* @__PURE__ */ he({
17954
17965
  inheritAttrs: !1,
17955
17966
  __name: "MoonCheckbox",
17956
17967
  props: {
@@ -17963,8 +17974,8 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17963
17974
  },
17964
17975
  emits: ["update:modelValue"],
17965
17976
  setup(e) {
17966
- return (t, n) => (y(), I("div", zE, [
17967
- F("div", ZE, [
17977
+ return (t, n) => (y(), I("div", ZE, [
17978
+ F("div", WE, [
17968
17979
  F("input", hu({
17969
17980
  id: `mb-${t.name}`,
17970
17981
  type: "checkbox",
@@ -17978,24 +17989,24 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
17978
17989
  var o;
17979
17990
  return t.$emit("update:modelValue", (o = r.target) == null ? void 0 : o.checked);
17980
17991
  })
17981
- }), null, 16, WE)
17992
+ }), null, 16, GE)
17982
17993
  ]),
17983
- F("div", GE, [
17994
+ F("div", KE, [
17984
17995
  F("label", {
17985
17996
  for: `mb-${t.name}`
17986
- }, K(t.label), 9, KE),
17997
+ }, K(t.label), 9, YE),
17987
17998
  t.error ? (y(), I("p", {
17988
17999
  key: 0,
17989
18000
  id: `mb-${t.name}-error`,
17990
18001
  "data-type": "error"
17991
- }, K(t.error), 9, YE)) : t.hint ? (y(), I("p", {
18002
+ }, K(t.error), 9, JE)) : t.hint ? (y(), I("p", {
17992
18003
  key: 1,
17993
18004
  id: `mb-${t.name}-hint`
17994
- }, K(t.hint), 9, JE)) : be("", !0)
18005
+ }, K(t.hint), 9, XE)) : be("", !0)
17995
18006
  ])
17996
18007
  ]));
17997
18008
  }
17998
- }), XE = ["href"], QE = ["href"], e5 = ["data-visible"], t5 = /* @__PURE__ */ pe({
18009
+ }), QE = ["href"], e5 = ["href"], t5 = ["data-visible"], n5 = /* @__PURE__ */ he({
17999
18010
  __name: "SignUp",
18000
18011
  emits: ["signedUp"],
18001
18012
  setup(e, { emit: t }) {
@@ -18021,7 +18032,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
18021
18032
  handler: f,
18022
18033
  class: "moonbase:sign-up"
18023
18034
  }, {
18024
- default: $(() => [
18035
+ default: P(() => [
18025
18036
  w(Et, {
18026
18037
  modelValue: a.value,
18027
18038
  "onUpdate:modelValue": m[0] || (m[0] = (_) => a.value = _),
@@ -18059,19 +18070,19 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
18059
18070
  name: "newsletter-opt-in"
18060
18071
  }, null, 8, ["modelValue"]),
18061
18072
  w(tt, null, {
18062
- default: $(() => [
18073
+ default: P(() => [
18063
18074
  m[4] || (m[4] = U(" By signing up, you accept our ")),
18064
18075
  F("a", {
18065
18076
  href: `${v(s)}/terms-of-use`,
18066
18077
  target: "_blank",
18067
18078
  rel: "noopener"
18068
- }, "terms", 8, XE),
18079
+ }, "terms", 8, QE),
18069
18080
  m[5] || (m[5] = U(" and ")),
18070
18081
  F("a", {
18071
18082
  href: `${v(s)}/privacy-policy`,
18072
18083
  target: "_blank",
18073
18084
  rel: "noopener"
18074
- }, "privacy policy", 8, QE),
18085
+ }, "privacy policy", 8, e5),
18075
18086
  m[6] || (m[6] = U(". "))
18076
18087
  ]),
18077
18088
  _: 1
@@ -18084,7 +18095,7 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
18084
18095
  F("span", {
18085
18096
  class: "moonbase:error",
18086
18097
  "data-visible": !!d.value || void 0
18087
- }, K(d.value), 9, e5),
18098
+ }, K(d.value), 9, t5),
18088
18099
  w(ht, {
18089
18100
  label: "I already have an account",
18090
18101
  variant: "subtle",
@@ -18094,32 +18105,32 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
18094
18105
  _: 1
18095
18106
  }));
18096
18107
  }
18097
- }), n5 = { class: "moonbase:authentication" }, r5 = {
18108
+ }), r5 = { class: "moonbase:authentication" }, o5 = {
18098
18109
  key: 0,
18099
18110
  class: "moonbase:loader"
18100
- }, o5 = /* @__PURE__ */ pe({
18111
+ }, s5 = /* @__PURE__ */ he({
18101
18112
  __name: "Authentication",
18102
18113
  setup(e) {
18103
18114
  const t = Ae(), { loaded: n } = et();
18104
- return (r, o) => (y(), I("div", n5, [
18115
+ return (r, o) => (y(), I("div", r5, [
18105
18116
  w(Qs, {
18106
18117
  name: v(t).direction === v(yu).Forward ? "moonbase:slide-left" : "moonbase:slide-right",
18107
18118
  mode: "out-in"
18108
18119
  }, {
18109
- default: $(() => [
18110
- v(n) ? v(t).intent === v(ne).SignIn ? (y(), le(SE, {
18120
+ default: P(() => [
18121
+ v(n) ? v(t).intent === v(ne).SignIn ? (y(), le(TE, {
18111
18122
  key: 1,
18112
18123
  onSignedIn: o[0] || (o[0] = (s) => v(t).dequeue())
18113
- })) : v(t).intent === v(ne).SignUp ? (y(), le(t5, {
18124
+ })) : v(t).intent === v(ne).SignUp ? (y(), le(n5, {
18114
18125
  key: 2,
18115
18126
  onSignedUp: o[1] || (o[1] = (s) => v(t).next ? v(t).dequeue() : v(t).show(v(ue).Customer, v(ne).ViewAccount, void 0, !0))
18116
- })) : v(t).intent === v(ne).ConfirmAccount ? (y(), le(AE, {
18127
+ })) : v(t).intent === v(ne).ConfirmAccount ? (y(), le(DE, {
18117
18128
  key: 3,
18118
18129
  onConfirmedAccount: o[2] || (o[2] = (s) => v(t).show(v(ue).Customer, v(ne).ViewAccount, void 0))
18119
- })) : v(t).intent === v(ne).ConfirmEmail ? (y(), le(ME, { key: 4 })) : v(t).intent === v(ne).ConfirmEmailChange ? (y(), le(UE, { key: 5 })) : v(t).intent === v(ne).ForgotPassword ? (y(), le(BE, { key: 6 })) : v(t).intent === v(ne).ResetPassword ? (y(), le(qE, {
18130
+ })) : v(t).intent === v(ne).ConfirmEmail ? (y(), le(RE, { key: 4 })) : v(t).intent === v(ne).ConfirmEmailChange ? (y(), le(FE, { key: 5 })) : v(t).intent === v(ne).ForgotPassword ? (y(), le(HE, { key: 6 })) : v(t).intent === v(ne).ResetPassword ? (y(), le(zE, {
18120
18131
  key: 7,
18121
18132
  onPasswordReset: o[3] || (o[3] = (s) => v(t).show(v(ue).Customer, v(ne).ViewAccount, void 0))
18122
- })) : be("", !0) : (y(), I("div", r5, [
18133
+ })) : be("", !0) : (y(), I("div", o5, [
18123
18134
  w(bn)
18124
18135
  ]))
18125
18136
  ]),
@@ -18127,13 +18138,13 @@ const xo = /* @__PURE__ */ nr(aE, [["render", uE]]), cE = ["data-corners"], dE =
18127
18138
  }, 8, ["name"])
18128
18139
  ]));
18129
18140
  }
18130
- }), s5 = {}, i5 = { class: "moonbase:text-subtext-bold" };
18131
- function a5(e, t) {
18132
- return y(), I("span", i5, [
18141
+ }), i5 = {}, a5 = { class: "moonbase:text-subtext-bold" };
18142
+ function l5(e, t) {
18143
+ return y(), I("span", a5, [
18133
18144
  kt(e.$slots, "default")
18134
18145
  ]);
18135
18146
  }
18136
- const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data-cards"], Vp = /* @__PURE__ */ pe({
18147
+ const Jt = /* @__PURE__ */ nr(i5, [["render", l5]]), u5 = ["data-corners", "data-cards"], Vp = /* @__PURE__ */ he({
18137
18148
  __name: "Counter",
18138
18149
  props: {
18139
18150
  modelValue: {}
@@ -18154,7 +18165,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18154
18165
  w(v(B1))
18155
18166
  ]),
18156
18167
  w(tt, null, {
18157
- default: $(() => [
18168
+ default: P(() => [
18158
18169
  U(K(n.modelValue.toString().padStart(2, "0")), 1)
18159
18170
  ]),
18160
18171
  _: 1
@@ -18164,22 +18175,22 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18164
18175
  }, [
18165
18176
  w(v(H1))
18166
18177
  ])
18167
- ], 8, l5);
18178
+ ], 8, u5);
18168
18179
  };
18169
18180
  }
18170
- }), u5 = { class: "moonbase:bundle-cart-item-content" }, c5 = {
18181
+ }), c5 = { class: "moonbase:bundle-cart-item-content" }, d5 = {
18171
18182
  key: 0,
18172
18183
  class: "moonbase:bundle-cart-item-total"
18173
- }, d5 = {
18184
+ }, f5 = {
18174
18185
  key: 0,
18175
18186
  class: "moonbase:discount"
18176
- }, f5 = { class: "moonbase:bundle-cart-item-summary" }, h5 = ["data-open"], p5 = ["data-open"], m5 = { class: "moonbase:bundle-cart-item-product-list-item-content" }, b5 = {
18187
+ }, h5 = { class: "moonbase:bundle-cart-item-summary" }, p5 = ["data-open"], m5 = ["data-open"], b5 = { class: "moonbase:bundle-cart-item-product-list-item-content" }, g5 = {
18177
18188
  key: 0,
18178
18189
  fill: "none",
18179
18190
  viewBox: "0 0 24 24",
18180
18191
  "stroke-width": "1.5",
18181
18192
  stroke: "currentColor"
18182
- }, g5 = /* @__PURE__ */ pe({
18193
+ }, v5 = /* @__PURE__ */ he({
18183
18194
  __name: "BundleCartItem",
18184
18195
  props: {
18185
18196
  lineItem: {},
@@ -18190,16 +18201,16 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18190
18201
  return Ke(n, (o) => {
18191
18202
  r.value && (r.value.style.height = o ? `${r.value.scrollHeight}px` : "0px");
18192
18203
  }), (o, s) => (y(), le(Wn, { class: "moonbase:bundle-cart-item" }, {
18193
- addon: $(() => {
18204
+ addon: P(() => {
18194
18205
  var i;
18195
18206
  return [
18196
- F("div", f5, [
18207
+ F("div", h5, [
18197
18208
  o.lineItem.bundle ? (y(), I("button", {
18198
18209
  key: 0,
18199
18210
  onClick: s[1] || (s[1] = (a) => n.value = !n.value)
18200
18211
  }, [
18201
18212
  w(Jt, null, {
18202
- default: $(() => {
18213
+ default: P(() => {
18203
18214
  var a, l, u;
18204
18215
  return [
18205
18216
  U(K((a = o.lineItem.bundle) == null ? void 0 : a.products.filter((c) => c.included).length) + " ", 1),
@@ -18212,7 +18223,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18212
18223
  _: 1
18213
18224
  }),
18214
18225
  w(tt, null, {
18215
- default: $(() => [
18226
+ default: P(() => [
18216
18227
  U(K(n.value ? "Hide" : "Show") + " ", 1),
18217
18228
  (y(), I("svg", {
18218
18229
  "data-open": n.value || void 0,
@@ -18226,7 +18237,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18226
18237
  "stroke-linejoin": "round",
18227
18238
  d: "m19.5 8.25-7.5 7.5-7.5-7.5"
18228
18239
  }, null, -1)
18229
- ]), 8, h5))
18240
+ ]), 8, p5))
18230
18241
  ]),
18231
18242
  _: 1
18232
18243
  })
@@ -18247,12 +18258,12 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18247
18258
  url: a == null ? void 0 : a.iconUrl,
18248
18259
  size: 48
18249
18260
  }, null, 8, ["url"]),
18250
- F("div", m5, [
18261
+ F("div", b5, [
18251
18262
  w(Jt, {
18252
18263
  "data-included": a.included || void 0
18253
18264
  }, {
18254
- default: $(() => [
18255
- a.included ? (y(), I("svg", b5, s[4] || (s[4] = [
18265
+ default: P(() => [
18266
+ a.included ? (y(), I("svg", g5, s[4] || (s[4] = [
18256
18267
  F("path", {
18257
18268
  "stroke-linecap": "round",
18258
18269
  "stroke-linejoin": "round",
@@ -18264,31 +18275,31 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18264
18275
  _: 2
18265
18276
  }, 1032, ["data-included"]),
18266
18277
  a.included ? a != null && a.tagline ? (y(), le(tt, { key: 1 }, {
18267
- default: $(() => [
18278
+ default: P(() => [
18268
18279
  U(K(a.tagline), 1)
18269
18280
  ]),
18270
18281
  _: 2
18271
18282
  }, 1024)) : be("", !0) : (y(), le(tt, { key: 0 }, {
18272
- default: $(() => s[5] || (s[5] = [
18283
+ default: P(() => s[5] || (s[5] = [
18273
18284
  U(" You already own this ")
18274
18285
  ])),
18275
18286
  _: 1
18276
18287
  }))
18277
18288
  ])
18278
18289
  ]))), 128))
18279
- ], 8, p5)
18290
+ ], 8, m5)
18280
18291
  ];
18281
18292
  }),
18282
- default: $(() => {
18293
+ default: P(() => {
18283
18294
  var i;
18284
18295
  return [
18285
18296
  w(Gn, {
18286
18297
  url: (i = o.lineItem.bundle) == null ? void 0 : i.iconUrl,
18287
18298
  size: 72
18288
18299
  }, null, 8, ["url"]),
18289
- F("div", u5, [
18300
+ F("div", c5, [
18290
18301
  w(Jt, null, {
18291
- default: $(() => {
18302
+ default: P(() => {
18292
18303
  var a;
18293
18304
  return [
18294
18305
  U(K((a = o.lineItem.bundle) == null ? void 0 : a.name), 1)
@@ -18297,7 +18308,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18297
18308
  _: 1
18298
18309
  }),
18299
18310
  w(tt, { class: "moonbase:bundle-cart-item-tagline" }, {
18300
- default: $(() => {
18311
+ default: P(() => {
18301
18312
  var a;
18302
18313
  return [
18303
18314
  U(K((a = o.lineItem.bundle) == null ? void 0 : a.tagline), 1)
@@ -18306,10 +18317,10 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18306
18317
  _: 1
18307
18318
  })
18308
18319
  ]),
18309
- o.lineItem.variation ? (y(), I("div", c5, [
18320
+ o.lineItem.variation ? (y(), I("div", d5, [
18310
18321
  w(gs, null, {
18311
- default: $(() => [
18312
- o.lineItem.variation.hasDiscount ? (y(), I("span", d5, K(v(Cn)(o.lineItem.variation.originalPrice[o.currency] * o.lineItem.quantity, o.currency)), 1)) : be("", !0),
18322
+ default: P(() => [
18323
+ o.lineItem.variation.hasDiscount ? (y(), I("span", f5, K(v(Cn)(o.lineItem.variation.originalPrice[o.currency] * o.lineItem.quantity, o.currency)), 1)) : be("", !0),
18313
18324
  U(" " + K(v(Cn)(o.lineItem.variation.price[o.currency] * o.lineItem.quantity, o.currency)), 1)
18314
18325
  ]),
18315
18326
  _: 1
@@ -18324,13 +18335,13 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18324
18335
  _: 1
18325
18336
  }));
18326
18337
  }
18327
- }), v5 = { class: "moonbase:product-cart-item-content" }, y5 = {
18338
+ }), y5 = { class: "moonbase:product-cart-item-content" }, _5 = {
18328
18339
  key: 0,
18329
18340
  class: "moonbase:product-cart-item-total"
18330
- }, _5 = {
18341
+ }, w5 = {
18331
18342
  key: 0,
18332
18343
  class: "moonbase:discount"
18333
- }, w5 = /* @__PURE__ */ pe({
18344
+ }, E5 = /* @__PURE__ */ he({
18334
18345
  __name: "ProductCartItem",
18335
18346
  props: {
18336
18347
  lineItem: {},
@@ -18355,16 +18366,16 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18355
18366
  }
18356
18367
  const s = kr();
18357
18368
  return (i, a) => (y(), le(Wn, { class: "moonbase:product-cart-item" }, {
18358
- default: $(() => {
18369
+ default: P(() => {
18359
18370
  var l;
18360
18371
  return [
18361
18372
  w(Gn, {
18362
18373
  url: (l = i.lineItem.product) == null ? void 0 : l.iconUrl,
18363
18374
  size: 72
18364
18375
  }, null, 8, ["url"]),
18365
- F("div", v5, [
18376
+ F("div", y5, [
18366
18377
  w(Jt, null, {
18367
- default: $(() => {
18378
+ default: P(() => {
18368
18379
  var u;
18369
18380
  return [
18370
18381
  U(K((u = i.lineItem.product) == null ? void 0 : u.name), 1)
@@ -18373,7 +18384,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18373
18384
  _: 1
18374
18385
  }),
18375
18386
  w(tt, { class: "moonbase:product-cart-item-tagline" }, {
18376
- default: $(() => {
18387
+ default: P(() => {
18377
18388
  var u;
18378
18389
  return [
18379
18390
  U(K((u = i.lineItem.product) == null ? void 0 : u.tagline), 1)
@@ -18382,10 +18393,10 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18382
18393
  _: 1
18383
18394
  })
18384
18395
  ]),
18385
- i.lineItem.variation ? (y(), I("div", y5, [
18396
+ i.lineItem.variation ? (y(), I("div", _5, [
18386
18397
  w(gs, null, {
18387
- default: $(() => [
18388
- i.lineItem.variation.hasDiscount || r(i.lineItem) ? (y(), I("span", _5, K(v(Cn)(i.lineItem.variation.originalPrice[i.currency] * i.lineItem.quantity, i.currency)), 1)) : be("", !0),
18398
+ default: P(() => [
18399
+ i.lineItem.variation.hasDiscount || r(i.lineItem) ? (y(), I("span", w5, K(v(Cn)(i.lineItem.variation.originalPrice[i.currency] * i.lineItem.quantity, i.currency)), 1)) : be("", !0),
18389
18400
  U(" " + K(v(Cn)(n(i.lineItem) * i.lineItem.quantity, i.currency)), 1)
18390
18401
  ]),
18391
18402
  _: 1
@@ -18400,7 +18411,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18400
18411
  _: 1
18401
18412
  }));
18402
18413
  }
18403
- }), E5 = { class: "moonbase:cart" }, x5 = ["data-background"], k5 = ["data-corners"], O5 = { class: "moonbase:cart-total" }, N5 = { "data-error": "" }, C5 = /* @__PURE__ */ pe({
18414
+ }), x5 = { class: "moonbase:cart" }, k5 = ["data-background"], O5 = ["data-corners"], N5 = { class: "moonbase:cart-total" }, C5 = { "data-error": "" }, S5 = /* @__PURE__ */ he({
18404
18415
  __name: "Cart",
18405
18416
  setup(e) {
18406
18417
  const { items: t, total: n, currency: r, checkout: o } = kr(), s = ye(Vt), i = j(null);
@@ -18415,7 +18426,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18415
18426
  }
18416
18427
  return (l, u) => {
18417
18428
  var c, d;
18418
- return y(), I("div", E5, [
18429
+ return y(), I("div", x5, [
18419
18430
  v(t).length > 0 ? (y(), I("ul", {
18420
18431
  key: 0,
18421
18432
  role: "list",
@@ -18425,34 +18436,34 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18425
18436
  (y(!0), I(Re, null, hn(v(t), (f) => (y(), I("li", {
18426
18437
  key: f.id
18427
18438
  }, [
18428
- f.type === "Product" ? (y(), le(w5, {
18439
+ f.type === "Product" ? (y(), le(E5, {
18429
18440
  key: 0,
18430
18441
  "line-item": f,
18431
18442
  currency: v(r)
18432
- }, null, 8, ["line-item", "currency"])) : f.type === "Bundle" ? (y(), le(g5, {
18443
+ }, null, 8, ["line-item", "currency"])) : f.type === "Bundle" ? (y(), le(v5, {
18433
18444
  key: 1,
18434
18445
  "line-item": f,
18435
18446
  currency: v(r)
18436
18447
  }, null, 8, ["line-item", "currency"])) : be("", !0)
18437
18448
  ]))), 128))
18438
- ], 8, x5)) : (y(), I("div", {
18449
+ ], 8, k5)) : (y(), I("div", {
18439
18450
  key: 1,
18440
18451
  class: "moonbase:cart-empty",
18441
18452
  "data-corners": (d = v(s)) == null ? void 0 : d.theme.corners
18442
18453
  }, [
18443
18454
  w(v(q1)),
18444
18455
  w(Jt, null, {
18445
- default: $(() => u[0] || (u[0] = [
18456
+ default: P(() => u[0] || (u[0] = [
18446
18457
  U(" Your cart is empty ")
18447
18458
  ])),
18448
18459
  _: 1
18449
18460
  })
18450
- ], 8, k5)),
18451
- F("div", O5, [
18461
+ ], 8, O5)),
18462
+ F("div", N5, [
18452
18463
  u[1] || (u[1] = F("label", null, " Total ", -1)),
18453
18464
  F("span", null, K(v(Cn)(v(n).amount, v(n).currency)), 1),
18454
18465
  u[2] || (u[2] = F("p", null, " Sales tax to be calculated at checkout ", -1)),
18455
- F("p", N5, K(i.value), 1)
18466
+ F("p", C5, K(i.value), 1)
18456
18467
  ]),
18457
18468
  w(ht, {
18458
18469
  handler: a,
@@ -18464,16 +18475,16 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18464
18475
  ]);
18465
18476
  };
18466
18477
  }
18467
- }), S5 = { class: "moonbase:account" }, T5 = {
18478
+ }), T5 = { class: "moonbase:account" }, P5 = {
18468
18479
  key: 0,
18469
18480
  class: "moonbase:error"
18470
- }, P5 = {
18481
+ }, $5 = {
18471
18482
  key: 1,
18472
18483
  class: "moonbase:notification"
18473
- }, $5 = {
18484
+ }, A5 = {
18474
18485
  key: 0,
18475
18486
  class: "moonbase:error"
18476
- }, A5 = /* @__PURE__ */ pe({
18487
+ }, D5 = /* @__PURE__ */ he({
18477
18488
  __name: "Account",
18478
18489
  setup(e) {
18479
18490
  var z, H, L;
@@ -18496,13 +18507,13 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18496
18507
  throw m.value = V, V;
18497
18508
  }
18498
18509
  }
18499
- async function P() {
18510
+ async function $() {
18500
18511
  const V = { ...n.value };
18501
18512
  await s(), i == null || i(Rt.SignedOut, { user: V }), t.reset();
18502
18513
  }
18503
- return (V, D) => (y(), I("div", S5, [
18514
+ return (V, D) => (y(), I("div", T5, [
18504
18515
  w(Kn, { handler: _ }, {
18505
- default: $(() => [
18516
+ default: P(() => [
18506
18517
  w(Et, {
18507
18518
  modelValue: a.value,
18508
18519
  "onUpdate:modelValue": D[0] || (D[0] = (p) => a.value = p),
@@ -18532,12 +18543,12 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18532
18543
  error: "Error",
18533
18544
  success: "Updated"
18534
18545
  }),
18535
- c.value ? (y(), I("p", T5, K(c.value.message), 1)) : d.value ? (y(), I("p", P5, " You need to confirm your new email address, please check your inbox ")) : be("", !0)
18546
+ c.value ? (y(), I("p", P5, K(c.value.message), 1)) : d.value ? (y(), I("p", $5, " You need to confirm your new email address, please check your inbox ")) : be("", !0)
18536
18547
  ]),
18537
18548
  _: 1
18538
18549
  }),
18539
18550
  w(Kn, { handler: k }, {
18540
- default: $(() => [
18551
+ default: P(() => [
18541
18552
  w(Et, {
18542
18553
  modelValue: f.value,
18543
18554
  "onUpdate:modelValue": D[3] || (D[3] = (p) => f.value = p),
@@ -18561,7 +18572,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18561
18572
  error: "Error",
18562
18573
  success: "Password changed"
18563
18574
  }),
18564
- m.value ? (y(), I("p", $5, K(m.value.message), 1)) : be("", !0)
18575
+ m.value ? (y(), I("p", A5, K(m.value.message), 1)) : be("", !0)
18565
18576
  ]),
18566
18577
  _: 1
18567
18578
  }),
@@ -18570,11 +18581,11 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18570
18581
  success: "Logged out",
18571
18582
  error: "Error",
18572
18583
  variant: "subtle",
18573
- handler: P
18584
+ handler: $
18574
18585
  })
18575
18586
  ]));
18576
18587
  }
18577
- }), D5 = { class: "moonbase:products" }, I5 = { key: 0 }, V5 = { colspan: "2" }, M5 = { key: 1 }, R5 = /* @__PURE__ */ pe({
18588
+ }), I5 = { class: "moonbase:products" }, V5 = { key: 0 }, M5 = { colspan: "2" }, R5 = { key: 1 }, j5 = /* @__PURE__ */ he({
18578
18589
  __name: "Products",
18579
18590
  setup(e) {
18580
18591
  const t = Ae(), { getProducts: n } = ti(), r = j(null);
@@ -18582,12 +18593,12 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18582
18593
  let o = await n();
18583
18594
  for (r.value = o.items; o.hasMore && o.next; )
18584
18595
  o = await n(o.next), r.value.push(...o.items);
18585
- }), (o, s) => (y(), I("table", D5, [
18596
+ }), (o, s) => (y(), I("table", I5, [
18586
18597
  F("tbody", null, [
18587
- r.value ? r.value.length === 0 ? (y(), I("tr", M5, s[2] || (s[2] = [
18598
+ r.value ? r.value.length === 0 ? (y(), I("tr", R5, s[2] || (s[2] = [
18588
18599
  F("td", { colspan: "2" }, " No products found ", -1)
18589
- ]))) : be("", !0) : (y(), I("tr", I5, [
18590
- F("td", V5, [
18600
+ ]))) : be("", !0) : (y(), I("tr", V5, [
18601
+ F("td", M5, [
18591
18602
  w(bn),
18592
18603
  s[0] || (s[0] = U(" Loading products.. "))
18593
18604
  ]),
@@ -18604,13 +18615,13 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18604
18615
  }, null, 8, ["url"]),
18605
18616
  F("div", null, [
18606
18617
  w(Jt, null, {
18607
- default: $(() => [
18618
+ default: P(() => [
18608
18619
  U(K(i.name), 1)
18609
18620
  ]),
18610
18621
  _: 2
18611
18622
  }, 1024),
18612
18623
  i.numberOfLicenses ? (y(), le(tt, { key: 0 }, {
18613
- default: $(() => [
18624
+ default: P(() => [
18614
18625
  U(K(i.numberOfLicenses) + " licenses ", 1)
18615
18626
  ]),
18616
18627
  _: 2
@@ -18623,7 +18634,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18623
18634
  variant: "subtle",
18624
18635
  onClick: (a) => v(t).show(v(ue).Product, v(ne).ViewProduct, { product_id: i.id })
18625
18636
  }, {
18626
- default: $(() => [
18637
+ default: P(() => [
18627
18638
  w(v(D1))
18628
18639
  ]),
18629
18640
  _: 2
@@ -18633,7 +18644,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18633
18644
  ])
18634
18645
  ]));
18635
18646
  }
18636
- }), j5 = { class: "moonbase:bundle-redemption-item-content" }, L5 = { class: "moonbase:bundle-redemption-item-summary" }, U5 = ["data-open"], F5 = ["data-open"], Mp = /* @__PURE__ */ pe({
18647
+ }), L5 = { class: "moonbase:bundle-redemption-item-content" }, U5 = { class: "moonbase:bundle-redemption-item-summary" }, F5 = ["data-open"], B5 = ["data-open"], Mp = /* @__PURE__ */ he({
18637
18648
  __name: "BundleRedemptionItem",
18638
18649
  props: {
18639
18650
  bundle: {},
@@ -18644,16 +18655,16 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18644
18655
  return Ke(t, (r) => {
18645
18656
  n.value && (n.value.style.height = r ? `${n.value.scrollHeight}px` : "0px");
18646
18657
  }), (r, o) => (y(), le(Wn, { class: "moonbase:bundle-redemption-item" }, {
18647
- addon: $(() => {
18658
+ addon: P(() => {
18648
18659
  var s;
18649
18660
  return [
18650
- F("div", L5, [
18661
+ F("div", U5, [
18651
18662
  r.bundle ? (y(), I("button", {
18652
18663
  key: 0,
18653
18664
  onClick: o[0] || (o[0] = (i) => t.value = !t.value)
18654
18665
  }, [
18655
18666
  w(Jt, null, {
18656
- default: $(() => {
18667
+ default: P(() => {
18657
18668
  var i;
18658
18669
  return [
18659
18670
  U(K((i = r.bundle) == null ? void 0 : i.products.length) + " products ", 1)
@@ -18662,7 +18673,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18662
18673
  _: 1
18663
18674
  }),
18664
18675
  w(tt, null, {
18665
- default: $(() => [
18676
+ default: P(() => [
18666
18677
  U(K(t.value ? "Hide" : "Show") + " ", 1),
18667
18678
  (y(), I("svg", {
18668
18679
  "data-open": t.value || void 0,
@@ -18676,7 +18687,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18676
18687
  "stroke-linejoin": "round",
18677
18688
  d: "m19.5 8.25-7.5 7.5-7.5-7.5"
18678
18689
  }, null, -1)
18679
- ]), 8, U5))
18690
+ ]), 8, F5))
18680
18691
  ]),
18681
18692
  _: 1
18682
18693
  })
@@ -18698,30 +18709,30 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18698
18709
  }, null, 8, ["url"]),
18699
18710
  F("div", null, [
18700
18711
  w(Jt, null, {
18701
- default: $(() => [
18712
+ default: P(() => [
18702
18713
  U(K(i.name), 1)
18703
18714
  ]),
18704
18715
  _: 2
18705
18716
  }, 1024),
18706
18717
  i.tagline ? (y(), le(tt, { key: 0 }, {
18707
- default: $(() => [
18718
+ default: P(() => [
18708
18719
  U(K(i.tagline), 1)
18709
18720
  ]),
18710
18721
  _: 2
18711
18722
  }, 1024)) : be("", !0)
18712
18723
  ])
18713
18724
  ]))), 128))
18714
- ], 8, F5)
18725
+ ], 8, B5)
18715
18726
  ];
18716
18727
  }),
18717
- default: $(() => [
18728
+ default: P(() => [
18718
18729
  w(Gn, {
18719
18730
  url: r.bundle.iconUrl,
18720
18731
  size: 72
18721
18732
  }, null, 8, ["url"]),
18722
- F("div", j5, [
18733
+ F("div", L5, [
18723
18734
  w(Jt, null, {
18724
- default: $(() => {
18735
+ default: P(() => {
18725
18736
  var s;
18726
18737
  return [
18727
18738
  U(K((s = r.bundle) == null ? void 0 : s.name), 1)
@@ -18730,7 +18741,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18730
18741
  _: 1
18731
18742
  }),
18732
18743
  w(tt, { class: "moonbase:bundle-redemption-item-tagline" }, {
18733
- default: $(() => {
18744
+ default: P(() => {
18734
18745
  var s;
18735
18746
  return [
18736
18747
  U(K((s = r.bundle) == null ? void 0 : s.tagline), 1)
@@ -18743,7 +18754,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18743
18754
  _: 1
18744
18755
  }));
18745
18756
  }
18746
- }), B5 = { class: "moonbase:product-redemption-item-content" }, Rp = /* @__PURE__ */ pe({
18757
+ }), H5 = { class: "moonbase:product-redemption-item-content" }, Rp = /* @__PURE__ */ he({
18747
18758
  __name: "ProductRedemptionItem",
18748
18759
  props: {
18749
18760
  product: {},
@@ -18751,14 +18762,14 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18751
18762
  },
18752
18763
  setup(e) {
18753
18764
  return (t, n) => (y(), le(Wn, { class: "moonbase:product-redemption-item" }, {
18754
- default: $(() => [
18765
+ default: P(() => [
18755
18766
  w(Gn, {
18756
18767
  url: t.product.iconUrl,
18757
18768
  size: 72
18758
18769
  }, null, 8, ["url"]),
18759
- F("div", B5, [
18770
+ F("div", H5, [
18760
18771
  w(Jt, null, {
18761
- default: $(() => {
18772
+ default: P(() => {
18762
18773
  var r;
18763
18774
  return [
18764
18775
  U(K((r = t.product) == null ? void 0 : r.name), 1)
@@ -18767,7 +18778,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18767
18778
  _: 1
18768
18779
  }),
18769
18780
  w(tt, { class: "moonbase:product-redemption-item-tagline" }, {
18770
- default: $(() => {
18781
+ default: P(() => {
18771
18782
  var r;
18772
18783
  return [
18773
18784
  U(K((r = t.product) == null ? void 0 : r.tagline), 1)
@@ -18780,16 +18791,16 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18780
18791
  _: 1
18781
18792
  }));
18782
18793
  }
18783
- }), H5 = { class: "moonbase:redeem" }, q5 = ["data-visible"], z5 = {
18794
+ }), q5 = { class: "moonbase:redeem" }, z5 = ["data-visible"], Z5 = {
18784
18795
  key: 1,
18785
18796
  class: "moonbase:redeem-voucher"
18786
- }, Z5 = {
18797
+ }, W5 = {
18787
18798
  key: 0,
18788
18799
  class: "moonbase:redeem-voucher-content"
18789
- }, W5 = {
18800
+ }, G5 = {
18790
18801
  key: 1,
18791
18802
  class: "moonbase:redeem-voucher-return"
18792
- }, G5 = /* @__PURE__ */ pe({
18803
+ }, K5 = /* @__PURE__ */ he({
18793
18804
  __name: "Redeem",
18794
18805
  setup(e) {
18795
18806
  const { redeem: t } = xh(), n = Ae(), r = et(), o = ye(io), s = j(null), i = j(null), a = j(n.getParameter("code") || "");
@@ -18802,35 +18813,35 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18802
18813
  throw i.value = u, u;
18803
18814
  }
18804
18815
  }
18805
- return (u, c) => (y(), I("div", H5, [
18816
+ return (u, c) => (y(), I("div", q5, [
18806
18817
  w(Qs, {
18807
18818
  mode: "out-in",
18808
18819
  name: "moonbase:slide-left"
18809
18820
  }, {
18810
- default: $(() => [
18811
- s.value ? (y(), I("div", z5, [
18821
+ default: P(() => [
18822
+ s.value ? (y(), I("div", Z5, [
18812
18823
  F("div", null, [
18813
18824
  w(Sa, null, {
18814
- default: $(() => [
18825
+ default: P(() => [
18815
18826
  U(K(s.value.name), 1)
18816
18827
  ]),
18817
18828
  _: 1
18818
18829
  }),
18819
18830
  s.value.description ? (y(), le(Je, { key: 0 }, {
18820
- default: $(() => [
18831
+ default: P(() => [
18821
18832
  U(' "' + K(s.value.description) + '" ', 1)
18822
18833
  ]),
18823
18834
  _: 1
18824
18835
  })) : be("", !0),
18825
18836
  w(tt, null, {
18826
- default: $(() => [
18837
+ default: P(() => [
18827
18838
  w(v(M1)),
18828
18839
  c[2] || (c[2] = U(" Licenses have been added to your account. "))
18829
18840
  ]),
18830
18841
  _: 1
18831
18842
  }),
18832
18843
  w(tt, null, {
18833
- default: $(() => [
18844
+ default: P(() => [
18834
18845
  c[3] || (c[3] = U(" Code: ")),
18835
18846
  F("strong", null, K(s.value.code), 1)
18836
18847
  ]),
@@ -18838,12 +18849,12 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18838
18849
  })
18839
18850
  ]),
18840
18851
  w(Je, null, {
18841
- default: $(() => c[4] || (c[4] = [
18852
+ default: P(() => c[4] || (c[4] = [
18842
18853
  U(" Voucher summary ")
18843
18854
  ])),
18844
18855
  _: 1
18845
18856
  }),
18846
- s.value.redeemsProducts.length > 0 || s.value.redeemsBundles.length > 0 ? (y(), I("div", Z5, [
18857
+ s.value.redeemsProducts.length > 0 || s.value.redeemsBundles.length > 0 ? (y(), I("div", W5, [
18847
18858
  (y(!0), I(Re, null, hn(s.value.redeemsProducts, ({ value: d, quantity: f }) => (y(), le(Rp, {
18848
18859
  key: d.id,
18849
18860
  product: d,
@@ -18861,7 +18872,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18861
18872
  }) || s.value.redeemsBundles.some((d) => d.value.products.some((f) => {
18862
18873
  var h, m;
18863
18874
  return f.id === ((m = (h = v(n).next) == null ? void 0 : h[2]) == null ? void 0 : m.product_id);
18864
- }))) ? (y(), I("div", W5, [
18875
+ }))) ? (y(), I("div", G5, [
18865
18876
  w(ht, {
18866
18877
  label: "Return to activation",
18867
18878
  variant: "primary",
@@ -18873,11 +18884,11 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18873
18884
  key: 0,
18874
18885
  handler: l
18875
18886
  }, {
18876
- default: $(() => {
18887
+ default: P(() => {
18877
18888
  var d;
18878
18889
  return [
18879
18890
  w(Xe, null, {
18880
- default: $(() => c[1] || (c[1] = [
18891
+ default: P(() => c[1] || (c[1] = [
18881
18892
  U(" Do you have a voucher you want to redeem? "),
18882
18893
  F("br", null, null, -1),
18883
18894
  U(" Please enter the code below: ")
@@ -18899,7 +18910,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18899
18910
  F("span", {
18900
18911
  class: "moonbase:error",
18901
18912
  "data-visible": !!i.value || void 0
18902
- }, K((d = i.value) == null ? void 0 : d.message), 9, q5)
18913
+ }, K((d = i.value) == null ? void 0 : d.message), 9, z5)
18903
18914
  ];
18904
18915
  }),
18905
18916
  _: 1
@@ -18909,7 +18920,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18909
18920
  })
18910
18921
  ]));
18911
18922
  }
18912
- }), K5 = { class: "moonbase:customer" }, Y5 = /* @__PURE__ */ pe({
18923
+ }), Y5 = { class: "moonbase:customer" }, J5 = /* @__PURE__ */ he({
18913
18924
  __name: "Customer",
18914
18925
  setup(e) {
18915
18926
  const t = Ae(), n = ye(Vt);
@@ -18931,33 +18942,33 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18931
18942
  function s(i) {
18932
18943
  o.value = i;
18933
18944
  }
18934
- return (i, a) => (y(), I("div", K5, [
18945
+ return (i, a) => (y(), I("div", Y5, [
18935
18946
  w(v(E1), {
18936
18947
  "selected-index": o.value,
18937
18948
  onChange: s
18938
18949
  }, {
18939
- default: $(() => {
18950
+ default: P(() => {
18940
18951
  var l, u;
18941
18952
  return [
18942
18953
  w(v(x1), {
18943
18954
  "data-corners": (l = v(n)) == null ? void 0 : l.theme.corners,
18944
18955
  "data-background": (u = v(n)) == null ? void 0 : u.theme.colors.background
18945
18956
  }, {
18946
- default: $(() => [
18957
+ default: P(() => [
18947
18958
  w(v(Ga), null, {
18948
- default: $(() => a[0] || (a[0] = [
18959
+ default: P(() => a[0] || (a[0] = [
18949
18960
  U(" Products ")
18950
18961
  ])),
18951
18962
  _: 1
18952
18963
  }),
18953
18964
  w(v(Ga), null, {
18954
- default: $(() => a[1] || (a[1] = [
18965
+ default: P(() => a[1] || (a[1] = [
18955
18966
  U(" Account ")
18956
18967
  ])),
18957
18968
  _: 1
18958
18969
  }),
18959
18970
  w(v(Ga), null, {
18960
- default: $(() => a[2] || (a[2] = [
18971
+ default: P(() => a[2] || (a[2] = [
18961
18972
  U(" Redeem ")
18962
18973
  ])),
18963
18974
  _: 1
@@ -18966,22 +18977,22 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18966
18977
  _: 1
18967
18978
  }, 8, ["data-corners", "data-background"]),
18968
18979
  w(v(k1), null, {
18969
- default: $(() => [
18980
+ default: P(() => [
18970
18981
  w(v(Ka), null, {
18971
- default: $(() => [
18972
- w(R5)
18982
+ default: P(() => [
18983
+ w(j5)
18973
18984
  ]),
18974
18985
  _: 1
18975
18986
  }),
18976
18987
  w(v(Ka), null, {
18977
- default: $(() => [
18978
- w(A5)
18988
+ default: P(() => [
18989
+ w(D5)
18979
18990
  ]),
18980
18991
  _: 1
18981
18992
  }),
18982
18993
  w(v(Ka), null, {
18983
- default: $(() => [
18984
- w(G5)
18994
+ default: P(() => [
18995
+ w(K5)
18985
18996
  ]),
18986
18997
  _: 1
18987
18998
  })
@@ -18994,7 +19005,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
18994
19005
  }, 8, ["selected-index"])
18995
19006
  ]));
18996
19007
  }
18997
- }), J5 = { class: "moonbase:product-card-content" }, X5 = ["data-open"], Q5 = /* @__PURE__ */ pe({
19008
+ }), X5 = { class: "moonbase:product-card-content" }, Q5 = ["data-open"], ex = /* @__PURE__ */ he({
18998
19009
  __name: "ProductCard",
18999
19010
  props: {
19000
19011
  product: {}
@@ -19002,7 +19013,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
19002
19013
  setup(e) {
19003
19014
  const t = j(!1), n = j(null), r = se(() => n.value && n.value.$el && n.value.$el.scrollHeight > n.value.$el.clientHeight);
19004
19015
  return (o, s) => (y(), le(Wn, { class: "moonbase:product-card" }, {
19005
- addon: $(() => [
19016
+ addon: P(() => [
19006
19017
  F("div", {
19007
19018
  class: "moonbase:product-card-description",
19008
19019
  "data-open": t.value || void 0
@@ -19011,7 +19022,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
19011
19022
  ref_key: "descriptionRef",
19012
19023
  ref: n
19013
19024
  }, {
19014
- default: $(() => [
19025
+ default: P(() => [
19015
19026
  U(K(o.product.description), 1)
19016
19027
  ]),
19017
19028
  _: 1
@@ -19021,22 +19032,22 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
19021
19032
  onClick: s[0] || (s[0] = (i) => t.value = !0)
19022
19033
  }, [
19023
19034
  w(Jt, null, {
19024
- default: $(() => s[1] || (s[1] = [
19035
+ default: P(() => s[1] || (s[1] = [
19025
19036
  U(" read more ")
19026
19037
  ])),
19027
19038
  _: 1
19028
19039
  })
19029
19040
  ])) : be("", !0)
19030
- ], 8, X5)
19041
+ ], 8, Q5)
19031
19042
  ]),
19032
- default: $(() => [
19043
+ default: P(() => [
19033
19044
  w(Gn, {
19034
19045
  url: o.product.iconUrl,
19035
19046
  size: 72
19036
19047
  }, null, 8, ["url"]),
19037
- F("div", J5, [
19048
+ F("div", X5, [
19038
19049
  w(Sa, null, {
19039
- default: $(() => {
19050
+ default: P(() => {
19040
19051
  var i;
19041
19052
  return [
19042
19053
  U(K((i = o.product) == null ? void 0 : i.name), 1)
@@ -19045,7 +19056,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
19045
19056
  _: 1
19046
19057
  }),
19047
19058
  w(tt, { class: "moonbase:product-card-tagline" }, {
19048
- default: $(() => {
19059
+ default: P(() => {
19049
19060
  var i;
19050
19061
  return [
19051
19062
  U(K((i = o.product) == null ? void 0 : i.tagline), 1)
@@ -19059,7 +19070,7 @@ const Jt = /* @__PURE__ */ nr(s5, [["render", a5]]), l5 = ["data-corners", "data
19059
19070
  }));
19060
19071
  }
19061
19072
  });
19062
- function ex(e) {
19073
+ function tx(e) {
19063
19074
  const t = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
19064
19075
  if (e < 1)
19065
19076
  return `${e} B`;
@@ -19068,19 +19079,19 @@ function ex(e) {
19068
19079
  const r = t[n];
19069
19080
  return e >= 10 || e % 1 === 0 ? `${e.toFixed(0)} ${r}` : `${e.toFixed(1)} ${r}`;
19070
19081
  }
19071
- const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19082
+ const nx = { class: "moonbase:product-downloads" }, rx = ["data-open"], ox = {
19072
19083
  key: 1,
19073
19084
  class: "moonbase:product-downloads-content"
19074
- }, ox = {
19085
+ }, sx = {
19075
19086
  key: 2,
19076
19087
  class: "moonbase:product-downloads-content"
19077
- }, sx = {
19088
+ }, ix = {
19078
19089
  key: 3,
19079
19090
  class: "moonbase:product-downloads-content"
19080
- }, ix = {
19091
+ }, ax = {
19081
19092
  key: 4,
19082
19093
  class: "moonbase:product-downloads-content"
19083
- }, ax = { class: "moonbase:product-downloads-list" }, lx = { class: "moonbase:product-downloads-download-actions" }, ux = /* @__PURE__ */ pe({
19094
+ }, lx = { class: "moonbase:product-downloads-list" }, ux = { class: "moonbase:product-downloads-download-actions" }, cx = /* @__PURE__ */ he({
19084
19095
  __name: "ProductDownloads",
19085
19096
  props: {
19086
19097
  product: {}
@@ -19097,14 +19108,14 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19097
19108
  wn.Universal
19098
19109
  ];
19099
19110
  function d() {
19100
- var P;
19101
- const k = (((P = navigator.userAgentData) == null ? void 0 : P.platform) ?? navigator.platform ?? "Unknown").toLowerCase();
19111
+ var $;
19112
+ const k = ((($ = navigator.userAgentData) == null ? void 0 : $.platform) ?? navigator.platform ?? "Unknown").toLowerCase();
19102
19113
  return /mac/.test(k) ? wn.Mac : /win/.test(k) ? wn.Windows : /linux/.test(k) ? wn.Linux : wn.Universal;
19103
19114
  }
19104
19115
  const f = d(), h = [
19105
19116
  f,
19106
19117
  ...c.filter((k) => k !== f)
19107
- ], m = se(() => h.flatMap((k) => [...(t.product.downloads ?? []).filter((P) => P.platform === k)]));
19118
+ ], m = se(() => h.flatMap((k) => [...(t.product.downloads ?? []).filter(($) => $.platform === k)]));
19108
19119
  async function _(k) {
19109
19120
  await s(k), o == null || o(Rt.DownloadedProduct, {
19110
19121
  product: t.product,
@@ -19112,14 +19123,14 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19112
19123
  user: r.user.value
19113
19124
  });
19114
19125
  }
19115
- return (k, P) => {
19126
+ return (k, $) => {
19116
19127
  var z, H;
19117
- return y(), I("div", tx, [
19128
+ return y(), I("div", nx, [
19118
19129
  w(Je, null, {
19119
- default: $(() => [
19120
- P[1] || (P[1] = U(" Downloads ")),
19130
+ default: P(() => [
19131
+ $[1] || ($[1] = U(" Downloads ")),
19121
19132
  w(tt, null, {
19122
- default: $(() => [
19133
+ default: P(() => [
19123
19134
  U(" Version " + K(k.product.version), 1)
19124
19135
  ]),
19125
19136
  _: 1
@@ -19136,26 +19147,26 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19136
19147
  ref_key: "descriptionRef",
19137
19148
  ref: a
19138
19149
  }, {
19139
- default: $(() => [
19150
+ default: P(() => [
19140
19151
  U(K(k.product.releaseDescription), 1)
19141
19152
  ]),
19142
19153
  _: 1
19143
19154
  }, 512),
19144
19155
  !i.value && l.value ? (y(), I("button", {
19145
19156
  key: 0,
19146
- onClick: P[0] || (P[0] = (L) => i.value = !0)
19157
+ onClick: $[0] || ($[0] = (L) => i.value = !0)
19147
19158
  }, [
19148
19159
  w(Jt, null, {
19149
- default: $(() => P[2] || (P[2] = [
19160
+ default: P(() => $[2] || ($[2] = [
19150
19161
  U(" read more ")
19151
19162
  ])),
19152
19163
  _: 1
19153
19164
  })
19154
19165
  ])) : be("", !0)
19155
- ], 8, nx)) : be("", !0),
19156
- k.product.downloadsNeedsUser && k.product.downloadsNeedsOwnership && !v(r).user ? (y(), I("div", rx, [
19166
+ ], 8, rx)) : be("", !0),
19167
+ k.product.downloadsNeedsUser && k.product.downloadsNeedsOwnership && !v(r).user ? (y(), I("div", ox, [
19157
19168
  w(Xe, { "data-center": "" }, {
19158
- default: $(() => P[3] || (P[3] = [
19169
+ default: P(() => $[3] || ($[3] = [
19159
19170
  U(" This product requires ownership to download ")
19160
19171
  ])),
19161
19172
  _: 1
@@ -19164,9 +19175,9 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19164
19175
  label: "Sign in",
19165
19176
  handler: () => u
19166
19177
  }, null, 8, ["handler"])
19167
- ])) : k.product.downloadsNeedsUser && !v(r).user ? (y(), I("div", ox, [
19178
+ ])) : k.product.downloadsNeedsUser && !v(r).user ? (y(), I("div", sx, [
19168
19179
  w(Xe, { "data-center": "" }, {
19169
- default: $(() => P[4] || (P[4] = [
19180
+ default: P(() => $[4] || ($[4] = [
19170
19181
  U(" This product requires an account to download ")
19171
19182
  ])),
19172
19183
  _: 1
@@ -19175,21 +19186,21 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19175
19186
  label: "Sign in",
19176
19187
  handler: () => u
19177
19188
  }, null, 8, ["handler"])
19178
- ])) : k.product.downloadsNeedsOwnership && !((H = (z = v(r).user.value) == null ? void 0 : z.ownedProducts) != null && H.includes(k.product.id)) ? (y(), I("div", sx, [
19189
+ ])) : k.product.downloadsNeedsOwnership && !((H = (z = v(r).user.value) == null ? void 0 : z.ownedProducts) != null && H.includes(k.product.id)) ? (y(), I("div", ix, [
19179
19190
  w(Xe, { "data-center": "" }, {
19180
- default: $(() => P[5] || (P[5] = [
19191
+ default: P(() => $[5] || ($[5] = [
19181
19192
  U(" This product requires ownership to download ")
19182
19193
  ])),
19183
19194
  _: 1
19184
19195
  })
19185
- ])) : (y(), I("div", ix, [
19186
- F("div", ax, [
19196
+ ])) : (y(), I("div", ax, [
19197
+ F("div", lx, [
19187
19198
  (y(!0), I(Re, null, hn(m.value, (L) => (y(), le(Wn, {
19188
19199
  key: L.key,
19189
19200
  class: "moonbase:product-downloads-download"
19190
19201
  }, {
19191
- addon: $(() => [
19192
- F("div", lx, [
19202
+ addon: P(() => [
19203
+ F("div", ux, [
19193
19204
  w(ht, {
19194
19205
  label: `Download for ${L.platform}`,
19195
19206
  variant: L.platform === v(f) ? "primary" : "secondary",
@@ -19199,17 +19210,17 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19199
19210
  }, null, 8, ["label", "variant", "handler", "icon"])
19200
19211
  ])
19201
19212
  ]),
19202
- default: $(() => [
19213
+ default: P(() => [
19203
19214
  F("div", null, [
19204
19215
  w(Je, null, {
19205
- default: $(() => [
19216
+ default: P(() => [
19206
19217
  U(K(L.platform), 1)
19207
19218
  ]),
19208
19219
  _: 2
19209
19220
  }, 1024),
19210
19221
  w(xo, null, {
19211
- default: $(() => [
19212
- U(K(L.name) + " - " + K(v(ex)(L.size)), 1)
19222
+ default: P(() => [
19223
+ U(K(L.name) + " - " + K(v(tx)(L.size)), 1)
19213
19224
  ]),
19214
19225
  _: 2
19215
19226
  }, 1024)
@@ -19222,7 +19233,7 @@ const tx = { class: "moonbase:product-downloads" }, nx = ["data-open"], rx = {
19222
19233
  key: 0,
19223
19234
  "data-center": ""
19224
19235
  }, {
19225
- default: $(() => P[6] || (P[6] = [
19236
+ default: P(() => $[6] || ($[6] = [
19226
19237
  U(" No downloadable files found ")
19227
19238
  ])),
19228
19239
  _: 1
@@ -19238,9 +19249,9 @@ function Mu(e, t) {
19238
19249
  function Or(e, t) {
19239
19250
  return Mu(e, e);
19240
19251
  }
19241
- let cx = {};
19242
- function dx() {
19243
- return cx;
19252
+ let dx = {};
19253
+ function fx() {
19254
+ return dx;
19244
19255
  }
19245
19256
  function gd(e) {
19246
19257
  const t = Or(e), n = new Date(
@@ -19267,10 +19278,10 @@ function Vi(e, t) {
19267
19278
  const n = +Or(e) - +Or(t);
19268
19279
  return n < 0 ? -1 : n > 0 ? 1 : n;
19269
19280
  }
19270
- function fx(e) {
19281
+ function hx(e) {
19271
19282
  return Mu(e, Date.now());
19272
19283
  }
19273
- function hx(e, t, n) {
19284
+ function px(e, t, n) {
19274
19285
  const [r, o] = Ru(
19275
19286
  n == null ? void 0 : n.in,
19276
19287
  e,
@@ -19278,48 +19289,48 @@ function hx(e, t, n) {
19278
19289
  ), s = r.getFullYear() - o.getFullYear(), i = r.getMonth() - o.getMonth();
19279
19290
  return s * 12 + i;
19280
19291
  }
19281
- function px(e) {
19292
+ function mx(e) {
19282
19293
  return (t) => {
19283
19294
  const r = (e ? Math[e] : Math.trunc)(t);
19284
19295
  return r === 0 ? 0 : r;
19285
19296
  };
19286
19297
  }
19287
- function mx(e, t) {
19298
+ function bx(e, t) {
19288
19299
  return +Or(e) - +Or(t);
19289
19300
  }
19290
- function bx(e, t) {
19301
+ function gx(e, t) {
19291
19302
  const n = Or(e);
19292
19303
  return n.setHours(23, 59, 59, 999), n;
19293
19304
  }
19294
- function gx(e, t) {
19305
+ function vx(e, t) {
19295
19306
  const n = Or(e), r = n.getMonth();
19296
19307
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
19297
19308
  }
19298
- function vx(e, t) {
19309
+ function yx(e, t) {
19299
19310
  const n = Or(e);
19300
- return +bx(n) == +gx(n);
19311
+ return +gx(n) == +vx(n);
19301
19312
  }
19302
- function yx(e, t, n) {
19313
+ function _x(e, t, n) {
19303
19314
  const [r, o, s] = Ru(
19304
19315
  n == null ? void 0 : n.in,
19305
19316
  e,
19306
19317
  e,
19307
19318
  t
19308
19319
  ), i = Vi(o, s), a = Math.abs(
19309
- hx(o, s)
19320
+ px(o, s)
19310
19321
  );
19311
19322
  if (a < 1) return 0;
19312
19323
  o.getMonth() === 1 && o.getDate() > 27 && o.setDate(30), o.setMonth(o.getMonth() - i * a);
19313
19324
  let l = Vi(o, s) === -i;
19314
- vx(r) && a === 1 && Vi(r, s) === 1 && (l = !1);
19325
+ yx(r) && a === 1 && Vi(r, s) === 1 && (l = !1);
19315
19326
  const u = i * (a - +l);
19316
19327
  return u === 0 ? 0 : u;
19317
19328
  }
19318
- function _x(e, t, n) {
19319
- const r = mx(e, t) / 1e3;
19320
- return px(n == null ? void 0 : n.roundingMethod)(r);
19329
+ function wx(e, t, n) {
19330
+ const r = bx(e, t) / 1e3;
19331
+ return mx(n == null ? void 0 : n.roundingMethod)(r);
19321
19332
  }
19322
- const wx = {
19333
+ const Ex = {
19323
19334
  lessThanXSeconds: {
19324
19335
  one: "less than a second",
19325
19336
  other: "less than {{count}} seconds"
@@ -19381,9 +19392,9 @@ const wx = {
19381
19392
  one: "almost 1 year",
19382
19393
  other: "almost {{count}} years"
19383
19394
  }
19384
- }, Ex = (e, t, n) => {
19395
+ }, xx = (e, t, n) => {
19385
19396
  let r;
19386
- const o = wx[e];
19397
+ const o = Ex[e];
19387
19398
  return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
19388
19399
  };
19389
19400
  function al(e) {
@@ -19392,42 +19403,42 @@ function al(e) {
19392
19403
  return e.formats[n] || e.formats[e.defaultWidth];
19393
19404
  };
19394
19405
  }
19395
- const xx = {
19406
+ const kx = {
19396
19407
  full: "EEEE, MMMM do, y",
19397
19408
  long: "MMMM do, y",
19398
19409
  medium: "MMM d, y",
19399
19410
  short: "MM/dd/yyyy"
19400
- }, kx = {
19411
+ }, Ox = {
19401
19412
  full: "h:mm:ss a zzzz",
19402
19413
  long: "h:mm:ss a z",
19403
19414
  medium: "h:mm:ss a",
19404
19415
  short: "h:mm a"
19405
- }, Ox = {
19416
+ }, Nx = {
19406
19417
  full: "{{date}} 'at' {{time}}",
19407
19418
  long: "{{date}} 'at' {{time}}",
19408
19419
  medium: "{{date}}, {{time}}",
19409
19420
  short: "{{date}}, {{time}}"
19410
- }, Nx = {
19421
+ }, Cx = {
19411
19422
  date: al({
19412
- formats: xx,
19423
+ formats: kx,
19413
19424
  defaultWidth: "full"
19414
19425
  }),
19415
19426
  time: al({
19416
- formats: kx,
19427
+ formats: Ox,
19417
19428
  defaultWidth: "full"
19418
19429
  }),
19419
19430
  dateTime: al({
19420
- formats: Ox,
19431
+ formats: Nx,
19421
19432
  defaultWidth: "full"
19422
19433
  })
19423
- }, Cx = {
19434
+ }, Sx = {
19424
19435
  lastWeek: "'last' eeee 'at' p",
19425
19436
  yesterday: "'yesterday at' p",
19426
19437
  today: "'today at' p",
19427
19438
  tomorrow: "'tomorrow at' p",
19428
19439
  nextWeek: "eeee 'at' p",
19429
19440
  other: "P"
19430
- }, Sx = (e, t, n, r) => Cx[e];
19441
+ }, Tx = (e, t, n, r) => Sx[e];
19431
19442
  function Qo(e) {
19432
19443
  return (t, n) => {
19433
19444
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -19443,15 +19454,15 @@ function Qo(e) {
19443
19454
  return o[s];
19444
19455
  };
19445
19456
  }
19446
- const Tx = {
19457
+ const Px = {
19447
19458
  narrow: ["B", "A"],
19448
19459
  abbreviated: ["BC", "AD"],
19449
19460
  wide: ["Before Christ", "Anno Domini"]
19450
- }, Px = {
19461
+ }, $x = {
19451
19462
  narrow: ["1", "2", "3", "4"],
19452
19463
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
19453
19464
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
19454
- }, $x = {
19465
+ }, Ax = {
19455
19466
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
19456
19467
  abbreviated: [
19457
19468
  "Jan",
@@ -19481,7 +19492,7 @@ const Tx = {
19481
19492
  "November",
19482
19493
  "December"
19483
19494
  ]
19484
- }, Ax = {
19495
+ }, Dx = {
19485
19496
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
19486
19497
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
19487
19498
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -19494,7 +19505,7 @@ const Tx = {
19494
19505
  "Friday",
19495
19506
  "Saturday"
19496
19507
  ]
19497
- }, Dx = {
19508
+ }, Ix = {
19498
19509
  narrow: {
19499
19510
  am: "a",
19500
19511
  pm: "p",
@@ -19525,7 +19536,7 @@ const Tx = {
19525
19536
  evening: "evening",
19526
19537
  night: "night"
19527
19538
  }
19528
- }, Ix = {
19539
+ }, Vx = {
19529
19540
  narrow: {
19530
19541
  am: "a",
19531
19542
  pm: "p",
@@ -19556,7 +19567,7 @@ const Tx = {
19556
19567
  evening: "in the evening",
19557
19568
  night: "at night"
19558
19569
  }
19559
- }, Vx = (e, t) => {
19570
+ }, Mx = (e, t) => {
19560
19571
  const n = Number(e), r = n % 100;
19561
19572
  if (r > 20 || r < 10)
19562
19573
  switch (r % 10) {
@@ -19568,29 +19579,29 @@ const Tx = {
19568
19579
  return n + "rd";
19569
19580
  }
19570
19581
  return n + "th";
19571
- }, Mx = {
19572
- ordinalNumber: Vx,
19582
+ }, Rx = {
19583
+ ordinalNumber: Mx,
19573
19584
  era: Qo({
19574
- values: Tx,
19585
+ values: Px,
19575
19586
  defaultWidth: "wide"
19576
19587
  }),
19577
19588
  quarter: Qo({
19578
- values: Px,
19589
+ values: $x,
19579
19590
  defaultWidth: "wide",
19580
19591
  argumentCallback: (e) => e - 1
19581
19592
  }),
19582
19593
  month: Qo({
19583
- values: $x,
19594
+ values: Ax,
19584
19595
  defaultWidth: "wide"
19585
19596
  }),
19586
19597
  day: Qo({
19587
- values: Ax,
19598
+ values: Dx,
19588
19599
  defaultWidth: "wide"
19589
19600
  }),
19590
19601
  dayPeriod: Qo({
19591
- values: Dx,
19602
+ values: Ix,
19592
19603
  defaultWidth: "wide",
19593
- formattingValues: Ix,
19604
+ formattingValues: Vx,
19594
19605
  defaultFormattingWidth: "wide"
19595
19606
  })
19596
19607
  };
@@ -19599,9 +19610,9 @@ function es(e) {
19599
19610
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
19600
19611
  if (!s)
19601
19612
  return null;
19602
- const i = s[0], a = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? jx(a, (d) => d.test(i)) : (
19613
+ const i = s[0], a = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(a) ? Lx(a, (d) => d.test(i)) : (
19603
19614
  // [TODO] -- I challenge you to fix the type
19604
- Rx(a, (d) => d.test(i))
19615
+ jx(a, (d) => d.test(i))
19605
19616
  );
19606
19617
  let u;
19607
19618
  u = e.valueCallback ? e.valueCallback(l) : l, u = n.valueCallback ? (
@@ -19612,17 +19623,17 @@ function es(e) {
19612
19623
  return { value: u, rest: c };
19613
19624
  };
19614
19625
  }
19615
- function Rx(e, t) {
19626
+ function jx(e, t) {
19616
19627
  for (const n in e)
19617
19628
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
19618
19629
  return n;
19619
19630
  }
19620
- function jx(e, t) {
19631
+ function Lx(e, t) {
19621
19632
  for (let n = 0; n < e.length; n++)
19622
19633
  if (t(e[n]))
19623
19634
  return n;
19624
19635
  }
19625
- function Lx(e) {
19636
+ function Ux(e) {
19626
19637
  return (t, n = {}) => {
19627
19638
  const r = t.match(e.matchPattern);
19628
19639
  if (!r) return null;
@@ -19634,23 +19645,23 @@ function Lx(e) {
19634
19645
  return { value: i, rest: a };
19635
19646
  };
19636
19647
  }
19637
- const Ux = /^(\d+)(th|st|nd|rd)?/i, Fx = /\d+/i, Bx = {
19648
+ const Fx = /^(\d+)(th|st|nd|rd)?/i, Bx = /\d+/i, Hx = {
19638
19649
  narrow: /^(b|a)/i,
19639
19650
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
19640
19651
  wide: /^(before christ|before common era|anno domini|common era)/i
19641
- }, Hx = {
19642
- any: [/^b/i, /^(a|c)/i]
19643
19652
  }, qx = {
19653
+ any: [/^b/i, /^(a|c)/i]
19654
+ }, zx = {
19644
19655
  narrow: /^[1234]/i,
19645
19656
  abbreviated: /^q[1234]/i,
19646
19657
  wide: /^[1234](th|st|nd|rd)? quarter/i
19647
- }, zx = {
19648
- any: [/1/i, /2/i, /3/i, /4/i]
19649
19658
  }, Zx = {
19659
+ any: [/1/i, /2/i, /3/i, /4/i]
19660
+ }, Wx = {
19650
19661
  narrow: /^[jfmasond]/i,
19651
19662
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
19652
19663
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
19653
- }, Wx = {
19664
+ }, Gx = {
19654
19665
  narrow: [
19655
19666
  /^j/i,
19656
19667
  /^f/i,
@@ -19679,18 +19690,18 @@ const Ux = /^(\d+)(th|st|nd|rd)?/i, Fx = /\d+/i, Bx = {
19679
19690
  /^n/i,
19680
19691
  /^d/i
19681
19692
  ]
19682
- }, Gx = {
19693
+ }, Kx = {
19683
19694
  narrow: /^[smtwf]/i,
19684
19695
  short: /^(su|mo|tu|we|th|fr|sa)/i,
19685
19696
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
19686
19697
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
19687
- }, Kx = {
19698
+ }, Yx = {
19688
19699
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
19689
19700
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
19690
- }, Yx = {
19701
+ }, Jx = {
19691
19702
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
19692
19703
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
19693
- }, Jx = {
19704
+ }, Xx = {
19694
19705
  any: {
19695
19706
  am: /^a/i,
19696
19707
  pm: /^p/i,
@@ -19701,57 +19712,57 @@ const Ux = /^(\d+)(th|st|nd|rd)?/i, Fx = /\d+/i, Bx = {
19701
19712
  evening: /evening/i,
19702
19713
  night: /night/i
19703
19714
  }
19704
- }, Xx = {
19705
- ordinalNumber: Lx({
19706
- matchPattern: Ux,
19707
- parsePattern: Fx,
19715
+ }, Qx = {
19716
+ ordinalNumber: Ux({
19717
+ matchPattern: Fx,
19718
+ parsePattern: Bx,
19708
19719
  valueCallback: (e) => parseInt(e, 10)
19709
19720
  }),
19710
19721
  era: es({
19711
- matchPatterns: Bx,
19722
+ matchPatterns: Hx,
19712
19723
  defaultMatchWidth: "wide",
19713
- parsePatterns: Hx,
19724
+ parsePatterns: qx,
19714
19725
  defaultParseWidth: "any"
19715
19726
  }),
19716
19727
  quarter: es({
19717
- matchPatterns: qx,
19728
+ matchPatterns: zx,
19718
19729
  defaultMatchWidth: "wide",
19719
- parsePatterns: zx,
19730
+ parsePatterns: Zx,
19720
19731
  defaultParseWidth: "any",
19721
19732
  valueCallback: (e) => e + 1
19722
19733
  }),
19723
19734
  month: es({
19724
- matchPatterns: Zx,
19735
+ matchPatterns: Wx,
19725
19736
  defaultMatchWidth: "wide",
19726
- parsePatterns: Wx,
19737
+ parsePatterns: Gx,
19727
19738
  defaultParseWidth: "any"
19728
19739
  }),
19729
19740
  day: es({
19730
- matchPatterns: Gx,
19741
+ matchPatterns: Kx,
19731
19742
  defaultMatchWidth: "wide",
19732
- parsePatterns: Kx,
19743
+ parsePatterns: Yx,
19733
19744
  defaultParseWidth: "any"
19734
19745
  }),
19735
19746
  dayPeriod: es({
19736
- matchPatterns: Yx,
19747
+ matchPatterns: Jx,
19737
19748
  defaultMatchWidth: "any",
19738
- parsePatterns: Jx,
19749
+ parsePatterns: Xx,
19739
19750
  defaultParseWidth: "any"
19740
19751
  })
19741
- }, Qx = {
19752
+ }, ek = {
19742
19753
  code: "en-US",
19743
- formatDistance: Ex,
19744
- formatLong: Nx,
19745
- formatRelative: Sx,
19746
- localize: Mx,
19747
- match: Xx,
19754
+ formatDistance: xx,
19755
+ formatLong: Cx,
19756
+ formatRelative: Tx,
19757
+ localize: Rx,
19758
+ match: Qx,
19748
19759
  options: {
19749
19760
  weekStartsOn: 0,
19750
19761
  firstWeekContainsDate: 1
19751
19762
  }
19752
19763
  };
19753
- function ek(e, t, n) {
19754
- const r = dx(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? Qx, s = 2520, i = Vi(e, t);
19764
+ function tk(e, t, n) {
19765
+ const r = fx(), o = (n == null ? void 0 : n.locale) ?? r.locale ?? ek, s = 2520, i = Vi(e, t);
19755
19766
  if (isNaN(i)) throw new RangeError("Invalid time value");
19756
19767
  const a = Object.assign({}, n, {
19757
19768
  addSuffix: n == null ? void 0 : n.addSuffix,
@@ -19759,7 +19770,7 @@ function ek(e, t, n) {
19759
19770
  }), [l, u] = Ru(
19760
19771
  n == null ? void 0 : n.in,
19761
19772
  ...i > 0 ? [t, e] : [e, t]
19762
- ), c = _x(u, l), d = (gd(u) - gd(l)) / 1e3, f = Math.round((c - d) / 60);
19773
+ ), c = wx(u, l), d = (gd(u) - gd(l)) / 1e3, f = Math.round((c - d) / 60);
19763
19774
  let h;
19764
19775
  if (f < 2)
19765
19776
  return n != null && n.includeSeconds ? c < 5 ? o.formatDistance("lessThanXSeconds", 5, a) : c < 10 ? o.formatDistance("lessThanXSeconds", 10, a) : c < 20 ? o.formatDistance("lessThanXSeconds", 20, a) : c < 40 ? o.formatDistance("halfAMinute", 0, a) : c < 60 ? o.formatDistance("lessThanXMinutes", 1, a) : o.formatDistance("xMinutes", 1, a) : f === 0 ? o.formatDistance("lessThanXMinutes", 1, a) : o.formatDistance("xMinutes", f, a);
@@ -19779,7 +19790,7 @@ function ek(e, t, n) {
19779
19790
  } else if (f < wi * 2)
19780
19791
  return h = Math.round(f / wi), o.formatDistance("aboutXMonths", h, a);
19781
19792
  }
19782
- if (h = yx(u, l), h < 12) {
19793
+ if (h = _x(u, l), h < 12) {
19783
19794
  const m = Math.round(f / wi);
19784
19795
  return o.formatDistance("xMonths", m, a);
19785
19796
  } else {
@@ -19787,33 +19798,33 @@ function ek(e, t, n) {
19787
19798
  return m < 3 ? o.formatDistance("aboutXYears", _, a) : m < 9 ? o.formatDistance("overXYears", _, a) : o.formatDistance("almostXYears", _ + 1, a);
19788
19799
  }
19789
19800
  }
19790
- function tk(e, t) {
19791
- return ek(e, fx(e), t);
19801
+ function nk(e, t) {
19802
+ return tk(e, hx(e), t);
19792
19803
  }
19793
- function nk(e) {
19794
- return tk(e, {
19804
+ function rk(e) {
19805
+ return nk(e, {
19795
19806
  addSuffix: !0
19796
19807
  });
19797
19808
  }
19798
- const rk = { class: "moonbase:product-licenses" }, ok = {
19809
+ const ok = { class: "moonbase:product-licenses" }, sk = {
19799
19810
  key: 0,
19800
19811
  class: "moonbase:loader"
19801
- }, sk = {
19812
+ }, ik = {
19802
19813
  key: 1,
19803
19814
  class: "moonbase:empty"
19804
- }, ik = {
19815
+ }, ak = {
19805
19816
  key: 0,
19806
19817
  class: "moonbase:loader"
19807
- }, ak = {
19818
+ }, lk = {
19808
19819
  key: 1,
19809
19820
  class: "moonbase:product-licenses-activations"
19810
- }, lk = { key: 0 }, uk = { class: "moonbase:product-licenses-activation-actions" }, ck = {
19821
+ }, uk = { key: 0 }, ck = { class: "moonbase:product-licenses-activation-actions" }, dk = {
19811
19822
  key: 2,
19812
19823
  class: "moonbase:loader"
19813
- }, dk = {
19824
+ }, fk = {
19814
19825
  key: 3,
19815
19826
  class: "moonbase:product-licenses-licenses"
19816
- }, fk = /* @__PURE__ */ pe({
19827
+ }, hk = /* @__PURE__ */ he({
19817
19828
  __name: "ProductLicenses",
19818
19829
  props: {
19819
19830
  product: {}
@@ -19840,12 +19851,12 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19840
19851
  return (h = a.value) == null ? void 0 : h.splice((f = a.value) == null ? void 0 : f.indexOf(d), 1);
19841
19852
  });
19842
19853
  }
19843
- return (d, f) => (y(), I("div", rk, [
19854
+ return (d, f) => (y(), I("div", ok, [
19844
19855
  w(Je, null, {
19845
- default: $(() => [
19856
+ default: P(() => [
19846
19857
  f[0] || (f[0] = U(" Licenses ")),
19847
19858
  d.product.maxActivations && d.product.maxActivations > 0 ? (y(), le(tt, { key: 0 }, {
19848
- default: $(() => [
19859
+ default: P(() => [
19849
19860
  U(K(d.product.currentActivations ?? 0) + " of " + K(d.product.maxActivations) + " seats used ", 1)
19850
19861
  ]),
19851
19862
  _: 1
@@ -19853,11 +19864,11 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19853
19864
  ]),
19854
19865
  _: 1
19855
19866
  }),
19856
- u.value ? (y(), I("div", ok, [
19867
+ u.value ? (y(), I("div", sk, [
19857
19868
  w(bn)
19858
- ])) : !d.product.numberOfLicenses || d.product.numberOfLicenses === 0 ? (y(), I("div", sk, [
19869
+ ])) : !d.product.numberOfLicenses || d.product.numberOfLicenses === 0 ? (y(), I("div", ik, [
19859
19870
  w(Xe, null, {
19860
- default: $(() => f[1] || (f[1] = [
19871
+ default: P(() => f[1] || (f[1] = [
19861
19872
  U(" You don't own any licenses for this product yet ")
19862
19873
  ])),
19863
19874
  _: 1
@@ -19871,30 +19882,30 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19871
19882
  }, null, 8, ["href", "icon"])) : be("", !0)
19872
19883
  ])) : be("", !0),
19873
19884
  u.value ? be("", !0) : (y(), I(Re, { key: 2 }, [
19874
- d.product.maxActivations && d.product.maxActivations > 0 && !d.product.currentActivations ? (y(), I("div", ik, [
19885
+ d.product.maxActivations && d.product.maxActivations > 0 && !d.product.currentActivations ? (y(), I("div", ak, [
19875
19886
  w(v(td)),
19876
19887
  w(Je, null, {
19877
- default: $(() => f[2] || (f[2] = [
19888
+ default: P(() => f[2] || (f[2] = [
19878
19889
  U(" No activations yet ")
19879
19890
  ])),
19880
19891
  _: 1
19881
19892
  })
19882
19893
  ])) : be("", !0),
19883
- d.product.maxActivations && a.value ? (y(), I("div", ak, [
19894
+ d.product.maxActivations && a.value ? (y(), I("div", lk, [
19884
19895
  (y(!0), I(Re, null, hn(a.value ?? [], (h) => (y(), le(Wn, {
19885
19896
  key: h.id,
19886
19897
  class: "moonbase:product-licenses-activation"
19887
19898
  }, sc({
19888
- default: $(() => [
19899
+ default: P(() => [
19889
19900
  F("div", null, [
19890
19901
  w(xo, null, {
19891
- default: $(() => f[3] || (f[3] = [
19902
+ default: P(() => f[3] || (f[3] = [
19892
19903
  U(" Device ")
19893
19904
  ])),
19894
19905
  _: 1
19895
19906
  }),
19896
19907
  w(Je, null, {
19897
- default: $(() => [
19908
+ default: P(() => [
19898
19909
  U(K(h.name), 1)
19899
19910
  ]),
19900
19911
  _: 2
@@ -19902,28 +19913,28 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19902
19913
  ]),
19903
19914
  F("div", null, [
19904
19915
  w(xo, null, {
19905
- default: $(() => f[4] || (f[4] = [
19916
+ default: P(() => f[4] || (f[4] = [
19906
19917
  U(" Activation ")
19907
19918
  ])),
19908
19919
  _: 1
19909
19920
  }),
19910
19921
  w(Je, null, {
19911
- default: $(() => [
19922
+ default: P(() => [
19912
19923
  U(K(h.activationMethod), 1)
19913
19924
  ]),
19914
19925
  _: 2
19915
19926
  }, 1024)
19916
19927
  ]),
19917
- h.lastValidatedAt ? (y(), I("div", lk, [
19928
+ h.lastValidatedAt ? (y(), I("div", uk, [
19918
19929
  w(xo, null, {
19919
- default: $(() => f[5] || (f[5] = [
19930
+ default: P(() => f[5] || (f[5] = [
19920
19931
  U(" Last online ")
19921
19932
  ])),
19922
19933
  _: 1
19923
19934
  }),
19924
19935
  w(Je, null, {
19925
- default: $(() => [
19926
- U(K(v(nk)(h.lastValidatedAt)), 1)
19936
+ default: P(() => [
19937
+ U(K(v(rk)(h.lastValidatedAt)), 1)
19927
19938
  ]),
19928
19939
  _: 2
19929
19940
  }, 1024)
@@ -19933,8 +19944,8 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19933
19944
  }, [
19934
19945
  h.activationMethod === v(da).Online ? {
19935
19946
  name: "addon",
19936
- fn: $(() => [
19937
- F("div", uk, [
19947
+ fn: P(() => [
19948
+ F("div", ck, [
19938
19949
  w(ht, {
19939
19950
  label: "Revoke",
19940
19951
  variant: "secondary",
@@ -19947,29 +19958,29 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19947
19958
  } : void 0
19948
19959
  ]), 1024))), 128))
19949
19960
  ])) : be("", !0),
19950
- (!l.value || l.value.length === 0) && !d.product.maxActivations && d.product.numberOfLicenses ? (y(), I("div", ck, [
19961
+ (!l.value || l.value.length === 0) && !d.product.maxActivations && d.product.numberOfLicenses ? (y(), I("div", dk, [
19951
19962
  w(v(td)),
19952
19963
  w(Je, null, {
19953
- default: $(() => [
19964
+ default: P(() => [
19954
19965
  U(" You own " + K(d.product.numberOfLicenses) + " license" + K(d.product.numberOfLicenses !== 1 ? "s" : "") + " for this product ", 1)
19955
19966
  ]),
19956
19967
  _: 1
19957
19968
  })
19958
- ])) : d.product.externalLicenses && l.value ? (y(), I("div", dk, [
19969
+ ])) : d.product.externalLicenses && l.value ? (y(), I("div", fk, [
19959
19970
  (y(!0), I(Re, null, hn((l.value ?? []).filter((h) => h.externalFulfillment), (h) => (y(), le(Wn, {
19960
19971
  key: h.id,
19961
19972
  class: "moonbase:product-licenses-license"
19962
19973
  }, sc({
19963
- default: $(() => [
19974
+ default: P(() => [
19964
19975
  F("div", null, [
19965
19976
  w(xo, null, {
19966
- default: $(() => [
19977
+ default: P(() => [
19967
19978
  U(K(d.product.name) + " license ", 1)
19968
19979
  ]),
19969
19980
  _: 1
19970
19981
  }),
19971
19982
  w(Je, null, {
19972
- default: $(() => [
19983
+ default: P(() => [
19973
19984
  U(K(h.id), 1)
19974
19985
  ]),
19975
19986
  _: 2
@@ -19980,7 +19991,7 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19980
19991
  }, [
19981
19992
  h.externalFulfillment ? {
19982
19993
  name: "addon",
19983
- fn: $(() => [
19994
+ fn: P(() => [
19984
19995
  F("code", null, K(h.externalFulfillment), 1)
19985
19996
  ]),
19986
19997
  key: "0"
@@ -19990,16 +20001,16 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
19990
20001
  ], 64))
19991
20002
  ]));
19992
20003
  }
19993
- }), hk = { class: "moonbase:download-product" }, pk = {
20004
+ }), pk = { class: "moonbase:download-product" }, mk = {
19994
20005
  key: 0,
19995
20006
  class: "moonbase:loader"
19996
- }, mk = {
20007
+ }, bk = {
19997
20008
  key: 1,
19998
20009
  class: "moonbase:loader"
19999
- }, bk = {
20010
+ }, gk = {
20000
20011
  key: 2,
20001
20012
  class: "moonbase:loader"
20002
- }, gk = { key: 3 }, vk = /* @__PURE__ */ pe({
20013
+ }, vk = { key: 3 }, yk = /* @__PURE__ */ he({
20003
20014
  __name: "Product",
20004
20015
  setup(e) {
20005
20016
  const t = Ae(), n = et(), { loaded: r } = et(), { getProduct: o } = ti(), s = j(null), i = j(null), a = j(!0);
@@ -20015,30 +20026,30 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20015
20026
  i.value = c.message;
20016
20027
  }
20017
20028
  a.value = !1;
20018
- }), (l, u) => (y(), I("div", hk, [
20019
- a.value || !v(r) ? (y(), I("div", pk, [
20029
+ }), (l, u) => (y(), I("div", pk, [
20030
+ a.value || !v(r) ? (y(), I("div", mk, [
20020
20031
  w(bn)
20021
- ])) : i.value ? (y(), I("div", mk, K(i.value), 1)) : s.value ? (y(), I("div", gk, [
20022
- w(Q5, { product: s.value }, null, 8, ["product"]),
20023
- s.value.downloads ? (y(), le(ux, {
20032
+ ])) : i.value ? (y(), I("div", bk, K(i.value), 1)) : s.value ? (y(), I("div", vk, [
20033
+ w(ex, { product: s.value }, null, 8, ["product"]),
20034
+ s.value.downloads ? (y(), le(cx, {
20024
20035
  key: 0,
20025
20036
  product: s.value
20026
20037
  }, null, 8, ["product"])) : be("", !0),
20027
- v(n).user.value ? (y(), le(fk, {
20038
+ v(n).user.value ? (y(), le(hk, {
20028
20039
  key: 1,
20029
20040
  product: s.value,
20030
20041
  onRevoked: u[0] || (u[0] = (c) => s.value.currentActivations = (s.value.currentActivations ?? 1) - 1)
20031
20042
  }, null, 8, ["product"])) : be("", !0)
20032
- ])) : (y(), I("div", bk, " Could not find product "))
20043
+ ])) : (y(), I("div", gk, " Could not find product "))
20033
20044
  ]));
20034
20045
  }
20035
- }), yk = { class: "moonbase:peek" }, _k = ["data-visible"], wk = {
20046
+ }), _k = { class: "moonbase:peek" }, wk = ["data-visible"], Ek = {
20036
20047
  key: 1,
20037
20048
  class: "moonbase:peek-voucher"
20038
- }, Ek = {
20049
+ }, xk = {
20039
20050
  key: 0,
20040
20051
  class: "moonbase:peek-voucher-content"
20041
- }, xk = { class: "moonbase:peek-voucher-auth" }, kk = /* @__PURE__ */ pe({
20052
+ }, kk = { class: "moonbase:peek-voucher-auth" }, Ok = /* @__PURE__ */ he({
20042
20053
  __name: "Redeem",
20043
20054
  setup(e) {
20044
20055
  const { peek: t } = xh(), n = Ae(), r = j(null), o = j(null), s = j(n.getParameter("code") || "");
@@ -20062,28 +20073,28 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20062
20073
  code: s.value
20063
20074
  }), n.show(ue.Authentication, ne.SignUp);
20064
20075
  }
20065
- return (u, c) => (y(), I("div", yk, [
20076
+ return (u, c) => (y(), I("div", _k, [
20066
20077
  w(Qs, {
20067
20078
  mode: "out-in",
20068
20079
  name: "moonbase:slide-left"
20069
20080
  }, {
20070
- default: $(() => [
20071
- r.value ? (y(), I("div", wk, [
20081
+ default: P(() => [
20082
+ r.value ? (y(), I("div", Ek, [
20072
20083
  F("div", null, [
20073
20084
  w(Sa, null, {
20074
- default: $(() => [
20085
+ default: P(() => [
20075
20086
  U(K(r.value.name), 1)
20076
20087
  ]),
20077
20088
  _: 1
20078
20089
  }),
20079
20090
  r.value.description ? (y(), le(Je, { key: 0 }, {
20080
- default: $(() => [
20091
+ default: P(() => [
20081
20092
  U(' "' + K(r.value.description) + '" ', 1)
20082
20093
  ]),
20083
20094
  _: 1
20084
20095
  })) : be("", !0),
20085
20096
  w(tt, null, {
20086
- default: $(() => [
20097
+ default: P(() => [
20087
20098
  c[2] || (c[2] = U(" Code: ")),
20088
20099
  F("strong", null, K(r.value.code), 1)
20089
20100
  ]),
@@ -20091,12 +20102,12 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20091
20102
  })
20092
20103
  ]),
20093
20104
  w(Je, null, {
20094
- default: $(() => c[3] || (c[3] = [
20105
+ default: P(() => c[3] || (c[3] = [
20095
20106
  U(" Voucher summary ")
20096
20107
  ])),
20097
20108
  _: 1
20098
20109
  }),
20099
- r.value.redeemsProducts.length > 0 || r.value.redeemsBundles.length > 0 ? (y(), I("div", Ek, [
20110
+ r.value.redeemsProducts.length > 0 || r.value.redeemsBundles.length > 0 ? (y(), I("div", xk, [
20100
20111
  (y(!0), I(Re, null, hn(r.value.redeemsProducts, ({ value: d, quantity: f }) => (y(), le(Rp, {
20101
20112
  key: d.id,
20102
20113
  product: d,
@@ -20108,9 +20119,9 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20108
20119
  quantity: f
20109
20120
  }, null, 8, ["bundle", "quantity"]))), 128))
20110
20121
  ])) : be("", !0),
20111
- F("div", xk, [
20122
+ F("div", kk, [
20112
20123
  w(Xe, null, {
20113
- default: $(() => c[4] || (c[4] = [
20124
+ default: P(() => c[4] || (c[4] = [
20114
20125
  U(" Sign in or create an account to redeem products ")
20115
20126
  ])),
20116
20127
  _: 1
@@ -20130,11 +20141,11 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20130
20141
  key: 0,
20131
20142
  handler: i
20132
20143
  }, {
20133
- default: $(() => {
20144
+ default: P(() => {
20134
20145
  var d;
20135
20146
  return [
20136
20147
  w(Xe, null, {
20137
- default: $(() => c[1] || (c[1] = [
20148
+ default: P(() => c[1] || (c[1] = [
20138
20149
  U(" Do you have a voucher you want to redeem? "),
20139
20150
  F("br", null, null, -1),
20140
20151
  U(" Please enter the code below: ")
@@ -20156,7 +20167,7 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20156
20167
  F("span", {
20157
20168
  class: "moonbase:error",
20158
20169
  "data-visible": !!o.value || void 0
20159
- }, K((d = o.value) == null ? void 0 : d.message), 9, _k)
20170
+ }, K((d = o.value) == null ? void 0 : d.message), 9, wk)
20160
20171
  ];
20161
20172
  }),
20162
20173
  _: 1
@@ -20166,7 +20177,7 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20166
20177
  })
20167
20178
  ]));
20168
20179
  }
20169
- }), Ok = /* @__PURE__ */ pe({
20180
+ }), Nk = /* @__PURE__ */ he({
20170
20181
  __name: "App",
20171
20182
  setup(e) {
20172
20183
  const t = ye(Vt), n = Ae();
@@ -20197,8 +20208,8 @@ const rk = { class: "moonbase:product-licenses" }, ok = {
20197
20208
  return y(), I(Re, null, [
20198
20209
  (i = v(t)) != null && i.toolbar.enabled ? (y(), le(h_, { key: 0 })) : be("", !0),
20199
20210
  w(s_, null, {
20200
- default: $(() => [
20201
- v(n).active === v(ue).Cart ? (y(), le(C5, { key: 0 })) : v(n).active === v(ue).Authentication ? (y(), le(o5, { key: 1 })) : v(n).active === v(ue).Activation ? (y(), le(yE, { key: 2 })) : v(n).active === v(ue).Product ? (y(), le(vk, { key: 3 })) : v(n).active === v(ue).Customer ? (y(), le(Y5, { key: 4 })) : v(n).active === v(ue).Redeem ? (y(), le(kk, { key: 5 })) : v(n).active === v(ue).About ? (y(), le(A2, { key: 6 })) : be("", !0)
20211
+ default: P(() => [
20212
+ v(n).active === v(ue).Cart ? (y(), le(S5, { key: 0 })) : v(n).active === v(ue).Authentication ? (y(), le(s5, { key: 1 })) : v(n).active === v(ue).Activation ? (y(), le(_E, { key: 2 })) : v(n).active === v(ue).Product ? (y(), le(yk, { key: 3 })) : v(n).active === v(ue).Customer ? (y(), le(J5, { key: 4 })) : v(n).active === v(ue).Redeem ? (y(), le(Ok, { key: 5 })) : v(n).active === v(ue).About ? (y(), le(A2, { key: 6 })) : be("", !0)
20202
20213
  ]),
20203
20214
  _: 1
20204
20215
  })
@@ -20224,14 +20235,14 @@ function aa(e, ...t) {
20224
20235
  }
20225
20236
  return aa(e, ...t);
20226
20237
  }
20227
- function Nk(e) {
20238
+ function Ck(e) {
20228
20239
  const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) : Ze(n) || un(n) || Ao(n) ? t(xe(n)) : n && typeof n == "object" ? Object.keys(n).reduce((r, o) => (r[o] = t(n[o]), r), {}) : n;
20229
20240
  return t(e);
20230
20241
  }
20231
20242
  const jp = Symbol("url"), sr = (e, t) => window.dispatchEvent(new CustomEvent(`moonbase-storefront-${e}`, {
20232
- detail: Nk(t)
20243
+ detail: Ck(t)
20233
20244
  })), io = Symbol("event-emitter");
20234
- class Ck {
20245
+ class Sk {
20235
20246
  constructor() {
20236
20247
  Sr(this, "initialized", !1);
20237
20248
  Sr(this, "pinia");
@@ -20248,7 +20259,7 @@ class Ck {
20248
20259
  }
20249
20260
  this.options = j(aa(((l = this.options) == null ? void 0 : l.value) ?? Gc, n ?? {})), Rl("Merged options:", this.options.value);
20250
20261
  const r = document.createElement("div");
20251
- if (r.id = "moonbase", r.classList.add("moonbase"), (this.options.value.target ?? document.body).append(r), this.storefront = iy(t), this.pinia = $y(), Vv(Ok).use(this.storefront).use(this.pinia).provide(Vt, this.options).provide(jp, t.replace(/\/$/, "")).provide(io, sr).mount("#moonbase"), this.initialized = !0, window && window.location) {
20262
+ if (r.id = "moonbase", r.classList.add("moonbase"), (this.options.value.target ?? document.body).append(r), this.storefront = iy(t), this.pinia = $y(), Vv(Nk).use(this.storefront).use(this.pinia).provide(Vt, this.options).provide(jp, t.replace(/\/$/, "")).provide(io, sr).mount("#moonbase"), this.initialized = !0, window && window.location) {
20252
20263
  const c = new URLSearchParams(window.location.search), d = c.get("mb_intent");
20253
20264
  if (d && Object.values(ne).includes(d)) {
20254
20265
  const f = Object.fromEntries([...c.entries()].filter(([m]) => m.startsWith("mb_")).map(([m, _]) => [m.substring(3), _]));
@@ -20476,11 +20487,11 @@ class Ck {
20476
20487
  Ae(this.pinia).show(ue.About, ne.ViewAbout);
20477
20488
  }
20478
20489
  }
20479
- const Sk = new Ck();
20480
- globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase = Sk);
20490
+ const Tk = new Sk();
20491
+ globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase = Tk);
20481
20492
  export {
20482
20493
  ne as MoonbaseIntent,
20483
- Sk as default,
20494
+ Tk as default,
20484
20495
  io as eventEmitterKey,
20485
20496
  jp as urlKey
20486
20497
  };