@vc-shell/framework 2.2.0-pr263.f4e6550 → 2.3.0-pr264.08e947d
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/ai-agent/index.js +3 -3
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js +1380 -0
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js.map +1 -0
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js} +381 -246
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js → VcScheduler.vue_vue_type_script_setup_true_lang-Yy3nu65k.js} +6988 -6824
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-Yy3nu65k.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js → VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js} +1471 -1587
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js} +68 -68
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js.map} +1 -1
- package/dist/chunks/{index-CvSe3hjU.js → index-C-SEYj46.js} +2 -2
- package/dist/chunks/{index-CvSe3hjU.js.map → index-C-SEYj46.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js → vendor-vueuse-components-CoR2FSn3.js} +1 -1
- package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js.map → vendor-vueuse-components-CoR2FSn3.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js → vendor-vueuse-core-BFa9je5E.js} +83 -82
- package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js.map → vendor-vueuse-core-BFa9je5E.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js → vendor-vueuse-shared-kZH3-Km1.js} +2 -2
- package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js.map → vendor-vueuse-shared-kZH3-Km1.js.map} +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +8 -0
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts +11 -0
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +14 -0
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts +23 -0
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts +14 -0
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +1 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +12 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/sessionExpiration.d.ts +30 -0
- package/dist/core/utilities/sessionExpiration.d.ts.map +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +653 -644
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +4 -1
- package/dist/locales/en.js +4 -1
- package/dist/locales/en.json +4 -1
- package/dist/locales/types.d.ts +3 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +22 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +11 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +2 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableOrchestrator.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts +6 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useDataTableState.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts +7 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumns.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts +2 -0
- package/dist/ui/components/organisms/vc-data-table/composables/useTableColumnsResize.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/types.d.ts +7 -0
- package/dist/ui/components/organisms/vc-data-table/types.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +20 -20
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js +0 -1124
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map +0 -1
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as A, n as X, a as B, b as I, i as Z, c as q, d as
|
|
1
|
+
import { t as A, n as X, a as B, b as I, i as Z, c as q, d as ee, e as J, w as te, f as U, g as ne } from "./vendor-vueuse-shared-kZH3-Km1.js";
|
|
2
2
|
import { computed as D, ref as S, watch as R, getCurrentInstance as re, onMounted as oe, shallowRef as Y, nextTick as ie, watchEffect as ae } from "vue";
|
|
3
3
|
function M(e) {
|
|
4
4
|
var o;
|
|
@@ -7,35 +7,35 @@ function M(e) {
|
|
|
7
7
|
}
|
|
8
8
|
const C = Z ? window : void 0;
|
|
9
9
|
function k(...e) {
|
|
10
|
-
let o, t,
|
|
11
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t,
|
|
10
|
+
let o, t, u, i;
|
|
11
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, u, i] = e, o = C) : [o, t, u, i] = e, !o)
|
|
12
12
|
return B;
|
|
13
|
-
Array.isArray(t) || (t = [t]), Array.isArray(
|
|
14
|
-
const l = [],
|
|
13
|
+
Array.isArray(t) || (t = [t]), Array.isArray(u) || (u = [u]);
|
|
14
|
+
const l = [], s = () => {
|
|
15
15
|
l.forEach((n) => n()), l.length = 0;
|
|
16
16
|
}, a = (n, r, c, v) => (n.addEventListener(r, c, v), () => n.removeEventListener(r, c, v)), p = R(
|
|
17
17
|
() => [M(o), A(i)],
|
|
18
18
|
([n, r]) => {
|
|
19
|
-
if (
|
|
19
|
+
if (s(), !n)
|
|
20
20
|
return;
|
|
21
|
-
const c =
|
|
21
|
+
const c = ee(r) ? { ...r } : r;
|
|
22
22
|
l.push(
|
|
23
|
-
...t.flatMap((v) =>
|
|
23
|
+
...t.flatMap((v) => u.map((m) => a(n, v, m, c)))
|
|
24
24
|
);
|
|
25
25
|
},
|
|
26
26
|
{ immediate: !0, flush: "post" }
|
|
27
27
|
), f = () => {
|
|
28
|
-
p(),
|
|
28
|
+
p(), s();
|
|
29
29
|
};
|
|
30
30
|
return I(f), f;
|
|
31
31
|
}
|
|
32
|
-
const le = 500,
|
|
32
|
+
const le = 500, se = 10;
|
|
33
33
|
function ye(e, o, t) {
|
|
34
|
-
var
|
|
34
|
+
var u, i;
|
|
35
35
|
const l = D(() => M(e));
|
|
36
|
-
let
|
|
36
|
+
let s, a, p, f = !1;
|
|
37
37
|
function n() {
|
|
38
|
-
|
|
38
|
+
s && (clearTimeout(s), s = void 0), a = void 0, p = void 0, f = !1;
|
|
39
39
|
}
|
|
40
40
|
function r(h) {
|
|
41
41
|
var y, E, w;
|
|
@@ -51,7 +51,7 @@ function ye(e, o, t) {
|
|
|
51
51
|
(y = t?.modifiers) != null && y.self && h.target !== l.value || (n(), (E = t?.modifiers) != null && E.prevent && h.preventDefault(), (w = t?.modifiers) != null && w.stop && h.stopPropagation(), a = {
|
|
52
52
|
x: h.x,
|
|
53
53
|
y: h.y
|
|
54
|
-
}, p = h.timeStamp,
|
|
54
|
+
}, p = h.timeStamp, s = setTimeout(
|
|
55
55
|
() => {
|
|
56
56
|
f = !0, o(h);
|
|
57
57
|
},
|
|
@@ -64,10 +64,10 @@ function ye(e, o, t) {
|
|
|
64
64
|
return;
|
|
65
65
|
(E = t?.modifiers) != null && E.prevent && h.preventDefault(), (w = t?.modifiers) != null && w.stop && h.stopPropagation();
|
|
66
66
|
const L = h.x - a.x, T = h.y - a.y;
|
|
67
|
-
Math.sqrt(L * L + T * T) >= ((b = t?.distanceThreshold) != null ? b :
|
|
67
|
+
Math.sqrt(L * L + T * T) >= ((b = t?.distanceThreshold) != null ? b : se) && n();
|
|
68
68
|
}
|
|
69
69
|
const m = {
|
|
70
|
-
capture: (
|
|
70
|
+
capture: (u = t?.modifiers) == null ? void 0 : u.capture,
|
|
71
71
|
once: (i = t?.modifiers) == null ? void 0 : i.once
|
|
72
72
|
}, g = [
|
|
73
73
|
k(l, "pointerdown", c, m),
|
|
@@ -76,25 +76,25 @@ function ye(e, o, t) {
|
|
|
76
76
|
];
|
|
77
77
|
return () => g.forEach((h) => h());
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ue() {
|
|
80
80
|
const e = S(!1), o = re();
|
|
81
81
|
return o && oe(() => {
|
|
82
82
|
e.value = !0;
|
|
83
83
|
}, o), e;
|
|
84
84
|
}
|
|
85
85
|
function H(e) {
|
|
86
|
-
const o =
|
|
86
|
+
const o = ue();
|
|
87
87
|
return D(() => (o.value, !!e()));
|
|
88
88
|
}
|
|
89
89
|
function $(e, o = {}) {
|
|
90
|
-
const { window: t = C } = o,
|
|
90
|
+
const { window: t = C } = o, u = H(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
91
91
|
let i;
|
|
92
|
-
const l = S(!1),
|
|
92
|
+
const l = S(!1), s = (f) => {
|
|
93
93
|
l.value = f.matches;
|
|
94
94
|
}, a = () => {
|
|
95
|
-
i && ("removeEventListener" in i ? i.removeEventListener("change",
|
|
95
|
+
i && ("removeEventListener" in i ? i.removeEventListener("change", s) : i.removeListener(s));
|
|
96
96
|
}, p = ae(() => {
|
|
97
|
-
|
|
97
|
+
u.value && (a(), i = t.matchMedia(A(e)), "addEventListener" in i ? i.addEventListener("change", s) : i.addListener(s), l.value = i.matches);
|
|
98
98
|
});
|
|
99
99
|
return I(() => {
|
|
100
100
|
p(), a(), i = void 0;
|
|
@@ -105,21 +105,21 @@ function be(e, o = {}) {
|
|
|
105
105
|
let c = A(e[A(n)]);
|
|
106
106
|
return r != null && (c = ne(c, r)), typeof c == "number" && (c = `${c}px`), c;
|
|
107
107
|
}
|
|
108
|
-
const { window:
|
|
108
|
+
const { window: u = C, strategy: i = "min-width" } = o;
|
|
109
109
|
function l(n) {
|
|
110
|
-
return
|
|
110
|
+
return u ? u.matchMedia(n).matches : !1;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
get: () => i === "min-width" ?
|
|
112
|
+
const s = (n) => $(() => `(min-width: ${t(n)})`, o), a = (n) => $(() => `(max-width: ${t(n)})`, o), p = Object.keys(e).reduce((n, r) => (Object.defineProperty(n, r, {
|
|
113
|
+
get: () => i === "min-width" ? s(r) : a(r),
|
|
114
114
|
enumerable: !0,
|
|
115
115
|
configurable: !0
|
|
116
116
|
}), n), {});
|
|
117
117
|
function f() {
|
|
118
|
-
const n = Object.keys(e).map((r) => [r,
|
|
118
|
+
const n = Object.keys(e).map((r) => [r, s(r)]);
|
|
119
119
|
return D(() => n.filter(([, r]) => r.value).map(([r]) => r));
|
|
120
120
|
}
|
|
121
121
|
return Object.assign(p, {
|
|
122
|
-
greaterOrEqual:
|
|
122
|
+
greaterOrEqual: s,
|
|
123
123
|
smallerOrEqual: a,
|
|
124
124
|
greater(n) {
|
|
125
125
|
return $(() => `(min-width: ${t(n, 0.1)})`, o);
|
|
@@ -196,11 +196,11 @@ const ve = {
|
|
|
196
196
|
write: (e) => e.toISOString()
|
|
197
197
|
}
|
|
198
198
|
}, F = "vueuse-storage";
|
|
199
|
-
function K(e, o, t,
|
|
199
|
+
function K(e, o, t, u = {}) {
|
|
200
200
|
var i;
|
|
201
201
|
const {
|
|
202
202
|
flush: l = "pre",
|
|
203
|
-
deep:
|
|
203
|
+
deep: s = !0,
|
|
204
204
|
listenToStorageChanges: a = !0,
|
|
205
205
|
writeDefaults: p = !0,
|
|
206
206
|
mergeDefaults: f = !1,
|
|
@@ -211,7 +211,7 @@ function K(e, o, t, s = {}) {
|
|
|
211
211
|
console.error(d);
|
|
212
212
|
},
|
|
213
213
|
initOnMounted: m
|
|
214
|
-
} =
|
|
214
|
+
} = u, g = (n ? Y : S)(typeof o == "function" ? o() : o);
|
|
215
215
|
if (!t)
|
|
216
216
|
try {
|
|
217
217
|
t = G("getDefaultStorage", () => {
|
|
@@ -223,10 +223,10 @@ function K(e, o, t, s = {}) {
|
|
|
223
223
|
}
|
|
224
224
|
if (!t)
|
|
225
225
|
return g;
|
|
226
|
-
const _ = A(o), h = de(_), y = (i =
|
|
226
|
+
const _ = A(o), h = de(_), y = (i = u.serializer) != null ? i : ve[h], { pause: E, resume: w } = te(
|
|
227
227
|
g,
|
|
228
228
|
() => L(g.value),
|
|
229
|
-
{ flush: l, deep:
|
|
229
|
+
{ flush: l, deep: s, eventFilter: c }
|
|
230
230
|
);
|
|
231
231
|
r && a && q(() => {
|
|
232
232
|
k(r, "storage", x), k(r, F, W), m && x();
|
|
@@ -293,10 +293,10 @@ function Se(e = {}) {
|
|
|
293
293
|
const {
|
|
294
294
|
selector: o = "html",
|
|
295
295
|
attribute: t = "class",
|
|
296
|
-
initialValue:
|
|
296
|
+
initialValue: u = "auto",
|
|
297
297
|
window: i = C,
|
|
298
298
|
storage: l,
|
|
299
|
-
storageKey:
|
|
299
|
+
storageKey: s = "vueuse-color-scheme",
|
|
300
300
|
listenToStorageChanges: a = !0,
|
|
301
301
|
storageRef: p,
|
|
302
302
|
emitAuto: f,
|
|
@@ -306,7 +306,7 @@ function Se(e = {}) {
|
|
|
306
306
|
light: "light",
|
|
307
307
|
dark: "dark",
|
|
308
308
|
...e.modes || {}
|
|
309
|
-
}, c = me({ window: i }), v = D(() => c.value ? "dark" : "light"), m = p || (
|
|
309
|
+
}, c = me({ window: i }), v = D(() => c.value ? "dark" : "light"), m = p || (s == null ? J(u) : K(s, u, l, { window: i, listenToStorageChanges: a })), g = D(() => m.value === "auto" ? v.value : m.value), _ = G(
|
|
310
310
|
"updateHTMLAttrs",
|
|
311
311
|
(w, b, L) => {
|
|
312
312
|
const T = typeof w == "string" ? i?.document.querySelector(w) : M(w);
|
|
@@ -346,10 +346,10 @@ function Se(e = {}) {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
function Oe(e, o) {
|
|
349
|
-
const t = Y(f()),
|
|
349
|
+
const t = Y(f()), u = J(e), i = D({
|
|
350
350
|
get() {
|
|
351
351
|
var n;
|
|
352
|
-
const r =
|
|
352
|
+
const r = u.value;
|
|
353
353
|
let c = o?.getIndexOf ? o.getIndexOf(t.value, r) : r.indexOf(t.value);
|
|
354
354
|
return c < 0 && (c = (n = o?.fallbackIndex) != null ? n : 0), c;
|
|
355
355
|
},
|
|
@@ -358,23 +358,23 @@ function Oe(e, o) {
|
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
360
|
function l(n) {
|
|
361
|
-
const r =
|
|
361
|
+
const r = u.value, c = r.length, v = (n % c + c) % c, m = r[v];
|
|
362
362
|
return t.value = m, m;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function s(n = 1) {
|
|
365
365
|
return l(i.value + n);
|
|
366
366
|
}
|
|
367
367
|
function a(n = 1) {
|
|
368
|
-
return
|
|
368
|
+
return s(n);
|
|
369
369
|
}
|
|
370
370
|
function p(n = 1) {
|
|
371
|
-
return
|
|
371
|
+
return s(-n);
|
|
372
372
|
}
|
|
373
373
|
function f() {
|
|
374
374
|
var n, r;
|
|
375
375
|
return (r = A((n = o?.initialValue) != null ? n : A(e)[0])) != null ? r : void 0;
|
|
376
376
|
}
|
|
377
|
-
return R(
|
|
377
|
+
return R(u, () => l(i.value)), {
|
|
378
378
|
state: t,
|
|
379
379
|
index: i,
|
|
380
380
|
next: a,
|
|
@@ -383,14 +383,14 @@ function Oe(e, o) {
|
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function he(e, o, t = {}) {
|
|
386
|
-
const { window:
|
|
386
|
+
const { window: u = C, ...i } = t;
|
|
387
387
|
let l;
|
|
388
|
-
const
|
|
388
|
+
const s = H(() => u && "ResizeObserver" in u), a = () => {
|
|
389
389
|
l && (l.disconnect(), l = void 0);
|
|
390
390
|
}, p = D(() => Array.isArray(e) ? e.map((r) => M(r)) : [M(e)]), f = R(
|
|
391
391
|
p,
|
|
392
392
|
(r) => {
|
|
393
|
-
if (a(),
|
|
393
|
+
if (a(), s.value && u) {
|
|
394
394
|
l = new ResizeObserver(o);
|
|
395
395
|
for (const c of r)
|
|
396
396
|
c && l.observe(c, i);
|
|
@@ -401,65 +401,65 @@ function he(e, o, t = {}) {
|
|
|
401
401
|
a(), f();
|
|
402
402
|
};
|
|
403
403
|
return I(n), {
|
|
404
|
-
isSupported:
|
|
404
|
+
isSupported: s,
|
|
405
405
|
stop: n
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
function xe(e, o = { width: 0, height: 0 }, t = {}) {
|
|
409
|
-
const { window:
|
|
409
|
+
const { window: u = C, box: i = "content-box" } = t, l = D(() => {
|
|
410
410
|
var r, c;
|
|
411
411
|
return (c = (r = M(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : c.includes("svg");
|
|
412
|
-
}),
|
|
412
|
+
}), s = S(o.width), a = S(o.height), { stop: p } = he(
|
|
413
413
|
e,
|
|
414
414
|
([r]) => {
|
|
415
415
|
const c = i === "border-box" ? r.borderBoxSize : i === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
|
|
416
|
-
if (
|
|
416
|
+
if (u && l.value) {
|
|
417
417
|
const v = M(e);
|
|
418
418
|
if (v) {
|
|
419
419
|
const m = v.getBoundingClientRect();
|
|
420
|
-
|
|
420
|
+
s.value = m.width, a.value = m.height;
|
|
421
421
|
}
|
|
422
422
|
} else if (c) {
|
|
423
423
|
const v = Array.isArray(c) ? c : [c];
|
|
424
|
-
|
|
424
|
+
s.value = v.reduce((m, { inlineSize: g }) => m + g, 0), a.value = v.reduce((m, { blockSize: g }) => m + g, 0);
|
|
425
425
|
} else
|
|
426
|
-
|
|
426
|
+
s.value = r.contentRect.width, a.value = r.contentRect.height;
|
|
427
427
|
},
|
|
428
428
|
t
|
|
429
429
|
);
|
|
430
430
|
q(() => {
|
|
431
431
|
const r = M(e);
|
|
432
|
-
r && (
|
|
432
|
+
r && (s.value = "offsetWidth" in r ? r.offsetWidth : o.width, a.value = "offsetHeight" in r ? r.offsetHeight : o.height);
|
|
433
433
|
});
|
|
434
434
|
const f = R(
|
|
435
435
|
() => M(e),
|
|
436
436
|
(r) => {
|
|
437
|
-
|
|
437
|
+
s.value = r ? o.width : 0, a.value = r ? o.height : 0;
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
440
|
function n() {
|
|
441
441
|
p(), f();
|
|
442
442
|
}
|
|
443
443
|
return {
|
|
444
|
-
width:
|
|
444
|
+
width: s,
|
|
445
445
|
height: a,
|
|
446
446
|
stop: n
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
function _e(e, o, t = {}) {
|
|
450
450
|
const {
|
|
451
|
-
root:
|
|
451
|
+
root: u,
|
|
452
452
|
rootMargin: i = "0px",
|
|
453
453
|
threshold: l = 0.1,
|
|
454
|
-
window:
|
|
454
|
+
window: s = C,
|
|
455
455
|
immediate: a = !0
|
|
456
|
-
} = t, p = H(() =>
|
|
456
|
+
} = t, p = H(() => s && "IntersectionObserver" in s), f = D(() => {
|
|
457
457
|
const m = A(e);
|
|
458
458
|
return (Array.isArray(m) ? m : [m]).map(M).filter(X);
|
|
459
459
|
});
|
|
460
460
|
let n = B;
|
|
461
461
|
const r = S(a), c = p.value ? R(
|
|
462
|
-
() => [f.value, M(
|
|
462
|
+
() => [f.value, M(u), r.value],
|
|
463
463
|
([m, g]) => {
|
|
464
464
|
if (n(), !r.value || !m.length)
|
|
465
465
|
return;
|
|
@@ -495,23 +495,23 @@ function P(e) {
|
|
|
495
495
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
496
496
|
}
|
|
497
497
|
function Ee(e, o, t = {}) {
|
|
498
|
-
const { window:
|
|
499
|
-
return K(e, o,
|
|
498
|
+
const { window: u = C } = t;
|
|
499
|
+
return K(e, o, u?.localStorage, t);
|
|
500
500
|
}
|
|
501
501
|
function Me(e = {}) {
|
|
502
|
-
const { window: o = C } = e, t = o?.navigator,
|
|
502
|
+
const { window: o = C } = e, t = o?.navigator, u = H(() => t && "connection" in t), i = S(!0), l = S(!1), s = S(void 0), a = S(void 0), p = S(void 0), f = S(void 0), n = S(void 0), r = S(void 0), c = S("unknown"), v = u.value && t.connection;
|
|
503
503
|
function m() {
|
|
504
|
-
t && (i.value = t.onLine,
|
|
504
|
+
t && (i.value = t.onLine, s.value = i.value ? void 0 : Date.now(), a.value = i.value ? Date.now() : void 0, v && (p.value = v.downlink, f.value = v.downlinkMax, r.value = v.effectiveType, n.value = v.rtt, l.value = v.saveData, c.value = v.type));
|
|
505
505
|
}
|
|
506
506
|
return o && (k(o, "offline", () => {
|
|
507
|
-
i.value = !1,
|
|
507
|
+
i.value = !1, s.value = Date.now();
|
|
508
508
|
}), k(o, "online", () => {
|
|
509
509
|
i.value = !0, a.value = Date.now();
|
|
510
510
|
})), v && k(v, "change", m, !1), m(), {
|
|
511
|
-
isSupported:
|
|
511
|
+
isSupported: u,
|
|
512
512
|
isOnline: i,
|
|
513
513
|
saveData: l,
|
|
514
|
-
offlineAt:
|
|
514
|
+
offlineAt: s,
|
|
515
515
|
onlineAt: a,
|
|
516
516
|
downlink: p,
|
|
517
517
|
downlinkMax: f,
|
|
@@ -536,7 +536,7 @@ function pe(e) {
|
|
|
536
536
|
const V = /* @__PURE__ */ new WeakMap();
|
|
537
537
|
function Ae(e, o = !1) {
|
|
538
538
|
const t = S(o);
|
|
539
|
-
let
|
|
539
|
+
let u = null, i = "";
|
|
540
540
|
R(J(e), (a) => {
|
|
541
541
|
const p = P(A(a));
|
|
542
542
|
if (p) {
|
|
@@ -551,7 +551,7 @@ function Ae(e, o = !1) {
|
|
|
551
551
|
});
|
|
552
552
|
const l = () => {
|
|
553
553
|
const a = P(A(e));
|
|
554
|
-
!a || t.value || (U && (
|
|
554
|
+
!a || t.value || (U && (u = k(
|
|
555
555
|
a,
|
|
556
556
|
"touchmove",
|
|
557
557
|
(p) => {
|
|
@@ -559,28 +559,29 @@ function Ae(e, o = !1) {
|
|
|
559
559
|
},
|
|
560
560
|
{ passive: !1 }
|
|
561
561
|
)), a.style.overflow = "hidden", t.value = !0);
|
|
562
|
-
},
|
|
562
|
+
}, s = () => {
|
|
563
563
|
const a = P(A(e));
|
|
564
|
-
!a || !t.value || (U &&
|
|
564
|
+
!a || !t.value || (U && u?.(), a.style.overflow = i, V.delete(a), t.value = !1);
|
|
565
565
|
};
|
|
566
|
-
return I(
|
|
566
|
+
return I(s), D({
|
|
567
567
|
get() {
|
|
568
568
|
return t.value;
|
|
569
569
|
},
|
|
570
570
|
set(a) {
|
|
571
|
-
a ? l() :
|
|
571
|
+
a ? l() : s();
|
|
572
572
|
}
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
export {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
576
|
+
Ee as a,
|
|
577
|
+
Me as b,
|
|
578
|
+
be as c,
|
|
579
|
+
he as d,
|
|
580
|
+
Se as e,
|
|
581
|
+
Oe as f,
|
|
582
|
+
_e as g,
|
|
583
|
+
xe as h,
|
|
584
|
+
Ae as i,
|
|
584
585
|
ye as o,
|
|
585
|
-
|
|
586
|
+
k as u
|
|
586
587
|
};
|