@moonbase.sh/storefront 0.4.11 → 0.4.12

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
@@ -6821,15 +6821,15 @@ function yh(e, t, n, r) {
6821
6821
  let o = r.includes(".") ? $h(n, r) : () => n[r];
6822
6822
  if (rt(e)) {
6823
6823
  const s = t[e];
6824
- Ee(s) ? nt(o, s) : S.NODE_ENV !== "production" && J(`Invalid watch handler specified by key "${e}"`, s);
6824
+ Ee(s) ? Qe(o, s) : S.NODE_ENV !== "production" && J(`Invalid watch handler specified by key "${e}"`, s);
6825
6825
  } else if (Ee(e))
6826
- nt(o, e.bind(n));
6826
+ Qe(o, e.bind(n));
6827
6827
  else if (ze(e))
6828
6828
  if (ge(e))
6829
6829
  e.forEach((s) => yh(s, t, n, r));
6830
6830
  else {
6831
6831
  const s = Ee(e.handler) ? e.handler.bind(n) : t[e.handler];
6832
- Ee(s) ? nt(o, s, e) : S.NODE_ENV !== "production" && J(`Invalid watch handler specified by key "${e.handler}"`, s);
6832
+ Ee(s) ? Qe(o, s, e) : S.NODE_ENV !== "production" && J(`Invalid watch handler specified by key "${e.handler}"`, s);
6833
6833
  }
6834
6834
  else S.NODE_ENV !== "production" && J(`Invalid watch option: "${r}"`, e);
6835
6835
  }
