@poveste/controls 0.19.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{useKbd-DQM4Oqri.es.js → FieldRoot-BOFK7006.es.js} +13 -3
- package/dist/{HstColor-DHgxKTkm.es.js → HstColor-BnPyFVL_.es.js} +54 -54
- package/dist/{HstDate-Ct5Jp_ZD.es.js → HstDate-CFGLzzai.es.js} +1401 -1235
- package/dist/{HstJson-D83KEa9o.es.js → HstJson-CClJDodg.es.js} +2310 -2298
- package/dist/{HstWrapper-Bm5H3_to.es.js → HstWrapper-CpSNPVQJ.es.js} +487 -471
- package/dist/{PopoverTrigger-BVAfE9fE.es.js → PopoverTrigger-Cu3v0RQ6.es.js} +158 -144
- package/dist/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/{VisuallyHiddenInput-0it-_FH2.es.js → VisuallyHiddenInput-o7pCu1YG.es.js} +11 -11
- package/dist/components/HstCopyIcon.vue.d.ts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +721 -608
- package/dist/style-standalone.css +36 -262
- package/dist/{useLocale-Dr4PRYn1.es.js → useLocale-Cgl4bY7N.es.js} +3 -3
- package/package.json +16 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as e from "@poveste/vendors/vue";
|
|
2
2
|
import { Comment as t, Fragment as n, Teleport as r, camelize as i, cloneVNode as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, customRef as p, defineComponent as m, getCurrentInstance as h, getCurrentScope as g, guardReactiveProps as _, h as v, inject as y, isRef as b, mergeDefaults as x, mergeProps as S, nextTick as C, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as E, onMounted as ee, onScopeDispose as D, onUnmounted as O, onUpdated as te, openBlock as k, provide as ne, reactive as re, ref as A, renderSlot as j, resolveDynamicComponent as ie, shallowReadonly as M, shallowRef as ae, toDisplayString as oe, toHandlerKey as se, toHandlers as ce, toRef as le, toRefs as ue, toValue as N, triggerRef as de, unref as P, useSlots as fe, watch as F, watchEffect as pe, watchPostEffect as me, withCtx as I, withMemo as he, withModifiers as ge } from "@poveste/vendors/vue";
|
|
3
3
|
import { defaultWindow as _e, onKeyStroke as ve, unrefElement as ye, useEventListener as be, useMounted as xe, useTimeoutFn as Se, useVModel as Ce } from "@poveste/vendors/vue-use";
|
|
4
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
4
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
5
5
|
function we(e, t) {
|
|
6
6
|
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
7
7
|
return [(t) => {
|
|
@@ -11,7 +11,7 @@ function we(e, t) {
|
|
|
11
11
|
}, (e) => (ne(r, e), e)];
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
14
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
15
15
|
function Te(e, t, n) {
|
|
16
16
|
let r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
17
17
|
bubbles: !1,
|
|
@@ -21,29 +21,30 @@ function Te(e, t, n) {
|
|
|
21
21
|
t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
24
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js
|
|
25
25
|
function Ee(e) {
|
|
26
|
-
return e
|
|
26
|
+
return e ? e.flatMap((e) => e.type === n ? Ee(e.children) : [e]) : [];
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
30
|
+
var [De, Oe] = /*#__PURE__*/ we("ConfigProvider"), ke = /* @__PURE__ */ new WeakMap();
|
|
31
|
+
function Ae(e, t) {
|
|
32
|
+
let n = ke.get(e);
|
|
33
|
+
n || (n = {
|
|
34
|
+
owners: /* @__PURE__ */ new Set(),
|
|
35
|
+
original: e.body.style.pointerEvents
|
|
36
|
+
}, ke.set(e, n)), n.owners.add(t), e.body.style.pointerEvents = "none";
|
|
37
|
+
}
|
|
38
|
+
function je(e, t) {
|
|
39
|
+
let n = ke.get(e);
|
|
40
|
+
n?.owners.delete(t) && n.owners.size === 0 && (ke.delete(e), e.body.style.pointerEvents = n.original);
|
|
32
41
|
}
|
|
33
42
|
//#endregion
|
|
34
|
-
//#region ../../node_modules/.pnpm
|
|
35
|
-
|
|
36
|
-
layersRoot: /* @__PURE__ */ new Set(),
|
|
37
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
38
|
-
originalBodyPointerEvents: void 0,
|
|
39
|
-
branches: /* @__PURE__ */ new Set()
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@15.0.0_vue@3.5.43_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
43
|
-
function Ae(e, t) {
|
|
43
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@15.0.0_vue@3.5.44_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
44
|
+
function Me(e, t) {
|
|
44
45
|
return g() ? (D(e, t), !0) : !1;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Ne() {
|
|
47
48
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
48
49
|
e.delete(t);
|
|
49
50
|
};
|
|
@@ -51,7 +52,7 @@ function je() {
|
|
|
51
52
|
on: (n) => {
|
|
52
53
|
e.add(n);
|
|
53
54
|
let r = () => t(n);
|
|
54
|
-
return
|
|
55
|
+
return Me(r), { off: r };
|
|
55
56
|
},
|
|
56
57
|
off: t,
|
|
57
58
|
trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
|
|
@@ -60,17 +61,17 @@ function je() {
|
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
|
-
var
|
|
64
|
+
var Pe = typeof window < "u" && typeof document < "u";
|
|
64
65
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
65
|
-
var
|
|
66
|
-
function
|
|
66
|
+
var Fe = /* #__PURE__ */ Ie();
|
|
67
|
+
function Ie() {
|
|
67
68
|
var e, t;
|
|
68
|
-
return
|
|
69
|
+
return Pe && !!((e = window) != null && (e = e.navigator) != null && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function Le(e) {
|
|
71
72
|
return e || h();
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function Re(e) {
|
|
74
75
|
if (!b(e)) return re(e);
|
|
75
76
|
let t = new Proxy({}, {
|
|
76
77
|
get(t, n, r) {
|
|
@@ -97,19 +98,19 @@ function Ie(e) {
|
|
|
97
98
|
});
|
|
98
99
|
return re(t);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
101
|
+
function ze(e) {
|
|
102
|
+
return Re(o(e));
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function Be(e, ...t) {
|
|
104
105
|
let n = t.flat(), r = n[0];
|
|
105
|
-
return
|
|
106
|
+
return ze(() => Object.fromEntries(typeof r == "function" ? Object.entries(ue(e)).filter(([e, t]) => !r(N(t), e)) : Object.entries(ue(e)).filter((e) => !n.includes(e[0]))));
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function Ve(e, t = 1e4) {
|
|
108
109
|
return p((n, r) => {
|
|
109
110
|
let i = N(e), a, o = () => setTimeout(() => {
|
|
110
111
|
i = N(e), r();
|
|
111
112
|
}, N(t));
|
|
112
|
-
return
|
|
113
|
+
return Me(() => {
|
|
113
114
|
clearTimeout(a);
|
|
114
115
|
}), {
|
|
115
116
|
get() {
|
|
@@ -121,10 +122,10 @@ function ze(e, t = 1e4) {
|
|
|
121
122
|
};
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
125
|
+
function He(e, t) {
|
|
126
|
+
Le(t) && E(e, t);
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function Ue(e, t, n = {}) {
|
|
128
129
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = ae(!1), o;
|
|
129
130
|
function s() {
|
|
130
131
|
o &&= (clearTimeout(o), void 0);
|
|
@@ -137,7 +138,7 @@ function Ve(e, t, n = {}) {
|
|
|
137
138
|
a.value = !1, o = void 0, e(...n);
|
|
138
139
|
}, N(t));
|
|
139
140
|
}
|
|
140
|
-
return r && (a.value = !0,
|
|
141
|
+
return r && (a.value = !0, Pe && l()), Me(c), {
|
|
141
142
|
isPending: M(a),
|
|
142
143
|
start: l,
|
|
143
144
|
stop: c
|
|
@@ -145,42 +146,42 @@ function Ve(e, t, n = {}) {
|
|
|
145
146
|
}
|
|
146
147
|
//#endregion
|
|
147
148
|
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
148
|
-
function
|
|
149
|
+
function We(e) {
|
|
149
150
|
if (typeof e != "object" || !e) return !1;
|
|
150
151
|
let t = Object.getPrototypeOf(e);
|
|
151
152
|
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
-
if (!
|
|
154
|
+
function Ge(e, t, n = ".", r) {
|
|
155
|
+
if (!We(t)) return Ge(e, {}, n, r);
|
|
155
156
|
let i = { ...t };
|
|
156
157
|
for (let t of Object.keys(e)) {
|
|
157
158
|
if (t === "__proto__" || t === "constructor") continue;
|
|
158
159
|
let a = e[t];
|
|
159
|
-
a != null && (r && r(i, t, a, n) || (i[t] = Array.isArray(a) && Array.isArray(i[t]) ? [...a, ...i[t]] :
|
|
160
|
+
a != null && (r && r(i, t, a, n) || (i[t] = Array.isArray(a) && Array.isArray(i[t]) ? [...a, ...i[t]] : We(a) && We(i[t]) ? Ge(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : a));
|
|
160
161
|
}
|
|
161
162
|
return i;
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
return (...t) => t.reduce((t, n) =>
|
|
164
|
+
function Ke(e) {
|
|
165
|
+
return (...t) => t.reduce((t, n) => Ge(t, n, "", e), {});
|
|
165
166
|
}
|
|
166
|
-
var
|
|
167
|
+
var qe = Ke();
|
|
167
168
|
//#endregion
|
|
168
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
169
|
-
function
|
|
170
|
-
let t =
|
|
169
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useDirection.js
|
|
170
|
+
function Je(e) {
|
|
171
|
+
let t = De({ dir: A("ltr") });
|
|
171
172
|
return o(() => e?.value || t.dir?.value || "ltr");
|
|
172
173
|
}
|
|
173
174
|
//#endregion
|
|
174
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
175
|
-
function
|
|
175
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useEmitAsProps.js
|
|
176
|
+
function Ye(e) {
|
|
176
177
|
let t = h(), n = t?.type.emits, r = {};
|
|
177
178
|
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
178
179
|
r[se(i(t))] = (...n) => e(t, ...n);
|
|
179
180
|
}), r;
|
|
180
181
|
}
|
|
181
182
|
//#endregion
|
|
182
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
183
|
-
function
|
|
183
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
184
|
+
function L() {
|
|
184
185
|
let e = h(), t = A(), n = o(() => r());
|
|
185
186
|
te(() => {
|
|
186
187
|
n.value !== r() && de(t);
|
|
@@ -226,8 +227,8 @@ function R() {
|
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
229
|
//#endregion
|
|
229
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
230
|
-
function
|
|
230
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardProps.js
|
|
231
|
+
function Xe(e) {
|
|
231
232
|
let t = h(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
232
233
|
let r = (t?.type.props[n]).default;
|
|
233
234
|
return r !== void 0 && (e[n] = r), e;
|
|
@@ -243,22 +244,22 @@ function Je(e) {
|
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
246
|
//#endregion
|
|
246
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
247
|
-
function
|
|
248
|
-
let n =
|
|
247
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
|
|
248
|
+
function Ze(e, t) {
|
|
249
|
+
let n = Xe(e), r = t ? Ye(t) : {};
|
|
249
250
|
return o(() => ({
|
|
250
251
|
...n.value,
|
|
251
252
|
...r
|
|
252
253
|
}));
|
|
253
254
|
}
|
|
254
255
|
//#endregion
|
|
255
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
256
|
-
function
|
|
257
|
-
let n =
|
|
258
|
-
|
|
256
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useGraceArea.js
|
|
257
|
+
function Qe(e, t) {
|
|
258
|
+
let n = Ve(!1, 300);
|
|
259
|
+
Me(() => {
|
|
259
260
|
n.value = !1;
|
|
260
261
|
});
|
|
261
|
-
let r = A(null), i =
|
|
262
|
+
let r = A(null), i = Ne();
|
|
262
263
|
function a() {
|
|
263
264
|
r.value = null, n.value = !1;
|
|
264
265
|
}
|
|
@@ -267,7 +268,7 @@ function Xe(e, t) {
|
|
|
267
268
|
let i = e.currentTarget, a = {
|
|
268
269
|
x: e.clientX,
|
|
269
270
|
y: e.clientY
|
|
270
|
-
}, o =
|
|
271
|
+
}, o = et(a, $e(a, i.getBoundingClientRect()), 1), s = tt(t.getBoundingClientRect()), c = rt([...o, ...s]);
|
|
271
272
|
r.value = c, n.value = !0;
|
|
272
273
|
}
|
|
273
274
|
return pe((n) => {
|
|
@@ -284,7 +285,7 @@ function Xe(e, t) {
|
|
|
284
285
|
let o = n.target, s = {
|
|
285
286
|
x: n.clientX,
|
|
286
287
|
y: n.clientY
|
|
287
|
-
}, c = e.value?.contains(o) || t.value?.contains(o), l = !
|
|
288
|
+
}, c = e.value?.contains(o) || t.value?.contains(o), l = !nt(s, r.value), u = !!o.closest("[data-grace-area-trigger]");
|
|
288
289
|
c ? a() : (l || u) && (a(), i.trigger());
|
|
289
290
|
}, s = e.value?.ownerDocument;
|
|
290
291
|
s?.addEventListener("pointermove", o), n(() => s?.removeEventListener("pointermove", o));
|
|
@@ -294,7 +295,7 @@ function Xe(e, t) {
|
|
|
294
295
|
onPointerExit: i.on
|
|
295
296
|
};
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
+
function $e(e, t) {
|
|
298
299
|
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
299
300
|
switch (Math.min(n, r, i, a)) {
|
|
300
301
|
case a: return "left";
|
|
@@ -304,7 +305,7 @@ function Ze(e, t) {
|
|
|
304
305
|
default: throw Error("unreachable");
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
|
-
function
|
|
308
|
+
function et(e, t, n = 5) {
|
|
308
309
|
let r = [];
|
|
309
310
|
switch (t) {
|
|
310
311
|
case "top":
|
|
@@ -344,7 +345,7 @@ function Qe(e, t, n = 5) {
|
|
|
344
345
|
}
|
|
345
346
|
return r;
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function tt(e) {
|
|
348
349
|
let { top: t, right: n, bottom: r, left: i } = e;
|
|
349
350
|
return [
|
|
350
351
|
{
|
|
@@ -365,7 +366,7 @@ function $e(e) {
|
|
|
365
366
|
}
|
|
366
367
|
];
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function nt(e, t) {
|
|
369
370
|
let { x: n, y: r } = e, i = !1;
|
|
370
371
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
371
372
|
let o = t[e].x, s = t[e].y, c = t[a].x, l = t[a].y;
|
|
@@ -373,11 +374,11 @@ function et(e, t) {
|
|
|
373
374
|
}
|
|
374
375
|
return i;
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function rt(e) {
|
|
377
378
|
let t = e.slice();
|
|
378
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)),
|
|
379
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), it(t);
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function it(e) {
|
|
381
382
|
if (e.length <= 1) return e.slice();
|
|
382
383
|
let t = [];
|
|
383
384
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -403,16 +404,16 @@ function nt(e) {
|
|
|
403
404
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
404
405
|
}
|
|
405
406
|
//#endregion
|
|
406
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
407
|
-
var
|
|
408
|
-
function
|
|
407
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useId.js
|
|
408
|
+
var at = 0;
|
|
409
|
+
function ot(t, n = "reka") {
|
|
409
410
|
if (t) return t;
|
|
410
|
-
let r, i =
|
|
411
|
-
return r = i.useId ? i.useId() : "useId" in e ? e.useId?.() : `${++
|
|
411
|
+
let r, i = De({ useId: void 0 });
|
|
412
|
+
return r = i.useId ? i.useId() : "useId" in e ? e.useId?.() : `${++at}`, n ? `${n}-${r}` : r;
|
|
412
413
|
}
|
|
413
414
|
//#endregion
|
|
414
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
415
|
-
function
|
|
415
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useSize.js
|
|
416
|
+
function st(e) {
|
|
416
417
|
let t = A(), n = o(() => t.value?.width ?? 0), r = o(() => t.value?.height ?? 0), i;
|
|
417
418
|
return ee(() => {
|
|
418
419
|
let n = ye(e);
|
|
@@ -439,8 +440,8 @@ function at(e) {
|
|
|
439
440
|
};
|
|
440
441
|
}
|
|
441
442
|
//#endregion
|
|
442
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
443
|
-
function
|
|
443
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
444
|
+
function ct(e, t) {
|
|
444
445
|
let n = A(e);
|
|
445
446
|
function r(e) {
|
|
446
447
|
return t[n.value][e] ?? n.value;
|
|
@@ -453,9 +454,9 @@ function ot(e, t) {
|
|
|
453
454
|
};
|
|
454
455
|
}
|
|
455
456
|
//#endregion
|
|
456
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
457
|
-
function
|
|
458
|
-
let n = A({}), r = A("none"), i = A(e), a = e.value ? "mounted" : "unmounted", s, c = t.value?.ownerDocument.defaultView ?? _e, { state: l, dispatch: u } =
|
|
457
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Presence/usePresence.js
|
|
458
|
+
function lt(e, t) {
|
|
459
|
+
let n = A({}), r = A("none"), i = A(e), a = e.value ? "mounted" : "unmounted", s, c = t.value?.ownerDocument.defaultView ?? _e, { state: l, dispatch: u } = ct(a, {
|
|
459
460
|
mounted: {
|
|
460
461
|
UNMOUNT: "unmounted",
|
|
461
462
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -466,7 +467,7 @@ function st(e, t) {
|
|
|
466
467
|
},
|
|
467
468
|
unmounted: { MOUNT: "mounted" }
|
|
468
469
|
}), d = (e) => {
|
|
469
|
-
if (
|
|
470
|
+
if (Pe) {
|
|
470
471
|
let n = new CustomEvent(e, {
|
|
471
472
|
bubbles: !1,
|
|
472
473
|
cancelable: !1
|
|
@@ -477,13 +478,13 @@ function st(e, t) {
|
|
|
477
478
|
F(e, async (e, i) => {
|
|
478
479
|
let a = i !== e;
|
|
479
480
|
if (await C(), a) {
|
|
480
|
-
let a = r.value, o =
|
|
481
|
+
let a = r.value, o = ut(t.value);
|
|
481
482
|
e ? (u("MOUNT"), d("enter"), o === "none" && d("after-enter")) : o === "none" || o === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), d("leave"), d("after-leave")) : i && a !== o ? (u("ANIMATION_OUT"), d("leave")) : (u("UNMOUNT"), d("after-leave"));
|
|
482
483
|
}
|
|
483
484
|
}, { immediate: !0 });
|
|
484
485
|
let f = (e) => {
|
|
485
486
|
if (e.target !== t.value) return;
|
|
486
|
-
let n =
|
|
487
|
+
let n = ut(t.value), r = n.includes(CSS.escape(e.animationName)), a = l.value === "mounted" ? "enter" : "leave";
|
|
487
488
|
if (r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
|
|
488
489
|
let e = t.value.style.animationFillMode;
|
|
489
490
|
t.value.style.animationFillMode = "forwards", s = c?.setTimeout(() => {
|
|
@@ -492,23 +493,23 @@ function st(e, t) {
|
|
|
492
493
|
}
|
|
493
494
|
n === "none" && u("ANIMATION_END");
|
|
494
495
|
}, p = (e) => {
|
|
495
|
-
e.target === t.value && (r.value =
|
|
496
|
+
e.target === t.value && (r.value = ut(t.value));
|
|
496
497
|
}, m = F(t, (e, t) => {
|
|
497
498
|
e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", p), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f)) : (u("ANIMATION_END"), s !== void 0 && c?.clearTimeout(s), t?.removeEventListener("animationstart", p), t?.removeEventListener("animationcancel", f), t?.removeEventListener("animationend", f));
|
|
498
499
|
}, { immediate: !0 }), h = F(l, () => {
|
|
499
|
-
let e =
|
|
500
|
+
let e = ut(t.value);
|
|
500
501
|
r.value = l.value === "mounted" ? e : "none";
|
|
501
502
|
});
|
|
502
503
|
return O(() => {
|
|
503
504
|
m(), h(), t.value && (t.value.removeEventListener("animationstart", p), t.value.removeEventListener("animationcancel", f), t.value.removeEventListener("animationend", f)), s !== void 0 && c?.clearTimeout(s);
|
|
504
505
|
}), { isPresent: o(() => ["mounted", "unmountSuspended"].includes(l.value)) };
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
+
function ut(e) {
|
|
507
508
|
return e && getComputedStyle(e).animationName || "none";
|
|
508
509
|
}
|
|
509
510
|
//#endregion
|
|
510
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
511
|
-
var
|
|
511
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Presence/Presence.js
|
|
512
|
+
var dt = /*#__PURE__*/ m({
|
|
512
513
|
name: "Presence",
|
|
513
514
|
props: {
|
|
514
515
|
present: {
|
|
@@ -519,10 +520,10 @@ var lt = /*#__PURE__*/ m({
|
|
|
519
520
|
},
|
|
520
521
|
slots: {},
|
|
521
522
|
setup(e, { slots: t, expose: n }) {
|
|
522
|
-
let { present: r, forceMount: i } = ue(e), a = A(), { isPresent: o } =
|
|
523
|
+
let { present: r, forceMount: i } = ue(e), a = A(), { isPresent: o } = lt(r, a);
|
|
523
524
|
n({ present: o });
|
|
524
525
|
let s = t.default({ present: o.value });
|
|
525
|
-
s =
|
|
526
|
+
s = Ee(s || []);
|
|
526
527
|
let c = h();
|
|
527
528
|
if (s && s?.length > 1) {
|
|
528
529
|
let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
|
|
@@ -539,13 +540,13 @@ var lt = /*#__PURE__*/ m({
|
|
|
539
540
|
return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
|
|
540
541
|
} }) : null;
|
|
541
542
|
}
|
|
542
|
-
}),
|
|
543
|
+
}), ft = /*#__PURE__*/ m({
|
|
543
544
|
name: "PrimitiveSlot",
|
|
544
545
|
inheritAttrs: !1,
|
|
545
546
|
setup(e, { attrs: n, slots: r }) {
|
|
546
547
|
return () => {
|
|
547
548
|
if (!r.default) return null;
|
|
548
|
-
let e =
|
|
549
|
+
let e = Ee(r.default()), i = e.findIndex((e) => e.type !== t);
|
|
549
550
|
if (i === -1) return e;
|
|
550
551
|
let o = e[i];
|
|
551
552
|
delete o.props?.ref;
|
|
@@ -556,11 +557,11 @@ var lt = /*#__PURE__*/ m({
|
|
|
556
557
|
return e.length === 1 ? c : (e[i] = c, e);
|
|
557
558
|
};
|
|
558
559
|
}
|
|
559
|
-
}),
|
|
560
|
+
}), pt = [
|
|
560
561
|
"area",
|
|
561
562
|
"img",
|
|
562
563
|
"input"
|
|
563
|
-
],
|
|
564
|
+
], R = /*#__PURE__*/ m({
|
|
564
565
|
name: "Primitive",
|
|
565
566
|
inheritAttrs: !1,
|
|
566
567
|
props: {
|
|
@@ -575,68 +576,76 @@ var lt = /*#__PURE__*/ m({
|
|
|
575
576
|
},
|
|
576
577
|
setup(e, { attrs: t, slots: n }) {
|
|
577
578
|
let r = e.asChild ? "template" : e.as;
|
|
578
|
-
return typeof r == "string" &&
|
|
579
|
+
return typeof r == "string" && pt.includes(r) ? () => v(r, t) : r === "template" ? () => v(ft, t, { default: n.default }) : () => v(e.as, t, { default: n.default });
|
|
579
580
|
}
|
|
580
|
-
}),
|
|
581
|
-
function
|
|
582
|
-
if (
|
|
581
|
+
}), mt = "dismissableLayer.pointerDownOutside", ht = "dismissableLayer.focusOutside";
|
|
582
|
+
function gt(e) {
|
|
583
|
+
if (typeof e != "object" || !e) return !1;
|
|
584
|
+
let t = e.ownerDocument?.defaultView;
|
|
585
|
+
return typeof Element < "u" && e instanceof Element || !!t && e instanceof t.Element;
|
|
586
|
+
}
|
|
587
|
+
function _t(e, t) {
|
|
588
|
+
if (!gt(t)) return !1;
|
|
583
589
|
if (e.contains(t)) return !0;
|
|
584
590
|
let n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), i = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
585
591
|
return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
|
|
586
592
|
}
|
|
587
|
-
function
|
|
588
|
-
let r =
|
|
589
|
-
return pe((
|
|
590
|
-
if (!
|
|
591
|
-
let s = async (n) => {
|
|
592
|
-
let
|
|
593
|
-
if (t?.value &&
|
|
594
|
-
if (
|
|
595
|
-
|
|
596
|
-
|
|
593
|
+
function vt(e, t, n = !0) {
|
|
594
|
+
let r = A(!1), i = A(() => {});
|
|
595
|
+
return pe((a) => {
|
|
596
|
+
if (!Pe || !N(n)) return;
|
|
597
|
+
let o = t?.value?.ownerDocument ?? globalThis.document, s = async (n) => {
|
|
598
|
+
let a = n.target;
|
|
599
|
+
if (t?.value && a) {
|
|
600
|
+
if (_t(t.value, a)) o.removeEventListener("click", i.value), r.value = !1;
|
|
601
|
+
else {
|
|
602
|
+
if (n.target && !r.value) {
|
|
603
|
+
let t = { originalEvent: n };
|
|
604
|
+
function r() {
|
|
605
|
+
Te(mt, e, t);
|
|
606
|
+
}
|
|
607
|
+
n.pointerType === "touch" ? (o.removeEventListener("click", i.value), i.value = r, o.addEventListener("click", i.value, { once: !0 })) : r();
|
|
608
|
+
} else o.removeEventListener("click", i.value);
|
|
609
|
+
r.value = !1;
|
|
597
610
|
}
|
|
598
|
-
if (n.target && !i.value) {
|
|
599
|
-
let t = { originalEvent: n };
|
|
600
|
-
function i() {
|
|
601
|
-
Te(ft, e, t);
|
|
602
|
-
}
|
|
603
|
-
n.pointerType === "touch" ? (r.removeEventListener("click", a.value), a.value = i, r.addEventListener("click", a.value, { once: !0 })) : i();
|
|
604
|
-
} else r.removeEventListener("click", a.value);
|
|
605
|
-
i.value = !1;
|
|
606
611
|
}
|
|
607
612
|
}, c = window.setTimeout(() => {
|
|
608
|
-
|
|
613
|
+
o.addEventListener("pointerdown", s);
|
|
609
614
|
}, 0);
|
|
610
|
-
|
|
611
|
-
window.clearTimeout(c),
|
|
615
|
+
a(() => {
|
|
616
|
+
window.clearTimeout(c), o.removeEventListener("pointerdown", s), o.removeEventListener("click", i.value);
|
|
612
617
|
});
|
|
613
618
|
}), { onPointerDownCapture: () => {
|
|
614
|
-
N(n) && (
|
|
619
|
+
N(n) && (r.value = !0);
|
|
615
620
|
} };
|
|
616
621
|
}
|
|
617
|
-
function
|
|
618
|
-
let r =
|
|
619
|
-
return pe((
|
|
620
|
-
if (!
|
|
621
|
-
let o = async (n) => {
|
|
622
|
+
function yt(e, t, n = !0) {
|
|
623
|
+
let r = A(!1);
|
|
624
|
+
return pe((i) => {
|
|
625
|
+
if (!Pe || !N(n)) return;
|
|
626
|
+
let a = t?.value?.ownerDocument ?? globalThis.document, o = async (n) => {
|
|
622
627
|
if (!t?.value) return;
|
|
623
628
|
await C(), await C();
|
|
624
|
-
let
|
|
625
|
-
t.value &&
|
|
629
|
+
let i = n.target;
|
|
630
|
+
t.value && i && !_t(t.value, i) && n.target && !r.value && Te(ht, e, { originalEvent: n });
|
|
626
631
|
};
|
|
627
|
-
|
|
632
|
+
a.addEventListener("focusin", o), i(() => a.removeEventListener("focusin", o));
|
|
628
633
|
}), {
|
|
629
634
|
onFocusCapture: () => {
|
|
630
|
-
N(n) && (
|
|
635
|
+
N(n) && (r.value = !0);
|
|
631
636
|
},
|
|
632
637
|
onBlurCapture: () => {
|
|
633
|
-
N(n) && (
|
|
638
|
+
N(n) && (r.value = !1);
|
|
634
639
|
}
|
|
635
640
|
};
|
|
636
641
|
}
|
|
637
642
|
//#endregion
|
|
638
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
639
|
-
var
|
|
643
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/context.js
|
|
644
|
+
var z = /*#__PURE__*/ re({
|
|
645
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
646
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
647
|
+
branches: /* @__PURE__ */ new Set()
|
|
648
|
+
}), bt = /* @__PURE__ */ m({
|
|
640
649
|
__name: "DismissableLayer",
|
|
641
650
|
props: {
|
|
642
651
|
disableOutsidePointerEvents: {
|
|
@@ -666,35 +675,38 @@ var _t = /* @__PURE__ */ m({
|
|
|
666
675
|
"dismiss"
|
|
667
676
|
],
|
|
668
677
|
setup(e, { emit: t }) {
|
|
669
|
-
let n = e, r = t, { forwardRef: i, currentElement: a } =
|
|
670
|
-
let e = Array.from(l.value), [t] = [...
|
|
678
|
+
let n = e, r = t, { forwardRef: i, currentElement: a } = L(), c = o(() => a.value?.ownerDocument ?? globalThis.document), l = o(() => z.layersRoot), u = o(() => a.value ? Array.from(l.value).indexOf(a.value) : -1), d = o(() => z.layersWithOutsidePointerEventsDisabled.size > 0), f = o(() => {
|
|
679
|
+
let e = Array.from(l.value), [t] = [...z.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
|
|
671
680
|
return u.value >= n;
|
|
672
|
-
}), p =
|
|
673
|
-
let t = [...
|
|
681
|
+
}), p = vt(async (e) => {
|
|
682
|
+
let t = [...z.branches].some((t) => t?.contains(e.target));
|
|
674
683
|
n.present && f.value && !t && (r("pointerDownOutside", e), r("interactOutside", e), await C(), e.defaultPrevented || r("dismiss"));
|
|
675
|
-
}, a, () => n.present), m =
|
|
676
|
-
let t = [...
|
|
684
|
+
}, a, () => n.present), m = yt((e) => {
|
|
685
|
+
let t = [...z.branches].some((t) => t?.contains(e.target));
|
|
677
686
|
n.present && !t && (r("focusOutside", e), r("interactOutside", e), e.defaultPrevented || r("dismiss"));
|
|
678
687
|
}, a);
|
|
679
688
|
return ve("Escape", (e) => {
|
|
680
689
|
n.present && u.value === l.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
681
|
-
}), F([
|
|
690
|
+
}, { target: () => c.value?.defaultView ?? globalThis.window }), F([
|
|
682
691
|
a,
|
|
683
692
|
() => n.disableOutsidePointerEvents,
|
|
684
693
|
() => n.present
|
|
685
694
|
], ([e, t, n], r, i) => {
|
|
686
|
-
e && n && t
|
|
687
|
-
|
|
688
|
-
|
|
695
|
+
if (e && n && t) {
|
|
696
|
+
let t = e.ownerDocument;
|
|
697
|
+
Ae(t, e), z.layersWithOutsidePointerEventsDisabled.add(e), i(() => {
|
|
698
|
+
z.layersWithOutsidePointerEventsDisabled.delete(e), je(t, e);
|
|
699
|
+
});
|
|
700
|
+
}
|
|
689
701
|
}, { immediate: !0 }), F([a, () => n.present], ([e, t], n, r) => {
|
|
690
702
|
e && t && (l.value.add(e), r(() => {
|
|
691
703
|
l.value.delete(e);
|
|
692
704
|
}));
|
|
693
705
|
}, { immediate: !0 }), pe((e) => {
|
|
694
706
|
e(() => {
|
|
695
|
-
a.value && (l.value.delete(a.value),
|
|
707
|
+
a.value && (l.value.delete(a.value), z.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
696
708
|
});
|
|
697
|
-
}), (
|
|
709
|
+
}), (t, n) => (k(), s(P(R), {
|
|
698
710
|
ref: P(i),
|
|
699
711
|
"as-child": e.asChild,
|
|
700
712
|
as: e.as,
|
|
@@ -704,7 +716,7 @@ var _t = /* @__PURE__ */ m({
|
|
|
704
716
|
onBlurCapture: P(m).onBlurCapture,
|
|
705
717
|
onPointerdownCapture: P(p).onPointerDownCapture
|
|
706
718
|
}, {
|
|
707
|
-
default: I(() => [j(
|
|
719
|
+
default: I(() => [j(t.$slots, "default")]),
|
|
708
720
|
_: 3
|
|
709
721
|
}, 8, [
|
|
710
722
|
"as-child",
|
|
@@ -715,7 +727,7 @@ var _t = /* @__PURE__ */ m({
|
|
|
715
727
|
"onPointerdownCapture"
|
|
716
728
|
]));
|
|
717
729
|
}
|
|
718
|
-
}),
|
|
730
|
+
}), xt = /* @__PURE__ */ m({
|
|
719
731
|
__name: "Teleport",
|
|
720
732
|
props: {
|
|
721
733
|
to: {
|
|
@@ -736,19 +748,19 @@ var _t = /* @__PURE__ */ m({
|
|
|
736
748
|
}
|
|
737
749
|
},
|
|
738
750
|
setup(e) {
|
|
739
|
-
let t = e, n =
|
|
740
|
-
return (
|
|
751
|
+
let t = e, n = De({}), i = o(() => t.to ?? n.teleportTo?.value ?? "body"), a = xe();
|
|
752
|
+
return (t, n) => P(a) || e.forceMount ? (k(), s(r, {
|
|
741
753
|
key: 0,
|
|
742
754
|
to: i.value,
|
|
743
755
|
disabled: e.disabled,
|
|
744
756
|
defer: e.defer
|
|
745
|
-
}, [j(
|
|
757
|
+
}, [j(t.$slots, "default")], 8, [
|
|
746
758
|
"to",
|
|
747
759
|
"disabled",
|
|
748
760
|
"defer"
|
|
749
761
|
])) : c("v-if", !0);
|
|
750
762
|
}
|
|
751
|
-
}),
|
|
763
|
+
}), St = /* @__PURE__ */ m({
|
|
752
764
|
__name: "VisuallyHidden",
|
|
753
765
|
props: {
|
|
754
766
|
feature: {
|
|
@@ -767,10 +779,10 @@ var _t = /* @__PURE__ */ m({
|
|
|
767
779
|
}
|
|
768
780
|
},
|
|
769
781
|
setup(e) {
|
|
770
|
-
return (
|
|
782
|
+
return (t, n) => (k(), s(P(R), {
|
|
771
783
|
as: e.as,
|
|
772
784
|
"as-child": e.asChild,
|
|
773
|
-
"aria-hidden": e.feature === "
|
|
785
|
+
"aria-hidden": e.feature === "fully-hidden" ? "true" : void 0,
|
|
774
786
|
"data-hidden": e.feature === "fully-hidden" ? "" : void 0,
|
|
775
787
|
tabindex: e.feature === "fully-hidden" ? "-1" : void 0,
|
|
776
788
|
style: {
|
|
@@ -789,7 +801,7 @@ var _t = /* @__PURE__ */ m({
|
|
|
789
801
|
left: "-1px"
|
|
790
802
|
}
|
|
791
803
|
}, {
|
|
792
|
-
default: I(() => [j(
|
|
804
|
+
default: I(() => [j(t.$slots, "default")]),
|
|
793
805
|
_: 3
|
|
794
806
|
}, 8, [
|
|
795
807
|
"as",
|
|
@@ -799,17 +811,17 @@ var _t = /* @__PURE__ */ m({
|
|
|
799
811
|
"tabindex"
|
|
800
812
|
]));
|
|
801
813
|
}
|
|
802
|
-
}), [
|
|
814
|
+
}), [Ct, wt] = /*#__PURE__*/ we("PopperRoot"), Tt = /* @__PURE__ */ m({
|
|
803
815
|
inheritAttrs: !1,
|
|
804
816
|
__name: "PopperRoot",
|
|
805
817
|
setup(e) {
|
|
806
818
|
let t = A();
|
|
807
|
-
return
|
|
819
|
+
return wt({
|
|
808
820
|
anchor: t,
|
|
809
821
|
onAnchorChange: (e) => t.value = e
|
|
810
822
|
}), (e, t) => j(e.$slots, "default");
|
|
811
823
|
}
|
|
812
|
-
}),
|
|
824
|
+
}), Et = /* @__PURE__ */ m({
|
|
813
825
|
__name: "PopperAnchor",
|
|
814
826
|
props: {
|
|
815
827
|
reference: {
|
|
@@ -826,25 +838,25 @@ var _t = /* @__PURE__ */ m({
|
|
|
826
838
|
}
|
|
827
839
|
},
|
|
828
840
|
setup(e) {
|
|
829
|
-
let t = e, { forwardRef: n, currentElement: r } =
|
|
841
|
+
let t = e, { forwardRef: n, currentElement: r } = L(), i = Ct();
|
|
830
842
|
return me(() => {
|
|
831
843
|
i.onAnchorChange(t.reference ?? r.value);
|
|
832
|
-
}), (
|
|
844
|
+
}), (t, r) => (k(), s(P(R), {
|
|
833
845
|
ref: P(n),
|
|
834
846
|
as: e.as,
|
|
835
847
|
"as-child": e.asChild
|
|
836
848
|
}, {
|
|
837
|
-
default: I(() => [j(
|
|
849
|
+
default: I(() => [j(t.$slots, "default")]),
|
|
838
850
|
_: 3
|
|
839
851
|
}, 8, ["as", "as-child"]));
|
|
840
852
|
}
|
|
841
|
-
}),
|
|
853
|
+
}), Dt = {
|
|
842
854
|
key: 0,
|
|
843
855
|
d: "M0 0L6 6L12 0"
|
|
844
|
-
},
|
|
856
|
+
}, Ot = {
|
|
845
857
|
key: 1,
|
|
846
858
|
d: "M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"
|
|
847
|
-
},
|
|
859
|
+
}, kt = /* @__PURE__ */ m({
|
|
848
860
|
__name: "Arrow",
|
|
849
861
|
props: {
|
|
850
862
|
width: {
|
|
@@ -873,13 +885,13 @@ var _t = /* @__PURE__ */ m({
|
|
|
873
885
|
},
|
|
874
886
|
setup(e) {
|
|
875
887
|
let t = e;
|
|
876
|
-
return
|
|
888
|
+
return L(), (n, r) => (k(), s(P(R), S(t, {
|
|
877
889
|
width: e.width,
|
|
878
890
|
height: e.height,
|
|
879
891
|
viewBox: e.asChild ? void 0 : "0 0 12 6",
|
|
880
892
|
preserveAspectRatio: e.asChild ? void 0 : "none"
|
|
881
893
|
}), {
|
|
882
|
-
default: I(() => [j(
|
|
894
|
+
default: I(() => [j(n.$slots, "default", {}, () => [e.rounded ? (k(), l("path", Ot)) : (k(), l("path", Dt))])]),
|
|
883
895
|
_: 3
|
|
884
896
|
}, 16, [
|
|
885
897
|
"width",
|
|
@@ -890,16 +902,16 @@ var _t = /* @__PURE__ */ m({
|
|
|
890
902
|
}
|
|
891
903
|
});
|
|
892
904
|
//#endregion
|
|
893
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
894
|
-
function
|
|
905
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/utils.js
|
|
906
|
+
function At(e) {
|
|
895
907
|
return e !== null;
|
|
896
908
|
}
|
|
897
|
-
function
|
|
909
|
+
function jt(e) {
|
|
898
910
|
return {
|
|
899
911
|
name: "transformOrigin",
|
|
900
912
|
options: e,
|
|
901
913
|
fn(t) {
|
|
902
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
914
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Mt(n), u = {
|
|
903
915
|
start: e.dir === "rtl" ? "100%" : "0%",
|
|
904
916
|
center: "50%",
|
|
905
917
|
end: e.dir === "rtl" ? "0%" : "100%"
|
|
@@ -915,27 +927,27 @@ function Ot(e) {
|
|
|
915
927
|
}
|
|
916
928
|
};
|
|
917
929
|
}
|
|
918
|
-
function
|
|
930
|
+
function Mt(e) {
|
|
919
931
|
let [t, n = "center"] = e.split("-");
|
|
920
932
|
return [t, n];
|
|
921
933
|
}
|
|
922
934
|
//#endregion
|
|
923
935
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
924
|
-
var
|
|
936
|
+
var Nt = [
|
|
925
937
|
"top",
|
|
926
938
|
"right",
|
|
927
939
|
"bottom",
|
|
928
940
|
"left"
|
|
929
|
-
], B = Math.min, V = Math.max,
|
|
941
|
+
], B = Math.min, V = Math.max, Pt = Math.round, Ft = Math.floor, H = (e) => ({
|
|
930
942
|
x: e,
|
|
931
943
|
y: e
|
|
932
|
-
}),
|
|
944
|
+
}), It = {
|
|
933
945
|
left: "right",
|
|
934
946
|
right: "left",
|
|
935
947
|
bottom: "top",
|
|
936
948
|
top: "bottom"
|
|
937
949
|
};
|
|
938
|
-
function
|
|
950
|
+
function Lt(e, t, n) {
|
|
939
951
|
return V(e, B(t, n));
|
|
940
952
|
}
|
|
941
953
|
function U(e, t) {
|
|
@@ -944,57 +956,57 @@ function U(e, t) {
|
|
|
944
956
|
function W(e) {
|
|
945
957
|
return e.split("-")[0];
|
|
946
958
|
}
|
|
947
|
-
function
|
|
959
|
+
function Rt(e) {
|
|
948
960
|
return e.split("-")[1];
|
|
949
961
|
}
|
|
950
|
-
function
|
|
962
|
+
function zt(e) {
|
|
951
963
|
return e === "x" ? "y" : "x";
|
|
952
964
|
}
|
|
953
|
-
function
|
|
965
|
+
function Bt(e) {
|
|
954
966
|
return e === "y" ? "height" : "width";
|
|
955
967
|
}
|
|
956
968
|
function G(e) {
|
|
957
969
|
let t = e[0];
|
|
958
970
|
return t === "t" || t === "b" ? "y" : "x";
|
|
959
971
|
}
|
|
960
|
-
function
|
|
961
|
-
return
|
|
972
|
+
function Vt(e) {
|
|
973
|
+
return zt(G(e));
|
|
962
974
|
}
|
|
963
|
-
function
|
|
975
|
+
function Ht(e, t, n) {
|
|
964
976
|
n === void 0 && (n = !1);
|
|
965
|
-
let r =
|
|
966
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
977
|
+
let r = Rt(e), i = Vt(e), a = Bt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
978
|
+
return t.reference[a] > t.floating[a] && (o = Zt(o)), [o, Zt(o)];
|
|
967
979
|
}
|
|
968
|
-
function
|
|
969
|
-
let t =
|
|
980
|
+
function Ut(e) {
|
|
981
|
+
let t = Zt(e);
|
|
970
982
|
return [
|
|
971
|
-
|
|
983
|
+
Wt(e),
|
|
972
984
|
t,
|
|
973
|
-
|
|
985
|
+
Wt(t)
|
|
974
986
|
];
|
|
975
987
|
}
|
|
976
|
-
function
|
|
988
|
+
function Wt(e) {
|
|
977
989
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
978
990
|
}
|
|
979
|
-
var
|
|
980
|
-
function
|
|
991
|
+
var Gt = ["left", "right"], Kt = ["right", "left"], qt = ["top", "bottom"], Jt = ["bottom", "top"];
|
|
992
|
+
function Yt(e, t, n) {
|
|
981
993
|
switch (e) {
|
|
982
994
|
case "top":
|
|
983
|
-
case "bottom": return n ? t ?
|
|
995
|
+
case "bottom": return n ? t ? Kt : Gt : t ? Gt : Kt;
|
|
984
996
|
case "left":
|
|
985
|
-
case "right": return t ?
|
|
997
|
+
case "right": return t ? qt : Jt;
|
|
986
998
|
default: return [];
|
|
987
999
|
}
|
|
988
1000
|
}
|
|
989
|
-
function
|
|
990
|
-
let i =
|
|
991
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1001
|
+
function Xt(e, t, n, r) {
|
|
1002
|
+
let i = Rt(e), a = Yt(W(e), n === "start", r);
|
|
1003
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Wt)))), a;
|
|
992
1004
|
}
|
|
993
|
-
function
|
|
1005
|
+
function Zt(e) {
|
|
994
1006
|
let t = W(e);
|
|
995
|
-
return
|
|
1007
|
+
return It[t] + e.slice(t.length);
|
|
996
1008
|
}
|
|
997
|
-
function
|
|
1009
|
+
function Qt(e) {
|
|
998
1010
|
return {
|
|
999
1011
|
top: e.top ?? 0,
|
|
1000
1012
|
right: e.right ?? 0,
|
|
@@ -1002,15 +1014,15 @@ function Yt(e) {
|
|
|
1002
1014
|
left: e.left ?? 0
|
|
1003
1015
|
};
|
|
1004
1016
|
}
|
|
1005
|
-
function
|
|
1017
|
+
function $t(e) {
|
|
1006
1018
|
return typeof e == "number" ? {
|
|
1007
1019
|
top: e,
|
|
1008
1020
|
right: e,
|
|
1009
1021
|
bottom: e,
|
|
1010
1022
|
left: e
|
|
1011
|
-
} :
|
|
1023
|
+
} : Qt(e);
|
|
1012
1024
|
}
|
|
1013
|
-
function
|
|
1025
|
+
function en(e) {
|
|
1014
1026
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1015
1027
|
return {
|
|
1016
1028
|
width: r,
|
|
@@ -1025,8 +1037,8 @@ function Zt(e) {
|
|
|
1025
1037
|
}
|
|
1026
1038
|
//#endregion
|
|
1027
1039
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1028
|
-
function
|
|
1029
|
-
let { reference: r, floating: i } = e, a = G(t), o =
|
|
1040
|
+
function tn(e, t, n) {
|
|
1041
|
+
let { reference: r, floating: i } = e, a = G(t), o = Vt(t), s = Bt(o), c = W(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1030
1042
|
switch (c) {
|
|
1031
1043
|
case "top":
|
|
1032
1044
|
p = {
|
|
@@ -1057,12 +1069,12 @@ function Qt(e, t, n) {
|
|
|
1057
1069
|
y: r.y
|
|
1058
1070
|
};
|
|
1059
1071
|
}
|
|
1060
|
-
let m =
|
|
1072
|
+
let m = Rt(t);
|
|
1061
1073
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
1062
1074
|
}
|
|
1063
|
-
async function
|
|
1075
|
+
async function nn(e, t) {
|
|
1064
1076
|
t === void 0 && (t = {});
|
|
1065
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = U(t, e), p =
|
|
1077
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = U(t, e), p = $t(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = en(await i.getClippingRect({
|
|
1066
1078
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1067
1079
|
boundary: c,
|
|
1068
1080
|
rootBoundary: l,
|
|
@@ -1075,7 +1087,7 @@ async function $t(e, t) {
|
|
|
1075
1087
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1076
1088
|
x: 1,
|
|
1077
1089
|
y: 1
|
|
1078
|
-
}, y =
|
|
1090
|
+
}, y = en(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1079
1091
|
elements: o,
|
|
1080
1092
|
rect: g,
|
|
1081
1093
|
offsetParent: _,
|
|
@@ -1088,15 +1100,15 @@ async function $t(e, t) {
|
|
|
1088
1100
|
right: (y.right - h.right + p.right) / v.x
|
|
1089
1101
|
};
|
|
1090
1102
|
}
|
|
1091
|
-
var
|
|
1103
|
+
var rn = 50, an = async (e, t, n) => {
|
|
1092
1104
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1093
1105
|
...o,
|
|
1094
|
-
detectOverflow:
|
|
1106
|
+
detectOverflow: nn
|
|
1095
1107
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1096
1108
|
reference: e,
|
|
1097
1109
|
floating: t,
|
|
1098
1110
|
strategy: i
|
|
1099
|
-
}), { x: u, y: d } =
|
|
1111
|
+
}), { x: u, y: d } = tn(l, r, c), f = r, p = 0, m = {};
|
|
1100
1112
|
for (let n = 0; n < a.length; n++) {
|
|
1101
1113
|
let h = a[n];
|
|
1102
1114
|
if (!h) continue;
|
|
@@ -1117,11 +1129,11 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
1117
1129
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
1118
1130
|
...m[g],
|
|
1119
1131
|
...b
|
|
1120
|
-
}, x && p <
|
|
1132
|
+
}, x && p < rn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1121
1133
|
reference: e,
|
|
1122
1134
|
floating: t,
|
|
1123
1135
|
strategy: i
|
|
1124
|
-
}) : x.rects), {x: u, y: d} =
|
|
1136
|
+
}) : x.rects), {x: u, y: d} = tn(l, f, c)), n = -1);
|
|
1125
1137
|
}
|
|
1126
1138
|
return {
|
|
1127
1139
|
x: u,
|
|
@@ -1130,18 +1142,18 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
1130
1142
|
strategy: i,
|
|
1131
1143
|
middlewareData: m
|
|
1132
1144
|
};
|
|
1133
|
-
},
|
|
1145
|
+
}, on = (e) => ({
|
|
1134
1146
|
name: "arrow",
|
|
1135
1147
|
options: e,
|
|
1136
1148
|
async fn(t) {
|
|
1137
1149
|
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = U(e, t) || {};
|
|
1138
1150
|
if (l == null) return {};
|
|
1139
|
-
let d =
|
|
1151
|
+
let d = $t(u), f = {
|
|
1140
1152
|
x: n,
|
|
1141
1153
|
y: r
|
|
1142
|
-
}, p =
|
|
1154
|
+
}, p = Vt(i), m = Bt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1143
1155
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
1144
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), ee = B(d[v], T), D = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, te =
|
|
1156
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), ee = B(d[v], T), D = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, te = Lt(E, O, D), k = !c.arrow && Rt(i) != null && O !== te && a.reference[m] / 2 - (O < E ? E : ee) - h[m] / 2 < 0, ne = k ? O < E ? O - E : O - D : 0;
|
|
1145
1157
|
return {
|
|
1146
1158
|
[p]: f[p] + ne,
|
|
1147
1159
|
data: {
|
|
@@ -1152,7 +1164,7 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
1152
1164
|
reset: k
|
|
1153
1165
|
};
|
|
1154
1166
|
}
|
|
1155
|
-
}),
|
|
1167
|
+
}), sn = function(e) {
|
|
1156
1168
|
return e === void 0 && (e = {}), {
|
|
1157
1169
|
name: "flip",
|
|
1158
1170
|
options: e,
|
|
@@ -1160,11 +1172,11 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
1160
1172
|
var n;
|
|
1161
1173
|
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = U(e, t);
|
|
1162
1174
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1163
|
-
let g = W(r), _ = G(o), v = W(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [
|
|
1164
|
-
!d && x && b.push(...
|
|
1175
|
+
let g = W(r), _ = G(o), v = W(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Zt(o)] : Ut(o)), x = p !== "none";
|
|
1176
|
+
!d && x && b.push(...Xt(o, m, p, y));
|
|
1165
1177
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1166
1178
|
if (l && w.push(C[g]), u) {
|
|
1167
|
-
let e =
|
|
1179
|
+
let e = Ht(r, a, y);
|
|
1168
1180
|
w.push(C[e[0]], C[e[1]]);
|
|
1169
1181
|
}
|
|
1170
1182
|
if (T = [...T, {
|
|
@@ -1200,7 +1212,7 @@ var en = 50, tn = async (e, t, n) => {
|
|
|
1200
1212
|
}
|
|
1201
1213
|
};
|
|
1202
1214
|
};
|
|
1203
|
-
function
|
|
1215
|
+
function cn(e, t) {
|
|
1204
1216
|
return {
|
|
1205
1217
|
top: e.top - t.height,
|
|
1206
1218
|
right: e.right - t.width,
|
|
@@ -1208,10 +1220,10 @@ function an(e, t) {
|
|
|
1208
1220
|
left: e.left - t.width
|
|
1209
1221
|
};
|
|
1210
1222
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1223
|
+
function ln(e) {
|
|
1224
|
+
return Nt.some((t) => e[t] >= 0);
|
|
1213
1225
|
}
|
|
1214
|
-
var
|
|
1226
|
+
var un = function(e) {
|
|
1215
1227
|
return e === void 0 && (e = {}), {
|
|
1216
1228
|
name: "hide",
|
|
1217
1229
|
options: e,
|
|
@@ -1219,32 +1231,32 @@ var sn = function(e) {
|
|
|
1219
1231
|
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = U(e, t);
|
|
1220
1232
|
switch (i) {
|
|
1221
1233
|
case "referenceHidden": {
|
|
1222
|
-
let e =
|
|
1234
|
+
let e = cn(await r.detectOverflow(t, {
|
|
1223
1235
|
...a,
|
|
1224
1236
|
elementContext: "reference"
|
|
1225
1237
|
}), n.reference);
|
|
1226
1238
|
return { data: {
|
|
1227
1239
|
referenceHiddenOffsets: e,
|
|
1228
|
-
referenceHidden:
|
|
1240
|
+
referenceHidden: ln(e)
|
|
1229
1241
|
} };
|
|
1230
1242
|
}
|
|
1231
1243
|
case "escaped": {
|
|
1232
|
-
let e =
|
|
1244
|
+
let e = cn(await r.detectOverflow(t, {
|
|
1233
1245
|
...a,
|
|
1234
1246
|
altBoundary: !0
|
|
1235
1247
|
}), n.floating);
|
|
1236
1248
|
return { data: {
|
|
1237
1249
|
escapedOffsets: e,
|
|
1238
|
-
escaped:
|
|
1250
|
+
escaped: ln(e)
|
|
1239
1251
|
} };
|
|
1240
1252
|
}
|
|
1241
1253
|
default: return {};
|
|
1242
1254
|
}
|
|
1243
1255
|
}
|
|
1244
1256
|
};
|
|
1245
|
-
},
|
|
1246
|
-
async function
|
|
1247
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = W(n), s =
|
|
1257
|
+
}, dn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
1258
|
+
async function fn(e, t) {
|
|
1259
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = W(n), s = Rt(n), c = G(n) === "y", l = dn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = U(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
1248
1260
|
mainAxis: d,
|
|
1249
1261
|
crossAxis: 0,
|
|
1250
1262
|
alignmentAxis: null
|
|
@@ -1261,13 +1273,13 @@ async function ln(e, t) {
|
|
|
1261
1273
|
y: p * u
|
|
1262
1274
|
};
|
|
1263
1275
|
}
|
|
1264
|
-
var
|
|
1276
|
+
var pn = function(e) {
|
|
1265
1277
|
return e === void 0 && (e = 0), {
|
|
1266
1278
|
name: "offset",
|
|
1267
1279
|
options: e,
|
|
1268
1280
|
async fn(t) {
|
|
1269
1281
|
var n;
|
|
1270
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
1282
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await fn(t, e);
|
|
1271
1283
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
1272
1284
|
x: r + s.x,
|
|
1273
1285
|
y: i + s.y,
|
|
@@ -1278,7 +1290,7 @@ var un = function(e) {
|
|
|
1278
1290
|
};
|
|
1279
1291
|
}
|
|
1280
1292
|
};
|
|
1281
|
-
},
|
|
1293
|
+
}, mn = function(e) {
|
|
1282
1294
|
return e === void 0 && (e = {}), {
|
|
1283
1295
|
name: "shift",
|
|
1284
1296
|
options: e,
|
|
@@ -1292,7 +1304,7 @@ var un = function(e) {
|
|
|
1292
1304
|
} }, ...l } = U(e, t), u = {
|
|
1293
1305
|
x: n,
|
|
1294
1306
|
y: r
|
|
1295
|
-
}, d = await a.detectOverflow(t, l), f = G(i), p =
|
|
1307
|
+
}, d = await a.detectOverflow(t, l), f = G(i), p = zt(f), m = u[p], h = u[f], g = (e, t) => Lt(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
1296
1308
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
1297
1309
|
let _ = c.fn({
|
|
1298
1310
|
...t,
|
|
@@ -1312,14 +1324,14 @@ var un = function(e) {
|
|
|
1312
1324
|
};
|
|
1313
1325
|
}
|
|
1314
1326
|
};
|
|
1315
|
-
},
|
|
1327
|
+
}, hn = function(e) {
|
|
1316
1328
|
return e === void 0 && (e = {}), {
|
|
1317
1329
|
options: e,
|
|
1318
1330
|
fn(t) {
|
|
1319
1331
|
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = U(e, t), u = {
|
|
1320
1332
|
x: n,
|
|
1321
1333
|
y: r
|
|
1322
|
-
}, d = G(i), f =
|
|
1334
|
+
}, d = G(i), f = zt(d), p = u[f], m = u[d], h = U(s, t), g = typeof h == "number" ? {
|
|
1323
1335
|
mainAxis: h,
|
|
1324
1336
|
crossAxis: 0
|
|
1325
1337
|
} : {
|
|
@@ -1331,7 +1343,7 @@ var un = function(e) {
|
|
|
1331
1343
|
p < t ? p = t : p > n && (p = n);
|
|
1332
1344
|
}
|
|
1333
1345
|
if (l) {
|
|
1334
|
-
let e = f === "y" ? "width" : "height", t =
|
|
1346
|
+
let e = f === "y" ? "width" : "height", t = dn.has(W(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
1335
1347
|
m < n ? m = n : m > r && (m = r);
|
|
1336
1348
|
}
|
|
1337
1349
|
return {
|
|
@@ -1340,12 +1352,12 @@ var un = function(e) {
|
|
|
1340
1352
|
};
|
|
1341
1353
|
}
|
|
1342
1354
|
};
|
|
1343
|
-
},
|
|
1355
|
+
}, gn = function(e) {
|
|
1344
1356
|
return e === void 0 && (e = {}), {
|
|
1345
1357
|
name: "size",
|
|
1346
1358
|
options: e,
|
|
1347
1359
|
async fn(t) {
|
|
1348
|
-
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = U(e, t), c = await i.detectOverflow(t, s), l = W(n), u =
|
|
1360
|
+
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = U(e, t), c = await i.detectOverflow(t, s), l = W(n), u = Rt(n), d = G(n) === "y", { width: f, height: p } = r.floating, m, h;
|
|
1349
1361
|
l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
|
|
1350
1362
|
let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = B(p - c[m], g), y = B(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
|
|
1351
1363
|
b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * V(c.left, c.right) : S = p - 2 * V(c.top, c.bottom)), await o({
|
|
@@ -1360,39 +1372,39 @@ var un = function(e) {
|
|
|
1360
1372
|
};
|
|
1361
1373
|
//#endregion
|
|
1362
1374
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1363
|
-
function
|
|
1375
|
+
function _n() {
|
|
1364
1376
|
return typeof window < "u";
|
|
1365
1377
|
}
|
|
1366
1378
|
function K(e) {
|
|
1367
|
-
return
|
|
1379
|
+
return vn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1368
1380
|
}
|
|
1369
1381
|
function q(e) {
|
|
1370
1382
|
var t;
|
|
1371
1383
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1372
1384
|
}
|
|
1373
1385
|
function J(e) {
|
|
1374
|
-
return ((
|
|
1386
|
+
return ((vn(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
1375
1387
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1388
|
+
function vn(e) {
|
|
1389
|
+
return _n() ? e instanceof Node || e instanceof q(e).Node : !1;
|
|
1378
1390
|
}
|
|
1379
1391
|
function Y(e) {
|
|
1380
|
-
return
|
|
1392
|
+
return _n() ? e instanceof Element || e instanceof q(e).Element : !1;
|
|
1381
1393
|
}
|
|
1382
1394
|
function X(e) {
|
|
1383
|
-
return
|
|
1395
|
+
return _n() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
|
|
1384
1396
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return !
|
|
1397
|
+
function yn(e) {
|
|
1398
|
+
return !_n() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
1387
1399
|
}
|
|
1388
|
-
function
|
|
1400
|
+
function bn(e) {
|
|
1389
1401
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = Q(e);
|
|
1390
1402
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
1391
1403
|
}
|
|
1392
|
-
function
|
|
1404
|
+
function xn(e) {
|
|
1393
1405
|
return /^(table|td|th)$/.test(K(e));
|
|
1394
1406
|
}
|
|
1395
|
-
function
|
|
1407
|
+
function Sn(e) {
|
|
1396
1408
|
try {
|
|
1397
1409
|
if (e.matches(":popover-open")) return !0;
|
|
1398
1410
|
} catch {}
|
|
@@ -1402,30 +1414,30 @@ function yn(e) {
|
|
|
1402
1414
|
return !1;
|
|
1403
1415
|
}
|
|
1404
1416
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1417
|
+
var Cn = /transform|translate|scale|rotate|perspective|filter/, wn = /paint|layout|strict|content/, Z = (e) => !!e && e !== "none", Tn;
|
|
1418
|
+
function En(e) {
|
|
1407
1419
|
let t = Y(e) ? Q(e) : e;
|
|
1408
|
-
return Z(t.transform) || Z(t.translate) || Z(t.scale) || Z(t.rotate) || Z(t.perspective) || !
|
|
1420
|
+
return Z(t.transform) || Z(t.translate) || Z(t.scale) || Z(t.rotate) || Z(t.perspective) || !On() && (Z(t.backdropFilter) || Z(t.filter)) || Cn.test(t.willChange || "") || wn.test(t.contain || "");
|
|
1409
1421
|
}
|
|
1410
|
-
function
|
|
1422
|
+
function Dn(e) {
|
|
1411
1423
|
let t = $(e);
|
|
1412
|
-
for (; X(t) && !
|
|
1413
|
-
if (
|
|
1414
|
-
if (
|
|
1424
|
+
for (; X(t) && !kn(t);) {
|
|
1425
|
+
if (En(t)) return t;
|
|
1426
|
+
if (Sn(t)) return null;
|
|
1415
1427
|
t = $(t);
|
|
1416
1428
|
}
|
|
1417
1429
|
return null;
|
|
1418
1430
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1431
|
+
function On() {
|
|
1432
|
+
return Tn ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Tn;
|
|
1421
1433
|
}
|
|
1422
|
-
function
|
|
1434
|
+
function kn(e) {
|
|
1423
1435
|
return /^(html|body|#document)$/.test(K(e));
|
|
1424
1436
|
}
|
|
1425
1437
|
function Q(e) {
|
|
1426
1438
|
return q(e).getComputedStyle(e);
|
|
1427
1439
|
}
|
|
1428
|
-
function
|
|
1440
|
+
function An(e) {
|
|
1429
1441
|
return Y(e) ? {
|
|
1430
1442
|
scrollLeft: e.scrollLeft,
|
|
1431
1443
|
scrollTop: e.scrollTop
|
|
@@ -1436,100 +1448,100 @@ function Dn(e) {
|
|
|
1436
1448
|
}
|
|
1437
1449
|
function $(e) {
|
|
1438
1450
|
if (K(e) === "html") return e;
|
|
1439
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
1440
|
-
return
|
|
1451
|
+
let t = e.assignedSlot || e.parentNode || yn(e) && e.host || J(e);
|
|
1452
|
+
return yn(t) ? t.host : t;
|
|
1441
1453
|
}
|
|
1442
|
-
function
|
|
1454
|
+
function jn(e) {
|
|
1443
1455
|
let t = $(e);
|
|
1444
|
-
return
|
|
1456
|
+
return kn(t) ? (e.ownerDocument || e).body : X(t) && bn(t) ? t : jn(t);
|
|
1445
1457
|
}
|
|
1446
|
-
function
|
|
1458
|
+
function Mn(e, t, n) {
|
|
1447
1459
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1448
|
-
let r =
|
|
1460
|
+
let r = jn(e), i = r === e.ownerDocument?.body, a = q(r);
|
|
1449
1461
|
if (i) {
|
|
1450
|
-
let e =
|
|
1451
|
-
return t.concat(a, a.visualViewport || [],
|
|
1462
|
+
let e = Nn(a);
|
|
1463
|
+
return t.concat(a, a.visualViewport || [], bn(r) ? r : [], e && n ? Mn(e) : []);
|
|
1452
1464
|
}
|
|
1453
|
-
return t.concat(r,
|
|
1465
|
+
return t.concat(r, Mn(r, [], n));
|
|
1454
1466
|
}
|
|
1455
|
-
function
|
|
1467
|
+
function Nn(e) {
|
|
1456
1468
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1457
1469
|
}
|
|
1458
1470
|
//#endregion
|
|
1459
1471
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1460
|
-
function
|
|
1461
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = X(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
1472
|
+
function Pn(e) {
|
|
1473
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = X(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Pt(n) !== a || Pt(r) !== o;
|
|
1462
1474
|
return s && (n = a, r = o), {
|
|
1463
1475
|
width: n,
|
|
1464
1476
|
height: r,
|
|
1465
1477
|
$: s
|
|
1466
1478
|
};
|
|
1467
1479
|
}
|
|
1468
|
-
function
|
|
1480
|
+
function Fn(e) {
|
|
1469
1481
|
return Y(e) ? e : e.contextElement;
|
|
1470
1482
|
}
|
|
1471
|
-
function
|
|
1472
|
-
let t =
|
|
1483
|
+
function In(e) {
|
|
1484
|
+
let t = Fn(e);
|
|
1473
1485
|
if (!X(t)) return H(1);
|
|
1474
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
1486
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Pn(t), o = (a ? Pt(n.width) : n.width) / r, s = (a ? Pt(n.height) : n.height) / i;
|
|
1475
1487
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1476
1488
|
x: o,
|
|
1477
1489
|
y: s
|
|
1478
1490
|
};
|
|
1479
1491
|
}
|
|
1480
|
-
var
|
|
1481
|
-
function
|
|
1492
|
+
var Ln = /*#__PURE__*/ H(0);
|
|
1493
|
+
function Rn(e) {
|
|
1482
1494
|
let t = q(e);
|
|
1483
|
-
return !
|
|
1495
|
+
return !On() || !t.visualViewport ? Ln : {
|
|
1484
1496
|
x: t.visualViewport.offsetLeft,
|
|
1485
1497
|
y: t.visualViewport.offsetTop
|
|
1486
1498
|
};
|
|
1487
1499
|
}
|
|
1488
|
-
function
|
|
1500
|
+
function zn(e, t, n) {
|
|
1489
1501
|
return t === void 0 && (t = !1), !!n && t && n === q(e);
|
|
1490
1502
|
}
|
|
1491
|
-
function
|
|
1503
|
+
function Bn(e, t, n, r) {
|
|
1492
1504
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1493
|
-
let i = e.getBoundingClientRect(), a =
|
|
1494
|
-
t && (r ? Y(r) && (o =
|
|
1495
|
-
let s =
|
|
1505
|
+
let i = e.getBoundingClientRect(), a = Fn(e), o = H(1);
|
|
1506
|
+
t && (r ? Y(r) && (o = In(r)) : o = In(e));
|
|
1507
|
+
let s = zn(a, n, r) ? Rn(a) : H(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1496
1508
|
if (a && r) {
|
|
1497
|
-
let e = q(a), t = Y(r) ? q(r) : r, n = e, i =
|
|
1509
|
+
let e = q(a), t = Y(r) ? q(r) : r, n = e, i = Nn(n);
|
|
1498
1510
|
for (; i && t !== n;) {
|
|
1499
|
-
let e =
|
|
1500
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i =
|
|
1511
|
+
let e = In(i), t = i.getBoundingClientRect(), r = Q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1512
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = q(i), i = Nn(n);
|
|
1501
1513
|
}
|
|
1502
1514
|
}
|
|
1503
|
-
return
|
|
1515
|
+
return en({
|
|
1504
1516
|
width: u,
|
|
1505
1517
|
height: d,
|
|
1506
1518
|
x: c,
|
|
1507
1519
|
y: l
|
|
1508
1520
|
});
|
|
1509
1521
|
}
|
|
1510
|
-
function
|
|
1511
|
-
let n =
|
|
1512
|
-
return t ? t.left + n :
|
|
1522
|
+
function Vn(e, t) {
|
|
1523
|
+
let n = An(e).scrollLeft;
|
|
1524
|
+
return t ? t.left + n : Bn(J(e)).left + n;
|
|
1513
1525
|
}
|
|
1514
|
-
function
|
|
1526
|
+
function Hn(e, t) {
|
|
1515
1527
|
let n = e.getBoundingClientRect();
|
|
1516
1528
|
return {
|
|
1517
|
-
x: n.left + t.scrollLeft -
|
|
1529
|
+
x: n.left + t.scrollLeft - Vn(e, n),
|
|
1518
1530
|
y: n.top + t.scrollTop
|
|
1519
1531
|
};
|
|
1520
1532
|
}
|
|
1521
|
-
function
|
|
1522
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = J(r), s = t ?
|
|
1533
|
+
function Un(e) {
|
|
1534
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = J(r), s = t ? Sn(t.floating) : !1;
|
|
1523
1535
|
if (r === o || s && a) return n;
|
|
1524
1536
|
let c = {
|
|
1525
1537
|
scrollLeft: 0,
|
|
1526
1538
|
scrollTop: 0
|
|
1527
1539
|
}, l = H(1), u = H(0), d = X(r);
|
|
1528
|
-
if ((d || !a) && ((K(r) !== "body" ||
|
|
1529
|
-
let e =
|
|
1530
|
-
l =
|
|
1540
|
+
if ((d || !a) && ((K(r) !== "body" || bn(o)) && (c = An(r)), d)) {
|
|
1541
|
+
let e = Bn(r);
|
|
1542
|
+
l = In(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1531
1543
|
}
|
|
1532
|
-
let f = o && !d && !a ?
|
|
1544
|
+
let f = o && !d && !a ? Hn(o, c) : H(0);
|
|
1533
1545
|
return {
|
|
1534
1546
|
width: n.width * l.x,
|
|
1535
1547
|
height: n.height * l.y,
|
|
@@ -1537,11 +1549,11 @@ function Bn(e) {
|
|
|
1537
1549
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1538
1550
|
};
|
|
1539
1551
|
}
|
|
1540
|
-
function
|
|
1552
|
+
function Wn(e) {
|
|
1541
1553
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
1542
1554
|
}
|
|
1543
|
-
function
|
|
1544
|
-
let t =
|
|
1555
|
+
function Gn(e) {
|
|
1556
|
+
let t = An(e), n = e.ownerDocument.body, r = V(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = V(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Vn(e), o = -t.scrollTop;
|
|
1545
1557
|
return Q(n).direction === "rtl" && (a += V(e.clientWidth, n.clientWidth) - r), {
|
|
1546
1558
|
width: r,
|
|
1547
1559
|
height: i,
|
|
@@ -1549,17 +1561,17 @@ function Hn(e) {
|
|
|
1549
1561
|
y: o
|
|
1550
1562
|
};
|
|
1551
1563
|
}
|
|
1552
|
-
var
|
|
1553
|
-
function
|
|
1564
|
+
var Kn = 25;
|
|
1565
|
+
function qn(e, t, n) {
|
|
1554
1566
|
n === void 0 && (n = "viewport");
|
|
1555
1567
|
let r = n === "layoutViewport", i = q(e), a = J(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
1556
1568
|
if (o) {
|
|
1557
|
-
let e = !
|
|
1569
|
+
let e = !On() || t === "fixed";
|
|
1558
1570
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
1559
1571
|
}
|
|
1560
|
-
if (
|
|
1572
|
+
if (Vn(a) <= 0) {
|
|
1561
1573
|
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
1562
|
-
o <=
|
|
1574
|
+
o <= Kn && (s -= o);
|
|
1563
1575
|
}
|
|
1564
1576
|
return {
|
|
1565
1577
|
width: s,
|
|
@@ -1568,8 +1580,8 @@ function Wn(e, t, n) {
|
|
|
1568
1580
|
y: u
|
|
1569
1581
|
};
|
|
1570
1582
|
}
|
|
1571
|
-
function
|
|
1572
|
-
let n =
|
|
1583
|
+
function Jn(e, t) {
|
|
1584
|
+
let n = Bn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = In(e);
|
|
1573
1585
|
return {
|
|
1574
1586
|
width: e.clientWidth * a.x,
|
|
1575
1587
|
height: e.clientHeight * a.y,
|
|
@@ -1577,13 +1589,13 @@ function Gn(e, t) {
|
|
|
1577
1589
|
y: r * a.y
|
|
1578
1590
|
};
|
|
1579
1591
|
}
|
|
1580
|
-
function
|
|
1592
|
+
function Yn(e, t, n) {
|
|
1581
1593
|
let r;
|
|
1582
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
1583
|
-
else if (t === "document") r =
|
|
1584
|
-
else if (Y(t)) r =
|
|
1594
|
+
if (t === "viewport" || t === "layoutViewport") r = qn(e, n, t);
|
|
1595
|
+
else if (t === "document") r = Gn(J(e));
|
|
1596
|
+
else if (Y(t)) r = Jn(t, n);
|
|
1585
1597
|
else {
|
|
1586
|
-
let n =
|
|
1598
|
+
let n = Rn(e);
|
|
1587
1599
|
r = {
|
|
1588
1600
|
x: t.x - n.x,
|
|
1589
1601
|
y: t.y - n.y,
|
|
@@ -1591,22 +1603,22 @@ function Kn(e, t, n) {
|
|
|
1591
1603
|
height: t.height
|
|
1592
1604
|
};
|
|
1593
1605
|
}
|
|
1594
|
-
return
|
|
1606
|
+
return en(r);
|
|
1595
1607
|
}
|
|
1596
|
-
function
|
|
1608
|
+
function Xn(e, t) {
|
|
1597
1609
|
let n = t.get(e);
|
|
1598
1610
|
if (n) return n;
|
|
1599
|
-
let r =
|
|
1600
|
-
for (; Y(o) && !
|
|
1601
|
-
let e = Q(o), t =
|
|
1611
|
+
let r = Mn(e, [], !1).filter((e) => Y(e) && K(e) !== "body"), i = null, a = Q(e).position === "fixed", o = a ? $(e) : e;
|
|
1612
|
+
for (; Y(o) && !kn(o);) {
|
|
1613
|
+
let e = Q(o), t = En(o), n = i ? i.position : a ? "fixed" : "";
|
|
1602
1614
|
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = $(o);
|
|
1603
1615
|
}
|
|
1604
1616
|
return t.set(e, r), r;
|
|
1605
1617
|
}
|
|
1606
|
-
function
|
|
1607
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
1618
|
+
function Zn(e) {
|
|
1619
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Sn(t) ? [] : Xn(t, this._c) : [].concat(n), r], o = Yn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1608
1620
|
for (let e = 1; e < a.length; e++) {
|
|
1609
|
-
let n =
|
|
1621
|
+
let n = Yn(t, a[e], i);
|
|
1610
1622
|
s = V(n.top, s), c = B(n.right, c), l = B(n.bottom, l), u = V(n.left, u);
|
|
1611
1623
|
}
|
|
1612
1624
|
return {
|
|
@@ -1616,24 +1628,24 @@ function Jn(e) {
|
|
|
1616
1628
|
y: s
|
|
1617
1629
|
};
|
|
1618
1630
|
}
|
|
1619
|
-
function
|
|
1620
|
-
let { width: t, height: n } =
|
|
1631
|
+
function Qn(e) {
|
|
1632
|
+
let { width: t, height: n } = Pn(e);
|
|
1621
1633
|
return {
|
|
1622
1634
|
width: t,
|
|
1623
1635
|
height: n
|
|
1624
1636
|
};
|
|
1625
1637
|
}
|
|
1626
|
-
function
|
|
1627
|
-
let r = X(t), i = J(t), a = n === "fixed", o =
|
|
1638
|
+
function $n(e, t, n) {
|
|
1639
|
+
let r = X(t), i = J(t), a = n === "fixed", o = Bn(e, !0, a, t), s = {
|
|
1628
1640
|
scrollLeft: 0,
|
|
1629
1641
|
scrollTop: 0
|
|
1630
1642
|
}, c = H(0);
|
|
1631
|
-
if ((r || !a) && ((K(t) !== "body" ||
|
|
1632
|
-
let e =
|
|
1643
|
+
if ((r || !a) && ((K(t) !== "body" || bn(i)) && (s = An(t)), r)) {
|
|
1644
|
+
let e = Bn(t, !0, a, t);
|
|
1633
1645
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1634
1646
|
}
|
|
1635
|
-
!r && i && (c.x =
|
|
1636
|
-
let l = i && !r && !a ?
|
|
1647
|
+
!r && i && (c.x = Vn(i));
|
|
1648
|
+
let l = i && !r && !a ? Hn(i, s) : H(0);
|
|
1637
1649
|
return {
|
|
1638
1650
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
1639
1651
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -1641,34 +1653,34 @@ function Xn(e, t, n) {
|
|
|
1641
1653
|
height: o.height
|
|
1642
1654
|
};
|
|
1643
1655
|
}
|
|
1644
|
-
function
|
|
1656
|
+
function er(e) {
|
|
1645
1657
|
return Q(e).position === "static";
|
|
1646
1658
|
}
|
|
1647
|
-
function
|
|
1659
|
+
function tr(e, t) {
|
|
1648
1660
|
if (!X(e) || Q(e).position === "fixed") return null;
|
|
1649
1661
|
if (t) return t(e);
|
|
1650
1662
|
let n = e.offsetParent;
|
|
1651
1663
|
return J(e) === n && (n = n.ownerDocument.body), n;
|
|
1652
1664
|
}
|
|
1653
|
-
function
|
|
1665
|
+
function nr(e, t) {
|
|
1654
1666
|
let n = q(e);
|
|
1655
|
-
if (
|
|
1667
|
+
if (Sn(e)) return n;
|
|
1656
1668
|
if (!X(e)) {
|
|
1657
1669
|
let t = $(e);
|
|
1658
|
-
for (; t && !
|
|
1659
|
-
if (Y(t) && !
|
|
1670
|
+
for (; t && !kn(t);) {
|
|
1671
|
+
if (Y(t) && !er(t)) return t;
|
|
1660
1672
|
t = $(t);
|
|
1661
1673
|
}
|
|
1662
1674
|
return n;
|
|
1663
1675
|
}
|
|
1664
|
-
let r =
|
|
1665
|
-
for (; r &&
|
|
1666
|
-
return r &&
|
|
1676
|
+
let r = tr(e, t);
|
|
1677
|
+
for (; r && xn(r) && er(r);) r = tr(r, t);
|
|
1678
|
+
return r && kn(r) && er(r) && !En(r) ? n : r || Dn(e) || n;
|
|
1667
1679
|
}
|
|
1668
|
-
var
|
|
1669
|
-
let t = this.getOffsetParent ||
|
|
1680
|
+
var rr = async function(e) {
|
|
1681
|
+
let t = this.getOffsetParent || nr, n = this.getDimensions, r = await n(e.floating);
|
|
1670
1682
|
return {
|
|
1671
|
-
reference:
|
|
1683
|
+
reference: $n(e.reference, await t(e.floating), e.strategy),
|
|
1672
1684
|
floating: {
|
|
1673
1685
|
x: 0,
|
|
1674
1686
|
y: 0,
|
|
@@ -1677,25 +1689,25 @@ var er = async function(e) {
|
|
|
1677
1689
|
}
|
|
1678
1690
|
};
|
|
1679
1691
|
};
|
|
1680
|
-
function
|
|
1692
|
+
function ir(e) {
|
|
1681
1693
|
return Q(e).direction === "rtl";
|
|
1682
1694
|
}
|
|
1683
|
-
var
|
|
1684
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1695
|
+
var ar = {
|
|
1696
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Un,
|
|
1685
1697
|
getDocumentElement: J,
|
|
1686
|
-
getClippingRect:
|
|
1687
|
-
getOffsetParent:
|
|
1688
|
-
getElementRects:
|
|
1689
|
-
getClientRects:
|
|
1690
|
-
getDimensions:
|
|
1691
|
-
getScale:
|
|
1698
|
+
getClippingRect: Zn,
|
|
1699
|
+
getOffsetParent: nr,
|
|
1700
|
+
getElementRects: rr,
|
|
1701
|
+
getClientRects: Wn,
|
|
1702
|
+
getDimensions: Qn,
|
|
1703
|
+
getScale: In,
|
|
1692
1704
|
isElement: Y,
|
|
1693
|
-
isRTL:
|
|
1705
|
+
isRTL: ir
|
|
1694
1706
|
};
|
|
1695
|
-
function
|
|
1707
|
+
function or(e, t) {
|
|
1696
1708
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1697
1709
|
}
|
|
1698
|
-
function
|
|
1710
|
+
function sr(e, t, n) {
|
|
1699
1711
|
let r = null, i, a = J(e);
|
|
1700
1712
|
function o() {
|
|
1701
1713
|
var e;
|
|
@@ -1705,13 +1717,13 @@ function ir(e, t, n) {
|
|
|
1705
1717
|
n === void 0 && (n = !1), c === void 0 && (c = 1), o();
|
|
1706
1718
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1707
1719
|
if (n || t(), !f || !p) return;
|
|
1708
|
-
let m =
|
|
1720
|
+
let m = Ft(d), h = Ft(a.clientWidth - (u + f)), g = Ft(a.clientHeight - (d + p)), _ = Ft(u), v = {
|
|
1709
1721
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1710
1722
|
threshold: V(0, B(1, c)) || 1
|
|
1711
1723
|
}, y = !0;
|
|
1712
1724
|
function b(t) {
|
|
1713
1725
|
let n = t[0].intersectionRatio;
|
|
1714
|
-
if (!
|
|
1726
|
+
if (!or(l, e.getBoundingClientRect())) return s();
|
|
1715
1727
|
if (n !== c) {
|
|
1716
1728
|
if (!y) return s();
|
|
1717
1729
|
n ? s(!1, n) : i = setTimeout(() => {
|
|
@@ -1735,13 +1747,13 @@ function ir(e, t, n) {
|
|
|
1735
1747
|
c.removeEventListener("resize", l), o();
|
|
1736
1748
|
};
|
|
1737
1749
|
}
|
|
1738
|
-
function
|
|
1750
|
+
function cr(e, t, n, r) {
|
|
1739
1751
|
r === void 0 && (r = {});
|
|
1740
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1752
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Fn(e), u = i || a ? [...l ? Mn(l) : [], ...t ? Mn(t) : []] : [];
|
|
1741
1753
|
u.forEach((e) => {
|
|
1742
1754
|
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
1743
1755
|
});
|
|
1744
|
-
let d = l && s ?
|
|
1756
|
+
let d = l && s ? sr(l, n, a) : null, f = -1, p = null;
|
|
1745
1757
|
o && (p = new ResizeObserver((e) => {
|
|
1746
1758
|
let [r] = e;
|
|
1747
1759
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1749,11 +1761,11 @@ function ar(e, t, n, r) {
|
|
|
1749
1761
|
(e = p) == null || e.observe(t);
|
|
1750
1762
|
})), n();
|
|
1751
1763
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
1752
|
-
let m, h = c ?
|
|
1764
|
+
let m, h = c ? Bn(e) : null;
|
|
1753
1765
|
c && g();
|
|
1754
1766
|
function g() {
|
|
1755
|
-
let t =
|
|
1756
|
-
h && !
|
|
1767
|
+
let t = Bn(e);
|
|
1768
|
+
h && !or(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1757
1769
|
}
|
|
1758
1770
|
return n(), () => {
|
|
1759
1771
|
var e;
|
|
@@ -1762,63 +1774,63 @@ function ar(e, t, n, r) {
|
|
|
1762
1774
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1763
1775
|
};
|
|
1764
1776
|
}
|
|
1765
|
-
var
|
|
1777
|
+
var lr = pn, ur = mn, dr = sn, fr = gn, pr = un, mr = on, hr = hn, gr = (e, t, n) => {
|
|
1766
1778
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
1767
|
-
...
|
|
1779
|
+
...ar,
|
|
1768
1780
|
...i.platform,
|
|
1769
1781
|
_c: r
|
|
1770
1782
|
};
|
|
1771
|
-
return
|
|
1783
|
+
return an(e, t, {
|
|
1772
1784
|
...i,
|
|
1773
1785
|
platform: a
|
|
1774
1786
|
});
|
|
1775
1787
|
};
|
|
1776
1788
|
//#endregion
|
|
1777
|
-
//#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.
|
|
1778
|
-
function
|
|
1789
|
+
//#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.44_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
1790
|
+
function _r(e) {
|
|
1779
1791
|
return typeof e == "object" && !!e && "$el" in e;
|
|
1780
1792
|
}
|
|
1781
|
-
function
|
|
1782
|
-
if (
|
|
1793
|
+
function vr(e) {
|
|
1794
|
+
if (_r(e)) {
|
|
1783
1795
|
let t = e.$el;
|
|
1784
|
-
return
|
|
1796
|
+
return vn(t) && K(t) === "#comment" ? null : t;
|
|
1785
1797
|
}
|
|
1786
1798
|
return e;
|
|
1787
1799
|
}
|
|
1788
|
-
function
|
|
1800
|
+
function yr(e) {
|
|
1789
1801
|
return {
|
|
1790
1802
|
name: "arrow",
|
|
1791
1803
|
options: e,
|
|
1792
1804
|
fn(t) {
|
|
1793
|
-
let n =
|
|
1794
|
-
return n == null ? {} :
|
|
1805
|
+
let n = vr(N(e.element));
|
|
1806
|
+
return n == null ? {} : mr({
|
|
1795
1807
|
element: n,
|
|
1796
1808
|
padding: e.padding
|
|
1797
1809
|
}).fn(t);
|
|
1798
1810
|
}
|
|
1799
1811
|
};
|
|
1800
1812
|
}
|
|
1801
|
-
function
|
|
1813
|
+
function br(e) {
|
|
1802
1814
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1803
1815
|
}
|
|
1804
|
-
function
|
|
1805
|
-
let n =
|
|
1816
|
+
function xr(e, t) {
|
|
1817
|
+
let n = br(e);
|
|
1806
1818
|
return Math.round(t * n) / n;
|
|
1807
1819
|
}
|
|
1808
|
-
function
|
|
1820
|
+
function Sr(e, t, n) {
|
|
1809
1821
|
n === void 0 && (n = {});
|
|
1810
|
-
let r = n.whileElementsMounted, i = o(() => N(n.open) ?? !0), a = o(() => N(n.middleware)), s = o(() => N(n.placement) ?? "bottom"), c = o(() => N(n.strategy) ?? "absolute"), l = o(() => N(n.transform) ?? !0), u = o(() =>
|
|
1822
|
+
let r = n.whileElementsMounted, i = o(() => N(n.open) ?? !0), a = o(() => N(n.middleware)), s = o(() => N(n.placement) ?? "bottom"), c = o(() => N(n.strategy) ?? "absolute"), l = o(() => N(n.transform) ?? !0), u = o(() => vr(e.value)), d = o(() => vr(t.value)), f = A(0), p = A(0), m = A(c.value), h = A(s.value), _ = ae({}), v = A(!1), y = o(() => {
|
|
1811
1823
|
let e = {
|
|
1812
1824
|
position: m.value,
|
|
1813
1825
|
left: "0",
|
|
1814
1826
|
top: "0"
|
|
1815
1827
|
};
|
|
1816
1828
|
if (!d.value) return e;
|
|
1817
|
-
let t =
|
|
1829
|
+
let t = xr(d.value, f.value), n = xr(d.value, p.value);
|
|
1818
1830
|
return l.value ? {
|
|
1819
1831
|
...e,
|
|
1820
1832
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
1821
|
-
...
|
|
1833
|
+
...br(d.value) >= 1.5 && { willChange: "transform" }
|
|
1822
1834
|
} : {
|
|
1823
1835
|
position: m.value,
|
|
1824
1836
|
left: t + "px",
|
|
@@ -1828,7 +1840,7 @@ function yr(e, t, n) {
|
|
|
1828
1840
|
function x() {
|
|
1829
1841
|
if (u.value == null || d.value == null) return;
|
|
1830
1842
|
let e = i.value;
|
|
1831
|
-
|
|
1843
|
+
gr(u.value, d.value, {
|
|
1832
1844
|
middleware: a.value,
|
|
1833
1845
|
placement: s.value,
|
|
1834
1846
|
strategy: c.value
|
|
@@ -1840,14 +1852,7 @@ function yr(e, t, n) {
|
|
|
1840
1852
|
typeof b == "function" && (b(), b = void 0);
|
|
1841
1853
|
}
|
|
1842
1854
|
function C() {
|
|
1843
|
-
|
|
1844
|
-
x();
|
|
1845
|
-
return;
|
|
1846
|
-
}
|
|
1847
|
-
if (u.value != null && d.value != null) {
|
|
1848
|
-
b = r(u.value, d.value, x);
|
|
1849
|
-
return;
|
|
1850
|
-
}
|
|
1855
|
+
S(), r === void 0 ? x() : u.value != null && d.value != null && (b = r(u.value, d.value, x));
|
|
1851
1856
|
}
|
|
1852
1857
|
function w() {
|
|
1853
1858
|
i.value || (v.value = !1);
|
|
@@ -1869,8 +1874,8 @@ function yr(e, t, n) {
|
|
|
1869
1874
|
};
|
|
1870
1875
|
}
|
|
1871
1876
|
//#endregion
|
|
1872
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.
|
|
1873
|
-
var
|
|
1877
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.44_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperContent.js
|
|
1878
|
+
var Cr = ["dir"], wr = {
|
|
1874
1879
|
side: "bottom",
|
|
1875
1880
|
sideOffset: 0,
|
|
1876
1881
|
sideFlip: !0,
|
|
@@ -1887,7 +1892,7 @@ var br = ["dir"], xr = {
|
|
|
1887
1892
|
positionStrategy: "fixed",
|
|
1888
1893
|
updatePositionStrategy: "optimized",
|
|
1889
1894
|
prioritizePosition: !1
|
|
1890
|
-
}, [
|
|
1895
|
+
}, [Tr, Er] = /*#__PURE__*/ we("PopperContent"), Dr = /* @__PURE__ */ m({
|
|
1891
1896
|
inheritAttrs: !1,
|
|
1892
1897
|
__name: "PopperContent",
|
|
1893
1898
|
props: /* @__PURE__ */ x({
|
|
@@ -1979,10 +1984,10 @@ var br = ["dir"], xr = {
|
|
|
1979
1984
|
type: null,
|
|
1980
1985
|
required: !1
|
|
1981
1986
|
}
|
|
1982
|
-
}, { ...
|
|
1987
|
+
}, { ...wr }),
|
|
1983
1988
|
emits: ["placed"],
|
|
1984
1989
|
setup(e, { emit: t }) {
|
|
1985
|
-
let n = e, r = t, i =
|
|
1990
|
+
let n = e, r = t, i = Ct(), { forwardRef: a, currentElement: c } = L(), u = Je(o(() => n.dir)), d = A(), f = A(), { width: p, height: m } = st(f), h = o(() => n.side + (n.align === "center" ? "" : `-${n.align}`)), g = o(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
1986
1991
|
top: 0,
|
|
1987
1992
|
right: 0,
|
|
1988
1993
|
bottom: 0,
|
|
@@ -1990,59 +1995,59 @@ var br = ["dir"], xr = {
|
|
|
1990
1995
|
...n.collisionPadding
|
|
1991
1996
|
}), _ = o(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), v = o(() => ({
|
|
1992
1997
|
padding: g.value,
|
|
1993
|
-
boundary: _.value.filter(
|
|
1998
|
+
boundary: _.value.filter(At),
|
|
1994
1999
|
altBoundary: _.value.length > 0
|
|
1995
2000
|
})), y = o(() => ({
|
|
1996
2001
|
mainAxis: n.sideFlip,
|
|
1997
2002
|
crossAxis: n.alignFlip
|
|
1998
2003
|
})), b = o(() => [
|
|
1999
|
-
|
|
2004
|
+
lr({
|
|
2000
2005
|
mainAxis: n.sideOffset + m.value,
|
|
2001
2006
|
alignmentAxis: n.alignOffset
|
|
2002
2007
|
}),
|
|
2003
|
-
n.prioritizePosition && n.avoidCollisions &&
|
|
2008
|
+
n.prioritizePosition && n.avoidCollisions && dr({
|
|
2004
2009
|
...v.value,
|
|
2005
2010
|
...y.value
|
|
2006
2011
|
}),
|
|
2007
|
-
n.avoidCollisions &&
|
|
2012
|
+
n.avoidCollisions && ur({
|
|
2008
2013
|
mainAxis: !0,
|
|
2009
2014
|
crossAxis: !!n.prioritizePosition,
|
|
2010
|
-
limiter: n.sticky === "partial" ?
|
|
2015
|
+
limiter: n.sticky === "partial" ? hr() : void 0,
|
|
2011
2016
|
...v.value
|
|
2012
2017
|
}),
|
|
2013
|
-
!n.prioritizePosition && n.avoidCollisions &&
|
|
2018
|
+
!n.prioritizePosition && n.avoidCollisions && dr({
|
|
2014
2019
|
...v.value,
|
|
2015
2020
|
...y.value
|
|
2016
2021
|
}),
|
|
2017
|
-
|
|
2022
|
+
fr({
|
|
2018
2023
|
...v.value,
|
|
2019
2024
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2020
2025
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2021
2026
|
o.setProperty("--reka-popper-available-width", `${n}px`), o.setProperty("--reka-popper-available-height", `${r}px`), o.setProperty("--reka-popper-anchor-width", `${i}px`), o.setProperty("--reka-popper-anchor-height", `${a}px`);
|
|
2022
2027
|
}
|
|
2023
2028
|
}),
|
|
2024
|
-
f.value &&
|
|
2029
|
+
f.value && yr({
|
|
2025
2030
|
element: f.value,
|
|
2026
2031
|
padding: n.arrowPadding
|
|
2027
2032
|
}),
|
|
2028
|
-
|
|
2033
|
+
jt({
|
|
2029
2034
|
arrowWidth: p.value,
|
|
2030
2035
|
arrowHeight: m.value,
|
|
2031
2036
|
dir: u.value
|
|
2032
2037
|
}),
|
|
2033
|
-
n.hideWhenDetached &&
|
|
2038
|
+
n.hideWhenDetached && pr({
|
|
2034
2039
|
strategy: "referenceHidden",
|
|
2035
2040
|
...v.value
|
|
2036
2041
|
})
|
|
2037
|
-
]), { floatingStyles: x, placement: C, isPositioned: w, middlewareData: E, update: ee } =
|
|
2042
|
+
]), { floatingStyles: x, placement: C, isPositioned: w, middlewareData: E, update: ee } = Sr(o(() => n.reference ?? i.anchor.value), d, {
|
|
2038
2043
|
strategy: n.positionStrategy,
|
|
2039
2044
|
placement: h,
|
|
2040
|
-
whileElementsMounted: (...e) =>
|
|
2045
|
+
whileElementsMounted: (...e) => cr(...e, {
|
|
2041
2046
|
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
2042
2047
|
animationFrame: n.updatePositionStrategy === "always"
|
|
2043
2048
|
}),
|
|
2044
2049
|
middleware: b
|
|
2045
|
-
}), D = o(() =>
|
|
2050
|
+
}), D = o(() => Mt(C.value)[0]), O = o(() => Mt(C.value)[1]);
|
|
2046
2051
|
me(() => {
|
|
2047
2052
|
w.value && r("placed");
|
|
2048
2053
|
});
|
|
@@ -2052,7 +2057,7 @@ var br = ["dir"], xr = {
|
|
|
2052
2057
|
}), ne = A("");
|
|
2053
2058
|
return pe(() => {
|
|
2054
2059
|
c.value && (ne.value = window.getComputedStyle(c.value).zIndex);
|
|
2055
|
-
}),
|
|
2060
|
+
}), Er({
|
|
2056
2061
|
placedSide: D,
|
|
2057
2062
|
onArrowChange: (e) => f.value = e,
|
|
2058
2063
|
arrowX: o(() => E.value.arrow?.x ?? 0),
|
|
@@ -2082,7 +2087,7 @@ var br = ["dir"], xr = {
|
|
|
2082
2087
|
P(w),
|
|
2083
2088
|
...Object.values(e.$attrs),
|
|
2084
2089
|
...n.memoDependencies
|
|
2085
|
-
], () => (k(), s(P(
|
|
2090
|
+
], () => (k(), s(P(R), S({
|
|
2086
2091
|
key: 0,
|
|
2087
2092
|
ref: P(a)
|
|
2088
2093
|
}, e.$attrs, {
|
|
@@ -2100,7 +2105,7 @@ var br = ["dir"], xr = {
|
|
|
2100
2105
|
"data-side",
|
|
2101
2106
|
"data-align",
|
|
2102
2107
|
"style"
|
|
2103
|
-
])), t, 0) : (k(), s(P(
|
|
2108
|
+
])), t, 0) : (k(), s(P(R), S({
|
|
2104
2109
|
key: 1,
|
|
2105
2110
|
ref: P(a)
|
|
2106
2111
|
}, e.$attrs, {
|
|
@@ -2120,14 +2125,14 @@ var br = ["dir"], xr = {
|
|
|
2120
2125
|
"data-align",
|
|
2121
2126
|
"dir",
|
|
2122
2127
|
"style"
|
|
2123
|
-
]))], 12,
|
|
2128
|
+
]))], 12, Cr));
|
|
2124
2129
|
}
|
|
2125
|
-
}),
|
|
2130
|
+
}), Or = {
|
|
2126
2131
|
top: "bottom",
|
|
2127
2132
|
right: "left",
|
|
2128
2133
|
bottom: "top",
|
|
2129
2134
|
left: "right"
|
|
2130
|
-
},
|
|
2135
|
+
}, kr = /* @__PURE__ */ m({
|
|
2131
2136
|
inheritAttrs: !1,
|
|
2132
2137
|
__name: "PopperArrow",
|
|
2133
2138
|
props: {
|
|
@@ -2154,8 +2159,8 @@ var br = ["dir"], xr = {
|
|
|
2154
2159
|
}
|
|
2155
2160
|
},
|
|
2156
2161
|
setup(e) {
|
|
2157
|
-
let { forwardRef: t } =
|
|
2158
|
-
return (
|
|
2162
|
+
let { forwardRef: t } = L(), n = Tr(), r = o(() => Or[n.placedSide.value]);
|
|
2163
|
+
return (i, a) => (k(), l("span", {
|
|
2159
2164
|
ref: (e) => {
|
|
2160
2165
|
P(n).onArrowChange(e ?? void 0);
|
|
2161
2166
|
},
|
|
@@ -2178,7 +2183,7 @@ var br = ["dir"], xr = {
|
|
|
2178
2183
|
}[P(n).placedSide.value],
|
|
2179
2184
|
visibility: P(n).shouldHideArrow.value ? "hidden" : void 0
|
|
2180
2185
|
})
|
|
2181
|
-
}, [f(
|
|
2186
|
+
}, [f(kt, S(i.$attrs, {
|
|
2182
2187
|
ref: P(t),
|
|
2183
2188
|
style: { display: "block" },
|
|
2184
2189
|
as: e.as,
|
|
@@ -2187,7 +2192,7 @@ var br = ["dir"], xr = {
|
|
|
2187
2192
|
width: e.width,
|
|
2188
2193
|
height: e.height
|
|
2189
2194
|
}), {
|
|
2190
|
-
default: I(() => [j(
|
|
2195
|
+
default: I(() => [j(i.$slots, "default")]),
|
|
2191
2196
|
_: 3
|
|
2192
2197
|
}, 16, [
|
|
2193
2198
|
"as",
|
|
@@ -2197,7 +2202,7 @@ var br = ["dir"], xr = {
|
|
|
2197
2202
|
"height"
|
|
2198
2203
|
])], 4));
|
|
2199
2204
|
}
|
|
2200
|
-
}),
|
|
2205
|
+
}), Ar = /* @__PURE__ */ m({
|
|
2201
2206
|
__name: "TooltipArrow",
|
|
2202
2207
|
props: {
|
|
2203
2208
|
width: {
|
|
@@ -2222,12 +2227,12 @@ var br = ["dir"], xr = {
|
|
|
2222
2227
|
},
|
|
2223
2228
|
setup(e) {
|
|
2224
2229
|
let t = e;
|
|
2225
|
-
return
|
|
2230
|
+
return L(), (e, n) => (k(), s(P(kr), w(_(t)), {
|
|
2226
2231
|
default: I(() => [j(e.$slots, "default")]),
|
|
2227
2232
|
_: 3
|
|
2228
2233
|
}, 16));
|
|
2229
2234
|
}
|
|
2230
|
-
}), [
|
|
2235
|
+
}), [jr, Mr] = /*#__PURE__*/ we("TooltipProvider"), Nr = /* @__PURE__ */ m({
|
|
2231
2236
|
inheritAttrs: !1,
|
|
2232
2237
|
__name: "TooltipProvider",
|
|
2233
2238
|
props: {
|
|
@@ -2266,11 +2271,11 @@ var br = ["dir"], xr = {
|
|
|
2266
2271
|
},
|
|
2267
2272
|
setup(e) {
|
|
2268
2273
|
let { delayDuration: t, skipDelayDuration: n, disableHoverableContent: r, disableClosingTrigger: i, ignoreNonKeyboardFocus: a, disabled: o, content: s } = ue(e);
|
|
2269
|
-
|
|
2270
|
-
let c = A(!0), l = A(!1), { start: u, stop: d } =
|
|
2274
|
+
L();
|
|
2275
|
+
let c = A(!0), l = A(!1), { start: u, stop: d } = Ue(() => {
|
|
2271
2276
|
c.value = !0;
|
|
2272
2277
|
}, n, { immediate: !1 });
|
|
2273
|
-
return
|
|
2278
|
+
return Mr({
|
|
2274
2279
|
isOpenDelayed: c,
|
|
2275
2280
|
delayDuration: t,
|
|
2276
2281
|
onOpen() {
|
|
@@ -2287,7 +2292,7 @@ var br = ["dir"], xr = {
|
|
|
2287
2292
|
content: s
|
|
2288
2293
|
}), (e, t) => j(e.$slots, "default");
|
|
2289
2294
|
}
|
|
2290
|
-
}),
|
|
2295
|
+
}), Pr = "tooltip.open", [Fr, Ir] = /*#__PURE__*/ we("TooltipRoot"), Lr = /* @__PURE__ */ m({
|
|
2291
2296
|
__name: "TooltipRoot",
|
|
2292
2297
|
props: {
|
|
2293
2298
|
defaultOpen: {
|
|
@@ -2329,13 +2334,13 @@ var br = ["dir"], xr = {
|
|
|
2329
2334
|
emits: ["update:open"],
|
|
2330
2335
|
setup(e, { emit: t }) {
|
|
2331
2336
|
let n = e, r = t;
|
|
2332
|
-
|
|
2333
|
-
let i =
|
|
2337
|
+
L();
|
|
2338
|
+
let i = jr(), a = o(() => n.disableHoverableContent ?? i.disableHoverableContent.value), c = o(() => n.disableClosingTrigger ?? i.disableClosingTrigger.value), l = o(() => n.disabled ?? i.disabled.value), u = o(() => n.delayDuration ?? i.delayDuration.value), d = o(() => n.ignoreNonKeyboardFocus ?? i.ignoreNonKeyboardFocus.value), f = Ce(n, "open", r, {
|
|
2334
2339
|
defaultValue: n.defaultOpen,
|
|
2335
2340
|
passive: n.open === void 0
|
|
2336
2341
|
});
|
|
2337
2342
|
F(f, (e) => {
|
|
2338
|
-
i.onClose && (e ? (i.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
2343
|
+
i.onClose && (e ? (i.onOpen(), document.dispatchEvent(new CustomEvent(Pr))) : i.onClose());
|
|
2339
2344
|
});
|
|
2340
2345
|
let p = A(!1), m = A(), h = o(() => f.value ? p.value ? "delayed-open" : "instant-open" : "closed"), { start: g, stop: _ } = Se(() => {
|
|
2341
2346
|
p.value = !0, f.value = !0;
|
|
@@ -2349,7 +2354,7 @@ var br = ["dir"], xr = {
|
|
|
2349
2354
|
function b() {
|
|
2350
2355
|
g();
|
|
2351
2356
|
}
|
|
2352
|
-
return
|
|
2357
|
+
return Ir({
|
|
2353
2358
|
contentId: "",
|
|
2354
2359
|
open: f,
|
|
2355
2360
|
stateAttribute: h,
|
|
@@ -2369,12 +2374,12 @@ var br = ["dir"], xr = {
|
|
|
2369
2374
|
disableClosingTrigger: c,
|
|
2370
2375
|
disabled: l,
|
|
2371
2376
|
ignoreNonKeyboardFocus: d
|
|
2372
|
-
}), (e, t) => (k(), s(P(
|
|
2377
|
+
}), (e, t) => (k(), s(P(Tt), null, {
|
|
2373
2378
|
default: I(() => [j(e.$slots, "default", { open: P(f) })]),
|
|
2374
2379
|
_: 3
|
|
2375
2380
|
}));
|
|
2376
2381
|
}
|
|
2377
|
-
}),
|
|
2382
|
+
}), Rr = /* @__PURE__ */ m({
|
|
2378
2383
|
__name: "TooltipContentImpl",
|
|
2379
2384
|
props: {
|
|
2380
2385
|
ariaLabel: {
|
|
@@ -2443,9 +2448,9 @@ var br = ["dir"], xr = {
|
|
|
2443
2448
|
},
|
|
2444
2449
|
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
2445
2450
|
setup(e, { emit: t }) {
|
|
2446
|
-
let n = e, r = t, i =
|
|
2451
|
+
let n = e, r = t, i = Fr(), a = jr(), { forwardRef: c, currentElement: l } = L(), u = o(() => n.ariaLabel || l.value?.textContent), p = o(() => {
|
|
2447
2452
|
let { ariaLabel: e, ...t } = n;
|
|
2448
|
-
return
|
|
2453
|
+
return qe(t, a.content.value ?? {}, {
|
|
2449
2454
|
side: "top",
|
|
2450
2455
|
sideOffset: 0,
|
|
2451
2456
|
align: "center",
|
|
@@ -2460,8 +2465,8 @@ var br = ["dir"], xr = {
|
|
|
2460
2465
|
return ee(() => {
|
|
2461
2466
|
be(window, "scroll", (e) => {
|
|
2462
2467
|
e.target?.contains(i.trigger.value) && i.onClose();
|
|
2463
|
-
}, { capture: !0 }), be(document,
|
|
2464
|
-
}), (e, t) => (k(), s(P(
|
|
2468
|
+
}, { capture: !0 }), be(document, Pr, i.onClose);
|
|
2469
|
+
}), (e, t) => (k(), s(P(bt), {
|
|
2465
2470
|
"as-child": "",
|
|
2466
2471
|
"disable-outside-pointer-events": !1,
|
|
2467
2472
|
onEscapeKeyDown: t[0] ||= (e) => r("escapeKeyDown", e),
|
|
@@ -2471,7 +2476,7 @@ var br = ["dir"], xr = {
|
|
|
2471
2476
|
onFocusOutside: t[2] ||= ge(() => {}, ["prevent"]),
|
|
2472
2477
|
onDismiss: t[3] ||= (e) => P(i).onClose()
|
|
2473
2478
|
}, {
|
|
2474
|
-
default: I(() => [f(P(
|
|
2479
|
+
default: I(() => [f(P(Dr), S({
|
|
2475
2480
|
ref: P(c),
|
|
2476
2481
|
"data-state": P(i).stateAttribute.value
|
|
2477
2482
|
}, {
|
|
@@ -2484,7 +2489,7 @@ var br = ["dir"], xr = {
|
|
|
2484
2489
|
"--reka-tooltip-trigger-width": "var(--reka-popper-anchor-width)",
|
|
2485
2490
|
"--reka-tooltip-trigger-height": "var(--reka-popper-anchor-height)"
|
|
2486
2491
|
} }), {
|
|
2487
|
-
default: I(() => [j(e.$slots, "default"), f(P(
|
|
2492
|
+
default: I(() => [j(e.$slots, "default"), f(P(St), {
|
|
2488
2493
|
id: P(i).contentId,
|
|
2489
2494
|
role: "tooltip"
|
|
2490
2495
|
}, {
|
|
@@ -2496,7 +2501,7 @@ var br = ["dir"], xr = {
|
|
|
2496
2501
|
_: 3
|
|
2497
2502
|
}));
|
|
2498
2503
|
}
|
|
2499
|
-
}),
|
|
2504
|
+
}), zr = /* @__PURE__ */ m({
|
|
2500
2505
|
__name: "TooltipContentHoverable",
|
|
2501
2506
|
props: {
|
|
2502
2507
|
ariaLabel: {
|
|
@@ -2561,7 +2566,7 @@ var br = ["dir"], xr = {
|
|
|
2561
2566
|
}
|
|
2562
2567
|
},
|
|
2563
2568
|
setup(e) {
|
|
2564
|
-
let t =
|
|
2569
|
+
let t = Xe(e), { forwardRef: n, currentElement: r } = L(), { trigger: i, onClose: a } = Fr(), o = jr(), { isPointerInTransit: c, onPointerExit: l } = Qe(i, r);
|
|
2565
2570
|
return o.isPointerInTransitRef = c, l(() => {
|
|
2566
2571
|
a();
|
|
2567
2572
|
}), be(r, "pointermove", (e) => {
|
|
@@ -2571,12 +2576,12 @@ var br = ["dir"], xr = {
|
|
|
2571
2576
|
let n = e.closest("[data-grace-area-trigger]");
|
|
2572
2577
|
return !!n && n !== i.value;
|
|
2573
2578
|
}) && a();
|
|
2574
|
-
}), (e, r) => (k(), s(
|
|
2579
|
+
}), (e, r) => (k(), s(Rr, S({ ref: P(n) }, P(t)), {
|
|
2575
2580
|
default: I(() => [j(e.$slots, "default")]),
|
|
2576
2581
|
_: 3
|
|
2577
2582
|
}, 16));
|
|
2578
2583
|
}
|
|
2579
|
-
}),
|
|
2584
|
+
}), Br = /* @__PURE__ */ m({
|
|
2580
2585
|
__name: "TooltipContent",
|
|
2581
2586
|
props: {
|
|
2582
2587
|
forceMount: {
|
|
@@ -2646,16 +2651,16 @@ var br = ["dir"], xr = {
|
|
|
2646
2651
|
},
|
|
2647
2652
|
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
2648
2653
|
setup(e, { emit: t }) {
|
|
2649
|
-
let n = e, r = t, i =
|
|
2650
|
-
return (
|
|
2651
|
-
default: I(() => [(k(), s(ie(P(i).disableHoverableContent.value ?
|
|
2652
|
-
default: I(() => [j(
|
|
2654
|
+
let n = e, r = t, i = Fr(), a = Ze(n, r), { forwardRef: o } = L();
|
|
2655
|
+
return (t, n) => (k(), s(P(dt), { present: e.forceMount || P(i).open.value }, {
|
|
2656
|
+
default: I(() => [(k(), s(ie(P(i).disableHoverableContent.value ? Rr : zr), S({ ref: P(o) }, P(a)), {
|
|
2657
|
+
default: I(() => [j(t.$slots, "default")]),
|
|
2653
2658
|
_: 3
|
|
2654
2659
|
}, 16))]),
|
|
2655
2660
|
_: 3
|
|
2656
2661
|
}, 8, ["present"]));
|
|
2657
2662
|
}
|
|
2658
|
-
}),
|
|
2663
|
+
}), Vr = /* @__PURE__ */ m({
|
|
2659
2664
|
__name: "TooltipPortal",
|
|
2660
2665
|
props: {
|
|
2661
2666
|
to: {
|
|
@@ -2677,12 +2682,12 @@ var br = ["dir"], xr = {
|
|
|
2677
2682
|
},
|
|
2678
2683
|
setup(e) {
|
|
2679
2684
|
let t = e;
|
|
2680
|
-
return (e, n) => (k(), s(P(
|
|
2685
|
+
return (e, n) => (k(), s(P(xt), w(_(t)), {
|
|
2681
2686
|
default: I(() => [j(e.$slots, "default")]),
|
|
2682
2687
|
_: 3
|
|
2683
2688
|
}, 16));
|
|
2684
2689
|
}
|
|
2685
|
-
}),
|
|
2690
|
+
}), Hr = /* @__PURE__ */ m({
|
|
2686
2691
|
__name: "TooltipTrigger",
|
|
2687
2692
|
props: {
|
|
2688
2693
|
reference: {
|
|
@@ -2700,9 +2705,9 @@ var br = ["dir"], xr = {
|
|
|
2700
2705
|
}
|
|
2701
2706
|
},
|
|
2702
2707
|
setup(e) {
|
|
2703
|
-
let t = e, n =
|
|
2704
|
-
n.contentId ||=
|
|
2705
|
-
let { forwardRef: i, currentElement: a } =
|
|
2708
|
+
let t = e, n = Fr(), r = jr();
|
|
2709
|
+
n.contentId ||= ot(void 0, "reka-tooltip-content");
|
|
2710
|
+
let { forwardRef: i, currentElement: a } = L(), c = A(!1), l = A(!1), u = o(() => n.disabled.value ? {} : {
|
|
2706
2711
|
click: v,
|
|
2707
2712
|
focus: g,
|
|
2708
2713
|
pointermove: m,
|
|
@@ -2736,11 +2741,11 @@ var br = ["dir"], xr = {
|
|
|
2736
2741
|
function v() {
|
|
2737
2742
|
n.disableClosingTrigger.value || n.onClose();
|
|
2738
2743
|
}
|
|
2739
|
-
return (
|
|
2744
|
+
return (r, o) => (k(), s(P(Et), {
|
|
2740
2745
|
"as-child": "",
|
|
2741
2746
|
reference: e.reference ?? P(a)
|
|
2742
2747
|
}, {
|
|
2743
|
-
default: I(() => [f(P(
|
|
2748
|
+
default: I(() => [f(P(R), S({
|
|
2744
2749
|
ref: P(i),
|
|
2745
2750
|
"aria-describedby": P(n).open.value ? P(n).contentId : void 0,
|
|
2746
2751
|
"data-state": P(n).stateAttribute.value,
|
|
@@ -2748,7 +2753,7 @@ var br = ["dir"], xr = {
|
|
|
2748
2753
|
"as-child": t.asChild,
|
|
2749
2754
|
"data-grace-area-trigger": ""
|
|
2750
2755
|
}, ce(u.value)), {
|
|
2751
|
-
default: I(() => [j(
|
|
2756
|
+
default: I(() => [j(r.$slots, "default")]),
|
|
2752
2757
|
_: 3
|
|
2753
2758
|
}, 16, [
|
|
2754
2759
|
"aria-describedby",
|
|
@@ -2759,13 +2764,13 @@ var br = ["dir"], xr = {
|
|
|
2759
2764
|
_: 3
|
|
2760
2765
|
}, 8, ["reference"]));
|
|
2761
2766
|
}
|
|
2762
|
-
}),
|
|
2763
|
-
function
|
|
2764
|
-
return e.querySelector(
|
|
2767
|
+
}), Ur = ".poveste-app-root";
|
|
2768
|
+
function Wr(e = document) {
|
|
2769
|
+
return e.querySelector(Ur) ?? e.body;
|
|
2765
2770
|
}
|
|
2766
2771
|
//#endregion
|
|
2767
2772
|
//#region src/components/HstTooltip.vue
|
|
2768
|
-
var
|
|
2773
|
+
var Gr = /* @__PURE__ */ m({
|
|
2769
2774
|
name: "HstTooltip",
|
|
2770
2775
|
props: {
|
|
2771
2776
|
content: { default: void 0 },
|
|
@@ -2779,26 +2784,28 @@ var Hr = /* @__PURE__ */ m({
|
|
|
2779
2784
|
setup(e) {
|
|
2780
2785
|
let t = e, n = fe(), r = o(() => !!t.content || !!n.content), i = o(() => t.open === void 0 ? {} : { open: t.open }), a = ae();
|
|
2781
2786
|
return ee(() => {
|
|
2782
|
-
a.value =
|
|
2783
|
-
}), (t, n) => (k(), s(P(
|
|
2787
|
+
a.value = Wr();
|
|
2788
|
+
}), (t, n) => (k(), s(P(Nr), {
|
|
2784
2789
|
"delay-duration": 200,
|
|
2785
2790
|
"skip-delay-duration": 0
|
|
2786
2791
|
}, {
|
|
2787
|
-
default: I(() => [f(P(
|
|
2788
|
-
default: I(() => [f(P(
|
|
2792
|
+
default: I(() => [f(P(Lr), w(_(i.value)), {
|
|
2793
|
+
default: I(() => [f(P(Hr), { "as-child": "" }, {
|
|
2789
2794
|
default: I(() => [j(t.$slots, "default")]),
|
|
2790
2795
|
_: 3
|
|
2791
|
-
}), r.value && a.value ? (k(), s(P(
|
|
2796
|
+
}), r.value && a.value ? (k(), s(P(Vr), {
|
|
2792
2797
|
key: 0,
|
|
2793
2798
|
to: a.value
|
|
2794
2799
|
}, {
|
|
2795
|
-
default: I(() => [f(P(
|
|
2800
|
+
default: I(() => [f(P(Br), {
|
|
2796
2801
|
class: "poveste-tooltip",
|
|
2802
|
+
"data-slot": "tooltip",
|
|
2797
2803
|
side: e.side,
|
|
2798
2804
|
"side-offset": e.offset
|
|
2799
2805
|
}, {
|
|
2800
|
-
default: I(() => [j(t.$slots, "content", {}, () => [d(oe(e.content), 1)]), f(P(
|
|
2806
|
+
default: I(() => [j(t.$slots, "content", {}, () => [d(oe(e.content), 1)]), f(P(Ar), {
|
|
2801
2807
|
class: "poveste-tooltip-arrow",
|
|
2808
|
+
"data-slot": "arrow",
|
|
2802
2809
|
width: 10,
|
|
2803
2810
|
height: 5
|
|
2804
2811
|
})]),
|
|
@@ -2811,25 +2818,34 @@ var Hr = /* @__PURE__ */ m({
|
|
|
2811
2818
|
_: 3
|
|
2812
2819
|
}));
|
|
2813
2820
|
}
|
|
2814
|
-
}),
|
|
2821
|
+
}), Kr = {
|
|
2822
|
+
class: "poveste-wrapper-title",
|
|
2823
|
+
"data-slot": "title"
|
|
2824
|
+
}, qr = { class: "poveste-wrapper-body" }, Jr = {
|
|
2825
|
+
class: "poveste-wrapper-control",
|
|
2826
|
+
"data-slot": "field"
|
|
2827
|
+
}, Yr = /* @__PURE__ */ m({
|
|
2815
2828
|
name: "HstWrapper",
|
|
2816
2829
|
props: {
|
|
2817
2830
|
title: { default: void 0 },
|
|
2818
2831
|
tag: { default: "label" }
|
|
2819
2832
|
},
|
|
2820
2833
|
setup(e) {
|
|
2821
|
-
return (t, n) => (k(), s(ie(e.tag), {
|
|
2822
|
-
|
|
2834
|
+
return (t, n) => (k(), s(ie(e.tag), {
|
|
2835
|
+
class: "poveste-wrapper histoire-wrapper",
|
|
2836
|
+
"data-slot": "wrapper"
|
|
2837
|
+
}, {
|
|
2838
|
+
default: I(() => [f(Gr, {
|
|
2823
2839
|
content: e.title,
|
|
2824
2840
|
side: "left",
|
|
2825
2841
|
offset: 12
|
|
2826
2842
|
}, {
|
|
2827
|
-
default: I(() => [u("span",
|
|
2843
|
+
default: I(() => [u("span", Kr, oe(e.title), 1)]),
|
|
2828
2844
|
_: 1
|
|
2829
|
-
}, 8, ["content"]), u("span",
|
|
2845
|
+
}, 8, ["content"]), u("span", qr, [u("span", Jr, [j(t.$slots, "default")]), j(t.$slots, "actions")])]),
|
|
2830
2846
|
_: 3
|
|
2831
2847
|
}));
|
|
2832
2848
|
}
|
|
2833
2849
|
});
|
|
2834
2850
|
//#endregion
|
|
2835
|
-
export {
|
|
2851
|
+
export { Ve as C, De as D, je as E, Te as O, Be as S, Ae as T, L as _, Et as a, Pe as b, xt as c, ft as d, dt as f, Xe as g, Ze as h, Dr as i, we as k, bt as l, ot as m, Gr as n, Tt as o, st as p, Wr as r, St as s, Yr as t, R as u, Je as v, He as w, Fe as x, qe as y };
|