@moonbase.sh/storefront 0.2.20 → 0.2.21
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 +869 -862
- package/dist/moonbase.umd.cjs +12 -12
- package/package.json +2 -2
package/dist/moonbase.js
CHANGED
|
@@ -133,10 +133,10 @@ class Vt extends Error {
|
|
|
133
133
|
else if (i.path.length === 0)
|
|
134
134
|
r._errors.push(n(i));
|
|
135
135
|
else {
|
|
136
|
-
let a = r,
|
|
137
|
-
for (;
|
|
138
|
-
const
|
|
139
|
-
|
|
136
|
+
let a = r, l = 0;
|
|
137
|
+
for (; l < i.path.length; ) {
|
|
138
|
+
const c = i.path[l];
|
|
139
|
+
l === i.path.length - 1 ? (a[c] = a[c] || { _errors: [] }, a[c]._errors.push(n(i))) : a[c] = a[c] || { _errors: [] }, a = a[c], l++;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
@@ -231,9 +231,9 @@ const fs = (e) => {
|
|
|
231
231
|
path: s
|
|
232
232
|
};
|
|
233
233
|
let a = "";
|
|
234
|
-
const
|
|
235
|
-
for (const
|
|
236
|
-
a =
|
|
234
|
+
const l = r.filter((c) => !!c).slice().reverse();
|
|
235
|
+
for (const c of l)
|
|
236
|
+
a = c(i, { data: t, defaultError: a }).message;
|
|
237
237
|
return {
|
|
238
238
|
...o,
|
|
239
239
|
path: s,
|
|
@@ -425,7 +425,7 @@ class Ee {
|
|
|
425
425
|
code: H.custom,
|
|
426
426
|
...r(o)
|
|
427
427
|
});
|
|
428
|
-
return typeof Promise < "u" && i instanceof Promise ? i.then((
|
|
428
|
+
return typeof Promise < "u" && i instanceof Promise ? i.then((l) => l ? !0 : (a(), !1)) : i ? !0 : (a(), !1);
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
refinement(t, n) {
|
|
@@ -1428,47 +1428,47 @@ class Ze extends Ee {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
_parse(t) {
|
|
1430
1430
|
if (this._getType(t) !== ee.object) {
|
|
1431
|
-
const
|
|
1432
|
-
return te(
|
|
1431
|
+
const c = this._getOrReturnCtx(t);
|
|
1432
|
+
return te(c, {
|
|
1433
1433
|
code: H.invalid_type,
|
|
1434
1434
|
expected: ee.object,
|
|
1435
|
-
received:
|
|
1435
|
+
received: c.parsedType
|
|
1436
1436
|
}), _e;
|
|
1437
1437
|
}
|
|
1438
1438
|
const { status: r, ctx: o } = this._processInputParams(t), { shape: s, keys: i } = this._getCached(), a = [];
|
|
1439
1439
|
if (!(this._def.catchall instanceof fn && this._def.unknownKeys === "strip"))
|
|
1440
|
-
for (const
|
|
1441
|
-
i.includes(
|
|
1442
|
-
const
|
|
1443
|
-
for (const
|
|
1444
|
-
const u = s[
|
|
1445
|
-
|
|
1446
|
-
key: { status: "valid", value:
|
|
1447
|
-
value: u._parse(new Gt(o, d, o.path,
|
|
1448
|
-
alwaysSet:
|
|
1440
|
+
for (const c in o.data)
|
|
1441
|
+
i.includes(c) || a.push(c);
|
|
1442
|
+
const l = [];
|
|
1443
|
+
for (const c of i) {
|
|
1444
|
+
const u = s[c], d = o.data[c];
|
|
1445
|
+
l.push({
|
|
1446
|
+
key: { status: "valid", value: c },
|
|
1447
|
+
value: u._parse(new Gt(o, d, o.path, c)),
|
|
1448
|
+
alwaysSet: c in o.data
|
|
1449
1449
|
});
|
|
1450
1450
|
}
|
|
1451
1451
|
if (this._def.catchall instanceof fn) {
|
|
1452
|
-
const
|
|
1453
|
-
if (
|
|
1452
|
+
const c = this._def.unknownKeys;
|
|
1453
|
+
if (c === "passthrough")
|
|
1454
1454
|
for (const u of a)
|
|
1455
|
-
|
|
1455
|
+
l.push({
|
|
1456
1456
|
key: { status: "valid", value: u },
|
|
1457
1457
|
value: { status: "valid", value: o.data[u] }
|
|
1458
1458
|
});
|
|
1459
|
-
else if (
|
|
1459
|
+
else if (c === "strict")
|
|
1460
1460
|
a.length > 0 && (te(o, {
|
|
1461
1461
|
code: H.unrecognized_keys,
|
|
1462
1462
|
keys: a
|
|
1463
1463
|
}), r.dirty());
|
|
1464
|
-
else if (
|
|
1464
|
+
else if (c !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
1465
1465
|
} else {
|
|
1466
|
-
const
|
|
1466
|
+
const c = this._def.catchall;
|
|
1467
1467
|
for (const u of a) {
|
|
1468
1468
|
const d = o.data[u];
|
|
1469
|
-
|
|
1469
|
+
l.push({
|
|
1470
1470
|
key: { status: "valid", value: u },
|
|
1471
|
-
value:
|
|
1471
|
+
value: c._parse(
|
|
1472
1472
|
new Gt(o, d, o.path, u)
|
|
1473
1473
|
//, ctx.child(key), value, getParsedType(value)
|
|
1474
1474
|
),
|
|
@@ -1477,17 +1477,17 @@ class Ze extends Ee {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
return o.common.async ? Promise.resolve().then(async () => {
|
|
1480
|
-
const
|
|
1481
|
-
for (const u of
|
|
1480
|
+
const c = [];
|
|
1481
|
+
for (const u of l) {
|
|
1482
1482
|
const d = await u.key;
|
|
1483
|
-
|
|
1483
|
+
c.push({
|
|
1484
1484
|
key: d,
|
|
1485
1485
|
value: await u.value,
|
|
1486
1486
|
alwaysSet: u.alwaysSet
|
|
1487
1487
|
});
|
|
1488
1488
|
}
|
|
1489
|
-
return
|
|
1490
|
-
}).then((
|
|
1489
|
+
return c;
|
|
1490
|
+
}).then((c) => dt.mergeObjectSync(r, c)) : dt.mergeObjectSync(r, l);
|
|
1491
1491
|
}
|
|
1492
1492
|
get shape() {
|
|
1493
1493
|
return this._def.shape();
|
|
@@ -1499,11 +1499,11 @@ class Ze extends Ee {
|
|
|
1499
1499
|
...t !== void 0 ? {
|
|
1500
1500
|
errorMap: (n, r) => {
|
|
1501
1501
|
var o, s, i, a;
|
|
1502
|
-
const
|
|
1502
|
+
const l = (i = (s = (o = this._def).errorMap) === null || s === void 0 ? void 0 : s.call(o, n, r).message) !== null && i !== void 0 ? i : r.defaultError;
|
|
1503
1503
|
return n.code === "unrecognized_keys" ? {
|
|
1504
|
-
message: (a = ue.errToObj(t).message) !== null && a !== void 0 ? a :
|
|
1504
|
+
message: (a = ue.errToObj(t).message) !== null && a !== void 0 ? a : l
|
|
1505
1505
|
} : {
|
|
1506
|
-
message:
|
|
1506
|
+
message: l
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
1509
|
} : {}
|
|
@@ -1741,26 +1741,26 @@ class co extends Ee {
|
|
|
1741
1741
|
{
|
|
1742
1742
|
let s;
|
|
1743
1743
|
const i = [];
|
|
1744
|
-
for (const
|
|
1745
|
-
const
|
|
1744
|
+
for (const l of r) {
|
|
1745
|
+
const c = {
|
|
1746
1746
|
...n,
|
|
1747
1747
|
common: {
|
|
1748
1748
|
...n.common,
|
|
1749
1749
|
issues: []
|
|
1750
1750
|
},
|
|
1751
1751
|
parent: null
|
|
1752
|
-
}, u =
|
|
1752
|
+
}, u = l._parseSync({
|
|
1753
1753
|
data: n.data,
|
|
1754
1754
|
path: n.path,
|
|
1755
|
-
parent:
|
|
1755
|
+
parent: c
|
|
1756
1756
|
});
|
|
1757
1757
|
if (u.status === "valid")
|
|
1758
1758
|
return u;
|
|
1759
|
-
u.status === "dirty" && !s && (s = { result: u, ctx:
|
|
1759
|
+
u.status === "dirty" && !s && (s = { result: u, ctx: c }), c.common.issues.length && i.push(c.common.issues);
|
|
1760
1760
|
}
|
|
1761
1761
|
if (s)
|
|
1762
1762
|
return n.common.issues.push(...s.ctx.common.issues), s.result;
|
|
1763
|
-
const a = i.map((
|
|
1763
|
+
const a = i.map((l) => new Vt(l));
|
|
1764
1764
|
return te(n, {
|
|
1765
1765
|
code: H.invalid_union,
|
|
1766
1766
|
unionErrors: a
|
|
@@ -1846,10 +1846,10 @@ function ki(e, t) {
|
|
|
1846
1846
|
if (n === ee.object && r === ee.object) {
|
|
1847
1847
|
const o = Ie.objectKeys(t), s = Ie.objectKeys(e).filter((a) => o.indexOf(a) !== -1), i = { ...e, ...t };
|
|
1848
1848
|
for (const a of s) {
|
|
1849
|
-
const
|
|
1850
|
-
if (!
|
|
1849
|
+
const l = ki(e[a], t[a]);
|
|
1850
|
+
if (!l.valid)
|
|
1851
1851
|
return { valid: !1 };
|
|
1852
|
-
i[a] =
|
|
1852
|
+
i[a] = l.data;
|
|
1853
1853
|
}
|
|
1854
1854
|
return { valid: !0, data: i };
|
|
1855
1855
|
} else if (n === ee.array && r === ee.array) {
|
|
@@ -1857,10 +1857,10 @@ function ki(e, t) {
|
|
|
1857
1857
|
return { valid: !1 };
|
|
1858
1858
|
const o = [];
|
|
1859
1859
|
for (let s = 0; s < e.length; s++) {
|
|
1860
|
-
const i = e[s], a = t[s],
|
|
1861
|
-
if (!
|
|
1860
|
+
const i = e[s], a = t[s], l = ki(i, a);
|
|
1861
|
+
if (!l.valid)
|
|
1862
1862
|
return { valid: !1 };
|
|
1863
|
-
o.push(
|
|
1863
|
+
o.push(l.data);
|
|
1864
1864
|
}
|
|
1865
1865
|
return { valid: !0, data: o };
|
|
1866
1866
|
} else return n === ee.date && r === ee.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
|
|
@@ -1928,8 +1928,8 @@ class Jt extends Ee {
|
|
|
1928
1928
|
type: "array"
|
|
1929
1929
|
}), n.dirty());
|
|
1930
1930
|
const s = [...r.data].map((i, a) => {
|
|
1931
|
-
const
|
|
1932
|
-
return
|
|
1931
|
+
const l = this._def.items[a] || this._def.rest;
|
|
1932
|
+
return l ? l._parse(new Gt(r, i, r.path, a)) : null;
|
|
1933
1933
|
}).filter((i) => !!i);
|
|
1934
1934
|
return r.common.async ? Promise.all(s).then((i) => dt.mergeArray(n, i)) : dt.mergeArray(n, s);
|
|
1935
1935
|
}
|
|
@@ -2008,28 +2008,28 @@ class vs extends Ee {
|
|
|
2008
2008
|
expected: ee.map,
|
|
2009
2009
|
received: r.parsedType
|
|
2010
2010
|
}), _e;
|
|
2011
|
-
const o = this._def.keyType, s = this._def.valueType, i = [...r.data.entries()].map(([a,
|
|
2012
|
-
key: o._parse(new Gt(r, a, r.path, [
|
|
2013
|
-
value: s._parse(new Gt(r,
|
|
2011
|
+
const o = this._def.keyType, s = this._def.valueType, i = [...r.data.entries()].map(([a, l], c) => ({
|
|
2012
|
+
key: o._parse(new Gt(r, a, r.path, [c, "key"])),
|
|
2013
|
+
value: s._parse(new Gt(r, l, r.path, [c, "value"]))
|
|
2014
2014
|
}));
|
|
2015
2015
|
if (r.common.async) {
|
|
2016
2016
|
const a = /* @__PURE__ */ new Map();
|
|
2017
2017
|
return Promise.resolve().then(async () => {
|
|
2018
|
-
for (const
|
|
2019
|
-
const
|
|
2020
|
-
if (
|
|
2018
|
+
for (const l of i) {
|
|
2019
|
+
const c = await l.key, u = await l.value;
|
|
2020
|
+
if (c.status === "aborted" || u.status === "aborted")
|
|
2021
2021
|
return _e;
|
|
2022
|
-
(
|
|
2022
|
+
(c.status === "dirty" || u.status === "dirty") && n.dirty(), a.set(c.value, u.value);
|
|
2023
2023
|
}
|
|
2024
2024
|
return { status: n.value, value: a };
|
|
2025
2025
|
});
|
|
2026
2026
|
} else {
|
|
2027
2027
|
const a = /* @__PURE__ */ new Map();
|
|
2028
|
-
for (const
|
|
2029
|
-
const
|
|
2030
|
-
if (
|
|
2028
|
+
for (const l of i) {
|
|
2029
|
+
const c = l.key, u = l.value;
|
|
2030
|
+
if (c.status === "aborted" || u.status === "aborted")
|
|
2031
2031
|
return _e;
|
|
2032
|
-
(
|
|
2032
|
+
(c.status === "dirty" || u.status === "dirty") && n.dirty(), a.set(c.value, u.value);
|
|
2033
2033
|
}
|
|
2034
2034
|
return { status: n.value, value: a };
|
|
2035
2035
|
}
|
|
@@ -2067,17 +2067,17 @@ class yr extends Ee {
|
|
|
2067
2067
|
message: o.maxSize.message
|
|
2068
2068
|
}), n.dirty());
|
|
2069
2069
|
const s = this._def.valueType;
|
|
2070
|
-
function i(
|
|
2071
|
-
const
|
|
2072
|
-
for (const u of
|
|
2070
|
+
function i(l) {
|
|
2071
|
+
const c = /* @__PURE__ */ new Set();
|
|
2072
|
+
for (const u of l) {
|
|
2073
2073
|
if (u.status === "aborted")
|
|
2074
2074
|
return _e;
|
|
2075
|
-
u.status === "dirty" && n.dirty(),
|
|
2075
|
+
u.status === "dirty" && n.dirty(), c.add(u.value);
|
|
2076
2076
|
}
|
|
2077
|
-
return { status: n.value, value:
|
|
2077
|
+
return { status: n.value, value: c };
|
|
2078
2078
|
}
|
|
2079
|
-
const a = [...r.data.values()].map((
|
|
2080
|
-
return r.common.async ? Promise.all(a).then((
|
|
2079
|
+
const a = [...r.data.values()].map((l, c) => s._parse(new Gt(r, l, r.path, c)));
|
|
2080
|
+
return r.common.async ? Promise.all(a).then((l) => i(l)) : i(a);
|
|
2081
2081
|
}
|
|
2082
2082
|
min(t, n) {
|
|
2083
2083
|
return new yr({
|
|
@@ -2117,7 +2117,7 @@ class Tr extends Ee {
|
|
|
2117
2117
|
expected: ee.function,
|
|
2118
2118
|
received: n.parsedType
|
|
2119
2119
|
}), _e;
|
|
2120
|
-
function r(a,
|
|
2120
|
+
function r(a, l) {
|
|
2121
2121
|
return fs({
|
|
2122
2122
|
data: a,
|
|
2123
2123
|
path: n.path,
|
|
@@ -2126,14 +2126,14 @@ class Tr extends Ee {
|
|
|
2126
2126
|
n.schemaErrorMap,
|
|
2127
2127
|
ds(),
|
|
2128
2128
|
oo
|
|
2129
|
-
].filter((
|
|
2129
|
+
].filter((c) => !!c),
|
|
2130
2130
|
issueData: {
|
|
2131
2131
|
code: H.invalid_arguments,
|
|
2132
|
-
argumentsError:
|
|
2132
|
+
argumentsError: l
|
|
2133
2133
|
}
|
|
2134
2134
|
});
|
|
2135
2135
|
}
|
|
2136
|
-
function o(a,
|
|
2136
|
+
function o(a, l) {
|
|
2137
2137
|
return fs({
|
|
2138
2138
|
data: a,
|
|
2139
2139
|
path: n.path,
|
|
@@ -2142,31 +2142,31 @@ class Tr extends Ee {
|
|
|
2142
2142
|
n.schemaErrorMap,
|
|
2143
2143
|
ds(),
|
|
2144
2144
|
oo
|
|
2145
|
-
].filter((
|
|
2145
|
+
].filter((c) => !!c),
|
|
2146
2146
|
issueData: {
|
|
2147
2147
|
code: H.invalid_return_type,
|
|
2148
|
-
returnTypeError:
|
|
2148
|
+
returnTypeError: l
|
|
2149
2149
|
}
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
2152
|
const s = { errorMap: n.common.contextualErrorMap }, i = n.data;
|
|
2153
2153
|
if (this._def.returns instanceof Dr) {
|
|
2154
2154
|
const a = this;
|
|
2155
|
-
return gt(async function(...
|
|
2156
|
-
const
|
|
2157
|
-
throw
|
|
2155
|
+
return gt(async function(...l) {
|
|
2156
|
+
const c = new Vt([]), u = await a._def.args.parseAsync(l, s).catch((m) => {
|
|
2157
|
+
throw c.addIssue(r(l, m)), c;
|
|
2158
2158
|
}), d = await Reflect.apply(i, this, u);
|
|
2159
2159
|
return await a._def.returns._def.type.parseAsync(d, s).catch((m) => {
|
|
2160
|
-
throw
|
|
2160
|
+
throw c.addIssue(o(d, m)), c;
|
|
2161
2161
|
});
|
|
2162
2162
|
});
|
|
2163
2163
|
} else {
|
|
2164
2164
|
const a = this;
|
|
2165
|
-
return gt(function(...
|
|
2166
|
-
const
|
|
2167
|
-
if (!
|
|
2168
|
-
throw new Vt([r(
|
|
2169
|
-
const u = Reflect.apply(i, this,
|
|
2165
|
+
return gt(function(...l) {
|
|
2166
|
+
const c = a._def.args.safeParse(l, s);
|
|
2167
|
+
if (!c.success)
|
|
2168
|
+
throw new Vt([r(l, c.error)]);
|
|
2169
|
+
const u = Reflect.apply(i, this, c.data), d = a._def.returns.safeParse(u, s);
|
|
2170
2170
|
if (!d.success)
|
|
2171
2171
|
throw new Vt([o(u, d.error)]);
|
|
2172
2172
|
return d.data;
|
|
@@ -2384,10 +2384,10 @@ class jt extends Ee {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
if (o.type === "refinement") {
|
|
2386
2386
|
const i = (a) => {
|
|
2387
|
-
const
|
|
2387
|
+
const l = o.refinement(a, s);
|
|
2388
2388
|
if (r.common.async)
|
|
2389
|
-
return Promise.resolve(
|
|
2390
|
-
if (
|
|
2389
|
+
return Promise.resolve(l);
|
|
2390
|
+
if (l instanceof Promise)
|
|
2391
2391
|
throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
2392
2392
|
return a;
|
|
2393
2393
|
};
|
|
@@ -2605,8 +2605,8 @@ _s.create = (e, t) => new _s({
|
|
|
2605
2605
|
const hc = (e, t = {}, n) => e ? Ir.create().superRefine((r, o) => {
|
|
2606
2606
|
var s, i;
|
|
2607
2607
|
if (!e(r)) {
|
|
2608
|
-
const a = typeof t == "function" ? t(r) : typeof t == "string" ? { message: t } : t,
|
|
2609
|
-
o.addIssue({ code: "custom", ...
|
|
2608
|
+
const a = typeof t == "function" ? t(r) : typeof t == "string" ? { message: t } : t, l = (i = (s = a.fatal) !== null && s !== void 0 ? s : n) !== null && i !== void 0 ? i : !0, c = typeof a == "string" ? { message: a } : a;
|
|
2609
|
+
o.addIssue({ code: "custom", ...c, fatal: l });
|
|
2610
2610
|
}
|
|
2611
2611
|
}) : Ir.create(), hf = {
|
|
2612
2612
|
object: Ze.lazycreate
|
|
@@ -2768,11 +2768,11 @@ var Ci = { exports: {} };
|
|
|
2768
2768
|
formData: "FormData" in s,
|
|
2769
2769
|
arrayBuffer: "ArrayBuffer" in s
|
|
2770
2770
|
};
|
|
2771
|
-
function
|
|
2771
|
+
function l(w) {
|
|
2772
2772
|
return w && DataView.prototype.isPrototypeOf(w);
|
|
2773
2773
|
}
|
|
2774
2774
|
if (a.arrayBuffer)
|
|
2775
|
-
var
|
|
2775
|
+
var c = [
|
|
2776
2776
|
"[object Int8Array]",
|
|
2777
2777
|
"[object Uint8Array]",
|
|
2778
2778
|
"[object Uint8ClampedArray]",
|
|
@@ -2783,7 +2783,7 @@ var Ci = { exports: {} };
|
|
|
2783
2783
|
"[object Float32Array]",
|
|
2784
2784
|
"[object Float64Array]"
|
|
2785
2785
|
], u = ArrayBuffer.isView || function(w) {
|
|
2786
|
-
return w &&
|
|
2786
|
+
return w && c.indexOf(Object.prototype.toString.call(w)) > -1;
|
|
2787
2787
|
};
|
|
2788
2788
|
function d(w) {
|
|
2789
2789
|
if (typeof w != "string" && (w = String(w)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))
|
|
@@ -2879,7 +2879,7 @@ var Ci = { exports: {} };
|
|
|
2879
2879
|
}
|
|
2880
2880
|
function $() {
|
|
2881
2881
|
return this.bodyUsed = !1, this._initBody = function(w) {
|
|
2882
|
-
this._bodyInit = w, w ? typeof w == "string" ? this._bodyText = w : a.blob && Blob.prototype.isPrototypeOf(w) ? this._bodyBlob = w : a.formData && FormData.prototype.isPrototypeOf(w) ? this._bodyFormData = w : a.searchParams && URLSearchParams.prototype.isPrototypeOf(w) ? this._bodyText = w.toString() : a.arrayBuffer && a.blob &&
|
|
2882
|
+
this._bodyInit = w, w ? typeof w == "string" ? this._bodyText = w : a.blob && Blob.prototype.isPrototypeOf(w) ? this._bodyBlob = w : a.formData && FormData.prototype.isPrototypeOf(w) ? this._bodyFormData = w : a.searchParams && URLSearchParams.prototype.isPrototypeOf(w) ? this._bodyText = w.toString() : a.arrayBuffer && a.blob && l(w) ? (this._bodyArrayBuffer = z(w.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(w) || u(w)) ? this._bodyArrayBuffer = z(w) : this._bodyText = w = Object.prototype.toString.call(w) : this._bodyText = "", this.headers.get("content-type") || (typeof w == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(w) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2883
2883
|
}, a.blob && (this.blob = function() {
|
|
2884
2884
|
var w = E(this);
|
|
2885
2885
|
if (w)
|
|
@@ -3249,8 +3249,8 @@ var bc = v.object({
|
|
|
3249
3249
|
address: r,
|
|
3250
3250
|
acceptedPrivacyPolicy: o,
|
|
3251
3251
|
acceptedTermsAndConditions: s
|
|
3252
|
-
}),
|
|
3253
|
-
return this.tokenStore.setUser(
|
|
3252
|
+
}), l = $i.parse(a.data);
|
|
3253
|
+
return this.tokenStore.setUser(l), l;
|
|
3254
3254
|
}
|
|
3255
3255
|
async update(e, t, n, r) {
|
|
3256
3256
|
return {
|
|
@@ -3642,7 +3642,7 @@ const Fe = $c.NODE_ENV !== "production" ? Object.freeze({}) : {}, Pr = $c.NODE_E
|
|
|
3642
3642
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ws = (e) => e.startsWith("onUpdate:"), qe = Object.assign, ca = (e, t) => {
|
|
3643
3643
|
const n = e.indexOf(t);
|
|
3644
3644
|
n > -1 && e.splice(n, 1);
|
|
3645
|
-
}, Pp = Object.prototype.hasOwnProperty,
|
|
3645
|
+
}, Pp = Object.prototype.hasOwnProperty, Se = (e, t) => Pp.call(e, t), le = Array.isArray, cr = (e) => Vs(e) === "[object Map]", Ic = (e) => Vs(e) === "[object Set]", pe = (e) => typeof e == "function", Be = (e) => typeof e == "string", qn = (e) => typeof e == "symbol", De = (e) => e !== null && typeof e == "object", ua = (e) => (De(e) || pe(e)) && pe(e.then) && pe(e.catch), Dc = Object.prototype.toString, Vs = (e) => Dc.call(e), da = (e) => Vs(e).slice(8, -1), Ac = (e) => Vs(e) === "[object Object]", fa = (e) => Be(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Qr = /* @__PURE__ */ vn(
|
|
3646
3646
|
// the leading comma is intentional so empty string "" is also included
|
|
3647
3647
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
3648
3648
|
), $p = /* @__PURE__ */ vn(
|
|
@@ -3650,7 +3650,7 @@ const Fe = $c.NODE_ENV !== "production" ? Object.freeze({}) : {}, Pr = $c.NODE_E
|
|
|
3650
3650
|
), Rs = (e) => {
|
|
3651
3651
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3652
3652
|
return (n) => t[n] || (t[n] = e(n));
|
|
3653
|
-
}, Ip = /-(\w)/g,
|
|
3653
|
+
}, Ip = /-(\w)/g, St = Rs((e) => e.replace(Ip, (t, n) => n ? n.toUpperCase() : "")), Dp = /\B([A-Z])/g, pn = Rs(
|
|
3654
3654
|
(e) => e.replace(Dp, "-$1").toLowerCase()
|
|
3655
3655
|
), br = Rs((e) => e.charAt(0).toUpperCase() + e.slice(1)), er = Rs((e) => e ? `on${br(e)}` : ""), Mn = (e, t) => !Object.is(e, t), Fr = (e, ...t) => {
|
|
3656
3656
|
for (let n = 0; n < e.length; n++)
|
|
@@ -3712,7 +3712,7 @@ const Up = "html,body,base,head,link,meta,style,title,address,article,aside,foot
|
|
|
3712
3712
|
function Vc(e) {
|
|
3713
3713
|
return !!e || e === "";
|
|
3714
3714
|
}
|
|
3715
|
-
const Rc = (e) => !!(e && e.__v_isRef === !0), K = (e) => Be(e) ? e : e == null ? "" : le(e) || De(e) && (e.toString === Dc || !
|
|
3715
|
+
const Rc = (e) => !!(e && e.__v_isRef === !0), K = (e) => Be(e) ? e : e == null ? "" : le(e) || De(e) && (e.toString === Dc || !pe(e.toString)) ? Rc(e) ? K(e.value) : JSON.stringify(e, jc, 2) : String(e), jc = (e, t) => Rc(t) ? jc(e, t.value) : cr(t) ? {
|
|
3716
3716
|
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
3717
3717
|
(n, [r, o], s) => (n[ii(r, s) + " =>"] = o, n),
|
|
3718
3718
|
{}
|
|
@@ -3731,10 +3731,10 @@ var ze = {};
|
|
|
3731
3731
|
function Yt(e, ...t) {
|
|
3732
3732
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
3733
3733
|
}
|
|
3734
|
-
let
|
|
3734
|
+
let Et;
|
|
3735
3735
|
class Lc {
|
|
3736
3736
|
constructor(t = !1) {
|
|
3737
|
-
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent =
|
|
3737
|
+
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = Et, !t && Et && (this.index = (Et.scopes || (Et.scopes = [])).push(
|
|
3738
3738
|
this
|
|
3739
3739
|
) - 1);
|
|
3740
3740
|
}
|
|
@@ -3743,11 +3743,11 @@ class Lc {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
run(t) {
|
|
3745
3745
|
if (this._active) {
|
|
3746
|
-
const n =
|
|
3746
|
+
const n = Et;
|
|
3747
3747
|
try {
|
|
3748
|
-
return
|
|
3748
|
+
return Et = this, t();
|
|
3749
3749
|
} finally {
|
|
3750
|
-
|
|
3750
|
+
Et = n;
|
|
3751
3751
|
}
|
|
3752
3752
|
} else ze.NODE_ENV !== "production" && Yt("cannot run an inactive effect scope.");
|
|
3753
3753
|
}
|
|
@@ -3756,14 +3756,14 @@ class Lc {
|
|
|
3756
3756
|
* @internal
|
|
3757
3757
|
*/
|
|
3758
3758
|
on() {
|
|
3759
|
-
|
|
3759
|
+
Et = this;
|
|
3760
3760
|
}
|
|
3761
3761
|
/**
|
|
3762
3762
|
* This should only be called on non-detached scopes
|
|
3763
3763
|
* @internal
|
|
3764
3764
|
*/
|
|
3765
3765
|
off() {
|
|
3766
|
-
|
|
3766
|
+
Et = this.parent;
|
|
3767
3767
|
}
|
|
3768
3768
|
stop(t) {
|
|
3769
3769
|
if (this._active) {
|
|
@@ -3786,14 +3786,14 @@ class Lc {
|
|
|
3786
3786
|
function Mc(e) {
|
|
3787
3787
|
return new Lc(e);
|
|
3788
3788
|
}
|
|
3789
|
-
function Kp(e, t =
|
|
3789
|
+
function Kp(e, t = Et) {
|
|
3790
3790
|
t && t.active && t.effects.push(e);
|
|
3791
3791
|
}
|
|
3792
3792
|
function Uc() {
|
|
3793
|
-
return
|
|
3793
|
+
return Et;
|
|
3794
3794
|
}
|
|
3795
3795
|
function Gp(e) {
|
|
3796
|
-
|
|
3796
|
+
Et ? Et.cleanups.push(e) : ze.NODE_ENV !== "production" && Yt(
|
|
3797
3797
|
"onScopeDispose() is called when there is no active effect scope to be associated with."
|
|
3798
3798
|
);
|
|
3799
3799
|
}
|
|
@@ -3910,9 +3910,9 @@ function Wt(e, t, n, r, o, s) {
|
|
|
3910
3910
|
if (t === "clear")
|
|
3911
3911
|
a = [...i.values()];
|
|
3912
3912
|
else if (n === "length" && le(e)) {
|
|
3913
|
-
const
|
|
3914
|
-
i.forEach((
|
|
3915
|
-
(u === "length" || !qn(u) && u >=
|
|
3913
|
+
const l = Number(r);
|
|
3914
|
+
i.forEach((c, u) => {
|
|
3915
|
+
(u === "length" || !qn(u) && u >= l) && a.push(c);
|
|
3916
3916
|
});
|
|
3917
3917
|
} else
|
|
3918
3918
|
switch (n !== void 0 && a.push(i.get(n)), t) {
|
|
@@ -3927,9 +3927,9 @@ function Wt(e, t, n, r, o, s) {
|
|
|
3927
3927
|
break;
|
|
3928
3928
|
}
|
|
3929
3929
|
va();
|
|
3930
|
-
for (const
|
|
3931
|
-
|
|
3932
|
-
|
|
3930
|
+
for (const l of a)
|
|
3931
|
+
l && Zc(
|
|
3932
|
+
l,
|
|
3933
3933
|
4,
|
|
3934
3934
|
ze.NODE_ENV !== "production" ? {
|
|
3935
3935
|
target: e,
|
|
@@ -3990,7 +3990,7 @@ class zc {
|
|
|
3990
3990
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
|
|
3991
3991
|
const i = le(t);
|
|
3992
3992
|
if (!o) {
|
|
3993
|
-
if (i &&
|
|
3993
|
+
if (i && Se(il, n))
|
|
3994
3994
|
return Reflect.get(il, n, r);
|
|
3995
3995
|
if (n === "hasOwnProperty")
|
|
3996
3996
|
return eh;
|
|
@@ -4006,15 +4006,15 @@ class Kc extends zc {
|
|
|
4006
4006
|
set(t, n, r, o) {
|
|
4007
4007
|
let s = t[n];
|
|
4008
4008
|
if (!this._isShallow) {
|
|
4009
|
-
const
|
|
4009
|
+
const l = hn(s);
|
|
4010
4010
|
if (!un(r) && !hn(r) && (s = ge(s), r = ge(r)), !le(t) && He(s) && !He(r))
|
|
4011
|
-
return
|
|
4011
|
+
return l ? !1 : (s.value = r, !0);
|
|
4012
4012
|
}
|
|
4013
|
-
const i = le(t) && fa(n) ? Number(n) < t.length :
|
|
4013
|
+
const i = le(t) && fa(n) ? Number(n) < t.length : Se(t, n), a = Reflect.set(t, n, r, o);
|
|
4014
4014
|
return t === ge(o) && (i ? Mn(r, s) && Wt(t, "set", n, r, s) : Wt(t, "add", n, r)), a;
|
|
4015
4015
|
}
|
|
4016
4016
|
deleteProperty(t, n) {
|
|
4017
|
-
const r =
|
|
4017
|
+
const r = Se(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
|
|
4018
4018
|
return s && r && Wt(t, "delete", n, void 0, o), s;
|
|
4019
4019
|
}
|
|
4020
4020
|
has(t, n) {
|
|
@@ -4093,21 +4093,21 @@ function ul() {
|
|
|
4093
4093
|
}
|
|
4094
4094
|
function Ho(e, t) {
|
|
4095
4095
|
return function(r, o) {
|
|
4096
|
-
const s = this, i = s.__v_raw, a = ge(i),
|
|
4097
|
-
return !e && lt(a, "iterate", dr), i.forEach((
|
|
4096
|
+
const s = this, i = s.__v_raw, a = ge(i), l = t ? ya : e ? _a : go;
|
|
4097
|
+
return !e && lt(a, "iterate", dr), i.forEach((c, u) => r.call(o, l(c), l(u), s));
|
|
4098
4098
|
};
|
|
4099
4099
|
}
|
|
4100
4100
|
function Zo(e, t, n) {
|
|
4101
4101
|
return function(...r) {
|
|
4102
|
-
const o = this.__v_raw, s = ge(o), i = cr(s), a = e === "entries" || e === Symbol.iterator && i,
|
|
4102
|
+
const o = this.__v_raw, s = ge(o), i = cr(s), a = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, c = o[e](...r), u = n ? ya : t ? _a : go;
|
|
4103
4103
|
return !t && lt(
|
|
4104
4104
|
s,
|
|
4105
4105
|
"iterate",
|
|
4106
|
-
|
|
4106
|
+
l ? Ai : dr
|
|
4107
4107
|
), {
|
|
4108
4108
|
// iterator protocol
|
|
4109
4109
|
next() {
|
|
4110
|
-
const { value: d, done: f } =
|
|
4110
|
+
const { value: d, done: f } = c.next();
|
|
4111
4111
|
return f ? { value: d, done: f } : {
|
|
4112
4112
|
value: a ? [u(d[0]), u(d[1])] : u(d),
|
|
4113
4113
|
done: f
|
|
@@ -4221,7 +4221,7 @@ const [
|
|
|
4221
4221
|
function Ms(e, t) {
|
|
4222
4222
|
const n = t ? e ? ch : lh : e ? ah : ih;
|
|
4223
4223
|
return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
|
|
4224
|
-
|
|
4224
|
+
Se(n, o) && o in r ? n : r,
|
|
4225
4225
|
o,
|
|
4226
4226
|
s
|
|
4227
4227
|
);
|
|
@@ -4369,7 +4369,7 @@ getter: `, this.getter), ts(t, 2)), t._value;
|
|
|
4369
4369
|
}
|
|
4370
4370
|
function yh(e, t, n = !1) {
|
|
4371
4371
|
let r, o;
|
|
4372
|
-
const s =
|
|
4372
|
+
const s = pe(e);
|
|
4373
4373
|
s ? (r = e, o = ze.NODE_ENV !== "production" ? () => {
|
|
4374
4374
|
Yt("Write operation failed: computed value is readonly");
|
|
4375
4375
|
} : We) : (r = e.get, o = e.set);
|
|
@@ -4437,7 +4437,7 @@ function b(e) {
|
|
|
4437
4437
|
return He(e) ? e.value : e;
|
|
4438
4438
|
}
|
|
4439
4439
|
function wh(e) {
|
|
4440
|
-
return
|
|
4440
|
+
return pe(e) ? e() : b(e);
|
|
4441
4441
|
}
|
|
4442
4442
|
const Eh = {
|
|
4443
4443
|
get: (e, t, n) => b(Reflect.get(e, t, n)),
|
|
@@ -4480,7 +4480,7 @@ class Nh {
|
|
|
4480
4480
|
}
|
|
4481
4481
|
}
|
|
4482
4482
|
function ai(e, t, n) {
|
|
4483
|
-
return He(e) ? e :
|
|
4483
|
+
return He(e) ? e : pe(e) ? new Nh(e) : De(e) && arguments.length > 1 ? iu(e, t, n) : T(e);
|
|
4484
4484
|
}
|
|
4485
4485
|
function iu(e, t, n) {
|
|
4486
4486
|
const r = e[t];
|
|
@@ -4563,7 +4563,7 @@ function Ch(e) {
|
|
|
4563
4563
|
}), n.length > 3 && t.push(" ..."), t;
|
|
4564
4564
|
}
|
|
4565
4565
|
function au(e, t, n) {
|
|
4566
|
-
return Be(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : He(t) ? (t = au(e, ge(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) :
|
|
4566
|
+
return Be(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : He(t) ? (t = au(e, ge(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : pe(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = ge(t), n ? t : [`${e}=`, t]);
|
|
4567
4567
|
}
|
|
4568
4568
|
function Th(e, t) {
|
|
4569
4569
|
g.NODE_ENV !== "production" && e !== void 0 && (typeof e != "number" ? U(`${t} is not a valid number - got ${JSON.stringify(e)}.`) : isNaN(e) && U(`${t} is NaN - the duration expression might be incorrect.`));
|
|
@@ -4608,7 +4608,7 @@ function dn(e, t, n, r) {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
}
|
|
4610
4610
|
function Ct(e, t, n, r) {
|
|
4611
|
-
if (
|
|
4611
|
+
if (pe(e)) {
|
|
4612
4612
|
const o = dn(e, t, n, r);
|
|
4613
4613
|
return o && ua(o) && o.catch((s) => {
|
|
4614
4614
|
To(s, t, n);
|
|
@@ -4629,18 +4629,18 @@ function To(e, t, n, r = !0) {
|
|
|
4629
4629
|
let s = t.parent;
|
|
4630
4630
|
const i = t.proxy, a = g.NODE_ENV !== "production" ? ba[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
4631
4631
|
for (; s; ) {
|
|
4632
|
-
const
|
|
4633
|
-
if (
|
|
4634
|
-
for (let u = 0; u <
|
|
4635
|
-
if (
|
|
4632
|
+
const c = s.ec;
|
|
4633
|
+
if (c) {
|
|
4634
|
+
for (let u = 0; u < c.length; u++)
|
|
4635
|
+
if (c[u](e, i, a) === !1)
|
|
4636
4636
|
return;
|
|
4637
4637
|
}
|
|
4638
4638
|
s = s.parent;
|
|
4639
4639
|
}
|
|
4640
|
-
const
|
|
4641
|
-
if (
|
|
4640
|
+
const l = t.appContext.config.errorHandler;
|
|
4641
|
+
if (l) {
|
|
4642
4642
|
gn(), dn(
|
|
4643
|
-
|
|
4643
|
+
l,
|
|
4644
4644
|
null,
|
|
4645
4645
|
10,
|
|
4646
4646
|
[e, i, a]
|
|
@@ -4941,8 +4941,8 @@ function Gn(e, t, n, r) {
|
|
|
4941
4941
|
for (let i = 0; i < o.length; i++) {
|
|
4942
4942
|
const a = o[i];
|
|
4943
4943
|
s && (a.oldValue = s[i].value);
|
|
4944
|
-
let
|
|
4945
|
-
|
|
4944
|
+
let l = a.dir[r];
|
|
4945
|
+
l && (gn(), Ct(l, n, 8, [
|
|
4946
4946
|
e.el,
|
|
4947
4947
|
a,
|
|
4948
4948
|
e,
|
|
@@ -5012,38 +5012,38 @@ const xt = [Function, Array], yu = {
|
|
|
5012
5012
|
const i = ge(e), { mode: a } = i;
|
|
5013
5013
|
if (g.NODE_ENV !== "production" && a && a !== "in-out" && a !== "out-in" && a !== "default" && U(`invalid <transition> mode: ${a}`), r.isLeaving)
|
|
5014
5014
|
return ui(s);
|
|
5015
|
-
const
|
|
5016
|
-
if (!
|
|
5015
|
+
const l = hl(s);
|
|
5016
|
+
if (!l)
|
|
5017
5017
|
return ui(s);
|
|
5018
|
-
let
|
|
5019
|
-
|
|
5018
|
+
let c = ji(
|
|
5019
|
+
l,
|
|
5020
5020
|
i,
|
|
5021
5021
|
r,
|
|
5022
5022
|
n,
|
|
5023
5023
|
// #11061, ensure enterHooks is fresh after clone
|
|
5024
|
-
(f) =>
|
|
5024
|
+
(f) => c = f
|
|
5025
5025
|
);
|
|
5026
|
-
ks(
|
|
5026
|
+
ks(l, c);
|
|
5027
5027
|
const u = n.subTree, d = u && hl(u);
|
|
5028
|
-
if (d && d.type !== Ke && !or(
|
|
5028
|
+
if (d && d.type !== Ke && !or(l, d) && _u(n).type !== Ke) {
|
|
5029
5029
|
const f = ji(
|
|
5030
5030
|
d,
|
|
5031
5031
|
i,
|
|
5032
5032
|
r,
|
|
5033
5033
|
n
|
|
5034
5034
|
);
|
|
5035
|
-
if (ks(d, f), a === "out-in" &&
|
|
5035
|
+
if (ks(d, f), a === "out-in" && l.type !== Ke)
|
|
5036
5036
|
return r.isLeaving = !0, f.afterLeave = () => {
|
|
5037
5037
|
r.isLeaving = !1, n.update.active !== !1 && (n.effect.dirty = !0, n.update());
|
|
5038
5038
|
}, ui(s);
|
|
5039
|
-
a === "in-out" &&
|
|
5039
|
+
a === "in-out" && l.type !== Ke && (f.delayLeave = (m, y, E) => {
|
|
5040
5040
|
const N = bu(
|
|
5041
5041
|
r,
|
|
5042
5042
|
d
|
|
5043
5043
|
);
|
|
5044
5044
|
N[String(d.key)] = d, m[Sn] = () => {
|
|
5045
|
-
y(), m[Sn] = void 0, delete
|
|
5046
|
-
},
|
|
5045
|
+
y(), m[Sn] = void 0, delete c.delayedLeave;
|
|
5046
|
+
}, c.delayedLeave = E;
|
|
5047
5047
|
});
|
|
5048
5048
|
}
|
|
5049
5049
|
return s;
|
|
@@ -5060,8 +5060,8 @@ function ji(e, t, n, r, o) {
|
|
|
5060
5060
|
appear: s,
|
|
5061
5061
|
mode: i,
|
|
5062
5062
|
persisted: a = !1,
|
|
5063
|
-
onBeforeEnter:
|
|
5064
|
-
onEnter:
|
|
5063
|
+
onBeforeEnter: l,
|
|
5064
|
+
onEnter: c,
|
|
5065
5065
|
onAfterEnter: u,
|
|
5066
5066
|
onEnterCancelled: d,
|
|
5067
5067
|
onBeforeLeave: f,
|
|
@@ -5086,10 +5086,10 @@ function ji(e, t, n, r, o) {
|
|
|
5086
5086
|
mode: i,
|
|
5087
5087
|
persisted: a,
|
|
5088
5088
|
beforeEnter(Y) {
|
|
5089
|
-
let V =
|
|
5089
|
+
let V = l;
|
|
5090
5090
|
if (!n.isMounted)
|
|
5091
5091
|
if (s)
|
|
5092
|
-
V = N ||
|
|
5092
|
+
V = N || l;
|
|
5093
5093
|
else
|
|
5094
5094
|
return;
|
|
5095
5095
|
Y[Sn] && Y[Sn](
|
|
@@ -5100,10 +5100,10 @@ function ji(e, t, n, r, o) {
|
|
|
5100
5100
|
P && or(e, P) && P.el[Sn] && P.el[Sn](), Z(V, [Y]);
|
|
5101
5101
|
},
|
|
5102
5102
|
enter(Y) {
|
|
5103
|
-
let V =
|
|
5103
|
+
let V = c, P = u, j = d;
|
|
5104
5104
|
if (!n.isMounted)
|
|
5105
5105
|
if (s)
|
|
5106
|
-
V = A ||
|
|
5106
|
+
V = A || c, P = F || u, j = C || d;
|
|
5107
5107
|
else
|
|
5108
5108
|
return;
|
|
5109
5109
|
let oe = !1;
|
|
@@ -5152,7 +5152,7 @@ function hl(e) {
|
|
|
5152
5152
|
if (n) {
|
|
5153
5153
|
if (t & 16)
|
|
5154
5154
|
return n[0];
|
|
5155
|
-
if (t & 32 &&
|
|
5155
|
+
if (t & 32 && pe(n.default))
|
|
5156
5156
|
return n.default();
|
|
5157
5157
|
}
|
|
5158
5158
|
}
|
|
@@ -5176,7 +5176,7 @@ function wu(e, t = !1, n) {
|
|
|
5176
5176
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
5177
5177
|
// @__NO_SIDE_EFFECTS__
|
|
5178
5178
|
function me(e, t) {
|
|
5179
|
-
return
|
|
5179
|
+
return pe(e) ? (
|
|
5180
5180
|
// #8326: extend call and options.name access are considered side-effects
|
|
5181
5181
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
5182
5182
|
qe({ name: e.name }, t, { setup: e })
|
|
@@ -5221,8 +5221,8 @@ function Hs(e, t, n = Ge, r = !1) {
|
|
|
5221
5221
|
if (n) {
|
|
5222
5222
|
const o = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => {
|
|
5223
5223
|
gn();
|
|
5224
|
-
const a = Do(n),
|
|
5225
|
-
return a(), yn(),
|
|
5224
|
+
const a = Do(n), l = Ct(t, n, e, i);
|
|
5225
|
+
return a(), yn(), l;
|
|
5226
5226
|
});
|
|
5227
5227
|
return r ? o.unshift(s) : o.push(s), s;
|
|
5228
5228
|
} else if (g.NODE_ENV !== "production") {
|
|
@@ -5255,7 +5255,7 @@ function cm(e, t, n = !0, r = !1) {
|
|
|
5255
5255
|
s,
|
|
5256
5256
|
!1
|
|
5257
5257
|
);
|
|
5258
|
-
if (a && (a === t || a ===
|
|
5258
|
+
if (a && (a === t || a === St(t) || a === br(St(t))))
|
|
5259
5259
|
return s;
|
|
5260
5260
|
}
|
|
5261
5261
|
const i = (
|
|
@@ -5271,7 +5271,7 @@ If this is a native custom element, make sure to exclude it from component resol
|
|
|
5271
5271
|
);
|
|
5272
5272
|
}
|
|
5273
5273
|
function ml(e, t) {
|
|
5274
|
-
return e && (e[t] || e[
|
|
5274
|
+
return e && (e[t] || e[St(t)] || e[br(St(t))]);
|
|
5275
5275
|
}
|
|
5276
5276
|
function zt(e, t, n, r) {
|
|
5277
5277
|
let o;
|
|
@@ -5293,9 +5293,9 @@ function zt(e, t, n, r) {
|
|
|
5293
5293
|
else {
|
|
5294
5294
|
const i = Object.keys(e);
|
|
5295
5295
|
o = new Array(i.length);
|
|
5296
|
-
for (let a = 0,
|
|
5297
|
-
const
|
|
5298
|
-
o[a] = t(e[
|
|
5296
|
+
for (let a = 0, l = i.length; a < l; a++) {
|
|
5297
|
+
const c = i[a];
|
|
5298
|
+
o[a] = t(e[c], c, a, s);
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
else
|
|
@@ -5346,14 +5346,14 @@ const Mi = (e) => e ? Ku(e) ? Da(e) : Mi(e.parent) : null, pr = (
|
|
|
5346
5346
|
$nextTick: (e) => e.n || (e.n = _o.bind(e.proxy)),
|
|
5347
5347
|
$watch: (e) => Wm.bind(e)
|
|
5348
5348
|
})
|
|
5349
|
-
), xa = (e) => e === "_" || e === "$", di = (e, t) => e !== Fe && !e.__isScriptSetup &&
|
|
5349
|
+
), xa = (e) => e === "_" || e === "$", di = (e, t) => e !== Fe && !e.__isScriptSetup && Se(e, t), Su = {
|
|
5350
5350
|
get({ _: e }, t) {
|
|
5351
5351
|
if (t === "__v_skip")
|
|
5352
5352
|
return !0;
|
|
5353
|
-
const { ctx: n, setupState: r, data: o, props: s, accessCache: i, type: a, appContext:
|
|
5353
|
+
const { ctx: n, setupState: r, data: o, props: s, accessCache: i, type: a, appContext: l } = e;
|
|
5354
5354
|
if (g.NODE_ENV !== "production" && t === "__isVue")
|
|
5355
5355
|
return !0;
|
|
5356
|
-
let
|
|
5356
|
+
let c;
|
|
5357
5357
|
if (t[0] !== "$") {
|
|
5358
5358
|
const m = i[t];
|
|
5359
5359
|
if (m !== void 0)
|
|
@@ -5370,15 +5370,15 @@ const Mi = (e) => e ? Ku(e) ? Da(e) : Mi(e.parent) : null, pr = (
|
|
|
5370
5370
|
else {
|
|
5371
5371
|
if (di(r, t))
|
|
5372
5372
|
return i[t] = 1, r[t];
|
|
5373
|
-
if (o !== Fe &&
|
|
5373
|
+
if (o !== Fe && Se(o, t))
|
|
5374
5374
|
return i[t] = 2, o[t];
|
|
5375
5375
|
if (
|
|
5376
5376
|
// only cache other properties when instance has declared (thus stable)
|
|
5377
5377
|
// props
|
|
5378
|
-
(
|
|
5378
|
+
(c = e.propsOptions[0]) && Se(c, t)
|
|
5379
5379
|
)
|
|
5380
5380
|
return i[t] = 3, s[t];
|
|
5381
|
-
if (n !== Fe &&
|
|
5381
|
+
if (n !== Fe && Se(n, t))
|
|
5382
5382
|
return i[t] = 4, n[t];
|
|
5383
5383
|
Ui && (i[t] = 0);
|
|
5384
5384
|
}
|
|
@@ -5392,16 +5392,16 @@ const Mi = (e) => e ? Ku(e) ? Da(e) : Mi(e.parent) : null, pr = (
|
|
|
5392
5392
|
(d = a.__cssModules) && (d = d[t])
|
|
5393
5393
|
)
|
|
5394
5394
|
return d;
|
|
5395
|
-
if (n !== Fe &&
|
|
5395
|
+
if (n !== Fe && Se(n, t))
|
|
5396
5396
|
return i[t] = 4, n[t];
|
|
5397
5397
|
if (
|
|
5398
5398
|
// global properties
|
|
5399
|
-
f =
|
|
5399
|
+
f = l.config.globalProperties, Se(f, t)
|
|
5400
5400
|
)
|
|
5401
5401
|
return f[t];
|
|
5402
5402
|
g.NODE_ENV !== "production" && Xe && (!Be(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
5403
5403
|
// to infinite warning loop
|
|
5404
|
-
t.indexOf("__v") !== 0) && (o !== Fe && xa(t[0]) &&
|
|
5404
|
+
t.indexOf("__v") !== 0) && (o !== Fe && xa(t[0]) && Se(o, t) ? U(
|
|
5405
5405
|
`Property ${JSON.stringify(
|
|
5406
5406
|
t
|
|
5407
5407
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
@@ -5411,7 +5411,7 @@ const Mi = (e) => e ? Ku(e) ? Da(e) : Mi(e.parent) : null, pr = (
|
|
|
5411
5411
|
},
|
|
5412
5412
|
set({ _: e }, t, n) {
|
|
5413
5413
|
const { data: r, setupState: o, ctx: s } = e;
|
|
5414
|
-
return di(o, t) ? (o[t] = n, !0) : g.NODE_ENV !== "production" && o.__isScriptSetup &&
|
|
5414
|
+
return di(o, t) ? (o[t] = n, !0) : g.NODE_ENV !== "production" && o.__isScriptSetup && Se(o, t) ? (U(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== Fe && Se(r, t) ? (r[t] = n, !0) : Se(e.props, t) ? (g.NODE_ENV !== "production" && U(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (g.NODE_ENV !== "production" && U(
|
|
5415
5415
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
5416
5416
|
), !1) : (g.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
|
|
5417
5417
|
enumerable: !0,
|
|
@@ -5423,10 +5423,10 @@ const Mi = (e) => e ? Ku(e) ? Da(e) : Mi(e.parent) : null, pr = (
|
|
|
5423
5423
|
_: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, propsOptions: s }
|
|
5424
5424
|
}, i) {
|
|
5425
5425
|
let a;
|
|
5426
|
-
return !!n[i] || e !== Fe &&
|
|
5426
|
+
return !!n[i] || e !== Fe && Se(e, i) || di(t, i) || (a = s[0]) && Se(a, i) || Se(r, i) || Se(pr, i) || Se(o.config.globalProperties, i);
|
|
5427
5427
|
},
|
|
5428
5428
|
defineProperty(e, t, n) {
|
|
5429
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
5429
|
+
return n.get != null ? e._.accessCache[t] = 0 : Se(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
5430
5430
|
}
|
|
5431
5431
|
};
|
|
5432
5432
|
g.NODE_ENV !== "production" && (Su.ownKeys = (e) => (U(
|
|
@@ -5506,8 +5506,8 @@ function hm(e) {
|
|
|
5506
5506
|
computed: s,
|
|
5507
5507
|
methods: i,
|
|
5508
5508
|
watch: a,
|
|
5509
|
-
provide:
|
|
5510
|
-
inject:
|
|
5509
|
+
provide: l,
|
|
5510
|
+
inject: c,
|
|
5511
5511
|
// lifecycle
|
|
5512
5512
|
created: u,
|
|
5513
5513
|
beforeMount: d,
|
|
@@ -5539,10 +5539,10 @@ function hm(e) {
|
|
|
5539
5539
|
for (const re in ie)
|
|
5540
5540
|
I("Props", re);
|
|
5541
5541
|
}
|
|
5542
|
-
if (
|
|
5542
|
+
if (c && mm(c, r, I), i)
|
|
5543
5543
|
for (const ie in i) {
|
|
5544
5544
|
const re = i[ie];
|
|
5545
|
-
|
|
5545
|
+
pe(re) ? (g.NODE_ENV !== "production" ? Object.defineProperty(r, ie, {
|
|
5546
5546
|
value: re.bind(n),
|
|
5547
5547
|
configurable: !0,
|
|
5548
5548
|
enumerable: !0,
|
|
@@ -5552,7 +5552,7 @@ function hm(e) {
|
|
|
5552
5552
|
);
|
|
5553
5553
|
}
|
|
5554
5554
|
if (o) {
|
|
5555
|
-
g.NODE_ENV !== "production" && !
|
|
5555
|
+
g.NODE_ENV !== "production" && !pe(o) && U(
|
|
5556
5556
|
"The data option must be a function. Plain object usage is no longer supported."
|
|
5557
5557
|
);
|
|
5558
5558
|
const ie = o.call(n, n);
|
|
@@ -5571,9 +5571,9 @@ function hm(e) {
|
|
|
5571
5571
|
}
|
|
5572
5572
|
if (Ui = !0, s)
|
|
5573
5573
|
for (const ie in s) {
|
|
5574
|
-
const re = s[ie], ce =
|
|
5574
|
+
const re = s[ie], ce = pe(re) ? re.bind(n, n) : pe(re.get) ? re.get.bind(n, n) : We;
|
|
5575
5575
|
g.NODE_ENV !== "production" && ce === We && U(`Computed property "${ie}" has no getter.`);
|
|
5576
|
-
const Pe = !
|
|
5576
|
+
const Pe = !pe(re) && pe(re.set) ? re.set.bind(n) : g.NODE_ENV !== "production" ? () => {
|
|
5577
5577
|
U(
|
|
5578
5578
|
`Write operation failed: computed property "${ie}" is readonly.`
|
|
5579
5579
|
);
|
|
@@ -5591,8 +5591,8 @@ function hm(e) {
|
|
|
5591
5591
|
if (a)
|
|
5592
5592
|
for (const ie in a)
|
|
5593
5593
|
xu(a[ie], r, n, ie);
|
|
5594
|
-
if (
|
|
5595
|
-
const ie =
|
|
5594
|
+
if (l) {
|
|
5595
|
+
const ie = pe(l) ? l.call(n) : l;
|
|
5596
5596
|
Reflect.ownKeys(ie).forEach((re) => {
|
|
5597
5597
|
ft(re, ie[re]);
|
|
5598
5598
|
});
|
|
@@ -5641,15 +5641,15 @@ function xu(e, t, n, r) {
|
|
|
5641
5641
|
const o = r.includes(".") ? Fu(n, r) : () => n[r];
|
|
5642
5642
|
if (Be(e)) {
|
|
5643
5643
|
const s = t[e];
|
|
5644
|
-
|
|
5645
|
-
} else if (
|
|
5644
|
+
pe(s) ? Qe(o, s) : g.NODE_ENV !== "production" && U(`Invalid watch handler specified by key "${e}"`, s);
|
|
5645
|
+
} else if (pe(e))
|
|
5646
5646
|
Qe(o, e.bind(n));
|
|
5647
5647
|
else if (De(e))
|
|
5648
5648
|
if (le(e))
|
|
5649
5649
|
e.forEach((s) => xu(s, t, n, r));
|
|
5650
5650
|
else {
|
|
5651
|
-
const s =
|
|
5652
|
-
|
|
5651
|
+
const s = pe(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
5652
|
+
pe(s) ? Qe(o, s, e) : g.NODE_ENV !== "production" && U(`Invalid watch handler specified by key "${e.handler}"`, s);
|
|
5653
5653
|
}
|
|
5654
5654
|
else g.NODE_ENV !== "production" && U(`Invalid watch option: "${r}"`, e);
|
|
5655
5655
|
}
|
|
@@ -5659,10 +5659,10 @@ function ka(e) {
|
|
|
5659
5659
|
optionsCache: s,
|
|
5660
5660
|
config: { optionMergeStrategies: i }
|
|
5661
5661
|
} = e.appContext, a = s.get(t);
|
|
5662
|
-
let
|
|
5663
|
-
return a ?
|
|
5664
|
-
(
|
|
5665
|
-
), Cs(
|
|
5662
|
+
let l;
|
|
5663
|
+
return a ? l = a : !o.length && !n && !r ? l = t : (l = {}, o.length && o.forEach(
|
|
5664
|
+
(c) => Cs(l, c, i, !0)
|
|
5665
|
+
), Cs(l, t, i)), De(t) && s.set(t, l), l;
|
|
5666
5666
|
}
|
|
5667
5667
|
function Cs(e, t, n, r = !1) {
|
|
5668
5668
|
const { mixins: o, extends: s } = t;
|
|
@@ -5714,8 +5714,8 @@ const vm = {
|
|
|
5714
5714
|
function yl(e, t) {
|
|
5715
5715
|
return t ? e ? function() {
|
|
5716
5716
|
return qe(
|
|
5717
|
-
|
|
5718
|
-
|
|
5717
|
+
pe(e) ? e.call(this, this) : e,
|
|
5718
|
+
pe(t) ? t.call(this, this) : t
|
|
5719
5719
|
);
|
|
5720
5720
|
} : t : e;
|
|
5721
5721
|
}
|
|
@@ -5776,10 +5776,10 @@ function ku() {
|
|
|
5776
5776
|
let _m = 0;
|
|
5777
5777
|
function bm(e, t) {
|
|
5778
5778
|
return function(r, o = null) {
|
|
5779
|
-
|
|
5779
|
+
pe(r) || (r = qe({}, r)), o != null && !De(o) && (g.NODE_ENV !== "production" && U("root props passed to app.mount() must be an object."), o = null);
|
|
5780
5780
|
const s = ku(), i = /* @__PURE__ */ new WeakSet();
|
|
5781
5781
|
let a = !1;
|
|
5782
|
-
const
|
|
5782
|
+
const l = s.app = {
|
|
5783
5783
|
_uid: _m++,
|
|
5784
5784
|
_component: r,
|
|
5785
5785
|
_props: o,
|
|
@@ -5790,65 +5790,65 @@ function bm(e, t) {
|
|
|
5790
5790
|
get config() {
|
|
5791
5791
|
return s.config;
|
|
5792
5792
|
},
|
|
5793
|
-
set config(
|
|
5793
|
+
set config(c) {
|
|
5794
5794
|
g.NODE_ENV !== "production" && U(
|
|
5795
5795
|
"app.config cannot be replaced. Modify individual options instead."
|
|
5796
5796
|
);
|
|
5797
5797
|
},
|
|
5798
|
-
use(
|
|
5799
|
-
return i.has(
|
|
5798
|
+
use(c, ...u) {
|
|
5799
|
+
return i.has(c) ? g.NODE_ENV !== "production" && U("Plugin has already been applied to target app.") : c && pe(c.install) ? (i.add(c), c.install(l, ...u)) : pe(c) ? (i.add(c), c(l, ...u)) : g.NODE_ENV !== "production" && U(
|
|
5800
5800
|
'A plugin must either be a function or an object with an "install" function.'
|
|
5801
|
-
),
|
|
5801
|
+
), l;
|
|
5802
5802
|
},
|
|
5803
|
-
mixin(
|
|
5804
|
-
return s.mixins.includes(
|
|
5805
|
-
"Mixin has already been applied to target app" + (
|
|
5806
|
-
) : s.mixins.push(
|
|
5803
|
+
mixin(c) {
|
|
5804
|
+
return s.mixins.includes(c) ? g.NODE_ENV !== "production" && U(
|
|
5805
|
+
"Mixin has already been applied to target app" + (c.name ? `: ${c.name}` : "")
|
|
5806
|
+
) : s.mixins.push(c), l;
|
|
5807
5807
|
},
|
|
5808
|
-
component(
|
|
5809
|
-
return g.NODE_ENV !== "production" && Ki(
|
|
5808
|
+
component(c, u) {
|
|
5809
|
+
return g.NODE_ENV !== "production" && Ki(c, s.config), u ? (g.NODE_ENV !== "production" && s.components[c] && U(`Component "${c}" has already been registered in target app.`), s.components[c] = u, l) : s.components[c];
|
|
5810
5810
|
},
|
|
5811
|
-
directive(
|
|
5812
|
-
return g.NODE_ENV !== "production" && gu(
|
|
5811
|
+
directive(c, u) {
|
|
5812
|
+
return g.NODE_ENV !== "production" && gu(c), u ? (g.NODE_ENV !== "production" && s.directives[c] && U(`Directive "${c}" has already been registered in target app.`), s.directives[c] = u, l) : s.directives[c];
|
|
5813
5813
|
},
|
|
5814
|
-
mount(
|
|
5814
|
+
mount(c, u, d) {
|
|
5815
5815
|
if (a)
|
|
5816
5816
|
g.NODE_ENV !== "production" && U(
|
|
5817
5817
|
"App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`"
|
|
5818
5818
|
);
|
|
5819
5819
|
else {
|
|
5820
|
-
g.NODE_ENV !== "production" &&
|
|
5820
|
+
g.NODE_ENV !== "production" && c.__vue_app__ && U(
|
|
5821
5821
|
"There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first."
|
|
5822
5822
|
);
|
|
5823
5823
|
const f = B(r, o);
|
|
5824
5824
|
return f.appContext = s, d === !0 ? d = "svg" : d === !1 && (d = void 0), g.NODE_ENV !== "production" && (s.reload = () => {
|
|
5825
5825
|
e(
|
|
5826
5826
|
Lt(f),
|
|
5827
|
-
|
|
5827
|
+
c,
|
|
5828
5828
|
d
|
|
5829
5829
|
);
|
|
5830
|
-
}), u && t ? t(f,
|
|
5830
|
+
}), u && t ? t(f, c) : e(f, c, d), a = !0, l._container = c, c.__vue_app__ = l, g.NODE_ENV !== "production" && (l._instance = f.component, Mh(l, Il)), Da(f.component);
|
|
5831
5831
|
}
|
|
5832
5832
|
},
|
|
5833
5833
|
unmount() {
|
|
5834
|
-
a ? (e(null,
|
|
5834
|
+
a ? (e(null, l._container), g.NODE_ENV !== "production" && (l._instance = null, Uh(l)), delete l._container.__vue_app__) : g.NODE_ENV !== "production" && U("Cannot unmount an app that is not mounted.");
|
|
5835
5835
|
},
|
|
5836
|
-
provide(
|
|
5837
|
-
return g.NODE_ENV !== "production" &&
|
|
5838
|
-
`App already provides property with key "${String(
|
|
5839
|
-
), s.provides[
|
|
5836
|
+
provide(c, u) {
|
|
5837
|
+
return g.NODE_ENV !== "production" && c in s.provides && U(
|
|
5838
|
+
`App already provides property with key "${String(c)}". It will be overwritten with the new value.`
|
|
5839
|
+
), s.provides[c] = u, l;
|
|
5840
5840
|
},
|
|
5841
|
-
runWithContext(
|
|
5841
|
+
runWithContext(c) {
|
|
5842
5842
|
const u = hr;
|
|
5843
|
-
hr =
|
|
5843
|
+
hr = l;
|
|
5844
5844
|
try {
|
|
5845
|
-
return
|
|
5845
|
+
return c();
|
|
5846
5846
|
} finally {
|
|
5847
5847
|
hr = u;
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
5850
|
};
|
|
5851
|
-
return
|
|
5851
|
+
return l;
|
|
5852
5852
|
};
|
|
5853
5853
|
}
|
|
5854
5854
|
let hr = null;
|
|
@@ -5868,7 +5868,7 @@ function $e(e, t, n = !1) {
|
|
|
5868
5868
|
if (o && e in o)
|
|
5869
5869
|
return o[e];
|
|
5870
5870
|
if (arguments.length > 1)
|
|
5871
|
-
return n &&
|
|
5871
|
+
return n && pe(t) ? t.call(r && r.proxy) : t;
|
|
5872
5872
|
g.NODE_ENV !== "production" && U(`injection "${String(e)}" not found.`);
|
|
5873
5873
|
} else g.NODE_ENV !== "production" && U("inject() can only be used inside setup() or functional components.");
|
|
5874
5874
|
}
|
|
@@ -5894,8 +5894,8 @@ function Nm(e, t, n, r) {
|
|
|
5894
5894
|
props: o,
|
|
5895
5895
|
attrs: s,
|
|
5896
5896
|
vnode: { patchFlag: i }
|
|
5897
|
-
} = e, a = ge(o), [
|
|
5898
|
-
let
|
|
5897
|
+
} = e, a = ge(o), [l] = e.propsOptions;
|
|
5898
|
+
let c = !1;
|
|
5899
5899
|
if (
|
|
5900
5900
|
// always force full diff in dev
|
|
5901
5901
|
// - #1942 if hmr is enabled with sfc component
|
|
@@ -5909,13 +5909,13 @@ function Nm(e, t, n, r) {
|
|
|
5909
5909
|
if (Zs(e.emitsOptions, f))
|
|
5910
5910
|
continue;
|
|
5911
5911
|
const m = t[f];
|
|
5912
|
-
if (
|
|
5913
|
-
if (
|
|
5914
|
-
m !== s[f] && (s[f] = m,
|
|
5912
|
+
if (l)
|
|
5913
|
+
if (Se(s, f))
|
|
5914
|
+
m !== s[f] && (s[f] = m, c = !0);
|
|
5915
5915
|
else {
|
|
5916
|
-
const y =
|
|
5916
|
+
const y = St(f);
|
|
5917
5917
|
o[y] = Bi(
|
|
5918
|
-
|
|
5918
|
+
l,
|
|
5919
5919
|
a,
|
|
5920
5920
|
y,
|
|
5921
5921
|
m,
|
|
@@ -5924,20 +5924,20 @@ function Nm(e, t, n, r) {
|
|
|
5924
5924
|
);
|
|
5925
5925
|
}
|
|
5926
5926
|
else
|
|
5927
|
-
m !== s[f] && (s[f] = m,
|
|
5927
|
+
m !== s[f] && (s[f] = m, c = !0);
|
|
5928
5928
|
}
|
|
5929
5929
|
}
|
|
5930
5930
|
} else {
|
|
5931
|
-
$u(e, t, o, s) && (
|
|
5931
|
+
$u(e, t, o, s) && (c = !0);
|
|
5932
5932
|
let u;
|
|
5933
5933
|
for (const d in a)
|
|
5934
5934
|
(!t || // for camelCase
|
|
5935
|
-
!
|
|
5935
|
+
!Se(t, d) && // it's possible the original props was passed in as kebab-case
|
|
5936
5936
|
// and converted to camelCase (#955)
|
|
5937
|
-
((u = pn(d)) === d || !
|
|
5937
|
+
((u = pn(d)) === d || !Se(t, u))) && (l ? n && // for camelCase
|
|
5938
5938
|
(n[d] !== void 0 || // for kebab-case
|
|
5939
5939
|
n[u] !== void 0) && (o[d] = Bi(
|
|
5940
|
-
|
|
5940
|
+
l,
|
|
5941
5941
|
a,
|
|
5942
5942
|
d,
|
|
5943
5943
|
void 0,
|
|
@@ -5946,32 +5946,32 @@ function Nm(e, t, n, r) {
|
|
|
5946
5946
|
)) : delete o[d]);
|
|
5947
5947
|
if (s !== a)
|
|
5948
5948
|
for (const d in s)
|
|
5949
|
-
(!t || !
|
|
5949
|
+
(!t || !Se(t, d)) && (delete s[d], c = !0);
|
|
5950
5950
|
}
|
|
5951
|
-
|
|
5951
|
+
c && Wt(e.attrs, "set", ""), g.NODE_ENV !== "production" && Du(t || {}, o, e);
|
|
5952
5952
|
}
|
|
5953
5953
|
function $u(e, t, n, r) {
|
|
5954
5954
|
const [o, s] = e.propsOptions;
|
|
5955
5955
|
let i = !1, a;
|
|
5956
5956
|
if (t)
|
|
5957
|
-
for (let
|
|
5958
|
-
if (Qr(
|
|
5957
|
+
for (let l in t) {
|
|
5958
|
+
if (Qr(l))
|
|
5959
5959
|
continue;
|
|
5960
|
-
const
|
|
5960
|
+
const c = t[l];
|
|
5961
5961
|
let u;
|
|
5962
|
-
o &&
|
|
5962
|
+
o && Se(o, u = St(l)) ? !s || !s.includes(u) ? n[u] = c : (a || (a = {}))[u] = c : Zs(e.emitsOptions, l) || (!(l in r) || c !== r[l]) && (r[l] = c, i = !0);
|
|
5963
5963
|
}
|
|
5964
5964
|
if (s) {
|
|
5965
|
-
const
|
|
5965
|
+
const l = ge(n), c = a || Fe;
|
|
5966
5966
|
for (let u = 0; u < s.length; u++) {
|
|
5967
5967
|
const d = s[u];
|
|
5968
5968
|
n[d] = Bi(
|
|
5969
5969
|
o,
|
|
5970
|
-
|
|
5970
|
+
l,
|
|
5971
5971
|
d,
|
|
5972
|
-
|
|
5972
|
+
c[d],
|
|
5973
5973
|
e,
|
|
5974
|
-
!
|
|
5974
|
+
!Se(c, d)
|
|
5975
5975
|
);
|
|
5976
5976
|
}
|
|
5977
5977
|
}
|
|
@@ -5980,22 +5980,22 @@ function $u(e, t, n, r) {
|
|
|
5980
5980
|
function Bi(e, t, n, r, o, s) {
|
|
5981
5981
|
const i = e[n];
|
|
5982
5982
|
if (i != null) {
|
|
5983
|
-
const a =
|
|
5983
|
+
const a = Se(i, "default");
|
|
5984
5984
|
if (a && r === void 0) {
|
|
5985
|
-
const
|
|
5986
|
-
if (i.type !== Function && !i.skipFactory &&
|
|
5987
|
-
const { propsDefaults:
|
|
5988
|
-
if (n in
|
|
5989
|
-
r =
|
|
5985
|
+
const l = i.default;
|
|
5986
|
+
if (i.type !== Function && !i.skipFactory && pe(l)) {
|
|
5987
|
+
const { propsDefaults: c } = o;
|
|
5988
|
+
if (n in c)
|
|
5989
|
+
r = c[n];
|
|
5990
5990
|
else {
|
|
5991
5991
|
const u = Do(o);
|
|
5992
|
-
r =
|
|
5992
|
+
r = c[n] = l.call(
|
|
5993
5993
|
null,
|
|
5994
5994
|
t
|
|
5995
5995
|
), u();
|
|
5996
5996
|
}
|
|
5997
5997
|
} else
|
|
5998
|
-
r =
|
|
5998
|
+
r = l;
|
|
5999
5999
|
}
|
|
6000
6000
|
i[
|
|
6001
6001
|
0
|
|
@@ -6013,52 +6013,52 @@ function Iu(e, t, n = !1) {
|
|
|
6013
6013
|
if (o)
|
|
6014
6014
|
return o;
|
|
6015
6015
|
const s = e.props, i = {}, a = [];
|
|
6016
|
-
let
|
|
6017
|
-
if (!
|
|
6016
|
+
let l = !1;
|
|
6017
|
+
if (!pe(e)) {
|
|
6018
6018
|
const u = (d) => {
|
|
6019
|
-
|
|
6019
|
+
l = !0;
|
|
6020
6020
|
const [f, m] = Iu(d, t, !0);
|
|
6021
6021
|
qe(i, f), m && a.push(...m);
|
|
6022
6022
|
};
|
|
6023
6023
|
!n && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
|
|
6024
6024
|
}
|
|
6025
|
-
if (!s && !
|
|
6025
|
+
if (!s && !l)
|
|
6026
6026
|
return De(e) && r.set(e, Pr), Pr;
|
|
6027
6027
|
if (le(s))
|
|
6028
6028
|
for (let u = 0; u < s.length; u++) {
|
|
6029
6029
|
g.NODE_ENV !== "production" && !Be(s[u]) && U("props must be strings when using array syntax.", s[u]);
|
|
6030
|
-
const d =
|
|
6030
|
+
const d = St(s[u]);
|
|
6031
6031
|
bl(d) && (i[d] = Fe);
|
|
6032
6032
|
}
|
|
6033
6033
|
else if (s) {
|
|
6034
6034
|
g.NODE_ENV !== "production" && !De(s) && U("invalid props options", s);
|
|
6035
6035
|
for (const u in s) {
|
|
6036
|
-
const d =
|
|
6036
|
+
const d = St(u);
|
|
6037
6037
|
if (bl(d)) {
|
|
6038
|
-
const f = s[u], m = i[d] = le(f) ||
|
|
6038
|
+
const f = s[u], m = i[d] = le(f) || pe(f) ? { type: f } : qe({}, f), y = m.type;
|
|
6039
6039
|
let E = !1, N = !0;
|
|
6040
6040
|
if (le(y))
|
|
6041
6041
|
for (let A = 0; A < y.length; ++A) {
|
|
6042
|
-
const F = y[A], C =
|
|
6042
|
+
const F = y[A], C = pe(F) && F.name;
|
|
6043
6043
|
if (C === "Boolean") {
|
|
6044
6044
|
E = !0;
|
|
6045
6045
|
break;
|
|
6046
6046
|
} else C === "String" && (N = !1);
|
|
6047
6047
|
}
|
|
6048
6048
|
else
|
|
6049
|
-
E =
|
|
6049
|
+
E = pe(y) && y.name === "Boolean";
|
|
6050
6050
|
m[
|
|
6051
6051
|
0
|
|
6052
6052
|
/* shouldCast */
|
|
6053
6053
|
] = E, m[
|
|
6054
6054
|
1
|
|
6055
6055
|
/* shouldCastTrue */
|
|
6056
|
-
] = N, (E ||
|
|
6056
|
+
] = N, (E || Se(m, "default")) && a.push(d);
|
|
6057
6057
|
}
|
|
6058
6058
|
}
|
|
6059
6059
|
}
|
|
6060
|
-
const
|
|
6061
|
-
return De(e) && r.set(e,
|
|
6060
|
+
const c = [i, a];
|
|
6061
|
+
return De(e) && r.set(e, c), c;
|
|
6062
6062
|
}
|
|
6063
6063
|
function bl(e) {
|
|
6064
6064
|
return e[0] !== "$" && !Qr(e) ? !0 : (g.NODE_ENV !== "production" && U(`Invalid prop name: "${e}" is a reserved property.`), !1);
|
|
@@ -6075,25 +6075,25 @@ function Du(e, t, n) {
|
|
|
6075
6075
|
r[s],
|
|
6076
6076
|
i,
|
|
6077
6077
|
g.NODE_ENV !== "production" ? qt(r) : r,
|
|
6078
|
-
!
|
|
6078
|
+
!Se(e, s) && !Se(e, pn(s))
|
|
6079
6079
|
);
|
|
6080
6080
|
}
|
|
6081
6081
|
}
|
|
6082
6082
|
function km(e, t, n, r, o) {
|
|
6083
|
-
const { type: s, required: i, validator: a, skipCheck:
|
|
6083
|
+
const { type: s, required: i, validator: a, skipCheck: l } = n;
|
|
6084
6084
|
if (i && o) {
|
|
6085
6085
|
U('Missing required prop: "' + e + '"');
|
|
6086
6086
|
return;
|
|
6087
6087
|
}
|
|
6088
6088
|
if (!(t == null && !i)) {
|
|
6089
|
-
if (s != null && s !== !0 && !
|
|
6090
|
-
let
|
|
6089
|
+
if (s != null && s !== !0 && !l) {
|
|
6090
|
+
let c = !1;
|
|
6091
6091
|
const u = le(s) ? s : [s], d = [];
|
|
6092
|
-
for (let f = 0; f < u.length && !
|
|
6092
|
+
for (let f = 0; f < u.length && !c; f++) {
|
|
6093
6093
|
const { valid: m, expectedType: y } = Tm(t, u[f]);
|
|
6094
|
-
d.push(y || ""),
|
|
6094
|
+
d.push(y || ""), c = m;
|
|
6095
6095
|
}
|
|
6096
|
-
if (!
|
|
6096
|
+
if (!c) {
|
|
6097
6097
|
U(Pm(e, t, d));
|
|
6098
6098
|
return;
|
|
6099
6099
|
}
|
|
@@ -6144,7 +6144,7 @@ const Au = (e) => e[0] === "_" || e === "$stable", Ca = (e) => le(e) ? e.map(Dt)
|
|
|
6144
6144
|
for (const o in e) {
|
|
6145
6145
|
if (Au(o)) continue;
|
|
6146
6146
|
const s = e[o];
|
|
6147
|
-
if (
|
|
6147
|
+
if (pe(s))
|
|
6148
6148
|
t[o] = Im(o, s, r);
|
|
6149
6149
|
else if (s != null) {
|
|
6150
6150
|
g.NODE_ENV !== "production" && U(
|
|
@@ -6195,27 +6195,27 @@ function Zi(e, t, n, r, o = !1) {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
if (eo(r) && !o)
|
|
6197
6197
|
return;
|
|
6198
|
-
const s = r.shapeFlag & 4 ? Da(r.component) : r.el, i = o ? null : s, { i: a, r:
|
|
6198
|
+
const s = r.shapeFlag & 4 ? Da(r.component) : r.el, i = o ? null : s, { i: a, r: l } = e;
|
|
6199
6199
|
if (g.NODE_ENV !== "production" && !a) {
|
|
6200
6200
|
U(
|
|
6201
6201
|
"Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function."
|
|
6202
6202
|
);
|
|
6203
6203
|
return;
|
|
6204
6204
|
}
|
|
6205
|
-
const
|
|
6206
|
-
if (
|
|
6207
|
-
dn(
|
|
6205
|
+
const c = t && t.r, u = a.refs === Fe ? a.refs = {} : a.refs, d = a.setupState;
|
|
6206
|
+
if (c != null && c !== l && (Be(c) ? (u[c] = null, Se(d, c) && (d[c] = null)) : He(c) && (c.value = null)), pe(l))
|
|
6207
|
+
dn(l, a, 12, [i, u]);
|
|
6208
6208
|
else {
|
|
6209
|
-
const f = Be(
|
|
6209
|
+
const f = Be(l), m = He(l);
|
|
6210
6210
|
if (f || m) {
|
|
6211
6211
|
const y = () => {
|
|
6212
6212
|
if (e.f) {
|
|
6213
|
-
const E = f ?
|
|
6214
|
-
o ? le(E) && ca(E, s) : le(E) ? E.includes(s) || E.push(s) : f ? (u[
|
|
6215
|
-
} else f ? (u[
|
|
6213
|
+
const E = f ? Se(d, l) ? d[l] : u[l] : l.value;
|
|
6214
|
+
o ? le(E) && ca(E, s) : le(E) ? E.includes(s) || E.push(s) : f ? (u[l] = [s], Se(d, l) && (d[l] = u[l])) : (l.value = [s], e.k && (u[e.k] = l.value));
|
|
6215
|
+
} else f ? (u[l] = i, Se(d, l) && (d[l] = i)) : m ? (l.value = i, e.k && (u[e.k] = i)) : g.NODE_ENV !== "production" && U("Invalid template ref type:", l, `(${typeof l})`);
|
|
6216
6216
|
};
|
|
6217
6217
|
i ? (y.id = -1, bt(y, n)) : y();
|
|
6218
|
-
} else g.NODE_ENV !== "production" && U("Invalid template ref type:",
|
|
6218
|
+
} else g.NODE_ENV !== "production" && U("Invalid template ref type:", l, `(${typeof l})`);
|
|
6219
6219
|
}
|
|
6220
6220
|
}
|
|
6221
6221
|
const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disabled || e.disabled === ""), Ol = (e) => typeof SVGElement < "u" && e instanceof SVGElement, Nl = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, qi = (e, t) => {
|
|
@@ -6235,15 +6235,15 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6235
6235
|
}, Rm = {
|
|
6236
6236
|
name: "Teleport",
|
|
6237
6237
|
__isTeleport: !0,
|
|
6238
|
-
process(e, t, n, r, o, s, i, a,
|
|
6238
|
+
process(e, t, n, r, o, s, i, a, l, c) {
|
|
6239
6239
|
const {
|
|
6240
6240
|
mc: u,
|
|
6241
6241
|
pc: d,
|
|
6242
6242
|
pbc: f,
|
|
6243
6243
|
o: { insert: m, querySelector: y, createText: E, createComment: N }
|
|
6244
|
-
} =
|
|
6244
|
+
} = c, A = mr(t.props);
|
|
6245
6245
|
let { shapeFlag: F, children: C, dynamicChildren: z } = t;
|
|
6246
|
-
if (g.NODE_ENV !== "production" && Dn && (
|
|
6246
|
+
if (g.NODE_ENV !== "production" && Dn && (l = !1, z = null), e == null) {
|
|
6247
6247
|
const $ = t.el = g.NODE_ENV !== "production" ? N("teleport start") : E(""), Z = t.anchor = g.NODE_ENV !== "production" ? N("teleport end") : E("");
|
|
6248
6248
|
m($, n, r), m(Z, n, r);
|
|
6249
6249
|
const x = t.target = qi(t.props, y), de = Mu(x, t, E, m);
|
|
@@ -6257,7 +6257,7 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6257
6257
|
s,
|
|
6258
6258
|
i,
|
|
6259
6259
|
a,
|
|
6260
|
-
|
|
6260
|
+
l
|
|
6261
6261
|
);
|
|
6262
6262
|
};
|
|
6263
6263
|
A ? Y(n, Z) : x && Y(x, de);
|
|
@@ -6272,7 +6272,7 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6272
6272
|
s,
|
|
6273
6273
|
i,
|
|
6274
6274
|
a
|
|
6275
|
-
), to(e, t, !0)) :
|
|
6275
|
+
), to(e, t, !0)) : l || d(
|
|
6276
6276
|
e,
|
|
6277
6277
|
t,
|
|
6278
6278
|
Y,
|
|
@@ -6287,7 +6287,7 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6287
6287
|
t,
|
|
6288
6288
|
n,
|
|
6289
6289
|
$,
|
|
6290
|
-
|
|
6290
|
+
c,
|
|
6291
6291
|
1
|
|
6292
6292
|
);
|
|
6293
6293
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
@@ -6299,7 +6299,7 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6299
6299
|
t,
|
|
6300
6300
|
P,
|
|
6301
6301
|
null,
|
|
6302
|
-
|
|
6302
|
+
c,
|
|
6303
6303
|
0
|
|
6304
6304
|
) : g.NODE_ENV !== "production" && U(
|
|
6305
6305
|
"Invalid Teleport target on update:",
|
|
@@ -6310,7 +6310,7 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6310
6310
|
t,
|
|
6311
6311
|
Z,
|
|
6312
6312
|
x,
|
|
6313
|
-
|
|
6313
|
+
c,
|
|
6314
6314
|
1
|
|
6315
6315
|
);
|
|
6316
6316
|
}
|
|
@@ -6320,13 +6320,13 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6320
6320
|
const {
|
|
6321
6321
|
shapeFlag: i,
|
|
6322
6322
|
children: a,
|
|
6323
|
-
anchor:
|
|
6324
|
-
targetStart:
|
|
6323
|
+
anchor: l,
|
|
6324
|
+
targetStart: c,
|
|
6325
6325
|
targetAnchor: u,
|
|
6326
6326
|
target: d,
|
|
6327
6327
|
props: f
|
|
6328
6328
|
} = e;
|
|
6329
|
-
if (d && (o(
|
|
6329
|
+
if (d && (o(c), o(u)), s && o(l), i & 16) {
|
|
6330
6330
|
const m = s || !mr(f);
|
|
6331
6331
|
for (let y = 0; y < a.length; y++) {
|
|
6332
6332
|
const E = a[y];
|
|
@@ -6345,11 +6345,11 @@ const ju = Symbol("_vte"), Vm = (e) => e.__isTeleport, mr = (e) => e && (e.disab
|
|
|
6345
6345
|
};
|
|
6346
6346
|
function Wo(e, t, n, { o: { insert: r }, m: o }, s = 2) {
|
|
6347
6347
|
s === 0 && r(e.targetAnchor, t, n);
|
|
6348
|
-
const { el: i, anchor: a, shapeFlag:
|
|
6349
|
-
if (d && r(i, t, n), (!d || mr(u)) &&
|
|
6350
|
-
for (let f = 0; f <
|
|
6348
|
+
const { el: i, anchor: a, shapeFlag: l, children: c, props: u } = e, d = s === 2;
|
|
6349
|
+
if (d && r(i, t, n), (!d || mr(u)) && l & 16)
|
|
6350
|
+
for (let f = 0; f < c.length; f++)
|
|
6351
6351
|
o(
|
|
6352
|
-
|
|
6352
|
+
c[f],
|
|
6353
6353
|
t,
|
|
6354
6354
|
n,
|
|
6355
6355
|
2
|
|
@@ -6357,11 +6357,11 @@ function Wo(e, t, n, { o: { insert: r }, m: o }, s = 2) {
|
|
|
6357
6357
|
d && r(a, t, n);
|
|
6358
6358
|
}
|
|
6359
6359
|
function jm(e, t, n, r, o, s, {
|
|
6360
|
-
o: { nextSibling: i, parentNode: a, querySelector:
|
|
6360
|
+
o: { nextSibling: i, parentNode: a, querySelector: l, insert: c, createText: u }
|
|
6361
6361
|
}, d) {
|
|
6362
6362
|
const f = t.target = qi(
|
|
6363
6363
|
t.props,
|
|
6364
|
-
|
|
6364
|
+
l
|
|
6365
6365
|
);
|
|
6366
6366
|
if (f) {
|
|
6367
6367
|
const m = f._lpa || f.firstChild;
|
|
@@ -6390,7 +6390,7 @@ function jm(e, t, n, r, o, s, {
|
|
|
6390
6390
|
}
|
|
6391
6391
|
y = i(y);
|
|
6392
6392
|
}
|
|
6393
|
-
t.targetAnchor || Mu(f, t, u,
|
|
6393
|
+
t.targetAnchor || Mu(f, t, u, c), d(
|
|
6394
6394
|
m && i(m),
|
|
6395
6395
|
t,
|
|
6396
6396
|
f,
|
|
@@ -6461,8 +6461,8 @@ function Fm(e, t) {
|
|
|
6461
6461
|
patchProp: s,
|
|
6462
6462
|
createElement: i,
|
|
6463
6463
|
createText: a,
|
|
6464
|
-
createComment:
|
|
6465
|
-
setText:
|
|
6464
|
+
createComment: l,
|
|
6465
|
+
setText: c,
|
|
6466
6466
|
setElementText: u,
|
|
6467
6467
|
parentNode: d,
|
|
6468
6468
|
nextSibling: f,
|
|
@@ -6540,11 +6540,11 @@ function Fm(e, t) {
|
|
|
6540
6540
|
);
|
|
6541
6541
|
else {
|
|
6542
6542
|
const D = h.el = p.el;
|
|
6543
|
-
h.children !== p.children &&
|
|
6543
|
+
h.children !== p.children && c(D, h.children);
|
|
6544
6544
|
}
|
|
6545
6545
|
}, A = (p, h, k, L) => {
|
|
6546
6546
|
p == null ? r(
|
|
6547
|
-
h.el =
|
|
6547
|
+
h.el = l(h.children || ""),
|
|
6548
6548
|
k,
|
|
6549
6549
|
L
|
|
6550
6550
|
) : h.el = p.el;
|
|
@@ -7311,17 +7311,17 @@ function to(e, t, n = !1) {
|
|
|
7311
7311
|
function Hm(e) {
|
|
7312
7312
|
const t = e.slice(), n = [0];
|
|
7313
7313
|
let r, o, s, i, a;
|
|
7314
|
-
const
|
|
7315
|
-
for (r = 0; r <
|
|
7316
|
-
const
|
|
7317
|
-
if (
|
|
7318
|
-
if (o = n[n.length - 1], e[o] <
|
|
7314
|
+
const l = e.length;
|
|
7315
|
+
for (r = 0; r < l; r++) {
|
|
7316
|
+
const c = e[r];
|
|
7317
|
+
if (c !== 0) {
|
|
7318
|
+
if (o = n[n.length - 1], e[o] < c) {
|
|
7319
7319
|
t[r] = o, n.push(r);
|
|
7320
7320
|
continue;
|
|
7321
7321
|
}
|
|
7322
7322
|
for (s = 0, i = n.length - 1; s < i; )
|
|
7323
|
-
a = s + i >> 1, e[n[a]] <
|
|
7324
|
-
|
|
7323
|
+
a = s + i >> 1, e[n[a]] < c ? s = a + 1 : i = a;
|
|
7324
|
+
c < e[n[s]] && (s > 0 && (t[r] = n[s - 1]), n[s] = r);
|
|
7325
7325
|
}
|
|
7326
7326
|
}
|
|
7327
7327
|
for (s = n.length, i = n[s - 1]; s-- > 0; )
|
|
@@ -7350,7 +7350,7 @@ function pt(e, t) {
|
|
|
7350
7350
|
}
|
|
7351
7351
|
const zo = {};
|
|
7352
7352
|
function Qe(e, t, n) {
|
|
7353
|
-
return g.NODE_ENV !== "production" && !
|
|
7353
|
+
return g.NODE_ENV !== "production" && !pe(t) && U(
|
|
7354
7354
|
"`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."
|
|
7355
7355
|
), Ta(e, t, n);
|
|
7356
7356
|
}
|
|
@@ -7377,13 +7377,13 @@ function Ta(e, t, {
|
|
|
7377
7377
|
), s !== void 0 && U(
|
|
7378
7378
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
7379
7379
|
));
|
|
7380
|
-
const
|
|
7380
|
+
const l = (x) => {
|
|
7381
7381
|
U(
|
|
7382
7382
|
"Invalid watch source: ",
|
|
7383
7383
|
x,
|
|
7384
7384
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
7385
7385
|
);
|
|
7386
|
-
},
|
|
7386
|
+
}, c = Ge, u = (x) => r === !0 ? x : (
|
|
7387
7387
|
// for deep: false, only traverse root-level properties
|
|
7388
7388
|
rr(x, r === !1 ? 1 : void 0)
|
|
7389
7389
|
);
|
|
@@ -7393,25 +7393,25 @@ function Ta(e, t, {
|
|
|
7393
7393
|
return x.value;
|
|
7394
7394
|
if (cn(x))
|
|
7395
7395
|
return u(x);
|
|
7396
|
-
if (
|
|
7397
|
-
return dn(x,
|
|
7398
|
-
g.NODE_ENV !== "production" &&
|
|
7399
|
-
})) :
|
|
7396
|
+
if (pe(x))
|
|
7397
|
+
return dn(x, c, 2);
|
|
7398
|
+
g.NODE_ENV !== "production" && l(x);
|
|
7399
|
+
})) : pe(e) ? t ? d = () => dn(e, c, 2) : d = () => (y && y(), Ct(
|
|
7400
7400
|
e,
|
|
7401
|
-
|
|
7401
|
+
c,
|
|
7402
7402
|
3,
|
|
7403
7403
|
[E]
|
|
7404
|
-
)) : (d = We, g.NODE_ENV !== "production" &&
|
|
7404
|
+
)) : (d = We, g.NODE_ENV !== "production" && l(e)), t && r) {
|
|
7405
7405
|
const x = d;
|
|
7406
7406
|
d = () => rr(x());
|
|
7407
7407
|
}
|
|
7408
7408
|
let y, E = (x) => {
|
|
7409
7409
|
y = z.onStop = () => {
|
|
7410
|
-
dn(x,
|
|
7410
|
+
dn(x, c, 4), y = z.onStop = void 0;
|
|
7411
7411
|
};
|
|
7412
7412
|
}, N;
|
|
7413
7413
|
if (Ws)
|
|
7414
|
-
if (E = We, t ? n && Ct(t,
|
|
7414
|
+
if (E = We, t ? n && Ct(t, c, 3, [
|
|
7415
7415
|
d(),
|
|
7416
7416
|
m ? [] : void 0,
|
|
7417
7417
|
E
|
|
@@ -7425,7 +7425,7 @@ function Ta(e, t, {
|
|
|
7425
7425
|
if (!(!z.active || !z.dirty))
|
|
7426
7426
|
if (t) {
|
|
7427
7427
|
const x = z.run();
|
|
7428
|
-
(r || f || (m ? x.some((de, Y) => Mn(de, A[Y])) : Mn(x, A))) && (y && y(), Ct(t,
|
|
7428
|
+
(r || f || (m ? x.some((de, Y) => Mn(de, A[Y])) : Mn(x, A))) && (y && y(), Ct(t, c, 3, [
|
|
7429
7429
|
x,
|
|
7430
7430
|
// pass undefined as the old value when it's changed for the first time
|
|
7431
7431
|
A === zo ? void 0 : m && A[0] === zo ? [] : A,
|
|
@@ -7436,19 +7436,19 @@ function Ta(e, t, {
|
|
|
7436
7436
|
};
|
|
7437
7437
|
F.allowRecurse = !!t;
|
|
7438
7438
|
let C;
|
|
7439
|
-
o === "sync" ? C = F : o === "post" ? C = () => bt(F,
|
|
7439
|
+
o === "sync" ? C = F : o === "post" ? C = () => bt(F, c && c.suspense) : (F.pre = !0, c && (F.id = c.uid), C = () => Fs(F));
|
|
7440
7440
|
const z = new ma(d, We, C), $ = Uc(), Z = () => {
|
|
7441
7441
|
z.stop(), $ && ca($.effects, z);
|
|
7442
7442
|
};
|
|
7443
7443
|
return g.NODE_ENV !== "production" && (z.onTrack = i, z.onTrigger = a), t ? n ? F() : A = z.run() : o === "post" ? bt(
|
|
7444
7444
|
z.run.bind(z),
|
|
7445
|
-
|
|
7445
|
+
c && c.suspense
|
|
7446
7446
|
) : z.run(), N && N.push(Z), Z;
|
|
7447
7447
|
}
|
|
7448
7448
|
function Wm(e, t, n) {
|
|
7449
7449
|
const r = this.proxy, o = Be(e) ? e.includes(".") ? Fu(r, e) : () => r[e] : e.bind(r, r);
|
|
7450
7450
|
let s;
|
|
7451
|
-
|
|
7451
|
+
pe(t) ? s = t : (s = t.handler, n = t);
|
|
7452
7452
|
const i = Do(this), a = Ta(o, s.bind(r), n);
|
|
7453
7453
|
return i(), a;
|
|
7454
7454
|
}
|
|
@@ -7481,7 +7481,7 @@ function rr(e, t = 1 / 0, n) {
|
|
|
7481
7481
|
}
|
|
7482
7482
|
return e;
|
|
7483
7483
|
}
|
|
7484
|
-
const zm = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${
|
|
7484
|
+
const zm = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${St(t)}Modifiers`] || e[`${pn(t)}Modifiers`];
|
|
7485
7485
|
function Km(e, t, ...n) {
|
|
7486
7486
|
if (e.isUnmounted) return;
|
|
7487
7487
|
const r = e.vnode.props || Fe;
|
|
@@ -7492,12 +7492,12 @@ function Km(e, t, ...n) {
|
|
|
7492
7492
|
} = e;
|
|
7493
7493
|
if (u)
|
|
7494
7494
|
if (!(t in u))
|
|
7495
|
-
(!d || !(er(
|
|
7496
|
-
`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${er(
|
|
7495
|
+
(!d || !(er(St(t)) in d)) && U(
|
|
7496
|
+
`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${er(St(t))}" prop.`
|
|
7497
7497
|
);
|
|
7498
7498
|
else {
|
|
7499
7499
|
const f = u[t];
|
|
7500
|
-
|
|
7500
|
+
pe(f) && (f(...n) || U(
|
|
7501
7501
|
`Invalid event arguments: event validation failed for event "${t}".`
|
|
7502
7502
|
));
|
|
7503
7503
|
}
|
|
@@ -7515,22 +7515,22 @@ function Km(e, t, ...n) {
|
|
|
7515
7515
|
)}" instead of "${t}".`
|
|
7516
7516
|
);
|
|
7517
7517
|
}
|
|
7518
|
-
let a,
|
|
7519
|
-
r[a = er(
|
|
7520
|
-
!
|
|
7521
|
-
|
|
7518
|
+
let a, l = r[a = er(t)] || // also try camelCase event handler (#2249)
|
|
7519
|
+
r[a = er(St(t))];
|
|
7520
|
+
!l && s && (l = r[a = er(pn(t))]), l && Ct(
|
|
7521
|
+
l,
|
|
7522
7522
|
e,
|
|
7523
7523
|
6,
|
|
7524
7524
|
o
|
|
7525
7525
|
);
|
|
7526
|
-
const
|
|
7527
|
-
if (
|
|
7526
|
+
const c = r[a + "Once"];
|
|
7527
|
+
if (c) {
|
|
7528
7528
|
if (!e.emitted)
|
|
7529
7529
|
e.emitted = {};
|
|
7530
7530
|
else if (e.emitted[a])
|
|
7531
7531
|
return;
|
|
7532
7532
|
e.emitted[a] = !0, Ct(
|
|
7533
|
-
|
|
7533
|
+
c,
|
|
7534
7534
|
e,
|
|
7535
7535
|
6,
|
|
7536
7536
|
o
|
|
@@ -7543,17 +7543,17 @@ function Bu(e, t, n = !1) {
|
|
|
7543
7543
|
return o;
|
|
7544
7544
|
const s = e.emits;
|
|
7545
7545
|
let i = {}, a = !1;
|
|
7546
|
-
if (!
|
|
7547
|
-
const
|
|
7548
|
-
const u = Bu(
|
|
7546
|
+
if (!pe(e)) {
|
|
7547
|
+
const l = (c) => {
|
|
7548
|
+
const u = Bu(c, t, !0);
|
|
7549
7549
|
u && (a = !0, qe(i, u));
|
|
7550
7550
|
};
|
|
7551
|
-
!n && t.mixins.length && t.mixins.forEach(
|
|
7551
|
+
!n && t.mixins.length && t.mixins.forEach(l), e.extends && l(e.extends), e.mixins && e.mixins.forEach(l);
|
|
7552
7552
|
}
|
|
7553
|
-
return !s && !a ? (De(e) && r.set(e, null), null) : (le(s) ? s.forEach((
|
|
7553
|
+
return !s && !a ? (De(e) && r.set(e, null), null) : (le(s) ? s.forEach((l) => i[l] = null) : qe(i, s), De(e) && r.set(e, i), i);
|
|
7554
7554
|
}
|
|
7555
7555
|
function Zs(e, t) {
|
|
7556
|
-
return !e || !ko(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""),
|
|
7556
|
+
return !e || !ko(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), Se(e, t[0].toLowerCase() + t.slice(1)) || Se(e, pn(t)) || Se(e, t));
|
|
7557
7557
|
}
|
|
7558
7558
|
let Wi = !1;
|
|
7559
7559
|
function Ps() {
|
|
@@ -7568,8 +7568,8 @@ function pi(e) {
|
|
|
7568
7568
|
propsOptions: [s],
|
|
7569
7569
|
slots: i,
|
|
7570
7570
|
attrs: a,
|
|
7571
|
-
emit:
|
|
7572
|
-
render:
|
|
7571
|
+
emit: l,
|
|
7572
|
+
render: c,
|
|
7573
7573
|
renderCache: u,
|
|
7574
7574
|
props: d,
|
|
7575
7575
|
data: f,
|
|
@@ -7591,7 +7591,7 @@ function pi(e) {
|
|
|
7591
7591
|
}
|
|
7592
7592
|
}) : $;
|
|
7593
7593
|
A = Dt(
|
|
7594
|
-
|
|
7594
|
+
c.call(
|
|
7595
7595
|
Z,
|
|
7596
7596
|
$,
|
|
7597
7597
|
u,
|
|
@@ -7611,8 +7611,8 @@ function pi(e) {
|
|
|
7611
7611
|
return Ps(), qt(a);
|
|
7612
7612
|
},
|
|
7613
7613
|
slots: i,
|
|
7614
|
-
emit:
|
|
7615
|
-
} : { attrs: a, slots: i, emit:
|
|
7614
|
+
emit: l
|
|
7615
|
+
} : { attrs: a, slots: i, emit: l }
|
|
7616
7616
|
) : $(
|
|
7617
7617
|
g.NODE_ENV !== "production" ? qt(d) : d,
|
|
7618
7618
|
null
|
|
@@ -7690,24 +7690,24 @@ const Gm = (e) => {
|
|
|
7690
7690
|
return n;
|
|
7691
7691
|
}, xl = (e) => e.shapeFlag & 7 || e.type === Ke;
|
|
7692
7692
|
function Ym(e, t, n) {
|
|
7693
|
-
const { props: r, children: o, component: s } = e, { props: i, children: a, patchFlag:
|
|
7693
|
+
const { props: r, children: o, component: s } = e, { props: i, children: a, patchFlag: l } = t, c = s.emitsOptions;
|
|
7694
7694
|
if (g.NODE_ENV !== "production" && (o || a) && Dn || t.dirs || t.transition)
|
|
7695
7695
|
return !0;
|
|
7696
|
-
if (n &&
|
|
7697
|
-
if (
|
|
7696
|
+
if (n && l >= 0) {
|
|
7697
|
+
if (l & 1024)
|
|
7698
7698
|
return !0;
|
|
7699
|
-
if (
|
|
7700
|
-
return r ? kl(r, i,
|
|
7701
|
-
if (
|
|
7699
|
+
if (l & 16)
|
|
7700
|
+
return r ? kl(r, i, c) : !!i;
|
|
7701
|
+
if (l & 8) {
|
|
7702
7702
|
const u = t.dynamicProps;
|
|
7703
7703
|
for (let d = 0; d < u.length; d++) {
|
|
7704
7704
|
const f = u[d];
|
|
7705
|
-
if (i[f] !== r[f] && !Zs(
|
|
7705
|
+
if (i[f] !== r[f] && !Zs(c, f))
|
|
7706
7706
|
return !0;
|
|
7707
7707
|
}
|
|
7708
7708
|
}
|
|
7709
7709
|
} else
|
|
7710
|
-
return (o || a) && (!a || !a.$stable) ? !0 : r === i ? !1 : r ? i ? kl(r, i,
|
|
7710
|
+
return (o || a) && (!a || !a.$stable) ? !0 : r === i ? !1 : r ? i ? kl(r, i, c) : !0 : !!i;
|
|
7711
7711
|
return !1;
|
|
7712
7712
|
}
|
|
7713
7713
|
function kl(e, t, n) {
|
|
@@ -7735,19 +7735,19 @@ function ev(e, t) {
|
|
|
7735
7735
|
t && t.pendingBranch ? le(e) ? t.effects.push(...e) : t.effects.push(e) : uu(e);
|
|
7736
7736
|
}
|
|
7737
7737
|
const Ce = Symbol.for("v-fgt"), Io = Symbol.for("v-txt"), Ke = Symbol.for("v-cmt"), no = Symbol.for("v-stc"), ro = [];
|
|
7738
|
-
let
|
|
7738
|
+
let Ot = null;
|
|
7739
7739
|
function _(e = !1) {
|
|
7740
|
-
ro.push(
|
|
7740
|
+
ro.push(Ot = e ? null : []);
|
|
7741
7741
|
}
|
|
7742
7742
|
function tv() {
|
|
7743
|
-
ro.pop(),
|
|
7743
|
+
ro.pop(), Ot = ro[ro.length - 1] || null;
|
|
7744
7744
|
}
|
|
7745
7745
|
let wo = 1;
|
|
7746
7746
|
function Cl(e) {
|
|
7747
|
-
wo += e, e < 0 &&
|
|
7747
|
+
wo += e, e < 0 && Ot && (Ot.hasOnce = !0);
|
|
7748
7748
|
}
|
|
7749
7749
|
function Zu(e) {
|
|
7750
|
-
return e.dynamicChildren = wo > 0 ?
|
|
7750
|
+
return e.dynamicChildren = wo > 0 ? Ot || Pr : null, tv(), wo > 0 && Ot && Ot.push(e), e;
|
|
7751
7751
|
}
|
|
7752
7752
|
function S(e, t, n, r, o, s) {
|
|
7753
7753
|
return Zu(
|
|
@@ -7791,9 +7791,9 @@ const nv = (...e) => Wu(
|
|
|
7791
7791
|
ref: e,
|
|
7792
7792
|
ref_key: t,
|
|
7793
7793
|
ref_for: n
|
|
7794
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? Be(e) || He(e) ||
|
|
7794
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? Be(e) || He(e) || pe(e) ? { i: Xe, r: e, k: t, f: !!n } : e : null);
|
|
7795
7795
|
function O(e, t = null, n = null, r = 0, o = null, s = e === Ce ? 0 : 1, i = !1, a = !1) {
|
|
7796
|
-
const
|
|
7796
|
+
const l = {
|
|
7797
7797
|
__v_isVNode: !0,
|
|
7798
7798
|
__v_skip: !0,
|
|
7799
7799
|
type: e,
|
|
@@ -7822,15 +7822,15 @@ function O(e, t = null, n = null, r = 0, o = null, s = e === Ce ? 0 : 1, i = !1,
|
|
|
7822
7822
|
appContext: null,
|
|
7823
7823
|
ctx: Xe
|
|
7824
7824
|
};
|
|
7825
|
-
return a ? ($a(
|
|
7825
|
+
return a ? ($a(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= Be(n) ? 8 : 16), g.NODE_ENV !== "production" && l.key !== l.key && U("VNode created with invalid key (NaN). VNode type:", l.type), wo > 0 && // avoid a block node from tracking itself
|
|
7826
7826
|
!i && // has current parent block
|
|
7827
|
-
|
|
7827
|
+
Ot && // presence of a patch flag indicates this node needs patching on updates.
|
|
7828
7828
|
// component nodes also should always be patched, because even if the
|
|
7829
7829
|
// component doesn't need to update, it needs to persist the instance on to
|
|
7830
7830
|
// the next vnode so that it can be properly unmounted later.
|
|
7831
|
-
(
|
|
7831
|
+
(l.patchFlag > 0 || s & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
7832
7832
|
// vnode should not be considered dynamic due to handler caching.
|
|
7833
|
-
|
|
7833
|
+
l.patchFlag !== 32 && Ot.push(l), l;
|
|
7834
7834
|
}
|
|
7835
7835
|
const B = g.NODE_ENV !== "production" ? nv : Wu;
|
|
7836
7836
|
function Wu(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
@@ -7841,14 +7841,14 @@ function Wu(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
|
7841
7841
|
!0
|
|
7842
7842
|
/* mergeRef: true */
|
|
7843
7843
|
);
|
|
7844
|
-
return n && $a(a, n), wo > 0 && !s &&
|
|
7844
|
+
return n && $a(a, n), wo > 0 && !s && Ot && (a.shapeFlag & 6 ? Ot[Ot.indexOf(e)] = a : Ot.push(a)), a.patchFlag = -2, a;
|
|
7845
7845
|
}
|
|
7846
7846
|
if (Ju(e) && (e = e.__vccOpts), t) {
|
|
7847
7847
|
t = rv(t);
|
|
7848
|
-
let { class: a, style:
|
|
7849
|
-
a && !Be(a) && (t.class = js(a)), De(
|
|
7848
|
+
let { class: a, style: l } = t;
|
|
7849
|
+
a && !Be(a) && (t.class = js(a)), De(l) && (Ns(l) && !le(l) && (l = qe({}, l)), t.style = ha(l));
|
|
7850
7850
|
}
|
|
7851
|
-
const i = Be(e) ? 1 : Qm(e) ? 128 : Vm(e) ? 64 : De(e) ? 4 :
|
|
7851
|
+
const i = Be(e) ? 1 : Qm(e) ? 128 : Vm(e) ? 64 : De(e) ? 4 : pe(e) ? 2 : 0;
|
|
7852
7852
|
return g.NODE_ENV !== "production" && i & 4 && Ns(e) && (e = ge(e), U(
|
|
7853
7853
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
7854
7854
|
`
|
|
@@ -7869,12 +7869,12 @@ function rv(e) {
|
|
|
7869
7869
|
return e ? Ns(e) || Pu(e) ? qe({}, e) : e : null;
|
|
7870
7870
|
}
|
|
7871
7871
|
function Lt(e, t, n = !1, r = !1) {
|
|
7872
|
-
const { props: o, ref: s, patchFlag: i, children: a, transition:
|
|
7872
|
+
const { props: o, ref: s, patchFlag: i, children: a, transition: l } = e, c = t ? Ia(o || {}, t) : o, u = {
|
|
7873
7873
|
__v_isVNode: !0,
|
|
7874
7874
|
__v_skip: !0,
|
|
7875
7875
|
type: e.type,
|
|
7876
|
-
props:
|
|
7877
|
-
key:
|
|
7876
|
+
props: c,
|
|
7877
|
+
key: c && qu(c),
|
|
7878
7878
|
ref: t && t.ref ? (
|
|
7879
7879
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
7880
7880
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -7898,7 +7898,7 @@ function Lt(e, t, n = !1, r = !1) {
|
|
|
7898
7898
|
dynamicChildren: e.dynamicChildren,
|
|
7899
7899
|
appContext: e.appContext,
|
|
7900
7900
|
dirs: e.dirs,
|
|
7901
|
-
transition:
|
|
7901
|
+
transition: l,
|
|
7902
7902
|
// These should technically only be non-null on mounted VNodes. However,
|
|
7903
7903
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
7904
7904
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -7912,9 +7912,9 @@ function Lt(e, t, n = !1, r = !1) {
|
|
|
7912
7912
|
ctx: e.ctx,
|
|
7913
7913
|
ce: e.ce
|
|
7914
7914
|
};
|
|
7915
|
-
return
|
|
7915
|
+
return l && r && ks(
|
|
7916
7916
|
u,
|
|
7917
|
-
|
|
7917
|
+
l.clone(u)
|
|
7918
7918
|
), u;
|
|
7919
7919
|
}
|
|
7920
7920
|
function zu(e) {
|
|
@@ -7959,7 +7959,7 @@ function $a(e, t) {
|
|
|
7959
7959
|
const o = t._;
|
|
7960
7960
|
!o && !Pu(t) ? t._ctx = Xe : o === 3 && Xe && (Xe.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
7961
7961
|
}
|
|
7962
|
-
else
|
|
7962
|
+
else pe(t) ? (t = { default: t, _ctx: Xe }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [Te(t)]) : n = 8);
|
|
7963
7963
|
e.children = t, e.shapeFlag |= n;
|
|
7964
7964
|
}
|
|
7965
7965
|
function Ia(...e) {
|
|
@@ -8139,15 +8139,15 @@ function uv(e, t) {
|
|
|
8139
8139
|
);
|
|
8140
8140
|
if (yn(), i(), ua(a)) {
|
|
8141
8141
|
if (a.then(Tl, Tl), t)
|
|
8142
|
-
return a.then((
|
|
8143
|
-
Pl(e,
|
|
8144
|
-
}).catch((
|
|
8145
|
-
To(
|
|
8142
|
+
return a.then((l) => {
|
|
8143
|
+
Pl(e, l, t);
|
|
8144
|
+
}).catch((l) => {
|
|
8145
|
+
To(l, e, 0);
|
|
8146
8146
|
});
|
|
8147
8147
|
if (e.asyncDep = a, g.NODE_ENV !== "production" && !e.suspense) {
|
|
8148
|
-
const
|
|
8148
|
+
const l = (n = r.name) != null ? n : "Anonymous";
|
|
8149
8149
|
U(
|
|
8150
|
-
`Component <${
|
|
8150
|
+
`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
|
|
8151
8151
|
);
|
|
8152
8152
|
}
|
|
8153
8153
|
} else
|
|
@@ -8156,7 +8156,7 @@ function uv(e, t) {
|
|
|
8156
8156
|
Gu(e, t);
|
|
8157
8157
|
}
|
|
8158
8158
|
function Pl(e, t, n) {
|
|
8159
|
-
|
|
8159
|
+
pe(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : De(t) ? (g.NODE_ENV !== "production" && Rr(t) && U(
|
|
8160
8160
|
"setup() should not return VNodes directly - return a render function instead."
|
|
8161
8161
|
), g.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = su(t), g.NODE_ENV !== "production" && fm(e)) : g.NODE_ENV !== "production" && t !== void 0 && U(
|
|
8162
8162
|
`setup() should return an object. Received: ${t === null ? "null" : typeof t}`
|
|
@@ -8171,7 +8171,7 @@ function Gu(e, t, n) {
|
|
|
8171
8171
|
const o = r.template || ka(e).template;
|
|
8172
8172
|
if (o) {
|
|
8173
8173
|
g.NODE_ENV !== "production" && nn(e, "compile");
|
|
8174
|
-
const { isCustomElement: s, compilerOptions: i } = e.appContext.config, { delimiters: a, compilerOptions:
|
|
8174
|
+
const { isCustomElement: s, compilerOptions: i } = e.appContext.config, { delimiters: a, compilerOptions: l } = r, c = qe(
|
|
8175
8175
|
qe(
|
|
8176
8176
|
{
|
|
8177
8177
|
isCustomElement: s,
|
|
@@ -8179,9 +8179,9 @@ function Gu(e, t, n) {
|
|
|
8179
8179
|
},
|
|
8180
8180
|
i
|
|
8181
8181
|
),
|
|
8182
|
-
|
|
8182
|
+
l
|
|
8183
8183
|
);
|
|
8184
|
-
r.render = Gi(o,
|
|
8184
|
+
r.render = Gi(o, c), g.NODE_ENV !== "production" && rn(e, "compile");
|
|
8185
8185
|
}
|
|
8186
8186
|
}
|
|
8187
8187
|
e.render = r.render || We;
|
|
@@ -8268,7 +8268,7 @@ function Da(e) {
|
|
|
8268
8268
|
}
|
|
8269
8269
|
const hv = /(?:^|[-_])(\w)/g, mv = (e) => e.replace(hv, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
8270
8270
|
function Aa(e, t = !0) {
|
|
8271
|
-
return
|
|
8271
|
+
return pe(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
8272
8272
|
}
|
|
8273
8273
|
function zs(e, t, n = !1) {
|
|
8274
8274
|
let r = Aa(t);
|
|
@@ -8289,7 +8289,7 @@ function zs(e, t, n = !1) {
|
|
|
8289
8289
|
return r ? mv(r) : n ? "App" : "Anonymous";
|
|
8290
8290
|
}
|
|
8291
8291
|
function Ju(e) {
|
|
8292
|
-
return
|
|
8292
|
+
return pe(e) && "__vccOpts" in e;
|
|
8293
8293
|
}
|
|
8294
8294
|
const X = (e, t) => {
|
|
8295
8295
|
const n = yh(e, t, Ws);
|
|
@@ -8347,9 +8347,9 @@ function vv() {
|
|
|
8347
8347
|
function s(d) {
|
|
8348
8348
|
const f = [];
|
|
8349
8349
|
d.type.props && d.props && f.push(i("props", ge(d.props))), d.setupState !== Fe && f.push(i("setup", d.setupState)), d.data !== Fe && f.push(i("data", ge(d.data)));
|
|
8350
|
-
const m =
|
|
8350
|
+
const m = l(d, "computed");
|
|
8351
8351
|
m && f.push(i("computed", m));
|
|
8352
|
-
const y =
|
|
8352
|
+
const y = l(d, "inject");
|
|
8353
8353
|
return y && f.push(i("injected", y)), f.push([
|
|
8354
8354
|
"div",
|
|
8355
8355
|
{},
|
|
@@ -8391,18 +8391,18 @@ function vv() {
|
|
|
8391
8391
|
function a(d, f = !0) {
|
|
8392
8392
|
return typeof d == "number" ? ["span", t, d] : typeof d == "string" ? ["span", n, JSON.stringify(d)] : typeof d == "boolean" ? ["span", r, d] : De(d) ? ["object", { object: f ? ge(d) : d }] : ["span", n, String(d)];
|
|
8393
8393
|
}
|
|
8394
|
-
function
|
|
8394
|
+
function l(d, f) {
|
|
8395
8395
|
const m = d.type;
|
|
8396
|
-
if (
|
|
8396
|
+
if (pe(m))
|
|
8397
8397
|
return;
|
|
8398
8398
|
const y = {};
|
|
8399
8399
|
for (const E in d.ctx)
|
|
8400
|
-
|
|
8400
|
+
c(m, E, f) && (y[E] = d.ctx[E]);
|
|
8401
8401
|
return y;
|
|
8402
8402
|
}
|
|
8403
|
-
function
|
|
8403
|
+
function c(d, f, m) {
|
|
8404
8404
|
const y = d[m];
|
|
8405
|
-
if (le(y) && y.includes(f) || De(y) && f in y || d.extends &&
|
|
8405
|
+
if (le(y) && y.includes(f) || De(y) && f in y || d.extends && c(d.extends, f, m) || d.mixins && d.mixins.some((E) => c(E, f, m)))
|
|
8406
8406
|
return !0;
|
|
8407
8407
|
}
|
|
8408
8408
|
function u(d) {
|
|
@@ -8451,10 +8451,10 @@ const gv = "http://www.w3.org/2000/svg", yv = "http://www.w3.org/1998/Math/MathM
|
|
|
8451
8451
|
Dl.innerHTML = r === "svg" ? `<svg>${e}</svg>` : r === "mathml" ? `<math>${e}</math>` : e;
|
|
8452
8452
|
const a = Dl.content;
|
|
8453
8453
|
if (r === "svg" || r === "mathml") {
|
|
8454
|
-
const
|
|
8455
|
-
for (;
|
|
8456
|
-
a.appendChild(
|
|
8457
|
-
a.removeChild(
|
|
8454
|
+
const l = a.firstChild;
|
|
8455
|
+
for (; l.firstChild; )
|
|
8456
|
+
a.appendChild(l.firstChild);
|
|
8457
|
+
a.removeChild(l);
|
|
8458
8458
|
}
|
|
8459
8459
|
t.insertBefore(a, n);
|
|
8460
8460
|
}
|
|
@@ -8506,8 +8506,8 @@ function bv(e) {
|
|
|
8506
8506
|
enterFromClass: s = `${n}-enter-from`,
|
|
8507
8507
|
enterActiveClass: i = `${n}-enter-active`,
|
|
8508
8508
|
enterToClass: a = `${n}-enter-to`,
|
|
8509
|
-
appearFromClass:
|
|
8510
|
-
appearActiveClass:
|
|
8509
|
+
appearFromClass: l = s,
|
|
8510
|
+
appearActiveClass: c = i,
|
|
8511
8511
|
appearToClass: u = a,
|
|
8512
8512
|
leaveFromClass: d = `${n}-leave-from`,
|
|
8513
8513
|
leaveActiveClass: f = `${n}-leave-active`,
|
|
@@ -8522,13 +8522,13 @@ function bv(e) {
|
|
|
8522
8522
|
onAppear: x = F,
|
|
8523
8523
|
onAppearCancelled: de = C
|
|
8524
8524
|
} = t, Y = (j, oe, w) => {
|
|
8525
|
-
Xn(j, oe ? u : a), Xn(j, oe ?
|
|
8525
|
+
Xn(j, oe ? u : a), Xn(j, oe ? c : i), w && w();
|
|
8526
8526
|
}, V = (j, oe) => {
|
|
8527
8527
|
j._isLeaving = !1, Xn(j, d), Xn(j, m), Xn(j, f), oe && oe();
|
|
8528
8528
|
}, P = (j) => (oe, w) => {
|
|
8529
8529
|
const I = j ? x : F, ne = () => Y(oe, j, w);
|
|
8530
8530
|
Yn(I, [oe, ne]), Vl(() => {
|
|
8531
|
-
Xn(oe, j ?
|
|
8531
|
+
Xn(oe, j ? l : s), On(oe, j ? u : a), Al(I) || Rl(oe, r, E, ne);
|
|
8532
8532
|
});
|
|
8533
8533
|
};
|
|
8534
8534
|
return qe(t, {
|
|
@@ -8536,7 +8536,7 @@ function bv(e) {
|
|
|
8536
8536
|
Yn(A, [j]), On(j, s), On(j, i);
|
|
8537
8537
|
},
|
|
8538
8538
|
onBeforeAppear(j) {
|
|
8539
|
-
Yn(Z, [j]), On(j,
|
|
8539
|
+
Yn(Z, [j]), On(j, l), On(j, c);
|
|
8540
8540
|
},
|
|
8541
8541
|
onEnter: P(!1),
|
|
8542
8542
|
onAppear: P(!0),
|
|
@@ -8592,24 +8592,24 @@ function Rl(e, t, n, r) {
|
|
|
8592
8592
|
};
|
|
8593
8593
|
if (n)
|
|
8594
8594
|
return setTimeout(s, n);
|
|
8595
|
-
const { type: i, timeout: a, propCount:
|
|
8595
|
+
const { type: i, timeout: a, propCount: l } = Ov(e, t);
|
|
8596
8596
|
if (!i)
|
|
8597
8597
|
return r();
|
|
8598
|
-
const
|
|
8598
|
+
const c = i + "end";
|
|
8599
8599
|
let u = 0;
|
|
8600
8600
|
const d = () => {
|
|
8601
|
-
e.removeEventListener(
|
|
8601
|
+
e.removeEventListener(c, f), s();
|
|
8602
8602
|
}, f = (m) => {
|
|
8603
|
-
m.target === e && ++u >=
|
|
8603
|
+
m.target === e && ++u >= l && d();
|
|
8604
8604
|
};
|
|
8605
8605
|
setTimeout(() => {
|
|
8606
|
-
u <
|
|
8607
|
-
}, a + 1), e.addEventListener(
|
|
8606
|
+
u < l && d();
|
|
8607
|
+
}, a + 1), e.addEventListener(c, f);
|
|
8608
8608
|
}
|
|
8609
8609
|
function Ov(e, t) {
|
|
8610
|
-
const n = window.getComputedStyle(e), r = (y) => (n[y] || "").split(", "), o = r(`${En}Delay`), s = r(`${En}Duration`), i = jl(o, s), a = r(`${Hr}Delay`),
|
|
8610
|
+
const n = window.getComputedStyle(e), r = (y) => (n[y] || "").split(", "), o = r(`${En}Delay`), s = r(`${En}Duration`), i = jl(o, s), a = r(`${Hr}Delay`), l = r(`${Hr}Duration`), c = jl(a, l);
|
|
8611
8611
|
let u = null, d = 0, f = 0;
|
|
8612
|
-
t === En ? i > 0 && (u = En, d = i, f = s.length) : t === Hr ?
|
|
8612
|
+
t === En ? i > 0 && (u = En, d = i, f = s.length) : t === Hr ? c > 0 && (u = Hr, d = c, f = l.length) : (d = Math.max(i, c), u = d > 0 ? i > c ? En : Hr : null, f = u ? u === En ? s.length : l.length : 0);
|
|
8613
8613
|
const m = u === En && /\b(transform|all)(,|$)/.test(
|
|
8614
8614
|
r(`${En}Property`).toString()
|
|
8615
8615
|
);
|
|
@@ -8681,7 +8681,7 @@ function $v(e, t) {
|
|
|
8681
8681
|
const n = mi[t];
|
|
8682
8682
|
if (n)
|
|
8683
8683
|
return n;
|
|
8684
|
-
let r =
|
|
8684
|
+
let r = St(t);
|
|
8685
8685
|
if (r !== "filter" && r in e)
|
|
8686
8686
|
return mi[t] = r;
|
|
8687
8687
|
r = br(r);
|
|
@@ -8739,14 +8739,14 @@ function Vv(e, t, n, r, o = null) {
|
|
|
8739
8739
|
if (r && i)
|
|
8740
8740
|
i.value = mn.NODE_ENV !== "production" ? Wl(r, t) : r;
|
|
8741
8741
|
else {
|
|
8742
|
-
const [a,
|
|
8742
|
+
const [a, l] = Rv(t);
|
|
8743
8743
|
if (r) {
|
|
8744
|
-
const
|
|
8744
|
+
const c = s[t] = Mv(
|
|
8745
8745
|
mn.NODE_ENV !== "production" ? Wl(r, t) : r,
|
|
8746
8746
|
o
|
|
8747
8747
|
);
|
|
8748
|
-
Dv(e, a,
|
|
8749
|
-
} else i && (Av(e, a, i,
|
|
8748
|
+
Dv(e, a, c, l);
|
|
8749
|
+
} else i && (Av(e, a, i, l), s[t] = void 0);
|
|
8750
8750
|
}
|
|
8751
8751
|
}
|
|
8752
8752
|
const ql = /(?:Once|Passive|Capture)$/;
|
|
@@ -8778,7 +8778,7 @@ function Mv(e, t) {
|
|
|
8778
8778
|
return n.value = e, n.attached = Lv(), n;
|
|
8779
8779
|
}
|
|
8780
8780
|
function Wl(e, t) {
|
|
8781
|
-
return
|
|
8781
|
+
return pe(e) || le(e) ? e : (An(
|
|
8782
8782
|
`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
8783
8783
|
Expected function or array of functions, received type ${typeof e}.`
|
|
8784
8784
|
), We);
|
|
@@ -8801,7 +8801,7 @@ e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Fv = (e, t, n, r, o, s) => {
|
|
|
8801
8801
|
};
|
|
8802
8802
|
function Bv(e, t, n, r) {
|
|
8803
8803
|
if (r)
|
|
8804
|
-
return !!(t === "innerHTML" || t === "textContent" || t in e && zl(t) &&
|
|
8804
|
+
return !!(t === "innerHTML" || t === "textContent" || t in e && zl(t) && pe(n));
|
|
8805
8805
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA")
|
|
8806
8806
|
return !1;
|
|
8807
8807
|
if (t === "width" || t === "height") {
|
|
@@ -8845,7 +8845,7 @@ const Kv = (...e) => {
|
|
|
8845
8845
|
const o = Xv(r);
|
|
8846
8846
|
if (!o) return;
|
|
8847
8847
|
const s = t._component;
|
|
8848
|
-
!
|
|
8848
|
+
!pe(s) && !s.render && !s.template && (s.template = o.innerHTML), o.innerHTML = "";
|
|
8849
8849
|
const i = n(o, !1, Gv(o));
|
|
8850
8850
|
return o instanceof Element && (o.removeAttribute("v-cloak"), o.setAttribute("data-v-app", "")), i;
|
|
8851
8851
|
}, t;
|
|
@@ -8937,7 +8937,7 @@ function sg(e, t = 100) {
|
|
|
8937
8937
|
var ig = v.object({
|
|
8938
8938
|
source: v.literal("moonbase-checkout"),
|
|
8939
8939
|
event: v.literal("close"),
|
|
8940
|
-
|
|
8940
|
+
intent: v.string().optional()
|
|
8941
8941
|
}), ag = v.object({
|
|
8942
8942
|
source: v.literal("moonbase-checkout"),
|
|
8943
8943
|
event: v.literal("completed")
|
|
@@ -8948,11 +8948,11 @@ function Xu(e) {
|
|
|
8948
8948
|
return;
|
|
8949
8949
|
}
|
|
8950
8950
|
const t = document.createElement("iframe");
|
|
8951
|
-
t.id = "moonbase-checkout", t.src = e, t.style.position = "fixed", t.style.top = "0px", t.style.left = "0px", t.style.right = "0px", t.style.border = "none", t.style.colorScheme = "normal", t.style.backgroundColor = "transparent", t.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), t.setAttribute("background", "transparent"), t.setAttribute("frameborder", "0"), t.setAttribute("allowtransparency", "true"), t.height = "100%", t.width = "100%", document.body.append(t), window.onmessage = function(n) {
|
|
8951
|
+
t.id = "moonbase-checkout", t.src = e, t.style.position = "fixed", t.style.top = "0px", t.style.left = "0px", t.style.right = "0px", t.style.border = "none", t.style.colorScheme = "normal", t.style.backgroundColor = "transparent", t.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), t.setAttribute("background", "transparent"), t.setAttribute("frameborder", "0"), t.setAttribute("allowtransparency", "true"), t.height = "100%", t.width = "100%", document.body.append(t), document.documentElement.style.overflow = "hidden", window.onmessage = function(n) {
|
|
8952
8952
|
var r;
|
|
8953
8953
|
try {
|
|
8954
8954
|
const o = lg.parse(n.data);
|
|
8955
|
-
o.event === "close" && (document.body.contains(t) && document.body.removeChild(t), window.dispatchEvent(new CustomEvent("moonbase-checkout-closed", {
|
|
8955
|
+
o.event === "close" && (document.body.contains(t) && (document.documentElement.style.removeProperty("overflow"), document.body.removeChild(t)), window.dispatchEvent(new CustomEvent("moonbase-checkout-closed", {
|
|
8956
8956
|
detail: o
|
|
8957
8957
|
}))), o.event === "completed" && window.dispatchEvent(new CustomEvent("moonbase-checkout-completed", {
|
|
8958
8958
|
detail: o
|
|
@@ -8964,7 +8964,7 @@ function Xu(e) {
|
|
|
8964
8964
|
}
|
|
8965
8965
|
var Ks = class st {
|
|
8966
8966
|
constructor(t, n, r) {
|
|
8967
|
-
this.configuration = t, this.client = n, this.stateFactory = r, this.hasUtm = X(() => !!this.utm.value && Object.values(this.utm.value).some((
|
|
8967
|
+
this.configuration = t, this.client = n, this.stateFactory = r, this.hasUtm = X(() => !!this.utm.value && Object.values(this.utm.value).some((l) => !!l)), this.currentUser = T(null), this.loadedUser = T(!1), this.debouncedPushOrderContent = sg((l) => this.client.orders.pushContent(l, void 0, this.hasUtm.value ? this.utm.value : void 0), 500);
|
|
8968
8968
|
var o;
|
|
8969
8969
|
if (typeof window > "u") {
|
|
8970
8970
|
this.currentOrder = T({
|
|
@@ -8988,7 +8988,7 @@ var Ks = class st {
|
|
|
8988
8988
|
campaign: s.get("utm_campaign") || void 0,
|
|
8989
8989
|
term: s.get("utm_term") || void 0,
|
|
8990
8990
|
content: s.get("utm_content") || void 0
|
|
8991
|
-
}), window.addEventListener("storage", (
|
|
8991
|
+
}), window.addEventListener("storage", (l) => this.handleStorageUpdate(l));
|
|
8992
8992
|
const i = localStorage.getItem(st.sessionKey);
|
|
8993
8993
|
i ? (this.currentOrder = T(JSON.parse(i)), this.refreshOrder()) : this.currentOrder = T({
|
|
8994
8994
|
id: gi(),
|
|
@@ -9003,9 +9003,9 @@ var Ks = class st {
|
|
|
9003
9003
|
bundles: [],
|
|
9004
9004
|
products: []
|
|
9005
9005
|
}), this.loadedStorefront = r(`${st.storefrontKey}_loaded`, !1)), this.client.tokenStore.hasAccessToken && (this.currentUser.value = this.client.tokenStore.user), this.updateStorefront(), this.updateUser(), window.location) {
|
|
9006
|
-
const
|
|
9007
|
-
if (
|
|
9008
|
-
const d = Object.fromEntries([...
|
|
9006
|
+
const l = new URLSearchParams(window.location.search), c = l.get("mb_intent"), u = l.get("mb_endpoint");
|
|
9007
|
+
if (c === "checkout" && l.get("mb_complete") && u) {
|
|
9008
|
+
const d = Object.fromEntries([...l.entries()].filter(([m]) => !m.startsWith("mb_"))), f = new URL(decodeURIComponent(u));
|
|
9009
9009
|
for (const m of Object.keys(d))
|
|
9010
9010
|
f.searchParams.append(m, d[m]);
|
|
9011
9011
|
Xu(f.toString()), window.history.replaceState(null, "", window.location.href.split("?")[0]);
|
|
@@ -9031,7 +9031,7 @@ var Ks = class st {
|
|
|
9031
9031
|
window.addEventListener("moonbase-checkout-completed", () => t());
|
|
9032
9032
|
}
|
|
9033
9033
|
onCheckoutClosed(t) {
|
|
9034
|
-
window.addEventListener("moonbase-checkout-closed", (n) => t(n.detail.
|
|
9034
|
+
window.addEventListener("moonbase-checkout-closed", (n) => t(n.detail.intent));
|
|
9035
9035
|
}
|
|
9036
9036
|
install(t) {
|
|
9037
9037
|
t.provide(Wn, this), console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs");
|
|
@@ -9123,21 +9123,21 @@ function ug(e, t) {
|
|
|
9123
9123
|
throw new Error("No request ID was given when calling `useActivationRequest`");
|
|
9124
9124
|
if (!n)
|
|
9125
9125
|
throw new Error("No storefront configured");
|
|
9126
|
-
const o = n.stateFactory(`activation-request-${r}`, null), s = n.stateFactory(`activation-request-${r}-error`, null), i = n.stateFactory(`activation-request-${r}-loading`, !0), a = n.stateFactory(`activation-request-${r}-fulfilling`, !1),
|
|
9127
|
-
await n.client.activationRequests.isCompleted(r) && o.value ? (o.value.status = Ft.Completed,
|
|
9126
|
+
const o = n.stateFactory(`activation-request-${r}`, null), s = n.stateFactory(`activation-request-${r}-error`, null), i = n.stateFactory(`activation-request-${r}-loading`, !0), a = n.stateFactory(`activation-request-${r}-fulfilling`, !1), l = n.stateFactory(`activation-request-${r}-completing`, !1), c = n.stateFactory(`activation-request-${r}-completion-timeout`, null), u = async () => {
|
|
9127
|
+
await n.client.activationRequests.isCompleted(r) && o.value ? (o.value.status = Ft.Completed, l.value = !1) : c.value = setTimeout(u, 1500);
|
|
9128
9128
|
};
|
|
9129
9129
|
return r && r.length > 0 ? n.client.activationRequests.get(r).then((d) => {
|
|
9130
|
-
o.value = d, o.value.status === Ft.Fulfilled && (
|
|
9130
|
+
o.value = d, o.value.status === Ft.Fulfilled && (l.value = !0, u()), i.value = !1;
|
|
9131
9131
|
}).catch((d) => {
|
|
9132
9132
|
s.value = d, i.value = !1;
|
|
9133
9133
|
}) : (s.value = new Error("Missing request id"), i.value = !1), Na(() => {
|
|
9134
|
-
|
|
9134
|
+
c.value && clearTimeout(c.value);
|
|
9135
9135
|
}), Qe(n.currentUser, async () => {
|
|
9136
9136
|
var d, f;
|
|
9137
9137
|
if (!(!r || (f = (d = o.value) == null ? void 0 : d.licenseEligibility) != null && f.eligible)) {
|
|
9138
9138
|
i.value = !0;
|
|
9139
9139
|
try {
|
|
9140
|
-
o.value = await n.client.activationRequests.get(r), o.value.status === Ft.Fulfilled && (
|
|
9140
|
+
o.value = await n.client.activationRequests.get(r), o.value.status === Ft.Fulfilled && (l.value = !0, u());
|
|
9141
9141
|
} catch (m) {
|
|
9142
9142
|
s.value = m;
|
|
9143
9143
|
}
|
|
@@ -9147,17 +9147,17 @@ function ug(e, t) {
|
|
|
9147
9147
|
activationRequest: o,
|
|
9148
9148
|
loading: i,
|
|
9149
9149
|
fulfilling: a,
|
|
9150
|
-
completing:
|
|
9150
|
+
completing: l,
|
|
9151
9151
|
error: s,
|
|
9152
9152
|
isInstalled: X(() => {
|
|
9153
9153
|
var d;
|
|
9154
9154
|
return o && ((d = o.value) == null ? void 0 : d.status) === Ft.Completed;
|
|
9155
9155
|
}),
|
|
9156
9156
|
fulfillLicense: async () => {
|
|
9157
|
-
a.value = !0, o.value = await n.client.activationRequests.fulfillLicense(r), a.value = !1,
|
|
9157
|
+
a.value = !0, o.value = await n.client.activationRequests.fulfillLicense(r), a.value = !1, l.value = !0, u();
|
|
9158
9158
|
},
|
|
9159
9159
|
fulfillTrial: async () => {
|
|
9160
|
-
a.value = !0, o.value = await n.client.activationRequests.fulfillTrial(r), a.value = !1,
|
|
9160
|
+
a.value = !0, o.value = await n.client.activationRequests.fulfillTrial(r), a.value = !1, l.value = !0, u();
|
|
9161
9161
|
},
|
|
9162
9162
|
cancel: async () => {
|
|
9163
9163
|
var d;
|
|
@@ -9214,14 +9214,14 @@ function Ji(e) {
|
|
|
9214
9214
|
total: X(() => {
|
|
9215
9215
|
const n = t.currentOrder.value.currency || t.storefront.value.suggestedCurrency;
|
|
9216
9216
|
return { amount: t.currentOrder.value.items.reduce((o, s) => {
|
|
9217
|
-
var i, a,
|
|
9217
|
+
var i, a, l, c, u, d;
|
|
9218
9218
|
let f;
|
|
9219
9219
|
if (s.type === "Product") {
|
|
9220
9220
|
const m = t.storefront.value.products.find((N) => N.id === s.productId), E = ((m == null ? void 0 : m.variations) || []).find((N) => N.id === s.variationId);
|
|
9221
|
-
f = (
|
|
9221
|
+
f = (l = (a = E == null ? void 0 : E.price[n]) != null ? a : (i = m == null ? void 0 : m.defaultVariation) == null ? void 0 : i.price[n]) != null ? l : 0;
|
|
9222
9222
|
} else {
|
|
9223
9223
|
const m = t.storefront.value.bundles.find((N) => N.id === s.bundleId), E = ((m == null ? void 0 : m.variations) || []).find((N) => N.id === s.variationId);
|
|
9224
|
-
f = (d = (u = E == null ? void 0 : E.price[n]) != null ? u : (
|
|
9224
|
+
f = (d = (u = E == null ? void 0 : E.price[n]) != null ? u : (c = m == null ? void 0 : m.defaultVariation) == null ? void 0 : c.price[n]) != null ? d : 0;
|
|
9225
9225
|
}
|
|
9226
9226
|
return o + f * s.quantity;
|
|
9227
9227
|
}, 0), currency: n };
|
|
@@ -9284,7 +9284,7 @@ function Ji(e) {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
};
|
|
9286
9286
|
}
|
|
9287
|
-
function
|
|
9287
|
+
function wt(e) {
|
|
9288
9288
|
const t = e ?? $e(Wn);
|
|
9289
9289
|
if (!t)
|
|
9290
9290
|
throw new Error("No storefront configured");
|
|
@@ -9296,17 +9296,17 @@ function St(e) {
|
|
|
9296
9296
|
const o = await t.client.identity.signIn(n, r);
|
|
9297
9297
|
return t.currentUser.value = o, t.updateStorefront(), o;
|
|
9298
9298
|
},
|
|
9299
|
-
signUp: async (n, r, o, s, i, a,
|
|
9300
|
-
const
|
|
9299
|
+
signUp: async (n, r, o, s, i, a, l) => {
|
|
9300
|
+
const c = await t.client.identity.signUp(
|
|
9301
9301
|
n,
|
|
9302
9302
|
r,
|
|
9303
9303
|
o,
|
|
9304
9304
|
s,
|
|
9305
9305
|
i,
|
|
9306
9306
|
a,
|
|
9307
|
-
|
|
9307
|
+
l
|
|
9308
9308
|
);
|
|
9309
|
-
return t.currentUser.value =
|
|
9309
|
+
return t.currentUser.value = c, t.updateStorefront(), c;
|
|
9310
9310
|
},
|
|
9311
9311
|
signOut: async () => {
|
|
9312
9312
|
t.client.tokenStore.setUser(null), await t.updateStorefront(), t.currentUser.value = null;
|
|
@@ -9401,23 +9401,23 @@ class _g {
|
|
|
9401
9401
|
}, n && n.on(vg, (i, a) => {
|
|
9402
9402
|
i === this.plugin.id && this.fallbacks.setSettings(a);
|
|
9403
9403
|
}), this.proxiedOn = new Proxy({}, {
|
|
9404
|
-
get: (i, a) => this.target ? this.target.on[a] : (...
|
|
9404
|
+
get: (i, a) => this.target ? this.target.on[a] : (...l) => {
|
|
9405
9405
|
this.onQueue.push({
|
|
9406
9406
|
method: a,
|
|
9407
|
-
args:
|
|
9407
|
+
args: l
|
|
9408
9408
|
});
|
|
9409
9409
|
}
|
|
9410
9410
|
}), this.proxiedTarget = new Proxy({}, {
|
|
9411
|
-
get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...
|
|
9411
|
+
get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...l) => (this.targetQueue.push({
|
|
9412
9412
|
method: a,
|
|
9413
|
-
args:
|
|
9413
|
+
args: l,
|
|
9414
9414
|
resolve: () => {
|
|
9415
9415
|
}
|
|
9416
|
-
}), this.fallbacks[a](...
|
|
9416
|
+
}), this.fallbacks[a](...l)) : (...l) => new Promise((c) => {
|
|
9417
9417
|
this.targetQueue.push({
|
|
9418
9418
|
method: a,
|
|
9419
|
-
args:
|
|
9420
|
-
resolve:
|
|
9419
|
+
args: l,
|
|
9420
|
+
resolve: c
|
|
9421
9421
|
});
|
|
9422
9422
|
})
|
|
9423
9423
|
});
|
|
@@ -9524,10 +9524,10 @@ function Og(e, t, n, r) {
|
|
|
9524
9524
|
if ((i || o && s || od) && typeof FileReader < "u") {
|
|
9525
9525
|
const a = new FileReader();
|
|
9526
9526
|
a.onloadend = function() {
|
|
9527
|
-
let
|
|
9528
|
-
if (typeof
|
|
9527
|
+
let l = a.result;
|
|
9528
|
+
if (typeof l != "string")
|
|
9529
9529
|
throw r = null, new Error("Wrong reader.result type");
|
|
9530
|
-
|
|
9530
|
+
l = i ? l : l.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = l : location.assign(l), r = null;
|
|
9531
9531
|
}, a.readAsDataURL(e);
|
|
9532
9532
|
} else {
|
|
9533
9533
|
const a = URL.createObjectURL(e);
|
|
@@ -9643,7 +9643,7 @@ function Pg(e) {
|
|
|
9643
9643
|
return {
|
|
9644
9644
|
editable: !1,
|
|
9645
9645
|
key: s,
|
|
9646
|
-
value: i._getters.reduce((a,
|
|
9646
|
+
value: i._getters.reduce((a, l) => (a[l] = i[l], a), {})
|
|
9647
9647
|
};
|
|
9648
9648
|
})
|
|
9649
9649
|
};
|
|
@@ -9773,19 +9773,19 @@ function Ag(e, t) {
|
|
|
9773
9773
|
}
|
|
9774
9774
|
} : (
|
|
9775
9775
|
// NOTE: workaround to unwrap transferred refs
|
|
9776
|
-
Object.keys(a.$state).reduce((
|
|
9776
|
+
Object.keys(a.$state).reduce((l, c) => (l[c] = a.$state[c], l), {})
|
|
9777
9777
|
)
|
|
9778
9778
|
}), a._getters && a._getters.length && r.instanceData.state.push({
|
|
9779
9779
|
type: Is(a.$id),
|
|
9780
9780
|
key: "getters",
|
|
9781
9781
|
editable: !1,
|
|
9782
|
-
value: a._getters.reduce((
|
|
9782
|
+
value: a._getters.reduce((l, c) => {
|
|
9783
9783
|
try {
|
|
9784
|
-
c
|
|
9784
|
+
l[c] = a[c];
|
|
9785
9785
|
} catch (u) {
|
|
9786
|
-
c
|
|
9786
|
+
l[c] = u;
|
|
9787
9787
|
}
|
|
9788
|
-
return
|
|
9788
|
+
return l;
|
|
9789
9789
|
}, {})
|
|
9790
9790
|
});
|
|
9791
9791
|
});
|
|
@@ -9848,18 +9848,18 @@ function Vg(e, t) {
|
|
|
9848
9848
|
}
|
|
9849
9849
|
}, (n) => {
|
|
9850
9850
|
const r = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
9851
|
-
t.$onAction(({ after: i, onError: a, name:
|
|
9851
|
+
t.$onAction(({ after: i, onError: a, name: l, args: c }) => {
|
|
9852
9852
|
const u = ud++;
|
|
9853
9853
|
n.addTimelineEvent({
|
|
9854
9854
|
layerId: tr,
|
|
9855
9855
|
event: {
|
|
9856
9856
|
time: r(),
|
|
9857
|
-
title: "🛫 " +
|
|
9857
|
+
title: "🛫 " + l,
|
|
9858
9858
|
subtitle: "start",
|
|
9859
9859
|
data: {
|
|
9860
9860
|
store: It(t.$id),
|
|
9861
|
-
action: It(
|
|
9862
|
-
args:
|
|
9861
|
+
action: It(l),
|
|
9862
|
+
args: c
|
|
9863
9863
|
},
|
|
9864
9864
|
groupId: u
|
|
9865
9865
|
}
|
|
@@ -9868,12 +9868,12 @@ function Vg(e, t) {
|
|
|
9868
9868
|
layerId: tr,
|
|
9869
9869
|
event: {
|
|
9870
9870
|
time: r(),
|
|
9871
|
-
title: "🛬 " +
|
|
9871
|
+
title: "🛬 " + l,
|
|
9872
9872
|
subtitle: "end",
|
|
9873
9873
|
data: {
|
|
9874
9874
|
store: It(t.$id),
|
|
9875
|
-
action: It(
|
|
9876
|
-
args:
|
|
9875
|
+
action: It(l),
|
|
9876
|
+
args: c,
|
|
9877
9877
|
result: d
|
|
9878
9878
|
},
|
|
9879
9879
|
groupId: u
|
|
@@ -9885,12 +9885,12 @@ function Vg(e, t) {
|
|
|
9885
9885
|
event: {
|
|
9886
9886
|
time: r(),
|
|
9887
9887
|
logType: "error",
|
|
9888
|
-
title: "💥 " +
|
|
9888
|
+
title: "💥 " + l,
|
|
9889
9889
|
subtitle: "end",
|
|
9890
9890
|
data: {
|
|
9891
9891
|
store: It(t.$id),
|
|
9892
|
-
action: It(
|
|
9893
|
-
args:
|
|
9892
|
+
action: It(l),
|
|
9893
|
+
args: c,
|
|
9894
9894
|
error: d
|
|
9895
9895
|
},
|
|
9896
9896
|
groupId: u
|
|
@@ -9898,7 +9898,7 @@ function Vg(e, t) {
|
|
|
9898
9898
|
});
|
|
9899
9899
|
});
|
|
9900
9900
|
}, !0), t._customProperties.forEach((i) => {
|
|
9901
|
-
Qe(() => b(t[i]), (a,
|
|
9901
|
+
Qe(() => b(t[i]), (a, l) => {
|
|
9902
9902
|
n.notifyComponentUpdate(), n.sendInspectorState(ct), Cr && n.addTimelineEvent({
|
|
9903
9903
|
layerId: tr,
|
|
9904
9904
|
event: {
|
|
@@ -9907,22 +9907,22 @@ function Vg(e, t) {
|
|
|
9907
9907
|
subtitle: i,
|
|
9908
9908
|
data: {
|
|
9909
9909
|
newValue: a,
|
|
9910
|
-
oldValue:
|
|
9910
|
+
oldValue: l
|
|
9911
9911
|
},
|
|
9912
9912
|
groupId: Pn
|
|
9913
9913
|
}
|
|
9914
9914
|
});
|
|
9915
9915
|
}, { deep: !0 });
|
|
9916
|
-
}), t.$subscribe(({ events: i, type: a },
|
|
9916
|
+
}), t.$subscribe(({ events: i, type: a }, l) => {
|
|
9917
9917
|
if (n.notifyComponentUpdate(), n.sendInspectorState(ct), !Cr)
|
|
9918
9918
|
return;
|
|
9919
|
-
const
|
|
9919
|
+
const c = {
|
|
9920
9920
|
time: r(),
|
|
9921
9921
|
title: Ig(a),
|
|
9922
9922
|
data: Dg({ store: It(t.$id) }, $g(i)),
|
|
9923
9923
|
groupId: Pn
|
|
9924
9924
|
};
|
|
9925
|
-
a === Kt.patchFunction ?
|
|
9925
|
+
a === Kt.patchFunction ? c.subtitle = "⤵️" : a === Kt.patchObject ? c.subtitle = "🧩" : i && !Array.isArray(i) && (c.subtitle = i.type), i && (c.data["rawEvent(s)"] = {
|
|
9926
9926
|
_custom: {
|
|
9927
9927
|
display: "DebuggerEvent",
|
|
9928
9928
|
type: "object",
|
|
@@ -9931,7 +9931,7 @@ function Vg(e, t) {
|
|
|
9931
9931
|
}
|
|
9932
9932
|
}), n.addTimelineEvent({
|
|
9933
9933
|
layerId: tr,
|
|
9934
|
-
event:
|
|
9934
|
+
event: c
|
|
9935
9935
|
});
|
|
9936
9936
|
}, { detached: !0, flush: "sync" });
|
|
9937
9937
|
const o = t._hotUpdate;
|
|
@@ -9961,11 +9961,11 @@ function Ql(e, t, n) {
|
|
|
9961
9961
|
for (const o in r)
|
|
9962
9962
|
e[o] = function() {
|
|
9963
9963
|
const s = ud, i = n ? new Proxy(e, {
|
|
9964
|
-
get(...
|
|
9965
|
-
return Pn = s, Reflect.get(...
|
|
9964
|
+
get(...l) {
|
|
9965
|
+
return Pn = s, Reflect.get(...l);
|
|
9966
9966
|
},
|
|
9967
|
-
set(...
|
|
9968
|
-
return Pn = s, Reflect.set(...
|
|
9967
|
+
set(...l) {
|
|
9968
|
+
return Pn = s, Reflect.set(...l);
|
|
9969
9969
|
}
|
|
9970
9970
|
}) : e;
|
|
9971
9971
|
Pn = s;
|
|
@@ -10058,8 +10058,8 @@ function nc(e) {
|
|
|
10058
10058
|
}
|
|
10059
10059
|
function rc(e, t, n, r) {
|
|
10060
10060
|
const { state: o, actions: s, getters: i } = t, a = n.state.value[e];
|
|
10061
|
-
let
|
|
10062
|
-
function
|
|
10061
|
+
let l;
|
|
10062
|
+
function c() {
|
|
10063
10063
|
!a && (ke.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
|
|
10064
10064
|
const u = ke.NODE_ENV !== "production" && r ? (
|
|
10065
10065
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
@@ -10071,25 +10071,25 @@ function rc(e, t, n, r) {
|
|
|
10071
10071
|
return i[f].call(m, m);
|
|
10072
10072
|
})), d), {}));
|
|
10073
10073
|
}
|
|
10074
|
-
return
|
|
10074
|
+
return l = Qi(e, c, t, n, r, !0), l;
|
|
10075
10075
|
}
|
|
10076
10076
|
function Qi(e, t, n = {}, r, o, s) {
|
|
10077
10077
|
let i;
|
|
10078
10078
|
const a = kt({ actions: {} }, n);
|
|
10079
10079
|
if (ke.NODE_ENV !== "production" && !r._e.active)
|
|
10080
10080
|
throw new Error("Pinia destroyed");
|
|
10081
|
-
const
|
|
10082
|
-
ke.NODE_ENV !== "production" && !Qu && (
|
|
10083
|
-
|
|
10081
|
+
const l = { deep: !0 };
|
|
10082
|
+
ke.NODE_ENV !== "production" && !Qu && (l.onTrigger = (V) => {
|
|
10083
|
+
c ? m = V : c == !1 && !x._hotUpdating && (Array.isArray(m) ? m.push(V) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
10084
10084
|
});
|
|
10085
|
-
let
|
|
10085
|
+
let c, u, d = [], f = [], m;
|
|
10086
10086
|
const y = r.state.value[e];
|
|
10087
10087
|
!s && !y && (ke.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
|
|
10088
10088
|
const E = T({});
|
|
10089
10089
|
let N;
|
|
10090
10090
|
function A(V) {
|
|
10091
10091
|
let P;
|
|
10092
|
-
|
|
10092
|
+
c = u = !1, ke.NODE_ENV !== "production" && (m = []), typeof V == "function" ? (V(r.state.value[e]), P = {
|
|
10093
10093
|
type: Kt.patchFunction,
|
|
10094
10094
|
storeId: e,
|
|
10095
10095
|
events: m
|
|
@@ -10101,7 +10101,7 @@ function Qi(e, t, n = {}, r, o, s) {
|
|
|
10101
10101
|
});
|
|
10102
10102
|
const j = N = Symbol();
|
|
10103
10103
|
_o().then(() => {
|
|
10104
|
-
N === j && (
|
|
10104
|
+
N === j && (c = !0);
|
|
10105
10105
|
}), u = !0, Sr(d, P, r.state.value[e]);
|
|
10106
10106
|
}
|
|
10107
10107
|
const F = s ? function() {
|
|
@@ -10160,12 +10160,12 @@ function Qi(e, t, n = {}, r, o, s) {
|
|
|
10160
10160
|
$reset: F,
|
|
10161
10161
|
$subscribe(V, P = {}) {
|
|
10162
10162
|
const j = ec(d, V, P.detached, () => oe()), oe = i.run(() => Qe(() => r.state.value[e], (w) => {
|
|
10163
|
-
(P.flush === "sync" ? u :
|
|
10163
|
+
(P.flush === "sync" ? u : c) && V({
|
|
10164
10164
|
storeId: e,
|
|
10165
10165
|
type: Kt.direct,
|
|
10166
10166
|
events: m
|
|
10167
10167
|
}, w);
|
|
10168
|
-
}, kt({},
|
|
10168
|
+
}, kt({}, l, P)));
|
|
10169
10169
|
return j;
|
|
10170
10170
|
},
|
|
10171
10171
|
$dispose: C
|
|
@@ -10212,8 +10212,8 @@ function Qi(e, t, n = {}, r, o, s) {
|
|
|
10212
10212
|
Go(x, P, ai(V.$state, P));
|
|
10213
10213
|
}), Object.keys(x.$state).forEach((P) => {
|
|
10214
10214
|
P in V.$state || yi(x, P);
|
|
10215
|
-
}),
|
|
10216
|
-
|
|
10215
|
+
}), c = !1, u = !1, r.state.value[e] = ai(V._hmrPayload, "hotState"), u = !0, _o().then(() => {
|
|
10216
|
+
c = !0;
|
|
10217
10217
|
});
|
|
10218
10218
|
for (const P in V._hmrPayload.actions) {
|
|
10219
10219
|
const j = V[P];
|
|
@@ -10260,31 +10260,31 @@ function Qi(e, t, n = {}, r, o, s) {
|
|
|
10260
10260
|
})));
|
|
10261
10261
|
}), ke.NODE_ENV !== "production" && x.$state && typeof x.$state == "object" && typeof x.$state.constructor == "function" && !x.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
10262
10262
|
state: () => new MyClass()
|
|
10263
|
-
Found in store "${x.$id}".`), y && s && n.hydrate && n.hydrate(x.$state, y),
|
|
10263
|
+
Found in store "${x.$id}".`), y && s && n.hydrate && n.hydrate(x.$state, y), c = !0, u = !0, x;
|
|
10264
10264
|
}
|
|
10265
10265
|
// @__NO_SIDE_EFFECTS__
|
|
10266
10266
|
function Fg(e, t, n) {
|
|
10267
10267
|
let r, o;
|
|
10268
10268
|
const s = typeof t == "function";
|
|
10269
10269
|
r = e, o = s ? n : t;
|
|
10270
|
-
function i(a,
|
|
10271
|
-
const
|
|
10270
|
+
function i(a, l) {
|
|
10271
|
+
const c = wm();
|
|
10272
10272
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
10273
10273
|
// pinia instance with getActivePinia()
|
|
10274
|
-
(ke.NODE_ENV === "test" && Yr && Yr._testing ? null : a) || (
|
|
10274
|
+
(ke.NODE_ENV === "test" && Yr && Yr._testing ? null : a) || (c ? $e(nd, null) : null), a && Oo(a), ke.NODE_ENV !== "production" && !Yr)
|
|
10275
10275
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10276
10276
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
10277
10277
|
This will fail in production.`);
|
|
10278
10278
|
a = Yr, a._s.has(r) || (s ? Qi(r, t, o, a) : rc(r, o, a), ke.NODE_ENV !== "production" && (i._pinia = a));
|
|
10279
10279
|
const u = a._s.get(r);
|
|
10280
|
-
if (ke.NODE_ENV !== "production" &&
|
|
10280
|
+
if (ke.NODE_ENV !== "production" && l) {
|
|
10281
10281
|
const d = "__hot:" + r, f = s ? Qi(d, t, o, a, !0) : rc(d, kt({}, o), a, !0);
|
|
10282
|
-
|
|
10282
|
+
l._hotUpdate(f), delete a.state.value[d], a._s.delete(d);
|
|
10283
10283
|
}
|
|
10284
10284
|
if (ke.NODE_ENV !== "production" && ir) {
|
|
10285
10285
|
const d = qs();
|
|
10286
10286
|
if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
|
|
10287
|
-
!
|
|
10287
|
+
!l) {
|
|
10288
10288
|
const f = d.proxy, m = "_pStores" in f ? f._pStores : f._pStores = {};
|
|
10289
10289
|
m[r] = u;
|
|
10290
10290
|
}
|
|
@@ -10293,7 +10293,7 @@ This will fail in production.`);
|
|
|
10293
10293
|
}
|
|
10294
10294
|
return i.$id = r, i;
|
|
10295
10295
|
}
|
|
10296
|
-
var
|
|
10296
|
+
var fe = /* @__PURE__ */ ((e) => (e.SignIn = "sign_in", e.SignUp = "sign_up", e.ForgotPassword = "forgot_password", e.ResetPassword = "reset_password", e.ConfirmAccount = "confirm_account", e.ConfirmEmail = "confirm_email", e.ConfirmEmailChange = "confirm_email_change", e.ViewAccount = "view_account", e.ViewProducts = "view_products", e.RedeemVoucher = "redeem_voucher", e.DownloadProduct = "download_product", e.ActivateProduct = "activate_product", e.ViewCart = "view_cart", e.AddToCart = "add_to_cart", e.Checkout = "checkout", e))(fe || {});
|
|
10297
10297
|
const Bg = {
|
|
10298
10298
|
toolbar: {
|
|
10299
10299
|
enabled: !0,
|
|
@@ -10310,34 +10310,34 @@ const Bg = {
|
|
|
10310
10310
|
}
|
|
10311
10311
|
}
|
|
10312
10312
|
}, Js = Symbol("options");
|
|
10313
|
-
var
|
|
10313
|
+
var Ne = /* @__PURE__ */ ((e) => (e.None = "None", e.Authentication = "Authentication", e.Customer = "Customer", e.Cart = "Cart", e.Activation = "Activation", e.Download = "Download", e))(Ne || {});
|
|
10314
10314
|
const Ve = /* @__PURE__ */ Fg("ui", () => {
|
|
10315
10315
|
const e = T(
|
|
10316
10316
|
"None"
|
|
10317
10317
|
/* None */
|
|
10318
10318
|
), t = T(null), n = T(null), r = T(null);
|
|
10319
|
-
function o(
|
|
10320
|
-
n.value = d ?? null, t.value = u, e.value =
|
|
10319
|
+
function o(c, u, d) {
|
|
10320
|
+
n.value = d ?? null, t.value = u, e.value = c;
|
|
10321
10321
|
}
|
|
10322
|
-
function s(
|
|
10323
|
-
r.value = [
|
|
10322
|
+
function s(c, u, d) {
|
|
10323
|
+
r.value = [c, u, d];
|
|
10324
10324
|
}
|
|
10325
10325
|
function i() {
|
|
10326
10326
|
e.value = "None", n.value = null, r.value = null;
|
|
10327
10327
|
}
|
|
10328
10328
|
function a() {
|
|
10329
|
-
const
|
|
10329
|
+
const c = r.value;
|
|
10330
10330
|
i(), _o(() => {
|
|
10331
|
-
if (
|
|
10332
|
-
const [u, d, f] =
|
|
10331
|
+
if (c) {
|
|
10332
|
+
const [u, d, f] = c;
|
|
10333
10333
|
n.value = f ?? null, t.value = d, e.value = u;
|
|
10334
10334
|
}
|
|
10335
10335
|
});
|
|
10336
10336
|
}
|
|
10337
|
-
function c
|
|
10338
|
-
return n.value === null || !n.value[
|
|
10337
|
+
function l(c) {
|
|
10338
|
+
return n.value === null || !n.value[c] ? null : n.value[c];
|
|
10339
10339
|
}
|
|
10340
|
-
return { active: e, intent: t, parameters: n, next: r, show: o, reset: i, enqueue: s, dequeue: a, getParameter:
|
|
10340
|
+
return { active: e, intent: t, parameters: n, next: r, show: o, reset: i, enqueue: s, dequeue: a, getParameter: l };
|
|
10341
10341
|
}), Xt = (e) => new Promise((t) => setTimeout(t, e)), Hg = ["data-visible", "data-location"], Zg = {
|
|
10342
10342
|
key: 0,
|
|
10343
10343
|
href: "https://moonbase.sh",
|
|
@@ -10349,34 +10349,34 @@ const Ve = /* @__PURE__ */ Fg("ui", () => {
|
|
|
10349
10349
|
], zg = ["disabled"], Kg = /* @__PURE__ */ me({
|
|
10350
10350
|
__name: "Toolbar",
|
|
10351
10351
|
setup(e) {
|
|
10352
|
-
const t = T(!1), n = Ve(), r =
|
|
10352
|
+
const t = T(!1), n = Ve(), r = wt(), o = $e(Js);
|
|
10353
10353
|
return je(() => {
|
|
10354
10354
|
Xt(100).then(() => t.value = !0);
|
|
10355
10355
|
}), (s, i) => {
|
|
10356
|
-
var a,
|
|
10356
|
+
var a, l, c, u, d;
|
|
10357
10357
|
return _(), S("div", {
|
|
10358
10358
|
class: "moonbase:toolbar",
|
|
10359
|
-
"data-visible": t.value && b(n).active === b(
|
|
10359
|
+
"data-visible": t.value && b(n).active === b(Ne).None ? "true" : "false",
|
|
10360
10360
|
"data-location": b(o).toolbar.location
|
|
10361
10361
|
}, [
|
|
10362
10362
|
(a = b(o)) != null && a.toolbar.show.moonbase ? (_(), S("a", Zg, Wg)) : he("", !0),
|
|
10363
|
-
(
|
|
10363
|
+
(l = b(o)) != null && l.toolbar.show.cart ? (_(), S("button", {
|
|
10364
10364
|
key: 1,
|
|
10365
10365
|
class: "moonbase:toolbar-action",
|
|
10366
10366
|
type: "button",
|
|
10367
|
-
onClick: i[0] || (i[0] = (f) => b(n).show(b(
|
|
10367
|
+
onClick: i[0] || (i[0] = (f) => b(n).show(b(Ne).Cart, b(fe).AddToCart))
|
|
10368
10368
|
}, " Cart ")) : he("", !0),
|
|
10369
|
-
(
|
|
10369
|
+
(c = b(o)) != null && c.toolbar.show.account && !b(r).user.value ? (_(), S("button", {
|
|
10370
10370
|
key: 2,
|
|
10371
10371
|
class: "moonbase:toolbar-action",
|
|
10372
10372
|
type: "button",
|
|
10373
10373
|
disabled: !b(r).loaded,
|
|
10374
|
-
onClick: i[1] || (i[1] = (f) => b(n).show(b(
|
|
10374
|
+
onClick: i[1] || (i[1] = (f) => b(n).show(b(Ne).Authentication, b(fe).SignIn))
|
|
10375
10375
|
}, " Log in ", 8, zg)) : (u = b(o)) != null && u.toolbar.show.account ? (_(), S("button", {
|
|
10376
10376
|
key: 3,
|
|
10377
10377
|
class: "moonbase:toolbar-action",
|
|
10378
10378
|
type: "button",
|
|
10379
|
-
onClick: i[2] || (i[2] = (f) => b(n).show(b(
|
|
10379
|
+
onClick: i[2] || (i[2] = (f) => b(n).show(b(Ne).Customer, b(fe).ViewAccount))
|
|
10380
10380
|
}, K((d = b(r).user.value) == null ? void 0 : d.name), 1)) : he("", !0)
|
|
10381
10381
|
], 8, Hg);
|
|
10382
10382
|
};
|
|
@@ -10564,9 +10564,9 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10564
10564
|
__name: "SignUp",
|
|
10565
10565
|
emits: ["signedUp"],
|
|
10566
10566
|
setup(e, { emit: t }) {
|
|
10567
|
-
const n = t, r = Ve(), o =
|
|
10567
|
+
const n = t, r = Ve(), o = wt(), s = T(""), i = T(r.getParameter("email") ?? ""), a = T(""), l = T(!1), c = T(null);
|
|
10568
10568
|
async function u() {
|
|
10569
|
-
|
|
10569
|
+
c.value = null;
|
|
10570
10570
|
try {
|
|
10571
10571
|
const d = await o.signUp(
|
|
10572
10572
|
s.value,
|
|
@@ -10575,11 +10575,11 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10575
10575
|
null,
|
|
10576
10576
|
!0,
|
|
10577
10577
|
!0,
|
|
10578
|
-
|
|
10578
|
+
l.value
|
|
10579
10579
|
);
|
|
10580
10580
|
Xt(1500).then(() => n("signedUp", d));
|
|
10581
10581
|
} catch (d) {
|
|
10582
|
-
throw
|
|
10582
|
+
throw c.value = d.message, d;
|
|
10583
10583
|
}
|
|
10584
10584
|
}
|
|
10585
10585
|
return (d, f) => (_(), xe(Un, {
|
|
@@ -10618,8 +10618,8 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10618
10618
|
required: ""
|
|
10619
10619
|
}, null, 8, ["modelValue"]),
|
|
10620
10620
|
B(md, {
|
|
10621
|
-
modelValue:
|
|
10622
|
-
"onUpdate:modelValue": f[3] || (f[3] = (m) =>
|
|
10621
|
+
modelValue: l.value,
|
|
10622
|
+
"onUpdate:modelValue": f[3] || (f[3] = (m) => l.value = m),
|
|
10623
10623
|
label: "Receive updates and offers by email",
|
|
10624
10624
|
name: "newsletter-opt-in"
|
|
10625
10625
|
}, null, 8, ["modelValue"]),
|
|
@@ -10630,11 +10630,11 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10630
10630
|
}),
|
|
10631
10631
|
O("span", {
|
|
10632
10632
|
class: "moonbase:error",
|
|
10633
|
-
"data-visible": !!
|
|
10634
|
-
}, K(
|
|
10633
|
+
"data-visible": !!c.value || void 0
|
|
10634
|
+
}, K(c.value), 9, _y),
|
|
10635
10635
|
O("button", {
|
|
10636
10636
|
type: "button",
|
|
10637
|
-
onClick: f[4] || (f[4] = (m) => b(r).show(b(
|
|
10637
|
+
onClick: f[4] || (f[4] = (m) => b(r).show(b(Ne).Authentication, b(fe).SignIn, { email: i.value }))
|
|
10638
10638
|
}, " I already have an account ")
|
|
10639
10639
|
]),
|
|
10640
10640
|
_: 1
|
|
@@ -10651,7 +10651,7 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10651
10651
|
__name: "ConfirmAccount",
|
|
10652
10652
|
emits: ["confirmedAccount"],
|
|
10653
10653
|
setup(e, { emit: t }) {
|
|
10654
|
-
const n = t, r = Ve(), o =
|
|
10654
|
+
const n = t, r = Ve(), o = wt(), s = T(!0), i = T(null), a = T(""), l = T(null);
|
|
10655
10655
|
je(async () => {
|
|
10656
10656
|
try {
|
|
10657
10657
|
const u = r.getParameter("email"), d = r.getParameter("code");
|
|
@@ -10659,24 +10659,24 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10659
10659
|
throw new Error("Link is broken");
|
|
10660
10660
|
i.value = await o.confirmAccount(u, d);
|
|
10661
10661
|
} catch (u) {
|
|
10662
|
-
u instanceof Vr ?
|
|
10662
|
+
u instanceof Vr ? l.value = "Could not find a user to confirm" : l.value = u.message;
|
|
10663
10663
|
}
|
|
10664
10664
|
s.value = !1;
|
|
10665
10665
|
});
|
|
10666
|
-
async function
|
|
10666
|
+
async function c() {
|
|
10667
10667
|
var u, d;
|
|
10668
|
-
if (
|
|
10668
|
+
if (l.value = null, !!((u = i.value) != null && u.resetPasswordToken))
|
|
10669
10669
|
try {
|
|
10670
10670
|
const f = r.getParameter("email");
|
|
10671
10671
|
await o.resetPassword(f, a.value, (d = i.value) == null ? void 0 : d.resetPasswordToken);
|
|
10672
10672
|
const m = await o.signIn(f, a.value);
|
|
10673
10673
|
Xt(1500).then(() => n("confirmedAccount", m));
|
|
10674
10674
|
} catch (f) {
|
|
10675
|
-
throw
|
|
10675
|
+
throw l.value = f.message, f;
|
|
10676
10676
|
}
|
|
10677
10677
|
}
|
|
10678
10678
|
return (u, d) => (_(), xe(Un, {
|
|
10679
|
-
handler:
|
|
10679
|
+
handler: c,
|
|
10680
10680
|
class: "moonbase:confirm-account"
|
|
10681
10681
|
}, {
|
|
10682
10682
|
default: ye(() => [
|
|
@@ -10712,9 +10712,9 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10712
10712
|
}),
|
|
10713
10713
|
O("span", {
|
|
10714
10714
|
class: "moonbase:error",
|
|
10715
|
-
"data-visible": !!
|
|
10716
|
-
}, K(
|
|
10717
|
-
], 64)) : (_(), S("div", Ey, K(
|
|
10715
|
+
"data-visible": !!l.value || void 0
|
|
10716
|
+
}, K(l.value), 9, Ny)
|
|
10717
|
+
], 64)) : (_(), S("div", Ey, K(l.value), 1))
|
|
10718
10718
|
]),
|
|
10719
10719
|
_: 1
|
|
10720
10720
|
}));
|
|
@@ -10722,7 +10722,7 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10722
10722
|
}), xy = /* @__PURE__ */ O("h3", null, " Forgot your password? ", -1), ky = /* @__PURE__ */ O("p", null, " Please enter your email for a reset link: ", -1), Cy = ["data-visible"], Ty = /* @__PURE__ */ me({
|
|
10723
10723
|
__name: "ForgotPassword",
|
|
10724
10724
|
setup(e) {
|
|
10725
|
-
const t = Ve(), n =
|
|
10725
|
+
const t = Ve(), n = wt(), r = T(t.getParameter("email") ?? ""), o = T(null), s = T(!1);
|
|
10726
10726
|
async function i() {
|
|
10727
10727
|
o.value = null;
|
|
10728
10728
|
try {
|
|
@@ -10733,7 +10733,7 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10733
10733
|
throw a instanceof Vr ? o.value = "User not found" : o.value = a.message, a;
|
|
10734
10734
|
}
|
|
10735
10735
|
}
|
|
10736
|
-
return (a,
|
|
10736
|
+
return (a, l) => (_(), xe(Un, {
|
|
10737
10737
|
handler: i,
|
|
10738
10738
|
class: "moonbase:sign-in",
|
|
10739
10739
|
"no-reset": ""
|
|
@@ -10743,7 +10743,7 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10743
10743
|
ky,
|
|
10744
10744
|
B(vt, {
|
|
10745
10745
|
modelValue: r.value,
|
|
10746
|
-
"onUpdate:modelValue":
|
|
10746
|
+
"onUpdate:modelValue": l[0] || (l[0] = (c) => r.value = c),
|
|
10747
10747
|
label: "Email address",
|
|
10748
10748
|
name: "email",
|
|
10749
10749
|
type: "email",
|
|
@@ -10768,24 +10768,24 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10768
10768
|
__name: "ResetPassword",
|
|
10769
10769
|
emits: ["passwordReset"],
|
|
10770
10770
|
setup(e, { emit: t }) {
|
|
10771
|
-
const n = t, r = Ve(), o =
|
|
10771
|
+
const n = t, r = Ve(), o = wt(), s = X(() => r.getParameter("email")), i = T(""), a = T(null);
|
|
10772
10772
|
je(() => {
|
|
10773
10773
|
(!r.getParameter("email") || !r.getParameter("code")) && (a.value = "Link broken, please try again");
|
|
10774
10774
|
});
|
|
10775
|
-
async function
|
|
10775
|
+
async function l() {
|
|
10776
10776
|
a.value = null;
|
|
10777
|
-
const
|
|
10778
|
-
if (
|
|
10777
|
+
const c = r.getParameter("code");
|
|
10778
|
+
if (c)
|
|
10779
10779
|
try {
|
|
10780
|
-
await o.resetPassword(s.value, i.value,
|
|
10780
|
+
await o.resetPassword(s.value, i.value, c);
|
|
10781
10781
|
const u = await o.signIn(s.value, i.value);
|
|
10782
10782
|
Xt(1500).then(() => n("passwordReset", u));
|
|
10783
10783
|
} catch (u) {
|
|
10784
10784
|
throw a.value = u.message, u;
|
|
10785
10785
|
}
|
|
10786
10786
|
}
|
|
10787
|
-
return (
|
|
10788
|
-
handler:
|
|
10787
|
+
return (c, u) => (_(), xe(Un, {
|
|
10788
|
+
handler: l,
|
|
10789
10789
|
class: "moonbase:reset-password"
|
|
10790
10790
|
}, {
|
|
10791
10791
|
default: ye(() => [
|
|
@@ -10834,7 +10834,7 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10834
10834
|
}, Ry = /* @__PURE__ */ O("p", null, " Thanks for confirming your new email. You can now sign in using this new address. ", -1), jy = /* @__PURE__ */ me({
|
|
10835
10835
|
__name: "ConfirmEmailChange",
|
|
10836
10836
|
setup(e) {
|
|
10837
|
-
const t = Ve(), { user: n, confirmEmailChange: r } =
|
|
10837
|
+
const t = Ve(), { user: n, confirmEmailChange: r } = wt(), o = T(!0), s = T(null);
|
|
10838
10838
|
return je(async () => {
|
|
10839
10839
|
try {
|
|
10840
10840
|
const i = t.getParameter("email"), a = t.getParameter("code");
|
|
@@ -10846,12 +10846,12 @@ const Pt = /* @__PURE__ */ zn(ty, [["render", iy], ["__scopeId", "data-v-f9a322c
|
|
|
10846
10846
|
}
|
|
10847
10847
|
o.value = !1;
|
|
10848
10848
|
}), (i, a) => {
|
|
10849
|
-
var
|
|
10849
|
+
var l;
|
|
10850
10850
|
return _(), S("div", Dy, [
|
|
10851
10851
|
o.value ? (_(), S("div", Ay, [
|
|
10852
10852
|
B(Pt)
|
|
10853
10853
|
])) : s.value ? (_(), S("div", Vy, K(s.value), 1)) : (_(), S(Ce, { key: 2 }, [
|
|
10854
|
-
O("h3", null, " Hi " + K((
|
|
10854
|
+
O("h3", null, " Hi " + K((l = b(n)) == null ? void 0 : l.name) + ", ", 1),
|
|
10855
10855
|
Ry
|
|
10856
10856
|
], 64))
|
|
10857
10857
|
]);
|
|
@@ -10893,7 +10893,7 @@ function vd(e, t, n, r) {
|
|
|
10893
10893
|
e.value && (window.addEventListener(t, n, r), o(() => window.removeEventListener(t, n, r)));
|
|
10894
10894
|
});
|
|
10895
10895
|
}
|
|
10896
|
-
var
|
|
10896
|
+
var Nt = /* @__PURE__ */ ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Nt || {});
|
|
10897
10897
|
function La() {
|
|
10898
10898
|
let e = T(
|
|
10899
10899
|
0
|
|
@@ -10949,16 +10949,16 @@ function Jo({
|
|
|
10949
10949
|
slot: r,
|
|
10950
10950
|
name: o
|
|
10951
10951
|
}) {
|
|
10952
|
-
var
|
|
10952
|
+
var c;
|
|
10953
10953
|
const { as: s, ...i } = Ma(e, ["unmount", "static"]);
|
|
10954
|
-
let a = (
|
|
10955
|
-
const
|
|
10954
|
+
let a = (c = n.default) == null ? void 0 : c.call(n, r);
|
|
10955
|
+
const l = {};
|
|
10956
10956
|
if (r) {
|
|
10957
10957
|
let u = !1;
|
|
10958
10958
|
const d = [];
|
|
10959
10959
|
for (const [f, m] of Object.entries(r))
|
|
10960
10960
|
typeof m == "boolean" && (u = !0), m === !0 && d.push(f);
|
|
10961
|
-
u && (
|
|
10961
|
+
u && (l["data-moonbase-state"] = d.join(" "));
|
|
10962
10962
|
}
|
|
10963
10963
|
if (s === "template") {
|
|
10964
10964
|
if (a = gd(a ?? []), Object.keys(i).length > 0 || Object.keys(t).length > 0) {
|
|
@@ -10982,14 +10982,14 @@ function Jo({
|
|
|
10982
10982
|
].join(`
|
|
10983
10983
|
`)
|
|
10984
10984
|
);
|
|
10985
|
-
const f = yd(u.props ?? {}, i,
|
|
10985
|
+
const f = yd(u.props ?? {}, i, l), m = Lt(u, f, !0);
|
|
10986
10986
|
for (const y in f)
|
|
10987
10987
|
y.startsWith("on") && (m.props || (m.props = {}), m.props[y] = f[y]);
|
|
10988
10988
|
return m;
|
|
10989
10989
|
}
|
|
10990
10990
|
return Array.isArray(a) && a.length === 1 ? a[0] : a;
|
|
10991
10991
|
}
|
|
10992
|
-
return Le(s, Object.assign({}, i,
|
|
10992
|
+
return Le(s, Object.assign({}, i, l), {
|
|
10993
10993
|
default: () => a
|
|
10994
10994
|
});
|
|
10995
10995
|
}
|
|
@@ -11181,7 +11181,7 @@ function it(e, t, {
|
|
|
11181
11181
|
if (t & 10)
|
|
11182
11182
|
return -1;
|
|
11183
11183
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
11184
|
-
})(),
|
|
11184
|
+
})(), l = (() => {
|
|
11185
11185
|
if (t & 1)
|
|
11186
11186
|
return 0;
|
|
11187
11187
|
if (t & 2)
|
|
@@ -11191,14 +11191,14 @@ function it(e, t, {
|
|
|
11191
11191
|
if (t & 8)
|
|
11192
11192
|
return i.length - 1;
|
|
11193
11193
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
11194
|
-
})(),
|
|
11194
|
+
})(), c = t & 32 ? { preventScroll: !0 } : {};
|
|
11195
11195
|
let u = 0;
|
|
11196
11196
|
const d = i.length;
|
|
11197
11197
|
let f;
|
|
11198
11198
|
do {
|
|
11199
11199
|
if (u >= d || u + d <= 0)
|
|
11200
11200
|
return 0;
|
|
11201
|
-
let m =
|
|
11201
|
+
let m = l + u;
|
|
11202
11202
|
if (t & 16)
|
|
11203
11203
|
m = (m + d) % d;
|
|
11204
11204
|
else {
|
|
@@ -11207,7 +11207,7 @@ function it(e, t, {
|
|
|
11207
11207
|
if (m >= d)
|
|
11208
11208
|
return 1;
|
|
11209
11209
|
}
|
|
11210
|
-
f = i[m], f == null || f.focus(
|
|
11210
|
+
f = i[m], f == null || f.focus(c), u += a;
|
|
11211
11211
|
} while (f !== s.activeElement);
|
|
11212
11212
|
return t & 6 && By(f) && f.select(), 2;
|
|
11213
11213
|
}
|
|
@@ -11278,17 +11278,17 @@ const Zr = Object.assign(
|
|
|
11278
11278
|
},
|
|
11279
11279
|
X(() => i.value && !!(e.features & 8))
|
|
11280
11280
|
);
|
|
11281
|
-
const
|
|
11282
|
-
function
|
|
11281
|
+
const l = La();
|
|
11282
|
+
function c(m) {
|
|
11283
11283
|
const y = J(o);
|
|
11284
11284
|
if (!y)
|
|
11285
11285
|
return;
|
|
11286
11286
|
((N) => N())(() => {
|
|
11287
|
-
Je(
|
|
11288
|
-
[
|
|
11287
|
+
Je(l.value, {
|
|
11288
|
+
[Nt.Forwards]: () => {
|
|
11289
11289
|
it(y, Ue.First, { skipElements: [m.relatedTarget] });
|
|
11290
11290
|
},
|
|
11291
|
-
[
|
|
11291
|
+
[Nt.Backwards]: () => {
|
|
11292
11292
|
it(y, Ue.Last, { skipElements: [m.relatedTarget] });
|
|
11293
11293
|
}
|
|
11294
11294
|
});
|
|
@@ -11308,9 +11308,9 @@ const Zr = Object.assign(
|
|
|
11308
11308
|
const E = m.relatedTarget;
|
|
11309
11309
|
E instanceof HTMLElement && E.dataset.moonbaseFocusGuard !== "true" && (Ed(y, E) || (u.value ? it(
|
|
11310
11310
|
J(o),
|
|
11311
|
-
Je(
|
|
11312
|
-
[
|
|
11313
|
-
[
|
|
11311
|
+
Je(l.value, {
|
|
11312
|
+
[Nt.Forwards]: () => Ue.Next,
|
|
11313
|
+
[Nt.Backwards]: () => Ue.Previous
|
|
11314
11314
|
}) | Ue.WrapAround,
|
|
11315
11315
|
{ relativeTo: m.target }
|
|
11316
11316
|
) : m.target instanceof HTMLElement && vr(m.target)));
|
|
@@ -11322,7 +11322,7 @@ const Zr = Object.assign(
|
|
|
11322
11322
|
as: "button",
|
|
11323
11323
|
type: "button",
|
|
11324
11324
|
"data-moonbase-focus-guard": !0,
|
|
11325
|
-
onFocus:
|
|
11325
|
+
onFocus: c,
|
|
11326
11326
|
features: Hn.Focusable
|
|
11327
11327
|
}),
|
|
11328
11328
|
et({
|
|
@@ -11337,7 +11337,7 @@ const Zr = Object.assign(
|
|
|
11337
11337
|
as: "button",
|
|
11338
11338
|
type: "button",
|
|
11339
11339
|
"data-moonbase-focus-guard": !0,
|
|
11340
|
-
onFocus:
|
|
11340
|
+
onFocus: c,
|
|
11341
11341
|
features: Hn.Focusable
|
|
11342
11342
|
})
|
|
11343
11343
|
]);
|
|
@@ -11383,24 +11383,24 @@ function qy({
|
|
|
11383
11383
|
// Handle initial focus
|
|
11384
11384
|
[t, n, r],
|
|
11385
11385
|
(i, a) => {
|
|
11386
|
-
if (i.every((
|
|
11386
|
+
if (i.every((c, u) => (a == null ? void 0 : a[u]) === c) || !r.value)
|
|
11387
11387
|
return;
|
|
11388
|
-
const
|
|
11389
|
-
|
|
11388
|
+
const l = J(t);
|
|
11389
|
+
l && Xs(() => {
|
|
11390
11390
|
var d, f;
|
|
11391
11391
|
if (!s.value)
|
|
11392
11392
|
return;
|
|
11393
|
-
const
|
|
11394
|
-
if (
|
|
11395
|
-
if (
|
|
11393
|
+
const c = J(n), u = (d = e.value) == null ? void 0 : d.activeElement;
|
|
11394
|
+
if (c) {
|
|
11395
|
+
if (c === u) {
|
|
11396
11396
|
o.value = u;
|
|
11397
11397
|
return;
|
|
11398
11398
|
}
|
|
11399
|
-
} else if (
|
|
11399
|
+
} else if (l.contains(u)) {
|
|
11400
11400
|
o.value = u;
|
|
11401
11401
|
return;
|
|
11402
11402
|
}
|
|
11403
|
-
|
|
11403
|
+
c ? vr(c) : it(l, Ue.First | Ue.NoScroll) === sn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (f = e.value) == null ? void 0 : f.activeElement;
|
|
11404
11404
|
});
|
|
11405
11405
|
},
|
|
11406
11406
|
{ immediate: !0, flush: "post" }
|
|
@@ -11422,11 +11422,11 @@ function Wy({
|
|
|
11422
11422
|
return;
|
|
11423
11423
|
const a = bd(n);
|
|
11424
11424
|
J(t) instanceof HTMLElement && a.add(J(t));
|
|
11425
|
-
const
|
|
11426
|
-
if (!
|
|
11425
|
+
const l = r.value;
|
|
11426
|
+
if (!l)
|
|
11427
11427
|
return;
|
|
11428
|
-
const
|
|
11429
|
-
|
|
11428
|
+
const c = i.target;
|
|
11429
|
+
c && c instanceof HTMLElement ? Ed(a, c) ? (r.value = c, vr(c)) : (i.preventDefault(), i.stopPropagation(), vr(l)) : vr(r.value);
|
|
11430
11430
|
},
|
|
11431
11431
|
!0
|
|
11432
11432
|
);
|
|
@@ -11446,12 +11446,12 @@ function zy(e) {
|
|
|
11446
11446
|
), t;
|
|
11447
11447
|
}
|
|
11448
11448
|
function Ro() {
|
|
11449
|
-
|
|
11449
|
+
const e = [], t = {
|
|
11450
11450
|
addEventListener(n, r, o, s) {
|
|
11451
11451
|
return n.addEventListener(r, o, s), t.add(() => n.removeEventListener(r, o, s));
|
|
11452
11452
|
},
|
|
11453
11453
|
requestAnimationFrame(...n) {
|
|
11454
|
-
|
|
11454
|
+
const r = requestAnimationFrame(...n);
|
|
11455
11455
|
t.add(() => cancelAnimationFrame(r));
|
|
11456
11456
|
},
|
|
11457
11457
|
nextFrame(...n) {
|
|
@@ -11460,11 +11460,11 @@ function Ro() {
|
|
|
11460
11460
|
});
|
|
11461
11461
|
},
|
|
11462
11462
|
setTimeout(...n) {
|
|
11463
|
-
|
|
11463
|
+
const r = setTimeout(...n);
|
|
11464
11464
|
t.add(() => clearTimeout(r));
|
|
11465
11465
|
},
|
|
11466
11466
|
microTask(...n) {
|
|
11467
|
-
|
|
11467
|
+
const r = { current: !0 };
|
|
11468
11468
|
return Xs(() => {
|
|
11469
11469
|
r.current && n[0]();
|
|
11470
11470
|
}), t.add(() => {
|
|
@@ -11472,25 +11472,25 @@ function Ro() {
|
|
|
11472
11472
|
});
|
|
11473
11473
|
},
|
|
11474
11474
|
style(n, r, o) {
|
|
11475
|
-
|
|
11475
|
+
const s = n.style.getPropertyValue(r);
|
|
11476
11476
|
return Object.assign(n.style, { [r]: o }), this.add(() => {
|
|
11477
11477
|
Object.assign(n.style, { [r]: s });
|
|
11478
11478
|
});
|
|
11479
11479
|
},
|
|
11480
11480
|
group(n) {
|
|
11481
|
-
|
|
11481
|
+
const r = Ro();
|
|
11482
11482
|
return n(r), this.add(() => r.dispose());
|
|
11483
11483
|
},
|
|
11484
11484
|
add(n) {
|
|
11485
11485
|
return e.push(n), () => {
|
|
11486
|
-
|
|
11486
|
+
const r = e.indexOf(n);
|
|
11487
11487
|
if (r >= 0)
|
|
11488
|
-
for (
|
|
11488
|
+
for (const o of e.splice(r, 1))
|
|
11489
11489
|
o();
|
|
11490
11490
|
};
|
|
11491
11491
|
},
|
|
11492
11492
|
dispose() {
|
|
11493
|
-
for (
|
|
11493
|
+
for (const n of e.splice(0))
|
|
11494
11494
|
n();
|
|
11495
11495
|
}
|
|
11496
11496
|
};
|
|
@@ -11515,11 +11515,11 @@ function Gy() {
|
|
|
11515
11515
|
let e;
|
|
11516
11516
|
return {
|
|
11517
11517
|
before({ doc: t }) {
|
|
11518
|
-
|
|
11518
|
+
const n = t.documentElement, r = t.defaultView ?? window;
|
|
11519
11519
|
e = Math.max(0, r.innerWidth - n.clientWidth);
|
|
11520
11520
|
},
|
|
11521
11521
|
after({ doc: t, d: n }) {
|
|
11522
|
-
|
|
11522
|
+
const r = t.documentElement, o = Math.max(
|
|
11523
11523
|
0,
|
|
11524
11524
|
r.clientWidth - r.offsetWidth
|
|
11525
11525
|
), s = Math.max(0, e - o);
|
|
@@ -11564,8 +11564,8 @@ function Xy() {
|
|
|
11564
11564
|
const a = i.target.closest("a");
|
|
11565
11565
|
if (!a)
|
|
11566
11566
|
return;
|
|
11567
|
-
const { hash:
|
|
11568
|
-
|
|
11567
|
+
const { hash: l } = new URL(a.href), c = e.querySelector(l);
|
|
11568
|
+
c && !r(c) && (s = c);
|
|
11569
11569
|
} catch {
|
|
11570
11570
|
}
|
|
11571
11571
|
},
|
|
@@ -11612,14 +11612,14 @@ function Qy() {
|
|
|
11612
11612
|
};
|
|
11613
11613
|
}
|
|
11614
11614
|
function e_(e) {
|
|
11615
|
-
|
|
11616
|
-
for (
|
|
11615
|
+
const t = {};
|
|
11616
|
+
for (const n of e)
|
|
11617
11617
|
Object.assign(t, n(t));
|
|
11618
11618
|
return t;
|
|
11619
11619
|
}
|
|
11620
|
-
|
|
11620
|
+
const ar = Ky(() => /* @__PURE__ */ new Map(), {
|
|
11621
11621
|
PUSH(e, t) {
|
|
11622
|
-
|
|
11622
|
+
const n = this.get(e) ?? {
|
|
11623
11623
|
doc: e,
|
|
11624
11624
|
count: 0,
|
|
11625
11625
|
d: Ro(),
|
|
@@ -11628,11 +11628,11 @@ let ar = Ky(() => /* @__PURE__ */ new Map(), {
|
|
|
11628
11628
|
return n.count++, n.meta.add(t), this.set(e, n), this;
|
|
11629
11629
|
},
|
|
11630
11630
|
POP(e, t) {
|
|
11631
|
-
|
|
11631
|
+
const n = this.get(e);
|
|
11632
11632
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
11633
11633
|
},
|
|
11634
11634
|
SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
11635
|
-
|
|
11635
|
+
const r = {
|
|
11636
11636
|
doc: e,
|
|
11637
11637
|
d: t,
|
|
11638
11638
|
meta: e_(n)
|
|
@@ -11651,28 +11651,28 @@ let ar = Ky(() => /* @__PURE__ */ new Map(), {
|
|
|
11651
11651
|
}
|
|
11652
11652
|
});
|
|
11653
11653
|
ar.subscribe(() => {
|
|
11654
|
-
|
|
11655
|
-
for (
|
|
11654
|
+
const e = ar.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
11655
|
+
for (const [n] of e)
|
|
11656
11656
|
t.set(n, n.documentElement.style.overflow);
|
|
11657
|
-
for (
|
|
11658
|
-
|
|
11657
|
+
for (const n of e.values()) {
|
|
11658
|
+
const r = t.get(n.doc) === "hidden", o = n.count !== 0;
|
|
11659
11659
|
(o && !r || !o && r) && ar.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && ar.dispatch("TEARDOWN", n);
|
|
11660
11660
|
}
|
|
11661
11661
|
});
|
|
11662
11662
|
function t_(e, t, n) {
|
|
11663
|
-
|
|
11664
|
-
|
|
11663
|
+
const r = zy(ar), o = X(() => {
|
|
11664
|
+
const s = e.value ? r.value.get(e.value) : void 0;
|
|
11665
11665
|
return s ? s.count > 0 : !1;
|
|
11666
11666
|
});
|
|
11667
11667
|
return Qe(
|
|
11668
11668
|
[e, t],
|
|
11669
|
-
([s, i], [a],
|
|
11669
|
+
([s, i], [a], l) => {
|
|
11670
11670
|
if (!s || !i)
|
|
11671
11671
|
return;
|
|
11672
11672
|
ar.dispatch("PUSH", s, n);
|
|
11673
|
-
let
|
|
11674
|
-
|
|
11675
|
-
|
|
11673
|
+
let c = !1;
|
|
11674
|
+
l(() => {
|
|
11675
|
+
c || (ar.dispatch("POP", a ?? s, n), c = !0);
|
|
11676
11676
|
});
|
|
11677
11677
|
},
|
|
11678
11678
|
{
|
|
@@ -11687,20 +11687,24 @@ function r_() {
|
|
|
11687
11687
|
function Tt() {
|
|
11688
11688
|
return r_();
|
|
11689
11689
|
}
|
|
11690
|
-
|
|
11690
|
+
const bi = /* @__PURE__ */ new Map(), qr = /* @__PURE__ */ new Map();
|
|
11691
11691
|
function oc(e, t = T(!0)) {
|
|
11692
11692
|
pt((n) => {
|
|
11693
|
-
if (!t.value)
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
if (
|
|
11700
|
-
|
|
11701
|
-
|
|
11693
|
+
if (!t.value)
|
|
11694
|
+
return;
|
|
11695
|
+
const r = J(e);
|
|
11696
|
+
if (!r)
|
|
11697
|
+
return;
|
|
11698
|
+
n(() => {
|
|
11699
|
+
if (!r)
|
|
11700
|
+
return;
|
|
11701
|
+
const s = qr.get(r) ?? 1;
|
|
11702
|
+
if (s === 1 ? qr.delete(r) : qr.set(r, s - 1), s !== 1)
|
|
11703
|
+
return;
|
|
11704
|
+
const i = bi.get(r);
|
|
11705
|
+
i && (i["aria-hidden"] === null ? r.removeAttribute("aria-hidden") : r.setAttribute("aria-hidden", i["aria-hidden"]), r.inert = i.inert, bi.delete(r));
|
|
11702
11706
|
});
|
|
11703
|
-
|
|
11707
|
+
const o = qr.get(r) ?? 0;
|
|
11704
11708
|
qr.set(r, o + 1), o === 0 && (bi.set(r, {
|
|
11705
11709
|
"aria-hidden": r.getAttribute("aria-hidden"),
|
|
11706
11710
|
inert: r.inert
|
|
@@ -11717,17 +11721,17 @@ function Nd(e, t, n = X(() => !0)) {
|
|
|
11717
11721
|
function r(i, a) {
|
|
11718
11722
|
if (i.defaultPrevented)
|
|
11719
11723
|
return;
|
|
11720
|
-
const
|
|
11721
|
-
if (
|
|
11724
|
+
const l = a(i);
|
|
11725
|
+
if (l === null || !l.getRootNode().contains(l))
|
|
11722
11726
|
return;
|
|
11723
|
-
const
|
|
11727
|
+
const c = function u(d) {
|
|
11724
11728
|
return typeof d == "function" ? u(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
11725
11729
|
}(e);
|
|
11726
|
-
for (const u of
|
|
11730
|
+
for (const u of c) {
|
|
11727
11731
|
if (u === null)
|
|
11728
11732
|
continue;
|
|
11729
11733
|
const d = u instanceof HTMLElement ? u : J(u);
|
|
11730
|
-
if (d != null && d.contains(
|
|
11734
|
+
if (d != null && d.contains(l) || i.composed && i.composedPath().includes(d))
|
|
11731
11735
|
return;
|
|
11732
11736
|
}
|
|
11733
11737
|
return (
|
|
@@ -11735,7 +11739,7 @@ function Nd(e, t, n = X(() => !0)) {
|
|
|
11735
11739
|
// button or an input. This is a backwards compatibility check so that you can open a <Menu
|
|
11736
11740
|
// /> and click on another <Menu /> which should close Menu A and open Menu B. We might
|
|
11737
11741
|
// revisit that so that you will require 2 clicks instead.
|
|
11738
|
-
!_d(
|
|
11742
|
+
!_d(l, Ua.Loose) && l.tabIndex !== -1 && i.preventDefault(), t(i, l)
|
|
11739
11743
|
);
|
|
11740
11744
|
}
|
|
11741
11745
|
const o = T(null);
|
|
@@ -11743,16 +11747,16 @@ function Nd(e, t, n = X(() => !0)) {
|
|
|
11743
11747
|
n,
|
|
11744
11748
|
"pointerdown",
|
|
11745
11749
|
(i) => {
|
|
11746
|
-
var a,
|
|
11747
|
-
o.value = ((
|
|
11750
|
+
var a, l;
|
|
11751
|
+
o.value = ((l = (a = i.composedPath) == null ? void 0 : a.call(i)) == null ? void 0 : l[0]) || i.target;
|
|
11748
11752
|
},
|
|
11749
11753
|
!0
|
|
11750
11754
|
), Wr(
|
|
11751
11755
|
n,
|
|
11752
11756
|
"mousedown",
|
|
11753
11757
|
(i) => {
|
|
11754
|
-
var a,
|
|
11755
|
-
o.value = ((
|
|
11758
|
+
var a, l;
|
|
11759
|
+
o.value = ((l = (a = i.composedPath) == null ? void 0 : a.call(i)) == null ? void 0 : l[0]) || i.target;
|
|
11756
11760
|
},
|
|
11757
11761
|
!0
|
|
11758
11762
|
), Wr(
|
|
@@ -11802,15 +11806,15 @@ function Sd({
|
|
|
11802
11806
|
} = {}) {
|
|
11803
11807
|
const r = T(null), o = Qt(r);
|
|
11804
11808
|
function s() {
|
|
11805
|
-
var a,
|
|
11809
|
+
var a, l;
|
|
11806
11810
|
const i = [];
|
|
11807
|
-
for (const
|
|
11808
|
-
|
|
11811
|
+
for (const c of e)
|
|
11812
|
+
c !== null && (c instanceof HTMLElement ? i.push(c) : "value" in c && c.value instanceof HTMLElement && i.push(c.value));
|
|
11809
11813
|
if (t != null && t.value)
|
|
11810
|
-
for (const
|
|
11811
|
-
i.push(
|
|
11812
|
-
for (const
|
|
11813
|
-
|
|
11814
|
+
for (const c of t.value)
|
|
11815
|
+
i.push(c);
|
|
11816
|
+
for (const c of (o == null ? void 0 : o.querySelectorAll("html > *, body > *")) ?? [])
|
|
11817
|
+
c !== document.body && c !== document.head && c instanceof HTMLElement && c.id !== "moonbase" && (c.contains(J(r)) || c.contains((l = (a = J(r)) == null ? void 0 : a.getRootNode()) == null ? void 0 : l.host) || i.some((u) => c.contains(u)) || i.push(c));
|
|
11814
11818
|
return i;
|
|
11815
11819
|
}
|
|
11816
11820
|
return {
|
|
@@ -11937,14 +11941,14 @@ const u_ = /* @__PURE__ */ me({
|
|
|
11937
11941
|
}), pt(() => {
|
|
11938
11942
|
o || s != null && (i.value = s.resolveTarget());
|
|
11939
11943
|
});
|
|
11940
|
-
const
|
|
11941
|
-
let
|
|
11944
|
+
const l = $e(ta, null);
|
|
11945
|
+
let c = !1;
|
|
11942
11946
|
const u = qs();
|
|
11943
11947
|
return Qe(r, () => {
|
|
11944
|
-
if (
|
|
11948
|
+
if (c || !l)
|
|
11945
11949
|
return;
|
|
11946
11950
|
const d = J(r);
|
|
11947
|
-
d && (yt(
|
|
11951
|
+
d && (yt(l.register(d), u), c = !0);
|
|
11948
11952
|
}), () => {
|
|
11949
11953
|
if (!a.value || i.value === null)
|
|
11950
11954
|
return null;
|
|
@@ -12054,8 +12058,8 @@ const Yo = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Id = /* @__PURE__ */ me({
|
|
|
12054
12058
|
let i = !1;
|
|
12055
12059
|
const a = X(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (i || (i = !0, console.warn(
|
|
12056
12060
|
`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`
|
|
12057
|
-
)), "dialog")),
|
|
12058
|
-
if (o({ el: d, $el: d }), !(e.open !== Yo ||
|
|
12061
|
+
)), "dialog")), l = T(0), c = Qs(), u = X(() => e.open === Yo && c !== null ? (c.value & at.Open) === at.Open : e.open), d = T(null), f = X(() => Qt(d));
|
|
12062
|
+
if (o({ el: d, $el: d }), !(e.open !== Yo || c !== null))
|
|
12059
12063
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
12060
12064
|
if (typeof u.value != "boolean")
|
|
12061
12065
|
throw new TypeError(
|
|
@@ -12077,7 +12081,7 @@ const Yo = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Id = /* @__PURE__ */ me({
|
|
|
12077
12081
|
close() {
|
|
12078
12082
|
t("close", !1);
|
|
12079
12083
|
}
|
|
12080
|
-
}, F = X(() =>
|
|
12084
|
+
}, F = X(() => l.value > 1), C = $e(na, null) !== null, [z, $] = Pd(), {
|
|
12081
12085
|
resolveContainers: Z,
|
|
12082
12086
|
mainTreeNodeRef: x,
|
|
12083
12087
|
MainTreeNode: de
|
|
@@ -12085,7 +12089,7 @@ const Yo = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Id = /* @__PURE__ */ me({
|
|
|
12085
12089
|
portals: z,
|
|
12086
12090
|
defaultContainers: [X(() => A.panelRef.value ?? d.value)]
|
|
12087
12091
|
}), Y = X(() => F.value ? "parent" : "leaf"), V = X(
|
|
12088
|
-
() =>
|
|
12092
|
+
() => c !== null ? (c.value & at.Closing) === at.Closing : !1
|
|
12089
12093
|
), P = X(() => C || V.value ? !1 : E.value), j = X(() => {
|
|
12090
12094
|
var Pe;
|
|
12091
12095
|
return Array.from(((Pe = f.value) == null ? void 0 : Pe.querySelectorAll("body > *")) ?? []).find((Re) => Re.id === "moonbase" ? !1 : Re.contains(J(x)) && Re instanceof HTMLElement) ?? null;
|
|
@@ -12107,8 +12111,8 @@ const Yo = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Id = /* @__PURE__ */ me({
|
|
|
12107
12111
|
onUpdate: (Pe, Re) => {
|
|
12108
12112
|
if (Re === "Dialog")
|
|
12109
12113
|
return Je(Pe, {
|
|
12110
|
-
[ea.Add]: () =>
|
|
12111
|
-
[ea.Remove]: () =>
|
|
12114
|
+
[ea.Add]: () => l.value += 1,
|
|
12115
|
+
[ea.Remove]: () => l.value -= 1
|
|
12112
12116
|
});
|
|
12113
12117
|
}
|
|
12114
12118
|
});
|
|
@@ -12229,13 +12233,13 @@ const Yo = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Id = /* @__PURE__ */ me({
|
|
|
12229
12233
|
i.stopPropagation();
|
|
12230
12234
|
}
|
|
12231
12235
|
return () => {
|
|
12232
|
-
const { id: i, ...a } = e,
|
|
12236
|
+
const { id: i, ...a } = e, l = {
|
|
12233
12237
|
id: i,
|
|
12234
12238
|
ref: o.panelRef,
|
|
12235
12239
|
onClick: s
|
|
12236
12240
|
};
|
|
12237
12241
|
return et({
|
|
12238
|
-
ourProps:
|
|
12242
|
+
ourProps: l,
|
|
12239
12243
|
theirProps: a,
|
|
12240
12244
|
slot: {
|
|
12241
12245
|
open: o.dialogState.value === 0
|
|
@@ -12317,24 +12321,24 @@ let Ba = /* @__PURE__ */ me({
|
|
|
12317
12321
|
const s = T(
|
|
12318
12322
|
1
|
|
12319
12323
|
/* Closed */
|
|
12320
|
-
), i = T(null), a = T(null),
|
|
12324
|
+
), i = T(null), a = T(null), l = T(null), c = T(null), u = X(() => Qt(o)), d = X(() => {
|
|
12321
12325
|
var P, j;
|
|
12322
|
-
if (!J(i) || !J(
|
|
12326
|
+
if (!J(i) || !J(c))
|
|
12323
12327
|
return !1;
|
|
12324
12328
|
for (const oe of document.querySelectorAll("body > *"))
|
|
12325
|
-
if (Number(oe == null ? void 0 : oe.contains(J(i))) ^ Number(oe == null ? void 0 : oe.contains(J(
|
|
12329
|
+
if (Number(oe == null ? void 0 : oe.contains(J(i))) ^ Number(oe == null ? void 0 : oe.contains(J(c))))
|
|
12326
12330
|
return !0;
|
|
12327
12331
|
const $ = Ys(), Z = $.indexOf(J(i)), x = (Z + $.length - 1) % $.length, de = (Z + 1) % $.length, Y = $[x], V = $[de];
|
|
12328
|
-
return !((P = J(
|
|
12332
|
+
return !((P = J(c)) != null && P.contains(Y)) && !((j = J(c)) != null && j.contains(V));
|
|
12329
12333
|
}), f = {
|
|
12330
12334
|
popoverState: s,
|
|
12331
12335
|
buttonId: T(null),
|
|
12332
12336
|
panelId: T(null),
|
|
12333
|
-
panel:
|
|
12337
|
+
panel: c,
|
|
12334
12338
|
button: i,
|
|
12335
12339
|
isPortalled: d,
|
|
12336
12340
|
beforePanelSentinel: a,
|
|
12337
|
-
afterPanelSentinel:
|
|
12341
|
+
afterPanelSentinel: l,
|
|
12338
12342
|
togglePopover() {
|
|
12339
12343
|
s.value = Je(s.value, {
|
|
12340
12344
|
0: 1,
|
|
@@ -12368,18 +12372,18 @@ let Ba = /* @__PURE__ */ me({
|
|
|
12368
12372
|
}, y = jd(), E = y == null ? void 0 : y.registerPopover, [N, A] = Pd(), F = Sd({
|
|
12369
12373
|
mainTreeNodeRef: y == null ? void 0 : y.mainTreeNodeRef,
|
|
12370
12374
|
portals: N,
|
|
12371
|
-
defaultContainers: [i,
|
|
12375
|
+
defaultContainers: [i, c]
|
|
12372
12376
|
});
|
|
12373
12377
|
function C() {
|
|
12374
12378
|
var $, Z, x;
|
|
12375
|
-
return (y == null ? void 0 : y.isFocusWithinPopoverGroup()) ?? ((($ = u.value) == null ? void 0 : $.activeElement) && (((Z = J(i)) == null ? void 0 : Z.contains(u.value.activeElement)) || ((x = J(
|
|
12379
|
+
return (y == null ? void 0 : y.isFocusWithinPopoverGroup()) ?? ((($ = u.value) == null ? void 0 : $.activeElement) && (((Z = J(i)) == null ? void 0 : Z.contains(u.value.activeElement)) || ((x = J(c)) == null ? void 0 : x.contains(u.value.activeElement))));
|
|
12376
12380
|
}
|
|
12377
12381
|
return pt(() => E == null ? void 0 : E(m)), ja(
|
|
12378
12382
|
(z = u.value) == null ? void 0 : z.defaultView,
|
|
12379
12383
|
"focus",
|
|
12380
12384
|
($) => {
|
|
12381
12385
|
var Z, x;
|
|
12382
|
-
$.target !== window && $.target instanceof HTMLElement && s.value === 0 && (C() || i &&
|
|
12386
|
+
$.target !== window && $.target instanceof HTMLElement && s.value === 0 && (C() || i && c && (F.contains($.target) || (Z = J(f.beforePanelSentinel)) != null && Z.contains($.target) || (x = J(f.afterPanelSentinel)) != null && x.contains($.target) || f.closePopover()));
|
|
12383
12387
|
},
|
|
12384
12388
|
!0
|
|
12385
12389
|
), Nd(
|
|
@@ -12423,10 +12427,10 @@ const Md = /* @__PURE__ */ me({
|
|
|
12423
12427
|
}), yt(() => {
|
|
12424
12428
|
o.buttonId.value = null;
|
|
12425
12429
|
});
|
|
12426
|
-
const i = jd(), a = i == null ? void 0 : i.closeOthers,
|
|
12427
|
-
() =>
|
|
12430
|
+
const i = jd(), a = i == null ? void 0 : i.closeOthers, l = p_(), c = X(
|
|
12431
|
+
() => l === null ? !1 : l.value === o.panelId.value
|
|
12428
12432
|
), u = T(null), d = `moonbase-focus-sentinel-${Tt()}`;
|
|
12429
|
-
|
|
12433
|
+
c.value || pt(() => {
|
|
12430
12434
|
o.button.value = J(u);
|
|
12431
12435
|
});
|
|
12432
12436
|
const f = Vd(
|
|
@@ -12435,7 +12439,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12435
12439
|
);
|
|
12436
12440
|
function m(C) {
|
|
12437
12441
|
var z, $, Z, x, de;
|
|
12438
|
-
if (
|
|
12442
|
+
if (c.value) {
|
|
12439
12443
|
if (o.popoverState.value === 1)
|
|
12440
12444
|
return;
|
|
12441
12445
|
switch (C.key) {
|
|
@@ -12460,11 +12464,11 @@ const Md = /* @__PURE__ */ me({
|
|
|
12460
12464
|
}
|
|
12461
12465
|
}
|
|
12462
12466
|
function y(C) {
|
|
12463
|
-
|
|
12467
|
+
c.value || C.key === Ye.Space && C.preventDefault();
|
|
12464
12468
|
}
|
|
12465
12469
|
function E(C) {
|
|
12466
12470
|
var z, $;
|
|
12467
|
-
e.disabled || (
|
|
12471
|
+
e.disabled || (c.value ? (o.closePopover(), (z = J(o.button)) == null || z.focus()) : (C.preventDefault(), C.stopPropagation(), o.popoverState.value === 1 && (a == null || a(o.buttonId.value)), o.togglePopover(), ($ = J(o.button)) == null || $.focus()));
|
|
12468
12472
|
}
|
|
12469
12473
|
function N(C) {
|
|
12470
12474
|
C.preventDefault(), C.stopPropagation();
|
|
@@ -12476,13 +12480,13 @@ const Md = /* @__PURE__ */ me({
|
|
|
12476
12480
|
return;
|
|
12477
12481
|
function z() {
|
|
12478
12482
|
Je(A.value, {
|
|
12479
|
-
[
|
|
12480
|
-
[
|
|
12483
|
+
[Nt.Forwards]: () => it(C, Ue.First),
|
|
12484
|
+
[Nt.Backwards]: () => it(C, Ue.Last)
|
|
12481
12485
|
}) === sn.Error && it(
|
|
12482
12486
|
Ys().filter((Z) => Z.dataset.moonbaseFocusGuard !== "true"),
|
|
12483
12487
|
Je(A.value, {
|
|
12484
|
-
[
|
|
12485
|
-
[
|
|
12488
|
+
[Nt.Forwards]: Ue.Next,
|
|
12489
|
+
[Nt.Backwards]: Ue.Previous
|
|
12486
12490
|
}),
|
|
12487
12491
|
{ relativeTo: J(o.button) }
|
|
12488
12492
|
);
|
|
@@ -12490,7 +12494,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12490
12494
|
z();
|
|
12491
12495
|
}
|
|
12492
12496
|
return () => {
|
|
12493
|
-
const C = o.popoverState.value === 0, z = { open: C }, { id: $, ...Z } = e, x =
|
|
12497
|
+
const C = o.popoverState.value === 0, z = { open: C }, { id: $, ...Z } = e, x = c.value ? {
|
|
12494
12498
|
ref: u,
|
|
12495
12499
|
type: f.value,
|
|
12496
12500
|
onKeydown: m,
|
|
@@ -12516,7 +12520,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12516
12520
|
slots: n,
|
|
12517
12521
|
name: "PopoverButton"
|
|
12518
12522
|
}),
|
|
12519
|
-
C && !
|
|
12523
|
+
C && !c.value && o.isPortalled.value && Le(Zn, {
|
|
12520
12524
|
id: d,
|
|
12521
12525
|
features: Hn.Focusable,
|
|
12522
12526
|
"data-moonbase-focus-guard": !0,
|
|
@@ -12538,7 +12542,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12538
12542
|
},
|
|
12539
12543
|
inheritAttrs: !1,
|
|
12540
12544
|
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
12541
|
-
const { focus: o } = e, s = Fa("PopoverPanel"), i = X(() => Qt(s.panel)), a = `moonbase-focus-sentinel-before-${Tt()}`,
|
|
12545
|
+
const { focus: o } = e, s = Fa("PopoverPanel"), i = X(() => Qt(s.panel)), a = `moonbase-focus-sentinel-before-${Tt()}`, l = `moonbase-focus-sentinel-after-${Tt()}`;
|
|
12542
12546
|
r({ el: s.panel, $el: s.panel }), je(() => {
|
|
12543
12547
|
s.panelId.value = e.id;
|
|
12544
12548
|
}), yt(() => {
|
|
@@ -12550,7 +12554,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12550
12554
|
const N = (A = i.value) == null ? void 0 : A.activeElement;
|
|
12551
12555
|
(F = J(s.panel)) != null && F.contains(N) || it(J(s.panel), Ue.First);
|
|
12552
12556
|
});
|
|
12553
|
-
const
|
|
12557
|
+
const c = Qs(), u = X(() => c !== null ? (c.value & at.Open) === at.Open : s.popoverState.value === 0);
|
|
12554
12558
|
function d(N) {
|
|
12555
12559
|
var A, F;
|
|
12556
12560
|
switch (N.key) {
|
|
@@ -12573,11 +12577,11 @@ const Md = /* @__PURE__ */ me({
|
|
|
12573
12577
|
return;
|
|
12574
12578
|
function A() {
|
|
12575
12579
|
Je(m.value, {
|
|
12576
|
-
[
|
|
12580
|
+
[Nt.Forwards]: () => {
|
|
12577
12581
|
var C;
|
|
12578
12582
|
it(N, Ue.First) === sn.Error && ((C = J(s.afterPanelSentinel)) == null || C.focus());
|
|
12579
12583
|
},
|
|
12580
|
-
[
|
|
12584
|
+
[Nt.Backwards]: () => {
|
|
12581
12585
|
var F;
|
|
12582
12586
|
(F = J(s.button)) == null || F.focus({ preventScroll: !0 });
|
|
12583
12587
|
}
|
|
@@ -12591,7 +12595,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12591
12595
|
return;
|
|
12592
12596
|
function A() {
|
|
12593
12597
|
Je(m.value, {
|
|
12594
|
-
[
|
|
12598
|
+
[Nt.Forwards]: () => {
|
|
12595
12599
|
const F = J(s.button), C = J(s.panel);
|
|
12596
12600
|
if (!F)
|
|
12597
12601
|
return;
|
|
@@ -12603,7 +12607,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12603
12607
|
}
|
|
12604
12608
|
it(de, Ue.First, { sorted: !1 });
|
|
12605
12609
|
},
|
|
12606
|
-
[
|
|
12610
|
+
[Nt.Backwards]: () => {
|
|
12607
12611
|
var C;
|
|
12608
12612
|
it(N, Ue.Previous) === sn.Error && ((C = J(s.button)) == null || C.focus());
|
|
12609
12613
|
}
|
|
@@ -12644,7 +12648,7 @@ const Md = /* @__PURE__ */ me({
|
|
|
12644
12648
|
}),
|
|
12645
12649
|
(Z = n.default) == null ? void 0 : Z.call(n, ...$),
|
|
12646
12650
|
u.value && s.isPortalled.value && Le(Zn, {
|
|
12647
|
-
id:
|
|
12651
|
+
id: l,
|
|
12648
12652
|
ref: s.afterPanelSentinel,
|
|
12649
12653
|
features: Hn.Focusable,
|
|
12650
12654
|
"data-moonbase-focus-guard": !0,
|
|
@@ -12721,10 +12725,10 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12721
12725
|
setup(e, { slots: t, attrs: n, emit: r }) {
|
|
12722
12726
|
const o = T(
|
|
12723
12727
|
e.selectedIndex ?? e.defaultIndex
|
|
12724
|
-
), s = T([]), i = T([]), a = X(() => e.selectedIndex !== null),
|
|
12728
|
+
), s = T([]), i = T([]), a = X(() => e.selectedIndex !== null), l = X(
|
|
12725
12729
|
() => a.value ? e.selectedIndex : o.value
|
|
12726
12730
|
);
|
|
12727
|
-
function
|
|
12731
|
+
function c(y) {
|
|
12728
12732
|
const E = kr(u.tabs.value, J), N = kr(u.panels.value, J), A = E.filter((F) => {
|
|
12729
12733
|
var C;
|
|
12730
12734
|
return !((C = J(F)) != null && C.hasAttribute("disabled"));
|
|
@@ -12772,7 +12776,7 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12772
12776
|
tabs: s,
|
|
12773
12777
|
panels: i,
|
|
12774
12778
|
setSelectedIndex(y) {
|
|
12775
|
-
|
|
12779
|
+
l.value !== y && r("change", y), a.value || c(y);
|
|
12776
12780
|
},
|
|
12777
12781
|
registerTab(y) {
|
|
12778
12782
|
if (s.value.includes(y))
|
|
@@ -12807,15 +12811,15 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12807
12811
|
return je(() => {
|
|
12808
12812
|
Qe(
|
|
12809
12813
|
[m],
|
|
12810
|
-
() =>
|
|
12814
|
+
() => c(e.selectedIndex ?? e.defaultIndex),
|
|
12811
12815
|
{ immediate: !0 }
|
|
12812
12816
|
);
|
|
12813
12817
|
}), pt(() => {
|
|
12814
|
-
if (!a.value ||
|
|
12818
|
+
if (!a.value || l.value == null || u.tabs.value.length <= 0)
|
|
12815
12819
|
return;
|
|
12816
12820
|
const y = kr(u.tabs.value, J);
|
|
12817
12821
|
y.some((N, A) => J(u.tabs.value[A]) !== J(N)) && u.setSelectedIndex(
|
|
12818
|
-
y.findIndex((N) => J(N) === J(u.tabs.value[
|
|
12822
|
+
y.findIndex((N) => J(N) === J(u.tabs.value[l.value]))
|
|
12819
12823
|
);
|
|
12820
12824
|
}), () => {
|
|
12821
12825
|
const y = { selectedIndex: o.value };
|
|
@@ -12882,10 +12886,10 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12882
12886
|
return N === -1 ? i.value.tabs.push(e.id) - 1 : N;
|
|
12883
12887
|
}
|
|
12884
12888
|
return -1;
|
|
12885
|
-
}),
|
|
12889
|
+
}), l = X(() => {
|
|
12886
12890
|
const N = o.tabs.value.indexOf(s);
|
|
12887
12891
|
return N === -1 ? a.value : N;
|
|
12888
|
-
}),
|
|
12892
|
+
}), c = X(() => l.value === o.selectedIndex.value);
|
|
12889
12893
|
function u(N) {
|
|
12890
12894
|
var F;
|
|
12891
12895
|
const A = N();
|
|
@@ -12898,7 +12902,7 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12898
12902
|
function d(N) {
|
|
12899
12903
|
const A = o.tabs.value.map((C) => J(C)).filter(Boolean);
|
|
12900
12904
|
if (N.key === Ye.Space || N.key === Ye.Enter) {
|
|
12901
|
-
N.preventDefault(), N.stopPropagation(), o.setSelectedIndex(
|
|
12905
|
+
N.preventDefault(), N.stopPropagation(), o.setSelectedIndex(l.value);
|
|
12902
12906
|
return;
|
|
12903
12907
|
}
|
|
12904
12908
|
switch (N.key) {
|
|
@@ -12924,7 +12928,7 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12924
12928
|
const f = T(!1);
|
|
12925
12929
|
function m() {
|
|
12926
12930
|
var N;
|
|
12927
|
-
f.value || (f.value = !0, !e.disabled && ((N = J(s)) == null || N.focus({ preventScroll: !0 }), o.setSelectedIndex(
|
|
12931
|
+
f.value || (f.value = !0, !e.disabled && ((N = J(s)) == null || N.focus({ preventScroll: !0 }), o.setSelectedIndex(l.value), Xs(() => {
|
|
12928
12932
|
f.value = !1;
|
|
12929
12933
|
})));
|
|
12930
12934
|
}
|
|
@@ -12937,7 +12941,7 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12937
12941
|
);
|
|
12938
12942
|
return () => {
|
|
12939
12943
|
var z;
|
|
12940
|
-
const N = { selected:
|
|
12944
|
+
const N = { selected: c.value, disabled: e.disabled ?? !1 }, { id: A, ...F } = e, C = {
|
|
12941
12945
|
ref: s,
|
|
12942
12946
|
onKeydown: d,
|
|
12943
12947
|
onMousedown: y,
|
|
@@ -12945,9 +12949,9 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12945
12949
|
id: A,
|
|
12946
12950
|
role: "tab",
|
|
12947
12951
|
type: E.value,
|
|
12948
|
-
"aria-controls": (z = J(o.panels.value[
|
|
12949
|
-
"aria-selected":
|
|
12950
|
-
tabIndex:
|
|
12952
|
+
"aria-controls": (z = J(o.panels.value[l.value])) == null ? void 0 : z.id,
|
|
12953
|
+
"aria-selected": c.value,
|
|
12954
|
+
tabIndex: c.value ? 0 : -1,
|
|
12951
12955
|
disabled: e.disabled ? !0 : void 0
|
|
12952
12956
|
};
|
|
12953
12957
|
return et({
|
|
@@ -12997,27 +13001,27 @@ const Ha = Symbol("TabsSSRContext"), m_ = /* @__PURE__ */ me({
|
|
|
12997
13001
|
return u === -1 ? i.value.panels.push(e.id) - 1 : u;
|
|
12998
13002
|
}
|
|
12999
13003
|
return -1;
|
|
13000
|
-
}),
|
|
13004
|
+
}), l = X(() => {
|
|
13001
13005
|
const u = o.panels.value.indexOf(s);
|
|
13002
13006
|
return u === -1 ? a.value : u;
|
|
13003
|
-
}),
|
|
13007
|
+
}), c = X(() => l.value === o.selectedIndex.value);
|
|
13004
13008
|
return () => {
|
|
13005
13009
|
var E;
|
|
13006
|
-
const u = { selected:
|
|
13010
|
+
const u = { selected: c.value }, { id: d, tabIndex: f, ...m } = e, y = {
|
|
13007
13011
|
ref: s,
|
|
13008
13012
|
id: d,
|
|
13009
13013
|
role: "tabpanel",
|
|
13010
|
-
"aria-labelledby": (E = J(o.tabs.value[
|
|
13011
|
-
tabIndex:
|
|
13014
|
+
"aria-labelledby": (E = J(o.tabs.value[l.value])) == null ? void 0 : E.id,
|
|
13015
|
+
tabIndex: c.value ? f : -1
|
|
13012
13016
|
};
|
|
13013
|
-
return !
|
|
13017
|
+
return !c.value && e.unmount && !e.static ? Le(Zn, { as: "span", "aria-hidden": !0, ...y }) : et({
|
|
13014
13018
|
ourProps: y,
|
|
13015
13019
|
theirProps: m,
|
|
13016
13020
|
slot: u,
|
|
13017
13021
|
attrs: t,
|
|
13018
13022
|
slots: n,
|
|
13019
13023
|
features: Bn.Static | Bn.RenderStrategy,
|
|
13020
|
-
visible:
|
|
13024
|
+
visible: c.value,
|
|
13021
13025
|
name: "TabPanel"
|
|
13022
13026
|
});
|
|
13023
13027
|
};
|
|
@@ -13042,8 +13046,8 @@ function __(e, t) {
|
|
|
13042
13046
|
if (!e)
|
|
13043
13047
|
return n.dispose;
|
|
13044
13048
|
const { transitionDuration: r, transitionDelay: o } = getComputedStyle(e), [s, i] = [r, o].map((a) => {
|
|
13045
|
-
const [
|
|
13046
|
-
return
|
|
13049
|
+
const [l = 0] = a.split(",").filter(Boolean).map((c) => c.includes("ms") ? Number.parseFloat(c) : Number.parseFloat(c) * 1e3).sort((c, u) => u - c);
|
|
13050
|
+
return l;
|
|
13047
13051
|
});
|
|
13048
13052
|
return s !== 0 ? n.setTimeout(() => t(
|
|
13049
13053
|
"finished"
|
|
@@ -13061,7 +13065,7 @@ function cc(e, t, n, r, o, s) {
|
|
|
13061
13065
|
};
|
|
13062
13066
|
return Xo(e, ...o), Oi(e, ...t, ...n), i.nextFrame(() => {
|
|
13063
13067
|
Xo(e, ...n), Oi(e, ...r), i.add(
|
|
13064
|
-
__(e, (
|
|
13068
|
+
__(e, (l) => (Xo(e, ...r, ...t), Oi(e, ...o), a(l)))
|
|
13065
13069
|
);
|
|
13066
13070
|
}), i.add(() => Xo(e, ...t, ...n, ...r, ...o)), i.add(() => a(
|
|
13067
13071
|
"cancelled"
|
|
@@ -13098,7 +13102,7 @@ function Bd(e) {
|
|
|
13098
13102
|
const t = T([]), n = T(!1);
|
|
13099
13103
|
je(() => n.value = !0), yt(() => n.value = !1);
|
|
13100
13104
|
function r(s, i = $n.Hidden) {
|
|
13101
|
-
const a = t.value.findIndex(({ id:
|
|
13105
|
+
const a = t.value.findIndex(({ id: l }) => l === s);
|
|
13102
13106
|
a !== -1 && (Je(i, {
|
|
13103
13107
|
[$n.Unmount]() {
|
|
13104
13108
|
t.value.splice(a, 1);
|
|
@@ -13150,10 +13154,10 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13150
13154
|
function a() {
|
|
13151
13155
|
s.value &= ~at.Opening, t("afterEnter");
|
|
13152
13156
|
}
|
|
13153
|
-
function
|
|
13157
|
+
function l() {
|
|
13154
13158
|
s.value |= at.Closing, t("beforeLeave");
|
|
13155
13159
|
}
|
|
13156
|
-
function
|
|
13160
|
+
function c() {
|
|
13157
13161
|
s.value &= ~at.Closing, t("afterLeave");
|
|
13158
13162
|
}
|
|
13159
13163
|
if (!b_() && o_())
|
|
@@ -13163,8 +13167,8 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13163
13167
|
...e,
|
|
13164
13168
|
onBeforeEnter: i,
|
|
13165
13169
|
onAfterEnter: a,
|
|
13166
|
-
onBeforeLeave:
|
|
13167
|
-
onAfterLeave:
|
|
13170
|
+
onBeforeLeave: l,
|
|
13171
|
+
onAfterLeave: c
|
|
13168
13172
|
},
|
|
13169
13173
|
r
|
|
13170
13174
|
);
|
|
@@ -13174,7 +13178,7 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13174
13178
|
f.value ? "visible" : "hidden"
|
|
13175
13179
|
/* Hidden */
|
|
13176
13180
|
), A = { value: !0 }, F = Tt(), C = { value: !1 }, z = Bd(() => {
|
|
13177
|
-
!C.value && N.value !== "hidden" && (N.value = "hidden", E(F),
|
|
13181
|
+
!C.value && N.value !== "hidden" && (N.value = "hidden", E(F), c());
|
|
13178
13182
|
});
|
|
13179
13183
|
je(() => {
|
|
13180
13184
|
const oe = y(F);
|
|
@@ -13203,7 +13207,7 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13203
13207
|
});
|
|
13204
13208
|
function j(oe) {
|
|
13205
13209
|
const w = A.value && !m.value, I = J(u);
|
|
13206
|
-
!I || !(I instanceof HTMLElement) || w || (C.value = !0, f.value && i(), f.value ||
|
|
13210
|
+
!I || !(I instanceof HTMLElement) || w || (C.value = !0, f.value && i(), f.value || l(), oe(
|
|
13207
13211
|
f.value ? cc(
|
|
13208
13212
|
I,
|
|
13209
13213
|
$,
|
|
@@ -13220,7 +13224,7 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13220
13224
|
P,
|
|
13221
13225
|
de,
|
|
13222
13226
|
(ne) => {
|
|
13223
|
-
C.value = !1, ne === ra.Finished && (ni(z) || (N.value = "hidden", E(F),
|
|
13227
|
+
C.value = !1, ne === ra.Finished && (ni(z) || (N.value = "hidden", E(F), c()));
|
|
13224
13228
|
}
|
|
13225
13229
|
)
|
|
13226
13230
|
));
|
|
@@ -13310,15 +13314,15 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13310
13314
|
/* Hidden */
|
|
13311
13315
|
), a = Bd(() => {
|
|
13312
13316
|
i.value = "hidden";
|
|
13313
|
-
}),
|
|
13317
|
+
}), l = T(!0), c = {
|
|
13314
13318
|
show: s,
|
|
13315
|
-
appear: X(() => e.appear || !
|
|
13319
|
+
appear: X(() => e.appear || !l.value)
|
|
13316
13320
|
};
|
|
13317
13321
|
return je(() => {
|
|
13318
13322
|
pt(() => {
|
|
13319
|
-
|
|
13323
|
+
l.value = !1, s.value ? i.value = "visible" : ni(a) || (i.value = "hidden");
|
|
13320
13324
|
});
|
|
13321
|
-
}), ft(qa, a), ft(Za,
|
|
13325
|
+
}), ft(qa, a), ft(Za, c), () => {
|
|
13322
13326
|
const u = Ma(e, [
|
|
13323
13327
|
"show",
|
|
13324
13328
|
"appear",
|
|
@@ -13408,18 +13412,18 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13408
13412
|
__name: "SignIn",
|
|
13409
13413
|
emits: ["signedIn"],
|
|
13410
13414
|
setup(e, { emit: t }) {
|
|
13411
|
-
const n = t, r = Ve(), o =
|
|
13412
|
-
async function
|
|
13413
|
-
|
|
13415
|
+
const n = t, r = Ve(), o = wt(), s = $e(Js), i = T(r.getParameter("email") ?? ""), a = T(""), l = T(null);
|
|
13416
|
+
async function c() {
|
|
13417
|
+
l.value = null;
|
|
13414
13418
|
try {
|
|
13415
13419
|
const u = await o.signIn(i.value, a.value);
|
|
13416
13420
|
Xt(1500).then(() => n("signedIn", u));
|
|
13417
13421
|
} catch (u) {
|
|
13418
|
-
throw u instanceof Vr ?
|
|
13422
|
+
throw u instanceof Vr ? l.value = "User not found" : l.value = u.message, u;
|
|
13419
13423
|
}
|
|
13420
13424
|
}
|
|
13421
13425
|
return (u, d) => (_(), xe(Un, {
|
|
13422
|
-
handler:
|
|
13426
|
+
handler: c,
|
|
13423
13427
|
class: "moonbase:sign-in"
|
|
13424
13428
|
}, {
|
|
13425
13429
|
default: ye(() => {
|
|
@@ -13452,16 +13456,16 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13452
13456
|
}),
|
|
13453
13457
|
O("span", {
|
|
13454
13458
|
class: "moonbase:error",
|
|
13455
|
-
"data-visible": !!
|
|
13456
|
-
}, K(
|
|
13459
|
+
"data-visible": !!l.value || void 0
|
|
13460
|
+
}, K(l.value), 9, S_),
|
|
13457
13461
|
(f = b(s)) != null && f.auth.enable.signUp ? (_(), S("button", {
|
|
13458
13462
|
key: 0,
|
|
13459
13463
|
type: "button",
|
|
13460
|
-
onClick: d[2] || (d[2] = (m) => b(r).show(b(
|
|
13464
|
+
onClick: d[2] || (d[2] = (m) => b(r).show(b(Ne).Authentication, b(fe).SignUp, { email: i.value }))
|
|
13461
13465
|
}, " Create account ")) : he("", !0),
|
|
13462
13466
|
O("button", {
|
|
13463
13467
|
type: "button",
|
|
13464
|
-
onClick: d[3] || (d[3] = (m) => b(r).show(b(
|
|
13468
|
+
onClick: d[3] || (d[3] = (m) => b(r).show(b(Ne).Authentication, b(fe).ForgotPassword, { email: i.value }))
|
|
13465
13469
|
}, " Forgot password ")
|
|
13466
13470
|
];
|
|
13467
13471
|
}),
|
|
@@ -13478,30 +13482,30 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13478
13482
|
},
|
|
13479
13483
|
emits: ["authenticated"],
|
|
13480
13484
|
setup(e, { emit: t }) {
|
|
13481
|
-
const n = t, r = Ve(), { loaded: o, user: s } =
|
|
13485
|
+
const n = t, r = Ve(), { loaded: o, user: s } = wt();
|
|
13482
13486
|
Qe(s, (a) => {
|
|
13483
|
-
a && r.intent ===
|
|
13487
|
+
a && r.intent === fe.SignIn && (n("authenticated", a), r.dequeue());
|
|
13484
13488
|
});
|
|
13485
13489
|
const i = X(() => {
|
|
13486
13490
|
switch (r.intent) {
|
|
13487
|
-
case
|
|
13491
|
+
case fe.SignIn:
|
|
13488
13492
|
return "Sign in";
|
|
13489
|
-
case
|
|
13493
|
+
case fe.SignUp:
|
|
13490
13494
|
return "Sign up";
|
|
13491
|
-
case
|
|
13495
|
+
case fe.ConfirmAccount:
|
|
13492
13496
|
return "Confirm account";
|
|
13493
|
-
case
|
|
13497
|
+
case fe.ConfirmEmailChange:
|
|
13494
13498
|
return "Confirm email change";
|
|
13495
|
-
case
|
|
13499
|
+
case fe.ForgotPassword:
|
|
13496
13500
|
return "Forgot password";
|
|
13497
|
-
case
|
|
13501
|
+
case fe.ResetPassword:
|
|
13498
13502
|
return "Reset password";
|
|
13499
13503
|
}
|
|
13500
13504
|
throw new Error("Moonbase: Unknown intent");
|
|
13501
13505
|
});
|
|
13502
|
-
return (a,
|
|
13506
|
+
return (a, l) => (_(), xe(ri, {
|
|
13503
13507
|
open: a.open,
|
|
13504
|
-
onClose:
|
|
13508
|
+
onClose: l[3] || (l[3] = (c) => b(r).reset())
|
|
13505
13509
|
}, {
|
|
13506
13510
|
default: ye(() => [
|
|
13507
13511
|
O("div", k_, [
|
|
@@ -13511,15 +13515,15 @@ const Hd = Bn.RenderStrategy, No = /* @__PURE__ */ me({
|
|
|
13511
13515
|
]),
|
|
13512
13516
|
_: 1
|
|
13513
13517
|
}),
|
|
13514
|
-
b(o) ? b(r).intent === b(
|
|
13518
|
+
b(o) ? b(r).intent === b(fe).SignIn ? (_(), xe(x_, { key: 1 })) : b(r).intent === b(fe).SignUp ? (_(), xe(by, {
|
|
13515
13519
|
key: 2,
|
|
13516
|
-
onSignedUp:
|
|
13517
|
-
})) : b(r).intent === b(
|
|
13520
|
+
onSignedUp: l[0] || (l[0] = (c) => b(r).dequeue())
|
|
13521
|
+
})) : b(r).intent === b(fe).ConfirmAccount ? (_(), xe(Sy, {
|
|
13518
13522
|
key: 3,
|
|
13519
|
-
onConfirmedAccount:
|
|
13520
|
-
})) : b(r).intent === b(
|
|
13523
|
+
onConfirmedAccount: l[1] || (l[1] = (c) => b(r).dequeue())
|
|
13524
|
+
})) : b(r).intent === b(fe).ConfirmEmailChange ? (_(), xe(jy, { key: 4 })) : b(r).intent === b(fe).ForgotPassword ? (_(), xe(Ty, { key: 5 })) : b(r).intent === b(fe).ResetPassword ? (_(), xe(Iy, {
|
|
13521
13525
|
key: 6,
|
|
13522
|
-
onPasswordReset:
|
|
13526
|
+
onPasswordReset: l[2] || (l[2] = (c) => b(r).dequeue())
|
|
13523
13527
|
})) : he("", !0) : (_(), S("div", C_, [
|
|
13524
13528
|
B(Pt)
|
|
13525
13529
|
]))
|
|
@@ -13639,7 +13643,7 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13639
13643
|
return Qe(t, (r) => {
|
|
13640
13644
|
n.value && (n.value.style.height = r ? `${n.value.scrollHeight}px` : "0px");
|
|
13641
13645
|
}), (r, o) => {
|
|
13642
|
-
var s, i, a,
|
|
13646
|
+
var s, i, a, l, c, u, d;
|
|
13643
13647
|
return _(), S("div", null, [
|
|
13644
13648
|
O("div", F_, [
|
|
13645
13649
|
(s = r.lineItem.bundle) != null && s.iconUrl ? (_(), S("img", {
|
|
@@ -13662,8 +13666,8 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13662
13666
|
onClick: o[0] || (o[0] = (f) => t.value = !t.value)
|
|
13663
13667
|
}, [
|
|
13664
13668
|
O("span", null, [
|
|
13665
|
-
Te(" Including " + K((
|
|
13666
|
-
(
|
|
13669
|
+
Te(" Including " + K((l = r.lineItem.bundle) == null ? void 0 : l.products.filter((f) => f.included).length) + " ", 1),
|
|
13670
|
+
(c = r.lineItem.bundle) != null && c.products.some((f) => !f.included) ? (_(), S(Ce, { key: 0 }, [
|
|
13667
13671
|
Te("of " + K((u = r.lineItem.bundle) == null ? void 0 : u.products.length), 1)
|
|
13668
13672
|
], 64)) : he("", !0),
|
|
13669
13673
|
Te(" products ")
|
|
@@ -13767,20 +13771,24 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13767
13771
|
noReset: { type: Boolean }
|
|
13768
13772
|
},
|
|
13769
13773
|
setup(e) {
|
|
13770
|
-
const t = e, n = T(!1), r = T(!1), o = T(!1), s = X(() => r.value ? t.success : o.value ? t.error : t.label);
|
|
13774
|
+
const t = e, n = T(!1), r = T(!1), o = T(!1), s = X(() => r.value ? t.success ?? t.label : o.value ? t.error : t.label);
|
|
13771
13775
|
async function i() {
|
|
13772
13776
|
try {
|
|
13773
13777
|
const a = t.handler();
|
|
13774
|
-
a instanceof Promise
|
|
13778
|
+
if (a instanceof Promise) {
|
|
13779
|
+
if (n.value = !0, await a, n.value = !1, !t.success)
|
|
13780
|
+
return;
|
|
13781
|
+
r.value = !0, await Xt(2500), t.noReset || (r.value = !1);
|
|
13782
|
+
}
|
|
13775
13783
|
} catch {
|
|
13776
13784
|
n.value = !1, o.value = !0, await Xt(2500), o.value = !1;
|
|
13777
13785
|
}
|
|
13778
13786
|
}
|
|
13779
|
-
return (a,
|
|
13787
|
+
return (a, l) => (_(), S("button", {
|
|
13780
13788
|
class: "moonbase:button",
|
|
13781
13789
|
type: "button",
|
|
13782
13790
|
disabled: r.value || o.value || n.value,
|
|
13783
|
-
"data-success": r.value || void 0,
|
|
13791
|
+
"data-success": r.value && a.success || void 0,
|
|
13784
13792
|
"data-error": o.value || void 0,
|
|
13785
13793
|
"data-working": n.value || void 0,
|
|
13786
13794
|
"data-variant": a.variant,
|
|
@@ -13816,9 +13824,9 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13816
13824
|
if (!await s(`${window.location.pathname}?mb_intent=view_products`))
|
|
13817
13825
|
throw new Error("Cancelled checkout");
|
|
13818
13826
|
}
|
|
13819
|
-
return (a,
|
|
13827
|
+
return (a, l) => (_(), xe(db, {
|
|
13820
13828
|
open: a.open,
|
|
13821
|
-
onClose:
|
|
13829
|
+
onClose: l[0] || (l[0] = (c) => b(t).reset())
|
|
13822
13830
|
}, {
|
|
13823
13831
|
default: ye(() => [
|
|
13824
13832
|
O("div", hb, [
|
|
@@ -13829,16 +13837,16 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13829
13837
|
_: 1
|
|
13830
13838
|
}),
|
|
13831
13839
|
b(n).length > 0 ? (_(), S("ul", mb, [
|
|
13832
|
-
(_(!0), S(Ce, null, zt(b(n), (
|
|
13833
|
-
key:
|
|
13840
|
+
(_(!0), S(Ce, null, zt(b(n), (c) => (_(), S("li", {
|
|
13841
|
+
key: c.id
|
|
13834
13842
|
}, [
|
|
13835
|
-
|
|
13843
|
+
c.type === "Product" ? (_(), xe(U_, {
|
|
13836
13844
|
key: 0,
|
|
13837
|
-
"line-item":
|
|
13845
|
+
"line-item": c,
|
|
13838
13846
|
currency: b(o)
|
|
13839
|
-
}, null, 8, ["line-item", "currency"])) :
|
|
13847
|
+
}, null, 8, ["line-item", "currency"])) : c.type === "Bundle" ? (_(), xe(cb, {
|
|
13840
13848
|
key: 1,
|
|
13841
|
-
"line-item":
|
|
13849
|
+
"line-item": c,
|
|
13842
13850
|
currency: b(o)
|
|
13843
13851
|
}, null, 8, ["line-item", "currency"])) : he("", !0)
|
|
13844
13852
|
]))), 128))
|
|
@@ -13852,7 +13860,6 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13852
13860
|
key: 3,
|
|
13853
13861
|
handler: i,
|
|
13854
13862
|
label: "Checkout",
|
|
13855
|
-
success: "Done",
|
|
13856
13863
|
error: "Cancelled"
|
|
13857
13864
|
})) : he("", !0)
|
|
13858
13865
|
])
|
|
@@ -13873,15 +13880,15 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13873
13880
|
__name: "Account",
|
|
13874
13881
|
setup(e) {
|
|
13875
13882
|
var F, C, z;
|
|
13876
|
-
const t = Ve(), { user: n, update: r, setPassword: o, signOut: s } =
|
|
13883
|
+
const t = Ve(), { user: n, update: r, setPassword: o, signOut: s } = wt(), i = T(((F = n.value) == null ? void 0 : F.name) ?? ""), a = T(((C = n.value) == null ? void 0 : C.email) ?? ""), l = T(((z = n.value) == null ? void 0 : z.communicationPreferences) ?? {
|
|
13877
13884
|
newsletterOptIn: !1
|
|
13878
|
-
}),
|
|
13885
|
+
}), c = T(null), u = T(!1), d = T(""), f = T(""), m = T(null), y = T(!1);
|
|
13879
13886
|
async function E() {
|
|
13880
|
-
|
|
13887
|
+
c.value = null, u.value = !1;
|
|
13881
13888
|
try {
|
|
13882
|
-
(await r(i.value, a.value, void 0,
|
|
13889
|
+
(await r(i.value, a.value, void 0, l.value)).needsEmailConfirmationToken && (u.value = !0);
|
|
13883
13890
|
} catch ($) {
|
|
13884
|
-
throw
|
|
13891
|
+
throw c.value = $, $;
|
|
13885
13892
|
}
|
|
13886
13893
|
}
|
|
13887
13894
|
async function N() {
|
|
@@ -13916,8 +13923,8 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13916
13923
|
required: ""
|
|
13917
13924
|
}, null, 8, ["modelValue"]),
|
|
13918
13925
|
B(md, {
|
|
13919
|
-
modelValue:
|
|
13920
|
-
"onUpdate:modelValue": Z[2] || (Z[2] = (x) =>
|
|
13926
|
+
modelValue: l.value.newsletterOptIn,
|
|
13927
|
+
"onUpdate:modelValue": Z[2] || (Z[2] = (x) => l.value.newsletterOptIn = x),
|
|
13921
13928
|
label: "Newsletter subscription",
|
|
13922
13929
|
name: "newsletter-opt-in",
|
|
13923
13930
|
hint: "Receive updates and offers by email"
|
|
@@ -13927,7 +13934,7 @@ const P_ = { class: "moonbase:product-cart-item" }, $_ = ["src"], I_ = {
|
|
|
13927
13934
|
error: "Error",
|
|
13928
13935
|
success: "Saved"
|
|
13929
13936
|
}),
|
|
13930
|
-
|
|
13937
|
+
c.value ? (_(), S("p", Eb, K(c.value.message), 1)) : u.value ? (_(), S("p", Ob, " You need to confirm your new email address, please check your inbox ")) : he("", !0)
|
|
13931
13938
|
]),
|
|
13932
13939
|
_: 1
|
|
13933
13940
|
}),
|
|
@@ -14061,15 +14068,15 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14061
14068
|
)
|
|
14062
14069
|
);
|
|
14063
14070
|
return (s, i) => (_(), S("span", zb, [
|
|
14064
|
-
(_(!0), S(Ce, null, zt(o.value, (a,
|
|
14071
|
+
(_(!0), S(Ce, null, zt(o.value, (a, l, c) => (_(), S(Ce, { key: l }, [
|
|
14065
14072
|
a.length === 1 ? (_(), S("button", {
|
|
14066
14073
|
key: 0,
|
|
14067
14074
|
type: "button",
|
|
14068
14075
|
role: "button",
|
|
14069
|
-
"data-last":
|
|
14076
|
+
"data-last": c === Object.keys(o.value).length - 1 || void 0,
|
|
14070
14077
|
onClick: (u) => b(r)(a[0])
|
|
14071
14078
|
}, [
|
|
14072
|
-
O("span", Gb, K(
|
|
14079
|
+
O("span", Gb, K(l.toString()), 1),
|
|
14073
14080
|
(_(), xe(Li(a[0].icon()), {
|
|
14074
14081
|
class: "h-5 w-5 text-white",
|
|
14075
14082
|
"aria-hidden": "true"
|
|
@@ -14077,13 +14084,13 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14077
14084
|
], 8, Kb)) : (_(), xe(b(Ba), {
|
|
14078
14085
|
key: 1,
|
|
14079
14086
|
as: "div",
|
|
14080
|
-
"data-last":
|
|
14087
|
+
"data-last": c === Object.keys(o.value).length - 1 || void 0,
|
|
14081
14088
|
class: "moonbase:product-downloads-group"
|
|
14082
14089
|
}, {
|
|
14083
14090
|
default: ye(() => [
|
|
14084
14091
|
B(b(Md), null, {
|
|
14085
14092
|
default: ye(() => [
|
|
14086
|
-
O("span", Jb, K(
|
|
14093
|
+
O("span", Jb, K(l.toString()), 1),
|
|
14087
14094
|
(_(), xe(Li(a[0].icon()), { "aria-hidden": "true" })),
|
|
14088
14095
|
Yb
|
|
14089
14096
|
]),
|
|
@@ -14127,15 +14134,15 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14127
14134
|
setup(e, { emit: t }) {
|
|
14128
14135
|
const n = e, r = t, { getProductActivations: o, revokeActivation: s } = Gs(), i = T(null);
|
|
14129
14136
|
je(async () => {
|
|
14130
|
-
let
|
|
14131
|
-
for (i.value =
|
|
14132
|
-
|
|
14137
|
+
let c = await o(n.productId);
|
|
14138
|
+
for (i.value = c.items.map((u) => ({ ...u, revoking: !1 })); c.hasMore && c.next; )
|
|
14139
|
+
c = await o(n.productId, c.next), i.value.push(...c.items.map((u) => ({ ...u, revoking: !1 })));
|
|
14133
14140
|
});
|
|
14134
|
-
const a = X(() => i.value && i.value.some((
|
|
14135
|
-
async function c
|
|
14136
|
-
|
|
14141
|
+
const a = X(() => i.value && i.value.some((c) => c.activationMethod === aa.Online));
|
|
14142
|
+
async function l(c) {
|
|
14143
|
+
c.revoking = !0, await s(c), r("revoked", c), i.value && i.value.splice(i.value.indexOf(c), 1);
|
|
14137
14144
|
}
|
|
14138
|
-
return (
|
|
14145
|
+
return (c, u) => (_(), S("table", e1, [
|
|
14139
14146
|
O("thead", null, [
|
|
14140
14147
|
O("tr", null, [
|
|
14141
14148
|
t1,
|
|
@@ -14163,7 +14170,7 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14163
14170
|
a.value ? (_(), S("td", p1, [
|
|
14164
14171
|
O("button", {
|
|
14165
14172
|
class: "text-red-400 flex whitespace-nowrap items-center",
|
|
14166
|
-
onClick: (m) =>
|
|
14173
|
+
onClick: (m) => l(d)
|
|
14167
14174
|
}, [
|
|
14168
14175
|
d.revoking ? (_(), xe(Pt, { key: 0 })) : he("", !0),
|
|
14169
14176
|
Te(" Revoke ")
|
|
@@ -14286,7 +14293,7 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14286
14293
|
}
|
|
14287
14294
|
n.value = !1;
|
|
14288
14295
|
}
|
|
14289
|
-
return (a,
|
|
14296
|
+
return (a, l) => (_(), S("div", $1, [
|
|
14290
14297
|
B(Ao, {
|
|
14291
14298
|
mode: "out-in",
|
|
14292
14299
|
name: "moonbase:slide-left"
|
|
@@ -14305,46 +14312,46 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14305
14312
|
r.value.redeemsProducts.length > 0 ? (_(), S("div", V1, [
|
|
14306
14313
|
R1,
|
|
14307
14314
|
O("div", j1, [
|
|
14308
|
-
(_(!0), S(Ce, null, zt(r.value.redeemsProducts, ({ value:
|
|
14309
|
-
key:
|
|
14315
|
+
(_(!0), S(Ce, null, zt(r.value.redeemsProducts, ({ value: c, quantity: u }) => (_(), S("div", {
|
|
14316
|
+
key: c.id,
|
|
14310
14317
|
class: "moonbase:redeem-voucher-product"
|
|
14311
14318
|
}, [
|
|
14312
14319
|
O("div", null, [
|
|
14313
|
-
|
|
14320
|
+
c.iconUrl ? (_(), S("img", {
|
|
14314
14321
|
key: 0,
|
|
14315
|
-
src:
|
|
14322
|
+
src: c.iconUrl,
|
|
14316
14323
|
alt: ""
|
|
14317
14324
|
}, null, 8, L1)) : (_(), S("div", M1))
|
|
14318
14325
|
]),
|
|
14319
14326
|
O("div", null, [
|
|
14320
14327
|
O("p", null, [
|
|
14321
|
-
Te(K(
|
|
14328
|
+
Te(K(c.name) + " ", 1),
|
|
14322
14329
|
u !== 1 ? (_(), S("span", U1, "x " + K(u), 1)) : he("", !0)
|
|
14323
14330
|
]),
|
|
14324
|
-
O("p", null, K(
|
|
14331
|
+
O("p", null, K(c.tagline), 1)
|
|
14325
14332
|
])
|
|
14326
14333
|
]))), 128)),
|
|
14327
|
-
(_(!0), S(Ce, null, zt(r.value.redeemsBundles, ({ value:
|
|
14328
|
-
key:
|
|
14334
|
+
(_(!0), S(Ce, null, zt(r.value.redeemsBundles, ({ value: c, quantity: u }) => (_(), S("div", {
|
|
14335
|
+
key: c.id
|
|
14329
14336
|
}, [
|
|
14330
14337
|
O("div", F1, [
|
|
14331
14338
|
O("div", null, [
|
|
14332
|
-
|
|
14339
|
+
c.iconUrl ? (_(), S("img", {
|
|
14333
14340
|
key: 0,
|
|
14334
|
-
src:
|
|
14341
|
+
src: c.iconUrl,
|
|
14335
14342
|
alt: ""
|
|
14336
14343
|
}, null, 8, B1)) : (_(), S("div", H1))
|
|
14337
14344
|
]),
|
|
14338
14345
|
O("div", null, [
|
|
14339
14346
|
O("p", null, [
|
|
14340
|
-
Te(K(
|
|
14347
|
+
Te(K(c.name) + " ", 1),
|
|
14341
14348
|
u !== 1 ? (_(), S("span", Z1, "x " + K(u), 1)) : he("", !0)
|
|
14342
14349
|
]),
|
|
14343
|
-
O("p", null, K(
|
|
14350
|
+
O("p", null, K(c.tagline), 1)
|
|
14344
14351
|
])
|
|
14345
14352
|
]),
|
|
14346
14353
|
O("div", q1, [
|
|
14347
|
-
(_(!0), S(Ce, null, zt(
|
|
14354
|
+
(_(!0), S(Ce, null, zt(c.products, (d) => (_(), S("div", {
|
|
14348
14355
|
key: d.id,
|
|
14349
14356
|
class: "moonbase:redeem-voucher-product"
|
|
14350
14357
|
}, [
|
|
@@ -14369,11 +14376,11 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14369
14376
|
handler: i
|
|
14370
14377
|
}, {
|
|
14371
14378
|
default: ye(() => {
|
|
14372
|
-
var
|
|
14379
|
+
var c;
|
|
14373
14380
|
return [
|
|
14374
14381
|
B(vt, {
|
|
14375
14382
|
modelValue: s.value,
|
|
14376
|
-
"onUpdate:modelValue":
|
|
14383
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => s.value = u),
|
|
14377
14384
|
label: "Voucher code",
|
|
14378
14385
|
name: "code",
|
|
14379
14386
|
required: ""
|
|
@@ -14386,7 +14393,7 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14386
14393
|
O("span", {
|
|
14387
14394
|
class: "moonbase:error",
|
|
14388
14395
|
"data-visible": !!o.value || void 0
|
|
14389
|
-
}, K((
|
|
14396
|
+
}, K((c = o.value) == null ? void 0 : c.message), 9, I1)
|
|
14390
14397
|
];
|
|
14391
14398
|
}),
|
|
14392
14399
|
_: 1
|
|
@@ -14405,11 +14412,11 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14405
14412
|
const t = Ve();
|
|
14406
14413
|
function n(s) {
|
|
14407
14414
|
switch (s) {
|
|
14408
|
-
case
|
|
14415
|
+
case fe.ViewAccount:
|
|
14409
14416
|
return 0;
|
|
14410
|
-
case
|
|
14417
|
+
case fe.ViewProducts:
|
|
14411
14418
|
return 1;
|
|
14412
|
-
case
|
|
14419
|
+
case fe.RedeemVoucher:
|
|
14413
14420
|
return 2;
|
|
14414
14421
|
}
|
|
14415
14422
|
return 0;
|
|
@@ -14525,32 +14532,32 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14525
14532
|
}, Ew = { class: "moonbase:auto-activate-cta" }, Ow = /* @__PURE__ */ me({
|
|
14526
14533
|
__name: "AutoActivate",
|
|
14527
14534
|
setup(e) {
|
|
14528
|
-
const t = Ve(), { user: n, loaded: r } =
|
|
14535
|
+
const t = Ve(), { user: n, loaded: r } = wt(), o = t.getParameter("token"), {
|
|
14529
14536
|
activationRequest: s,
|
|
14530
14537
|
loading: i,
|
|
14531
14538
|
fulfilling: a,
|
|
14532
|
-
completing:
|
|
14533
|
-
error:
|
|
14539
|
+
completing: l,
|
|
14540
|
+
error: c,
|
|
14534
14541
|
fulfillLicense: u,
|
|
14535
14542
|
fulfillTrial: d,
|
|
14536
14543
|
cancel: f
|
|
14537
14544
|
} = ug(o);
|
|
14538
14545
|
Qe(s, (E) => {
|
|
14539
14546
|
var N;
|
|
14540
|
-
!a.value && !
|
|
14547
|
+
!a.value && !l.value && (E == null ? void 0 : E.status) === Ft.Requested && ((N = E == null ? void 0 : E.licenseEligibility) != null && N.eligible) && u();
|
|
14541
14548
|
});
|
|
14542
14549
|
function m() {
|
|
14543
|
-
f(), t.show(
|
|
14550
|
+
f(), t.show(Ne.Customer, fe.ViewProducts);
|
|
14544
14551
|
}
|
|
14545
14552
|
function y() {
|
|
14546
|
-
t.enqueue(
|
|
14553
|
+
t.enqueue(Ne.Activation, fe.ActivateProduct, t.parameters ?? void 0), t.show(Ne.Authentication, fe.SignIn);
|
|
14547
14554
|
}
|
|
14548
14555
|
return (E, N) => {
|
|
14549
14556
|
var A, F, C, z;
|
|
14550
14557
|
return _(), S("div", X1, [
|
|
14551
14558
|
b(i) || !b(r) ? (_(), S("div", Q1, [
|
|
14552
14559
|
B(Pt)
|
|
14553
|
-
])) : b(
|
|
14560
|
+
])) : b(c) ? (_(), S("div", ew, K(b(c)), 1)) : b(s) ? (_(), S("div", nw, [
|
|
14554
14561
|
b(s).product ? (_(), S("div", rw, [
|
|
14555
14562
|
b(s).product.iconUrl ? (_(), S("img", {
|
|
14556
14563
|
key: 0,
|
|
@@ -14562,7 +14569,7 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14562
14569
|
O("h3", null, K(b(s).product.tagline), 1)
|
|
14563
14570
|
])
|
|
14564
14571
|
])) : he("", !0),
|
|
14565
|
-
((A = b(s)) == null ? void 0 : A.status) === b(Ft).Cancelled ? (_(), S("div", iw, cw)) : b(a) || b(
|
|
14572
|
+
((A = b(s)) == null ? void 0 : A.status) === b(Ft).Cancelled ? (_(), S("div", iw, cw)) : b(a) || b(l) ? (_(), S("div", uw, [
|
|
14566
14573
|
B(Pt),
|
|
14567
14574
|
O("p", null, "Activating " + K(b(s).product.name) + "...", 1)
|
|
14568
14575
|
])) : ((F = b(s)) == null ? void 0 : F.status) === b(Ft).Completed ? (_(), S("div", dw, hw)) : (_(), S("div", mw, [
|
|
@@ -14628,7 +14635,7 @@ const Kd = /* @__PURE__ */ zn(Fb, [["render", Wb]]), zb = { class: "moonbase:pro
|
|
|
14628
14635
|
]),
|
|
14629
14636
|
_: 1
|
|
14630
14637
|
}),
|
|
14631
|
-
n.open && b(t).intent === b(
|
|
14638
|
+
n.open && b(t).intent === b(fe).ActivateProduct ? (_(), xe(Ow, { key: 0 })) : he("", !0)
|
|
14632
14639
|
])
|
|
14633
14640
|
]),
|
|
14634
14641
|
_: 1
|
|
@@ -14686,40 +14693,40 @@ const kw = { class: "moonbase:download-product" }, Cw = {
|
|
|
14686
14693
|
}, Gw = /* @__PURE__ */ me({
|
|
14687
14694
|
__name: "DownloadProduct",
|
|
14688
14695
|
setup(e) {
|
|
14689
|
-
const t = Ve(), { user: n, loaded: r } =
|
|
14696
|
+
const t = Ve(), { user: n, loaded: r } = wt(), { getProduct: o, downloadProduct: s } = Gs(), i = {
|
|
14690
14697
|
[Zt.Universal]: () => qd,
|
|
14691
14698
|
[Zt.Windows]: () => Wd,
|
|
14692
14699
|
[Zt.Linux]: () => zd,
|
|
14693
14700
|
[Zt.Mac]: () => Kd
|
|
14694
|
-
}, a = T(null),
|
|
14701
|
+
}, a = T(null), l = T([]), c = T(null), u = T(!0), d = X(() => t.getParameter("key")), f = X(() => {
|
|
14695
14702
|
var E, N;
|
|
14696
14703
|
return (N = (E = a.value) == null ? void 0 : E.downloads) == null ? void 0 : N.filter((A) => !d.value || A.key === d.value);
|
|
14697
14704
|
});
|
|
14698
14705
|
je(async () => {
|
|
14699
14706
|
const E = t.getParameter("product_id"), N = t.getParameter("version");
|
|
14700
14707
|
if (!E) {
|
|
14701
|
-
|
|
14708
|
+
c.value = "Link is broken";
|
|
14702
14709
|
return;
|
|
14703
14710
|
}
|
|
14704
14711
|
try {
|
|
14705
14712
|
a.value = await o(E, N || void 0);
|
|
14706
14713
|
} catch (A) {
|
|
14707
|
-
|
|
14714
|
+
c.value = A.message;
|
|
14708
14715
|
}
|
|
14709
14716
|
u.value = !1;
|
|
14710
14717
|
});
|
|
14711
14718
|
function m() {
|
|
14712
|
-
t.enqueue(
|
|
14719
|
+
t.enqueue(Ne.Download, fe.DownloadProduct, t.parameters ?? void 0), t.show(Ne.Authentication, fe.SignIn);
|
|
14713
14720
|
}
|
|
14714
14721
|
async function y(E) {
|
|
14715
|
-
|
|
14722
|
+
l.value.push(E.key), await s(E), l.value = l.value.filter((N) => N !== E.key);
|
|
14716
14723
|
}
|
|
14717
14724
|
return (E, N) => {
|
|
14718
14725
|
var A, F;
|
|
14719
14726
|
return _(), S("div", kw, [
|
|
14720
14727
|
u.value || !b(r) ? (_(), S("div", Cw, [
|
|
14721
14728
|
B(Pt)
|
|
14722
|
-
])) :
|
|
14729
|
+
])) : c.value ? (_(), S("div", Tw, K(c.value), 1)) : a.value ? (_(), S("div", $w, [
|
|
14723
14730
|
O("div", Iw, [
|
|
14724
14731
|
a.value.iconUrl ? (_(), S("img", {
|
|
14725
14732
|
key: 0,
|
|
@@ -14766,7 +14773,7 @@ const kw = { class: "moonbase:download-product" }, Cw = {
|
|
|
14766
14773
|
])
|
|
14767
14774
|
]),
|
|
14768
14775
|
O("div", null, [
|
|
14769
|
-
|
|
14776
|
+
l.value.includes(C.key) ? (_(), xe(Pt, { key: 0 })) : (_(), S("svg", qw, zw))
|
|
14770
14777
|
])
|
|
14771
14778
|
]))), 128))
|
|
14772
14779
|
])) : (_(), S("div", Kw, " No downloadable files found "))
|
|
@@ -14794,7 +14801,7 @@ const kw = { class: "moonbase:download-product" }, Cw = {
|
|
|
14794
14801
|
]),
|
|
14795
14802
|
_: 1
|
|
14796
14803
|
}),
|
|
14797
|
-
n.open && b(t).intent === b(
|
|
14804
|
+
n.open && b(t).intent === b(fe).DownloadProduct ? (_(), xe(Gw, { key: 0 })) : he("", !0)
|
|
14798
14805
|
])
|
|
14799
14806
|
]),
|
|
14800
14807
|
_: 1
|
|
@@ -14809,19 +14816,19 @@ const kw = { class: "moonbase:download-product" }, Cw = {
|
|
|
14809
14816
|
return _(), S(Ce, null, [
|
|
14810
14817
|
(s = b(t)) != null && s.toolbar.enabled ? (_(), xe(Kg, { key: 0 })) : he("", !0),
|
|
14811
14818
|
B(bb, {
|
|
14812
|
-
open: b(n).active === b(
|
|
14819
|
+
open: b(n).active === b(Ne).Cart
|
|
14813
14820
|
}, null, 8, ["open"]),
|
|
14814
14821
|
B(T_, {
|
|
14815
|
-
open: b(n).active === b(
|
|
14822
|
+
open: b(n).active === b(Ne).Authentication
|
|
14816
14823
|
}, null, 8, ["open"]),
|
|
14817
14824
|
B(Sw, {
|
|
14818
|
-
open: b(n).active === b(
|
|
14825
|
+
open: b(n).active === b(Ne).Activation
|
|
14819
14826
|
}, null, 8, ["open"]),
|
|
14820
14827
|
B(Yw, {
|
|
14821
|
-
open: b(n).active === b(
|
|
14828
|
+
open: b(n).active === b(Ne).Download
|
|
14822
14829
|
}, null, 8, ["open"]),
|
|
14823
14830
|
B(Y1, {
|
|
14824
|
-
open: b(n).active === b(
|
|
14831
|
+
open: b(n).active === b(Ne).Customer
|
|
14825
14832
|
}, null, 8, ["open"])
|
|
14826
14833
|
], 64);
|
|
14827
14834
|
};
|
|
@@ -14859,28 +14866,28 @@ class Qw {
|
|
|
14859
14866
|
}
|
|
14860
14867
|
const r = document.createElement("div");
|
|
14861
14868
|
if (r.id = "moonbase", r.classList.add("moonbase"), document.body.append(r), this.options = oa(Bg, n), this.storefront = fg(t), this.pinia = jg(), Kv(Xw).use(this.storefront).use(this.pinia).provide(Js, this.options).mount("#moonbase"), this.initialized = !0, window && window.location) {
|
|
14862
|
-
const
|
|
14863
|
-
if (
|
|
14864
|
-
const
|
|
14865
|
-
if (
|
|
14869
|
+
const i = new URLSearchParams(window.location.search), a = i.get("mb_intent");
|
|
14870
|
+
if (a && Object.values(fe).includes(a)) {
|
|
14871
|
+
const l = Object.fromEntries([...i.entries()].filter(([u]) => u.startsWith("mb_")).map(([u, d]) => [u.substring(3), d]));
|
|
14872
|
+
if (a === fe.Checkout && l.complete)
|
|
14866
14873
|
return;
|
|
14867
|
-
this[
|
|
14868
|
-
for (const
|
|
14869
|
-
|
|
14870
|
-
const c =
|
|
14874
|
+
this[a](l);
|
|
14875
|
+
for (const u of Object.keys(l))
|
|
14876
|
+
i.delete(`mb_${u}`);
|
|
14877
|
+
const c = i.toString();
|
|
14871
14878
|
window.history.replaceState(null, "", window.location.href.split("?")[0] + (c ? `?${c}` : ""));
|
|
14872
14879
|
}
|
|
14873
14880
|
}
|
|
14874
|
-
const o = Ve(this.pinia);
|
|
14875
|
-
this.storefront.onCheckoutClosed((
|
|
14876
|
-
|
|
14881
|
+
const o = Ve(this.pinia), s = wt(this.storefront);
|
|
14882
|
+
this.storefront.onCheckoutClosed((i) => {
|
|
14883
|
+
i === fe.ViewProducts && (s.user ? o.show(Ne.Customer, fe.ViewProducts) : o.show(Ne.Cart, fe.ViewCart));
|
|
14877
14884
|
});
|
|
14878
14885
|
}
|
|
14879
14886
|
// Identity
|
|
14880
14887
|
sign_in(t) {
|
|
14881
14888
|
if (!this.initialized)
|
|
14882
14889
|
throw new Error("Moonbase has not been set up yet");
|
|
14883
|
-
Ve(this.pinia).show(
|
|
14890
|
+
Ve(this.pinia).show(Ne.Authentication, fe.SignIn, t);
|
|
14884
14891
|
}
|
|
14885
14892
|
sign_up(t) {
|
|
14886
14893
|
var r;
|
|
@@ -14888,22 +14895,22 @@ class Qw {
|
|
|
14888
14895
|
throw new Error("Moonbase has not been set up yet");
|
|
14889
14896
|
if (!((r = this.options) != null && r.auth.enable.signUp))
|
|
14890
14897
|
throw new Error("Sign ups are not enabled");
|
|
14891
|
-
Ve(this.pinia).show(
|
|
14898
|
+
Ve(this.pinia).show(Ne.Authentication, fe.SignUp, t);
|
|
14892
14899
|
}
|
|
14893
14900
|
forgot_password(t) {
|
|
14894
14901
|
if (!this.initialized)
|
|
14895
14902
|
throw new Error("Moonbase has not been set up yet");
|
|
14896
|
-
Ve(this.pinia).show(
|
|
14903
|
+
Ve(this.pinia).show(Ne.Authentication, fe.ForgotPassword, t);
|
|
14897
14904
|
}
|
|
14898
14905
|
reset_password(t) {
|
|
14899
14906
|
if (!this.initialized)
|
|
14900
14907
|
throw new Error("Moonbase has not been set up yet");
|
|
14901
|
-
Ve(this.pinia).show(
|
|
14908
|
+
Ve(this.pinia).show(Ne.Authentication, fe.ResetPassword, t);
|
|
14902
14909
|
}
|
|
14903
14910
|
confirm_account(t) {
|
|
14904
14911
|
if (!this.initialized)
|
|
14905
14912
|
throw new Error("Moonbase has not been set up yet");
|
|
14906
|
-
Ve(this.pinia).show(
|
|
14913
|
+
Ve(this.pinia).show(Ne.Authentication, fe.ConfirmAccount, t);
|
|
14907
14914
|
}
|
|
14908
14915
|
confirm_email() {
|
|
14909
14916
|
}
|
|
@@ -14911,43 +14918,43 @@ class Qw {
|
|
|
14911
14918
|
if (!this.initialized)
|
|
14912
14919
|
throw new Error("Moonbase has not been set up yet");
|
|
14913
14920
|
const n = Ve(this.pinia);
|
|
14914
|
-
|
|
14921
|
+
wt(this.storefront).user.value ? n.show(Ne.Authentication, fe.ConfirmEmailChange, t) : (n.show(Ne.Authentication, fe.SignIn), n.enqueue(Ne.Authentication, fe.ConfirmEmailChange, t));
|
|
14915
14922
|
}
|
|
14916
14923
|
// Customer
|
|
14917
14924
|
view_account() {
|
|
14918
14925
|
if (!this.initialized)
|
|
14919
14926
|
throw new Error("Moonbase has not been set up yet");
|
|
14920
14927
|
const t = Ve(this.pinia);
|
|
14921
|
-
|
|
14928
|
+
wt(this.storefront).user.value ? t.show(Ne.Customer, fe.ViewAccount) : (t.show(Ne.Authentication, fe.SignIn), t.enqueue(Ne.Customer, fe.ViewAccount));
|
|
14922
14929
|
}
|
|
14923
14930
|
view_products() {
|
|
14924
14931
|
if (!this.initialized)
|
|
14925
14932
|
throw new Error("Moonbase has not been set up yet");
|
|
14926
|
-
Ve(this.pinia).show(
|
|
14933
|
+
Ve(this.pinia).show(Ne.Cart, fe.ViewCart);
|
|
14927
14934
|
}
|
|
14928
14935
|
redeem_voucher(t) {
|
|
14929
14936
|
if (!this.initialized)
|
|
14930
14937
|
throw new Error("Moonbase has not been set up yet");
|
|
14931
|
-
Ve(this.pinia).show(
|
|
14938
|
+
Ve(this.pinia).show(Ne.Cart, fe.ViewCart, t);
|
|
14932
14939
|
}
|
|
14933
14940
|
// Products
|
|
14934
14941
|
download_product(t) {
|
|
14935
14942
|
if (!this.initialized)
|
|
14936
14943
|
throw new Error("Moonbase has not been set up yet");
|
|
14937
|
-
Ve(this.pinia).show(
|
|
14944
|
+
Ve(this.pinia).show(Ne.Download, fe.DownloadProduct, t);
|
|
14938
14945
|
}
|
|
14939
14946
|
activate_product(t) {
|
|
14940
14947
|
if (!this.initialized)
|
|
14941
14948
|
throw new Error("Moonbase has not been set up yet");
|
|
14942
14949
|
if (!(t != null && t.token))
|
|
14943
14950
|
throw new Error("You need to provide a token when activating a product");
|
|
14944
|
-
Ve(this.pinia).show(
|
|
14951
|
+
Ve(this.pinia).show(Ne.Activation, fe.ActivateProduct, t);
|
|
14945
14952
|
}
|
|
14946
14953
|
// Orders
|
|
14947
14954
|
view_cart() {
|
|
14948
14955
|
if (!this.initialized)
|
|
14949
14956
|
throw new Error("Moonbase has not been set up yet");
|
|
14950
|
-
Ve(this.pinia).show(
|
|
14957
|
+
Ve(this.pinia).show(Ne.Cart, fe.ViewCart);
|
|
14951
14958
|
}
|
|
14952
14959
|
async add_to_cart(t) {
|
|
14953
14960
|
var o, s, i, a;
|
|
@@ -14957,32 +14964,32 @@ class Qw {
|
|
|
14957
14964
|
throw new Error("You need to provide a product or bundle ID when adding to cart");
|
|
14958
14965
|
const n = Ji(this.storefront);
|
|
14959
14966
|
if (t != null && t.product_id) {
|
|
14960
|
-
const
|
|
14961
|
-
if (
|
|
14962
|
-
n.addToCart(
|
|
14967
|
+
const l = Yl(t.product_id, this.storefront);
|
|
14968
|
+
if (l.value)
|
|
14969
|
+
n.addToCart(l.value, (o = l.value.variations) == null ? void 0 : o.find((c) => c.id === t.variation_id));
|
|
14963
14970
|
else {
|
|
14964
14971
|
await this.storefront.loadedStorefrontPromise;
|
|
14965
|
-
const
|
|
14966
|
-
if (
|
|
14967
|
-
n.addToCart(
|
|
14972
|
+
const c = Yl(t.product_id, this.storefront);
|
|
14973
|
+
if (c.value)
|
|
14974
|
+
n.addToCart(c.value, (s = c.value.variations) == null ? void 0 : s.find((u) => u.id === t.variation_id));
|
|
14968
14975
|
else
|
|
14969
14976
|
throw new Error(`Product '${t.product_id}' not found`);
|
|
14970
14977
|
}
|
|
14971
14978
|
}
|
|
14972
14979
|
if (t != null && t.bundle_id) {
|
|
14973
|
-
const
|
|
14974
|
-
if (
|
|
14975
|
-
n.addToCart(
|
|
14980
|
+
const l = Jl(t.bundle_id, this.storefront);
|
|
14981
|
+
if (l.value)
|
|
14982
|
+
n.addToCart(l.value, (i = l.value.variations) == null ? void 0 : i.find((c) => c.id === t.variation_id));
|
|
14976
14983
|
else {
|
|
14977
14984
|
await this.storefront.loadedStorefrontPromise;
|
|
14978
|
-
const
|
|
14979
|
-
if (
|
|
14980
|
-
n.addToCart(
|
|
14985
|
+
const c = Jl(t.bundle_id, this.storefront);
|
|
14986
|
+
if (c.value)
|
|
14987
|
+
n.addToCart(c.value, (a = c.value.variations) == null ? void 0 : a.find((u) => u.id === t.variation_id));
|
|
14981
14988
|
else
|
|
14982
14989
|
throw new Error(`Bundle '${t.bundle_id}' not found`);
|
|
14983
14990
|
}
|
|
14984
14991
|
}
|
|
14985
|
-
Ve(this.pinia).show(
|
|
14992
|
+
Ve(this.pinia).show(Ne.Cart, fe.AddToCart);
|
|
14986
14993
|
}
|
|
14987
14994
|
checkout(t) {
|
|
14988
14995
|
if (!this.initialized)
|
|
@@ -14995,6 +15002,6 @@ class Qw {
|
|
|
14995
15002
|
const e0 = new Qw();
|
|
14996
15003
|
globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase = e0);
|
|
14997
15004
|
export {
|
|
14998
|
-
|
|
15005
|
+
fe as MoonbaseIntent,
|
|
14999
15006
|
e0 as default
|
|
15000
15007
|
};
|