@@ -8293,7 +8293,7 @@ const lv = Symbol.for("v-scx"), uv = () => {
8293
8293
  function Xt(e, t) {
8294
8294
  return Au(e, null, t);
8295
8295
  }
8296
- function nt(e, t, n) {
8296
+ function Qe(e, t, n) {
8297
8297
  return S.NODE_ENV !== "production" && !Ee(t) && J(
8298
8298
  "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
8299
8299
  ), Au(e, t, n);
@@ -9915,7 +9915,7 @@ var bi = class at {
9915
9915
  }
9916
9916
  get loadedStorefrontPromise() {
9917
9917
  return new Promise((t) => {
9918
- nt(this.loadedStorefront, (n) => {
9918
+ Qe(this.loadedStorefront, (n) => {
9919
9919
  n && t();
9920
9920
  }, { immediate: !0 });
9921
9921
  });
@@ -9928,7 +9928,7 @@ var bi = class at {
9928
9928
  }
9929
9929
  get loadedUserPromise() {
9930
9930
  return new Promise((t) => {
9931
- nt(this.loadedUser, (n) => {
9931
+ Qe(this.loadedUser, (n) => {
9932
9932
  n && t();
9933
9933
  }, { immediate: !0 });
9934
9934
  });
@@ -10053,7 +10053,7 @@ function Sy(e, t) {
10053
10053
  return;
10054
10054
  await n.client.activationRequests.isCompleted(r.value.id) && r.value ? (r.value.status = cn.Completed, a.value = !1) : l.value = setTimeout(u, 1500);
10055
10055
  };
10056
- return nt(() => lr(e), async (c) => {
10056
+ return Qe(() => lr(e), async (c) => {
10057
10057
  try {
10058
10058
  c && c.length > 0 ? (r.value = await n.client.activationRequests.get(c), r.value.status === cn.Fulfilled && (a.value = !0, u()), s.value = !1) : console.warn("No token given to `useActivationRequest`");
10059
10059
  } catch (d) {
@@ -10061,7 +10061,7 @@ function Sy(e, t) {
10061
10061
  }
10062
10062
  }, { immediate: !0 }), Cu(() => {
10063
10063
  l.value && clearTimeout(l.value);
10064
- }), nt(n.currentUser, async () => {
10064
+ }), Qe(n.currentUser, async () => {
10065
10065
  var c, d;
10066
10066
  const f = lr(e);
10067
10067
  if (!(!f || (d = (c = r.value) == null ? void 0 : c.licenseEligibility) != null && d.eligible)) {
@@ -10100,7 +10100,7 @@ function Sy(e, t) {
10100
10100
  }
10101
10101
  };
10102
10102
  }
10103
- function tt(e) {
10103
+ function nt(e) {
10104
10104
  const t = e ?? ye(en);
10105
10105
  if (!t)
10106
10106
  throw new Error("No storefront configured");
@@ -10951,7 +10951,7 @@ function Qy(e, t) {
10951
10951
  });
10952
10952
  });
10953
10953
  }, !0), t._customProperties.forEach((i) => {
10954
- nt(() => b(t[i]), (a, l) => {
10954
+ Qe(() => b(t[i]), (a, l) => {
10955
10955
  n.notifyComponentUpdate(), n.sendInspectorState(Ot), $o && n.addTimelineEvent({
10956
10956
  layerId: qr,
10957
10957
  event: {
@@ -11212,7 +11212,7 @@ function eu(e, t, n = {}, r, o, s) {
11212
11212
  $patch: N,
11213
11213
  $reset: H,
11214
11214
  $subscribe(T, $ = {}) {
11215
- const A = cd(d, T, $.detached, () => oe()), oe = i.run(() => nt(() => r.state.value[e], (xe) => {
11215
+ const A = cd(d, T, $.detached, () => oe()), oe = i.run(() => Qe(() => r.state.value[e], (xe) => {
11216
11216
  ($.flush === "sync" ? c : u) && T({
11217
11217
  storeId: e,
11218
11218
  type: Mn.direct,
@@ -11955,7 +11955,7 @@ const cs = Object.assign(
11955
11955
  );
11956
11956
  function m1(e) {
11957
11957
  const t = V(Zr.slice());
11958
- return nt(
11958
+ return Qe(
11959
11959
  [e],
11960
11960
  ([n], [r]) => {
11961
11961
  r === !0 && n === !1 ? qa(() => {
@@ -11986,7 +11986,7 @@ function g1({
11986
11986
  }, r) {
11987
11987
  const o = V(null), s = V(!1);
11988
11988
  return He(() => s.value = !0), Ft(() => s.value = !1), He(() => {
11989
- nt(
11989
+ Qe(
11990
11990
  // Handle initial focus
11991
11991
  [t, n, r],
11992
11992
  (i, a) => {
@@ -12271,7 +12271,7 @@ function N1(e, t, n) {
12271
12271
  const s = e.value ? r.value.get(e.value) : void 0;
12272
12272
  return s ? s.count > 0 : !1;
12273
12273
  });
12274
- return nt(
12274
+ return Qe(
12275
12275
  [e, t],
12276
12276
  ([s, i], [a], l) => {
12277
12277
  if (!s || !i)
@@ -12487,7 +12487,7 @@ function V1({
12487
12487
  r == null || r(...i), o(...i);
12488
12488
  }
12489
12489
  He(() => {
12490
- nt(
12490
+ Qe(
12491
12491
  t,
12492
12492
  (i, a) => {
12493
12493
  i ? s(0, e, n) : a === !0 && s(1, e, n);
@@ -12549,7 +12549,7 @@ const nu = Symbol("PortalParentContext"), gp = Symbol("PortalGroupContext"), j1
12549
12549
  const l = ye(nu, null);
12550
12550
  let u = !1;
12551
12551
  const c = Ua();
12552
- return nt(r, () => {
12552
+ return Qe(r, () => {
12553
12553
  if (u || !l)
12554
12554
  return;
12555
12555
  const d = Me(r);
@@ -13035,7 +13035,7 @@ const qu = Symbol("TabsSSRContext"), Z1 = /* @__PURE__ */ pe({
13035
13035
  );
13036
13036
  const h = se(() => e.selectedIndex);
13037
13037
  return He(() => {
13038
- nt(
13038
+ Qe(
13039
13039
  [h],
13040
13040
  () => c(e.selectedIndex ?? e.defaultIndex),
13041
13041
  { immediate: !0 }
@@ -13456,7 +13456,7 @@ const wp = Wo.RenderStrategy, su = /* @__PURE__ */ pe({
13456
13456
  ));
13457
13457
  }
13458
13458
  return He(() => {
13459
- nt(
13459
+ Qe(
13460
13460
  [f],
13461
13461
  (oe, xe, k) => {
13462
13462
  A(k), N.value = !1;
@@ -13953,11 +13953,11 @@ function C_(e, t) {
13953
13953
  Pt(e.$slots, "default")
13954
13954
  ]);
13955
13955
  }
13956
- const et = /* @__PURE__ */ ar(S_, [["render", C_]]), T_ = ["data-contain"], P_ = { class: "moonbase:drawer-header" }, $_ = ["data-background"], A_ = /* @__PURE__ */ pe({
13956
+ const tt = /* @__PURE__ */ ar(S_, [["render", C_]]), T_ = ["data-contain"], P_ = { class: "moonbase:drawer-header" }, $_ = ["data-background"], A_ = /* @__PURE__ */ pe({
13957
13957
  __name: "Drawer",
13958
13958
  setup(e) {
13959
- const t = Te(), n = tt(), r = ye(Et), o = V(""), s = V("");
13960
- nt(() => [t.active, t.intent, t.next], ([a, l, u]) => {
13959
+ const t = Te(), n = nt(), r = ye(Et), o = V(""), s = V("");
13960
+ Qe(() => [t.active, t.intent, t.next], ([a, l, u]) => {
13961
13961
  if (s.value = "", u && (l === te.SignIn || l === te.SignUp)) {
13962
13962
  const [c, d, f] = u;
13963
13963
  d === te.ConfirmEmailChange ? s.value = "to confirm email" : d === te.RedeemVoucher ? s.value = "to redeem voucher" : d === te.ActivateProduct ? s.value = "to activate product" : d === te.ManageSubscription && (s.value = "to manage subscription");
@@ -14095,7 +14095,7 @@ const et = /* @__PURE__ */ ar(S_, [["render", C_]]), T_ = ["data-contain"], P_ =
14095
14095
  w(b(vp), { as: O_ }, {
14096
14096
  default: O(() => [
14097
14097
  M(j(o.value) + " ", 1),
14098
- s.value ? (g(), Y(et, { key: 0 }, {
14098
+ s.value ? (g(), Y(tt, { key: 0 }, {
14099
14099
  default: O(() => [
14100
14100
  M(j(s.value), 1)
14101
14101
  ]),
@@ -14155,7 +14155,7 @@ const $s = /* @__PURE__ */ ar(D_, [["render", M_]]), V_ = ["data-visible", "data
14155
14155
  }, F_ = /* @__PURE__ */ pe({
14156
14156
  __name: "Toolbar",
14157
14157
  setup(e) {
14158
- const t = V(!1), n = Te(), r = tt(), { items: o } = Dr(), s = ye(Et), i = se(() => (o.value ?? []).reduce((l, u) => l + u.quantity, 0));
14158
+ const t = V(!1), n = Te(), r = nt(), { items: o } = Dr(), s = ye(Et), i = se(() => (o.value ?? []).reduce((l, u) => l + u.quantity, 0));
14159
14159
  He(() => {
14160
14160
  qt(100).then(() => t.value = !0);
14161
14161
  });
@@ -14281,8 +14281,8 @@ function U_() {
14281
14281
  /^cart.has_items$/,
14282
14282
  /^product\.[a-z\-]+(\.has_discount(_description)?)?$/,
14283
14283
  /^bundle\.[a-z\-]+(\.has_discount(_description)?)?$/
14284
- ], l = V({}), u = se(() => l.value.user || []), c = se(() => l.value.cart || []), d = se(() => l.value.product || []), f = se(() => l.value.bundle || []), h = tt(), { currency: p, items: _ } = Dr(), E = Ty(), N = Ny();
14285
- nt([r, u, h.user], ([B, L, D]) => {
14284
+ ], l = V({}), u = se(() => l.value.user || []), c = se(() => l.value.cart || []), d = se(() => l.value.product || []), f = se(() => l.value.bundle || []), h = nt(), { currency: p, items: _ } = Dr(), E = Ty(), N = Ny();
14285
+ Qe([r, u, h.user], ([B, L, D]) => {
14286
14286
  if (B) {
14287
14287
  for (const m of B)
14288
14288
  if (m.dataset.moonbaseOriginal === void 0 && (m.dataset.moonbaseOriginal = m.textContent || ""), D)
@@ -14298,7 +14298,7 @@ function U_() {
14298
14298
  for (const m of L)
14299
14299
  m.dataset.moonbaseOriginalHidden || (m.dataset.moonbaseOriginalHidden = m.hidden ? "true" : "false"), D ? m.hidden = m.dataset.moonbaseIf === "!user" : m.hidden = m.dataset.moonbaseIf === "user";
14300
14300
  }
14301
- }, { immediate: !0, deep: !0 }), nt([o, c, _], ([B, L, D]) => {
14301
+ }, { immediate: !0, deep: !0 }), Qe([o, c, _], ([B, L, D]) => {
14302
14302
  if (B) {
14303
14303
  for (const m of B)
14304
14304
  switch (m.dataset.moonbaseOriginal === void 0 && (m.dataset.moonbaseOriginal = m.textContent || ""), m.dataset.moonbaseRender) {
@@ -14319,7 +14319,7 @@ function U_() {
14319
14319
  P[0].startsWith("!") && (T = !T), m.dataset.moonbaseOriginalHidden || (m.dataset.moonbaseOriginalHidden = m.hidden ? "true" : "false"), T ? m.hidden = !1 : m.hidden = !0;
14320
14320
  }
14321
14321
  }
14322
- }, { immediate: !0, deep: !0 }), nt([s, d, E, p], ([B, L, D, m]) => {
14322
+ }, { immediate: !0, deep: !0 }), Qe([s, d, E, p], ([B, L, D, m]) => {
14323
14323
  var P, I, T, $, A, oe, xe, k, U;
14324
14324
  if (B) {
14325
14325
  for (const R of B) {
@@ -14374,7 +14374,7 @@ function U_() {
14374
14374
  Q[0].startsWith("!") && (_e = !_e), R.dataset.moonbaseOriginalHidden || (R.dataset.moonbaseOriginalHidden = R.hidden ? "true" : "false"), _e ? R.hidden = !1 : R.hidden = !0;
14375
14375
  }
14376
14376
  }
14377
- }, { immediate: !0, deep: !0 }), nt([i, f, N, p], ([B, L, D, m]) => {
14377
+ }, { immediate: !0, deep: !0 }), Qe([i, f, N, p], ([B, L, D, m]) => {
14378
14378
  var P, I, T, $, A, oe, xe, k, U;
14379
14379
  if (B) {
14380
14380
  for (const R of B) {
@@ -17197,7 +17197,7 @@ function tE(e, t) {
17197
17197
  Pt(e.$slots, "default")
17198
17198
  ]);
17199
17199
  }
17200
- const Qe = /* @__PURE__ */ ar(Q2, [["render", tE]]), nE = {}, rE = { class: "moonbase:text-subtext" };
17200
+ const et = /* @__PURE__ */ ar(Q2, [["render", tE]]), nE = {}, rE = { class: "moonbase:text-subtext" };
17201
17201
  function oE(e, t) {
17202
17202
  return g(), C("span", rE, [
17203
17203
  Pt(e.$slots, "default")
@@ -17206,7 +17206,7 @@ function oE(e, t) {
17206
17206
  const Re = /* @__PURE__ */ ar(nE, [["render", oE]]), sE = { class: "moonbase:about" }, iE = /* @__PURE__ */ pe({
17207
17207
  __name: "About",
17208
17208
  setup(e) {
17209
- const t = Te(), n = "0.4.11";
17209
+ const t = Te(), n = "0.4.12";
17210
17210
  return (r, o) => (g(), C("div", sE, [
17211
17211
  o[2] || (o[2] = jh('<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)),
17212
17212
  w(b(vp), { as: "h3" }, {
@@ -17222,7 +17222,7 @@ const Re = /* @__PURE__ */ ar(nE, [["render", oE]]), sE = { class: "moonbase:abo
17222
17222
  ]),
17223
17223
  _: 1
17224
17224
  }),
17225
- w(Qe, null, {
17225
+ w(et, null, {
17226
17226
  default: O(() => o[1] || (o[1] = [
17227
17227
  M(" This store is using the "),
17228
17228
  q("a", {
@@ -17378,7 +17378,7 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17378
17378
  }, ME = /* @__PURE__ */ pe({
17379
17379
  __name: "AutoActivation",
17380
17380
  setup(e) {
17381
- const t = Te(), { user: n, loaded: r } = tt(), o = ye(mo), s = t.getParameter("token"), {
17381
+ const t = Te(), { user: n, loaded: r } = nt(), o = ye(mo), s = t.getParameter("token"), {
17382
17382
  activationRequest: i,
17383
17383
  loading: a,
17384
17384
  fulfilling: l,
@@ -17387,7 +17387,7 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17387
17387
  fulfillLicense: d,
17388
17388
  fulfillTrial: f
17389
17389
  } = Sy(s), h = ye(en);
17390
- nt(i, (m) => {
17390
+ Qe(i, (m) => {
17391
17391
  var P;
17392
17392
  !l.value && !u.value && (m == null ? void 0 : m.status) === cn.Requested && ((P = m == null ? void 0 : m.licenseEligibility) != null && P.eligible) && d(), (m == null ? void 0 : m.status) === cn.Completed && (o == null || o(Bt.ActivatedProduct, {
17393
17393
  product: m.product,
@@ -17432,14 +17432,14 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17432
17432
  b(a) || !b(r) || !((I = b(h)) != null && I.loadedStorefront) ? (g(), C("div", gE, [
17433
17433
  w(Jt)
17434
17434
  ])) : b(c) ? (g(), C("div", vE, [
17435
- w(et, null, {
17435
+ w(tt, null, {
17436
17436
  default: O(() => P[0] || (P[0] = [
17437
17437
  M(" Uh oh ")
17438
17438
  ])),
17439
17439
  _: 1,
17440
17440
  __: [0]
17441
17441
  }),
17442
- w(Qe, null, {
17442
+ w(et, null, {
17443
17443
  default: O(() => [
17444
17444
  M(j(b(c)), 1)
17445
17445
  ]),
@@ -17451,14 +17451,14 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17451
17451
  product: b(i).product
17452
17452
  }, null, 8, ["product"])) : fe("", !0),
17453
17453
  ((T = b(i)) == null ? void 0 : T.status) === b(cn).Cancelled ? (g(), C("div", wE, [
17454
- w(et, null, {
17454
+ w(tt, null, {
17455
17455
  default: O(() => P[3] || (P[3] = [
17456
17456
  M(" Uh oh ")
17457
17457
  ])),
17458
17458
  _: 1,
17459
17459
  __: [3]
17460
17460
  }),
17461
- w(Qe, null, {
17461
+ w(et, null, {
17462
17462
  default: O(() => P[4] || (P[4] = [
17463
17463
  M(" This activation request was cancelled, open your app to try again. ")
17464
17464
  ])),
@@ -17467,21 +17467,21 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17467
17467
  })
17468
17468
  ])) : b(l) || b(u) ? (g(), C("div", EE, [
17469
17469
  w(Jt),
17470
- w(Qe, null, {
17470
+ w(et, null, {
17471
17471
  default: O(() => [
17472
17472
  M(" Activating " + j(b(i).product.name) + "... ", 1)
17473
17473
  ]),
17474
17474
  _: 1
17475
17475
  })
17476
17476
  ])) : (($ = b(i)) == null ? void 0 : $.status) === b(cn).Completed ? (g(), C("div", xE, [
17477
- w(et, null, {
17477
+ w(tt, null, {
17478
17478
  default: O(() => P[5] || (P[5] = [
17479
17479
  M(" Done! ")
17480
17480
  ])),
17481
17481
  _: 1,
17482
17482
  __: [5]
17483
17483
  }),
17484
- w(Qe, null, {
17484
+ w(et, null, {
17485
17485
  default: O(() => P[6] || (P[6] = [
17486
17486
  M(" Your product is activated. "),
17487
17487
  q("br", null, null, -1),
@@ -17492,14 +17492,14 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17492
17492
  })
17493
17493
  ])) : (g(), C("div", kE, [
17494
17494
  _.value ? (g(), C("div", OE, [
17495
- w(et, null, {
17495
+ w(tt, null, {
17496
17496
  default: O(() => P[7] || (P[7] = [
17497
17497
  M(" Option 1: Purchase product ")
17498
17498
  ])),
17499
17499
  _: 1,
17500
17500
  __: [7]
17501
17501
  }),
17502
- w(Qe, null, {
17502
+ w(et, null, {
17503
17503
  default: O(() => [
17504
17504
  M(" Buy a copy of " + j(p.value.name) + " for ", 1),
17505
17505
  q("strong", null, j(b(Zt)(p.value.defaultVariation.price[b(E)], b(E))), 1),
@@ -17517,13 +17517,13 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17517
17517
  ])
17518
17518
  ])) : fe("", !0),
17519
17519
  b(n) ? !b(n).ownedProducts || !((A = b(n).ownedProducts) != null && A.includes(b(i).product.id)) && !b(n).subscribedProducts || !((oe = b(n).subscribedProducts) != null && oe.includes(b(i).product.id)) ? (g(), C("div", TE, [
17520
- w(et, null, {
17520
+ w(tt, null, {
17521
17521
  default: O(() => [
17522
17522
  M(" Option " + j(_.value ? "2" : "1") + ": Use license ", 1)
17523
17523
  ]),
17524
17524
  _: 1
17525
17525
  }),
17526
- w(Qe, null, {
17526
+ w(et, null, {
17527
17527
  default: O(() => P[10] || (P[10] = [
17528
17528
  M(" You don't own any licenses for this product. ")
17529
17529
  ])),
@@ -17531,13 +17531,13 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17531
17531
  __: [10]
17532
17532
  })
17533
17533
  ])) : (xe = b(n).ownedProducts) != null && xe.includes(b(i).product.id) || (k = b(n).subscribedProducts) != null && k.includes(b(i).product.id) ? (g(), C("div", PE, [
17534
- w(et, null, {
17534
+ w(tt, null, {
17535
17535
  default: O(() => [
17536
17536
  M(" Option " + j(_.value ? "2" : "1") + ": Use license ", 1)
17537
17537
  ]),
17538
17538
  _: 1
17539
17539
  }),
17540
- w(Qe, null, {
17540
+ w(et, null, {
17541
17541
  default: O(() => P[11] || (P[11] = [
17542
17542
  M(" You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ")
17543
17543
  ])),
@@ -17552,13 +17552,13 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17552
17552
  }, null, 8, ["handler"])
17553
17553
  ])
17554
17554
  ])) : fe("", !0) : (g(), C("div", NE, [
17555
- w(et, null, {
17555
+ w(tt, null, {
17556
17556
  default: O(() => [
17557
17557
  M(" Option " + j(_.value ? "2" : "1") + ": Use license ", 1)
17558
17558
  ]),
17559
17559
  _: 1
17560
17560
  }),
17561
- w(Qe, null, {
17561
+ w(et, null, {
17562
17562
  default: O(() => P[9] || (P[9] = [
17563
17563
  M(" Please sign in to use a license for this product. ")
17564
17564
  ])),
@@ -17574,29 +17574,29 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17574
17574
  ])
17575
17575
  ])),
17576
17576
  b(i).trialEligibility ? (g(), C("div", AE, [
17577
- w(et, null, {
17577
+ w(tt, null, {
17578
17578
  default: O(() => [
17579
17579
  M(" Option " + j(_.value ? "3" : "2") + ": Start trial ", 1)
17580
17580
  ]),
17581
17581
  _: 1
17582
17582
  }),
17583
- b(i).trialEligibility.eligible && b(i).trialEligibility.requiresAccount && !b(n) ? (g(), Y(Qe, { key: 0 }, {
17583
+ b(i).trialEligibility.eligible && b(i).trialEligibility.requiresAccount && !b(n) ? (g(), Y(et, { key: 0 }, {
17584
17584
  default: O(() => P[12] || (P[12] = [
17585
17585
  M(" You need to be signed in to start a trial for this product. ")
17586
17586
  ])),
17587
17587
  _: 1,
17588
17588
  __: [12]
17589
- })) : b(i).trialEligibility.eligible && b(i).trialEligibility.existing ? (g(), Y(Qe, { key: 1 }, {
17589
+ })) : b(i).trialEligibility.eligible && b(i).trialEligibility.existing ? (g(), Y(et, { key: 1 }, {
17590
17590
  default: O(() => [
17591
17591
  M(" You are eligible for a " + j(b(i).trialEligibility.numberOfDaysPerProduct) + " day trial of which you have " + j(b(i).trialEligibility.numberOfDaysRemaining) + " days remaining. ", 1)
17592
17592
  ]),
17593
17593
  _: 1
17594
- })) : b(i).trialEligibility.eligible ? (g(), Y(Qe, { key: 2 }, {
17594
+ })) : b(i).trialEligibility.eligible ? (g(), Y(et, { key: 2 }, {
17595
17595
  default: O(() => [
17596
17596
  M(" You are eligible for a " + j(b(i).trialEligibility.numberOfDaysPerProduct) + " day trial. ", 1)
17597
17597
  ]),
17598
17598
  _: 1
17599
- })) : (g(), Y(Qe, { key: 3 }, {
17599
+ })) : (g(), Y(et, { key: 3 }, {
17600
17600
  default: O(() => P[13] || (P[13] = [
17601
17601
  M(" This device or product is not eligible for a trial. ")
17602
17602
  ])),
@@ -17631,14 +17631,14 @@ const Go = /* @__PURE__ */ ar(fE, [["render", pE]]), mE = { class: "moonbase:pro
17631
17631
  })
17632
17632
  ]))
17633
17633
  ])) : (g(), C("div", yE, [
17634
- w(et, null, {
17634
+ w(tt, null, {
17635
17635
  default: O(() => P[1] || (P[1] = [
17636
17636
  M(" Uh oh ")
17637
17637
  ])),
17638
17638
  _: 1,
17639
17639
  __: [1]
17640
17640
  }),
17641
- w(Qe, null, {
17641
+ w(et, null, {
17642
17642
  default: O(() => P[2] || (P[2] = [
17643
17643
  M(" Could not find activation request ")
17644
17644
  ])),
@@ -17744,7 +17744,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
17744
17744
  }
17745
17745
  }
17746
17746
  return (l, u) => (g(), C("div", HE, [
17747
- w(Qe, null, {
17747
+ w(et, null, {
17748
17748
  default: O(() => u[2] || (u[2] = [
17749
17749
  M(" Upload your machine file here to get a license file for activating offline devices. The machine file can be generated in the installed app. ")
17750
17750
  ])),
@@ -17764,14 +17764,14 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
17764
17764
  }, null, 8, ["error"])) : o.value === 1 ? (g(), C("div", qE, [
17765
17765
  w(Jt)
17766
17766
  ])) : o.value === 2 && i.value ? (g(), C("div", zE, [
17767
- w(et, null, {
17767
+ w(tt, null, {
17768
17768
  default: O(() => u[3] || (u[3] = [
17769
17769
  M(" Success! ")
17770
17770
  ])),
17771
17771
  _: 1,
17772
17772
  __: [3]
17773
17773
  }),
17774
- w(Qe, null, {
17774
+ w(et, null, {
17775
17775
  default: O(() => u[4] || (u[4] = [
17776
17776
  M(" Your license can be downloaded below: ")
17777
17777
  ])),
@@ -17947,7 +17947,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
17947
17947
  __name: "SignIn",
17948
17948
  emits: ["signedIn"],
17949
17949
  setup(e, { emit: t }) {
17950
- const n = t, r = Te(), o = tt(), s = ye(Et), i = ye(mo), a = V(r.getParameter("email") ?? ""), l = V(""), u = V(null);
17950
+ const n = t, r = Te(), o = nt(), s = ye(Et), i = ye(mo), a = V(r.getParameter("email") ?? ""), l = V(""), u = V(null);
17951
17951
  async function c() {
17952
17952
  u.value = null;
17953
17953
  try {
@@ -18059,7 +18059,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18059
18059
  __name: "ConfirmAccount",
18060
18060
  emits: ["confirmedAccount"],
18061
18061
  setup(e, { emit: t }) {
18062
- const n = t, r = Te(), o = tt(), s = V(!0), i = V(null), a = V(""), l = V(!1), u = V(null), c = se(() => Ko.some((f) => !f.test(a.value)));
18062
+ const n = t, r = Te(), o = nt(), s = V(!0), i = V(null), a = V(""), l = V(!1), u = V(null), c = se(() => Ko.some((f) => !f.test(a.value)));
18063
18063
  He(async () => {
18064
18064
  try {
18065
18065
  const f = r.getParameter("email"), h = r.getParameter("code");
@@ -18151,7 +18151,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18151
18151
  __name: "ConfirmEmail",
18152
18152
  emits: ["confirmed"],
18153
18153
  setup(e, { emit: t }) {
18154
- const n = t, r = Te(), { user: o, confirmEmail: s } = tt(), i = V(!0), a = V(null);
18154
+ const n = t, r = Te(), { user: o, confirmEmail: s } = nt(), i = V(!0), a = V(null);
18155
18155
  return He(async () => {
18156
18156
  try {
18157
18157
  const l = r.getParameter("email"), u = r.getParameter("code");
@@ -18166,7 +18166,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18166
18166
  i.value ? (g(), C("div", d5, [
18167
18167
  w(Jt)
18168
18168
  ])) : a.value ? (g(), C("div", f5, j(a.value), 1)) : (g(), C(Pe, { key: 2 }, [
18169
- w(et, null, {
18169
+ w(tt, null, {
18170
18170
  default: O(() => u[0] || (u[0] = [
18171
18171
  M(" Success! ")
18172
18172
  ])),
@@ -18193,7 +18193,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18193
18193
  __name: "ConfirmEmailChange",
18194
18194
  emits: ["confirmed"],
18195
18195
  setup(e, { emit: t }) {
18196
- const n = t, r = Te(), { user: o, confirmEmailChange: s } = tt(), i = V(!0), a = V(null);
18196
+ const n = t, r = Te(), { user: o, confirmEmailChange: s } = nt(), i = V(!0), a = V(null);
18197
18197
  return He(async () => {
18198
18198
  try {
18199
18199
  const l = r.getParameter("email"), u = r.getParameter("code");
@@ -18219,7 +18219,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18219
18219
  }), v5 = ["data-visible"], y5 = /* @__PURE__ */ pe({
18220
18220
  __name: "ForgotPassword",
18221
18221
  setup(e) {
18222
- const t = Te(), n = tt(), r = V(t.getParameter("email") ?? ""), o = V(null), s = V(!1);
18222
+ const t = Te(), n = nt(), r = V(t.getParameter("email") ?? ""), o = V(null), s = V(!1);
18223
18223
  async function i() {
18224
18224
  o.value = null;
18225
18225
  try {
@@ -18269,7 +18269,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18269
18269
  __name: "ResetPassword",
18270
18270
  emits: ["passwordReset"],
18271
18271
  setup(e, { emit: t }) {
18272
- const n = t, r = Te(), o = tt(), s = se(() => r.getParameter("email")), i = V(""), a = V(!1), l = V(null), u = se(() => Ko.some((d) => !d.test(i.value)));
18272
+ const n = t, r = Te(), o = nt(), s = se(() => r.getParameter("email")), i = V(""), a = V(!1), l = V(null), u = se(() => Ko.some((d) => !d.test(i.value)));
18273
18273
  He(() => {
18274
18274
  (!r.getParameter("email") || !r.getParameter("code")) && (l.value = "Link broken, please try again");
18275
18275
  });
@@ -18391,7 +18391,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18391
18391
  __name: "SignUp",
18392
18392
  emits: ["signedUp"],
18393
18393
  setup(e, { emit: t }) {
18394
- const n = t, r = Te(), o = tt(), s = ye(dm), i = ye(mo), a = V(""), l = V(r.getParameter("email") ?? ""), u = V(""), c = V(!1), d = V(!1), f = V(null), h = se(() => Ko.some((_) => !_.test(u.value)));
18394
+ const n = t, r = Te(), o = nt(), s = ye(dm), i = ye(mo), a = V(""), l = V(r.getParameter("email") ?? ""), u = V(""), c = V(!1), d = V(!1), f = V(null), h = se(() => Ko.some((_) => !_.test(u.value)));
18395
18395
  async function p() {
18396
18396
  f.value = null;
18397
18397
  try {
@@ -18506,7 +18506,7 @@ const xr = /* @__PURE__ */ ar(VE, [["render", LE]]), jE = ["data-corners"], FE =
18506
18506
  }, R5 = /* @__PURE__ */ pe({
18507
18507
  __name: "Authentication",
18508
18508
  setup(e) {
18509
- const t = Te(), { loaded: n } = tt();
18509
+ const t = Te(), { loaded: n } = nt();
18510
18510
  return (r, o) => (g(), C("div", M5, [
18511
18511
  w(mi, {
18512
18512
  name: b(t).direction === b(Fu).Forward ? "moonbase:slide-left" : "moonbase:slide-right",
@@ -18627,7 +18627,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
18627
18627
  },
18628
18628
  setup(e) {
18629
18629
  const n = zi(e.lineItem.bundleId), r = ye(Et), o = Dr(), s = V(!1), i = V(null);
18630
- return nt(s, (a) => {
18630
+ return Qe(s, (a) => {
18631
18631
  i.value && (i.value.style.height = a ? `${i.value.scrollHeight}px` : "0px");
18632
18632
  }), (a, l) => (g(), Y(xn, { class: "moonbase:bundle-cart-item" }, {
18633
18633
  addon: O(() => {
@@ -18767,7 +18767,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
18767
18767
  return [
18768
18768
  a.lineItem.variation.hasDiscount ? (g(), C("span", q5, j(b(Zt)(a.lineItem.variation.originalPrice[a.currency] * a.lineItem.quantity, a.currency)), 1)) : fe("", !0),
18769
18769
  M(" " + j(b(Zt)(a.lineItem.variation.price[a.currency] * a.lineItem.quantity, a.currency)) + " ", 1),
18770
- ((_ = a.lineItem.variation) == null ? void 0 : _.recurrence.type) === "Recurring" ? (g(), Y(Qe, { key: 1 }, {
18770
+ ((_ = a.lineItem.variation) == null ? void 0 : _.recurrence.type) === "Recurring" ? (g(), Y(et, { key: 1 }, {
18771
18771
  default: O(() => [
18772
18772
  M(" / " + j(b(oc)(a.lineItem.variation.recurrence.cycleLength)), 1)
18773
18773
  ]),
@@ -18868,7 +18868,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
18868
18868
  return [
18869
18869
  l.lineItem.variation.hasDiscount || s(l.lineItem) ? (g(), C("span", Q5, j(b(Zt)(l.lineItem.variation.originalPrice[l.currency] * l.lineItem.quantity, l.currency)), 1)) : fe("", !0),
18870
18870
  M(" " + j(b(Zt)(o(l.lineItem) * l.lineItem.quantity, l.currency)) + " ", 1),
18871
- ((E = l.lineItem.variation) == null ? void 0 : E.recurrence.type) === "Recurring" ? (g(), Y(Qe, { key: 1 }, {
18871
+ ((E = l.lineItem.variation) == null ? void 0 : E.recurrence.type) === "Recurring" ? (g(), Y(et, { key: 1 }, {
18872
18872
  default: O(() => [
18873
18873
  M(" / " + j(b(oc)(l.lineItem.variation.recurrence.cycleLength)), 1)
18874
18874
  ]),
@@ -18992,7 +18992,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
18992
18992
  __name: "Account",
18993
18993
  setup(e) {
18994
18994
  var H, z, B;
18995
- const t = Te(), { user: n, update: r, setPassword: o, signOut: s } = tt(), i = ye(mo), a = V(((H = n.value) == null ? void 0 : H.name) ?? ""), l = V(((z = n.value) == null ? void 0 : z.email) ?? ""), u = V(((B = n.value) == null ? void 0 : B.communicationPreferences) ?? {
18995
+ const t = Te(), { user: n, update: r, setPassword: o, signOut: s } = nt(), i = ye(mo), a = V(((H = n.value) == null ? void 0 : H.name) ?? ""), l = V(((z = n.value) == null ? void 0 : z.email) ?? ""), u = V(((B = n.value) == null ? void 0 : B.communicationPreferences) ?? {
18996
18996
  newsletterOptIn: !1
18997
18997
  }), c = V(null), d = V(!1), f = V(""), h = V(""), p = V(null);
18998
18998
  async function _() {
@@ -19154,7 +19154,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
19154
19154
  },
19155
19155
  setup(e) {
19156
19156
  const t = V(!1), n = V(null);
19157
- return nt(t, (r) => {
19157
+ return Qe(t, (r) => {
19158
19158
  n.value && (n.value.style.height = r ? `${n.value.scrollHeight}px` : "0px");
19159
19159
  }), (r, o) => (g(), Y(xn, { class: "moonbase:bundle-redemption-item" }, {
19160
19160
  addon: O(() => {
@@ -19305,7 +19305,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
19305
19305
  }, Nx = /* @__PURE__ */ pe({
19306
19306
  __name: "Redeem",
19307
19307
  setup(e) {
19308
- const { redeem: t } = zh(), n = Te(), r = tt(), o = ye(mo), s = V(null), i = V(null), a = V(n.getParameter("code") || "");
19308
+ const { redeem: t } = zh(), n = Te(), r = nt(), o = ye(mo), s = V(null), i = V(null), a = V(n.getParameter("code") || "");
19309
19309
  async function l() {
19310
19310
  i.value = null;
19311
19311
  try {
@@ -19329,7 +19329,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
19329
19329
  ]),
19330
19330
  _: 1
19331
19331
  }),
19332
- s.value.description ? (g(), Y(et, { key: 0 }, {
19332
+ s.value.description ? (g(), Y(tt, { key: 0 }, {
19333
19333
  default: O(() => [
19334
19334
  M(' "' + j(s.value.description) + '" ', 1)
19335
19335
  ]),
@@ -19352,7 +19352,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
19352
19352
  __: [3]
19353
19353
  })
19354
19354
  ]),
19355
- w(et, null, {
19355
+ w(tt, null, {
19356
19356
  default: O(() => c[4] || (c[4] = [
19357
19357
  M(" Voucher summary ")
19358
19358
  ])),
@@ -19392,7 +19392,7 @@ const B5 = { class: "moonbase:bundle-cart-item-content" }, H5 = {
19392
19392
  default: O(() => {
19393
19393
  var d;
19394
19394
  return [
19395
- w(Qe, null, {
19395
+ w(et, null, {
19396
19396
  default: O(() => c[1] || (c[1] = [
19397
19397
  M(" Do you have a voucher you want to redeem? "),
19398
19398
  q("br", null, null, -1),
@@ -20814,7 +20814,7 @@ const zk = { class: "moonbase:subscriptions" }, Wk = {
20814
20814
  }), Jk = { class: "moonbase:customer" }, Qk = /* @__PURE__ */ pe({
20815
20815
  __name: "Customer",
20816
20816
  setup(e) {
20817
- const t = Te(), { user: n } = tt(), r = ye(Et), o = se(() => [
20817
+ const t = Te(), { user: n } = nt(), r = ye(Et), o = se(() => [
20818
20818
  {
20819
20819
  intent: te.ViewProducts,
20820
20820
  title: "Products",
@@ -20979,7 +20979,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
20979
20979
  product: {}
20980
20980
  },
20981
20981
  setup(e) {
20982
- const t = e, n = Te(), r = tt(), o = rc(), s = ye(mo), { downloadProduct: i } = ho(), a = V(!1), l = V(null), u = se(() => l.value && l.value.$el && l.value.$el.scrollHeight > l.value.$el.clientHeight);
20982
+ const t = e, n = Te(), r = nt(), o = rc(), s = ye(mo), { downloadProduct: i } = ho(), a = V(!1), l = V(null), u = se(() => l.value && l.value.$el && l.value.$el.scrollHeight > l.value.$el.clientHeight);
20983
20983
  function c() {
20984
20984
  n.enqueue(ue.Product, te.DownloadProduct, n.parameters ?? void 0), n.show(ue.Authentication, te.SignIn);
20985
20985
  }
@@ -21027,7 +21027,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21027
21027
  }
21028
21028
  }
21029
21029
  return (N, H) => (g(), C("div", oO, [
21030
- w(et, null, {
21030
+ w(tt, null, {
21031
21031
  default: O(() => [
21032
21032
  H[1] || (H[1] = M(" Downloads ")),
21033
21033
  w(Re, null, {
@@ -21068,7 +21068,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21068
21068
  ])) : fe("", !0)
21069
21069
  ], 8, sO)) : fe("", !0),
21070
21070
  N.product.downloadsNeedsUser && N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div", iO, [
21071
- w(Qe, { "data-center": "" }, {
21071
+ w(et, { "data-center": "" }, {
21072
21072
  default: O(() => H[3] || (H[3] = [
21073
21073
  M(" This product requires ownership to download ")
21074
21074
  ])),
@@ -21080,7 +21080,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21080
21080
  handler: c
21081
21081
  })
21082
21082
  ])) : N.product.downloadsNeedsUser && !b(r).user ? (g(), C("div", aO, [
21083
- w(Qe, { "data-center": "" }, {
21083
+ w(et, { "data-center": "" }, {
21084
21084
  default: O(() => H[4] || (H[4] = [
21085
21085
  M(" This product requires an account to download ")
21086
21086
  ])),
@@ -21092,7 +21092,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21092
21092
  handler: c
21093
21093
  })
21094
21094
  ])) : N.product.downloadsNeedsOwnership && !N.product.numberOfLicenses && !N.product.subscriptionLicenses ? (g(), C("div", lO, [
21095
- w(Qe, { "data-center": "" }, {
21095
+ w(et, { "data-center": "" }, {
21096
21096
  default: O(() => H[5] || (H[5] = [
21097
21097
  M(" This product requires ownership to download ")
21098
21098
  ])),
@@ -21118,7 +21118,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21118
21118
  ]),
21119
21119
  default: O(() => [
21120
21120
  q("div", null, [
21121
- w(et, null, {
21121
+ w(tt, null, {
21122
21122
  default: O(() => [
21123
21123
  M(j(z.platform), 1)
21124
21124
  ]),
@@ -21135,7 +21135,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21135
21135
  _: 2
21136
21136
  }, 1024))), 128))
21137
21137
  ]),
21138
- _.value.length === 0 ? (g(), Y(Qe, {
21138
+ _.value.length === 0 ? (g(), Y(et, {
21139
21139
  key: 0,
21140
21140
  "data-center": ""
21141
21141
  }, {
@@ -21215,7 +21215,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21215
21215
  }
21216
21216
  }
21217
21217
  return (f, h) => (g(), C("div", hO, [
21218
- w(et, null, {
21218
+ w(tt, null, {
21219
21219
  default: O(() => [
21220
21220
  h[0] || (h[0] = M(" Licenses ")),
21221
21221
  f.product.maxActivations && f.product.maxActivations > 0 ? (g(), Y(Re, { key: 0 }, {
@@ -21231,7 +21231,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21231
21231
  c.value ? (g(), C("div", pO, [
21232
21232
  w(Jt)
21233
21233
  ])) : !f.product.numberOfLicenses && !f.product.subscriptionLicenses ? (g(), C("div", mO, [
21234
- w(Qe, null, {
21234
+ w(et, null, {
21235
21235
  default: O(() => h[1] || (h[1] = [
21236
21236
  M(" You don't own any licenses for this product yet ")
21237
21237
  ])),
@@ -21249,7 +21249,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21249
21249
  c.value ? fe("", !0) : (g(), C(Pe, { key: 2 }, [
21250
21250
  f.product.maxActivations && f.product.maxActivations > 0 && !f.product.currentActivations ? (g(), C("div", bO, [
21251
21251
  w(b(wd)),
21252
- w(et, null, {
21252
+ w(tt, null, {
21253
21253
  default: O(() => h[2] || (h[2] = [
21254
21254
  M(" No activations yet ")
21255
21255
  ])),
@@ -21271,7 +21271,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21271
21271
  _: 1,
21272
21272
  __: [3]
21273
21273
  }),
21274
- w(et, null, {
21274
+ w(tt, null, {
21275
21275
  default: O(() => [
21276
21276
  M(j(p.name), 1)
21277
21277
  ]),
@@ -21286,7 +21286,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21286
21286
  _: 1,
21287
21287
  __: [4]
21288
21288
  }),
21289
- w(et, null, {
21289
+ w(tt, null, {
21290
21290
  default: O(() => [
21291
21291
  M(j(p.activationMethod), 1)
21292
21292
  ]),
@@ -21301,7 +21301,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21301
21301
  _: 1,
21302
21302
  __: [5]
21303
21303
  }),
21304
- w(et, null, {
21304
+ w(tt, null, {
21305
21305
  default: O(() => [
21306
21306
  M(j(b(qk)(p.firstValidatedAt)), 1)
21307
21307
  ]),
@@ -21329,13 +21329,13 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21329
21329
  ])) : fe("", !0),
21330
21330
  (!u.value || u.value.length === 0) && !f.product.maxActivations && (f.product.numberOfLicenses || f.product.subscriptionLicenses) ? (g(), C("div", _O, [
21331
21331
  w(b(wd)),
21332
- f.product.numberOfLicenses ? (g(), Y(et, { key: 0 }, {
21332
+ f.product.numberOfLicenses ? (g(), Y(tt, { key: 0 }, {
21333
21333
  default: O(() => [
21334
21334
  M(" You own " + j(f.product.numberOfLicenses) + " license" + j(f.product.numberOfLicenses !== 1 ? "s" : "") + " for this product ", 1)
21335
21335
  ]),
21336
21336
  _: 1
21337
21337
  })) : fe("", !0),
21338
- f.product.subscriptionLicenses ? (g(), Y(et, { key: 1 }, {
21338
+ f.product.subscriptionLicenses ? (g(), Y(tt, { key: 1 }, {
21339
21339
  default: O(() => [
21340
21340
  M(" You have " + j(f.product.subscriptionLicenses) + " subscription license" + j(f.product.subscriptionLicenses !== 1 ? "s" : "") + " for this product ", 1)
21341
21341
  ]),
@@ -21354,7 +21354,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21354
21354
  ]),
21355
21355
  _: 1
21356
21356
  }),
21357
- w(et, null, {
21357
+ w(tt, null, {
21358
21358
  default: O(() => [
21359
21359
  M(j(p.id), 1)
21360
21360
  ]),
@@ -21388,7 +21388,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21388
21388
  }, NO = { key: 3 }, CO = /* @__PURE__ */ pe({
21389
21389
  __name: "Product",
21390
21390
  setup(e) {
21391
- const t = Te(), n = tt(), { loaded: r } = tt(), { getProduct: o } = ho(), s = V(null), i = V(null), a = V(!0);
21391
+ const t = Te(), n = nt(), { loaded: r } = nt(), { getProduct: o } = ho(), s = V(null), i = V(null), a = V(!0);
21392
21392
  return He(async () => {
21393
21393
  const l = t.getParameter("product_id"), u = t.getParameter("version");
21394
21394
  if (!l) {
@@ -21462,7 +21462,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21462
21462
  ]),
21463
21463
  _: 1
21464
21464
  }),
21465
- r.value.description ? (g(), Y(et, { key: 0 }, {
21465
+ r.value.description ? (g(), Y(tt, { key: 0 }, {
21466
21466
  default: O(() => [
21467
21467
  M(' "' + j(r.value.description) + '" ', 1)
21468
21468
  ]),
@@ -21477,7 +21477,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21477
21477
  __: [2]
21478
21478
  })
21479
21479
  ]),
21480
- w(et, null, {
21480
+ w(tt, null, {
21481
21481
  default: O(() => c[3] || (c[3] = [
21482
21482
  M(" Voucher summary ")
21483
21483
  ])),
@@ -21497,7 +21497,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21497
21497
  }, null, 8, ["bundle", "quantity"]))), 128))
21498
21498
  ])) : fe("", !0),
21499
21499
  q("div", DO, [
21500
- w(Qe, null, {
21500
+ w(et, null, {
21501
21501
  default: O(() => c[4] || (c[4] = [
21502
21502
  M(" Sign in or create an account to redeem products ")
21503
21503
  ])),
@@ -21522,7 +21522,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21522
21522
  default: O(() => {
21523
21523
  var d;
21524
21524
  return [
21525
- w(Qe, null, {
21525
+ w(et, null, {
21526
21526
  default: O(() => c[1] || (c[1] = [
21527
21527
  M(" Do you have a voucher you want to redeem? "),
21528
21528
  q("br", null, null, -1),
@@ -21709,7 +21709,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21709
21709
  }, qO = { key: 3 }, zO = { class: "moonbase:subscription-actions" }, WO = /* @__PURE__ */ pe({
21710
21710
  __name: "Subscription",
21711
21711
  setup(e) {
21712
- const t = Te(), { loaded: n } = tt(), { getSubscription: r, renewSubscription: o, cancelSubscription: s } = ho(), i = V(null), a = V(/* @__PURE__ */ new Date()), l = V(null), u = V(!0);
21712
+ const t = Te(), { loaded: n } = nt(), { getSubscription: r, renewSubscription: o, cancelSubscription: s } = ho(), i = V(null), a = V(/* @__PURE__ */ new Date()), l = V(null), u = V(!0);
21713
21713
  He(async () => {
21714
21714
  const f = t.getParameter("subscription_id");
21715
21715
  if (!f) {
@@ -21776,7 +21776,7 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21776
21776
  __name: "App",
21777
21777
  setup(e) {
21778
21778
  const t = ye(Et), n = Te();
21779
- nt(() => [n.active, n.intent], ([o, s]) => {
21779
+ Qe(() => [n.active, n.intent], ([o, s]) => {
21780
21780
  });
21781
21781
  const r = {
21782
21782
  Inter: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
@@ -21793,10 +21793,13 @@ const oO = { class: "moonbase:product-downloads" }, sO = ["data-open"], iO = {
21793
21793
  o.rel = "stylesheet", o.href = r[t.value.theme.fonts.body], document.head.appendChild(o), document.documentElement.style.setProperty("--moonbase-font-body", t.value.theme.fonts.body ?? "");
21794
21794
  const s = document.createElement("link");
21795
21795
  s.rel = "stylesheet", s.href = r[t.value.theme.fonts.heading], document.head.appendChild(s), document.documentElement.style.setProperty("--moonbase-font-heading", t.value.theme.fonts.heading ?? "");
21796
- let i = t.value.theme.colors.primary;
21797
- typeof i == "string" && (i = Object.fromEntries(Y2(i).map((a) => [a.number <= 100 || a.number === 950 ? a.number - 50 : a.number - 100, a.hexcode]))), document.documentElement.style.setProperty("--moonbase-brand-50", i[50] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-100", i[100] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-200", i[200] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-300", i[300] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-400", i[400] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-500", i[500] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-600", i[600] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-700", i[700] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-800", i[800] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-900", i[900] ?? "");
21798
21796
  }
21799
- return nt(() => t == null ? void 0 : t.value.theme.dark, (o) => {
21797
+ return Qe(() => t == null ? void 0 : t.value.theme.colors.primary, (o) => {
21798
+ if (!o)
21799
+ return;
21800
+ let s = o;
21801
+ typeof s == "string" && (s = Object.fromEntries(Y2(s).map((i) => [i.number <= 100 || i.number === 950 ? i.number - 50 : i.number - 100, i.hexcode]))), document.documentElement.style.setProperty("--moonbase-brand-50", s[50] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-100", s[100] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-200", s[200] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-300", s[300] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-400", s[400] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-500", s[500] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-600", s[600] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-700", s[700] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-800", s[800] ?? ""), document.documentElement.style.setProperty("--moonbase-brand-900", s[900] ?? "");
21802
+ }, { immediate: !0 }), Qe(() => t == null ? void 0 : t.value.theme.dark, (o) => {
21800
21803
  o ? document.documentElement.classList.add("moonbase:dark") : document.documentElement.classList.remove("moonbase:dark");
21801
21804
  }, { immediate: !0 }), U_(), B_(), (o, s) => {
21802
21805
  var i;
@@ -21855,7 +21858,7 @@ class KO {
21855
21858
  this.options = V(Na(((l = this.options) == null ? void 0 : l.value) ?? pd, n ?? {})), jo("Merged options:", this.options.value);
21856
21859
  const r = document.createElement("div");
21857
21860
  r.id = "moonbase", r.classList.add("moonbase"), (this.options.value.target ?? document.body).append(r), this.storefront = Py(t), this.pinia = t1(), uy(ZO).use(this.storefront).use(this.pinia).provide(Et, this.options).provide(dm, t.replace(/\/$/, "")).provide(mo, dr).provide(GO, this).mount("#moonbase"), this.initialized = !0, window && window.location && this.handleLocationIntent(window.location);
21858
- const i = Te(this.pinia), a = tt(this.storefront);
21861
+ const i = Te(this.pinia), a = nt(this.storefront);
21859
21862
  (u = this.storefront) == null || u.onCheckoutInitiated((c, d) => {
21860
21863
  dr(Bt.CheckoutInitiated, {
21861
21864
  order: c,
@@ -21933,14 +21936,14 @@ class KO {
21933
21936
  if (!this.initialized)
21934
21937
  throw new Error("Moonbase has not been set up yet");
21935
21938
  const n = Te(this.pinia);
21936
- tt(this.storefront).user.value ? n.show(ue.Authentication, te.ConfirmEmailChange, t) : (n.enqueue(ue.Authentication, te.ConfirmEmailChange, t), n.show(ue.Authentication, te.SignIn));
21939
+ nt(this.storefront).user.value ? n.show(ue.Authentication, te.ConfirmEmailChange, t) : (n.enqueue(ue.Authentication, te.ConfirmEmailChange, t), n.show(ue.Authentication, te.SignIn));
21937
21940
  }
21938
21941
  // Customer
21939
21942
  view_account() {
21940
21943
  if (!this.initialized)
21941
21944
  throw new Error("Moonbase has not been set up yet");
21942
21945
  const t = Te(this.pinia);
21943
- tt(this.storefront).user.value ? t.show(ue.Customer, te.ViewAccount) : (t.enqueue(ue.Customer, te.ViewAccount), t.show(ue.Authentication, te.SignIn));
21946
+ nt(this.storefront).user.value ? t.show(ue.Customer, te.ViewAccount) : (t.enqueue(ue.Customer, te.ViewAccount), t.show(ue.Authentication, te.SignIn));
21944
21947
  }
21945
21948
  view_products() {
21946
21949
  if (!this.initialized)
@@ -21956,7 +21959,7 @@ class KO {
21956
21959
  if (!this.initialized)
21957
21960
  throw new Error("Moonbase has not been set up yet");
21958
21961
  const n = Te(this.pinia);
21959
- tt(this.storefront).user.value ? n.show(ue.Customer, te.RedeemVoucher, t) : n.show(ue.Redeem, te.RedeemVoucher, t);
21962
+ nt(this.storefront).user.value ? n.show(ue.Customer, te.RedeemVoucher, t) : n.show(ue.Redeem, te.RedeemVoucher, t);
21960
21963
  }
21961
21964
  // Products
21962
21965
  view_product(t) {
@@ -21972,7 +21975,7 @@ class KO {
21972
21975
  activate_product(t) {
21973
21976
  if (!this.initialized)
21974
21977
  throw new Error("Moonbase has not been set up yet");
21975
- const n = Te(this.pinia), r = tt(this.storefront);
21978
+ const n = Te(this.pinia), r = nt(this.storefront);
21976
21979
  !(t != null && t.token) && !r.user.value ? (n.enqueue(ue.Activation, te.ActivateProduct, t), n.show(ue.Authentication, te.SignIn)) : n.show(ue.Activation, te.ActivateProduct, t);
21977
21980
  }
21978
21981
  // Subscriptions
@@ -21980,7 +21983,7 @@ class KO {
21980
21983
  if (!this.initialized)
21981
21984
  throw new Error("Moonbase has not been set up yet");
21982
21985
  const n = Te(this.pinia);
21983
- tt(this.storefront).user.value ? n.show(ue.Subscription, te.ManageSubscription, t) : (n.enqueue(ue.Subscription, te.ManageSubscription, t), n.show(ue.Authentication, te.SignIn));
21986
+ nt(this.storefront).user.value ? n.show(ue.Subscription, te.ManageSubscription, t) : (n.enqueue(ue.Subscription, te.ManageSubscription, t), n.show(ue.Authentication, te.SignIn));
21984
21987
  }
21985
21988
  // Orders
21986
21989
  view_cart() {
@@ -21994,7 +21997,7 @@ class KO {
21994
21997
  throw new Error("Moonbase has not been set up yet");
21995
21998
  if (!(t != null && t.product_id) && !(t != null && t.bundle_id))
21996
21999
  throw new Error("You need to provide a product or bundle ID when adding to cart");
21997
- const n = Dr(this.storefront), r = tt(this.storefront);
22000
+ const n = Dr(this.storefront), r = nt(this.storefront);
21998
22001
  if (t != null && t.product_id) {
21999
22002
  const f = Ps(t.product_id, this.storefront);
22000
22003
  if (f.value) {