@teammodlr/ui-kit 3.0.0-beta.19 → 3.0.0-beta.20
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/lib/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ var Yi = (e, t, n) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Re = (e, t, n) => Yi(e, typeof t != "symbol" ? t + "" : t, n), Zi = (e, t, n) => t.has(e) || Ya("Cannot " + n);
|
|
7
7
|
var gn = (e, t, n) => (Zi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Za = (e, t, n) => t.has(e) ? Ya("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
8
8
|
import * as Fn from "vue";
|
|
9
|
-
import { defineComponent as M, renderSlot as S, ref as C, readonly as Do, watch as Q, computed as y, provide as De, openBlock as g, createElementBlock as A, normalizeStyle as de, normalizeClass as k, inject as Te, Fragment as ue, shallowRef as Ut, shallowReadonly as xt, getCurrentScope as Yo, onScopeDispose as Zo, toValue as Ve, effectScope as jr, toRefs as Pe, customRef as Lr, onBeforeUnmount as un, watchEffect as
|
|
9
|
+
import { defineComponent as M, renderSlot as S, ref as C, readonly as Do, watch as Q, computed as y, provide as De, openBlock as g, createElementBlock as A, normalizeStyle as de, normalizeClass as k, inject as Te, Fragment as ue, shallowRef as Ut, shallowReadonly as xt, getCurrentScope as Yo, onScopeDispose as Zo, toValue as Ve, effectScope as jr, toRefs as Pe, customRef as Lr, onBeforeUnmount as un, watchEffect as he, getCurrentInstance as Ft, isRef as Et, reactive as xe, unref as v, nextTick as ve, onMounted as Se, toHandlerKey as Ji, camelize as Nr, onUpdated as Qi, triggerRef as eu, toRef as _e, onUnmounted as jt, h as Qt, Comment as tu, mergeProps as J, cloneVNode as nu, createBlock as T, withCtx as _, createVNode as j, createCommentVNode as K, Teleport as Jo, normalizeProps as me, guardReactiveProps as Ce, markRaw as ou, renderList as Ie, watchPostEffect as Vr, mergeDefaults as xr, withDirectives as Qo, vShow as zr, resolveDynamicComponent as tt, withKeys as yt, withModifiers as be, createTextVNode as $e, toDisplayString as ie, toHandlers as ro, createElementVNode as R, resolveComponent as x, useAttrs as Hr, isVNode as hn, Transition as Ht, vModelText as au, toRaw as Ja } from "vue";
|
|
10
10
|
const ru = {
|
|
11
11
|
h: {
|
|
12
12
|
type: Function,
|
|
@@ -305,7 +305,7 @@ const [na, nS] = Me("ConfigProvider");
|
|
|
305
305
|
function $u(e, t) {
|
|
306
306
|
var n;
|
|
307
307
|
const o = Ut();
|
|
308
|
-
return
|
|
308
|
+
return he(() => {
|
|
309
309
|
o.value = e();
|
|
310
310
|
}, {
|
|
311
311
|
...t,
|
|
@@ -616,7 +616,7 @@ function mt(e) {
|
|
|
616
616
|
}
|
|
617
617
|
let ko = 0;
|
|
618
618
|
function Qr() {
|
|
619
|
-
|
|
619
|
+
he((e) => {
|
|
620
620
|
if (!ft) return;
|
|
621
621
|
const t = document.querySelectorAll("[data-reka-focus-guard]");
|
|
622
622
|
document.body.insertAdjacentElement("afterbegin", t[0] ?? or()), document.body.insertAdjacentElement("beforeend", t[1] ?? or()), ko++, e(() => {
|
|
@@ -718,7 +718,7 @@ function xu(e, t) {
|
|
|
718
718
|
}, c = zu(u, d.getBoundingClientRect()), p = Hu(u, c, 1), f = Wu(i.getBoundingClientRect()), m = Uu([...p, ...f]);
|
|
719
719
|
o.value = m, n.value = !0;
|
|
720
720
|
}
|
|
721
|
-
return
|
|
721
|
+
return he((l) => {
|
|
722
722
|
if (e.value && t.value) {
|
|
723
723
|
const i = (u) => s(u, t.value), d = (u) => s(u, e.value);
|
|
724
724
|
e.value.addEventListener("pointerleave", i), t.value.addEventListener("pointerleave", d), l(() => {
|
|
@@ -726,7 +726,7 @@ function xu(e, t) {
|
|
|
726
726
|
(u = e.value) == null || u.removeEventListener("pointerleave", i), (c = t.value) == null || c.removeEventListener("pointerleave", d);
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
729
|
+
}), he((l) => {
|
|
730
730
|
var i;
|
|
731
731
|
if (o.value) {
|
|
732
732
|
const d = (u) => {
|
|
@@ -1432,7 +1432,7 @@ function bd(e, t, n = !0) {
|
|
|
1432
1432
|
var s;
|
|
1433
1433
|
const o = ((s = t == null ? void 0 : t.value) == null ? void 0 : s.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), a = C(!1), r = C(() => {
|
|
1434
1434
|
});
|
|
1435
|
-
return
|
|
1435
|
+
return he((l) => {
|
|
1436
1436
|
if (!ft || !Ve(n)) return;
|
|
1437
1437
|
const i = async (u) => {
|
|
1438
1438
|
const c = u.target;
|
|
@@ -1463,7 +1463,7 @@ function bd(e, t, n = !0) {
|
|
|
1463
1463
|
function wd(e, t, n = !0) {
|
|
1464
1464
|
var r;
|
|
1465
1465
|
const o = ((r = t == null ? void 0 : t.value) == null ? void 0 : r.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), a = C(!1);
|
|
1466
|
-
return
|
|
1466
|
+
return he((s) => {
|
|
1467
1467
|
if (!ft || !Ve(n)) return;
|
|
1468
1468
|
const l = async (i) => {
|
|
1469
1469
|
if (!(t != null && t.value)) return;
|
|
@@ -1526,11 +1526,11 @@ var Cd = /* @__PURE__ */ M({
|
|
|
1526
1526
|
}, r);
|
|
1527
1527
|
return Fu("Escape", (f) => {
|
|
1528
1528
|
i.value === l.value.size - 1 && (o("escapeKeyDown", f), f.defaultPrevented || o("dismiss"));
|
|
1529
|
-
}),
|
|
1529
|
+
}), he((f) => {
|
|
1530
1530
|
r.value && (n.disableOutsidePointerEvents && (it.layersWithOutsidePointerEventsDisabled.size === 0 && (it.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), it.layersWithOutsidePointerEventsDisabled.add(r.value)), l.value.add(r.value), f(() => {
|
|
1531
1531
|
n.disableOutsidePointerEvents && it.layersWithOutsidePointerEventsDisabled.size === 1 && !Zn(it.originalBodyPointerEvents) && (s.value.body.style.pointerEvents = it.originalBodyPointerEvents);
|
|
1532
1532
|
}));
|
|
1533
|
-
}),
|
|
1533
|
+
}), he((f) => {
|
|
1534
1534
|
f(() => {
|
|
1535
1535
|
r.value && (l.value.delete(r.value), it.layersWithOutsidePointerEventsDisabled.delete(r.value));
|
|
1536
1536
|
});
|
|
@@ -1649,7 +1649,7 @@ var Td = /* @__PURE__ */ M({
|
|
|
1649
1649
|
this.paused = !1;
|
|
1650
1650
|
}
|
|
1651
1651
|
});
|
|
1652
|
-
|
|
1652
|
+
he((u) => {
|
|
1653
1653
|
if (!ft) return;
|
|
1654
1654
|
const c = r.value;
|
|
1655
1655
|
if (!n.trapped) return;
|
|
@@ -1676,7 +1676,7 @@ var Td = /* @__PURE__ */ M({
|
|
|
1676
1676
|
}), u(() => {
|
|
1677
1677
|
document.removeEventListener("focusin", p), document.removeEventListener("focusout", f), h.disconnect();
|
|
1678
1678
|
});
|
|
1679
|
-
}),
|
|
1679
|
+
}), he(async (u) => {
|
|
1680
1680
|
const c = r.value;
|
|
1681
1681
|
if (await ve(), !c) return;
|
|
1682
1682
|
l.add(i);
|
|
@@ -2245,7 +2245,7 @@ function va(e = {}) {
|
|
|
2245
2245
|
props: { value: { validator: () => !0 } },
|
|
2246
2246
|
setup(u, { slots: c, attrs: p }) {
|
|
2247
2247
|
const { primitiveElement: f, currentElement: m } = Io();
|
|
2248
|
-
return
|
|
2248
|
+
return he((h) => {
|
|
2249
2249
|
if (m.value) {
|
|
2250
2250
|
const b = ou(m.value);
|
|
2251
2251
|
a.itemMap.value.set(b, {
|
|
@@ -3986,7 +3986,7 @@ var gf = /* @__PURE__ */ M({
|
|
|
3986
3986
|
const U = ((V = E.value.arrow) == null ? void 0 : V.centerOffset) !== 0;
|
|
3987
3987
|
return n.hideShiftedArrow && U;
|
|
3988
3988
|
}), B = C("");
|
|
3989
|
-
|
|
3989
|
+
he(() => {
|
|
3990
3990
|
s.value && (B.value = window.getComputedStyle(s.value).zIndex);
|
|
3991
3991
|
});
|
|
3992
3992
|
const N = y(() => {
|
|
@@ -4162,7 +4162,7 @@ var Cf = /* @__PURE__ */ M({
|
|
|
4162
4162
|
const t = e, n = Cs();
|
|
4163
4163
|
Z();
|
|
4164
4164
|
const o = C(t.delayMs === void 0);
|
|
4165
|
-
return
|
|
4165
|
+
return he((a) => {
|
|
4166
4166
|
if (t.delayMs && ft) {
|
|
4167
4167
|
const r = window.setTimeout(() => {
|
|
4168
4168
|
o.value = !0;
|
|
@@ -4189,7 +4189,7 @@ function Of(e, { referrerPolicy: t, crossOrigin: n } = {}) {
|
|
|
4189
4189
|
o.value && (s.value = i);
|
|
4190
4190
|
};
|
|
4191
4191
|
return Se(() => {
|
|
4192
|
-
o.value = !0,
|
|
4192
|
+
o.value = !0, he((i) => {
|
|
4193
4193
|
const d = r.value;
|
|
4194
4194
|
if (!d) return;
|
|
4195
4195
|
s.value = wr(d, e.value);
|
|
@@ -4553,7 +4553,7 @@ var If = /* @__PURE__ */ M({
|
|
|
4553
4553
|
"data-disabled": i.value ? "" : void 0,
|
|
4554
4554
|
disabled: i.value,
|
|
4555
4555
|
focusable: (w = v(s)) != null && w.rovingFocus.value ? !i.value : void 0,
|
|
4556
|
-
onKeydown: yt(
|
|
4556
|
+
onKeydown: yt(be(() => {
|
|
4557
4557
|
}, ["prevent"]), ["enter"]),
|
|
4558
4558
|
onClick: c
|
|
4559
4559
|
}), {
|
|
@@ -4852,7 +4852,7 @@ var Wf = /* @__PURE__ */ M({
|
|
|
4852
4852
|
o("openAutoFocus", O), !O.defaultPrevented && (O.preventDefault(), (H = $.value) == null || H.focus({ preventScroll: !0 }));
|
|
4853
4853
|
}
|
|
4854
4854
|
function N(O) {
|
|
4855
|
-
var
|
|
4855
|
+
var ge;
|
|
4856
4856
|
if (O.defaultPrevented) return;
|
|
4857
4857
|
const H = O.target, Y = H.closest("[data-reka-menu-content]") === O.currentTarget, le = ["input", "textarea"].includes(H.tagName.toLowerCase()), ne = O.ctrlKey || O.altKey || O.metaKey, we = O.key.length === 1, Oe = tr(O, Le(), $.value, {
|
|
4858
4858
|
loop: i.value,
|
|
@@ -4863,7 +4863,7 @@ var Wf = /* @__PURE__ */ M({
|
|
|
4863
4863
|
});
|
|
4864
4864
|
if (Oe) return Oe == null ? void 0 : Oe.focus();
|
|
4865
4865
|
if (O.code === "Space") return;
|
|
4866
|
-
const Ee = ((
|
|
4866
|
+
const Ee = ((ge = b.value) == null ? void 0 : ge.getItems()) ?? [];
|
|
4867
4867
|
if (Y && (O.key === "Tab" && O.preventDefault(), !ne && we && !le && q(O.key, Ee)), O.target !== $.value || !Ad.includes(O.key)) return;
|
|
4868
4868
|
O.preventDefault();
|
|
4869
4869
|
const re = [...Ee.map((ke) => ke.ref)];
|
|
@@ -5296,7 +5296,7 @@ var Xf = /* @__PURE__ */ M({
|
|
|
5296
5296
|
"disable-outside-pointer-events": v(r).open.value,
|
|
5297
5297
|
"disable-outside-scroll": !0,
|
|
5298
5298
|
onDismiss: d[0] || (d[0] = (u) => v(r).onOpenChange(!1)),
|
|
5299
|
-
onFocusOutside: d[1] || (d[1] =
|
|
5299
|
+
onFocusOutside: d[1] || (d[1] = be((u) => o("focusOutside", u), ["prevent"]))
|
|
5300
5300
|
}), {
|
|
5301
5301
|
default: _(() => [S(i.$slots, "default")]),
|
|
5302
5302
|
_: 3
|
|
@@ -5706,7 +5706,7 @@ var vp = /* @__PURE__ */ M({
|
|
|
5706
5706
|
defaultValue: !1,
|
|
5707
5707
|
passive: n.open === void 0
|
|
5708
5708
|
}), r = Yt(), s = C(), l = C();
|
|
5709
|
-
return
|
|
5709
|
+
return he((i) => {
|
|
5710
5710
|
(r == null ? void 0 : r.open.value) === !1 && (a.value = !1), i(() => a.value = !1);
|
|
5711
5711
|
}), $s({
|
|
5712
5712
|
open: a,
|
|
@@ -5835,11 +5835,11 @@ var vp = /* @__PURE__ */ M({
|
|
|
5835
5835
|
"disable-outside-pointer-events": !1,
|
|
5836
5836
|
"disable-outside-scroll": !1,
|
|
5837
5837
|
"trap-focus": !1,
|
|
5838
|
-
onOpenAutoFocus: p[0] || (p[0] =
|
|
5838
|
+
onOpenAutoFocus: p[0] || (p[0] = be((f) => {
|
|
5839
5839
|
var m;
|
|
5840
5840
|
v(s).isUsingKeyboardRef.value && ((m = v(u)) == null || m.focus());
|
|
5841
5841
|
}, ["prevent"])),
|
|
5842
|
-
onCloseAutoFocus: p[1] || (p[1] =
|
|
5842
|
+
onCloseAutoFocus: p[1] || (p[1] = be(() => {
|
|
5843
5843
|
}, ["prevent"])),
|
|
5844
5844
|
onFocusOutside: p[2] || (p[2] = (f) => {
|
|
5845
5845
|
var h;
|
|
@@ -6935,7 +6935,7 @@ var Hp = /* @__PURE__ */ M({
|
|
|
6935
6935
|
ref: v(l),
|
|
6936
6936
|
"trap-focus": v(a).open.value,
|
|
6937
6937
|
"disable-outside-pointer-events": "",
|
|
6938
|
-
onCloseAutoFocus: u[0] || (u[0] =
|
|
6938
|
+
onCloseAutoFocus: u[0] || (u[0] = be((c) => {
|
|
6939
6939
|
var p;
|
|
6940
6940
|
o("closeAutoFocus", c), r.value || (p = v(a).triggerElement.value) == null || p.focus();
|
|
6941
6941
|
}, ["prevent"])),
|
|
@@ -6944,7 +6944,7 @@ var Hp = /* @__PURE__ */ M({
|
|
|
6944
6944
|
const p = c.detail.originalEvent, f = p.button === 0 && p.ctrlKey === !0, m = p.button === 2 || f;
|
|
6945
6945
|
r.value = m;
|
|
6946
6946
|
}),
|
|
6947
|
-
onFocusOutside: u[2] || (u[2] =
|
|
6947
|
+
onFocusOutside: u[2] || (u[2] = be(() => {
|
|
6948
6948
|
}, ["prevent"]))
|
|
6949
6949
|
}), {
|
|
6950
6950
|
default: _(() => [S(d.$slots, "default")]),
|
|
@@ -7991,7 +7991,7 @@ var Ov = /* @__PURE__ */ M({
|
|
|
7991
7991
|
value: v(r),
|
|
7992
7992
|
required: c.required,
|
|
7993
7993
|
name: c.name,
|
|
7994
|
-
onClick:
|
|
7994
|
+
onClick: be(u, ["stop"])
|
|
7995
7995
|
}), {
|
|
7996
7996
|
default: _(() => [S(c.$slots, "default", { checked: v(a) }), v(i) && c.name ? (g(), T(v(co), {
|
|
7997
7997
|
key: 0,
|
|
@@ -8216,7 +8216,7 @@ var Av = /* @__PURE__ */ M({
|
|
|
8216
8216
|
disabled: l.value,
|
|
8217
8217
|
"onUpdate:checked": m[0] || (m[0] = (h) => v(s).changeModelValue(f.value)),
|
|
8218
8218
|
onSelect: m[1] || (m[1] = (h) => o("select", h)),
|
|
8219
|
-
onKeydown: m[2] || (m[2] = yt(
|
|
8219
|
+
onKeydown: m[2] || (m[2] = yt(be(() => {
|
|
8220
8220
|
}, ["prevent"]), ["enter"])),
|
|
8221
8221
|
onFocus: p
|
|
8222
8222
|
}), {
|
|
@@ -8326,7 +8326,7 @@ var Pv = /* @__PURE__ */ M({
|
|
|
8326
8326
|
as: p.as,
|
|
8327
8327
|
disabled: v(a),
|
|
8328
8328
|
onClick: l,
|
|
8329
|
-
onKeydown: yt(
|
|
8329
|
+
onKeydown: yt(be(l, ["prevent"]), ["enter"])
|
|
8330
8330
|
}), {
|
|
8331
8331
|
default: _(() => [S(p.$slots, "default", {
|
|
8332
8332
|
modelValue: v(r),
|
|
@@ -8600,7 +8600,7 @@ var jv = /* @__PURE__ */ M({
|
|
|
8600
8600
|
disabled: l.disabled,
|
|
8601
8601
|
"data-disabled": l.disabled ? "" : void 0,
|
|
8602
8602
|
"data-orientation": v(o).orientation.value,
|
|
8603
|
-
onMousedown: i[0] || (i[0] =
|
|
8603
|
+
onMousedown: i[0] || (i[0] = be((d) => {
|
|
8604
8604
|
!l.disabled && d.ctrlKey === !1 ? v(o).changeModelValue(l.value) : d.preventDefault();
|
|
8605
8605
|
}, ["left"])),
|
|
8606
8606
|
onKeydown: i[1] || (i[1] = yt((d) => v(o).changeModelValue(l.value), ["enter", "space"])),
|
|
@@ -8876,7 +8876,7 @@ var Gv = /* @__PURE__ */ M({
|
|
|
8876
8876
|
var f;
|
|
8877
8877
|
v(a).disableClosingTrigger.value && ((f = v(a).trigger.value) != null && f.contains(p.target)) && p.preventDefault(), o("pointerDownOutside", p);
|
|
8878
8878
|
}),
|
|
8879
|
-
onFocusOutside: c[2] || (c[2] =
|
|
8879
|
+
onFocusOutside: c[2] || (c[2] = be(() => {
|
|
8880
8880
|
}, ["prevent"])),
|
|
8881
8881
|
onDismiss: c[3] || (c[3] = (p) => v(a).onClose())
|
|
8882
8882
|
}, {
|
|
@@ -10937,8 +10937,8 @@ function jg(e) {
|
|
|
10937
10937
|
function Lg(e) {
|
|
10938
10938
|
var t = e.state, n = e.options, o = e.name;
|
|
10939
10939
|
if (!t.modifiersData[o]._skip) {
|
|
10940
|
-
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !0 : s, i = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, p = n.altBoundary, f = n.flipVariations, m = f === void 0 ? !0 : f, h = n.allowedAutoPlacements, b = t.options.placement, w = bt(b), $ = w === b, q = i || ($ || !m ? [Gn(b)] : jg(b)), D = [b].concat(q).reduce(function(
|
|
10941
|
-
return
|
|
10940
|
+
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, l = s === void 0 ? !0 : s, i = n.fallbackPlacements, d = n.padding, u = n.boundary, c = n.rootBoundary, p = n.altBoundary, f = n.flipVariations, m = f === void 0 ? !0 : f, h = n.allowedAutoPlacements, b = t.options.placement, w = bt(b), $ = w === b, q = i || ($ || !m ? [Gn(b)] : jg(b)), D = [b].concat(q).reduce(function(ge, ke) {
|
|
10941
|
+
return ge.concat(bt(ke) === Ra ? Fg(t, {
|
|
10942
10942
|
placement: ke,
|
|
10943
10943
|
boundary: u,
|
|
10944
10944
|
rootBoundary: c,
|
|
@@ -10956,8 +10956,8 @@ function Lg(e) {
|
|
|
10956
10956
|
}), Y = V ? U ? ct : Ye : U ? dt : Xe;
|
|
10957
10957
|
E[O] > F[O] && (Y = Gn(Y));
|
|
10958
10958
|
var le = Gn(Y), ne = [];
|
|
10959
|
-
if (r && ne.push(H[W] <= 0), l && ne.push(H[Y] <= 0, H[le] <= 0), ne.every(function(
|
|
10960
|
-
return
|
|
10959
|
+
if (r && ne.push(H[W] <= 0), l && ne.push(H[Y] <= 0, H[le] <= 0), ne.every(function(ge) {
|
|
10960
|
+
return ge;
|
|
10961
10961
|
})) {
|
|
10962
10962
|
z = N, L = !1;
|
|
10963
10963
|
break;
|
|
@@ -11095,10 +11095,10 @@ function Xg(e) {
|
|
|
11095
11095
|
};
|
|
11096
11096
|
if (F) {
|
|
11097
11097
|
if (r) {
|
|
11098
|
-
var U, V = D === "y" ? Xe : Ye, O = D === "y" ? dt : ct, H = D === "y" ? "height" : "width", Y = F[D], le = Y + b[V], ne = Y - b[O], we = f ? -L[H] / 2 : 0, Oe = $ === an ? P[H] : L[H], Ee = $ === an ? -L[H] : -P[H], re = t.elements.arrow,
|
|
11098
|
+
var U, V = D === "y" ? Xe : Ye, O = D === "y" ? dt : ct, H = D === "y" ? "height" : "width", Y = F[D], le = Y + b[V], ne = Y - b[O], we = f ? -L[H] / 2 : 0, Oe = $ === an ? P[H] : L[H], Ee = $ === an ? -L[H] : -P[H], re = t.elements.arrow, ge = f && re ? ja(re) : {
|
|
11099
11099
|
width: 0,
|
|
11100
11100
|
height: 0
|
|
11101
|
-
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gl(), qe = ke[V], I = ke[O], pe = wn(0, P[H],
|
|
11101
|
+
}, ke = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : gl(), qe = ke[V], I = ke[O], pe = wn(0, P[H], ge[H]), G = q ? P[H] / 2 - we - pe - qe - B.mainAxis : Oe - pe - qe - B.mainAxis, te = q ? -P[H] / 2 + we + pe + I + B.mainAxis : Ee + pe + I + B.mainAxis, oe = t.elements.arrow && En(t.elements.arrow), ce = oe ? D === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, ze = (U = N == null ? void 0 : N[D]) != null ? U : 0, Fe = Y + G - ze - ce, Ke = Y + te - ze, Je = wn(f ? oo(le, Fe) : le, Y, f ? zt(ne, Ke) : ne);
|
|
11102
11102
|
F[D] = Je, W[D] = Je - Y;
|
|
11103
11103
|
}
|
|
11104
11104
|
if (l) {
|
|
@@ -11362,7 +11362,7 @@ function lS(e) {
|
|
|
11362
11362
|
i.placement = w, d && (d == null || d.setOptions({ placement: w }));
|
|
11363
11363
|
});
|
|
11364
11364
|
const u = C(0);
|
|
11365
|
-
|
|
11365
|
+
he(() => {
|
|
11366
11366
|
o.value && s.value && (o.value.__transferElement = s.value);
|
|
11367
11367
|
});
|
|
11368
11368
|
let c = null;
|
|
@@ -11491,13 +11491,13 @@ function yh(e, t, n, o, a, r) {
|
|
|
11491
11491
|
class: k(e.style.sliderBar),
|
|
11492
11492
|
style: de({ background: e.background }),
|
|
11493
11493
|
onMousedown: t[0] || (t[0] = (...s) => e.handleMouseDown && e.handleMouseDown(...s)),
|
|
11494
|
-
onTouchstart: t[1] || (t[1] =
|
|
11494
|
+
onTouchstart: t[1] || (t[1] = be((...s) => e.handleMouseDown && e.handleMouseDown(...s), ["prevent"]))
|
|
11495
11495
|
}, null, 38)
|
|
11496
11496
|
], 2),
|
|
11497
11497
|
R("div", {
|
|
11498
11498
|
style: { position: "absolute", inset: "0px 9px" },
|
|
11499
11499
|
onMousedown: t[2] || (t[2] = (...s) => e.handleMouseDown && e.handleMouseDown(...s)),
|
|
11500
|
-
onTouchstart: t[3] || (t[3] =
|
|
11500
|
+
onTouchstart: t[3] || (t[3] = be((...s) => e.handleMouseDown && e.handleMouseDown(...s), ["prevent"]))
|
|
11501
11501
|
}, [
|
|
11502
11502
|
R("div", {
|
|
11503
11503
|
class: k(e.style.hueSliderThumb),
|
|
@@ -11810,7 +11810,7 @@ const Al = /* @__PURE__ */ ee(Mh, [["render", Bh]]), Ah = M({
|
|
|
11810
11810
|
const re = () => {
|
|
11811
11811
|
var G, te, oe, ce;
|
|
11812
11812
|
F.x = Math.min(Math.max(z.value, 0), ((G = m.value) == null ? void 0 : G.clientWidth) || 0) / (((te = m.value) == null ? void 0 : te.clientWidth) || 0), F.y = Math.min(Math.max(B.value, 0), ((oe = m.value) == null ? void 0 : oe.clientHeight) || 0) / (((ce = m.value) == null ? void 0 : ce.clientHeight) || 0);
|
|
11813
|
-
},
|
|
11813
|
+
}, ge = () => {
|
|
11814
11814
|
d.value === "inherit" && (d.value = xn(O.value.r, O.value.g, O.value.b, O.value.a), Y()), E.value = !0, re();
|
|
11815
11815
|
};
|
|
11816
11816
|
Se(() => {
|
|
@@ -11869,7 +11869,7 @@ const Al = /* @__PURE__ */ ee(Mh, [["render", Bh]]), Ah = M({
|
|
|
11869
11869
|
position: F,
|
|
11870
11870
|
elementX: z,
|
|
11871
11871
|
pressed: N,
|
|
11872
|
-
handleMouseDown:
|
|
11872
|
+
handleMouseDown: ge,
|
|
11873
11873
|
picker: m,
|
|
11874
11874
|
style: Jy,
|
|
11875
11875
|
mainColor: H,
|
|
@@ -11951,7 +11951,7 @@ function Kh(e, t, n, o, a, r) {
|
|
|
11951
11951
|
R("div", {
|
|
11952
11952
|
ref: "referenceRef",
|
|
11953
11953
|
tabindex: "0",
|
|
11954
|
-
onMousedown: t[0] || (t[0] =
|
|
11954
|
+
onMousedown: t[0] || (t[0] = be(() => {
|
|
11955
11955
|
}, ["prevent"])),
|
|
11956
11956
|
onFocus: t[1] || (t[1] = (f) => e.isOpen = !0),
|
|
11957
11957
|
class: k(e.style.trigger)
|
|
@@ -11991,9 +11991,9 @@ function Kh(e, t, n, o, a, r) {
|
|
|
11991
11991
|
align: e.resolvedAlign,
|
|
11992
11992
|
"side-offset": 4,
|
|
11993
11993
|
"collision-padding": 8,
|
|
11994
|
-
onOpenAutoFocus: t[13] || (t[13] =
|
|
11994
|
+
onOpenAutoFocus: t[13] || (t[13] = be(() => {
|
|
11995
11995
|
}, ["prevent"])),
|
|
11996
|
-
onCloseAutoFocus: t[14] || (t[14] =
|
|
11996
|
+
onCloseAutoFocus: t[14] || (t[14] = be(() => {
|
|
11997
11997
|
}, ["prevent"]))
|
|
11998
11998
|
}, {
|
|
11999
11999
|
default: _(() => [
|
|
@@ -12012,7 +12012,7 @@ function Kh(e, t, n, o, a, r) {
|
|
|
12012
12012
|
R("div", {
|
|
12013
12013
|
class: k(e.style.sliderThumb),
|
|
12014
12014
|
onMousedown: t[2] || (t[2] = (...f) => e.handleMouseDown && e.handleMouseDown(...f)),
|
|
12015
|
-
onDragover: t[3] || (t[3] =
|
|
12015
|
+
onDragover: t[3] || (t[3] = be(() => {
|
|
12016
12016
|
}, ["prevent"])),
|
|
12017
12017
|
style: de({ left: `${e.position.x * 100}%`, top: `${e.position.y * 100}%` })
|
|
12018
12018
|
}, null, 38)
|
|
@@ -12111,7 +12111,7 @@ function Kh(e, t, n, o, a, r) {
|
|
|
12111
12111
|
}, null, 8, ["onKeyup", "onBlur", "modelValue"])),
|
|
12112
12112
|
j(l, {
|
|
12113
12113
|
icon: "",
|
|
12114
|
-
onClick: t[12] || (t[12] =
|
|
12114
|
+
onClick: t[12] || (t[12] = be((f) => e.rgbOrHex = !e.rgbOrHex, ["prevent"]))
|
|
12115
12115
|
}, {
|
|
12116
12116
|
default: _(() => [
|
|
12117
12117
|
(g(), A("svg", Rh, jh))
|
|
@@ -12120,7 +12120,7 @@ function Kh(e, t, n, o, a, r) {
|
|
|
12120
12120
|
}),
|
|
12121
12121
|
j(l, {
|
|
12122
12122
|
icon: "",
|
|
12123
|
-
onClick:
|
|
12123
|
+
onClick: be(e.toggleInherit, ["prevent"])
|
|
12124
12124
|
}, {
|
|
12125
12125
|
default: _(() => [
|
|
12126
12126
|
(g(), A("svg", Lh, Wh))
|
|
@@ -12701,7 +12701,7 @@ const Ob = /* @__PURE__ */ ee($b, [["render", Sb]]), kb = M({
|
|
|
12701
12701
|
}), m = y(() => ["m-dropdown-menu", xl]), h = y(() => `m-transition__${e.transitionName}`), b = C("auto");
|
|
12702
12702
|
Be(window, "resize", () => {
|
|
12703
12703
|
r.value && w();
|
|
12704
|
-
}),
|
|
12704
|
+
}), he(() => {
|
|
12705
12705
|
w();
|
|
12706
12706
|
});
|
|
12707
12707
|
function w() {
|
|
@@ -12794,7 +12794,7 @@ function Mb(e, t, n, o, a, r) {
|
|
|
12794
12794
|
class: k(e.menuClasses),
|
|
12795
12795
|
style: de({ zIndex: e.zIndex, maxHeight: e.maxHeight }),
|
|
12796
12796
|
"side-offset": 14,
|
|
12797
|
-
onCloseAutoFocus: t[1] || (t[1] =
|
|
12797
|
+
onCloseAutoFocus: t[1] || (t[1] = be(() => {
|
|
12798
12798
|
}, ["prevent"]))
|
|
12799
12799
|
}, {
|
|
12800
12800
|
default: _(() => [
|
|
@@ -13056,7 +13056,7 @@ function xb(e, t, n, o, a, r) {
|
|
|
13056
13056
|
class: k([
|
|
13057
13057
|
e.computedClasses
|
|
13058
13058
|
]),
|
|
13059
|
-
onSubmit: t[0] || (t[0] =
|
|
13059
|
+
onSubmit: t[0] || (t[0] = be((...s) => e.submit && e.submit(...s), ["prevent"]))
|
|
13060
13060
|
}, [
|
|
13061
13061
|
S(e.$slots, "default", { loading: e.loading })
|
|
13062
13062
|
], 38);
|
|
@@ -13375,7 +13375,7 @@ function Hn(e) {
|
|
|
13375
13375
|
const o1 = 3, Gl = "24px", Xl = "16px", Pr = 4e3, a1 = 356, r1 = 14, s1 = 45, Yl = 200;
|
|
13376
13376
|
function l1() {
|
|
13377
13377
|
const e = C(!1);
|
|
13378
|
-
return
|
|
13378
|
+
return he(() => {
|
|
13379
13379
|
const t = () => {
|
|
13380
13380
|
e.value = document.hidden;
|
|
13381
13381
|
};
|
|
@@ -13483,7 +13483,7 @@ var f1 = /* @__PURE__ */ M({
|
|
|
13483
13483
|
}), L = y(() => F.value * n.gap + P.value || 0), z = y(() => n.toast.closeButton ?? n.closeButton), B = y(() => n.toast.duration || n.duration || Pr), N = C(0), W = C(0), U = C(null), V = y(() => n.position.split("-")), O = y(() => V.value[0]), H = y(() => V.value[1]), Y = y(() => typeof n.toast.title != "string"), le = y(() => typeof n.toast.description != "string"), { isDocumentHidden: ne } = l1(), we = y(() => $.value && $.value === "loading");
|
|
13484
13484
|
Se(() => {
|
|
13485
13485
|
s.value = !0, f.value = B.value;
|
|
13486
|
-
}),
|
|
13486
|
+
}), he(async () => {
|
|
13487
13487
|
if (!s.value || !h.value) return;
|
|
13488
13488
|
await ve();
|
|
13489
13489
|
const I = h.value, pe = I.style.height;
|
|
@@ -13511,7 +13511,7 @@ var f1 = /* @__PURE__ */ M({
|
|
|
13511
13511
|
y: I.clientY
|
|
13512
13512
|
})));
|
|
13513
13513
|
}
|
|
13514
|
-
function
|
|
13514
|
+
function ge() {
|
|
13515
13515
|
var ce, ze, Fe, Ke, Je, Qe, je;
|
|
13516
13516
|
if (d.value || !q.value) return;
|
|
13517
13517
|
U.value = null;
|
|
@@ -13559,7 +13559,7 @@ var f1 = /* @__PURE__ */ M({
|
|
|
13559
13559
|
o("update:heights", pe);
|
|
13560
13560
|
}), un(() => {
|
|
13561
13561
|
h.value && o("removeToast", n.toast);
|
|
13562
|
-
}),
|
|
13562
|
+
}), he((I) => {
|
|
13563
13563
|
if (n.toast.promise && $.value === "loading" || n.toast.duration === 1 / 0 || n.toast.type === "loading") return;
|
|
13564
13564
|
let pe;
|
|
13565
13565
|
const G = () => {
|
|
@@ -13622,7 +13622,7 @@ var f1 = /* @__PURE__ */ M({
|
|
|
13622
13622
|
}),
|
|
13623
13623
|
onDragend: qe,
|
|
13624
13624
|
onPointerdown: re,
|
|
13625
|
-
onPointerup:
|
|
13625
|
+
onPointerup: ge,
|
|
13626
13626
|
onPointermove: ke
|
|
13627
13627
|
}, [z.value && !I.toast.component && $.value !== "loading" ? (g(), A("button", {
|
|
13628
13628
|
key: 0,
|
|
@@ -13848,7 +13848,7 @@ var x1 = /* @__PURE__ */ M({
|
|
|
13848
13848
|
B[N] = o.value.filter((W) => W.position === N);
|
|
13849
13849
|
}), B;
|
|
13850
13850
|
}), i = C([]), d = C({}), u = C(!1);
|
|
13851
|
-
|
|
13851
|
+
he(() => {
|
|
13852
13852
|
s.value.forEach((B) => {
|
|
13853
13853
|
B in d.value || (d.value[B] = !1);
|
|
13854
13854
|
});
|
|
@@ -13870,7 +13870,7 @@ var x1 = /* @__PURE__ */ M({
|
|
|
13870
13870
|
function q(B) {
|
|
13871
13871
|
B.target && B.target instanceof HTMLElement && B.target.dataset.dismissible === "false" || (u.value = !0);
|
|
13872
13872
|
}
|
|
13873
|
-
|
|
13873
|
+
he((B) => {
|
|
13874
13874
|
const N = Ge.subscribe((W) => {
|
|
13875
13875
|
if (W.dismiss) {
|
|
13876
13876
|
requestAnimationFrame(() => {
|
|
@@ -13894,7 +13894,7 @@ var x1 = /* @__PURE__ */ M({
|
|
|
13894
13894
|
});
|
|
13895
13895
|
});
|
|
13896
13896
|
B(N);
|
|
13897
|
-
}),
|
|
13897
|
+
}), he((B) => {
|
|
13898
13898
|
if (typeof window > "u") return;
|
|
13899
13899
|
if (t.theme !== "system") {
|
|
13900
13900
|
c.value = t.theme;
|
|
@@ -13919,13 +13919,13 @@ var x1 = /* @__PURE__ */ M({
|
|
|
13919
13919
|
N.removeListener(U);
|
|
13920
13920
|
}
|
|
13921
13921
|
});
|
|
13922
|
-
}),
|
|
13922
|
+
}), he(() => {
|
|
13923
13923
|
p.value && f.value && (f.value.focus({ preventScroll: !0 }), f.value = null, m.value = !1);
|
|
13924
|
-
}),
|
|
13924
|
+
}), he(() => {
|
|
13925
13925
|
o.value.length <= 1 && Object.keys(d.value).forEach((B) => {
|
|
13926
13926
|
d.value[B] = !1;
|
|
13927
13927
|
});
|
|
13928
|
-
}),
|
|
13928
|
+
}), he((B) => {
|
|
13929
13929
|
function N(W) {
|
|
13930
13930
|
const U = t.hotkey.every((H) => W[H] || W.code === H), V = Array.isArray(p.value) ? p.value[0] : p.value;
|
|
13931
13931
|
U && (s.value.forEach((H) => {
|
|
@@ -14009,7 +14009,7 @@ var x1 = /* @__PURE__ */ M({
|
|
|
14009
14009
|
onPointerdown: q,
|
|
14010
14010
|
onPointerup: P
|
|
14011
14011
|
}), [(g(!0), A(ue, null, Ie(r(W, U), (O, H) => {
|
|
14012
|
-
var Y, le, ne, we, Oe, Ee, re,
|
|
14012
|
+
var Y, le, ne, we, Oe, Ee, re, ge, ke, qe, I;
|
|
14013
14013
|
return g(), T(p1, {
|
|
14014
14014
|
key: O.id,
|
|
14015
14015
|
heights: i.value,
|
|
@@ -14028,7 +14028,7 @@ var x1 = /* @__PURE__ */ M({
|
|
|
14028
14028
|
closeButtonPosition: ((Oe = B.toastOptions) == null ? void 0 : Oe.closeButtonPosition) ?? B.closeButtonPosition,
|
|
14029
14029
|
style: de((Ee = B.toastOptions) == null ? void 0 : Ee.style),
|
|
14030
14030
|
unstyled: (re = B.toastOptions) == null ? void 0 : re.unstyled,
|
|
14031
|
-
classes: (
|
|
14031
|
+
classes: (ge = B.toastOptions) == null ? void 0 : ge.classes,
|
|
14032
14032
|
cancelButtonStyle: (ke = B.toastOptions) == null ? void 0 : ke.cancelButtonStyle,
|
|
14033
14033
|
actionButtonStyle: (qe = B.toastOptions) == null ? void 0 : qe.actionButtonStyle,
|
|
14034
14034
|
"close-button-aria-label": (I = B.toastOptions) == null ? void 0 : I.closeButtonAriaLabel,
|
|
@@ -15192,7 +15192,7 @@ function f0(e, t, n, o, a, r) {
|
|
|
15192
15192
|
]),
|
|
15193
15193
|
e.closeable ? (g(), A("button", {
|
|
15194
15194
|
key: 0,
|
|
15195
|
-
onMousedown: t[0] || (t[0] =
|
|
15195
|
+
onMousedown: t[0] || (t[0] = be((...s) => e.close && e.close(...s), ["stop"])),
|
|
15196
15196
|
class: k(e.style.close),
|
|
15197
15197
|
tabindex: "0"
|
|
15198
15198
|
}, [
|
|
@@ -15443,13 +15443,13 @@ const j0 = M({
|
|
|
15443
15443
|
)
|
|
15444
15444
|
).filter((X) => !X.matches(":disabled") && X.getAttribute("aria-disabled") !== "true" && X.getAttribute("aria-hidden") !== "true" && X.tabIndex >= 0 && X.getClientRects().length > 0);
|
|
15445
15445
|
}
|
|
15446
|
-
function
|
|
15446
|
+
function ge(X) {
|
|
15447
15447
|
return X ? X instanceof HTMLElement ? X : "$el" in X && X.$el instanceof HTMLElement ? X.$el : null : null;
|
|
15448
15448
|
}
|
|
15449
15449
|
function ke(X = !1) {
|
|
15450
15450
|
if (!o.value)
|
|
15451
15451
|
return null;
|
|
15452
|
-
const se =
|
|
15452
|
+
const se = ge(l.value), ae = re(), ye = ae.indexOf(o.value);
|
|
15453
15453
|
if (ye === -1)
|
|
15454
15454
|
return null;
|
|
15455
15455
|
const st = (lt) => {
|
|
@@ -15490,7 +15490,7 @@ const j0 = M({
|
|
|
15490
15490
|
const se = X;
|
|
15491
15491
|
if (se.key === "Tab") {
|
|
15492
15492
|
if (d.value) {
|
|
15493
|
-
const ae = document.activeElement, ye =
|
|
15493
|
+
const ae = document.activeElement, ye = ge(l.value);
|
|
15494
15494
|
if (!!ae && !!(ye != null && ye.contains(ae))) {
|
|
15495
15495
|
se.preventDefault();
|
|
15496
15496
|
const Ue = ke(se.shiftKey);
|
|
@@ -15564,7 +15564,7 @@ const j0 = M({
|
|
|
15564
15564
|
);
|
|
15565
15565
|
return se ? se[e.optionLabel] : null;
|
|
15566
15566
|
}
|
|
15567
|
-
|
|
15567
|
+
he(() => {
|
|
15568
15568
|
o.value && d.value && (p.value = o.value.offsetWidth);
|
|
15569
15569
|
}), Q(i, (X) => {
|
|
15570
15570
|
f.value && typeof X < "u" && a.value && a.value[X].scrollIntoView({
|
|
@@ -15784,9 +15784,9 @@ function J0(e, t, n, o, a, r) {
|
|
|
15784
15784
|
"aria-hidden": e.isOpen ? "false" : "true",
|
|
15785
15785
|
"data-element": `select-menu-overlay-${e.id}`,
|
|
15786
15786
|
onKeydownCapture: e.handleKeyDown,
|
|
15787
|
-
onOpenAutoFocus: t[5] || (t[5] =
|
|
15787
|
+
onOpenAutoFocus: t[5] || (t[5] = be(() => {
|
|
15788
15788
|
}, ["prevent"])),
|
|
15789
|
-
onCloseAutoFocus: t[6] || (t[6] =
|
|
15789
|
+
onCloseAutoFocus: t[6] || (t[6] = be(() => {
|
|
15790
15790
|
}, ["prevent"]))
|
|
15791
15791
|
}, {
|
|
15792
15792
|
default: _(() => [
|
|
@@ -15805,7 +15805,7 @@ function J0(e, t, n, o, a, r) {
|
|
|
15805
15805
|
[e.style.checkAllButton]: !0,
|
|
15806
15806
|
[e.style.checkAllButtonActive]: e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length
|
|
15807
15807
|
}),
|
|
15808
|
-
onClick: t[3] || (t[3] =
|
|
15808
|
+
onClick: t[3] || (t[3] = be((...c) => e.toggleAllItems && e.toggleAllItems(...c), ["prevent"])),
|
|
15809
15809
|
"aria-description": "Select all items"
|
|
15810
15810
|
}, [
|
|
15811
15811
|
e.computedOptions.length > 0 && e.computedOptions.length === e.selected.length ? (g(), A("svg", H0, K0)) : K("", !0)
|
|
@@ -15835,7 +15835,7 @@ function J0(e, t, n, o, a, r) {
|
|
|
15835
15835
|
[e.style.optionSelected]: c.active,
|
|
15836
15836
|
[e.style.optionFocused]: e.selectedIndex === p
|
|
15837
15837
|
}),
|
|
15838
|
-
onClick:
|
|
15838
|
+
onClick: be(c.onClick, ["prevent"]),
|
|
15839
15839
|
onMouseenter: (f) => e.selectedIndex = p,
|
|
15840
15840
|
"data-element": `select-menu-option-${e.id}-${c.value}`
|
|
15841
15841
|
}, [
|
|
@@ -16119,7 +16119,7 @@ function OC(e, t, n, o, a, r) {
|
|
|
16119
16119
|
R("button", {
|
|
16120
16120
|
role: "button",
|
|
16121
16121
|
class: k(e.close),
|
|
16122
|
-
onClick: t[0] || (t[0] =
|
|
16122
|
+
onClick: t[0] || (t[0] = be((i) => e.$emit("onClose", { value: e.value, label: e.label }), ["stop"]))
|
|
16123
16123
|
}, null, 2)
|
|
16124
16124
|
])) : K("", !0)
|
|
16125
16125
|
], 16, _C)
|
|
@@ -16454,7 +16454,7 @@ function GC(e, t, n, o, a, r) {
|
|
|
16454
16454
|
modelValue: e.selected,
|
|
16455
16455
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.selected = h),
|
|
16456
16456
|
value: p,
|
|
16457
|
-
onClick: t[1] || (t[1] =
|
|
16457
|
+
onClick: t[1] || (t[1] = be(() => {
|
|
16458
16458
|
}, ["stop"]))
|
|
16459
16459
|
}, null, 8, ["modelValue", "value"])
|
|
16460
16460
|
]),
|
|
@@ -16954,7 +16954,7 @@ const B_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16954
16954
|
), b = C([]), w = () => {
|
|
16955
16955
|
s.value = o.value.scrollTop, l.value = o.value.scrollLeft;
|
|
16956
16956
|
};
|
|
16957
|
-
return
|
|
16957
|
+
return he(() => {
|
|
16958
16958
|
const $ = Math.min(
|
|
16959
16959
|
e.items.length - u.value.row,
|
|
16960
16960
|
m.value + 2 * Math.round(e.buffer + e.buffer / 2)
|
|
@@ -17320,11 +17320,11 @@ const X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17320
17320
|
p.value && re.preventDefault();
|
|
17321
17321
|
}
|
|
17322
17322
|
function H(re) {
|
|
17323
|
-
const
|
|
17324
|
-
if (!
|
|
17323
|
+
const ge = h.value;
|
|
17324
|
+
if (!ge)
|
|
17325
17325
|
return;
|
|
17326
17326
|
const ke = Array.from(
|
|
17327
|
-
|
|
17327
|
+
ge.querySelectorAll(q)
|
|
17328
17328
|
).find((qe) => qe !== s.value && !qe.matches(":disabled") && qe.getAttribute("aria-disabled") !== "true" && qe.getAttribute("aria-hidden") !== "true" && qe.getClientRects().length > 0);
|
|
17329
17329
|
ke && (re.preventDefault(), ke.focus());
|
|
17330
17330
|
}
|
|
@@ -17344,14 +17344,14 @@ const X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17344
17344
|
function we() {
|
|
17345
17345
|
const re = h.value;
|
|
17346
17346
|
if (re) {
|
|
17347
|
-
const
|
|
17348
|
-
b.value = (window.innerWidth -
|
|
17347
|
+
const ge = re.getBoundingClientRect();
|
|
17348
|
+
b.value = (window.innerWidth - ge.width) / 2, w.value = (window.innerHeight - ge.height) / 2;
|
|
17349
17349
|
}
|
|
17350
17350
|
}
|
|
17351
17351
|
function Oe() {
|
|
17352
17352
|
const re = h.value;
|
|
17353
17353
|
if (re) {
|
|
17354
|
-
const
|
|
17354
|
+
const ge = re.getBoundingClientRect(), ke = window.innerWidth - ge.width, qe = window.innerHeight - ge.height;
|
|
17355
17355
|
b.value = Math.min(Math.max(0, b.value), ke), w.value = Math.min(Math.max(0, w.value), qe);
|
|
17356
17356
|
}
|
|
17357
17357
|
}
|
|
@@ -17391,7 +17391,7 @@ const X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
17391
17391
|
onEnter: V,
|
|
17392
17392
|
handleOpenChange: Y,
|
|
17393
17393
|
handleOpenAutoFocus: H,
|
|
17394
|
-
|
|
17394
|
+
handleOutsideEvent: O,
|
|
17395
17395
|
isOpen: y(() => e.open),
|
|
17396
17396
|
activeFocusTrap: p
|
|
17397
17397
|
};
|
|
@@ -17441,11 +17441,9 @@ function Z_(e, t, n, o, a, r) {
|
|
|
17441
17441
|
"disable-outside-pointer-events": e.modal,
|
|
17442
17442
|
onOpenAutoFocus: e.handleOpenAutoFocus,
|
|
17443
17443
|
onEscapeKeyDown: e.handleEscapeKeyDown,
|
|
17444
|
-
onPointerDownOutside:
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
onInteractOutside: t[1] || (t[1] = ge(() => {
|
|
17448
|
-
}, ["prevent"]))
|
|
17444
|
+
onPointerDownOutside: e.handleOutsideEvent,
|
|
17445
|
+
onFocusOutside: e.handleOutsideEvent,
|
|
17446
|
+
onInteractOutside: e.handleOutsideEvent
|
|
17449
17447
|
}, {
|
|
17450
17448
|
default: _(() => [
|
|
17451
17449
|
j(d, {
|
|
@@ -17502,7 +17500,7 @@ function Z_(e, t, n, o, a, r) {
|
|
|
17502
17500
|
}, 8, ["trapped", "loop"])
|
|
17503
17501
|
]),
|
|
17504
17502
|
_: 3
|
|
17505
|
-
}, 8, ["style", "disable-outside-pointer-events", "onOpenAutoFocus", "onEscapeKeyDown", "onFocusOutside"])) : K("", !0)
|
|
17503
|
+
}, 8, ["style", "disable-outside-pointer-events", "onOpenAutoFocus", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside"])) : K("", !0)
|
|
17506
17504
|
]),
|
|
17507
17505
|
_: 3
|
|
17508
17506
|
}, 8, ["enter-active-class", "leave-active-class", "onAfterLeave", "enter-from-class", "leave-to-class"])
|