@moonbase.sh/storefront 0.4.66 → 0.4.67
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 +668 -666
- package/dist/moonbase.umd.cjs +10 -10
- package/package.json +2 -2
package/dist/moonbase.js
CHANGED
|
@@ -4939,9 +4939,9 @@ class sh {
|
|
|
4939
4939
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
4940
4940
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
4941
4941
|
// its class methods
|
|
4942
|
-
|
|
4942
|
+
et(t) ? t : r
|
|
4943
4943
|
);
|
|
4944
|
-
return (ur(n) ? oh.has(n) : Zb(n)) || (o || gt(t, "get", n), s) ? a :
|
|
4944
|
+
return (ur(n) ? oh.has(n) : Zb(n)) || (o || gt(t, "get", n), s) ? a : et(a) ? i && Tu(n) ? a : a.value : He(a) ? o ? fh(a) : vi(a) : a;
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
4947
|
class ih extends sh {
|
|
@@ -4952,14 +4952,14 @@ class ih extends sh {
|
|
|
4952
4952
|
let s = t[n];
|
|
4953
4953
|
if (!this._isShallow) {
|
|
4954
4954
|
const l = Hn(s);
|
|
4955
|
-
if (!Bt(r) && !Hn(r) && (s = Oe(s), r = Oe(r)), !ye(t) &&
|
|
4955
|
+
if (!Bt(r) && !Hn(r) && (s = Oe(s), r = Oe(r)), !ye(t) && et(s) && !et(r))
|
|
4956
4956
|
return l ? !1 : (s.value = r, !0);
|
|
4957
4957
|
}
|
|
4958
4958
|
const i = ye(t) && Tu(n) ? Number(n) < t.length : Be(t, n), a = Reflect.set(
|
|
4959
4959
|
t,
|
|
4960
4960
|
n,
|
|
4961
4961
|
r,
|
|
4962
|
-
|
|
4962
|
+
et(t) ? t : o
|
|
4963
4963
|
);
|
|
4964
4964
|
return t === Oe(o) && (i ? Nr(r, s) && Mn(t, "set", n, r, s) : Mn(t, "add", n, r)), a;
|
|
4965
4965
|
}
|
|
@@ -5226,7 +5226,7 @@ function Or(e) {
|
|
|
5226
5226
|
return !Be(e, "__v_skip") && Object.isExtensible(e) && Qs(e, "__v_skip", !0), e;
|
|
5227
5227
|
}
|
|
5228
5228
|
const xt = (e) => He(e) ? vi(e) : e, ba = (e) => He(e) ? fh(e) : e;
|
|
5229
|
-
function
|
|
5229
|
+
function et(e) {
|
|
5230
5230
|
return e ? e.__v_isRef === !0 : !1;
|
|
5231
5231
|
}
|
|
5232
5232
|
function j(e) {
|
|
@@ -5236,7 +5236,7 @@ function lg(e) {
|
|
|
5236
5236
|
return hh(e, !0);
|
|
5237
5237
|
}
|
|
5238
5238
|
function hh(e, t) {
|
|
5239
|
-
return
|
|
5239
|
+
return et(e) ? e : new ug(e, t);
|
|
5240
5240
|
}
|
|
5241
5241
|
class ug {
|
|
5242
5242
|
constructor(t, n) {
|
|
@@ -5261,7 +5261,7 @@ class ug {
|
|
|
5261
5261
|
}
|
|
5262
5262
|
}
|
|
5263
5263
|
function g(e) {
|
|
5264
|
-
return
|
|
5264
|
+
return et(e) ? e.value : e;
|
|
5265
5265
|
}
|
|
5266
5266
|
function hr(e) {
|
|
5267
5267
|
return ke(e) ? e() : g(e);
|
|
@@ -5270,7 +5270,7 @@ const cg = {
|
|
|
5270
5270
|
get: (e, t, n) => t === "__v_raw" ? e : g(Reflect.get(e, t, n)),
|
|
5271
5271
|
set: (e, t, n, r) => {
|
|
5272
5272
|
const o = e[t];
|
|
5273
|
-
return
|
|
5273
|
+
return et(o) && !et(n) ? (o.value = n, !0) : Reflect.set(e, t, n, r);
|
|
5274
5274
|
}
|
|
5275
5275
|
};
|
|
5276
5276
|
function ph(e) {
|
|
@@ -5307,11 +5307,11 @@ class fg {
|
|
|
5307
5307
|
}
|
|
5308
5308
|
}
|
|
5309
5309
|
function hl(e, t, n) {
|
|
5310
|
-
return
|
|
5310
|
+
return et(e) ? e : ke(e) ? new fg(e) : He(e) && arguments.length > 1 ? mh(e, t, n) : j(e);
|
|
5311
5311
|
}
|
|
5312
5312
|
function mh(e, t, n) {
|
|
5313
5313
|
const r = e[t];
|
|
5314
|
-
return
|
|
5314
|
+
return et(r) ? r : new dg(e, t, n);
|
|
5315
5315
|
}
|
|
5316
5316
|
class hg {
|
|
5317
5317
|
constructor(t, n, r) {
|
|
@@ -5360,8 +5360,8 @@ function bg(e, t, n = Ye) {
|
|
|
5360
5360
|
);
|
|
5361
5361
|
}, c = (F) => o ? F : Bt(F) || o === !1 || o === 0 ? kr(F, 1) : kr(F);
|
|
5362
5362
|
let d, f, h, p, v = !1, _ = !1;
|
|
5363
|
-
if (
|
|
5364
|
-
if (
|
|
5363
|
+
if (et(e) ? (f = () => e.value, v = Bt(e)) : vn(e) ? (f = () => c(e), v = !0) : ye(e) ? (_ = !0, v = e.some((F) => vn(F) || Bt(F)), f = () => e.map((F) => {
|
|
5364
|
+
if (et(F))
|
|
5365
5365
|
return F.value;
|
|
5366
5366
|
if (vn(F))
|
|
5367
5367
|
return c(F);
|
|
@@ -5438,7 +5438,7 @@ function bg(e, t, n = Ye) {
|
|
|
5438
5438
|
function kr(e, t = 1 / 0, n) {
|
|
5439
5439
|
if (t <= 0 || !He(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
5440
5440
|
return e;
|
|
5441
|
-
if (n.add(e), t--,
|
|
5441
|
+
if (n.add(e), t--, et(e))
|
|
5442
5442
|
kr(e.value, t, n);
|
|
5443
5443
|
else if (ye(e))
|
|
5444
5444
|
for (let r = 0; r < e.length; r++)
|
|
@@ -5464,7 +5464,7 @@ function Yi() {
|
|
|
5464
5464
|
ro.pop();
|
|
5465
5465
|
}
|
|
5466
5466
|
let pl = !1;
|
|
5467
|
-
function
|
|
5467
|
+
function Q(e, ...t) {
|
|
5468
5468
|
if (pl) return;
|
|
5469
5469
|
pl = !0, En();
|
|
5470
5470
|
const n = ro.length ? ro[ro.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = gg();
|
|
@@ -5532,10 +5532,10 @@ function _g(e) {
|
|
|
5532
5532
|
}), n.length > 3 && t.push(" ..."), t;
|
|
5533
5533
|
}
|
|
5534
5534
|
function bh(e, t, n) {
|
|
5535
|
-
return ot(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] :
|
|
5535
|
+
return ot(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : et(t) ? (t = bh(e, Oe(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : ke(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = Oe(t), n ? t : [`${e}=`, t]);
|
|
5536
5536
|
}
|
|
5537
5537
|
function wg(e, t) {
|
|
5538
|
-
N.NODE_ENV !== "production" && e !== void 0 && (typeof e != "number" ?
|
|
5538
|
+
N.NODE_ENV !== "production" && e !== void 0 && (typeof e != "number" ? Q(`${t} is not a valid number - got ${JSON.stringify(e)}.`) : isNaN(e) && Q(`${t} is NaN - the duration expression might be incorrect.`));
|
|
5539
5539
|
}
|
|
5540
5540
|
const Mu = {
|
|
5541
5541
|
sp: "serverPrefetch hook",
|
|
@@ -5589,7 +5589,7 @@ function xn(e, t, n, r) {
|
|
|
5589
5589
|
for (let s = 0; s < e.length; s++)
|
|
5590
5590
|
o.push(xn(e[s], t, n, r));
|
|
5591
5591
|
return o;
|
|
5592
|
-
} else N.NODE_ENV !== "production" &&
|
|
5592
|
+
} else N.NODE_ENV !== "production" && Q(
|
|
5593
5593
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
5594
5594
|
);
|
|
5595
5595
|
}
|
|
@@ -5621,7 +5621,7 @@ function yi(e, t, n, r = !0) {
|
|
|
5621
5621
|
function Eg(e, t, n, r = !0, o = !1) {
|
|
5622
5622
|
if (N.NODE_ENV !== "production") {
|
|
5623
5623
|
const s = Mu[t];
|
|
5624
|
-
if (n && Zi(n),
|
|
5624
|
+
if (n && Zi(n), Q(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && Yi(), r)
|
|
5625
5625
|
throw e;
|
|
5626
5626
|
console.error(e);
|
|
5627
5627
|
} else {
|
|
@@ -5885,7 +5885,7 @@ function x(e, t = bt, n) {
|
|
|
5885
5885
|
return r._n = !0, r._c = !0, r._d = !0, r;
|
|
5886
5886
|
}
|
|
5887
5887
|
function Ch(e) {
|
|
5888
|
-
xb(e) &&
|
|
5888
|
+
xb(e) && Q("Do not use built-in directive ids as custom directive id: " + e);
|
|
5889
5889
|
}
|
|
5890
5890
|
function Br(e, t, n, r) {
|
|
5891
5891
|
const o = e.dirs, s = t && t.dirs;
|
|
@@ -5906,15 +5906,15 @@ const Nh = Symbol("_vte"), Ph = (e) => e.__isTeleport, oo = (e) => e && (e.disab
|
|
|
5906
5906
|
if (ot(n))
|
|
5907
5907
|
if (t) {
|
|
5908
5908
|
const r = t(n);
|
|
5909
|
-
return N.NODE_ENV !== "production" && !r && !oo(e) &&
|
|
5909
|
+
return N.NODE_ENV !== "production" && !r && !oo(e) && Q(
|
|
5910
5910
|
`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
|
|
5911
5911
|
), r;
|
|
5912
5912
|
} else
|
|
5913
|
-
return N.NODE_ENV !== "production" &&
|
|
5913
|
+
return N.NODE_ENV !== "production" && Q(
|
|
5914
5914
|
"Current renderer does not support string target for Teleports. (missing querySelector renderer option)"
|
|
5915
5915
|
), null;
|
|
5916
5916
|
else
|
|
5917
|
-
return N.NODE_ENV !== "production" && !n && !oo(e) &&
|
|
5917
|
+
return N.NODE_ENV !== "production" && !n && !oo(e) && Q(`Invalid Teleport target: ${n}`), n;
|
|
5918
5918
|
}, Th = {
|
|
5919
5919
|
name: "Teleport",
|
|
5920
5920
|
__isTeleport: !0,
|
|
@@ -5942,7 +5942,7 @@ const Nh = Symbol("_vte"), Ph = (e) => e.__isTeleport, oo = (e) => e && (e.disab
|
|
|
5942
5942
|
));
|
|
5943
5943
|
}, P = () => {
|
|
5944
5944
|
const D = t.target = Kl(t.props, p), A = $h(D, t, v, h);
|
|
5945
|
-
D ? (i !== "svg" && Tc(D) ? i = "svg" : i !== "mathml" && $c(D) && (i = "mathml"), k || (y(D, A), Ki(t, !1))) : N.NODE_ENV !== "production" && !k &&
|
|
5945
|
+
D ? (i !== "svg" && Tc(D) ? i = "svg" : i !== "mathml" && $c(D) && (i = "mathml"), k || (y(D, A), Ki(t, !1))) : N.NODE_ENV !== "production" && !k && Q(
|
|
5946
5946
|
"Invalid Teleport target on mount:",
|
|
5947
5947
|
D,
|
|
5948
5948
|
`(${typeof D})`
|
|
@@ -6008,7 +6008,7 @@ const Nh = Symbol("_vte"), Ph = (e) => e.__isTeleport, oo = (e) => e && (e.disab
|
|
|
6008
6008
|
null,
|
|
6009
6009
|
u,
|
|
6010
6010
|
0
|
|
6011
|
-
) : N.NODE_ENV !== "production" &&
|
|
6011
|
+
) : N.NODE_ENV !== "production" && Q(
|
|
6012
6012
|
"Invalid Teleport target on update:",
|
|
6013
6013
|
I,
|
|
6014
6014
|
`(${typeof I})`
|
|
@@ -6171,7 +6171,7 @@ const rn = [Function, Array], Ah = {
|
|
|
6171
6171
|
if (!o || !o.length)
|
|
6172
6172
|
return;
|
|
6173
6173
|
const s = Ih(o), i = Oe(e), { mode: a } = i;
|
|
6174
|
-
if (N.NODE_ENV !== "production" && a && a !== "in-out" && a !== "out-in" && a !== "default" &&
|
|
6174
|
+
if (N.NODE_ENV !== "production" && a && a !== "in-out" && a !== "out-in" && a !== "default" && Q(`invalid <transition> mode: ${a}`), r.isLeaving)
|
|
6175
6175
|
return bl(s);
|
|
6176
6176
|
const l = Ac(s);
|
|
6177
6177
|
if (!l)
|
|
@@ -6220,7 +6220,7 @@ function Ih(e) {
|
|
|
6220
6220
|
for (const r of e)
|
|
6221
6221
|
if (r.type !== dt) {
|
|
6222
6222
|
if (N.NODE_ENV !== "production" && n) {
|
|
6223
|
-
|
|
6223
|
+
Q(
|
|
6224
6224
|
"<transition> can only be used on a single element or component. Use <transition-group> for lists."
|
|
6225
6225
|
);
|
|
6226
6226
|
break;
|
|
@@ -6386,27 +6386,27 @@ function Is(e, t, n, r, o = !1) {
|
|
|
6386
6386
|
}
|
|
6387
6387
|
const s = r.shapeFlag & 4 ? Wu(r.component) : r.el, i = o ? null : s, { i: a, r: l } = e;
|
|
6388
6388
|
if (N.NODE_ENV !== "production" && !a) {
|
|
6389
|
-
|
|
6389
|
+
Q(
|
|
6390
6390
|
"Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function."
|
|
6391
6391
|
);
|
|
6392
6392
|
return;
|
|
6393
6393
|
}
|
|
6394
|
-
const u = t && t.r, c = a.refs === Ye ? a.refs = {} : a.refs, d = a.setupState, f = Oe(d), h = d === Ye ? () => !1 : (p) => N.NODE_ENV !== "production" && (Be(f, p) && !
|
|
6394
|
+
const u = t && t.r, c = a.refs === Ye ? a.refs = {} : a.refs, d = a.setupState, f = Oe(d), h = d === Ye ? () => !1 : (p) => N.NODE_ENV !== "production" && (Be(f, p) && !et(f[p]) && Q(
|
|
6395
6395
|
`Template ref "${p}" used on a non-ref value. It will not work in the production build.`
|
|
6396
6396
|
), Fg.has(f[p])) ? !1 : Be(f, p);
|
|
6397
|
-
if (u != null && u !== l && (ot(u) ? (c[u] = null, h(u) && (d[u] = null)) :
|
|
6397
|
+
if (u != null && u !== l && (ot(u) ? (c[u] = null, h(u) && (d[u] = null)) : et(u) && (u.value = null)), ke(l))
|
|
6398
6398
|
rs(l, a, 12, [i, c]);
|
|
6399
6399
|
else {
|
|
6400
|
-
const p = ot(l), v =
|
|
6400
|
+
const p = ot(l), v = et(l);
|
|
6401
6401
|
if (p || v) {
|
|
6402
6402
|
const _ = () => {
|
|
6403
6403
|
if (e.f) {
|
|
6404
6404
|
const k = p ? h(l) ? d[l] : c[l] : l.value;
|
|
6405
6405
|
o ? ye(k) && Cu(k, s) : ye(k) ? k.includes(s) || k.push(s) : p ? (c[l] = [s], h(l) && (d[l] = c[l])) : (l.value = [s], e.k && (c[e.k] = l.value));
|
|
6406
|
-
} else p ? (c[l] = i, h(l) && (d[l] = i)) : v ? (l.value = i, e.k && (c[e.k] = i)) : N.NODE_ENV !== "production" &&
|
|
6406
|
+
} else p ? (c[l] = i, h(l) && (d[l] = i)) : v ? (l.value = i, e.k && (c[e.k] = i)) : N.NODE_ENV !== "production" && Q("Invalid template ref type:", l, `(${typeof l})`);
|
|
6407
6407
|
};
|
|
6408
6408
|
i ? (_.id = -1, Rt(_, n)) : _();
|
|
6409
|
-
} else N.NODE_ENV !== "production" &&
|
|
6409
|
+
} else N.NODE_ENV !== "production" && Q("Invalid template ref type:", l, `(${typeof l})`);
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
6412
|
bi().requestIdleCallback;
|
|
@@ -6456,7 +6456,7 @@ function Ga(e, t, n = mt, r = !1) {
|
|
|
6456
6456
|
return r ? o.unshift(s) : o.push(s), s;
|
|
6457
6457
|
} else if (N.NODE_ENV !== "production") {
|
|
6458
6458
|
const o = Wr(Mu[e].replace(/ hook$/, ""));
|
|
6459
|
-
|
|
6459
|
+
Q(
|
|
6460
6460
|
`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
6461
6461
|
);
|
|
6462
6462
|
}
|
|
@@ -6495,9 +6495,9 @@ function ev(e, t, n = !0, r = !1) {
|
|
|
6495
6495
|
Dc(o[e] || s[e], t) || // global registration
|
|
6496
6496
|
Dc(o.appContext[e], t)
|
|
6497
6497
|
);
|
|
6498
|
-
return !i && r ? s : (N.NODE_ENV !== "production" && n && !i &&
|
|
6498
|
+
return !i && r ? s : (N.NODE_ENV !== "production" && n && !i && Q(`Failed to resolve ${e.slice(0, -1)}: ${t}
|
|
6499
6499
|
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`), i);
|
|
6500
|
-
} else N.NODE_ENV !== "production" &&
|
|
6500
|
+
} else N.NODE_ENV !== "production" && Q(
|
|
6501
6501
|
`resolve${fo(e.slice(0, -1))} can only be used in render() or setup().`
|
|
6502
6502
|
);
|
|
6503
6503
|
}
|
|
@@ -6519,7 +6519,7 @@ function lt(e, t, n, r) {
|
|
|
6519
6519
|
s
|
|
6520
6520
|
);
|
|
6521
6521
|
} else if (typeof e == "number") {
|
|
6522
|
-
N.NODE_ENV !== "production" && !Number.isInteger(e) &&
|
|
6522
|
+
N.NODE_ENV !== "production" && !Number.isInteger(e) && Q(`The v-for range expect an integer value but got ${e}.`), o = new Array(e);
|
|
6523
6523
|
for (let a = 0; a < e; a++)
|
|
6524
6524
|
o[a] = t(a + 1, a, void 0, s);
|
|
6525
6525
|
} else if (He(e))
|
|
@@ -6562,7 +6562,7 @@ function At(e, t, n = {}, r, o) {
|
|
|
6562
6562
|
64
|
|
6563
6563
|
);
|
|
6564
6564
|
let s = e[t];
|
|
6565
|
-
N.NODE_ENV !== "production" && s && s.length > 1 && (
|
|
6565
|
+
N.NODE_ENV !== "production" && s && s.length > 1 && (Q(
|
|
6566
6566
|
"SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
|
|
6567
6567
|
), s = () => []), s && s._c && (s._d = !1), m();
|
|
6568
6568
|
const i = s && Uh(s(n)), a = n.key || // slot content array of a dynamic conditional slot may have a branch
|
|
@@ -6658,17 +6658,17 @@ const Ql = (e) => e ? up(e) ? Wu(e) : Ql(e.parent) : null, so = (
|
|
|
6658
6658
|
return f[t];
|
|
6659
6659
|
N.NODE_ENV !== "production" && bt && (!ot(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
6660
6660
|
// to infinite warning loop
|
|
6661
|
-
t.indexOf("__v") !== 0) && (o !== Ye && ju(t[0]) && Be(o, t) ?
|
|
6661
|
+
t.indexOf("__v") !== 0) && (o !== Ye && ju(t[0]) && Be(o, t) ? Q(
|
|
6662
6662
|
`Property ${JSON.stringify(
|
|
6663
6663
|
t
|
|
6664
6664
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
6665
|
-
) : e === bt &&
|
|
6665
|
+
) : e === bt && Q(
|
|
6666
6666
|
`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
|
|
6667
6667
|
));
|
|
6668
6668
|
},
|
|
6669
6669
|
set({ _: e }, t, n) {
|
|
6670
6670
|
const { data: r, setupState: o, ctx: s } = e;
|
|
6671
|
-
return gl(o, t) ? (o[t] = n, !0) : N.NODE_ENV !== "production" && o.__isScriptSetup && Be(o, t) ? (
|
|
6671
|
+
return gl(o, t) ? (o[t] = n, !0) : N.NODE_ENV !== "production" && o.__isScriptSetup && Be(o, t) ? (Q(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== Ye && Be(r, t) ? (r[t] = n, !0) : Be(e.props, t) ? (N.NODE_ENV !== "production" && Q(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (N.NODE_ENV !== "production" && Q(
|
|
6672
6672
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
6673
6673
|
), !1) : (N.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
|
|
6674
6674
|
enumerable: !0,
|
|
@@ -6686,7 +6686,7 @@ const Ql = (e) => e ? up(e) ? Wu(e) : Ql(e.parent) : null, so = (
|
|
|
6686
6686
|
return n.get != null ? e._.accessCache[t] = 0 : Be(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
6687
6687
|
}
|
|
6688
6688
|
};
|
|
6689
|
-
N.NODE_ENV !== "production" && (Bh.ownKeys = (e) => (
|
|
6689
|
+
N.NODE_ENV !== "production" && (Bh.ownKeys = (e) => (Q(
|
|
6690
6690
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
6691
6691
|
), Reflect.ownKeys(e)));
|
|
6692
6692
|
function tv(e) {
|
|
@@ -6725,7 +6725,7 @@ function rv(e) {
|
|
|
6725
6725
|
Object.keys(Oe(n)).forEach((r) => {
|
|
6726
6726
|
if (!n.__isScriptSetup) {
|
|
6727
6727
|
if (ju(r[0])) {
|
|
6728
|
-
|
|
6728
|
+
Q(
|
|
6729
6729
|
`setup() return property ${JSON.stringify(
|
|
6730
6730
|
r
|
|
6731
6731
|
)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
|
|
@@ -6750,7 +6750,7 @@ function Ic(e) {
|
|
|
6750
6750
|
function ov() {
|
|
6751
6751
|
const e = /* @__PURE__ */ Object.create(null);
|
|
6752
6752
|
return (t, n) => {
|
|
6753
|
-
e[n] ?
|
|
6753
|
+
e[n] ? Q(`${t} property "${n}" is already defined in ${e[n]}.`) : e[n] = t;
|
|
6754
6754
|
};
|
|
6755
6755
|
}
|
|
6756
6756
|
let eu = !0;
|
|
@@ -6804,19 +6804,19 @@ function sv(e) {
|
|
|
6804
6804
|
configurable: !0,
|
|
6805
6805
|
enumerable: !0,
|
|
6806
6806
|
writable: !0
|
|
6807
|
-
}) : r[B] = re.bind(n), N.NODE_ENV !== "production" && C("Methods", B)) : N.NODE_ENV !== "production" &&
|
|
6807
|
+
}) : r[B] = re.bind(n), N.NODE_ENV !== "production" && C("Methods", B)) : N.NODE_ENV !== "production" && Q(
|
|
6808
6808
|
`Method "${B}" has type "${typeof re}" in the component definition. Did you reference the function correctly?`
|
|
6809
6809
|
);
|
|
6810
6810
|
}
|
|
6811
6811
|
if (o) {
|
|
6812
|
-
N.NODE_ENV !== "production" && !ke(o) &&
|
|
6812
|
+
N.NODE_ENV !== "production" && !ke(o) && Q(
|
|
6813
6813
|
"The data option must be a function. Plain object usage is no longer supported."
|
|
6814
6814
|
);
|
|
6815
6815
|
const B = o.call(n, n);
|
|
6816
|
-
if (N.NODE_ENV !== "production" && Nu(B) &&
|
|
6816
|
+
if (N.NODE_ENV !== "production" && Nu(B) && Q(
|
|
6817
6817
|
"data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."
|
|
6818
6818
|
), !He(B))
|
|
6819
|
-
N.NODE_ENV !== "production" &&
|
|
6819
|
+
N.NODE_ENV !== "production" && Q("data() should return an object.");
|
|
6820
6820
|
else if (e.data = vi(B), N.NODE_ENV !== "production")
|
|
6821
6821
|
for (const re in B)
|
|
6822
6822
|
C("Data", re), ju(re[0]) || Object.defineProperty(r, re, {
|
|
@@ -6829,12 +6829,12 @@ function sv(e) {
|
|
|
6829
6829
|
if (eu = !0, s)
|
|
6830
6830
|
for (const B in s) {
|
|
6831
6831
|
const re = s[B], be = ke(re) ? re.bind(n, n) : ke(re.get) ? re.get.bind(n, n) : vt;
|
|
6832
|
-
N.NODE_ENV !== "production" && be === vt &&
|
|
6832
|
+
N.NODE_ENV !== "production" && be === vt && Q(`Computed property "${B}" has no getter.`);
|
|
6833
6833
|
const ce = !ke(re) && ke(re.set) ? re.set.bind(n) : N.NODE_ENV !== "production" ? () => {
|
|
6834
|
-
|
|
6834
|
+
Q(
|
|
6835
6835
|
`Write operation failed: computed property "${B}" is readonly.`
|
|
6836
6836
|
);
|
|
6837
|
-
} : vt, he =
|
|
6837
|
+
} : vt, he = K({
|
|
6838
6838
|
get: be,
|
|
6839
6839
|
set: ce
|
|
6840
6840
|
});
|
|
@@ -6879,7 +6879,7 @@ function iv(e, t, n = vt) {
|
|
|
6879
6879
|
o.from || r,
|
|
6880
6880
|
o.default,
|
|
6881
6881
|
!0
|
|
6882
|
-
) : s = me(o.from || r) : s = me(o),
|
|
6882
|
+
) : s = me(o.from || r) : s = me(o), et(s) ? Object.defineProperty(t, r, {
|
|
6883
6883
|
enumerable: !0,
|
|
6884
6884
|
configurable: !0,
|
|
6885
6885
|
get: () => s.value,
|
|
@@ -6898,7 +6898,7 @@ function Fh(e, t, n, r) {
|
|
|
6898
6898
|
let o = r.includes(".") ? ep(n, r) : () => n[r];
|
|
6899
6899
|
if (ot(e)) {
|
|
6900
6900
|
const s = t[e];
|
|
6901
|
-
ke(s) ? Ke(o, s) : N.NODE_ENV !== "production" &&
|
|
6901
|
+
ke(s) ? Ke(o, s) : N.NODE_ENV !== "production" && Q(`Invalid watch handler specified by key "${e}"`, s);
|
|
6902
6902
|
} else if (ke(e))
|
|
6903
6903
|
Ke(o, e.bind(n));
|
|
6904
6904
|
else if (He(e))
|
|
@@ -6906,9 +6906,9 @@ function Fh(e, t, n, r) {
|
|
|
6906
6906
|
e.forEach((s) => Fh(s, t, n, r));
|
|
6907
6907
|
else {
|
|
6908
6908
|
const s = ke(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
6909
|
-
ke(s) ? Ke(o, s, e) : N.NODE_ENV !== "production" &&
|
|
6909
|
+
ke(s) ? Ke(o, s, e) : N.NODE_ENV !== "production" && Q(`Invalid watch handler specified by key "${e.handler}"`, s);
|
|
6910
6910
|
}
|
|
6911
|
-
else N.NODE_ENV !== "production" &&
|
|
6911
|
+
else N.NODE_ENV !== "production" && Q(`Invalid watch option: "${r}"`, e);
|
|
6912
6912
|
}
|
|
6913
6913
|
function zh(e) {
|
|
6914
6914
|
const t = e.type, { mixins: n, extends: r } = t, {
|
|
@@ -6928,7 +6928,7 @@ function ka(e, t, n, r = !1) {
|
|
|
6928
6928
|
);
|
|
6929
6929
|
for (const i in t)
|
|
6930
6930
|
if (r && i === "expose")
|
|
6931
|
-
N.NODE_ENV !== "production" &&
|
|
6931
|
+
N.NODE_ENV !== "production" && Q(
|
|
6932
6932
|
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
6933
6933
|
);
|
|
6934
6934
|
else {
|
|
@@ -7033,7 +7033,7 @@ function Hh() {
|
|
|
7033
7033
|
let cv = 0;
|
|
7034
7034
|
function dv(e, t) {
|
|
7035
7035
|
return function(r, o = null) {
|
|
7036
|
-
ke(r) || (r = at({}, r)), o != null && !He(o) && (N.NODE_ENV !== "production" &&
|
|
7036
|
+
ke(r) || (r = at({}, r)), o != null && !He(o) && (N.NODE_ENV !== "production" && Q("root props passed to app.mount() must be an object."), o = null);
|
|
7037
7037
|
const s = Hh(), i = /* @__PURE__ */ new WeakSet(), a = [];
|
|
7038
7038
|
let l = !1;
|
|
7039
7039
|
const u = s.app = {
|
|
@@ -7048,33 +7048,33 @@ function dv(e, t) {
|
|
|
7048
7048
|
return s.config;
|
|
7049
7049
|
},
|
|
7050
7050
|
set config(c) {
|
|
7051
|
-
N.NODE_ENV !== "production" &&
|
|
7051
|
+
N.NODE_ENV !== "production" && Q(
|
|
7052
7052
|
"app.config cannot be replaced. Modify individual options instead."
|
|
7053
7053
|
);
|
|
7054
7054
|
},
|
|
7055
7055
|
use(c, ...d) {
|
|
7056
|
-
return i.has(c) ? N.NODE_ENV !== "production" &&
|
|
7056
|
+
return i.has(c) ? N.NODE_ENV !== "production" && Q("Plugin has already been applied to target app.") : c && ke(c.install) ? (i.add(c), c.install(u, ...d)) : ke(c) ? (i.add(c), c(u, ...d)) : N.NODE_ENV !== "production" && Q(
|
|
7057
7057
|
'A plugin must either be a function or an object with an "install" function.'
|
|
7058
7058
|
), u;
|
|
7059
7059
|
},
|
|
7060
7060
|
mixin(c) {
|
|
7061
|
-
return s.mixins.includes(c) ? N.NODE_ENV !== "production" &&
|
|
7061
|
+
return s.mixins.includes(c) ? N.NODE_ENV !== "production" && Q(
|
|
7062
7062
|
"Mixin has already been applied to target app" + (c.name ? `: ${c.name}` : "")
|
|
7063
7063
|
) : s.mixins.push(c), u;
|
|
7064
7064
|
},
|
|
7065
7065
|
component(c, d) {
|
|
7066
|
-
return N.NODE_ENV !== "production" && iu(c, s.config), d ? (N.NODE_ENV !== "production" && s.components[c] &&
|
|
7066
|
+
return N.NODE_ENV !== "production" && iu(c, s.config), d ? (N.NODE_ENV !== "production" && s.components[c] && Q(`Component "${c}" has already been registered in target app.`), s.components[c] = d, u) : s.components[c];
|
|
7067
7067
|
},
|
|
7068
7068
|
directive(c, d) {
|
|
7069
|
-
return N.NODE_ENV !== "production" && Ch(c), d ? (N.NODE_ENV !== "production" && s.directives[c] &&
|
|
7069
|
+
return N.NODE_ENV !== "production" && Ch(c), d ? (N.NODE_ENV !== "production" && s.directives[c] && Q(`Directive "${c}" has already been registered in target app.`), s.directives[c] = d, u) : s.directives[c];
|
|
7070
7070
|
},
|
|
7071
7071
|
mount(c, d, f) {
|
|
7072
7072
|
if (l)
|
|
7073
|
-
N.NODE_ENV !== "production" &&
|
|
7073
|
+
N.NODE_ENV !== "production" && Q(
|
|
7074
7074
|
"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)`"
|
|
7075
7075
|
);
|
|
7076
7076
|
else {
|
|
7077
|
-
N.NODE_ENV !== "production" && c.__vue_app__ &&
|
|
7077
|
+
N.NODE_ENV !== "production" && c.__vue_app__ && Q(
|
|
7078
7078
|
"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."
|
|
7079
7079
|
);
|
|
7080
7080
|
const h = u._ceVNode || E(r, o);
|
|
@@ -7085,7 +7085,7 @@ function dv(e, t) {
|
|
|
7085
7085
|
}
|
|
7086
7086
|
},
|
|
7087
7087
|
onUnmount(c) {
|
|
7088
|
-
N.NODE_ENV !== "production" && typeof c != "function" &&
|
|
7088
|
+
N.NODE_ENV !== "production" && typeof c != "function" && Q(
|
|
7089
7089
|
`Expected function as first argument to app.onUnmount(), but got ${typeof c}`
|
|
7090
7090
|
), a.push(c);
|
|
7091
7091
|
},
|
|
@@ -7094,12 +7094,12 @@ function dv(e, t) {
|
|
|
7094
7094
|
a,
|
|
7095
7095
|
u._instance,
|
|
7096
7096
|
16
|
|
7097
|
-
), e(null, u._container), N.NODE_ENV !== "production" && (u._instance = null, Tg(u)), delete u._container.__vue_app__) : N.NODE_ENV !== "production" &&
|
|
7097
|
+
), e(null, u._container), N.NODE_ENV !== "production" && (u._instance = null, Tg(u)), delete u._container.__vue_app__) : N.NODE_ENV !== "production" && Q("Cannot unmount an app that is not mounted.");
|
|
7098
7098
|
},
|
|
7099
7099
|
provide(c, d) {
|
|
7100
|
-
return N.NODE_ENV !== "production" && c in s.provides && (Be(s.provides, c) ?
|
|
7100
|
+
return N.NODE_ENV !== "production" && c in s.provides && (Be(s.provides, c) ? Q(
|
|
7101
7101
|
`App already provides property with key "${String(c)}". It will be overwritten with the new value.`
|
|
7102
|
-
) :
|
|
7102
|
+
) : Q(
|
|
7103
7103
|
`App already provides property with key "${String(c)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
7104
7104
|
)), s.provides[c] = d, u;
|
|
7105
7105
|
},
|
|
@@ -7119,7 +7119,7 @@ function dv(e, t) {
|
|
|
7119
7119
|
let io = null;
|
|
7120
7120
|
function Yt(e, t) {
|
|
7121
7121
|
if (!mt)
|
|
7122
|
-
N.NODE_ENV !== "production" &&
|
|
7122
|
+
N.NODE_ENV !== "production" && Q("provide() can only be used inside setup().");
|
|
7123
7123
|
else {
|
|
7124
7124
|
let n = mt.provides;
|
|
7125
7125
|
const r = mt.parent && mt.parent.provides;
|
|
@@ -7134,8 +7134,8 @@ function me(e, t, n = !1) {
|
|
|
7134
7134
|
return o[e];
|
|
7135
7135
|
if (arguments.length > 1)
|
|
7136
7136
|
return n && ke(t) ? t.call(r && r.proxy) : t;
|
|
7137
|
-
N.NODE_ENV !== "production" &&
|
|
7138
|
-
} else N.NODE_ENV !== "production" &&
|
|
7137
|
+
N.NODE_ENV !== "production" && Q(`injection "${String(e)}" not found.`);
|
|
7138
|
+
} else N.NODE_ENV !== "production" && Q("inject() can only be used inside setup() or functional components.");
|
|
7139
7139
|
}
|
|
7140
7140
|
function fv() {
|
|
7141
7141
|
return !!(mt || bt || io);
|
|
@@ -7292,12 +7292,12 @@ function Gh(e, t, n = !1) {
|
|
|
7292
7292
|
return He(e) && r.set(e, Bo), Bo;
|
|
7293
7293
|
if (ye(s))
|
|
7294
7294
|
for (let c = 0; c < s.length; c++) {
|
|
7295
|
-
N.NODE_ENV !== "production" && !ot(s[c]) &&
|
|
7295
|
+
N.NODE_ENV !== "production" && !ot(s[c]) && Q("props must be strings when using array syntax.", s[c]);
|
|
7296
7296
|
const d = Ut(s[c]);
|
|
7297
7297
|
Lc(d) && (i[d] = Ye);
|
|
7298
7298
|
}
|
|
7299
7299
|
else if (s) {
|
|
7300
|
-
N.NODE_ENV !== "production" && !He(s) &&
|
|
7300
|
+
N.NODE_ENV !== "production" && !He(s) && Q("invalid props options", s);
|
|
7301
7301
|
for (const c in s) {
|
|
7302
7302
|
const d = Ut(c);
|
|
7303
7303
|
if (Lc(d)) {
|
|
@@ -7327,7 +7327,7 @@ function Gh(e, t, n = !1) {
|
|
|
7327
7327
|
return He(e) && r.set(e, u), u;
|
|
7328
7328
|
}
|
|
7329
7329
|
function Lc(e) {
|
|
7330
|
-
return e[0] !== "$" && !$s(e) ? !0 : (N.NODE_ENV !== "production" &&
|
|
7330
|
+
return e[0] !== "$" && !$s(e) ? !0 : (N.NODE_ENV !== "production" && Q(`Invalid prop name: "${e}" is a reserved property.`), !1);
|
|
7331
7331
|
}
|
|
7332
7332
|
function gv(e) {
|
|
7333
7333
|
return e === null ? "null" : typeof e == "function" ? e.name || "" : typeof e == "object" && e.constructor && e.constructor.name || "";
|
|
@@ -7348,7 +7348,7 @@ function Kh(e, t, n) {
|
|
|
7348
7348
|
function vv(e, t, n, r, o) {
|
|
7349
7349
|
const { type: s, required: i, validator: a, skipCheck: l } = n;
|
|
7350
7350
|
if (i && o) {
|
|
7351
|
-
|
|
7351
|
+
Q('Missing required prop: "' + e + '"');
|
|
7352
7352
|
return;
|
|
7353
7353
|
}
|
|
7354
7354
|
if (!(t == null && !i)) {
|
|
@@ -7360,11 +7360,11 @@ function vv(e, t, n, r, o) {
|
|
|
7360
7360
|
d.push(p || ""), u = h;
|
|
7361
7361
|
}
|
|
7362
7362
|
if (!u) {
|
|
7363
|
-
|
|
7363
|
+
Q(wv(e, t, d));
|
|
7364
7364
|
return;
|
|
7365
7365
|
}
|
|
7366
7366
|
}
|
|
7367
|
-
a && !a(t, r) &&
|
|
7367
|
+
a && !a(t, r) && Q('Invalid prop: custom validator check failed for prop "' + e + '".');
|
|
7368
7368
|
}
|
|
7369
7369
|
}
|
|
7370
7370
|
const yv = /* @__PURE__ */ lr(
|
|
@@ -7403,7 +7403,7 @@ function Ev(...e) {
|
|
|
7403
7403
|
const Uu = (e) => e[0] === "_" || e === "$stable", Bu = (e) => ye(e) ? e.map(fn) : [fn(e)], kv = (e, t, n) => {
|
|
7404
7404
|
if (t._n)
|
|
7405
7405
|
return t;
|
|
7406
|
-
const r = x((...o) => (N.NODE_ENV !== "production" && mt && !(n === null && bt) && !(n && n.root !== mt.root) &&
|
|
7406
|
+
const r = x((...o) => (N.NODE_ENV !== "production" && mt && !(n === null && bt) && !(n && n.root !== mt.root) && Q(
|
|
7407
7407
|
`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
7408
7408
|
), Bu(t(...o))), n);
|
|
7409
7409
|
return r._c = !1, r;
|
|
@@ -7415,7 +7415,7 @@ const Uu = (e) => e[0] === "_" || e === "$stable", Bu = (e) => ye(e) ? e.map(fn)
|
|
|
7415
7415
|
if (ke(s))
|
|
7416
7416
|
t[o] = kv(o, s, r);
|
|
7417
7417
|
else if (s != null) {
|
|
7418
|
-
N.NODE_ENV !== "production" &&
|
|
7418
|
+
N.NODE_ENV !== "production" && Q(
|
|
7419
7419
|
`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`
|
|
7420
7420
|
);
|
|
7421
7421
|
const i = Bu(s);
|
|
@@ -7423,7 +7423,7 @@ const Uu = (e) => e[0] === "_" || e === "$stable", Bu = (e) => ye(e) ? e.map(fn)
|
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
7425
|
}, Jh = (e, t) => {
|
|
7426
|
-
N.NODE_ENV !== "production" && !wi(e.vnode) &&
|
|
7426
|
+
N.NODE_ENV !== "production" && !wi(e.vnode) && Q(
|
|
7427
7427
|
"Non-function value encountered for default slot. Prefer function slots for better performance."
|
|
7428
7428
|
);
|
|
7429
7429
|
const n = Bu(t);
|
|
@@ -7500,124 +7500,124 @@ function Nv(e, t) {
|
|
|
7500
7500
|
nextSibling: f,
|
|
7501
7501
|
setScopeId: h = vt,
|
|
7502
7502
|
insertStaticContent: p
|
|
7503
|
-
} = e, v = (w, S, z,
|
|
7503
|
+
} = e, v = (w, S, z, X = null, Z = null, Y = null, le = void 0, se = null, oe = N.NODE_ENV !== "production" && mn ? !1 : !!S.dynamicChildren) => {
|
|
7504
7504
|
if (w === S)
|
|
7505
7505
|
return;
|
|
7506
|
-
w && !Kr(w, S) && (
|
|
7507
|
-
const { type:
|
|
7508
|
-
switch (
|
|
7506
|
+
w && !Kr(w, S) && (X = Pi(w), Te(w, Z, Y, !0), w = null), S.patchFlag === -2 && (oe = !1, S.dynamicChildren = null);
|
|
7507
|
+
const { type: J, ref: Ee, shapeFlag: ue } = S;
|
|
7508
|
+
switch (J) {
|
|
7509
7509
|
case Ei:
|
|
7510
|
-
_(w, S, z,
|
|
7510
|
+
_(w, S, z, X);
|
|
7511
7511
|
break;
|
|
7512
7512
|
case dt:
|
|
7513
|
-
k(w, S, z,
|
|
7513
|
+
k(w, S, z, X);
|
|
7514
7514
|
break;
|
|
7515
7515
|
case Vs:
|
|
7516
|
-
w == null ? R(S, z,
|
|
7516
|
+
w == null ? R(S, z, X, le) : N.NODE_ENV !== "production" && W(w, S, z, le);
|
|
7517
7517
|
break;
|
|
7518
7518
|
case ge:
|
|
7519
7519
|
ie(
|
|
7520
7520
|
w,
|
|
7521
7521
|
S,
|
|
7522
7522
|
z,
|
|
7523
|
-
|
|
7523
|
+
X,
|
|
7524
7524
|
Z,
|
|
7525
7525
|
Y,
|
|
7526
|
-
|
|
7526
|
+
le,
|
|
7527
7527
|
se,
|
|
7528
7528
|
oe
|
|
7529
7529
|
);
|
|
7530
7530
|
break;
|
|
7531
7531
|
default:
|
|
7532
|
-
|
|
7532
|
+
ue & 1 ? I(
|
|
7533
7533
|
w,
|
|
7534
7534
|
S,
|
|
7535
7535
|
z,
|
|
7536
|
-
|
|
7536
|
+
X,
|
|
7537
7537
|
Z,
|
|
7538
7538
|
Y,
|
|
7539
|
-
|
|
7539
|
+
le,
|
|
7540
7540
|
se,
|
|
7541
7541
|
oe
|
|
7542
|
-
) :
|
|
7542
|
+
) : ue & 6 ? xe(
|
|
7543
7543
|
w,
|
|
7544
7544
|
S,
|
|
7545
7545
|
z,
|
|
7546
|
-
|
|
7546
|
+
X,
|
|
7547
7547
|
Z,
|
|
7548
7548
|
Y,
|
|
7549
|
-
|
|
7549
|
+
le,
|
|
7550
7550
|
se,
|
|
7551
7551
|
oe
|
|
7552
|
-
) :
|
|
7552
|
+
) : ue & 64 || ue & 128 ? J.process(
|
|
7553
7553
|
w,
|
|
7554
7554
|
S,
|
|
7555
7555
|
z,
|
|
7556
|
-
|
|
7556
|
+
X,
|
|
7557
7557
|
Z,
|
|
7558
7558
|
Y,
|
|
7559
|
-
|
|
7559
|
+
le,
|
|
7560
7560
|
se,
|
|
7561
7561
|
oe,
|
|
7562
7562
|
cs
|
|
7563
|
-
) : N.NODE_ENV !== "production" &&
|
|
7563
|
+
) : N.NODE_ENV !== "production" && Q("Invalid VNode type:", J, `(${typeof J})`);
|
|
7564
7564
|
}
|
|
7565
7565
|
Ee != null && Z ? Is(Ee, w && w.ref, Y, S || w, !S) : Ee == null && w && w.ref != null && Is(w.ref, null, Y, w, !0);
|
|
7566
|
-
}, _ = (w, S, z,
|
|
7566
|
+
}, _ = (w, S, z, X) => {
|
|
7567
7567
|
if (w == null)
|
|
7568
7568
|
r(
|
|
7569
7569
|
S.el = a(S.children),
|
|
7570
7570
|
z,
|
|
7571
|
-
|
|
7571
|
+
X
|
|
7572
7572
|
);
|
|
7573
7573
|
else {
|
|
7574
7574
|
const Z = S.el = w.el;
|
|
7575
7575
|
S.children !== w.children && u(Z, S.children);
|
|
7576
7576
|
}
|
|
7577
|
-
}, k = (w, S, z,
|
|
7577
|
+
}, k = (w, S, z, X) => {
|
|
7578
7578
|
w == null ? r(
|
|
7579
7579
|
S.el = l(S.children || ""),
|
|
7580
7580
|
z,
|
|
7581
|
-
|
|
7581
|
+
X
|
|
7582
7582
|
) : S.el = w.el;
|
|
7583
|
-
}, R = (w, S, z,
|
|
7583
|
+
}, R = (w, S, z, X) => {
|
|
7584
7584
|
[w.el, w.anchor] = p(
|
|
7585
7585
|
w.children,
|
|
7586
7586
|
S,
|
|
7587
7587
|
z,
|
|
7588
|
-
|
|
7588
|
+
X,
|
|
7589
7589
|
w.el,
|
|
7590
7590
|
w.anchor
|
|
7591
7591
|
);
|
|
7592
|
-
}, W = (w, S, z,
|
|
7592
|
+
}, W = (w, S, z, X) => {
|
|
7593
7593
|
if (S.children !== w.children) {
|
|
7594
7594
|
const Z = f(w.anchor);
|
|
7595
7595
|
F(w), [S.el, S.anchor] = p(
|
|
7596
7596
|
S.children,
|
|
7597
7597
|
z,
|
|
7598
7598
|
Z,
|
|
7599
|
-
|
|
7599
|
+
X
|
|
7600
7600
|
);
|
|
7601
7601
|
} else
|
|
7602
7602
|
S.el = w.el, S.anchor = w.anchor;
|
|
7603
|
-
}, U = ({ el: w, anchor: S }, z,
|
|
7603
|
+
}, U = ({ el: w, anchor: S }, z, X) => {
|
|
7604
7604
|
let Z;
|
|
7605
7605
|
for (; w && w !== S; )
|
|
7606
|
-
Z = f(w), r(w, z,
|
|
7607
|
-
r(S, z,
|
|
7606
|
+
Z = f(w), r(w, z, X), w = Z;
|
|
7607
|
+
r(S, z, X);
|
|
7608
7608
|
}, F = ({ el: w, anchor: S }) => {
|
|
7609
7609
|
let z;
|
|
7610
7610
|
for (; w && w !== S; )
|
|
7611
7611
|
z = f(w), o(w), w = z;
|
|
7612
7612
|
o(S);
|
|
7613
|
-
}, I = (w, S, z,
|
|
7614
|
-
S.type === "svg" ?
|
|
7613
|
+
}, I = (w, S, z, X, Z, Y, le, se, oe) => {
|
|
7614
|
+
S.type === "svg" ? le = "svg" : S.type === "math" && (le = "mathml"), w == null ? y(
|
|
7615
7615
|
S,
|
|
7616
7616
|
z,
|
|
7617
|
-
|
|
7617
|
+
X,
|
|
7618
7618
|
Z,
|
|
7619
7619
|
Y,
|
|
7620
|
-
|
|
7620
|
+
le,
|
|
7621
7621
|
se,
|
|
7622
7622
|
oe
|
|
7623
7623
|
) : A(
|
|
@@ -7625,119 +7625,119 @@ function Nv(e, t) {
|
|
|
7625
7625
|
S,
|
|
7626
7626
|
Z,
|
|
7627
7627
|
Y,
|
|
7628
|
-
|
|
7628
|
+
le,
|
|
7629
7629
|
se,
|
|
7630
7630
|
oe
|
|
7631
7631
|
);
|
|
7632
|
-
}, y = (w, S, z,
|
|
7633
|
-
let oe,
|
|
7634
|
-
const { props: Ee, shapeFlag:
|
|
7632
|
+
}, y = (w, S, z, X, Z, Y, le, se) => {
|
|
7633
|
+
let oe, J;
|
|
7634
|
+
const { props: Ee, shapeFlag: ue, transition: _e, dirs: Ne } = w;
|
|
7635
7635
|
if (oe = w.el = i(
|
|
7636
7636
|
w.type,
|
|
7637
7637
|
Y,
|
|
7638
7638
|
Ee && Ee.is,
|
|
7639
7639
|
Ee
|
|
7640
|
-
),
|
|
7640
|
+
), ue & 8 ? c(oe, w.children) : ue & 16 && D(
|
|
7641
7641
|
w.children,
|
|
7642
7642
|
oe,
|
|
7643
7643
|
null,
|
|
7644
|
-
|
|
7644
|
+
X,
|
|
7645
7645
|
Z,
|
|
7646
7646
|
vl(w, Y),
|
|
7647
|
-
|
|
7647
|
+
le,
|
|
7648
7648
|
se
|
|
7649
|
-
), Ne && Br(w, null,
|
|
7650
|
-
for (const
|
|
7651
|
-
|
|
7652
|
-
"value" in Ee && s(oe, "value", null, Ee.value, Y), (
|
|
7649
|
+
), Ne && Br(w, null, X, "created"), P(oe, w, w.scopeId, le, X), Ee) {
|
|
7650
|
+
for (const tt in Ee)
|
|
7651
|
+
tt !== "value" && !$s(tt) && s(oe, tt, null, Ee[tt], Y, X);
|
|
7652
|
+
"value" in Ee && s(oe, "value", null, Ee.value, Y), (J = Ee.onVnodeBeforeMount) && $n(J, X, w);
|
|
7653
7653
|
}
|
|
7654
|
-
N.NODE_ENV !== "production" && (Qs(oe, "__vnode", w, !0), Qs(oe, "__vueParentComponent",
|
|
7654
|
+
N.NODE_ENV !== "production" && (Qs(oe, "__vnode", w, !0), Qs(oe, "__vueParentComponent", X, !0)), Ne && Br(w, null, X, "beforeMount");
|
|
7655
7655
|
const Ue = Pv(Z, _e);
|
|
7656
|
-
Ue && _e.beforeEnter(oe), r(oe, S, z), ((
|
|
7657
|
-
|
|
7656
|
+
Ue && _e.beforeEnter(oe), r(oe, S, z), ((J = Ee && Ee.onVnodeMounted) || Ue || Ne) && Rt(() => {
|
|
7657
|
+
J && $n(J, X, w), Ue && _e.enter(oe), Ne && Br(w, null, X, "mounted");
|
|
7658
7658
|
}, Z);
|
|
7659
|
-
}, P = (w, S, z,
|
|
7660
|
-
if (z && h(w, z),
|
|
7661
|
-
for (let Y = 0; Y <
|
|
7662
|
-
h(w,
|
|
7659
|
+
}, P = (w, S, z, X, Z) => {
|
|
7660
|
+
if (z && h(w, z), X)
|
|
7661
|
+
for (let Y = 0; Y < X.length; Y++)
|
|
7662
|
+
h(w, X[Y]);
|
|
7663
7663
|
if (Z) {
|
|
7664
7664
|
let Y = Z.subTree;
|
|
7665
7665
|
if (N.NODE_ENV !== "production" && Y.patchFlag > 0 && Y.patchFlag & 2048 && (Y = zu(Y.children) || Y), S === Y || rp(Y.type) && (Y.ssContent === S || Y.ssFallback === S)) {
|
|
7666
|
-
const
|
|
7666
|
+
const le = Z.vnode;
|
|
7667
7667
|
P(
|
|
7668
7668
|
w,
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7669
|
+
le,
|
|
7670
|
+
le.scopeId,
|
|
7671
|
+
le.slotScopeIds,
|
|
7672
7672
|
Z.parent
|
|
7673
7673
|
);
|
|
7674
7674
|
}
|
|
7675
7675
|
}
|
|
7676
|
-
}, D = (w, S, z,
|
|
7677
|
-
for (let
|
|
7678
|
-
const Ee = w[
|
|
7676
|
+
}, D = (w, S, z, X, Z, Y, le, se, oe = 0) => {
|
|
7677
|
+
for (let J = oe; J < w.length; J++) {
|
|
7678
|
+
const Ee = w[J] = se ? _r(w[J]) : fn(w[J]);
|
|
7679
7679
|
v(
|
|
7680
7680
|
null,
|
|
7681
7681
|
Ee,
|
|
7682
7682
|
S,
|
|
7683
7683
|
z,
|
|
7684
|
-
|
|
7684
|
+
X,
|
|
7685
7685
|
Z,
|
|
7686
7686
|
Y,
|
|
7687
|
-
|
|
7687
|
+
le,
|
|
7688
7688
|
se
|
|
7689
7689
|
);
|
|
7690
7690
|
}
|
|
7691
|
-
}, A = (w, S, z,
|
|
7691
|
+
}, A = (w, S, z, X, Z, Y, le) => {
|
|
7692
7692
|
const se = S.el = w.el;
|
|
7693
7693
|
N.NODE_ENV !== "production" && (se.__vnode = S);
|
|
7694
|
-
let { patchFlag: oe, dynamicChildren:
|
|
7694
|
+
let { patchFlag: oe, dynamicChildren: J, dirs: Ee } = S;
|
|
7695
7695
|
oe |= w.patchFlag & 16;
|
|
7696
|
-
const
|
|
7696
|
+
const ue = w.props || Ye, _e = S.props || Ye;
|
|
7697
7697
|
let Ne;
|
|
7698
|
-
if (z && Fr(z, !1), (Ne = _e.onVnodeBeforeUpdate) && $n(Ne, z, S, w), Ee && Br(S, w, z, "beforeUpdate"), z && Fr(z, !0), N.NODE_ENV !== "production" && mn && (oe = 0,
|
|
7698
|
+
if (z && Fr(z, !1), (Ne = _e.onVnodeBeforeUpdate) && $n(Ne, z, S, w), Ee && Br(S, w, z, "beforeUpdate"), z && Fr(z, !0), N.NODE_ENV !== "production" && mn && (oe = 0, le = !1, J = null), (ue.innerHTML && _e.innerHTML == null || ue.textContent && _e.textContent == null) && c(se, ""), J ? (T(
|
|
7699
7699
|
w.dynamicChildren,
|
|
7700
|
-
|
|
7700
|
+
J,
|
|
7701
7701
|
se,
|
|
7702
7702
|
z,
|
|
7703
|
-
|
|
7703
|
+
X,
|
|
7704
7704
|
vl(S, Z),
|
|
7705
7705
|
Y
|
|
7706
|
-
), N.NODE_ENV !== "production" && Ms(w, S)) :
|
|
7706
|
+
), N.NODE_ENV !== "production" && Ms(w, S)) : le || be(
|
|
7707
7707
|
w,
|
|
7708
7708
|
S,
|
|
7709
7709
|
se,
|
|
7710
7710
|
null,
|
|
7711
7711
|
z,
|
|
7712
|
-
|
|
7712
|
+
X,
|
|
7713
7713
|
vl(S, Z),
|
|
7714
7714
|
Y,
|
|
7715
7715
|
!1
|
|
7716
7716
|
), oe > 0) {
|
|
7717
7717
|
if (oe & 16)
|
|
7718
|
-
V(se,
|
|
7719
|
-
else if (oe & 2 &&
|
|
7718
|
+
V(se, ue, _e, z, Z);
|
|
7719
|
+
else if (oe & 2 && ue.class !== _e.class && s(se, "class", null, _e.class, Z), oe & 4 && s(se, "style", ue.style, _e.style, Z), oe & 8) {
|
|
7720
7720
|
const Ue = S.dynamicProps;
|
|
7721
|
-
for (let
|
|
7722
|
-
const We = Ue[
|
|
7721
|
+
for (let tt = 0; tt < Ue.length; tt++) {
|
|
7722
|
+
const We = Ue[tt], qt = ue[We], Wt = _e[We];
|
|
7723
7723
|
(Wt !== qt || We === "value") && s(se, We, qt, Wt, Z, z);
|
|
7724
7724
|
}
|
|
7725
7725
|
}
|
|
7726
7726
|
oe & 1 && w.children !== S.children && c(se, S.children);
|
|
7727
|
-
} else !
|
|
7727
|
+
} else !le && J == null && V(se, ue, _e, z, Z);
|
|
7728
7728
|
((Ne = _e.onVnodeUpdated) || Ee) && Rt(() => {
|
|
7729
7729
|
Ne && $n(Ne, z, S, w), Ee && Br(S, w, z, "updated");
|
|
7730
|
-
},
|
|
7731
|
-
}, T = (w, S, z,
|
|
7730
|
+
}, X);
|
|
7731
|
+
}, T = (w, S, z, X, Z, Y, le) => {
|
|
7732
7732
|
for (let se = 0; se < S.length; se++) {
|
|
7733
|
-
const oe = w[se],
|
|
7733
|
+
const oe = w[se], J = S[se], Ee = (
|
|
7734
7734
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
7735
7735
|
// which will not have a mounted element
|
|
7736
7736
|
oe.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
7737
7737
|
// of the Fragment itself so it can move its children.
|
|
7738
7738
|
(oe.type === ge || // - In the case of different nodes, there is going to be a replacement
|
|
7739
7739
|
// which also requires the correct parent container
|
|
7740
|
-
!Kr(oe,
|
|
7740
|
+
!Kr(oe, J) || // - In the case of a component, it could contain anything.
|
|
7741
7741
|
oe.shapeFlag & 198) ? d(oe.el) : (
|
|
7742
7742
|
// In other cases, the parent container is not actually used so we
|
|
7743
7743
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
@@ -7746,17 +7746,17 @@ function Nv(e, t) {
|
|
|
7746
7746
|
);
|
|
7747
7747
|
v(
|
|
7748
7748
|
oe,
|
|
7749
|
-
|
|
7749
|
+
J,
|
|
7750
7750
|
Ee,
|
|
7751
7751
|
null,
|
|
7752
|
-
|
|
7752
|
+
X,
|
|
7753
7753
|
Z,
|
|
7754
7754
|
Y,
|
|
7755
|
-
|
|
7755
|
+
le,
|
|
7756
7756
|
!0
|
|
7757
7757
|
);
|
|
7758
7758
|
}
|
|
7759
|
-
}, V = (w, S, z,
|
|
7759
|
+
}, V = (w, S, z, X, Z) => {
|
|
7760
7760
|
if (S !== z) {
|
|
7761
7761
|
if (S !== Ye)
|
|
7762
7762
|
for (const Y in S)
|
|
@@ -7766,20 +7766,20 @@ function Nv(e, t) {
|
|
|
7766
7766
|
S[Y],
|
|
7767
7767
|
null,
|
|
7768
7768
|
Z,
|
|
7769
|
-
|
|
7769
|
+
X
|
|
7770
7770
|
);
|
|
7771
7771
|
for (const Y in z) {
|
|
7772
7772
|
if ($s(Y)) continue;
|
|
7773
|
-
const
|
|
7774
|
-
|
|
7773
|
+
const le = z[Y], se = S[Y];
|
|
7774
|
+
le !== se && Y !== "value" && s(w, Y, se, le, Z, X);
|
|
7775
7775
|
}
|
|
7776
7776
|
"value" in z && s(w, "value", S.value, z.value, Z);
|
|
7777
7777
|
}
|
|
7778
|
-
}, ie = (w, S, z,
|
|
7779
|
-
const
|
|
7780
|
-
let { patchFlag:
|
|
7778
|
+
}, ie = (w, S, z, X, Z, Y, le, se, oe) => {
|
|
7779
|
+
const J = S.el = w ? w.el : a(""), Ee = S.anchor = w ? w.anchor : a("");
|
|
7780
|
+
let { patchFlag: ue, dynamicChildren: _e, slotScopeIds: Ne } = S;
|
|
7781
7781
|
N.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
7782
|
-
(mn ||
|
|
7782
|
+
(mn || ue & 2048) && (ue = 0, oe = !1, _e = null), Ne && (se = se ? se.concat(Ne) : Ne), w == null ? (r(J, z, X), r(Ee, z, X), D(
|
|
7783
7783
|
// #10007
|
|
7784
7784
|
// such fragment like `<></>` will be compiled into
|
|
7785
7785
|
// a fragment which doesn't have a children.
|
|
@@ -7789,10 +7789,10 @@ function Nv(e, t) {
|
|
|
7789
7789
|
Ee,
|
|
7790
7790
|
Z,
|
|
7791
7791
|
Y,
|
|
7792
|
-
|
|
7792
|
+
le,
|
|
7793
7793
|
se,
|
|
7794
7794
|
oe
|
|
7795
|
-
)) :
|
|
7795
|
+
)) : ue > 0 && ue & 64 && _e && // #2715 the previous fragment could've been a BAILed one as a result
|
|
7796
7796
|
// of renderSlot() with no valid children
|
|
7797
7797
|
w.dynamicChildren ? (T(
|
|
7798
7798
|
w.dynamicChildren,
|
|
@@ -7800,7 +7800,7 @@ function Nv(e, t) {
|
|
|
7800
7800
|
z,
|
|
7801
7801
|
Z,
|
|
7802
7802
|
Y,
|
|
7803
|
-
|
|
7803
|
+
le,
|
|
7804
7804
|
se
|
|
7805
7805
|
), N.NODE_ENV !== "production" ? Ms(w, S) : (
|
|
7806
7806
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
@@ -7820,34 +7820,34 @@ function Nv(e, t) {
|
|
|
7820
7820
|
Ee,
|
|
7821
7821
|
Z,
|
|
7822
7822
|
Y,
|
|
7823
|
-
|
|
7823
|
+
le,
|
|
7824
7824
|
se,
|
|
7825
7825
|
oe
|
|
7826
7826
|
);
|
|
7827
|
-
}, xe = (w, S, z,
|
|
7827
|
+
}, xe = (w, S, z, X, Z, Y, le, se, oe) => {
|
|
7828
7828
|
S.slotScopeIds = se, w == null ? S.shapeFlag & 512 ? Z.ctx.activate(
|
|
7829
7829
|
S,
|
|
7830
7830
|
z,
|
|
7831
|
-
|
|
7832
|
-
|
|
7831
|
+
X,
|
|
7832
|
+
le,
|
|
7833
7833
|
oe
|
|
7834
7834
|
) : C(
|
|
7835
7835
|
S,
|
|
7836
7836
|
z,
|
|
7837
|
-
|
|
7837
|
+
X,
|
|
7838
7838
|
Z,
|
|
7839
7839
|
Y,
|
|
7840
|
-
|
|
7840
|
+
le,
|
|
7841
7841
|
oe
|
|
7842
7842
|
) : H(w, S, oe);
|
|
7843
|
-
}, C = (w, S, z,
|
|
7843
|
+
}, C = (w, S, z, X, Z, Y, le) => {
|
|
7844
7844
|
const se = w.component = Wv(
|
|
7845
7845
|
w,
|
|
7846
|
-
|
|
7846
|
+
X,
|
|
7847
7847
|
Z
|
|
7848
7848
|
);
|
|
7849
|
-
if (N.NODE_ENV !== "production" && se.type.__hmrId && Og(se), N.NODE_ENV !== "production" && (Zi(w), wo(se, "mount")), wi(w) && (se.ctx.renderer = cs), N.NODE_ENV !== "production" && wo(se, "init"), Yv(se, !1,
|
|
7850
|
-
if (Z && Z.registerDep(se, B,
|
|
7849
|
+
if (N.NODE_ENV !== "production" && se.type.__hmrId && Og(se), N.NODE_ENV !== "production" && (Zi(w), wo(se, "mount")), wi(w) && (se.ctx.renderer = cs), N.NODE_ENV !== "production" && wo(se, "init"), Yv(se, !1, le), N.NODE_ENV !== "production" && Eo(se, "init"), N.NODE_ENV !== "production" && mn && (w.el = null), se.asyncDep) {
|
|
7850
|
+
if (Z && Z.registerDep(se, B, le), !w.el) {
|
|
7851
7851
|
const oe = se.subTree = E(dt);
|
|
7852
7852
|
k(null, oe, S, z);
|
|
7853
7853
|
}
|
|
@@ -7859,34 +7859,34 @@ function Nv(e, t) {
|
|
|
7859
7859
|
z,
|
|
7860
7860
|
Z,
|
|
7861
7861
|
Y,
|
|
7862
|
-
|
|
7862
|
+
le
|
|
7863
7863
|
);
|
|
7864
7864
|
N.NODE_ENV !== "production" && (Yi(), Eo(se, "mount"));
|
|
7865
7865
|
}, H = (w, S, z) => {
|
|
7866
|
-
const
|
|
7866
|
+
const X = S.component = w.component;
|
|
7867
7867
|
if (Lv(w, S, z))
|
|
7868
|
-
if (
|
|
7869
|
-
N.NODE_ENV !== "production" && Zi(S), re(
|
|
7868
|
+
if (X.asyncDep && !X.asyncResolved) {
|
|
7869
|
+
N.NODE_ENV !== "production" && Zi(S), re(X, S, z), N.NODE_ENV !== "production" && Yi();
|
|
7870
7870
|
return;
|
|
7871
7871
|
} else
|
|
7872
|
-
|
|
7872
|
+
X.next = S, X.update();
|
|
7873
7873
|
else
|
|
7874
|
-
S.el = w.el,
|
|
7875
|
-
}, B = (w, S, z,
|
|
7874
|
+
S.el = w.el, X.vnode = S;
|
|
7875
|
+
}, B = (w, S, z, X, Z, Y, le) => {
|
|
7876
7876
|
const se = () => {
|
|
7877
7877
|
if (w.isMounted) {
|
|
7878
|
-
let { next:
|
|
7878
|
+
let { next: ue, bu: _e, u: Ne, parent: Ue, vnode: tt } = w;
|
|
7879
7879
|
{
|
|
7880
7880
|
const Pn = Qh(w);
|
|
7881
7881
|
if (Pn) {
|
|
7882
|
-
|
|
7882
|
+
ue && (ue.el = tt.el, re(w, ue, le)), Pn.asyncDep.then(() => {
|
|
7883
7883
|
w.isUnmounted || se();
|
|
7884
7884
|
});
|
|
7885
7885
|
return;
|
|
7886
7886
|
}
|
|
7887
7887
|
}
|
|
7888
|
-
let We =
|
|
7889
|
-
N.NODE_ENV !== "production" && Zi(
|
|
7888
|
+
let We = ue, qt;
|
|
7889
|
+
N.NODE_ENV !== "production" && Zi(ue || w.vnode), Fr(w, !1), ue ? (ue.el = tt.el, re(w, ue, le)) : ue = tt, _e && fs(_e), (qt = ue.props && ue.props.onVnodeBeforeUpdate) && $n(qt, Ue, ue, tt), Fr(w, !0), N.NODE_ENV !== "production" && wo(w, "render");
|
|
7890
7890
|
const Wt = Fc(w);
|
|
7891
7891
|
N.NODE_ENV !== "production" && Eo(w, "render");
|
|
7892
7892
|
const Nn = w.subTree;
|
|
@@ -7900,14 +7900,14 @@ function Nv(e, t) {
|
|
|
7900
7900
|
w,
|
|
7901
7901
|
Z,
|
|
7902
7902
|
Y
|
|
7903
|
-
), N.NODE_ENV !== "production" && Eo(w, "patch"),
|
|
7904
|
-
() => $n(qt, Ue,
|
|
7903
|
+
), N.NODE_ENV !== "production" && Eo(w, "patch"), ue.el = Wt.el, We === null && jv(w, Wt.el), Ne && Rt(Ne, Z), (qt = ue.props && ue.props.onVnodeUpdated) && Rt(
|
|
7904
|
+
() => $n(qt, Ue, ue, tt),
|
|
7905
7905
|
Z
|
|
7906
7906
|
), N.NODE_ENV !== "production" && xh(w), N.NODE_ENV !== "production" && Yi();
|
|
7907
7907
|
} else {
|
|
7908
|
-
let
|
|
7909
|
-
const { el: _e, props: Ne } = S, { bm: Ue, m:
|
|
7910
|
-
Fr(w, !1), Ue && fs(Ue), !Nn && (
|
|
7908
|
+
let ue;
|
|
7909
|
+
const { el: _e, props: Ne } = S, { bm: Ue, m: tt, parent: We, root: qt, type: Wt } = w, Nn = zo(S);
|
|
7910
|
+
Fr(w, !1), Ue && fs(Ue), !Nn && (ue = Ne && Ne.onVnodeBeforeMount) && $n(ue, We, S), Fr(w, !0);
|
|
7911
7911
|
{
|
|
7912
7912
|
qt.ce && // @ts-expect-error _def is private
|
|
7913
7913
|
qt.ce._def.shadowRoot !== !1 && qt.ce._injectChildStyle(Wt), N.NODE_ENV !== "production" && wo(w, "render");
|
|
@@ -7916,87 +7916,87 @@ function Nv(e, t) {
|
|
|
7916
7916
|
null,
|
|
7917
7917
|
Pn,
|
|
7918
7918
|
z,
|
|
7919
|
-
|
|
7919
|
+
X,
|
|
7920
7920
|
w,
|
|
7921
7921
|
Z,
|
|
7922
7922
|
Y
|
|
7923
7923
|
), N.NODE_ENV !== "production" && Eo(w, "patch"), S.el = Pn.el;
|
|
7924
7924
|
}
|
|
7925
|
-
if (
|
|
7925
|
+
if (tt && Rt(tt, Z), !Nn && (ue = Ne && Ne.onVnodeMounted)) {
|
|
7926
7926
|
const Pn = S;
|
|
7927
7927
|
Rt(
|
|
7928
|
-
() => $n(
|
|
7928
|
+
() => $n(ue, We, Pn),
|
|
7929
7929
|
Z
|
|
7930
7930
|
);
|
|
7931
7931
|
}
|
|
7932
|
-
(S.shapeFlag & 256 || We && zo(We.vnode) && We.vnode.shapeFlag & 256) && w.a && Rt(w.a, Z), w.isMounted = !0, N.NODE_ENV !== "production" && $g(w), S = z =
|
|
7932
|
+
(S.shapeFlag & 256 || We && zo(We.vnode) && We.vnode.shapeFlag & 256) && w.a && Rt(w.a, Z), w.isMounted = !0, N.NODE_ENV !== "production" && $g(w), S = z = X = null;
|
|
7933
7933
|
}
|
|
7934
7934
|
};
|
|
7935
7935
|
w.scope.on();
|
|
7936
7936
|
const oe = w.effect = new Kf(se);
|
|
7937
7937
|
w.scope.off();
|
|
7938
|
-
const
|
|
7939
|
-
Ee.i = w, Ee.id = w.uid, oe.scheduler = () => Ya(Ee), Fr(w, !0), N.NODE_ENV !== "production" && (oe.onTrack = w.rtc ? (
|
|
7938
|
+
const J = w.update = oe.run.bind(oe), Ee = w.job = oe.runIfDirty.bind(oe);
|
|
7939
|
+
Ee.i = w, Ee.id = w.uid, oe.scheduler = () => Ya(Ee), Fr(w, !0), N.NODE_ENV !== "production" && (oe.onTrack = w.rtc ? (ue) => fs(w.rtc, ue) : void 0, oe.onTrigger = w.rtg ? (ue) => fs(w.rtg, ue) : void 0), J();
|
|
7940
7940
|
}, re = (w, S, z) => {
|
|
7941
7941
|
S.component = w;
|
|
7942
|
-
const
|
|
7943
|
-
w.vnode = S, w.next = null, mv(w, S.props,
|
|
7944
|
-
}, be = (w, S, z,
|
|
7945
|
-
const
|
|
7942
|
+
const X = w.vnode.props;
|
|
7943
|
+
w.vnode = S, w.next = null, mv(w, S.props, X, z), Ov(w, S.children, z), En(), Cc(w), kn();
|
|
7944
|
+
}, be = (w, S, z, X, Z, Y, le, se, oe = !1) => {
|
|
7945
|
+
const J = w && w.children, Ee = w ? w.shapeFlag : 0, ue = S.children, { patchFlag: _e, shapeFlag: Ne } = S;
|
|
7946
7946
|
if (_e > 0) {
|
|
7947
7947
|
if (_e & 128) {
|
|
7948
7948
|
he(
|
|
7949
|
-
|
|
7950
|
-
|
|
7949
|
+
J,
|
|
7950
|
+
ue,
|
|
7951
7951
|
z,
|
|
7952
|
-
|
|
7952
|
+
X,
|
|
7953
7953
|
Z,
|
|
7954
7954
|
Y,
|
|
7955
|
-
|
|
7955
|
+
le,
|
|
7956
7956
|
se,
|
|
7957
7957
|
oe
|
|
7958
7958
|
);
|
|
7959
7959
|
return;
|
|
7960
7960
|
} else if (_e & 256) {
|
|
7961
7961
|
ce(
|
|
7962
|
-
|
|
7963
|
-
|
|
7962
|
+
J,
|
|
7963
|
+
ue,
|
|
7964
7964
|
z,
|
|
7965
|
-
|
|
7965
|
+
X,
|
|
7966
7966
|
Z,
|
|
7967
7967
|
Y,
|
|
7968
|
-
|
|
7968
|
+
le,
|
|
7969
7969
|
se,
|
|
7970
7970
|
oe
|
|
7971
7971
|
);
|
|
7972
7972
|
return;
|
|
7973
7973
|
}
|
|
7974
7974
|
}
|
|
7975
|
-
Ne & 8 ? (Ee & 16 && us(
|
|
7976
|
-
|
|
7977
|
-
|
|
7975
|
+
Ne & 8 ? (Ee & 16 && us(J, Z, Y), ue !== J && c(z, ue)) : Ee & 16 ? Ne & 16 ? he(
|
|
7976
|
+
J,
|
|
7977
|
+
ue,
|
|
7978
7978
|
z,
|
|
7979
|
-
|
|
7979
|
+
X,
|
|
7980
7980
|
Z,
|
|
7981
7981
|
Y,
|
|
7982
|
-
|
|
7982
|
+
le,
|
|
7983
7983
|
se,
|
|
7984
7984
|
oe
|
|
7985
|
-
) : us(
|
|
7986
|
-
|
|
7985
|
+
) : us(J, Z, Y, !0) : (Ee & 8 && c(z, ""), Ne & 16 && D(
|
|
7986
|
+
ue,
|
|
7987
7987
|
z,
|
|
7988
|
-
|
|
7988
|
+
X,
|
|
7989
7989
|
Z,
|
|
7990
7990
|
Y,
|
|
7991
|
-
|
|
7991
|
+
le,
|
|
7992
7992
|
se,
|
|
7993
7993
|
oe
|
|
7994
7994
|
));
|
|
7995
|
-
}, ce = (w, S, z,
|
|
7995
|
+
}, ce = (w, S, z, X, Z, Y, le, se, oe) => {
|
|
7996
7996
|
w = w || Bo, S = S || Bo;
|
|
7997
|
-
const
|
|
7997
|
+
const J = w.length, Ee = S.length, ue = Math.min(J, Ee);
|
|
7998
7998
|
let _e;
|
|
7999
|
-
for (_e = 0; _e <
|
|
7999
|
+
for (_e = 0; _e < ue; _e++) {
|
|
8000
8000
|
const Ne = S[_e] = oe ? _r(S[_e]) : fn(S[_e]);
|
|
8001
8001
|
v(
|
|
8002
8002
|
w[_e],
|
|
@@ -8005,35 +8005,35 @@ function Nv(e, t) {
|
|
|
8005
8005
|
null,
|
|
8006
8006
|
Z,
|
|
8007
8007
|
Y,
|
|
8008
|
-
|
|
8008
|
+
le,
|
|
8009
8009
|
se,
|
|
8010
8010
|
oe
|
|
8011
8011
|
);
|
|
8012
8012
|
}
|
|
8013
|
-
|
|
8013
|
+
J > Ee ? us(
|
|
8014
8014
|
w,
|
|
8015
8015
|
Z,
|
|
8016
8016
|
Y,
|
|
8017
8017
|
!0,
|
|
8018
8018
|
!1,
|
|
8019
|
-
|
|
8019
|
+
ue
|
|
8020
8020
|
) : D(
|
|
8021
8021
|
S,
|
|
8022
8022
|
z,
|
|
8023
|
-
|
|
8023
|
+
X,
|
|
8024
8024
|
Z,
|
|
8025
8025
|
Y,
|
|
8026
|
-
|
|
8026
|
+
le,
|
|
8027
8027
|
se,
|
|
8028
8028
|
oe,
|
|
8029
|
-
|
|
8029
|
+
ue
|
|
8030
8030
|
);
|
|
8031
|
-
}, he = (w, S, z,
|
|
8032
|
-
let
|
|
8031
|
+
}, he = (w, S, z, X, Z, Y, le, se, oe) => {
|
|
8032
|
+
let J = 0;
|
|
8033
8033
|
const Ee = S.length;
|
|
8034
|
-
let
|
|
8035
|
-
for (;
|
|
8036
|
-
const Ne = w[
|
|
8034
|
+
let ue = w.length - 1, _e = Ee - 1;
|
|
8035
|
+
for (; J <= ue && J <= _e; ) {
|
|
8036
|
+
const Ne = w[J], Ue = S[J] = oe ? _r(S[J]) : fn(S[J]);
|
|
8037
8037
|
if (Kr(Ne, Ue))
|
|
8038
8038
|
v(
|
|
8039
8039
|
Ne,
|
|
@@ -8042,16 +8042,16 @@ function Nv(e, t) {
|
|
|
8042
8042
|
null,
|
|
8043
8043
|
Z,
|
|
8044
8044
|
Y,
|
|
8045
|
-
|
|
8045
|
+
le,
|
|
8046
8046
|
se,
|
|
8047
8047
|
oe
|
|
8048
8048
|
);
|
|
8049
8049
|
else
|
|
8050
8050
|
break;
|
|
8051
|
-
|
|
8051
|
+
J++;
|
|
8052
8052
|
}
|
|
8053
|
-
for (;
|
|
8054
|
-
const Ne = w[
|
|
8053
|
+
for (; J <= ue && J <= _e; ) {
|
|
8054
|
+
const Ne = w[ue], Ue = S[_e] = oe ? _r(S[_e]) : fn(S[_e]);
|
|
8055
8055
|
if (Kr(Ne, Ue))
|
|
8056
8056
|
v(
|
|
8057
8057
|
Ne,
|
|
@@ -8060,154 +8060,154 @@ function Nv(e, t) {
|
|
|
8060
8060
|
null,
|
|
8061
8061
|
Z,
|
|
8062
8062
|
Y,
|
|
8063
|
-
|
|
8063
|
+
le,
|
|
8064
8064
|
se,
|
|
8065
8065
|
oe
|
|
8066
8066
|
);
|
|
8067
8067
|
else
|
|
8068
8068
|
break;
|
|
8069
|
-
|
|
8069
|
+
ue--, _e--;
|
|
8070
8070
|
}
|
|
8071
|
-
if (
|
|
8072
|
-
if (
|
|
8073
|
-
const Ne = _e + 1, Ue = Ne < Ee ? S[Ne].el :
|
|
8074
|
-
for (;
|
|
8071
|
+
if (J > ue) {
|
|
8072
|
+
if (J <= _e) {
|
|
8073
|
+
const Ne = _e + 1, Ue = Ne < Ee ? S[Ne].el : X;
|
|
8074
|
+
for (; J <= _e; )
|
|
8075
8075
|
v(
|
|
8076
8076
|
null,
|
|
8077
|
-
S[
|
|
8077
|
+
S[J] = oe ? _r(S[J]) : fn(S[J]),
|
|
8078
8078
|
z,
|
|
8079
8079
|
Ue,
|
|
8080
8080
|
Z,
|
|
8081
8081
|
Y,
|
|
8082
|
-
|
|
8082
|
+
le,
|
|
8083
8083
|
se,
|
|
8084
8084
|
oe
|
|
8085
|
-
),
|
|
8085
|
+
), J++;
|
|
8086
8086
|
}
|
|
8087
|
-
} else if (
|
|
8088
|
-
for (;
|
|
8089
|
-
Te(w[
|
|
8087
|
+
} else if (J > _e)
|
|
8088
|
+
for (; J <= ue; )
|
|
8089
|
+
Te(w[J], Z, Y, !0), J++;
|
|
8090
8090
|
else {
|
|
8091
|
-
const Ne =
|
|
8092
|
-
for (
|
|
8093
|
-
const It = S[
|
|
8094
|
-
It.key != null && (N.NODE_ENV !== "production" &&
|
|
8091
|
+
const Ne = J, Ue = J, tt = /* @__PURE__ */ new Map();
|
|
8092
|
+
for (J = Ue; J <= _e; J++) {
|
|
8093
|
+
const It = S[J] = oe ? _r(S[J]) : fn(S[J]);
|
|
8094
|
+
It.key != null && (N.NODE_ENV !== "production" && tt.has(It.key) && Q(
|
|
8095
8095
|
"Duplicate keys found during update:",
|
|
8096
8096
|
JSON.stringify(It.key),
|
|
8097
8097
|
"Make sure keys are unique."
|
|
8098
|
-
),
|
|
8098
|
+
), tt.set(It.key, J));
|
|
8099
8099
|
}
|
|
8100
8100
|
let We, qt = 0;
|
|
8101
8101
|
const Wt = _e - Ue + 1;
|
|
8102
8102
|
let Nn = !1, Pn = 0;
|
|
8103
8103
|
const ds = new Array(Wt);
|
|
8104
|
-
for (
|
|
8105
|
-
for (
|
|
8106
|
-
const It = w[
|
|
8104
|
+
for (J = 0; J < Wt; J++) ds[J] = 0;
|
|
8105
|
+
for (J = Ne; J <= ue; J++) {
|
|
8106
|
+
const It = w[J];
|
|
8107
8107
|
if (qt >= Wt) {
|
|
8108
8108
|
Te(It, Z, Y, !0);
|
|
8109
8109
|
continue;
|
|
8110
8110
|
}
|
|
8111
8111
|
let Tn;
|
|
8112
8112
|
if (It.key != null)
|
|
8113
|
-
Tn =
|
|
8113
|
+
Tn = tt.get(It.key);
|
|
8114
8114
|
else
|
|
8115
8115
|
for (We = Ue; We <= _e; We++)
|
|
8116
8116
|
if (ds[We - Ue] === 0 && Kr(It, S[We])) {
|
|
8117
8117
|
Tn = We;
|
|
8118
8118
|
break;
|
|
8119
8119
|
}
|
|
8120
|
-
Tn === void 0 ? Te(It, Z, Y, !0) : (ds[Tn - Ue] =
|
|
8120
|
+
Tn === void 0 ? Te(It, Z, Y, !0) : (ds[Tn - Ue] = J + 1, Tn >= Pn ? Pn = Tn : Nn = !0, v(
|
|
8121
8121
|
It,
|
|
8122
8122
|
S[Tn],
|
|
8123
8123
|
z,
|
|
8124
8124
|
null,
|
|
8125
8125
|
Z,
|
|
8126
8126
|
Y,
|
|
8127
|
-
|
|
8127
|
+
le,
|
|
8128
8128
|
se,
|
|
8129
8129
|
oe
|
|
8130
8130
|
), qt++);
|
|
8131
8131
|
}
|
|
8132
8132
|
const mc = Nn ? Tv(ds) : Bo;
|
|
8133
|
-
for (We = mc.length - 1,
|
|
8134
|
-
const It = Ue +
|
|
8135
|
-
ds[
|
|
8133
|
+
for (We = mc.length - 1, J = Wt - 1; J >= 0; J--) {
|
|
8134
|
+
const It = Ue + J, Tn = S[It], bc = It + 1 < Ee ? S[It + 1].el : X;
|
|
8135
|
+
ds[J] === 0 ? v(
|
|
8136
8136
|
null,
|
|
8137
8137
|
Tn,
|
|
8138
8138
|
z,
|
|
8139
8139
|
bc,
|
|
8140
8140
|
Z,
|
|
8141
8141
|
Y,
|
|
8142
|
-
|
|
8142
|
+
le,
|
|
8143
8143
|
se,
|
|
8144
8144
|
oe
|
|
8145
|
-
) : Nn && (We < 0 ||
|
|
8145
|
+
) : Nn && (We < 0 || J !== mc[We] ? we(Tn, z, bc, 2) : We--);
|
|
8146
8146
|
}
|
|
8147
8147
|
}
|
|
8148
|
-
}, we = (w, S, z,
|
|
8149
|
-
const { el: Y, type:
|
|
8150
|
-
if (
|
|
8151
|
-
we(w.component.subTree, S, z,
|
|
8148
|
+
}, we = (w, S, z, X, Z = null) => {
|
|
8149
|
+
const { el: Y, type: le, transition: se, children: oe, shapeFlag: J } = w;
|
|
8150
|
+
if (J & 6) {
|
|
8151
|
+
we(w.component.subTree, S, z, X);
|
|
8152
8152
|
return;
|
|
8153
8153
|
}
|
|
8154
|
-
if (
|
|
8155
|
-
w.suspense.move(S, z,
|
|
8154
|
+
if (J & 128) {
|
|
8155
|
+
w.suspense.move(S, z, X);
|
|
8156
8156
|
return;
|
|
8157
8157
|
}
|
|
8158
|
-
if (
|
|
8159
|
-
|
|
8158
|
+
if (J & 64) {
|
|
8159
|
+
le.move(w, S, z, cs);
|
|
8160
8160
|
return;
|
|
8161
8161
|
}
|
|
8162
|
-
if (
|
|
8162
|
+
if (le === ge) {
|
|
8163
8163
|
r(Y, S, z);
|
|
8164
|
-
for (let
|
|
8165
|
-
we(oe[
|
|
8164
|
+
for (let ue = 0; ue < oe.length; ue++)
|
|
8165
|
+
we(oe[ue], S, z, X);
|
|
8166
8166
|
r(w.anchor, S, z);
|
|
8167
8167
|
return;
|
|
8168
8168
|
}
|
|
8169
|
-
if (
|
|
8169
|
+
if (le === Vs) {
|
|
8170
8170
|
U(w, S, z);
|
|
8171
8171
|
return;
|
|
8172
8172
|
}
|
|
8173
|
-
if (
|
|
8174
|
-
if (
|
|
8173
|
+
if (X !== 2 && J & 1 && se)
|
|
8174
|
+
if (X === 0)
|
|
8175
8175
|
se.beforeEnter(Y), r(Y, S, z), Rt(() => se.enter(Y), Z);
|
|
8176
8176
|
else {
|
|
8177
|
-
const { leave:
|
|
8177
|
+
const { leave: ue, delayLeave: _e, afterLeave: Ne } = se, Ue = () => {
|
|
8178
8178
|
w.ctx.isUnmounted ? o(Y) : r(Y, S, z);
|
|
8179
|
-
},
|
|
8180
|
-
|
|
8179
|
+
}, tt = () => {
|
|
8180
|
+
ue(Y, () => {
|
|
8181
8181
|
Ue(), Ne && Ne();
|
|
8182
8182
|
});
|
|
8183
8183
|
};
|
|
8184
|
-
_e ? _e(Y, Ue,
|
|
8184
|
+
_e ? _e(Y, Ue, tt) : tt();
|
|
8185
8185
|
}
|
|
8186
8186
|
else
|
|
8187
8187
|
r(Y, S, z);
|
|
8188
|
-
}, Te = (w, S, z,
|
|
8188
|
+
}, Te = (w, S, z, X = !1, Z = !1) => {
|
|
8189
8189
|
const {
|
|
8190
8190
|
type: Y,
|
|
8191
|
-
props:
|
|
8191
|
+
props: le,
|
|
8192
8192
|
ref: se,
|
|
8193
8193
|
children: oe,
|
|
8194
|
-
dynamicChildren:
|
|
8194
|
+
dynamicChildren: J,
|
|
8195
8195
|
shapeFlag: Ee,
|
|
8196
|
-
patchFlag:
|
|
8196
|
+
patchFlag: ue,
|
|
8197
8197
|
dirs: _e,
|
|
8198
8198
|
cacheIndex: Ne
|
|
8199
8199
|
} = w;
|
|
8200
|
-
if (
|
|
8200
|
+
if (ue === -2 && (Z = !1), se != null && (En(), Is(se, null, z, w, !0), kn()), Ne != null && (S.renderCache[Ne] = void 0), Ee & 256) {
|
|
8201
8201
|
S.ctx.deactivate(w);
|
|
8202
8202
|
return;
|
|
8203
8203
|
}
|
|
8204
|
-
const Ue = Ee & 1 && _e,
|
|
8204
|
+
const Ue = Ee & 1 && _e, tt = !zo(w);
|
|
8205
8205
|
let We;
|
|
8206
|
-
if (
|
|
8207
|
-
jm(w.component, z,
|
|
8206
|
+
if (tt && (We = le && le.onVnodeBeforeUnmount) && $n(We, S, w), Ee & 6)
|
|
8207
|
+
jm(w.component, z, X);
|
|
8208
8208
|
else {
|
|
8209
8209
|
if (Ee & 128) {
|
|
8210
|
-
w.suspense.unmount(z,
|
|
8210
|
+
w.suspense.unmount(z, X);
|
|
8211
8211
|
return;
|
|
8212
8212
|
}
|
|
8213
8213
|
Ue && Br(w, null, S, "beforeUnmount"), Ee & 64 ? w.type.remove(
|
|
@@ -8215,30 +8215,30 @@ function Nv(e, t) {
|
|
|
8215
8215
|
S,
|
|
8216
8216
|
z,
|
|
8217
8217
|
cs,
|
|
8218
|
-
|
|
8219
|
-
) :
|
|
8218
|
+
X
|
|
8219
|
+
) : J && // #5154
|
|
8220
8220
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
8221
8221
|
// parent block with hasOnce: true
|
|
8222
8222
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
8223
8223
|
// components nested in v-once are never unmounted.
|
|
8224
|
-
!
|
|
8225
|
-
(Y !== ge ||
|
|
8226
|
-
|
|
8224
|
+
!J.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
8225
|
+
(Y !== ge || ue > 0 && ue & 64) ? us(
|
|
8226
|
+
J,
|
|
8227
8227
|
S,
|
|
8228
8228
|
z,
|
|
8229
8229
|
!1,
|
|
8230
8230
|
!0
|
|
8231
|
-
) : (Y === ge &&
|
|
8231
|
+
) : (Y === ge && ue & 384 || !Z && Ee & 16) && us(oe, S, z), X && yt(w);
|
|
8232
8232
|
}
|
|
8233
|
-
(
|
|
8233
|
+
(tt && (We = le && le.onVnodeUnmounted) || Ue) && Rt(() => {
|
|
8234
8234
|
We && $n(We, S, w), Ue && Br(w, null, S, "unmounted");
|
|
8235
8235
|
}, z);
|
|
8236
8236
|
}, yt = (w) => {
|
|
8237
|
-
const { type: S, el: z, anchor:
|
|
8237
|
+
const { type: S, el: z, anchor: X, transition: Z } = w;
|
|
8238
8238
|
if (S === ge) {
|
|
8239
|
-
N.NODE_ENV !== "production" && w.patchFlag > 0 && w.patchFlag & 2048 && Z && !Z.persisted ? w.children.forEach((
|
|
8240
|
-
|
|
8241
|
-
}) : fr(z,
|
|
8239
|
+
N.NODE_ENV !== "production" && w.patchFlag > 0 && w.patchFlag & 2048 && Z && !Z.persisted ? w.children.forEach((le) => {
|
|
8240
|
+
le.type === dt ? o(le.el) : yt(le);
|
|
8241
|
+
}) : fr(z, X);
|
|
8242
8242
|
return;
|
|
8243
8243
|
}
|
|
8244
8244
|
if (S === Vs) {
|
|
@@ -8249,7 +8249,7 @@ function Nv(e, t) {
|
|
|
8249
8249
|
o(z), Z && !Z.persisted && Z.afterLeave && Z.afterLeave();
|
|
8250
8250
|
};
|
|
8251
8251
|
if (w.shapeFlag & 1 && Z && !Z.persisted) {
|
|
8252
|
-
const { leave:
|
|
8252
|
+
const { leave: le, delayLeave: se } = Z, oe = () => le(z, Y);
|
|
8253
8253
|
se ? se(w.el, Y, oe) : oe();
|
|
8254
8254
|
} else
|
|
8255
8255
|
Y();
|
|
@@ -8261,24 +8261,24 @@ function Nv(e, t) {
|
|
|
8261
8261
|
}, jm = (w, S, z) => {
|
|
8262
8262
|
N.NODE_ENV !== "production" && w.type.__hmrId && Sg(w);
|
|
8263
8263
|
const {
|
|
8264
|
-
bum:
|
|
8264
|
+
bum: X,
|
|
8265
8265
|
scope: Z,
|
|
8266
8266
|
job: Y,
|
|
8267
|
-
subTree:
|
|
8267
|
+
subTree: le,
|
|
8268
8268
|
um: se,
|
|
8269
8269
|
m: oe,
|
|
8270
|
-
a:
|
|
8270
|
+
a: J,
|
|
8271
8271
|
parent: Ee,
|
|
8272
|
-
slots: { __:
|
|
8272
|
+
slots: { __: ue }
|
|
8273
8273
|
} = w;
|
|
8274
|
-
Bc(oe), Bc(
|
|
8274
|
+
Bc(oe), Bc(J), X && fs(X), Ee && ye(ue) && ue.forEach((_e) => {
|
|
8275
8275
|
Ee.renderCache[_e] = void 0;
|
|
8276
|
-
}), Z.stop(), Y && (Y.flags |= 8, Te(
|
|
8276
|
+
}), Z.stop(), Y && (Y.flags |= 8, Te(le, w, S, z)), se && Rt(se, S), Rt(() => {
|
|
8277
8277
|
w.isUnmounted = !0;
|
|
8278
8278
|
}, S), S && S.pendingBranch && !S.isUnmounted && w.asyncDep && !w.asyncResolved && w.suspenseId === S.pendingId && (S.deps--, S.deps === 0 && S.resolve()), N.NODE_ENV !== "production" && Dg(w);
|
|
8279
|
-
}, us = (w, S, z,
|
|
8280
|
-
for (let
|
|
8281
|
-
Te(w[
|
|
8279
|
+
}, us = (w, S, z, X = !1, Z = !1, Y = 0) => {
|
|
8280
|
+
for (let le = Y; le < w.length; le++)
|
|
8281
|
+
Te(w[le], S, z, X, Z);
|
|
8282
8282
|
}, Pi = (w) => {
|
|
8283
8283
|
if (w.shapeFlag & 6)
|
|
8284
8284
|
return Pi(w.component.subTree);
|
|
@@ -8367,7 +8367,7 @@ function Bc(e) {
|
|
|
8367
8367
|
const $v = Symbol.for("v-scx"), Av = () => {
|
|
8368
8368
|
{
|
|
8369
8369
|
const e = me($v);
|
|
8370
|
-
return e || N.NODE_ENV !== "production" &&
|
|
8370
|
+
return e || N.NODE_ENV !== "production" && Q(
|
|
8371
8371
|
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
8372
8372
|
), e;
|
|
8373
8373
|
}
|
|
@@ -8376,21 +8376,21 @@ function en(e, t) {
|
|
|
8376
8376
|
return Fu(e, null, t);
|
|
8377
8377
|
}
|
|
8378
8378
|
function Ke(e, t, n) {
|
|
8379
|
-
return N.NODE_ENV !== "production" && !ke(t) &&
|
|
8379
|
+
return N.NODE_ENV !== "production" && !ke(t) && Q(
|
|
8380
8380
|
"`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."
|
|
8381
8381
|
), Fu(e, t, n);
|
|
8382
8382
|
}
|
|
8383
8383
|
function Fu(e, t, n = Ye) {
|
|
8384
8384
|
const { immediate: r, deep: o, flush: s, once: i } = n;
|
|
8385
|
-
N.NODE_ENV !== "production" && !t && (r !== void 0 &&
|
|
8385
|
+
N.NODE_ENV !== "production" && !t && (r !== void 0 && Q(
|
|
8386
8386
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
8387
|
-
), o !== void 0 &&
|
|
8387
|
+
), o !== void 0 && Q(
|
|
8388
8388
|
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
8389
|
-
), i !== void 0 &&
|
|
8389
|
+
), i !== void 0 && Q(
|
|
8390
8390
|
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
8391
8391
|
));
|
|
8392
8392
|
const a = at({}, n);
|
|
8393
|
-
N.NODE_ENV !== "production" && (a.onWarn =
|
|
8393
|
+
N.NODE_ENV !== "production" && (a.onWarn = Q);
|
|
8394
8394
|
const l = t && r || !t && s !== "post";
|
|
8395
8395
|
let u;
|
|
8396
8396
|
if (si) {
|
|
@@ -8443,12 +8443,12 @@ function Mv(e, t, ...n) {
|
|
|
8443
8443
|
} = e;
|
|
8444
8444
|
if (c)
|
|
8445
8445
|
if (!(t in c))
|
|
8446
|
-
(!d || !(Wr(Ut(t)) in d)) &&
|
|
8446
|
+
(!d || !(Wr(Ut(t)) in d)) && Q(
|
|
8447
8447
|
`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Wr(Ut(t))}" prop.`
|
|
8448
8448
|
);
|
|
8449
8449
|
else {
|
|
8450
8450
|
const f = c[t];
|
|
8451
|
-
ke(f) && (f(...n) ||
|
|
8451
|
+
ke(f) && (f(...n) || Q(
|
|
8452
8452
|
`Invalid event arguments: event validation failed for event "${t}".`
|
|
8453
8453
|
));
|
|
8454
8454
|
}
|
|
@@ -8457,7 +8457,7 @@ function Mv(e, t, ...n) {
|
|
|
8457
8457
|
const s = t.startsWith("update:"), i = s && Iv(r, t.slice(7));
|
|
8458
8458
|
if (i && (i.trim && (o = n.map((c) => ot(c) ? c.trim() : c)), i.number && (o = n.map(Cb))), N.NODE_ENV !== "production" && Vg(e, t, o), N.NODE_ENV !== "production") {
|
|
8459
8459
|
const c = t.toLowerCase();
|
|
8460
|
-
c !== t && r[Wr(c)] &&
|
|
8460
|
+
c !== t && r[Wr(c)] && Q(
|
|
8461
8461
|
`Event "${c}" is emitted in component ${Ja(
|
|
8462
8462
|
e,
|
|
8463
8463
|
e.type
|
|
@@ -8534,7 +8534,7 @@ function Fc(e) {
|
|
|
8534
8534
|
if (n.shapeFlag & 4) {
|
|
8535
8535
|
const F = o || r, I = N.NODE_ENV !== "production" && h.__isScriptSetup ? new Proxy(F, {
|
|
8536
8536
|
get(y, P, D) {
|
|
8537
|
-
return
|
|
8537
|
+
return Q(
|
|
8538
8538
|
`Property '${String(
|
|
8539
8539
|
P
|
|
8540
8540
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
@@ -8588,17 +8588,17 @@ function Fc(e) {
|
|
|
8588
8588
|
const V = y[A];
|
|
8589
8589
|
mi(V) ? pa(V) || P.push(V[2].toLowerCase() + V.slice(3)) : D.push(V);
|
|
8590
8590
|
}
|
|
8591
|
-
D.length &&
|
|
8591
|
+
D.length && Q(
|
|
8592
8592
|
`Extraneous non-props attributes (${D.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
8593
|
-
), P.length &&
|
|
8593
|
+
), P.length && Q(
|
|
8594
8594
|
`Extraneous non-emits event listeners (${P.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
8595
8595
|
);
|
|
8596
8596
|
}
|
|
8597
8597
|
}
|
|
8598
8598
|
}
|
|
8599
|
-
return n.dirs && (N.NODE_ENV !== "production" && !zc(W) &&
|
|
8599
|
+
return n.dirs && (N.NODE_ENV !== "production" && !zc(W) && Q(
|
|
8600
8600
|
"Runtime directive used on component with non-element root node. The directives will not function as intended."
|
|
8601
|
-
), W = On(W, null, !1, !0), W.dirs = W.dirs ? W.dirs.concat(n.dirs) : n.dirs), n.transition && (N.NODE_ENV !== "production" && !zc(W) &&
|
|
8601
|
+
), W = On(W, null, !1, !0), W.dirs = W.dirs ? W.dirs.concat(n.dirs) : n.dirs), n.transition && (N.NODE_ENV !== "production" && !zc(W) && Q(
|
|
8602
8602
|
"Component inside <Transition> renders non-element root node that cannot be animated."
|
|
8603
8603
|
), ri(W, n.transition)), N.NODE_ENV !== "production" && U ? U(W) : k = W, wa(_), k;
|
|
8604
8604
|
}
|
|
@@ -8742,7 +8742,7 @@ const Fv = (...e) => ip(
|
|
|
8742
8742
|
ref: e,
|
|
8743
8743
|
ref_key: t,
|
|
8744
8744
|
ref_for: n
|
|
8745
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? ot(e) ||
|
|
8745
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? ot(e) || et(e) || ke(e) ? { i: bt, r: e, k: t, f: !!n } : e : null);
|
|
8746
8746
|
function L(e, t = null, n = null, r = 0, o = null, s = e === ge ? 0 : 1, i = !1, a = !1) {
|
|
8747
8747
|
const l = {
|
|
8748
8748
|
__v_isVNode: !0,
|
|
@@ -8773,7 +8773,7 @@ function L(e, t = null, n = null, r = 0, o = null, s = e === ge ? 0 : 1, i = !1,
|
|
|
8773
8773
|
appContext: null,
|
|
8774
8774
|
ctx: bt
|
|
8775
8775
|
};
|
|
8776
|
-
return a ? (Hu(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= ot(n) ? 8 : 16), N.NODE_ENV !== "production" && l.key !== l.key &&
|
|
8776
|
+
return a ? (Hu(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= ot(n) ? 8 : 16), N.NODE_ENV !== "production" && l.key !== l.key && Q("VNode created with invalid key (NaN). VNode type:", l.type), oi > 0 && // avoid a block node from tracking itself
|
|
8777
8777
|
!i && // has current parent block
|
|
8778
8778
|
Xt && // presence of a patch flag indicates this node needs patching on updates.
|
|
8779
8779
|
// component nodes also should always be patched, because even if the
|
|
@@ -8785,7 +8785,7 @@ function L(e, t = null, n = null, r = 0, o = null, s = e === ge ? 0 : 1, i = !1,
|
|
|
8785
8785
|
}
|
|
8786
8786
|
const E = N.NODE_ENV !== "production" ? Fv : ip;
|
|
8787
8787
|
function ip(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
8788
|
-
if ((!e || e === jh) && (N.NODE_ENV !== "production" && !e &&
|
|
8788
|
+
if ((!e || e === jh) && (N.NODE_ENV !== "production" && !e && Q(`Invalid vnode type when creating vnode: ${e}.`), e = dt), po(e)) {
|
|
8789
8789
|
const a = On(
|
|
8790
8790
|
e,
|
|
8791
8791
|
t,
|
|
@@ -8800,7 +8800,7 @@ function ip(e, t = null, n = null, r = 0, o = null, s = !1) {
|
|
|
8800
8800
|
a && !ot(a) && (t.class = gi(a)), He(l) && (Ko(l) && !ye(l) && (l = at({}, l)), t.style = ns(l));
|
|
8801
8801
|
}
|
|
8802
8802
|
const i = ot(e) ? 1 : rp(e) ? 128 : Ph(e) ? 64 : He(e) ? 4 : ke(e) ? 2 : 0;
|
|
8803
|
-
return N.NODE_ENV !== "production" && i & 4 && Ko(e) && (e = Oe(e),
|
|
8803
|
+
return N.NODE_ENV !== "production" && i & 4 && Ko(e) && (e = Oe(e), Q(
|
|
8804
8804
|
"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`.",
|
|
8805
8805
|
`
|
|
8806
8806
|
Component that was made reactive: `,
|
|
@@ -9043,7 +9043,7 @@ const ki = (e) => {
|
|
|
9043
9043
|
mt && mt.scope.off(), Sa(null);
|
|
9044
9044
|
}, Zv = /* @__PURE__ */ lr("slot,component");
|
|
9045
9045
|
function iu(e, { isNativeTag: t }) {
|
|
9046
|
-
(Zv(e) || t(e)) &&
|
|
9046
|
+
(Zv(e) || t(e)) && Q(
|
|
9047
9047
|
"Do not use built-in or reserved HTML elements as component id: " + e
|
|
9048
9048
|
);
|
|
9049
9049
|
}
|
|
@@ -9072,7 +9072,7 @@ function Gv(e, t) {
|
|
|
9072
9072
|
for (let i = 0; i < s.length; i++)
|
|
9073
9073
|
Ch(s[i]);
|
|
9074
9074
|
}
|
|
9075
|
-
r.compilerOptions && Kv() &&
|
|
9075
|
+
r.compilerOptions && Kv() && Q(
|
|
9076
9076
|
'"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.'
|
|
9077
9077
|
);
|
|
9078
9078
|
}
|
|
@@ -9098,7 +9098,7 @@ function Gv(e, t) {
|
|
|
9098
9098
|
});
|
|
9099
9099
|
if (e.asyncDep = a, N.NODE_ENV !== "production" && !e.suspense) {
|
|
9100
9100
|
const u = (n = r.name) != null ? n : "Anonymous";
|
|
9101
|
-
|
|
9101
|
+
Q(
|
|
9102
9102
|
`Component <${u}>: 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.`
|
|
9103
9103
|
);
|
|
9104
9104
|
}
|
|
@@ -9108,9 +9108,9 @@ function Gv(e, t) {
|
|
|
9108
9108
|
cp(e, t);
|
|
9109
9109
|
}
|
|
9110
9110
|
function Zc(e, t, n) {
|
|
9111
|
-
ke(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : He(t) ? (N.NODE_ENV !== "production" && po(t) &&
|
|
9111
|
+
ke(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : He(t) ? (N.NODE_ENV !== "production" && po(t) && Q(
|
|
9112
9112
|
"setup() should not return VNodes directly - return a render function instead."
|
|
9113
|
-
), N.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = ph(t), N.NODE_ENV !== "production" && rv(e)) : N.NODE_ENV !== "production" && t !== void 0 &&
|
|
9113
|
+
), N.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = ph(t), N.NODE_ENV !== "production" && rv(e)) : N.NODE_ENV !== "production" && t !== void 0 && Q(
|
|
9114
9114
|
`setup() should return an object. Received: ${t === null ? "null" : typeof t}`
|
|
9115
9115
|
), cp(e, n);
|
|
9116
9116
|
}
|
|
@@ -9127,19 +9127,19 @@ function cp(e, t, n) {
|
|
|
9127
9127
|
kn(), o();
|
|
9128
9128
|
}
|
|
9129
9129
|
}
|
|
9130
|
-
N.NODE_ENV !== "production" && !r.render && e.render === vt && !t && (r.template ?
|
|
9130
|
+
N.NODE_ENV !== "production" && !r.render && e.render === vt && !t && (r.template ? Q(
|
|
9131
9131
|
'Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'
|
|
9132
|
-
) :
|
|
9132
|
+
) : Q("Component is missing template or render function: ", r));
|
|
9133
9133
|
}
|
|
9134
9134
|
const Yc = N.NODE_ENV !== "production" ? {
|
|
9135
9135
|
get(e, t) {
|
|
9136
9136
|
return Oa(), gt(e, "get", ""), e[t];
|
|
9137
9137
|
},
|
|
9138
9138
|
set() {
|
|
9139
|
-
return
|
|
9139
|
+
return Q("setupContext.attrs is readonly."), !1;
|
|
9140
9140
|
},
|
|
9141
9141
|
deleteProperty() {
|
|
9142
|
-
return
|
|
9142
|
+
return Q("setupContext.attrs is readonly."), !1;
|
|
9143
9143
|
}
|
|
9144
9144
|
} : {
|
|
9145
9145
|
get(e, t) {
|
|
@@ -9155,9 +9155,9 @@ function Xv(e) {
|
|
|
9155
9155
|
}
|
|
9156
9156
|
function Jv(e) {
|
|
9157
9157
|
const t = (n) => {
|
|
9158
|
-
if (N.NODE_ENV !== "production" && (e.exposed &&
|
|
9158
|
+
if (N.NODE_ENV !== "production" && (e.exposed && Q("expose() should be called only once per setup()."), n != null)) {
|
|
9159
9159
|
let r = typeof n;
|
|
9160
|
-
r === "object" && (ye(n) ? r = "array" :
|
|
9160
|
+
r === "object" && (ye(n) ? r = "array" : et(n) && (r = "ref")), r !== "object" && Q(
|
|
9161
9161
|
`expose() should be passed a plain object, received ${r}.`
|
|
9162
9162
|
);
|
|
9163
9163
|
}
|
|
@@ -9223,7 +9223,7 @@ function Ja(e, t, n = !1) {
|
|
|
9223
9223
|
function dp(e) {
|
|
9224
9224
|
return ke(e) && "__vccOpts" in e;
|
|
9225
9225
|
}
|
|
9226
|
-
const
|
|
9226
|
+
const K = (e, t) => {
|
|
9227
9227
|
const n = pg(e, t, si);
|
|
9228
9228
|
if (N.NODE_ENV !== "production") {
|
|
9229
9229
|
const r = Xa();
|
|
@@ -9245,7 +9245,7 @@ function ty() {
|
|
|
9245
9245
|
return null;
|
|
9246
9246
|
if (d.__isVue)
|
|
9247
9247
|
return ["div", e, "VueInstance"];
|
|
9248
|
-
if (
|
|
9248
|
+
if (et(d)) {
|
|
9249
9249
|
En();
|
|
9250
9250
|
const f = d.value;
|
|
9251
9251
|
return kn(), [
|
|
@@ -9356,7 +9356,7 @@ function ty() {
|
|
|
9356
9356
|
}
|
|
9357
9357
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
|
|
9358
9358
|
}
|
|
9359
|
-
const Gc = "3.5.17", nr = N.NODE_ENV !== "production" ?
|
|
9359
|
+
const Gc = "3.5.17", nr = N.NODE_ENV !== "production" ? Q : vt;
|
|
9360
9360
|
var qn = {};
|
|
9361
9361
|
let au;
|
|
9362
9362
|
const Kc = typeof window < "u" && window.trustedTypes;
|
|
@@ -10207,7 +10207,7 @@ function Jy(e, t) {
|
|
|
10207
10207
|
fulfilling: i,
|
|
10208
10208
|
completing: a,
|
|
10209
10209
|
error: o,
|
|
10210
|
-
isInstalled:
|
|
10210
|
+
isInstalled: K(() => {
|
|
10211
10211
|
var c;
|
|
10212
10212
|
return r && ((c = r.value) == null ? void 0 : c.status) === hn.Completed;
|
|
10213
10213
|
}),
|
|
@@ -10228,7 +10228,7 @@ function Jy(e, t) {
|
|
|
10228
10228
|
}
|
|
10229
10229
|
};
|
|
10230
10230
|
}
|
|
10231
|
-
function
|
|
10231
|
+
function Qe(e) {
|
|
10232
10232
|
const t = e ?? me(Ht);
|
|
10233
10233
|
if (!t)
|
|
10234
10234
|
throw new Error("No storefront configured");
|
|
@@ -10277,19 +10277,19 @@ function Qi(e, t) {
|
|
|
10277
10277
|
const n = t ?? me(Ht);
|
|
10278
10278
|
if (!n)
|
|
10279
10279
|
throw new Error("No storefront configured");
|
|
10280
|
-
return
|
|
10280
|
+
return K(() => n.storefront.value.bundles.find((r) => r.id === e) || null);
|
|
10281
10281
|
}
|
|
10282
10282
|
function Qy(e) {
|
|
10283
10283
|
const t = me(Ht);
|
|
10284
10284
|
if (!t)
|
|
10285
10285
|
throw new Error("No storefront configured");
|
|
10286
|
-
return
|
|
10286
|
+
return K(() => t.storefront.value.bundles);
|
|
10287
10287
|
}
|
|
10288
10288
|
function Wn(e) {
|
|
10289
10289
|
const t = e ?? me(Ht);
|
|
10290
10290
|
if (!t)
|
|
10291
10291
|
throw new Error("No storefront configured");
|
|
10292
|
-
const n =
|
|
10292
|
+
const n = K(() => {
|
|
10293
10293
|
const i = t.currentOrder.value.currency || t.storefront.value.suggestedCurrency;
|
|
10294
10294
|
return { amount: t.currentOrder.value.items.reduce((l, u) => {
|
|
10295
10295
|
var c, d, f, h, p, v, _, k, R, W;
|
|
@@ -10391,8 +10391,8 @@ function Wn(e) {
|
|
|
10391
10391
|
}
|
|
10392
10392
|
}
|
|
10393
10393
|
return {
|
|
10394
|
-
items:
|
|
10395
|
-
currency:
|
|
10394
|
+
items: K(() => t.enrichLineItems(t.currentOrder.value.items)),
|
|
10395
|
+
currency: K(() => t.currentOrder.value.currency || t.storefront.value.suggestedCurrency),
|
|
10396
10396
|
total: n,
|
|
10397
10397
|
addToCart: r,
|
|
10398
10398
|
setQuantity: (i, a) => {
|
|
@@ -10551,7 +10551,7 @@ function t1(e, t) {
|
|
|
10551
10551
|
const n = me(Ht);
|
|
10552
10552
|
if (!n)
|
|
10553
10553
|
throw new Error("No storefront configured");
|
|
10554
|
-
return
|
|
10554
|
+
return K(() => {
|
|
10555
10555
|
var r;
|
|
10556
10556
|
return ((r = n.storefront.value.offers) == null ? void 0 : r.find((o) => o.id === e)) || null;
|
|
10557
10557
|
});
|
|
@@ -10560,7 +10560,7 @@ function n1(e) {
|
|
|
10560
10560
|
const t = me(Ht);
|
|
10561
10561
|
if (!t)
|
|
10562
10562
|
throw new Error("No storefront configured");
|
|
10563
|
-
return
|
|
10563
|
+
return K(() => {
|
|
10564
10564
|
var n;
|
|
10565
10565
|
return ((n = t.storefront.value.offers) != null ? n : []).filter((r) => Rn.eligible(r, t.currentOrder.value) && !r1(r, t.currentOrder.value) && !o1(r, t.currentOrder.value));
|
|
10566
10566
|
});
|
|
@@ -10580,13 +10580,13 @@ function Ls(e, t) {
|
|
|
10580
10580
|
const n = t ?? me(Ht);
|
|
10581
10581
|
if (!n)
|
|
10582
10582
|
throw new Error("No storefront configured");
|
|
10583
|
-
return
|
|
10583
|
+
return K(() => n.storefront.value.products.find((r) => r.id === e) || null);
|
|
10584
10584
|
}
|
|
10585
10585
|
function s1(e) {
|
|
10586
10586
|
const t = me(Ht);
|
|
10587
10587
|
if (!t)
|
|
10588
10588
|
throw new Error("No storefront configured");
|
|
10589
|
-
return
|
|
10589
|
+
return K(() => t.storefront.value.products);
|
|
10590
10590
|
}
|
|
10591
10591
|
function mp(e) {
|
|
10592
10592
|
const t = me(Ht);
|
|
@@ -11292,7 +11292,7 @@ function Cp(e, t) {
|
|
|
11292
11292
|
if (!(n in e))
|
|
11293
11293
|
continue;
|
|
11294
11294
|
const o = e[n];
|
|
11295
|
-
mo(o) && mo(r) && !
|
|
11295
|
+
mo(o) && mo(r) && !et(r) && !vn(r) ? e[n] = Cp(o, r) : e[n] = r;
|
|
11296
11296
|
}
|
|
11297
11297
|
return e;
|
|
11298
11298
|
}
|
|
@@ -11318,7 +11318,7 @@ function uu(e, t) {
|
|
|
11318
11318
|
if (!t.hasOwnProperty(n))
|
|
11319
11319
|
continue;
|
|
11320
11320
|
const r = t[n], o = e[n];
|
|
11321
|
-
mo(o) && mo(r) && e.hasOwnProperty(n) && !
|
|
11321
|
+
mo(o) && mo(r) && e.hasOwnProperty(n) && !et(r) && !vn(r) ? e[n] = uu(o, r) : e[n] = r;
|
|
11322
11322
|
}
|
|
11323
11323
|
return e;
|
|
11324
11324
|
}
|
|
@@ -11331,7 +11331,7 @@ function I1(e) {
|
|
|
11331
11331
|
}
|
|
11332
11332
|
const { assign: on } = Object;
|
|
11333
11333
|
function _d(e) {
|
|
11334
|
-
return !!(
|
|
11334
|
+
return !!(et(e) && e.effect);
|
|
11335
11335
|
}
|
|
11336
11336
|
function wd(e, t, n, r) {
|
|
11337
11337
|
const { state: o, actions: s, getters: i } = t, a = n.state.value[e];
|
|
@@ -11342,7 +11342,7 @@ function wd(e, t, n, r) {
|
|
|
11342
11342
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
11343
11343
|
Sc(j(o ? o() : {}).value)
|
|
11344
11344
|
) : Sc(n.state.value[e]);
|
|
11345
|
-
return on(c, s, Object.keys(i || {}).reduce((d, f) => (je.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = Or(
|
|
11345
|
+
return on(c, s, Object.keys(i || {}).reduce((d, f) => (je.NODE_ENV !== "production" && f in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = Or(K(() => {
|
|
11346
11346
|
ai(n);
|
|
11347
11347
|
const h = n._s.get(e);
|
|
11348
11348
|
return i[f].call(h, h);
|
|
@@ -11460,8 +11460,8 @@ function cu(e, t, n = {}, r, o, s) {
|
|
|
11460
11460
|
const D = (r._a && r._a.runWithContext || A1)(() => r._e.run(() => (i = Yf()).run(() => t({ action: U }))));
|
|
11461
11461
|
for (const A in D) {
|
|
11462
11462
|
const T = D[A];
|
|
11463
|
-
if (
|
|
11464
|
-
je.NODE_ENV !== "production" && o ? Vi(v.value, A, hl(D, A)) : s || (p && I1(T) && (
|
|
11463
|
+
if (et(T) && !_d(T) || vn(T))
|
|
11464
|
+
je.NODE_ENV !== "production" && o ? Vi(v.value, A, hl(D, A)) : s || (p && I1(T) && (et(T) ? T.value = p[A] : uu(T, p[A])), r.state.value[e][A] = T), je.NODE_ENV !== "production" && F.state.push(A);
|
|
11465
11465
|
else if (typeof T == "function") {
|
|
11466
11466
|
const V = je.NODE_ENV !== "production" && o ? T : U(T, A);
|
|
11467
11467
|
D[A] = V, je.NODE_ENV !== "production" && (F.actions[A] = T), a.actions[A] = T;
|
|
@@ -11499,7 +11499,7 @@ function cu(e, t, n = {}, r, o, s) {
|
|
|
11499
11499
|
for (const T in A._hmrPayload.getters) {
|
|
11500
11500
|
const V = A._hmrPayload.getters[T], ie = s ? (
|
|
11501
11501
|
// special handling of options api
|
|
11502
|
-
|
|
11502
|
+
K(() => (ai(r), V.call(y, y)))
|
|
11503
11503
|
) : V;
|
|
11504
11504
|
Vi(y, T, ie);
|
|
11505
11505
|
}
|
|
@@ -11571,7 +11571,7 @@ This will fail in production.`);
|
|
|
11571
11571
|
}
|
|
11572
11572
|
return i.$id = r, i;
|
|
11573
11573
|
}
|
|
11574
|
-
var
|
|
11574
|
+
var G = /* @__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.ViewSubscriptions = "view_subscriptions", e.RedeemVoucher = "redeem_voucher", e.ViewProduct = "view_product", e.DownloadProduct = "download_product", e.ActivateProduct = "activate_product", e.ManageSubscription = "manage_subscription", e.ViewCart = "view_cart", e.Purchase = "purchase", e.AddToCart = "add_to_cart", e.Checkout = "checkout", e.CloseCheckout = "close_checkout", e.ViewAbout = "view_about", e))(G || {});
|
|
11575
11575
|
const Ed = {
|
|
11576
11576
|
toolbar: {
|
|
11577
11577
|
enabled: !0,
|
|
@@ -11655,7 +11655,7 @@ function Ku(e, t) {
|
|
|
11655
11655
|
}
|
|
11656
11656
|
return !0;
|
|
11657
11657
|
}
|
|
11658
|
-
var Xu = /* @__PURE__ */ ((e) => (e[e.Forward = 0] = "Forward", e[e.Back = 1] = "Back", e))(Xu || {}),
|
|
11658
|
+
var Xu = /* @__PURE__ */ ((e) => (e[e.Forward = 0] = "Forward", e[e.Back = 1] = "Back", e))(Xu || {}), ae = /* @__PURE__ */ ((e) => (e.None = "None", e.Authentication = "Authentication", e.Customer = "Customer", e.Redeem = "Redeem", e.Cart = "Cart", e.Activation = "Activation", e.Product = "Product", e.Subscription = "Subscription", e.About = "About", e))(ae || {});
|
|
11659
11659
|
const Ae = /* @__PURE__ */ M1("ui", () => {
|
|
11660
11660
|
const e = j(
|
|
11661
11661
|
0
|
|
@@ -11695,7 +11695,7 @@ const Ae = /* @__PURE__ */ M1("ui", () => {
|
|
|
11695
11695
|
const [p, v, _] = h;
|
|
11696
11696
|
e.value = 1, r.value = _ ?? null, n.value = v, t.value = p;
|
|
11697
11697
|
}
|
|
11698
|
-
const f =
|
|
11698
|
+
const f = K(() => o.value.length === 0 ? null : o.value[o.value.length - 1]);
|
|
11699
11699
|
return { direction: e, active: t, intent: n, parameters: r, queue: o, next: f, history: s, show: i, reset: l, enqueue: a, dequeue: u, back: d, getParameter: c };
|
|
11700
11700
|
});
|
|
11701
11701
|
class R1 {
|
|
@@ -12102,14 +12102,14 @@ const bs = Object.assign(
|
|
|
12102
12102
|
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
12103
12103
|
const o = j(null);
|
|
12104
12104
|
r({ el: o, $el: o });
|
|
12105
|
-
const s =
|
|
12105
|
+
const s = K(() => os(o)), i = j(!1);
|
|
12106
12106
|
ze(() => i.value = !0), zt(() => i.value = !1), W1(
|
|
12107
12107
|
{ ownerDocument: s },
|
|
12108
|
-
|
|
12108
|
+
K(() => i.value && !!(e.features & 16))
|
|
12109
12109
|
);
|
|
12110
12110
|
const a = Z1(
|
|
12111
|
-
{ ownerDocument: s, container: o, initialFocus:
|
|
12112
|
-
|
|
12111
|
+
{ ownerDocument: s, container: o, initialFocus: K(() => e.initialFocus) },
|
|
12112
|
+
K(() => i.value && !!(e.features & 2))
|
|
12113
12113
|
);
|
|
12114
12114
|
Y1(
|
|
12115
12115
|
{
|
|
@@ -12118,7 +12118,7 @@ const bs = Object.assign(
|
|
|
12118
12118
|
containers: e.containers,
|
|
12119
12119
|
previousActiveElement: a
|
|
12120
12120
|
},
|
|
12121
|
-
|
|
12121
|
+
K(() => i.value && !!(e.features & 8))
|
|
12122
12122
|
);
|
|
12123
12123
|
const l = L1();
|
|
12124
12124
|
function u(h) {
|
|
@@ -12502,7 +12502,7 @@ Qr.subscribe(() => {
|
|
|
12502
12502
|
}
|
|
12503
12503
|
});
|
|
12504
12504
|
function r_(e, t, n) {
|
|
12505
|
-
const r = G1(Qr), o =
|
|
12505
|
+
const r = G1(Qr), o = K(() => {
|
|
12506
12506
|
const s = e.value ? r.value.get(e.value) : void 0;
|
|
12507
12507
|
return s ? s.count > 0 : !1;
|
|
12508
12508
|
});
|
|
@@ -12559,7 +12559,7 @@ function vs(e, t, n, r) {
|
|
|
12559
12559
|
});
|
|
12560
12560
|
}
|
|
12561
12561
|
const xd = 30;
|
|
12562
|
-
function i_(e, t, n =
|
|
12562
|
+
function i_(e, t, n = K(() => !0)) {
|
|
12563
12563
|
function r(i, a) {
|
|
12564
12564
|
if (i.defaultPrevented)
|
|
12565
12565
|
return;
|
|
@@ -12747,7 +12747,7 @@ function p_({
|
|
|
12747
12747
|
i !== -1 && r.value.splice(i, 1);
|
|
12748
12748
|
};
|
|
12749
12749
|
}
|
|
12750
|
-
return Yt(h_, { register: o, slot: e, name: t, props: n }),
|
|
12750
|
+
return Yt(h_, { register: o, slot: e, name: t, props: n }), K(
|
|
12751
12751
|
() => r.value.length > 0 ? r.value.join(" ") : void 0
|
|
12752
12752
|
);
|
|
12753
12753
|
}
|
|
@@ -12894,19 +12894,19 @@ const Li = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", v_ = /* @__PURE__ */ pe({
|
|
|
12894
12894
|
s.value = !0;
|
|
12895
12895
|
});
|
|
12896
12896
|
let i = !1;
|
|
12897
|
-
const a =
|
|
12897
|
+
const a = K(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (i || (i = !0, console.warn(
|
|
12898
12898
|
`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`
|
|
12899
|
-
)), "dialog")), l = j(0), u = Qu(), c =
|
|
12899
|
+
)), "dialog")), l = j(0), u = Qu(), c = K(() => e.open === Li && u !== null ? (u.value & Kt.Open) === Kt.Open : e.open), d = j(null), f = K(() => os(d));
|
|
12900
12900
|
if (o({ el: d, $el: d }), !(e.open !== Li || u !== null))
|
|
12901
12901
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
12902
12902
|
if (typeof c.value != "boolean")
|
|
12903
12903
|
throw new TypeError(
|
|
12904
12904
|
`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c.value === Li ? void 0 : e.open}`
|
|
12905
12905
|
);
|
|
12906
|
-
const p =
|
|
12906
|
+
const p = K(
|
|
12907
12907
|
() => s.value && c.value ? 0 : 1
|
|
12908
12908
|
/* Closed */
|
|
12909
|
-
), v =
|
|
12909
|
+
), v = K(
|
|
12910
12910
|
() => p.value === 0
|
|
12911
12911
|
/* Open */
|
|
12912
12912
|
), _ = j(null), k = {
|
|
@@ -12919,21 +12919,21 @@ const Li = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", v_ = /* @__PURE__ */ pe({
|
|
|
12919
12919
|
close() {
|
|
12920
12920
|
t("close", !1);
|
|
12921
12921
|
}
|
|
12922
|
-
}, R =
|
|
12922
|
+
}, R = K(() => l.value > 1), W = me(hu, null) !== null, [U, F] = b_(), {
|
|
12923
12923
|
resolveContainers: I,
|
|
12924
12924
|
mainTreeNodeRef: y,
|
|
12925
12925
|
MainTreeNode: P
|
|
12926
12926
|
} = a_({
|
|
12927
12927
|
portals: U,
|
|
12928
|
-
defaultContainers: [
|
|
12929
|
-
}), D =
|
|
12928
|
+
defaultContainers: [K(() => k.panelRef.value ?? d.value)]
|
|
12929
|
+
}), D = K(() => R.value ? "parent" : "leaf"), A = K(
|
|
12930
12930
|
() => u !== null ? (u.value & Kt.Closing) === Kt.Closing : !1
|
|
12931
|
-
), T =
|
|
12931
|
+
), T = K(() => !e.makeInert || W || A.value ? !1 : v.value), V = K(() => {
|
|
12932
12932
|
var ce;
|
|
12933
12933
|
return Array.from(((ce = f.value) == null ? void 0 : ce.querySelectorAll("body > *")) ?? []).find((he) => he.id === "moonbase" ? !1 : he.contains(Re(y)) && he instanceof HTMLElement) ?? null;
|
|
12934
12934
|
});
|
|
12935
12935
|
kd(V, T);
|
|
12936
|
-
const ie =
|
|
12936
|
+
const ie = K(() => R.value ? !0 : v.value), xe = K(() => {
|
|
12937
12937
|
var ce;
|
|
12938
12938
|
return Array.from(
|
|
12939
12939
|
((ce = f.value) == null ? void 0 : ce.querySelectorAll("[data-moonbase-portal]")) ?? []
|
|
@@ -12941,7 +12941,7 @@ const Li = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", v_ = /* @__PURE__ */ pe({
|
|
|
12941
12941
|
});
|
|
12942
12942
|
kd(xe, ie), f_({
|
|
12943
12943
|
type: "Dialog",
|
|
12944
|
-
enabled:
|
|
12944
|
+
enabled: K(
|
|
12945
12945
|
() => p.value === 0
|
|
12946
12946
|
/* Open */
|
|
12947
12947
|
),
|
|
@@ -12956,10 +12956,10 @@ const Li = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", v_ = /* @__PURE__ */ pe({
|
|
|
12956
12956
|
});
|
|
12957
12957
|
const C = p_({
|
|
12958
12958
|
name: "DialogDescription",
|
|
12959
|
-
slot:
|
|
12959
|
+
slot: K(() => ({ open: c.value }))
|
|
12960
12960
|
});
|
|
12961
12961
|
Yt(hu, k);
|
|
12962
|
-
const H =
|
|
12962
|
+
const H = K(() => !(!v.value || R.value));
|
|
12963
12963
|
i_(
|
|
12964
12964
|
I,
|
|
12965
12965
|
(ce, he) => {
|
|
@@ -12967,11 +12967,11 @@ const Li = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", v_ = /* @__PURE__ */ pe({
|
|
|
12967
12967
|
},
|
|
12968
12968
|
H
|
|
12969
12969
|
);
|
|
12970
|
-
const B =
|
|
12970
|
+
const B = K(() => !(R.value || p.value !== 0));
|
|
12971
12971
|
Pp((be = f.value) == null ? void 0 : be.defaultView, "keydown", (ce) => {
|
|
12972
12972
|
B.value && (ce.defaultPrevented || ce.key === sn.Escape && (ce.preventDefault(), ce.stopPropagation(), k.close()));
|
|
12973
12973
|
});
|
|
12974
|
-
const re =
|
|
12974
|
+
const re = K(() => !(!e.lockScroll || A.value || p.value !== 0 || W));
|
|
12975
12975
|
return r_(f, re, (ce) => ({
|
|
12976
12976
|
containers: [...ce.containers ?? [], I]
|
|
12977
12977
|
})), en((ce) => {
|
|
@@ -13187,12 +13187,12 @@ const tc = Symbol("TabsSSRContext"), k_ = /* @__PURE__ */ pe({
|
|
|
13187
13187
|
setup(e, { slots: t, attrs: n, emit: r }) {
|
|
13188
13188
|
const o = j(
|
|
13189
13189
|
e.selectedIndex ?? e.defaultIndex
|
|
13190
|
-
), s = j([]), i = j([]), a =
|
|
13190
|
+
), s = j([]), i = j([]), a = K(() => e.selectedIndex !== null), l = K(
|
|
13191
13191
|
() => a.value ? e.selectedIndex : o.value
|
|
13192
13192
|
), u = {
|
|
13193
|
-
selectedIndex:
|
|
13194
|
-
orientation:
|
|
13195
|
-
activation:
|
|
13193
|
+
selectedIndex: K(() => o.value ?? e.defaultIndex ?? null),
|
|
13194
|
+
orientation: K(() => e.vertical ? "vertical" : "horizontal"),
|
|
13195
|
+
activation: K(() => e.manual ? "manual" : "auto"),
|
|
13196
13196
|
tabs: s,
|
|
13197
13197
|
panels: i,
|
|
13198
13198
|
setSelectedIndex(p) {
|
|
@@ -13266,9 +13266,9 @@ const tc = Symbol("TabsSSRContext"), k_ = /* @__PURE__ */ pe({
|
|
|
13266
13266
|
f.value = !0;
|
|
13267
13267
|
}), Yt(
|
|
13268
13268
|
tc,
|
|
13269
|
-
|
|
13269
|
+
K(() => f.value ? null : d.value)
|
|
13270
13270
|
);
|
|
13271
|
-
const h =
|
|
13271
|
+
const h = K(() => e.selectedIndex);
|
|
13272
13272
|
return ze(() => {
|
|
13273
13273
|
Ke(
|
|
13274
13274
|
[h],
|
|
@@ -13341,16 +13341,16 @@ const tc = Symbol("TabsSSRContext"), k_ = /* @__PURE__ */ pe({
|
|
|
13341
13341
|
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
13342
13342
|
const o = tl("Tab"), s = j(null);
|
|
13343
13343
|
r({ el: s, $el: s }), ze(() => o.registerTab(s)), zt(() => o.unregisterTab(s));
|
|
13344
|
-
const i = me(tc), a =
|
|
13344
|
+
const i = me(tc), a = K(() => {
|
|
13345
13345
|
if (i.value) {
|
|
13346
13346
|
const _ = i.value.tabs.indexOf(e.id);
|
|
13347
13347
|
return _ === -1 ? i.value.tabs.push(e.id) - 1 : _;
|
|
13348
13348
|
}
|
|
13349
13349
|
return -1;
|
|
13350
|
-
}), l =
|
|
13350
|
+
}), l = K(() => {
|
|
13351
13351
|
const _ = o.tabs.value.indexOf(s);
|
|
13352
13352
|
return _ === -1 ? a.value : _;
|
|
13353
|
-
}), u =
|
|
13353
|
+
}), u = K(() => l.value === o.selectedIndex.value);
|
|
13354
13354
|
function c(_) {
|
|
13355
13355
|
var R;
|
|
13356
13356
|
const k = _();
|
|
@@ -13397,7 +13397,7 @@ const tc = Symbol("TabsSSRContext"), k_ = /* @__PURE__ */ pe({
|
|
|
13397
13397
|
_.preventDefault();
|
|
13398
13398
|
}
|
|
13399
13399
|
const v = w_(
|
|
13400
|
-
|
|
13400
|
+
K(() => ({ as: e.as, type: t.type })),
|
|
13401
13401
|
s
|
|
13402
13402
|
);
|
|
13403
13403
|
return () => {
|
|
@@ -13456,16 +13456,16 @@ const tc = Symbol("TabsSSRContext"), k_ = /* @__PURE__ */ pe({
|
|
|
13456
13456
|
setup(e, { attrs: t, slots: n, expose: r }) {
|
|
13457
13457
|
const o = tl("TabPanel"), s = j(null);
|
|
13458
13458
|
r({ el: s, $el: s }), ze(() => o.registerPanel(s)), zt(() => o.unregisterPanel(s));
|
|
13459
|
-
const i = me(tc), a =
|
|
13459
|
+
const i = me(tc), a = K(() => {
|
|
13460
13460
|
if (i.value) {
|
|
13461
13461
|
const c = i.value.panels.indexOf(e.id);
|
|
13462
13462
|
return c === -1 ? i.value.panels.push(e.id) - 1 : c;
|
|
13463
13463
|
}
|
|
13464
13464
|
return -1;
|
|
13465
|
-
}), l =
|
|
13465
|
+
}), l = K(() => {
|
|
13466
13466
|
const c = o.panels.value.indexOf(s);
|
|
13467
13467
|
return c === -1 ? a.value : c;
|
|
13468
|
-
}), u =
|
|
13468
|
+
}), u = K(() => l.value === o.selectedIndex.value);
|
|
13469
13469
|
return () => {
|
|
13470
13470
|
var v;
|
|
13471
13471
|
const c = { selected: u.value }, { id: d, tabIndex: f, ...h } = e, p = {
|
|
@@ -13633,7 +13633,7 @@ const qp = Xo.RenderStrategy, mu = /* @__PURE__ */ pe({
|
|
|
13633
13633
|
},
|
|
13634
13634
|
r
|
|
13635
13635
|
);
|
|
13636
|
-
const c = j(null), d =
|
|
13636
|
+
const c = j(null), d = K(() => e.unmount ? Cr.Unmount : Cr.Hidden);
|
|
13637
13637
|
o({ el: c, $el: c });
|
|
13638
13638
|
const { show: f, appear: h } = $_(), { register: p, unregister: v } = A_(), _ = j(
|
|
13639
13639
|
f.value ? "visible" : "hidden"
|
|
@@ -13699,7 +13699,7 @@ const qp = Xo.RenderStrategy, mu = /* @__PURE__ */ pe({
|
|
|
13699
13699
|
{ immediate: !0 }
|
|
13700
13700
|
);
|
|
13701
13701
|
}), Yt(rc, U), u_(
|
|
13702
|
-
|
|
13702
|
+
K(
|
|
13703
13703
|
() => Qt(_.value, {
|
|
13704
13704
|
visible: Kt.Open,
|
|
13705
13705
|
hidden: Kt.Closed
|
|
@@ -13765,7 +13765,7 @@ const qp = Xo.RenderStrategy, mu = /* @__PURE__ */ pe({
|
|
|
13765
13765
|
afterLeave: () => !0
|
|
13766
13766
|
},
|
|
13767
13767
|
setup(e, { emit: t, attrs: n, slots: r }) {
|
|
13768
|
-
const o = Qu(), s =
|
|
13768
|
+
const o = Qu(), s = K(() => e.show === null && o !== null ? (o.value & Kt.Open) === Kt.Open : e.show);
|
|
13769
13769
|
en(() => {
|
|
13770
13770
|
if (![!0, !1].includes(s.value))
|
|
13771
13771
|
throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
@@ -13777,7 +13777,7 @@ const qp = Xo.RenderStrategy, mu = /* @__PURE__ */ pe({
|
|
|
13777
13777
|
i.value = "hidden";
|
|
13778
13778
|
}), l = j(!0), u = {
|
|
13779
13779
|
show: s,
|
|
13780
|
-
appear:
|
|
13780
|
+
appear: K(() => e.appear || !l.value)
|
|
13781
13781
|
};
|
|
13782
13782
|
return ze(() => {
|
|
13783
13783
|
en(() => {
|
|
@@ -14142,7 +14142,7 @@ const G_ = ["href", "disabled", "data-variant", "data-size", "data-corners", "da
|
|
|
14142
14142
|
},
|
|
14143
14143
|
emits: ["click"],
|
|
14144
14144
|
setup(e) {
|
|
14145
|
-
const t = e, n = me(ut), r =
|
|
14145
|
+
const t = e, n = me(ut), r = K(() => t.variant ? t.variant === "secondary" ? `secondary-${(n == null ? void 0 : n.value.theme.buttons) ?? "light"}` : t.variant : "primary");
|
|
14146
14146
|
return (o, s) => {
|
|
14147
14147
|
var i, a, l, u;
|
|
14148
14148
|
return o.href ? (m(), O("a", {
|
|
@@ -14188,55 +14188,55 @@ function rw(e, t) {
|
|
|
14188
14188
|
At(e.$slots, "default")
|
|
14189
14189
|
]);
|
|
14190
14190
|
}
|
|
14191
|
-
const
|
|
14191
|
+
const rt = /* @__PURE__ */ dr(tw, [["render", rw]]), ow = ["data-contain"], sw = { class: "moonbase:drawer-header" }, iw = ["data-background"], aw = /* @__PURE__ */ pe({
|
|
14192
14192
|
__name: "Drawer",
|
|
14193
14193
|
setup(e) {
|
|
14194
|
-
const t = Ae(), n =
|
|
14194
|
+
const t = Ae(), n = Qe(), r = me(ut), o = j(""), s = j("");
|
|
14195
14195
|
Ke(() => [t.active, t.intent, t.next], ([a, l, u]) => {
|
|
14196
|
-
if (s.value = "", u && (l ===
|
|
14196
|
+
if (s.value = "", u && (l === G.SignIn || l === G.SignUp)) {
|
|
14197
14197
|
const [c, d, f] = u;
|
|
14198
|
-
d ===
|
|
14198
|
+
d === G.ConfirmEmailChange ? s.value = "to confirm email" : d === G.RedeemVoucher ? s.value = "to redeem voucher" : d === G.ActivateProduct ? s.value = "to activate product" : d === G.ViewProducts ? s.value = "to manage products" : d === G.ManageSubscription && (s.value = "to manage subscription");
|
|
14199
14199
|
}
|
|
14200
14200
|
switch (l) {
|
|
14201
|
-
case
|
|
14201
|
+
case G.ActivateProduct:
|
|
14202
14202
|
o.value = "Activate product";
|
|
14203
14203
|
return;
|
|
14204
|
-
case
|
|
14204
|
+
case G.SignIn:
|
|
14205
14205
|
o.value = "Sign in";
|
|
14206
14206
|
return;
|
|
14207
|
-
case
|
|
14207
|
+
case G.SignUp:
|
|
14208
14208
|
o.value = "Sign up";
|
|
14209
14209
|
return;
|
|
14210
|
-
case
|
|
14210
|
+
case G.ConfirmAccount:
|
|
14211
14211
|
o.value = "Confirm account";
|
|
14212
14212
|
return;
|
|
14213
|
-
case
|
|
14213
|
+
case G.ConfirmEmail:
|
|
14214
14214
|
o.value = "Confirm email address";
|
|
14215
14215
|
return;
|
|
14216
|
-
case
|
|
14216
|
+
case G.ConfirmEmailChange:
|
|
14217
14217
|
o.value = "Confirm email change";
|
|
14218
14218
|
return;
|
|
14219
|
-
case
|
|
14219
|
+
case G.ForgotPassword:
|
|
14220
14220
|
o.value = "Forgot password";
|
|
14221
14221
|
return;
|
|
14222
|
-
case
|
|
14222
|
+
case G.ResetPassword:
|
|
14223
14223
|
o.value = "Reset password";
|
|
14224
14224
|
return;
|
|
14225
14225
|
}
|
|
14226
14226
|
switch (a) {
|
|
14227
|
-
case
|
|
14227
|
+
case ae.Cart:
|
|
14228
14228
|
o.value = "My cart";
|
|
14229
14229
|
return;
|
|
14230
|
-
case
|
|
14230
|
+
case ae.Customer:
|
|
14231
14231
|
o.value = "My account";
|
|
14232
14232
|
return;
|
|
14233
|
-
case
|
|
14233
|
+
case ae.Product:
|
|
14234
14234
|
o.value = "Product details";
|
|
14235
14235
|
return;
|
|
14236
|
-
case
|
|
14236
|
+
case ae.Subscription:
|
|
14237
14237
|
o.value = "Subscription details";
|
|
14238
14238
|
return;
|
|
14239
|
-
case
|
|
14239
|
+
case ae.Redeem:
|
|
14240
14240
|
o.value = "Redeem voucher";
|
|
14241
14241
|
return;
|
|
14242
14242
|
}
|
|
@@ -14244,15 +14244,15 @@ const nt = /* @__PURE__ */ dr(tw, [["render", rw]]), ow = ["data-contain"], sw =
|
|
|
14244
14244
|
});
|
|
14245
14245
|
function i() {
|
|
14246
14246
|
if (!n.user.value)
|
|
14247
|
-
t.show(
|
|
14247
|
+
t.show(ae.Authentication, G.SignIn), t.enqueue(ae.Customer, G.ViewProducts);
|
|
14248
14248
|
else {
|
|
14249
14249
|
const a = n.user.value.ownedProducts && n.user.value.ownedProducts.length > 0 || n.user.value.subscribedProducts && n.user.value.subscribedProducts.length > 0;
|
|
14250
|
-
t.show(
|
|
14250
|
+
t.show(ae.Customer, a ? G.ViewProducts : G.ViewAccount);
|
|
14251
14251
|
}
|
|
14252
14252
|
}
|
|
14253
14253
|
return (a, l) => (m(), q(g(Wp), {
|
|
14254
14254
|
as: "template",
|
|
14255
|
-
show: g(t).active !== g(
|
|
14255
|
+
show: g(t).active !== g(ae).None
|
|
14256
14256
|
}, {
|
|
14257
14257
|
default: x(() => {
|
|
14258
14258
|
var u, c, d;
|
|
@@ -14316,7 +14316,7 @@ const nt = /* @__PURE__ */ dr(tw, [["render", rw]]), ow = ["data-contain"], sw =
|
|
|
14316
14316
|
]),
|
|
14317
14317
|
_: 1
|
|
14318
14318
|
})),
|
|
14319
|
-
g(t).active === g(
|
|
14319
|
+
g(t).active === g(ae).Cart && ((v = g(r)) != null && v.auth.signIn.enabled) ? (m(), q(Ho, {
|
|
14320
14320
|
key: 2,
|
|
14321
14321
|
variant: "subtle",
|
|
14322
14322
|
onClick: i
|
|
@@ -14330,7 +14330,7 @@ const nt = /* @__PURE__ */ dr(tw, [["render", rw]]), ow = ["data-contain"], sw =
|
|
|
14330
14330
|
E(g(Fp), { as: ew }, {
|
|
14331
14331
|
default: x(() => [
|
|
14332
14332
|
$(M(o.value) + " ", 1),
|
|
14333
|
-
s.value ? (m(), q(
|
|
14333
|
+
s.value ? (m(), q(rt, { key: 0 }, {
|
|
14334
14334
|
default: x(() => [
|
|
14335
14335
|
$(M(s.value), 1)
|
|
14336
14336
|
]),
|
|
@@ -14390,23 +14390,23 @@ const Pr = /* @__PURE__ */ dr(lw, [["render", cw]]), dw = ["data-visible", "data
|
|
|
14390
14390
|
}, mw = /* @__PURE__ */ pe({
|
|
14391
14391
|
__name: "Toolbar",
|
|
14392
14392
|
setup(e) {
|
|
14393
|
-
const t = j(!1), n = Ae(), r =
|
|
14393
|
+
const t = j(!1), n = Ae(), r = Qe(), { items: o } = Wn(), s = me(ut), i = K(() => (o.value ?? []).reduce((l, u) => l + u.quantity, 0));
|
|
14394
14394
|
ze(() => {
|
|
14395
14395
|
Gt(100).then(() => t.value = !0);
|
|
14396
14396
|
});
|
|
14397
14397
|
function a() {
|
|
14398
14398
|
if (!r.user.value)
|
|
14399
|
-
n.show(
|
|
14399
|
+
n.show(ae.Authentication, G.SignIn), n.enqueue(ae.Customer, G.ViewProducts);
|
|
14400
14400
|
else {
|
|
14401
14401
|
const l = r.user.value.ownedProducts && r.user.value.ownedProducts.length > 0 || r.user.value.subscribedProducts && r.user.value.subscribedProducts.length > 0;
|
|
14402
|
-
n.show(
|
|
14402
|
+
n.show(ae.Customer, l ? G.ViewProducts : G.ViewAccount);
|
|
14403
14403
|
}
|
|
14404
14404
|
}
|
|
14405
14405
|
return (l, u) => {
|
|
14406
14406
|
var c, d, f, h, p, v;
|
|
14407
14407
|
return m(), O("div", {
|
|
14408
14408
|
class: "moonbase:toolbar",
|
|
14409
|
-
"data-visible": t.value && g(n).active === g(
|
|
14409
|
+
"data-visible": t.value && g(n).active === g(ae).None ? "true" : void 0,
|
|
14410
14410
|
"data-contain": !!((c = g(s)) != null && c.target) || void 0,
|
|
14411
14411
|
"data-location": g(s).toolbar.location,
|
|
14412
14412
|
"data-corners": (d = g(s)) == null ? void 0 : d.theme.corners
|
|
@@ -14448,7 +14448,7 @@ const Pr = /* @__PURE__ */ dr(lw, [["render", cw]]), dw = ["data-visible", "data
|
|
|
14448
14448
|
key: 3,
|
|
14449
14449
|
class: "moonbase:toolbar-action",
|
|
14450
14450
|
type: "button",
|
|
14451
|
-
onClick: u[0] || (u[0] = (_) => g(n).show(g(
|
|
14451
|
+
onClick: u[0] || (u[0] = (_) => g(n).show(g(ae).Cart, g(G).AddToCart))
|
|
14452
14452
|
}, [
|
|
14453
14453
|
E(Pr, null, {
|
|
14454
14454
|
default: x(() => u[3] || (u[3] = [
|
|
@@ -14511,7 +14511,7 @@ function bw() {
|
|
|
14511
14511
|
/^bundle\.[a-z][a-z0-9\-]+[a-z0-9]\.variation\[[a-z][a-z0-9\-]+[a-z0-9]\]\.discount_name$/,
|
|
14512
14512
|
/^bundle\.[a-z][a-z0-9\-]+[a-z0-9]\.variation\[[a-z][a-z0-9\-]+[a-z0-9]\]\.discount_description$/,
|
|
14513
14513
|
/^bundle\.[a-z][a-z0-9\-]+[a-z0-9]\.variation\[[a-z][a-z0-9\-]+[a-z0-9]\]\.discount_total$/
|
|
14514
|
-
], n = j({}), r =
|
|
14514
|
+
], n = j({}), r = K(() => n.value.user || []), o = K(() => n.value.cart || []), s = K(() => n.value.product || []), i = K(() => n.value.bundle || []), a = [
|
|
14515
14515
|
/^user$/,
|
|
14516
14516
|
/^cart\.has_items$/,
|
|
14517
14517
|
/^cart\.contains_product\.[a-z][a-z0-9\-]+[a-z0-9]$/,
|
|
@@ -14521,7 +14521,7 @@ function bw() {
|
|
|
14521
14521
|
/^product\.[a-z][a-z0-9\-]+[a-z0-9]\.owned$/,
|
|
14522
14522
|
/^bundle\.[a-z][a-z0-9\-]+[a-z0-9]$/,
|
|
14523
14523
|
/^bundle\.[a-z][a-z0-9\-]+[a-z0-9]\.has_discount(_description)?$/
|
|
14524
|
-
], l = j({}), u =
|
|
14524
|
+
], l = j({}), u = K(() => l.value.user || []), c = K(() => l.value.cart || []), d = K(() => l.value.product || []), f = K(() => l.value.bundle || []), h = Qe(), { currency: p, items: v } = Wn(), _ = s1(), k = Qy();
|
|
14525
14525
|
Ke([r, u, h.user], ([U, F, I]) => {
|
|
14526
14526
|
if (U) {
|
|
14527
14527
|
for (const y of U)
|
|
@@ -14780,9 +14780,9 @@ function gw() {
|
|
|
14780
14780
|
if (Je("Link was clicked:", o, s, yu), o.tagName === "A" && s && ys.test(s)) {
|
|
14781
14781
|
r.preventDefault(), r.stopPropagation();
|
|
14782
14782
|
const i = new URLSearchParams(s.slice(s.indexOf("?"))), a = i.get("mb_intent");
|
|
14783
|
-
if (a && Object.values(
|
|
14783
|
+
if (a && Object.values(G).includes(a)) {
|
|
14784
14784
|
const l = Object.fromEntries([...i.entries()].filter(([u]) => u.startsWith("mb_")).map(([u, c]) => [u.substring(3), c]));
|
|
14785
|
-
if (a ===
|
|
14785
|
+
if (a === G.Checkout && l.complete)
|
|
14786
14786
|
return;
|
|
14787
14787
|
Je("Parsed intent, invoking..", a, l), yu[a](l);
|
|
14788
14788
|
}
|
|
@@ -14861,7 +14861,7 @@ const $e = {
|
|
|
14861
14861
|
format: {},
|
|
14862
14862
|
autodetect: []
|
|
14863
14863
|
};
|
|
14864
|
-
class
|
|
14864
|
+
class ee {
|
|
14865
14865
|
constructor(...t) {
|
|
14866
14866
|
const n = this;
|
|
14867
14867
|
if (Le(t[0]) === "object" && t[0].constructor && t[0].constructor === this.constructor)
|
|
@@ -14886,7 +14886,7 @@ class Q {
|
|
|
14886
14886
|
return Le(this.hex) == "function" ? this.hex() : `[${this._rgb.join(",")}]`;
|
|
14887
14887
|
}
|
|
14888
14888
|
}
|
|
14889
|
-
const Ew = "3.1.2", Me = (...e) => new
|
|
14889
|
+
const Ew = "3.1.2", Me = (...e) => new ee(...e);
|
|
14890
14890
|
Me.version = Ew;
|
|
14891
14891
|
const Jo = {
|
|
14892
14892
|
aliceblue: "#f0f8ff",
|
|
@@ -15070,7 +15070,7 @@ const Jo = {
|
|
|
15070
15070
|
return `#${a}`;
|
|
15071
15071
|
}
|
|
15072
15072
|
};
|
|
15073
|
-
|
|
15073
|
+
ee.prototype.name = function() {
|
|
15074
15074
|
const e = em(this._rgb, "rgb");
|
|
15075
15075
|
for (let t of Object.keys(Jo))
|
|
15076
15076
|
if (Jo[t] === e) return t.toLowerCase();
|
|
@@ -15087,10 +15087,10 @@ $e.autodetect.push({
|
|
|
15087
15087
|
return "named";
|
|
15088
15088
|
}
|
|
15089
15089
|
});
|
|
15090
|
-
|
|
15091
|
-
return e !== void 0 && Le(e) === "number" ? t ? (this._rgb[3] = e, this) : new
|
|
15090
|
+
ee.prototype.alpha = function(e, t = !1) {
|
|
15091
|
+
return e !== void 0 && Le(e) === "number" ? t ? (this._rgb[3] = e, this) : new ee([this._rgb[0], this._rgb[1], this._rgb[2], e], "rgb") : this._rgb[3];
|
|
15092
15092
|
};
|
|
15093
|
-
|
|
15093
|
+
ee.prototype.clipped = function() {
|
|
15094
15094
|
return this._rgb._clipped || !1;
|
|
15095
15095
|
};
|
|
15096
15096
|
const Bn = {
|
|
@@ -15229,10 +15229,10 @@ const nm = (e, t, n) => {
|
|
|
15229
15229
|
let R = f * o.m00 + h * o.m10 + p * o.m20, W = f * o.m01 + h * o.m11 + p * o.m21, U = f * o.m02 + h * o.m12 + p * o.m22;
|
|
15230
15230
|
return R *= v / u, W *= _ / c, U *= k / d, f = R * s.m00 + W * s.m10 + U * s.m20, h = R * s.m01 + W * s.m11 + U * s.m21, p = R * s.m02 + W * s.m12 + U * s.m22, [f, h, p];
|
|
15231
15231
|
};
|
|
15232
|
-
|
|
15232
|
+
ee.prototype.lab = function() {
|
|
15233
15233
|
return ic(this._rgb);
|
|
15234
15234
|
};
|
|
15235
|
-
const Nw = (...e) => new
|
|
15235
|
+
const Nw = (...e) => new ee(...e, "lab");
|
|
15236
15236
|
Object.assign(Me, { lab: Nw, getLabWhitePoint: ci, setLabWhitePoint: tr });
|
|
15237
15237
|
$e.format.lab = sc;
|
|
15238
15238
|
$e.autodetect.push({
|
|
@@ -15242,16 +15242,16 @@ $e.autodetect.push({
|
|
|
15242
15242
|
return "lab";
|
|
15243
15243
|
}
|
|
15244
15244
|
});
|
|
15245
|
-
|
|
15245
|
+
ee.prototype.darken = function(e = 1) {
|
|
15246
15246
|
const t = this, n = t.lab();
|
|
15247
|
-
return n[0] -= Bn.Kn * e, new
|
|
15247
|
+
return n[0] -= Bn.Kn * e, new ee(n, "lab").alpha(t.alpha(), !0);
|
|
15248
15248
|
};
|
|
15249
|
-
|
|
15249
|
+
ee.prototype.brighten = function(e = 1) {
|
|
15250
15250
|
return this.darken(-e);
|
|
15251
15251
|
};
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15252
|
+
ee.prototype.darker = ee.prototype.darken;
|
|
15253
|
+
ee.prototype.brighter = ee.prototype.brighten;
|
|
15254
|
+
ee.prototype.get = function(e) {
|
|
15255
15255
|
const [t, n] = e.split("."), r = this[t]();
|
|
15256
15256
|
if (n) {
|
|
15257
15257
|
const o = t.indexOf(n) - (t.substr(0, 2) === "ok" ? 2 : 0);
|
|
@@ -15261,18 +15261,18 @@ Q.prototype.get = function(e) {
|
|
|
15261
15261
|
return r;
|
|
15262
15262
|
};
|
|
15263
15263
|
const { pow: Pw } = Math, Tw = 1e-7, $w = 20;
|
|
15264
|
-
|
|
15264
|
+
ee.prototype.luminance = function(e, t = "rgb") {
|
|
15265
15265
|
if (e !== void 0 && Le(e) === "number") {
|
|
15266
15266
|
if (e === 0)
|
|
15267
|
-
return new
|
|
15267
|
+
return new ee([0, 0, 0, this._rgb[3]], "rgb");
|
|
15268
15268
|
if (e === 1)
|
|
15269
|
-
return new
|
|
15269
|
+
return new ee([255, 255, 255, this._rgb[3]], "rgb");
|
|
15270
15270
|
let n = this.luminance(), r = $w;
|
|
15271
15271
|
const o = (i, a) => {
|
|
15272
15272
|
const l = i.interpolate(a, 0.5, t), u = l.luminance();
|
|
15273
15273
|
return Math.abs(e - u) < Tw || !r-- ? l : u > e ? o(i, l) : o(l, a);
|
|
15274
|
-
}, s = (n > e ? o(new
|
|
15275
|
-
return new
|
|
15274
|
+
}, s = (n > e ? o(new ee([0, 0, 0]), this) : o(this, new ee([255, 255, 255]))).rgb();
|
|
15275
|
+
return new ee([...s, this._rgb[3]]);
|
|
15276
15276
|
}
|
|
15277
15277
|
return Aw(...this._rgb.slice(0, 3));
|
|
15278
15278
|
};
|
|
@@ -15280,16 +15280,16 @@ const Aw = (e, t, n) => (e = Pl(e), t = Pl(t), n = Pl(n), 0.2126 * e + 0.7152 *
|
|
|
15280
15280
|
let o = r[0] || "lrgb";
|
|
15281
15281
|
if (!Pt[o] && !r.length && (o = Object.keys(Pt)[0]), !Pt[o])
|
|
15282
15282
|
throw new Error(`interpolation mode ${o} is not defined`);
|
|
15283
|
-
return Le(e) !== "object" && (e = new
|
|
15283
|
+
return Le(e) !== "object" && (e = new ee(e)), Le(t) !== "object" && (t = new ee(t)), Pt[o](e, t, n).alpha(
|
|
15284
15284
|
e.alpha() + n * (t.alpha() - e.alpha())
|
|
15285
15285
|
);
|
|
15286
15286
|
};
|
|
15287
|
-
|
|
15287
|
+
ee.prototype.mix = ee.prototype.interpolate = function(e, t = 0.5, ...n) {
|
|
15288
15288
|
return Qo(this, e, t, ...n);
|
|
15289
15289
|
};
|
|
15290
|
-
|
|
15290
|
+
ee.prototype.premultiply = function(e = !1) {
|
|
15291
15291
|
const t = this._rgb, n = t[3];
|
|
15292
|
-
return e ? (this._rgb = [t[0] * n, t[1] * n, t[2] * n, n], this) : new
|
|
15292
|
+
return e ? (this._rgb = [t[0] * n, t[1] * n, t[2] * n, n], this) : new ee([t[0] * n, t[1] * n, t[2] * n, n], "rgb");
|
|
15293
15293
|
};
|
|
15294
15294
|
const { sin: Dw, cos: Iw } = Math, rm = (...e) => {
|
|
15295
15295
|
let [t, n, r] = Ie(e, "lch");
|
|
@@ -15309,13 +15309,13 @@ const { sin: Dw, cos: Iw } = Math, rm = (...e) => {
|
|
|
15309
15309
|
const [t, n, r, ...o] = Ie(e, "rgb"), [s, i, a] = ic(t, n, r), [l, u, c] = om(s, i, a);
|
|
15310
15310
|
return [l, u, c, ...o.length > 0 && o[0] < 1 ? [o[0]] : []];
|
|
15311
15311
|
};
|
|
15312
|
-
|
|
15312
|
+
ee.prototype.lch = function() {
|
|
15313
15313
|
return lc(this._rgb);
|
|
15314
15314
|
};
|
|
15315
|
-
|
|
15315
|
+
ee.prototype.hcl = function() {
|
|
15316
15316
|
return Jp(lc(this._rgb));
|
|
15317
15317
|
};
|
|
15318
|
-
const jw = (...e) => new
|
|
15318
|
+
const jw = (...e) => new ee(...e, "lch"), Uw = (...e) => new ee(...e, "hcl");
|
|
15319
15319
|
Object.assign(Me, { lch: jw, hcl: Uw });
|
|
15320
15320
|
$e.format.lch = ac;
|
|
15321
15321
|
$e.format.hcl = Mw;
|
|
@@ -15328,14 +15328,14 @@ $e.format.hcl = Mw;
|
|
|
15328
15328
|
}
|
|
15329
15329
|
})
|
|
15330
15330
|
);
|
|
15331
|
-
|
|
15331
|
+
ee.prototype.saturate = function(e = 1) {
|
|
15332
15332
|
const t = this, n = t.lch();
|
|
15333
|
-
return n[1] += Bn.Kn * e, n[1] < 0 && (n[1] = 0), new
|
|
15333
|
+
return n[1] += Bn.Kn * e, n[1] < 0 && (n[1] = 0), new ee(n, "lch").alpha(t.alpha(), !0);
|
|
15334
15334
|
};
|
|
15335
|
-
|
|
15335
|
+
ee.prototype.desaturate = function(e = 1) {
|
|
15336
15336
|
return this.saturate(-e);
|
|
15337
15337
|
};
|
|
15338
|
-
|
|
15338
|
+
ee.prototype.set = function(e, t, n = !1) {
|
|
15339
15339
|
const [r, o] = e.split("."), s = this[r]();
|
|
15340
15340
|
if (o) {
|
|
15341
15341
|
const i = r.indexOf(o) - (r.substr(0, 2) === "ok" ? 2 : 0);
|
|
@@ -15361,22 +15361,22 @@ Q.prototype.set = function(e, t, n = !1) {
|
|
|
15361
15361
|
s[i] = t;
|
|
15362
15362
|
else
|
|
15363
15363
|
throw new Error("unsupported value for Color.set");
|
|
15364
|
-
const a = new
|
|
15364
|
+
const a = new ee(s, r);
|
|
15365
15365
|
return n ? (this._rgb = a._rgb, this) : a;
|
|
15366
15366
|
}
|
|
15367
15367
|
throw new Error(`unknown channel ${o} in mode ${r}`);
|
|
15368
15368
|
} else
|
|
15369
15369
|
return s;
|
|
15370
15370
|
};
|
|
15371
|
-
|
|
15371
|
+
ee.prototype.tint = function(e = 0.5, ...t) {
|
|
15372
15372
|
return Qo(this, "white", e, ...t);
|
|
15373
15373
|
};
|
|
15374
|
-
|
|
15374
|
+
ee.prototype.shade = function(e = 0.5, ...t) {
|
|
15375
15375
|
return Qo(this, "black", e, ...t);
|
|
15376
15376
|
};
|
|
15377
15377
|
const Bw = (e, t, n) => {
|
|
15378
15378
|
const r = e._rgb, o = t._rgb;
|
|
15379
|
-
return new
|
|
15379
|
+
return new ee(
|
|
15380
15380
|
r[0] + n * (o[0] - r[0]),
|
|
15381
15381
|
r[1] + n * (o[1] - r[1]),
|
|
15382
15382
|
r[2] + n * (o[2] - r[2]),
|
|
@@ -15386,7 +15386,7 @@ const Bw = (e, t, n) => {
|
|
|
15386
15386
|
Pt.rgb = Bw;
|
|
15387
15387
|
const { sqrt: Tl, pow: Oo } = Math, Fw = (e, t, n) => {
|
|
15388
15388
|
const [r, o, s] = e._rgb, [i, a, l] = t._rgb;
|
|
15389
|
-
return new
|
|
15389
|
+
return new ee(
|
|
15390
15390
|
Tl(Oo(r, 2) * (1 - n) + Oo(i, 2) * n),
|
|
15391
15391
|
Tl(Oo(o, 2) * (1 - n) + Oo(a, 2) * n),
|
|
15392
15392
|
Tl(Oo(s, 2) * (1 - n) + Oo(l, 2) * n),
|
|
@@ -15396,7 +15396,7 @@ const { sqrt: Tl, pow: Oo } = Math, Fw = (e, t, n) => {
|
|
|
15396
15396
|
Pt.lrgb = Fw;
|
|
15397
15397
|
const zw = (e, t, n) => {
|
|
15398
15398
|
const r = e.lab(), o = t.lab();
|
|
15399
|
-
return new
|
|
15399
|
+
return new ee(
|
|
15400
15400
|
r[0] + n * (o[0] - r[0]),
|
|
15401
15401
|
r[1] + n * (o[1] - r[1]),
|
|
15402
15402
|
r[2] + n * (o[2] - r[2]),
|
|
@@ -15410,7 +15410,7 @@ const is = (e, t, n, r) => {
|
|
|
15410
15410
|
let i, a, l, u, c, d;
|
|
15411
15411
|
(r.substr(0, 1) === "h" || r === "oklch") && ([i, l, c] = o, [a, u, d] = s);
|
|
15412
15412
|
let f, h, p, v;
|
|
15413
|
-
return !isNaN(i) && !isNaN(a) ? (a > i && a - i > 180 ? v = a - (i + 360) : a < i && i - a > 180 ? v = a + 360 - i : v = a - i, h = i + n * v) : isNaN(i) ? isNaN(a) ? h = Number.NaN : (h = a, (c == 1 || c == 0) && r != "hsv" && (f = u)) : (h = i, (d == 1 || d == 0) && r != "hsv" && (f = l)), f === void 0 && (f = l + n * (u - l)), p = c + n * (d - c), r === "oklch" ? new
|
|
15413
|
+
return !isNaN(i) && !isNaN(a) ? (a > i && a - i > 180 ? v = a - (i + 360) : a < i && i - a > 180 ? v = a + 360 - i : v = a - i, h = i + n * v) : isNaN(i) ? isNaN(a) ? h = Number.NaN : (h = a, (c == 1 || c == 0) && r != "hsv" && (f = u)) : (h = i, (d == 1 || d == 0) && r != "hsv" && (f = l)), f === void 0 && (f = l + n * (u - l)), p = c + n * (d - c), r === "oklch" ? new ee([p, f, h], r) : new ee([h, f, p], r);
|
|
15414
15414
|
}, sm = (e, t, n) => is(e, t, n, "lch");
|
|
15415
15415
|
Pt.lch = sm;
|
|
15416
15416
|
Pt.hcl = sm;
|
|
@@ -15424,10 +15424,10 @@ const Hw = (e) => {
|
|
|
15424
15424
|
const [t, n, r] = Ie(e, "rgb");
|
|
15425
15425
|
return (t << 16) + (n << 8) + r;
|
|
15426
15426
|
};
|
|
15427
|
-
|
|
15427
|
+
ee.prototype.num = function() {
|
|
15428
15428
|
return qw(this._rgb);
|
|
15429
15429
|
};
|
|
15430
|
-
const Ww = (...e) => new
|
|
15430
|
+
const Ww = (...e) => new ee(...e, "num");
|
|
15431
15431
|
Object.assign(Me, { num: Ww });
|
|
15432
15432
|
$e.format.num = Hw;
|
|
15433
15433
|
$e.autodetect.push({
|
|
@@ -15439,7 +15439,7 @@ $e.autodetect.push({
|
|
|
15439
15439
|
});
|
|
15440
15440
|
const Zw = (e, t, n) => {
|
|
15441
15441
|
const r = e.num(), o = t.num();
|
|
15442
|
-
return new
|
|
15442
|
+
return new ee(r + n * (o - r), "num");
|
|
15443
15443
|
};
|
|
15444
15444
|
Pt.num = Zw;
|
|
15445
15445
|
const { floor: Yw } = Math, Gw = (...e) => {
|
|
@@ -15479,10 +15479,10 @@ const { floor: Yw } = Math, Gw = (...e) => {
|
|
|
15479
15479
|
let u;
|
|
15480
15480
|
return i === 0 ? u = Number.NaN : (t === s && (u = (n - r) / i), n === s && (u = 2 + (r - t) / i), r === s && (u = 4 + (t - n) / i), u *= 60, u < 0 && (u += 360)), [u, a, l];
|
|
15481
15481
|
};
|
|
15482
|
-
|
|
15482
|
+
ee.prototype.hcg = function() {
|
|
15483
15483
|
return Kw(this._rgb);
|
|
15484
15484
|
};
|
|
15485
|
-
const Xw = (...e) => new
|
|
15485
|
+
const Xw = (...e) => new ee(...e, "hcg");
|
|
15486
15486
|
Me.hcg = Xw;
|
|
15487
15487
|
$e.format.hcg = Gw;
|
|
15488
15488
|
$e.autodetect.push({
|
|
@@ -15505,10 +15505,10 @@ const { cos: So } = Math, Qw = (...e) => {
|
|
|
15505
15505
|
const s = e2(t, n, r), i = (t + n + r) / 3, a = i > 0 ? 1 - s / i : 0;
|
|
15506
15506
|
return a === 0 ? o = NaN : (o = (t - n + (t - r)) / 2, o /= t2((t - n) * (t - n) + (t - r) * (n - r)), o = n2(o), r > n && (o = Qn - o), o /= Qn), [o * 360, a, i];
|
|
15507
15507
|
};
|
|
15508
|
-
|
|
15508
|
+
ee.prototype.hsi = function() {
|
|
15509
15509
|
return r2(this._rgb);
|
|
15510
15510
|
};
|
|
15511
|
-
const o2 = (...e) => new
|
|
15511
|
+
const o2 = (...e) => new ee(...e, "hsi");
|
|
15512
15512
|
Me.hsi = o2;
|
|
15513
15513
|
$e.format.hsi = Qw;
|
|
15514
15514
|
$e.autodetect.push({
|
|
@@ -15542,10 +15542,10 @@ const gu = (...e) => {
|
|
|
15542
15542
|
let a, l;
|
|
15543
15543
|
return s === o ? (a = 0, l = Number.NaN) : a = i < 0.5 ? (s - o) / (s + o) : (s - o) / (2 - s - o), t == s ? l = (n - r) / (s - o) : n == s ? l = 2 + (r - t) / (s - o) : r == s && (l = 4 + (t - n) / (s - o)), l *= 60, l < 0 && (l += 360), e.length > 3 && e[3] !== void 0 ? [l, a, i, e[3]] : [l, a, i];
|
|
15544
15544
|
};
|
|
15545
|
-
|
|
15545
|
+
ee.prototype.hsl = function() {
|
|
15546
15546
|
return im(this._rgb);
|
|
15547
15547
|
};
|
|
15548
|
-
const i2 = (...e) => new
|
|
15548
|
+
const i2 = (...e) => new ee(...e, "hsl");
|
|
15549
15549
|
Me.hsl = i2;
|
|
15550
15550
|
$e.format.hsl = gu;
|
|
15551
15551
|
$e.autodetect.push({
|
|
@@ -15594,10 +15594,10 @@ const { floor: l2 } = Math, u2 = (...e) => {
|
|
|
15594
15594
|
let a, l, u;
|
|
15595
15595
|
return u = s / 255, s === 0 ? (a = Number.NaN, l = 0) : (l = i / s, t === s && (a = (n - r) / i), n === s && (a = 2 + (r - t) / i), r === s && (a = 4 + (t - n) / i), a *= 60, a < 0 && (a += 360)), [a, l, u];
|
|
15596
15596
|
};
|
|
15597
|
-
|
|
15597
|
+
ee.prototype.hsv = function() {
|
|
15598
15598
|
return f2(this._rgb);
|
|
15599
15599
|
};
|
|
15600
|
-
const h2 = (...e) => new
|
|
15600
|
+
const h2 = (...e) => new ee(...e, "hsv");
|
|
15601
15601
|
Me.hsv = h2;
|
|
15602
15602
|
$e.format.hsv = u2;
|
|
15603
15603
|
$e.autodetect.push({
|
|
@@ -15656,10 +15656,10 @@ function b2(e) {
|
|
|
15656
15656
|
r.map((o) => Math.cbrt(o))
|
|
15657
15657
|
);
|
|
15658
15658
|
}
|
|
15659
|
-
|
|
15659
|
+
ee.prototype.oklab = function() {
|
|
15660
15660
|
return cc(this._rgb);
|
|
15661
15661
|
};
|
|
15662
|
-
const g2 = (...e) => new
|
|
15662
|
+
const g2 = (...e) => new ee(...e, "oklab");
|
|
15663
15663
|
Object.assign(Me, { oklab: g2 });
|
|
15664
15664
|
$e.format.oklab = uc;
|
|
15665
15665
|
$e.autodetect.push({
|
|
@@ -15671,7 +15671,7 @@ $e.autodetect.push({
|
|
|
15671
15671
|
});
|
|
15672
15672
|
const v2 = (e, t, n) => {
|
|
15673
15673
|
const r = e.oklab(), o = t.oklab();
|
|
15674
|
-
return new
|
|
15674
|
+
return new ee(
|
|
15675
15675
|
r[0] + n * (o[0] - r[0]),
|
|
15676
15676
|
r[1] + n * (o[1] - r[1]),
|
|
15677
15677
|
r[2] + n * (o[2] - r[2]),
|
|
@@ -15689,7 +15689,7 @@ const { pow: $l, sqrt: Al, PI: Dl, cos: Td, sin: $d, atan2: _2 } = Math, w2 = (e
|
|
|
15689
15689
|
});
|
|
15690
15690
|
if (n.forEach((d, f) => {
|
|
15691
15691
|
n[f] *= o;
|
|
15692
|
-
}), e = e.map((d) => new
|
|
15692
|
+
}), e = e.map((d) => new ee(d)), t === "lrgb")
|
|
15693
15693
|
return E2(e, n);
|
|
15694
15694
|
const s = e.shift(), i = s.get(t), a = [];
|
|
15695
15695
|
let l = 0, u = 0;
|
|
@@ -15718,14 +15718,14 @@ const { pow: $l, sqrt: Al, PI: Dl, cos: Td, sin: $d, atan2: _2 } = Math, w2 = (e
|
|
|
15718
15718
|
i[d] = f;
|
|
15719
15719
|
} else
|
|
15720
15720
|
i[d] = i[d] / a[d];
|
|
15721
|
-
return c /= r, new
|
|
15721
|
+
return c /= r, new ee(i, t).alpha(c > 0.99999 ? 1 : c, !0);
|
|
15722
15722
|
}, E2 = (e, t) => {
|
|
15723
15723
|
const n = e.length, r = [0, 0, 0, 0];
|
|
15724
15724
|
for (let o = 0; o < e.length; o++) {
|
|
15725
15725
|
const s = e[o], i = t[o] / n, a = s._rgb;
|
|
15726
15726
|
r[0] += $l(a[0], 2) * i, r[1] += $l(a[1], 2) * i, r[2] += $l(a[2], 2) * i, r[3] += a[3] * i;
|
|
15727
15727
|
}
|
|
15728
|
-
return r[0] = Al(r[0]), r[1] = Al(r[1]), r[2] = Al(r[2]), r[3] > 0.9999999 && (r[3] = 1), new
|
|
15728
|
+
return r[0] = Al(r[0]), r[1] = Al(r[1]), r[2] = Al(r[2]), r[3] > 0.9999999 && (r[3] = 1), new ee(oc(r));
|
|
15729
15729
|
}, { pow: k2 } = Math;
|
|
15730
15730
|
function Ta(e) {
|
|
15731
15731
|
let t = "rgb", n = Me("#ccc"), r = 0, o = [0, 1], s = [], i = [0, 0], a = !1, l = [], u = !1, c = 0, d = 1, f = !1, h = {}, p = !0, v = 1;
|
|
@@ -15895,17 +15895,17 @@ const O2 = function(e) {
|
|
|
15895
15895
|
return t;
|
|
15896
15896
|
}, S2 = function(e) {
|
|
15897
15897
|
let t, n, r, o;
|
|
15898
|
-
if (e = e.map((s) => new
|
|
15898
|
+
if (e = e.map((s) => new ee(s)), e.length === 2)
|
|
15899
15899
|
[n, r] = e.map((s) => s.lab()), t = function(s) {
|
|
15900
15900
|
const i = [0, 1, 2].map((a) => n[a] + s * (r[a] - n[a]));
|
|
15901
|
-
return new
|
|
15901
|
+
return new ee(i, "lab");
|
|
15902
15902
|
};
|
|
15903
15903
|
else if (e.length === 3)
|
|
15904
15904
|
[n, r, o] = e.map((s) => s.lab()), t = function(s) {
|
|
15905
15905
|
const i = [0, 1, 2].map(
|
|
15906
15906
|
(a) => (1 - s) * (1 - s) * n[a] + 2 * (1 - s) * s * r[a] + s * s * o[a]
|
|
15907
15907
|
);
|
|
15908
|
-
return new
|
|
15908
|
+
return new ee(i, "lab");
|
|
15909
15909
|
};
|
|
15910
15910
|
else if (e.length === 4) {
|
|
15911
15911
|
let s;
|
|
@@ -15913,7 +15913,7 @@ const O2 = function(e) {
|
|
|
15913
15913
|
const a = [0, 1, 2].map(
|
|
15914
15914
|
(l) => (1 - i) * (1 - i) * (1 - i) * n[l] + 3 * (1 - i) * (1 - i) * i * r[l] + 3 * (1 - i) * i * i * o[l] + i * i * i * s[l]
|
|
15915
15915
|
);
|
|
15916
|
-
return new
|
|
15916
|
+
return new ee(a, "lab");
|
|
15917
15917
|
};
|
|
15918
15918
|
} else if (e.length >= 5) {
|
|
15919
15919
|
let s, i, a;
|
|
@@ -15924,7 +15924,7 @@ const O2 = function(e) {
|
|
|
15924
15924
|
0
|
|
15925
15925
|
)
|
|
15926
15926
|
);
|
|
15927
|
-
return new
|
|
15927
|
+
return new ee(c, "lab");
|
|
15928
15928
|
};
|
|
15929
15929
|
} else
|
|
15930
15930
|
throw new RangeError("No point in running bezier with only one color.");
|
|
@@ -15933,13 +15933,13 @@ const O2 = function(e) {
|
|
|
15933
15933
|
const t = S2(e);
|
|
15934
15934
|
return t.scale = () => Ta(t), t;
|
|
15935
15935
|
}, { round: am } = Math;
|
|
15936
|
-
|
|
15936
|
+
ee.prototype.rgb = function(e = !0) {
|
|
15937
15937
|
return e === !1 ? this._rgb.slice(0, 3) : this._rgb.slice(0, 3).map(am);
|
|
15938
15938
|
};
|
|
15939
|
-
|
|
15939
|
+
ee.prototype.rgba = function(e = !0) {
|
|
15940
15940
|
return this._rgb.slice(0, 4).map((t, n) => n < 3 ? e === !1 ? t : am(t) : t);
|
|
15941
15941
|
};
|
|
15942
|
-
const N2 = (...e) => new
|
|
15942
|
+
const N2 = (...e) => new ee(...e, "rgb");
|
|
15943
15943
|
Object.assign(Me, { rgb: N2 });
|
|
15944
15944
|
$e.format.rgb = (...e) => {
|
|
15945
15945
|
const t = Ie(e, "rgba");
|
|
@@ -15995,7 +15995,7 @@ const B2 = "0123456789abcdef", { floor: F2, random: z2 } = Math, H2 = () => {
|
|
|
15995
15995
|
let e = "#";
|
|
15996
15996
|
for (let t = 0; t < 6; t++)
|
|
15997
15997
|
e += B2.charAt(F2(z2() * 16));
|
|
15998
|
-
return new
|
|
15998
|
+
return new ee(e, "hex");
|
|
15999
15999
|
}, { log: Ad, pow: q2, floor: W2, abs: Z2 } = Math;
|
|
16000
16000
|
function lm(e, t = null) {
|
|
16001
16001
|
const n = {
|
|
@@ -16092,7 +16092,7 @@ function um(e, t = "equal", n = 7) {
|
|
|
16092
16092
|
return i;
|
|
16093
16093
|
}
|
|
16094
16094
|
const Y2 = (e, t) => {
|
|
16095
|
-
e = new
|
|
16095
|
+
e = new ee(e), t = new ee(t);
|
|
16096
16096
|
const n = e.luminance(), r = t.luminance();
|
|
16097
16097
|
return n > r ? (n + 0.05) / (r + 0.05) : (r + 0.05) / (n + 0.05);
|
|
16098
16098
|
};
|
|
@@ -16110,7 +16110,7 @@ const Y2 = (e, t) => {
|
|
|
16110
16110
|
* https://readtech.org/ARC/
|
|
16111
16111
|
*/
|
|
16112
16112
|
const Dd = 0.027, G2 = 5e-4, K2 = 0.1, Id = 1.14, Bi = 0.022, Md = 1.414, X2 = (e, t) => {
|
|
16113
|
-
e = new
|
|
16113
|
+
e = new ee(e), t = new ee(t), e.alpha() < 1 && (e = Qo(t, e, e.alpha(), "rgb"));
|
|
16114
16114
|
const n = Vd(...e.rgb()), r = Vd(...t.rgb()), o = n >= Bi ? n : n + Math.pow(Bi - n, Md), s = r >= Bi ? r : r + Math.pow(Bi - r, Md), i = Math.pow(s, 0.56) - Math.pow(o, 0.57), a = Math.pow(s, 0.65) - Math.pow(o, 0.62), l = Math.abs(s - o) < G2 ? 0 : o < s ? i * Id : a * Id;
|
|
16115
16115
|
return (Math.abs(l) < K2 ? 0 : l > 0 ? l - Dd : l + Dd) * 100;
|
|
16116
16116
|
};
|
|
@@ -16124,7 +16124,7 @@ function tE(e, t, n = 1, r = 1, o = 1) {
|
|
|
16124
16124
|
}, i = function(Te) {
|
|
16125
16125
|
return 2 * Ud * Te / 360;
|
|
16126
16126
|
};
|
|
16127
|
-
e = new
|
|
16127
|
+
e = new ee(e), t = new ee(t);
|
|
16128
16128
|
const [a, l, u] = Array.from(e.lab()), [c, d, f] = Array.from(t.lab()), h = (a + c) / 2, p = Kn(ft(l, 2) + ft(u, 2)), v = Kn(ft(d, 2) + ft(f, 2)), _ = (p + v) / 2, k = 0.5 * (1 - Kn(ft(_, 7) / (ft(_, 7) + ft(25, 7)))), R = l * (1 + k), W = d * (1 + k), U = Kn(ft(R, 2) + ft(u, 2)), F = Kn(ft(W, 2) + ft(f, 2)), I = (U + F) / 2, y = s(Rd(u, R)), P = s(Rd(f, W)), D = y >= 0 ? y : y + 360, A = P >= 0 ? P : P + 360, T = Ld(D - A) > 180 ? (D + A + 360) / 2 : (D + A) / 2, V = 1 - 0.17 * Fi(i(T - 30)) + 0.24 * Fi(i(2 * T)) + 0.32 * Fi(i(3 * T + 6)) - 0.2 * Fi(i(4 * T - 63));
|
|
16129
16129
|
let ie = A - D;
|
|
16130
16130
|
ie = Ld(ie) <= 180 ? ie : A <= D ? ie + 360 : ie - 360, ie = 2 * Kn(U * F) * jd(i(ie) / 2);
|
|
@@ -16134,7 +16134,7 @@ function tE(e, t, n = 1, r = 1, o = 1) {
|
|
|
16134
16134
|
return Q2(0, J2(100, we));
|
|
16135
16135
|
}
|
|
16136
16136
|
function nE(e, t, n = "lab") {
|
|
16137
|
-
e = new
|
|
16137
|
+
e = new ee(e), t = new ee(t);
|
|
16138
16138
|
const r = e.get(n), o = t.get(n);
|
|
16139
16139
|
let s = 0;
|
|
16140
16140
|
for (let i in r) {
|
|
@@ -16145,7 +16145,7 @@ function nE(e, t, n = "lab") {
|
|
|
16145
16145
|
}
|
|
16146
16146
|
const rE = (...e) => {
|
|
16147
16147
|
try {
|
|
16148
|
-
return new
|
|
16148
|
+
return new ee(...e), !0;
|
|
16149
16149
|
} catch {
|
|
16150
16150
|
return !1;
|
|
16151
16151
|
}
|
|
@@ -16225,10 +16225,10 @@ const rE = (...e) => {
|
|
|
16225
16225
|
const o = 1 - Fd(t, Fd(n, r)), s = o < 1 ? 1 / (1 - o) : 0, i = (1 - t - o) * s, a = (1 - n - o) * s, l = (1 - r - o) * s;
|
|
16226
16226
|
return [i, a, l, o];
|
|
16227
16227
|
};
|
|
16228
|
-
|
|
16228
|
+
ee.prototype.cmyk = function() {
|
|
16229
16229
|
return aE(this._rgb);
|
|
16230
16230
|
};
|
|
16231
|
-
const lE = (...e) => new
|
|
16231
|
+
const lE = (...e) => new ee(...e, "cmyk");
|
|
16232
16232
|
Object.assign(Me, { cmyk: lE });
|
|
16233
16233
|
$e.format.cmyk = iE;
|
|
16234
16234
|
$e.autodetect.push({
|
|
@@ -16374,10 +16374,10 @@ fc.test = (e) => (
|
|
|
16374
16374
|
hm.test(e) || bm.test(e) || ym.test(e) || _m.test(e) || wm.test(e) || Em.test(e) || // legacy
|
|
16375
16375
|
pm.test(e) || mm.test(e) || gm.test(e) || vm.test(e) || e === "transparent"
|
|
16376
16376
|
);
|
|
16377
|
-
|
|
16377
|
+
ee.prototype.css = function(e) {
|
|
16378
16378
|
return pE(this._rgb, e);
|
|
16379
16379
|
};
|
|
16380
|
-
const mE = (...e) => new
|
|
16380
|
+
const mE = (...e) => new ee(...e, "css");
|
|
16381
16381
|
Me.css = mE;
|
|
16382
16382
|
$e.format.css = fc;
|
|
16383
16383
|
$e.autodetect.push({
|
|
@@ -16391,16 +16391,16 @@ $e.format.gl = (...e) => {
|
|
|
16391
16391
|
const t = Ie(e, "rgba");
|
|
16392
16392
|
return t[0] *= 255, t[1] *= 255, t[2] *= 255, t;
|
|
16393
16393
|
};
|
|
16394
|
-
const bE = (...e) => new
|
|
16394
|
+
const bE = (...e) => new ee(...e, "gl");
|
|
16395
16395
|
Me.gl = bE;
|
|
16396
|
-
|
|
16396
|
+
ee.prototype.gl = function() {
|
|
16397
16397
|
const e = this._rgb;
|
|
16398
16398
|
return [e[0] / 255, e[1] / 255, e[2] / 255, e[3]];
|
|
16399
16399
|
};
|
|
16400
|
-
|
|
16400
|
+
ee.prototype.hex = function(e) {
|
|
16401
16401
|
return em(this._rgb, e);
|
|
16402
16402
|
};
|
|
16403
|
-
const gE = (...e) => new
|
|
16403
|
+
const gE = (...e) => new ee(...e, "hex");
|
|
16404
16404
|
Me.hex = gE;
|
|
16405
16405
|
$e.format.hex = Qp;
|
|
16406
16406
|
$e.autodetect.push({
|
|
@@ -16426,16 +16426,16 @@ const { log: zi } = Math, xm = (e) => {
|
|
|
16426
16426
|
}
|
|
16427
16427
|
return vE(a);
|
|
16428
16428
|
};
|
|
16429
|
-
|
|
16429
|
+
ee.prototype.temp = ee.prototype.kelvin = ee.prototype.temperature = function() {
|
|
16430
16430
|
return yE(this._rgb);
|
|
16431
16431
|
};
|
|
16432
|
-
const Ml = (...e) => new
|
|
16432
|
+
const Ml = (...e) => new ee(...e, "temp");
|
|
16433
16433
|
Object.assign(Me, { temp: Ml, kelvin: Ml, temperature: Ml });
|
|
16434
16434
|
$e.format.temp = $e.format.kelvin = $e.format.temperature = xm;
|
|
16435
|
-
|
|
16435
|
+
ee.prototype.oklch = function() {
|
|
16436
16436
|
return dm(this._rgb);
|
|
16437
16437
|
};
|
|
16438
|
-
const _E = (...e) => new
|
|
16438
|
+
const _E = (...e) => new ee(...e, "oklch");
|
|
16439
16439
|
Object.assign(Me, { oklch: _E });
|
|
16440
16440
|
$e.format.oklch = fm;
|
|
16441
16441
|
$e.autodetect.push({
|
|
@@ -16451,7 +16451,7 @@ Object.assign(Me, {
|
|
|
16451
16451
|
bezier: C2,
|
|
16452
16452
|
blend: Sn,
|
|
16453
16453
|
brewer: sE,
|
|
16454
|
-
Color:
|
|
16454
|
+
Color: ee,
|
|
16455
16455
|
colors: Jo,
|
|
16456
16456
|
contrast: Y2,
|
|
16457
16457
|
contrastAPCA: X2,
|
|
@@ -17383,7 +17383,7 @@ const tn = /* @__PURE__ */ dr(xE, [["render", SE], ["__scopeId", "data-v-687bcaf
|
|
|
17383
17383
|
},
|
|
17384
17384
|
emits: ["click"],
|
|
17385
17385
|
setup(e) {
|
|
17386
|
-
const t = e, n = me(ut), r =
|
|
17386
|
+
const t = e, n = me(ut), r = K(() => t.success ? t.successLabel ?? t.label : t.error ? t.errorLabel ?? t.label : t.label), o = K(() => t.variant ? t.variant === "secondary" ? `secondary-${(n == null ? void 0 : n.value.theme.buttons) ?? "light"}` : t.variant : "primary");
|
|
17387
17387
|
return (s, i) => {
|
|
17388
17388
|
var a, l;
|
|
17389
17389
|
return m(), q(Jl(s.type === "anchor" ? "a" : "button"), {
|
|
@@ -17455,7 +17455,7 @@ function TE(e, t) {
|
|
|
17455
17455
|
At(e.$slots, "default")
|
|
17456
17456
|
]);
|
|
17457
17457
|
}
|
|
17458
|
-
const
|
|
17458
|
+
const nt = /* @__PURE__ */ dr(NE, [["render", TE]]), $E = {}, AE = { class: "moonbase:text-subtext" };
|
|
17459
17459
|
function DE(e, t) {
|
|
17460
17460
|
return m(), O("span", AE, [
|
|
17461
17461
|
At(e.$slots, "default")
|
|
@@ -17464,7 +17464,7 @@ function DE(e, t) {
|
|
|
17464
17464
|
const Pe = /* @__PURE__ */ dr($E, [["render", DE]]), IE = { class: "moonbase:about" }, ME = /* @__PURE__ */ pe({
|
|
17465
17465
|
__name: "About",
|
|
17466
17466
|
setup(e) {
|
|
17467
|
-
const t = Ae(), n = "0.4.
|
|
17467
|
+
const t = Ae(), n = "0.4.67";
|
|
17468
17468
|
return (r, o) => (m(), O("div", IE, [
|
|
17469
17469
|
o[2] || (o[2] = lp('<svg viewBox="0 0 512 512" height="56px" width="56px"><g><path fill="currentColor" d="m493.17795,174.6135c6.257,75.3 -30.577,150.948 -100.579,190.758c-66.292,37.697 -145.001,33.405 -205.402,-4.415c0.409,-1.248 0.638,-2.577 0.638,-3.96c0,-7.026 -5.717,-12.743 -12.743,-12.743c-2.876,0 -5.524,0.969 -7.659,2.582c-18.813,-15.259 -35.159,-34.207 -47.856,-56.534c-54.663,-96.122 -21.054,-218.358 75.069,-273.021a201.218,201.218 0 0 1 33.302,-15.124c-32.428,3.667 -64.663,13.809 -94.827,30.962c-104.526,59.443 -149.511,183.241 -113.473,293.249c-3.376,3.057 -5.513,7.459 -5.513,12.362c0,9.207 7.491,16.698 16.698,16.698c0.136,0 0.267,-0.017 0.401,-0.02a252.205,252.205 0 0 0 8.683,16.691c67.869,119.344 219.635,161.073 338.98,93.204a250.416,250.416 0 0 0 32.893,-22.333c1.045,0.331 2.157,0.513 3.311,0.513c6.047,0 10.968,-4.921 10.968,-10.968c0,-0.605 -0.063,-1.196 -0.157,-1.775c69.545,-64.988 96.008,-165.054 67.266,-256.126m-446.526,25.112a5.071,5.071 0 0 1 -5.066,-5.066a5.072,5.072 0 0 1 5.066,-5.067a5.073,5.073 0 0 1 5.066,5.067a5.072,5.072 0 0 1 -5.066,5.066m-15.819,153.944c-8.238,0 -14.94,-6.702 -14.94,-14.94c0,-8.239 6.702,-14.941 14.94,-14.941c8.239,0 14.941,6.702 14.941,14.941c-0.001,8.238 -6.703,14.94 -14.941,14.94m144.258,-7.659c6.057,0 10.985,4.928 10.985,10.986c0,6.058 -4.928,10.985 -10.985,10.985c-6.058,0 -10.986,-4.928 -10.986,-10.985c0.001,-6.059 4.928,-10.986 10.986,-10.986m70.829,133.004c-5.079,0 -9.21,-4.132 -9.21,-9.21c0,-5.079 4.131,-9.21 9.21,-9.21c5.078,0 9.209,4.131 9.209,9.21c0,5.078 -4.13,9.21 -9.209,9.21m169.18,-37.289c-5.078,0 -9.209,-4.132 -9.209,-9.21s4.131,-9.209 9.209,-9.209s9.21,4.131 9.21,9.209s-4.132,9.21 -9.21,9.21"></path><path fill="currentColor" d="m144.78195,275.9675c46.746,82.201 151.278,110.943 233.48,64.197c59.864,-34.044 91.363,-98.736 86.013,-163.13a170.094,170.094 0 0 0 -5.515,-31.052c-23.045,0.567 -63.864,10.137 -104.194,61.671c-52.045,66.5 -186.285,49.153 -228.855,17.372c3.503,17.443 9.796,34.632 19.071,50.942m233.513,-65.677a8.663,8.663 0 1 1 -8.663,8.663a8.662,8.662 0 0 1 8.663,-8.663m-37.006,62.618c7.02,0 12.712,5.691 12.712,12.712s-5.692,12.712 -12.712,12.712c-7.021,0 -12.712,-5.691 -12.712,-12.712s5.691,-12.712 12.712,-12.712m-102.544,12.712a6.78,6.78 0 1 1 0,13.56a6.78,6.78 0 0 1 0,-13.56"></path><ellipse fill="currentColor" ry="7.3075" rx="7.3075" cy="152.05851" cx="251.33138"></ellipse><ellipse fill="currentColor" ry="5.35076" rx="5.35076" cy="210.31151" cx="204.89499"></ellipse><ellipse fill="currentColor" ry="12.09273" rx="12.09273" cy="200.15625" cx="302.28597"></ellipse></g></svg>', 1)),
|
|
17470
17470
|
E(g(Fp), { as: "h3" }, {
|
|
@@ -17480,7 +17480,7 @@ const Pe = /* @__PURE__ */ dr($E, [["render", DE]]), IE = { class: "moonbase:abo
|
|
|
17480
17480
|
]),
|
|
17481
17481
|
_: 1
|
|
17482
17482
|
}),
|
|
17483
|
-
E(
|
|
17483
|
+
E(nt, null, {
|
|
17484
17484
|
default: x(() => o[1] || (o[1] = [
|
|
17485
17485
|
$(" This store is using the "),
|
|
17486
17486
|
L("a", {
|
|
@@ -17645,7 +17645,7 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17645
17645
|
}, f5 = /* @__PURE__ */ pe({
|
|
17646
17646
|
__name: "AutoActivation",
|
|
17647
17647
|
setup(e) {
|
|
17648
|
-
const t = Ae(), { user: n, loaded: r } =
|
|
17648
|
+
const t = Ae(), { user: n, loaded: r } = Qe(), o = me(yo), s = t.getParameter("token"), {
|
|
17649
17649
|
activationRequest: i,
|
|
17650
17650
|
loading: a,
|
|
17651
17651
|
fulfilling: l,
|
|
@@ -17662,36 +17662,36 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17662
17662
|
user: n.value
|
|
17663
17663
|
}));
|
|
17664
17664
|
}, { deep: !0 });
|
|
17665
|
-
const p =
|
|
17665
|
+
const p = K(() => {
|
|
17666
17666
|
if (i.value)
|
|
17667
17667
|
return g(Ls(i.value.product.id));
|
|
17668
|
-
}), v =
|
|
17668
|
+
}), v = K(() => p.value && p.value.defaultVariation), { currency: _, addToCart: k, setQuantity: R } = Wn();
|
|
17669
17669
|
function W() {
|
|
17670
|
-
t.show(
|
|
17670
|
+
t.show(ae.Product, G.ViewProduct, { product_id: i.value.product.id });
|
|
17671
17671
|
}
|
|
17672
17672
|
function U() {
|
|
17673
|
-
t.enqueue(
|
|
17673
|
+
t.enqueue(ae.Activation, G.ActivateProduct, t.parameters ?? void 0), t.show(ae.Authentication, G.SignIn);
|
|
17674
17674
|
}
|
|
17675
17675
|
function F() {
|
|
17676
17676
|
if (!p.value)
|
|
17677
17677
|
return;
|
|
17678
17678
|
const y = k(p.value);
|
|
17679
17679
|
R(y, 1), t.enqueue(
|
|
17680
|
-
|
|
17681
|
-
|
|
17680
|
+
ae.Activation,
|
|
17681
|
+
G.ActivateProduct,
|
|
17682
17682
|
t.parameters
|
|
17683
|
-
), t.show(
|
|
17683
|
+
), t.show(ae.Cart, G.ViewCart);
|
|
17684
17684
|
}
|
|
17685
17685
|
function I() {
|
|
17686
17686
|
var y;
|
|
17687
17687
|
t.enqueue(
|
|
17688
|
-
|
|
17689
|
-
|
|
17688
|
+
ae.Activation,
|
|
17689
|
+
G.ActivateProduct,
|
|
17690
17690
|
{
|
|
17691
17691
|
...t.parameters,
|
|
17692
17692
|
product_id: ((y = i.value) == null ? void 0 : y.product.id) ?? ""
|
|
17693
17693
|
}
|
|
17694
|
-
), n.value ? t.show(
|
|
17694
|
+
), n.value ? t.show(ae.Customer, G.RedeemVoucher) : t.show(ae.Redeem, G.RedeemVoucher);
|
|
17695
17695
|
}
|
|
17696
17696
|
return (y, P) => {
|
|
17697
17697
|
var D, A, T, V, ie, xe, C;
|
|
@@ -17699,14 +17699,14 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17699
17699
|
g(a) || !g(r) || !((D = g(h)) != null && D.loadedStorefront) ? (m(), O("div", YE, [
|
|
17700
17700
|
E(tn)
|
|
17701
17701
|
])) : g(c) ? (m(), O("div", GE, [
|
|
17702
|
-
E(
|
|
17702
|
+
E(rt, null, {
|
|
17703
17703
|
default: x(() => P[0] || (P[0] = [
|
|
17704
17704
|
$(" Uh oh ")
|
|
17705
17705
|
])),
|
|
17706
17706
|
_: 1,
|
|
17707
17707
|
__: [0]
|
|
17708
17708
|
}),
|
|
17709
|
-
E(
|
|
17709
|
+
E(nt, null, {
|
|
17710
17710
|
default: x(() => [
|
|
17711
17711
|
$(M(g(c)), 1)
|
|
17712
17712
|
]),
|
|
@@ -17718,14 +17718,14 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17718
17718
|
product: g(i).product
|
|
17719
17719
|
}, null, 8, ["product"])) : ne("", !0),
|
|
17720
17720
|
((A = g(i)) == null ? void 0 : A.status) === g(hn).Cancelled ? (m(), O("div", JE, [
|
|
17721
|
-
E(
|
|
17721
|
+
E(rt, null, {
|
|
17722
17722
|
default: x(() => P[3] || (P[3] = [
|
|
17723
17723
|
$(" Uh oh ")
|
|
17724
17724
|
])),
|
|
17725
17725
|
_: 1,
|
|
17726
17726
|
__: [3]
|
|
17727
17727
|
}),
|
|
17728
|
-
E(
|
|
17728
|
+
E(nt, null, {
|
|
17729
17729
|
default: x(() => P[4] || (P[4] = [
|
|
17730
17730
|
$(" This activation request was cancelled, open your app to try again. ")
|
|
17731
17731
|
])),
|
|
@@ -17734,21 +17734,21 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17734
17734
|
})
|
|
17735
17735
|
])) : g(l) || g(u) ? (m(), O("div", QE, [
|
|
17736
17736
|
E(tn),
|
|
17737
|
-
E(
|
|
17737
|
+
E(nt, null, {
|
|
17738
17738
|
default: x(() => [
|
|
17739
17739
|
$(" Activating " + M(g(i).product.name) + "... ", 1)
|
|
17740
17740
|
]),
|
|
17741
17741
|
_: 1
|
|
17742
17742
|
})
|
|
17743
17743
|
])) : ((T = g(i)) == null ? void 0 : T.status) === g(hn).Completed ? (m(), O("div", e5, [
|
|
17744
|
-
E(
|
|
17744
|
+
E(rt, null, {
|
|
17745
17745
|
default: x(() => P[5] || (P[5] = [
|
|
17746
17746
|
$(" Done! ")
|
|
17747
17747
|
])),
|
|
17748
17748
|
_: 1,
|
|
17749
17749
|
__: [5]
|
|
17750
17750
|
}),
|
|
17751
|
-
E(
|
|
17751
|
+
E(nt, null, {
|
|
17752
17752
|
default: x(() => P[6] || (P[6] = [
|
|
17753
17753
|
$(" Your product is activated. "),
|
|
17754
17754
|
L("br", null, null, -1),
|
|
@@ -17759,14 +17759,14 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17759
17759
|
})
|
|
17760
17760
|
])) : (m(), O("div", t5, [
|
|
17761
17761
|
v.value ? (m(), O("div", n5, [
|
|
17762
|
-
E(
|
|
17762
|
+
E(rt, null, {
|
|
17763
17763
|
default: x(() => P[7] || (P[7] = [
|
|
17764
17764
|
$(" Option 1: Purchase product ")
|
|
17765
17765
|
])),
|
|
17766
17766
|
_: 1,
|
|
17767
17767
|
__: [7]
|
|
17768
17768
|
}),
|
|
17769
|
-
E(
|
|
17769
|
+
E(nt, null, {
|
|
17770
17770
|
default: x(() => [
|
|
17771
17771
|
$(" Buy a copy of " + M(p.value.name) + " for ", 1),
|
|
17772
17772
|
L("strong", null, M(g(Ot)(p.value.defaultVariation.price[g(_)], g(_))), 1),
|
|
@@ -17784,13 +17784,13 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17784
17784
|
])
|
|
17785
17785
|
])) : ne("", !0),
|
|
17786
17786
|
g(n) ? !g(n).ownedProducts || !((V = g(n).ownedProducts) != null && V.includes(g(i).product.id)) && !g(n).subscribedProducts || !((ie = g(n).subscribedProducts) != null && ie.includes(g(i).product.id)) ? (m(), O("div", i5, [
|
|
17787
|
-
E(
|
|
17787
|
+
E(rt, null, {
|
|
17788
17788
|
default: x(() => [
|
|
17789
17789
|
$(" Option " + M(v.value ? "2" : "1") + ": Use license ", 1)
|
|
17790
17790
|
]),
|
|
17791
17791
|
_: 1
|
|
17792
17792
|
}),
|
|
17793
|
-
E(
|
|
17793
|
+
E(nt, null, {
|
|
17794
17794
|
default: x(() => P[10] || (P[10] = [
|
|
17795
17795
|
$(" You don't own any licenses for this product. ")
|
|
17796
17796
|
])),
|
|
@@ -17798,13 +17798,13 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17798
17798
|
__: [10]
|
|
17799
17799
|
})
|
|
17800
17800
|
])) : (xe = g(n).ownedProducts) != null && xe.includes(g(i).product.id) || (C = g(n).subscribedProducts) != null && C.includes(g(i).product.id) ? (m(), O("div", a5, [
|
|
17801
|
-
E(
|
|
17801
|
+
E(rt, null, {
|
|
17802
17802
|
default: x(() => [
|
|
17803
17803
|
$(" Option " + M(v.value ? "2" : "1") + ": Use license ", 1)
|
|
17804
17804
|
]),
|
|
17805
17805
|
_: 1
|
|
17806
17806
|
}),
|
|
17807
|
-
E(
|
|
17807
|
+
E(nt, null, {
|
|
17808
17808
|
default: x(() => P[11] || (P[11] = [
|
|
17809
17809
|
$(" You don't have enough free seats on your licenses to activate this device. Either free up a seat or purchase additional licenses. ")
|
|
17810
17810
|
])),
|
|
@@ -17819,13 +17819,13 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17819
17819
|
}, null, 8, ["handler"])
|
|
17820
17820
|
])
|
|
17821
17821
|
])) : ne("", !0) : (m(), O("div", o5, [
|
|
17822
|
-
E(
|
|
17822
|
+
E(rt, null, {
|
|
17823
17823
|
default: x(() => [
|
|
17824
17824
|
$(" Option " + M(v.value ? "2" : "1") + ": Use license ", 1)
|
|
17825
17825
|
]),
|
|
17826
17826
|
_: 1
|
|
17827
17827
|
}),
|
|
17828
|
-
E(
|
|
17828
|
+
E(nt, null, {
|
|
17829
17829
|
default: x(() => P[9] || (P[9] = [
|
|
17830
17830
|
$(" Please sign in to use a license for this product. ")
|
|
17831
17831
|
])),
|
|
@@ -17841,29 +17841,29 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17841
17841
|
])
|
|
17842
17842
|
])),
|
|
17843
17843
|
g(i).trialEligibility ? (m(), O("div", u5, [
|
|
17844
|
-
E(
|
|
17844
|
+
E(rt, null, {
|
|
17845
17845
|
default: x(() => [
|
|
17846
17846
|
$(" Option " + M(v.value ? "3" : "2") + ": Start trial ", 1)
|
|
17847
17847
|
]),
|
|
17848
17848
|
_: 1
|
|
17849
17849
|
}),
|
|
17850
|
-
g(i).trialEligibility.eligible && g(i).trialEligibility.requiresAccount && !g(n) ? (m(), q(
|
|
17850
|
+
g(i).trialEligibility.eligible && g(i).trialEligibility.requiresAccount && !g(n) ? (m(), q(nt, { key: 0 }, {
|
|
17851
17851
|
default: x(() => P[12] || (P[12] = [
|
|
17852
17852
|
$(" You need to be signed in to start a trial for this product. ")
|
|
17853
17853
|
])),
|
|
17854
17854
|
_: 1,
|
|
17855
17855
|
__: [12]
|
|
17856
|
-
})) : g(i).trialEligibility.eligible && g(i).trialEligibility.existing ? (m(), q(
|
|
17856
|
+
})) : g(i).trialEligibility.eligible && g(i).trialEligibility.existing ? (m(), q(nt, { key: 1 }, {
|
|
17857
17857
|
default: x(() => [
|
|
17858
17858
|
$(" You are eligible for a " + M(g(i).trialEligibility.numberOfDaysPerProduct) + " day trial of which you have " + M(g(i).trialEligibility.numberOfDaysRemaining) + " days remaining. ", 1)
|
|
17859
17859
|
]),
|
|
17860
17860
|
_: 1
|
|
17861
|
-
})) : g(i).trialEligibility.eligible ? (m(), q(
|
|
17861
|
+
})) : g(i).trialEligibility.eligible ? (m(), q(nt, { key: 2 }, {
|
|
17862
17862
|
default: x(() => [
|
|
17863
17863
|
$(" You are eligible for a " + M(g(i).trialEligibility.numberOfDaysPerProduct) + " day trial. ", 1)
|
|
17864
17864
|
]),
|
|
17865
17865
|
_: 1
|
|
17866
|
-
})) : (m(), q(
|
|
17866
|
+
})) : (m(), q(nt, { key: 3 }, {
|
|
17867
17867
|
default: x(() => P[13] || (P[13] = [
|
|
17868
17868
|
$(" This device or product is not eligible for a trial. ")
|
|
17869
17869
|
])),
|
|
@@ -17898,14 +17898,14 @@ const es = /* @__PURE__ */ dr(zE, [["render", qE]]), WE = { class: "moonbase:pro
|
|
|
17898
17898
|
})
|
|
17899
17899
|
]))
|
|
17900
17900
|
])) : (m(), O("div", KE, [
|
|
17901
|
-
E(
|
|
17901
|
+
E(rt, null, {
|
|
17902
17902
|
default: x(() => P[1] || (P[1] = [
|
|
17903
17903
|
$(" Uh oh ")
|
|
17904
17904
|
])),
|
|
17905
17905
|
_: 1,
|
|
17906
17906
|
__: [1]
|
|
17907
17907
|
}),
|
|
17908
|
-
E(
|
|
17908
|
+
E(nt, null, {
|
|
17909
17909
|
default: x(() => P[2] || (P[2] = [
|
|
17910
17910
|
$(" Could not find activation request ")
|
|
17911
17911
|
])),
|
|
@@ -17929,7 +17929,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
17929
17929
|
},
|
|
17930
17930
|
emits: ["input", "error"],
|
|
17931
17931
|
setup(e, { emit: t }) {
|
|
17932
|
-
const n = t, r = me(ut), o = j(!1), s =
|
|
17932
|
+
const n = t, r = me(ut), o = j(!1), s = K(() => {
|
|
17933
17933
|
let u = ".dt";
|
|
17934
17934
|
return r != null && r.value && (u = r.value.activation.deviceTokenFileExtension), u.startsWith(".") ? u : `.${u}`;
|
|
17935
17935
|
});
|
|
@@ -18011,7 +18011,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18011
18011
|
}
|
|
18012
18012
|
}
|
|
18013
18013
|
return (l, u) => (m(), O("div", _5, [
|
|
18014
|
-
E(
|
|
18014
|
+
E(nt, null, {
|
|
18015
18015
|
default: x(() => u[2] || (u[2] = [
|
|
18016
18016
|
$(" Upload your machine file here to get a license file for activating offline devices. The machine file can be generated in the installed app. ")
|
|
18017
18017
|
])),
|
|
@@ -18031,14 +18031,14 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18031
18031
|
}, null, 8, ["error"])) : o.value === 1 ? (m(), O("div", w5, [
|
|
18032
18032
|
E(tn)
|
|
18033
18033
|
])) : o.value === 2 && i.value ? (m(), O("div", E5, [
|
|
18034
|
-
E(
|
|
18034
|
+
E(rt, null, {
|
|
18035
18035
|
default: x(() => u[3] || (u[3] = [
|
|
18036
18036
|
$(" Success! ")
|
|
18037
18037
|
])),
|
|
18038
18038
|
_: 1,
|
|
18039
18039
|
__: [3]
|
|
18040
18040
|
}),
|
|
18041
|
-
E(
|
|
18041
|
+
E(nt, null, {
|
|
18042
18042
|
default: x(() => u[4] || (u[4] = [
|
|
18043
18043
|
$(" Your license can be downloaded below: ")
|
|
18044
18044
|
])),
|
|
@@ -18099,7 +18099,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18099
18099
|
noReset: { type: Boolean }
|
|
18100
18100
|
},
|
|
18101
18101
|
setup(e) {
|
|
18102
|
-
const t = e, n = j(!1), r = j(!1), o = j(!1), s =
|
|
18102
|
+
const t = e, n = j(!1), r = j(!1), o = j(!1), s = K(() => t.disabled || n.value || r.value || !1);
|
|
18103
18103
|
Yt(Sm, {
|
|
18104
18104
|
working: n,
|
|
18105
18105
|
isSuccess: r,
|
|
@@ -18214,7 +18214,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18214
18214
|
__name: "SignIn",
|
|
18215
18215
|
emits: ["signedIn"],
|
|
18216
18216
|
setup(e, { emit: t }) {
|
|
18217
|
-
const n = t, r = Ae(), o =
|
|
18217
|
+
const n = t, r = Ae(), o = Qe(), s = me(ut), i = me(yo), a = j(r.getParameter("email") ?? ""), l = j(""), u = j(null);
|
|
18218
18218
|
async function c() {
|
|
18219
18219
|
u.value = null;
|
|
18220
18220
|
try {
|
|
@@ -18265,12 +18265,12 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18265
18265
|
key: 0,
|
|
18266
18266
|
label: "Create account",
|
|
18267
18267
|
variant: "subtle",
|
|
18268
|
-
handler: () => g(r).show(g(
|
|
18268
|
+
handler: () => g(r).show(g(ae).Authentication, g(G).SignUp, { email: a.value })
|
|
18269
18269
|
}, null, 8, ["handler"])) : ne("", !0),
|
|
18270
18270
|
E(Ge, {
|
|
18271
18271
|
label: "Forgot password",
|
|
18272
18272
|
variant: "subtle",
|
|
18273
|
-
handler: () => g(r).show(g(
|
|
18273
|
+
handler: () => g(r).show(g(ae).Authentication, g(G).ForgotPassword, { email: a.value })
|
|
18274
18274
|
}, null, 8, ["handler"])
|
|
18275
18275
|
]),
|
|
18276
18276
|
(p = g(s)) != null && p.auth.signIn.hint ? (m(), O("div", {
|
|
@@ -18334,7 +18334,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18334
18334
|
__name: "ConfirmAccount",
|
|
18335
18335
|
emits: ["confirmedAccount"],
|
|
18336
18336
|
setup(e, { emit: t }) {
|
|
18337
|
-
const n = t, r = Ae(), o =
|
|
18337
|
+
const n = t, r = Ae(), o = Qe(), s = me(ut), i = j(!0), a = j(null), l = j(""), u = j(!1), c = j(null), d = K(() => hc[(s == null ? void 0 : s.value.auth.passwords) ?? "default"]), f = K(() => d.value.some((p) => !p.test(l.value)));
|
|
18338
18338
|
ze(async () => {
|
|
18339
18339
|
try {
|
|
18340
18340
|
const p = r.getParameter("email"), v = r.getParameter("code");
|
|
@@ -18426,7 +18426,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18426
18426
|
__name: "ConfirmEmail",
|
|
18427
18427
|
emits: ["confirmed"],
|
|
18428
18428
|
setup(e, { emit: t }) {
|
|
18429
|
-
const n = t, r = Ae(), { user: o, confirmEmail: s } =
|
|
18429
|
+
const n = t, r = Ae(), { user: o, confirmEmail: s } = Qe(), i = j(!0), a = j(null);
|
|
18430
18430
|
return ze(async () => {
|
|
18431
18431
|
try {
|
|
18432
18432
|
const l = r.getParameter("email"), u = r.getParameter("code");
|
|
@@ -18441,7 +18441,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18441
18441
|
i.value ? (m(), O("div", F5, [
|
|
18442
18442
|
E(tn)
|
|
18443
18443
|
])) : a.value ? (m(), O("div", z5, M(a.value), 1)) : (m(), O(ge, { key: 2 }, [
|
|
18444
|
-
E(
|
|
18444
|
+
E(rt, null, {
|
|
18445
18445
|
default: x(() => u[0] || (u[0] = [
|
|
18446
18446
|
$(" Success! ")
|
|
18447
18447
|
])),
|
|
@@ -18451,7 +18451,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18451
18451
|
u[1] || (u[1] = L("p", null, " Thanks for confirming your new email. ", -1)),
|
|
18452
18452
|
g(o) ? (m(), q(Ge, {
|
|
18453
18453
|
key: 0,
|
|
18454
|
-
handler: () => g(r).show(g(
|
|
18454
|
+
handler: () => g(r).show(g(ae).Customer, g(G).ViewAccount, void 0, !0),
|
|
18455
18455
|
label: "Continue"
|
|
18456
18456
|
}, null, 8, ["handler"])) : ne("", !0)
|
|
18457
18457
|
], 64))
|
|
@@ -18468,7 +18468,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18468
18468
|
__name: "ConfirmEmailChange",
|
|
18469
18469
|
emits: ["confirmed"],
|
|
18470
18470
|
setup(e, { emit: t }) {
|
|
18471
|
-
const n = t, r = Ae(), { user: o, confirmEmailChange: s } =
|
|
18471
|
+
const n = t, r = Ae(), { user: o, confirmEmailChange: s } = Qe(), i = j(!0), a = j(null);
|
|
18472
18472
|
return ze(async () => {
|
|
18473
18473
|
try {
|
|
18474
18474
|
const l = r.getParameter("email"), u = r.getParameter("code");
|
|
@@ -18494,7 +18494,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18494
18494
|
}), G5 = ["data-visible"], K5 = /* @__PURE__ */ pe({
|
|
18495
18495
|
__name: "ForgotPassword",
|
|
18496
18496
|
setup(e) {
|
|
18497
|
-
const t = Ae(), n =
|
|
18497
|
+
const t = Ae(), n = Qe(), r = j(t.getParameter("email") ?? ""), o = j(null), s = j(!1);
|
|
18498
18498
|
async function i() {
|
|
18499
18499
|
o.value = null;
|
|
18500
18500
|
try {
|
|
@@ -18544,7 +18544,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18544
18544
|
__name: "ResetPassword",
|
|
18545
18545
|
emits: ["passwordReset"],
|
|
18546
18546
|
setup(e, { emit: t }) {
|
|
18547
|
-
const n = t, r = Ae(), o =
|
|
18547
|
+
const n = t, r = Ae(), o = Qe(), s = me(ut), i = K(() => r.getParameter("email")), a = j(""), l = j(!1), u = j(null), c = K(() => hc[(s == null ? void 0 : s.value.auth.passwords) ?? "default"]), d = K(() => c.value.some((h) => !h.test(a.value)));
|
|
18548
18548
|
ze(() => {
|
|
18549
18549
|
(!r.getParameter("email") || !r.getParameter("code")) && (u.value = "Link broken, please try again");
|
|
18550
18550
|
});
|
|
@@ -18666,7 +18666,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18666
18666
|
__name: "SignUp",
|
|
18667
18667
|
emits: ["signedUp"],
|
|
18668
18668
|
setup(e, { emit: t }) {
|
|
18669
|
-
const n = t, r = Ae(), o =
|
|
18669
|
+
const n = t, r = Ae(), o = Qe(), s = me(Lm), i = me(yo), a = me(ut), l = j(""), u = j(r.getParameter("email") ?? ""), c = j(""), d = j(!1), f = j((a == null ? void 0 : a.value.auth.signUp.marketingConsent) === Io.OptOut || (a == null ? void 0 : a.value.auth.signUp.marketingConsent) === Io.OptedInByDefault), h = j(null), p = K(() => hc[(a == null ? void 0 : a.value.auth.passwords) ?? "default"]), v = K(() => p.value.some((k) => !k.test(c.value)));
|
|
18670
18670
|
async function _() {
|
|
18671
18671
|
h.value = null;
|
|
18672
18672
|
try {
|
|
@@ -18778,7 +18778,7 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18778
18778
|
E(Ge, {
|
|
18779
18779
|
label: "I already have an account",
|
|
18780
18780
|
variant: "subtle",
|
|
18781
|
-
handler: () => g(r).show(g(
|
|
18781
|
+
handler: () => g(r).show(g(ae).Authentication, g(G).SignIn, { email: u.value })
|
|
18782
18782
|
}, null, 8, ["handler"])
|
|
18783
18783
|
];
|
|
18784
18784
|
}),
|
|
@@ -18791,25 +18791,25 @@ const jt = /* @__PURE__ */ dr(h5, [["render", m5]]), b5 = ["data-corners"], g5 =
|
|
|
18791
18791
|
}, pk = /* @__PURE__ */ pe({
|
|
18792
18792
|
__name: "Authentication",
|
|
18793
18793
|
setup(e) {
|
|
18794
|
-
const t = Ae(), { loaded: n } =
|
|
18794
|
+
const t = Ae(), { loaded: n } = Qe();
|
|
18795
18795
|
return (r, o) => (m(), O("div", fk, [
|
|
18796
18796
|
E(xi, {
|
|
18797
18797
|
name: g(t).direction === g(Xu).Forward ? "moonbase:slide-left" : "moonbase:slide-right",
|
|
18798
18798
|
mode: "out-in"
|
|
18799
18799
|
}, {
|
|
18800
18800
|
default: x(() => [
|
|
18801
|
-
g(n) ? g(t).intent === g(
|
|
18801
|
+
g(n) ? g(t).intent === g(G).SignIn ? (m(), q(M5, {
|
|
18802
18802
|
key: 1,
|
|
18803
18803
|
onSignedIn: o[0] || (o[0] = (s) => g(t).dequeue())
|
|
18804
|
-
})) : g(t).intent === g(
|
|
18804
|
+
})) : g(t).intent === g(G).SignUp ? (m(), q(dk, {
|
|
18805
18805
|
key: 2,
|
|
18806
|
-
onSignedUp: o[1] || (o[1] = (s) => g(t).next ? g(t).dequeue() : g(t).show(g(
|
|
18807
|
-
})) : g(t).intent === g(
|
|
18806
|
+
onSignedUp: o[1] || (o[1] = (s) => g(t).next ? g(t).dequeue() : g(t).show(g(ae).Customer, g(G).ViewAccount, void 0, !0))
|
|
18807
|
+
})) : g(t).intent === g(G).ConfirmAccount ? (m(), q(U5, {
|
|
18808
18808
|
key: 3,
|
|
18809
|
-
onConfirmedAccount: o[2] || (o[2] = (s) => g(t).show(g(
|
|
18810
|
-
})) : g(t).intent === g(
|
|
18809
|
+
onConfirmedAccount: o[2] || (o[2] = (s) => g(t).show(g(ae).Customer, g(G).ViewProducts, void 0, !0))
|
|
18810
|
+
})) : g(t).intent === g(G).ConfirmEmail ? (m(), q(H5, { key: 4 })) : g(t).intent === g(G).ConfirmEmailChange ? (m(), q(Y5, { key: 5 })) : g(t).intent === g(G).ForgotPassword ? (m(), q(K5, { key: 6 })) : g(t).intent === g(G).ResetPassword ? (m(), q(Q5, {
|
|
18811
18811
|
key: 7,
|
|
18812
|
-
onPasswordReset: o[3] || (o[3] = (s) => g(t).show(g(
|
|
18812
|
+
onPasswordReset: o[3] || (o[3] = (s) => g(t).show(g(ae).Customer, g(G).ViewAccount, void 0))
|
|
18813
18813
|
})) : ne("", !0) : (m(), O("div", hk, [
|
|
18814
18814
|
E(tn)
|
|
18815
18815
|
]))
|
|
@@ -18911,7 +18911,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
18911
18911
|
currency: {}
|
|
18912
18912
|
},
|
|
18913
18913
|
setup(e) {
|
|
18914
|
-
const t = e, n = Qi(t.lineItem.bundleId), r = me(ut), o = Wn(), s = j(!1), i = j(null), a =
|
|
18914
|
+
const t = e, n = Qi(t.lineItem.bundleId), r = me(ut), o = Wn(), s = j(!1), i = j(null), a = K(() => {
|
|
18915
18915
|
var l;
|
|
18916
18916
|
return ((l = t.lineItem.price) == null ? void 0 : l[o.currency.value]) === 0;
|
|
18917
18917
|
});
|
|
@@ -18966,7 +18966,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
18966
18966
|
return [
|
|
18967
18967
|
l.lineItem.variation.hasDiscount ? (m(), O("span", wk, M(g(Ot)(l.lineItem.variation.originalPrice[l.currency] * l.lineItem.quantity, l.currency)), 1)) : ne("", !0),
|
|
18968
18968
|
$(" " + M(g(Ot)(l.lineItem.variation.price[l.currency] * l.lineItem.quantity, l.currency)) + " ", 1),
|
|
18969
|
-
((k = l.lineItem.variation) == null ? void 0 : k.recurrence.type) === "Recurring" ? (m(), q(
|
|
18969
|
+
((k = l.lineItem.variation) == null ? void 0 : k.recurrence.type) === "Recurring" ? (m(), q(nt, { key: 1 }, {
|
|
18970
18970
|
default: x(() => [
|
|
18971
18971
|
$(" / " + M(g(di)(l.lineItem.variation.recurrence.cycleLength)), 1)
|
|
18972
18972
|
]),
|
|
@@ -19100,10 +19100,10 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19100
19100
|
target: {}
|
|
19101
19101
|
},
|
|
19102
19102
|
setup(e) {
|
|
19103
|
-
const t = e, n = me(ut), { addToCart: r, currency: o } = Wn(), s =
|
|
19103
|
+
const t = e, n = me(ut), { addToCart: r, currency: o } = Wn(), s = K(() => {
|
|
19104
19104
|
var l;
|
|
19105
19105
|
return (l = t.target.defaultVariation) == null ? void 0 : l.originalPrice;
|
|
19106
|
-
}), i =
|
|
19106
|
+
}), i = K(() => t.target.defaultVariation ? Su.subtract(t.target.defaultVariation.price, Fa.apply(t.offer.discount, t.target.defaultVariation.price)) : s.value), a = K(() => !Ku(s.value, i.value));
|
|
19107
19107
|
return (l, u) => (m(), O("div", Nk, [
|
|
19108
19108
|
E(St, {
|
|
19109
19109
|
url: l.target.iconUrl,
|
|
@@ -19162,7 +19162,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19162
19162
|
Ke(n, (s) => {
|
|
19163
19163
|
r.value && (r.value.style.height = s ? `${r.value.scrollHeight}px` : "0px");
|
|
19164
19164
|
});
|
|
19165
|
-
const o =
|
|
19165
|
+
const o = K(() => Math.max(36, 96 / t.targets.length * 1.5));
|
|
19166
19166
|
return (s, i) => (m(), q(nn, { class: "moonbase:cart-offer--multi-target" }, {
|
|
19167
19167
|
addon: x(() => [
|
|
19168
19168
|
L("div", {
|
|
@@ -19240,10 +19240,10 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19240
19240
|
Ke(s, (c) => {
|
|
19241
19241
|
i.value && (i.value.style.height = c ? `${i.value.scrollHeight}px` : "0px");
|
|
19242
19242
|
});
|
|
19243
|
-
const a =
|
|
19243
|
+
const a = K(() => {
|
|
19244
19244
|
var c;
|
|
19245
19245
|
return (c = t.target.defaultVariation) == null ? void 0 : c.originalPrice;
|
|
19246
|
-
}), l =
|
|
19246
|
+
}), l = K(() => t.target.defaultVariation ? Su.subtract(t.target.defaultVariation.price, Fa.apply(t.offer.discount, t.target.defaultVariation.price)) : a.value), u = K(() => !Ku(a.value, l.value));
|
|
19247
19247
|
return (c, d) => (m(), q(nn, { class: "moonbase:cart-offer" }, Ea({
|
|
19248
19248
|
default: x(() => [
|
|
19249
19249
|
E(St, {
|
|
@@ -19409,7 +19409,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19409
19409
|
currency: {}
|
|
19410
19410
|
},
|
|
19411
19411
|
setup(e) {
|
|
19412
|
-
const t = e, n = Ls(t.lineItem.productId), r = me(ut), o = Wn(), s =
|
|
19412
|
+
const t = e, n = Ls(t.lineItem.productId), r = me(ut), o = Wn(), s = K(() => {
|
|
19413
19413
|
var u;
|
|
19414
19414
|
return ((u = t.lineItem.price) == null ? void 0 : u[o.currency.value]) === 0;
|
|
19415
19415
|
});
|
|
@@ -19475,7 +19475,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19475
19475
|
return [
|
|
19476
19476
|
u.lineItem.variation.hasDiscount || a(u.lineItem) ? (m(), O("span", Xk, M(g(Ot)(u.lineItem.variation.originalPrice[u.currency] * u.lineItem.quantity, u.currency)), 1)) : ne("", !0),
|
|
19477
19477
|
$(" " + M(g(Ot)(i(u.lineItem) * u.lineItem.quantity, u.currency)) + " ", 1),
|
|
19478
|
-
((k = u.lineItem.variation) == null ? void 0 : k.recurrence.type) === "Recurring" ? (m(), q(
|
|
19478
|
+
((k = u.lineItem.variation) == null ? void 0 : k.recurrence.type) === "Recurring" ? (m(), q(nt, { key: 1 }, {
|
|
19479
19479
|
default: x(() => [
|
|
19480
19480
|
$(" / " + M(g(di)(u.lineItem.variation.recurrence.cycleLength)), 1)
|
|
19481
19481
|
]),
|
|
@@ -19505,7 +19505,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19505
19505
|
}), Qk = { class: "moonbase:cart" }, ex = ["data-background"], tx = ["data-corners"], nx = { class: "moonbase:cart-total" }, rx = { "data-error": "" }, ox = /* @__PURE__ */ pe({
|
|
19506
19506
|
__name: "Cart",
|
|
19507
19507
|
setup(e) {
|
|
19508
|
-
const t = sl(), { items: n, total: r, currency: o, checkout: s } = Wn(), i = me(ut), a = n1(), l =
|
|
19508
|
+
const t = sl(), { items: n, total: r, currency: o, checkout: s } = Wn(), i = me(ut), a = n1(), l = K(() => a.value.length === 0 ? null : a.value.find((d) => Array.isArray(d.target) ? d.target.some((f) => !f.owned) : !d.target.owned) || a.value[0]), u = j(null);
|
|
19509
19509
|
async function c() {
|
|
19510
19510
|
u.value = null;
|
|
19511
19511
|
try {
|
|
@@ -19622,7 +19622,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19622
19622
|
__name: "Account",
|
|
19623
19623
|
setup(e) {
|
|
19624
19624
|
var R, W, U;
|
|
19625
|
-
const t = Ae(), { user: n, update: r, setPassword: o, signOut: s } =
|
|
19625
|
+
const t = Ae(), { user: n, update: r, setPassword: o, signOut: s } = Qe(), i = me(yo), a = j(((R = n.value) == null ? void 0 : R.name) ?? ""), l = j(((W = n.value) == null ? void 0 : W.email) ?? ""), u = j(((U = n.value) == null ? void 0 : U.communicationPreferences) ?? {
|
|
19626
19626
|
newsletterOptIn: !1
|
|
19627
19627
|
}), c = j(null), d = j(!1), f = j(""), h = j(""), p = j(null);
|
|
19628
19628
|
async function v() {
|
|
@@ -19782,7 +19782,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19782
19782
|
L("div", null, [
|
|
19783
19783
|
E(Ho, {
|
|
19784
19784
|
variant: "subtle",
|
|
19785
|
-
onClick: (a) => g(t).show(g(
|
|
19785
|
+
onClick: (a) => g(t).show(g(ae).Product, g(G).ViewProduct, { product_id: i.id })
|
|
19786
19786
|
}, {
|
|
19787
19787
|
default: x(() => [
|
|
19788
19788
|
E(g(Zp)),
|
|
@@ -19954,7 +19954,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19954
19954
|
}, Cx = /* @__PURE__ */ pe({
|
|
19955
19955
|
__name: "Redeem",
|
|
19956
19956
|
setup(e) {
|
|
19957
|
-
const { redeem: t } = mp(), n = Ae(), r =
|
|
19957
|
+
const { redeem: t } = mp(), n = Ae(), r = Qe(), o = me(yo), s = j(null), i = j(null), a = j(n.getParameter("code") || "");
|
|
19958
19958
|
async function l() {
|
|
19959
19959
|
i.value = null;
|
|
19960
19960
|
try {
|
|
@@ -19978,7 +19978,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
19978
19978
|
]),
|
|
19979
19979
|
_: 1
|
|
19980
19980
|
}),
|
|
19981
|
-
s.value.description ? (m(), q(
|
|
19981
|
+
s.value.description ? (m(), q(rt, { key: 0 }, {
|
|
19982
19982
|
default: x(() => [
|
|
19983
19983
|
$(' "' + M(s.value.description) + '" ', 1)
|
|
19984
19984
|
]),
|
|
@@ -20001,7 +20001,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
20001
20001
|
__: [3]
|
|
20002
20002
|
})
|
|
20003
20003
|
]),
|
|
20004
|
-
E(
|
|
20004
|
+
E(rt, null, {
|
|
20005
20005
|
default: x(() => c[4] || (c[4] = [
|
|
20006
20006
|
$(" Voucher summary ")
|
|
20007
20007
|
])),
|
|
@@ -20020,7 +20020,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
20020
20020
|
quantity: f
|
|
20021
20021
|
}, null, 8, ["bundle", "quantity"]))), 128))
|
|
20022
20022
|
])) : ne("", !0),
|
|
20023
|
-
g(n).next && g(n).next[0] === g(
|
|
20023
|
+
g(n).next && g(n).next[0] === g(ae).Activation && (s.value.redeemsProducts.some((d) => {
|
|
20024
20024
|
var f, h;
|
|
20025
20025
|
return d.value.id === ((h = (f = g(n).next) == null ? void 0 : f[2]) == null ? void 0 : h.product_id);
|
|
20026
20026
|
}) || s.value.redeemsBundles.some((d) => d.value.products.some((f) => {
|
|
@@ -20041,7 +20041,7 @@ const yk = { class: "moonbase:bundle-cart-item-content" }, _k = {
|
|
|
20041
20041
|
default: x(() => {
|
|
20042
20042
|
var d;
|
|
20043
20043
|
return [
|
|
20044
|
-
E(
|
|
20044
|
+
E(nt, null, {
|
|
20045
20045
|
default: x(() => c[1] || (c[1] = [
|
|
20046
20046
|
$(" Do you have a voucher you want to redeem? "),
|
|
20047
20047
|
L("br", null, null, -1),
|
|
@@ -21475,7 +21475,7 @@ const ZO = { class: "moonbase:subscriptions" }, YO = {
|
|
|
21475
21475
|
L("div", null, [
|
|
21476
21476
|
E(Ho, {
|
|
21477
21477
|
variant: "subtle",
|
|
21478
|
-
onClick: (l) => g(t).show(g(
|
|
21478
|
+
onClick: (l) => g(t).show(g(ae).Subscription, g(G).ManageSubscription, { subscription_id: a.id })
|
|
21479
21479
|
}, {
|
|
21480
21480
|
default: x(() => [
|
|
21481
21481
|
E(g(Zp)),
|
|
@@ -21511,14 +21511,14 @@ const ZO = { class: "moonbase:subscriptions" }, YO = {
|
|
|
21511
21511
|
}), n3 = { class: "moonbase:customer" }, r3 = /* @__PURE__ */ pe({
|
|
21512
21512
|
__name: "Customer",
|
|
21513
21513
|
setup(e) {
|
|
21514
|
-
const t = Ae(), { user: n } =
|
|
21514
|
+
const t = Ae(), { user: n } = Qe(), r = me(ut), o = K(() => [
|
|
21515
21515
|
{
|
|
21516
|
-
intent:
|
|
21516
|
+
intent: G.ViewProducts,
|
|
21517
21517
|
title: "Products",
|
|
21518
21518
|
content: bx
|
|
21519
21519
|
},
|
|
21520
21520
|
{
|
|
21521
|
-
intent:
|
|
21521
|
+
intent: G.ViewSubscriptions,
|
|
21522
21522
|
title: "Subscriptions",
|
|
21523
21523
|
content: t3,
|
|
21524
21524
|
predicate: () => {
|
|
@@ -21527,16 +21527,16 @@ const ZO = { class: "moonbase:subscriptions" }, YO = {
|
|
|
21527
21527
|
}
|
|
21528
21528
|
},
|
|
21529
21529
|
{
|
|
21530
|
-
intent:
|
|
21530
|
+
intent: G.ViewAccount,
|
|
21531
21531
|
title: "Account",
|
|
21532
21532
|
content: ux
|
|
21533
21533
|
},
|
|
21534
21534
|
{
|
|
21535
|
-
intent:
|
|
21535
|
+
intent: G.RedeemVoucher,
|
|
21536
21536
|
title: "Redeem",
|
|
21537
21537
|
content: Cx
|
|
21538
21538
|
}
|
|
21539
|
-
].filter((a) => a.predicate === void 0 || a.predicate())), s =
|
|
21539
|
+
].filter((a) => a.predicate === void 0 || a.predicate())), s = K(() => o.value.findIndex((a) => a.intent === t.intent));
|
|
21540
21540
|
function i(a) {
|
|
21541
21541
|
t.intent = o.value[a].intent;
|
|
21542
21542
|
}
|
|
@@ -21589,7 +21589,7 @@ const ZO = { class: "moonbase:subscriptions" }, YO = {
|
|
|
21589
21589
|
product: {}
|
|
21590
21590
|
},
|
|
21591
21591
|
setup(e) {
|
|
21592
|
-
const t = j(!1), n = j(null), r =
|
|
21592
|
+
const t = j(!1), n = j(null), r = K(() => n.value && n.value.$el && n.value.$el.scrollHeight > n.value.$el.clientHeight);
|
|
21593
21593
|
return (o, s) => (m(), q(nn, { class: "moonbase:product-card" }, {
|
|
21594
21594
|
addon: x(() => [
|
|
21595
21595
|
L("div", {
|
|
@@ -21676,9 +21676,9 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21676
21676
|
product: {}
|
|
21677
21677
|
},
|
|
21678
21678
|
setup(e) {
|
|
21679
|
-
const t = e, n = Ae(), r =
|
|
21679
|
+
const t = e, n = Ae(), r = Qe(), o = sl(), s = me(yo), { downloadProduct: i } = go(), a = j(!1), l = j(null), u = K(() => l.value && l.value.$el && l.value.$el.scrollHeight > l.value.$el.clientHeight);
|
|
21680
21680
|
function c() {
|
|
21681
|
-
n.enqueue(
|
|
21681
|
+
n.enqueue(ae.Product, G.DownloadProduct, n.parameters ?? void 0), n.show(ae.Authentication, G.SignIn);
|
|
21682
21682
|
}
|
|
21683
21683
|
const d = [
|
|
21684
21684
|
An.Windows,
|
|
@@ -21694,7 +21694,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21694
21694
|
const h = f(), p = [
|
|
21695
21695
|
h,
|
|
21696
21696
|
...d.filter((k) => k !== h)
|
|
21697
|
-
], v =
|
|
21697
|
+
], v = K(() => p.flatMap((k) => [...(t.product.downloads ?? []).filter((R) => R.platform === k)]));
|
|
21698
21698
|
async function _(k) {
|
|
21699
21699
|
try {
|
|
21700
21700
|
await i(k), s == null || s(Zt.DownloadedProduct, {
|
|
@@ -21724,7 +21724,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21724
21724
|
}
|
|
21725
21725
|
}
|
|
21726
21726
|
return (k, R) => (m(), O("div", l3, [
|
|
21727
|
-
E(
|
|
21727
|
+
E(rt, null, {
|
|
21728
21728
|
default: x(() => [
|
|
21729
21729
|
R[1] || (R[1] = $(" Downloads ")),
|
|
21730
21730
|
E(Pe, null, {
|
|
@@ -21765,7 +21765,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21765
21765
|
])) : ne("", !0)
|
|
21766
21766
|
], 8, u3)) : ne("", !0),
|
|
21767
21767
|
k.product.downloadsNeedsUser && k.product.downloadsNeedsOwnership && !k.product.numberOfLicenses && !k.product.subscriptionLicenses ? (m(), O("div", c3, [
|
|
21768
|
-
E(
|
|
21768
|
+
E(nt, { "data-center": "" }, {
|
|
21769
21769
|
default: x(() => R[3] || (R[3] = [
|
|
21770
21770
|
$(" This product requires ownership to download ")
|
|
21771
21771
|
])),
|
|
@@ -21777,7 +21777,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21777
21777
|
handler: c
|
|
21778
21778
|
})
|
|
21779
21779
|
])) : k.product.downloadsNeedsUser && !g(r).user ? (m(), O("div", d3, [
|
|
21780
|
-
E(
|
|
21780
|
+
E(nt, { "data-center": "" }, {
|
|
21781
21781
|
default: x(() => R[4] || (R[4] = [
|
|
21782
21782
|
$(" This product requires an account to download ")
|
|
21783
21783
|
])),
|
|
@@ -21789,7 +21789,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21789
21789
|
handler: c
|
|
21790
21790
|
})
|
|
21791
21791
|
])) : k.product.downloadsNeedsOwnership && !k.product.numberOfLicenses && !k.product.subscriptionLicenses ? (m(), O("div", f3, [
|
|
21792
|
-
E(
|
|
21792
|
+
E(nt, { "data-center": "" }, {
|
|
21793
21793
|
default: x(() => R[5] || (R[5] = [
|
|
21794
21794
|
$(" This product requires ownership to download ")
|
|
21795
21795
|
])),
|
|
@@ -21815,7 +21815,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21815
21815
|
]),
|
|
21816
21816
|
default: x(() => [
|
|
21817
21817
|
L("div", null, [
|
|
21818
|
-
E(
|
|
21818
|
+
E(rt, null, {
|
|
21819
21819
|
default: x(() => [
|
|
21820
21820
|
$(M(W.name), 1)
|
|
21821
21821
|
]),
|
|
@@ -21832,7 +21832,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21832
21832
|
_: 2
|
|
21833
21833
|
}, 1024))), 128))
|
|
21834
21834
|
]),
|
|
21835
|
-
v.value.length === 0 ? (m(), q(
|
|
21835
|
+
v.value.length === 0 ? (m(), q(nt, {
|
|
21836
21836
|
key: 0,
|
|
21837
21837
|
"data-center": ""
|
|
21838
21838
|
}, {
|
|
@@ -21912,7 +21912,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21912
21912
|
}
|
|
21913
21913
|
}
|
|
21914
21914
|
return (f, h) => (m(), O("div", g3, [
|
|
21915
|
-
E(
|
|
21915
|
+
E(rt, null, {
|
|
21916
21916
|
default: x(() => [
|
|
21917
21917
|
h[0] || (h[0] = $(" Licenses ")),
|
|
21918
21918
|
f.product.maxActivations && f.product.maxActivations > 0 ? (m(), q(Pe, { key: 0 }, {
|
|
@@ -21928,7 +21928,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21928
21928
|
c.value ? (m(), O("div", v3, [
|
|
21929
21929
|
E(tn)
|
|
21930
21930
|
])) : !f.product.numberOfLicenses && !f.product.subscriptionLicenses ? (m(), O("div", y3, [
|
|
21931
|
-
E(
|
|
21931
|
+
E(nt, null, {
|
|
21932
21932
|
default: x(() => h[1] || (h[1] = [
|
|
21933
21933
|
$(" You don't own any licenses for this product yet ")
|
|
21934
21934
|
])),
|
|
@@ -21946,7 +21946,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21946
21946
|
c.value ? ne("", !0) : (m(), O(ge, { key: 2 }, [
|
|
21947
21947
|
f.product.maxActivations && f.product.maxActivations > 0 && !f.product.currentActivations ? (m(), O("div", _3, [
|
|
21948
21948
|
E(g(Pd)),
|
|
21949
|
-
E(
|
|
21949
|
+
E(rt, null, {
|
|
21950
21950
|
default: x(() => h[2] || (h[2] = [
|
|
21951
21951
|
$(" No activations yet ")
|
|
21952
21952
|
])),
|
|
@@ -21968,7 +21968,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21968
21968
|
_: 1,
|
|
21969
21969
|
__: [3]
|
|
21970
21970
|
}),
|
|
21971
|
-
E(
|
|
21971
|
+
E(rt, null, {
|
|
21972
21972
|
default: x(() => [
|
|
21973
21973
|
$(M(p.name), 1)
|
|
21974
21974
|
]),
|
|
@@ -21983,7 +21983,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21983
21983
|
_: 1,
|
|
21984
21984
|
__: [4]
|
|
21985
21985
|
}),
|
|
21986
|
-
E(
|
|
21986
|
+
E(rt, null, {
|
|
21987
21987
|
default: x(() => [
|
|
21988
21988
|
$(M(p.activationMethod), 1)
|
|
21989
21989
|
]),
|
|
@@ -21998,7 +21998,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
21998
21998
|
_: 1,
|
|
21999
21999
|
__: [5]
|
|
22000
22000
|
}),
|
|
22001
|
-
E(
|
|
22001
|
+
E(rt, null, {
|
|
22002
22002
|
default: x(() => [
|
|
22003
22003
|
$(M(g(WO)(p.firstValidatedAt)), 1)
|
|
22004
22004
|
]),
|
|
@@ -22026,13 +22026,13 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22026
22026
|
])) : ne("", !0),
|
|
22027
22027
|
(!u.value || u.value.length === 0) && !f.product.maxActivations && (f.product.numberOfLicenses || f.product.subscriptionLicenses) ? (m(), O("div", x3, [
|
|
22028
22028
|
E(g(Pd)),
|
|
22029
|
-
f.product.numberOfLicenses ? (m(), q(
|
|
22029
|
+
f.product.numberOfLicenses ? (m(), q(rt, { key: 0 }, {
|
|
22030
22030
|
default: x(() => [
|
|
22031
22031
|
$(" You own " + M(f.product.numberOfLicenses) + " license" + M(f.product.numberOfLicenses !== 1 ? "s" : "") + " for this product ", 1)
|
|
22032
22032
|
]),
|
|
22033
22033
|
_: 1
|
|
22034
22034
|
})) : ne("", !0),
|
|
22035
|
-
f.product.subscriptionLicenses ? (m(), q(
|
|
22035
|
+
f.product.subscriptionLicenses ? (m(), q(rt, { key: 1 }, {
|
|
22036
22036
|
default: x(() => [
|
|
22037
22037
|
$(" You have " + M(f.product.subscriptionLicenses) + " subscription license" + M(f.product.subscriptionLicenses !== 1 ? "s" : "") + " for this product ", 1)
|
|
22038
22038
|
]),
|
|
@@ -22051,7 +22051,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22051
22051
|
]),
|
|
22052
22052
|
_: 1
|
|
22053
22053
|
}),
|
|
22054
|
-
p.externalFulfillment ? ne("", !0) : (m(), q(
|
|
22054
|
+
p.externalFulfillment ? ne("", !0) : (m(), q(rt, { key: 0 }, {
|
|
22055
22055
|
default: x(() => [
|
|
22056
22056
|
$(M(p.id), 1)
|
|
22057
22057
|
]),
|
|
@@ -22101,7 +22101,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22101
22101
|
}, D3 = { key: 3 }, I3 = /* @__PURE__ */ pe({
|
|
22102
22102
|
__name: "Product",
|
|
22103
22103
|
setup(e) {
|
|
22104
|
-
const t = Ae(), n =
|
|
22104
|
+
const t = Ae(), n = Qe(), { loaded: r } = Qe(), { getProduct: o } = go(), s = j(null), i = j(null), a = j(!0);
|
|
22105
22105
|
return ze(async () => {
|
|
22106
22106
|
const l = t.getParameter("product_id"), u = t.getParameter("version");
|
|
22107
22107
|
if (!l) {
|
|
@@ -22152,14 +22152,14 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22152
22152
|
}
|
|
22153
22153
|
}
|
|
22154
22154
|
function a() {
|
|
22155
|
-
n.enqueue(
|
|
22155
|
+
n.enqueue(ae.Customer, G.RedeemVoucher, {
|
|
22156
22156
|
code: s.value
|
|
22157
|
-
}), n.show(
|
|
22157
|
+
}), n.show(ae.Authentication, G.SignIn);
|
|
22158
22158
|
}
|
|
22159
22159
|
function l() {
|
|
22160
|
-
n.enqueue(
|
|
22160
|
+
n.enqueue(ae.Customer, G.RedeemVoucher, {
|
|
22161
22161
|
code: s.value
|
|
22162
|
-
}), n.show(
|
|
22162
|
+
}), n.show(ae.Authentication, G.SignUp);
|
|
22163
22163
|
}
|
|
22164
22164
|
return (u, c) => (m(), O("div", M3, [
|
|
22165
22165
|
E(xi, {
|
|
@@ -22175,7 +22175,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22175
22175
|
]),
|
|
22176
22176
|
_: 1
|
|
22177
22177
|
}),
|
|
22178
|
-
r.value.description ? (m(), q(
|
|
22178
|
+
r.value.description ? (m(), q(rt, { key: 0 }, {
|
|
22179
22179
|
default: x(() => [
|
|
22180
22180
|
$(' "' + M(r.value.description) + '" ', 1)
|
|
22181
22181
|
]),
|
|
@@ -22190,7 +22190,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22190
22190
|
__: [2]
|
|
22191
22191
|
})
|
|
22192
22192
|
]),
|
|
22193
|
-
E(
|
|
22193
|
+
E(rt, null, {
|
|
22194
22194
|
default: x(() => c[3] || (c[3] = [
|
|
22195
22195
|
$(" Voucher summary ")
|
|
22196
22196
|
])),
|
|
@@ -22210,7 +22210,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22210
22210
|
}, null, 8, ["bundle", "quantity"]))), 128))
|
|
22211
22211
|
])) : ne("", !0),
|
|
22212
22212
|
L("div", j3, [
|
|
22213
|
-
E(
|
|
22213
|
+
E(nt, null, {
|
|
22214
22214
|
default: x(() => c[4] || (c[4] = [
|
|
22215
22215
|
$(" Sign in or create an account to redeem products ")
|
|
22216
22216
|
])),
|
|
@@ -22235,7 +22235,7 @@ const l3 = { class: "moonbase:product-downloads" }, u3 = ["data-open"], c3 = {
|
|
|
22235
22235
|
default: x(() => {
|
|
22236
22236
|
var d;
|
|
22237
22237
|
return [
|
|
22238
|
-
E(
|
|
22238
|
+
E(nt, null, {
|
|
22239
22239
|
default: x(() => c[1] || (c[1] = [
|
|
22240
22240
|
$(" Do you have a voucher you want to redeem? "),
|
|
22241
22241
|
L("br", null, null, -1),
|
|
@@ -22291,7 +22291,7 @@ const B3 = { class: "moonbase:subscription-content-card-content" }, F3 = ["data-
|
|
|
22291
22291
|
subscription: {}
|
|
22292
22292
|
},
|
|
22293
22293
|
setup(e) {
|
|
22294
|
-
const t = j(/* @__PURE__ */ new Date()), n = j(!1), r = j(null), o =
|
|
22294
|
+
const t = j(/* @__PURE__ */ new Date()), n = j(!1), r = j(null), o = K(() => r.value && r.value.$el && r.value.$el.scrollHeight > r.value.$el.clientHeight);
|
|
22295
22295
|
return (s, i) => s.subscription.content.type === "Product" ? (m(), q(nn, {
|
|
22296
22296
|
key: 0,
|
|
22297
22297
|
class: "moonbase:subscription-content-card"
|
|
@@ -22490,7 +22490,7 @@ const B3 = { class: "moonbase:subscription-content-card-content" }, F3 = ["data-
|
|
|
22490
22490
|
}, r4 = { class: "moonbase:subscription-milestone-progress-title" }, o4 = { class: "moonbase:subscription-actions" }, s4 = /* @__PURE__ */ pe({
|
|
22491
22491
|
__name: "Subscription",
|
|
22492
22492
|
setup(e) {
|
|
22493
|
-
const t = Ae(), { loaded: n } =
|
|
22493
|
+
const t = Ae(), { loaded: n } = Qe(), r = sl(), { getSubscription: o, renewSubscription: s, cancelSubscription: i, updateSubscriptionPaymentMethod: a } = go(), l = j(null), u = j(/* @__PURE__ */ new Date()), c = j(null), d = j(!0);
|
|
22494
22494
|
ze(async () => {
|
|
22495
22495
|
const v = t.getParameter("subscription_id");
|
|
22496
22496
|
if (!v) {
|
|
@@ -22689,7 +22689,7 @@ const B3 = { class: "moonbase:subscription-content-card-content" }, F3 = ["data-
|
|
|
22689
22689
|
(i = g(t)) != null && i.toolbar.enabled ? (m(), q(mw, { key: 0 })) : ne("", !0),
|
|
22690
22690
|
E(aw, null, {
|
|
22691
22691
|
default: x(() => [
|
|
22692
|
-
g(n).active === g(
|
|
22692
|
+
g(n).active === g(ae).Cart ? (m(), q(ox, { key: 0 })) : g(n).active === g(ae).Authentication ? (m(), q(pk, { key: 1 })) : g(n).active === g(ae).Activation ? (m(), q(O5, { key: 2 })) : g(n).active === g(ae).Product ? (m(), q(I3, { key: 3 })) : g(n).active === g(ae).Subscription ? (m(), q(s4, { key: 4 })) : g(n).active === g(ae).Customer ? (m(), q(r3, { key: 5 })) : g(n).active === g(ae).Redeem ? (m(), q(U3, { key: 6 })) : g(n).active === g(ae).About ? (m(), q(ME, { key: 7 })) : ne("", !0)
|
|
22693
22693
|
]),
|
|
22694
22694
|
_: 1
|
|
22695
22695
|
})
|
|
@@ -22716,7 +22716,7 @@ function Ma(e, ...t) {
|
|
|
22716
22716
|
return Ma(e, ...t);
|
|
22717
22717
|
}
|
|
22718
22718
|
function a4(e) {
|
|
22719
|
-
const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) :
|
|
22719
|
+
const t = (n) => Array.isArray(n) ? n.map((r) => t(r)) : et(n) || vn(n) || Ko(n) ? t(Oe(n)) : n && typeof n == "object" ? Object.keys(n).reduce((r, o) => (r[o] = t(n[o]), r), {}) : n;
|
|
22720
22720
|
return t(e);
|
|
22721
22721
|
}
|
|
22722
22722
|
const Lm = Symbol("url"), l4 = Symbol("moonbase_instance"), br = (e, t) => window.dispatchEvent(new CustomEvent(`moonbase-storefront-${e}`, {
|
|
@@ -22748,7 +22748,7 @@ class u4 {
|
|
|
22748
22748
|
d && d.length > 1 && d[1] && (s = d[1], console.warn(`Moonbase url set up incorrectly, should be ${s}, was ${t}`));
|
|
22749
22749
|
}
|
|
22750
22750
|
this.storefront = i1(s), this.pinia = $1(), Ay(i4).use(this.storefront).use(this.pinia).provide(ut, this.options).provide(Lm, s.replace(/\/$/, "")).provide(yo, br).provide(l4, this).mount("#moonbase"), this.initialized = !0, window && window.location && this.handleLocationIntent(window.location);
|
|
22751
|
-
const a = Ae(this.pinia), l =
|
|
22751
|
+
const a = Ae(this.pinia), l = Qe(this.storefront);
|
|
22752
22752
|
(c = this.storefront) == null || c.onCheckoutInitiated((d, f) => {
|
|
22753
22753
|
br(Zt.CheckoutInitiated, {
|
|
22754
22754
|
order: d,
|
|
@@ -22759,7 +22759,7 @@ class u4 {
|
|
|
22759
22759
|
br(Zt.CheckoutClosed, {
|
|
22760
22760
|
order: this.storefront.currentOrder.value,
|
|
22761
22761
|
user: l.user.value
|
|
22762
|
-
}), d ===
|
|
22762
|
+
}), d === G.ViewProducts && (l.user ? a.show(ae.Customer, G.ViewProducts) : a.show(ae.Cart, G.ViewCart));
|
|
22763
22763
|
}), this.storefront.onCheckoutCompleted((d) => {
|
|
22764
22764
|
br(Zt.CheckoutCompleted, {
|
|
22765
22765
|
order: d,
|
|
@@ -22778,9 +22778,9 @@ class u4 {
|
|
|
22778
22778
|
}
|
|
22779
22779
|
handleLocationIntent(t) {
|
|
22780
22780
|
const n = new URLSearchParams(t.search), r = n.get("mb_intent");
|
|
22781
|
-
if (r && Object.values(
|
|
22781
|
+
if (r && Object.values(G).includes(r)) {
|
|
22782
22782
|
const o = Object.fromEntries([...n.entries()].filter(([i]) => i.startsWith("mb_")).map(([i, a]) => [i.substring(3), a]));
|
|
22783
|
-
if (r ===
|
|
22783
|
+
if (r === G.Checkout && o.complete)
|
|
22784
22784
|
return;
|
|
22785
22785
|
this[r](o);
|
|
22786
22786
|
for (const i of Object.keys(o))
|
|
@@ -22793,7 +22793,7 @@ class u4 {
|
|
|
22793
22793
|
sign_in(t) {
|
|
22794
22794
|
if (!this.initialized)
|
|
22795
22795
|
throw new Error("Moonbase has not been set up yet");
|
|
22796
|
-
Ae(this.pinia).show(
|
|
22796
|
+
Ae(this.pinia).show(ae.Authentication, G.SignIn, t);
|
|
22797
22797
|
}
|
|
22798
22798
|
sign_up(t) {
|
|
22799
22799
|
var r;
|
|
@@ -22801,86 +22801,88 @@ class u4 {
|
|
|
22801
22801
|
throw new Error("Moonbase has not been set up yet");
|
|
22802
22802
|
if (!((r = this.options) != null && r.value.auth.signUp.enabled))
|
|
22803
22803
|
throw new Error("Sign ups are not enabled");
|
|
22804
|
-
Ae(this.pinia).show(
|
|
22804
|
+
Ae(this.pinia).show(ae.Authentication, G.SignUp, t);
|
|
22805
22805
|
}
|
|
22806
22806
|
forgot_password(t) {
|
|
22807
22807
|
if (!this.initialized)
|
|
22808
22808
|
throw new Error("Moonbase has not been set up yet");
|
|
22809
|
-
Ae(this.pinia).show(
|
|
22809
|
+
Ae(this.pinia).show(ae.Authentication, G.ForgotPassword, t);
|
|
22810
22810
|
}
|
|
22811
22811
|
reset_password(t) {
|
|
22812
22812
|
if (!this.initialized)
|
|
22813
22813
|
throw new Error("Moonbase has not been set up yet");
|
|
22814
|
-
Ae(this.pinia).show(
|
|
22814
|
+
Ae(this.pinia).show(ae.Authentication, G.ResetPassword, t);
|
|
22815
22815
|
}
|
|
22816
22816
|
confirm_account(t) {
|
|
22817
22817
|
if (!this.initialized)
|
|
22818
22818
|
throw new Error("Moonbase has not been set up yet");
|
|
22819
|
-
Ae(this.pinia).show(
|
|
22819
|
+
Ae(this.pinia).show(ae.Authentication, G.ConfirmAccount, t);
|
|
22820
22820
|
}
|
|
22821
22821
|
confirm_email(t) {
|
|
22822
22822
|
if (!this.initialized)
|
|
22823
22823
|
throw new Error("Moonbase has not been set up yet");
|
|
22824
|
-
Ae(this.pinia).show(
|
|
22824
|
+
Ae(this.pinia).show(ae.Authentication, G.ConfirmEmail, t);
|
|
22825
22825
|
}
|
|
22826
22826
|
confirm_email_change(t) {
|
|
22827
22827
|
if (!this.initialized)
|
|
22828
22828
|
throw new Error("Moonbase has not been set up yet");
|
|
22829
22829
|
const n = Ae(this.pinia);
|
|
22830
|
-
|
|
22830
|
+
Qe(this.storefront).user.value ? n.show(ae.Authentication, G.ConfirmEmailChange, t) : (n.enqueue(ae.Authentication, G.ConfirmEmailChange, t), n.show(ae.Authentication, G.SignIn));
|
|
22831
22831
|
}
|
|
22832
22832
|
// Customer
|
|
22833
22833
|
view_account() {
|
|
22834
22834
|
if (!this.initialized)
|
|
22835
22835
|
throw new Error("Moonbase has not been set up yet");
|
|
22836
22836
|
const t = Ae(this.pinia);
|
|
22837
|
-
|
|
22837
|
+
Qe(this.storefront).user.value ? t.show(ae.Customer, G.ViewAccount) : (t.enqueue(ae.Customer, G.ViewAccount), t.show(ae.Authentication, G.SignIn));
|
|
22838
22838
|
}
|
|
22839
22839
|
view_products() {
|
|
22840
22840
|
if (!this.initialized)
|
|
22841
22841
|
throw new Error("Moonbase has not been set up yet");
|
|
22842
|
-
Ae(this.pinia)
|
|
22842
|
+
const t = Ae(this.pinia);
|
|
22843
|
+
Qe(this.storefront).user.value ? t.show(ae.Authentication, G.ViewProducts) : (t.enqueue(ae.Authentication, G.ViewProducts), t.show(ae.Authentication, G.SignIn));
|
|
22843
22844
|
}
|
|
22844
22845
|
view_subscriptions() {
|
|
22845
22846
|
if (!this.initialized)
|
|
22846
22847
|
throw new Error("Moonbase has not been set up yet");
|
|
22847
|
-
Ae(this.pinia)
|
|
22848
|
+
const t = Ae(this.pinia);
|
|
22849
|
+
Qe(this.storefront).user.value ? t.show(ae.Authentication, G.ViewSubscriptions) : (t.enqueue(ae.Authentication, G.ViewSubscriptions), t.show(ae.Authentication, G.SignIn));
|
|
22848
22850
|
}
|
|
22849
22851
|
redeem_voucher(t) {
|
|
22850
22852
|
if (!this.initialized)
|
|
22851
22853
|
throw new Error("Moonbase has not been set up yet");
|
|
22852
22854
|
const n = Ae(this.pinia);
|
|
22853
|
-
|
|
22855
|
+
Qe(this.storefront).user.value ? n.show(ae.Customer, G.RedeemVoucher, t) : n.show(ae.Redeem, G.RedeemVoucher, t);
|
|
22854
22856
|
}
|
|
22855
22857
|
// Products
|
|
22856
22858
|
view_product(t) {
|
|
22857
22859
|
if (!this.initialized)
|
|
22858
22860
|
throw new Error("Moonbase has not been set up yet");
|
|
22859
|
-
Ae(this.pinia).show(
|
|
22861
|
+
Ae(this.pinia).show(ae.Product, G.ViewProduct, t);
|
|
22860
22862
|
}
|
|
22861
22863
|
download_product(t) {
|
|
22862
22864
|
if (!this.initialized)
|
|
22863
22865
|
throw new Error("Moonbase has not been set up yet");
|
|
22864
|
-
Ae(this.pinia).show(
|
|
22866
|
+
Ae(this.pinia).show(ae.Product, G.DownloadProduct, t);
|
|
22865
22867
|
}
|
|
22866
22868
|
activate_product(t) {
|
|
22867
22869
|
if (!this.initialized)
|
|
22868
22870
|
throw new Error("Moonbase has not been set up yet");
|
|
22869
|
-
const n = Ae(this.pinia), r =
|
|
22870
|
-
!(t != null && t.token) && !r.user.value ? (n.enqueue(
|
|
22871
|
+
const n = Ae(this.pinia), r = Qe(this.storefront);
|
|
22872
|
+
!(t != null && t.token) && !r.user.value ? (n.enqueue(ae.Activation, G.ActivateProduct, t), n.show(ae.Authentication, G.SignIn)) : n.show(ae.Activation, G.ActivateProduct, t);
|
|
22871
22873
|
}
|
|
22872
22874
|
// Subscriptions
|
|
22873
22875
|
manage_subscription(t) {
|
|
22874
22876
|
if (!this.initialized)
|
|
22875
22877
|
throw new Error("Moonbase has not been set up yet");
|
|
22876
22878
|
const n = Ae(this.pinia);
|
|
22877
|
-
|
|
22879
|
+
Qe(this.storefront).user.value ? n.show(ae.Subscription, G.ManageSubscription, t) : (n.enqueue(ae.Subscription, G.ManageSubscription, t), n.show(ae.Authentication, G.SignIn));
|
|
22878
22880
|
}
|
|
22879
22881
|
// Orders
|
|
22880
22882
|
view_cart() {
|
|
22881
22883
|
if (!this.initialized)
|
|
22882
22884
|
throw new Error("Moonbase has not been set up yet");
|
|
22883
|
-
Ae(this.pinia).show(
|
|
22885
|
+
Ae(this.pinia).show(ae.Cart, G.ViewCart);
|
|
22884
22886
|
}
|
|
22885
22887
|
async add_to_cart(t) {
|
|
22886
22888
|
var s, i, a, l, u, c, d, f, h, p;
|
|
@@ -22888,7 +22890,7 @@ class u4 {
|
|
|
22888
22890
|
throw new Error("Moonbase has not been set up yet");
|
|
22889
22891
|
if (!(t != null && t.product_id) && !(t != null && t.bundle_id))
|
|
22890
22892
|
throw new Error("You need to provide a product or bundle ID when adding to cart");
|
|
22891
|
-
const n = Wn(this.storefront), r =
|
|
22893
|
+
const n = Wn(this.storefront), r = Qe(this.storefront), o = t.offer_id ? t1(t.offer_id) : null;
|
|
22892
22894
|
if (t != null && t.product_id) {
|
|
22893
22895
|
const v = Ls(t.product_id, this.storefront);
|
|
22894
22896
|
if (v.value) {
|
|
@@ -22937,7 +22939,7 @@ class u4 {
|
|
|
22937
22939
|
throw new Error(`Bundle '${t.bundle_id}' not found`);
|
|
22938
22940
|
}
|
|
22939
22941
|
}
|
|
22940
|
-
(t == null ? void 0 : t.show_cart) !== !1 && Ae(this.pinia).show(
|
|
22942
|
+
(t == null ? void 0 : t.show_cart) !== !1 && Ae(this.pinia).show(ae.Cart, G.AddToCart);
|
|
22941
22943
|
}
|
|
22942
22944
|
async purchase(t) {
|
|
22943
22945
|
var o, s, i, a, l;
|
|
@@ -22993,14 +22995,14 @@ class u4 {
|
|
|
22993
22995
|
view_about() {
|
|
22994
22996
|
if (!this.initialized)
|
|
22995
22997
|
throw new Error("Moonbase has not been set up yet");
|
|
22996
|
-
Ae(this.pinia).show(
|
|
22998
|
+
Ae(this.pinia).show(ae.About, G.ViewAbout);
|
|
22997
22999
|
}
|
|
22998
23000
|
}
|
|
22999
23001
|
const yu = new u4();
|
|
23000
23002
|
globalThis && (globalThis.Moonbase ? console.warn("Multiple instances of Moonbase detected, only one will be initialized") : globalThis.Moonbase = yu);
|
|
23001
23003
|
export {
|
|
23002
23004
|
Zt as MoonbaseEvent,
|
|
23003
|
-
|
|
23005
|
+
G as MoonbaseIntent,
|
|
23004
23006
|
yu as default,
|
|
23005
23007
|
yo as eventEmitterKey,
|
|
23006
23008
|
l4 as instanceKey,
|