@moonbase.sh/storefront 1.0.25 → 1.0.26
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.d.ts +4 -0
- package/dist/moonbase.js +93 -85
- package/dist/moonbase.umd.cjs +9 -9
- package/package.json +2 -2
package/dist/moonbase.d.ts
CHANGED
package/dist/moonbase.js
CHANGED
|
@@ -4019,7 +4019,7 @@ function dr(e) {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
const Ge = Kf.NODE_ENV !== "production" ? Object.freeze({}) : {}, Ho = Kf.NODE_ENV !== "production" ? Object.freeze([]) : [], gt = () => {
|
|
4021
4021
|
}, Ig = () => !1, yi = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
4022
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ya = (e) => e.startsWith("onUpdate:"),
|
|
4022
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ya = (e) => e.startsWith("onUpdate:"), at = Object.assign, Iu = (e, t) => {
|
|
4023
4023
|
const n = e.indexOf(t);
|
|
4024
4024
|
n > -1 && e.splice(n, 1);
|
|
4025
4025
|
}, Dg = Object.prototype.hasOwnProperty, Le = (e, t) => Dg.call(e, t), ge = Array.isArray, ro = (e) => Za(e) === "[object Map]", Gf = (e) => Za(e) === "[object Set]", _e = (e) => typeof e == "function", nt = (e) => typeof e == "string", fr = (e) => typeof e == "symbol", Fe = (e) => e !== null && typeof e == "object", Du = (e) => (Fe(e) || _e(e)) && _e(e.then) && _e(e.catch), Qf = Object.prototype.toString, Za = (e) => Qf.call(e), $u = (e) => Za(e).slice(8, -1), Xf = (e) => Za(e) === "[object Object]", Mu = (e) => nt(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Ds = /* @__PURE__ */ dr(
|
|
@@ -4385,7 +4385,7 @@ class ju {
|
|
|
4385
4385
|
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = He.depsTail, n.nextDep = void 0, He.depsTail.nextDep = n, He.depsTail = n, He.deps === n && (He.deps = r);
|
|
4386
4386
|
}
|
|
4387
4387
|
return Xe.NODE_ENV !== "production" && He.onTrack && He.onTrack(
|
|
4388
|
-
|
|
4388
|
+
at(
|
|
4389
4389
|
{
|
|
4390
4390
|
effect: He
|
|
4391
4391
|
},
|
|
@@ -4402,7 +4402,7 @@ class ju {
|
|
|
4402
4402
|
if (Xe.NODE_ENV !== "production")
|
|
4403
4403
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
4404
4404
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
4405
|
-
|
|
4405
|
+
at(
|
|
4406
4406
|
{
|
|
4407
4407
|
effect: n.sub
|
|
4408
4408
|
},
|
|
@@ -4787,7 +4787,7 @@ function cb(e, t) {
|
|
|
4787
4787
|
return !e && mt(l, "iterate", oo), a.forEach((c, d) => o.call(s, u(c), u(d), i));
|
|
4788
4788
|
}
|
|
4789
4789
|
};
|
|
4790
|
-
return
|
|
4790
|
+
return at(
|
|
4791
4791
|
n,
|
|
4792
4792
|
e ? {
|
|
4793
4793
|
add: Vi("add"),
|
|
@@ -5505,7 +5505,7 @@ function Rb(e, t) {
|
|
|
5505
5505
|
});
|
|
5506
5506
|
}
|
|
5507
5507
|
function $c(e, t) {
|
|
5508
|
-
|
|
5508
|
+
at(e, t);
|
|
5509
5509
|
for (const n in e)
|
|
5510
5510
|
n !== "__file" && !(n in t) && delete e[n];
|
|
5511
5511
|
}
|
|
@@ -6090,7 +6090,7 @@ function le(e, t) {
|
|
|
6090
6090
|
return _e(e) ? (
|
|
6091
6091
|
// #8236: extend call and options.name access are considered side-effects
|
|
6092
6092
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
6093
|
-
|
|
6093
|
+
at({ name: e.name }, t, { setup: e })
|
|
6094
6094
|
) : e;
|
|
6095
6095
|
}
|
|
6096
6096
|
function Wh(e) {
|
|
@@ -6314,7 +6314,7 @@ function Kh(e) {
|
|
|
6314
6314
|
const ou = (e) => e ? vp(e) ? Qu(e) : ou(e.parent) : null, ao = (
|
|
6315
6315
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
6316
6316
|
// due to type annotation
|
|
6317
|
-
/* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ at(/* @__PURE__ */ Object.create(null), {
|
|
6318
6318
|
$: (e) => e,
|
|
6319
6319
|
$el: (e) => e.vnode.el,
|
|
6320
6320
|
$data: (e) => e.data,
|
|
@@ -6700,7 +6700,7 @@ const bv = {
|
|
|
6700
6700
|
};
|
|
6701
6701
|
function Fc(e, t) {
|
|
6702
6702
|
return t ? e ? function() {
|
|
6703
|
-
return
|
|
6703
|
+
return at(
|
|
6704
6704
|
_e(e) ? e.call(this, this) : e,
|
|
6705
6705
|
_e(t) ? t.call(this, this) : t
|
|
6706
6706
|
);
|
|
@@ -6722,10 +6722,10 @@ function Mt(e, t) {
|
|
|
6722
6722
|
return e ? [...new Set([].concat(e, t))] : t;
|
|
6723
6723
|
}
|
|
6724
6724
|
function Ns(e, t) {
|
|
6725
|
-
return e ?
|
|
6725
|
+
return e ? at(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
6726
6726
|
}
|
|
6727
6727
|
function Hc(e, t) {
|
|
6728
|
-
return e ? ge(e) && ge(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] :
|
|
6728
|
+
return e ? ge(e) && ge(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : at(
|
|
6729
6729
|
/* @__PURE__ */ Object.create(null),
|
|
6730
6730
|
Uc(e),
|
|
6731
6731
|
Uc(t ?? {})
|
|
@@ -6734,7 +6734,7 @@ function Hc(e, t) {
|
|
|
6734
6734
|
function yv(e, t) {
|
|
6735
6735
|
if (!e) return t;
|
|
6736
6736
|
if (!t) return e;
|
|
6737
|
-
const n =
|
|
6737
|
+
const n = at(/* @__PURE__ */ Object.create(null), e);
|
|
6738
6738
|
for (const r in t)
|
|
6739
6739
|
n[r] = Mt(e[r], t[r]);
|
|
6740
6740
|
return n;
|
|
@@ -6763,7 +6763,7 @@ function Jh() {
|
|
|
6763
6763
|
let wv = 0;
|
|
6764
6764
|
function _v(e, t) {
|
|
6765
6765
|
return function(r, o = null) {
|
|
6766
|
-
_e(r) || (r =
|
|
6766
|
+
_e(r) || (r = at({}, r)), o != null && !Fe(o) && (D.NODE_ENV !== "production" && X("root props passed to app.mount() must be an object."), o = null);
|
|
6767
6767
|
const s = Jh(), i = /* @__PURE__ */ new WeakSet(), a = [];
|
|
6768
6768
|
let l = !1;
|
|
6769
6769
|
const u = s.app = {
|
|
@@ -7014,7 +7014,7 @@ function op(e, t, n = !1) {
|
|
|
7014
7014
|
const c = (d) => {
|
|
7015
7015
|
l = !0;
|
|
7016
7016
|
const [f, h] = op(d, t, !0);
|
|
7017
|
-
|
|
7017
|
+
at(i, f), h && a.push(...h);
|
|
7018
7018
|
};
|
|
7019
7019
|
!n && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
|
|
7020
7020
|
}
|
|
@@ -7031,7 +7031,7 @@ function op(e, t, n = !1) {
|
|
|
7031
7031
|
for (const c in s) {
|
|
7032
7032
|
const d = Ut(c);
|
|
7033
7033
|
if (qc(d)) {
|
|
7034
|
-
const f = s[c], h = i[d] = ge(f) || _e(f) ? { type: f } :
|
|
7034
|
+
const f = s[c], h = i[d] = ge(f) || _e(f) ? { type: f } : at({}, f), m = h.type;
|
|
7035
7035
|
let y = !1, x = !0;
|
|
7036
7036
|
if (ge(m))
|
|
7037
7037
|
for (let N = 0; N < m.length; ++N) {
|
|
@@ -8119,7 +8119,7 @@ function Zu(e, t, n = Ge) {
|
|
|
8119
8119
|
), i !== void 0 && X(
|
|
8120
8120
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
8121
8121
|
));
|
|
8122
|
-
const a =
|
|
8122
|
+
const a = at({}, n);
|
|
8123
8123
|
D.NODE_ENV !== "production" && (a.onWarn = X);
|
|
8124
8124
|
const l = t && r || !t && s !== "post";
|
|
8125
8125
|
let u;
|
|
@@ -8227,11 +8227,11 @@ function cp(e, t, n = !1) {
|
|
|
8227
8227
|
if (!_e(e)) {
|
|
8228
8228
|
const l = (u) => {
|
|
8229
8229
|
const c = cp(u, t, !0);
|
|
8230
|
-
c && (a = !0,
|
|
8230
|
+
c && (a = !0, at(i, c));
|
|
8231
8231
|
};
|
|
8232
8232
|
!n && t.mixins.length && t.mixins.forEach(l), e.extends && l(e.extends), e.mixins && e.mixins.forEach(l);
|
|
8233
8233
|
}
|
|
8234
|
-
return !s && !a ? (Fe(e) && r.set(e, null), null) : (ge(s) ? s.forEach((l) => i[l] = null) :
|
|
8234
|
+
return !s && !a ? (Fe(e) && r.set(e, null), null) : (ge(s) ? s.forEach((l) => i[l] = null) : at(i, s), Fe(e) && r.set(e, i), i);
|
|
8235
8235
|
}
|
|
8236
8236
|
function tl(e, t) {
|
|
8237
8237
|
return !e || !yi(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), Le(e, t[0].toLowerCase() + t.slice(1)) || Le(e, jr(t)) || Le(e, t));
|
|
@@ -8527,7 +8527,7 @@ function mp(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
|
8527
8527
|
if (wp(e) && (e = e.__vccOpts), t) {
|
|
8528
8528
|
t = Jv(t);
|
|
8529
8529
|
let { class: a, style: l } = t;
|
|
8530
|
-
a && !nt(a) && (t.class = _i(a)), Fe(l) && (Xo(l) && !ge(l) && (l =
|
|
8530
|
+
a && !nt(a) && (t.class = _i(a)), Fe(l) && (Xo(l) && !ge(l) && (l = at({}, l)), t.style = rs(l));
|
|
8531
8531
|
}
|
|
8532
8532
|
const i = nt(e) ? 1 : fp(e) ? 128 : Rh(e) ? 64 : Fe(e) ? 4 : _e(e) ? 2 : 0;
|
|
8533
8533
|
return D.NODE_ENV !== "production" && i & 4 && Xo(e) && (e = Ee(e), X(
|
|
@@ -8547,7 +8547,7 @@ Component that was made reactive: `,
|
|
|
8547
8547
|
);
|
|
8548
8548
|
}
|
|
8549
8549
|
function Jv(e) {
|
|
8550
|
-
return e ? Xo(e) || np(e) ?
|
|
8550
|
+
return e ? Xo(e) || np(e) ? at({}, e) : e : null;
|
|
8551
8551
|
}
|
|
8552
8552
|
function Cn(e, t, n = !1, r = !1) {
|
|
8553
8553
|
const { props: o, ref: s, patchFlag: i, children: a, transition: l } = e, u = t ? Gu(o || {}, t) : o, c = {
|
|
@@ -9040,7 +9040,7 @@ function dy() {
|
|
|
9040
9040
|
]), f;
|
|
9041
9041
|
}
|
|
9042
9042
|
function i(d, f) {
|
|
9043
|
-
return f =
|
|
9043
|
+
return f = at({}, f), Object.keys(f).length ? [
|
|
9044
9044
|
"div",
|
|
9045
9045
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
9046
9046
|
[
|
|
@@ -9170,7 +9170,7 @@ const _p = fu ? (e) => fu.createHTML(e) : (e) => e, fy = "http://www.w3.org/2000
|
|
|
9170
9170
|
leaveFromClass: String,
|
|
9171
9171
|
leaveActiveClass: String,
|
|
9172
9172
|
leaveToClass: String
|
|
9173
|
-
}, my = /* @__PURE__ */
|
|
9173
|
+
}, my = /* @__PURE__ */ at(
|
|
9174
9174
|
{},
|
|
9175
9175
|
Bh,
|
|
9176
9176
|
Ep
|
|
@@ -9217,7 +9217,7 @@ function by(e) {
|
|
|
9217
9217
|
Wr(H, B ? l : s), Qn(H, B ? c : a), od(pe) || id(H, r, y, he);
|
|
9218
9218
|
});
|
|
9219
9219
|
};
|
|
9220
|
-
return
|
|
9220
|
+
return at(t, {
|
|
9221
9221
|
onBeforeEnter(B) {
|
|
9222
9222
|
zr(N, [B]), Qn(B, s), Qn(B, i);
|
|
9223
9223
|
},
|
|
@@ -9521,7 +9521,7 @@ const Ry = ["ctrl", "shift", "alt", "meta"], jy = {
|
|
|
9521
9521
|
}
|
|
9522
9522
|
return e(o, ...s);
|
|
9523
9523
|
});
|
|
9524
|
-
}, Uy = /* @__PURE__ */
|
|
9524
|
+
}, Uy = /* @__PURE__ */ at({ patchProp: Vy }, py);
|
|
9525
9525
|
let wd;
|
|
9526
9526
|
function By() {
|
|
9527
9527
|
return wd || (wd = Lv(Uy));
|
|
@@ -11360,7 +11360,11 @@ const Sd = {
|
|
|
11360
11360
|
},
|
|
11361
11361
|
activation: {
|
|
11362
11362
|
deviceTokenFileExtension: ".dt",
|
|
11363
|
-
licenseTokenFileName: "license-file.mb"
|
|
11363
|
+
licenseTokenFileName: "license-file.mb",
|
|
11364
|
+
websiteLink: {
|
|
11365
|
+
enabled: !1,
|
|
11366
|
+
label: "Visit website"
|
|
11367
|
+
}
|
|
11364
11368
|
},
|
|
11365
11369
|
theme: {
|
|
11366
11370
|
dark: !1,
|
|
@@ -11388,7 +11392,7 @@ const Sd = {
|
|
|
11388
11392
|
cards: "outlined"
|
|
11389
11393
|
},
|
|
11390
11394
|
target: void 0
|
|
11391
|
-
},
|
|
11395
|
+
}, it = Symbol("options"), Z1 = () => window.location.search.includes("mb_debug=true");
|
|
11392
11396
|
function Ye(...e) {
|
|
11393
11397
|
Z1() && console.debug(...e);
|
|
11394
11398
|
}
|
|
@@ -13898,7 +13902,7 @@ const s_ = ["href", "disabled", "data-variant", "data-size", "data-corners", "da
|
|
|
13898
13902
|
},
|
|
13899
13903
|
emits: ["click"],
|
|
13900
13904
|
setup(e) {
|
|
13901
|
-
const t = e, n = fe(
|
|
13905
|
+
const t = e, n = fe(it), r = Z(() => t.variant ? t.variant === "secondary" ? `secondary-${(n == null ? void 0 : n.value.theme.buttons) ?? "light"}` : t.variant : "primary");
|
|
13902
13906
|
return (o, s) => {
|
|
13903
13907
|
var i, a, l, u;
|
|
13904
13908
|
return o.href ? (p(), _("a", {
|
|
@@ -13947,7 +13951,7 @@ function h_(e, t) {
|
|
|
13947
13951
|
const qe = /* @__PURE__ */ pr(d_, [["render", h_]]), p_ = ["data-contain"], m_ = { class: "moonbase:drawer-header" }, g_ = ["data-background"], b_ = /* @__PURE__ */ le({
|
|
13948
13952
|
__name: "Drawer",
|
|
13949
13953
|
setup(e) {
|
|
13950
|
-
const t = Ae(), n = Re(), r = fe(
|
|
13954
|
+
const t = Ae(), n = Re(), r = fe(it), o = j(""), s = j("");
|
|
13951
13955
|
Qe(() => [t.active, t.intent, t.next], ([a, l, u]) => {
|
|
13952
13956
|
if (s.value = "", u && (l === W.SignIn || l === W.SignUp)) {
|
|
13953
13957
|
const [c, d, f] = u;
|
|
@@ -14146,7 +14150,7 @@ const yn = /* @__PURE__ */ pr(v_, [["render", w_]]), __ = ["data-visible", "data
|
|
|
14146
14150
|
}, A_ = /* @__PURE__ */ le({
|
|
14147
14151
|
__name: "Toolbar",
|
|
14148
14152
|
setup(e) {
|
|
14149
|
-
const t = j(!1), n = Ae(), r = Re(), { items: o } = Wn(), s = fe(
|
|
14153
|
+
const t = j(!1), n = Ae(), r = Re(), { items: o } = Wn(), s = fe(it), i = Z(() => (o.value ?? []).reduce((l, u) => l + u.quantity, 0));
|
|
14150
14154
|
Be(() => {
|
|
14151
14155
|
Ht(100).then(() => t.value = !0);
|
|
14152
14156
|
});
|
|
@@ -17206,7 +17210,7 @@ const qt = /* @__PURE__ */ pr(ZE, [["render", KE], ["__scopeId", "data-v-687bcaf
|
|
|
17206
17210
|
},
|
|
17207
17211
|
emits: ["click"],
|
|
17208
17212
|
setup(e) {
|
|
17209
|
-
const t = e, n = fe(
|
|
17213
|
+
const t = e, n = fe(it), r = Z(() => t.success ? t.successLabel ?? t.label : t.error ? t.errorLabel ?? t.label : t.label), o = Z(() => t.variant ? t.variant === "secondary" ? `secondary-${(n == null ? void 0 : n.value.theme.buttons) ?? "light"}` : t.variant : "primary");
|
|
17210
17214
|
return (s, i) => {
|
|
17211
17215
|
var a, l;
|
|
17212
17216
|
return p(), q(ru(s.type === "anchor" ? "a" : "button"), {
|
|
@@ -17287,7 +17291,7 @@ function n5(e, t) {
|
|
|
17287
17291
|
const we = /* @__PURE__ */ pr(e5, [["render", n5]]), r5 = { class: "moonbase:about" }, o5 = /* @__PURE__ */ le({
|
|
17288
17292
|
__name: "About",
|
|
17289
17293
|
setup(e) {
|
|
17290
|
-
const t = Ae(), n = "1.0.
|
|
17294
|
+
const t = Ae(), n = "1.0.26";
|
|
17291
17295
|
return (r, o) => (p(), _("div", r5, [
|
|
17292
17296
|
o[2] || (o[2] = bp('<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)),
|
|
17293
17297
|
v(b(Qp), { as: "h3" }, {
|
|
@@ -17327,7 +17331,7 @@ var Lt = /* @__PURE__ */ ((e) => (e.SignedIn = "signed-in", e.SignedUp = "signed
|
|
|
17327
17331
|
const s5 = ["data-corners", "data-variant"], i5 = { class: "moonbase:card-content" }, tn = /* @__PURE__ */ le({
|
|
17328
17332
|
__name: "MoonCard",
|
|
17329
17333
|
setup(e) {
|
|
17330
|
-
const t = fe(
|
|
17334
|
+
const t = fe(it);
|
|
17331
17335
|
return (n, r) => {
|
|
17332
17336
|
var o, s;
|
|
17333
17337
|
return p(), _("div", {
|
|
@@ -17353,7 +17357,7 @@ const s5 = ["data-corners", "data-variant"], i5 = { class: "moonbase:card-conten
|
|
|
17353
17357
|
size: {}
|
|
17354
17358
|
},
|
|
17355
17359
|
setup(e) {
|
|
17356
|
-
const t = fe(
|
|
17360
|
+
const t = fe(it);
|
|
17357
17361
|
return (n, r) => {
|
|
17358
17362
|
var o;
|
|
17359
17363
|
return p(), _("div", {
|
|
@@ -17391,45 +17395,49 @@ const ur = /* @__PURE__ */ pr(f5, [["render", p5]]), m5 = { class: "moonbase:pro
|
|
|
17391
17395
|
product: {}
|
|
17392
17396
|
},
|
|
17393
17397
|
setup(e) {
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17398
|
+
const t = fe(it);
|
|
17399
|
+
return (n, r) => (p(), q(tn, { class: "moonbase:product-card" }, {
|
|
17400
|
+
default: k(() => {
|
|
17401
|
+
var o, s;
|
|
17402
|
+
return [
|
|
17403
|
+
v(At, {
|
|
17404
|
+
url: n.product.iconUrl,
|
|
17405
|
+
size: 72
|
|
17406
|
+
}, null, 8, ["url"]),
|
|
17407
|
+
R("div", m5, [
|
|
17408
|
+
v(ur, null, {
|
|
17409
|
+
default: k(() => {
|
|
17410
|
+
var i;
|
|
17411
|
+
return [
|
|
17412
|
+
P($((i = n.product) == null ? void 0 : i.name), 1)
|
|
17413
|
+
];
|
|
17414
|
+
}),
|
|
17415
|
+
_: 1
|
|
17407
17416
|
}),
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17417
|
+
v(we, null, {
|
|
17418
|
+
default: k(() => {
|
|
17419
|
+
var i;
|
|
17420
|
+
return [
|
|
17421
|
+
P($((i = n.product) == null ? void 0 : i.tagline), 1)
|
|
17422
|
+
];
|
|
17423
|
+
}),
|
|
17424
|
+
_: 1
|
|
17416
17425
|
}),
|
|
17417
|
-
_
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
]
|
|
17429
|
-
Tt(
|
|
17430
|
-
]
|
|
17431
|
-
|
|
17432
|
-
]),
|
|
17426
|
+
(o = b(t)) != null && o.activation.websiteLink.enabled && n.product.website ? (p(), _("a", {
|
|
17427
|
+
key: 0,
|
|
17428
|
+
class: "moonbase:product-card-website",
|
|
17429
|
+
href: n.product.website,
|
|
17430
|
+
target: "_blank",
|
|
17431
|
+
rel: "noopener noreferrer"
|
|
17432
|
+
}, [
|
|
17433
|
+
v(b(uc)),
|
|
17434
|
+
P(" " + $((s = b(t)) == null ? void 0 : s.activation.websiteLink.label), 1)
|
|
17435
|
+
], 8, g5)) : z("", !0),
|
|
17436
|
+
Tt(n.$slots, "description")
|
|
17437
|
+
]),
|
|
17438
|
+
Tt(n.$slots, "default")
|
|
17439
|
+
];
|
|
17440
|
+
}),
|
|
17433
17441
|
_: 3
|
|
17434
17442
|
}));
|
|
17435
17443
|
}
|
|
@@ -17762,7 +17770,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
17762
17770
|
},
|
|
17763
17771
|
emits: ["input", "error"],
|
|
17764
17772
|
setup(e, { emit: t }) {
|
|
17765
|
-
const n = t, r = fe(
|
|
17773
|
+
const n = t, r = fe(it), o = j(!1), s = Z(() => {
|
|
17766
17774
|
let u = ".dt";
|
|
17767
17775
|
return r != null && r.value && (u = r.value.activation.deviceTokenFileExtension), u.startsWith(".") ? u : `.${u}`;
|
|
17768
17776
|
});
|
|
@@ -17831,7 +17839,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
17831
17839
|
}, Z5 = /* @__PURE__ */ le({
|
|
17832
17840
|
__name: "ManualActivation",
|
|
17833
17841
|
setup(e) {
|
|
17834
|
-
const t = fe(
|
|
17842
|
+
const t = fe(it), { activateProduct: n } = yo(), r = Fa.Offline, o = j(
|
|
17835
17843
|
0
|
|
17836
17844
|
/* Input */
|
|
17837
17845
|
), s = j(null), i = j(null);
|
|
@@ -17975,7 +17983,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
17975
17983
|
},
|
|
17976
17984
|
emits: ["update:modelValue"],
|
|
17977
17985
|
setup(e) {
|
|
17978
|
-
const t = fe(
|
|
17986
|
+
const t = fe(it);
|
|
17979
17987
|
return (n, r) => {
|
|
17980
17988
|
var o;
|
|
17981
17989
|
return p(), _("div", {
|
|
@@ -18047,7 +18055,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
18047
18055
|
__name: "SignIn",
|
|
18048
18056
|
emits: ["signedIn"],
|
|
18049
18057
|
setup(e, { emit: t }) {
|
|
18050
|
-
const n = t, r = Ae(), o = Re(), s = fe(
|
|
18058
|
+
const n = t, r = Ae(), o = Re(), s = fe(it), i = fe(_o), a = j(r.getParameter("email") ?? ""), l = j(""), u = j(null);
|
|
18051
18059
|
async function c() {
|
|
18052
18060
|
u.value = null;
|
|
18053
18061
|
try {
|
|
@@ -18167,7 +18175,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
18167
18175
|
__name: "ConfirmAccount",
|
|
18168
18176
|
emits: ["confirmedAccount"],
|
|
18169
18177
|
setup(e, { emit: t }) {
|
|
18170
|
-
const n = t, r = Ae(), { confirmAccount: o, resetPassword: s, signIn: i } = Re(), a = fe(
|
|
18178
|
+
const n = t, r = Ae(), { confirmAccount: o, resetPassword: s, signIn: i } = Re(), a = fe(it), l = j(!0), u = j(null), c = j(!1), d = j(null), f = j(""), h = j(!1), m = j(null), y = Z(() => {
|
|
18171
18179
|
var O;
|
|
18172
18180
|
return (((O = d.value) == null ? void 0 : O.connectedAccounts) ?? []).filter((T) => !T.isConnected);
|
|
18173
18181
|
}), x = Z(() => yc[(a == null ? void 0 : a.value.auth.passwords) ?? "default"]), N = Z(() => x.value.some((O) => !O.test(f.value)));
|
|
@@ -18473,7 +18481,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
18473
18481
|
__name: "ResetPassword",
|
|
18474
18482
|
emits: ["passwordReset"],
|
|
18475
18483
|
setup(e, { emit: t }) {
|
|
18476
|
-
const n = t, r = Ae(), o = Re(), s = fe(
|
|
18484
|
+
const n = t, r = Ae(), o = Re(), s = fe(it), i = Z(() => r.getParameter("email")), a = j(""), l = j(!1), u = j(null), c = Z(() => yc[(s == null ? void 0 : s.value.auth.passwords) ?? "default"]), d = Z(() => c.value.some((h) => !h.test(a.value)));
|
|
18477
18485
|
Be(() => {
|
|
18478
18486
|
(!r.getParameter("email") || !r.getParameter("code")) && (u.value = "Link broken, please try again");
|
|
18479
18487
|
});
|
|
@@ -18595,7 +18603,7 @@ const jt = /* @__PURE__ */ pr(L5, [["render", j5]]), U5 = ["data-corners"], B5 =
|
|
|
18595
18603
|
__name: "SignUp",
|
|
18596
18604
|
emits: ["signedUp"],
|
|
18597
18605
|
setup(e, { emit: t }) {
|
|
18598
|
-
const n = t, r = Ae(), o = Re(), s = fe(Km), i = fe(_o), a = fe(
|
|
18606
|
+
const n = t, r = Ae(), o = Re(), s = fe(Km), i = fe(_o), a = fe(it), l = j(""), u = j(r.getParameter("email") ?? ""), c = j(""), d = j(!1), f = j((a == null ? void 0 : a.value.auth.signUp.marketingConsent) === Lo.OptOut || (a == null ? void 0 : a.value.auth.signUp.marketingConsent) === Lo.OptedInByDefault), h = j(null), m = Z(() => yc[(a == null ? void 0 : a.value.auth.passwords) ?? "default"]), y = Z(() => m.value.some((N) => !N.test(c.value)));
|
|
18599
18607
|
async function x() {
|
|
18600
18608
|
h.value = null;
|
|
18601
18609
|
try {
|
|
@@ -18778,7 +18786,7 @@ const zk = ["data-corners", "data-cards"], Um = /* @__PURE__ */ le({
|
|
|
18778
18786
|
},
|
|
18779
18787
|
emits: ["update:modelValue"],
|
|
18780
18788
|
setup(e) {
|
|
18781
|
-
const t = fe(
|
|
18789
|
+
const t = fe(it);
|
|
18782
18790
|
return (n, r) => {
|
|
18783
18791
|
var o, s;
|
|
18784
18792
|
return p(), _("div", {
|
|
@@ -18840,7 +18848,7 @@ const Wk = { class: "moonbase:bundle-cart-item-content" }, Zk = {
|
|
|
18840
18848
|
currency: {}
|
|
18841
18849
|
},
|
|
18842
18850
|
setup(e) {
|
|
18843
|
-
const t = e, n = oa(t.lineItem.bundleId), r = fe(
|
|
18851
|
+
const t = e, n = oa(t.lineItem.bundleId), r = fe(it), o = Wn(), s = j(!1), i = j(null), a = Z(() => {
|
|
18844
18852
|
var l;
|
|
18845
18853
|
return ((l = t.lineItem.price) == null ? void 0 : l[o.currency.value]) === 0;
|
|
18846
18854
|
});
|
|
@@ -19029,7 +19037,7 @@ const Wk = { class: "moonbase:bundle-cart-item-content" }, Zk = {
|
|
|
19029
19037
|
target: {}
|
|
19030
19038
|
},
|
|
19031
19039
|
setup(e) {
|
|
19032
|
-
const t = e, n = fe(
|
|
19040
|
+
const t = e, n = fe(it), { addToCart: r, currency: o } = Wn(), s = Z(() => {
|
|
19033
19041
|
var l;
|
|
19034
19042
|
return (l = t.target.defaultVariation) == null ? void 0 : l.originalPrice;
|
|
19035
19043
|
}), i = Z(() => t.target.defaultVariation ? Tu.subtract(t.target.defaultVariation.price, Wa.apply(t.offer.discount, t.target.defaultVariation.price)) : s.value), a = Z(() => !tc(s.value, i.value));
|
|
@@ -19165,7 +19173,7 @@ const Wk = { class: "moonbase:bundle-cart-item-content" }, Zk = {
|
|
|
19165
19173
|
target: {}
|
|
19166
19174
|
},
|
|
19167
19175
|
setup(e) {
|
|
19168
|
-
const t = e, n = fe(
|
|
19176
|
+
const t = e, n = fe(it), { addToCart: r, currency: o } = Wn(), s = j(!1), i = j(null);
|
|
19169
19177
|
Qe(s, (c) => {
|
|
19170
19178
|
i.value && (i.value.style.height = c ? `${i.value.scrollHeight}px` : "0px");
|
|
19171
19179
|
});
|
|
@@ -19338,7 +19346,7 @@ const Wk = { class: "moonbase:bundle-cart-item-content" }, Zk = {
|
|
|
19338
19346
|
currency: {}
|
|
19339
19347
|
},
|
|
19340
19348
|
setup(e) {
|
|
19341
|
-
const t = e, n = Us(t.lineItem.productId), r = fe(
|
|
19349
|
+
const t = e, n = Us(t.lineItem.productId), r = fe(it), o = Wn(), s = Z(() => {
|
|
19342
19350
|
var u;
|
|
19343
19351
|
return ((u = t.lineItem.price) == null ? void 0 : u[o.currency.value]) === 0;
|
|
19344
19352
|
});
|
|
@@ -19434,7 +19442,7 @@ const Wk = { class: "moonbase:bundle-cart-item-content" }, Zk = {
|
|
|
19434
19442
|
}), Cx = { class: "moonbase:cart" }, Ox = ["data-background"], Sx = ["data-corners"], Nx = { class: "moonbase:cart-total" }, Px = { "data-error": "" }, Tx = /* @__PURE__ */ le({
|
|
19435
19443
|
__name: "Cart",
|
|
19436
19444
|
setup(e) {
|
|
19437
|
-
const t = dl(), n = Re(), { items: r, total: o, currency: s, checkout: i } = Wn(), a = fe(
|
|
19445
|
+
const t = dl(), n = Re(), { items: r, total: o, currency: s, checkout: i } = Wn(), a = fe(it), l = h1(), u = Z(() => l.value.length === 0 ? null : l.value.find((f) => Array.isArray(f.target) ? f.target.some((h) => !h.owned) : !f.target.owned) || l.value[0]), c = j(null);
|
|
19438
19446
|
async function d() {
|
|
19439
19447
|
c.value = null;
|
|
19440
19448
|
try {
|
|
@@ -21791,7 +21799,7 @@ const V4 = { class: "moonbase:subscriptions" }, L4 = {
|
|
|
21791
21799
|
}), z4 = { class: "moonbase:customer" }, W4 = /* @__PURE__ */ le({
|
|
21792
21800
|
__name: "Customer",
|
|
21793
21801
|
setup(e) {
|
|
21794
|
-
const t = Ae(), { user: n } = Re(), r = fe(
|
|
21802
|
+
const t = Ae(), { user: n } = Re(), r = fe(it), o = Z(() => [
|
|
21795
21803
|
{
|
|
21796
21804
|
intent: W.ViewProducts,
|
|
21797
21805
|
title: "Products",
|
|
@@ -23063,7 +23071,7 @@ const Q4 = { class: "moonbase:product-downloads" }, X4 = ["data-open"], J4 = {
|
|
|
23063
23071
|
}), rC = /* @__PURE__ */ le({
|
|
23064
23072
|
__name: "App",
|
|
23065
23073
|
setup(e) {
|
|
23066
|
-
const t = fe(
|
|
23074
|
+
const t = fe(it), n = Ae();
|
|
23067
23075
|
Qe(() => [n.active, n.intent, n.parameters], ([o, s, i]) => {
|
|
23068
23076
|
Ye("UI updated", { view: o, intent: s, parameters: Ee(i) });
|
|
23069
23077
|
});
|
|
@@ -23154,7 +23162,7 @@ class iC {
|
|
|
23154
23162
|
const d = /^(https:\/\/[a-z\-]+\.(?:beta\.)?moonbase\.sh)(.+)/.exec(t);
|
|
23155
23163
|
d && d.length > 1 && d[1] && (s = d[1], console.warn(`Moonbase url set up incorrectly, should be ${s}, was ${t}`));
|
|
23156
23164
|
}
|
|
23157
|
-
this.storefront = b1(s), this.pinia = F1(), Fy(rC).use(this.storefront).use(this.pinia).provide(
|
|
23165
|
+
this.storefront = b1(s), this.pinia = F1(), Fy(rC).use(this.storefront).use(this.pinia).provide(it, this.options).provide(Km, s.replace(/\/$/, "")).provide(_o, er).provide(sC, this).mount("#moonbase"), this.initialized = !0, window && window.location && this.handleLocationIntent(window.location);
|
|
23158
23166
|
const a = Ae(this.pinia), l = Re(this.storefront);
|
|
23159
23167
|
this.storefront.onStorefrontUpdated((d) => {
|
|
23160
23168
|
er(Lt.StorefrontUpdated, {
|