@abi-software/scaffoldvuer 1.4.0-beta.2 → 1.4.1-image.0
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/scaffoldvuer.js +478 -479
- package/dist/scaffoldvuer.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +3 -2
- package/src/components/ScaffoldVuer.vue +93 -72
- package/src/mixins/imageMixin.js +0 -2
package/dist/scaffoldvuer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as On, watchEffect as f0, readonly as p0, getCurrentScope as m0, onScopeDispose as g0, unref as F, getCurrentInstance as
|
|
1
|
+
import { shallowRef as On, watchEffect as f0, readonly as p0, getCurrentScope as m0, onScopeDispose as g0, unref as F, getCurrentInstance as on, onMounted as ln, nextTick as xt, watch as Je, ref as Ee, defineComponent as Ie, openBlock as pe, createElementBlock as Le, createElementVNode as Ne, warn as y1, isVNode as oh, computed as le, inject as ht, isRef as dr, onBeforeUnmount as Si, onBeforeMount as b1, provide as vn, mergeProps as Bi, renderSlot as Ze, toRef as Un, onUnmounted as v0, useAttrs as x1, useSlots as du, createCommentVNode as ke, Fragment as Ft, normalizeClass as Ce, createBlock as He, withCtx as ce, resolveDynamicComponent as Xn, withModifiers as Kt, createVNode as oe, toDisplayString as ft, normalizeStyle as Ut, Transition as fl, withDirectives as Pt, vShow as mn, reactive as Qn, onUpdated as df, cloneVNode as w1, Text as y0, Comment as M1, Teleport as S1, onDeactivated as _1, vModelRadio as b0, createTextVNode as Qe, toRefs as hr, toHandlers as T1, withKeys as vi, toRaw as hf, resolveComponent as ii, resolveDirective as E1, toHandlerKey as A1, renderList as Fn, vModelText as C1, h as xo, createApp as L1, markRaw as rn, pushScopeId as x0, popScopeId as w0, hasInjectionContext as R1, effectScope as P1, isReactive as ff } from "vue";
|
|
2
2
|
import { TreeControls as I1, Tooltip as O1, DrawToolbar as D1 } from "@abi-software/map-utilities";
|
|
3
3
|
import { MapSvgIcon as N1, MapSvgSpriteColor as B1 } from "@abi-software/svg-sprite";
|
|
4
4
|
const nr = (n, e, { checkForDefaultPrevented: t = !0 } = {}) => (r) => {
|
|
@@ -24,8 +24,8 @@ function Yp(n, e) {
|
|
|
24
24
|
})), p0(i);
|
|
25
25
|
}
|
|
26
26
|
var Jp;
|
|
27
|
-
const
|
|
28
|
-
}, ah =
|
|
27
|
+
const sn = typeof window < "u", W1 = (n) => typeof n == "string", M0 = () => {
|
|
28
|
+
}, ah = sn && ((Jp = window == null ? void 0 : window.navigator) == null ? void 0 : Jp.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
29
29
|
function S0(n) {
|
|
30
30
|
return typeof n == "function" ? n() : F(n);
|
|
31
31
|
}
|
|
@@ -36,14 +36,14 @@ function hu(n) {
|
|
|
36
36
|
return m0() ? (g0(n), !0) : !1;
|
|
37
37
|
}
|
|
38
38
|
function $1(n, e = !0) {
|
|
39
|
-
|
|
39
|
+
on() ? ln(n) : e ? n() : xt(n);
|
|
40
40
|
}
|
|
41
41
|
function or(n) {
|
|
42
42
|
var e;
|
|
43
43
|
const t = S0(n);
|
|
44
44
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
45
45
|
}
|
|
46
|
-
const pl =
|
|
46
|
+
const pl = sn ? window : void 0, Z1 = sn ? window.document : void 0;
|
|
47
47
|
function yi(...n) {
|
|
48
48
|
let e, t, i, r;
|
|
49
49
|
if (W1(n[0]) || Array.isArray(n[0]) ? ([t, i, r] = n, e = pl) : [e, t, i, r] = n, !e)
|
|
@@ -208,7 +208,7 @@ function lM({ window: n = pl } = {}) {
|
|
|
208
208
|
e.value = !0;
|
|
209
209
|
}), e;
|
|
210
210
|
}
|
|
211
|
-
const cM = () =>
|
|
211
|
+
const cM = () => sn && /firefox/i.test(window.navigator.userAgent);
|
|
212
212
|
/**
|
|
213
213
|
* @vue/shared v3.4.34
|
|
214
214
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -1152,7 +1152,7 @@ const dE = "utils/dom/style", k0 = (n = "") => n.split(" ").filter((e) => !!e.tr
|
|
|
1152
1152
|
!n || !e.trim() || n.classList.remove(...k0(e));
|
|
1153
1153
|
}, va = (n, e) => {
|
|
1154
1154
|
var t;
|
|
1155
|
-
if (!
|
|
1155
|
+
if (!sn || !n || !e)
|
|
1156
1156
|
return "";
|
|
1157
1157
|
let i = pM(e);
|
|
1158
1158
|
i === "float" && (i = "cssFloat");
|
|
@@ -1176,7 +1176,7 @@ function Kc(n, e = "px") {
|
|
|
1176
1176
|
$t(dE, "binding value must be a string or number");
|
|
1177
1177
|
}
|
|
1178
1178
|
function hE(n, e) {
|
|
1179
|
-
if (!
|
|
1179
|
+
if (!sn)
|
|
1180
1180
|
return;
|
|
1181
1181
|
if (!e) {
|
|
1182
1182
|
n.scrollTop = 0;
|
|
@@ -1460,7 +1460,7 @@ const W0 = "__epPropKey", Xe = (n) => n, IE = (n) => In(n) && !!n[W0], bu = (n,
|
|
|
1460
1460
|
Pn(i) ? t.push(...zc(i)) : oh(i) && Pn(i.children) ? t.push(...zc(i.children)) : (t.push(i), oh(i) && ((r = i.component) != null && r.subTree) && t.push(...zc(i.component.subTree)));
|
|
1461
1461
|
}), t;
|
|
1462
1462
|
}, Z0 = (n) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n), rr = (n) => n, DE = ["class", "style"], NE = /^on[A-Z]/, BE = (n = {}) => {
|
|
1463
|
-
const { excludeListeners: e = !1, excludeKeys: t } = n, i = le(() => ((t == null ? void 0 : t.value) || []).concat(DE)), r =
|
|
1463
|
+
const { excludeListeners: e = !1, excludeKeys: t } = n, i = le(() => ((t == null ? void 0 : t.value) || []).concat(DE)), r = on();
|
|
1464
1464
|
return r ? le(() => {
|
|
1465
1465
|
var s;
|
|
1466
1466
|
return Yc(Object.entries((s = r.proxy) == null ? void 0 : s.$attrs).filter(([o]) => !i.value.includes(o) && !(e && NE.test(o))));
|
|
@@ -1666,7 +1666,7 @@ const UE = (n) => (e, t) => zE(e, t, F(n)), zE = (n, e, t) => ir(t, n, n).replac
|
|
|
1666
1666
|
let s = `${n}-${e}`;
|
|
1667
1667
|
return t && (s += `-${t}`), i && (s += `__${i}`), r && (s += `--${r}`), s;
|
|
1668
1668
|
}, Y0 = Symbol("namespaceContextKey"), _f = (n) => {
|
|
1669
|
-
const e = n || (
|
|
1669
|
+
const e = n || (on() ? ht(Y0, Ee(Vc)) : Ee(Vc));
|
|
1670
1670
|
return le(() => F(e) || Vc);
|
|
1671
1671
|
}, tt = (n, e) => {
|
|
1672
1672
|
const t = _f(e);
|
|
@@ -1717,19 +1717,19 @@ const UE = (n) => (e, t) => zE(e, t, F(n)), zE = (n, e, t) => ir(t, n, n).replac
|
|
|
1717
1717
|
onShow: h,
|
|
1718
1718
|
onHide: u
|
|
1719
1719
|
}) => {
|
|
1720
|
-
const f =
|
|
1720
|
+
const f = on(), { emit: g } = f, p = f.props, d = le(() => Ln(p[t])), y = le(() => p[n] === null), v = (w) => {
|
|
1721
1721
|
o.value !== !0 && (o.value = !0, a && (a.value = w), Ln(h) && h(w));
|
|
1722
1722
|
}, m = (w) => {
|
|
1723
1723
|
o.value !== !1 && (o.value = !1, a && (a.value = w), Ln(u) && u(w));
|
|
1724
1724
|
}, b = (w) => {
|
|
1725
1725
|
if (p.disabled === !0 || Ln(c) && !c())
|
|
1726
1726
|
return;
|
|
1727
|
-
const _ = d.value &&
|
|
1727
|
+
const _ = d.value && sn;
|
|
1728
1728
|
_ && g(e, !0), (y.value || !_) && v(w);
|
|
1729
1729
|
}, S = (w) => {
|
|
1730
|
-
if (p.disabled === !0 || !
|
|
1730
|
+
if (p.disabled === !0 || !sn)
|
|
1731
1731
|
return;
|
|
1732
|
-
const _ = d.value &&
|
|
1732
|
+
const _ = d.value && sn;
|
|
1733
1733
|
_ && g(e, !1), (y.value || !_) && m(w);
|
|
1734
1734
|
}, T = (w) => {
|
|
1735
1735
|
Ya(w) && (p.disabled && w ? d.value && g(e, !1) : o.value !== w && (w ? v() : m()));
|
|
@@ -1740,7 +1740,7 @@ const UE = (n) => (e, t) => zE(e, t, F(n)), zE = (n, e, t) => ir(t, n, n).replac
|
|
|
1740
1740
|
...f.proxy.$route
|
|
1741
1741
|
}), () => {
|
|
1742
1742
|
l.value && o.value && S();
|
|
1743
|
-
}),
|
|
1743
|
+
}), ln(() => {
|
|
1744
1744
|
T(p[n]);
|
|
1745
1745
|
}), {
|
|
1746
1746
|
hide: S,
|
|
@@ -1755,7 +1755,7 @@ const UE = (n) => (e, t) => zE(e, t, F(n)), zE = (n, e, t) => ir(t, n, n).replac
|
|
|
1755
1755
|
};
|
|
1756
1756
|
J0("modelValue");
|
|
1757
1757
|
const q0 = (n) => {
|
|
1758
|
-
const e =
|
|
1758
|
+
const e = on();
|
|
1759
1759
|
return le(() => {
|
|
1760
1760
|
var t, i;
|
|
1761
1761
|
return (i = (t = e == null ? void 0 : e.proxy) == null ? void 0 : t.$props) == null ? void 0 : i[n];
|
|
@@ -2381,9 +2381,9 @@ function Hm() {
|
|
|
2381
2381
|
const vh = {
|
|
2382
2382
|
prefix: Math.floor(Math.random() * 1e4),
|
|
2383
2383
|
current: 0
|
|
2384
|
-
}, XA = Symbol("elIdInjection"), Of = () =>
|
|
2384
|
+
}, XA = Symbol("elIdInjection"), Of = () => on() ? ht(XA, vh) : vh, yl = (n) => {
|
|
2385
2385
|
const e = Of();
|
|
2386
|
-
!
|
|
2386
|
+
!sn && e === vh && $t("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2387
2387
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
2388
2388
|
prefix: number,
|
|
2389
2389
|
current: number,
|
|
@@ -2396,10 +2396,10 @@ const Wm = (n) => {
|
|
|
2396
2396
|
const e = n;
|
|
2397
2397
|
e.key === Ui.esc && wo.forEach((t) => t(e));
|
|
2398
2398
|
}, YA = (n) => {
|
|
2399
|
-
|
|
2400
|
-
wo.length === 0 && document.addEventListener("keydown", Wm),
|
|
2399
|
+
ln(() => {
|
|
2400
|
+
wo.length === 0 && document.addEventListener("keydown", Wm), sn && wo.push(n);
|
|
2401
2401
|
}), Si(() => {
|
|
2402
|
-
wo = wo.filter((e) => e !== n), wo.length === 0 &&
|
|
2402
|
+
wo = wo.filter((e) => e !== n), wo.length === 0 && sn && document.removeEventListener("keydown", Wm);
|
|
2403
2403
|
});
|
|
2404
2404
|
};
|
|
2405
2405
|
let jm;
|
|
@@ -2415,7 +2415,7 @@ const cy = () => {
|
|
|
2415
2415
|
}, qA = () => {
|
|
2416
2416
|
const { id: n, selector: e } = cy();
|
|
2417
2417
|
return b1(() => {
|
|
2418
|
-
|
|
2418
|
+
sn && (process.env.NODE_ENV === "test" || !jm && !document.body.querySelector(e.value)) && (jm = JA(n.value));
|
|
2419
2419
|
}), {
|
|
2420
2420
|
id: n,
|
|
2421
2421
|
selector: e
|
|
@@ -2479,11 +2479,11 @@ const cy = () => {
|
|
|
2479
2479
|
}), $m = {
|
|
2480
2480
|
current: 0
|
|
2481
2481
|
}, Zm = Ee(0), dy = 2e3, Xm = Symbol("elZIndexContextKey"), hy = Symbol("zIndexContextKey"), fy = (n) => {
|
|
2482
|
-
const e =
|
|
2482
|
+
const e = on() ? ht(Xm, $m) : $m, t = n || (on() ? ht(hy, void 0) : void 0), i = le(() => {
|
|
2483
2483
|
const o = F(t);
|
|
2484
2484
|
return wt(o) ? o : dy;
|
|
2485
2485
|
}), r = le(() => i.value + Zm.value), s = () => (e.current++, Zm.value = e.current, r.value);
|
|
2486
|
-
return !
|
|
2486
|
+
return !sn && !ht(Xm) && $t("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
2487
2487
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
2488
2488
|
initialZIndex: i,
|
|
2489
2489
|
currentZIndex: r,
|
|
@@ -2549,7 +2549,7 @@ const iC = (n, e, t) => zc(n.subTree).filter((s) => {
|
|
|
2549
2549
|
return le(() => F(n.size) || "");
|
|
2550
2550
|
};
|
|
2551
2551
|
function my(n, { afterFocus: e, beforeBlur: t, afterBlur: i } = {}) {
|
|
2552
|
-
const r =
|
|
2552
|
+
const r = on(), { emit: s } = r, o = On(), a = Ee(!1), l = (u) => {
|
|
2553
2553
|
a.value || (a.value = !0, s("focus", u), e == null || e());
|
|
2554
2554
|
}, c = (u) => {
|
|
2555
2555
|
var f;
|
|
@@ -2575,7 +2575,7 @@ const gy = Symbol("emptyValuesContextKey"), oC = "use-empty-values", aC = ["", v
|
|
|
2575
2575
|
validator: (n) => Ln(n) ? !n() : !n
|
|
2576
2576
|
}
|
|
2577
2577
|
}), uC = (n, e) => {
|
|
2578
|
-
const t =
|
|
2578
|
+
const t = on() ? ht(gy, Ee({})) : Ee({}), i = le(() => n.emptyValues || t.value.emptyValues || aC), r = le(() => Ln(n.valueOnClear) ? n.valueOnClear() : n.valueOnClear !== void 0 ? n.valueOnClear : Ln(t.value.valueOnClear) ? t.value.valueOnClear() : t.value.valueOnClear !== void 0 ? t.value.valueOnClear : lC), s = (o) => i.value.includes(o);
|
|
2579
2579
|
return i.value.includes(r.value) || $t(oC, "value-on-clear should be a value of empty-values"), {
|
|
2580
2580
|
emptyValues: i,
|
|
2581
2581
|
valueOnClear: r,
|
|
@@ -2590,7 +2590,7 @@ const gy = Symbol("emptyValuesContextKey"), oC = "use-empty-values", aC = ["", v
|
|
|
2590
2590
|
ariaControls: String
|
|
2591
2591
|
}), ns = (n) => lE(dC, n), vy = Symbol(), tu = Ee();
|
|
2592
2592
|
function Df(n, e = void 0) {
|
|
2593
|
-
const t =
|
|
2593
|
+
const t = on() ? ht(vy, tu) : tu;
|
|
2594
2594
|
return n ? le(() => {
|
|
2595
2595
|
var i, r;
|
|
2596
2596
|
return (r = (i = t.value) == null ? void 0 : i[n]) != null ? r : e;
|
|
@@ -2619,7 +2619,7 @@ function hC(n, e) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
const fC = (n, e, t = !1) => {
|
|
2621
2621
|
var i;
|
|
2622
|
-
const r = !!
|
|
2622
|
+
const r = !!on(), s = r ? Df() : void 0, o = (i = void 0) != null ? i : r ? vn : void 0;
|
|
2623
2623
|
if (!o) {
|
|
2624
2624
|
$t("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
2625
2625
|
return;
|
|
@@ -2700,7 +2700,7 @@ const zt = _n(yC), Nf = Symbol("formContextKey"), nu = Symbol("formItemContextKe
|
|
|
2700
2700
|
var a;
|
|
2701
2701
|
return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((a = e.inputIds) == null ? void 0 : a.length) <= 1);
|
|
2702
2702
|
});
|
|
2703
|
-
return
|
|
2703
|
+
return ln(() => {
|
|
2704
2704
|
s = Je([Un(n, "id"), t], ([a, l]) => {
|
|
2705
2705
|
const c = a ?? (l ? void 0 : yl().value);
|
|
2706
2706
|
c !== r.value && (e != null && e.removeInputId && (r.value && e.removeInputId(r.value), !(i != null && i.value) && !l && c && e.addInputId(c)), r.value = c);
|
|
@@ -2915,7 +2915,7 @@ const MC = ct({
|
|
|
2915
2915
|
});
|
|
2916
2916
|
const Z = () => {
|
|
2917
2917
|
const { type: he, autosize: xe } = i;
|
|
2918
|
-
if (!(!
|
|
2918
|
+
if (!(!sn || he !== "textarea" || !m.value))
|
|
2919
2919
|
if (xe) {
|
|
2920
2920
|
const re = In(xe) ? xe.minRows : void 0, _e = In(xe) ? xe.maxRows : void 0, ve = Ym(m.value, re, _e);
|
|
2921
2921
|
w.value = {
|
|
@@ -2985,7 +2985,7 @@ const MC = ct({
|
|
|
2985
2985
|
xt(() => Z()), i.validateEvent && ((he = u == null ? void 0 : u.validate) == null || he.call(u, "change").catch((xe) => $t(xe)));
|
|
2986
2986
|
}), Je(D, () => ie()), Je(() => i.type, async () => {
|
|
2987
2987
|
await xt(), ie(), Z();
|
|
2988
|
-
}),
|
|
2988
|
+
}), ln(() => {
|
|
2989
2989
|
!i.formatter && i.parser && $t("ElInput", "If you set the parser, you also need to set the formatter."), ie(), xt(Z);
|
|
2990
2990
|
}), ia({
|
|
2991
2991
|
from: "label",
|
|
@@ -3017,21 +3017,21 @@ const MC = ct({
|
|
|
3017
3017
|
onMouseenter: ue,
|
|
3018
3018
|
onMouseleave: de
|
|
3019
3019
|
}), [
|
|
3020
|
-
|
|
3021
|
-
he.type !== "textarea" ? (pe(), Le(
|
|
3022
|
-
|
|
3020
|
+
ke(" input "),
|
|
3021
|
+
he.type !== "textarea" ? (pe(), Le(Ft, { key: 0 }, [
|
|
3022
|
+
ke(" prepend slot "),
|
|
3023
3023
|
he.$slots.prepend ? (pe(), Le("div", {
|
|
3024
3024
|
key: 0,
|
|
3025
3025
|
class: Ce(F(d).be("group", "prepend"))
|
|
3026
3026
|
}, [
|
|
3027
3027
|
Ze(he.$slots, "prepend")
|
|
3028
|
-
], 2)) :
|
|
3028
|
+
], 2)) : ke("v-if", !0),
|
|
3029
3029
|
Ne("div", {
|
|
3030
3030
|
ref_key: "wrapperRef",
|
|
3031
3031
|
ref: A,
|
|
3032
3032
|
class: Ce(F(l))
|
|
3033
3033
|
}, [
|
|
3034
|
-
|
|
3034
|
+
ke(" prefix slot "),
|
|
3035
3035
|
he.$slots.prefix || he.prefixIcon ? (pe(), Le("span", {
|
|
3036
3036
|
key: 0,
|
|
3037
3037
|
class: Ce(F(d).e("prefix"))
|
|
@@ -3040,17 +3040,17 @@ const MC = ct({
|
|
|
3040
3040
|
class: Ce(F(d).e("prefix-inner"))
|
|
3041
3041
|
}, [
|
|
3042
3042
|
Ze(he.$slots, "prefix"),
|
|
3043
|
-
he.prefixIcon ? (pe(),
|
|
3043
|
+
he.prefixIcon ? (pe(), He(F(zt), {
|
|
3044
3044
|
key: 0,
|
|
3045
3045
|
class: Ce(F(d).e("icon"))
|
|
3046
3046
|
}, {
|
|
3047
3047
|
default: ce(() => [
|
|
3048
|
-
(pe(),
|
|
3048
|
+
(pe(), He(Xn(he.prefixIcon)))
|
|
3049
3049
|
]),
|
|
3050
3050
|
_: 1
|
|
3051
|
-
}, 8, ["class"])) :
|
|
3051
|
+
}, 8, ["class"])) : ke("v-if", !0)
|
|
3052
3052
|
], 2)
|
|
3053
|
-
], 2)) :
|
|
3053
|
+
], 2)) : ke("v-if", !0),
|
|
3054
3054
|
Ne("input", Bi({
|
|
3055
3055
|
id: F(f),
|
|
3056
3056
|
ref_key: "input",
|
|
@@ -3078,7 +3078,7 @@ const MC = ct({
|
|
|
3078
3078
|
onChange: ne,
|
|
3079
3079
|
onKeydown: ge
|
|
3080
3080
|
}), null, 16, TC),
|
|
3081
|
-
|
|
3081
|
+
ke(" suffix slot "),
|
|
3082
3082
|
F(W) ? (pe(), Le("span", {
|
|
3083
3083
|
key: 1,
|
|
3084
3084
|
class: Ce(F(d).e("suffix"))
|
|
@@ -3086,19 +3086,19 @@ const MC = ct({
|
|
|
3086
3086
|
Ne("span", {
|
|
3087
3087
|
class: Ce(F(d).e("suffix-inner"))
|
|
3088
3088
|
}, [
|
|
3089
|
-
!F(U) || !F(G) || !F(H) ? (pe(), Le(
|
|
3089
|
+
!F(U) || !F(G) || !F(H) ? (pe(), Le(Ft, { key: 0 }, [
|
|
3090
3090
|
Ze(he.$slots, "suffix"),
|
|
3091
|
-
he.suffixIcon ? (pe(),
|
|
3091
|
+
he.suffixIcon ? (pe(), He(F(zt), {
|
|
3092
3092
|
key: 0,
|
|
3093
3093
|
class: Ce(F(d).e("icon"))
|
|
3094
3094
|
}, {
|
|
3095
3095
|
default: ce(() => [
|
|
3096
|
-
(pe(),
|
|
3096
|
+
(pe(), He(Xn(he.suffixIcon)))
|
|
3097
3097
|
]),
|
|
3098
3098
|
_: 1
|
|
3099
|
-
}, 8, ["class"])) :
|
|
3100
|
-
], 64)) :
|
|
3101
|
-
F(U) ? (pe(),
|
|
3099
|
+
}, 8, ["class"])) : ke("v-if", !0)
|
|
3100
|
+
], 64)) : ke("v-if", !0),
|
|
3101
|
+
F(U) ? (pe(), He(F(zt), {
|
|
3102
3102
|
key: 1,
|
|
3103
3103
|
class: Ce([F(d).e("icon"), F(d).e("clear")]),
|
|
3104
3104
|
onMousedown: Kt(F($a), ["prevent"]),
|
|
@@ -3108,17 +3108,17 @@ const MC = ct({
|
|
|
3108
3108
|
oe(F(Sf))
|
|
3109
3109
|
]),
|
|
3110
3110
|
_: 1
|
|
3111
|
-
}, 8, ["class", "onMousedown"])) :
|
|
3112
|
-
F(G) ? (pe(),
|
|
3111
|
+
}, 8, ["class", "onMousedown"])) : ke("v-if", !0),
|
|
3112
|
+
F(G) ? (pe(), He(F(zt), {
|
|
3113
3113
|
key: 2,
|
|
3114
3114
|
class: Ce([F(d).e("icon"), F(d).e("password")]),
|
|
3115
3115
|
onClick: z
|
|
3116
3116
|
}, {
|
|
3117
3117
|
default: ce(() => [
|
|
3118
|
-
(pe(),
|
|
3118
|
+
(pe(), He(Xn(F(x))))
|
|
3119
3119
|
]),
|
|
3120
3120
|
_: 1
|
|
3121
|
-
}, 8, ["class"])) :
|
|
3121
|
+
}, 8, ["class"])) : ke("v-if", !0),
|
|
3122
3122
|
F(H) ? (pe(), Le("span", {
|
|
3123
3123
|
key: 3,
|
|
3124
3124
|
class: Ce(F(d).e("count"))
|
|
@@ -3126,8 +3126,8 @@ const MC = ct({
|
|
|
3126
3126
|
Ne("span", {
|
|
3127
3127
|
class: Ce(F(d).e("count-inner"))
|
|
3128
3128
|
}, ft(F(K)) + " / " + ft(he.maxlength), 3)
|
|
3129
|
-
], 2)) :
|
|
3130
|
-
F(I) && F(O) && F(P) ? (pe(),
|
|
3129
|
+
], 2)) : ke("v-if", !0),
|
|
3130
|
+
F(I) && F(O) && F(P) ? (pe(), He(F(zt), {
|
|
3131
3131
|
key: 4,
|
|
3132
3132
|
class: Ce([
|
|
3133
3133
|
F(d).e("icon"),
|
|
@@ -3136,22 +3136,22 @@ const MC = ct({
|
|
|
3136
3136
|
])
|
|
3137
3137
|
}, {
|
|
3138
3138
|
default: ce(() => [
|
|
3139
|
-
(pe(),
|
|
3139
|
+
(pe(), He(Xn(F(O))))
|
|
3140
3140
|
]),
|
|
3141
3141
|
_: 1
|
|
3142
|
-
}, 8, ["class"])) :
|
|
3142
|
+
}, 8, ["class"])) : ke("v-if", !0)
|
|
3143
3143
|
], 2)
|
|
3144
|
-
], 2)) :
|
|
3144
|
+
], 2)) : ke("v-if", !0)
|
|
3145
3145
|
], 2),
|
|
3146
|
-
|
|
3146
|
+
ke(" append slot "),
|
|
3147
3147
|
he.$slots.append ? (pe(), Le("div", {
|
|
3148
3148
|
key: 1,
|
|
3149
3149
|
class: Ce(F(d).be("group", "append"))
|
|
3150
3150
|
}, [
|
|
3151
3151
|
Ze(he.$slots, "append")
|
|
3152
|
-
], 2)) :
|
|
3153
|
-
], 64)) : (pe(), Le(
|
|
3154
|
-
|
|
3152
|
+
], 2)) : ke("v-if", !0)
|
|
3153
|
+
], 64)) : (pe(), Le(Ft, { key: 1 }, [
|
|
3154
|
+
ke(" textarea "),
|
|
3155
3155
|
Ne("textarea", Bi({
|
|
3156
3156
|
id: F(f),
|
|
3157
3157
|
ref_key: "textarea",
|
|
@@ -3181,9 +3181,9 @@ const MC = ct({
|
|
|
3181
3181
|
}), null, 16, EC),
|
|
3182
3182
|
F(H) ? (pe(), Le("span", {
|
|
3183
3183
|
key: 0,
|
|
3184
|
-
style:
|
|
3184
|
+
style: Ut(M.value),
|
|
3185
3185
|
class: Ce(F(d).e("count"))
|
|
3186
|
-
}, ft(F(K)) + " / " + ft(he.maxlength), 7)) :
|
|
3186
|
+
}, ft(F(K)) + " / " + ft(he.maxlength), 7)) : ke("v-if", !0)
|
|
3187
3187
|
], 64))
|
|
3188
3188
|
], 16, _C));
|
|
3189
3189
|
}
|
|
@@ -3233,7 +3233,7 @@ const Su = _n(LC), Js = 4, RC = {
|
|
|
3233
3233
|
const e = n, t = ht(Bf), i = tt("scrollbar");
|
|
3234
3234
|
t || na(OC, "can not inject scrollbar context");
|
|
3235
3235
|
const r = Ee(), s = Ee(), o = Ee({}), a = Ee(!1);
|
|
3236
|
-
let l = !1, c = !1, h =
|
|
3236
|
+
let l = !1, c = !1, h = sn ? document.onselectstart : null;
|
|
3237
3237
|
const u = le(() => RC[e.vertical ? "vertical" : "horizontal"]), f = le(() => PC({
|
|
3238
3238
|
size: e.size,
|
|
3239
3239
|
move: e.move,
|
|
@@ -3273,7 +3273,7 @@ const Su = _n(LC), Js = 4, RC = {
|
|
|
3273
3273
|
const T = () => {
|
|
3274
3274
|
document.onselectstart !== h && (document.onselectstart = h);
|
|
3275
3275
|
};
|
|
3276
|
-
return yi(Un(t, "scrollbarElement"), "mousemove", b), yi(Un(t, "scrollbarElement"), "mouseleave", S), (M, w) => (pe(),
|
|
3276
|
+
return yi(Un(t, "scrollbarElement"), "mousemove", b), yi(Un(t, "scrollbarElement"), "mouseleave", S), (M, w) => (pe(), He(fl, {
|
|
3277
3277
|
name: F(i).b("fade"),
|
|
3278
3278
|
persisted: ""
|
|
3279
3279
|
}, {
|
|
@@ -3288,7 +3288,7 @@ const Su = _n(LC), Js = 4, RC = {
|
|
|
3288
3288
|
ref_key: "thumb",
|
|
3289
3289
|
ref: s,
|
|
3290
3290
|
class: Ce(F(i).e("thumb")),
|
|
3291
|
-
style:
|
|
3291
|
+
style: Ut(F(f)),
|
|
3292
3292
|
onMousedown: p
|
|
3293
3293
|
}, null, 38)
|
|
3294
3294
|
], 34), [
|
|
@@ -3328,7 +3328,7 @@ const NC = ct({
|
|
|
3328
3328
|
const g = f.offsetHeight - Js, p = f.offsetWidth - Js, d = g ** 2 / f.scrollHeight, y = p ** 2 / f.scrollWidth, v = Math.max(d, t.minSize), m = Math.max(y, t.minSize);
|
|
3329
3329
|
l.value = d / (g - d) / (v / (g - v)), c.value = y / (p - y) / (m / (p - m)), a.value = v + Js < g ? `${v}px` : "", o.value = m + Js < p ? `${m}px` : "";
|
|
3330
3330
|
}
|
|
3331
|
-
}), (f, g) => (pe(), Le(
|
|
3331
|
+
}), (f, g) => (pe(), Le(Ft, null, [
|
|
3332
3332
|
oe(Jm, {
|
|
3333
3333
|
move: r.value,
|
|
3334
3334
|
ratio: c.value,
|
|
@@ -3445,7 +3445,7 @@ const UC = ct({
|
|
|
3445
3445
|
}), vn(Bf, Qn({
|
|
3446
3446
|
scrollbarElement: a,
|
|
3447
3447
|
wrapElement: l
|
|
3448
|
-
})),
|
|
3448
|
+
})), ln(() => {
|
|
3449
3449
|
i.native || xt(() => {
|
|
3450
3450
|
m();
|
|
3451
3451
|
});
|
|
@@ -3465,15 +3465,15 @@ const UC = ct({
|
|
|
3465
3465
|
ref_key: "wrapRef",
|
|
3466
3466
|
ref: l,
|
|
3467
3467
|
class: Ce(F(f)),
|
|
3468
|
-
style:
|
|
3468
|
+
style: Ut(F(u)),
|
|
3469
3469
|
onScroll: p
|
|
3470
3470
|
}, [
|
|
3471
|
-
(pe(),
|
|
3471
|
+
(pe(), He(Xn(b.tag), {
|
|
3472
3472
|
id: b.id,
|
|
3473
3473
|
ref_key: "resizeRef",
|
|
3474
3474
|
ref: c,
|
|
3475
3475
|
class: Ce(F(g)),
|
|
3476
|
-
style:
|
|
3476
|
+
style: Ut(b.viewStyle),
|
|
3477
3477
|
role: b.role,
|
|
3478
3478
|
"aria-label": b.ariaLabel,
|
|
3479
3479
|
"aria-orientation": b.ariaOrientation
|
|
@@ -3484,7 +3484,7 @@ const UC = ct({
|
|
|
3484
3484
|
_: 3
|
|
3485
3485
|
}, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
|
|
3486
3486
|
], 38),
|
|
3487
|
-
b.native ?
|
|
3487
|
+
b.native ? ke("v-if", !0) : (pe(), He(FC, {
|
|
3488
3488
|
key: 0,
|
|
3489
3489
|
ref_key: "barRef",
|
|
3490
3490
|
ref: h,
|
|
@@ -3551,7 +3551,7 @@ const xy = ct({
|
|
|
3551
3551
|
ref_key: "arrowRef",
|
|
3552
3552
|
ref: s,
|
|
3553
3553
|
class: Ce(F(i).e("arrow")),
|
|
3554
|
-
style:
|
|
3554
|
+
style: Ut(F(o)),
|
|
3555
3555
|
"data-popper-arrow": ""
|
|
3556
3556
|
}, null, 6));
|
|
3557
3557
|
}
|
|
@@ -3589,7 +3589,7 @@ function wy(n) {
|
|
|
3589
3589
|
case y0:
|
|
3590
3590
|
case "svg":
|
|
3591
3591
|
return qm(t);
|
|
3592
|
-
case
|
|
3592
|
+
case Ft:
|
|
3593
3593
|
return wy(t.children);
|
|
3594
3594
|
default:
|
|
3595
3595
|
return t;
|
|
@@ -3649,7 +3649,7 @@ const My = ct({
|
|
|
3649
3649
|
return i.value;
|
|
3650
3650
|
}), l = le(() => a.value ? `${t.open}` : void 0);
|
|
3651
3651
|
let c;
|
|
3652
|
-
return
|
|
3652
|
+
return ln(() => {
|
|
3653
3653
|
Je(() => t.virtualRef, (h) => {
|
|
3654
3654
|
h && (r.value = or(h));
|
|
3655
3655
|
}, {
|
|
@@ -3689,7 +3689,7 @@ const My = ct({
|
|
|
3689
3689
|
c == null || c(), c = void 0;
|
|
3690
3690
|
}), e({
|
|
3691
3691
|
triggerRef: r
|
|
3692
|
-
}), (h, u) => h.virtualTriggering ?
|
|
3692
|
+
}), (h, u) => h.virtualTriggering ? ke("v-if", !0) : (pe(), He(F(qC), Bi({ key: 0 }, h.$attrs, {
|
|
3693
3693
|
"aria-controls": F(s),
|
|
3694
3694
|
"aria-describedby": F(o),
|
|
3695
3695
|
"aria-expanded": F(l),
|
|
@@ -3772,7 +3772,7 @@ const a2 = () => {
|
|
|
3772
3772
|
Uf.value = "pointer", _u.value = window.performance.now();
|
|
3773
3773
|
}, rg = () => {
|
|
3774
3774
|
Uf.value = "keyboard", _u.value = window.performance.now();
|
|
3775
|
-
}, u2 = () => (
|
|
3775
|
+
}, u2 = () => (ln(() => {
|
|
3776
3776
|
Vl === 0 && (document.addEventListener("mousedown", kl), document.addEventListener("touchstart", kl), document.addEventListener("keydown", rg)), Vl++;
|
|
3777
3777
|
}), Si(() => {
|
|
3778
3778
|
Vl--, Vl <= 0 && (document.removeEventListener("mousedown", kl), document.removeEventListener("touchstart", kl), document.removeEventListener("keydown", rg));
|
|
@@ -3906,7 +3906,7 @@ const a2 = () => {
|
|
|
3906
3906
|
p.addEventListener(sd, c), p.dispatchEvent(d), !d.defaultPrevented && (s.value == "keyboard" || !c2() || p.contains(document.activeElement)) && Or(i ?? document.body), p.removeEventListener(sd, c), ig.remove(o);
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
3909
|
-
return
|
|
3909
|
+
return ln(() => {
|
|
3910
3910
|
n.trapped && f(), Je(() => n.trapped, (p) => {
|
|
3911
3911
|
p ? f() : g();
|
|
3912
3912
|
});
|
|
@@ -4013,7 +4013,7 @@ const p2 = ["fixed", "absolute"], m2 = ct({
|
|
|
4013
4013
|
};
|
|
4014
4014
|
return x2(s, r == null ? void 0 : r.modifiers), s;
|
|
4015
4015
|
}, y2 = (n) => {
|
|
4016
|
-
if (
|
|
4016
|
+
if (sn)
|
|
4017
4017
|
return or(n);
|
|
4018
4018
|
};
|
|
4019
4019
|
function b2(n) {
|
|
@@ -4078,7 +4078,7 @@ const w2 = 0, M2 = (n) => {
|
|
|
4078
4078
|
F(a)
|
|
4079
4079
|
])
|
|
4080
4080
|
})), h = le(() => y2(n.referenceEl) || F(i)), { attributes: u, state: f, styles: g, update: p, forceUpdate: d, instanceRef: y } = $A(h, t, c);
|
|
4081
|
-
return Je(y, (v) => e.value = v),
|
|
4081
|
+
return Je(y, (v) => e.value = v), ln(() => {
|
|
4082
4082
|
Je(() => {
|
|
4083
4083
|
var v;
|
|
4084
4084
|
return (v = F(h)) == null ? void 0 : v.getBoundingClientRect();
|
|
@@ -4186,7 +4186,7 @@ const w2 = 0, M2 = (n) => {
|
|
|
4186
4186
|
}, L = () => {
|
|
4187
4187
|
C(!1), i.visible && i.focusOnShow ? s.value = !0 : i.visible === !1 && (s.value = !1);
|
|
4188
4188
|
};
|
|
4189
|
-
return
|
|
4189
|
+
return ln(() => {
|
|
4190
4190
|
Je(() => i.triggerTargetEl, (P, I) => {
|
|
4191
4191
|
E == null || E(), E = void 0;
|
|
4192
4192
|
const O = F(P || g.value), x = F(I || g.value);
|
|
@@ -4312,7 +4312,7 @@ const C2 = _n(ZC), Vf = Symbol("elTooltip"), Zn = ct({
|
|
|
4312
4312
|
});
|
|
4313
4313
|
return e({
|
|
4314
4314
|
triggerRef: h
|
|
4315
|
-
}), (S, T) => (pe(),
|
|
4315
|
+
}), (S, T) => (pe(), He(F(e2), {
|
|
4316
4316
|
id: F(s),
|
|
4317
4317
|
"virtual-ref": S.virtualRef,
|
|
4318
4318
|
open: F(o),
|
|
@@ -4395,7 +4395,7 @@ const U2 = Ie({
|
|
|
4395
4395
|
(N = (R = s.value) == null ? void 0 : R.updatePopper) == null || N.call(R);
|
|
4396
4396
|
}), e({
|
|
4397
4397
|
contentRef: s
|
|
4398
|
-
}), (R, N) => (pe(),
|
|
4398
|
+
}), (R, N) => (pe(), He(S1, {
|
|
4399
4399
|
disabled: !R.teleported,
|
|
4400
4400
|
to: F(T)
|
|
4401
4401
|
}, [
|
|
@@ -4407,7 +4407,7 @@ const U2 = Ie({
|
|
|
4407
4407
|
onBeforeLeave: P
|
|
4408
4408
|
}, {
|
|
4409
4409
|
default: ce(() => [
|
|
4410
|
-
F(b) ? Pt((pe(),
|
|
4410
|
+
F(b) ? Pt((pe(), He(F(A2), Bi({
|
|
4411
4411
|
key: 0,
|
|
4412
4412
|
id: F(l),
|
|
4413
4413
|
ref_key: "contentRef",
|
|
@@ -4437,12 +4437,12 @@ const U2 = Ie({
|
|
|
4437
4437
|
onClose: F(u)
|
|
4438
4438
|
}), {
|
|
4439
4439
|
default: ce(() => [
|
|
4440
|
-
o.value ?
|
|
4440
|
+
o.value ? ke("v-if", !0) : Ze(R.$slots, "default", { key: 0 })
|
|
4441
4441
|
]),
|
|
4442
4442
|
_: 3
|
|
4443
4443
|
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
|
|
4444
4444
|
[mn, F(S)]
|
|
4445
|
-
]) :
|
|
4445
|
+
]) : ke("v-if", !0)
|
|
4446
4446
|
]),
|
|
4447
4447
|
_: 3
|
|
4448
4448
|
}, 8, ["name"])
|
|
@@ -4516,7 +4516,7 @@ const k2 = ["innerHTML"], G2 = { key: 1 }, H2 = Ie({
|
|
|
4516
4516
|
onOpen: g,
|
|
4517
4517
|
onClose: p,
|
|
4518
4518
|
hide: u
|
|
4519
|
-
}), (v, m) => (pe(),
|
|
4519
|
+
}), (v, m) => (pe(), He(F(C2), {
|
|
4520
4520
|
ref_key: "popperRef",
|
|
4521
4521
|
ref: s,
|
|
4522
4522
|
role: v.role
|
|
@@ -4530,7 +4530,7 @@ const k2 = ["innerHTML"], G2 = { key: 1 }, H2 = Ie({
|
|
|
4530
4530
|
"virtual-triggering": v.virtualTriggering
|
|
4531
4531
|
}, {
|
|
4532
4532
|
default: ce(() => [
|
|
4533
|
-
v.$slots.default ? Ze(v.$slots, "default", { key: 0 }) :
|
|
4533
|
+
v.$slots.default ? Ze(v.$slots, "default", { key: 0 }) : ke("v-if", !0)
|
|
4534
4534
|
]),
|
|
4535
4535
|
_: 3
|
|
4536
4536
|
}, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
|
|
@@ -4571,10 +4571,10 @@ const k2 = ["innerHTML"], G2 = { key: 1 }, H2 = Ie({
|
|
|
4571
4571
|
innerHTML: v.content
|
|
4572
4572
|
}, null, 8, k2)) : (pe(), Le("span", G2, ft(v.content), 1))
|
|
4573
4573
|
]),
|
|
4574
|
-
v.showArrow ? (pe(),
|
|
4574
|
+
v.showArrow ? (pe(), He(F(JC), {
|
|
4575
4575
|
key: 0,
|
|
4576
4576
|
"arrow-offset": v.arrowOffset
|
|
4577
|
-
}, null, 8, ["arrow-offset"])) :
|
|
4577
|
+
}, null, 8, ["arrow-offset"])) : ke("v-if", !0)
|
|
4578
4578
|
]),
|
|
4579
4579
|
_: 3
|
|
4580
4580
|
}, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
|
|
@@ -5252,7 +5252,7 @@ const uL = Ie({
|
|
|
5252
5252
|
type: l,
|
|
5253
5253
|
disabled: c,
|
|
5254
5254
|
shouldAddSpace: u
|
|
5255
|
-
}), (p, d) => (pe(),
|
|
5255
|
+
}), (p, d) => (pe(), He(Xn(p.tag), Bi({
|
|
5256
5256
|
ref_key: "_ref",
|
|
5257
5257
|
ref: o
|
|
5258
5258
|
}, F(h), {
|
|
@@ -5261,28 +5261,28 @@ const uL = Ie({
|
|
|
5261
5261
|
onClick: F(f)
|
|
5262
5262
|
}), {
|
|
5263
5263
|
default: ce(() => [
|
|
5264
|
-
p.loading ? (pe(), Le(
|
|
5265
|
-
p.$slots.loading ? Ze(p.$slots, "loading", { key: 0 }) : (pe(),
|
|
5264
|
+
p.loading ? (pe(), Le(Ft, { key: 0 }, [
|
|
5265
|
+
p.$slots.loading ? Ze(p.$slots, "loading", { key: 0 }) : (pe(), He(F(zt), {
|
|
5266
5266
|
key: 1,
|
|
5267
5267
|
class: Ce(F(s).is("loading"))
|
|
5268
5268
|
}, {
|
|
5269
5269
|
default: ce(() => [
|
|
5270
|
-
(pe(),
|
|
5270
|
+
(pe(), He(Xn(p.loadingIcon)))
|
|
5271
5271
|
]),
|
|
5272
5272
|
_: 1
|
|
5273
5273
|
}, 8, ["class"]))
|
|
5274
|
-
], 64)) : p.icon || p.$slots.icon ? (pe(),
|
|
5274
|
+
], 64)) : p.icon || p.$slots.icon ? (pe(), He(F(zt), { key: 1 }, {
|
|
5275
5275
|
default: ce(() => [
|
|
5276
|
-
p.icon ? (pe(),
|
|
5276
|
+
p.icon ? (pe(), He(Xn(p.icon), { key: 0 })) : Ze(p.$slots, "icon", { key: 1 })
|
|
5277
5277
|
]),
|
|
5278
5278
|
_: 3
|
|
5279
|
-
})) :
|
|
5279
|
+
})) : ke("v-if", !0),
|
|
5280
5280
|
p.$slots.default ? (pe(), Le("span", {
|
|
5281
5281
|
key: 2,
|
|
5282
5282
|
class: Ce({ [F(s).em("text", "expand")]: F(u) })
|
|
5283
5283
|
}, [
|
|
5284
5284
|
Ze(p.$slots, "default")
|
|
5285
|
-
], 2)) :
|
|
5285
|
+
], 2)) : ke("v-if", !0)
|
|
5286
5286
|
]),
|
|
5287
5287
|
_: 3
|
|
5288
5288
|
}, 16, ["class", "style", "onClick"]));
|
|
@@ -5341,7 +5341,7 @@ function Tu(n) {
|
|
|
5341
5341
|
}
|
|
5342
5342
|
const Dr = /* @__PURE__ */ new Map();
|
|
5343
5343
|
let cg;
|
|
5344
|
-
|
|
5344
|
+
sn && (document.addEventListener("mousedown", (n) => cg = n), document.addEventListener("mouseup", (n) => {
|
|
5345
5345
|
for (const e of Dr.values())
|
|
5346
5346
|
for (const { documentHandler: t } of e)
|
|
5347
5347
|
t(n, cg);
|
|
@@ -5547,7 +5547,7 @@ const TL = ct({
|
|
|
5547
5547
|
]),
|
|
5548
5548
|
Ne("span", {
|
|
5549
5549
|
class: Ce(F(t).be("button", "inner")),
|
|
5550
|
-
style:
|
|
5550
|
+
style: Ut(F(a) === F(c) ? F(h) : {}),
|
|
5551
5551
|
onKeydown: f[4] || (f[4] = Kt(() => {
|
|
5552
5552
|
}, ["stop"]))
|
|
5553
5553
|
}, [
|
|
@@ -5604,7 +5604,7 @@ const LL = ct({
|
|
|
5604
5604
|
}), c = (u) => {
|
|
5605
5605
|
e(Et, u), xt(() => e("change", u));
|
|
5606
5606
|
};
|
|
5607
|
-
|
|
5607
|
+
ln(() => {
|
|
5608
5608
|
const u = s.value.querySelectorAll("[type=radio]"), f = u[0];
|
|
5609
5609
|
!Array.from(u).some((g) => g.checked) && f && (f.tabIndex = 0);
|
|
5610
5610
|
});
|
|
@@ -5689,7 +5689,7 @@ const wh = ct({
|
|
|
5689
5689
|
return (l, c) => l.disableTransitions ? (pe(), Le("span", {
|
|
5690
5690
|
key: 0,
|
|
5691
5691
|
class: Ce(F(s)),
|
|
5692
|
-
style:
|
|
5692
|
+
style: Ut({ backgroundColor: l.color }),
|
|
5693
5693
|
onClick: a
|
|
5694
5694
|
}, [
|
|
5695
5695
|
Ne("span", {
|
|
@@ -5697,7 +5697,7 @@ const wh = ct({
|
|
|
5697
5697
|
}, [
|
|
5698
5698
|
Ze(l.$slots, "default")
|
|
5699
5699
|
], 2),
|
|
5700
|
-
l.closable ? (pe(),
|
|
5700
|
+
l.closable ? (pe(), He(F(zt), {
|
|
5701
5701
|
key: 0,
|
|
5702
5702
|
class: Ce(F(r).e("close")),
|
|
5703
5703
|
onClick: Kt(o, ["stop"])
|
|
@@ -5706,8 +5706,8 @@ const wh = ct({
|
|
|
5706
5706
|
oe(F(mh))
|
|
5707
5707
|
]),
|
|
5708
5708
|
_: 1
|
|
5709
|
-
}, 8, ["class", "onClick"])) :
|
|
5710
|
-
], 6)) : (pe(),
|
|
5709
|
+
}, 8, ["class", "onClick"])) : ke("v-if", !0)
|
|
5710
|
+
], 6)) : (pe(), He(fl, {
|
|
5711
5711
|
key: 1,
|
|
5712
5712
|
name: `${F(r).namespace.value}-zoom-in-center`,
|
|
5713
5713
|
appear: ""
|
|
@@ -5715,7 +5715,7 @@ const wh = ct({
|
|
|
5715
5715
|
default: ce(() => [
|
|
5716
5716
|
Ne("span", {
|
|
5717
5717
|
class: Ce(F(s)),
|
|
5718
|
-
style:
|
|
5718
|
+
style: Ut({ backgroundColor: l.color }),
|
|
5719
5719
|
onClick: a
|
|
5720
5720
|
}, [
|
|
5721
5721
|
Ne("span", {
|
|
@@ -5723,7 +5723,7 @@ const wh = ct({
|
|
|
5723
5723
|
}, [
|
|
5724
5724
|
Ze(l.$slots, "default")
|
|
5725
5725
|
], 2),
|
|
5726
|
-
l.closable ? (pe(),
|
|
5726
|
+
l.closable ? (pe(), He(F(zt), {
|
|
5727
5727
|
key: 0,
|
|
5728
5728
|
class: Ce(F(r).e("close")),
|
|
5729
5729
|
onClick: Kt(o, ["stop"])
|
|
@@ -5732,7 +5732,7 @@ const wh = ct({
|
|
|
5732
5732
|
oe(F(mh))
|
|
5733
5733
|
]),
|
|
5734
5734
|
_: 1
|
|
5735
|
-
}, 8, ["class", "onClick"])) :
|
|
5735
|
+
}, 8, ["class", "onClick"])) : ke("v-if", !0)
|
|
5736
5736
|
], 6)
|
|
5737
5737
|
]),
|
|
5738
5738
|
_: 3
|
|
@@ -5783,9 +5783,9 @@ const VL = _n(zL), Dy = Symbol("rowContextKey"), kL = [
|
|
|
5783
5783
|
t.is(`justify-${e.justify}`, e.justify !== "start"),
|
|
5784
5784
|
t.is(`align-${e.align}`, !!e.align)
|
|
5785
5785
|
]);
|
|
5786
|
-
return (o, a) => (pe(),
|
|
5786
|
+
return (o, a) => (pe(), He(Xn(o.tag), {
|
|
5787
5787
|
class: Ce(F(s)),
|
|
5788
|
-
style:
|
|
5788
|
+
style: Ut(F(r))
|
|
5789
5789
|
}, {
|
|
5790
5790
|
default: ce(() => [
|
|
5791
5791
|
Ze(o.$slots, "default")
|
|
@@ -5856,9 +5856,9 @@ const Ei = _n($L), ZL = ct({
|
|
|
5856
5856
|
});
|
|
5857
5857
|
}), t.value && o.push(i.is("guttered")), [i.b(), o];
|
|
5858
5858
|
});
|
|
5859
|
-
return (o, a) => (pe(),
|
|
5859
|
+
return (o, a) => (pe(), He(Xn(o.tag), {
|
|
5860
5860
|
class: Ce(F(s)),
|
|
5861
|
-
style:
|
|
5861
|
+
style: Ut(F(r))
|
|
5862
5862
|
}, {
|
|
5863
5863
|
default: ce(() => [
|
|
5864
5864
|
Ze(o.$slots, "default")
|
|
@@ -5956,7 +5956,7 @@ const rR = Ie({
|
|
|
5956
5956
|
t(r);
|
|
5957
5957
|
}
|
|
5958
5958
|
};
|
|
5959
|
-
return (r, s) => (pe(),
|
|
5959
|
+
return (r, s) => (pe(), He(fl, Bi({
|
|
5960
5960
|
name: F(e).b()
|
|
5961
5961
|
}, T1(i)), {
|
|
5962
5962
|
default: ce(() => [
|
|
@@ -6137,7 +6137,7 @@ const vR = Ie({
|
|
|
6137
6137
|
const e = n, t = tt("aside"), i = le(() => e.width ? t.cssVarBlock({ width: e.width }) : {});
|
|
6138
6138
|
return (r, s) => (pe(), Le("aside", {
|
|
6139
6139
|
class: Ce(F(t).b()),
|
|
6140
|
-
style:
|
|
6140
|
+
style: Ut(F(i))
|
|
6141
6141
|
}, [
|
|
6142
6142
|
Ze(r.$slots, "default")
|
|
6143
6143
|
], 6));
|
|
@@ -6158,7 +6158,7 @@ const bR = Ie({
|
|
|
6158
6158
|
const e = n, t = tt("footer"), i = le(() => e.height ? t.cssVarBlock({ height: e.height }) : {});
|
|
6159
6159
|
return (r, s) => (pe(), Le("footer", {
|
|
6160
6160
|
class: Ce(F(t).b()),
|
|
6161
|
-
style:
|
|
6161
|
+
style: Ut(F(i))
|
|
6162
6162
|
}, [
|
|
6163
6163
|
Ze(r.$slots, "default")
|
|
6164
6164
|
], 6));
|
|
@@ -6181,7 +6181,7 @@ const wR = Ie({
|
|
|
6181
6181
|
}) : {});
|
|
6182
6182
|
return (r, s) => (pe(), Le("header", {
|
|
6183
6183
|
class: Ce(F(t).b()),
|
|
6184
|
-
style:
|
|
6184
|
+
style: Ut(F(i))
|
|
6185
6185
|
}, [
|
|
6186
6186
|
Ze(r.$slots, "default")
|
|
6187
6187
|
], 6));
|
|
@@ -6249,7 +6249,7 @@ const PR = "data-el-collection-item", IR = (n) => {
|
|
|
6249
6249
|
const c = Ee(null), h = ht(i, void 0);
|
|
6250
6250
|
vn(r, {
|
|
6251
6251
|
collectionItemRef: c
|
|
6252
|
-
}),
|
|
6252
|
+
}), ln(() => {
|
|
6253
6253
|
const u = F(c);
|
|
6254
6254
|
u && h.itemMap.set(u, {
|
|
6255
6255
|
ref: u,
|
|
@@ -6494,7 +6494,7 @@ const OR = ct({
|
|
|
6494
6494
|
return Je(() => i.modelValue, (O, x) => {
|
|
6495
6495
|
const R = T(O, !0);
|
|
6496
6496
|
a.userInput === null && R !== x && (a.currentValue = R);
|
|
6497
|
-
}, { immediate: !0 }),
|
|
6497
|
+
}, { immediate: !0 }), ln(() => {
|
|
6498
6498
|
var O;
|
|
6499
6499
|
const { min: x, max: R, modelValue: N } = i, D = (O = o.value) == null ? void 0 : O.input;
|
|
6500
6500
|
if (D.setAttribute("role", "spinbutton"), Number.isFinite(R) ? D.setAttribute("aria-valuemax", String(R)) : D.removeAttribute("aria-valuemax"), Number.isFinite(x) ? D.setAttribute("aria-valuemin", String(x)) : D.removeAttribute("aria-valuemin"), D.setAttribute("aria-valuenow", a.currentValue || a.currentValue === 0 ? String(a.currentValue) : ""), D.setAttribute("aria-disabled", String(p.value)), !wt(N) && N != null) {
|
|
@@ -6536,14 +6536,14 @@ const OR = ct({
|
|
|
6536
6536
|
Ze(O.$slots, "decrease-icon", {}, () => [
|
|
6537
6537
|
oe(F(zt), null, {
|
|
6538
6538
|
default: ce(() => [
|
|
6539
|
-
F(f) ? (pe(),
|
|
6539
|
+
F(f) ? (pe(), He(F(Mf), { key: 0 })) : (pe(), He(F(AE), { key: 1 }))
|
|
6540
6540
|
]),
|
|
6541
6541
|
_: 1
|
|
6542
6542
|
})
|
|
6543
6543
|
])
|
|
6544
6544
|
], 42, NR)), [
|
|
6545
6545
|
[F(dg), S]
|
|
6546
|
-
]) :
|
|
6546
|
+
]) : ke("v-if", !0),
|
|
6547
6547
|
O.controls ? Pt((pe(), Le("span", {
|
|
6548
6548
|
key: 1,
|
|
6549
6549
|
role: "button",
|
|
@@ -6554,14 +6554,14 @@ const OR = ct({
|
|
|
6554
6554
|
Ze(O.$slots, "increase-icon", {}, () => [
|
|
6555
6555
|
oe(F(zt), null, {
|
|
6556
6556
|
default: ce(() => [
|
|
6557
|
-
F(f) ? (pe(),
|
|
6557
|
+
F(f) ? (pe(), He(F(vE), { key: 0 })) : (pe(), He(F(yu), { key: 1 }))
|
|
6558
6558
|
]),
|
|
6559
6559
|
_: 1
|
|
6560
6560
|
})
|
|
6561
6561
|
])
|
|
6562
6562
|
], 42, BR)), [
|
|
6563
6563
|
[F(dg), b]
|
|
6564
|
-
]) :
|
|
6564
|
+
]) : ke("v-if", !0),
|
|
6565
6565
|
oe(F(Su), {
|
|
6566
6566
|
id: O.id,
|
|
6567
6567
|
ref_key: "input",
|
|
@@ -6599,7 +6599,7 @@ function VR(n, e) {
|
|
|
6599
6599
|
return !r.value && g.length >= t.props.multipleLimit && t.props.multipleLimit > 0;
|
|
6600
6600
|
} else
|
|
6601
6601
|
return !1;
|
|
6602
|
-
}), o = le(() => n.label || (In(n.value) ? "" : n.value)), a = le(() => n.value || n.label || ""), l = le(() => n.disabled || e.groupDisabled || s.value), c =
|
|
6602
|
+
}), o = le(() => n.label || (In(n.value) ? "" : n.value)), a = le(() => n.value || n.label || ""), l = le(() => n.disabled || e.groupDisabled || s.value), c = on(), h = (g = [], p) => {
|
|
6603
6603
|
if (In(n.value)) {
|
|
6604
6604
|
const d = t.props.valueKey;
|
|
6605
6605
|
return g && g.some((y) => hf(ir(y, d)) === ir(p, d));
|
|
@@ -6662,7 +6662,7 @@ const kR = Ie({
|
|
|
6662
6662
|
select: l,
|
|
6663
6663
|
hoverItem: c,
|
|
6664
6664
|
updateOption: h
|
|
6665
|
-
} = VR(n, r), { visible: u, hover: f } = hr(r), g =
|
|
6665
|
+
} = VR(n, r), { visible: u, hover: f } = hr(r), g = on().proxy;
|
|
6666
6666
|
l.onOptionCreate(g), Si(() => {
|
|
6667
6667
|
const d = g.value, { selected: y } = l.states, m = (l.props.multiple ? y : [y]).some((b) => b.value === g.value);
|
|
6668
6668
|
xt(() => {
|
|
@@ -6716,7 +6716,7 @@ const WR = Ie({
|
|
|
6716
6716
|
var a;
|
|
6717
6717
|
s.value = `${(a = n.selectRef) == null ? void 0 : a.offsetWidth}px`;
|
|
6718
6718
|
}
|
|
6719
|
-
return
|
|
6719
|
+
return ln(() => {
|
|
6720
6720
|
o(), mi(n.selectRef, o);
|
|
6721
6721
|
}), {
|
|
6722
6722
|
ns: e,
|
|
@@ -6730,21 +6730,21 @@ const WR = Ie({
|
|
|
6730
6730
|
function jR(n, e, t, i, r, s) {
|
|
6731
6731
|
return pe(), Le("div", {
|
|
6732
6732
|
class: Ce([n.ns.b("dropdown"), n.ns.is("multiple", n.isMultiple), n.popperClass]),
|
|
6733
|
-
style:
|
|
6733
|
+
style: Ut({ [n.isFitInputWidth ? "width" : "minWidth"]: n.minWidth })
|
|
6734
6734
|
}, [
|
|
6735
6735
|
n.$slots.header ? (pe(), Le("div", {
|
|
6736
6736
|
key: 0,
|
|
6737
6737
|
class: Ce(n.ns.be("dropdown", "header"))
|
|
6738
6738
|
}, [
|
|
6739
6739
|
Ze(n.$slots, "header")
|
|
6740
|
-
], 2)) :
|
|
6740
|
+
], 2)) : ke("v-if", !0),
|
|
6741
6741
|
Ze(n.$slots, "default"),
|
|
6742
6742
|
n.$slots.footer ? (pe(), Le("div", {
|
|
6743
6743
|
key: 1,
|
|
6744
6744
|
class: Ce(n.ns.be("dropdown", "footer"))
|
|
6745
6745
|
}, [
|
|
6746
6746
|
Ze(n.$slots, "footer")
|
|
6747
|
-
], 2)) :
|
|
6747
|
+
], 2)) : ke("v-if", !0)
|
|
6748
6748
|
], 6);
|
|
6749
6749
|
}
|
|
6750
6750
|
var $R = /* @__PURE__ */ it(WR, [["render", jR], ["__file", "select-dropdown.vue"]]);
|
|
@@ -6785,8 +6785,8 @@ const XR = 11, YR = (n, e) => {
|
|
|
6785
6785
|
n.automaticDropdown && !w.value && (w.value = !0, o.menuVisibleOnFocus = !0);
|
|
6786
6786
|
},
|
|
6787
6787
|
beforeBlur(fe) {
|
|
6788
|
-
var be,
|
|
6789
|
-
return ((be = c.value) == null ? void 0 : be.isFocusInsideContent(fe)) || ((
|
|
6788
|
+
var be, Ve;
|
|
6789
|
+
return ((be = c.value) == null ? void 0 : be.isFocusInsideContent(fe)) || ((Ve = h.value) == null ? void 0 : Ve.isFocusInsideContent(fe));
|
|
6790
6790
|
},
|
|
6791
6791
|
afterBlur() {
|
|
6792
6792
|
w.value = !1, o.menuVisibleOnFocus = !1;
|
|
@@ -6795,8 +6795,8 @@ const XR = 11, YR = (n, e) => {
|
|
|
6795
6795
|
formItemContext: E
|
|
6796
6796
|
}), { valueOnClear: L, isEmptyValue: P } = uC(n), I = le(() => n.disabled || (A == null ? void 0 : A.disabled)), O = le(() => n.multiple ? Pn(n.modelValue) && n.modelValue.length > 0 : !P(n.modelValue)), x = le(() => n.clearable && !I.value && o.inputHovering && O.value), R = le(() => n.remote && n.filterable && !n.remoteShowSuffix ? "" : n.suffixIcon), N = le(() => r.is("reverse", R.value && w.value)), D = le(() => (E == null ? void 0 : E.validateState) || ""), U = le(() => j0[D.value]), G = le(() => n.remote ? 300 : 0), H = le(() => n.loading ? n.loadingText || t("el.select.loading") : n.remote && !o.inputValue && o.options.size === 0 ? !1 : n.filterable && o.inputValue && o.options.size > 0 && K.value === 0 ? n.noMatchText || t("el.select.noMatch") : o.options.size === 0 ? n.noDataText || t("el.select.noData") : null), K = le(() => te.value.filter((fe) => fe.visible).length), te = le(() => {
|
|
6797
6797
|
const fe = Array.from(o.options.values()), be = [];
|
|
6798
|
-
return o.optionValues.forEach((
|
|
6799
|
-
const Ue = fe.findIndex((Ke) => Ke.value ===
|
|
6798
|
+
return o.optionValues.forEach((Ve) => {
|
|
6799
|
+
const Ue = fe.findIndex((Ke) => Ke.value === Ve);
|
|
6800
6800
|
Ue > -1 && be.push(fe[Ue]);
|
|
6801
6801
|
}), be.length >= fe.length ? be : fe;
|
|
6802
6802
|
}), W = le(() => Array.from(o.cachedOptions.values())), V = le(() => {
|
|
@@ -6820,7 +6820,7 @@ const XR = 11, YR = (n, e) => {
|
|
|
6820
6820
|
return n.multiple || !O.value ? be : o.selectedLabel;
|
|
6821
6821
|
}), ne = le(() => ah ? null : "mouseenter");
|
|
6822
6822
|
Je(() => n.modelValue, (fe, be) => {
|
|
6823
|
-
n.multiple && n.filterable && !n.reserveKeyword && (o.inputValue = "", B("")), J(), !Jc(fe, be) && n.validateEvent && (E == null || E.validate("change").catch((
|
|
6823
|
+
n.multiple && n.filterable && !n.reserveKeyword && (o.inputValue = "", B("")), J(), !Jc(fe, be) && n.validateEvent && (E == null || E.validate("change").catch((Ve) => $t(Ve)));
|
|
6824
6824
|
}, {
|
|
6825
6825
|
flush: "post",
|
|
6826
6826
|
deep: !0
|
|
@@ -6828,7 +6828,7 @@ const XR = 11, YR = (n, e) => {
|
|
|
6828
6828
|
fe ? B(o.inputValue) : (o.inputValue = "", o.previousQuery = null, o.isBeforeHide = !0), e("visible-change", fe);
|
|
6829
6829
|
}), Je(() => o.options.entries(), () => {
|
|
6830
6830
|
var fe;
|
|
6831
|
-
if (!
|
|
6831
|
+
if (!sn)
|
|
6832
6832
|
return;
|
|
6833
6833
|
const be = ((fe = a.value) == null ? void 0 : fe.querySelectorAll("input")) || [];
|
|
6834
6834
|
(!n.filterable && !n.defaultFirstOption && !zr(n.modelValue) || !Array.from(be).includes(document.activeElement)) && J(), n.defaultFirstOption && (n.filterable || n.remote) && K.value && $();
|
|
@@ -6844,8 +6844,8 @@ const XR = 11, YR = (n, e) => {
|
|
|
6844
6844
|
const B = (fe) => {
|
|
6845
6845
|
o.previousQuery !== fe && (o.previousQuery = fe, n.filterable && Ln(n.filterMethod) ? n.filterMethod(fe) : n.filterable && n.remote && Ln(n.remoteMethod) && n.remoteMethod(fe), n.defaultFirstOption && (n.filterable || n.remote) && K.value ? xt($) : xt(k));
|
|
6846
6846
|
}, $ = () => {
|
|
6847
|
-
const fe = te.value.filter((Ue) => Ue.visible && !Ue.disabled && !Ue.states.groupDisabled), be = fe.find((Ue) => Ue.created),
|
|
6848
|
-
o.hoveringIndex = vt(te.value, be ||
|
|
6847
|
+
const fe = te.value.filter((Ue) => Ue.visible && !Ue.disabled && !Ue.states.groupDisabled), be = fe.find((Ue) => Ue.created), Ve = fe[0];
|
|
6848
|
+
o.hoveringIndex = vt(te.value, be || Ve);
|
|
6849
6849
|
}, J = () => {
|
|
6850
6850
|
if (n.multiple)
|
|
6851
6851
|
o.selectedLabel = "";
|
|
@@ -6860,10 +6860,10 @@ const XR = 11, YR = (n, e) => {
|
|
|
6860
6860
|
}), o.selected = fe;
|
|
6861
6861
|
}, z = (fe) => {
|
|
6862
6862
|
let be;
|
|
6863
|
-
const
|
|
6863
|
+
const Ve = Ku(fe).toLowerCase() === "object", Ue = Ku(fe).toLowerCase() === "null", Ke = Ku(fe).toLowerCase() === "undefined";
|
|
6864
6864
|
for (let fn = o.cachedOptions.size - 1; fn >= 0; fn--) {
|
|
6865
6865
|
const Ct = W.value[fn];
|
|
6866
|
-
if (
|
|
6866
|
+
if (Ve ? ir(Ct.value, n.valueKey) === ir(fe, n.valueKey) : Ct.value === fe) {
|
|
6867
6867
|
be = {
|
|
6868
6868
|
value: fe,
|
|
6869
6869
|
currentLabel: Ct.currentLabel,
|
|
@@ -6876,7 +6876,7 @@ const XR = 11, YR = (n, e) => {
|
|
|
6876
6876
|
}
|
|
6877
6877
|
if (be)
|
|
6878
6878
|
return be;
|
|
6879
|
-
const Ye =
|
|
6879
|
+
const Ye = Ve ? fe.label : !Ue && !Ke ? fe : "";
|
|
6880
6880
|
return {
|
|
6881
6881
|
value: fe,
|
|
6882
6882
|
currentLabel: Ye
|
|
@@ -6908,30 +6908,30 @@ const XR = 11, YR = (n, e) => {
|
|
|
6908
6908
|
Jc(n.modelValue, fe) || e(br, fe);
|
|
6909
6909
|
}, _e = (fe) => iE(fe, (be) => !o.disabledOptions.has(be)), ve = (fe) => {
|
|
6910
6910
|
if (n.multiple && fe.code !== Ui.delete && fe.target.value.length <= 0) {
|
|
6911
|
-
const be = n.modelValue.slice(),
|
|
6912
|
-
if (
|
|
6911
|
+
const be = n.modelValue.slice(), Ve = _e(be);
|
|
6912
|
+
if (Ve < 0)
|
|
6913
6913
|
return;
|
|
6914
|
-
const Ue = be[
|
|
6915
|
-
be.splice(
|
|
6914
|
+
const Ue = be[Ve];
|
|
6915
|
+
be.splice(Ve, 1), e(Et, be), re(be), e("remove-tag", Ue);
|
|
6916
6916
|
}
|
|
6917
6917
|
}, we = (fe, be) => {
|
|
6918
|
-
const
|
|
6919
|
-
if (
|
|
6918
|
+
const Ve = o.selected.indexOf(be);
|
|
6919
|
+
if (Ve > -1 && !I.value) {
|
|
6920
6920
|
const Ue = n.modelValue.slice();
|
|
6921
|
-
Ue.splice(
|
|
6921
|
+
Ue.splice(Ve, 1), e(Et, Ue), re(Ue), e("remove-tag", be.value);
|
|
6922
6922
|
}
|
|
6923
6923
|
fe.stopPropagation(), It();
|
|
6924
6924
|
}, Re = (fe) => {
|
|
6925
6925
|
fe.stopPropagation();
|
|
6926
6926
|
const be = n.multiple ? [] : L.value;
|
|
6927
6927
|
if (n.multiple)
|
|
6928
|
-
for (const
|
|
6929
|
-
|
|
6928
|
+
for (const Ve of o.selected)
|
|
6929
|
+
Ve.isDisabled && be.push(Ve.value);
|
|
6930
6930
|
e(Et, be), re(be), o.hoveringIndex = -1, w.value = !1, e("clear"), It();
|
|
6931
6931
|
}, nt = (fe) => {
|
|
6932
6932
|
if (n.multiple) {
|
|
6933
|
-
const be = (n.modelValue || []).slice(),
|
|
6934
|
-
|
|
6933
|
+
const be = (n.modelValue || []).slice(), Ve = vt(be, fe.value);
|
|
6934
|
+
Ve > -1 ? be.splice(Ve, 1) : (n.multipleLimit <= 0 || be.length < n.multipleLimit) && be.push(fe.value), e(Et, be), re(be), fe.created && B(""), n.filterable && !n.reserveKeyword && (o.inputValue = "");
|
|
6935
6935
|
} else
|
|
6936
6936
|
e(Et, fe.value), re(fe.value), w.value = !1;
|
|
6937
6937
|
It(), !w.value && xt(() => {
|
|
@@ -6940,11 +6940,11 @@ const XR = 11, YR = (n, e) => {
|
|
|
6940
6940
|
}, vt = (fe = [], be) => {
|
|
6941
6941
|
if (!In(be))
|
|
6942
6942
|
return fe.indexOf(be);
|
|
6943
|
-
const
|
|
6943
|
+
const Ve = n.valueKey;
|
|
6944
6944
|
let Ue = -1;
|
|
6945
|
-
return fe.some((Ke, Ye) => hf(ir(Ke,
|
|
6945
|
+
return fe.some((Ke, Ye) => hf(ir(Ke, Ve)) === ir(be, Ve) ? (Ue = Ye, !0) : !1), Ue;
|
|
6946
6946
|
}, ze = (fe) => {
|
|
6947
|
-
var be,
|
|
6947
|
+
var be, Ve, Ue, Ke, Ye;
|
|
6948
6948
|
const pt = Pn(fe) ? fe[0] : fe;
|
|
6949
6949
|
let fn = null;
|
|
6950
6950
|
if (pt != null && pt.value) {
|
|
@@ -6952,13 +6952,13 @@ const XR = 11, YR = (n, e) => {
|
|
|
6952
6952
|
Ct.length > 0 && (fn = Ct[0].$el);
|
|
6953
6953
|
}
|
|
6954
6954
|
if (c.value && fn) {
|
|
6955
|
-
const Ct = (Ke = (Ue = (
|
|
6955
|
+
const Ct = (Ke = (Ue = (Ve = (be = c.value) == null ? void 0 : be.popperRef) == null ? void 0 : Ve.contentRef) == null ? void 0 : Ue.querySelector) == null ? void 0 : Ke.call(Ue, `.${r.be("dropdown", "wrap")}`);
|
|
6956
6956
|
Ct && hE(Ct, fn);
|
|
6957
6957
|
}
|
|
6958
6958
|
(Ye = m.value) == null || Ye.handleScroll();
|
|
6959
6959
|
}, Tt = (fe) => {
|
|
6960
6960
|
o.options.set(fe.value, fe), o.cachedOptions.set(fe.value, fe), fe.disabled && o.disabledOptions.set(fe.value, fe);
|
|
6961
|
-
},
|
|
6961
|
+
}, Ge = (fe, be) => {
|
|
6962
6962
|
o.options.get(fe) === be && o.options.delete(fe);
|
|
6963
6963
|
}, {
|
|
6964
6964
|
handleCompositionStart: ut,
|
|
@@ -6967,7 +6967,7 @@ const XR = 11, YR = (n, e) => {
|
|
|
6967
6967
|
} = ZR((fe) => he(fe)), gt = le(() => {
|
|
6968
6968
|
var fe, be;
|
|
6969
6969
|
return (be = (fe = c.value) == null ? void 0 : fe.popperRef) == null ? void 0 : be.contentRef;
|
|
6970
|
-
}),
|
|
6970
|
+
}), cn = () => {
|
|
6971
6971
|
o.isBeforeHide = !1, xt(() => ze(o.selected));
|
|
6972
6972
|
}, It = () => {
|
|
6973
6973
|
var fe;
|
|
@@ -7008,7 +7008,7 @@ const XR = 11, YR = (n, e) => {
|
|
|
7008
7008
|
}), Oe = le(() => ({ maxWidth: `${o.selectionWidth}px` })), et = le(() => ({
|
|
7009
7009
|
width: `${Math.max(o.calculatorWidth, XR)}px`
|
|
7010
7010
|
}));
|
|
7011
|
-
return n.multiple && !Pn(n.modelValue) && e(Et, []), !n.multiple && Pn(n.modelValue) && e(Et, ""), mi(l, ae), mi(f, de), mi(d, ge), mi(b, ge), mi(y, Me), mi(v, ue),
|
|
7011
|
+
return n.multiple && !Pn(n.modelValue) && e(Et, []), !n.multiple && Pn(n.modelValue) && e(Et, ""), mi(l, ae), mi(f, de), mi(d, ge), mi(b, ge), mi(y, Me), mi(v, ue), ln(() => {
|
|
7012
7012
|
J();
|
|
7013
7013
|
}), {
|
|
7014
7014
|
inputId: C,
|
|
@@ -7051,8 +7051,8 @@ const XR = 11, YR = (n, e) => {
|
|
|
7051
7051
|
handleCompositionUpdate: rt,
|
|
7052
7052
|
handleCompositionEnd: Mt,
|
|
7053
7053
|
onOptionCreate: Tt,
|
|
7054
|
-
onOptionDestroy:
|
|
7055
|
-
handleMenuEnter:
|
|
7054
|
+
onOptionDestroy: Ge,
|
|
7055
|
+
handleMenuEnter: cn,
|
|
7056
7056
|
handleFocus: T,
|
|
7057
7057
|
focus: It,
|
|
7058
7058
|
blur: se,
|
|
@@ -7282,7 +7282,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7282
7282
|
class: Ce(n.nsSelect.e("prefix"))
|
|
7283
7283
|
}, [
|
|
7284
7284
|
Ze(n.$slots, "prefix")
|
|
7285
|
-
], 2)) :
|
|
7285
|
+
], 2)) : ke("v-if", !0),
|
|
7286
7286
|
Ne("div", {
|
|
7287
7287
|
ref: "selectionRef",
|
|
7288
7288
|
class: Ce([
|
|
@@ -7291,7 +7291,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7291
7291
|
])
|
|
7292
7292
|
}, [
|
|
7293
7293
|
n.multiple ? Ze(n.$slots, "tag", { key: 0 }, () => [
|
|
7294
|
-
(pe(!0), Le(
|
|
7294
|
+
(pe(!0), Le(Ft, null, Fn(n.showTagList, (d) => (pe(), Le("div", {
|
|
7295
7295
|
key: n.getValueKey(d),
|
|
7296
7296
|
class: Ce(n.nsSelect.e("selected-item"))
|
|
7297
7297
|
}, [
|
|
@@ -7301,7 +7301,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7301
7301
|
type: n.tagType,
|
|
7302
7302
|
effect: n.tagEffect,
|
|
7303
7303
|
"disable-transitions": "",
|
|
7304
|
-
style:
|
|
7304
|
+
style: Ut(n.tagStyle),
|
|
7305
7305
|
onClose: (y) => n.deleteTag(y, d)
|
|
7306
7306
|
}, {
|
|
7307
7307
|
default: ce(() => [
|
|
@@ -7319,7 +7319,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7319
7319
|
_: 2
|
|
7320
7320
|
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
|
7321
7321
|
], 2))), 128)),
|
|
7322
|
-
n.collapseTags && n.states.selected.length > n.maxCollapseTags ? (pe(),
|
|
7322
|
+
n.collapseTags && n.states.selected.length > n.maxCollapseTags ? (pe(), He(a, {
|
|
7323
7323
|
key: 0,
|
|
7324
7324
|
ref: "tagTooltipRef",
|
|
7325
7325
|
disabled: n.dropdownMenuVisible || !n.collapseTagsTooltip,
|
|
@@ -7339,7 +7339,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7339
7339
|
type: n.tagType,
|
|
7340
7340
|
effect: n.tagEffect,
|
|
7341
7341
|
"disable-transitions": "",
|
|
7342
|
-
style:
|
|
7342
|
+
style: Ut(n.collapseTagStyle)
|
|
7343
7343
|
}, {
|
|
7344
7344
|
default: ce(() => [
|
|
7345
7345
|
Ne("span", {
|
|
@@ -7355,7 +7355,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7355
7355
|
ref: "tagMenuRef",
|
|
7356
7356
|
class: Ce(n.nsSelect.e("selection"))
|
|
7357
7357
|
}, [
|
|
7358
|
-
(pe(!0), Le(
|
|
7358
|
+
(pe(!0), Le(Ft, null, Fn(n.collapseTagList, (d) => (pe(), Le("div", {
|
|
7359
7359
|
key: n.getValueKey(d),
|
|
7360
7360
|
class: Ce(n.nsSelect.e("selected-item"))
|
|
7361
7361
|
}, [
|
|
@@ -7386,9 +7386,9 @@ function nP(n, e, t, i, r, s) {
|
|
|
7386
7386
|
], 2)
|
|
7387
7387
|
]),
|
|
7388
7388
|
_: 3
|
|
7389
|
-
}, 8, ["disabled", "effect", "teleported"])) :
|
|
7390
|
-
]) :
|
|
7391
|
-
n.selectDisabled ?
|
|
7389
|
+
}, 8, ["disabled", "effect", "teleported"])) : ke("v-if", !0)
|
|
7390
|
+
]) : ke("v-if", !0),
|
|
7391
|
+
n.selectDisabled ? ke("v-if", !0) : (pe(), Le("div", {
|
|
7392
7392
|
key: 1,
|
|
7393
7393
|
class: Ce([
|
|
7394
7394
|
n.nsSelect.e("selected-item"),
|
|
@@ -7405,7 +7405,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7405
7405
|
class: Ce([n.nsSelect.e("input"), n.nsSelect.is(n.selectSize)]),
|
|
7406
7406
|
disabled: n.selectDisabled,
|
|
7407
7407
|
autocomplete: n.autocomplete,
|
|
7408
|
-
style:
|
|
7408
|
+
style: Ut(n.inputStyle),
|
|
7409
7409
|
role: "combobox",
|
|
7410
7410
|
readonly: !n.filterable,
|
|
7411
7411
|
spellcheck: "false",
|
|
@@ -7438,7 +7438,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7438
7438
|
"aria-hidden": "true",
|
|
7439
7439
|
class: Ce(n.nsSelect.e("input-calculator")),
|
|
7440
7440
|
textContent: ft(n.states.inputValue)
|
|
7441
|
-
}, null, 10, eP)) :
|
|
7441
|
+
}, null, 10, eP)) : ke("v-if", !0)
|
|
7442
7442
|
], 2)),
|
|
7443
7443
|
n.shouldShowPlaceholder ? (pe(), Le("div", {
|
|
7444
7444
|
key: 2,
|
|
@@ -7455,40 +7455,40 @@ function nP(n, e, t, i, r, s) {
|
|
|
7455
7455
|
}, () => [
|
|
7456
7456
|
Ne("span", null, ft(n.currentPlaceholder), 1)
|
|
7457
7457
|
]) : (pe(), Le("span", tP, ft(n.currentPlaceholder), 1))
|
|
7458
|
-
], 2)) :
|
|
7458
|
+
], 2)) : ke("v-if", !0)
|
|
7459
7459
|
], 2),
|
|
7460
7460
|
Ne("div", {
|
|
7461
7461
|
ref: "suffixRef",
|
|
7462
7462
|
class: Ce(n.nsSelect.e("suffix"))
|
|
7463
7463
|
}, [
|
|
7464
|
-
n.iconComponent && !n.showClose ? (pe(),
|
|
7464
|
+
n.iconComponent && !n.showClose ? (pe(), He(l, {
|
|
7465
7465
|
key: 0,
|
|
7466
7466
|
class: Ce([n.nsSelect.e("caret"), n.nsSelect.e("icon"), n.iconReverse])
|
|
7467
7467
|
}, {
|
|
7468
7468
|
default: ce(() => [
|
|
7469
|
-
(pe(),
|
|
7469
|
+
(pe(), He(Xn(n.iconComponent)))
|
|
7470
7470
|
]),
|
|
7471
7471
|
_: 1
|
|
7472
|
-
}, 8, ["class"])) :
|
|
7473
|
-
n.showClose && n.clearIcon ? (pe(),
|
|
7472
|
+
}, 8, ["class"])) : ke("v-if", !0),
|
|
7473
|
+
n.showClose && n.clearIcon ? (pe(), He(l, {
|
|
7474
7474
|
key: 1,
|
|
7475
7475
|
class: Ce([n.nsSelect.e("caret"), n.nsSelect.e("icon")]),
|
|
7476
7476
|
onClick: n.handleClearClick
|
|
7477
7477
|
}, {
|
|
7478
7478
|
default: ce(() => [
|
|
7479
|
-
(pe(),
|
|
7479
|
+
(pe(), He(Xn(n.clearIcon)))
|
|
7480
7480
|
]),
|
|
7481
7481
|
_: 1
|
|
7482
|
-
}, 8, ["class", "onClick"])) :
|
|
7483
|
-
n.validateState && n.validateIcon ? (pe(),
|
|
7482
|
+
}, 8, ["class", "onClick"])) : ke("v-if", !0),
|
|
7483
|
+
n.validateState && n.validateIcon ? (pe(), He(l, {
|
|
7484
7484
|
key: 2,
|
|
7485
7485
|
class: Ce([n.nsInput.e("icon"), n.nsInput.e("validateIcon")])
|
|
7486
7486
|
}, {
|
|
7487
7487
|
default: ce(() => [
|
|
7488
|
-
(pe(),
|
|
7488
|
+
(pe(), He(Xn(n.validateIcon)))
|
|
7489
7489
|
]),
|
|
7490
7490
|
_: 1
|
|
7491
|
-
}, 8, ["class"])) :
|
|
7491
|
+
}, 8, ["class"])) : ke("v-if", !0)
|
|
7492
7492
|
], 2)
|
|
7493
7493
|
], 2)
|
|
7494
7494
|
];
|
|
@@ -7503,7 +7503,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7503
7503
|
}, ["stop"]))
|
|
7504
7504
|
}, [
|
|
7505
7505
|
Ze(n.$slots, "header")
|
|
7506
|
-
], 2)) :
|
|
7506
|
+
], 2)) : ke("v-if", !0),
|
|
7507
7507
|
Pt(oe(u, {
|
|
7508
7508
|
id: n.contentId,
|
|
7509
7509
|
ref: "scrollbarRef",
|
|
@@ -7516,11 +7516,11 @@ function nP(n, e, t, i, r, s) {
|
|
|
7516
7516
|
"aria-orientation": "vertical"
|
|
7517
7517
|
}, {
|
|
7518
7518
|
default: ce(() => [
|
|
7519
|
-
n.showNewOption ? (pe(),
|
|
7519
|
+
n.showNewOption ? (pe(), He(c, {
|
|
7520
7520
|
key: 0,
|
|
7521
7521
|
value: n.states.inputValue,
|
|
7522
7522
|
created: !0
|
|
7523
|
-
}, null, 8, ["value"])) :
|
|
7523
|
+
}, null, 8, ["value"])) : ke("v-if", !0),
|
|
7524
7524
|
oe(h, null, {
|
|
7525
7525
|
default: ce(() => [
|
|
7526
7526
|
Ze(n.$slots, "default")
|
|
@@ -7544,7 +7544,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7544
7544
|
Ze(n.$slots, "empty", {}, () => [
|
|
7545
7545
|
Ne("span", null, ft(n.emptyText), 1)
|
|
7546
7546
|
])
|
|
7547
|
-
], 2)) :
|
|
7547
|
+
], 2)) : ke("v-if", !0),
|
|
7548
7548
|
n.$slots.footer ? (pe(), Le("div", {
|
|
7549
7549
|
key: 3,
|
|
7550
7550
|
class: Ce(n.nsSelect.be("dropdown", "footer")),
|
|
@@ -7552,7 +7552,7 @@ function nP(n, e, t, i, r, s) {
|
|
|
7552
7552
|
}, ["stop"]))
|
|
7553
7553
|
}, [
|
|
7554
7554
|
Ze(n.$slots, "footer")
|
|
7555
|
-
], 2)) :
|
|
7555
|
+
], 2)) : ke("v-if", !0)
|
|
7556
7556
|
]),
|
|
7557
7557
|
_: 3
|
|
7558
7558
|
}, 512)
|
|
@@ -7572,7 +7572,7 @@ const rP = Ie({
|
|
|
7572
7572
|
disabled: Boolean
|
|
7573
7573
|
},
|
|
7574
7574
|
setup(n) {
|
|
7575
|
-
const e = tt("select"), t = Ee(null), i =
|
|
7575
|
+
const e = tt("select"), t = Ee(null), i = on(), r = Ee([]);
|
|
7576
7576
|
vn(Wy, Qn({
|
|
7577
7577
|
...hr(n)
|
|
7578
7578
|
}));
|
|
@@ -7588,7 +7588,7 @@ const rP = Ie({
|
|
|
7588
7588
|
}, l = () => {
|
|
7589
7589
|
r.value = a(i.subTree);
|
|
7590
7590
|
};
|
|
7591
|
-
return
|
|
7591
|
+
return ln(() => {
|
|
7592
7592
|
l();
|
|
7593
7593
|
}), nM(t, l, {
|
|
7594
7594
|
attributes: !0,
|
|
@@ -7714,7 +7714,7 @@ const oP = ct({
|
|
|
7714
7714
|
return e({
|
|
7715
7715
|
popperRef: a,
|
|
7716
7716
|
hide: u
|
|
7717
|
-
}), (y, v) => (pe(),
|
|
7717
|
+
}), (y, v) => (pe(), He(F(kf), Bi({
|
|
7718
7718
|
ref_key: "tooltipRef",
|
|
7719
7719
|
ref: o
|
|
7720
7720
|
}, y.$attrs, {
|
|
@@ -7750,13 +7750,13 @@ const oP = ct({
|
|
|
7750
7750
|
key: 0,
|
|
7751
7751
|
class: Ce(F(s).e("title")),
|
|
7752
7752
|
role: "title"
|
|
7753
|
-
}, ft(y.title), 3)) :
|
|
7753
|
+
}, ft(y.title), 3)) : ke("v-if", !0),
|
|
7754
7754
|
Ze(y.$slots, "default", {}, () => [
|
|
7755
7755
|
Qe(ft(y.content), 1)
|
|
7756
7756
|
])
|
|
7757
7757
|
]),
|
|
7758
7758
|
default: ce(() => [
|
|
7759
|
-
y.$slots.reference ? Ze(y.$slots, "reference", { key: 0 }) :
|
|
7759
|
+
y.$slots.reference ? Ze(y.$slots, "reference", { key: 0 }) : ke("v-if", !0)
|
|
7760
7760
|
]),
|
|
7761
7761
|
_: 3
|
|
7762
7762
|
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
@@ -7861,7 +7861,7 @@ const fP = "popover", pP = OE(hP, fP), Au = _n(dP, {
|
|
|
7861
7861
|
[br]: ud
|
|
7862
7862
|
}, vP = (n, e, t) => {
|
|
7863
7863
|
const i = Ee();
|
|
7864
|
-
return
|
|
7864
|
+
return ln(async () => {
|
|
7865
7865
|
n.range ? (Array.isArray(n.modelValue) ? (e.firstValue = Math.max(n.min, n.modelValue[0]), e.secondValue = Math.min(n.max, n.modelValue[1])) : (e.firstValue = n.min, e.secondValue = n.max), e.oldValue = [e.firstValue, e.secondValue]) : (typeof n.modelValue != "number" || Number.isNaN(n.modelValue) ? e.firstValue = n.min : e.firstValue = Math.min(n.max, Math.max(n.min, n.modelValue)), e.oldValue = e.firstValue), yi(window, "resize", t), await xt(), t();
|
|
7866
7866
|
}), {
|
|
7867
7867
|
sliderWrapper: i
|
|
@@ -8120,7 +8120,7 @@ const fP = "popover", pP = OE(hP, fP), Au = _n(dP, {
|
|
|
8120
8120
|
ref_key: "button",
|
|
8121
8121
|
ref: a,
|
|
8122
8122
|
class: Ce([F(r).e("button-wrapper"), { hover: F(m), dragging: F(b) }]),
|
|
8123
|
-
style:
|
|
8123
|
+
style: Ut(F(u)),
|
|
8124
8124
|
tabindex: F(o) ? -1 : 0,
|
|
8125
8125
|
onMouseenter: T[0] || (T[0] = (...M) => F(g) && F(g)(...M)),
|
|
8126
8126
|
onMouseleave: T[1] || (T[1] = (...M) => F(p) && F(p)(...M)),
|
|
@@ -8260,13 +8260,13 @@ const zP = ["id", "role", "aria-label", "aria-labelledby"], VP = { key: 1 }, kP
|
|
|
8260
8260
|
{ "show-input": V.showInput && !V.range },
|
|
8261
8261
|
F(r).is("disabled", F(u))
|
|
8262
8262
|
]),
|
|
8263
|
-
style:
|
|
8263
|
+
style: Ut(F(p)),
|
|
8264
8264
|
onMousedown: j[0] || (j[0] = (...ee) => F(S) && F(S)(...ee)),
|
|
8265
8265
|
onTouchstart: j[1] || (j[1] = (...ee) => F(S) && F(S)(...ee))
|
|
8266
8266
|
}, [
|
|
8267
8267
|
Ne("div", {
|
|
8268
8268
|
class: Ce(F(r).e("bar")),
|
|
8269
|
-
style:
|
|
8269
|
+
style: Ut(F(d))
|
|
8270
8270
|
}, null, 6),
|
|
8271
8271
|
oe(mg, {
|
|
8272
8272
|
id: V.range ? void 0 : F(A),
|
|
@@ -8287,7 +8287,7 @@ const zP = ["id", "role", "aria-label", "aria-labelledby"], VP = { key: 1 }, kP
|
|
|
8287
8287
|
"aria-disabled": F(u),
|
|
8288
8288
|
"onUpdate:modelValue": F(T)
|
|
8289
8289
|
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
8290
|
-
V.range ? (pe(),
|
|
8290
|
+
V.range ? (pe(), He(mg, {
|
|
8291
8291
|
key: 0,
|
|
8292
8292
|
ref_key: "secondButton",
|
|
8293
8293
|
ref: h,
|
|
@@ -8304,34 +8304,34 @@ const zP = ["id", "role", "aria-label", "aria-labelledby"], VP = { key: 1 }, kP
|
|
|
8304
8304
|
"aria-orientation": V.vertical ? "vertical" : "horizontal",
|
|
8305
8305
|
"aria-disabled": F(u),
|
|
8306
8306
|
"onUpdate:modelValue": F(M)
|
|
8307
|
-
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) :
|
|
8307
|
+
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : ke("v-if", !0),
|
|
8308
8308
|
V.showStops ? (pe(), Le("div", VP, [
|
|
8309
|
-
(pe(!0), Le(
|
|
8309
|
+
(pe(!0), Le(Ft, null, Fn(F(w), (ee, ie) => (pe(), Le("div", {
|
|
8310
8310
|
key: ie,
|
|
8311
8311
|
class: Ce(F(r).e("stop")),
|
|
8312
|
-
style:
|
|
8312
|
+
style: Ut(F(_)(ee))
|
|
8313
8313
|
}, null, 6))), 128))
|
|
8314
|
-
])) :
|
|
8315
|
-
F(D).length > 0 ? (pe(), Le(
|
|
8314
|
+
])) : ke("v-if", !0),
|
|
8315
|
+
F(D).length > 0 ? (pe(), Le(Ft, { key: 2 }, [
|
|
8316
8316
|
Ne("div", null, [
|
|
8317
|
-
(pe(!0), Le(
|
|
8317
|
+
(pe(!0), Le(Ft, null, Fn(F(D), (ee, ie) => (pe(), Le("div", {
|
|
8318
8318
|
key: ie,
|
|
8319
|
-
style:
|
|
8319
|
+
style: Ut(F(_)(ee.position)),
|
|
8320
8320
|
class: Ce([F(r).e("stop"), F(r).e("marks-stop")])
|
|
8321
8321
|
}, null, 6))), 128))
|
|
8322
8322
|
]),
|
|
8323
8323
|
Ne("div", {
|
|
8324
8324
|
class: Ce(F(r).e("marks"))
|
|
8325
8325
|
}, [
|
|
8326
|
-
(pe(!0), Le(
|
|
8326
|
+
(pe(!0), Le(Ft, null, Fn(F(D), (ee, ie) => (pe(), He(F(UP), {
|
|
8327
8327
|
key: ie,
|
|
8328
8328
|
mark: ee.mark,
|
|
8329
|
-
style:
|
|
8329
|
+
style: Ut(F(_)(ee.position))
|
|
8330
8330
|
}, null, 8, ["mark", "style"]))), 128))
|
|
8331
8331
|
], 2)
|
|
8332
|
-
], 64)) :
|
|
8332
|
+
], 64)) : ke("v-if", !0)
|
|
8333
8333
|
], 38),
|
|
8334
|
-
V.showInput && !V.range ? (pe(),
|
|
8334
|
+
V.showInput && !V.range ? (pe(), He(F(xr), {
|
|
8335
8335
|
key: 0,
|
|
8336
8336
|
ref: "input",
|
|
8337
8337
|
"model-value": F(H),
|
|
@@ -8345,7 +8345,7 @@ const zP = ["id", "role", "aria-label", "aria-labelledby"], VP = { key: 1 }, kP
|
|
|
8345
8345
|
size: F(L),
|
|
8346
8346
|
"onUpdate:modelValue": F(T),
|
|
8347
8347
|
onChange: F(v)
|
|
8348
|
-
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "debounce", "size", "onUpdate:modelValue", "onChange"])) :
|
|
8348
|
+
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "debounce", "size", "onUpdate:modelValue", "onChange"])) : ke("v-if", !0)
|
|
8349
8349
|
], 42, zP);
|
|
8350
8350
|
};
|
|
8351
8351
|
}
|
|
@@ -8362,7 +8362,7 @@ const li = _n(HP), Cu = Symbol("tabsRootContextKey"), WP = ct({
|
|
|
8362
8362
|
...jP,
|
|
8363
8363
|
props: WP,
|
|
8364
8364
|
setup(n, { expose: e }) {
|
|
8365
|
-
const t = n, i =
|
|
8365
|
+
const t = n, i = on(), r = ht(Cu);
|
|
8366
8366
|
r || na(Zy, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
8367
8367
|
const s = tt("tabs"), o = Ee(), a = Ee(), l = () => {
|
|
8368
8368
|
let h = 0, u = 0;
|
|
@@ -8391,7 +8391,7 @@ const li = _n(HP), Cu = Symbol("tabsRootContextKey"), WP = ct({
|
|
|
8391
8391
|
ref_key: "barRef",
|
|
8392
8392
|
ref: o,
|
|
8393
8393
|
class: Ce([F(s).e("active-bar"), F(s).is(F(r).props.tabPosition)]),
|
|
8394
|
-
style:
|
|
8394
|
+
style: Ut(a.value)
|
|
8395
8395
|
}, null, 6));
|
|
8396
8396
|
}
|
|
8397
8397
|
});
|
|
@@ -8423,7 +8423,7 @@ const XP = ct({
|
|
|
8423
8423
|
expose: e,
|
|
8424
8424
|
emit: t
|
|
8425
8425
|
}) {
|
|
8426
|
-
const i =
|
|
8426
|
+
const i = on(), r = ht(Cu);
|
|
8427
8427
|
r || na(gg, "<el-tabs><tab-nav /></el-tabs>");
|
|
8428
8428
|
const s = tt("tabs"), o = Y1(), a = lM(), l = Ee(), c = Ee(), h = Ee(), u = Ee(), f = Ee(!1), g = Ee(0), p = Ee(!1), d = Ee(!0), y = le(() => ["top", "bottom"].includes(r.props.tabPosition) ? "width" : "height"), v = le(() => ({
|
|
8429
8429
|
transform: `translate${y.value === "width" ? "X" : "Y"}(-${g.value}px)`
|
|
@@ -8482,7 +8482,7 @@ const XP = ct({
|
|
|
8482
8482
|
A === "hidden" ? d.value = !1 : A === "visible" && setTimeout(() => d.value = !0, 50);
|
|
8483
8483
|
}), Je(a, (A) => {
|
|
8484
8484
|
A ? setTimeout(() => d.value = !0, 50) : d.value = !1;
|
|
8485
|
-
}), mi(h, T),
|
|
8485
|
+
}), mi(h, T), ln(() => setTimeout(() => S(), 0)), df(() => T()), e({
|
|
8486
8486
|
scrollToActiveTab: S,
|
|
8487
8487
|
removeFocus: _
|
|
8488
8488
|
}), Je(() => n.panes, () => i.update(), {
|
|
@@ -8589,7 +8589,7 @@ const XP = ct({
|
|
|
8589
8589
|
children: a,
|
|
8590
8590
|
addChild: l,
|
|
8591
8591
|
removeChild: c
|
|
8592
|
-
} = rC(
|
|
8592
|
+
} = rC(on(), "ElTabPane"), h = Ee(), u = Ee((r = n.modelValue) != null ? r : "0"), f = async (y, v = !1) => {
|
|
8593
8593
|
var m, b, S;
|
|
8594
8594
|
if (!(u.value === y || zr(y)))
|
|
8595
8595
|
try {
|
|
@@ -8664,7 +8664,7 @@ const XP = ct({
|
|
|
8664
8664
|
...nI,
|
|
8665
8665
|
props: eI,
|
|
8666
8666
|
setup(n) {
|
|
8667
|
-
const e = n, t =
|
|
8667
|
+
const e = n, t = on(), i = du(), r = ht(Cu);
|
|
8668
8668
|
r || na(Xy, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
8669
8669
|
const s = tt("tab-pane"), o = Ee(), a = le(() => e.closable || r.props.closable), l = Yp(() => {
|
|
8670
8670
|
var g;
|
|
@@ -8685,7 +8685,7 @@ const XP = ct({
|
|
|
8685
8685
|
index: o,
|
|
8686
8686
|
isClosable: a
|
|
8687
8687
|
});
|
|
8688
|
-
return
|
|
8688
|
+
return ln(() => {
|
|
8689
8689
|
r.registerPane(f);
|
|
8690
8690
|
}), v0(() => {
|
|
8691
8691
|
r.unregisterPane(f.uid);
|
|
@@ -8700,7 +8700,7 @@ const XP = ct({
|
|
|
8700
8700
|
Ze(g.$slots, "default")
|
|
8701
8701
|
], 10, tI)), [
|
|
8702
8702
|
[mn, F(l)]
|
|
8703
|
-
]) :
|
|
8703
|
+
]) : ke("v-if", !0);
|
|
8704
8704
|
}
|
|
8705
8705
|
});
|
|
8706
8706
|
var Yy = /* @__PURE__ */ it(iI, [["__file", "tab-pane.vue"]]);
|
|
@@ -8799,7 +8799,7 @@ function rI(n) {
|
|
|
8799
8799
|
}
|
|
8800
8800
|
let jl;
|
|
8801
8801
|
const Mh = function(n = {}) {
|
|
8802
|
-
if (!
|
|
8802
|
+
if (!sn)
|
|
8803
8803
|
return;
|
|
8804
8804
|
const e = sI(n);
|
|
8805
8805
|
if (e.fullscreen && jl)
|
|
@@ -11701,7 +11701,7 @@ class en {
|
|
|
11701
11701
|
}
|
|
11702
11702
|
}
|
|
11703
11703
|
let lO = 0;
|
|
11704
|
-
class
|
|
11704
|
+
class an extends ss {
|
|
11705
11705
|
constructor() {
|
|
11706
11706
|
super(), Object.defineProperty(this, "id", { value: lO++ }), this.uuid = Jn(), this.name = "", this.type = "Material", this.fog = !0, this.blending = To, this.side = Jr, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = Zf, this.blendDst = Xf, this.blendEquation = xs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = iu, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Lx, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = jc, this.stencilZFail = jc, this.stencilZPass = jc, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaTest = 0, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0;
|
|
11707
11707
|
}
|
|
@@ -11782,7 +11782,7 @@ class on extends ss {
|
|
|
11782
11782
|
e === !0 && this.version++;
|
|
11783
11783
|
}
|
|
11784
11784
|
}
|
|
11785
|
-
|
|
11785
|
+
an.prototype.isMaterial = !0;
|
|
11786
11786
|
const Ox = {
|
|
11787
11787
|
aliceblue: 15792383,
|
|
11788
11788
|
antiquewhite: 16444375,
|
|
@@ -12120,7 +12120,7 @@ Be.prototype.isColor = !0;
|
|
|
12120
12120
|
Be.prototype.r = 1;
|
|
12121
12121
|
Be.prototype.g = 1;
|
|
12122
12122
|
Be.prototype.b = 1;
|
|
12123
|
-
class zn extends
|
|
12123
|
+
class zn extends an {
|
|
12124
12124
|
constructor(e) {
|
|
12125
12125
|
super(), this.type = "MeshBasicMaterial", this.color = new Be(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = xl, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.morphTargets = !1, this.setValues(e);
|
|
12126
12126
|
}
|
|
@@ -12845,7 +12845,7 @@ var hO = `void main() {
|
|
|
12845
12845
|
}`, fO = `void main() {
|
|
12846
12846
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
12847
12847
|
}`;
|
|
12848
|
-
class mr extends
|
|
12848
|
+
class mr extends an {
|
|
12849
12849
|
constructor(e) {
|
|
12850
12850
|
super(), this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.vertexShader = hO, this.fragmentShader = fO, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.morphTargets = !1, this.morphNormals = !1, this.extensions = {
|
|
12851
12851
|
derivatives: !1,
|
|
@@ -18727,7 +18727,7 @@ function hB(n, e) {
|
|
|
18727
18727
|
dispose: r
|
|
18728
18728
|
};
|
|
18729
18729
|
}
|
|
18730
|
-
class Uu extends
|
|
18730
|
+
class Uu extends an {
|
|
18731
18731
|
constructor(e) {
|
|
18732
18732
|
super(), this.type = "MeshDepthMaterial", this.depthPacking = Ex, this.morphTargets = !1, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.setValues(e);
|
|
18733
18733
|
}
|
|
@@ -18736,7 +18736,7 @@ class Uu extends on {
|
|
|
18736
18736
|
}
|
|
18737
18737
|
}
|
|
18738
18738
|
Uu.prototype.isMeshDepthMaterial = !0;
|
|
18739
|
-
class zu extends
|
|
18739
|
+
class zu extends an {
|
|
18740
18740
|
constructor(e) {
|
|
18741
18741
|
super(), this.type = "MeshDistanceMaterial", this.referencePosition = new Y(), this.nearDistance = 1, this.farDistance = 1e3, this.morphTargets = !1, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.fog = !1, this.setValues(e);
|
|
18742
18742
|
}
|
|
@@ -18972,23 +18972,23 @@ function mB(n, e, t) {
|
|
|
18972
18972
|
function o() {
|
|
18973
18973
|
let re = !1, _e = null, ve = null, we = null, Re = null, nt = null, vt = null, ze = null, Tt = null;
|
|
18974
18974
|
return {
|
|
18975
|
-
setTest: function(
|
|
18976
|
-
re || (
|
|
18975
|
+
setTest: function(Ge) {
|
|
18976
|
+
re || (Ge ? te(2960) : W(2960));
|
|
18977
18977
|
},
|
|
18978
|
-
setMask: function(
|
|
18979
|
-
_e !==
|
|
18978
|
+
setMask: function(Ge) {
|
|
18979
|
+
_e !== Ge && !re && (n.stencilMask(Ge), _e = Ge);
|
|
18980
18980
|
},
|
|
18981
|
-
setFunc: function(
|
|
18982
|
-
(ve !==
|
|
18981
|
+
setFunc: function(Ge, ut, rt) {
|
|
18982
|
+
(ve !== Ge || we !== ut || Re !== rt) && (n.stencilFunc(Ge, ut, rt), ve = Ge, we = ut, Re = rt);
|
|
18983
18983
|
},
|
|
18984
|
-
setOp: function(
|
|
18985
|
-
(nt !==
|
|
18984
|
+
setOp: function(Ge, ut, rt) {
|
|
18985
|
+
(nt !== Ge || vt !== ut || ze !== rt) && (n.stencilOp(Ge, ut, rt), nt = Ge, vt = ut, ze = rt);
|
|
18986
18986
|
},
|
|
18987
|
-
setLocked: function(
|
|
18988
|
-
re =
|
|
18987
|
+
setLocked: function(Ge) {
|
|
18988
|
+
re = Ge;
|
|
18989
18989
|
},
|
|
18990
|
-
setClear: function(
|
|
18991
|
-
Tt !==
|
|
18990
|
+
setClear: function(Ge) {
|
|
18991
|
+
Tt !== Ge && (n.clearStencil(Ge), Tt = Ge);
|
|
18992
18992
|
},
|
|
18993
18993
|
reset: function() {
|
|
18994
18994
|
re = !1, _e = null, ve = null, we = null, Re = null, nt = null, vt = null, ze = null, Tt = null;
|
|
@@ -20003,7 +20003,7 @@ function At(n = {}) {
|
|
|
20003
20003
|
}, this.clearStencil = function() {
|
|
20004
20004
|
this.clear(!1, !1, !0);
|
|
20005
20005
|
}, this.dispose = function() {
|
|
20006
|
-
e.removeEventListener("webglcontextlost", nt, !1), e.removeEventListener("webglcontextrestored", vt, !1), de.dispose(), ue.dispose(), q.dispose(), B.dispose(), z.dispose(), ve.dispose(), Re.dispose(), Re.removeEventListener("sessionstart", gt), Re.removeEventListener("sessionend",
|
|
20006
|
+
e.removeEventListener("webglcontextlost", nt, !1), e.removeEventListener("webglcontextrestored", vt, !1), de.dispose(), ue.dispose(), q.dispose(), B.dispose(), z.dispose(), ve.dispose(), Re.dispose(), Re.removeEventListener("sessionstart", gt), Re.removeEventListener("sessionend", cn), G && (G.dispose(), G = null), It.stop();
|
|
20007
20007
|
};
|
|
20008
20008
|
function nt(X) {
|
|
20009
20009
|
X.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), y = !0;
|
|
@@ -20018,9 +20018,9 @@ function At(n = {}) {
|
|
|
20018
20018
|
ye.removeEventListener("dispose", ze), Tt(ye);
|
|
20019
20019
|
}
|
|
20020
20020
|
function Tt(X) {
|
|
20021
|
-
|
|
20021
|
+
Ge(X), q.remove(X);
|
|
20022
20022
|
}
|
|
20023
|
-
function
|
|
20023
|
+
function Ge(X) {
|
|
20024
20024
|
const ye = q.get(X).programs;
|
|
20025
20025
|
ye !== void 0 && ye.forEach(function(me) {
|
|
20026
20026
|
k.releaseProgram(me);
|
|
@@ -20041,17 +20041,17 @@ function At(n = {}) {
|
|
|
20041
20041
|
ye === null && (ye = te);
|
|
20042
20042
|
const fe = Oe.isMesh && Oe.matrixWorld.determinant() < 0, be = yt(X, ye, Se, Oe);
|
|
20043
20043
|
ee.setMaterial(Se, fe);
|
|
20044
|
-
let
|
|
20044
|
+
let Ve = me.index;
|
|
20045
20045
|
const Ue = me.attributes.position;
|
|
20046
|
-
if (
|
|
20046
|
+
if (Ve === null) {
|
|
20047
20047
|
if (Ue === void 0 || Ue.count === 0) return;
|
|
20048
|
-
} else if (
|
|
20048
|
+
} else if (Ve.count === 0)
|
|
20049
20049
|
return;
|
|
20050
20050
|
let Ke = 1;
|
|
20051
|
-
Se.wireframe === !0 && (
|
|
20051
|
+
Se.wireframe === !0 && (Ve = J.getWireframeAttribute(me), Ke = 2), (Se.morphTargets || Se.morphNormals) && he.update(Oe, me, Se, be), ve.setup(Oe, Se, be, me, Ve);
|
|
20052
20052
|
let Ye, pt = xe;
|
|
20053
|
-
|
|
20054
|
-
const fn =
|
|
20053
|
+
Ve !== null && (Ye = $.get(Ve), pt = re, pt.setIndex(Ye));
|
|
20054
|
+
const fn = Ve !== null ? Ve.count : Ue.count, Ct = me.drawRange.start * Ke, Li = me.drawRange.count * Ke, Dt = et !== null ? et.start * Ke : 0, cs = et !== null ? et.count * Ke : 1 / 0, En = Math.max(Ct, Dt), v1 = Math.min(fn, Ct + Li, Dt + cs) - 1, Fl = Math.max(0, v1 - En + 1);
|
|
20055
20055
|
if (Fl !== 0) {
|
|
20056
20056
|
if (Oe.isMesh)
|
|
20057
20057
|
Se.wireframe === !0 ? (ee.setLineWidth(Se.wireframeLinewidth * W()), pt.setMode(1)) : pt.setMode(4);
|
|
@@ -20089,13 +20089,13 @@ function At(n = {}) {
|
|
|
20089
20089
|
function gt() {
|
|
20090
20090
|
It.stop();
|
|
20091
20091
|
}
|
|
20092
|
-
function
|
|
20092
|
+
function cn() {
|
|
20093
20093
|
It.start();
|
|
20094
20094
|
}
|
|
20095
20095
|
const It = new Hx();
|
|
20096
20096
|
It.setAnimationLoop(Mt), typeof window < "u" && It.setContext(window), this.setAnimationLoop = function(X) {
|
|
20097
20097
|
rt = X, Re.setAnimationLoop(X), X === null ? It.stop() : It.start();
|
|
20098
|
-
}, Re.addEventListener("sessionstart", gt), Re.addEventListener("sessionend",
|
|
20098
|
+
}, Re.addEventListener("sessionstart", gt), Re.addEventListener("sessionend", cn), this.render = function(X, ye) {
|
|
20099
20099
|
if (ye !== void 0 && ye.isCamera !== !0) {
|
|
20100
20100
|
console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
20101
20101
|
return;
|
|
@@ -20128,9 +20128,9 @@ function At(n = {}) {
|
|
|
20128
20128
|
Se && K.setFromMatrixPosition(X.matrixWorld).applyMatrix4(H);
|
|
20129
20129
|
const fe = z.update(X), be = X.material;
|
|
20130
20130
|
if (Array.isArray(be)) {
|
|
20131
|
-
const
|
|
20132
|
-
for (let Ue = 0, Ke =
|
|
20133
|
-
const Ye =
|
|
20131
|
+
const Ve = fe.groups;
|
|
20132
|
+
for (let Ue = 0, Ke = Ve.length; Ue < Ke; Ue++) {
|
|
20133
|
+
const Ye = Ve[Ue], pt = be[Ye.materialIndex];
|
|
20134
20134
|
pt && pt.visible && u.push(X, fe, pt, me, K.z, Ye);
|
|
20135
20135
|
}
|
|
20136
20136
|
} else be.visible && u.push(X, fe, be, me, K.z, null);
|
|
@@ -20160,15 +20160,15 @@ function At(n = {}) {
|
|
|
20160
20160
|
function De(X, ye, me) {
|
|
20161
20161
|
const Se = ye.isScene === !0 ? ye.overrideMaterial : null;
|
|
20162
20162
|
for (let Oe = 0, et = X.length; Oe < et; Oe++) {
|
|
20163
|
-
const fe = X[Oe], be = fe.object,
|
|
20163
|
+
const fe = X[Oe], be = fe.object, Ve = fe.geometry, Ue = Se === null ? fe.material : Se, Ke = fe.group;
|
|
20164
20164
|
if (me.isArrayCamera) {
|
|
20165
20165
|
const Ye = me.cameras;
|
|
20166
20166
|
for (let pt = 0, fn = Ye.length; pt < fn; pt++) {
|
|
20167
20167
|
const Ct = Ye[pt];
|
|
20168
|
-
be.layers.test(Ct.layers) && (ee.viewport(M.copy(Ct.viewport)), f.setupLightsView(Ct), je(be, ye, Ct,
|
|
20168
|
+
be.layers.test(Ct.layers) && (ee.viewport(M.copy(Ct.viewport)), f.setupLightsView(Ct), je(be, ye, Ct, Ve, Ue, Ke));
|
|
20169
20169
|
}
|
|
20170
20170
|
} else
|
|
20171
|
-
je(be, ye, me,
|
|
20171
|
+
je(be, ye, me, Ve, Ue, Ke);
|
|
20172
20172
|
}
|
|
20173
20173
|
}
|
|
20174
20174
|
function je(X, ye, me, Se, Oe, et) {
|
|
@@ -20181,15 +20181,15 @@ function At(n = {}) {
|
|
|
20181
20181
|
}
|
|
20182
20182
|
function st(X, ye, me) {
|
|
20183
20183
|
ye.isScene !== !0 && (ye = te);
|
|
20184
|
-
const Se = q.get(X), Oe = f.state.lights, et = f.state.shadowsArray, fe = Oe.state.version, be = k.getParameters(X, Oe.state, et, ye, me),
|
|
20184
|
+
const Se = q.get(X), Oe = f.state.lights, et = f.state.shadowsArray, fe = Oe.state.version, be = k.getParameters(X, Oe.state, et, ye, me), Ve = k.getProgramCacheKey(be);
|
|
20185
20185
|
let Ue = Se.programs;
|
|
20186
20186
|
Se.environment = X.isMeshStandardMaterial ? ye.environment : null, Se.fog = ye.fog, Se.envMap = B.get(X.envMap || Se.environment), Ue === void 0 && (X.addEventListener("dispose", ze), Ue = /* @__PURE__ */ new Map(), Se.programs = Ue);
|
|
20187
|
-
let Ke = Ue.get(
|
|
20187
|
+
let Ke = Ue.get(Ve);
|
|
20188
20188
|
if (Ke !== void 0) {
|
|
20189
20189
|
if (Se.currentProgram === Ke && Se.lightsStateVersion === fe)
|
|
20190
20190
|
return St(X, be), Ke;
|
|
20191
20191
|
} else
|
|
20192
|
-
be.uniforms = k.getUniforms(X), X.onBuild(be, d), X.onBeforeCompile(be, d), Ke = k.acquireProgram(be,
|
|
20192
|
+
be.uniforms = k.getUniforms(X), X.onBuild(be, d), X.onBeforeCompile(be, d), Ke = k.acquireProgram(be, Ve), Ue.set(Ve, Ke), Se.uniforms = be.uniforms;
|
|
20193
20193
|
const Ye = Se.uniforms;
|
|
20194
20194
|
(!X.isShaderMaterial && !X.isRawShaderMaterial || X.clipping === !0) && (Ye.clippingPlanes = ge.uniform), St(X, be), Se.needsLights = Gt(X), Se.lightsStateVersion = fe, Se.needsLights && (Ye.ambientLightColor.value = Oe.state.ambient, Ye.lightProbe.value = Oe.state.probe, Ye.directionalLights.value = Oe.state.directional, Ye.directionalLightShadows.value = Oe.state.directionalShadow, Ye.spotLights.value = Oe.state.spot, Ye.spotLightShadows.value = Oe.state.spotShadow, Ye.rectAreaLights.value = Oe.state.rectArea, Ye.ltc_1.value = Oe.state.rectAreaLTC1, Ye.ltc_2.value = Oe.state.rectAreaLTC2, Ye.pointLights.value = Oe.state.point, Ye.pointLightShadows.value = Oe.state.pointShadow, Ye.hemisphereLights.value = Oe.state.hemi, Ye.directionalShadowMap.value = Oe.state.directionalShadowMap, Ye.directionalShadowMatrix.value = Oe.state.directionalShadowMatrix, Ye.spotShadowMap.value = Oe.state.spotShadowMap, Ye.spotShadowMatrix.value = Oe.state.spotShadowMatrix, Ye.pointShadowMap.value = Oe.state.pointShadowMap, Ye.pointShadowMatrix.value = Oe.state.pointShadowMatrix);
|
|
20195
20195
|
const pt = Ke.getUniforms(), fn = Hr.seqWithValue(pt.seq, Ye);
|
|
@@ -20201,13 +20201,13 @@ function At(n = {}) {
|
|
|
20201
20201
|
}
|
|
20202
20202
|
function yt(X, ye, me, Se) {
|
|
20203
20203
|
ye.isScene !== !0 && (ye = te), ne.resetTextureUnits();
|
|
20204
|
-
const Oe = ye.fog, et = me.isMeshStandardMaterial ? ye.environment : null, fe = b === null ? d.outputEncoding : b.texture.encoding, be = B.get(me.envMap || et),
|
|
20204
|
+
const Oe = ye.fog, et = me.isMeshStandardMaterial ? ye.environment : null, fe = b === null ? d.outputEncoding : b.texture.encoding, be = B.get(me.envMap || et), Ve = me.vertexColors === !0 && Se.geometry && Se.geometry.attributes.color && Se.geometry.attributes.color.itemSize === 4, Ue = q.get(me), Ke = f.state.lights;
|
|
20205
20205
|
if (D === !0 && (U === !0 || X !== T)) {
|
|
20206
20206
|
const En = X === T && me.id === S;
|
|
20207
20207
|
ge.setState(me, X, En);
|
|
20208
20208
|
}
|
|
20209
20209
|
let Ye = !1;
|
|
20210
|
-
me.version === Ue.__version ? (Ue.needsLights && Ue.lightsStateVersion !== Ke.state.version || Ue.outputEncoding !== fe || Se.isInstancedMesh && Ue.instancing === !1 || !Se.isInstancedMesh && Ue.instancing === !0 || Se.isSkinnedMesh && Ue.skinning === !1 || !Se.isSkinnedMesh && Ue.skinning === !0 || Ue.envMap !== be || me.fog && Ue.fog !== Oe || Ue.numClippingPlanes !== void 0 && (Ue.numClippingPlanes !== ge.numPlanes || Ue.numIntersection !== ge.numIntersection) || Ue.vertexAlphas !==
|
|
20210
|
+
me.version === Ue.__version ? (Ue.needsLights && Ue.lightsStateVersion !== Ke.state.version || Ue.outputEncoding !== fe || Se.isInstancedMesh && Ue.instancing === !1 || !Se.isInstancedMesh && Ue.instancing === !0 || Se.isSkinnedMesh && Ue.skinning === !1 || !Se.isSkinnedMesh && Ue.skinning === !0 || Ue.envMap !== be || me.fog && Ue.fog !== Oe || Ue.numClippingPlanes !== void 0 && (Ue.numClippingPlanes !== ge.numPlanes || Ue.numIntersection !== ge.numIntersection) || Ue.vertexAlphas !== Ve) && (Ye = !0) : (Ye = !0, Ue.__version = me.version);
|
|
20211
20211
|
let pt = Ue.currentProgram;
|
|
20212
20212
|
Ye === !0 && (pt = st(me, ye, Se));
|
|
20213
20213
|
let fn = !1, Ct = !1, Li = !1;
|
|
@@ -20251,19 +20251,19 @@ function At(n = {}) {
|
|
|
20251
20251
|
if (X) {
|
|
20252
20252
|
const be = X.texture;
|
|
20253
20253
|
(be.isDataTexture3D || be.isDataTexture2DArray) && (et = !0);
|
|
20254
|
-
const
|
|
20255
|
-
X.isWebGLCubeRenderTarget ? (Se =
|
|
20254
|
+
const Ve = q.get(X).__webglFramebuffer;
|
|
20255
|
+
X.isWebGLCubeRenderTarget ? (Se = Ve[ye], Oe = !0) : X.isWebGLMultisampleRenderTarget ? Se = q.get(X).__webglMultisampledFramebuffer : Se = Ve, M.copy(X.viewport), w.copy(X.scissor), _ = X.scissorTest;
|
|
20256
20256
|
} else
|
|
20257
20257
|
M.copy(I).multiplyScalar(C).floor(), w.copy(O).multiplyScalar(C).floor(), _ = x;
|
|
20258
20258
|
if (ee.bindFramebuffer(36160, Se) && Q.drawBuffers) {
|
|
20259
20259
|
let be = !1;
|
|
20260
20260
|
if (X)
|
|
20261
20261
|
if (X.isWebGLMultipleRenderTargets) {
|
|
20262
|
-
const
|
|
20263
|
-
if (R.length !==
|
|
20264
|
-
for (let Ue = 0, Ke =
|
|
20262
|
+
const Ve = X.texture;
|
|
20263
|
+
if (R.length !== Ve.length || R[0] !== 36064) {
|
|
20264
|
+
for (let Ue = 0, Ke = Ve.length; Ue < Ke; Ue++)
|
|
20265
20265
|
R[Ue] = 36064 + Ue;
|
|
20266
|
-
R.length =
|
|
20266
|
+
R.length = Ve.length, be = !0;
|
|
20267
20267
|
}
|
|
20268
20268
|
} else
|
|
20269
20269
|
(R.length !== 1 || R[0] !== 36064) && (R[0] = 36064, R.length = 1, be = !0);
|
|
@@ -20275,8 +20275,8 @@ function At(n = {}) {
|
|
|
20275
20275
|
const be = q.get(X.texture);
|
|
20276
20276
|
V.framebufferTexture2D(36160, 36064, 34069 + ye, be.__webglTexture, me);
|
|
20277
20277
|
} else if (et) {
|
|
20278
|
-
const be = q.get(X.texture),
|
|
20279
|
-
V.framebufferTextureLayer(36160, 36064, be.__webglTexture, me || 0,
|
|
20278
|
+
const be = q.get(X.texture), Ve = ye || 0;
|
|
20279
|
+
V.framebufferTextureLayer(36160, 36064, be.__webglTexture, me || 0, Ve);
|
|
20280
20280
|
}
|
|
20281
20281
|
}, this.readRenderTargetPixels = function(X, ye, me, Se, Oe, et, fe) {
|
|
20282
20282
|
if (!(X && X.isWebGLRenderTarget)) {
|
|
@@ -20287,7 +20287,7 @@ function At(n = {}) {
|
|
|
20287
20287
|
if (X.isWebGLCubeRenderTarget && fe !== void 0 && (be = be[fe]), be) {
|
|
20288
20288
|
ee.bindFramebuffer(36160, be);
|
|
20289
20289
|
try {
|
|
20290
|
-
const
|
|
20290
|
+
const Ve = X.texture, Ue = Ve.format, Ke = Ve.type;
|
|
20291
20291
|
if (Ue !== Yn && _e.convert(Ue) !== V.getParameter(35739)) {
|
|
20292
20292
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
|
|
20293
20293
|
return;
|
|
@@ -20301,8 +20301,8 @@ function At(n = {}) {
|
|
|
20301
20301
|
}
|
|
20302
20302
|
V.checkFramebufferStatus(36160) === 36053 ? ye >= 0 && ye <= X.width - Se && me >= 0 && me <= X.height - Oe && V.readPixels(ye, me, Se, Oe, _e.convert(Ue), _e.convert(Ke), et) : console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.");
|
|
20303
20303
|
} finally {
|
|
20304
|
-
const
|
|
20305
|
-
ee.bindFramebuffer(36160,
|
|
20304
|
+
const Ve = b !== null ? q.get(b).__webglFramebuffer : null;
|
|
20305
|
+
ee.bindFramebuffer(36160, Ve);
|
|
20306
20306
|
}
|
|
20307
20307
|
}
|
|
20308
20308
|
}, this.copyFramebufferToTexture = function(X, ye, me = 0) {
|
|
@@ -20317,7 +20317,7 @@ function At(n = {}) {
|
|
|
20317
20317
|
console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");
|
|
20318
20318
|
return;
|
|
20319
20319
|
}
|
|
20320
|
-
const et = X.max.x - X.min.x + 1, fe = X.max.y - X.min.y + 1, be = X.max.z - X.min.z + 1,
|
|
20320
|
+
const et = X.max.x - X.min.x + 1, fe = X.max.y - X.min.y + 1, be = X.max.z - X.min.z + 1, Ve = _e.convert(Se.format), Ue = _e.convert(Se.type);
|
|
20321
20321
|
let Ke;
|
|
20322
20322
|
if (Se.isDataTexture3D)
|
|
20323
20323
|
ne.setTexture3D(Se, 0), Ke = 32879;
|
|
@@ -20329,7 +20329,7 @@ function At(n = {}) {
|
|
|
20329
20329
|
}
|
|
20330
20330
|
V.pixelStorei(37440, Se.flipY), V.pixelStorei(37441, Se.premultiplyAlpha), V.pixelStorei(3317, Se.unpackAlignment);
|
|
20331
20331
|
const Ye = V.getParameter(3314), pt = V.getParameter(32878), fn = V.getParameter(3316), Ct = V.getParameter(3315), Li = V.getParameter(32877), Dt = me.isCompressedTexture ? me.mipmaps[0] : me.image;
|
|
20332
|
-
V.pixelStorei(3314, Dt.width), V.pixelStorei(32878, Dt.height), V.pixelStorei(3316, X.min.x), V.pixelStorei(3315, X.min.y), V.pixelStorei(32877, X.min.z), me.isDataTexture || me.isDataTexture3D ? V.texSubImage3D(Ke, Oe, ye.x, ye.y, ye.z, et, fe, be,
|
|
20332
|
+
V.pixelStorei(3314, Dt.width), V.pixelStorei(32878, Dt.height), V.pixelStorei(3316, X.min.x), V.pixelStorei(3315, X.min.y), V.pixelStorei(32877, X.min.z), me.isDataTexture || me.isDataTexture3D ? V.texSubImage3D(Ke, Oe, ye.x, ye.y, ye.z, et, fe, be, Ve, Ue, Dt.data) : me.isCompressedTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), V.compressedTexSubImage3D(Ke, Oe, ye.x, ye.y, ye.z, et, fe, be, Ve, Dt.data)) : V.texSubImage3D(Ke, Oe, ye.x, ye.y, ye.z, et, fe, be, Ve, Ue, Dt), V.pixelStorei(3314, Ye), V.pixelStorei(32878, pt), V.pixelStorei(3316, fn), V.pixelStorei(3315, Ct), V.pixelStorei(32877, Li), Oe === 0 && Se.generateMipmaps && V.generateMipmap(Ke), ee.unbindTexture();
|
|
20333
20333
|
}, this.initTexture = function(X) {
|
|
20334
20334
|
ne.setTexture2D(X, 0), ee.unbindTexture();
|
|
20335
20335
|
}, this.resetState = function() {
|
|
@@ -20528,7 +20528,7 @@ class gr {
|
|
|
20528
20528
|
}
|
|
20529
20529
|
}
|
|
20530
20530
|
gr.prototype.isInterleavedBufferAttribute = !0;
|
|
20531
|
-
class Cl extends
|
|
20531
|
+
class Cl extends an {
|
|
20532
20532
|
constructor(e) {
|
|
20533
20533
|
super(), this.type = "SpriteMaterial", this.color = new Be(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.setValues(e);
|
|
20534
20534
|
}
|
|
@@ -20854,7 +20854,7 @@ class op extends tn {
|
|
|
20854
20854
|
}
|
|
20855
20855
|
}
|
|
20856
20856
|
op.prototype.isInstancedMesh = !0;
|
|
20857
|
-
class hn extends
|
|
20857
|
+
class hn extends an {
|
|
20858
20858
|
constructor(e) {
|
|
20859
20859
|
super(), this.type = "LineBasicMaterial", this.color = new Be(16777215), this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.morphTargets = !1, this.setValues(e);
|
|
20860
20860
|
}
|
|
@@ -20976,7 +20976,7 @@ class ku extends Hi {
|
|
|
20976
20976
|
}
|
|
20977
20977
|
}
|
|
20978
20978
|
ku.prototype.isLineLoop = !0;
|
|
20979
|
-
class ls extends
|
|
20979
|
+
class ls extends an {
|
|
20980
20980
|
constructor(e) {
|
|
20981
20981
|
super(), this.type = "PointsMaterial", this.color = new Be(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.morphTargets = !1, this.setValues(e);
|
|
20982
20982
|
}
|
|
@@ -23051,7 +23051,7 @@ var pv = /* @__PURE__ */ Object.freeze({
|
|
|
23051
23051
|
TubeBufferGeometry: Jo,
|
|
23052
23052
|
WireframeGeometry: mp
|
|
23053
23053
|
});
|
|
23054
|
-
class gp extends
|
|
23054
|
+
class gp extends an {
|
|
23055
23055
|
constructor(e) {
|
|
23056
23056
|
super(), this.type = "ShadowMaterial", this.color = new Be(0), this.transparent = !0, this.setValues(e);
|
|
23057
23057
|
}
|
|
@@ -23066,7 +23066,7 @@ class ha extends mr {
|
|
|
23066
23066
|
}
|
|
23067
23067
|
}
|
|
23068
23068
|
ha.prototype.isRawShaderMaterial = !0;
|
|
23069
|
-
class $s extends
|
|
23069
|
+
class $s extends an {
|
|
23070
23070
|
constructor(e) {
|
|
23071
23071
|
super(), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new Be(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Be(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = rs, this.normalScale = new Pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.morphTargets = !1, this.morphNormals = !1, this.flatShading = !1, this.vertexTangents = !1, this.setValues(e);
|
|
23072
23072
|
}
|
|
@@ -23097,7 +23097,7 @@ class Nl extends $s {
|
|
|
23097
23097
|
}
|
|
23098
23098
|
}
|
|
23099
23099
|
Nl.prototype.isMeshPhysicalMaterial = !0;
|
|
23100
|
-
class vp extends
|
|
23100
|
+
class vp extends an {
|
|
23101
23101
|
constructor(e) {
|
|
23102
23102
|
super(), this.type = "MeshPhongMaterial", this.color = new Be(16777215), this.specular = new Be(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Be(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = rs, this.normalScale = new Pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = xl, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.morphTargets = !1, this.morphNormals = !1, this.flatShading = !1, this.setValues(e);
|
|
23103
23103
|
}
|
|
@@ -23106,7 +23106,7 @@ class vp extends on {
|
|
|
23106
23106
|
}
|
|
23107
23107
|
}
|
|
23108
23108
|
vp.prototype.isMeshPhongMaterial = !0;
|
|
23109
|
-
class yp extends
|
|
23109
|
+
class yp extends an {
|
|
23110
23110
|
constructor(e) {
|
|
23111
23111
|
super(), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new Be(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Be(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = rs, this.normalScale = new Pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
|
|
23112
23112
|
}
|
|
@@ -23115,7 +23115,7 @@ class yp extends on {
|
|
|
23115
23115
|
}
|
|
23116
23116
|
}
|
|
23117
23117
|
yp.prototype.isMeshToonMaterial = !0;
|
|
23118
|
-
class bp extends
|
|
23118
|
+
class bp extends an {
|
|
23119
23119
|
constructor(e) {
|
|
23120
23120
|
super(), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = rs, this.normalScale = new Pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.morphTargets = !1, this.morphNormals = !1, this.flatShading = !1, this.setValues(e);
|
|
23121
23121
|
}
|
|
@@ -23124,7 +23124,7 @@ class bp extends on {
|
|
|
23124
23124
|
}
|
|
23125
23125
|
}
|
|
23126
23126
|
bp.prototype.isMeshNormalMaterial = !0;
|
|
23127
|
-
class xp extends
|
|
23127
|
+
class xp extends an {
|
|
23128
23128
|
constructor(e) {
|
|
23129
23129
|
super(), this.type = "MeshLambertMaterial", this.color = new Be(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Be(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = xl, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
|
|
23130
23130
|
}
|
|
@@ -23133,7 +23133,7 @@ class xp extends on {
|
|
|
23133
23133
|
}
|
|
23134
23134
|
}
|
|
23135
23135
|
xp.prototype.isMeshLambertMaterial = !0;
|
|
23136
|
-
class wp extends
|
|
23136
|
+
class wp extends an {
|
|
23137
23137
|
constructor(e) {
|
|
23138
23138
|
super(), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new Be(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = rs, this.normalScale = new Pe(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.morphTargets = !1, this.morphNormals = !1, this.flatShading = !1, this.setValues(e);
|
|
23139
23139
|
}
|
|
@@ -23170,7 +23170,7 @@ var JB = /* @__PURE__ */ Object.freeze({
|
|
|
23170
23170
|
MeshMatcapMaterial: wp,
|
|
23171
23171
|
LineDashedMaterial: Mp,
|
|
23172
23172
|
LineBasicMaterial: hn,
|
|
23173
|
-
Material:
|
|
23173
|
+
Material: an
|
|
23174
23174
|
});
|
|
23175
23175
|
const Bt = {
|
|
23176
23176
|
// same as Array.prototype.slice, but also works on typed arrays
|
|
@@ -28465,7 +28465,7 @@ Vu.prototype.dispose = function() {
|
|
|
28465
28465
|
Yu.prototype.onUpdate = function() {
|
|
28466
28466
|
return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."), this;
|
|
28467
28467
|
};
|
|
28468
|
-
Object.defineProperties(
|
|
28468
|
+
Object.defineProperties(an.prototype, {
|
|
28469
28469
|
wrapAround: {
|
|
28470
28470
|
get: function() {
|
|
28471
28471
|
console.warn("THREE.Material: .wrapAround has been removed.");
|
|
@@ -29034,7 +29034,7 @@ const MU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
29034
29034
|
LuminanceAlphaFormat: Bb,
|
|
29035
29035
|
LuminanceFormat: Nb,
|
|
29036
29036
|
MOUSE: uI,
|
|
29037
|
-
Material:
|
|
29037
|
+
Material: an,
|
|
29038
29038
|
MaterialLoader: bw,
|
|
29039
29039
|
Math: Gh,
|
|
29040
29040
|
MathUtils: Gh,
|
|
@@ -30770,11 +30770,11 @@ class az {
|
|
|
30770
30770
|
if (e.isPoints) {
|
|
30771
30771
|
const c = "PointsMaterial:" + i.uuid;
|
|
30772
30772
|
let h = this.cache.get(c);
|
|
30773
|
-
h || (h = new ls(),
|
|
30773
|
+
h || (h = new ls(), an.prototype.copy.call(h, i), h.color.copy(i.color), h.map = i.map, h.sizeAttenuation = !1, this.cache.add(c, h)), i = h;
|
|
30774
30774
|
} else if (e.isLine) {
|
|
30775
30775
|
const c = "LineBasicMaterial:" + i.uuid;
|
|
30776
30776
|
let h = this.cache.get(c);
|
|
30777
|
-
h || (h = new hn(),
|
|
30777
|
+
h || (h = new hn(), an.prototype.copy.call(h, i), h.color.copy(i.color), this.cache.add(c, h)), i = h;
|
|
30778
30778
|
}
|
|
30779
30779
|
if (r || s || o || a) {
|
|
30780
30780
|
let c = "ClonedMaterial:" + i.uuid + ":";
|
|
@@ -31554,7 +31554,7 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31554
31554
|
/* 2 */
|
|
31555
31555
|
/***/
|
|
31556
31556
|
(o) => {
|
|
31557
|
-
o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.11.
|
|
31557
|
+
o.exports = /* @__PURE__ */ JSON.parse('{"name":"zincjs","version":"1.11.4","description":"ZincJS (Web-based-Zinc-Visualisation)","main":"build/zinc.js","directories":{"doc":"docs"},"files":["package.json","LICENSE","README.md","src/*","build/zinc.js","build/zinc.frontend.js","build/zinc.js.map","webpack.config.js"],"scripts":{"build-bundle":"webpack --config webpack.frontend.js; webpack --config webpack.backend.js","build-backend":"webpack --config webpack.backend.js","test":"npm --prefix ./test install && npm --prefix ./test run test-ci","changelog":"auto-changelog -p --output CHANGELOG.md --template keepachangelog","jsdoc":"jsdoc -c jsdoc_conf.json","version":"npm run build-bundle;npm run jsdoc;npm run changelog; git add CHANGELOG.md docs","release:beta":"npm version prerelease --preid=beta; npm publish --tag beta","release:minor":"npm version minor; npm publish","release:patch":"npm version patch; npm publish"},"repository":{"type":"git","url":"git+https://github.com/alan-wu/ZincJS.git"},"keywords":["library","webgl","3d","zincjs"],"author":"Alan Wu <alan.wu@auckland.ac.nz>","license":"MIT","bugs":{"url":"https://github.com/alan-wu/ZincJS/issues"},"homepage":"http://alan-wu.github.io/ZincJS/","devDependencies":{"@babel/core":"^7.23.9","@babel/preset-env":"^7.23.9","auto-changelog":"^2.4.0","babel-loader":"^9.1.3","babel-preset-minify":"^0.5.1","file-loader":"^6.2.0","jsdoc":"^4.0.2","raw-loader":"^4.0.2","webpack":"^5.90.3","webpack-cli":"^5.1.4","webpack-node-externals":"^3.0.0"},"dependencies":{"css-element-queries":"^1.2.2","lodash":"^4.17.19","promise-polyfill":"^8.1.3","three":"^0.130.1","three-spritetext":"1.6.2","url-loader":"^4.1.1","url-polyfill":"^1.1.7","webworkify-webpack":"^2.1.5"}}');
|
|
31558
31558
|
},
|
|
31559
31559
|
/* 3 */
|
|
31560
31560
|
/***/
|
|
@@ -31748,7 +31748,7 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
31748
31748
|
}
|
|
31749
31749
|
function M(w, _, A, E, C, L) {
|
|
31750
31750
|
var P = new f(w, _, A, E, C, L);
|
|
31751
|
-
return P.material.sizeAttenuation = !1, P.material.alphaTest = 0.5, P.material.transparent = !0, P.material.depthWrite = !1, P.material.depthTest = !1, P.center.set(0.5, -1.2), P.renderOrder = 1e4, P;
|
|
31751
|
+
return P.fontFace = E, P.fontSize = C, P.fontWeight = L, P.material.map.generateMipmaps = !1, P.material.map.anisotropy = 4, P.material.sizeAttenuation = !1, P.material.alphaTest = 0.5, P.material.transparent = !0, P.material.depthWrite = !1, P.material.depthTest = !1, P.center.set(0.5, -1.2), P.renderOrder = 1e4, P;
|
|
31752
31752
|
}
|
|
31753
31753
|
a.getBoundingBox = d, a.createNewURL = p, a.createBufferGeometry = S, a.getCircularTexture = T, a.resolveURL = g, a.loadExternalFile = y, a.loadExternalFiles = v, a.PhongToToon = b, a.createNewSpriteText = M;
|
|
31754
31754
|
},
|
|
@@ -32705,7 +32705,7 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
32705
32705
|
}, this.dispose = () => {
|
|
32706
32706
|
this.morph && this.morph.clear(), v && (v.clear(), v = void 0), A && (A.material.map.dispose(), A.material.dispose(), A = void 0);
|
|
32707
32707
|
}, this.isEnabled = () => w, this.setNumber = (C) => {
|
|
32708
|
-
(!C || _ != C) && A && (this.morph.remove(A), A.material.map.dispose(), A.material.dispose(), A = void 0), !A && C && (A = p(C, 0.012, "black", "Asap",
|
|
32708
|
+
(!C || _ != C) && A && (this.morph.remove(A), A.material.map.dispose(), A.material.dispose(), A = void 0), !A && C && (A = p(C, 0.012, "black", "Asap", 120, 700), this.morph.add(A)), _ = C;
|
|
32709
32709
|
}, this.getNumber = () => _ || 1, this.setVisibility = function(C) {
|
|
32710
32710
|
C !== this.visible && (this.visible = C, this.group.visible = C, this.parent.region && (this.parent.region.pickableUpdateRequired = !0));
|
|
32711
32711
|
}, this.enable = () => {
|
|
@@ -32754,7 +32754,7 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
32754
32754
|
var c = l(7).default;
|
|
32755
32755
|
a.Label = function(h, u) {
|
|
32756
32756
|
var f = h, g = void 0;
|
|
32757
|
-
g = u ? new c(f, 0.015, u.getStyle()) : new c(f, 0.015), g.material.sizeAttenuation = !1, g.center.x = -0.05, g.center.y = 0, this.getPosition = () => g ? [g.position.x, g.position.y, g.position.z] : [0, 0, 0], this.setPosition = (p, d, y) => {
|
|
32757
|
+
g = u ? new c(f, 0.015, u.getStyle()) : new c(f, 0.015), g.fontFace = "Asap", g.fontWeight = 700, g.material.map.generateMipmaps = !1, g.material.sizeAttenuation = !1, g.center.x = -0.05, g.center.y = 0, this.getPosition = () => g ? [g.position.x, g.position.y, g.position.z] : [0, 0, 0], this.setPosition = (p, d, y) => {
|
|
32758
32758
|
g && g.position.set(p, d, y);
|
|
32759
32759
|
}, this.setColour = (p) => {
|
|
32760
32760
|
g.color = p.getStyle();
|
|
@@ -32797,10 +32797,10 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
32797
32797
|
for (var de, Re = [0, 0, 0], nt = [0, 0, 0], we = 0; 3 > we; we++) de = 0 > k[we] ? -1 : 1, Re[we] = de * w[0] + k[we] * A[0];
|
|
32798
32798
|
for (var we = 0; 3 > we; we++) nt[we] = B[we] + _[0] * Re[0] * $[we] + _[1] * Re[1] * J[we] + _[2] * Re[2] * z[we];
|
|
32799
32799
|
for (var vt = glyph_repeat_mode == "AXES_2D" ? 2 : 3, ze = 0; ze < vt; ze++) {
|
|
32800
|
-
var Tt = void 0,
|
|
32801
|
-
ze == 0 ? (Tt = $,
|
|
32802
|
-
var
|
|
32803
|
-
rt[0] = Tt[0] *
|
|
32800
|
+
var Tt = void 0, Ge = void 0, ut = k[ze], rt = [0, 0, 0], Mt = [0, 0, 0], gt = [0, 0, 0];
|
|
32801
|
+
ze == 0 ? (Tt = $, Ge = J) : ze == 1 ? (Tt = J, Ge = glyph_repeat_mode == "AXES_2D" ? $ : z) : (Tt = z, Ge = $);
|
|
32802
|
+
var cn = w[0] + ut * A[0];
|
|
32803
|
+
rt[0] = Tt[0] * cn, rt[1] = Tt[1] * cn, rt[2] = Tt[2] * cn, gt[0] = rt[1] * Ge[2] - Ge[1] * rt[2], gt[1] = rt[2] * Ge[0] - Ge[2] * rt[0], gt[2] = rt[0] * Ge[1] - rt[1] * Ge[0];
|
|
32804
32804
|
var It = Math.sqrt(gt[0] * gt[0] + gt[1] * gt[1] + gt[2] * gt[2]);
|
|
32805
32805
|
if (0 < It) {
|
|
32806
32806
|
var se = (w[2] + ut * A[2]) / It;
|
|
@@ -32849,9 +32849,9 @@ const bz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
32849
32849
|
} else v[0], c("current_positions"), p[0], c("current_axis1s"), d[0], c("current_axis2s"), y[0], c("current_axis3s"), m[0], c("current_scales");
|
|
32850
32850
|
if (Q(B, $, J, z, k), this.boundingBoxUpdateRequired = !0, b != null) {
|
|
32851
32851
|
if (C) {
|
|
32852
|
-
var Tt = b[ue.toString()],
|
|
32852
|
+
var Tt = b[ue.toString()], Ge = b[Me.toString()];
|
|
32853
32853
|
ae.length = Tt.length;
|
|
32854
|
-
for (var ut = 0; ut < Tt.length; ut++) I.setHex(Tt[ut]), O.setHex(
|
|
32854
|
+
for (var ut = 0; ut < Tt.length; ut++) I.setHex(Tt[ut]), O.setHex(Ge[ut]), I.setRGB(I.r * ge + O.r * (1 - ge), I.g * ge + O.g * (1 - ge), I.b * ge + O.b * (1 - ge)), ae[ut] = I.getHex();
|
|
32855
32855
|
} else b[0], c("current_colors");
|
|
32856
32856
|
ee(ae);
|
|
32857
32857
|
}
|
|
@@ -34177,7 +34177,7 @@ void main() {
|
|
|
34177
34177
|
var R = new p.Group(), N = new p.Sprite(m);
|
|
34178
34178
|
return N.clusterIndex = x, N.center.set(0.5, 0), N.position.set(0, 0, 0), N.renderOrder = 1e4, N.scale.set(v[0], v[1], v[2]), N.userData = this, R.add(N), this.group.add(R), { group: R, marker: N, label: void 0, number: 0, min: [0, 0, 0], max: [1, 1, 1] };
|
|
34179
34179
|
}, P = (x, R, N) => {
|
|
34180
|
-
x.group.visible = !0, x.group.position.set(R.coords[0], R.coords[1], R.coords[2]), (x.label === void 0 || N !== x.number) && (x.label && (x.group.remove(x.label), x.label.material.map.dispose(), x.label.material.dispose()), x.label = b(N, 0.012, "black", "Asap",
|
|
34180
|
+
x.group.visible = !0, x.group.position.set(R.coords[0], R.coords[1], R.coords[2]), (x.label === void 0 || N !== x.number) && (x.label && (x.group.remove(x.label), x.label.material.map.dispose(), x.label.material.dispose()), x.label = b(N, 0.012, "black", "Asap", 120, 700), x.number = N, x.group.add(x.label)), x.min = R.min, x.max = R.max;
|
|
34181
34181
|
}, I = (x) => {
|
|
34182
34182
|
var R = 0;
|
|
34183
34183
|
for (x.forEach((N) => {
|
|
@@ -34786,21 +34786,21 @@ void main() {
|
|
|
34786
34786
|
var we = new c.BufferGeometry();
|
|
34787
34787
|
we.setAttribute("position", new c.Float32BufferAttribute(he.vertices, 3)), 0 < he.normals.length && we.setAttribute("normal", new c.Float32BufferAttribute(he.normals, 3)), 0 < he.colors.length && (ve = !0, we.setAttribute("color", new c.Float32BufferAttribute(he.colors, 3))), he.hasUVIndices === !0 && we.setAttribute("uv", new c.Float32BufferAttribute(he.uvs, 2));
|
|
34788
34788
|
for (var Re = [], nt = 0, vt = xe.length; nt < vt; nt++) {
|
|
34789
|
-
var ze = xe[nt], Tt = ze.name + "_" + ze.smooth + "_" + ve,
|
|
34789
|
+
var ze = xe[nt], Tt = ze.name + "_" + ze.smooth + "_" + ve, Ge = w.materials[Tt];
|
|
34790
34790
|
if (this.materials !== null) {
|
|
34791
|
-
if (
|
|
34791
|
+
if (Ge = this.materials.create(ze.name), re && Ge && !(Ge instanceof c.LineBasicMaterial)) {
|
|
34792
34792
|
var ut = new c.LineBasicMaterial();
|
|
34793
|
-
c.Material.prototype.copy.call(ut,
|
|
34794
|
-
} else if (_e &&
|
|
34793
|
+
c.Material.prototype.copy.call(ut, Ge), ut.color.copy(Ge.color), Ge = ut;
|
|
34794
|
+
} else if (_e && Ge && !(Ge instanceof c.PointsMaterial)) {
|
|
34795
34795
|
var rt = new c.PointsMaterial({ size: 10, sizeAttenuation: !1 });
|
|
34796
|
-
c.Material.prototype.copy.call(rt,
|
|
34796
|
+
c.Material.prototype.copy.call(rt, Ge), rt.color.copy(Ge.color), rt.map = Ge.map, Ge = rt;
|
|
34797
34797
|
}
|
|
34798
34798
|
}
|
|
34799
|
-
|
|
34799
|
+
Ge === void 0 && (Ge = re ? new c.LineBasicMaterial() : _e ? new c.PointsMaterial({ size: 1, sizeAttenuation: !1 }) : new c.MeshPhongMaterial(), Ge.name = ze.name, Ge.flatShading = !ze.smooth, Ge.vertexColors = ve, w.materials[Tt] = Ge), Re.push(Ge);
|
|
34800
34800
|
}
|
|
34801
34801
|
var Mt = void 0;
|
|
34802
34802
|
if (1 < Re.length) {
|
|
34803
|
-
for (var gt,
|
|
34803
|
+
for (var gt, cn = 0, It = xe.length; cn < It; cn++) gt = xe[cn], we.addGroup(gt.groupStart, gt.groupCount, cn);
|
|
34804
34804
|
Mt = re ? new c.LineSegments(we, Re) : _e ? new c.Points(we, Re) : new c.Mesh(we, Re);
|
|
34805
34805
|
} else Mt = re ? new c.LineSegments(we, Re[0]) : _e ? new c.Points(we, Re[0]) : new c.Mesh(we, Re[0]);
|
|
34806
34806
|
Mt.name = Te.name, de.add(Mt);
|
|
@@ -35440,19 +35440,19 @@ void main() {
|
|
|
35440
35440
|
}
|
|
35441
35441
|
var vt = Array.isArray(x.material);
|
|
35442
35442
|
if (vt && te.groups.length === 0) return null;
|
|
35443
|
-
for (var ze, Tt = vt ? x.material : [x.material],
|
|
35443
|
+
for (var ze, Tt = vt ? x.material : [x.material], Ge = vt ? te.groups : [{ materialIndex: 0, start: void 0, count: void 0 }], ut = 0, rt = Ge.length; ut < rt; ut++) {
|
|
35444
35444
|
if (ze = { mode: K, attributes: V }, this.serializeUserData(te, ze), 0 < Z.length && (ze.targets = Z), te.index !== null) {
|
|
35445
35445
|
var Mt = this.getUID(te.index);
|
|
35446
|
-
(
|
|
35446
|
+
(Ge[ut].start !== void 0 || Ge[ut].count !== void 0) && (Mt += ":" + Ge[ut].start + ":" + Ge[ut].count), R.attributes.has(Mt) ? ze.indices = R.attributes.get(Mt) : (ze.indices = this.processAccessor(te.index, te, Ge[ut].start, Ge[ut].count), R.attributes.set(Mt, ze.indices)), ze.indices === null && delete ze.indices;
|
|
35447
35447
|
}
|
|
35448
|
-
var gt = this.processMaterial(Tt[
|
|
35448
|
+
var gt = this.processMaterial(Tt[Ge[ut].materialIndex]);
|
|
35449
35449
|
gt !== null && (ze.material = gt), j.push(ze);
|
|
35450
35450
|
}
|
|
35451
35451
|
W.primitives = j, N.meshes || (N.meshes = []), this._invokeAll(function(It) {
|
|
35452
35452
|
It.writeMesh && It.writeMesh(x, W);
|
|
35453
35453
|
});
|
|
35454
|
-
var
|
|
35455
|
-
return R.meshes.set(H,
|
|
35454
|
+
var cn = N.meshes.push(W) - 1;
|
|
35455
|
+
return R.meshes.set(H, cn), cn;
|
|
35456
35456
|
}
|
|
35457
35457
|
/**
|
|
35458
35458
|
* Process camera
|
|
@@ -35797,7 +35797,7 @@ void main() {
|
|
|
35797
35797
|
ze(!1), this._state = E.SCROLL;
|
|
35798
35798
|
var Ae = 0;
|
|
35799
35799
|
0 < se.deltaY ? Ae = this.scrollRate : 0 > se.deltaY && (Ae = -1 * this.scrollRate), V += Ae, se.preventDefault(), se.stopImmediatePropagation();
|
|
35800
|
-
},
|
|
35800
|
+
}, Ge = () => {
|
|
35801
35801
|
if (typeof this.cameraObject < "u") {
|
|
35802
35802
|
var se = Q.height, Ae = this.cameraObject.position.distanceTo(this.cameraObject.target), De = 0;
|
|
35803
35803
|
this.cameraObject.far > this.cameraObject.near && Ae >= this.cameraObject.near && Ae <= this.cameraObject.far && (De = (Ae - this.cameraObject.near) / (this.cameraObject.far - this.cameraObject.near)), ie.set(this.previous_pointer_x, se - this.previous_pointer_y, 0), q.set(this.previous_pointer_x, se - this.previous_pointer_y, 1), ne.set(this.pointer_x, se - this.pointer_y, 0), B.set(this.pointer_x, se - this.pointer_y, 1), ie.unproject(this.cameraObject), q.unproject(this.cameraObject), ne.unproject(this.cameraObject), B.unproject(this.cameraObject);
|
|
@@ -35905,21 +35905,21 @@ void main() {
|
|
|
35905
35905
|
}, this.setCurrentTimeFrame = (se) => {
|
|
35906
35906
|
2 < R && (O = P * se / (R - 1), 0 > O && (O = 0), O > P && (O = P));
|
|
35907
35907
|
};
|
|
35908
|
-
var
|
|
35908
|
+
var cn = (se) => {
|
|
35909
35909
|
if (H === A.PATH && (gt(se), x)) {
|
|
35910
35910
|
for (var Ae = this.getCurrentTimeFrame(), De = Ae[0], je = Ae[1], st = Ae[2], St = [x[3 * De], x[3 * De + 1], x[3 * De + 2]], yt = [x[3 * je], x[3 * je + 1], x[3 * je + 2]], Ot = [], Gt = 0; Gt < St.length; Gt++) Ot.push(st * St[Gt] + (1 - st) * yt[Gt]);
|
|
35911
35911
|
this.cameraObject.position.set(Ot[0], Ot[1], Ot[2]), this.cameraObject.target.set(yt[0], yt[1], yt[2]), U && this.cameraObject.lookAt(this.cameraObject.target), N && (this.directionalLight.position.set(Ot[0], Ot[1], Ot[2]), this.directionalLight.target.position.set(yt[0], yt[1], yt[2]));
|
|
35912
35912
|
}
|
|
35913
35913
|
};
|
|
35914
35914
|
this.calculatePathNow = () => {
|
|
35915
|
-
|
|
35915
|
+
cn(0);
|
|
35916
35916
|
};
|
|
35917
35917
|
var It = () => {
|
|
35918
|
-
this._state === E.ROTATE || this._state === E.TOUCH_ROTATE ? ut() : this._state === E.PAN || this._state === E.TOUCH_PAN ? (
|
|
35918
|
+
this._state === E.ROTATE || this._state === E.TOUCH_ROTATE ? ut() : this._state === E.PAN || this._state === E.TOUCH_PAN ? (Ge(), ue.triggerCallback()) : (this._state === E.ZOOM || this._state === E.TOUCH_ZOOM || this._state === E.SCROLL) && (ue.zoom(rt()), this.previous_pointer_x = this.pointer_x, this.previous_pointer_y = this.pointer_y, this._state === E.SCROLL && (this._state = E.NONE), V = 0, ue.triggerCallback());
|
|
35919
35919
|
};
|
|
35920
35920
|
this.update = (se) => {
|
|
35921
35921
|
var Ae = se * D, De = I, je = !0;
|
|
35922
|
-
return H === A.PATH ?
|
|
35922
|
+
return H === A.PATH ? cn(Ae) : H === A.SMOOTH_CAMERA_TRANSITION && K ? (K.update(Ae), K.isTransitionCompleted() && (H = A.DEFAULT), De = !1) : H === A.ROTATE_CAMERA_TRANSITION && te ? (te.update(Ae), te.isTransitionCompleted() && (H = A.DEFAULT), De = !1) : H === A.AUTO_TUMBLE && W ? W.update(Ae) : H === A.SYNC_CONTROL && ue ? (It(), De = !1) : je = !1, De && (this._state !== E.NONE && (je = !0), this._state === E.ROTATE || this._state === E.TOUCH_ROTATE ? ut() : this._state === E.PAN || this._state === E.TOUCH_PAN ? Ge() : (this._state === E.ZOOM || this._state === E.TOUCH_ZOOM || this._state === E.SCROLL) && Mt(), this._state !== E.NONE && H === A.AUTO_TUMBLE && W && W.stopOnCameraInput, this._state === E.SCROLL && (this._state = E.NONE)), U ? (je = !0, U.update()) : this.cameraObject.lookAt(this.cameraObject.target), je = je || de, de = !1, je;
|
|
35923
35923
|
}, this.playPath = () => {
|
|
35924
35924
|
H = A.PATH;
|
|
35925
35925
|
}, this.stopPath = () => {
|
|
@@ -37497,7 +37497,7 @@ const $c = /* @__PURE__ */ gL(kr), Qv = (n, e) => {
|
|
|
37497
37497
|
this.adjust = 0, this.pAdjust = 0, this.lengthScale = 0, this.distance = Dc(this.zincObject, this.currentIndex), this.newDistance = this.distance, this.edited && (this.$emit("primitivesUpdated", this.zincObject), this.edited = !1);
|
|
37498
37498
|
},
|
|
37499
37499
|
setObject: function(n) {
|
|
37500
|
-
this.currentIndex = -1, this.distance = 0, n.isLines2 ? (this.zincObject =
|
|
37500
|
+
this.currentIndex = -1, this.distance = 0, n.isLines2 ? (this.zincObject = rn(n), this.width = this.zincObject.getMorph().material.linewidth, n.isEditable && (this.currentIndex = 0, this.distance = Dc(n, this.currentIndex))) : (this.zincObject = void 0, this.width = 10);
|
|
37501
37501
|
},
|
|
37502
37502
|
modifyWidth: function() {
|
|
37503
37503
|
this.zincObject.setWidth(this.width);
|
|
@@ -37506,7 +37506,7 @@ const $c = /* @__PURE__ */ gL(kr), Qv = (n, e) => {
|
|
|
37506
37506
|
};
|
|
37507
37507
|
function Pz(n, e, t, i, r, s) {
|
|
37508
37508
|
const o = Gn, a = li, l = xr, c = Ei, h = is, u = Ai, f = ai;
|
|
37509
|
-
return pe(),
|
|
37509
|
+
return pe(), He(f, { class: "lines-container" }, {
|
|
37510
37510
|
default: ce(() => [
|
|
37511
37511
|
oe(u, { class: "slides-block" }, {
|
|
37512
37512
|
default: ce(() => [
|
|
@@ -37559,7 +37559,7 @@ function Pz(n, e, t, i, r, s) {
|
|
|
37559
37559
|
]),
|
|
37560
37560
|
_: 1
|
|
37561
37561
|
}),
|
|
37562
|
-
n.currentIndex > -1 && n.distance > 0 ? (pe(), Le(
|
|
37562
|
+
n.currentIndex > -1 && n.distance > 0 ? (pe(), Le(Ft, { key: 0 }, [
|
|
37563
37563
|
oe(c, null, {
|
|
37564
37564
|
default: ce(() => [
|
|
37565
37565
|
oe(o, {
|
|
@@ -37680,7 +37680,7 @@ function Pz(n, e, t, i, r, s) {
|
|
|
37680
37680
|
]),
|
|
37681
37681
|
_: 1
|
|
37682
37682
|
})
|
|
37683
|
-
], 64)) :
|
|
37683
|
+
], 64)) : ke("", !0)
|
|
37684
37684
|
]),
|
|
37685
37685
|
_: 1
|
|
37686
37686
|
})
|
|
@@ -37764,7 +37764,7 @@ const Jw = /* @__PURE__ */ Zi(Rz, [["render", Pz], ["__scopeId", "data-v-6581aa6
|
|
|
37764
37764
|
this.translation = [0, 0, 0], this.pTranslation = [0, 0, 0], this.edited && (this.$emit("primitivesUpdated", this.zincObject), this.edited = !1);
|
|
37765
37765
|
},
|
|
37766
37766
|
setObject: function(n) {
|
|
37767
|
-
this.currentIndex = -1, n.isPointset ? (this.zincObject =
|
|
37767
|
+
this.currentIndex = -1, n.isPointset ? (this.zincObject = rn(n), this.size = this.zincObject.morph.material.size, this.attenuation = this.zincObject.morph.material.sizeAttenuation, n.isEditable && this.zincObject.drawRange > 0 && (this.currentIndex = 0)) : (this.zincObject = void 0, this.size = 10, this.attenuation = !1);
|
|
37768
37768
|
},
|
|
37769
37769
|
modifyAttenuation: function(n) {
|
|
37770
37770
|
this.attenuation = n, this.zincObject.setSizeAttenuation(n);
|
|
@@ -37776,7 +37776,7 @@ const Jw = /* @__PURE__ */ Zi(Rz, [["render", Pz], ["__scopeId", "data-v-6581aa6
|
|
|
37776
37776
|
};
|
|
37777
37777
|
function Oz(n, e, t, i, r, s) {
|
|
37778
37778
|
const o = Gn, a = li, l = xr, c = Ei, h = aa, u = oa, f = is, g = Ai, p = ai;
|
|
37779
|
-
return pe(),
|
|
37779
|
+
return pe(), He(p, { class: "pointset-container" }, {
|
|
37780
37780
|
default: ce(() => [
|
|
37781
37781
|
oe(g, { class: "slides-block" }, {
|
|
37782
37782
|
default: ce(() => [
|
|
@@ -37854,7 +37854,7 @@ function Oz(n, e, t, i, r, s) {
|
|
|
37854
37854
|
onChange: e[3] || (e[3] = (d) => s.modifyAttenuation(d, n.slide))
|
|
37855
37855
|
}, {
|
|
37856
37856
|
default: ce(() => [
|
|
37857
|
-
(pe(!0), Le(
|
|
37857
|
+
(pe(!0), Le(Ft, null, Fn(n.choices, (d) => (pe(), He(h, {
|
|
37858
37858
|
key: d.value,
|
|
37859
37859
|
label: d.label,
|
|
37860
37860
|
value: d.value
|
|
@@ -37868,7 +37868,7 @@ function Oz(n, e, t, i, r, s) {
|
|
|
37868
37868
|
]),
|
|
37869
37869
|
_: 1
|
|
37870
37870
|
}),
|
|
37871
|
-
n.currentIndex > -1 ? (pe(), Le(
|
|
37871
|
+
n.currentIndex > -1 ? (pe(), Le(Ft, { key: 0 }, [
|
|
37872
37872
|
oe(c, null, {
|
|
37873
37873
|
default: ce(() => [
|
|
37874
37874
|
oe(o, {
|
|
@@ -38006,7 +38006,7 @@ function Oz(n, e, t, i, r, s) {
|
|
|
38006
38006
|
]),
|
|
38007
38007
|
_: 1
|
|
38008
38008
|
})
|
|
38009
|
-
], 64)) :
|
|
38009
|
+
], 64)) : ke("", !0)
|
|
38010
38010
|
]),
|
|
38011
38011
|
_: 1
|
|
38012
38012
|
})
|
|
@@ -38052,7 +38052,7 @@ const qw = /* @__PURE__ */ Zi(Iz, [["render", Oz], ["__scopeId", "data-v-d1de9c6
|
|
|
38052
38052
|
},
|
|
38053
38053
|
methods: {
|
|
38054
38054
|
setObject: function(n) {
|
|
38055
|
-
n.isTextureSlides ? (this.zincObject =
|
|
38055
|
+
n.isTextureSlides ? (this.zincObject = rn(n), this.settings = this.zincObject.getTextureSettings()) : (this.zincObject = void 0, this.settings = []);
|
|
38056
38056
|
},
|
|
38057
38057
|
addNewSlide: function() {
|
|
38058
38058
|
const n = { direction: "x", value: 0 }, e = this.zincObject.createSlide(n);
|
|
@@ -38071,11 +38071,11 @@ const qw = /* @__PURE__ */ Zi(Iz, [["render", Oz], ["__scopeId", "data-v-d1de9c6
|
|
|
38071
38071
|
};
|
|
38072
38072
|
function Nz(n, e, t, i, r, s) {
|
|
38073
38073
|
const o = aa, a = oa, l = Gn, c = li, h = xr, u = Qc, f = zt, g = Ei, p = Ai, d = yu, y = Hy, v = ai;
|
|
38074
|
-
return pe(),
|
|
38074
|
+
return pe(), He(v, { class: "t-slides-container" }, {
|
|
38075
38075
|
default: ce(() => [
|
|
38076
38076
|
oe(p, { class: "slides-block" }, {
|
|
38077
38077
|
default: ce(() => [
|
|
38078
|
-
(pe(!0), Le(
|
|
38078
|
+
(pe(!0), Le(Ft, null, Fn(n.settings, (m, b) => (pe(), He(g, {
|
|
38079
38079
|
key: m.id,
|
|
38080
38080
|
class: "slide-row"
|
|
38081
38081
|
}, {
|
|
@@ -38094,7 +38094,7 @@ function Nz(n, e, t, i, r, s) {
|
|
|
38094
38094
|
onChange: (S) => s.modifyDirection(S, m)
|
|
38095
38095
|
}, {
|
|
38096
38096
|
default: ce(() => [
|
|
38097
|
-
(pe(!0), Le(
|
|
38097
|
+
(pe(!0), Le(Ft, null, Fn(n.directions, (S) => (pe(), He(o, {
|
|
38098
38098
|
key: S.value,
|
|
38099
38099
|
label: S.label,
|
|
38100
38100
|
value: S.value
|
|
@@ -38240,7 +38240,7 @@ const Kw = /* @__PURE__ */ Zi(Dz, [["render", Nz], ["__scopeId", "data-v-12185b7
|
|
|
38240
38240
|
methods: {
|
|
38241
38241
|
setObject: function(n) {
|
|
38242
38242
|
if (n.isZincObject) {
|
|
38243
|
-
this.zincObject =
|
|
38243
|
+
this.zincObject = rn(n);
|
|
38244
38244
|
const e = this.zincObject.getGroup();
|
|
38245
38245
|
e && e.position && (this.x = e.position.x, this.y = e.position.y, this.z = e.position.z, this.scale = e.scale.x);
|
|
38246
38246
|
} else
|
|
@@ -38256,7 +38256,7 @@ const Kw = /* @__PURE__ */ Zi(Dz, [["render", Nz], ["__scopeId", "data-v-12185b7
|
|
|
38256
38256
|
};
|
|
38257
38257
|
function Fz(n, e, t, i, r, s) {
|
|
38258
38258
|
const o = Gn, a = li, l = xr, c = Ei, h = Ai, u = ai;
|
|
38259
|
-
return pe(),
|
|
38259
|
+
return pe(), He(u, { class: "transformation-container" }, {
|
|
38260
38260
|
default: ce(() => [
|
|
38261
38261
|
oe(h, { class: "slides-block" }, {
|
|
38262
38262
|
default: ce(() => [
|
|
@@ -38493,7 +38493,7 @@ const Qw = /* @__PURE__ */ Zi(Bz, [["render", Fz], ["__scopeId", "data-v-6b3997b
|
|
|
38493
38493
|
}, zz = { class: "block" }, Vz = { class: "display" };
|
|
38494
38494
|
function kz(n, e, t, i, r, s) {
|
|
38495
38495
|
const o = li, a = ai;
|
|
38496
|
-
return t.material ? (pe(),
|
|
38496
|
+
return t.material ? (pe(), He(a, {
|
|
38497
38497
|
key: 0,
|
|
38498
38498
|
class: "opacity-container"
|
|
38499
38499
|
}, {
|
|
@@ -38513,7 +38513,7 @@ function kz(n, e, t, i, r, s) {
|
|
|
38513
38513
|
])
|
|
38514
38514
|
]),
|
|
38515
38515
|
_: 1
|
|
38516
|
-
})) :
|
|
38516
|
+
})) : ke("", !0);
|
|
38517
38517
|
}
|
|
38518
38518
|
const e1 = /* @__PURE__ */ Zi(Uz, [["render", kz], ["__scopeId", "data-v-cbfc46a5"]]), Gz = {
|
|
38519
38519
|
name: "PrimitiveControls",
|
|
@@ -38554,7 +38554,7 @@ const e1 = /* @__PURE__ */ Zi(Uz, [["render", kz], ["__scopeId", "data-v-cbfc46a
|
|
|
38554
38554
|
},
|
|
38555
38555
|
setObject: function(n) {
|
|
38556
38556
|
var e;
|
|
38557
|
-
n ? this.zincObject =
|
|
38557
|
+
n ? this.zincObject = rn(n) : this.zincObject = void 0, this.isEditable = !!((e = this.zincObject) != null && e.isEditable), this.isPointset = !1, this.isTextureSlides = !1, this.isLines = !1, this.activeName = "trControls", n && (n.isTextureSlides ? (this.isTextureSlides = !0, this.$refs.tSlidesControls.setObject(n), this.activeName = "tsControls") : n.isPointset ? (this.isPointset = !0, this.$refs.pointsetControls.setObject(n), this.activeName = "pControls") : n.isLines2 && (this.isLines = !0, this.$refs.linesControls.setObject(n), this.activeName = "lControls"), n.isTextureSlides || this.$refs.transformationControls.setObject(n)), n && n.getMorph() ? this.material = n.getMorph().material : this.material = void 0;
|
|
38558
38558
|
}
|
|
38559
38559
|
}
|
|
38560
38560
|
};
|
|
@@ -38868,7 +38868,7 @@ const t1 = /* @__PURE__ */ Zi(Gz, [["render", Hz], ["__scopeId", "data-v-764a8ef
|
|
|
38868
38868
|
},
|
|
38869
38869
|
//Set this right at the beginning.
|
|
38870
38870
|
setModule: function(n) {
|
|
38871
|
-
this.module =
|
|
38871
|
+
this.module = rn(n), this.nodeNumbers = 0, this.module.scene.getRootRegion().getAllObjects(!0).forEach((t) => {
|
|
38872
38872
|
this.zincObjectAdded(t);
|
|
38873
38873
|
}), this.module.addOrganPartAddedCallback(this.zincObjectAdded), this.module.addOrganPartRemovedCallback(this.zincObjectRemoved);
|
|
38874
38874
|
},
|
|
@@ -39033,7 +39033,7 @@ const n1 = /* @__PURE__ */ Zi(jz, [["render", Zz], ["__scopeId", "data-v-a4a5291
|
|
|
39033
39033
|
], -1));
|
|
39034
39034
|
function qz(n, e, t, i, r, s) {
|
|
39035
39035
|
const o = Gf, a = Gn, l = Ei, c = Su, h = is, u = Ai, f = ai;
|
|
39036
|
-
return pe(),
|
|
39036
|
+
return pe(), He(f, { class: "create-container" }, {
|
|
39037
39037
|
default: ce(() => [
|
|
39038
39038
|
oe(o, {
|
|
39039
39039
|
height: "30px",
|
|
@@ -39063,7 +39063,7 @@ function qz(n, e, t, i, r, s) {
|
|
|
39063
39063
|
span: 16
|
|
39064
39064
|
}, {
|
|
39065
39065
|
default: ce(() => [
|
|
39066
|
-
(pe(!0), Le(
|
|
39066
|
+
(pe(!0), Le(Ft, null, Fn(t.createData.points, ({ value: g, i: p }) => (pe(), He(l, {
|
|
39067
39067
|
key: p,
|
|
39068
39068
|
class: "value"
|
|
39069
39069
|
}, {
|
|
@@ -39270,7 +39270,7 @@ function o0(n, e, t, i) {
|
|
|
39270
39270
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
39271
39271
|
hr(Ee(r ? r() : {}).value)
|
|
39272
39272
|
) : hr(t.state.value[n]);
|
|
39273
|
-
return ni(h, s, Object.keys(o || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in h && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), u[f] =
|
|
39273
|
+
return ni(h, s, Object.keys(o || {}).reduce((u, f) => (process.env.NODE_ENV !== "production" && f in h && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${n}".`), u[f] = rn(le(() => {
|
|
39274
39274
|
cu(t);
|
|
39275
39275
|
const g = t._s.get(n);
|
|
39276
39276
|
return o[f].call(g, g);
|
|
@@ -39351,7 +39351,7 @@ function sf(n, e, t = {}, i, r, s) {
|
|
|
39351
39351
|
return N instanceof Promise ? N.then((D) => (yo(I, D), D)).catch((D) => (yo(O, D), Promise.reject(D))) : (yo(I, N), N);
|
|
39352
39352
|
};
|
|
39353
39353
|
return L[r0] = !0, L[Qd] = C, L;
|
|
39354
|
-
}, T = /* @__PURE__ */
|
|
39354
|
+
}, T = /* @__PURE__ */ rn({
|
|
39355
39355
|
actions: {},
|
|
39356
39356
|
getters: {},
|
|
39357
39357
|
state: [],
|
|
@@ -39377,7 +39377,7 @@ function sf(n, e, t = {}, i, r, s) {
|
|
|
39377
39377
|
}, w = Qn(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ba ? ni(
|
|
39378
39378
|
{
|
|
39379
39379
|
_hmrPayload: T,
|
|
39380
|
-
_customProperties:
|
|
39380
|
+
_customProperties: rn(/* @__PURE__ */ new Set())
|
|
39381
39381
|
// devtools custom properties
|
|
39382
39382
|
},
|
|
39383
39383
|
M
|
|
@@ -39397,7 +39397,7 @@ function sf(n, e, t = {}, i, r, s) {
|
|
|
39397
39397
|
// @ts-expect-error
|
|
39398
39398
|
t.getters[E]
|
|
39399
39399
|
) : C, Ba && (A._getters || // @ts-expect-error: same
|
|
39400
|
-
(A._getters =
|
|
39400
|
+
(A._getters = rn([]))).push(E));
|
|
39401
39401
|
}
|
|
39402
39402
|
if (ni(w, A), ni(hf(w), A), Object.defineProperty(w, "$state", {
|
|
39403
39403
|
get: () => process.env.NODE_ENV !== "production" && r ? d.value : i.state.value[n],
|
|
@@ -39408,7 +39408,7 @@ function sf(n, e, t = {}, i, r, s) {
|
|
|
39408
39408
|
ni(C, E);
|
|
39409
39409
|
});
|
|
39410
39410
|
}
|
|
39411
|
-
}), process.env.NODE_ENV !== "production" && (w._hotUpdate =
|
|
39411
|
+
}), process.env.NODE_ENV !== "production" && (w._hotUpdate = rn((E) => {
|
|
39412
39412
|
w._hotUpdating = !0, E._hmrPayload.state.forEach((C) => {
|
|
39413
39413
|
if (C in w.$state) {
|
|
39414
39414
|
const L = E.$state[C], P = w.$state[C];
|
|
@@ -39489,7 +39489,7 @@ This will fail in production.`);
|
|
|
39489
39489
|
l._hotUpdate(f), delete a.state.value[u], a._s.delete(u);
|
|
39490
39490
|
}
|
|
39491
39491
|
if (process.env.NODE_ENV !== "production" && Ba) {
|
|
39492
|
-
const u =
|
|
39492
|
+
const u = on();
|
|
39493
39493
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
39494
39494
|
!l) {
|
|
39495
39495
|
const f = u.proxy, g = "_pStores" in f ? f._pStores : f._pStores = {};
|
|
@@ -39667,7 +39667,7 @@ const l1 = o1("main", {
|
|
|
39667
39667
|
function c4(n, e, t, i, r, s) {
|
|
39668
39668
|
const o = i1, a = ii("Tooltip"), l = Gn, c = is, h = Ei, u = Au;
|
|
39669
39669
|
return pe(), Le("div", {
|
|
39670
|
-
style:
|
|
39670
|
+
style: Ut(s.position),
|
|
39671
39671
|
class: "region-tooltip"
|
|
39672
39672
|
}, [
|
|
39673
39673
|
oe(u, {
|
|
@@ -39683,7 +39683,7 @@ function c4(n, e, t, i, r, s) {
|
|
|
39683
39683
|
}, {
|
|
39684
39684
|
default: ce(() => [
|
|
39685
39685
|
Ne("div", o4, ft(t.label), 1),
|
|
39686
|
-
t.region ? (pe(), Le("div", a4, "Region: " + ft(t.region), 1)) :
|
|
39686
|
+
t.region ? (pe(), Le("div", a4, "Region: " + ft(t.region), 1)) : ke("", !0),
|
|
39687
39687
|
Pt(oe(o, {
|
|
39688
39688
|
createData: t.createData,
|
|
39689
39689
|
onConfirmCreate: e[0] || (e[0] = (f) => n.$emit("confirm-create", f)),
|
|
@@ -39744,7 +39744,7 @@ function c4(n, e, t, i, r, s) {
|
|
|
39744
39744
|
]),
|
|
39745
39745
|
_: 1
|
|
39746
39746
|
})
|
|
39747
|
-
])) :
|
|
39747
|
+
])) : ke("", !0)
|
|
39748
39748
|
]),
|
|
39749
39749
|
_: 1
|
|
39750
39750
|
}, 8, ["visible", "onHide"])
|
|
@@ -42213,7 +42213,7 @@ const B4 = o1("settings", {
|
|
|
42213
42213
|
let t = {};
|
|
42214
42214
|
for (const [i, r] of Object.entries(n)) {
|
|
42215
42215
|
const s = await this.downloadImageThumbnail(i, r, e);
|
|
42216
|
-
s
|
|
42216
|
+
s && (t[i] = s);
|
|
42217
42217
|
}
|
|
42218
42218
|
return t;
|
|
42219
42219
|
},
|
|
@@ -42293,7 +42293,7 @@ const B4 = o1("settings", {
|
|
|
42293
42293
|
ScaffoldTreeControls: n1
|
|
42294
42294
|
},
|
|
42295
42295
|
setup(n) {
|
|
42296
|
-
return { annotator:
|
|
42296
|
+
return { annotator: rn(new h4(`${n.flatmapAPI}annotator`)) };
|
|
42297
42297
|
},
|
|
42298
42298
|
props: {
|
|
42299
42299
|
/**
|
|
@@ -42408,12 +42408,12 @@ const B4 = o1("settings", {
|
|
|
42408
42408
|
* GroupName to value pair.
|
|
42409
42409
|
* The value can be a single number or and object in the following
|
|
42410
42410
|
* form:
|
|
42411
|
-
*
|
|
42411
|
+
*
|
|
42412
42412
|
* {
|
|
42413
42413
|
* number: Number,
|
|
42414
42414
|
* imgURL: String
|
|
42415
42415
|
* }
|
|
42416
|
-
*
|
|
42416
|
+
*
|
|
42417
42417
|
* When imgURL is specified, scaffoldvuer will attempt to render
|
|
42418
42418
|
* the image in imgURL as marker instead.
|
|
42419
42419
|
*
|
|
@@ -42536,7 +42536,7 @@ const B4 = o1("settings", {
|
|
|
42536
42536
|
*/
|
|
42537
42537
|
sparcAPI: {
|
|
42538
42538
|
type: String,
|
|
42539
|
-
default: "
|
|
42539
|
+
default: ""
|
|
42540
42540
|
},
|
|
42541
42541
|
/**
|
|
42542
42542
|
* The option to show image thumbnail in sidebar
|
|
@@ -42610,6 +42610,7 @@ const B4 = o1("settings", {
|
|
|
42610
42610
|
inHelp: !1,
|
|
42611
42611
|
helpModeActiveIndex: this.helpModeInitialIndex,
|
|
42612
42612
|
loading: !1,
|
|
42613
|
+
imagesDownloading: !1,
|
|
42613
42614
|
duration: 3e3,
|
|
42614
42615
|
drawerOpen: !0,
|
|
42615
42616
|
currentBackground: "white",
|
|
@@ -42657,8 +42658,8 @@ const B4 = o1("settings", {
|
|
|
42657
42658
|
active: !1
|
|
42658
42659
|
},
|
|
42659
42660
|
fileFormat: "metadata",
|
|
42660
|
-
markerLabelEntry:
|
|
42661
|
-
previousMarkerLabelEntry:
|
|
42661
|
+
markerLabelEntry: rn({}),
|
|
42662
|
+
previousMarkerLabelEntry: rn({}),
|
|
42662
42663
|
viewingMode: "Exploration",
|
|
42663
42664
|
viewingModes: {
|
|
42664
42665
|
Exploration: "View and explore detailed visualization of 3D scaffolds",
|
|
@@ -42675,7 +42676,7 @@ const B4 = o1("settings", {
|
|
|
42675
42676
|
],
|
|
42676
42677
|
activeDrawTool: void 0,
|
|
42677
42678
|
activeDrawMode: void 0,
|
|
42678
|
-
localAnnotationsList:
|
|
42679
|
+
localAnnotationsList: rn([]),
|
|
42679
42680
|
boundingDims: {
|
|
42680
42681
|
centre: [0, 0, 0],
|
|
42681
42682
|
size: [1, 1, 1]
|
|
@@ -42683,7 +42684,11 @@ const B4 = o1("settings", {
|
|
|
42683
42684
|
imageRadio: !1,
|
|
42684
42685
|
imageType: "Image",
|
|
42685
42686
|
imageTypes: ["Image", "Segmentation", "Scaffold", "Plot"],
|
|
42686
|
-
imageClicked: ""
|
|
42687
|
+
imageClicked: "",
|
|
42688
|
+
/**
|
|
42689
|
+
* List of group names
|
|
42690
|
+
*/
|
|
42691
|
+
groupNames: rn([])
|
|
42687
42692
|
};
|
|
42688
42693
|
},
|
|
42689
42694
|
watch: {
|
|
@@ -42752,14 +42757,14 @@ const B4 = o1("settings", {
|
|
|
42752
42757
|
immediate: !0
|
|
42753
42758
|
},
|
|
42754
42759
|
markerLabels: function(n) {
|
|
42755
|
-
this.markerLabelEntry =
|
|
42760
|
+
this.imageRadio === !1 && (this.markerLabelEntry = rn({ ...n }));
|
|
42756
42761
|
},
|
|
42757
42762
|
markerLabelEntry: function(n) {
|
|
42758
42763
|
for (const [e, t] of Object.entries(this.previousMarkerLabelEntry))
|
|
42759
42764
|
this.setMarkerModeForObjectsWithName(e, t, "off");
|
|
42760
42765
|
for (const [e, t] of Object.entries(n))
|
|
42761
42766
|
this.setMarkerModeForObjectsWithName(e, t, "on");
|
|
42762
|
-
this.previousMarkerLabelEntry =
|
|
42767
|
+
this.previousMarkerLabelEntry = rn({ ...n });
|
|
42763
42768
|
}
|
|
42764
42769
|
},
|
|
42765
42770
|
beforeCreate: function() {
|
|
@@ -42802,7 +42807,7 @@ const B4 = o1("settings", {
|
|
|
42802
42807
|
* This is called when a new zinc object is read into the scene.
|
|
42803
42808
|
*/
|
|
42804
42809
|
zincObjectAdded: function(n) {
|
|
42805
|
-
this.loading = !1, this.$_searchIndex.addZincObject(n, n.uuid), this.timeVarying === !1 && n.isTimeVarying() && (this.timeVarying = !0), this.$emit("zinc-object-added", n);
|
|
42810
|
+
this.loading = !1, this.$_searchIndex.addZincObject(n, n.uuid), this.timeVarying === !1 && n.isTimeVarying() && (this.timeVarying = !0), n.groupName && this.groupNames.push(n.groupName.toLowerCase()), this.$emit("zinc-object-added", n);
|
|
42806
42811
|
},
|
|
42807
42812
|
/**
|
|
42808
42813
|
* Internal only.
|
|
@@ -43033,7 +43038,7 @@ const B4 = o1("settings", {
|
|
|
43033
43038
|
return n && n != "" && this.$module.scene && (e = this.$module.scene.findObjectsWithGroupName(n)), e;
|
|
43034
43039
|
},
|
|
43035
43040
|
/**
|
|
43036
|
-
* Switch active drawing type
|
|
43041
|
+
* Switch active drawing type
|
|
43037
43042
|
* @arg shapeName shape to toggle
|
|
43038
43043
|
*
|
|
43039
43044
|
* @vuese
|
|
@@ -43421,7 +43426,7 @@ const B4 = o1("settings", {
|
|
|
43421
43426
|
/**
|
|
43422
43427
|
* Set the marker modes for objects with the provided name, mode can
|
|
43423
43428
|
* be "on", "off" or "inherited".
|
|
43424
|
-
* Value can either be number or an object containing number and
|
|
43429
|
+
* Value can either be number or an object containing number and
|
|
43425
43430
|
* imgURL.
|
|
43426
43431
|
*/
|
|
43427
43432
|
setMarkerModeForObjectsWithName: function(n, e, t) {
|
|
@@ -43640,7 +43645,7 @@ const B4 = o1("settings", {
|
|
|
43640
43645
|
viewURL: this.viewURL,
|
|
43641
43646
|
visibility: i
|
|
43642
43647
|
})
|
|
43643
|
-
), this.fileFormat === "gltf" ? this.$module.loadGLTFFromURL(n, "scene", !0) : this.$module.loadOrgansFromURL(
|
|
43648
|
+
), this.groupNames.length = 0, this.fileFormat === "gltf" ? this.$module.loadGLTFFromURL(n, "scene", !0) : this.$module.loadOrgansFromURL(
|
|
43644
43649
|
n,
|
|
43645
43650
|
void 0,
|
|
43646
43651
|
void 0,
|
|
@@ -43704,13 +43709,13 @@ const B4 = o1("settings", {
|
|
|
43704
43709
|
this.setMarkerModeForObjectsWithName(n, e, "on");
|
|
43705
43710
|
},
|
|
43706
43711
|
removeImageThumbnails: function() {
|
|
43707
|
-
this.imageThumbnails = {}, this.markerLabelEntry =
|
|
43712
|
+
this.imageThumbnails = {}, this.markerLabelEntry = rn(this.markerLabels);
|
|
43708
43713
|
},
|
|
43709
|
-
setImage: function(n) {
|
|
43710
|
-
n ? this.setImageType(this.imageType) : this.removeImageThumbnails();
|
|
43714
|
+
setImage: async function(n) {
|
|
43715
|
+
n ? (await this.setImageType(this.imageType), this.$module.scene.enableMarkerCluster(!1)) : (this.removeImageThumbnails(), this.$module.scene.enableMarkerCluster(this.markerCluster));
|
|
43711
43716
|
},
|
|
43712
43717
|
setImageType: async function(n) {
|
|
43713
|
-
this.imageType = n, this.settingsStore.imageTypeCached(n) || (this.loading = !0, await this.fetchImageThumbnails(n), this.loading = !1), this.populateImageThumbnails(n);
|
|
43718
|
+
this.imageType = n, this.imagesDownloading = !0, this.settingsStore.imageTypeCached(n) || (this.loading = !0, await this.fetchImageThumbnails(n), this.loading = !1), this.populateImageThumbnails(n);
|
|
43714
43719
|
},
|
|
43715
43720
|
fetchImageThumbnails: async function(n) {
|
|
43716
43721
|
let e = {};
|
|
@@ -43718,24 +43723,23 @@ const B4 = o1("settings", {
|
|
|
43718
43723
|
n === "Image" ? e = await U4(this.sparcAPI, t, n) : n === "Segmentation" ? e = await V4(this.sparcAPI, t, n) : n === "Scaffold" ? e = await G4(this.sparcAPI, t, n) : n === "Plot" && (e = await W4(this.sparcAPI, t, n)), this.settingsStore.updateImageThumbnails(n, e);
|
|
43719
43724
|
},
|
|
43720
43725
|
convertUberonToName: function() {
|
|
43721
|
-
const n = this.settingsStore.organCuries, e = n.filter(
|
|
43722
|
-
|
|
43723
|
-
|
|
43724
|
-
|
|
43725
|
-
|
|
43726
|
-
)
|
|
43726
|
+
const n = this.settingsStore.organCuries, e = n.filter(
|
|
43727
|
+
(i) => this.groupNames.includes(i.name.toLowerCase())
|
|
43728
|
+
).map((i) => i.id), t = this.settingsStore.getImageThumbnails(this.imageType, e);
|
|
43729
|
+
return Object.fromEntries(
|
|
43730
|
+
Object.entries(t).map(([i, r]) => [n.filter((s) => s.id === i)[0].name, r])
|
|
43727
43731
|
);
|
|
43728
43732
|
},
|
|
43729
43733
|
populateImageThumbnails: async function(n) {
|
|
43730
43734
|
this.removeImageThumbnails();
|
|
43731
43735
|
const e = this.convertUberonToName();
|
|
43732
|
-
this.loading = !0, this.markerLabelEntry =
|
|
43736
|
+
this.loading = !0, this.markerLabelEntry = rn(await this.populateMapWithImages(e, n)), this.loading = !1, this.imagesDownloading = !1;
|
|
43733
43737
|
},
|
|
43734
43738
|
onImageThumbnailOpen: function(n) {
|
|
43735
43739
|
this.$emit("image-thumbnail-open", n);
|
|
43736
43740
|
}
|
|
43737
43741
|
}
|
|
43738
|
-
}, $p = (n) => (x0("data-v-
|
|
43742
|
+
}, $p = (n) => (x0("data-v-3f17c1ab"), n = n(), w0(), n), Z4 = {
|
|
43739
43743
|
ref: "scaffoldContainer",
|
|
43740
43744
|
class: "scaffold-container",
|
|
43741
43745
|
"element-loading-text": "Loading...",
|
|
@@ -43775,7 +43779,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
43775
43779
|
onKeydown: e[3] || (e[3] = vi((...E) => s.backgroundChangeCallback && s.backgroundChangeCallback(...E), ["66"]))
|
|
43776
43780
|
}, null, 544),
|
|
43777
43781
|
Pt(Ne("div", null, [
|
|
43778
|
-
n.viewingMode === "Annotation" && (n.userInformation || t.enableLocalAnnotations) ? (pe(),
|
|
43782
|
+
n.viewingMode === "Annotation" && (n.userInformation || t.enableLocalAnnotations) ? (pe(), He(l, {
|
|
43779
43783
|
key: 0,
|
|
43780
43784
|
toolbarOptions: n.toolbarOptions,
|
|
43781
43785
|
activeDrawTool: n.activeDrawTool,
|
|
@@ -43785,8 +43789,8 @@ function lV(n, e, t, i, r, s) {
|
|
|
43785
43789
|
onShowTooltip: s.showHelpText,
|
|
43786
43790
|
onHideTooltip: s.hideHelpText,
|
|
43787
43791
|
ref: "toolbarPopover"
|
|
43788
|
-
}, null, 8, ["toolbarOptions", "activeDrawTool", "activeDrawMode", "hoverVisibilities", "onClickToolbar", "onShowTooltip", "onHideTooltip"])) :
|
|
43789
|
-
t.displayWarning ? (pe(),
|
|
43792
|
+
}, null, 8, ["toolbarOptions", "activeDrawTool", "activeDrawMode", "hoverVisibilities", "onClickToolbar", "onShowTooltip", "onHideTooltip"])) : ke("", !0),
|
|
43793
|
+
t.displayWarning ? (pe(), He(u, {
|
|
43790
43794
|
key: 1,
|
|
43791
43795
|
ref: "warningPopover",
|
|
43792
43796
|
visible: n.hoverVisibilities[7].value,
|
|
@@ -43810,11 +43814,11 @@ function lV(n, e, t, i, r, s) {
|
|
|
43810
43814
|
_: 1
|
|
43811
43815
|
}),
|
|
43812
43816
|
X4
|
|
43813
|
-
], 32)) :
|
|
43817
|
+
], 32)) : ke("", !0)
|
|
43814
43818
|
]),
|
|
43815
43819
|
_: 1
|
|
43816
|
-
}, 8, ["visible", "content"])) :
|
|
43817
|
-
t.displayLatestChanges ? (pe(),
|
|
43820
|
+
}, 8, ["visible", "content"])) : ke("", !0),
|
|
43821
|
+
t.displayLatestChanges ? (pe(), He(u, {
|
|
43818
43822
|
key: 2,
|
|
43819
43823
|
visible: n.hoverVisibilities[8].value,
|
|
43820
43824
|
content: t.latestChangesMessage,
|
|
@@ -43838,10 +43842,10 @@ function lV(n, e, t, i, r, s) {
|
|
|
43838
43842
|
_: 1
|
|
43839
43843
|
}),
|
|
43840
43844
|
Y4
|
|
43841
|
-
], 32)) :
|
|
43845
|
+
], 32)) : ke("", !0)
|
|
43842
43846
|
]),
|
|
43843
43847
|
_: 1
|
|
43844
|
-
}, 8, ["visible", "content"])) :
|
|
43848
|
+
}, 8, ["visible", "content"])) : ke("", !0),
|
|
43845
43849
|
oe(u, {
|
|
43846
43850
|
visible: n.hoverVisibilities[6].value,
|
|
43847
43851
|
content: "Change region visibility",
|
|
@@ -43871,7 +43875,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
43871
43875
|
onPrimitivesUpdated: s.primitivesUpdated
|
|
43872
43876
|
}, null, 8, ["createData", "onPrimitivesUpdated"])
|
|
43873
43877
|
]),
|
|
43874
|
-
n.timeVarying ? (pe(),
|
|
43878
|
+
n.timeVarying ? (pe(), He(u, {
|
|
43875
43879
|
key: 3,
|
|
43876
43880
|
ref: "sliderPopover",
|
|
43877
43881
|
width: "max-content",
|
|
@@ -43893,12 +43897,12 @@ function lV(n, e, t, i, r, s) {
|
|
|
43893
43897
|
default: ce(() => [
|
|
43894
43898
|
oe(y, { class: "tab-content" }, {
|
|
43895
43899
|
default: ce(() => [
|
|
43896
|
-
n.isPlaying ? (pe(),
|
|
43900
|
+
n.isPlaying ? (pe(), He(p, {
|
|
43897
43901
|
key: 0,
|
|
43898
43902
|
icon: "pause",
|
|
43899
43903
|
class: "icon-button video-button",
|
|
43900
43904
|
onClick: e[8] || (e[8] = (E) => s.play(!1))
|
|
43901
|
-
})) : (pe(),
|
|
43905
|
+
})) : (pe(), He(p, {
|
|
43902
43906
|
key: 1,
|
|
43903
43907
|
icon: "play",
|
|
43904
43908
|
class: "video-button icon-button",
|
|
@@ -43944,7 +43948,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
43944
43948
|
onChange: e[11] || (e[11] = (E) => s.speedChanged(E))
|
|
43945
43949
|
}, {
|
|
43946
43950
|
default: ce(() => [
|
|
43947
|
-
(pe(!0), Le(
|
|
43951
|
+
(pe(!0), Le(Ft, null, Fn(n.playSpeed, (E) => (pe(), He(m, {
|
|
43948
43952
|
key: E.value,
|
|
43949
43953
|
label: E.label,
|
|
43950
43954
|
value: E.value
|
|
@@ -43962,10 +43966,10 @@ function lV(n, e, t, i, r, s) {
|
|
|
43962
43966
|
]),
|
|
43963
43967
|
_: 1
|
|
43964
43968
|
})
|
|
43965
|
-
], 2)) :
|
|
43969
|
+
], 2)) : ke("", !0)
|
|
43966
43970
|
]),
|
|
43967
43971
|
_: 1
|
|
43968
|
-
}, 8, ["visible"])) :
|
|
43972
|
+
}, 8, ["visible"])) : ke("", !0),
|
|
43969
43973
|
Ne("div", nV, [
|
|
43970
43974
|
oe(u, {
|
|
43971
43975
|
visible: n.hoverVisibilities[0].value,
|
|
@@ -44033,7 +44037,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44033
44037
|
_: 1
|
|
44034
44038
|
}, 8, ["visible"])
|
|
44035
44039
|
]),
|
|
44036
|
-
n.openMapRef ? (pe(),
|
|
44040
|
+
n.openMapRef ? (pe(), He(u, {
|
|
44037
44041
|
key: 4,
|
|
44038
44042
|
ref: "open-map-popover",
|
|
44039
44043
|
"virtual-ref": n.openMapRef,
|
|
@@ -44045,7 +44049,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44045
44049
|
"virtual-triggering": ""
|
|
44046
44050
|
}, {
|
|
44047
44051
|
default: ce(() => [
|
|
44048
|
-
(pe(!0), Le(
|
|
44052
|
+
(pe(!0), Le(Ft, null, Fn(t.openMapOptions, (E) => (pe(), He(y, {
|
|
44049
44053
|
key: E.key
|
|
44050
44054
|
}, {
|
|
44051
44055
|
default: ce(() => [
|
|
@@ -44064,7 +44068,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44064
44068
|
}, 1024))), 128))
|
|
44065
44069
|
]),
|
|
44066
44070
|
_: 1
|
|
44067
|
-
}, 8, ["virtual-ref"])) :
|
|
44071
|
+
}, 8, ["virtual-ref"])) : ke("", !0),
|
|
44068
44072
|
oe(u, {
|
|
44069
44073
|
ref: "backgroundPopover",
|
|
44070
44074
|
"virtual-ref": n.backgroundIconRef,
|
|
@@ -44086,7 +44090,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44086
44090
|
oe(y, { class: "backgroundChooser" }, {
|
|
44087
44091
|
default: ce(() => [
|
|
44088
44092
|
Ne("div", rV, [
|
|
44089
|
-
(pe(!0), Le(
|
|
44093
|
+
(pe(!0), Le(Ft, null, Fn(n.viewingModes, (E, C, L) => (pe(), Le(Ft, { key: C }, [
|
|
44090
44094
|
C === n.viewingMode ? (pe(), Le("span", sV, [
|
|
44091
44095
|
Ne("b", null, ft(C), 1)
|
|
44092
44096
|
])) : (pe(), Le("span", {
|
|
@@ -44105,95 +44109,90 @@ function lV(n, e, t, i, r, s) {
|
|
|
44105
44109
|
]),
|
|
44106
44110
|
_: 1
|
|
44107
44111
|
}),
|
|
44108
|
-
n.viewingMode === "Exploration" ? (pe(),
|
|
44109
|
-
|
|
44110
|
-
class: "
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
|
|
44114
|
-
|
|
44115
|
-
|
|
44116
|
-
|
|
44117
|
-
|
|
44118
|
-
|
|
44119
|
-
|
|
44120
|
-
|
|
44121
|
-
|
|
44122
|
-
|
|
44123
|
-
|
|
44124
|
-
|
|
44125
|
-
|
|
44126
|
-
|
|
44127
|
-
|
|
44128
|
-
|
|
44129
|
-
|
|
44130
|
-
|
|
44131
|
-
|
|
44132
|
-
|
|
44133
|
-
|
|
44134
|
-
|
|
44135
|
-
|
|
44136
|
-
|
|
44137
|
-
|
|
44138
|
-
|
|
44139
|
-
|
|
44140
|
-
|
|
44141
|
-
|
|
44142
|
-
|
|
44143
|
-
|
|
44144
|
-
|
|
44145
|
-
|
|
44146
|
-
|
|
44147
|
-
|
|
44148
|
-
|
|
44149
|
-
|
|
44150
|
-
|
|
44151
|
-
|
|
44152
|
-
|
|
44153
|
-
|
|
44154
|
-
|
|
44155
|
-
|
|
44156
|
-
|
|
44157
|
-
|
|
44158
|
-
|
|
44159
|
-
|
|
44160
|
-
|
|
44161
|
-
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
|
|
44165
|
-
|
|
44166
|
-
|
|
44167
|
-
|
|
44168
|
-
|
|
44169
|
-
|
|
44170
|
-
|
|
44171
|
-
|
|
44172
|
-
|
|
44173
|
-
|
|
44174
|
-
|
|
44175
|
-
|
|
44176
|
-
|
|
44177
|
-
|
|
44178
|
-
|
|
44179
|
-
|
|
44180
|
-
|
|
44181
|
-
|
|
44182
|
-
|
|
44183
|
-
|
|
44184
|
-
|
|
44185
|
-
|
|
44186
|
-
|
|
44187
|
-
|
|
44188
|
-
|
|
44189
|
-
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
_: 1
|
|
44193
|
-
})) : Ve("", !0)
|
|
44194
|
-
]),
|
|
44195
|
-
_: 1
|
|
44196
|
-
})) : Ve("", !0),
|
|
44112
|
+
n.viewingMode === "Exploration" && t.sparcAPI ? (pe(), Le(Ft, { key: 0 }, [
|
|
44113
|
+
oe(y, { class: "backgroundSpacer" }),
|
|
44114
|
+
oe(y, { class: "backgroundText" }, {
|
|
44115
|
+
default: ce(() => [
|
|
44116
|
+
Qe("Markers display")
|
|
44117
|
+
]),
|
|
44118
|
+
_: 1
|
|
44119
|
+
}),
|
|
44120
|
+
oe(y, { class: "backgroundChooser" }, {
|
|
44121
|
+
default: ce(() => [
|
|
44122
|
+
oe(_, { span: 14 }, {
|
|
44123
|
+
default: ce(() => [
|
|
44124
|
+
oe(w, {
|
|
44125
|
+
modelValue: n.imageRadio,
|
|
44126
|
+
"onUpdate:modelValue": e[21] || (e[21] = (E) => n.imageRadio = E),
|
|
44127
|
+
class: "flatmap-radio",
|
|
44128
|
+
disabled: n.imagesDownloading,
|
|
44129
|
+
onChange: s.setImage
|
|
44130
|
+
}, {
|
|
44131
|
+
default: ce(() => [
|
|
44132
|
+
oe(M, { value: !1 }, {
|
|
44133
|
+
default: ce(() => [
|
|
44134
|
+
Qe("Standard")
|
|
44135
|
+
]),
|
|
44136
|
+
_: 1
|
|
44137
|
+
}),
|
|
44138
|
+
oe(M, { value: !0 }, {
|
|
44139
|
+
default: ce(() => [
|
|
44140
|
+
Qe("Image")
|
|
44141
|
+
]),
|
|
44142
|
+
_: 1
|
|
44143
|
+
})
|
|
44144
|
+
]),
|
|
44145
|
+
_: 1
|
|
44146
|
+
}, 8, ["modelValue", "disabled", "onChange"])
|
|
44147
|
+
]),
|
|
44148
|
+
_: 1
|
|
44149
|
+
}),
|
|
44150
|
+
n.imageRadio ? (pe(), He(_, {
|
|
44151
|
+
key: 0,
|
|
44152
|
+
span: 10
|
|
44153
|
+
}, {
|
|
44154
|
+
default: ce(() => [
|
|
44155
|
+
oe(b, {
|
|
44156
|
+
teleported: !1,
|
|
44157
|
+
modelValue: n.imageType,
|
|
44158
|
+
"onUpdate:modelValue": e[22] || (e[22] = (E) => n.imageType = E),
|
|
44159
|
+
placeholder: "Select",
|
|
44160
|
+
class: "scaffold-select-box imageSelector",
|
|
44161
|
+
"popper-class": "scaffold_viewer_dropdown",
|
|
44162
|
+
disabled: n.imagesDownloading,
|
|
44163
|
+
onChange: s.setImageType
|
|
44164
|
+
}, {
|
|
44165
|
+
default: ce(() => [
|
|
44166
|
+
(pe(!0), Le(Ft, null, Fn(n.imageTypes, (E) => (pe(), He(m, {
|
|
44167
|
+
key: E,
|
|
44168
|
+
label: E,
|
|
44169
|
+
value: E
|
|
44170
|
+
}, {
|
|
44171
|
+
default: ce(() => [
|
|
44172
|
+
oe(y, null, {
|
|
44173
|
+
default: ce(() => [
|
|
44174
|
+
oe(_, { span: 12 }, {
|
|
44175
|
+
default: ce(() => [
|
|
44176
|
+
Qe(ft(E), 1)
|
|
44177
|
+
]),
|
|
44178
|
+
_: 2
|
|
44179
|
+
}, 1024)
|
|
44180
|
+
]),
|
|
44181
|
+
_: 2
|
|
44182
|
+
}, 1024)
|
|
44183
|
+
]),
|
|
44184
|
+
_: 2
|
|
44185
|
+
}, 1032, ["label", "value"]))), 128))
|
|
44186
|
+
]),
|
|
44187
|
+
_: 1
|
|
44188
|
+
}, 8, ["modelValue", "disabled", "onChange"])
|
|
44189
|
+
]),
|
|
44190
|
+
_: 1
|
|
44191
|
+
})) : ke("", !0)
|
|
44192
|
+
]),
|
|
44193
|
+
_: 1
|
|
44194
|
+
})
|
|
44195
|
+
], 64)) : ke("", !0),
|
|
44197
44196
|
oe(y, { class: "backgroundSpacer" }),
|
|
44198
44197
|
oe(y, { class: "backgroundText" }, {
|
|
44199
44198
|
default: ce(() => [
|
|
@@ -44203,7 +44202,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44203
44202
|
}),
|
|
44204
44203
|
oe(y, { class: "backgroundChooser" }, {
|
|
44205
44204
|
default: ce(() => [
|
|
44206
|
-
(pe(!0), Le(
|
|
44205
|
+
(pe(!0), Le(Ft, null, Fn(n.availableBackground, (E) => (pe(), Le("div", {
|
|
44207
44206
|
key: E,
|
|
44208
44207
|
class: Ce([
|
|
44209
44208
|
"backgroundChoice",
|
|
@@ -44235,14 +44234,14 @@ function lV(n, e, t, i, r, s) {
|
|
|
44235
44234
|
ref: "openMapPopover"
|
|
44236
44235
|
}, {
|
|
44237
44236
|
reference: ce(() => [
|
|
44238
|
-
t.enableOpenMapUI && t.openMapOptions.length > 0 ? (pe(),
|
|
44237
|
+
t.enableOpenMapUI && t.openMapOptions.length > 0 ? (pe(), He(p, {
|
|
44239
44238
|
key: 0,
|
|
44240
44239
|
ref: "openMapRef",
|
|
44241
44240
|
icon: "openMap",
|
|
44242
44241
|
class: "icon-button open-map-button",
|
|
44243
44242
|
onMouseover: e[23] || (e[23] = (E) => s.showHelpText(3)),
|
|
44244
44243
|
onMouseout: e[24] || (e[24] = (E) => s.hideHelpText(3))
|
|
44245
|
-
}, null, 512)) :
|
|
44244
|
+
}, null, 512)) : ke("", !0)
|
|
44246
44245
|
]),
|
|
44247
44246
|
_: 1
|
|
44248
44247
|
}, 8, ["visible"])
|
|
@@ -44283,7 +44282,7 @@ function lV(n, e, t, i, r, s) {
|
|
|
44283
44282
|
[A, n.loading]
|
|
44284
44283
|
]);
|
|
44285
44284
|
}
|
|
44286
|
-
const hV = /* @__PURE__ */ Zi($4, [["render", lV], ["__scopeId", "data-v-
|
|
44285
|
+
const hV = /* @__PURE__ */ Zi($4, [["render", lV], ["__scopeId", "data-v-3f17c1ab"]]);
|
|
44287
44286
|
export {
|
|
44288
44287
|
hV as ScaffoldVuer
|
|
44289
44288
|
};
|