@vc-shell/framework 2.6.2-pr376.90fba6c → 2.6.2-pr377.baaccf5

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.
Files changed (41) hide show
  1. package/dist/ai-agent/index.js +3 -3
  2. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-BZ5N2o20.js → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CnlpAf5M.js} +2 -2
  3. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_script_setup_true_lang-BZ5N2o20.js.map → VcAiAgentPanel.vue_vue_type_script_setup_true_lang-CnlpAf5M.js.map} +1 -1
  4. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-at7LNGOQ.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-WY4VKA8v.js} +47 -47
  5. package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-at7LNGOQ.js.map → VcAiAgentPanel.vue_vue_type_style_index_0_lang-WY4VKA8v.js.map} +1 -1
  6. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-BTF5dXb3.js → VcScheduler.vue_vue_type_script_setup_true_lang-D63Qupyo.js} +7626 -7699
  7. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-D63Qupyo.js.map +1 -0
  8. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-CCPe6LtD.js → VcScheduler.vue_vue_type_style_index_0_lang-Yh0wHy7X.js} +119 -120
  9. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-CCPe6LtD.js.map → VcScheduler.vue_vue_type_style_index_0_lang-Yh0wHy7X.js.map} +1 -1
  10. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BduFFYXm.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BhXOhFMS.js} +2 -2
  11. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-BduFFYXm.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-BhXOhFMS.js.map} +1 -1
  12. package/dist/chunks/{index-Cjrzln8a.js → index-DFCimHiC.js} +2 -2
  13. package/dist/chunks/{index-Cjrzln8a.js.map → index-DFCimHiC.js.map} +1 -1
  14. package/dist/chunks/{vendor-vueuse-components-BTQXlUpM.js → vendor-vueuse-components-B3XvEasa.js} +1 -1
  15. package/dist/chunks/{vendor-vueuse-components-BTQXlUpM.js.map → vendor-vueuse-components-B3XvEasa.js.map} +1 -1
  16. package/dist/chunks/vendor-vueuse-core-_wFDcFkI.js +587 -0
  17. package/dist/chunks/{vendor-vueuse-core-BwXFv1rx.js.map → vendor-vueuse-core-_wFDcFkI.js.map} +1 -1
  18. package/dist/chunks/{vendor-vueuse-shared-BPTQMqzb.js → vendor-vueuse-shared-CiuC98Kk.js} +3 -3
  19. package/dist/chunks/{vendor-vueuse-shared-BPTQMqzb.js.map → vendor-vueuse-shared-CiuC98Kk.js.map} +1 -1
  20. package/dist/core/interceptors/index.d.ts.map +1 -1
  21. package/dist/dashboard/index.js +1 -1
  22. package/dist/framework.js +1036 -1023
  23. package/dist/framework.js.map +1 -1
  24. package/dist/index.css +1 -1
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  27. package/dist/ui/components/organisms/vc-data-table/components/DataTableCellRenderer.vue.d.ts.map +1 -1
  28. package/dist/ui/components/organisms/vc-data-table/components/Table.vue.d.ts.map +1 -1
  29. package/dist/ui/components/organisms/vc-data-table/components/TableRowActions.vue.d.ts.map +1 -1
  30. package/dist/ui/components/organisms/vc-data-table/components/mobile/MobileCellRenderer.vue.d.ts.map +1 -1
  31. package/dist/ui/components/organisms/vc-data-table/composables/useColumnWidthEngine.d.ts.map +1 -1
  32. package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
  33. package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
  34. package/dist/ui/components/organisms/vc-data-table/composables/useTableEditing.d.ts +4 -6
  35. package/dist/ui/components/organisms/vc-data-table/composables/useTableEditing.d.ts.map +1 -1
  36. package/dist/ui/components/organisms/vc-data-table/keys.d.ts +0 -11
  37. package/dist/ui/components/organisms/vc-data-table/keys.d.ts.map +1 -1
  38. package/dist/ui/index.js +3 -3
  39. package/package.json +4 -4
  40. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BTF5dXb3.js.map +0 -1
  41. package/dist/chunks/vendor-vueuse-core-BwXFv1rx.js +0 -627
