@lazycatcloud/lzc-toolkit 0.0.87 → 0.0.89

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { ref as h, watch as K, customRef as at, getCurrentScope as rt, onScopeDispose as ut, getCurrentInstance as Ie, onMounted as le, nextTick as _e, unref as B, onUpdated as it, readonly as ct, shallowRef as dt, computed as b, onUnmounted as Me, inject as V, provide as W, defineComponent as N, h as q, render as ue, openBlock as I, createBlock as ye, Transition as Pe, withCtx as He, withDirectives as Ae, createElementBlock as F, createElementVNode as x, withModifiers as Fe, normalizeClass as ke, renderSlot as we, createCommentVNode as ze, useCssVars as We, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as Y, toDisplayString as Ye, useSlots as vt, vShow as ft, toRef as ht, Fragment as Se, mergeProps as pt, renderList as mt } from "vue";
2
- const gt = {
1
+ import { getCurrentScope as st, onScopeDispose as at, getCurrentInstance as $e, onMounted as ne, nextTick as me, ref as p, watch as K, customRef as rt, unref as R, readonly as ut, onUpdated as it, shallowRef as ct, computed as w, onUnmounted as Re, inject as V, provide as W, defineComponent as j, h as Q, render as se, openBlock as I, createBlock as Ie, Transition as Be, withCtx as Me, withDirectives as Pe, createElementBlock as A, createElementVNode as x, withModifiers as He, normalizeClass as Ae, renderSlot as ge, createCommentVNode as dt, useCssVars as Fe, normalizeProps as ve, guardReactiveProps as fe, pushScopeId as re, popScopeId as ue, normalizeStyle as Y, toDisplayString as ke, useSlots as vt, vShow as ft, toRef as ht, Fragment as we, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
2
+ const _t = {
3
3
  created(e, t) {
4
4
  let n, o;
5
5
  function l(s) {
@@ -8,15 +8,15 @@ const gt = {
8
8
  function a(s) {
9
9
  if (n === void 0)
10
10
  return;
11
- const u = s.clientX, f = s.clientY, v = Math.abs(u - n), c = Math.abs(f - o);
12
- v > 5 || c > 5 || t.value && t.value(s);
11
+ const r = s.clientX, h = s.clientY, v = Math.abs(r - n), i = Math.abs(h - o);
12
+ v > 5 || i > 5 || t.value && t.value(s);
13
13
  }
14
14
  e.__mouse_down__ = l, e.__mouse_up__ = a, e.addEventListener("mousedown", l), e.addEventListener("mouseup", a);
15
15
  },
16
16
  unmounted(e) {
17
17
  e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
18
18
  }
19
- }, Cn = {
19
+ }, Sn = {
20
20
  created(e, t) {
21
21
  const { fn: n, ms: o = 1500 } = t.value;
22
22
  let l = null;
@@ -28,170 +28,172 @@ const gt = {
28
28
  e.addEventListener("click", a);
29
29
  }
30
30
  };
31
- var xe;
32
- const be = typeof window < "u", Le = (e) => typeof e == "function";
33
- be && ((xe = window?.navigator) == null ? void 0 : xe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
34
- function ie(e) {
35
- return typeof e == "function" ? e() : B(e);
31
+ var Ce;
32
+ const le = typeof window < "u", Ee = (e) => typeof e == "function";
33
+ le && ((Ce = window?.navigator) == null ? void 0 : Ce.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
34
+ function ae(e) {
35
+ return typeof e == "function" ? e() : R(e);
36
36
  }
37
- function Ne(e, t) {
37
+ function ze(e, t) {
38
38
  function n(...o) {
39
39
  e(() => t.apply(this, o), { fn: t, thisArg: this, args: o });
40
40
  }
41
41
  return n;
42
42
  }
43
- function _t(e, t = {}) {
43
+ function yt(e, t = {}) {
44
44
  let n, o;
45
45
  return (a) => {
46
- const s = ie(e), u = ie(t.maxWait);
47
- if (n && clearTimeout(n), s <= 0 || u !== void 0 && u <= 0)
46
+ const s = ae(e), r = ae(t.maxWait);
47
+ if (n && clearTimeout(n), s <= 0 || r !== void 0 && r <= 0)
48
48
  return o && (clearTimeout(o), o = null), a();
49
- u && !o && (o = setTimeout(() => {
49
+ r && !o && (o = setTimeout(() => {
50
50
  n && clearTimeout(n), o = null, a();
51
- }, u)), n = setTimeout(() => {
51
+ }, r)), n = setTimeout(() => {
52
52
  o && clearTimeout(o), o = null, a();
53
53
  }, s);
54
54
  };
55
55
  }
56
- function yt(e, t = !0, n = !0) {
56
+ function bt(e, t = !0, n = !0) {
57
57
  let o = 0, l, a = !0;
58
58
  const s = () => {
59
59
  l && (clearTimeout(l), l = void 0);
60
60
  };
61
- return (f) => {
62
- const v = ie(e), c = Date.now() - o;
61
+ return (h) => {
62
+ const v = ae(e), i = Date.now() - o;
63
63
  if (s(), v <= 0)
64
- return o = Date.now(), f();
65
- c > v && (n || !a) ? (o = Date.now(), f()) : t && (l = setTimeout(() => {
66
- o = Date.now(), a = !0, s(), f();
64
+ return o = Date.now(), h();
65
+ i > v && (n || !a) ? (o = Date.now(), h()) : t && (l = setTimeout(() => {
66
+ o = Date.now(), a = !0, s(), h();
67
67
  }, v)), !n && !l && (l = setTimeout(() => a = !0, v)), a = !1;
68
68
  };
69
69
  }
70
70
  function wt(e) {
71
71
  return e;
72
72
  }
73
- function bt(e, t) {
73
+ function Ct(e, t) {
74
74
  let n, o, l;
75
- const a = h(!0), s = () => {
75
+ const a = p(!0), s = () => {
76
76
  a.value = !0, l();
77
77
  };
78
78
  K(e, s, { flush: "sync" });
79
- const u = Le(t) ? t : t.get, f = Le(t) ? void 0 : t.set, v = at((c, d) => (o = c, l = d, {
79
+ const r = Ee(t) ? t : t.get, h = Ee(t) ? void 0 : t.set, v = rt((i, c) => (o = i, l = c, {
80
80
  get() {
81
- return a.value && (n = u(), a.value = !1), o(), n;
81
+ return a.value && (n = r(), a.value = !1), o(), n;
82
82
  },
83
- set(i) {
84
- f?.(i);
83
+ set(d) {
84
+ h?.(d);
85
85
  }
86
86
  }));
87
87
  return Object.isExtensible(v) && (v.trigger = s), v;
88
88
  }
89
- function je(e) {
90
- return rt() ? (ut(e), !0) : !1;
89
+ function We(e) {
90
+ return st() ? (at(e), !0) : !1;
91
91
  }
92
- function Ve(e, t = 200, n = {}) {
93
- return Ne(_t(t, n), e);
92
+ function Ye(e, t = 200, n = {}) {
93
+ return ze(yt(t, n), e);
94
94
  }
95
- function Te(e, t = 200, n = !1, o = !0) {
96
- return Ne(yt(t, n, o), e);
95
+ function Se(e, t = 200, n = !1, o = !0) {
96
+ return ze(bt(t, n, o), e);
97
97
  }
98
- function Ke(e, t = !0) {
99
- Ie() ? le(e) : t ? e() : _e(e);
98
+ function je(e, t = !0) {
99
+ $e() ? ne(e) : t ? e() : me(e);
100
100
  }
101
- function Ue(e) {
101
+ function Ne(e) {
102
102
  var t;
103
- const n = ie(e);
103
+ const n = ae(e);
104
104
  return (t = n?.$el) != null ? t : n;
105
105
  }
106
- const Et = be ? window : void 0, Ct = be ? window.document : void 0;
107
- function St(e, t = !1) {
108
- const n = h(), o = () => n.value = Boolean(e());
109
- return o(), Ke(o, t), n;
106
+ const Et = le ? window : void 0, St = le ? window.document : void 0;
107
+ le && window.navigator;
108
+ le && window.location;
109
+ function xt(e, t = !1) {
110
+ const n = p(), o = () => n.value = Boolean(e());
111
+ return o(), je(o, t), n;
110
112
  }
111
- const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
112
- me[ge] = me[ge] || {};
113
- me[ge];
114
- function xt() {
115
- const e = Ie(), t = bt(() => null, () => e.proxy.$el);
116
- return it(t.trigger), le(t.trigger), t;
113
+ const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pe = "__vueuse_ssr_handlers__";
114
+ he[pe] = he[pe] || {};
115
+ he[pe];
116
+ function Lt() {
117
+ const e = $e(), t = Ct(() => null, () => e.proxy.$el);
118
+ return it(t.trigger), ne(t.trigger), t;
117
119
  }
118
- var Oe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, Ot = (e, t) => {
120
+ var xe = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Dt = (e, t) => {
119
121
  var n = {};
120
122
  for (var o in e)
121
- Lt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
122
- if (e != null && Oe)
123
- for (var o of Oe(e))
124
- t.indexOf(o) < 0 && Tt.call(e, o) && (n[o] = e[o]);
123
+ Tt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
124
+ if (e != null && xe)
125
+ for (var o of xe(e))
126
+ t.indexOf(o) < 0 && Ot.call(e, o) && (n[o] = e[o]);
125
127
  return n;
126
128
  };
127
- function Dt(e, t, n = {}) {
128
- const o = n, { window: l = Et } = o, a = Ot(o, ["window"]);
129
+ function $t(e, t, n = {}) {
130
+ const o = n, { window: l = Et } = o, a = Dt(o, ["window"]);
129
131
  let s;
130
- const u = St(() => l && "ResizeObserver" in l), f = () => {
132
+ const r = xt(() => l && "ResizeObserver" in l), h = () => {
131
133
  s && (s.disconnect(), s = void 0);
132
- }, v = K(() => Ue(e), (d) => {
133
- f(), u.value && l && d && (s = new ResizeObserver(t), s.observe(d, a));
134
- }, { immediate: !0, flush: "post" }), c = () => {
135
- f(), v();
134
+ }, v = K(() => Ne(e), (c) => {
135
+ h(), r.value && l && c && (s = new ResizeObserver(t), s.observe(c, a));
136
+ }, { immediate: !0, flush: "post" }), i = () => {
137
+ h(), v();
136
138
  };
137
- return je(c), {
138
- isSupported: u,
139
- stop: c
139
+ return We(i), {
140
+ isSupported: r,
141
+ stop: i
140
142
  };
141
143
  }
142
- function $t(e, t = { width: 0, height: 0 }, n = {}) {
143
- const { box: o = "content-box" } = n, l = h(t.width), a = h(t.height);
144
- return Dt(e, ([s]) => {
145
- const u = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
146
- u ? (l.value = u.reduce((f, { inlineSize: v }) => f + v, 0), a.value = u.reduce((f, { blockSize: v }) => f + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
147
- }, n), K(() => Ue(e), (s) => {
144
+ function Rt(e, t = { width: 0, height: 0 }, n = {}) {
145
+ const { box: o = "content-box" } = n, l = p(t.width), a = p(t.height);
146
+ return $t(e, ([s]) => {
147
+ const r = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
148
+ r ? (l.value = r.reduce((h, { inlineSize: v }) => h + v, 0), a.value = r.reduce((h, { blockSize: v }) => h + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
149
+ }, n), K(() => Ne(e), (s) => {
148
150
  l.value = s ? t.width : 0, a.value = s ? t.height : 0;
149
151
  }), {
150
152
  width: l,
151
153
  height: a
152
154
  };
153
155
  }
154
- var De;
156
+ var Le;
155
157
  (function(e) {
156
158
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
157
- })(De || (De = {}));
158
- let Rt = 0;
159
- function qe(e, t = {}) {
160
- const n = h(!1), {
161
- document: o = Ct,
159
+ })(Le || (Le = {}));
160
+ let It = 0;
161
+ function _e(e, t = {}) {
162
+ const n = p(!1), {
163
+ document: o = St,
162
164
  immediate: l = !0,
163
165
  manual: a = !1,
164
- id: s = `vueuse_styletag_${++Rt}`
165
- } = t, u = h(e);
166
- let f = () => {
166
+ id: s = `vueuse_styletag_${++It}`
167
+ } = t, r = p(e);
168
+ let h = () => {
167
169
  };
168
170
  const v = () => {
169
171
  if (!o)
170
172
  return;
171
- const d = o.getElementById(s) || o.createElement("style");
172
- d.type = "text/css", d.id = s, t.media && (d.media = t.media), o.head.appendChild(d), !n.value && (f = K(u, (i) => {
173
- d.innerText = i;
173
+ const c = o.getElementById(s) || o.createElement("style");
174
+ c.type = "text/css", c.id = s, t.media && (c.media = t.media), o.head.appendChild(c), !n.value && (h = K(r, (d) => {
175
+ c.innerText = d;
174
176
  }, { immediate: !0 }), n.value = !0);
175
- }, c = () => {
176
- !o || !n.value || (f(), o.head.removeChild(o.getElementById(s)), n.value = !1);
177
+ }, i = () => {
178
+ !o || !n.value || (h(), o.head.removeChild(o.getElementById(s)), n.value = !1);
177
179
  };
178
- return l && !a && Ke(v), a || je(c), {
180
+ return l && !a && je(v), a || We(i), {
179
181
  id: s,
180
- css: u,
181
- unload: c,
182
+ css: r,
183
+ unload: i,
182
184
  load: v,
183
- isLoaded: ct(n)
185
+ isLoaded: ut(n)
184
186
  };
185
187
  }
186
- var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Re = (e, t, n) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t) => {
188
+ var Bt = Object.defineProperty, Te = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, Oe = (e, t, n) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t) => {
187
189
  for (var n in t || (t = {}))
188
- It.call(t, n) && Re(e, n, t[n]);
189
- if ($e)
190
- for (var n of $e(t))
191
- Mt.call(t, n) && Re(e, n, t[n]);
190
+ Mt.call(t, n) && Oe(e, n, t[n]);
191
+ if (Te)
192
+ for (var n of Te(t))
193
+ Pt.call(t, n) && Oe(e, n, t[n]);
192
194
  return e;
193
195
  };
194
- const Ht = {
196
+ const At = {
195
197
  easeInSine: [0.12, 0, 0.39, 0],
196
198
  easeOutSine: [0.61, 1, 0.88, 1],
197
199
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -217,426 +219,426 @@ const Ht = {
217
219
  easeOutBack: [0.34, 1.56, 0.64, 1],
218
220
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
219
221
  };
220
- Pt({
222
+ Ht({
221
223
  linear: wt
222
- }, Ht);
223
- function At(e, t) {
224
- const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = $t(a), u = h(!0), f = Ve(Q, 100);
224
+ }, At);
225
+ function Ft(e, t) {
226
+ const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = p(null), s = Rt(a), r = p(!0), h = Ye(U, 100);
225
227
  let v;
226
- const c = dt(e), d = h(0), i = h({ start: 0, end: 10 }), r = h({ start: 0, end: l });
227
- let m = 0;
228
- const L = h([]), _ = b(() => {
229
- let { sum: C, height: w } = { sum: 0, height: 0 };
230
- return c.value.map((P, A) => (typeof o == "number" ? w = o : w = o(A), C += w, { height: w, sum: C }));
231
- }), E = b(() => J(i.value.start)), y = b(() => typeof o == "number" ? _.value.length * o : _.value[_.value.length - 1]?.sum || 0), H = b(() => {
232
- const { start: C, end: w } = r.value;
233
- return L.value.slice(C, w);
228
+ const i = ct(e), c = p(0), d = p({ start: 0, end: 10 }), u = p({ start: 0, end: l });
229
+ let f = 0;
230
+ const T = p([]), m = w(() => {
231
+ let { sum: E, height: b } = { sum: 0, height: 0 };
232
+ return i.value.map((P, H) => (typeof o == "number" ? b = o : b = o(H), E += b, { height: b, sum: E }));
233
+ }), C = w(() => X(d.value.start)), y = w(() => typeof o == "number" ? m.value.length * o : m.value[m.value.length - 1]?.sum || 0), M = w(() => {
234
+ const { start: E, end: b } = u.value;
235
+ return T.value.slice(E, b);
234
236
  });
235
- le(() => {
236
- }), Me(() => cancelAnimationFrame(v)), K(
237
- [s.width, s.height, c],
238
- ([C, w]) => {
239
- (C || w) && $();
237
+ ne(() => {
238
+ }), Re(() => cancelAnimationFrame(v)), K(
239
+ [s.width, s.height, i],
240
+ ([E, b]) => {
241
+ (E || b) && D();
240
242
  },
241
243
  { deep: !0 }
242
- ), K(d, () => {
243
- z(), f();
244
+ ), K(c, () => {
245
+ z(), h();
244
246
  });
245
247
  function z() {
246
- u.value = !1;
248
+ r.value = !1;
247
249
  }
248
- function Q() {
249
- u.value = !0, n?.();
250
+ function U() {
251
+ r.value = !0, n?.();
250
252
  }
251
- function $() {
253
+ function D() {
252
254
  cancelAnimationFrame(v), v = requestAnimationFrame(S);
253
255
  }
254
256
  function S() {
255
257
  if (a.value) {
256
- d.value = a.value.scrollTop;
257
- let C = O(d.value);
258
- m = X(C);
259
- let w = Math.max(0, C - l), P = Math.min(
260
- C + m + l,
261
- c.value.length
258
+ c.value = a.value.scrollTop;
259
+ let E = $(c.value);
260
+ f = q(E);
261
+ let b = Math.max(0, E - l), P = Math.min(
262
+ E + f + l,
263
+ i.value.length
262
264
  );
263
- i.value = { start: w, end: P }, L.value = c.value.slice(w, P).map((A, D) => ({
264
- data: A,
265
- index: D + w
266
- })), r.value.start = C - w, r.value.end = r.value.start + m;
265
+ d.value = { start: b, end: P }, T.value = i.value.slice(b, P).map((H, O) => ({
266
+ data: H,
267
+ index: O + b
268
+ })), u.value.start = E - b, u.value.end = u.value.start + f;
267
269
  }
268
270
  }
269
- function O(C) {
270
- let w = 0, P = _.value.length - 1, A = -1;
271
- for (; w <= P; ) {
272
- const D = Math.floor((w + P) / 2);
273
- _.value[D].sum >= C ? (A = D, P = D - 1) : w = D + 1;
271
+ function $(E) {
272
+ let b = 0, P = m.value.length - 1, H = -1;
273
+ for (; b <= P; ) {
274
+ const O = Math.floor((b + P) / 2);
275
+ m.value[O].sum >= E ? (H = O, P = O - 1) : b = O + 1;
274
276
  }
275
- return Math.max(0, A);
277
+ return Math.max(0, H);
276
278
  }
277
- function X(C) {
278
- let w = 0, P = 0;
279
- for (let A = C; A < _.value.length && (w++, P += _.value[A].height, !(P >= s.height.value)); A++)
279
+ function q(E) {
280
+ let b = 0, P = 0;
281
+ for (let H = E; H < m.value.length && (b++, P += m.value[H].height, !(P >= s.height.value)); H++)
280
282
  ;
281
- return w;
283
+ return b;
282
284
  }
283
- function J(C) {
285
+ function X(E) {
284
286
  if (typeof o == "number")
285
- return C * o;
286
- let w = _.value[C];
287
- return w ? w.sum - w.height : 0;
287
+ return E * o;
288
+ let b = m.value[E];
289
+ return b ? b.sum - b.height : 0;
288
290
  }
289
- function k(C) {
290
- return _.value[C] || { sum: 0, height: 0 };
291
+ function k(E) {
292
+ return m.value[E] || { sum: 0, height: 0 };
291
293
  }
292
- function ee(C) {
294
+ function J(E) {
293
295
  if (a.value) {
294
- const w = k(C);
295
- a.value.scrollTop = w.sum - w.height, S();
296
+ const b = k(E);
297
+ a.value.scrollTop = b.sum - b.height, S();
296
298
  }
297
299
  }
298
- const se = b(() => ({
300
+ const oe = w(() => ({
299
301
  style: {
300
302
  width: "100%",
301
303
  height: `${y.value}px`,
302
- pointerEvents: u.value ? void 0 : "none"
304
+ pointerEvents: r.value ? void 0 : "none"
303
305
  }
304
- })), G = b(() => ({
306
+ })), ee = w(() => ({
305
307
  style: {
306
- transform: `translate3d(0, ${E.value}px, 0)`,
308
+ transform: `translate3d(0, ${C.value}px, 0)`,
307
309
  "will-change": "transform"
308
310
  }
309
- })), te = {
311
+ })), G = {
310
312
  overflowY: "auto"
311
313
  };
312
314
  return {
313
- list: L,
314
- visiableList: H,
315
+ list: T,
316
+ visiableList: M,
315
317
  getItemHeightData: k,
316
- getoffsetTopIndex: O,
318
+ getoffsetTopIndex: $,
317
319
  totalHeight: y,
318
320
  clientHeight: s.height,
319
- scrollTo: ee,
320
- scrollTop: d,
321
- isScrollEnd: u,
321
+ scrollTo: J,
322
+ scrollTop: c,
323
+ isScrollEnd: r,
322
324
  containerProps: {
323
325
  ref: a,
324
326
  onScroll: () => {
325
- $();
327
+ D();
326
328
  },
327
- style: te
329
+ style: G
328
330
  },
329
- wrapperProps: se,
330
- innerProps: G
331
+ wrapperProps: oe,
332
+ innerProps: ee
331
333
  };
332
334
  }
333
- const Qe = Symbol(), Xe = Symbol(), Ge = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol();
334
- function Sn() {
335
+ const Ve = Symbol(), Ke = Symbol(), Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Xe = Symbol(), Ge = Symbol(), Ze = Symbol(), Je = Symbol();
336
+ function xn() {
335
337
  const { voidFn: e, boolFn: t, boolRef: n, arrayRef: o } = {
336
- voidFn: (r) => {
338
+ voidFn: (u) => {
337
339
  },
338
- boolFn: (r) => !1,
339
- boolRef: b(() => !1),
340
- arrayRef: b(() => [])
341
- }, l = V(Ze, o), a = V(Ge, t), s = V(nt, n), u = V(Xe, e), f = V(Qe, e), v = V(Je, e), c = V(et, e), d = V(tt, e), i = V(ot, e);
340
+ boolFn: (u) => !1,
341
+ boolRef: w(() => !1),
342
+ arrayRef: w(() => [])
343
+ }, l = V(qe, o), a = V(Ue, t), s = V(Ze, n), r = V(Ke, e), h = V(Ve, e), v = V(Qe, e), i = V(Xe, e), c = V(Ge, e), d = V(Je, e);
342
344
  return {
343
345
  selected: l,
344
346
  isSelected: a,
345
347
  isAllSelected: s,
346
- toggle: u,
347
- toggleAll: f,
348
+ toggle: r,
349
+ toggleAll: h,
348
350
  select: v,
349
- selectAll: c,
350
- unselect: d,
351
- unselectAll: i
351
+ selectAll: i,
352
+ unselect: c,
353
+ unselectAll: d
352
354
  };
353
355
  }
354
- function xn(e, t) {
355
- const n = h({}), o = b(() => e.value.filter((i) => n.value[i[t]])), l = b(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
356
+ function Ln(e, t) {
357
+ const n = p({}), o = w(() => e.value.filter((d) => n.value[d[t]])), l = w(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
356
358
  function a() {
357
- e.value.forEach((i) => {
358
- n.value[i[t]] = !0;
359
+ e.value.forEach((d) => {
360
+ n.value[d[t]] = !0;
359
361
  });
360
362
  }
361
363
  function s() {
362
364
  n.value = {};
363
365
  }
364
- function u(i) {
365
- i.forEach((r) => {
366
- n.value[r[t]] || (n.value[r[t]] = !0);
366
+ function r(d) {
367
+ d.forEach((u) => {
368
+ n.value[u[t]] || (n.value[u[t]] = !0);
367
369
  });
368
370
  }
369
- function f(i) {
370
- i.forEach((r) => {
371
- n.value[r[t]] && delete n.value[r[t]];
371
+ function h(d) {
372
+ d.forEach((u) => {
373
+ n.value[u[t]] && delete n.value[u[t]];
372
374
  });
373
375
  }
374
- function v(i) {
375
- return !!n.value[i[t]];
376
+ function v(d) {
377
+ return !!n.value[d[t]];
376
378
  }
377
- function c(i) {
378
- i.forEach((r) => {
379
- v(r) ? delete n.value[r[t]] : n.value[r[t]] = !0;
379
+ function i(d) {
380
+ d.forEach((u) => {
381
+ v(u) ? delete n.value[u[t]] : n.value[u[t]] = !0;
380
382
  });
381
383
  }
382
- function d() {
384
+ function c() {
383
385
  l.value ? s() : a();
384
386
  }
385
- return W(Qe, d), W(Xe, c), W(Ge, v), W(Ze, o), W(Je, u), W(et, a), W(tt, f), W(nt, l), W(ot, s), {
387
+ return W(Ve, c), W(Ke, i), W(Ue, v), W(qe, o), W(Qe, r), W(Xe, a), W(Ge, h), W(Ze, l), W(Je, s), {
386
388
  selected: o,
387
- select: u,
389
+ select: r,
388
390
  selectAll: a,
389
- unselect: f,
391
+ unselect: h,
390
392
  unselectAll: s,
391
- toggle: c,
392
- toggleAll: d,
393
+ toggle: i,
394
+ toggleAll: c,
393
395
  isSelected: v,
394
396
  isAllSelected: l
395
397
  };
396
398
  }
397
- function fe(e) {
399
+ function de(e) {
398
400
  return () => {
399
401
  console.debug(`\u9ED8\u8BA4${e}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
400
402
  };
401
403
  }
402
- function lt({
404
+ function et({
403
405
  attribute: e,
404
406
  selectWay: t = "colum",
405
407
  scrollOptions: n = {},
406
408
  getSelectMap: o = () => ({})
407
409
  }) {
408
410
  const {
409
- select: l = fe("\u9009\u62E9"),
410
- unselect: a = fe("\u53D6\u6D88\u9009\u62E9"),
411
- unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
411
+ select: l = de("\u9009\u62E9"),
412
+ unselect: a = de("\u53D6\u6D88\u9009\u62E9"),
413
+ unselectAll: s = de("\u53D6\u6D88\u5168\u9009")
412
414
  } = o();
413
- let u = {};
414
- const f = b(
415
- () => Te(t === "colum" ? U : ae, 50)
416
- ), v = /* @__PURE__ */ new Set(), c = h(!0), d = h(), i = h(!1), r = h({ x: 0, y: 0 }), m = h({ x: 0, y: 0, scrollTop: 0 }), L = new ResizeObserver(
417
- (p) => _.value = p[0].target.getBoundingClientRect()
418
- ), _ = h({}), E = h({
415
+ let r = {};
416
+ const h = w(
417
+ () => Se(t === "colum" ? tt : nt, 50)
418
+ ), v = /* @__PURE__ */ new Set(), i = p(!0), c = p(), d = p(!1), u = p({ x: 0, y: 0 }), f = p({ x: 0, y: 0, scrollTop: 0 }), T = new ResizeObserver(
419
+ (g) => m.value = g[0].target.getBoundingClientRect()
420
+ ), m = p({}), C = p({
419
421
  top: 0,
420
422
  height: 0,
421
- sync(p = !1) {
422
- E.value.top = d.value?.scrollTop || 0, p && (E.value.height = d.value?.scrollHeight || 0);
423
+ sync(g = !1) {
424
+ C.value.top = c.value?.scrollTop || 0, g && (C.value.height = c.value?.scrollHeight || 0);
423
425
  }
424
- }), y = b(() => i.value ? {
425
- left: Math.min(r.value.x, m.value.x) - _.value.left,
426
- top: Math.min(r.value.y, m.value.y) - _.value.top,
427
- width: Math.abs(r.value.x - m.value.x),
428
- height: Math.abs(r.value.y - m.value.y)
429
- } : { left: 0, top: 0, width: 0, height: 0 }), { margin: H = 50, startSpeed: z = 30, maxSpeed: Q = 30 } = n;
430
- let $;
431
- const S = H, O = z, X = Q, J = (p) => p ** 1;
426
+ }), y = w(() => d.value ? {
427
+ left: Math.min(u.value.x, f.value.x) - m.value.left,
428
+ top: Math.min(u.value.y, f.value.y) - m.value.top,
429
+ width: Math.abs(u.value.x - f.value.x),
430
+ height: Math.abs(u.value.y - f.value.y)
431
+ } : { left: 0, top: 0, width: 0, height: 0 }), { margin: M = 50, startSpeed: z = 30, maxSpeed: U = 30 } = n;
432
+ let D;
433
+ const S = M, $ = z, q = U, X = (g) => g ** 1;
432
434
  let k = 0;
433
- function ee(p) {
434
- if (cancelAnimationFrame($), k = se(p), k = Math.max(
435
- Math.min(k, X),
436
- -X
435
+ function J(g) {
436
+ if (cancelAnimationFrame(D), k = oe(g), k = Math.max(
437
+ Math.min(k, q),
438
+ -q
437
439
  ), k !== 0) {
438
- const g = d.value;
439
- if (!g || !i.value)
440
+ const _ = c.value;
441
+ if (!_ || !d.value)
440
442
  return;
441
- const M = E.value.height - _.value.height;
442
- let T = E.value.top + Number(k);
443
- T = Math.min(Math.max(0, T), M), g.scrollTop = T, te(), $ = requestAnimationFrame(() => ee(p));
443
+ const F = C.value.height - m.value.height;
444
+ let L = C.value.top + Number(k);
445
+ L = Math.min(Math.max(0, L), F), _.scrollTop = L, G(), D = requestAnimationFrame(() => J(g));
444
446
  }
445
447
  }
446
- function se(p) {
447
- if (d.value) {
448
- const M = _.value, T = M.bottom - p;
449
- if (T < S)
450
- return O * J(1 - T / S);
451
- const j = p - M.top;
452
- if (j < S)
453
- return -O * J(1 - j / S);
448
+ function oe(g) {
449
+ if (c.value) {
450
+ const F = m.value, L = F.bottom - g;
451
+ if (L < S)
452
+ return $ * X(1 - L / S);
453
+ const N = g - F.top;
454
+ if (N < S)
455
+ return -$ * X(1 - N / S);
454
456
  }
455
457
  return 0;
456
458
  }
457
- function G(p) {
458
- const g = { ...y.value, right: 0, bottom: 0 };
459
- return g.left += _.value.left, g.top += _.value.top - E.value.top, g.right = g.width + g.left, g.bottom = g.height + g.top, g.left < p.right && g.right > p.left && g.top < p.bottom && g.bottom > p.top;
460
- }
461
- function te() {
462
- E.value.sync();
463
- const { top: p, height: g } = E.value;
464
- m.value.y = Math.min(
465
- g + _.value.top,
466
- m.value.y + p - m.value.scrollTop
467
- ), m.value.scrollTop = p;
468
- }
469
- function C(p, g, M = "dynamic-styles") {
470
- let T = document.getElementById(M);
471
- T || (T = document.createElement("style"), T.id = M, document.head.appendChild(T));
472
- const j = T.sheet.cssRules, oe = j.length, st = `${p} { ${g} }`;
473
- for (let ve = 0; ve < oe; ve++) {
474
- const Ce = j[ve];
475
- if (Ce.selectorText === p && Ce.style.cssText === g)
459
+ function ee(g) {
460
+ const _ = { ...y.value, right: 0, bottom: 0 };
461
+ return _.left += m.value.left, _.top += m.value.top - C.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < g.right && _.right > g.left && _.top < g.bottom && _.bottom > g.top;
462
+ }
463
+ function G() {
464
+ C.value.sync();
465
+ const { top: g, height: _ } = C.value;
466
+ f.value.y = Math.min(
467
+ _ + m.value.top,
468
+ f.value.y + g - f.value.scrollTop
469
+ ), f.value.scrollTop = g;
470
+ }
471
+ function E(g, _, F = "dynamic-styles") {
472
+ let L = document.getElementById(F);
473
+ L || (L = document.createElement("style"), L.id = F, document.head.appendChild(L));
474
+ const N = L.sheet.cssRules, te = N.length, lt = `${g} { ${_} }`;
475
+ for (let ce = 0; ce < te; ce++) {
476
+ const be = N[ce];
477
+ if (be.selectorText === g && be.style.cssText === _)
476
478
  return;
477
479
  }
478
- T.sheet.insertRule(st, oe);
480
+ L.sheet.insertRule(lt, te);
479
481
  }
480
- function w(p, g) {
481
- c.value = !0, i.value = !0, E.value.height ? E.value.sync() : E.value.sync(!0), r.value.x = p, r.value.y = g + E.value.top, m.value.x = r.value.x, m.value.y = r.value.y, d.value?.classList.add("disable-scroll-behavior"), v.clear();
482
+ function b(g, _) {
483
+ i.value = !0, d.value = !0, C.value.height ? C.value.sync() : C.value.sync(!0), u.value.x = g, u.value.y = _ + C.value.top, f.value.x = u.value.x, f.value.y = u.value.y, c.value?.classList.add("disable-scroll-behavior"), v.clear();
482
484
  }
483
- function P(p, g, M) {
484
- !i.value || (c.value && t === "colum" && !R() && (s(), c.value = !1), M?.(), ee(g), m.value.x = Math.max(p, _.value.left), m.value.y = Math.min(
485
- g + E.value.top,
486
- E.value.height + _.value.top
487
- ), m.value.scrollTop = E.value.top, f.value());
485
+ function P(g, _, F) {
486
+ !d.value || (i.value && t === "colum" && !B() && (s(), i.value = !1), F?.(), J(_), f.value.x = Math.max(g, m.value.left), f.value.y = Math.min(
487
+ _ + C.value.top,
488
+ C.value.height + m.value.top
489
+ ), f.value.scrollTop = C.value.top, h.value());
488
490
  }
489
- function A() {
490
- i.value = !1, d.value?.classList.remove("disable-scroll-behavior");
491
+ function H() {
492
+ d.value = !1, c.value?.classList.remove("disable-scroll-behavior");
491
493
  }
492
- function D() {
493
- !i.value || (k || te(), f.value());
494
+ function O() {
495
+ !d.value || (k || G(), h.value());
494
496
  }
495
- function R() {
496
- if (!i.value)
497
+ function B() {
498
+ if (!d.value)
497
499
  return !1;
498
- const { width: p, height: g } = y.value;
499
- return !(Math.max(p, g) > 5);
500
+ const { width: g, height: _ } = y.value;
501
+ return !(Math.max(g, _) > 5);
500
502
  }
501
- function ne() {
502
- R() && s();
503
+ function ie() {
504
+ B() && s();
503
505
  }
504
- function U() {
505
- R() || d.value?.querySelectorAll(`[${e}]`).forEach((p) => {
506
- u[`${e}`] = p.getAttribute(`${e}`), G(p.getBoundingClientRect()) ? l([u]) : a([u]);
506
+ function tt() {
507
+ B() || c.value?.querySelectorAll(`[${e}]`).forEach((g) => {
508
+ r[`${e}`] = g.getAttribute(`${e}`), ee(g.getBoundingClientRect()) ? l([r]) : a([r]);
507
509
  });
508
510
  }
509
- function ae() {
510
- const p = [];
511
- let g = null, M = 0;
512
- d.value?.querySelectorAll(`[${e}]`).forEach((T, j) => {
513
- const oe = T.getAttribute(`${e}`);
514
- p.push(oe), G(T.getBoundingClientRect()) ? (g === null && (g = j), g = Math.min(g, j), M = Math.max(M, j)) : (u[`${e}`] = oe, v.has(oe) && a([u]));
511
+ function nt() {
512
+ const g = [];
513
+ let _ = null, F = 0;
514
+ c.value?.querySelectorAll(`[${e}]`).forEach((L, N) => {
515
+ const te = L.getAttribute(`${e}`);
516
+ g.push(te), ee(L.getBoundingClientRect()) ? (_ === null && (_ = N), _ = Math.min(_, N), F = Math.max(F, N)) : (r[`${e}`] = te, v.has(te) && a([r]));
515
517
  });
516
- for (let T = g; T < M + 1; T++)
517
- u[`${e}`] = p[T], l([u]), v.add(p[T]);
518
+ for (let L = _; L < F + 1; L++)
519
+ r[`${e}`] = g[L], l([r]), v.add(g[L]);
518
520
  }
519
- function re(p) {
520
- return !p?.value || (d.value = p.value, !d?.value) ? !1 : (L.observe(d.value), C(
521
+ function ot(g) {
522
+ return !g?.value || (c.value = g.value, !c?.value) ? !1 : (T.observe(c.value), E(
521
523
  ".disable-scroll-behavior",
522
524
  "scroll-behavior: unset !important;"
523
525
  ), !0);
524
526
  }
525
527
  return {
526
- init: re,
527
- dragStart: w,
528
+ init: ot,
529
+ dragStart: b,
528
530
  dragMove: P,
529
- dragEnd: A,
530
- onScroll: D,
531
- isSingleClick: R,
532
- cancelSelectAllBySingleClick: ne,
533
- selectFn: f,
531
+ dragEnd: H,
532
+ onScroll: O,
533
+ isSingleClick: B,
534
+ cancelSelectAllBySingleClick: ie,
535
+ selectFn: h,
534
536
  selectRange: y,
535
- isPressing: i,
536
- containerEl: d,
537
- observer: L
537
+ isPressing: d,
538
+ containerEl: c,
539
+ observer: T
538
540
  };
539
541
  }
540
- function Ln(e) {
541
- const t = lt(e), { observer: n, selectRange: o } = t, {
542
+ function Tn(e) {
543
+ const t = et(e), { observer: n, selectRange: o } = t, {
542
544
  onScroll: l,
543
545
  dragStart: a,
544
546
  dragMove: s,
545
- dragEnd: u,
546
- cancelSelectAllBySingleClick: f
547
- } = t, v = b(() => ({
547
+ dragEnd: r,
548
+ cancelSelectAllBySingleClick: h
549
+ } = t, v = w(() => ({
548
550
  left: `${o.value.left}px`,
549
551
  top: `${o.value.top}px`,
550
552
  width: `${o.value.width}px`,
551
553
  height: `${o.value.height}px`
552
- })), { load: c, unload: d } = qe(
554
+ })), { load: i, unload: c } = _e(
553
555
  `.drag-select-box {
554
556
  position: absolute;
555
557
  z-index: 99999;
556
558
  background-color: rgb(191 219 254);
557
559
  opacity: 0.5;
558
560
  }`
559
- ), i = N({
561
+ ), d = j({
560
562
  render() {
561
- return q("div", {
563
+ return Q("div", {
562
564
  id: "selectBoxEl",
563
565
  class: "drag-select-box",
564
566
  style: v.value
565
567
  });
566
568
  }
567
569
  });
568
- function r(y) {
570
+ function u(y) {
569
571
  y.button === 0 && a(y.x, y.y);
570
572
  }
571
- function m(y) {
573
+ function f(y) {
572
574
  s(y.x, y.y);
573
575
  }
574
- function L(y) {
575
- y.composedPath().some((z) => z?.getAttribute?.(e.attribute)) || f(), u();
576
+ function T(y) {
577
+ y.composedPath().some((z) => z?.getAttribute?.(e.attribute)) || h(), r();
576
578
  }
577
- function _(y) {
579
+ function m(y) {
578
580
  try {
579
581
  if (!t.init(y))
580
582
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
581
583
  if (!t.containerEl?.value)
582
584
  return !1;
583
- ue(q(i), t.containerEl.value), c(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", r), window.addEventListener("mousemove", m), window.addEventListener("mouseup", L);
584
- } catch (H) {
585
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", H);
585
+ se(Q(d), t.containerEl.value), i(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", u), window.addEventListener("mousemove", f), window.addEventListener("mouseup", T);
586
+ } catch (M) {
587
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", M);
586
588
  }
587
589
  }
588
- function E() {
589
- d(), n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", r), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", L);
590
+ function C() {
591
+ c(), n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", u), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", T);
590
592
  }
591
- return { init: _, unMount: E };
593
+ return { init: m, unMount: C };
592
594
  }
593
- function Tn(e, t, n = 600) {
594
- const o = lt({
595
+ function On(e, t, n = 600) {
596
+ const o = et({
595
597
  ...e,
596
598
  selectWay: "row",
597
599
  scrollOptions: {
598
600
  startSpeed: 5,
599
601
  maxSpeed: 5
600
602
  }
601
- }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: u, dragEnd: f } = o;
603
+ }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: r, dragEnd: h } = o;
602
604
  let v;
603
- function c() {
605
+ function i() {
604
606
  clearTimeout(v);
605
607
  }
606
- function d(_) {
607
- c(), _.composedPath().some((y) => !!y?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
608
- const { clientX: y, clientY: H } = _.targetTouches[0];
609
- s(y, H), t?.(), u(y, H, () => _.preventDefault()), _.preventDefault();
608
+ function c(m) {
609
+ i(), m.composedPath().some((y) => !!y?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
610
+ const { clientX: y, clientY: M } = m.targetTouches[0];
611
+ s(y, M), t?.(), r(y, M, () => m.preventDefault()), m.preventDefault();
610
612
  }, n));
611
613
  }
612
- function i(_) {
613
- c();
614
- const { clientX: E, clientY: y } = _.targetTouches[0];
615
- u(E, y, () => _.preventDefault());
614
+ function d(m) {
615
+ i();
616
+ const { clientX: C, clientY: y } = m.targetTouches[0];
617
+ r(C, y, () => m.preventDefault());
616
618
  }
617
- function r() {
618
- c(), f();
619
+ function u() {
620
+ i(), h();
619
621
  }
620
- function m(_) {
622
+ function f(m) {
621
623
  try {
622
- if (!o.init(_))
624
+ if (!o.init(m))
623
625
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
624
626
  if (!o.containerEl?.value)
625
627
  return !1;
626
- o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart", d), o.containerEl.value?.addEventListener("touchmove", i), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
627
- } catch (E) {
628
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", E);
628
+ o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart", c), o.containerEl.value?.addEventListener("touchmove", d), window.addEventListener("touchcancel", u), window.addEventListener("touchend", u);
629
+ } catch (C) {
630
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", C);
629
631
  }
630
632
  }
631
- function L() {
632
- l.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart", d), o.containerEl.value?.removeEventListener("touchmove", i), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
633
+ function T() {
634
+ l.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart", c), o.containerEl.value?.removeEventListener("touchmove", d), window.removeEventListener("touchcancel", u), window.removeEventListener("touchEnd", u);
633
635
  }
634
- return { init: m, unMount: L };
636
+ return { init: f, unMount: T };
635
637
  }
636
- const Ft = Symbol(), kt = {
638
+ const kt = Symbol(), zt = {
637
639
  key: 0,
638
640
  class: "lzc-modal"
639
- }, zt = /* @__PURE__ */ N({
641
+ }, Wt = /* @__PURE__ */ j({
640
642
  __name: "Dialog",
641
643
  props: {
642
644
  visiable: { type: Boolean, default: !1 },
@@ -648,19 +650,19 @@ const Ft = Symbol(), kt = {
648
650
  const n = e, o = () => {
649
651
  n.closeOnClickOverlay && t("update:visiable", !1);
650
652
  };
651
- return W(Ft, () => t("update:visiable", !1)), (l, a) => (I(), ye(Pe, { name: "modal" }, {
652
- default: He(() => [
653
- e.visiable ? Ae((I(), F("div", kt, [
653
+ return W(kt, () => t("update:visiable", !1)), (l, a) => (I(), Ie(Be, { name: "modal" }, {
654
+ default: Me(() => [
655
+ e.visiable ? Pe((I(), A("div", zt, [
654
656
  x("div", {
655
- onMousedown: a[0] || (a[0] = Fe(() => {
657
+ onMousedown: a[0] || (a[0] = He(() => {
656
658
  }, ["stop"])),
657
- class: ke(["lzc-dialog", e.dialogClass])
659
+ class: Ae(["lzc-dialog", e.dialogClass])
658
660
  }, [
659
- we(l.$slots, "default", {}, void 0, !0)
661
+ ge(l.$slots, "default", {}, void 0, !0)
660
662
  ], 34)
661
663
  ])), [
662
- [B(gt), () => o()]
663
- ]) : ze("", !0)
664
+ [R(_t), () => o()]
665
+ ]) : dt("", !0)
664
666
  ]),
665
667
  _: 3
666
668
  }));
@@ -671,13 +673,13 @@ const Z = (e, t) => {
671
673
  for (const [o, l] of t)
672
674
  n[o] = l;
673
675
  return n;
674
- }, Wt = /* @__PURE__ */ Z(zt, [["__scopeId", "data-v-4ff684af"]]);
675
- function On(e) {
676
+ }, Yt = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-4ff684af"]]);
677
+ function Dn(e) {
676
678
  function t(n, o) {
677
679
  const l = document.createElement("div"), a = {
678
680
  setup() {
679
- return () => q(
680
- Wt,
681
+ return () => Q(
682
+ Yt,
681
683
  {
682
684
  visiable: !0,
683
685
  "onUpdate:visiable": () => {
@@ -686,12 +688,12 @@ function On(e) {
686
688
  ...e
687
689
  },
688
690
  {
689
- default: () => q(n, o)
691
+ default: () => Q(n, o)
690
692
  }
691
693
  );
692
694
  }
693
695
  };
694
- return document.body.appendChild(l), ue(q(a), l), {
696
+ return document.body.appendChild(l), se(Q(a), l), {
695
697
  close: () => l?.remove()
696
698
  };
697
699
  }
@@ -699,12 +701,12 @@ function On(e) {
699
701
  create: t
700
702
  };
701
703
  }
702
- function Yt({
704
+ function jt({
703
705
  component: e,
704
706
  componentProps: t,
705
707
  delay: n = 300
706
708
  }) {
707
- const o = `${n}ms`, { load: l } = qe(
709
+ const o = `${n}ms`, { load: l } = _e(
708
710
  `@keyframes lzcDelayLoad {
709
711
  to {
710
712
  opacity: 1;
@@ -715,25 +717,25 @@ function Yt({
715
717
  animation: lzcDelayLoad 0s ${o} forwards;
716
718
  }`
717
719
  );
718
- return { LoadingComp: N({
720
+ return { LoadingComp: j({
719
721
  setup() {
720
- const s = xt();
721
- return le(() => {
722
+ const s = Lt();
723
+ return ne(() => {
722
724
  l(), s.value.classList.add("lzc-delay-loading");
723
- }), () => q(e, t);
725
+ }), () => Q(e, t);
724
726
  }
725
727
  }) };
726
728
  }
727
- function Dn({
729
+ function $n({
728
730
  component: e,
729
731
  componentProps: t,
730
732
  delay: n = 300
731
733
  }) {
732
- const { LoadingComp: o } = Yt({
734
+ const { LoadingComp: o } = jt({
733
735
  component: e,
734
736
  componentProps: t,
735
737
  delay: n
736
- }), l = h(!1);
738
+ }), l = p(!1);
737
739
  function a() {
738
740
  l.value = !0;
739
741
  }
@@ -742,24 +744,24 @@ function Dn({
742
744
  }
743
745
  return { LoadingComp: o, loading: l, load: a, unload: s };
744
746
  }
745
- const Nt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), jt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ x("div", { class: "ldio-mm5gwljcryb" }, [
747
+ const Nt = (e) => (re("data-v-d0ad7597"), e = e(), ue(), e), Vt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ x("div", { class: "ldio-mm5gwljcryb" }, [
746
748
  /* @__PURE__ */ x("div")
747
- ], -1)), Vt = [
748
- jt
749
- ], Kt = /* @__PURE__ */ N({
749
+ ], -1)), Kt = [
750
+ Vt
751
+ ], Ut = /* @__PURE__ */ j({
750
752
  __name: "DefaultLoading",
751
753
  props: {
752
754
  width: { default: 24 },
753
755
  height: { default: 24 }
754
756
  },
755
757
  setup(e) {
756
- return We((t) => ({
758
+ return Fe((t) => ({
757
759
  d8dfa9f0: e.width + "px",
758
760
  "2941c2e5": e.height + "px"
759
- })), (t, n) => (I(), F("div", he(pe(t.$attrs)), Vt, 16));
761
+ })), (t, n) => (I(), A("div", ve(fe(t.$attrs)), Kt, 16));
760
762
  }
761
763
  });
762
- const $n = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-d0ad7597"]]), Ut = ["onClick"], qt = /* @__PURE__ */ N({
764
+ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ j({
763
765
  __name: "Toast",
764
766
  props: {
765
767
  message: null,
@@ -767,7 +769,7 @@ const $n = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-d0ad7597"]]), Ut = ["onC
767
769
  buttonClickEvent: null
768
770
  },
769
771
  setup(e) {
770
- const t = e, n = h(), o = h(), l = h(), a = b(() => {
772
+ const t = e, n = p(), o = p(), l = p(), a = w(() => {
771
773
  switch (t.position) {
772
774
  case "top":
773
775
  return 10;
@@ -776,14 +778,14 @@ const $n = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-d0ad7597"]]), Ut = ["onC
776
778
  case "bottom":
777
779
  return 85;
778
780
  }
779
- }), s = b(() => ({
781
+ }), s = w(() => ({
780
782
  position: "absolute",
781
783
  borderRadius: "10px",
782
784
  backgroundColor: "rgba(0, 0, 0, 0.8)",
783
785
  padding: "14px 19px",
784
786
  top: `calc(${a.value}% - ${l.value}px)`,
785
787
  left: `calc(50% - ${o.value}px)`
786
- })), u = b(() => ({
788
+ })), r = w(() => ({
787
789
  width: "fit-content",
788
790
  display: "flex",
789
791
  justifyContent: "center",
@@ -791,44 +793,44 @@ const $n = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-d0ad7597"]]), Ut = ["onC
791
793
  color: "white",
792
794
  fontSize: "14px"
793
795
  }));
794
- function f() {
796
+ function h() {
795
797
  !t.buttonClickEvent || t.buttonClickEvent();
796
798
  }
797
- return _e(() => {
799
+ return me(() => {
798
800
  o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
799
- }), (v, c) => (I(), F("div", {
800
- onClick: Fe(f, ["stop"]),
801
+ }), (v, i) => (I(), A("div", {
802
+ onClick: He(h, ["stop"]),
801
803
  id: "toastWrapper",
802
804
  ref_key: "toastWrapper",
803
805
  ref: n,
804
806
  class: "toastWrapper",
805
- style: Y([B(s), { zIndex: 9999999 }])
807
+ style: Y([R(s), { zIndex: 9999999 }])
806
808
  }, [
807
809
  x("div", {
808
- style: Y(B(u))
810
+ style: Y(R(r))
809
811
  }, [
810
- x("span", null, Ye(e.message), 1)
812
+ x("span", null, ke(e.message), 1)
811
813
  ], 4)
812
- ], 12, Ut));
814
+ ], 12, qt));
813
815
  }
814
816
  });
815
- const Qt = /* @__PURE__ */ Z(qt, [["__scopeId", "data-v-533e986b"]]), Be = {
817
+ const Xt = /* @__PURE__ */ Z(Qt, [["__scopeId", "data-v-533e986b"]]), De = {
816
818
  message: "\u61D2\u732B\u4E91 Yes!!!",
817
819
  position: "middle",
818
820
  duration: 1500,
819
821
  buttonClickEvent: () => {
820
822
  }
821
823
  };
822
- class Rn {
824
+ class In {
823
825
  options;
824
826
  container;
825
827
  constructor(t) {
826
828
  this.options = t, this.container = document.createElement("div");
827
829
  }
828
830
  present() {
829
- const t = q(q(Qt), { ...Be, ...this.options });
830
- ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
831
- const n = this.options.duration || Be.duration;
831
+ const t = Q(Q(Xt), { ...De, ...this.options });
832
+ se(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
833
+ const n = this.options.duration || De.duration;
832
834
  setTimeout(() => {
833
835
  this.dismiss();
834
836
  }, n);
@@ -839,12 +841,12 @@ class Rn {
839
841
  "#toastWrapper"
840
842
  );
841
843
  t.style.opacity = "0", t.style.transition = "opacity 0.4s ease-in", setTimeout(() => {
842
- this.container && (ue(null, this.container), document.body.removeChild(this.container));
844
+ this.container && (se(null, this.container), document.body.removeChild(this.container));
843
845
  }, 500);
844
846
  }
845
847
  }
846
848
  }
847
- const Xt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ N({
849
+ const Gt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ j({
848
850
  __name: "SvgIcon",
849
851
  props: {
850
852
  name: null,
@@ -854,187 +856,189 @@ const Xt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ N({
854
856
  height: null
855
857
  },
856
858
  setup(e) {
857
- const t = e, n = b(() => `#${t.prefix}-${t.name}`), o = b(() => ({
859
+ const t = e, n = w(() => `#${t.prefix}-${t.name}`), o = w(() => ({
858
860
  width: `${t.width ?? t.height}px`,
859
861
  height: `${t.height ?? t.width}px`,
860
862
  aspectRatio: t.width && t.height ? void 0 : "1/1"
861
863
  }));
862
- return (l, a) => (I(), F("svg", {
864
+ return (l, a) => (I(), A("svg", {
863
865
  "aria-hidden": "",
864
- style: Y(B(o))
866
+ style: Y(R(o))
865
867
  }, [
866
868
  x("use", {
867
- "xlink:href": B(n),
869
+ "xlink:href": R(n),
868
870
  fill: e.color,
869
871
  color: e.color
870
- }, null, 8, Xt)
872
+ }, null, 8, Gt)
871
873
  ], 4));
872
874
  }
873
875
  });
874
- function Gt(e) {
876
+ function Zt(e) {
875
877
  const {
876
878
  containerEl: t,
877
879
  sliderEl: n,
878
880
  autoHeight: o,
879
881
  performance: l = {},
880
- maxHeightRatio: a = 0.9
881
- } = e, s = h(!0), u = Ve(X, 100);
882
- let f, v = "";
883
- const c = h(0), d = h(0), i = h(0), r = h({
882
+ maxHeightRatio: a = 0.9,
883
+ observeMethod: s = "classList"
884
+ } = e, r = p(!0), h = Ye(X, 100);
885
+ let v, i = "";
886
+ const c = p(0), d = p(0), u = p(0), f = p({
884
887
  top: 0,
885
888
  scrollTop: 0,
886
889
  scrollHeight: 0,
887
890
  clientHeight: 0
888
- }), m = h({
891
+ }), T = p({
889
892
  clientHeight: 0
890
- }), L = b(() => !!d.value), _ = b(() => r.value.scrollHeight > r.value.clientHeight), E = b(() => o ? r.value.clientHeight - z.value : r.value.clientHeight - m.value.clientHeight), y = b(() => r.value.scrollHeight - r.value.clientHeight), H = b(() => Math.max(
891
- r.value.clientHeight / r.value.scrollHeight,
893
+ }), m = w(() => !!d.value), C = w(() => f.value.scrollHeight > f.value.clientHeight), y = w(() => o ? f.value.clientHeight - U.value : f.value.clientHeight - T.value.clientHeight), M = w(() => f.value.scrollHeight - f.value.clientHeight), z = w(() => Math.max(
894
+ f.value.clientHeight / f.value.scrollHeight,
892
895
  0.05
893
- )), z = b(() => H.value > a ? 0 : H.value * r.value.clientHeight), Q = b(() => ({
896
+ )), U = w(() => z.value > a ? 0 : z.value * f.value.clientHeight), D = w(() => ({
894
897
  willChange: "transform",
895
- transform: `translate3d(0,${i.value}px,0)`,
896
- height: o ? `${z.value}px` : void 0
898
+ transform: `translate3d(0,${u.value}px,0)`,
899
+ height: o ? `${U.value}px` : void 0
897
900
  }));
898
- function $(D) {
899
- O(), d.value = D.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
901
+ function S(O) {
902
+ q(), d.value = O.clientY - n.value.getBoundingClientRect().top || 1, i = getComputedStyle(t.value).scrollBehavior, i === "smooth" && (t.value.style.scrollBehavior = "unset");
900
903
  }
901
- function S() {
902
- t.value.style.scrollBehavior = v, d.value = 0, u();
904
+ function $() {
905
+ t.value.style.scrollBehavior = i, d.value = 0, h();
903
906
  }
904
- function O() {
905
- s.value = !1;
907
+ function q() {
908
+ r.value = !1;
906
909
  }
907
910
  function X() {
908
- L.value || (s.value = !0);
911
+ m.value || (r.value = !0);
909
912
  }
910
- function J(D) {
911
- if (!L.value)
913
+ function k(O) {
914
+ if (!m.value)
912
915
  return;
913
- let R = D.clientY - r.value.top - d.value;
914
- R < 0 ? i.value = 0 : R >= E.value ? i.value = E.value : i.value = R, t.value.scrollTo({
915
- top: i.value / E.value * y.value
916
+ let B = O.clientY - f.value.top - d.value;
917
+ B < 0 ? u.value = 0 : B >= y.value ? u.value = y.value : u.value = B, t.value.scrollTo({
918
+ top: u.value / y.value * M.value
916
919
  });
917
920
  }
918
- function k() {
919
- L.value || ee();
921
+ function J() {
922
+ m.value || oe();
920
923
  }
921
- function ee() {
922
- cancelAnimationFrame(f), f = requestAnimationFrame(se);
924
+ function oe() {
925
+ cancelAnimationFrame(v), v = requestAnimationFrame(ee);
923
926
  }
924
- function se() {
925
- t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, i.value = c.value / y.value * E.value);
927
+ function ee() {
928
+ t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, u.value = c.value / M.value * y.value);
926
929
  }
927
- function G(D) {
928
- let R = "addEventListener";
929
- D === "add" ? R = "addEventListener" : R = "removeEventListener", n.value?.[R]("pointerdown", $, {
930
+ function G(O) {
931
+ let B = "addEventListener";
932
+ O === "add" ? B = "addEventListener" : B = "removeEventListener", n.value?.[B]("pointerdown", S, {
930
933
  passive: !0
931
- }), window[R]("pointermove", J, { passive: !0 }), window[R]("pointerup", S, { passive: !0 });
934
+ }), window[B]("pointermove", k, { passive: !0 }), window[B]("pointerup", $, { passive: !0 });
932
935
  }
933
- const te = new MutationObserver((D) => {
934
- D.map((ne) => ne.oldValue).join().includes("height") && C();
936
+ const E = new MutationObserver((O) => {
937
+ (s == "classList" || O.map((ie) => ie.oldValue).join().includes("height")) && b();
935
938
  });
936
- function C() {
937
- r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
939
+ function b() {
940
+ f.value.top = t.value?.getBoundingClientRect().top ?? 0, f.value.scrollHeight = t.value?.scrollHeight ?? 0, f.value.clientHeight = t.value?.clientHeight ?? 0;
938
941
  }
939
- function w() {
940
- O(), setTimeout(() => {
941
- m.value.clientHeight = n.value?.clientHeight ?? 0, X();
942
+ function P() {
943
+ q(), setTimeout(() => {
944
+ T.value.clientHeight = n.value?.clientHeight ?? 0, X();
942
945
  }, 150);
943
946
  }
944
- function P(D, R, ne = "dynamic-styles") {
945
- let U = document.getElementById(ne);
946
- U || (U = document.createElement("style"), U.id = ne, document.head.appendChild(U));
947
- const ae = U.sheet.cssRules, re = ae.length, p = `${D} { ${R} }`;
948
- for (let g = 0; g < re; g++) {
949
- const M = ae[g];
950
- if (M.selectorText === D && M.style.cssText === R)
951
- return;
952
- }
953
- U.sheet.insertRule(p, re);
954
- }
955
- function A() {
956
- t.value && n.value ? (P(
957
- ".hide-scrollbar",
958
- "scrollbar-width: none; -ms-overflow-style: none;"
959
- ), P(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", k, {
960
- passive: !0
961
- }), G("add"), te.observe(t.value, {
962
- subtree: !0,
963
- attributeOldValue: !0,
964
- attributeFilter: ["style"]
965
- }), setTimeout(() => {
966
- C();
967
- }, 100), w()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
947
+ function H() {
948
+ if (t.value && n.value) {
949
+ t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", J, {
950
+ passive: !0
951
+ }), G("add");
952
+ const O = {};
953
+ s === "classList" ? Object.assign(O, { subtree: !0, childList: !0 }) : Object.assign(O, {
954
+ subtree: !0,
955
+ attributeOldValue: !0,
956
+ attributeFilter: ["style"]
957
+ }), E.observe(t.value, O), setTimeout(() => {
958
+ b();
959
+ }, 100), P();
960
+ } else
961
+ console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
968
962
  }
969
963
  return K(c, () => {
970
- O(), u();
964
+ q(), h();
971
965
  }), {
972
- isScrollEnd: s,
973
- isDragSlider: L,
974
- offsetTop: i,
966
+ isScrollEnd: r,
967
+ isDragSlider: m,
968
+ offsetTop: u,
975
969
  scrollTop: c,
976
- scrollable: _,
977
- sliderPos: Q,
978
- init: A,
970
+ scrollable: C,
971
+ sliderPos: D,
972
+ init: H,
979
973
  modifySliderEventListener: G
980
974
  };
981
975
  }
982
- const Zt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Jt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), en = /* @__PURE__ */ N({
976
+ const Jt = (e) => (re("data-v-325297c5"), e = e(), ue(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */ j({
983
977
  __name: "ScrollBar",
984
978
  props: {
985
979
  containerEl: null,
986
980
  autoHide: { type: Boolean },
987
981
  autoHeight: { type: Boolean },
982
+ observeMethod: null,
988
983
  performance: null
989
984
  },
990
985
  setup(e, { expose: t }) {
991
- const n = e, o = !!vt().default, l = h(null), a = b(() => n.containerEl), s = Gt({
986
+ const n = e, o = !!vt().default, l = p(null), a = w(() => n.containerEl), s = Zt({
992
987
  containerEl: a,
993
988
  sliderEl: l,
994
989
  autoHeight: o ? n.autoHeight : !0,
995
- performance: n.performance
996
- }), { scrollable: u, isScrollEnd: f, sliderPos: v } = s, c = h(!1), d = n.autoHide ? b(() => c.value || !f.value) : b(() => u.value);
997
- le(() => {
998
- _e(() => {
990
+ performance: n.performance,
991
+ observeMethod: n.observeMethod
992
+ }), { scrollable: r, isScrollEnd: h, sliderPos: v } = s, i = p(!1), c = n.autoHide ? w(() => i.value || !h.value) : w(() => r.value), { load: d, unload: u } = _e(
993
+ `.hide-scrollbar {
994
+ scrollbar-width: none;
995
+ -ms-overflow-style: none;
996
+ }
997
+ .hide-scrollbar::-webkit-scrollbar {
998
+ display: none;
999
+ }`
1000
+ );
1001
+ ne(() => {
1002
+ d(), me(() => {
999
1003
  s.init();
1000
1004
  });
1001
- }), Me(() => {
1002
- s.modifySliderEventListener("remove");
1005
+ }), Re(() => {
1006
+ u(), s.modifySliderEventListener("remove");
1003
1007
  });
1004
- function i() {
1005
- c.value = !0;
1008
+ function f() {
1009
+ i.value = !0;
1006
1010
  }
1007
- function r() {
1008
- c.value = !1;
1011
+ function T() {
1012
+ i.value = !1;
1009
1013
  }
1010
- return t({ uScrollBarReturn: s }), (m, L) => (I(), ye(Pe, null, {
1011
- default: He(() => [
1012
- Ae(x("div", {
1014
+ return t({ uScrollBarReturn: s }), (m, C) => (I(), Ie(Be, null, {
1015
+ default: Me(() => [
1016
+ Pe(x("div", {
1013
1017
  ref_key: "sliderRef",
1014
1018
  ref: l,
1015
1019
  class: "slider-wrapper",
1016
- onMouseenter: i,
1017
- onMouseleave: r,
1018
- style: Y(B(v))
1020
+ onMouseenter: f,
1021
+ onMouseleave: T,
1022
+ style: Y(R(v))
1019
1023
  }, [
1020
- we(m.$slots, "default", {}, () => [
1021
- Jt
1024
+ ge(m.$slots, "default", {}, () => [
1025
+ en
1022
1026
  ], !0)
1023
1027
  ], 36), [
1024
- [ft, B(d)]
1028
+ [ft, R(c)]
1025
1029
  ])
1026
1030
  ]),
1027
1031
  _: 3
1028
1032
  }));
1029
1033
  }
1030
1034
  });
1031
- const In = /* @__PURE__ */ Z(en, [["__scopeId", "data-v-edec7292"]]), tn = (e) => (ce("data-v-18377f18"), e = e(), de(), e), nn = { class: "pull-refresh" }, on = {
1035
+ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-325297c5"]]), nn = (e) => (re("data-v-18377f18"), e = e(), ue(), e), on = { class: "pull-refresh" }, ln = {
1032
1036
  key: 0,
1033
1037
  class: "pull-arrow-circle"
1034
- }, ln = {
1038
+ }, sn = {
1035
1039
  key: 0,
1036
1040
  class: "box-load"
1037
- }, sn = { class: "left-load" }, an = { class: "right-load" }, rn = /* @__PURE__ */ tn(() => /* @__PURE__ */ x("div", { class: "among-load" }, null, -1)), un = { class: "pull-arrow" }, cn = { key: 1 }, dn = /* @__PURE__ */ N({
1041
+ }, an = { class: "left-load" }, rn = { class: "right-load" }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ x("div", { class: "among-load" }, null, -1)), cn = { class: "pull-arrow" }, dn = { key: 1 }, vn = /* @__PURE__ */ j({
1038
1042
  __name: "PullRefresh",
1039
1043
  props: {
1040
1044
  refresh: null,
@@ -1043,80 +1047,80 @@ const In = /* @__PURE__ */ Z(en, [["__scopeId", "data-v-edec7292"]]), tn = (e) =
1043
1047
  pullRefreshContainer: null
1044
1048
  },
1045
1049
  setup(e) {
1046
- const t = e, n = 0.7, o = "#2EC1CC", l = h(-999), a = h(1), s = h(0), u = h(0.3), f = h(!1), v = h(0), c = h(0), d = h(0), i = h(0), r = h(0), m = h(), L = b(() => t.scrollTop), _ = b(() => ({
1047
- transition: `${i.value}ms`,
1050
+ const t = e, n = 0.7, o = "#2EC1CC", l = p(-999), a = p(1), s = p(0), r = p(0.3), h = p(!1), v = p(0), i = p(0), c = p(0), d = p(0), u = p(0), f = p(), T = w(() => t.scrollTop), m = w(() => ({
1051
+ transition: `${d.value}ms`,
1048
1052
  transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
1049
- })), E = b(() => ({
1053
+ })), C = w(() => ({
1050
1054
  borderColor: o,
1051
- transition: i.value,
1055
+ transition: d.value,
1052
1056
  transform: `rotate(${100 + s.value}deg)`,
1053
- opacity: u.value
1057
+ opacity: r.value
1054
1058
  }));
1055
- K(r, (S) => {
1056
- S === 0 && (l.value = -50, u.value = 0.3);
1057
- }), K(c, (S) => {
1058
- if (r.value === 2)
1059
+ K(u, (S) => {
1060
+ S === 0 && (l.value = -50, r.value = 0.3);
1061
+ }), K(i, (S) => {
1062
+ if (u.value === 2)
1059
1063
  return;
1060
- const O = Math.pow(S, n);
1061
- O === 0 && (l.value = -50), O <= 50 && O > 0 && (l.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ? f.value = !0 : f.value = !1), O > 50 && (l.value = 5, u.value = 1, r.value);
1064
+ const $ = Math.pow(S, n);
1065
+ $ === 0 && (l.value = -50), $ <= 50 && $ > 0 && (l.value = $ - 45, s.value = Math.pow($, 1.5), $ > 15 ? h.value = !0 : h.value = !1), $ > 50 && (l.value = 5, r.value = 1, u.value);
1062
1066
  });
1063
- const y = h(0), H = (S) => {
1067
+ const y = p(0), M = (S) => {
1064
1068
  y.value = S.touches[0].pageY;
1065
1069
  }, z = (S) => {
1066
- const O = S.touches[0].pageY - y.value;
1067
- y.value = S.touches[0].pageY, !t.refreshOff && (!t?.refresh || r.value !== 2 && L.value === 0 && (v.value === 0 && (v.value = S.touches[0].pageY), d.value = 0, $.value.style.transition = `${d.value}ms`, i.value = 0, c.value = S.touches[0].pageY - v.value, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, O > 0 && S.preventDefault()));
1068
- }, Q = () => {
1069
- if (t.refreshOff || !t?.refresh || r.value === 2)
1070
+ const $ = S.touches[0].pageY - y.value;
1071
+ y.value = S.touches[0].pageY, !t.refreshOff && (!t?.refresh || u.value !== 2 && T.value === 0 && (v.value === 0 && (v.value = S.touches[0].pageY), c.value = 0, D.value.style.transition = `${c.value}ms`, d.value = 0, i.value = S.touches[0].pageY - v.value, D.value.style.transform = `translate3d(0, ${Math.pow(i.value, n)}px, 0)`, $ > 0 && S.preventDefault()));
1072
+ }, U = () => {
1073
+ if (t.refreshOff || !t?.refresh || u.value === 2)
1070
1074
  return;
1071
- v.value = 0, d.value = 300;
1072
- const S = Math.pow(c.value, n);
1073
- $.value.style.transition = `${d.value}ms`, S > 50 ? (r.value = 2, c.value = Math.pow(50, 1 / n), $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, i.value = 300, t?.refresh && t?.refresh().then(() => {
1074
- m.value = "\u5237\u65B0\u6210\u529F";
1075
+ v.value = 0, c.value = 300;
1076
+ const S = Math.pow(i.value, n);
1077
+ D.value.style.transition = `${c.value}ms`, S > 50 ? (u.value = 2, i.value = Math.pow(50, 1 / n), D.value.style.transform = `translate3d(0, ${Math.pow(i.value, n)}px, 0)`, d.value = 300, t?.refresh && t?.refresh().then(() => {
1078
+ f.value = "\u5237\u65B0\u6210\u529F";
1075
1079
  }).catch(() => {
1076
- m.value = "\u5237\u65B0\u5931\u8D25";
1080
+ f.value = "\u5237\u65B0\u5931\u8D25";
1077
1081
  }).finally(() => {
1078
1082
  setTimeout(() => {
1079
- r.value = 0, c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
1080
- c.value,
1083
+ u.value = 0, i.value = 0, D.value.style.transform = `translate3d(0, ${Math.pow(
1084
+ i.value,
1081
1085
  n
1082
1086
  )}px, 0)`, setTimeout(() => {
1083
- m.value = void 0;
1084
- }, i.value);
1087
+ f.value = void 0;
1088
+ }, d.value);
1085
1089
  }, 600);
1086
- })) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
1087
- }, $ = h(null);
1088
- return le(() => {
1089
- t?.refreshOff || ($.value = document.querySelector(
1090
+ })) : (i.value = 0, D.value.style.transform = `translate3d(0, ${Math.pow(i.value, n)}px, 0)`);
1091
+ }, D = p(null);
1092
+ return ne(() => {
1093
+ t?.refreshOff || (D.value = document.querySelector(
1090
1094
  t.pullRefreshContainer
1091
- ), $.value?.addEventListener("touchstart", H), $.value?.addEventListener("touchmove", z), $.value?.addEventListener("touchend", Q));
1092
- }), (S, O) => (I(), F("div", nn, [
1095
+ ), D.value?.addEventListener("touchstart", M), D.value?.addEventListener("touchmove", z), D.value?.addEventListener("touchend", U));
1096
+ }), (S, $) => (I(), A("div", on, [
1093
1097
  x("div", {
1094
1098
  class: "pull-refresh-box",
1095
- style: Y(B(_))
1099
+ style: Y(R(m))
1096
1100
  }, [
1097
- m.value ? (I(), F("div", cn, Ye(m.value), 1)) : (I(), F("div", on, [
1098
- r.value == 2 ? (I(), F("div", ln, [
1099
- x("div", sn, [
1101
+ f.value ? (I(), A("div", dn, ke(f.value), 1)) : (I(), A("div", ln, [
1102
+ u.value == 2 ? (I(), A("div", sn, [
1103
+ x("div", an, [
1100
1104
  x("div", {
1101
1105
  class: "left-circle",
1102
1106
  style: Y({ backgroundColor: o })
1103
1107
  }, null, 4)
1104
1108
  ]),
1105
- x("div", an, [
1109
+ x("div", rn, [
1106
1110
  x("div", {
1107
1111
  class: "right-circle",
1108
1112
  style: Y({ backgroundColor: o })
1109
1113
  }, null, 4)
1110
1114
  ]),
1111
- rn
1112
- ])) : (I(), F("div", {
1115
+ un
1116
+ ])) : (I(), A("div", {
1113
1117
  key: 1,
1114
1118
  class: "pull-circle-line",
1115
- style: Y(B(E))
1119
+ style: Y(R(C))
1116
1120
  }, [
1117
- x("div", un, [
1121
+ x("div", cn, [
1118
1122
  x("div", {
1119
- class: ke(["arrows", { opacity: f.value }]),
1123
+ class: Ae(["arrows", { opacity: h.value }]),
1120
1124
  style: Y({ borderBottomColor: o })
1121
1125
  }, null, 6)
1122
1126
  ])
@@ -1126,10 +1130,10 @@ const In = /* @__PURE__ */ Z(en, [["__scopeId", "data-v-edec7292"]]), tn = (e) =
1126
1130
  ]));
1127
1131
  }
1128
1132
  });
1129
- const vn = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1133
+ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1130
1134
  inheritAttrs: !1
1131
- }, hn = /* @__PURE__ */ N({
1132
- ...fn,
1135
+ }, pn = /* @__PURE__ */ j({
1136
+ ...hn,
1133
1137
  __name: "VirtualList",
1134
1138
  props: {
1135
1139
  data: null,
@@ -1140,8 +1144,8 @@ const vn = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1140
1144
  },
1141
1145
  emits: ["scrollEnd"],
1142
1146
  setup(e, { expose: t, emit: n }) {
1143
- const o = e, l = At(ht(o, "data"), {
1144
- itemHeight: (i) => o.itemHeight(o.data[i]),
1147
+ const o = e, l = Ft(ht(o, "data"), {
1148
+ itemHeight: (d) => o.itemHeight(o.data[d]),
1145
1149
  overscan: o.overscan,
1146
1150
  scrollEndHook: () => {
1147
1151
  n("scrollEnd");
@@ -1149,44 +1153,43 @@ const vn = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1149
1153
  }), {
1150
1154
  list: a,
1151
1155
  containerProps: s,
1152
- wrapperProps: u,
1153
- innerProps: f,
1156
+ wrapperProps: r,
1157
+ innerProps: h,
1154
1158
  getItemHeightData: v,
1155
- scrollTop: c
1159
+ scrollTop: i
1156
1160
  } = l;
1157
1161
  t({
1158
1162
  vListReturn: l
1159
1163
  });
1160
- const d = "virtualListWrapper" + new Date().getTime();
1161
- return (i, r) => (I(), F(Se, null, [
1162
- e.refreshOff ? ze("", !0) : (I(), ye(vn, {
1163
- key: 0,
1164
+ const c = "virtualListWrapper" + new Date().getTime();
1165
+ return (d, u) => (I(), A(we, null, [
1166
+ pt(fn, {
1164
1167
  refresh: e.refresh,
1165
1168
  refreshOff: e.refreshOff,
1166
- scrollTop: B(c),
1167
- pullRefreshContainer: "#" + d
1168
- }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"])),
1169
+ scrollTop: R(i),
1170
+ pullRefreshContainer: "#" + c
1171
+ }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
1169
1172
  x("div", {
1170
1173
  class: "virtualListWrapper",
1171
- id: d
1174
+ id: c
1172
1175
  }, [
1173
- x("div", pt({
1174
- onScrollPassive: r[0] || (r[0] = (...m) => B(s).onScroll && B(s).onScroll(...m)),
1175
- ref: B(s).ref,
1176
+ x("div", mt({
1177
+ onScrollPassive: u[0] || (u[0] = (...f) => R(s).onScroll && R(s).onScroll(...f)),
1178
+ ref: R(s).ref,
1176
1179
  class: "virtualList"
1177
- }, i.$attrs), [
1178
- x("div", he(pe(B(u))), [
1179
- x("div", he(pe(B(f))), [
1180
- (I(!0), F(Se, null, mt(B(a), ({ index: m, data: L }) => (I(), F("div", {
1181
- key: m,
1180
+ }, d.$attrs), [
1181
+ x("div", ve(fe(R(r))), [
1182
+ x("div", ve(fe(R(h))), [
1183
+ (I(!0), A(we, null, gt(R(a), ({ index: f, data: T }) => (I(), A("div", {
1184
+ key: f,
1182
1185
  style: Y({
1183
- height: `${B(v)(m).height}px`,
1186
+ height: `${R(v)(f).height}px`,
1184
1187
  display: "flex"
1185
1188
  })
1186
1189
  }, [
1187
- we(i.$slots, "default", {
1188
- data: L,
1189
- index: m
1190
+ ge(d.$slots, "default", {
1191
+ data: T,
1192
+ index: f
1190
1193
  }, void 0, !0)
1191
1194
  ], 4))), 128))
1192
1195
  ], 16)
@@ -1196,7 +1199,7 @@ const vn = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1196
1199
  ], 64));
1197
1200
  }
1198
1201
  });
1199
- const Mn = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-408120cd"]]), Ee = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), pn = { style: { position: "absolute" } }, mn = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), gn = ["width", "height"], _n = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("title", null, "logo", -1)), yn = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("g", {
1202
+ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), ye = (e) => (re("data-v-c986249d"), e = e(), ue(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("title", null, "logo", -1)), bn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("g", {
1200
1203
  id: "group-1",
1201
1204
  stroke: "none",
1202
1205
  "stroke-width": "1",
@@ -1209,9 +1212,9 @@ const Mn = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-408120cd"]]), Ee = (e) =
1209
1212
  fill: "#FFF"
1210
1213
  })
1211
1214
  ], -1)), wn = [
1212
- _n,
1213
- yn
1214
- ], bn = /* @__PURE__ */ N({
1215
+ yn,
1216
+ bn
1217
+ ], Cn = /* @__PURE__ */ j({
1215
1218
  __name: "Loading",
1216
1219
  props: {
1217
1220
  width: { default: "90" },
@@ -1220,51 +1223,51 @@ const Mn = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-408120cd"]]), Ee = (e) =
1220
1223
  },
1221
1224
  setup(e) {
1222
1225
  const t = e;
1223
- We((o) => ({
1224
- "703ef503": n
1226
+ Fe((o) => ({
1227
+ "5e400569": n
1225
1228
  }));
1226
1229
  const n = `${t.duration}ms`;
1227
- return (o, l) => (I(), F("div", pn, [
1228
- mn,
1229
- (I(), F("svg", {
1230
+ return (o, l) => (I(), A("div", mn, [
1231
+ gn,
1232
+ (I(), A("svg", {
1230
1233
  style: { position: "relative" },
1231
1234
  width: e.width,
1232
1235
  height: e.height,
1233
1236
  viewBox: "0 0 260 260",
1234
1237
  version: "1.1",
1235
1238
  xmlns: "http://www.w3.org/2000/svg"
1236
- }, wn, 8, gn))
1239
+ }, wn, 8, _n))
1237
1240
  ]));
1238
1241
  }
1239
1242
  });
1240
- const Pn = /* @__PURE__ */ Z(bn, [["__scopeId", "data-v-40e00f20"]]);
1243
+ const Hn = /* @__PURE__ */ Z(Cn, [["__scopeId", "data-v-c986249d"]]);
1241
1244
  export {
1242
- $n as DefaultLoading,
1243
- Pn as Loading,
1244
- vn as PullRefresh,
1245
- In as ScrollBar,
1245
+ Rn as DefaultLoading,
1246
+ Hn as Loading,
1247
+ fn as PullRefresh,
1248
+ Mn as ScrollBar,
1246
1249
  Bn as SvgIcon,
1247
- Rn as ToastCreator,
1248
- Mn as VirtualList,
1249
- Ze as allSelectedKey,
1250
- Ft as closeDialogKey,
1251
- On as dialogController,
1252
- nt as isAllSelectedKey,
1253
- Ge as isSelectedKey,
1254
- et as selectAllKey,
1255
- Je as selectKey,
1256
- Qe as toggleAllKey,
1257
- Xe as toggleKey,
1258
- ot as unselectAllKey,
1259
- tt as unselectKey,
1260
- Dn as useDelayLoad,
1261
- Yt as useDelayLoadComp,
1262
- lt as useDragSelect,
1263
- Tn as useDragSelectByMobile,
1264
- Ln as useDragSelectByPc,
1265
- xn as useSelectable,
1266
- Sn as useSelectableInjectors,
1267
- At as useVirtualList,
1268
- Cn as vDebounceClick,
1269
- gt as vSingleClick
1250
+ In as ToastCreator,
1251
+ Pn as VirtualList,
1252
+ qe as allSelectedKey,
1253
+ kt as closeDialogKey,
1254
+ Dn as dialogController,
1255
+ Ze as isAllSelectedKey,
1256
+ Ue as isSelectedKey,
1257
+ Xe as selectAllKey,
1258
+ Qe as selectKey,
1259
+ Ve as toggleAllKey,
1260
+ Ke as toggleKey,
1261
+ Je as unselectAllKey,
1262
+ Ge as unselectKey,
1263
+ $n as useDelayLoad,
1264
+ jt as useDelayLoadComp,
1265
+ et as useDragSelect,
1266
+ On as useDragSelectByMobile,
1267
+ Tn as useDragSelectByPc,
1268
+ Ln as useSelectable,
1269
+ xn as useSelectableInjectors,
1270
+ Ft as useVirtualList,
1271
+ Sn as vDebounceClick,
1272
+ _t as vSingleClick
1270
1273
  };