@useinsider/ab-components 0.0.63 → 0.0.64
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/ab-components.cjs.js +3 -3
- package/dist/ab-components.cjs.js.map +1 -1
- package/dist/ab-components.es.js +143 -143
- package/dist/ab-components.es.js.map +1 -1
- package/dist/ab-components.iife.js +3 -3
- package/dist/ab-components.iife.js.map +1 -1
- package/dist/ab-components.umd.js +3 -3
- package/dist/ab-components.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/ab-components.es.js
CHANGED
|
@@ -221,14 +221,14 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
221
221
|
), u = L(() => t.type === "number"), c = L(() => {
|
|
222
222
|
const d = ["e", "E", "+", "\\"], p = typeof t.minValue == "number" ? t.minValue : Number(t.minValue);
|
|
223
223
|
return !isNaN(p) && p >= 0 && d.push("-"), t.allowDecimal || d.push("."), t.allowComma || d.push(","), d;
|
|
224
|
-
}),
|
|
224
|
+
}), m = (d) => c.value.includes(d), x = (d) => {
|
|
225
225
|
var p;
|
|
226
226
|
if (t.preventXss && (d != null && d.target)) {
|
|
227
227
|
const B = String(d.target.value).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
228
228
|
d.target.value !== B && (d.target.value = B);
|
|
229
229
|
}
|
|
230
230
|
return l.value = ((p = d == null ? void 0 : d.target) == null ? void 0 : p.value) || "", d;
|
|
231
|
-
},
|
|
231
|
+
}, f = (d) => {
|
|
232
232
|
if (!(d != null && d.target)) return;
|
|
233
233
|
const p = d.target, B = p.selectionStart;
|
|
234
234
|
if (B === null) return;
|
|
@@ -250,7 +250,7 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
250
250
|
}, g = (d) => {
|
|
251
251
|
n("keyup", d);
|
|
252
252
|
}, v = (d) => {
|
|
253
|
-
d.key === "Enter" && n("keypress", d), u.value &&
|
|
253
|
+
d.key === "Enter" && n("keypress", d), u.value && m(d.key) && d.preventDefault();
|
|
254
254
|
}, V = (d) => {
|
|
255
255
|
n("focus", d);
|
|
256
256
|
}, E = (d) => {
|
|
@@ -260,13 +260,13 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
260
260
|
}, W = (d) => {
|
|
261
261
|
var w;
|
|
262
262
|
const p = d;
|
|
263
|
-
u.value && (
|
|
263
|
+
u.value && (f(p), S(p)), x(p);
|
|
264
264
|
const B = ((w = p == null ? void 0 : p.target) == null ? void 0 : w.value) || "";
|
|
265
265
|
l.value = B, n("input", B), n("update:modelValue", B);
|
|
266
266
|
}, D = (d) => {
|
|
267
267
|
var w;
|
|
268
268
|
const p = d;
|
|
269
|
-
u.value && (
|
|
269
|
+
u.value && (f(p), S(p)), x(p);
|
|
270
270
|
const B = ((w = p == null ? void 0 : p.target) == null ? void 0 : w.value) || "";
|
|
271
271
|
l.value = B, n("change", B), n("update:modelValue", B);
|
|
272
272
|
}, N = (d) => {
|
|
@@ -478,7 +478,7 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
478
478
|
},
|
|
479
479
|
emits: ["color-change", "close"],
|
|
480
480
|
setup(e, { emit: o }) {
|
|
481
|
-
const t = e, n = o, l = $(0), i = $(0), s = $(0.4), a = $(1), r = $("666666"), u = $([]), c = $(!1),
|
|
481
|
+
const t = e, n = o, l = $(0), i = $(0), s = $(0.4), a = $(1), r = $("666666"), u = $([]), c = $(!1), m = $(null), x = $(null), f = $(null), S = L(() => {
|
|
482
482
|
const p = t.presetColors || [], B = [], w = 8;
|
|
483
483
|
if (p.length === 0)
|
|
484
484
|
return B;
|
|
@@ -527,9 +527,9 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
527
527
|
}
|
|
528
528
|
function V(p) {
|
|
529
529
|
const B = (M) => {
|
|
530
|
-
if (!
|
|
530
|
+
if (!m.value)
|
|
531
531
|
return;
|
|
532
|
-
const z =
|
|
532
|
+
const z = m.value.getBoundingClientRect(), H = Math.max(0, Math.min(1, (M.clientX - z.left) / z.width)), K = Math.max(0, Math.min(1, (M.clientY - z.top) / z.height));
|
|
533
533
|
i.value = H, s.value = 1 - K;
|
|
534
534
|
};
|
|
535
535
|
B(p);
|
|
@@ -557,9 +557,9 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
557
557
|
}
|
|
558
558
|
function P(p) {
|
|
559
559
|
const B = (M) => {
|
|
560
|
-
if (!
|
|
560
|
+
if (!f.value)
|
|
561
561
|
return;
|
|
562
|
-
const z =
|
|
562
|
+
const z = f.value.getBoundingClientRect(), H = Math.max(0, Math.min(1, (M.clientX - z.left) / z.width));
|
|
563
563
|
a.value = 1 - H;
|
|
564
564
|
};
|
|
565
565
|
B(p);
|
|
@@ -647,7 +647,7 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
647
647
|
}),
|
|
648
648
|
onMousedown: V,
|
|
649
649
|
ref_key: "colorPickerRef",
|
|
650
|
-
ref:
|
|
650
|
+
ref: m
|
|
651
651
|
}, [
|
|
652
652
|
T("div", {
|
|
653
653
|
class: "color-picker__color-indicator",
|
|
@@ -674,7 +674,7 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
674
674
|
class: "color-picker__opacity-slider",
|
|
675
675
|
onMousedown: P,
|
|
676
676
|
ref_key: "opacitySliderRef",
|
|
677
|
-
ref:
|
|
677
|
+
ref: f
|
|
678
678
|
}, [
|
|
679
679
|
B[1] || (B[1] = T("div", { class: "color-picker__opacity-checkerboard" }, null, -1)),
|
|
680
680
|
T("div", {
|
|
@@ -827,11 +827,11 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
827
827
|
},
|
|
828
828
|
emits: ["update:modelValue", "add-error", "item-added", "select-item"],
|
|
829
829
|
setup(e, { emit: o }) {
|
|
830
|
-
const t = Ft, n = e, l = o, i = $(), s = $(), a = $(!1), r = $(null), u = $(""), c = $(null),
|
|
830
|
+
const t = Ft, n = e, l = o, i = $(), s = $(), a = $(!1), r = $(null), u = $(""), c = $(null), m = $({ x: 0, y: 0, width: 0, shouldOpenUp: !1, height: n.menuHeight }), x = It([...n.items]), f = It([...n.items]), S = () => {
|
|
831
831
|
if (!i.value)
|
|
832
832
|
return;
|
|
833
833
|
const { offsetTop: k, offsetLeft: O, offsetWidth: q } = i.value, G = window.innerHeight, te = k + i.value.offsetHeight, d = te + n.menuHeight > G;
|
|
834
|
-
|
|
834
|
+
m.value = {
|
|
835
835
|
x: O + window.scrollX,
|
|
836
836
|
y: d ? k + window.scrollY : te + window.scrollY,
|
|
837
837
|
width: q,
|
|
@@ -841,13 +841,13 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
841
841
|
}, I = () => {
|
|
842
842
|
S(), a.value = !a.value;
|
|
843
843
|
}, C = () => {
|
|
844
|
-
c.value = null, u.value = "", x.splice(0, x.length, ...
|
|
844
|
+
c.value = null, u.value = "", x.splice(0, x.length, ...f);
|
|
845
845
|
}, g = () => {
|
|
846
846
|
a.value = !1, C();
|
|
847
847
|
}, v = (k) => {
|
|
848
848
|
r.value = k, l("select-item", k), l("update:modelValue", k.value), g();
|
|
849
849
|
}, V = () => {
|
|
850
|
-
const k = u.value.trim(), O = n.validateAddItem(k,
|
|
850
|
+
const k = u.value.trim(), O = n.validateAddItem(k, f);
|
|
851
851
|
if (O) {
|
|
852
852
|
c.value = O, l("add-error", O);
|
|
853
853
|
return;
|
|
@@ -856,21 +856,21 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
856
856
|
text: k,
|
|
857
857
|
value: k
|
|
858
858
|
};
|
|
859
|
-
|
|
859
|
+
f.push(q), C(), l("item-added", q);
|
|
860
860
|
}, E = () => {
|
|
861
|
-
const k = Wt(
|
|
861
|
+
const k = Wt(f, "text", u.value);
|
|
862
862
|
x.splice(0, x.length, ...k);
|
|
863
863
|
}, P = () => {
|
|
864
864
|
c.value = "";
|
|
865
865
|
}, W = L(() => ({
|
|
866
|
-
top:
|
|
867
|
-
left: `${
|
|
868
|
-
width: `${
|
|
866
|
+
top: m.value.shouldOpenUp ? `${m.value.y - 10}px` : `${m.value.y}px`,
|
|
867
|
+
left: `${m.value.x}px`,
|
|
868
|
+
width: `${m.value.width}px`,
|
|
869
869
|
height: `${n.menuHeight}px`
|
|
870
870
|
}));
|
|
871
871
|
We(() => {
|
|
872
872
|
if (S(), n.modelValue) {
|
|
873
|
-
const k =
|
|
873
|
+
const k = f.find((O) => O.value === n.modelValue);
|
|
874
874
|
k && (r.value = k);
|
|
875
875
|
}
|
|
876
876
|
});
|
|
@@ -878,13 +878,13 @@ const dn = "_button__size_default_1bq69_1", _n = "_button__size_small_1bq69_8",
|
|
|
878
878
|
Q(() => n.modelValue, (k) => {
|
|
879
879
|
var O;
|
|
880
880
|
if (((O = r.value) == null ? void 0 : O.value) !== k) {
|
|
881
|
-
const q =
|
|
881
|
+
const q = f.find((G) => G.value === k);
|
|
882
882
|
q && (r.value = q);
|
|
883
883
|
}
|
|
884
884
|
}), Q(
|
|
885
885
|
() => n.items,
|
|
886
886
|
(k) => {
|
|
887
|
-
|
|
887
|
+
f.splice(0, f.length, ...k), x.splice(0, x.length, ...k);
|
|
888
888
|
},
|
|
889
889
|
{ deep: !0 }
|
|
890
890
|
);
|
|
@@ -1111,7 +1111,7 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1111
1111
|
return o.fillOpacity !== void 0 ? typeof o.fillOpacity == "number" ? o.fillOpacity : parseFloat(o.fillOpacity) : i.value.opacity;
|
|
1112
1112
|
});
|
|
1113
1113
|
return (r, u) => {
|
|
1114
|
-
var c,
|
|
1114
|
+
var c, m;
|
|
1115
1115
|
return n.value ? (h(), b("svg", {
|
|
1116
1116
|
key: 1,
|
|
1117
1117
|
class: "icon icon-custom",
|
|
@@ -1123,7 +1123,7 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1123
1123
|
"--icon-color": s.value,
|
|
1124
1124
|
...a.value !== void 0 && a.value !== null ? { "--icon-fill-opacity": String(a.value) } : {}
|
|
1125
1125
|
}),
|
|
1126
|
-
innerHTML: (
|
|
1126
|
+
innerHTML: (m = l.value) == null ? void 0 : m.content
|
|
1127
1127
|
}, null, 12, Ao)) : (h(), b("svg", {
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
class: "icon",
|
|
@@ -1253,11 +1253,11 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1253
1253
|
emits: ["update:modelValue", "open", "close"],
|
|
1254
1254
|
setup(e, { expose: o, emit: t }) {
|
|
1255
1255
|
const n = Ft, l = e, i = t, s = $(null), a = $(null), r = $(!1), u = $({}), c = $(l.modelValue);
|
|
1256
|
-
function
|
|
1256
|
+
function m() {
|
|
1257
1257
|
if (!s.value || !a.value) return;
|
|
1258
1258
|
const I = s.value.getBoundingClientRect(), C = a.value.getBoundingClientRect();
|
|
1259
1259
|
if (C.width === 0 || C.height === 0) {
|
|
1260
|
-
r.value = !1, requestAnimationFrame(() => requestAnimationFrame(
|
|
1260
|
+
r.value = !1, requestAnimationFrame(() => requestAnimationFrame(m));
|
|
1261
1261
|
return;
|
|
1262
1262
|
}
|
|
1263
1263
|
const g = 4;
|
|
@@ -1282,22 +1282,22 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1282
1282
|
Q(
|
|
1283
1283
|
() => l.modelValue,
|
|
1284
1284
|
(I) => {
|
|
1285
|
-
c.value = I, I && Ve(
|
|
1285
|
+
c.value = I, I && Ve(m);
|
|
1286
1286
|
}
|
|
1287
1287
|
);
|
|
1288
1288
|
const x = () => {
|
|
1289
|
-
c.value = !c.value, i("update:modelValue", c.value), c.value ? (i("open"), Ve(
|
|
1290
|
-
},
|
|
1289
|
+
c.value = !c.value, i("update:modelValue", c.value), c.value ? (i("open"), Ve(m)) : i("close");
|
|
1290
|
+
}, f = () => {
|
|
1291
1291
|
c.value = !1, r.value = !1, i("update:modelValue", !1), i("close");
|
|
1292
1292
|
}, S = L(() => ({
|
|
1293
|
-
handler:
|
|
1293
|
+
handler: f,
|
|
1294
1294
|
exclude: [s, a],
|
|
1295
1295
|
capture: l.closeOnClickOutside
|
|
1296
1296
|
}));
|
|
1297
1297
|
return o({
|
|
1298
1298
|
isOpen: c,
|
|
1299
1299
|
toggle: x,
|
|
1300
|
-
close:
|
|
1300
|
+
close: f
|
|
1301
1301
|
}), (I, C) => (h(), b("div", {
|
|
1302
1302
|
ref_key: "popoverRef",
|
|
1303
1303
|
ref: s,
|
|
@@ -1348,7 +1348,7 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1348
1348
|
on((v) => ({
|
|
1349
1349
|
de94caea: `${n.menuHeight}px`
|
|
1350
1350
|
}));
|
|
1351
|
-
const n = e, l = t, i = $(!1), s = $(null), a = $(""), r = $(null), u = $([...n.items]), c = $([...n.items]),
|
|
1351
|
+
const n = e, l = t, i = $(!1), s = $(null), a = $(""), r = $(null), u = $([...n.items]), c = $([...n.items]), m = () => {
|
|
1352
1352
|
i.value = !i.value;
|
|
1353
1353
|
}, x = () => {
|
|
1354
1354
|
r.value = null, a.value = "", u.value = [...c.value];
|
|
@@ -1359,10 +1359,10 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1359
1359
|
v || x();
|
|
1360
1360
|
}
|
|
1361
1361
|
);
|
|
1362
|
-
const
|
|
1362
|
+
const f = () => {
|
|
1363
1363
|
i.value = !1, x();
|
|
1364
1364
|
}, S = (v) => {
|
|
1365
|
-
s.value = v, l("select-item", v), l("update:modelValue", v.value),
|
|
1365
|
+
s.value = v, l("select-item", v), l("update:modelValue", v.value), f();
|
|
1366
1366
|
}, I = () => {
|
|
1367
1367
|
const v = a.value.trim(), V = n.validateAddItem(v, c.value);
|
|
1368
1368
|
if (V) {
|
|
@@ -1403,8 +1403,8 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1403
1403
|
{ deep: !0 }
|
|
1404
1404
|
), o({
|
|
1405
1405
|
isOpen: i,
|
|
1406
|
-
toggleMenu:
|
|
1407
|
-
closeMenu:
|
|
1406
|
+
toggleMenu: m,
|
|
1407
|
+
closeMenu: f,
|
|
1408
1408
|
selectedItem: s
|
|
1409
1409
|
}), (v, V) => (h(), J(_(Mo), {
|
|
1410
1410
|
modelValue: i.value,
|
|
@@ -1413,7 +1413,7 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1413
1413
|
trigger: ot(({ isOpen: E }) => [
|
|
1414
1414
|
oe(v.$slots, "trigger", {
|
|
1415
1415
|
isOpen: E,
|
|
1416
|
-
toggle:
|
|
1416
|
+
toggle: m
|
|
1417
1417
|
}, void 0, !0)
|
|
1418
1418
|
]),
|
|
1419
1419
|
default: ot(() => [
|
|
@@ -1571,12 +1571,12 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1571
1571
|
C(), i("keyup", g);
|
|
1572
1572
|
}, c = (g) => {
|
|
1573
1573
|
C(), i("keypress", g);
|
|
1574
|
-
},
|
|
1574
|
+
}, m = (g) => {
|
|
1575
1575
|
C(), i("click", g);
|
|
1576
1576
|
}, x = (g) => {
|
|
1577
1577
|
const v = g.target;
|
|
1578
1578
|
C(), i("update:modelValue", v.value);
|
|
1579
|
-
},
|
|
1579
|
+
}, f = (g) => {
|
|
1580
1580
|
C(), i("cut", g);
|
|
1581
1581
|
}, S = (g) => {
|
|
1582
1582
|
C(), i("paste", g);
|
|
@@ -1621,9 +1621,9 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
1621
1621
|
maxlength: g.maxLength,
|
|
1622
1622
|
onKeyup: u,
|
|
1623
1623
|
onKeypress: c,
|
|
1624
|
-
onCut:
|
|
1624
|
+
onCut: f,
|
|
1625
1625
|
onPaste: S,
|
|
1626
|
-
onClick:
|
|
1626
|
+
onClick: m,
|
|
1627
1627
|
onBlur: I,
|
|
1628
1628
|
onInput: x
|
|
1629
1629
|
}, " ", 46, zo),
|
|
@@ -2067,7 +2067,7 @@ const yo = ["fill", "height", "width"], xo = ["xlink:href"], Ao = ["viewBox", "w
|
|
|
2067
2067
|
}
|
|
2068
2068
|
]),
|
|
2069
2069
|
disabled: u.disabled || t.disabled,
|
|
2070
|
-
onClick: (
|
|
2070
|
+
onClick: (m) => i(u)
|
|
2071
2071
|
}, [
|
|
2072
2072
|
u.icon ? (h(), J(_(ae), {
|
|
2073
2073
|
key: 0,
|
|
@@ -2337,48 +2337,48 @@ function Et(e, o, t) {
|
|
|
2337
2337
|
reference: n,
|
|
2338
2338
|
floating: l
|
|
2339
2339
|
} = e;
|
|
2340
|
-
const i = Ae(o), s = xt(o), a = yt(s), r = $e(o), u = i === "y", c = n.x + n.width / 2 - l.width / 2,
|
|
2341
|
-
let
|
|
2340
|
+
const i = Ae(o), s = xt(o), a = yt(s), r = $e(o), u = i === "y", c = n.x + n.width / 2 - l.width / 2, m = n.y + n.height / 2 - l.height / 2, x = n[a] / 2 - l[a] / 2;
|
|
2341
|
+
let f;
|
|
2342
2342
|
switch (r) {
|
|
2343
2343
|
case "top":
|
|
2344
|
-
|
|
2344
|
+
f = {
|
|
2345
2345
|
x: c,
|
|
2346
2346
|
y: n.y - l.height
|
|
2347
2347
|
};
|
|
2348
2348
|
break;
|
|
2349
2349
|
case "bottom":
|
|
2350
|
-
|
|
2350
|
+
f = {
|
|
2351
2351
|
x: c,
|
|
2352
2352
|
y: n.y + n.height
|
|
2353
2353
|
};
|
|
2354
2354
|
break;
|
|
2355
2355
|
case "right":
|
|
2356
|
-
|
|
2356
|
+
f = {
|
|
2357
2357
|
x: n.x + n.width,
|
|
2358
|
-
y:
|
|
2358
|
+
y: m
|
|
2359
2359
|
};
|
|
2360
2360
|
break;
|
|
2361
2361
|
case "left":
|
|
2362
|
-
|
|
2362
|
+
f = {
|
|
2363
2363
|
x: n.x - l.width,
|
|
2364
|
-
y:
|
|
2364
|
+
y: m
|
|
2365
2365
|
};
|
|
2366
2366
|
break;
|
|
2367
2367
|
default:
|
|
2368
|
-
|
|
2368
|
+
f = {
|
|
2369
2369
|
x: n.x,
|
|
2370
2370
|
y: n.y
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
2373
|
switch (Xe(o)) {
|
|
2374
2374
|
case "start":
|
|
2375
|
-
|
|
2375
|
+
f[s] -= x * (t && u ? -1 : 1);
|
|
2376
2376
|
break;
|
|
2377
2377
|
case "end":
|
|
2378
|
-
|
|
2378
|
+
f[s] += x * (t && u ? -1 : 1);
|
|
2379
2379
|
break;
|
|
2380
2380
|
}
|
|
2381
|
-
return
|
|
2381
|
+
return f;
|
|
2382
2382
|
}
|
|
2383
2383
|
const ll = async (e, o, t) => {
|
|
2384
2384
|
const {
|
|
@@ -2393,8 +2393,8 @@ const ll = async (e, o, t) => {
|
|
|
2393
2393
|
strategy: l
|
|
2394
2394
|
}), {
|
|
2395
2395
|
x: c,
|
|
2396
|
-
y:
|
|
2397
|
-
} = Et(u, n, r), x = n,
|
|
2396
|
+
y: m
|
|
2397
|
+
} = Et(u, n, r), x = n, f = {}, S = 0;
|
|
2398
2398
|
for (let I = 0; I < a.length; I++) {
|
|
2399
2399
|
const {
|
|
2400
2400
|
name: C,
|
|
@@ -2406,11 +2406,11 @@ const ll = async (e, o, t) => {
|
|
|
2406
2406
|
reset: P
|
|
2407
2407
|
} = await g({
|
|
2408
2408
|
x: c,
|
|
2409
|
-
y:
|
|
2409
|
+
y: m,
|
|
2410
2410
|
initialPlacement: n,
|
|
2411
2411
|
placement: x,
|
|
2412
2412
|
strategy: l,
|
|
2413
|
-
middlewareData:
|
|
2413
|
+
middlewareData: f,
|
|
2414
2414
|
rects: u,
|
|
2415
2415
|
platform: s,
|
|
2416
2416
|
elements: {
|
|
@@ -2418,10 +2418,10 @@ const ll = async (e, o, t) => {
|
|
|
2418
2418
|
floating: o
|
|
2419
2419
|
}
|
|
2420
2420
|
});
|
|
2421
|
-
c = v ?? c,
|
|
2422
|
-
...
|
|
2421
|
+
c = v ?? c, m = V ?? m, f = {
|
|
2422
|
+
...f,
|
|
2423
2423
|
[C]: {
|
|
2424
|
-
...
|
|
2424
|
+
...f[C],
|
|
2425
2425
|
...E
|
|
2426
2426
|
}
|
|
2427
2427
|
}, P && S <= 50 && (S++, typeof P == "object" && (P.placement && (x = P.placement), P.rects && (u = P.rects === !0 ? await s.getElementRects({
|
|
@@ -2430,15 +2430,15 @@ const ll = async (e, o, t) => {
|
|
|
2430
2430
|
strategy: l
|
|
2431
2431
|
}) : P.rects), {
|
|
2432
2432
|
x: c,
|
|
2433
|
-
y:
|
|
2433
|
+
y: m
|
|
2434
2434
|
} = Et(u, x, r)), I = -1);
|
|
2435
2435
|
}
|
|
2436
2436
|
return {
|
|
2437
2437
|
x: c,
|
|
2438
|
-
y:
|
|
2438
|
+
y: m,
|
|
2439
2439
|
placement: x,
|
|
2440
2440
|
strategy: l,
|
|
2441
|
-
middlewareData:
|
|
2441
|
+
middlewareData: f
|
|
2442
2442
|
};
|
|
2443
2443
|
};
|
|
2444
2444
|
async function Gt(e, o) {
|
|
@@ -2454,15 +2454,15 @@ async function Gt(e, o) {
|
|
|
2454
2454
|
} = e, {
|
|
2455
2455
|
boundary: u = "clippingAncestors",
|
|
2456
2456
|
rootBoundary: c = "viewport",
|
|
2457
|
-
elementContext:
|
|
2457
|
+
elementContext: m = "floating",
|
|
2458
2458
|
altBoundary: x = !1,
|
|
2459
|
-
padding:
|
|
2460
|
-
} = je(o, e), S = Yt(
|
|
2459
|
+
padding: f = 0
|
|
2460
|
+
} = je(o, e), S = Yt(f), C = a[x ? m === "floating" ? "reference" : "floating" : m], g = it(await i.getClippingRect({
|
|
2461
2461
|
element: (t = await (i.isElement == null ? void 0 : i.isElement(C))) == null || t ? C : C.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
2462
2462
|
boundary: u,
|
|
2463
2463
|
rootBoundary: c,
|
|
2464
2464
|
strategy: r
|
|
2465
|
-
})), v =
|
|
2465
|
+
})), v = m === "floating" ? {
|
|
2466
2466
|
x: n,
|
|
2467
2467
|
y: l,
|
|
2468
2468
|
width: s.floating.width,
|
|
@@ -2504,17 +2504,17 @@ const sl = (e) => ({
|
|
|
2504
2504
|
} = je(e, o) || {};
|
|
2505
2505
|
if (u == null)
|
|
2506
2506
|
return {};
|
|
2507
|
-
const
|
|
2507
|
+
const m = Yt(c), x = {
|
|
2508
2508
|
x: t,
|
|
2509
2509
|
y: n
|
|
2510
|
-
},
|
|
2510
|
+
}, f = xt(l), S = yt(f), I = await s.getDimensions(u), C = f === "y", g = C ? "top" : "left", v = C ? "bottom" : "right", V = C ? "clientHeight" : "clientWidth", E = i.reference[S] + i.reference[f] - x[f] - i.floating[S], P = x[f] - i.reference[f], W = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
2511
2511
|
let D = W ? W[V] : 0;
|
|
2512
2512
|
(!D || !await (s.isElement == null ? void 0 : s.isElement(W))) && (D = a.floating[V] || i.floating[S]);
|
|
2513
|
-
const N = E / 2 - P / 2, k = D / 2 - I[S] / 2 - 1, O = Ne(
|
|
2513
|
+
const N = E / 2 - P / 2, k = D / 2 - I[S] / 2 - 1, O = Ne(m[g], k), q = Ne(m[v], k), G = O, te = D - I[S] - q, d = D / 2 - I[S] / 2 + N, p = gt(G, d, te), B = !r.arrow && Xe(l) != null && d !== p && i.reference[S] / 2 - (d < G ? O : q) - I[S] / 2 < 0, w = B ? d < G ? d - G : d - te : 0;
|
|
2514
2514
|
return {
|
|
2515
|
-
[
|
|
2515
|
+
[f]: x[f] + w,
|
|
2516
2516
|
data: {
|
|
2517
|
-
[
|
|
2517
|
+
[f]: p,
|
|
2518
2518
|
centerOffset: d - p - w,
|
|
2519
2519
|
...B && {
|
|
2520
2520
|
alignmentOffset: w
|
|
@@ -2538,9 +2538,9 @@ const sl = (e) => ({
|
|
|
2538
2538
|
elements: u
|
|
2539
2539
|
} = o, {
|
|
2540
2540
|
mainAxis: c = !0,
|
|
2541
|
-
crossAxis:
|
|
2541
|
+
crossAxis: m = !0,
|
|
2542
2542
|
fallbackPlacements: x,
|
|
2543
|
-
fallbackStrategy:
|
|
2543
|
+
fallbackStrategy: f = "bestFit",
|
|
2544
2544
|
fallbackAxisSideDirection: S = "none",
|
|
2545
2545
|
flipAlignment: I = !0,
|
|
2546
2546
|
...C
|
|
@@ -2551,7 +2551,7 @@ const sl = (e) => ({
|
|
|
2551
2551
|
!x && W && P.push(...ol(a, I, S, E));
|
|
2552
2552
|
const D = [a, ...P], N = await Gt(o, C), k = [];
|
|
2553
2553
|
let O = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
2554
|
-
if (c && k.push(N[g]),
|
|
2554
|
+
if (c && k.push(N[g]), m) {
|
|
2555
2555
|
const d = Za(l, s, E);
|
|
2556
2556
|
k.push(N[d[0]], N[d[1]]);
|
|
2557
2557
|
}
|
|
@@ -2561,7 +2561,7 @@ const sl = (e) => ({
|
|
|
2561
2561
|
}], !k.every((d) => d <= 0)) {
|
|
2562
2562
|
var q, G;
|
|
2563
2563
|
const d = (((q = i.flip) == null ? void 0 : q.index) || 0) + 1, p = D[d];
|
|
2564
|
-
if (p && (!(
|
|
2564
|
+
if (p && (!(m === "alignment" ? v !== Ae(p) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2565
2565
|
// overflows the main axis.
|
|
2566
2566
|
O.every((y) => Ae(y.placement) === v ? y.overflows[0] > 0 : !0)))
|
|
2567
2567
|
return {
|
|
@@ -2575,7 +2575,7 @@ const sl = (e) => ({
|
|
|
2575
2575
|
};
|
|
2576
2576
|
let B = (G = O.filter((w) => w.overflows[0] <= 0).sort((w, y) => w.overflows[1] - y.overflows[1])[0]) == null ? void 0 : G.placement;
|
|
2577
2577
|
if (!B)
|
|
2578
|
-
switch (
|
|
2578
|
+
switch (f) {
|
|
2579
2579
|
case "bestFit": {
|
|
2580
2580
|
var te;
|
|
2581
2581
|
const w = (te = O.filter((y) => {
|
|
@@ -2610,26 +2610,26 @@ async function ul(e, o) {
|
|
|
2610
2610
|
placement: t,
|
|
2611
2611
|
platform: n,
|
|
2612
2612
|
elements: l
|
|
2613
|
-
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = $e(t), a = Xe(t), r = Ae(t) === "y", u = rl.has(s) ? -1 : 1, c = i && r ? -1 : 1,
|
|
2613
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(l.floating)), s = $e(t), a = Xe(t), r = Ae(t) === "y", u = rl.has(s) ? -1 : 1, c = i && r ? -1 : 1, m = je(o, e);
|
|
2614
2614
|
let {
|
|
2615
2615
|
mainAxis: x,
|
|
2616
|
-
crossAxis:
|
|
2616
|
+
crossAxis: f,
|
|
2617
2617
|
alignmentAxis: S
|
|
2618
|
-
} = typeof
|
|
2619
|
-
mainAxis:
|
|
2618
|
+
} = typeof m == "number" ? {
|
|
2619
|
+
mainAxis: m,
|
|
2620
2620
|
crossAxis: 0,
|
|
2621
2621
|
alignmentAxis: null
|
|
2622
2622
|
} : {
|
|
2623
|
-
mainAxis:
|
|
2624
|
-
crossAxis:
|
|
2625
|
-
alignmentAxis:
|
|
2623
|
+
mainAxis: m.mainAxis || 0,
|
|
2624
|
+
crossAxis: m.crossAxis || 0,
|
|
2625
|
+
alignmentAxis: m.alignmentAxis
|
|
2626
2626
|
};
|
|
2627
|
-
return a && typeof S == "number" && (
|
|
2628
|
-
x:
|
|
2627
|
+
return a && typeof S == "number" && (f = a === "end" ? S * -1 : S), r ? {
|
|
2628
|
+
x: f * c,
|
|
2629
2629
|
y: x * u
|
|
2630
2630
|
} : {
|
|
2631
2631
|
x: x * u,
|
|
2632
|
-
y:
|
|
2632
|
+
y: f * c
|
|
2633
2633
|
};
|
|
2634
2634
|
}
|
|
2635
2635
|
const cl = function(e) {
|
|
@@ -2682,20 +2682,20 @@ const cl = function(e) {
|
|
|
2682
2682
|
} = je(e, o), u = {
|
|
2683
2683
|
x: t,
|
|
2684
2684
|
y: n
|
|
2685
|
-
}, c = await Gt(o, r),
|
|
2686
|
-
let
|
|
2685
|
+
}, c = await Gt(o, r), m = Ae($e(l)), x = Ut(m);
|
|
2686
|
+
let f = u[x], S = u[m];
|
|
2687
2687
|
if (i) {
|
|
2688
|
-
const C = x === "y" ? "top" : "left", g = x === "y" ? "bottom" : "right", v =
|
|
2689
|
-
|
|
2688
|
+
const C = x === "y" ? "top" : "left", g = x === "y" ? "bottom" : "right", v = f + c[C], V = f - c[g];
|
|
2689
|
+
f = gt(v, f, V);
|
|
2690
2690
|
}
|
|
2691
2691
|
if (s) {
|
|
2692
|
-
const C =
|
|
2692
|
+
const C = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", v = S + c[C], V = S - c[g];
|
|
2693
2693
|
S = gt(v, S, V);
|
|
2694
2694
|
}
|
|
2695
2695
|
const I = a.fn({
|
|
2696
2696
|
...o,
|
|
2697
|
-
[x]:
|
|
2698
|
-
[
|
|
2697
|
+
[x]: f,
|
|
2698
|
+
[m]: S
|
|
2699
2699
|
});
|
|
2700
2700
|
return {
|
|
2701
2701
|
...I,
|
|
@@ -2704,7 +2704,7 @@ const cl = function(e) {
|
|
|
2704
2704
|
y: I.y - n,
|
|
2705
2705
|
enabled: {
|
|
2706
2706
|
[x]: i,
|
|
2707
|
-
[
|
|
2707
|
+
[m]: s
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
@@ -2870,18 +2870,18 @@ function Ee(e, o, t, n) {
|
|
|
2870
2870
|
let s = de(1);
|
|
2871
2871
|
o && (n ? se(n) && (s = qe(n)) : s = qe(e));
|
|
2872
2872
|
const a = xl(i, t, n) ? jt(i) : de(0);
|
|
2873
|
-
let r = (l.left + a.x) / s.x, u = (l.top + a.y) / s.y, c = l.width / s.x,
|
|
2873
|
+
let r = (l.left + a.x) / s.x, u = (l.top + a.y) / s.y, c = l.width / s.x, m = l.height / s.y;
|
|
2874
2874
|
if (i) {
|
|
2875
|
-
const x = ne(i),
|
|
2875
|
+
const x = ne(i), f = n && se(n) ? ne(n) : n;
|
|
2876
2876
|
let S = x, I = bt(S);
|
|
2877
|
-
for (; I && n &&
|
|
2877
|
+
for (; I && n && f !== S; ) {
|
|
2878
2878
|
const C = qe(I), g = I.getBoundingClientRect(), v = ie(I), V = g.left + (I.clientLeft + parseFloat(v.paddingLeft)) * C.x, E = g.top + (I.clientTop + parseFloat(v.paddingTop)) * C.y;
|
|
2879
|
-
r *= C.x, u *= C.y, c *= C.x,
|
|
2879
|
+
r *= C.x, u *= C.y, c *= C.x, m *= C.y, r += V, u += E, S = ne(I), I = bt(S);
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
2882
|
return it({
|
|
2883
2883
|
width: c,
|
|
2884
|
-
height:
|
|
2884
|
+
height: m,
|
|
2885
2885
|
x: r,
|
|
2886
2886
|
y: u
|
|
2887
2887
|
});
|
|
@@ -2911,12 +2911,12 @@ function Al(e) {
|
|
|
2911
2911
|
scrollLeft: 0,
|
|
2912
2912
|
scrollTop: 0
|
|
2913
2913
|
}, u = de(1);
|
|
2914
|
-
const c = de(0),
|
|
2915
|
-
if ((
|
|
2916
|
-
const
|
|
2917
|
-
u = qe(n), c.x =
|
|
2914
|
+
const c = de(0), m = _e(n);
|
|
2915
|
+
if ((m || !m && !i) && ((Le(n) !== "body" || Ze(s)) && (r = dt(n)), _e(n))) {
|
|
2916
|
+
const f = Ee(n);
|
|
2917
|
+
u = qe(n), c.x = f.x + n.clientLeft, c.y = f.y + n.clientTop;
|
|
2918
2918
|
}
|
|
2919
|
-
const x = s && !
|
|
2919
|
+
const x = s && !m && !i ? Xt(s, r) : de(0);
|
|
2920
2920
|
return {
|
|
2921
2921
|
width: t.width * u.x,
|
|
2922
2922
|
height: t.height * u.y,
|
|
@@ -2949,7 +2949,7 @@ function Bl(e, o) {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
const u = _t(n);
|
|
2951
2951
|
if (u <= 0) {
|
|
2952
|
-
const c = n.ownerDocument,
|
|
2952
|
+
const c = n.ownerDocument, m = c.body, x = getComputedStyle(m), f = c.compatMode === "CSS1Compat" && parseFloat(x.marginLeft) + parseFloat(x.marginRight) || 0, S = Math.abs(n.clientWidth - m.clientWidth - f);
|
|
2953
2953
|
S <= Rt && (i -= S);
|
|
2954
2954
|
} else u <= Rt && (i += u);
|
|
2955
2955
|
return {
|
|
@@ -3013,8 +3013,8 @@ function Ml(e) {
|
|
|
3013
3013
|
strategy: l
|
|
3014
3014
|
} = e;
|
|
3015
3015
|
const s = [...t === "clippingAncestors" ? ct(o) ? [] : Vl(o, this._c) : [].concat(t), n], a = s[0], r = s.reduce((u, c) => {
|
|
3016
|
-
const
|
|
3017
|
-
return u.top = Te(
|
|
3016
|
+
const m = Ot(o, c, l);
|
|
3017
|
+
return u.top = Te(m.top, u.top), u.right = Ne(m.right, u.right), u.bottom = Ne(m.bottom, u.bottom), u.left = Te(m.left, u.left), u;
|
|
3018
3018
|
}, Ot(o, a, l));
|
|
3019
3019
|
return {
|
|
3020
3020
|
width: r.right - r.left,
|
|
@@ -3045,13 +3045,13 @@ function $l(e, o, t) {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
if (n || !n && !i)
|
|
3047
3047
|
if ((Le(o) !== "body" || Ze(l)) && (a = dt(o)), n) {
|
|
3048
|
-
const
|
|
3049
|
-
r.x =
|
|
3048
|
+
const f = Ee(o, !0, i, o);
|
|
3049
|
+
r.x = f.x + o.clientLeft, r.y = f.y + o.clientTop;
|
|
3050
3050
|
} else l && u();
|
|
3051
3051
|
i && !n && l && u();
|
|
3052
|
-
const c = l && !n && !i ? Xt(l, a) : de(0),
|
|
3052
|
+
const c = l && !n && !i ? Xt(l, a) : de(0), m = s.left + a.scrollLeft - r.x - c.x, x = s.top + a.scrollTop - r.y - c.y;
|
|
3053
3053
|
return {
|
|
3054
|
-
x:
|
|
3054
|
+
x: m,
|
|
3055
3055
|
y: x,
|
|
3056
3056
|
width: s.width,
|
|
3057
3057
|
height: s.height
|
|
@@ -3127,13 +3127,13 @@ function Ol(e, o) {
|
|
|
3127
3127
|
a === void 0 && (a = !1), r === void 0 && (r = 1), i();
|
|
3128
3128
|
const u = e.getBoundingClientRect(), {
|
|
3129
3129
|
left: c,
|
|
3130
|
-
top:
|
|
3130
|
+
top: m,
|
|
3131
3131
|
width: x,
|
|
3132
|
-
height:
|
|
3132
|
+
height: f
|
|
3133
3133
|
} = u;
|
|
3134
|
-
if (a || o(), !x || !
|
|
3134
|
+
if (a || o(), !x || !f)
|
|
3135
3135
|
return;
|
|
3136
|
-
const S = tt(
|
|
3136
|
+
const S = tt(m), I = tt(l.clientWidth - (c + x)), C = tt(l.clientHeight - (m + f)), g = tt(c), V = {
|
|
3137
3137
|
rootMargin: -S + "px " + -I + "px " + -C + "px " + -g + "px",
|
|
3138
3138
|
threshold: Te(0, Ne(1, r)) || 1
|
|
3139
3139
|
};
|
|
@@ -3176,15 +3176,15 @@ function Dl(e, o, t, n) {
|
|
|
3176
3176
|
passive: !0
|
|
3177
3177
|
}), i && g.addEventListener("resize", t);
|
|
3178
3178
|
});
|
|
3179
|
-
const
|
|
3180
|
-
let x = -1,
|
|
3181
|
-
s && (
|
|
3179
|
+
const m = u && a ? Ol(u, t) : null;
|
|
3180
|
+
let x = -1, f = null;
|
|
3181
|
+
s && (f = new ResizeObserver((g) => {
|
|
3182
3182
|
let [v] = g;
|
|
3183
|
-
v && v.target === u &&
|
|
3183
|
+
v && v.target === u && f && (f.unobserve(o), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
|
|
3184
3184
|
var V;
|
|
3185
|
-
(V =
|
|
3185
|
+
(V = f) == null || V.observe(o);
|
|
3186
3186
|
})), t();
|
|
3187
|
-
}), u && !r &&
|
|
3187
|
+
}), u && !r && f.observe(u), f.observe(o));
|
|
3188
3188
|
let S, I = r ? Ee(e) : null;
|
|
3189
3189
|
r && C();
|
|
3190
3190
|
function C() {
|
|
@@ -3195,7 +3195,7 @@ function Dl(e, o, t, n) {
|
|
|
3195
3195
|
var g;
|
|
3196
3196
|
c.forEach((v) => {
|
|
3197
3197
|
l && v.removeEventListener("scroll", t), i && v.removeEventListener("resize", t);
|
|
3198
|
-
}),
|
|
3198
|
+
}), m == null || m(), (g = f) == null || g.disconnect(), f = null, r && cancelAnimationFrame(S);
|
|
3199
3199
|
};
|
|
3200
3200
|
}
|
|
3201
3201
|
const Pl = cl, zl = dl, Hl = il, ql = sl, Nl = (e, o, t) => {
|
|
@@ -3258,15 +3258,15 @@ function Ul(e, o, t) {
|
|
|
3258
3258
|
}), r = L(() => {
|
|
3259
3259
|
var D;
|
|
3260
3260
|
return (D = He(t.transform)) != null ? D : !0;
|
|
3261
|
-
}), u = L(() => wt(e.value)), c = L(() => wt(o.value)),
|
|
3261
|
+
}), u = L(() => wt(e.value)), c = L(() => wt(o.value)), m = $(0), x = $(0), f = $(a.value), S = $(s.value), I = ln({}), C = $(!1), g = L(() => {
|
|
3262
3262
|
const D = {
|
|
3263
|
-
position:
|
|
3263
|
+
position: f.value,
|
|
3264
3264
|
left: "0",
|
|
3265
3265
|
top: "0"
|
|
3266
3266
|
};
|
|
3267
3267
|
if (!c.value)
|
|
3268
3268
|
return D;
|
|
3269
|
-
const N = Pt(c.value,
|
|
3269
|
+
const N = Pt(c.value, m.value), k = Pt(c.value, x.value);
|
|
3270
3270
|
return r.value ? {
|
|
3271
3271
|
...D,
|
|
3272
3272
|
transform: "translate(" + N + "px, " + k + "px)",
|
|
@@ -3274,7 +3274,7 @@ function Ul(e, o, t) {
|
|
|
3274
3274
|
willChange: "transform"
|
|
3275
3275
|
}
|
|
3276
3276
|
} : {
|
|
3277
|
-
position:
|
|
3277
|
+
position: f.value,
|
|
3278
3278
|
left: N + "px",
|
|
3279
3279
|
top: k + "px"
|
|
3280
3280
|
};
|
|
@@ -3289,7 +3289,7 @@ function Ul(e, o, t) {
|
|
|
3289
3289
|
placement: s.value,
|
|
3290
3290
|
strategy: a.value
|
|
3291
3291
|
}).then((N) => {
|
|
3292
|
-
|
|
3292
|
+
m.value = N.x, x.value = N.y, f.value = N.strategy, S.value = N.placement, I.value = N.middlewareData, C.value = D !== !1;
|
|
3293
3293
|
});
|
|
3294
3294
|
}
|
|
3295
3295
|
function E() {
|
|
@@ -3315,9 +3315,9 @@ function Ul(e, o, t) {
|
|
|
3315
3315
|
}), Q(l, W, {
|
|
3316
3316
|
flush: "sync"
|
|
3317
3317
|
}), sn() && rn(E), {
|
|
3318
|
-
x: De(
|
|
3318
|
+
x: De(m),
|
|
3319
3319
|
y: De(x),
|
|
3320
|
-
strategy: De(
|
|
3320
|
+
strategy: De(f),
|
|
3321
3321
|
placement: De(S),
|
|
3322
3322
|
middlewareData: De(I),
|
|
3323
3323
|
isPositioned: De(C),
|
|
@@ -3375,16 +3375,16 @@ const Kl = "_bubble_6zub9_1", Ql = "_trigger_6zub9_43", jl = "_trigger__icon_6zu
|
|
|
3375
3375
|
}, t = $(null), n = $(null), l = $(!1);
|
|
3376
3376
|
typeof window < "u" && window.wasTooltipShown === void 0 && (window.wasTooltipShown = !1);
|
|
3377
3377
|
const i = e, s = $(null), a = $(null), r = $(null), u = $(!1), c = L(() => i.preventXss ? Gl(i.text) : i.text);
|
|
3378
|
-
let
|
|
3379
|
-
const { floatingStyles: x, update:
|
|
3378
|
+
let m = null;
|
|
3379
|
+
const { floatingStyles: x, update: f, middlewareData: S, placement: I } = Ul(a, s, {
|
|
3380
3380
|
placement: L(() => i.placement || "bottom"),
|
|
3381
3381
|
strategy: "fixed",
|
|
3382
|
-
whileElementsMounted: (k, O, q) =>
|
|
3383
|
-
k && O && (
|
|
3382
|
+
whileElementsMounted: (k, O, q) => k && O ? (Ve(() => {
|
|
3383
|
+
k && O && (m = Dl(k, O, q));
|
|
3384
3384
|
}), () => {
|
|
3385
|
-
|
|
3385
|
+
m && (m(), m = null);
|
|
3386
3386
|
}) : () => {
|
|
3387
|
-
}
|
|
3387
|
+
},
|
|
3388
3388
|
middleware: [
|
|
3389
3389
|
Pl(10),
|
|
3390
3390
|
Hl(),
|
|
@@ -3417,16 +3417,16 @@ const Kl = "_bubble_6zub9_1", Ql = "_trigger_6zub9_43", jl = "_trigger__icon_6zu
|
|
|
3417
3417
|
}, V = () => {
|
|
3418
3418
|
g();
|
|
3419
3419
|
}, E = () => {
|
|
3420
|
-
l.value && a.value && s.value &&
|
|
3420
|
+
l.value && a.value && s.value && f();
|
|
3421
3421
|
};
|
|
3422
3422
|
Q(() => i.placement, () => {
|
|
3423
|
-
l.value && a.value && s.value &&
|
|
3423
|
+
l.value && a.value && s.value && f();
|
|
3424
3424
|
}), un(Yl), We(() => {
|
|
3425
3425
|
l.value = !0, Ve(() => {
|
|
3426
|
-
l.value && a.value &&
|
|
3426
|
+
l.value && a.value && f();
|
|
3427
3427
|
}), typeof window < "u" && window.addEventListener("resize", E);
|
|
3428
3428
|
}), qt(() => {
|
|
3429
|
-
l.value = !1,
|
|
3429
|
+
l.value = !1, m && (m(), m = null), typeof window < "u" && window.removeEventListener("resize", E), t.value && (clearTimeout(t.value), t.value = null), n.value && (clearTimeout(n.value), n.value = null), u.value = !1, s.value = null, a.value = null, r.value = null;
|
|
3430
3430
|
});
|
|
3431
3431
|
const P = L(() => i.status || u.value), W = L(() => ({
|
|
3432
3432
|
...x.value,
|