@@ -1,627 +0,0 @@
1
- import { t as L, n as Z, a as I, b as P, i as ee, c as F, d as q, e as te, f as J, w as ne, g as re } from "./vendor-vueuse-shared-BPTQMqzb.js";
2
- import { computed as M, ref as S, watch as R, getCurrentInstance as oe, onMounted as ie, shallowRef as G, nextTick as ae, watchEffect as se } from "vue";
3
- function O(e) {
4
- var o;
5
- const t = L(e);
6
- return (o = t?.$el) != null ? o : t;
7
- }
8
- const T = ee ? window : void 0;
9
- function D(...e) {
10
- let o, t, l, s;
11
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, l, s] = e, o = T) : [o, t, l, s] = e, !o)
12
- return I;
13
- Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
14
- const c = [], d = () => {
15
- c.forEach((n) => n()), c.length = 0;
16
- }, a = (n, r, i, u) => (n.addEventListener(r, i, u), () => n.removeEventListener(r, i, u)), h = R(
17
- () => [O(o), L(s)],
18
- ([n, r]) => {
19
- if (d(), !n)
20
- return;
21
- const i = te(r) ? { ...r } : r;
22
- c.push(
23
- ...t.flatMap((u) => l.map((f) => a(n, u, f, i)))
24
- );
25
- },
26
- { immediate: !0, flush: "post" }
27
- ), v = () => {
28
- h(), d();
29
- };
30
- return P(v), v;
31
- }
32
- let U = !1;
33
- function be(e, o, t = {}) {
34
- const { window: l = T, ignore: s = [], capture: c = !0, detectIframe: d = !1 } = t;
35
- if (!l)
36
- return I;
37
- q && !U && (U = !0, Array.from(l.document.body.children).forEach((i) => i.addEventListener("click", I)), l.document.documentElement.addEventListener("click", I));
38
- let a = !0;
39
- const h = (i) => s.some((u) => {
40
- if (typeof u == "string")
41
- return Array.from(l.document.querySelectorAll(u)).some((f) => f === i.target || i.composedPath().includes(f));
42
- {
43
- const f = O(u);
44
- return f && (i.target === f || i.composedPath().includes(f));
45
- }
46
- }), n = [
47
- D(l, "click", (i) => {
48
- const u = O(e);
49
- if (!(!u || u === i.target || i.composedPath().includes(u))) {
50
- if (i.detail === 0 && (a = !h(i)), !a) {
51
- a = !0;
52
- return;
53
- }
54
- o(i);
55
- }
56
- }, { passive: !0, capture: c }),
57
- D(l, "pointerdown", (i) => {
58
- const u = O(e);
59
- a = !h(i) && !!(u && !i.composedPath().includes(u));
60
- }, { passive: !0 }),
61
- d && D(l, "blur", (i) => {
62
- setTimeout(() => {
63
- var u;
64
- const f = O(e);
65
- ((u = l.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !f?.contains(l.document.activeElement) && o(i);
66
- }, 0);
67
- })
68
- ].filter(Boolean);
69
- return () => n.forEach((i) => i());
70
- }
71
- const le = 500, ue = 10;
72
- function Se(e, o, t) {
73
- var l, s;
74
- const c = M(() => O(e));
75
- let d, a, h, v = !1;
76
- function n() {
77
- d && (clearTimeout(d), d = void 0), a = void 0, h = void 0, v = !1;
78
- }
79
- function r(p) {
80
- var y, A, w;
81
- const [b, k, C] = [h, a, v];
82
- if (n(), !t?.onMouseUp || !k || !b || (y = t?.modifiers) != null && y.self && p.target !== c.value)
83
- return;
84
- (A = t?.modifiers) != null && A.prevent && p.preventDefault(), (w = t?.modifiers) != null && w.stop && p.stopPropagation();
85
- const x = p.x - k.x, W = p.y - k.y, m = Math.sqrt(x * x + W * W);
86
- t.onMouseUp(p.timeStamp - b, m, C);
87
- }
88
- function i(p) {
89
- var y, A, w, b;
90
- (y = t?.modifiers) != null && y.self && p.target !== c.value || (n(), (A = t?.modifiers) != null && A.prevent && p.preventDefault(), (w = t?.modifiers) != null && w.stop && p.stopPropagation(), a = {
91
- x: p.x,
92
- y: p.y
93
- }, h = p.timeStamp, d = setTimeout(
94
- () => {
95
- v = !0, o(p);
96
- },
97
- (b = t?.delay) != null ? b : le
98
- ));
99
- }
100
- function u(p) {
101
- var y, A, w, b;
102
- if ((y = t?.modifiers) != null && y.self && p.target !== c.value || !a || t?.distanceThreshold === !1)
103
- return;
104
- (A = t?.modifiers) != null && A.prevent && p.preventDefault(), (w = t?.modifiers) != null && w.stop && p.stopPropagation();
105
- const k = p.x - a.x, C = p.y - a.y;
106
- Math.sqrt(k * k + C * C) >= ((b = t?.distanceThreshold) != null ? b : ue) && n();
107
- }
108
- const f = {
109
- capture: (l = t?.modifiers) == null ? void 0 : l.capture,
110
- once: (s = t?.modifiers) == null ? void 0 : s.once
111
- }, g = [
112
- D(c, "pointerdown", i, f),
113
- D(c, "pointermove", u, f),
114
- D(c, ["pointerup", "pointerleave"], r, f)
115
- ];
116
- return () => g.forEach((p) => p());
117
- }
118
- function ce() {
119
- const e = S(!1), o = oe();
120
- return o && ie(() => {
121
- e.value = !0;
122
- }, o), e;
123
- }
124
- function z(e) {
125
- const o = ce();
126
- return M(() => (o.value, !!e()));
127
- }
128
- function $(e, o = {}) {
129
- const { window: t = T } = o, l = z(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
130
- let s;
131
- const c = S(!1), d = (v) => {
132
- c.value = v.matches;
133
- }, a = () => {
134
- s && ("removeEventListener" in s ? s.removeEventListener("change", d) : s.removeListener(d));
135
- }, h = se(() => {
136
- l.value && (a(), s = t.matchMedia(L(e)), "addEventListener" in s ? s.addEventListener("change", d) : s.addListener(d), c.value = s.matches);
137
- });
138
- return P(() => {
139
- h(), a(), s = void 0;
140
- }), c;
141
- }
142
- function Oe(e, o = {}) {
143
- function t(n, r) {
144
- let i = L(e[L(n)]);
145
- return r != null && (i = re(i, r)), typeof i == "number" && (i = `${i}px`), i;
146
- }
147
- const { window: l = T, strategy: s = "min-width" } = o;
148
- function c(n) {
149
- return l ? l.matchMedia(n).matches : !1;
150
- }
151
- const d = (n) => $(() => `(min-width: ${t(n)})`, o), a = (n) => $(() => `(max-width: ${t(n)})`, o), h = Object.keys(e).reduce((n, r) => (Object.defineProperty(n, r, {
152
- get: () => s === "min-width" ? d(r) : a(r),
153
- enumerable: !0,
154
- configurable: !0
155
- }), n), {});
156
- function v() {
157
- const n = Object.keys(e).map((r) => [r, d(r)]);
158
- return M(() => n.filter(([, r]) => r.value).map(([r]) => r));
159
- }
160
- return Object.assign(h, {
161
- greaterOrEqual: d,
162
- smallerOrEqual: a,
163
- greater(n) {
164
- return $(() => `(min-width: ${t(n, 0.1)})`, o);
165
- },
166
- smaller(n) {
167
- return $(() => `(max-width: ${t(n, -0.1)})`, o);
168
- },
169
- between(n, r) {
170
- return $(() => `(min-width: ${t(n)}) and (max-width: ${t(r, -0.1)})`, o);
171
- },
172
- isGreater(n) {
173
- return c(`(min-width: ${t(n, 0.1)})`);
174
- },
175
- isGreaterOrEqual(n) {
176
- return c(`(min-width: ${t(n)})`);
177
- },
178
- isSmaller(n) {
179
- return c(`(max-width: ${t(n, -0.1)})`);
180
- },
181
- isSmallerOrEqual(n) {
182
- return c(`(max-width: ${t(n)})`);
183
- },
184
- isInBetween(n, r) {
185
- return c(`(min-width: ${t(n)}) and (max-width: ${t(r, -0.1)})`);
186
- },
187
- current: v,
188
- active() {
189
- const n = v();
190
- return M(() => n.value.length === 0 ? "" : n.value.at(-1));
191
- }
192
- });
193
- }
194
- const j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, B = "__vueuse_ssr_handlers__", de = /* @__PURE__ */ fe();
195
- function fe() {
196
- return B in j || (j[B] = j[B] || {}), j[B];
197
- }
198
- function K(e, o) {
199
- return de[e] || o;
200
- }
201
- function ve(e) {
202
- return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
203
- }
204
- const me = {
205
- boolean: {
206
- read: (e) => e === "true",
207
- write: (e) => String(e)
208
- },
209
- object: {
210
- read: (e) => JSON.parse(e),
211
- write: (e) => JSON.stringify(e)
212
- },
213
- number: {
214
- read: (e) => Number.parseFloat(e),
215
- write: (e) => String(e)
216
- },
217
- any: {
218
- read: (e) => e,
219
- write: (e) => String(e)
220
- },
221
- string: {
222
- read: (e) => e,
223
- write: (e) => String(e)
224
- },
225
- map: {
226
- read: (e) => new Map(JSON.parse(e)),
227
- write: (e) => JSON.stringify(Array.from(e.entries()))
228
- },
229
- set: {
230
- read: (e) => new Set(JSON.parse(e)),
231
- write: (e) => JSON.stringify(Array.from(e))
232
- },
233
- date: {
234
- read: (e) => new Date(e),
235
- write: (e) => e.toISOString()
236
- }
237
- }, Y = "vueuse-storage";
238
- function Q(e, o, t, l = {}) {
239
- var s;
240
- const {
241
- flush: c = "pre",
242
- deep: d = !0,
243
- listenToStorageChanges: a = !0,
244
- writeDefaults: h = !0,
245
- mergeDefaults: v = !1,
246
- shallow: n,
247
- window: r = T,
248
- eventFilter: i,
249
- onError: u = (m) => {
250
- console.error(m);
251
- },
252
- initOnMounted: f
253
- } = l, g = (n ? G : S)(typeof o == "function" ? o() : o);
254
- if (!t)
255
- try {
256
- t = K("getDefaultStorage", () => {
257
- var m;
258
- return (m = T) == null ? void 0 : m.localStorage;
259
- })();
260
- } catch (m) {
261
- u(m);
262
- }
263
- if (!t)
264
- return g;
265
- const _ = L(o), p = ve(_), y = (s = l.serializer) != null ? s : me[p], { pause: A, resume: w } = ne(
266
- g,
267
- () => k(g.value),
268
- { flush: c, deep: d, eventFilter: i }
269
- );
270
- r && a && F(() => {
271
- D(r, "storage", x), D(r, Y, W), f && x();
272
- }), f || x();
273
- function b(m, E) {
274
- r && r.dispatchEvent(new CustomEvent(Y, {
275
- detail: {
276
- key: e,
277
- oldValue: m,
278
- newValue: E,
279
- storageArea: t
280
- }
281
- }));
282
- }
283
- function k(m) {
284
- try {
285
- const E = t.getItem(e);
286
- if (m == null)
287
- b(E, null), t.removeItem(e);
288
- else {
289
- const N = y.write(m);
290
- E !== N && (t.setItem(e, N), b(E, N));
291
- }
292
- } catch (E) {
293
- u(E);
294
- }
295
- }
296
- function C(m) {
297
- const E = m ? m.newValue : t.getItem(e);
298
- if (E == null)
299
- return h && _ != null && t.setItem(e, y.write(_)), _;
300
- if (!m && v) {
301
- const N = y.read(E);
302
- return typeof v == "function" ? v(N, _) : p === "object" && !Array.isArray(N) ? { ..._, ...N } : N;
303
- } else return typeof E != "string" ? E : y.read(E);
304
- }
305
- function x(m) {
306
- if (!(m && m.storageArea !== t)) {
307
- if (m && m.key == null) {
308
- g.value = _;
309
- return;
310
- }
311
- if (!(m && m.key !== e)) {
312
- A();
313
- try {
314
- m?.newValue !== y.write(g.value) && (g.value = C(m));
315
- } catch (E) {
316
- u(E);
317
- } finally {
318
- m ? ae(w) : w();
319
- }
320
- }
321
- }
322
- }
323
- function W(m) {
324
- x(m.detail);
325
- }
326
- return g;
327
- }
328
- function he(e) {
329
- return $("(prefers-color-scheme: dark)", e);
330
- }
331
- function Ee(e = {}) {
332
- const {
333
- selector: o = "html",
334
- attribute: t = "class",
335
- initialValue: l = "auto",
336
- window: s = T,
337
- storage: c,
338
- storageKey: d = "vueuse-color-scheme",
339
- listenToStorageChanges: a = !0,
340
- storageRef: h,
341
- emitAuto: v,
342
- disableTransition: n = !0
343
- } = e, r = {
344
- auto: "",
345
- light: "light",
346
- dark: "dark",
347
- ...e.modes || {}
348
- }, i = he({ window: s }), u = M(() => i.value ? "dark" : "light"), f = h || (d == null ? J(l) : Q(d, l, c, { window: s, listenToStorageChanges: a })), g = M(() => f.value === "auto" ? u.value : f.value), _ = K(
349
- "updateHTMLAttrs",
350
- (w, b, k) => {
351
- const C = typeof w == "string" ? s?.document.querySelector(w) : O(w);
352
- if (!C)
353
- return;
354
- let x;
355
- if (n && (x = s.document.createElement("style"), x.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), s.document.head.appendChild(x)), b === "class") {
356
- const W = k.split(/\s/g);
357
- Object.values(r).flatMap((m) => (m || "").split(/\s/g)).filter(Boolean).forEach((m) => {
358
- W.includes(m) ? C.classList.add(m) : C.classList.remove(m);
359
- });
360
- } else
361
- C.setAttribute(b, k);
362
- n && (s.getComputedStyle(x).opacity, document.head.removeChild(x));
363
- }
364
- );
365
- function p(w) {
366
- var b;
367
- _(o, t, (b = r[w]) != null ? b : w);
368
- }
369
- function y(w) {
370
- e.onChanged ? e.onChanged(w, p) : p(w);
371
- }
372
- R(g, y, { flush: "post", immediate: !0 }), F(() => y(g.value));
373
- const A = M({
374
- get() {
375
- return v ? f.value : g.value;
376
- },
377
- set(w) {
378
- f.value = w;
379
- }
380
- });
381
- try {
382
- return Object.assign(A, { store: f, system: u, state: g });
383
- } catch {
384
- return A;
385
- }
386
- }
387
- function xe(e, o) {
388
- const t = G(v()), l = J(e), s = M({
389
- get() {
390
- var n;
391
- const r = l.value;
392
- let i = o?.getIndexOf ? o.getIndexOf(t.value, r) : r.indexOf(t.value);
393
- return i < 0 && (i = (n = o?.fallbackIndex) != null ? n : 0), i;
394
- },
395
- set(n) {
396
- c(n);
397
- }
398
- });
399
- function c(n) {
400
- const r = l.value, i = r.length, u = (n % i + i) % i, f = r[u];
401
- return t.value = f, f;
402
- }
403
- function d(n = 1) {
404
- return c(s.value + n);
405
- }
406
- function a(n = 1) {
407
- return d(n);
408
- }
409
- function h(n = 1) {
410
- return d(-n);
411
- }
412
- function v() {
413
- var n, r;
414
- return (r = L((n = o?.initialValue) != null ? n : L(e)[0])) != null ? r : void 0;
415
- }
416
- return R(l, () => c(s.value)), {
417
- state: t,
418
- index: s,
419
- next: a,
420
- prev: h,
421
- go: c
422
- };
423
- }
424
- function pe(e, o, t = {}) {
425
- const { window: l = T, ...s } = t;
426
- let c;
427
- const d = z(() => l && "ResizeObserver" in l), a = () => {
428
- c && (c.disconnect(), c = void 0);
429
- }, h = M(() => Array.isArray(e) ? e.map((r) => O(r)) : [O(e)]), v = R(
430
- h,
431
- (r) => {
432
- if (a(), d.value && l) {
433
- c = new ResizeObserver(o);
434
- for (const i of r)
435
- i && c.observe(i, s);
436
- }
437
- },
438
- { immediate: !0, flush: "post" }
439
- ), n = () => {
440
- a(), v();
441
- };
442
- return P(n), {
443
- isSupported: d,
444
- stop: n
445
- };
446
- }
447
- function _e(e, o = { width: 0, height: 0 }, t = {}) {
448
- const { window: l = T, box: s = "content-box" } = t, c = M(() => {
449
- var r, i;
450
- return (i = (r = O(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : i.includes("svg");
451
- }), d = S(o.width), a = S(o.height), { stop: h } = pe(
452
- e,
453
- ([r]) => {
454
- const i = s === "border-box" ? r.borderBoxSize : s === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
455
- if (l && c.value) {
456
- const u = O(e);
457
- if (u) {
458
- const f = u.getBoundingClientRect();
459
- d.value = f.width, a.value = f.height;
460
- }
461
- } else if (i) {
462
- const u = Array.isArray(i) ? i : [i];
463
- d.value = u.reduce((f, { inlineSize: g }) => f + g, 0), a.value = u.reduce((f, { blockSize: g }) => f + g, 0);
464
- } else
465
- d.value = r.contentRect.width, a.value = r.contentRect.height;
466
- },
467
- t
468
- );
469
- F(() => {
470
- const r = O(e);
471
- r && (d.value = "offsetWidth" in r ? r.offsetWidth : o.width, a.value = "offsetHeight" in r ? r.offsetHeight : o.height);
472
- });
473
- const v = R(
474
- () => O(e),
475
- (r) => {
476
- d.value = r ? o.width : 0, a.value = r ? o.height : 0;
477
- }
478
- );
479
- function n() {
480
- h(), v();
481
- }
482
- return {
483
- width: d,
484
- height: a,
485
- stop: n
486
- };
487
- }
488
- function Ae(e, o, t = {}) {
489
- const {
490
- root: l,
491
- rootMargin: s = "0px",
492
- threshold: c = 0.1,
493
- window: d = T,
494
- immediate: a = !0
495
- } = t, h = z(() => d && "IntersectionObserver" in d), v = M(() => {
496
- const f = L(e);
497
- return (Array.isArray(f) ? f : [f]).map(O).filter(Z);
498
- });
499
- let n = I;
500
- const r = S(a), i = h.value ? R(
501
- () => [v.value, O(l), r.value],
502
- ([f, g]) => {
503
- if (n(), !r.value || !f.length)
504
- return;
505
- const _ = new IntersectionObserver(
506
- o,
507
- {
508
- root: O(g),
509
- rootMargin: s,
510
- threshold: c
511
- }
512
- );
513
- f.forEach((p) => p && _.observe(p)), n = () => {
514
- _.disconnect(), n = I;
515
- };
516
- },
517
- { immediate: a, flush: "post" }
518
- ) : I, u = () => {
519
- n(), i(), r.value = !1;
520
- };
521
- return P(u), {
522
- isSupported: h,
523
- isActive: r,
524
- pause() {
525
- n(), r.value = !1;
526
- },
527
- resume() {
528
- r.value = !0;
529
- },
530
- stop: u
531
- };
532
- }
533
- function H(e) {
534
- return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
535
- }
536
- function Le(e, o, t = {}) {
537
- const { window: l = T } = t;
538
- return Q(e, o, l?.localStorage, t);
539
- }
540
- function Me(e = {}) {
541
- const { window: o = T } = e, t = o?.navigator, l = z(() => t && "connection" in t), s = S(!0), c = S(!1), d = S(void 0), a = S(void 0), h = S(void 0), v = S(void 0), n = S(void 0), r = S(void 0), i = S("unknown"), u = l.value && t.connection;
542
- function f() {
543
- t && (s.value = t.onLine, d.value = s.value ? void 0 : Date.now(), a.value = s.value ? Date.now() : void 0, u && (h.value = u.downlink, v.value = u.downlinkMax, r.value = u.effectiveType, n.value = u.rtt, c.value = u.saveData, i.value = u.type));
544
- }
545
- return o && (D(o, "offline", () => {
546
- s.value = !1, d.value = Date.now();
547
- }), D(o, "online", () => {
548
- s.value = !0, a.value = Date.now();
549
- })), u && D(u, "change", f, !1), f(), {
550
- isSupported: l,
551
- isOnline: s,
552
- saveData: c,
553
- offlineAt: d,
554
- onlineAt: a,
555
- downlink: h,
556
- downlinkMax: v,
557
- effectiveType: r,
558
- rtt: n,
559
- type: i
560
- };
561
- }
562
- function X(e) {
563
- const o = window.getComputedStyle(e);
564
- if (o.overflowX === "scroll" || o.overflowY === "scroll" || o.overflowX === "auto" && e.clientWidth < e.scrollWidth || o.overflowY === "auto" && e.clientHeight < e.scrollHeight)
565
- return !0;
566
- {
567
- const t = e.parentNode;
568
- return !t || t.tagName === "BODY" ? !1 : X(t);
569
- }
570
- }
571
- function we(e) {
572
- const o = e || window.event, t = o.target;
573
- return X(t) ? !1 : o.touches.length > 1 ? !0 : (o.preventDefault && o.preventDefault(), !1);
574
- }
575
- const V = /* @__PURE__ */ new WeakMap();
576
- function De(e, o = !1) {
577
- const t = S(o);
578
- let l = null, s = "";
579
- R(J(e), (a) => {
580
- const h = H(L(a));
581
- if (h) {
582
- const v = h;
583
- if (V.get(v) || V.set(v, v.style.overflow), v.style.overflow !== "hidden" && (s = v.style.overflow), v.style.overflow === "hidden")
584
- return t.value = !0;
585
- if (t.value)
586
- return v.style.overflow = "hidden";
587
- }
588
- }, {
589
- immediate: !0
590
- });
591
- const c = () => {
592
- const a = H(L(e));
593
- !a || t.value || (q && (l = D(
594
- a,
595
- "touchmove",
596
- (h) => {
597
- we(h);
598
- },
599
- { passive: !1 }
600
- )), a.style.overflow = "hidden", t.value = !0);
601
- }, d = () => {
602
- const a = H(L(e));
603
- !a || !t.value || (q && l?.(), a.style.overflow = s, V.delete(a), t.value = !1);
604
- };
605
- return P(d), M({
606
- get() {
607
- return t.value;
608
- },
609
- set(a) {
610
- a ? c() : d();
611
- }
612
- });
613
- }
614
- export {
615
- Le as a,
616
- Me as b,
617
- Oe as c,
618
- pe as d,
619
- Ee as e,
620
- xe as f,
621
- Ae as g,
622
- _e as h,
623
- De as i,
624
- be as j,
625
- Se as o,
626
- D as u
627
- };