@lazycatcloud/lzc-toolkit 0.0.176 → 0.0.178
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/index.es.js +124 -121
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as
|
|
1
|
+
import { shallowRef as ct, watchEffect as At, readonly as dt, getCurrentScope as zt, onScopeDispose as Lt, onMounted as re, nextTick as ve, ref as h, watch as K, customRef as jt, unref as z, isRef as xt, getCurrentInstance as Ye, onUpdated as Ct, computed as I, reactive as we, onUnmounted as ft, inject as ne, provide as F, defineComponent as q, h as ue, render as ye, openBlock as B, createBlock as Ie, Transition as Be, withCtx as Ue, withDirectives as Me, createElementBlock as H, normalizeClass as se, createElementVNode as Y, withModifiers as me, renderSlot as Ae, createCommentVNode as ce, useCssVars as Re, normalizeProps as _e, guardReactiveProps as be, pushScopeId as De, popScopeId as Te, normalizeStyle as G, toDisplayString as $e, vShow as ze, createVNode as ge, onBeforeUnmount as vt, onActivated as Mt, onBeforeMount as St, onDeactivated as Ot, useSlots as _t, toRef as bt, Fragment as ke, mergeProps as he, renderList as kt, toRefs as gt } from "vue";
|
|
2
2
|
const Qt = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
@@ -30,13 +30,13 @@ const Qt = {
|
|
|
30
30
|
};
|
|
31
31
|
function Yt(e, t) {
|
|
32
32
|
var n;
|
|
33
|
-
const o =
|
|
33
|
+
const o = ct();
|
|
34
34
|
return At(() => {
|
|
35
35
|
o.value = e();
|
|
36
36
|
}, {
|
|
37
37
|
...t,
|
|
38
38
|
flush: (n = t?.flush) != null ? n : "sync"
|
|
39
|
-
}),
|
|
39
|
+
}), dt(o);
|
|
40
40
|
}
|
|
41
41
|
function Bt(e, t) {
|
|
42
42
|
let n, o, l;
|
|
@@ -60,11 +60,11 @@ function He(e) {
|
|
|
60
60
|
function ee(e) {
|
|
61
61
|
return typeof e == "function" ? e() : z(e);
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const ht = typeof window < "u" && typeof document < "u";
|
|
64
64
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
65
|
-
const Ut = Object.prototype.toString, Rt = (e) => Ut.call(e) === "[object Object]",
|
|
65
|
+
const Ut = Object.prototype.toString, Rt = (e) => Ut.call(e) === "[object Object]", de = () => {
|
|
66
66
|
};
|
|
67
|
-
function
|
|
67
|
+
function mt(e, t) {
|
|
68
68
|
function n(...o) {
|
|
69
69
|
return new Promise((l, s) => {
|
|
70
70
|
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(l).catch(s);
|
|
@@ -73,9 +73,9 @@ function ht(e, t) {
|
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
75
|
function $t(e, t = {}) {
|
|
76
|
-
let n, o, l =
|
|
76
|
+
let n, o, l = de;
|
|
77
77
|
const s = (c) => {
|
|
78
|
-
clearTimeout(c), l(), l =
|
|
78
|
+
clearTimeout(c), l(), l = de;
|
|
79
79
|
};
|
|
80
80
|
return (c) => {
|
|
81
81
|
const u = ee(e), d = ee(t.maxWait);
|
|
@@ -89,10 +89,10 @@ function $t(e, t = {}) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
function Ht(...e) {
|
|
92
|
-
let t = 0, n, o = !0, l =
|
|
92
|
+
let t = 0, n, o = !0, l = de, s, a, c, u, d;
|
|
93
93
|
!xt(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: c = !0, leading: u = !0, rejectOnCancel: d = !1 } = e[0] : [a, c = !0, u = !0, d = !1] = e;
|
|
94
94
|
const v = () => {
|
|
95
|
-
n && (clearTimeout(n), n = void 0, l(), l =
|
|
95
|
+
n && (clearTimeout(n), n = void 0, l(), l = de);
|
|
96
96
|
};
|
|
97
97
|
return (M) => {
|
|
98
98
|
const f = ee(a), i = Date.now() - t, p = () => s = M();
|
|
@@ -107,35 +107,35 @@ function Pt(e) {
|
|
|
107
107
|
return e || Ye();
|
|
108
108
|
}
|
|
109
109
|
function Le(e, t = 200, n = {}) {
|
|
110
|
-
return
|
|
110
|
+
return mt(
|
|
111
111
|
$t(t, n),
|
|
112
112
|
e
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
function Qe(e, t = 200, n = !1, o = !0, l = !1) {
|
|
116
|
-
return
|
|
116
|
+
return mt(
|
|
117
117
|
Ht(t, n, o, l),
|
|
118
118
|
e
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
function Pe(e, t = !0, n) {
|
|
122
|
-
Pt() ?
|
|
122
|
+
Pt() ? re(e, n) : t ? e() : ve(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ie(e) {
|
|
125
125
|
var t;
|
|
126
126
|
const n = ee(e);
|
|
127
127
|
return (t = n?.$el) != null ? t : n;
|
|
128
128
|
}
|
|
129
|
-
const je =
|
|
129
|
+
const je = ht ? window : void 0, Ft = ht ? window.document : void 0;
|
|
130
130
|
function Ne(...e) {
|
|
131
131
|
let t, n, o, l;
|
|
132
132
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = je) : [t, n, o, l] = e, !t)
|
|
133
|
-
return
|
|
133
|
+
return de;
|
|
134
134
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
135
135
|
const s = [], a = () => {
|
|
136
136
|
s.forEach((v) => v()), s.length = 0;
|
|
137
137
|
}, c = (v, r, M, f) => (v.addEventListener(r, M, f), () => v.removeEventListener(r, M, f)), u = K(
|
|
138
|
-
() => [
|
|
138
|
+
() => [ie(t), ee(l)],
|
|
139
139
|
([v, r]) => {
|
|
140
140
|
if (a(), !v)
|
|
141
141
|
return;
|
|
@@ -152,7 +152,7 @@ function Ne(...e) {
|
|
|
152
152
|
}
|
|
153
153
|
function Wt() {
|
|
154
154
|
const e = h(!1), t = Ye();
|
|
155
|
-
return t &&
|
|
155
|
+
return t && re(() => {
|
|
156
156
|
e.value = !0;
|
|
157
157
|
}, t), e;
|
|
158
158
|
}
|
|
@@ -163,16 +163,16 @@ function Xt(e) {
|
|
|
163
163
|
function Zt(e) {
|
|
164
164
|
const t = Ye(), n = Bt(
|
|
165
165
|
() => null,
|
|
166
|
-
() => e ?
|
|
166
|
+
() => e ? ie(e) : t.proxy.$el
|
|
167
167
|
);
|
|
168
|
-
return Ct(n.trigger),
|
|
168
|
+
return Ct(n.trigger), re(n.trigger), n;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Fe(e, t, n = {}) {
|
|
171
171
|
const { window: o = je, ...l } = n;
|
|
172
172
|
let s;
|
|
173
173
|
const a = Xt(() => o && "ResizeObserver" in o), c = () => {
|
|
174
174
|
s && (s.disconnect(), s = void 0);
|
|
175
|
-
}, u = I(() => Array.isArray(e) ? e.map((r) =>
|
|
175
|
+
}, u = I(() => Array.isArray(e) ? e.map((r) => ie(r)) : [ie(e)]), d = K(
|
|
176
176
|
u,
|
|
177
177
|
(r) => {
|
|
178
178
|
if (c(), a.value && o) {
|
|
@@ -193,13 +193,13 @@ function mt(e, t, n = {}) {
|
|
|
193
193
|
function Vt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
194
194
|
const { window: o = je, box: l = "content-box" } = n, s = I(() => {
|
|
195
195
|
var r, M;
|
|
196
|
-
return (M = (r =
|
|
197
|
-
}), a = h(t.width), c = h(t.height), { stop: u } =
|
|
196
|
+
return (M = (r = ie(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : M.includes("svg");
|
|
197
|
+
}), a = h(t.width), c = h(t.height), { stop: u } = Fe(
|
|
198
198
|
e,
|
|
199
199
|
([r]) => {
|
|
200
200
|
const M = l === "border-box" ? r.borderBoxSize : l === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
|
|
201
201
|
if (o && s.value) {
|
|
202
|
-
const f =
|
|
202
|
+
const f = ie(e);
|
|
203
203
|
if (f) {
|
|
204
204
|
const i = o.getComputedStyle(f);
|
|
205
205
|
a.value = Number.parseFloat(i.width), c.value = Number.parseFloat(i.height);
|
|
@@ -213,11 +213,11 @@ function Vt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
|
213
213
|
n
|
|
214
214
|
);
|
|
215
215
|
Pe(() => {
|
|
216
|
-
const r =
|
|
216
|
+
const r = ie(e);
|
|
217
217
|
r && (a.value = "offsetWidth" in r ? r.offsetWidth : t.width, c.value = "offsetHeight" in r ? r.offsetHeight : t.height);
|
|
218
218
|
});
|
|
219
219
|
const d = K(
|
|
220
|
-
() =>
|
|
220
|
+
() => ie(e),
|
|
221
221
|
(r) => {
|
|
222
222
|
a.value = r ? t.width : 0, c.value = r ? t.height : 0;
|
|
223
223
|
}
|
|
@@ -231,13 +231,13 @@ function Vt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
|
231
231
|
stop: v
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const st = 1;
|
|
235
235
|
function Kt(e, t = {}) {
|
|
236
236
|
const {
|
|
237
237
|
throttle: n = 0,
|
|
238
238
|
idle: o = 200,
|
|
239
|
-
onStop: l =
|
|
240
|
-
onScroll: s =
|
|
239
|
+
onStop: l = de,
|
|
240
|
+
onScroll: s = de,
|
|
241
241
|
offset: a = {
|
|
242
242
|
left: 0,
|
|
243
243
|
right: 0,
|
|
@@ -295,13 +295,13 @@ function Kt(e, t = {}) {
|
|
|
295
295
|
var L;
|
|
296
296
|
if (!d)
|
|
297
297
|
return;
|
|
298
|
-
const R = ((L = D?.document) == null ? void 0 : L.documentElement) || D?.documentElement ||
|
|
298
|
+
const R = ((L = D?.document) == null ? void 0 : L.documentElement) || D?.documentElement || ie(D), { display: Z, flexDirection: y } = getComputedStyle(R), N = R.scrollLeft;
|
|
299
299
|
T.left = N < r.value, T.right = N > r.value;
|
|
300
|
-
const C = Math.abs(N) <= (a.left || 0), k = Math.abs(N) + R.clientWidth >= R.scrollWidth - (a.right || 0) -
|
|
300
|
+
const C = Math.abs(N) <= (a.left || 0), k = Math.abs(N) + R.clientWidth >= R.scrollWidth - (a.right || 0) - st;
|
|
301
301
|
Z === "flex" && y === "row-reverse" ? (g.left = k, g.right = C) : (g.left = C, g.right = k), r.value = N;
|
|
302
302
|
let _ = R.scrollTop;
|
|
303
303
|
D === d.document && !_ && (_ = d.document.body.scrollTop), T.top = _ < M.value, T.bottom = _ > M.value;
|
|
304
|
-
const E = Math.abs(_) <= (a.top || 0), A = Math.abs(_) + R.clientHeight >= R.scrollHeight - (a.bottom || 0) -
|
|
304
|
+
const E = Math.abs(_) <= (a.top || 0), A = Math.abs(_) + R.clientHeight >= R.scrollHeight - (a.bottom || 0) - st;
|
|
305
305
|
Z === "flex" && y === "column-reverse" ? (g.top = A, g.bottom = E) : (g.top = E, g.bottom = A), M.value = _;
|
|
306
306
|
}, S = (D) => {
|
|
307
307
|
var L;
|
|
@@ -342,7 +342,7 @@ function Kt(e, t = {}) {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
let Gt = 0;
|
|
345
|
-
function
|
|
345
|
+
function We(e, t = {}) {
|
|
346
346
|
const n = h(!1), {
|
|
347
347
|
document: o = Ft,
|
|
348
348
|
immediate: l = !0,
|
|
@@ -370,7 +370,7 @@ function Fe(e, t = {}) {
|
|
|
370
370
|
css: c,
|
|
371
371
|
unload: v,
|
|
372
372
|
load: d,
|
|
373
|
-
isLoaded:
|
|
373
|
+
isLoaded: dt(n)
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function qt(e, t, n) {
|
|
@@ -384,7 +384,7 @@ function qt(e, t, n) {
|
|
|
384
384
|
function Jt(e, t) {
|
|
385
385
|
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = h(null), a = Vt(s), c = h(!0), u = Le(U, 100);
|
|
386
386
|
let d;
|
|
387
|
-
const v =
|
|
387
|
+
const v = ct(e), r = h(0), M = h({ start: 0, end: 10 }), f = h({ start: 0, end: l });
|
|
388
388
|
let i = 0;
|
|
389
389
|
const p = h([]), m = I(() => {
|
|
390
390
|
let { sum: E, height: A } = { sum: 0, height: 0 };
|
|
@@ -393,8 +393,8 @@ function Jt(e, t) {
|
|
|
393
393
|
const { start: E, end: A } = f.value;
|
|
394
394
|
return p.value.slice(E, A);
|
|
395
395
|
});
|
|
396
|
-
|
|
397
|
-
}),
|
|
396
|
+
re(() => {
|
|
397
|
+
}), ft(() => cancelAnimationFrame(d)), K(
|
|
398
398
|
v,
|
|
399
399
|
() => {
|
|
400
400
|
(a.width.value || a.height.value) && S();
|
|
@@ -505,7 +505,7 @@ function Jt(e, t) {
|
|
|
505
505
|
innerProps: k
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
const
|
|
508
|
+
const Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), Je = Symbol(), et = Symbol(), pe = Symbol(), tt = Symbol();
|
|
509
509
|
function Eo() {
|
|
510
510
|
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
511
511
|
voidFn: (p) => {
|
|
@@ -514,7 +514,7 @@ function Eo() {
|
|
|
514
514
|
boolRef: I(() => !1),
|
|
515
515
|
numberRef: I(() => 0),
|
|
516
516
|
arrayRef: I(() => [])
|
|
517
|
-
}, s = ne(
|
|
517
|
+
}, s = ne(Ke, l), a = ne(Ve, t), c = ne(et, n), u = ne(Ze, e), d = ne(Xe, e), v = ne(Ge, e), r = ne(qe, e), M = ne(Je, e), f = ne(pe, e), i = ne(tt, o);
|
|
518
518
|
return {
|
|
519
519
|
selected: s,
|
|
520
520
|
isSelected: a,
|
|
@@ -601,7 +601,7 @@ function Io(e, t, n = { deep: !0 }) {
|
|
|
601
601
|
const { value: g } = u;
|
|
602
602
|
g ? v() : d();
|
|
603
603
|
}
|
|
604
|
-
return F(
|
|
604
|
+
return F(Xe, m), F(Ze, p), F(Ve, f), F(Ke, a), F(Ge, r), F(qe, d), F(Je, M), F(et, u), F(pe, v), F(pe, v), F(tt, c), {
|
|
605
605
|
selected: a,
|
|
606
606
|
select: r,
|
|
607
607
|
selectAll: d,
|
|
@@ -668,7 +668,7 @@ function Ao(e) {
|
|
|
668
668
|
const { value: i } = s;
|
|
669
669
|
i ? c() : a();
|
|
670
670
|
}
|
|
671
|
-
return F(
|
|
671
|
+
return F(Xe, f), F(Ze, M), F(Ve, v), F(Ke, o), F(Ge, u), F(qe, a), F(Je, d), F(et, s), F(pe, c), F(pe, c), F(tt, l), {
|
|
672
672
|
selected: o,
|
|
673
673
|
select: u,
|
|
674
674
|
selectAll: a,
|
|
@@ -699,7 +699,7 @@ function yt({
|
|
|
699
699
|
} = o();
|
|
700
700
|
let c = {};
|
|
701
701
|
const u = I(
|
|
702
|
-
() => Qe(t === "colum" ? V :
|
|
702
|
+
() => Qe(t === "colum" ? V : oe, 50)
|
|
703
703
|
), d = /* @__PURE__ */ new Set(), v = h(!0), r = h(), M = h(!1), f = h({ x: 0, y: 0 }), i = h({ x: 0, y: 0, scrollTop: 0 }), p = new ResizeObserver(
|
|
704
704
|
(j) => m.value = j[0].target.getBoundingClientRect()
|
|
705
705
|
), m = h({}), g = h({
|
|
@@ -735,9 +735,9 @@ function yt({
|
|
|
735
735
|
const X = m.value, W = X.bottom - j;
|
|
736
736
|
if (W < D)
|
|
737
737
|
return L * Z(1 - W / D);
|
|
738
|
-
const
|
|
739
|
-
if (
|
|
740
|
-
return -L * Z(1 -
|
|
738
|
+
const le = j - X.top;
|
|
739
|
+
if (le < D)
|
|
740
|
+
return -L * Z(1 - le / D);
|
|
741
741
|
}
|
|
742
742
|
return 0;
|
|
743
743
|
}
|
|
@@ -756,10 +756,10 @@ function yt({
|
|
|
756
756
|
function E(j, O, X = "dynamic-styles") {
|
|
757
757
|
let W = document.getElementById(X);
|
|
758
758
|
W || (W = document.createElement("style"), W.id = X, document.head.appendChild(W));
|
|
759
|
-
const
|
|
759
|
+
const le = W.sheet.cssRules, fe = le.length, It = `${j} { ${O} }`;
|
|
760
760
|
for (let xe = 0; xe < fe; xe++) {
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
761
|
+
const lt = le[xe];
|
|
762
|
+
if (lt.selectorText === j && lt.style.cssText === O)
|
|
763
763
|
return;
|
|
764
764
|
}
|
|
765
765
|
W.sheet.insertRule(It, fe);
|
|
@@ -795,12 +795,12 @@ function yt({
|
|
|
795
795
|
c[`${e}`] = j.getAttribute(`${e}`), k(j.getBoundingClientRect()) ? l([c]) : s([c]);
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function oe() {
|
|
799
799
|
const j = [];
|
|
800
800
|
let O = null, X = 0;
|
|
801
|
-
r.value?.querySelectorAll(`[${e}]`).forEach((W,
|
|
801
|
+
r.value?.querySelectorAll(`[${e}]`).forEach((W, le) => {
|
|
802
802
|
const fe = W.getAttribute(`${e}`);
|
|
803
|
-
j.push(fe), k(W.getBoundingClientRect()) ? (O === null && (O =
|
|
803
|
+
j.push(fe), k(W.getBoundingClientRect()) ? (O === null && (O = le), O = Math.min(O, le), X = Math.max(X, le)) : (c[`${e}`] = fe, d.has(fe) && s([c]));
|
|
804
804
|
});
|
|
805
805
|
for (let W = O; W < X + 1; W++)
|
|
806
806
|
c[`${e}`] = j[W], l([c]), d.add(j[W]);
|
|
@@ -835,7 +835,7 @@ function zo(e) {
|
|
|
835
835
|
top: `${o.value.top}px`,
|
|
836
836
|
width: `${o.value.width}px`,
|
|
837
837
|
height: `${o.value.height}px`
|
|
838
|
-
})), { load: v } =
|
|
838
|
+
})), { load: v } = We(
|
|
839
839
|
`.drag-select-box {
|
|
840
840
|
position: absolute;
|
|
841
841
|
z-index: 99999;
|
|
@@ -845,7 +845,7 @@ function zo(e) {
|
|
|
845
845
|
{ id: "styletag_lzc_dragselect", manual: !0 }
|
|
846
846
|
), r = q({
|
|
847
847
|
render() {
|
|
848
|
-
return
|
|
848
|
+
return ue("div", {
|
|
849
849
|
id: "selectBoxEl",
|
|
850
850
|
class: "drag-select-box",
|
|
851
851
|
style: d.value
|
|
@@ -867,7 +867,7 @@ function zo(e) {
|
|
|
867
867
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
868
868
|
if (!t.containerEl?.value)
|
|
869
869
|
return !1;
|
|
870
|
-
ye(
|
|
870
|
+
ye(ue(r), t.containerEl.value), v(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", M);
|
|
871
871
|
} catch (T) {
|
|
872
872
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", T);
|
|
873
873
|
}
|
|
@@ -939,18 +939,18 @@ const en = Symbol(), tn = /* @__PURE__ */ q({
|
|
|
939
939
|
default: Ue(() => [
|
|
940
940
|
e.visiable ? Me((B(), H("div", {
|
|
941
941
|
key: 0,
|
|
942
|
-
class:
|
|
942
|
+
class: se([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
943
943
|
}, [
|
|
944
944
|
Y("div", {
|
|
945
945
|
onMousedown: s[0] || (s[0] = me(() => {
|
|
946
946
|
}, ["stop"])),
|
|
947
|
-
class:
|
|
947
|
+
class: se(["lzc-dialog", e.dialogClass])
|
|
948
948
|
}, [
|
|
949
949
|
Ae(l.$slots, "default", {}, void 0, !0)
|
|
950
950
|
], 34)
|
|
951
951
|
], 2)), [
|
|
952
952
|
[z(Qt), () => o()]
|
|
953
|
-
]) :
|
|
953
|
+
]) : ce("", !0)
|
|
954
954
|
]),
|
|
955
955
|
_: 3
|
|
956
956
|
}));
|
|
@@ -966,7 +966,7 @@ function jo(e) {
|
|
|
966
966
|
function t(n, o) {
|
|
967
967
|
const l = document.createElement("div"), s = {
|
|
968
968
|
setup() {
|
|
969
|
-
return () =>
|
|
969
|
+
return () => ue(
|
|
970
970
|
nn,
|
|
971
971
|
{
|
|
972
972
|
visiable: !0,
|
|
@@ -976,12 +976,12 @@ function jo(e) {
|
|
|
976
976
|
...e
|
|
977
977
|
},
|
|
978
978
|
{
|
|
979
|
-
default: () =>
|
|
979
|
+
default: () => ue(n, o)
|
|
980
980
|
}
|
|
981
981
|
);
|
|
982
982
|
}
|
|
983
983
|
};
|
|
984
|
-
return document.body.appendChild(l), ye(
|
|
984
|
+
return document.body.appendChild(l), ye(ue(s), l), {
|
|
985
985
|
close: () => l?.remove()
|
|
986
986
|
};
|
|
987
987
|
}
|
|
@@ -995,7 +995,7 @@ function pt({
|
|
|
995
995
|
delay: n = 300
|
|
996
996
|
}) {
|
|
997
997
|
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
|
|
998
|
-
return
|
|
998
|
+
return We(
|
|
999
999
|
`@keyframes lzcDelayLoad {
|
|
1000
1000
|
to {
|
|
1001
1001
|
opacity: 1;
|
|
@@ -1008,9 +1008,9 @@ function pt({
|
|
|
1008
1008
|
), { LoadingComp: q({
|
|
1009
1009
|
setup() {
|
|
1010
1010
|
const c = Zt();
|
|
1011
|
-
return
|
|
1011
|
+
return re(() => {
|
|
1012
1012
|
c.value?.classList?.add(l);
|
|
1013
|
-
}), () =>
|
|
1013
|
+
}), () => ue(e, t);
|
|
1014
1014
|
}
|
|
1015
1015
|
}) };
|
|
1016
1016
|
}
|
|
@@ -1074,7 +1074,7 @@ const un = /* @__PURE__ */ te(an, [["__scopeId", "data-v-92a1804d"]]), rn = "dat
|
|
|
1074
1074
|
}
|
|
1075
1075
|
});
|
|
1076
1076
|
const Co = /* @__PURE__ */ te(fn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1077
|
-
async function
|
|
1077
|
+
async function nt(e) {
|
|
1078
1078
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1079
1079
|
}
|
|
1080
1080
|
const vn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMT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KPC9zdmc+", gn = ["onClick"], hn = ["onClick"], mn = ["src"], yn = ["src"], pn = /* @__PURE__ */ q({
|
|
@@ -1127,33 +1127,33 @@ const vn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1127
1127
|
style: G(z(l))
|
|
1128
1128
|
}, [
|
|
1129
1129
|
Me(Y("div", {
|
|
1130
|
-
class:
|
|
1130
|
+
class: se(`${o} ${e.className}`),
|
|
1131
1131
|
onClick: me(c, ["stop"])
|
|
1132
1132
|
}, [
|
|
1133
1133
|
Y("div", {
|
|
1134
|
-
class:
|
|
1134
|
+
class: se(`${o}-wrap`),
|
|
1135
1135
|
onClick: me(u, ["stop"])
|
|
1136
1136
|
}, [
|
|
1137
1137
|
Y("div", {
|
|
1138
|
-
class:
|
|
1138
|
+
class: se(`${o}-content`),
|
|
1139
1139
|
style: G(z(s))
|
|
1140
1140
|
}, [
|
|
1141
1141
|
e.showClose ? (B(), H("img", {
|
|
1142
1142
|
key: 0,
|
|
1143
1143
|
onClick: v[0] || (v[0] = me((r) => t("close"), ["stop"])),
|
|
1144
1144
|
src: z(vn),
|
|
1145
|
-
class:
|
|
1146
|
-
}, null, 10, mn)) :
|
|
1145
|
+
class: se(`${o}-close`)
|
|
1146
|
+
}, null, 10, mn)) : ce("", !0),
|
|
1147
1147
|
e.showIcon ? (B(), H("img", {
|
|
1148
1148
|
key: 1,
|
|
1149
1149
|
src: e.icon || z(Mn),
|
|
1150
|
-
class:
|
|
1151
|
-
}, null, 10, yn)) :
|
|
1150
|
+
class: se(`${o}-icon`)
|
|
1151
|
+
}, null, 10, yn)) : ce("", !0),
|
|
1152
1152
|
e.message ? (B(), H("div", {
|
|
1153
1153
|
key: 2,
|
|
1154
|
-
class:
|
|
1154
|
+
class: se(`${o}-message`),
|
|
1155
1155
|
style: G(z(a))
|
|
1156
|
-
}, $e(e.message), 7)) :
|
|
1156
|
+
}, $e(e.message), 7)) : ce("", !0)
|
|
1157
1157
|
], 6)
|
|
1158
1158
|
], 10, hn)
|
|
1159
1159
|
], 10, gn), [
|
|
@@ -1181,7 +1181,7 @@ class Tn {
|
|
|
1181
1181
|
} }, l = ge(this.loadingToast, o);
|
|
1182
1182
|
ye(l, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, t.duration !== 0 && setTimeout(() => {
|
|
1183
1183
|
this.destory();
|
|
1184
|
-
}, t.duration), await
|
|
1184
|
+
}, t.duration), await nt(t.duration + this.animateDuration);
|
|
1185
1185
|
}
|
|
1186
1186
|
async destory() {
|
|
1187
1187
|
!this.visible.value || (this.visible.value = !1, await new Promise((t) => {
|
|
@@ -1235,7 +1235,7 @@ function So(e, t) {
|
|
|
1235
1235
|
async function f(i = !0) {
|
|
1236
1236
|
n && console.log("useDelayAsync - close - closeLoading: ", i), d.value = !1, v && clearTimeout(v), v = null, i && await r.destory();
|
|
1237
1237
|
}
|
|
1238
|
-
return c &&
|
|
1238
|
+
return c && vt(() => {
|
|
1239
1239
|
n && console.log("useDelayAsync - onBeforeUnmount - close"), f();
|
|
1240
1240
|
}), {
|
|
1241
1241
|
processing: d,
|
|
@@ -1273,7 +1273,7 @@ function Nn() {
|
|
|
1273
1273
|
isHorizontal: u
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const at = 250, it = 5, En = 500;
|
|
1277
1277
|
function In(e) {
|
|
1278
1278
|
const { isDouble: t = !0 } = e;
|
|
1279
1279
|
let n, o;
|
|
@@ -1282,9 +1282,9 @@ function In(e) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
async function s(a, c) {
|
|
1284
1284
|
const u = Date.now() - n;
|
|
1285
|
-
a <
|
|
1285
|
+
a < it && c < it && (u < at ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
|
|
1286
1286
|
e.onTap?.(), o = null;
|
|
1287
|
-
},
|
|
1287
|
+
}, at) : e.onTap?.() : u > En && e.onLongPress?.());
|
|
1288
1288
|
}
|
|
1289
1289
|
return { startTap: l, checkTap: s };
|
|
1290
1290
|
}
|
|
@@ -1304,8 +1304,8 @@ function zn(e, t, n, o) {
|
|
|
1304
1304
|
o / t
|
|
1305
1305
|
), s = e * l, a = t * l;
|
|
1306
1306
|
return {
|
|
1307
|
-
width:
|
|
1308
|
-
height:
|
|
1307
|
+
width: ae(s),
|
|
1308
|
+
height: ae(a)
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
1311
|
function Ln(e) {
|
|
@@ -1314,13 +1314,13 @@ function Ln(e) {
|
|
|
1314
1314
|
function Se(e, t, n) {
|
|
1315
1315
|
return Math.min(Math.max(e, t), n);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function ae(e, t = 2) {
|
|
1318
1318
|
return parseFloat(e.toFixed(t));
|
|
1319
1319
|
}
|
|
1320
1320
|
function Oe(e, t, n) {
|
|
1321
|
-
return e =
|
|
1321
|
+
return e = ae(e), t = ae(t), `translate3d(${e}px, ${t}px, 0) scale3d(${n},${n},${n})`;
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function ut(e) {
|
|
1324
1324
|
return Math.sqrt(
|
|
1325
1325
|
(e[0].clientX - e[1].clientX) ** 2 + (e[0].clientY - e[1].clientY) ** 2
|
|
1326
1326
|
);
|
|
@@ -1354,7 +1354,7 @@ function Dt(e) {
|
|
|
1354
1354
|
e.onLongPress?.();
|
|
1355
1355
|
}
|
|
1356
1356
|
});
|
|
1357
|
-
|
|
1357
|
+
Fe(s, (y) => f(y)), K(
|
|
1358
1358
|
[l, s],
|
|
1359
1359
|
([y, N]) => {
|
|
1360
1360
|
i(y, N);
|
|
@@ -1378,7 +1378,7 @@ function Dt(e) {
|
|
|
1378
1378
|
const { scrollTop: C, scrollLeft: k } = N, { width: _, height: E } = a.value, { scaleW: A, scaleH: Q } = S(y), { top: $, left: b } = D(A, Q), P = b != 0 ? b : k * -1, J = $ != 0 ? $ : C * -1;
|
|
1379
1379
|
N.scrollTop = 0, N.scrollLeft = 0;
|
|
1380
1380
|
const { value: V } = d;
|
|
1381
|
-
V.width = `${_}px`, V.height = `${E}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = Oe(P, J, y), d.value = V, await ve(), u.offsetX = P, u.offsetY = J, await
|
|
1381
|
+
V.width = `${_}px`, V.height = `${E}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = Oe(P, J, y), d.value = V, await ve(), u.offsetX = P, u.offsetY = J, await nt(20);
|
|
1382
1382
|
}
|
|
1383
1383
|
async function m(y, N) {
|
|
1384
1384
|
if (!N && u.preview)
|
|
@@ -1393,7 +1393,7 @@ function Dt(e) {
|
|
|
1393
1393
|
$ < 0 && (Q.scrollLeft = Math.abs($)), b < 0 && (Q.scrollTop = Math.abs(b));
|
|
1394
1394
|
}
|
|
1395
1395
|
async function g(y, N, C) {
|
|
1396
|
-
if (t.value || (y =
|
|
1396
|
+
if (t.value || (y = ae(y), y = Se(
|
|
1397
1397
|
y,
|
|
1398
1398
|
n.value - n.value * 0.5,
|
|
1399
1399
|
o.value + o.value * 0.5
|
|
@@ -1406,8 +1406,8 @@ function Dt(e) {
|
|
|
1406
1406
|
right: b,
|
|
1407
1407
|
bottom: $
|
|
1408
1408
|
};
|
|
1409
|
-
let V = b != 0 ? b : (u.offsetX - N.x) * P + N.x,
|
|
1410
|
-
V =
|
|
1409
|
+
let V = b != 0 ? b : (u.offsetX - N.x) * P + N.x, oe = $ != 0 ? $ : (u.offsetY - N.y) * P + N.y;
|
|
1410
|
+
V = ae(Se(V, J.left, J.right)), oe = ae(Se(oe, J.top, J.bottom)), k.width = `${_}px`, k.height = `${E}px`, k.transitionDuration = C ? Ln(y) : "0s", k.transform = Oe(V, oe, y), u.offsetX = V, u.offsetY = oe, u.level = y, d.value = k, await ve(), C && r.startTransition(), e.onScale?.(y);
|
|
1411
1411
|
}
|
|
1412
1412
|
function T() {
|
|
1413
1413
|
const y = u.level > 1 ? 1 : U();
|
|
@@ -1433,8 +1433,8 @@ function Dt(e) {
|
|
|
1433
1433
|
function S(y) {
|
|
1434
1434
|
const { width: N, height: C } = a.value;
|
|
1435
1435
|
return {
|
|
1436
|
-
scaleW:
|
|
1437
|
-
scaleH:
|
|
1436
|
+
scaleW: ae(y * N),
|
|
1437
|
+
scaleH: ae(y * C)
|
|
1438
1438
|
};
|
|
1439
1439
|
}
|
|
1440
1440
|
function D(y, N) {
|
|
@@ -1580,7 +1580,7 @@ function _o(e) {
|
|
|
1580
1580
|
const { touches: i } = f;
|
|
1581
1581
|
s(i.length), n.zooming = c(2), l.startTap();
|
|
1582
1582
|
const { clientX: p, clientY: m } = i[0];
|
|
1583
|
-
o.start(p, m), a("start", p, m, f), n.zooming && (f.preventDefault(), u = n.level, d =
|
|
1583
|
+
o.start(p, m), a("start", p, m, f), n.zooming && (f.preventDefault(), u = n.level, d = ut(i), await t.switchToZoom(), n.lastCenter = jn(i));
|
|
1584
1584
|
}
|
|
1585
1585
|
async function r(f) {
|
|
1586
1586
|
const { touches: i } = f;
|
|
@@ -1588,7 +1588,7 @@ function _o(e) {
|
|
|
1588
1588
|
const { clientX: p, clientY: m } = i[0];
|
|
1589
1589
|
if (o.move(p, m), a("move", p, m, f), n.zooming && c(2)) {
|
|
1590
1590
|
f.preventDefault();
|
|
1591
|
-
const g =
|
|
1591
|
+
const g = ut(i), T = u * g / d;
|
|
1592
1592
|
t.zoomTo(T, n.lastCenter);
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
@@ -1623,9 +1623,9 @@ function bo() {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
function xn() {
|
|
1625
1625
|
const e = h(!1), t = h(!1);
|
|
1626
|
-
return
|
|
1626
|
+
return Mt(() => {
|
|
1627
1627
|
!t.value || (e.value = !0);
|
|
1628
|
-
}),
|
|
1628
|
+
}), re(() => {
|
|
1629
1629
|
t.value = !1, setTimeout(() => {
|
|
1630
1630
|
t.value = !0;
|
|
1631
1631
|
});
|
|
@@ -1648,11 +1648,11 @@ function ko(e) {
|
|
|
1648
1648
|
function s() {
|
|
1649
1649
|
window.onBackPress = t;
|
|
1650
1650
|
}
|
|
1651
|
-
return
|
|
1651
|
+
return Mt(() => {
|
|
1652
1652
|
!n.value || l();
|
|
1653
1653
|
}), St(() => {
|
|
1654
1654
|
l();
|
|
1655
|
-
}),
|
|
1655
|
+
}), vt(() => {
|
|
1656
1656
|
s();
|
|
1657
1657
|
}), Ot(() => {
|
|
1658
1658
|
s();
|
|
@@ -1711,7 +1711,7 @@ const Sn = ["onClick"], On = /* @__PURE__ */ q({
|
|
|
1711
1711
|
], 12, Sn));
|
|
1712
1712
|
}
|
|
1713
1713
|
});
|
|
1714
|
-
const _n = /* @__PURE__ */ te(On, [["__scopeId", "data-v-25d39b90"]]),
|
|
1714
|
+
const _n = /* @__PURE__ */ te(On, [["__scopeId", "data-v-25d39b90"]]), rt = {
|
|
1715
1715
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1716
1716
|
position: "middle",
|
|
1717
1717
|
duration: 1500,
|
|
@@ -1725,9 +1725,9 @@ class Qo {
|
|
|
1725
1725
|
this.options = t, this.container = document.createElement("div");
|
|
1726
1726
|
}
|
|
1727
1727
|
present() {
|
|
1728
|
-
const t =
|
|
1728
|
+
const t = ue(ue(_n), { ...rt, ...this.options });
|
|
1729
1729
|
ye(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
1730
|
-
const n = this.options.duration ||
|
|
1730
|
+
const n = this.options.duration || rt.duration;
|
|
1731
1731
|
setTimeout(() => {
|
|
1732
1732
|
this.dismiss();
|
|
1733
1733
|
}, n);
|
|
@@ -1799,6 +1799,7 @@ function kn(e) {
|
|
|
1799
1799
|
transform: `translate3d(0,${f.value}px,0)`,
|
|
1800
1800
|
height: o ? `${U.value}px` : void 0
|
|
1801
1801
|
}));
|
|
1802
|
+
Fe(t, () => A());
|
|
1802
1803
|
function D(b) {
|
|
1803
1804
|
R(), M.value = b.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
1804
1805
|
}
|
|
@@ -1841,6 +1842,8 @@ function kn(e) {
|
|
|
1841
1842
|
i.value.top = t.value?.getBoundingClientRect().top ?? 0;
|
|
1842
1843
|
const { scrollHeight: b = 0, clientHeight: P = 0 } = t.value || {}, { scrollHeight: J, clientHeight: V } = i.value;
|
|
1843
1844
|
b != J && (i.value.scrollHeight = b, k()), P != V && (i.value.clientHeight = P, k());
|
|
1845
|
+
const { clientHeight: oe = 0 } = n.value || {};
|
|
1846
|
+
oe != p.value.clientHeight && (p.value.clientHeight = oe);
|
|
1844
1847
|
}
|
|
1845
1848
|
function Q() {
|
|
1846
1849
|
R(), setTimeout(() => {
|
|
@@ -1894,7 +1897,7 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1894
1897
|
autoHeight: o ? n.autoHeight : !0,
|
|
1895
1898
|
performance: n.performance,
|
|
1896
1899
|
observeMethod: n.observeMethod
|
|
1897
|
-
}), { scrollable: c, isScrollEnd: u, sliderPos: d, heightRatio: v } = a, r = h(!1), M = n.autoHide ? I(() => n.maxHeightRatio < v.value ? !1 : r.value || !u.value) : I(() => n.maxHeightRatio < v.value ? !1 : c.value), { load: f } =
|
|
1900
|
+
}), { scrollable: c, isScrollEnd: u, sliderPos: d, heightRatio: v } = a, r = h(!1), M = n.autoHide ? I(() => n.maxHeightRatio < v.value ? !1 : r.value || !u.value) : I(() => n.maxHeightRatio < v.value ? !1 : c.value), { load: f } = We(
|
|
1898
1901
|
`.hide-scrollbar {
|
|
1899
1902
|
scrollbar-width: none;
|
|
1900
1903
|
-ms-overflow-style: none;
|
|
@@ -1904,11 +1907,11 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1904
1907
|
}`,
|
|
1905
1908
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1906
1909
|
);
|
|
1907
|
-
|
|
1910
|
+
re(() => {
|
|
1908
1911
|
f(), ve(() => {
|
|
1909
1912
|
a.init();
|
|
1910
1913
|
});
|
|
1911
|
-
}),
|
|
1914
|
+
}), ft(() => {
|
|
1912
1915
|
a.modifySliderEventListener("remove");
|
|
1913
1916
|
});
|
|
1914
1917
|
function i() {
|
|
@@ -1995,7 +1998,7 @@ const Yo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e)
|
|
|
1995
1998
|
}, 600);
|
|
1996
1999
|
})) : (v.value = 0, S.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
1997
2000
|
}, S = h(null);
|
|
1998
|
-
return
|
|
2001
|
+
return re(() => {
|
|
1999
2002
|
t?.refreshOff || (S.value = document.querySelector(
|
|
2000
2003
|
t.pullRefreshContainer
|
|
2001
2004
|
), S.value?.addEventListener("touchstart", w), S.value?.addEventListener("touchmove", x), S.value?.addEventListener("touchend", U));
|
|
@@ -2026,7 +2029,7 @@ const Yo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e)
|
|
|
2026
2029
|
}, [
|
|
2027
2030
|
Y("div", Xn, [
|
|
2028
2031
|
Y("div", {
|
|
2029
|
-
class:
|
|
2032
|
+
class: se(["arrows", { opacity: u.value }]),
|
|
2030
2033
|
style: G({ borderBottomColor: o })
|
|
2031
2034
|
}, null, 6)
|
|
2032
2035
|
])
|
|
@@ -2110,7 +2113,7 @@ const Kn = /* @__PURE__ */ te(Vn, [["__scopeId", "data-v-df5da876"]]), Gn = ["da
|
|
|
2110
2113
|
], 64));
|
|
2111
2114
|
}
|
|
2112
2115
|
});
|
|
2113
|
-
const Bo = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-dfe60586"]]),
|
|
2116
|
+
const Bo = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-dfe60586"]]), ot = (e) => (De("data-v-33519afd"), e = e(), Te(), e), eo = { style: { position: "absolute" } }, to = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("div", { class: "wrapper" }, null, -1)), no = ["width", "height"], oo = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("title", null, "logo", -1)), lo = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("g", {
|
|
2114
2117
|
id: "group-1",
|
|
2115
2118
|
stroke: "none",
|
|
2116
2119
|
"stroke-width": "1",
|
|
@@ -2215,7 +2218,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2215
2218
|
},
|
|
2216
2219
|
emits: ["load", "noSupport", "loadError"],
|
|
2217
2220
|
setup(e, { emit: t }) {
|
|
2218
|
-
const n = e, o = h(), l = h(), s = h(!1), a = h(!1), c = h(!1), { src: u, mime: d } =
|
|
2221
|
+
const n = e, o = h(), l = h(), s = h(!1), a = h(!1), c = h(!1), { src: u, mime: d } = gt(n), { imgSrc: v, isSupport: r, hasError: M, handleError: f } = wt(u, d), { vImageCancel: i } = Nt(), { LoadingComp: p } = pt({
|
|
2219
2222
|
component: un,
|
|
2220
2223
|
delay: 300
|
|
2221
2224
|
}), m = Yt(() => c.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !c.value);
|
|
@@ -2233,7 +2236,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2233
2236
|
a.value && (c.value = !0);
|
|
2234
2237
|
}
|
|
2235
2238
|
async function w() {
|
|
2236
|
-
g(), m.value ? (o.value?.addEventListener("animationend", x), o.value?.classList.add("showing"), await
|
|
2239
|
+
g(), m.value ? (o.value?.addEventListener("animationend", x), o.value?.classList.add("showing"), await nt(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
|
|
2237
2240
|
}
|
|
2238
2241
|
function x() {
|
|
2239
2242
|
o.value?.removeEventListener("animationend", x), o.value?.classList.remove("showing"), o.value && t("load", o.value), T();
|
|
@@ -2245,7 +2248,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2245
2248
|
D ? (f(), t("loadError")) : g(), s.value = !0;
|
|
2246
2249
|
}
|
|
2247
2250
|
return (D, L) => (B(), H(ke, null, [
|
|
2248
|
-
z(r) && !s.value ? (B(), Ie(z(p), { key: 0 })) :
|
|
2251
|
+
z(r) && !s.value ? (B(), Ie(z(p), { key: 0 })) : ce("", !0),
|
|
2249
2252
|
z(r) ? z(M) ? (B(), H("div", he({ key: 3 }, D.$attrs, {
|
|
2250
2253
|
title: z(v),
|
|
2251
2254
|
class: "tip-wrap"
|
|
@@ -2268,7 +2271,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2268
2271
|
src: e.thumbnail
|
|
2269
2272
|
}), null, 16, vo)), [
|
|
2270
2273
|
[z(i)]
|
|
2271
|
-
]) :
|
|
2274
|
+
]) : ce("", !0),
|
|
2272
2275
|
e.isShowSrc || a.value ? Me((B(), H("img", he({ key: 1 }, D.$attrs, {
|
|
2273
2276
|
ref_key: "srcRef",
|
|
2274
2277
|
ref: o,
|
|
@@ -2279,7 +2282,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2279
2282
|
}), null, 16, Mo)), [
|
|
2280
2283
|
[z(i)],
|
|
2281
2284
|
[ze, a.value]
|
|
2282
|
-
]) :
|
|
2285
|
+
]) : ce("", !0)
|
|
2283
2286
|
], !0) : (B(), H("div", he({ key: 1 }, D.$attrs, {
|
|
2284
2287
|
title: z(v),
|
|
2285
2288
|
class: "tip-wrap"
|
|
@@ -2300,7 +2303,7 @@ const Ro = /* @__PURE__ */ te(mo, [["__scopeId", "data-v-044030a1"]]), yo = ["ti
|
|
|
2300
2303
|
mime: null
|
|
2301
2304
|
},
|
|
2302
2305
|
setup(e) {
|
|
2303
|
-
const t = e, n = h(!1), { src: o, mime: l } =
|
|
2306
|
+
const t = e, n = h(!1), { src: o, mime: l } = gt(t), { imgSrc: s, hasError: a, isSupport: c, handleError: u } = wt(o, l), { vImageCancel: d } = Nt();
|
|
2304
2307
|
return (v, r) => z(c) ? z(a) ? (B(), H("div", {
|
|
2305
2308
|
key: 2,
|
|
2306
2309
|
title: z(s),
|
|
@@ -2344,20 +2347,20 @@ export {
|
|
|
2344
2347
|
$o as Thumbnail,
|
|
2345
2348
|
Qo as ToastCreator,
|
|
2346
2349
|
Bo as VirtualList,
|
|
2347
|
-
|
|
2350
|
+
Ke as allSelectedKey,
|
|
2348
2351
|
en as closeDialogKey,
|
|
2349
2352
|
jo as dialogController,
|
|
2350
2353
|
Oe as getTransform,
|
|
2351
|
-
|
|
2352
|
-
|
|
2354
|
+
et as isAllSelectedKey,
|
|
2355
|
+
Ve as isSelectedKey,
|
|
2353
2356
|
Cn as once,
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2357
|
+
qe as selectAllKey,
|
|
2358
|
+
Ge as selectKey,
|
|
2359
|
+
tt as selectedCountKey,
|
|
2360
|
+
Xe as toggleAllKey,
|
|
2361
|
+
Ze as toggleKey,
|
|
2359
2362
|
pe as unselectAllKey,
|
|
2360
|
-
|
|
2363
|
+
Je as unselectKey,
|
|
2361
2364
|
ko as useBackPress,
|
|
2362
2365
|
So as useDelayAsync,
|
|
2363
2366
|
xo as useDelayLoad,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const ze={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const d=i.clientX,c=i.clientY,f=Math.abs(d-o),g=Math.abs(c-l);f>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},We={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Xe(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Ze(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const d=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,f=e.customRef((g,u)=>(l=g,s=u,{get(){return a.value&&(o=d(),a.value=!1),l(),o},set(m){c?.(m)}}));return Object.isExtensible(f)&&(f.trigger=i),f}function me(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const Ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ke=Object.prototype.toString,Ge=t=>Ke.call(t)==="[object Object]",G=()=>{};function Le(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function qe(t,n={}){let o,l,s=G;const a=d=>{clearTimeout(d),s(),s=G};return d=>{const c=V(t),f=V(n.maxWait);return o&&a(o),c<=0||f!==void 0&&f<=0?(l&&(a(l),l=null),Promise.resolve(d())):new Promise((g,u)=>{s=n.rejectOnCancel?u:g,f&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(d())},f)),o=setTimeout(()=>{l&&a(l),l=null,g(d())},c)})}}function Je(...t){let n=0,o,l=!0,s=G,a,i,d,c,f;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:d=!0,leading:c=!0,rejectOnCancel:f=!1}=t[0]:[i,d=!0,c=!0,f=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=G)};return m=>{const M=V(i),r=Date.now()-n,D=()=>a=m();return g(),M<=0?(n=Date.now(),D()):(r>M&&(c||!l)?(n=Date.now(),D()):d&&(a=new Promise((p,h)=>{s=f?h:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(D()),g()},Math.max(0,M-r))})),!c&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,a)}}function et(t){return t||e.getCurrentInstance()}function ne(t,n=200,o={}){return Le(qe(n,o),t)}function he(t,n=200,o=!1,l=!0,s=!1){return Le(Je(n,o,l,s),t)}function pe(t,n=!0,o){et()?e.onMounted(t,o):n?t():e.nextTick(t)}function X(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const oe=Ae?window:void 0,tt=Ae?window.document:void 0;function le(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=oe):[n,o,l,s]=t,!n)return G;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},d=(g,u,m,M)=>(g.addEventListener(u,m,M),()=>g.removeEventListener(u,m,M)),c=e.watch(()=>[X(n),V(s)],([g,u])=>{if(i(),!g)return;const m=Ge(u)?{...u}:u;a.push(...o.flatMap(M=>l.map(r=>d(g,M,r,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return me(f),f}function nt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ot(t){const n=nt();return e.computed(()=>(n.value,Boolean(t())))}function lt(t){const n=e.getCurrentInstance(),o=Ze(()=>null,()=>t?X(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function je(t,n,o={}){const{window:l=oe,...s}=o;let a;const i=ot(()=>l&&"ResizeObserver"in l),d=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(u=>X(u)):[X(t)]),f=e.watch(c,u=>{if(d(),i.value&&l){a=new ResizeObserver(n);for(const m of u)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return me(g),{isSupported:i,stop:g}}function st(t,n={width:0,height:0},o={}){const{window:l=oe,box:s="content-box"}=o,a=e.computed(()=>{var u,m;return(m=(u=X(t))==null?void 0:u.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),d=e.ref(n.height),{stop:c}=je(t,([u])=>{const m=s==="border-box"?u.borderBoxSize:s==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(l&&a.value){const M=X(t);if(M){const r=l.getComputedStyle(M);i.value=Number.parseFloat(r.width),d.value=Number.parseFloat(r.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((r,{inlineSize:D})=>r+D,0),d.value=M.reduce((r,{blockSize:D})=>r+D,0)}else i.value=u.contentRect.width,d.value=u.contentRect.height},o);pe(()=>{const u=X(t);u&&(i.value="offsetWidth"in u?u.offsetWidth:n.width,d.value="offsetHeight"in u?u.offsetHeight:n.height)});const f=e.watch(()=>X(t),u=>{i.value=u?n.width:0,d.value=u?n.height:0});function g(){c(),f()}return{width:i,height:d,stop:g}}const Ce=1;function at(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=G,onScroll:a=G,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:c="auto",window:f=oe,onError:g=T=>{console.error(T)}}=n,u=e.ref(0),m=e.ref(0),M=e.computed({get(){return u.value},set(T){D(T,void 0)}}),r=e.computed({get(){return m.value},set(T){D(void 0,T)}});function D(T,A){var Q,$,y;if(!f)return;const v=V(t);!v||(y=v instanceof Document?f.document.body:v)==null||y.scrollTo({top:(Q=V(A))!=null?Q:r.value,left:($=V(T))!=null?$:M.value,behavior:V(c)})}const p=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),N=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),w=T=>{!p.value||(p.value=!1,N.left=!1,N.right=!1,N.top=!1,N.bottom=!1,s(T))},j=ne(w,o+l),B=T=>{var A;if(!f)return;const Q=((A=T?.document)==null?void 0:A.documentElement)||T?.documentElement||X(T),{display:$,flexDirection:y}=getComputedStyle(Q),v=Q.scrollLeft;N.left=v<u.value,N.right=v>u.value;const C=Math.abs(v)<=(i.left||0),O=Math.abs(v)+Q.clientWidth>=Q.scrollWidth-(i.right||0)-Ce;$==="flex"&&y==="row-reverse"?(h.left=O,h.right=C):(h.left=C,h.right=O),u.value=v;let _=Q.scrollTop;T===f.document&&!_&&(_=f.document.body.scrollTop),N.top=_<m.value,N.bottom=_>m.value;const E=Math.abs(_)<=(i.top||0),z=Math.abs(_)+Q.clientHeight>=Q.scrollHeight-(i.bottom||0)-Ce;$==="flex"&&y==="column-reverse"?(h.top=z,h.bottom=E):(h.top=E,h.bottom=z),m.value=_},S=T=>{var A;if(!f)return;const Q=(A=T.target.documentElement)!=null?A:T.target;B(Q),p.value=!0,j(T),a(T)};return le(t,"scroll",o?he(S,o,!0,!1):S,d),pe(()=>{try{const T=V(t);if(!T)return;B(T)}catch(T){g(T)}}),le(t,"scrollend",w,d),{x:M,y:r,isScrolling:p,arrivedState:h,directions:N,measure(){const T=V(t);f&&T&&B(T)}}}let it=0;function ye(t,n={}){const o=e.ref(!1),{document:l=tt,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++it}`}=n,d=e.ref(t);let c=()=>{};const f=()=>{if(!l)return;const u=l.getElementById(i)||l.createElement("style");u.isConnected||(u.id=i,n.media&&(u.media=n.media),l.head.appendChild(u)),!o.value&&(c=e.watch(d,m=>{u.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&pe(f),a||me(g),{id:i,css:d,unload:g,load:f,isLoaded:e.readonly(o)}}function rt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function Se(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=st(a),d=e.ref(!0),c=ne(B,100);let f;const g=e.shallowRef(t),u=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let r=0;const D=e.ref([]),p=e.computed(()=>{let{sum:E,height:z}={sum:0,height:0};return g.value.map((k,Y)=>(typeof l=="number"?z=l:z=l(Y),E+=z,{height:z,sum:E}))}),h=e.computed(()=>$(m.value.start)),N=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),w=e.computed(()=>{const{start:E,end:z}=M.value;return D.value.slice(E,z)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(g,()=>{(i.width.value||i.height.value)&&S()},{deep:!0}),e.watch([i.width,i.height],([E,z])=>{(E||z)&&S()},{deep:!0}),e.watch(u,()=>{j(),c()});function j(){d.value=!1}function B(){d.value=!0,o?.()}function S(){cancelAnimationFrame(f),f=requestAnimationFrame(T)}function T(){if(a.value){u.value=a.value.scrollTop;let E=A(u.value);r=Q(E);let z=Math.max(0,E-s),k=Math.min(E+r+s,g.value.length);m.value={start:z,end:k},D.value=g.value.slice(z,k).map((Y,b)=>({data:Y,index:b+z})),M.value.start=E-z,M.value.end=M.value.start+r}}function A(E){let z=0,k=p.value.length-1,Y=-1;for(;z<=k;){const b=Math.floor((z+k)/2);p.value[b].sum>=E?(Y=b,k=b-1):z=b+1}return Math.max(0,Y)}function Q(E){let z=0,k=0;for(let Y=E;Y<p.value.length&&(z++,k+=p.value[Y].height,!(k>=i.height.value));Y++);return z}function $(E){if(typeof l=="number")return E*l;let z=p.value[E];return z?z.sum-z.height:0}function y(E){return p.value[E]||{sum:0,height:0}}function v(E,z="smooth"){if(a.value){const{reset:k}=rt(a.value,"scrollBehavior",z),Y=y(E);a.value.scrollTop=Y.sum-Y.height,T(),k()}if(a.value){const k=y(E);a.value.scrollTop=k.sum-k.height,T()}}const C=e.computed(()=>({style:{width:"100%",height:`${N.value}px`,pointerEvents:d.value?void 0:"none"}})),O=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),_={overflowY:"auto"};return{list:D,visiableList:w,getItemHeightData:y,getoffsetTopIndex:A,totalHeight:N,clientHeight:i.height,scrollTo:v,scrollTop:u,isScrollEnd:d,containerProps:{ref:a,onScroll:()=>{S()},style:_},wrapperProps:C,innerProps:O}}const se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),q=Symbol(),Me=Symbol();function ct(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(re,s),i=e.inject(ie,n),d=e.inject(fe,o),c=e.inject(ae,t),f=e.inject(se,t),g=e.inject(ce,t),u=e.inject(ue,t),m=e.inject(de,t),M=e.inject(q,t),r=e.inject(Me,l);return{selected:a,isSelected:i,isAllSelected:d,toggle:c,toggleAll:f,select:g,selectAll:u,unselect:m,unselectAll:M,selectedCount:r}}function ut(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,h=>{a.value=h.reduce((N,w)=>(N.set(w[n],w),N),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(a.value.values()));else if(s.value.size){let N;s.value.forEach(w=>{N=a.value.get(w),N&&h.push(N)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=a.value.size):h=s.value.size,h}),c=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const N=s.value.size,w=a.value.size;h=N==w}return h});function f(){l.value=!0}function g(){l.value=!1}function u(h){r(()=>{h.forEach(N=>{s.value.add(N[n])})})}function m(h){r(()=>{h.forEach(N=>{s.value.delete(N[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function r(h){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function D(h){r(()=>{h.forEach(N=>{M(N)?s.value.delete(N[n]):s.value.add(N[n])})})}function p(){const{value:h}=c;h?g():f()}return e.provide(se,p),e.provide(ae,D),e.provide(ie,M),e.provide(re,i),e.provide(ce,u),e.provide(ue,f),e.provide(de,m),e.provide(fe,c),e.provide(q,g),e.provide(q,g),e.provide(Me,d),{selected:i,select:u,selectAll:f,unselect:m,unselectAll:g,toggle:D,toggleAll:p,isSelected:M,isAllSelected:c,selectedCount:d}}function dt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let r=[];return n.value!=null?n.value&&(r=t.value):o.value.size&&(r=Array.from(o.value.values())),r}),s=e.computed(()=>{let r=0;return n.value!=null?n.value&&(r=t.value.length):r=o.value.size,r}),a=e.computed(()=>{let r;if(n.value!=null)r=n.value;else{const D=o.value.size,p=t.value.length;r=D==p}return r});function i(){n.value=!0}function d(){n.value=!1}function c(r){u(()=>{r.forEach(D=>{o.value.add(D)})})}function f(r){u(()=>{r.forEach(D=>{o.value.delete(D)})})}function g(r){return n.value!=null?n.value:o.value.has(r)}function u(r){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),r(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(r){u(()=>{r.forEach(D=>{g(D)?o.value.delete(D):o.value.add(D)})})}function M(){const{value:r}=a;r?d():i()}return e.provide(se,M),e.provide(ae,m),e.provide(ie,g),e.provide(re,l),e.provide(ce,c),e.provide(ue,i),e.provide(de,f),e.provide(fe,a),e.provide(q,d),e.provide(q,d),e.provide(Me,s),{selected:l,select:c,selectAll:i,unselect:f,unselectAll:d,toggle:m,toggleAll:M,isSelected:g,isAllSelected:a,selectedCount:s}}function De(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function Te({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=De("\u9009\u62E9"),unselect:a=De("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=De("\u53D6\u6D88\u5168\u9009")}=l();let d={};const c=e.computed(()=>he(n==="colum"?H:J,50)),f=new Set,g=e.ref(!0),u=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),r=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),h=e.ref({top:0,height:0,sync(L=!1){h.value.top=u.value?.scrollTop||0,L&&(h.value.height=u.value?.scrollHeight||0)}}),N=e.computed(()=>m.value?{left:Math.min(M.value.x,r.value.x)-p.value.left,top:Math.min(M.value.y,r.value.y)-p.value.top,width:Math.abs(M.value.x-r.value.x),height:Math.abs(M.value.y-r.value.y)}:{left:0,top:0,width:0,height:0}),{margin:w=50,startSpeed:j=30,maxSpeed:B=30}=o;let S;const T=w,A=j,Q=B,$=L=>L**1;let y=0;function v(L){if(cancelAnimationFrame(S),y=C(L),y=Math.max(Math.min(y,Q),-Q),y!==0){const x=u.value;if(!x||!m.value)return;const P=h.value.height-p.value.height;let R=h.value.top+Number(y);R=Math.min(Math.max(0,R),P),x.scrollTop=R,_(),S=requestAnimationFrame(()=>v(L))}}function C(L){if(u.value){const P=p.value,R=P.bottom-L;if(R<T)return A*$(1-R/T);const K=L-P.top;if(K<T)return-A*$(1-K/T)}return 0}function O(L){const x={...N.value,right:0,bottom:0};return x.left+=p.value.left,x.top+=p.value.top-h.value.top,x.right=x.width+x.left,x.bottom=x.height+x.top,x.left<L.right&&x.right>L.left&&x.top<L.bottom&&x.bottom>L.top}function _(){h.value.sync();const{top:L,height:x}=h.value;r.value.y=Math.min(x+p.value.top,r.value.y+L-r.value.scrollTop),r.value.scrollTop=L}function E(L,x,P="dynamic-styles"){let R=document.getElementById(P);R||(R=document.createElement("style"),R.id=P,document.head.appendChild(R));const K=R.sheet.cssRules,ee=K.length,Yn=`${L} { ${x} }`;for(let Ie=0;Ie<ee;Ie++){const Ve=K[Ie];if(Ve.selectorText===L&&Ve.style.cssText===x)return}R.sheet.insertRule(Yn,ee)}function z(L,x){g.value=!0,m.value=!0,h.value.sync(!0);const P=x+h.value.top;M.value.x=L,M.value.y=P,r.value.x=L,r.value.y=P,u.value?.classList.add("disable-scroll-behavior"),f.clear()}function k(L,x,P){!m.value||(g.value&&n==="colum"&&!U()&&(i(),g.value=!1),P?.(),v(x),r.value.x=Math.max(L,p.value.left),r.value.y=Math.min(x+h.value.top,h.value.height+p.value.top),r.value.scrollTop=h.value.top,c.value())}function Y(){m.value=!1,u.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(y||_(),c.value())}function U(){if(!m.value)return!1;const{width:L,height:x}=N.value;return!(Math.max(L,x)>5)}function F(){U()&&i()}function H(){U()||u.value?.querySelectorAll(`[${t}]`).forEach(L=>{d[`${t}`]=L.getAttribute(`${t}`),O(L.getBoundingClientRect())?s([d]):a([d])})}function J(){const L=[];let x=null,P=0;u.value?.querySelectorAll(`[${t}]`).forEach((R,K)=>{const ee=R.getAttribute(`${t}`);L.push(ee),O(R.getBoundingClientRect())?(x===null&&(x=K),x=Math.min(x,K),P=Math.max(P,K)):(d[`${t}`]=ee,f.has(ee)&&a([d]))});for(let R=x;R<P+1;R++)d[`${t}`]=L[R],s([d]),f.add(L[R])}function Qn(L){return!L?.value||(u.value=L.value,!u?.value)?!1:(D.observe(u.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Qn,dragStart:z,dragMove:k,dragEnd:Y,onScroll:b,isSingleClick:U,cancelSelectAllBySingleClick:F,selectFn:c,selectRange:N,isPressing:m,containerEl:u,observer:D}}function ft(t){const n=Te(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:d,cancelSelectAllBySingleClick:c}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=ye(`.drag-select-box {
|
|
1
|
+
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const Ae={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const d=i.clientX,c=i.clientY,f=Math.abs(d-o),g=Math.abs(c-l);f>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},We={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Xe(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Ze(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const d=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,f=e.customRef((g,u)=>(l=g,s=u,{get(){return a.value&&(o=d(),a.value=!1),l(),o},set(m){c?.(m)}}));return Object.isExtensible(f)&&(f.trigger=i),f}function me(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const Le=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ke=Object.prototype.toString,Ge=t=>Ke.call(t)==="[object Object]",q=()=>{};function je(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function qe(t,n={}){let o,l,s=q;const a=d=>{clearTimeout(d),s(),s=q};return d=>{const c=V(t),f=V(n.maxWait);return o&&a(o),c<=0||f!==void 0&&f<=0?(l&&(a(l),l=null),Promise.resolve(d())):new Promise((g,u)=>{s=n.rejectOnCancel?u:g,f&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(d())},f)),o=setTimeout(()=>{l&&a(l),l=null,g(d())},c)})}}function Je(...t){let n=0,o,l=!0,s=q,a,i,d,c,f;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:d=!0,leading:c=!0,rejectOnCancel:f=!1}=t[0]:[i,d=!0,c=!0,f=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=q)};return m=>{const M=V(i),r=Date.now()-n,D=()=>a=m();return g(),M<=0?(n=Date.now(),D()):(r>M&&(c||!l)?(n=Date.now(),D()):d&&(a=new Promise((p,h)=>{s=f?h:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(D()),g()},Math.max(0,M-r))})),!c&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,a)}}function et(t){return t||e.getCurrentInstance()}function ne(t,n=200,o={}){return je(qe(n,o),t)}function he(t,n=200,o=!1,l=!0,s=!1){return je(Je(n,o,l,s),t)}function pe(t,n=!0,o){et()?e.onMounted(t,o):n?t():e.nextTick(t)}function X(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const oe=Le?window:void 0,tt=Le?window.document:void 0;function le(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=oe):[n,o,l,s]=t,!n)return q;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},d=(g,u,m,M)=>(g.addEventListener(u,m,M),()=>g.removeEventListener(u,m,M)),c=e.watch(()=>[X(n),V(s)],([g,u])=>{if(i(),!g)return;const m=Ge(u)?{...u}:u;a.push(...o.flatMap(M=>l.map(r=>d(g,M,r,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return me(f),f}function nt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ot(t){const n=nt();return e.computed(()=>(n.value,Boolean(t())))}function lt(t){const n=e.getCurrentInstance(),o=Ze(()=>null,()=>t?X(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function ye(t,n,o={}){const{window:l=oe,...s}=o;let a;const i=ot(()=>l&&"ResizeObserver"in l),d=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(u=>X(u)):[X(t)]),f=e.watch(c,u=>{if(d(),i.value&&l){a=new ResizeObserver(n);for(const m of u)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),f()};return me(g),{isSupported:i,stop:g}}function st(t,n={width:0,height:0},o={}){const{window:l=oe,box:s="content-box"}=o,a=e.computed(()=>{var u,m;return(m=(u=X(t))==null?void 0:u.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),d=e.ref(n.height),{stop:c}=ye(t,([u])=>{const m=s==="border-box"?u.borderBoxSize:s==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(l&&a.value){const M=X(t);if(M){const r=l.getComputedStyle(M);i.value=Number.parseFloat(r.width),d.value=Number.parseFloat(r.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((r,{inlineSize:D})=>r+D,0),d.value=M.reduce((r,{blockSize:D})=>r+D,0)}else i.value=u.contentRect.width,d.value=u.contentRect.height},o);pe(()=>{const u=X(t);u&&(i.value="offsetWidth"in u?u.offsetWidth:n.width,d.value="offsetHeight"in u?u.offsetHeight:n.height)});const f=e.watch(()=>X(t),u=>{i.value=u?n.width:0,d.value=u?n.height:0});function g(){c(),f()}return{width:i,height:d,stop:g}}const Ce=1;function at(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=q,onScroll:a=q,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:c="auto",window:f=oe,onError:g=T=>{console.error(T)}}=n,u=e.ref(0),m=e.ref(0),M=e.computed({get(){return u.value},set(T){D(T,void 0)}}),r=e.computed({get(){return m.value},set(T){D(void 0,T)}});function D(T,A){var Q,$,y;if(!f)return;const v=V(t);!v||(y=v instanceof Document?f.document.body:v)==null||y.scrollTo({top:(Q=V(A))!=null?Q:r.value,left:($=V(T))!=null?$:M.value,behavior:V(c)})}const p=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),N=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),w=T=>{!p.value||(p.value=!1,N.left=!1,N.right=!1,N.top=!1,N.bottom=!1,s(T))},j=ne(w,o+l),B=T=>{var A;if(!f)return;const Q=((A=T?.document)==null?void 0:A.documentElement)||T?.documentElement||X(T),{display:$,flexDirection:y}=getComputedStyle(Q),v=Q.scrollLeft;N.left=v<u.value,N.right=v>u.value;const C=Math.abs(v)<=(i.left||0),O=Math.abs(v)+Q.clientWidth>=Q.scrollWidth-(i.right||0)-Ce;$==="flex"&&y==="row-reverse"?(h.left=O,h.right=C):(h.left=C,h.right=O),u.value=v;let _=Q.scrollTop;T===f.document&&!_&&(_=f.document.body.scrollTop),N.top=_<m.value,N.bottom=_>m.value;const E=Math.abs(_)<=(i.top||0),z=Math.abs(_)+Q.clientHeight>=Q.scrollHeight-(i.bottom||0)-Ce;$==="flex"&&y==="column-reverse"?(h.top=z,h.bottom=E):(h.top=E,h.bottom=z),m.value=_},S=T=>{var A;if(!f)return;const Q=(A=T.target.documentElement)!=null?A:T.target;B(Q),p.value=!0,j(T),a(T)};return le(t,"scroll",o?he(S,o,!0,!1):S,d),pe(()=>{try{const T=V(t);if(!T)return;B(T)}catch(T){g(T)}}),le(t,"scrollend",w,d),{x:M,y:r,isScrolling:p,arrivedState:h,directions:N,measure(){const T=V(t);f&&T&&B(T)}}}let it=0;function De(t,n={}){const o=e.ref(!1),{document:l=tt,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++it}`}=n,d=e.ref(t);let c=()=>{};const f=()=>{if(!l)return;const u=l.getElementById(i)||l.createElement("style");u.isConnected||(u.id=i,n.media&&(u.media=n.media),l.head.appendChild(u)),!o.value&&(c=e.watch(d,m=>{u.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&pe(f),a||me(g),{id:i,css:d,unload:g,load:f,isLoaded:e.readonly(o)}}function rt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function Se(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=st(a),d=e.ref(!0),c=ne(B,100);let f;const g=e.shallowRef(t),u=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let r=0;const D=e.ref([]),p=e.computed(()=>{let{sum:E,height:z}={sum:0,height:0};return g.value.map((k,Y)=>(typeof l=="number"?z=l:z=l(Y),E+=z,{height:z,sum:E}))}),h=e.computed(()=>$(m.value.start)),N=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),w=e.computed(()=>{const{start:E,end:z}=M.value;return D.value.slice(E,z)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(g,()=>{(i.width.value||i.height.value)&&S()},{deep:!0}),e.watch([i.width,i.height],([E,z])=>{(E||z)&&S()},{deep:!0}),e.watch(u,()=>{j(),c()});function j(){d.value=!1}function B(){d.value=!0,o?.()}function S(){cancelAnimationFrame(f),f=requestAnimationFrame(T)}function T(){if(a.value){u.value=a.value.scrollTop;let E=A(u.value);r=Q(E);let z=Math.max(0,E-s),k=Math.min(E+r+s,g.value.length);m.value={start:z,end:k},D.value=g.value.slice(z,k).map((Y,b)=>({data:Y,index:b+z})),M.value.start=E-z,M.value.end=M.value.start+r}}function A(E){let z=0,k=p.value.length-1,Y=-1;for(;z<=k;){const b=Math.floor((z+k)/2);p.value[b].sum>=E?(Y=b,k=b-1):z=b+1}return Math.max(0,Y)}function Q(E){let z=0,k=0;for(let Y=E;Y<p.value.length&&(z++,k+=p.value[Y].height,!(k>=i.height.value));Y++);return z}function $(E){if(typeof l=="number")return E*l;let z=p.value[E];return z?z.sum-z.height:0}function y(E){return p.value[E]||{sum:0,height:0}}function v(E,z="smooth"){if(a.value){const{reset:k}=rt(a.value,"scrollBehavior",z),Y=y(E);a.value.scrollTop=Y.sum-Y.height,T(),k()}if(a.value){const k=y(E);a.value.scrollTop=k.sum-k.height,T()}}const C=e.computed(()=>({style:{width:"100%",height:`${N.value}px`,pointerEvents:d.value?void 0:"none"}})),O=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),_={overflowY:"auto"};return{list:D,visiableList:w,getItemHeightData:y,getoffsetTopIndex:A,totalHeight:N,clientHeight:i.height,scrollTo:v,scrollTop:u,isScrollEnd:d,containerProps:{ref:a,onScroll:()=>{S()},style:_},wrapperProps:C,innerProps:O}}const se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),J=Symbol(),Me=Symbol();function ct(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(re,s),i=e.inject(ie,n),d=e.inject(fe,o),c=e.inject(ae,t),f=e.inject(se,t),g=e.inject(ce,t),u=e.inject(ue,t),m=e.inject(de,t),M=e.inject(J,t),r=e.inject(Me,l);return{selected:a,isSelected:i,isAllSelected:d,toggle:c,toggleAll:f,select:g,selectAll:u,unselect:m,unselectAll:M,selectedCount:r}}function ut(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,h=>{a.value=h.reduce((N,w)=>(N.set(w[n],w),N),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(a.value.values()));else if(s.value.size){let N;s.value.forEach(w=>{N=a.value.get(w),N&&h.push(N)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=a.value.size):h=s.value.size,h}),c=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const N=s.value.size,w=a.value.size;h=N==w}return h});function f(){l.value=!0}function g(){l.value=!1}function u(h){r(()=>{h.forEach(N=>{s.value.add(N[n])})})}function m(h){r(()=>{h.forEach(N=>{s.value.delete(N[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function r(h){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function D(h){r(()=>{h.forEach(N=>{M(N)?s.value.delete(N[n]):s.value.add(N[n])})})}function p(){const{value:h}=c;h?g():f()}return e.provide(se,p),e.provide(ae,D),e.provide(ie,M),e.provide(re,i),e.provide(ce,u),e.provide(ue,f),e.provide(de,m),e.provide(fe,c),e.provide(J,g),e.provide(J,g),e.provide(Me,d),{selected:i,select:u,selectAll:f,unselect:m,unselectAll:g,toggle:D,toggleAll:p,isSelected:M,isAllSelected:c,selectedCount:d}}function dt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let r=[];return n.value!=null?n.value&&(r=t.value):o.value.size&&(r=Array.from(o.value.values())),r}),s=e.computed(()=>{let r=0;return n.value!=null?n.value&&(r=t.value.length):r=o.value.size,r}),a=e.computed(()=>{let r;if(n.value!=null)r=n.value;else{const D=o.value.size,p=t.value.length;r=D==p}return r});function i(){n.value=!0}function d(){n.value=!1}function c(r){u(()=>{r.forEach(D=>{o.value.add(D)})})}function f(r){u(()=>{r.forEach(D=>{o.value.delete(D)})})}function g(r){return n.value!=null?n.value:o.value.has(r)}function u(r){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),r(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(r){u(()=>{r.forEach(D=>{g(D)?o.value.delete(D):o.value.add(D)})})}function M(){const{value:r}=a;r?d():i()}return e.provide(se,M),e.provide(ae,m),e.provide(ie,g),e.provide(re,l),e.provide(ce,c),e.provide(ue,i),e.provide(de,f),e.provide(fe,a),e.provide(J,d),e.provide(J,d),e.provide(Me,s),{selected:l,select:c,selectAll:i,unselect:f,unselectAll:d,toggle:m,toggleAll:M,isSelected:g,isAllSelected:a,selectedCount:s}}function Te(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function Ne({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Te("\u9009\u62E9"),unselect:a=Te("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=Te("\u53D6\u6D88\u5168\u9009")}=l();let d={};const c=e.computed(()=>he(n==="colum"?H:K,50)),f=new Set,g=e.ref(!0),u=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),r=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),h=e.ref({top:0,height:0,sync(L=!1){h.value.top=u.value?.scrollTop||0,L&&(h.value.height=u.value?.scrollHeight||0)}}),N=e.computed(()=>m.value?{left:Math.min(M.value.x,r.value.x)-p.value.left,top:Math.min(M.value.y,r.value.y)-p.value.top,width:Math.abs(M.value.x-r.value.x),height:Math.abs(M.value.y-r.value.y)}:{left:0,top:0,width:0,height:0}),{margin:w=50,startSpeed:j=30,maxSpeed:B=30}=o;let S;const T=w,A=j,Q=B,$=L=>L**1;let y=0;function v(L){if(cancelAnimationFrame(S),y=C(L),y=Math.max(Math.min(y,Q),-Q),y!==0){const x=u.value;if(!x||!m.value)return;const P=h.value.height-p.value.height;let R=h.value.top+Number(y);R=Math.min(Math.max(0,R),P),x.scrollTop=R,_(),S=requestAnimationFrame(()=>v(L))}}function C(L){if(u.value){const P=p.value,R=P.bottom-L;if(R<T)return A*$(1-R/T);const G=L-P.top;if(G<T)return-A*$(1-G/T)}return 0}function O(L){const x={...N.value,right:0,bottom:0};return x.left+=p.value.left,x.top+=p.value.top-h.value.top,x.right=x.width+x.left,x.bottom=x.height+x.top,x.left<L.right&&x.right>L.left&&x.top<L.bottom&&x.bottom>L.top}function _(){h.value.sync();const{top:L,height:x}=h.value;r.value.y=Math.min(x+p.value.top,r.value.y+L-r.value.scrollTop),r.value.scrollTop=L}function E(L,x,P="dynamic-styles"){let R=document.getElementById(P);R||(R=document.createElement("style"),R.id=P,document.head.appendChild(R));const G=R.sheet.cssRules,ee=G.length,Yn=`${L} { ${x} }`;for(let ze=0;ze<ee;ze++){const Ve=G[ze];if(Ve.selectorText===L&&Ve.style.cssText===x)return}R.sheet.insertRule(Yn,ee)}function z(L,x){g.value=!0,m.value=!0,h.value.sync(!0);const P=x+h.value.top;M.value.x=L,M.value.y=P,r.value.x=L,r.value.y=P,u.value?.classList.add("disable-scroll-behavior"),f.clear()}function k(L,x,P){!m.value||(g.value&&n==="colum"&&!U()&&(i(),g.value=!1),P?.(),v(x),r.value.x=Math.max(L,p.value.left),r.value.y=Math.min(x+h.value.top,h.value.height+p.value.top),r.value.scrollTop=h.value.top,c.value())}function Y(){m.value=!1,u.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(y||_(),c.value())}function U(){if(!m.value)return!1;const{width:L,height:x}=N.value;return!(Math.max(L,x)>5)}function F(){U()&&i()}function H(){U()||u.value?.querySelectorAll(`[${t}]`).forEach(L=>{d[`${t}`]=L.getAttribute(`${t}`),O(L.getBoundingClientRect())?s([d]):a([d])})}function K(){const L=[];let x=null,P=0;u.value?.querySelectorAll(`[${t}]`).forEach((R,G)=>{const ee=R.getAttribute(`${t}`);L.push(ee),O(R.getBoundingClientRect())?(x===null&&(x=G),x=Math.min(x,G),P=Math.max(P,G)):(d[`${t}`]=ee,f.has(ee)&&a([d]))});for(let R=x;R<P+1;R++)d[`${t}`]=L[R],s([d]),f.add(L[R])}function Qn(L){return!L?.value||(u.value=L.value,!u?.value)?!1:(D.observe(u.value),E(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Qn,dragStart:z,dragMove:k,dragEnd:Y,onScroll:b,isSingleClick:U,cancelSelectAllBySingleClick:F,selectFn:c,selectRange:N,isPressing:m,containerEl:u,observer:D}}function ft(t){const n=Ne(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:d,cancelSelectAllBySingleClick:c}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=De(`.drag-select-box {
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),u=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function m(h){h.button===0&&(a(h.x,h.y),window.addEventListener("mousemove",M),window.addEventListener("mouseup",r))}function M(h){i(h.x,h.y)}function r(h){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",r),h.composedPath().some(w=>w?.getAttribute?.(t.attribute))||c(),d()}function D(h){try{if(!n.init(h))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(u),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m)}catch(N){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",N)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m)}return{init:D,unMount:p}}function Mt(t,n,o=600){const l=
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),u=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function m(h){h.button===0&&(a(h.x,h.y),window.addEventListener("mousemove",M),window.addEventListener("mouseup",r))}function M(h){i(h.x,h.y)}function r(h){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",r),h.composedPath().some(w=>w?.getAttribute?.(t.attribute))||c(),d()}function D(h){try{if(!n.init(h))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(u),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m)}catch(N){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",N)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m)}return{init:D,unMount:p}}function Mt(t,n,o=600){const l=Ne({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:d,dragEnd:c}=l;let f;function g(){clearTimeout(f)}function u(p){g(),p.composedPath().some(N=>!!N?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:N,clientY:w}=p.targetTouches[0];i(N,w),n?.(),d(N,w,()=>p.preventDefault()),p.preventDefault()},o))}function m(p){g();const{clientX:h,clientY:N}=p.targetTouches[0];d(h,N,()=>p.preventDefault())}function M(){g(),c()}function r(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",u),l.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",M),window.addEventListener("touchend",M)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function D(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",u),l.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",M),window.removeEventListener("touchEnd",M)}return{init:r,unMount:D}}const xe=Symbol(),gt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""},onClickOverlay:null},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.onClickOverlay?.(),o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(xe,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(Ae),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Un="",W=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},mt=W(gt,[["__scopeId","data-v-3d61e60a"]]);function ht(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(mt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function we({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return De(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${a} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const d=lt();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function pt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ne({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const yt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Dt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),yt,16))}}),$n="",_e=W(Dt,[["__scopeId","data-v-92a1804d"]]),Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17oj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ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",Nt={class:"loading-wrap"},wt=["src"],vt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Tt),style:e.normalizeStyle(e.unref(o))},null,12,wt)]))}}),Hn="",Et=W(vt,[["__scopeId","data-v-3c54972f"]]);async function we(t){return new Promise(n=>setTimeout(()=>n(),t))}const It="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEw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g2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",At=["onClick"],Lt=["onClick"],jt=["src"],Ct=["src"],St=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let f={};return o.captureEventP&&(f.pointerEvents="none"),f}),a=e.computed(()=>{let f={padding:"12px"};return(o.icon||o.showIcon)&&(f.padding="20px"),o.width&&(f.width=o.width),o.maxWidth&&(f.maxWidth=o.maxWidth),o.overlayContentStyle&&(f={...f,...o.overlayContentStyle}),f}),i=e.computed(()=>{let f={};return o.showClose&&!o.icon&&(f.paddingRight="16px"),f});function d(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(f,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(u=>n("close"),["stop"])),src:e.unref(It),class:e.normalizeClass(`${l}-close`)},null,10,jt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(zt),class:e.normalizeClass(`${l}-icon`)},null,10,Ct)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Lt)],10,At),[[e.vShow,t.visible]])],4)]),_:1}))}}),Fn="",Vn="",xt=W(St,[["__scopeId","data-v-0947d1e3"]]);class be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=xt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await we(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function _t(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,d=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,c);const f=e.ref(!1);let g=null;const u=new be(c);async function m(...r){if(o&&console.log(`useDelayAsync - handler - processing: ${f.value}`),!f.value){f.value=!0,g=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,f.value),s&&(!f.value||u.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const D=await t(...r);return o&&console.log("useDelayAsync - execute res: ",D),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(a),await n?.onSuccess?.(D,[...r]),D}catch(D){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(D),await M(a),await n?.onError?.(D,[...r])}}}async function M(r=!0){o&&console.log("useDelayAsync - close - closeLoading: ",r),f.value=!1,g&&clearTimeout(g),g=null,r&&await u.destory()}return d&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:f,handler:m,close:M}}function bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Ot(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),d=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,M){f(),t.value=m,n.value=M}function u(m,M){o.value=(m<0?0:m)-t.value,l.value=M-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const r=10;(!i.value||s.value<r&&a.value<r)&&(i.value=bt(s.value,a.value))}return{move:u,start:g,reset:f,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:d,isHorizontal:c}}const Oe=250,ke=5,kt=500;function Bt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,d){const c=Date.now()-o;i<ke&&d<ke&&(c<Oe?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Oe):t.onTap?.():c>kt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Qt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Yt(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:Z(a),height:Z(i)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function ve(t,n,o){return Math.min(Math.max(t,n),o)}function Z(t,n=2){return parseFloat(t.toFixed(n))}function ge(t,n,o){return t=Z(t),n=Z(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Be(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Rt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Qe(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),d=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),g=Ot(),u=Qt(a,{onComplate(){c.preview||p()}}),m=Bt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});je(a,y=>M(y)),e.watch([s,a],([y,v])=>{r(y,v)},{immediate:!0});async function M(y){const[v]=y;v.contentRect.width==d.value.width&&v.contentRect.height==d.value.height||(await r(s.value),await p(c.level,!0))}async function r(y,v){await A(y,v),y&&Q()}async function D(y){if(!c.preview)return;c.preview=!1,y=y??c.level;const v=a.value;if(!v)return;const{scrollTop:C,scrollLeft:O}=v,{width:_,height:E}=i.value,{scaleW:z,scaleH:k}=S(y),{top:Y,left:b}=T(z,k),U=b!=0?b:O*-1,F=Y!=0?Y:C*-1;v.scrollTop=0,v.scrollLeft=0;const{value:H}=f;H.width=`${_}px`,H.height=`${E}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=ge(U,F,y),f.value=H,await e.nextTick(),c.offsetX=U,c.offsetY=F,await we(20)}async function p(y,v){if(!v&&c.preview)return;c.preview=!0,y=y??c.level;const{value:C}=f,{scaleW:O,scaleH:_}=S(y),{left:E,top:z}=T(O,_);y===1&&(C.maxHeight="100%"),C.width=`${O}px`,C.height=`${_}px`,C.transitionDuration="0s",C.transform=ge(E,z,1),f.value=C,await e.nextTick();const k=a.value;if(!k)return;const{offsetX:Y,offsetY:b}=c;Y<0&&(k.scrollLeft=Math.abs(Y)),b<0&&(k.scrollTop=Math.abs(b))}async function h(y,v,C){if(n.value||(y=Z(y),y=ve(y,o.value-o.value*.5,l.value+l.value*.5),y==c.level))return;c.preview&&await D(),v||(v={x:g.startX.value,y:g.startY.value});const{value:O}=f,{width:_,height:E}=i.value,{scaleW:z,scaleH:k}=S(y),{top:Y,left:b}=T(z,k),U=y/c.level,F={left:Math.abs(_*y-d.value.width)*-1,top:Math.abs(E*y-d.value.height)*-1,right:b,bottom:Y};let H=b!=0?b:(c.offsetX-v.x)*U+v.x,J=Y!=0?Y:(c.offsetY-v.y)*U+v.y;H=Z(ve(H,F.left,F.right)),J=Z(ve(J,F.top,F.bottom)),O.width=`${_}px`,O.height=`${E}px`,O.transitionDuration=C?Ut(y):"0s",O.transform=ge(H,J,y),c.offsetX=H,c.offsetY=J,c.level=y,f.value=O,await e.nextTick(),C&&u.startTransition(),t.onScale?.(y)}function N(){const y=c.level>1?1:B();h(y,void 0,!0)}function w(y,v){if(!c.preview)return;const C=a.value;!C||C.scrollTo({left:c.offsetX-y,top:c.offsetY-v})}async function j(){c.level>=o.value&&c.level<=l.value?c.zooming&&await p():c.level<o.value?await h(o.value,void 0,!0):c.level>l.value&&await h(l.value,c.lastCenter,!0),c.zooming=!1}function B(){const{width:y,height:v}=i.value,{width:C,height:O}=d.value,_=2.5;let E;return v==O?(E=C/y,E-1<.1&&(E=_)):E=Math.max(_,C/y,O/v),E}function S(y){const{width:v,height:C}=i.value;return{scaleW:Z(y*v),scaleH:Z(y*C)}}function T(y,v){const{width:C,height:O}=d.value,_=Math.max(0,(O-v)*.5),E=Math.max(0,(C-y)*.5);return{top:_,left:E}}async function A(y,v){if(y=y??s.value,v=v??a.value,!v)return;let C,{clientWidth:O=0,clientHeight:_=0}=y||{};const{clientWidth:E,clientHeight:z}=v;if(y instanceof HTMLImageElement?C={width:y.naturalWidth,height:y.naturalHeight}:y instanceof HTMLVideoElement&&(C={width:y.videoWidth,height:y.videoHeight}),C){const k=Yt(C.width,C.height,E,z);O=k.width,_=k.height}(O===0||_===0)&&(O=i.value.width||E,_=i.value.height||z),i.value={width:Math.min(O,E),height:Math.min(_,z)},d.value={width:E,height:z}}function Q(){const y=B();l.value=Math.max(l.value,y*2)}function $(y){n.value=y}return{touch:g,state:c,style:f,gesture:m,transition:u,imageRef:s,containerRef:a,switchToZoom:D,switchToPreview:p,panTo:w,zoomTo:h,zoomFinished:j,toggleZoom:N,setDisableZoom:$}}function Ye(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=at(a);let d,c;function f(m){d=m}function g(m){return d==m}function u(m,M,r,D){i.measure();const{top:p,left:h,right:N,bottom:w}=i.arrivedState;if(m=="start")c=p||h||N||w;else if(d==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const j=l.startY.value<r;c=p&&j||w&&!j}else if(l.direction.value=="horizontal"){const j=l.startX.value<M;c=h&&j||N&&!j}}c&&s.transitioning.value&&(c=!1,D?.preventDefault()),m=="end"&&!c&&(M=l.startX.value,r=l.startY.value,c=!0),(m!="move"||c)&&n?.(m,l.direction.value,M,r,D)}return{onSwipeEdge:u,setFingerNum:f,isEqualFingerNum:g}}function Pt(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,d=null;const c={top:0,left:0},f=ne(p,150),{onSwipeEdge:g}=Ye(n,t.onSwipeEdge),u=e.ref({top:0,left:0});le("keyup",N),le("keydown",h);function m(w){const j=w.target,{left:B,top:S}=j.getBoundingClientRect();u.value.left=B,u.value.top=S,s.startTap();let T=w.clientX-B,A=w.clientY-S;l.start(T,A),g("start",T,A,w),a.transitioning.value||(i=!0,c.left=B,c.top=S,o.offsetX=j.scrollLeft,o.offsetY=j.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",r)}function M(w){if(!i)return;let j=w.clientX,B=w.clientY;l.move(j,B),g("move",j-u.value.left,B-u.value.top,w),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(w){g("end",l.offsetX.value,l.offsetY.value,w),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",r)}function D(w){if(!w.ctrlKey)return;o.zooming||(o.zooming=!0,d=="Control"&&window.addEventListener("keyup",p)),w.preventDefault();let j=-w.deltaY;w.deltaMode===1?j*=.05:j*=w.deltaMode?1:.002,d!="Control"&&(j*=10),j=2**j;const B=o.level*j;o.lastCenter={x:w.offsetX,y:w.offsetY},n.zoomTo(B,o.lastCenter),d!="Control"&&f()}function p(){n.zoomFinished(),window.removeEventListener("keyup",p)}function h(w){d=w.key}function N(){d=null}return{core:n,onPointerDown:m,onWheel:D}}function $t(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:d}=Ye(n,t.onSwipeEdge);let c,f;async function g(M){const{touches:r}=M;a(r.length),o.zooming=d(2),s.startTap();const{clientX:D,clientY:p}=r[0];l.start(D,p),i("start",D,p,M),o.zooming&&(M.preventDefault(),c=o.level,f=Be(r),await n.switchToZoom(),o.lastCenter=Rt(r))}async function u(M){const{touches:r}=M;a(r.length);const{clientX:D,clientY:p}=r[0];if(l.move(D,p),i("move",D,p,M),o.zooming&&d(2)){M.preventDefault();const h=Be(r),N=c*h/f;n.zoomTo(N,o.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:r,clientY:D}=M.changedTouches[0];i("end",r,D,M),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:g,onTouchMove:u,onTouchEnd:m}}function Ht(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Ue(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Re(t){let n=!1;return()=>{n||(t(),n=!0)}}function Ft(t){let n=null;const{isActivated:o}=Ue(),l=Re(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Vt=["onClick"],Wt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(f,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Vt))}}),Wn="",Xt=W(Wt,[["__scopeId","data-v-25d39b90"]]),Pe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Zt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Xt),{...Pe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Pe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Kt=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Kt)],4))}});function Gt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,d=e.ref(!0),c=ne($,100);let f,g="";const u=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),p=e.computed(()=>!!m.value),h=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),N=e.computed(()=>l?r.value.clientHeight-B.value:r.value.clientHeight-D.value.clientHeight),w=e.computed(()=>r.value.scrollHeight-r.value.clientHeight),j=e.computed(()=>!r.value.clientHeight&&!r.value.scrollHeight?1:Math.max(r.value.clientHeight/r.value.scrollHeight,.05)),B=e.computed(()=>j.value>a?0:j.value*r.value.clientHeight),S=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${B.value}px`:void 0}));function T(b){Q(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=g,m.value=0,c()}function Q(){d.value=!1}function $(){p.value||(d.value=!0)}function y(b){if(!p.value)return;let U=b.clientY-r.value.top-m.value;U<0?M.value=0:U>=N.value?M.value=N.value:M.value=U,n.value.scrollTo({top:M.value/N.value*w.value})}function v(){p.value||C()}function C(){cancelAnimationFrame(f),f=requestAnimationFrame(O)}function O(){n.value&&(u.value=s.scrollTop?.value??n.value.scrollTop,M.value=u.value/w.value*N.value)}function _(b){let U="addEventListener";b==="add"?U="addEventListener":U="removeEventListener",o.value?.[U]("pointerdown",T,{passive:!0}),window[U]("pointermove",y,{passive:!0}),window[U]("pointerup",A,{passive:!0})}const E=new MutationObserver(b=>{(i=="classList"||b.map(F=>F.oldValue).join().includes("height"))&&z()});function z(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:b=0,clientHeight:U=0}=n.value||{},{scrollHeight:F,clientHeight:H}=r.value;b!=F&&(r.value.scrollHeight=b,O()),U!=H&&(r.value.clientHeight=U,O())}function k(){Q(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",v,{passive:!0}),_("add");const b={};i==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(n.value,b),setTimeout(()=>{z()},100),k()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(u,()=>{Q(),c()}),{isScrollEnd:d,isDragSlider:p,offsetTop:M,scrollTop:u,scrollable:h,sliderPos:S,init:Y,modifySliderEventListener:_,heightRatio:j}}const qt=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Jt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Gt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:c,sliderPos:f,heightRatio:g}=i,u=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<g.value?!1:u.value||!c.value):e.computed(()=>o.maxHeightRatio<g.value?!1:d.value),{load:M}=ye(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const d=lt();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function pt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=we({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const yt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Dt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),yt,16))}}),$n="",_e=W(Dt,[["__scopeId","data-v-92a1804d"]]),Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",Nt={class:"loading-wrap"},wt=["src"],vt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Tt),style:e.normalizeStyle(e.unref(o))},null,12,wt)]))}}),Hn="",Et=W(vt,[["__scopeId","data-v-3c54972f"]]);async function ve(t){return new Promise(n=>setTimeout(()=>n(),t))}const It="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMDkgMTIuMDMyMTQyOSwxMS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w4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",At=["onClick"],Lt=["onClick"],jt=["src"],Ct=["src"],St=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let f={};return o.captureEventP&&(f.pointerEvents="none"),f}),a=e.computed(()=>{let f={padding:"12px"};return(o.icon||o.showIcon)&&(f.padding="20px"),o.width&&(f.width=o.width),o.maxWidth&&(f.maxWidth=o.maxWidth),o.overlayContentStyle&&(f={...f,...o.overlayContentStyle}),f}),i=e.computed(()=>{let f={};return o.showClose&&!o.icon&&(f.paddingRight="16px"),f});function d(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(f,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(u=>n("close"),["stop"])),src:e.unref(It),class:e.normalizeClass(`${l}-close`)},null,10,jt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(zt),class:e.normalizeClass(`${l}-icon`)},null,10,Ct)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Lt)],10,At),[[e.vShow,t.visible]])],4)]),_:1}))}}),Fn="",Vn="",xt=W(St,[["__scopeId","data-v-0947d1e3"]]);class be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=xt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await ve(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function _t(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,d=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,c);const f=e.ref(!1);let g=null;const u=new be(c);async function m(...r){if(o&&console.log(`useDelayAsync - handler - processing: ${f.value}`),!f.value){f.value=!0,g=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,f.value),s&&(!f.value||u.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const D=await t(...r);return o&&console.log("useDelayAsync - execute res: ",D),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(a),await n?.onSuccess?.(D,[...r]),D}catch(D){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(D),await M(a),await n?.onError?.(D,[...r])}}}async function M(r=!0){o&&console.log("useDelayAsync - close - closeLoading: ",r),f.value=!1,g&&clearTimeout(g),g=null,r&&await u.destory()}return d&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:f,handler:m,close:M}}function bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Ot(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),d=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,M){f(),t.value=m,n.value=M}function u(m,M){o.value=(m<0?0:m)-t.value,l.value=M-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const r=10;(!i.value||s.value<r&&a.value<r)&&(i.value=bt(s.value,a.value))}return{move:u,start:g,reset:f,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:d,isHorizontal:c}}const Oe=250,ke=5,kt=500;function Bt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,d){const c=Date.now()-o;i<ke&&d<ke&&(c<Oe?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Oe):t.onTap?.():c>kt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Qt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Yt(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:Z(a),height:Z(i)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ee(t,n,o){return Math.min(Math.max(t,n),o)}function Z(t,n=2){return parseFloat(t.toFixed(n))}function ge(t,n,o){return t=Z(t),n=Z(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Be(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Rt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Qe(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),d=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),g=Ot(),u=Qt(a,{onComplate(){c.preview||p()}}),m=Bt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});ye(a,y=>M(y)),e.watch([s,a],([y,v])=>{r(y,v)},{immediate:!0});async function M(y){const[v]=y;v.contentRect.width==d.value.width&&v.contentRect.height==d.value.height||(await r(s.value),await p(c.level,!0))}async function r(y,v){await A(y,v),y&&Q()}async function D(y){if(!c.preview)return;c.preview=!1,y=y??c.level;const v=a.value;if(!v)return;const{scrollTop:C,scrollLeft:O}=v,{width:_,height:E}=i.value,{scaleW:z,scaleH:k}=S(y),{top:Y,left:b}=T(z,k),U=b!=0?b:O*-1,F=Y!=0?Y:C*-1;v.scrollTop=0,v.scrollLeft=0;const{value:H}=f;H.width=`${_}px`,H.height=`${E}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=ge(U,F,y),f.value=H,await e.nextTick(),c.offsetX=U,c.offsetY=F,await ve(20)}async function p(y,v){if(!v&&c.preview)return;c.preview=!0,y=y??c.level;const{value:C}=f,{scaleW:O,scaleH:_}=S(y),{left:E,top:z}=T(O,_);y===1&&(C.maxHeight="100%"),C.width=`${O}px`,C.height=`${_}px`,C.transitionDuration="0s",C.transform=ge(E,z,1),f.value=C,await e.nextTick();const k=a.value;if(!k)return;const{offsetX:Y,offsetY:b}=c;Y<0&&(k.scrollLeft=Math.abs(Y)),b<0&&(k.scrollTop=Math.abs(b))}async function h(y,v,C){if(n.value||(y=Z(y),y=Ee(y,o.value-o.value*.5,l.value+l.value*.5),y==c.level))return;c.preview&&await D(),v||(v={x:g.startX.value,y:g.startY.value});const{value:O}=f,{width:_,height:E}=i.value,{scaleW:z,scaleH:k}=S(y),{top:Y,left:b}=T(z,k),U=y/c.level,F={left:Math.abs(_*y-d.value.width)*-1,top:Math.abs(E*y-d.value.height)*-1,right:b,bottom:Y};let H=b!=0?b:(c.offsetX-v.x)*U+v.x,K=Y!=0?Y:(c.offsetY-v.y)*U+v.y;H=Z(Ee(H,F.left,F.right)),K=Z(Ee(K,F.top,F.bottom)),O.width=`${_}px`,O.height=`${E}px`,O.transitionDuration=C?Ut(y):"0s",O.transform=ge(H,K,y),c.offsetX=H,c.offsetY=K,c.level=y,f.value=O,await e.nextTick(),C&&u.startTransition(),t.onScale?.(y)}function N(){const y=c.level>1?1:B();h(y,void 0,!0)}function w(y,v){if(!c.preview)return;const C=a.value;!C||C.scrollTo({left:c.offsetX-y,top:c.offsetY-v})}async function j(){c.level>=o.value&&c.level<=l.value?c.zooming&&await p():c.level<o.value?await h(o.value,void 0,!0):c.level>l.value&&await h(l.value,c.lastCenter,!0),c.zooming=!1}function B(){const{width:y,height:v}=i.value,{width:C,height:O}=d.value,_=2.5;let E;return v==O?(E=C/y,E-1<.1&&(E=_)):E=Math.max(_,C/y,O/v),E}function S(y){const{width:v,height:C}=i.value;return{scaleW:Z(y*v),scaleH:Z(y*C)}}function T(y,v){const{width:C,height:O}=d.value,_=Math.max(0,(O-v)*.5),E=Math.max(0,(C-y)*.5);return{top:_,left:E}}async function A(y,v){if(y=y??s.value,v=v??a.value,!v)return;let C,{clientWidth:O=0,clientHeight:_=0}=y||{};const{clientWidth:E,clientHeight:z}=v;if(y instanceof HTMLImageElement?C={width:y.naturalWidth,height:y.naturalHeight}:y instanceof HTMLVideoElement&&(C={width:y.videoWidth,height:y.videoHeight}),C){const k=Yt(C.width,C.height,E,z);O=k.width,_=k.height}(O===0||_===0)&&(O=i.value.width||E,_=i.value.height||z),i.value={width:Math.min(O,E),height:Math.min(_,z)},d.value={width:E,height:z}}function Q(){const y=B();l.value=Math.max(l.value,y*2)}function $(y){n.value=y}return{touch:g,state:c,style:f,gesture:m,transition:u,imageRef:s,containerRef:a,switchToZoom:D,switchToPreview:p,panTo:w,zoomTo:h,zoomFinished:j,toggleZoom:N,setDisableZoom:$}}function Ye(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=at(a);let d,c;function f(m){d=m}function g(m){return d==m}function u(m,M,r,D){i.measure();const{top:p,left:h,right:N,bottom:w}=i.arrivedState;if(m=="start")c=p||h||N||w;else if(d==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const j=l.startY.value<r;c=p&&j||w&&!j}else if(l.direction.value=="horizontal"){const j=l.startX.value<M;c=h&&j||N&&!j}}c&&s.transitioning.value&&(c=!1,D?.preventDefault()),m=="end"&&!c&&(M=l.startX.value,r=l.startY.value,c=!0),(m!="move"||c)&&n?.(m,l.direction.value,M,r,D)}return{onSwipeEdge:u,setFingerNum:f,isEqualFingerNum:g}}function Pt(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,d=null;const c={top:0,left:0},f=ne(p,150),{onSwipeEdge:g}=Ye(n,t.onSwipeEdge),u=e.ref({top:0,left:0});le("keyup",N),le("keydown",h);function m(w){const j=w.target,{left:B,top:S}=j.getBoundingClientRect();u.value.left=B,u.value.top=S,s.startTap();let T=w.clientX-B,A=w.clientY-S;l.start(T,A),g("start",T,A,w),a.transitioning.value||(i=!0,c.left=B,c.top=S,o.offsetX=j.scrollLeft,o.offsetY=j.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",r)}function M(w){if(!i)return;let j=w.clientX,B=w.clientY;l.move(j,B),g("move",j-u.value.left,B-u.value.top,w),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(w){g("end",l.offsetX.value,l.offsetY.value,w),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",r)}function D(w){if(!w.ctrlKey)return;o.zooming||(o.zooming=!0,d=="Control"&&window.addEventListener("keyup",p)),w.preventDefault();let j=-w.deltaY;w.deltaMode===1?j*=.05:j*=w.deltaMode?1:.002,d!="Control"&&(j*=10),j=2**j;const B=o.level*j;o.lastCenter={x:w.offsetX,y:w.offsetY},n.zoomTo(B,o.lastCenter),d!="Control"&&f()}function p(){n.zoomFinished(),window.removeEventListener("keyup",p)}function h(w){d=w.key}function N(){d=null}return{core:n,onPointerDown:m,onWheel:D}}function $t(t){const n=Qe({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:d}=Ye(n,t.onSwipeEdge);let c,f;async function g(M){const{touches:r}=M;a(r.length),o.zooming=d(2),s.startTap();const{clientX:D,clientY:p}=r[0];l.start(D,p),i("start",D,p,M),o.zooming&&(M.preventDefault(),c=o.level,f=Be(r),await n.switchToZoom(),o.lastCenter=Rt(r))}async function u(M){const{touches:r}=M;a(r.length);const{clientX:D,clientY:p}=r[0];if(l.move(D,p),i("move",D,p,M),o.zooming&&d(2)){M.preventDefault();const h=Be(r),N=c*h/f;n.zoomTo(N,o.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:r,clientY:D}=M.changedTouches[0];i("end",r,D,M),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:g,onTouchMove:u,onTouchEnd:m}}function Ht(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function Ue(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Re(t){let n=!1;return()=>{n||(t(),n=!0)}}function Ft(t){let n=null;const{isActivated:o}=Ue(),l=Re(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Vt=["onClick"],Wt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(f,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Vt))}}),Wn="",Xt=W(Wt,[["__scopeId","data-v-25d39b90"]]),Pe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Zt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Xt),{...Pe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Pe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Kt=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Kt)],4))}});function Gt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,d=e.ref(!0),c=ne($,100);let f,g="";const u=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),p=e.computed(()=>!!m.value),h=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),N=e.computed(()=>l?r.value.clientHeight-B.value:r.value.clientHeight-D.value.clientHeight),w=e.computed(()=>r.value.scrollHeight-r.value.clientHeight),j=e.computed(()=>!r.value.clientHeight&&!r.value.scrollHeight?1:Math.max(r.value.clientHeight/r.value.scrollHeight,.05)),B=e.computed(()=>j.value>a?0:j.value*r.value.clientHeight),S=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${B.value}px`:void 0}));ye(n,()=>z());function T(b){Q(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=g,m.value=0,c()}function Q(){d.value=!1}function $(){p.value||(d.value=!0)}function y(b){if(!p.value)return;let U=b.clientY-r.value.top-m.value;U<0?M.value=0:U>=N.value?M.value=N.value:M.value=U,n.value.scrollTo({top:M.value/N.value*w.value})}function v(){p.value||C()}function C(){cancelAnimationFrame(f),f=requestAnimationFrame(O)}function O(){n.value&&(u.value=s.scrollTop?.value??n.value.scrollTop,M.value=u.value/w.value*N.value)}function _(b){let U="addEventListener";b==="add"?U="addEventListener":U="removeEventListener",o.value?.[U]("pointerdown",T,{passive:!0}),window[U]("pointermove",y,{passive:!0}),window[U]("pointerup",A,{passive:!0})}const E=new MutationObserver(b=>{(i=="classList"||b.map(F=>F.oldValue).join().includes("height"))&&z()});function z(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:b=0,clientHeight:U=0}=n.value||{},{scrollHeight:F,clientHeight:H}=r.value;b!=F&&(r.value.scrollHeight=b,O()),U!=H&&(r.value.clientHeight=U,O());const{clientHeight:K=0}=o.value||{};K!=D.value.clientHeight&&(D.value.clientHeight=K)}function k(){Q(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",v,{passive:!0}),_("add");const b={};i==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(n.value,b),setTimeout(()=>{z()},100),k()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(u,()=>{Q(),c()}),{isScrollEnd:d,isDragSlider:p,offsetTop:M,scrollTop:u,scrollable:h,sliderPos:S,init:Y,modifySliderEventListener:_,heightRatio:j}}const qt=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Jt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Gt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:c,sliderPos:f,heightRatio:g}=i,u=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<g.value?!1:u.value||!c.value):e.computed(()=>o.maxHeightRatio<g.value?!1:d.value),{load:M}=De(`.hide-scrollbar {
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
17
|
}
|
|
18
18
|
.hide-scrollbar::-webkit-scrollbar {
|
|
19
19
|
display: none;
|
|
20
|
-
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{M(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function r(){u.value=!0}function D(){u.value=!1}return n({uScrollBarReturn:i}),(p,h)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:r,onMouseleave:D,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(p.$slots,"default",{},()=>[qt],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),Zn="",en=W(Jt,[["__scopeId","data-v-7fd39e51"]]),tn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),nn={class:"pull-refresh"},on={key:0,class:"pull-arrow-circle"},ln={key:0,class:"box-load"},sn={class:"left-load"},an={class:"right-load"},rn=tn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),cn={class:"pull-arrow"},un={key:1},dn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),d=e.ref(.3),c=e.ref(!1),f=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref(),D=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:d.value}));e.watch(M,T=>{T===0&&(s.value=-50,d.value=.3)}),e.watch(g,T=>{if(M.value===2)return;const A=Math.pow(T,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,i.value=Math.pow(A,1.5),A>15?c.value=!0:c.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const N=e.ref(0),w=T=>{N.value=T.touches[0].pageY},j=T=>{const A=T.touches[0].pageY-N.value;N.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&D.value===0&&(f.value===0&&(f.value=T.touches[0].pageY),u.value=0,S.value.style.transition=`${u.value}ms`,m.value=0,g.value=T.touches[0].pageY-f.value,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,A>0&&T.preventDefault()))},B=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;f.value=0,u.value=300;const T=Math.pow(g.value,o);S.value.style.transition=`${u.value}ms`,T>50?(M.value=2,g.value=Math.pow(50,1/o),S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{r.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{r.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},S=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(S.value=document.querySelector(n.pullRefreshContainer),S.value?.addEventListener("touchstart",w),S.value?.addEventListener("touchmove",j),S.value?.addEventListener("touchend",B))}),(T,A)=>(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[r.value?(e.openBlock(),e.createElementBlock("div",un,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",on,[M.value==2?(e.openBlock(),e.createElementBlock("div",ln,[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",an,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),rn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",cn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Kn="",$e=W(dn,[["__scopeId","data-v-df5da876"]]),fn=["data-key"],Mn={inheritAttrs:!1},gn=e.defineComponent({...Mn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Se(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:d,innerProps:c,getItemHeightData:f,scrollTop:g}=s;n({vListReturn:s});const u="virtualListWrapper"+new Date().getTime();function m(M,r){return l.getItemKey?l.getItemKey(M,r):`${r}`}return(M,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode($e,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+u},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:u},[e.createElementVNode("div",e.mergeProps({onScrollPassive:r[0]||(r[0]=(...D)=>e.unref(i).onScroll&&e.unref(i).onScroll(...D)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:D,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:m(D,p),"data-key":m(D,p),style:e.normalizeStyle({height:`${e.unref(f)(p).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:D,index:p},void 0,!0)],12,fn))),128))],16)],16)],16)])],64))}}),Gn="",mn=W(gn,[["__scopeId","data-v-dfe60586"]]),Ee=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),hn={style:{position:"absolute"}},pn=Ee(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),yn=["width","height"],Dn=[Ee(()=>e.createElementVNode("title",null,"logo",-1)),Ee(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Tn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",hn,[pn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Dn,8,yn))]))}}),eo="",Nn=W(Tn,[["__scopeId","data-v-33519afd"]]),wn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],vn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function He(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?wn.includes(c):vn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:d}}function Fe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const En=t=>(e.pushScopeId("data-v-044030a1"),t=t(),e.popScopeId(),t),In=["title"],zn=En(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),An=["src"],Ln=["src"],jn=["title"],Cn={inheritAttrs:!1},Sn=e.defineComponent({...Cn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),d=e.ref(!1),{src:c,mime:f}=e.toRefs(o),{imgSrc:g,isSupport:u,hasError:m,handleError:M}=He(c,f),{vImageCancel:r}=Fe(),{LoadingComp:D}=Ne({component:_e,delay:300}),p=Xe(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);e.watch(u,T=>{T||n("noSupport")},{immediate:!0});function h(){i.value=!0}function N(){i.value&&(d.value=!0)}async function w(){h(),p.value?(l.value?.addEventListener("animationend",j),l.value?.classList.add("showing"),await we(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function j(){l.value?.removeEventListener("animationend",j),l.value?.classList.remove("showing"),l.value&&n("load",l.value),N()}async function B(T){T?w():s.value&&n("load",s.value),a.value=!0}function S(T){T?(M(),n("loadError")):h(),a.value=!0}return(T,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(u)&&!a.value?(e.openBlock(),e.createBlock(e.unref(D),{key:0})):e.createCommentVNode("",!0),e.unref(u)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,jn)):e.renderSlot(T.$slots,"default",{key:2,src:e.unref(g),onLoad:B,onError:S},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},T.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=Q=>B()),onError:A[1]||(A[1]=Q=>S()),src:t.thumbnail}),null,16,An)),[[e.unref(r)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},T.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=Q=>B(!0)),onError:A[3]||(A[3]=Q=>S(!0)),src:e.unref(g)}),null,16,Ln)),[[e.unref(r)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),zn],16,In))],64))}}),to="",xn=W(Sn,[["__scopeId","data-v-044030a1"]]),_n=["title"],bn=["src"],On=["title"],kn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:d,handleError:c}=He(l,s),{vImageCancel:f}=Fe();return(g,u)=>e.unref(d)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,On)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:u[0]||(u[0]=m=>o.value=!0),onError:u[1]||(u[1]=(...m)=>e.unref(c)&&e.unref(c)(...m)),src:e.unref(a)},null,40,bn)),[[e.unref(f)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,_n))}}),no="",Bn=W(kn,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=_e,I.Image=xn,I.Loading=Nn,I.LoadingToast=be,I.PageLoading=Et,I.PullRefresh=$e,I.ScrollBar=en,I.SvgIcon=te,I.Thumbnail=Bn,I.ToastCreator=Zt,I.VirtualList=mn,I.allSelectedKey=re,I.closeDialogKey=xe,I.dialogController=ht,I.getTransform=ge,I.isAllSelectedKey=fe,I.isSelectedKey=ie,I.once=Re,I.selectAllKey=ue,I.selectKey=ce,I.selectedCountKey=Me,I.toggleAllKey=se,I.toggleKey=ae,I.unselectAllKey=q,I.unselectKey=de,I.useBackPress=Ft,I.useDelayAsync=_t,I.useDelayLoad=pt,I.useDelayLoadComp=Ne,I.useDownDrag=Ht,I.useDragSelect=Te,I.useDragSelectByMobile=Mt,I.useDragSelectByPc=ft,I.useRouterActivated=Ue,I.useScaleImageByMobile=$t,I.useScaleImageByPc=Pt,I.useSelectable=ut,I.useSelectableByBase=dt,I.useSelectableInjectors=ct,I.useVirtualList=Se,I.vDebounceClick=We,I.vSingleClick=ze,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{M(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function r(){u.value=!0}function D(){u.value=!1}return n({uScrollBarReturn:i}),(p,h)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:r,onMouseleave:D,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(p.$slots,"default",{},()=>[qt],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),Zn="",en=W(Jt,[["__scopeId","data-v-7fd39e51"]]),tn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),nn={class:"pull-refresh"},on={key:0,class:"pull-arrow-circle"},ln={key:0,class:"box-load"},sn={class:"left-load"},an={class:"right-load"},rn=tn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),cn={class:"pull-arrow"},un={key:1},dn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),d=e.ref(.3),c=e.ref(!1),f=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref(),D=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:d.value}));e.watch(M,T=>{T===0&&(s.value=-50,d.value=.3)}),e.watch(g,T=>{if(M.value===2)return;const A=Math.pow(T,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,i.value=Math.pow(A,1.5),A>15?c.value=!0:c.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const N=e.ref(0),w=T=>{N.value=T.touches[0].pageY},j=T=>{const A=T.touches[0].pageY-N.value;N.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&D.value===0&&(f.value===0&&(f.value=T.touches[0].pageY),u.value=0,S.value.style.transition=`${u.value}ms`,m.value=0,g.value=T.touches[0].pageY-f.value,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,A>0&&T.preventDefault()))},B=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;f.value=0,u.value=300;const T=Math.pow(g.value,o);S.value.style.transition=`${u.value}ms`,T>50?(M.value=2,g.value=Math.pow(50,1/o),S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{r.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{r.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(g.value=0,S.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},S=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(S.value=document.querySelector(n.pullRefreshContainer),S.value?.addEventListener("touchstart",w),S.value?.addEventListener("touchmove",j),S.value?.addEventListener("touchend",B))}),(T,A)=>(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[r.value?(e.openBlock(),e.createElementBlock("div",un,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",on,[M.value==2?(e.openBlock(),e.createElementBlock("div",ln,[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",an,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),rn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",cn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Kn="",$e=W(dn,[["__scopeId","data-v-df5da876"]]),fn=["data-key"],Mn={inheritAttrs:!1},gn=e.defineComponent({...Mn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Se(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:d,innerProps:c,getItemHeightData:f,scrollTop:g}=s;n({vListReturn:s});const u="virtualListWrapper"+new Date().getTime();function m(M,r){return l.getItemKey?l.getItemKey(M,r):`${r}`}return(M,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode($e,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+u},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:u},[e.createElementVNode("div",e.mergeProps({onScrollPassive:r[0]||(r[0]=(...D)=>e.unref(i).onScroll&&e.unref(i).onScroll(...D)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:D,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:m(D,p),"data-key":m(D,p),style:e.normalizeStyle({height:`${e.unref(f)(p).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:D,index:p},void 0,!0)],12,fn))),128))],16)],16)],16)])],64))}}),Gn="",mn=W(gn,[["__scopeId","data-v-dfe60586"]]),Ie=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),hn={style:{position:"absolute"}},pn=Ie(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),yn=["width","height"],Dn=[Ie(()=>e.createElementVNode("title",null,"logo",-1)),Ie(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Tn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",hn,[pn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Dn,8,yn))]))}}),eo="",Nn=W(Tn,[["__scopeId","data-v-33519afd"]]),wn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],vn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function He(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?wn.includes(c):vn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:d}}function Fe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const En=t=>(e.pushScopeId("data-v-044030a1"),t=t(),e.popScopeId(),t),In=["title"],zn=En(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),An=["src"],Ln=["src"],jn=["title"],Cn={inheritAttrs:!1},Sn=e.defineComponent({...Cn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),d=e.ref(!1),{src:c,mime:f}=e.toRefs(o),{imgSrc:g,isSupport:u,hasError:m,handleError:M}=He(c,f),{vImageCancel:r}=Fe(),{LoadingComp:D}=we({component:_e,delay:300}),p=Xe(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);e.watch(u,T=>{T||n("noSupport")},{immediate:!0});function h(){i.value=!0}function N(){i.value&&(d.value=!0)}async function w(){h(),p.value?(l.value?.addEventListener("animationend",j),l.value?.classList.add("showing"),await ve(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function j(){l.value?.removeEventListener("animationend",j),l.value?.classList.remove("showing"),l.value&&n("load",l.value),N()}async function B(T){T?w():s.value&&n("load",s.value),a.value=!0}function S(T){T?(M(),n("loadError")):h(),a.value=!0}return(T,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(u)&&!a.value?(e.openBlock(),e.createBlock(e.unref(D),{key:0})):e.createCommentVNode("",!0),e.unref(u)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,jn)):e.renderSlot(T.$slots,"default",{key:2,src:e.unref(g),onLoad:B,onError:S},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},T.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=Q=>B()),onError:A[1]||(A[1]=Q=>S()),src:t.thumbnail}),null,16,An)),[[e.unref(r)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},T.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=Q=>B(!0)),onError:A[3]||(A[3]=Q=>S(!0)),src:e.unref(g)}),null,16,Ln)),[[e.unref(r)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),zn],16,In))],64))}}),to="",xn=W(Sn,[["__scopeId","data-v-044030a1"]]),_n=["title"],bn=["src"],On=["title"],kn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:d,handleError:c}=He(l,s),{vImageCancel:f}=Fe();return(g,u)=>e.unref(d)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,On)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:u[0]||(u[0]=m=>o.value=!0),onError:u[1]||(u[1]=(...m)=>e.unref(c)&&e.unref(c)(...m)),src:e.unref(a)},null,40,bn)),[[e.unref(f)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,_n))}}),no="",Bn=W(kn,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=_e,I.Image=xn,I.Loading=Nn,I.LoadingToast=be,I.PageLoading=Et,I.PullRefresh=$e,I.ScrollBar=en,I.SvgIcon=te,I.Thumbnail=Bn,I.ToastCreator=Zt,I.VirtualList=mn,I.allSelectedKey=re,I.closeDialogKey=xe,I.dialogController=ht,I.getTransform=ge,I.isAllSelectedKey=fe,I.isSelectedKey=ie,I.once=Re,I.selectAllKey=ue,I.selectKey=ce,I.selectedCountKey=Me,I.toggleAllKey=se,I.toggleKey=ae,I.unselectAllKey=J,I.unselectKey=de,I.useBackPress=Ft,I.useDelayAsync=_t,I.useDelayLoad=pt,I.useDelayLoadComp=we,I.useDownDrag=Ht,I.useDragSelect=Ne,I.useDragSelectByMobile=Mt,I.useDragSelectByPc=ft,I.useRouterActivated=Ue,I.useScaleImageByMobile=$t,I.useScaleImageByPc=Pt,I.useSelectable=ut,I.useSelectableByBase=dt,I.useSelectableInjectors=ct,I.useVirtualList=Se,I.vDebounceClick=We,I.vSingleClick=Ae,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|