@dolusoft/vue3-datatable 1.8.35 → 1.8.38

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.
@@ -7,8 +7,8 @@ function tryOnScopeDispose(fn) {
7
7
  }
8
8
  return false;
9
9
  }
10
- function toValue(r) {
11
- return typeof r === "function" ? r() : vue.unref(r);
10
+ function toValue(r2) {
11
+ return typeof r2 === "function" ? r2() : vue.unref(r2);
12
12
  }
13
13
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
14
14
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
@@ -360,7 +360,7 @@ function useElementSize(target, initialSize = { width: 0, height: 0 }, options =
360
360
  stop
361
361
  };
362
362
  }
363
- const Pe = {
363
+ const Pe$1 = {
364
364
  __name: "splitpanes",
365
365
  props: {
366
366
  horizontal: { type: Boolean, default: false },
@@ -382,199 +382,199 @@ const Pe = {
382
382
  "splitter-click",
383
383
  "splitter-dblclick"
384
384
  ],
385
- setup(D, { emit: h }) {
386
- const y = h, u = D, E = vue.useSlots(), l = vue.ref([]), M = vue.computed(() => l.value.reduce((e, n) => (e[~~n.id] = n) && e, {})), m = vue.computed(() => l.value.length), x = vue.ref(null), S = vue.ref(false), c = vue.ref({
385
+ setup(D2, { emit: h2 }) {
386
+ const y2 = h2, u2 = D2, E2 = vue.useSlots(), l2 = vue.ref([]), M = vue.computed(() => l2.value.reduce((e, n2) => (e[~~n2.id] = n2) && e, {})), m2 = vue.computed(() => l2.value.length), x2 = vue.ref(null), S2 = vue.ref(false), c2 = vue.ref({
387
387
  mouseDown: false,
388
388
  dragging: false,
389
389
  activeSplitter: null,
390
390
  cursorOffset: 0
391
391
  // Cursor offset within the splitter.
392
- }), f = vue.ref({
392
+ }), f2 = vue.ref({
393
393
  // Used to detect double click on touch devices.
394
394
  splitter: null,
395
395
  timeoutId: null
396
- }), _ = vue.computed(() => ({
397
- [`splitpanes splitpanes--${u.horizontal ? "horizontal" : "vertical"}`]: true,
398
- "splitpanes--dragging": c.value.dragging
399
- })), R = () => {
400
- document.addEventListener("mousemove", r, { passive: false }), document.addEventListener("mouseup", P), "ontouchstart" in window && (document.addEventListener("touchmove", r, { passive: false }), document.addEventListener("touchend", P));
401
- }, O = () => {
402
- document.removeEventListener("mousemove", r, { passive: false }), document.removeEventListener("mouseup", P), "ontouchstart" in window && (document.removeEventListener("touchmove", r, { passive: false }), document.removeEventListener("touchend", P));
403
- }, b = (e, n) => {
396
+ }), _2 = vue.computed(() => ({
397
+ [`splitpanes splitpanes--${u2.horizontal ? "horizontal" : "vertical"}`]: true,
398
+ "splitpanes--dragging": c2.value.dragging
399
+ })), R2 = () => {
400
+ document.addEventListener("mousemove", r2, { passive: false }), document.addEventListener("mouseup", P2), "ontouchstart" in window && (document.addEventListener("touchmove", r2, { passive: false }), document.addEventListener("touchend", P2));
401
+ }, O2 = () => {
402
+ document.removeEventListener("mousemove", r2, { passive: false }), document.removeEventListener("mouseup", P2), "ontouchstart" in window && (document.removeEventListener("touchmove", r2, { passive: false }), document.removeEventListener("touchend", P2));
403
+ }, b2 = (e, n2) => {
404
404
  const t = e.target.closest(".splitpanes__splitter");
405
405
  if (t) {
406
- const { left: i, top: a } = t.getBoundingClientRect(), { clientX: s, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
407
- c.value.cursorOffset = u.horizontal ? o - a : s - i;
406
+ const { left: i2, top: a2 } = t.getBoundingClientRect(), { clientX: s2, clientY: o2 } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
407
+ c2.value.cursorOffset = u2.horizontal ? o2 - a2 : s2 - i2;
408
408
  }
409
- R(), c.value.mouseDown = true, c.value.activeSplitter = n;
410
- }, r = (e) => {
411
- c.value.mouseDown && (e.preventDefault(), c.value.dragging = true, requestAnimationFrame(() => {
412
- K(I(e)), d("resize", { event: e }, true);
409
+ R2(), c2.value.mouseDown = true, c2.value.activeSplitter = n2;
410
+ }, r2 = (e) => {
411
+ c2.value.mouseDown && (e.preventDefault(), c2.value.dragging = true, requestAnimationFrame(() => {
412
+ K2(I(e)), d2("resize", { event: e }, true);
413
413
  }));
414
- }, P = (e) => {
415
- c.value.dragging && d("resized", { event: e }, true), c.value.mouseDown = false, c.value.activeSplitter = null, setTimeout(() => {
416
- c.value.dragging = false, O();
414
+ }, P2 = (e) => {
415
+ c2.value.dragging && d2("resized", { event: e }, true), c2.value.mouseDown = false, c2.value.activeSplitter = null, setTimeout(() => {
416
+ c2.value.dragging = false, O2();
417
417
  }, 100);
418
- }, A = (e, n) => {
419
- "ontouchstart" in window && (e.preventDefault(), f.value.splitter === n ? (clearTimeout(f.value.timeoutId), f.value.timeoutId = null, U(e, n), f.value.splitter = null) : (f.value.splitter = n, f.value.timeoutId = setTimeout(() => f.value.splitter = null, 500))), c.value.dragging || d("splitter-click", { event: e, index: n }, true);
420
- }, U = (e, n) => {
421
- if (d("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
418
+ }, A2 = (e, n2) => {
419
+ "ontouchstart" in window && (e.preventDefault(), f2.value.splitter === n2 ? (clearTimeout(f2.value.timeoutId), f2.value.timeoutId = null, U(e, n2), f2.value.splitter = null) : (f2.value.splitter = n2, f2.value.timeoutId = setTimeout(() => f2.value.splitter = null, 500))), c2.value.dragging || d2("splitter-click", { event: e, index: n2 }, true);
420
+ }, U = (e, n2) => {
421
+ if (d2("splitter-dblclick", { event: e, index: n2 }, true), u2.maximizePanes) {
422
422
  let t = 0;
423
- l.value = l.value.map((i, a) => (i.size = a === n ? i.max : i.min, a !== n && (t += i.min), i)), l.value[n].size -= t, d("pane-maximize", { event: e, index: n, pane: l.value[n] }), d("resized", { event: e, index: n }, true);
423
+ l2.value = l2.value.map((i2, a2) => (i2.size = a2 === n2 ? i2.max : i2.min, a2 !== n2 && (t += i2.min), i2)), l2.value[n2].size -= t, d2("pane-maximize", { event: e, index: n2, pane: l2.value[n2] }), d2("resized", { event: e, index: n2 }, true);
424
424
  }
425
- }, W = (e, n) => {
426
- d("pane-click", {
425
+ }, W2 = (e, n2) => {
426
+ d2("pane-click", {
427
427
  event: e,
428
- index: M.value[n].index,
429
- pane: M.value[n]
428
+ index: M.value[n2].index,
429
+ pane: M.value[n2]
430
430
  });
431
431
  }, I = (e) => {
432
- const n = x.value.getBoundingClientRect(), { clientX: t, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
432
+ const n2 = x2.value.getBoundingClientRect(), { clientX: t, clientY: i2 } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
433
433
  return {
434
- x: t - (u.horizontal ? 0 : c.value.cursorOffset) - n.left,
435
- y: i - (u.horizontal ? c.value.cursorOffset : 0) - n.top
434
+ x: t - (u2.horizontal ? 0 : c2.value.cursorOffset) - n2.left,
435
+ y: i2 - (u2.horizontal ? c2.value.cursorOffset : 0) - n2.top
436
436
  };
437
437
  }, J = (e) => {
438
- e = e[u.horizontal ? "y" : "x"];
439
- const n = x.value[u.horizontal ? "clientHeight" : "clientWidth"];
440
- return u.rtl && !u.horizontal && (e = n - e), e * 100 / n;
441
- }, K = (e) => {
442
- const n = c.value.activeSplitter;
438
+ e = e[u2.horizontal ? "y" : "x"];
439
+ const n2 = x2.value[u2.horizontal ? "clientHeight" : "clientWidth"];
440
+ return u2.rtl && !u2.horizontal && (e = n2 - e), e * 100 / n2;
441
+ }, K2 = (e) => {
442
+ const n2 = c2.value.activeSplitter;
443
443
  let t = {
444
- prevPanesSize: $(n),
445
- nextPanesSize: N(n),
444
+ prevPanesSize: $2(n2),
445
+ nextPanesSize: N(n2),
446
446
  prevReachedMinPanes: 0,
447
447
  nextReachedMinPanes: 0
448
448
  };
449
- const i = 0 + (u.pushOtherPanes ? 0 : t.prevPanesSize), a = 100 - (u.pushOtherPanes ? 0 : t.nextPanesSize), s = Math.max(Math.min(J(e), a), i);
450
- let o = [n, n + 1], v = l.value[o[0]] || null, p = l.value[o[1]] || null;
451
- const H = v.max < 100 && s >= v.max + t.prevPanesSize, ue = p.max < 100 && s <= 100 - (p.max + N(n + 1));
452
- if (H || ue) {
453
- H ? (v.size = v.max, p.size = Math.max(100 - v.max - t.prevPanesSize - t.nextPanesSize, 0)) : (v.size = Math.max(100 - p.max - t.prevPanesSize - N(n + 1), 0), p.size = p.max);
449
+ const i2 = 0 + (u2.pushOtherPanes ? 0 : t.prevPanesSize), a2 = 100 - (u2.pushOtherPanes ? 0 : t.nextPanesSize), s2 = Math.max(Math.min(J(e), a2), i2);
450
+ let o2 = [n2, n2 + 1], v2 = l2.value[o2[0]] || null, p2 = l2.value[o2[1]] || null;
451
+ const H2 = v2.max < 100 && s2 >= v2.max + t.prevPanesSize, ue2 = p2.max < 100 && s2 <= 100 - (p2.max + N(n2 + 1));
452
+ if (H2 || ue2) {
453
+ H2 ? (v2.size = v2.max, p2.size = Math.max(100 - v2.max - t.prevPanesSize - t.nextPanesSize, 0)) : (v2.size = Math.max(100 - p2.max - t.prevPanesSize - N(n2 + 1), 0), p2.size = p2.max);
454
454
  return;
455
455
  }
456
- if (u.pushOtherPanes) {
457
- const j = Q(t, s);
456
+ if (u2.pushOtherPanes) {
457
+ const j = Q2(t, s2);
458
458
  if (!j) return;
459
- ({ sums: t, panesToResize: o } = j), v = l.value[o[0]] || null, p = l.value[o[1]] || null;
459
+ ({ sums: t, panesToResize: o2 } = j), v2 = l2.value[o2[0]] || null, p2 = l2.value[o2[1]] || null;
460
460
  }
461
- v !== null && (v.size = Math.min(Math.max(s - t.prevPanesSize - t.prevReachedMinPanes, v.min), v.max)), p !== null && (p.size = Math.min(Math.max(100 - s - t.nextPanesSize - t.nextReachedMinPanes, p.min), p.max));
462
- }, Q = (e, n) => {
463
- const t = c.value.activeSplitter, i = [t, t + 1];
464
- return n < e.prevPanesSize + l.value[i[0]].min && (i[0] = V(t).index, e.prevReachedMinPanes = 0, i[0] < t && l.value.forEach((a, s) => {
465
- s > i[0] && s <= t && (a.size = a.min, e.prevReachedMinPanes += a.min);
466
- }), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((a, s) => {
467
- s > 0 && s <= t && (a.size = a.min, e.prevReachedMinPanes += a.min);
468
- }), l.value[i[1]].size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n > 100 - e.nextPanesSize - l.value[i[1]].min && (i[1] = Z(t).index, e.nextReachedMinPanes = 0, i[1] > t + 1 && l.value.forEach((a, s) => {
469
- s > t && s < i[1] && (a.size = a.min, e.nextReachedMinPanes += a.min);
470
- }), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((a, s) => {
471
- s < m.value - 1 && s >= t + 1 && (a.size = a.min, e.nextReachedMinPanes += a.min);
472
- }), l.value[i[0]].size = 100 - e.prevPanesSize - N(i[0] - 1), null) : { sums: e, panesToResize: i };
473
- }, $ = (e) => l.value.reduce((n, t, i) => n + (i < e ? t.size : 0), 0), N = (e) => l.value.reduce((n, t, i) => n + (i > e + 1 ? t.size : 0), 0), V = (e) => [...l.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Z = (e) => l.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, ee = () => {
474
- var n;
475
- const e = Array.from(((n = x.value) == null ? void 0 : n.children) || []);
461
+ v2 !== null && (v2.size = Math.min(Math.max(s2 - t.prevPanesSize - t.prevReachedMinPanes, v2.min), v2.max)), p2 !== null && (p2.size = Math.min(Math.max(100 - s2 - t.nextPanesSize - t.nextReachedMinPanes, p2.min), p2.max));
462
+ }, Q2 = (e, n2) => {
463
+ const t = c2.value.activeSplitter, i2 = [t, t + 1];
464
+ return n2 < e.prevPanesSize + l2.value[i2[0]].min && (i2[0] = V(t).index, e.prevReachedMinPanes = 0, i2[0] < t && l2.value.forEach((a2, s2) => {
465
+ s2 > i2[0] && s2 <= t && (a2.size = a2.min, e.prevReachedMinPanes += a2.min);
466
+ }), e.prevPanesSize = $2(i2[0]), i2[0] === void 0) ? (e.prevReachedMinPanes = 0, l2.value[0].size = l2.value[0].min, l2.value.forEach((a2, s2) => {
467
+ s2 > 0 && s2 <= t && (a2.size = a2.min, e.prevReachedMinPanes += a2.min);
468
+ }), l2.value[i2[1]].size = 100 - e.prevReachedMinPanes - l2.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n2 > 100 - e.nextPanesSize - l2.value[i2[1]].min && (i2[1] = Z2(t).index, e.nextReachedMinPanes = 0, i2[1] > t + 1 && l2.value.forEach((a2, s2) => {
469
+ s2 > t && s2 < i2[1] && (a2.size = a2.min, e.nextReachedMinPanes += a2.min);
470
+ }), e.nextPanesSize = N(i2[1] - 1), i2[1] === void 0) ? (e.nextReachedMinPanes = 0, l2.value.forEach((a2, s2) => {
471
+ s2 < m2.value - 1 && s2 >= t + 1 && (a2.size = a2.min, e.nextReachedMinPanes += a2.min);
472
+ }), l2.value[i2[0]].size = 100 - e.prevPanesSize - N(i2[0] - 1), null) : { sums: e, panesToResize: i2 };
473
+ }, $2 = (e) => l2.value.reduce((n2, t, i2) => n2 + (i2 < e ? t.size : 0), 0), N = (e) => l2.value.reduce((n2, t, i2) => n2 + (i2 > e + 1 ? t.size : 0), 0), V = (e) => [...l2.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Z2 = (e) => l2.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, ee2 = () => {
474
+ var n2;
475
+ const e = Array.from(((n2 = x2.value) == null ? void 0 : n2.children) || []);
476
476
  for (const t of e) {
477
- const i = t.classList.contains("splitpanes__pane"), a = t.classList.contains("splitpanes__splitter");
478
- !i && !a && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
477
+ const i2 = t.classList.contains("splitpanes__pane"), a2 = t.classList.contains("splitpanes__splitter");
478
+ !i2 && !a2 && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
479
479
  }
480
- }, F = (e, n, t = false) => {
481
- const i = e - 1, a = document.createElement("div");
482
- a.classList.add("splitpanes__splitter"), t || (a.onmousedown = (s) => b(s, i), typeof window < "u" && "ontouchstart" in window && (a.ontouchstart = (s) => b(s, i)), a.onclick = (s) => A(s, i + 1)), a.ondblclick = (s) => U(s, i + 1), n.parentNode.insertBefore(a, n);
480
+ }, F2 = (e, n2, t = false) => {
481
+ const i2 = e - 1, a2 = document.createElement("div");
482
+ a2.classList.add("splitpanes__splitter"), t || (a2.onmousedown = (s2) => b2(s2, i2), typeof window < "u" && "ontouchstart" in window && (a2.ontouchstart = (s2) => b2(s2, i2)), a2.onclick = (s2) => A2(s2, i2 + 1)), a2.ondblclick = (s2) => U(s2, i2 + 1), n2.parentNode.insertBefore(a2, n2);
483
483
  }, ne = (e) => {
484
484
  e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
485
- }, C = () => {
485
+ }, C2 = () => {
486
486
  var t;
487
- const e = Array.from(((t = x.value) == null ? void 0 : t.children) || []);
488
- for (const i of e)
489
- i.className.includes("splitpanes__splitter") && ne(i);
490
- let n = 0;
491
- for (const i of e)
492
- i.className.includes("splitpanes__pane") && (!n && u.firstSplitter ? F(n, i, true) : n && F(n, i), n++);
493
- }, ie = ({ uid: e, ...n }) => {
487
+ const e = Array.from(((t = x2.value) == null ? void 0 : t.children) || []);
488
+ for (const i2 of e)
489
+ i2.className.includes("splitpanes__splitter") && ne(i2);
490
+ let n2 = 0;
491
+ for (const i2 of e)
492
+ i2.className.includes("splitpanes__pane") && (!n2 && u2.firstSplitter ? F2(n2, i2, true) : n2 && F2(n2, i2), n2++);
493
+ }, ie = ({ uid: e, ...n2 }) => {
494
494
  const t = M.value[e];
495
- for (const [i, a] of Object.entries(n)) t[i] = a;
496
- }, te = (e) => {
495
+ for (const [i2, a2] of Object.entries(n2)) t[i2] = a2;
496
+ }, te2 = (e) => {
497
497
  var t;
498
- let n = -1;
499
- Array.from(((t = x.value) == null ? void 0 : t.children) || []).some((i) => (i.className.includes("splitpanes__pane") && n++, i.isSameNode(e.el))), l.value.splice(n, 0, { ...e, index: n }), l.value.forEach((i, a) => i.index = a), S.value && vue.nextTick(() => {
500
- C(), L({ addedPane: l.value[n] }), d("pane-add", { pane: l.value[n] });
498
+ let n2 = -1;
499
+ Array.from(((t = x2.value) == null ? void 0 : t.children) || []).some((i2) => (i2.className.includes("splitpanes__pane") && n2++, i2.isSameNode(e.el))), l2.value.splice(n2, 0, { ...e, index: n2 }), l2.value.forEach((i2, a2) => i2.index = a2), S2.value && vue.nextTick(() => {
500
+ C2(), L2({ addedPane: l2.value[n2] }), d2("pane-add", { pane: l2.value[n2] });
501
501
  });
502
- }, ae = (e) => {
503
- const n = l.value.findIndex((i) => i.id === e);
504
- l.value[n].el = null;
505
- const t = l.value.splice(n, 1)[0];
506
- l.value.forEach((i, a) => i.index = a), vue.nextTick(() => {
507
- C(), d("pane-remove", { pane: t }), L({ removedPane: { ...t } });
502
+ }, ae2 = (e) => {
503
+ const n2 = l2.value.findIndex((i2) => i2.id === e);
504
+ l2.value[n2].el = null;
505
+ const t = l2.value.splice(n2, 1)[0];
506
+ l2.value.forEach((i2, a2) => i2.index = a2), vue.nextTick(() => {
507
+ C2(), d2("pane-remove", { pane: t }), L2({ removedPane: { ...t } });
508
508
  });
509
- }, L = (e = {}) => {
510
- !e.addedPane && !e.removedPane ? le() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? oe(e) : se(), S.value && d("resized");
509
+ }, L2 = (e = {}) => {
510
+ !e.addedPane && !e.removedPane ? le2() : l2.value.some((n2) => n2.givenSize !== null || n2.min || n2.max < 100) ? oe(e) : se(), S2.value && d2("resized");
511
511
  }, se = () => {
512
- const e = 100 / m.value;
513
- let n = 0;
514
- const t = [], i = [];
515
- for (const a of l.value)
516
- a.size = Math.max(Math.min(e, a.max), a.min), n -= a.size, a.size >= a.max && t.push(a.id), a.size <= a.min && i.push(a.id);
517
- n > 0.1 && q(n, t, i);
518
- }, le = () => {
512
+ const e = 100 / m2.value;
513
+ let n2 = 0;
514
+ const t = [], i2 = [];
515
+ for (const a2 of l2.value)
516
+ a2.size = Math.max(Math.min(e, a2.max), a2.min), n2 -= a2.size, a2.size >= a2.max && t.push(a2.id), a2.size <= a2.min && i2.push(a2.id);
517
+ n2 > 0.1 && q2(n2, t, i2);
518
+ }, le2 = () => {
519
519
  let e = 100;
520
- const n = [], t = [];
521
- let i = 0;
522
- for (const s of l.value)
523
- e -= s.size, s.givenSize !== null && i++, s.size >= s.max && n.push(s.id), s.size <= s.min && t.push(s.id);
524
- let a = 100;
520
+ const n2 = [], t = [];
521
+ let i2 = 0;
522
+ for (const s2 of l2.value)
523
+ e -= s2.size, s2.givenSize !== null && i2++, s2.size >= s2.max && n2.push(s2.id), s2.size <= s2.min && t.push(s2.id);
524
+ let a2 = 100;
525
525
  if (e > 0.1) {
526
- for (const s of l.value)
527
- s.givenSize === null && (s.size = Math.max(Math.min(e / (m.value - i), s.max), s.min)), a -= s.size;
528
- a > 0.1 && q(a, n, t);
526
+ for (const s2 of l2.value)
527
+ s2.givenSize === null && (s2.size = Math.max(Math.min(e / (m2.value - i2), s2.max), s2.min)), a2 -= s2.size;
528
+ a2 > 0.1 && q2(a2, n2, t);
529
529
  }
530
- }, oe = ({ addedPane: e, removedPane: n } = {}) => {
531
- let t = 100 / m.value, i = 0;
532
- const a = [], s = [];
533
- ((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1));
534
- for (const o of l.value)
535
- i -= o.size, o.size >= o.max && a.push(o.id), o.size <= o.min && s.push(o.id);
536
- if (!(Math.abs(i) < 0.1)) {
537
- for (const o of l.value)
538
- (e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === o.id || (o.size = Math.max(Math.min(t, o.max), o.min)), i -= o.size, o.size >= o.max && a.push(o.id), o.size <= o.min && s.push(o.id);
539
- i > 0.1 && q(i, a, s);
530
+ }, oe = ({ addedPane: e, removedPane: n2 } = {}) => {
531
+ let t = 100 / m2.value, i2 = 0;
532
+ const a2 = [], s2 = [];
533
+ ((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m2.value - 1));
534
+ for (const o2 of l2.value)
535
+ i2 -= o2.size, o2.size >= o2.max && a2.push(o2.id), o2.size <= o2.min && s2.push(o2.id);
536
+ if (!(Math.abs(i2) < 0.1)) {
537
+ for (const o2 of l2.value)
538
+ (e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === o2.id || (o2.size = Math.max(Math.min(t, o2.max), o2.min)), i2 -= o2.size, o2.size >= o2.max && a2.push(o2.id), o2.size <= o2.min && s2.push(o2.id);
539
+ i2 > 0.1 && q2(i2, a2, s2);
540
540
  }
541
- }, q = (e, n, t) => {
542
- let i;
543
- e > 0 ? i = e / (m.value - n.length) : i = e / (m.value - t.length), l.value.forEach((a, s) => {
544
- if (e > 0 && !n.includes(a.id)) {
545
- const o = Math.max(Math.min(a.size + i, a.max), a.min), v = o - a.size;
546
- e -= v, a.size = o;
547
- } else if (!t.includes(a.id)) {
548
- const o = Math.max(Math.min(a.size + i, a.max), a.min), v = o - a.size;
549
- e -= v, a.size = o;
541
+ }, q2 = (e, n2, t) => {
542
+ let i2;
543
+ e > 0 ? i2 = e / (m2.value - n2.length) : i2 = e / (m2.value - t.length), l2.value.forEach((a2, s2) => {
544
+ if (e > 0 && !n2.includes(a2.id)) {
545
+ const o2 = Math.max(Math.min(a2.size + i2, a2.max), a2.min), v2 = o2 - a2.size;
546
+ e -= v2, a2.size = o2;
547
+ } else if (!t.includes(a2.id)) {
548
+ const o2 = Math.max(Math.min(a2.size + i2, a2.max), a2.min), v2 = o2 - a2.size;
549
+ e -= v2, a2.size = o2;
550
550
  }
551
551
  }), Math.abs(e) > 0.1 && vue.nextTick(() => {
552
- S.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
552
+ S2.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
553
553
  });
554
- }, d = (e, n = void 0, t = false) => {
555
- const i = (n == null ? void 0 : n.index) ?? c.value.activeSplitter ?? null;
556
- y(e, {
557
- ...n,
558
- ...i !== null && { index: i },
559
- ...t && i !== null && {
560
- prevPane: l.value[i - (u.firstSplitter ? 1 : 0)],
561
- nextPane: l.value[i + (u.firstSplitter ? 0 : 1)]
554
+ }, d2 = (e, n2 = void 0, t = false) => {
555
+ const i2 = (n2 == null ? void 0 : n2.index) ?? c2.value.activeSplitter ?? null;
556
+ y2(e, {
557
+ ...n2,
558
+ ...i2 !== null && { index: i2 },
559
+ ...t && i2 !== null && {
560
+ prevPane: l2.value[i2 - (u2.firstSplitter ? 1 : 0)],
561
+ nextPane: l2.value[i2 + (u2.firstSplitter ? 0 : 1)]
562
562
  },
563
- panes: l.value.map((a) => ({ min: a.min, max: a.max, size: a.size }))
563
+ panes: l2.value.map((a2) => ({ min: a2.min, max: a2.max, size: a2.size }))
564
564
  });
565
565
  };
566
- vue.watch(() => u.firstSplitter, () => C()), vue.onMounted(() => {
567
- ee(), C(), L(), d("ready"), S.value = true;
568
- }), vue.onBeforeUnmount(() => S.value = false);
569
- const re = () => {
566
+ vue.watch(() => u2.firstSplitter, () => C2()), vue.onMounted(() => {
567
+ ee2(), C2(), L2(), d2("ready"), S2.value = true;
568
+ }), vue.onBeforeUnmount(() => S2.value = false);
569
+ const re2 = () => {
570
570
  var e;
571
571
  return vue.h(
572
572
  "div",
573
- { ref: x, class: _.value },
574
- (e = E.default) == null ? void 0 : e.call(E)
573
+ { ref: x2, class: _2.value },
574
+ (e = E2.default) == null ? void 0 : e.call(E2)
575
575
  );
576
576
  };
577
- return vue.provide("panes", l), vue.provide("indexedPanes", M), vue.provide("horizontal", vue.computed(() => u.horizontal)), vue.provide("requestUpdate", ie), vue.provide("onPaneAdd", te), vue.provide("onPaneRemove", ae), vue.provide("onPaneClick", W), (e, n) => (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(re)));
577
+ return vue.provide("panes", l2), vue.provide("indexedPanes", M), vue.provide("horizontal", vue.computed(() => u2.horizontal)), vue.provide("requestUpdate", ie), vue.provide("onPaneAdd", te2), vue.provide("onPaneRemove", ae2), vue.provide("onPaneClick", W2), (e, n2) => (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(re2)));
578
578
  }
579
579
  }, ge = {
580
580
  __name: "pane",
@@ -583,40 +583,40 @@ const Pe = {
583
583
  minSize: { type: [Number, String], default: 0 },
584
584
  maxSize: { type: [Number, String], default: 100 }
585
585
  },
586
- setup(D) {
587
- var b;
588
- const h = D, y = vue.inject("requestUpdate"), u = vue.inject("onPaneAdd"), E = vue.inject("horizontal"), l = vue.inject("onPaneRemove"), M = vue.inject("onPaneClick"), m = (b = vue.getCurrentInstance()) == null ? void 0 : b.uid, x = vue.inject("indexedPanes"), S = vue.computed(() => x.value[m]), c = vue.ref(null), f = vue.computed(() => {
589
- const r = isNaN(h.size) || h.size === void 0 ? 0 : parseFloat(h.size);
590
- return Math.max(Math.min(r, R.value), _.value);
591
- }), _ = vue.computed(() => {
592
- const r = parseFloat(h.minSize);
593
- return isNaN(r) ? 0 : r;
594
- }), R = vue.computed(() => {
595
- const r = parseFloat(h.maxSize);
596
- return isNaN(r) ? 100 : r;
597
- }), O = vue.computed(() => {
598
- var r;
599
- return `${E.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
586
+ setup(D2) {
587
+ var b2;
588
+ const h2 = D2, y2 = vue.inject("requestUpdate"), u2 = vue.inject("onPaneAdd"), E2 = vue.inject("horizontal"), l2 = vue.inject("onPaneRemove"), M = vue.inject("onPaneClick"), m2 = (b2 = vue.getCurrentInstance()) == null ? void 0 : b2.uid, x2 = vue.inject("indexedPanes"), S2 = vue.computed(() => x2.value[m2]), c2 = vue.ref(null), f2 = vue.computed(() => {
589
+ const r2 = isNaN(h2.size) || h2.size === void 0 ? 0 : parseFloat(h2.size);
590
+ return Math.max(Math.min(r2, R2.value), _2.value);
591
+ }), _2 = vue.computed(() => {
592
+ const r2 = parseFloat(h2.minSize);
593
+ return isNaN(r2) ? 0 : r2;
594
+ }), R2 = vue.computed(() => {
595
+ const r2 = parseFloat(h2.maxSize);
596
+ return isNaN(r2) ? 100 : r2;
597
+ }), O2 = vue.computed(() => {
598
+ var r2;
599
+ return `${E2.value ? "height" : "width"}: ${(r2 = S2.value) == null ? void 0 : r2.size}%`;
600
600
  });
601
- return vue.watch(() => f.value, (r) => y({ uid: m, size: r })), vue.watch(() => _.value, (r) => y({ uid: m, min: r })), vue.watch(() => R.value, (r) => y({ uid: m, max: r })), vue.onMounted(() => {
602
- u({
603
- id: m,
604
- el: c.value,
605
- min: _.value,
606
- max: R.value,
601
+ return vue.watch(() => f2.value, (r2) => y2({ uid: m2, size: r2 })), vue.watch(() => _2.value, (r2) => y2({ uid: m2, min: r2 })), vue.watch(() => R2.value, (r2) => y2({ uid: m2, max: r2 })), vue.onMounted(() => {
602
+ u2({
603
+ id: m2,
604
+ el: c2.value,
605
+ min: _2.value,
606
+ max: R2.value,
607
607
  // The given size (useful to know the user intention).
608
- givenSize: h.size === void 0 ? null : f.value,
609
- size: f.value
608
+ givenSize: h2.size === void 0 ? null : f2.value,
609
+ size: f2.value
610
610
  // The computed current size at any time.
611
611
  });
612
- }), vue.onBeforeUnmount(() => l(m)), (r, P) => (vue.openBlock(), vue.createElementBlock("div", {
612
+ }), vue.onBeforeUnmount(() => l2(m2)), (r2, P2) => (vue.openBlock(), vue.createElementBlock("div", {
613
613
  ref_key: "paneEl",
614
- ref: c,
614
+ ref: c2,
615
615
  class: "splitpanes__pane",
616
- onClick: P[0] || (P[0] = (A) => vue.unref(M)(A, r._.uid)),
617
- style: vue.normalizeStyle(O.value)
616
+ onClick: P2[0] || (P2[0] = (A2) => vue.unref(M)(A2, r2._.uid)),
617
+ style: vue.normalizeStyle(O2.value)
618
618
  }, [
619
- vue.renderSlot(r.$slots, "default")
619
+ vue.renderSlot(r2.$slots, "default")
620
620
  ], 4));
621
621
  }
622
622
  };
@@ -924,20 +924,20 @@ const defaultIconCustomisations = Object.freeze({
924
924
  });
925
925
  const unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
926
926
  const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
927
- function calculateSize(size, ratio, precision) {
927
+ function calculateSize(size2, ratio, precision) {
928
928
  if (ratio === 1) {
929
- return size;
929
+ return size2;
930
930
  }
931
931
  precision = precision || 100;
932
- if (typeof size === "number") {
933
- return Math.ceil(size * ratio * precision) / precision;
932
+ if (typeof size2 === "number") {
933
+ return Math.ceil(size2 * ratio * precision) / precision;
934
934
  }
935
- if (typeof size !== "string") {
936
- return size;
935
+ if (typeof size2 !== "string") {
936
+ return size2;
937
937
  }
938
- const oldParts = size.split(unitsSplit);
938
+ const oldParts = size2.split(unitsSplit);
939
939
  if (oldParts === null || !oldParts.length) {
940
- return size;
940
+ return size2;
941
941
  }
942
942
  const newParts = [];
943
943
  let code = oldParts.shift();
@@ -1330,14 +1330,14 @@ function sortIcons(icons) {
1330
1330
  pending: []
1331
1331
  };
1332
1332
  const storage2 = /* @__PURE__ */ Object.create(null);
1333
- icons.sort((a, b) => {
1334
- if (a.provider !== b.provider) {
1335
- return a.provider.localeCompare(b.provider);
1333
+ icons.sort((a2, b2) => {
1334
+ if (a2.provider !== b2.provider) {
1335
+ return a2.provider.localeCompare(b2.provider);
1336
1336
  }
1337
- if (a.prefix !== b.prefix) {
1338
- return a.prefix.localeCompare(b.prefix);
1337
+ if (a2.prefix !== b2.prefix) {
1338
+ return a2.prefix.localeCompare(b2.prefix);
1339
1339
  }
1340
- return a.name.localeCompare(b.name);
1340
+ return a2.name.localeCompare(b2.name);
1341
1341
  });
1342
1342
  let lastIcon = {
1343
1343
  provider: "",
@@ -1776,8 +1776,8 @@ function iterateBrowserStorage(key, callback) {
1776
1776
  if (version !== browserCacheVersion) {
1777
1777
  if (version) {
1778
1778
  const total2 = getBrowserStorageItemsCount(func);
1779
- for (let i = 0; i < total2; i++) {
1780
- removeStoredItem(func, browserCachePrefix + i.toString());
1779
+ for (let i2 = 0; i2 < total2; i2++) {
1780
+ removeStoredItem(func, browserCachePrefix + i2.toString());
1781
1781
  }
1782
1782
  }
1783
1783
  setStoredItem(func, browserCacheVersionKey, browserCacheVersion);
@@ -1802,13 +1802,13 @@ function iterateBrowserStorage(key, callback) {
1802
1802
  removeStoredItem(func, name);
1803
1803
  };
1804
1804
  let total = getBrowserStorageItemsCount(func);
1805
- for (let i = total - 1; i >= 0; i--) {
1806
- if (!parseItem(i)) {
1807
- if (i === total - 1) {
1805
+ for (let i2 = total - 1; i2 >= 0; i2--) {
1806
+ if (!parseItem(i2)) {
1807
+ if (i2 === total - 1) {
1808
1808
  total--;
1809
1809
  setBrowserStorageItemsCount(func, total);
1810
1810
  } else {
1811
- browserStorageEmptyItems[key].add(i);
1811
+ browserStorageEmptyItems[key].add(i2);
1812
1812
  }
1813
1813
  }
1814
1814
  }
@@ -2032,8 +2032,8 @@ function mergeCustomisations(defaults, item) {
2032
2032
  return result;
2033
2033
  }
2034
2034
  const separator = /[\s,]+/;
2035
- function flipFromString(custom, flip) {
2036
- flip.split(separator).forEach((str) => {
2035
+ function flipFromString(custom, flip2) {
2036
+ flip2.split(separator).forEach((str) => {
2037
2037
  const value = str.trim();
2038
2038
  switch (value) {
2039
2039
  case "horizontal":
@@ -2496,6 +2496,2374 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2496
2496
  }
2497
2497
  });
2498
2498
  const ButtonRightPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-b373d5f7"]]);
2499
+ const sides = ["top", "right", "bottom", "left"];
2500
+ const alignments = ["start", "end"];
2501
+ const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
2502
+ const min = Math.min;
2503
+ const max = Math.max;
2504
+ const oppositeSideMap = {
2505
+ left: "right",
2506
+ right: "left",
2507
+ bottom: "top",
2508
+ top: "bottom"
2509
+ };
2510
+ const oppositeAlignmentMap = {
2511
+ start: "end",
2512
+ end: "start"
2513
+ };
2514
+ function clamp(start, value, end) {
2515
+ return max(start, min(value, end));
2516
+ }
2517
+ function evaluate(value, param) {
2518
+ return typeof value === "function" ? value(param) : value;
2519
+ }
2520
+ function getSide(placement) {
2521
+ return placement.split("-")[0];
2522
+ }
2523
+ function getAlignment(placement) {
2524
+ return placement.split("-")[1];
2525
+ }
2526
+ function getOppositeAxis(axis) {
2527
+ return axis === "x" ? "y" : "x";
2528
+ }
2529
+ function getAxisLength(axis) {
2530
+ return axis === "y" ? "height" : "width";
2531
+ }
2532
+ const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
2533
+ function getSideAxis(placement) {
2534
+ return yAxisSides.has(getSide(placement)) ? "y" : "x";
2535
+ }
2536
+ function getAlignmentAxis(placement) {
2537
+ return getOppositeAxis(getSideAxis(placement));
2538
+ }
2539
+ function getAlignmentSides(placement, rects, rtl) {
2540
+ if (rtl === void 0) {
2541
+ rtl = false;
2542
+ }
2543
+ const alignment = getAlignment(placement);
2544
+ const alignmentAxis = getAlignmentAxis(placement);
2545
+ const length = getAxisLength(alignmentAxis);
2546
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
2547
+ if (rects.reference[length] > rects.floating[length]) {
2548
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
2549
+ }
2550
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
2551
+ }
2552
+ function getExpandedPlacements(placement) {
2553
+ const oppositePlacement = getOppositePlacement(placement);
2554
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
2555
+ }
2556
+ function getOppositeAlignmentPlacement(placement) {
2557
+ return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
2558
+ }
2559
+ const lrPlacement = ["left", "right"];
2560
+ const rlPlacement = ["right", "left"];
2561
+ const tbPlacement = ["top", "bottom"];
2562
+ const btPlacement = ["bottom", "top"];
2563
+ function getSideList(side, isStart, rtl) {
2564
+ switch (side) {
2565
+ case "top":
2566
+ case "bottom":
2567
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
2568
+ return isStart ? lrPlacement : rlPlacement;
2569
+ case "left":
2570
+ case "right":
2571
+ return isStart ? tbPlacement : btPlacement;
2572
+ default:
2573
+ return [];
2574
+ }
2575
+ }
2576
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
2577
+ const alignment = getAlignment(placement);
2578
+ let list = getSideList(getSide(placement), direction === "start", rtl);
2579
+ if (alignment) {
2580
+ list = list.map((side) => side + "-" + alignment);
2581
+ if (flipAlignment) {
2582
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
2583
+ }
2584
+ }
2585
+ return list;
2586
+ }
2587
+ function getOppositePlacement(placement) {
2588
+ return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
2589
+ }
2590
+ function expandPaddingObject(padding) {
2591
+ return {
2592
+ top: 0,
2593
+ right: 0,
2594
+ bottom: 0,
2595
+ left: 0,
2596
+ ...padding
2597
+ };
2598
+ }
2599
+ function getPaddingObject(padding) {
2600
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
2601
+ top: padding,
2602
+ right: padding,
2603
+ bottom: padding,
2604
+ left: padding
2605
+ };
2606
+ }
2607
+ function rectToClientRect(rect) {
2608
+ const {
2609
+ x: x2,
2610
+ y: y2,
2611
+ width,
2612
+ height
2613
+ } = rect;
2614
+ return {
2615
+ width,
2616
+ height,
2617
+ top: y2,
2618
+ left: x2,
2619
+ right: x2 + width,
2620
+ bottom: y2 + height,
2621
+ x: x2,
2622
+ y: y2
2623
+ };
2624
+ }
2625
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
2626
+ let {
2627
+ reference,
2628
+ floating
2629
+ } = _ref;
2630
+ const sideAxis = getSideAxis(placement);
2631
+ const alignmentAxis = getAlignmentAxis(placement);
2632
+ const alignLength = getAxisLength(alignmentAxis);
2633
+ const side = getSide(placement);
2634
+ const isVertical = sideAxis === "y";
2635
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
2636
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
2637
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
2638
+ let coords;
2639
+ switch (side) {
2640
+ case "top":
2641
+ coords = {
2642
+ x: commonX,
2643
+ y: reference.y - floating.height
2644
+ };
2645
+ break;
2646
+ case "bottom":
2647
+ coords = {
2648
+ x: commonX,
2649
+ y: reference.y + reference.height
2650
+ };
2651
+ break;
2652
+ case "right":
2653
+ coords = {
2654
+ x: reference.x + reference.width,
2655
+ y: commonY
2656
+ };
2657
+ break;
2658
+ case "left":
2659
+ coords = {
2660
+ x: reference.x - floating.width,
2661
+ y: commonY
2662
+ };
2663
+ break;
2664
+ default:
2665
+ coords = {
2666
+ x: reference.x,
2667
+ y: reference.y
2668
+ };
2669
+ }
2670
+ switch (getAlignment(placement)) {
2671
+ case "start":
2672
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
2673
+ break;
2674
+ case "end":
2675
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
2676
+ break;
2677
+ }
2678
+ return coords;
2679
+ }
2680
+ const computePosition = async (reference, floating, config) => {
2681
+ const {
2682
+ placement = "bottom",
2683
+ strategy = "absolute",
2684
+ middleware = [],
2685
+ platform
2686
+ } = config;
2687
+ const validMiddleware = middleware.filter(Boolean);
2688
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
2689
+ let rects = await platform.getElementRects({
2690
+ reference,
2691
+ floating,
2692
+ strategy
2693
+ });
2694
+ let {
2695
+ x: x2,
2696
+ y: y2
2697
+ } = computeCoordsFromPlacement(rects, placement, rtl);
2698
+ let statefulPlacement = placement;
2699
+ let middlewareData = {};
2700
+ let resetCount = 0;
2701
+ for (let i2 = 0; i2 < validMiddleware.length; i2++) {
2702
+ const {
2703
+ name,
2704
+ fn
2705
+ } = validMiddleware[i2];
2706
+ const {
2707
+ x: nextX,
2708
+ y: nextY,
2709
+ data,
2710
+ reset
2711
+ } = await fn({
2712
+ x: x2,
2713
+ y: y2,
2714
+ initialPlacement: placement,
2715
+ placement: statefulPlacement,
2716
+ strategy,
2717
+ middlewareData,
2718
+ rects,
2719
+ platform,
2720
+ elements: {
2721
+ reference,
2722
+ floating
2723
+ }
2724
+ });
2725
+ x2 = nextX != null ? nextX : x2;
2726
+ y2 = nextY != null ? nextY : y2;
2727
+ middlewareData = {
2728
+ ...middlewareData,
2729
+ [name]: {
2730
+ ...middlewareData[name],
2731
+ ...data
2732
+ }
2733
+ };
2734
+ if (reset && resetCount <= 50) {
2735
+ resetCount++;
2736
+ if (typeof reset === "object") {
2737
+ if (reset.placement) {
2738
+ statefulPlacement = reset.placement;
2739
+ }
2740
+ if (reset.rects) {
2741
+ rects = reset.rects === true ? await platform.getElementRects({
2742
+ reference,
2743
+ floating,
2744
+ strategy
2745
+ }) : reset.rects;
2746
+ }
2747
+ ({
2748
+ x: x2,
2749
+ y: y2
2750
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
2751
+ }
2752
+ i2 = -1;
2753
+ }
2754
+ }
2755
+ return {
2756
+ x: x2,
2757
+ y: y2,
2758
+ placement: statefulPlacement,
2759
+ strategy,
2760
+ middlewareData
2761
+ };
2762
+ };
2763
+ async function detectOverflow(state, options) {
2764
+ var _await$platform$isEle;
2765
+ if (options === void 0) {
2766
+ options = {};
2767
+ }
2768
+ const {
2769
+ x: x2,
2770
+ y: y2,
2771
+ platform,
2772
+ rects,
2773
+ elements,
2774
+ strategy
2775
+ } = state;
2776
+ const {
2777
+ boundary = "clippingAncestors",
2778
+ rootBoundary = "viewport",
2779
+ elementContext = "floating",
2780
+ altBoundary = false,
2781
+ padding = 0
2782
+ } = evaluate(options, state);
2783
+ const paddingObject = getPaddingObject(padding);
2784
+ const altContext = elementContext === "floating" ? "reference" : "floating";
2785
+ const element = elements[altBoundary ? altContext : elementContext];
2786
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
2787
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating)),
2788
+ boundary,
2789
+ rootBoundary,
2790
+ strategy
2791
+ }));
2792
+ const rect = elementContext === "floating" ? {
2793
+ x: x2,
2794
+ y: y2,
2795
+ width: rects.floating.width,
2796
+ height: rects.floating.height
2797
+ } : rects.reference;
2798
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
2799
+ const offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) ? await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
2800
+ x: 1,
2801
+ y: 1
2802
+ } : {
2803
+ x: 1,
2804
+ y: 1
2805
+ };
2806
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
2807
+ elements,
2808
+ rect,
2809
+ offsetParent,
2810
+ strategy
2811
+ }) : rect);
2812
+ return {
2813
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
2814
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
2815
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
2816
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
2817
+ };
2818
+ }
2819
+ const arrow = (options) => ({
2820
+ name: "arrow",
2821
+ options,
2822
+ async fn(state) {
2823
+ const {
2824
+ x: x2,
2825
+ y: y2,
2826
+ placement,
2827
+ rects,
2828
+ platform,
2829
+ elements,
2830
+ middlewareData
2831
+ } = state;
2832
+ const {
2833
+ element,
2834
+ padding = 0
2835
+ } = evaluate(options, state) || {};
2836
+ if (element == null) {
2837
+ return {};
2838
+ }
2839
+ const paddingObject = getPaddingObject(padding);
2840
+ const coords = {
2841
+ x: x2,
2842
+ y: y2
2843
+ };
2844
+ const axis = getAlignmentAxis(placement);
2845
+ const length = getAxisLength(axis);
2846
+ const arrowDimensions = await platform.getDimensions(element);
2847
+ const isYAxis = axis === "y";
2848
+ const minProp = isYAxis ? "top" : "left";
2849
+ const maxProp = isYAxis ? "bottom" : "right";
2850
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
2851
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
2852
+ const startDiff = coords[axis] - rects.reference[axis];
2853
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
2854
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
2855
+ if (!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) {
2856
+ clientSize = elements.floating[clientProp] || rects.floating[length];
2857
+ }
2858
+ const centerToReference = endDiff / 2 - startDiff / 2;
2859
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
2860
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
2861
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
2862
+ const min$1 = minPadding;
2863
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
2864
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
2865
+ const offset2 = clamp(min$1, center, max2);
2866
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
2867
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
2868
+ return {
2869
+ [axis]: coords[axis] + alignmentOffset,
2870
+ data: {
2871
+ [axis]: offset2,
2872
+ centerOffset: center - offset2 - alignmentOffset,
2873
+ ...shouldAddOffset && {
2874
+ alignmentOffset
2875
+ }
2876
+ },
2877
+ reset: shouldAddOffset
2878
+ };
2879
+ }
2880
+ });
2881
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
2882
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter((placement) => getAlignment(placement) === alignment), ...allowedPlacements.filter((placement) => getAlignment(placement) !== alignment)] : allowedPlacements.filter((placement) => getSide(placement) === placement);
2883
+ return allowedPlacementsSortedByAlignment.filter((placement) => {
2884
+ if (alignment) {
2885
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
2886
+ }
2887
+ return true;
2888
+ });
2889
+ }
2890
+ const autoPlacement = function(options) {
2891
+ if (options === void 0) {
2892
+ options = {};
2893
+ }
2894
+ return {
2895
+ name: "autoPlacement",
2896
+ options,
2897
+ async fn(state) {
2898
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
2899
+ const {
2900
+ rects,
2901
+ middlewareData,
2902
+ placement,
2903
+ platform,
2904
+ elements
2905
+ } = state;
2906
+ const {
2907
+ crossAxis = false,
2908
+ alignment,
2909
+ allowedPlacements = placements,
2910
+ autoAlignment = true,
2911
+ ...detectOverflowOptions
2912
+ } = evaluate(options, state);
2913
+ const placements$1 = alignment !== void 0 || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
2914
+ const overflow = await detectOverflow(state, detectOverflowOptions);
2915
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
2916
+ const currentPlacement = placements$1[currentIndex];
2917
+ if (currentPlacement == null) {
2918
+ return {};
2919
+ }
2920
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
2921
+ if (placement !== currentPlacement) {
2922
+ return {
2923
+ reset: {
2924
+ placement: placements$1[0]
2925
+ }
2926
+ };
2927
+ }
2928
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
2929
+ const allOverflows = [...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [], {
2930
+ placement: currentPlacement,
2931
+ overflows: currentOverflows
2932
+ }];
2933
+ const nextPlacement = placements$1[currentIndex + 1];
2934
+ if (nextPlacement) {
2935
+ return {
2936
+ data: {
2937
+ index: currentIndex + 1,
2938
+ overflows: allOverflows
2939
+ },
2940
+ reset: {
2941
+ placement: nextPlacement
2942
+ }
2943
+ };
2944
+ }
2945
+ const placementsSortedByMostSpace = allOverflows.map((d2) => {
2946
+ const alignment2 = getAlignment(d2.placement);
2947
+ return [d2.placement, alignment2 && crossAxis ? (
2948
+ // Check along the mainAxis and main crossAxis side.
2949
+ d2.overflows.slice(0, 2).reduce((acc, v2) => acc + v2, 0)
2950
+ ) : (
2951
+ // Check only the mainAxis.
2952
+ d2.overflows[0]
2953
+ ), d2.overflows];
2954
+ }).sort((a2, b2) => a2[1] - b2[1]);
2955
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter((d2) => d2[2].slice(
2956
+ 0,
2957
+ // Aligned placements should not check their opposite crossAxis
2958
+ // side.
2959
+ getAlignment(d2[0]) ? 2 : 3
2960
+ ).every((v2) => v2 <= 0));
2961
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
2962
+ if (resetPlacement !== placement) {
2963
+ return {
2964
+ data: {
2965
+ index: currentIndex + 1,
2966
+ overflows: allOverflows
2967
+ },
2968
+ reset: {
2969
+ placement: resetPlacement
2970
+ }
2971
+ };
2972
+ }
2973
+ return {};
2974
+ }
2975
+ };
2976
+ };
2977
+ const flip = function(options) {
2978
+ if (options === void 0) {
2979
+ options = {};
2980
+ }
2981
+ return {
2982
+ name: "flip",
2983
+ options,
2984
+ async fn(state) {
2985
+ var _middlewareData$arrow, _middlewareData$flip;
2986
+ const {
2987
+ placement,
2988
+ middlewareData,
2989
+ rects,
2990
+ initialPlacement,
2991
+ platform,
2992
+ elements
2993
+ } = state;
2994
+ const {
2995
+ mainAxis: checkMainAxis = true,
2996
+ crossAxis: checkCrossAxis = true,
2997
+ fallbackPlacements: specifiedFallbackPlacements,
2998
+ fallbackStrategy = "bestFit",
2999
+ fallbackAxisSideDirection = "none",
3000
+ flipAlignment = true,
3001
+ ...detectOverflowOptions
3002
+ } = evaluate(options, state);
3003
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
3004
+ return {};
3005
+ }
3006
+ const side = getSide(placement);
3007
+ const initialSideAxis = getSideAxis(initialPlacement);
3008
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
3009
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
3010
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
3011
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
3012
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
3013
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
3014
+ }
3015
+ const placements2 = [initialPlacement, ...fallbackPlacements];
3016
+ const overflow = await detectOverflow(state, detectOverflowOptions);
3017
+ const overflows = [];
3018
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
3019
+ if (checkMainAxis) {
3020
+ overflows.push(overflow[side]);
3021
+ }
3022
+ if (checkCrossAxis) {
3023
+ const sides2 = getAlignmentSides(placement, rects, rtl);
3024
+ overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
3025
+ }
3026
+ overflowsData = [...overflowsData, {
3027
+ placement,
3028
+ overflows
3029
+ }];
3030
+ if (!overflows.every((side2) => side2 <= 0)) {
3031
+ var _middlewareData$flip2, _overflowsData$filter;
3032
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
3033
+ const nextPlacement = placements2[nextIndex];
3034
+ if (nextPlacement) {
3035
+ const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
3036
+ if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
3037
+ // overflows the main axis.
3038
+ overflowsData.every((d2) => getSideAxis(d2.placement) === initialSideAxis ? d2.overflows[0] > 0 : true)) {
3039
+ return {
3040
+ data: {
3041
+ index: nextIndex,
3042
+ overflows: overflowsData
3043
+ },
3044
+ reset: {
3045
+ placement: nextPlacement
3046
+ }
3047
+ };
3048
+ }
3049
+ }
3050
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
3051
+ if (!resetPlacement) {
3052
+ switch (fallbackStrategy) {
3053
+ case "bestFit": {
3054
+ var _overflowsData$filter2;
3055
+ const placement2 = (_overflowsData$filter2 = overflowsData.filter((d2) => {
3056
+ if (hasFallbackAxisSideDirection) {
3057
+ const currentSideAxis = getSideAxis(d2.placement);
3058
+ return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
3059
+ // reading directions favoring greater width.
3060
+ currentSideAxis === "y";
3061
+ }
3062
+ return true;
3063
+ }).map((d2) => [d2.placement, d2.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
3064
+ if (placement2) {
3065
+ resetPlacement = placement2;
3066
+ }
3067
+ break;
3068
+ }
3069
+ case "initialPlacement":
3070
+ resetPlacement = initialPlacement;
3071
+ break;
3072
+ }
3073
+ }
3074
+ if (placement !== resetPlacement) {
3075
+ return {
3076
+ reset: {
3077
+ placement: resetPlacement
3078
+ }
3079
+ };
3080
+ }
3081
+ }
3082
+ return {};
3083
+ }
3084
+ };
3085
+ };
3086
+ const originSides = /* @__PURE__ */ new Set(["left", "top"]);
3087
+ async function convertValueToCoords(state, options) {
3088
+ const {
3089
+ placement,
3090
+ platform,
3091
+ elements
3092
+ } = state;
3093
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
3094
+ const side = getSide(placement);
3095
+ const alignment = getAlignment(placement);
3096
+ const isVertical = getSideAxis(placement) === "y";
3097
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
3098
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
3099
+ const rawValue = evaluate(options, state);
3100
+ let {
3101
+ mainAxis,
3102
+ crossAxis,
3103
+ alignmentAxis
3104
+ } = typeof rawValue === "number" ? {
3105
+ mainAxis: rawValue,
3106
+ crossAxis: 0,
3107
+ alignmentAxis: null
3108
+ } : {
3109
+ mainAxis: rawValue.mainAxis || 0,
3110
+ crossAxis: rawValue.crossAxis || 0,
3111
+ alignmentAxis: rawValue.alignmentAxis
3112
+ };
3113
+ if (alignment && typeof alignmentAxis === "number") {
3114
+ crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
3115
+ }
3116
+ return isVertical ? {
3117
+ x: crossAxis * crossAxisMulti,
3118
+ y: mainAxis * mainAxisMulti
3119
+ } : {
3120
+ x: mainAxis * mainAxisMulti,
3121
+ y: crossAxis * crossAxisMulti
3122
+ };
3123
+ }
3124
+ const offset = function(options) {
3125
+ if (options === void 0) {
3126
+ options = 0;
3127
+ }
3128
+ return {
3129
+ name: "offset",
3130
+ options,
3131
+ async fn(state) {
3132
+ var _middlewareData$offse, _middlewareData$arrow;
3133
+ const {
3134
+ x: x2,
3135
+ y: y2,
3136
+ placement,
3137
+ middlewareData
3138
+ } = state;
3139
+ const diffCoords = await convertValueToCoords(state, options);
3140
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
3141
+ return {};
3142
+ }
3143
+ return {
3144
+ x: x2 + diffCoords.x,
3145
+ y: y2 + diffCoords.y,
3146
+ data: {
3147
+ ...diffCoords,
3148
+ placement
3149
+ }
3150
+ };
3151
+ }
3152
+ };
3153
+ };
3154
+ const shift = function(options) {
3155
+ if (options === void 0) {
3156
+ options = {};
3157
+ }
3158
+ return {
3159
+ name: "shift",
3160
+ options,
3161
+ async fn(state) {
3162
+ const {
3163
+ x: x2,
3164
+ y: y2,
3165
+ placement
3166
+ } = state;
3167
+ const {
3168
+ mainAxis: checkMainAxis = true,
3169
+ crossAxis: checkCrossAxis = false,
3170
+ limiter = {
3171
+ fn: (_ref) => {
3172
+ let {
3173
+ x: x3,
3174
+ y: y3
3175
+ } = _ref;
3176
+ return {
3177
+ x: x3,
3178
+ y: y3
3179
+ };
3180
+ }
3181
+ },
3182
+ ...detectOverflowOptions
3183
+ } = evaluate(options, state);
3184
+ const coords = {
3185
+ x: x2,
3186
+ y: y2
3187
+ };
3188
+ const overflow = await detectOverflow(state, detectOverflowOptions);
3189
+ const crossAxis = getSideAxis(getSide(placement));
3190
+ const mainAxis = getOppositeAxis(crossAxis);
3191
+ let mainAxisCoord = coords[mainAxis];
3192
+ let crossAxisCoord = coords[crossAxis];
3193
+ if (checkMainAxis) {
3194
+ const minSide = mainAxis === "y" ? "top" : "left";
3195
+ const maxSide = mainAxis === "y" ? "bottom" : "right";
3196
+ const min2 = mainAxisCoord + overflow[minSide];
3197
+ const max2 = mainAxisCoord - overflow[maxSide];
3198
+ mainAxisCoord = clamp(min2, mainAxisCoord, max2);
3199
+ }
3200
+ if (checkCrossAxis) {
3201
+ const minSide = crossAxis === "y" ? "top" : "left";
3202
+ const maxSide = crossAxis === "y" ? "bottom" : "right";
3203
+ const min2 = crossAxisCoord + overflow[minSide];
3204
+ const max2 = crossAxisCoord - overflow[maxSide];
3205
+ crossAxisCoord = clamp(min2, crossAxisCoord, max2);
3206
+ }
3207
+ const limitedCoords = limiter.fn({
3208
+ ...state,
3209
+ [mainAxis]: mainAxisCoord,
3210
+ [crossAxis]: crossAxisCoord
3211
+ });
3212
+ return {
3213
+ ...limitedCoords,
3214
+ data: {
3215
+ x: limitedCoords.x - x2,
3216
+ y: limitedCoords.y - y2,
3217
+ enabled: {
3218
+ [mainAxis]: checkMainAxis,
3219
+ [crossAxis]: checkCrossAxis
3220
+ }
3221
+ }
3222
+ };
3223
+ }
3224
+ };
3225
+ };
3226
+ const size = function(options) {
3227
+ if (options === void 0) {
3228
+ options = {};
3229
+ }
3230
+ return {
3231
+ name: "size",
3232
+ options,
3233
+ async fn(state) {
3234
+ var _state$middlewareData, _state$middlewareData2;
3235
+ const {
3236
+ placement,
3237
+ rects,
3238
+ platform,
3239
+ elements
3240
+ } = state;
3241
+ const {
3242
+ apply = () => {
3243
+ },
3244
+ ...detectOverflowOptions
3245
+ } = evaluate(options, state);
3246
+ const overflow = await detectOverflow(state, detectOverflowOptions);
3247
+ const side = getSide(placement);
3248
+ const alignment = getAlignment(placement);
3249
+ const isYAxis = getSideAxis(placement) === "y";
3250
+ const {
3251
+ width,
3252
+ height
3253
+ } = rects.floating;
3254
+ let heightSide;
3255
+ let widthSide;
3256
+ if (side === "top" || side === "bottom") {
3257
+ heightSide = side;
3258
+ widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
3259
+ } else {
3260
+ widthSide = side;
3261
+ heightSide = alignment === "end" ? "top" : "bottom";
3262
+ }
3263
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
3264
+ const maximumClippingWidth = width - overflow.left - overflow.right;
3265
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
3266
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
3267
+ const noShift = !state.middlewareData.shift;
3268
+ let availableHeight = overflowAvailableHeight;
3269
+ let availableWidth = overflowAvailableWidth;
3270
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
3271
+ availableWidth = maximumClippingWidth;
3272
+ }
3273
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
3274
+ availableHeight = maximumClippingHeight;
3275
+ }
3276
+ if (noShift && !alignment) {
3277
+ const xMin = max(overflow.left, 0);
3278
+ const xMax = max(overflow.right, 0);
3279
+ const yMin = max(overflow.top, 0);
3280
+ const yMax = max(overflow.bottom, 0);
3281
+ if (isYAxis) {
3282
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
3283
+ } else {
3284
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
3285
+ }
3286
+ }
3287
+ await apply({
3288
+ ...state,
3289
+ availableWidth,
3290
+ availableHeight
3291
+ });
3292
+ const nextDimensions = await platform.getDimensions(elements.floating);
3293
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
3294
+ return {
3295
+ reset: {
3296
+ rects: true
3297
+ }
3298
+ };
3299
+ }
3300
+ return {};
3301
+ }
3302
+ };
3303
+ };
3304
+ function n$1(t) {
3305
+ var e;
3306
+ return (null == (e = t.ownerDocument) ? void 0 : e.defaultView) || window;
3307
+ }
3308
+ function o(t) {
3309
+ return n$1(t).getComputedStyle(t);
3310
+ }
3311
+ const i = Math.min, r = Math.max, l = Math.round;
3312
+ function c$1(t) {
3313
+ const e = o(t);
3314
+ let n2 = parseFloat(e.width), i2 = parseFloat(e.height);
3315
+ const r2 = t.offsetWidth, c2 = t.offsetHeight, s2 = l(n2) !== r2 || l(i2) !== c2;
3316
+ return s2 && (n2 = r2, i2 = c2), { width: n2, height: i2, fallback: s2 };
3317
+ }
3318
+ function s(t) {
3319
+ return h$1(t) ? (t.nodeName || "").toLowerCase() : "";
3320
+ }
3321
+ let f;
3322
+ function u() {
3323
+ if (f) return f;
3324
+ const t = navigator.userAgentData;
3325
+ return t && Array.isArray(t.brands) ? (f = t.brands.map((t2) => t2.brand + "/" + t2.version).join(" "), f) : navigator.userAgent;
3326
+ }
3327
+ function a(t) {
3328
+ return t instanceof n$1(t).HTMLElement;
3329
+ }
3330
+ function d$1(t) {
3331
+ return t instanceof n$1(t).Element;
3332
+ }
3333
+ function h$1(t) {
3334
+ return t instanceof n$1(t).Node;
3335
+ }
3336
+ function p(t) {
3337
+ if ("undefined" == typeof ShadowRoot) return false;
3338
+ return t instanceof n$1(t).ShadowRoot || t instanceof ShadowRoot;
3339
+ }
3340
+ function g$1(t) {
3341
+ const { overflow: e, overflowX: n2, overflowY: i2, display: r2 } = o(t);
3342
+ return /auto|scroll|overlay|hidden|clip/.test(e + i2 + n2) && !["inline", "contents"].includes(r2);
3343
+ }
3344
+ function m$1(t) {
3345
+ return ["table", "td", "th"].includes(s(t));
3346
+ }
3347
+ function y$1(t) {
3348
+ const e = /firefox/i.test(u()), n2 = o(t), i2 = n2.backdropFilter || n2.WebkitBackdropFilter;
3349
+ return "none" !== n2.transform || "none" !== n2.perspective || !!i2 && "none" !== i2 || e && "filter" === n2.willChange || e && !!n2.filter && "none" !== n2.filter || ["transform", "perspective"].some((t2) => n2.willChange.includes(t2)) || ["paint", "layout", "strict", "content"].some((t2) => {
3350
+ const e2 = n2.contain;
3351
+ return null != e2 && e2.includes(t2);
3352
+ });
3353
+ }
3354
+ function x() {
3355
+ return !/^((?!chrome|android).)*safari/i.test(u());
3356
+ }
3357
+ function w(t) {
3358
+ return ["html", "body", "#document"].includes(s(t));
3359
+ }
3360
+ function v(t) {
3361
+ return d$1(t) ? t : t.contextElement;
3362
+ }
3363
+ const b = { x: 1, y: 1 };
3364
+ function L(t) {
3365
+ const e = v(t);
3366
+ if (!a(e)) return b;
3367
+ const n2 = e.getBoundingClientRect(), { width: o2, height: i2, fallback: r2 } = c$1(e);
3368
+ let s2 = (r2 ? l(n2.width) : n2.width) / o2, f2 = (r2 ? l(n2.height) : n2.height) / i2;
3369
+ return s2 && Number.isFinite(s2) || (s2 = 1), f2 && Number.isFinite(f2) || (f2 = 1), { x: s2, y: f2 };
3370
+ }
3371
+ function E$1(t, e, o2, i2) {
3372
+ var r2, l2;
3373
+ void 0 === e && (e = false), void 0 === o2 && (o2 = false);
3374
+ const c2 = t.getBoundingClientRect(), s2 = v(t);
3375
+ let f2 = b;
3376
+ e && (i2 ? d$1(i2) && (f2 = L(i2)) : f2 = L(t));
3377
+ const u2 = s2 ? n$1(s2) : window, a2 = !x() && o2;
3378
+ let h2 = (c2.left + (a2 && (null == (r2 = u2.visualViewport) ? void 0 : r2.offsetLeft) || 0)) / f2.x, p2 = (c2.top + (a2 && (null == (l2 = u2.visualViewport) ? void 0 : l2.offsetTop) || 0)) / f2.y, g2 = c2.width / f2.x, m2 = c2.height / f2.y;
3379
+ if (s2) {
3380
+ const t2 = n$1(s2), e2 = i2 && d$1(i2) ? n$1(i2) : i2;
3381
+ let o3 = t2.frameElement;
3382
+ for (; o3 && i2 && e2 !== t2; ) {
3383
+ const t3 = L(o3), e3 = o3.getBoundingClientRect(), i3 = getComputedStyle(o3);
3384
+ e3.x += (o3.clientLeft + parseFloat(i3.paddingLeft)) * t3.x, e3.y += (o3.clientTop + parseFloat(i3.paddingTop)) * t3.y, h2 *= t3.x, p2 *= t3.y, g2 *= t3.x, m2 *= t3.y, h2 += e3.x, p2 += e3.y, o3 = n$1(o3).frameElement;
3385
+ }
3386
+ }
3387
+ return { width: g2, height: m2, top: p2, right: h2 + g2, bottom: p2 + m2, left: h2, x: h2, y: p2 };
3388
+ }
3389
+ function R(t) {
3390
+ return ((h$1(t) ? t.ownerDocument : t.document) || window.document).documentElement;
3391
+ }
3392
+ function T(t) {
3393
+ return d$1(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
3394
+ }
3395
+ function C$1(t) {
3396
+ return E$1(R(t)).left + T(t).scrollLeft;
3397
+ }
3398
+ function F(t) {
3399
+ if ("html" === s(t)) return t;
3400
+ const e = t.assignedSlot || t.parentNode || p(t) && t.host || R(t);
3401
+ return p(e) ? e.host : e;
3402
+ }
3403
+ function W(t) {
3404
+ const e = F(t);
3405
+ return w(e) ? e.ownerDocument.body : a(e) && g$1(e) ? e : W(e);
3406
+ }
3407
+ function D(t, e) {
3408
+ var o2;
3409
+ void 0 === e && (e = []);
3410
+ const i2 = W(t), r2 = i2 === (null == (o2 = t.ownerDocument) ? void 0 : o2.body), l2 = n$1(i2);
3411
+ return r2 ? e.concat(l2, l2.visualViewport || [], g$1(i2) ? i2 : []) : e.concat(i2, D(i2));
3412
+ }
3413
+ function S$1(e, i2, l2) {
3414
+ return "viewport" === i2 ? rectToClientRect(function(t, e2) {
3415
+ const o2 = n$1(t), i3 = R(t), r2 = o2.visualViewport;
3416
+ let l3 = i3.clientWidth, c2 = i3.clientHeight, s2 = 0, f2 = 0;
3417
+ if (r2) {
3418
+ l3 = r2.width, c2 = r2.height;
3419
+ const t2 = x();
3420
+ (t2 || !t2 && "fixed" === e2) && (s2 = r2.offsetLeft, f2 = r2.offsetTop);
3421
+ }
3422
+ return { width: l3, height: c2, x: s2, y: f2 };
3423
+ }(e, l2)) : d$1(i2) ? rectToClientRect(function(t, e2) {
3424
+ const n2 = E$1(t, true, "fixed" === e2), o2 = n2.top + t.clientTop, i3 = n2.left + t.clientLeft, r2 = a(t) ? L(t) : { x: 1, y: 1 };
3425
+ return { width: t.clientWidth * r2.x, height: t.clientHeight * r2.y, x: i3 * r2.x, y: o2 * r2.y };
3426
+ }(i2, l2)) : rectToClientRect(function(t) {
3427
+ const e2 = R(t), n2 = T(t), i3 = t.ownerDocument.body, l3 = r(e2.scrollWidth, e2.clientWidth, i3.scrollWidth, i3.clientWidth), c2 = r(e2.scrollHeight, e2.clientHeight, i3.scrollHeight, i3.clientHeight);
3428
+ let s2 = -n2.scrollLeft + C$1(t);
3429
+ const f2 = -n2.scrollTop;
3430
+ return "rtl" === o(i3).direction && (s2 += r(e2.clientWidth, i3.clientWidth) - l3), { width: l3, height: c2, x: s2, y: f2 };
3431
+ }(R(e)));
3432
+ }
3433
+ function A(t) {
3434
+ return a(t) && "fixed" !== o(t).position ? t.offsetParent : null;
3435
+ }
3436
+ function H(t) {
3437
+ const e = n$1(t);
3438
+ let i2 = A(t);
3439
+ for (; i2 && m$1(i2) && "static" === o(i2).position; ) i2 = A(i2);
3440
+ return i2 && ("html" === s(i2) || "body" === s(i2) && "static" === o(i2).position && !y$1(i2)) ? e : i2 || function(t2) {
3441
+ let e2 = F(t2);
3442
+ for (; a(e2) && !w(e2); ) {
3443
+ if (y$1(e2)) return e2;
3444
+ e2 = F(e2);
3445
+ }
3446
+ return null;
3447
+ }(t) || e;
3448
+ }
3449
+ function O(t, e, n2) {
3450
+ const o2 = a(e), i2 = R(e), r2 = E$1(t, true, "fixed" === n2, e);
3451
+ let l2 = { scrollLeft: 0, scrollTop: 0 };
3452
+ const c2 = { x: 0, y: 0 };
3453
+ if (o2 || !o2 && "fixed" !== n2) if (("body" !== s(e) || g$1(i2)) && (l2 = T(e)), a(e)) {
3454
+ const t2 = E$1(e, true);
3455
+ c2.x = t2.x + e.clientLeft, c2.y = t2.y + e.clientTop;
3456
+ } else i2 && (c2.x = C$1(i2));
3457
+ return { x: r2.left + l2.scrollLeft - c2.x, y: r2.top + l2.scrollTop - c2.y, width: r2.width, height: r2.height };
3458
+ }
3459
+ const P = { getClippingRect: function(t) {
3460
+ let { element: e, boundary: n2, rootBoundary: l2, strategy: c2 } = t;
3461
+ const f2 = "clippingAncestors" === n2 ? function(t2, e2) {
3462
+ const n3 = e2.get(t2);
3463
+ if (n3) return n3;
3464
+ let i2 = D(t2).filter((t3) => d$1(t3) && "body" !== s(t3)), r2 = null;
3465
+ const l3 = "fixed" === o(t2).position;
3466
+ let c3 = l3 ? F(t2) : t2;
3467
+ for (; d$1(c3) && !w(c3); ) {
3468
+ const t3 = o(c3), e3 = y$1(c3);
3469
+ (l3 ? e3 || r2 : e3 || "static" !== t3.position || !r2 || !["absolute", "fixed"].includes(r2.position)) ? r2 = t3 : i2 = i2.filter((t4) => t4 !== c3), c3 = F(c3);
3470
+ }
3471
+ return e2.set(t2, i2), i2;
3472
+ }(e, this._c) : [].concat(n2), u2 = [...f2, l2], a2 = u2[0], h2 = u2.reduce((t2, n3) => {
3473
+ const o2 = S$1(e, n3, c2);
3474
+ return t2.top = r(o2.top, t2.top), t2.right = i(o2.right, t2.right), t2.bottom = i(o2.bottom, t2.bottom), t2.left = r(o2.left, t2.left), t2;
3475
+ }, S$1(e, a2, c2));
3476
+ return { width: h2.right - h2.left, height: h2.bottom - h2.top, x: h2.left, y: h2.top };
3477
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
3478
+ let { rect: e, offsetParent: n2, strategy: o2 } = t;
3479
+ const i2 = a(n2), r2 = R(n2);
3480
+ if (n2 === r2) return e;
3481
+ let l2 = { scrollLeft: 0, scrollTop: 0 }, c2 = { x: 1, y: 1 };
3482
+ const f2 = { x: 0, y: 0 };
3483
+ if ((i2 || !i2 && "fixed" !== o2) && (("body" !== s(n2) || g$1(r2)) && (l2 = T(n2)), a(n2))) {
3484
+ const t2 = E$1(n2);
3485
+ c2 = L(n2), f2.x = t2.x + n2.clientLeft, f2.y = t2.y + n2.clientTop;
3486
+ }
3487
+ return { width: e.width * c2.x, height: e.height * c2.y, x: e.x * c2.x - l2.scrollLeft * c2.x + f2.x, y: e.y * c2.y - l2.scrollTop * c2.y + f2.y };
3488
+ }, isElement: d$1, getDimensions: function(t) {
3489
+ return a(t) ? c$1(t) : t.getBoundingClientRect();
3490
+ }, getOffsetParent: H, getDocumentElement: R, getScale: L, async getElementRects(t) {
3491
+ let { reference: e, floating: n2, strategy: o2 } = t;
3492
+ const i2 = this.getOffsetParent || H, r2 = this.getDimensions;
3493
+ return { reference: O(e, await i2(n2), o2), floating: { x: 0, y: 0, ...await r2(n2) } };
3494
+ }, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => "rtl" === o(t).direction };
3495
+ const B$1 = (t, n2, o2) => {
3496
+ const i2 = /* @__PURE__ */ new Map(), r2 = { platform: P, ...o2 }, l2 = { ...r2.platform, _c: i2 };
3497
+ return computePosition(t, n2, { ...r2, platform: l2 });
3498
+ };
3499
+ const h = {
3500
+ // Disable popper components
3501
+ disabled: false,
3502
+ // Default position offset along main axis (px)
3503
+ distance: 5,
3504
+ // Default position offset along cross axis (px)
3505
+ skidding: 0,
3506
+ // Default container where the tooltip will be appended
3507
+ container: "body",
3508
+ // Element used to compute position and size boundaries
3509
+ boundary: void 0,
3510
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
3511
+ instantMove: false,
3512
+ // Auto destroy tooltip DOM nodes (ms)
3513
+ disposeTimeout: 150,
3514
+ // Triggers on the popper itself
3515
+ popperTriggers: [],
3516
+ // Positioning strategy
3517
+ strategy: "absolute",
3518
+ // Prevent overflow
3519
+ preventOverflow: true,
3520
+ // Flip to the opposite placement if needed
3521
+ flip: true,
3522
+ // Shift on the cross axis to prevent the popper from overflowing
3523
+ shift: true,
3524
+ // Overflow padding (px)
3525
+ overflowPadding: 0,
3526
+ // Arrow padding (px)
3527
+ arrowPadding: 0,
3528
+ // Compute arrow overflow (useful to hide it)
3529
+ arrowOverflow: true,
3530
+ /**
3531
+ * By default, compute autohide on 'click'.
3532
+ */
3533
+ autoHideOnMousedown: false,
3534
+ // Themes
3535
+ themes: {
3536
+ tooltip: {
3537
+ // Default tooltip placement relative to target element
3538
+ placement: "top",
3539
+ // Default events that trigger the tooltip
3540
+ triggers: ["hover", "focus", "touch"],
3541
+ // Close tooltip on click on tooltip target
3542
+ hideTriggers: (e) => [...e, "click"],
3543
+ // Delay (ms)
3544
+ delay: {
3545
+ show: 200,
3546
+ hide: 0
3547
+ },
3548
+ // Update popper on content resize
3549
+ handleResize: false,
3550
+ // Enable HTML content in directive
3551
+ html: false,
3552
+ // Displayed when tooltip content is loading
3553
+ loadingContent: "..."
3554
+ },
3555
+ dropdown: {
3556
+ // Default dropdown placement relative to target element
3557
+ placement: "bottom",
3558
+ // Default events that trigger the dropdown
3559
+ triggers: ["click"],
3560
+ // Delay (ms)
3561
+ delay: 0,
3562
+ // Update popper on content resize
3563
+ handleResize: true,
3564
+ // Hide on clock outside
3565
+ autoHide: true
3566
+ },
3567
+ menu: {
3568
+ $extend: "dropdown",
3569
+ triggers: ["hover", "focus"],
3570
+ popperTriggers: ["hover"],
3571
+ delay: {
3572
+ show: 0,
3573
+ hide: 400
3574
+ }
3575
+ }
3576
+ }
3577
+ };
3578
+ function S(e, t) {
3579
+ let o2 = h.themes[e] || {}, i2;
3580
+ do
3581
+ i2 = o2[t], typeof i2 > "u" ? o2.$extend ? o2 = h.themes[o2.$extend] || {} : (o2 = null, i2 = h[t]) : o2 = null;
3582
+ while (o2);
3583
+ return i2;
3584
+ }
3585
+ function Ze(e) {
3586
+ const t = [e];
3587
+ let o2 = h.themes[e] || {};
3588
+ do
3589
+ o2.$extend && !o2.$resetCss ? (t.push(o2.$extend), o2 = h.themes[o2.$extend] || {}) : o2 = null;
3590
+ while (o2);
3591
+ return t.map((i2) => `v-popper--theme-${i2}`);
3592
+ }
3593
+ function re(e) {
3594
+ const t = [e];
3595
+ let o2 = h.themes[e] || {};
3596
+ do
3597
+ o2.$extend ? (t.push(o2.$extend), o2 = h.themes[o2.$extend] || {}) : o2 = null;
3598
+ while (o2);
3599
+ return t;
3600
+ }
3601
+ let $ = false;
3602
+ if (typeof window < "u") {
3603
+ $ = false;
3604
+ try {
3605
+ const e = Object.defineProperty({}, "passive", {
3606
+ get() {
3607
+ $ = true;
3608
+ }
3609
+ });
3610
+ window.addEventListener("test", null, e);
3611
+ } catch {
3612
+ }
3613
+ }
3614
+ let _e = false;
3615
+ typeof window < "u" && typeof navigator < "u" && (_e = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
3616
+ const Te = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
3617
+ t,
3618
+ `${t}-start`,
3619
+ `${t}-end`
3620
+ ]), []), pe = {
3621
+ hover: "mouseenter",
3622
+ focus: "focus",
3623
+ click: "click",
3624
+ touch: "touchstart",
3625
+ pointer: "pointerdown"
3626
+ }, ae = {
3627
+ hover: "mouseleave",
3628
+ focus: "blur",
3629
+ click: "click",
3630
+ touch: "touchend",
3631
+ pointer: "pointerup"
3632
+ };
3633
+ function de(e, t) {
3634
+ const o2 = e.indexOf(t);
3635
+ o2 !== -1 && e.splice(o2, 1);
3636
+ }
3637
+ function G() {
3638
+ return new Promise((e) => requestAnimationFrame(() => {
3639
+ requestAnimationFrame(e);
3640
+ }));
3641
+ }
3642
+ const d = [];
3643
+ let g = null;
3644
+ const le = {};
3645
+ function he(e) {
3646
+ let t = le[e];
3647
+ return t || (t = le[e] = []), t;
3648
+ }
3649
+ let Y = function() {
3650
+ };
3651
+ typeof window < "u" && (Y = window.Element);
3652
+ function n(e) {
3653
+ return function(t) {
3654
+ return S(t.theme, e);
3655
+ };
3656
+ }
3657
+ const q = "__floating-vue__popper", Q = () => vue.defineComponent({
3658
+ name: "VPopper",
3659
+ provide() {
3660
+ return {
3661
+ [q]: {
3662
+ parentPopper: this
3663
+ }
3664
+ };
3665
+ },
3666
+ inject: {
3667
+ [q]: { default: null }
3668
+ },
3669
+ props: {
3670
+ theme: {
3671
+ type: String,
3672
+ required: true
3673
+ },
3674
+ targetNodes: {
3675
+ type: Function,
3676
+ required: true
3677
+ },
3678
+ referenceNode: {
3679
+ type: Function,
3680
+ default: null
3681
+ },
3682
+ popperNode: {
3683
+ type: Function,
3684
+ required: true
3685
+ },
3686
+ shown: {
3687
+ type: Boolean,
3688
+ default: false
3689
+ },
3690
+ showGroup: {
3691
+ type: String,
3692
+ default: null
3693
+ },
3694
+ // eslint-disable-next-line vue/require-prop-types
3695
+ ariaId: {
3696
+ default: null
3697
+ },
3698
+ disabled: {
3699
+ type: Boolean,
3700
+ default: n("disabled")
3701
+ },
3702
+ positioningDisabled: {
3703
+ type: Boolean,
3704
+ default: n("positioningDisabled")
3705
+ },
3706
+ placement: {
3707
+ type: String,
3708
+ default: n("placement"),
3709
+ validator: (e) => Te.includes(e)
3710
+ },
3711
+ delay: {
3712
+ type: [String, Number, Object],
3713
+ default: n("delay")
3714
+ },
3715
+ distance: {
3716
+ type: [Number, String],
3717
+ default: n("distance")
3718
+ },
3719
+ skidding: {
3720
+ type: [Number, String],
3721
+ default: n("skidding")
3722
+ },
3723
+ triggers: {
3724
+ type: Array,
3725
+ default: n("triggers")
3726
+ },
3727
+ showTriggers: {
3728
+ type: [Array, Function],
3729
+ default: n("showTriggers")
3730
+ },
3731
+ hideTriggers: {
3732
+ type: [Array, Function],
3733
+ default: n("hideTriggers")
3734
+ },
3735
+ popperTriggers: {
3736
+ type: Array,
3737
+ default: n("popperTriggers")
3738
+ },
3739
+ popperShowTriggers: {
3740
+ type: [Array, Function],
3741
+ default: n("popperShowTriggers")
3742
+ },
3743
+ popperHideTriggers: {
3744
+ type: [Array, Function],
3745
+ default: n("popperHideTriggers")
3746
+ },
3747
+ container: {
3748
+ type: [String, Object, Y, Boolean],
3749
+ default: n("container")
3750
+ },
3751
+ boundary: {
3752
+ type: [String, Y],
3753
+ default: n("boundary")
3754
+ },
3755
+ strategy: {
3756
+ type: String,
3757
+ validator: (e) => ["absolute", "fixed"].includes(e),
3758
+ default: n("strategy")
3759
+ },
3760
+ autoHide: {
3761
+ type: [Boolean, Function],
3762
+ default: n("autoHide")
3763
+ },
3764
+ handleResize: {
3765
+ type: Boolean,
3766
+ default: n("handleResize")
3767
+ },
3768
+ instantMove: {
3769
+ type: Boolean,
3770
+ default: n("instantMove")
3771
+ },
3772
+ eagerMount: {
3773
+ type: Boolean,
3774
+ default: n("eagerMount")
3775
+ },
3776
+ popperClass: {
3777
+ type: [String, Array, Object],
3778
+ default: n("popperClass")
3779
+ },
3780
+ computeTransformOrigin: {
3781
+ type: Boolean,
3782
+ default: n("computeTransformOrigin")
3783
+ },
3784
+ /**
3785
+ * @deprecated
3786
+ */
3787
+ autoMinSize: {
3788
+ type: Boolean,
3789
+ default: n("autoMinSize")
3790
+ },
3791
+ autoSize: {
3792
+ type: [Boolean, String],
3793
+ default: n("autoSize")
3794
+ },
3795
+ /**
3796
+ * @deprecated
3797
+ */
3798
+ autoMaxSize: {
3799
+ type: Boolean,
3800
+ default: n("autoMaxSize")
3801
+ },
3802
+ autoBoundaryMaxSize: {
3803
+ type: Boolean,
3804
+ default: n("autoBoundaryMaxSize")
3805
+ },
3806
+ preventOverflow: {
3807
+ type: Boolean,
3808
+ default: n("preventOverflow")
3809
+ },
3810
+ overflowPadding: {
3811
+ type: [Number, String],
3812
+ default: n("overflowPadding")
3813
+ },
3814
+ arrowPadding: {
3815
+ type: [Number, String],
3816
+ default: n("arrowPadding")
3817
+ },
3818
+ arrowOverflow: {
3819
+ type: Boolean,
3820
+ default: n("arrowOverflow")
3821
+ },
3822
+ flip: {
3823
+ type: Boolean,
3824
+ default: n("flip")
3825
+ },
3826
+ shift: {
3827
+ type: Boolean,
3828
+ default: n("shift")
3829
+ },
3830
+ shiftCrossAxis: {
3831
+ type: Boolean,
3832
+ default: n("shiftCrossAxis")
3833
+ },
3834
+ noAutoFocus: {
3835
+ type: Boolean,
3836
+ default: n("noAutoFocus")
3837
+ },
3838
+ disposeTimeout: {
3839
+ type: Number,
3840
+ default: n("disposeTimeout")
3841
+ }
3842
+ },
3843
+ emits: {
3844
+ show: () => true,
3845
+ hide: () => true,
3846
+ "update:shown": (e) => true,
3847
+ "apply-show": () => true,
3848
+ "apply-hide": () => true,
3849
+ "close-group": () => true,
3850
+ "close-directive": () => true,
3851
+ "auto-hide": () => true,
3852
+ resize: () => true
3853
+ },
3854
+ data() {
3855
+ return {
3856
+ isShown: false,
3857
+ isMounted: false,
3858
+ skipTransition: false,
3859
+ classes: {
3860
+ showFrom: false,
3861
+ showTo: false,
3862
+ hideFrom: false,
3863
+ hideTo: true
3864
+ },
3865
+ result: {
3866
+ x: 0,
3867
+ y: 0,
3868
+ placement: "",
3869
+ strategy: this.strategy,
3870
+ arrow: {
3871
+ x: 0,
3872
+ y: 0,
3873
+ centerOffset: 0
3874
+ },
3875
+ transformOrigin: null
3876
+ },
3877
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
3878
+ shownChildren: /* @__PURE__ */ new Set(),
3879
+ lastAutoHide: true,
3880
+ pendingHide: false,
3881
+ containsGlobalTarget: false,
3882
+ isDisposed: true,
3883
+ mouseDownContains: false
3884
+ };
3885
+ },
3886
+ computed: {
3887
+ popperId() {
3888
+ return this.ariaId != null ? this.ariaId : this.randomId;
3889
+ },
3890
+ shouldMountContent() {
3891
+ return this.eagerMount || this.isMounted;
3892
+ },
3893
+ slotData() {
3894
+ return {
3895
+ popperId: this.popperId,
3896
+ isShown: this.isShown,
3897
+ shouldMountContent: this.shouldMountContent,
3898
+ skipTransition: this.skipTransition,
3899
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
3900
+ show: this.show,
3901
+ hide: this.hide,
3902
+ handleResize: this.handleResize,
3903
+ onResize: this.onResize,
3904
+ classes: {
3905
+ ...this.classes,
3906
+ popperClass: this.popperClass
3907
+ },
3908
+ result: this.positioningDisabled ? null : this.result,
3909
+ attrs: this.$attrs
3910
+ };
3911
+ },
3912
+ parentPopper() {
3913
+ var e;
3914
+ return (e = this[q]) == null ? void 0 : e.parentPopper;
3915
+ },
3916
+ hasPopperShowTriggerHover() {
3917
+ var e, t;
3918
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
3919
+ }
3920
+ },
3921
+ watch: {
3922
+ shown: "$_autoShowHide",
3923
+ disabled(e) {
3924
+ e ? this.dispose() : this.init();
3925
+ },
3926
+ async container() {
3927
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
3928
+ },
3929
+ triggers: {
3930
+ handler: "$_refreshListeners",
3931
+ deep: true
3932
+ },
3933
+ positioningDisabled: "$_refreshListeners",
3934
+ ...[
3935
+ "placement",
3936
+ "distance",
3937
+ "skidding",
3938
+ "boundary",
3939
+ "strategy",
3940
+ "overflowPadding",
3941
+ "arrowPadding",
3942
+ "preventOverflow",
3943
+ "shift",
3944
+ "shiftCrossAxis",
3945
+ "flip"
3946
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
3947
+ },
3948
+ created() {
3949
+ this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
3950
+ },
3951
+ mounted() {
3952
+ this.init(), this.$_detachPopperNode();
3953
+ },
3954
+ activated() {
3955
+ this.$_autoShowHide();
3956
+ },
3957
+ deactivated() {
3958
+ this.hide();
3959
+ },
3960
+ beforeUnmount() {
3961
+ this.dispose();
3962
+ },
3963
+ methods: {
3964
+ show({ event: e = null, skipDelay: t = false, force: o2 = false } = {}) {
3965
+ var i2, s2;
3966
+ (i2 = this.parentPopper) != null && i2.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = false, (o2 || !this.disabled) && (((s2 = this.parentPopper) == null ? void 0 : s2.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = true, requestAnimationFrame(() => {
3967
+ this.$_showFrameLocked = false;
3968
+ })), this.$emit("update:shown", true));
3969
+ },
3970
+ hide({ event: e = null, skipDelay: t = false } = {}) {
3971
+ var o2;
3972
+ if (!this.$_hideInProgress) {
3973
+ if (this.shownChildren.size > 0) {
3974
+ this.pendingHide = true;
3975
+ return;
3976
+ }
3977
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
3978
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
3979
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
3980
+ }, 1e3));
3981
+ return;
3982
+ }
3983
+ ((o2 = this.parentPopper) == null ? void 0 : o2.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = false, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", false);
3984
+ }
3985
+ },
3986
+ init() {
3987
+ var e;
3988
+ this.isDisposed && (this.isDisposed = false, this.isMounted = false, this.$_events = [], this.$_preventShow = false, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
3989
+ },
3990
+ dispose() {
3991
+ this.isDisposed || (this.isDisposed = true, this.$_removeEventListeners(), this.hide({ skipDelay: true }), this.$_detachPopperNode(), this.isMounted = false, this.isShown = false, this.$_updateParentShownChildren(false), this.$_swapTargetAttrs("data-original-title", "title"));
3992
+ },
3993
+ async onResize() {
3994
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
3995
+ },
3996
+ async $_computePosition() {
3997
+ if (this.isDisposed || this.positioningDisabled)
3998
+ return;
3999
+ const e = {
4000
+ strategy: this.strategy,
4001
+ middleware: []
4002
+ };
4003
+ (this.distance || this.skidding) && e.middleware.push(offset({
4004
+ mainAxis: this.distance,
4005
+ crossAxis: this.skidding
4006
+ }));
4007
+ const t = this.placement.startsWith("auto");
4008
+ if (t ? e.middleware.push(autoPlacement({
4009
+ alignment: this.placement.split("-")[1] ?? ""
4010
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(shift({
4011
+ padding: this.overflowPadding,
4012
+ boundary: this.boundary,
4013
+ crossAxis: this.shiftCrossAxis
4014
+ })), !t && this.flip && e.middleware.push(flip({
4015
+ padding: this.overflowPadding,
4016
+ boundary: this.boundary
4017
+ }))), e.middleware.push(arrow({
4018
+ element: this.$_arrowNode,
4019
+ padding: this.arrowPadding
4020
+ })), this.arrowOverflow && e.middleware.push({
4021
+ name: "arrowOverflow",
4022
+ fn: ({ placement: i2, rects: s2, middlewareData: r2 }) => {
4023
+ let p2;
4024
+ const { centerOffset: a2 } = r2.arrow;
4025
+ return i2.startsWith("top") || i2.startsWith("bottom") ? p2 = Math.abs(a2) > s2.reference.width / 2 : p2 = Math.abs(a2) > s2.reference.height / 2, {
4026
+ data: {
4027
+ overflow: p2
4028
+ }
4029
+ };
4030
+ }
4031
+ }), this.autoMinSize || this.autoSize) {
4032
+ const i2 = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
4033
+ e.middleware.push({
4034
+ name: "autoSize",
4035
+ fn: ({ rects: s2, placement: r2, middlewareData: p2 }) => {
4036
+ var u2;
4037
+ if ((u2 = p2.autoSize) != null && u2.skip)
4038
+ return {};
4039
+ let a2, l2;
4040
+ return r2.startsWith("top") || r2.startsWith("bottom") ? a2 = s2.reference.width : l2 = s2.reference.height, this.$_innerNode.style[i2 === "min" ? "minWidth" : i2 === "max" ? "maxWidth" : "width"] = a2 != null ? `${a2}px` : null, this.$_innerNode.style[i2 === "min" ? "minHeight" : i2 === "max" ? "maxHeight" : "height"] = l2 != null ? `${l2}px` : null, {
4041
+ data: {
4042
+ skip: true
4043
+ },
4044
+ reset: {
4045
+ rects: true
4046
+ }
4047
+ };
4048
+ }
4049
+ });
4050
+ }
4051
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(size({
4052
+ boundary: this.boundary,
4053
+ padding: this.overflowPadding,
4054
+ apply: ({ availableWidth: i2, availableHeight: s2 }) => {
4055
+ this.$_innerNode.style.maxWidth = i2 != null ? `${i2}px` : null, this.$_innerNode.style.maxHeight = s2 != null ? `${s2}px` : null;
4056
+ }
4057
+ })));
4058
+ const o2 = await B$1(this.$_referenceNode, this.$_popperNode, e);
4059
+ Object.assign(this.result, {
4060
+ x: o2.x,
4061
+ y: o2.y,
4062
+ placement: o2.placement,
4063
+ strategy: o2.strategy,
4064
+ arrow: {
4065
+ ...o2.middlewareData.arrow,
4066
+ ...o2.middlewareData.arrowOverflow
4067
+ }
4068
+ });
4069
+ },
4070
+ $_scheduleShow(e, t = false) {
4071
+ if (this.$_updateParentShownChildren(true), this.$_hideInProgress = false, clearTimeout(this.$_scheduleTimer), g && this.instantMove && g.instantMove && g !== this.parentPopper) {
4072
+ g.$_applyHide(true), this.$_applyShow(true);
4073
+ return;
4074
+ }
4075
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
4076
+ },
4077
+ $_scheduleHide(e, t = false) {
4078
+ if (this.shownChildren.size > 0) {
4079
+ this.pendingHide = true;
4080
+ return;
4081
+ }
4082
+ this.$_updateParentShownChildren(false), this.$_hideInProgress = true, clearTimeout(this.$_scheduleTimer), this.isShown && (g = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
4083
+ },
4084
+ $_computeDelay(e) {
4085
+ const t = this.delay;
4086
+ return parseInt(t && t[e] || t || 0);
4087
+ },
4088
+ async $_applyShow(e = false) {
4089
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await G(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
4090
+ ...D(this.$_referenceNode),
4091
+ ...D(this.$_popperNode)
4092
+ ], "scroll", () => {
4093
+ this.$_computePosition();
4094
+ }));
4095
+ },
4096
+ async $_applyShowEffect() {
4097
+ if (this.$_hideInProgress)
4098
+ return;
4099
+ if (this.computeTransformOrigin) {
4100
+ const t = this.$_referenceNode.getBoundingClientRect(), o2 = this.$_popperNode.querySelector(".v-popper__wrapper"), i2 = o2.parentNode.getBoundingClientRect(), s2 = t.x + t.width / 2 - (i2.left + o2.offsetLeft), r2 = t.y + t.height / 2 - (i2.top + o2.offsetTop);
4101
+ this.result.transformOrigin = `${s2}px ${r2}px`;
4102
+ }
4103
+ this.isShown = true, this.$_applyAttrsToTarget({
4104
+ "aria-describedby": this.popperId,
4105
+ "data-popper-shown": ""
4106
+ });
4107
+ const e = this.showGroup;
4108
+ if (e) {
4109
+ let t;
4110
+ for (let o2 = 0; o2 < d.length; o2++)
4111
+ t = d[o2], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
4112
+ }
4113
+ d.push(this), document.body.classList.add("v-popper--some-open");
4114
+ for (const t of re(this.theme))
4115
+ he(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
4116
+ this.$emit("apply-show"), this.classes.showFrom = true, this.classes.showTo = false, this.classes.hideFrom = false, this.classes.hideTo = false, await G(), this.classes.showFrom = false, this.classes.showTo = true, this.noAutoFocus || this.$_popperNode.focus();
4117
+ },
4118
+ async $_applyHide(e = false) {
4119
+ if (this.shownChildren.size > 0) {
4120
+ this.pendingHide = true, this.$_hideInProgress = false;
4121
+ return;
4122
+ }
4123
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
4124
+ return;
4125
+ this.skipTransition = e, de(d, this), d.length === 0 && document.body.classList.remove("v-popper--some-open");
4126
+ for (const o2 of re(this.theme)) {
4127
+ const i2 = he(o2);
4128
+ de(i2, this), i2.length === 0 && document.body.classList.remove(`v-popper--some-open--${o2}`);
4129
+ }
4130
+ g === this && (g = null), this.isShown = false, this.$_applyAttrsToTarget({
4131
+ "aria-describedby": void 0,
4132
+ "data-popper-shown": void 0
4133
+ }), clearTimeout(this.$_disposeTimer);
4134
+ const t = this.disposeTimeout;
4135
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
4136
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = false);
4137
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = false, this.classes.showTo = false, this.classes.hideFrom = true, this.classes.hideTo = false, await G(), this.classes.hideFrom = false, this.classes.hideTo = true;
4138
+ },
4139
+ $_autoShowHide() {
4140
+ this.shown ? this.show() : this.hide();
4141
+ },
4142
+ $_ensureTeleport() {
4143
+ if (this.isDisposed)
4144
+ return;
4145
+ let e = this.container;
4146
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === false && (e = this.$_targetNodes[0].parentNode), !e)
4147
+ throw new Error("No container for popover: " + this.container);
4148
+ e.appendChild(this.$_popperNode), this.isMounted = true;
4149
+ },
4150
+ $_addEventListeners() {
4151
+ const e = (o2) => {
4152
+ this.isShown && !this.$_hideInProgress || (o2.usedByTooltip = true, !this.$_preventShow && this.show({ event: o2 }));
4153
+ };
4154
+ this.$_registerTriggerListeners(this.$_targetNodes, pe, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], pe, this.popperTriggers, this.popperShowTriggers, e);
4155
+ const t = (o2) => {
4156
+ o2.usedByTooltip || this.hide({ event: o2 });
4157
+ };
4158
+ this.$_registerTriggerListeners(this.$_targetNodes, ae, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ae, this.popperTriggers, this.popperHideTriggers, t);
4159
+ },
4160
+ $_registerEventListeners(e, t, o2) {
4161
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o2 }), e.forEach((i2) => i2.addEventListener(t, o2, $ ? {
4162
+ passive: true
4163
+ } : void 0));
4164
+ },
4165
+ $_registerTriggerListeners(e, t, o2, i2, s2) {
4166
+ let r2 = o2;
4167
+ i2 != null && (r2 = typeof i2 == "function" ? i2(r2) : i2), r2.forEach((p2) => {
4168
+ const a2 = t[p2];
4169
+ a2 && this.$_registerEventListeners(e, a2, s2);
4170
+ });
4171
+ },
4172
+ $_removeEventListeners(e) {
4173
+ const t = [];
4174
+ this.$_events.forEach((o2) => {
4175
+ const { targetNodes: i2, eventType: s2, handler: r2 } = o2;
4176
+ !e || e === s2 ? i2.forEach((p2) => p2.removeEventListener(s2, r2)) : t.push(o2);
4177
+ }), this.$_events = t;
4178
+ },
4179
+ $_refreshListeners() {
4180
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
4181
+ },
4182
+ $_handleGlobalClose(e, t = false) {
4183
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = true, setTimeout(() => {
4184
+ this.$_preventShow = false;
4185
+ }, 300)));
4186
+ },
4187
+ $_detachPopperNode() {
4188
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
4189
+ },
4190
+ $_swapTargetAttrs(e, t) {
4191
+ for (const o2 of this.$_targetNodes) {
4192
+ const i2 = o2.getAttribute(e);
4193
+ i2 && (o2.removeAttribute(e), o2.setAttribute(t, i2));
4194
+ }
4195
+ },
4196
+ $_applyAttrsToTarget(e) {
4197
+ for (const t of this.$_targetNodes)
4198
+ for (const o2 in e) {
4199
+ const i2 = e[o2];
4200
+ i2 == null ? t.removeAttribute(o2) : t.setAttribute(o2, i2);
4201
+ }
4202
+ },
4203
+ $_updateParentShownChildren(e) {
4204
+ let t = this.parentPopper;
4205
+ for (; t; )
4206
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
4207
+ },
4208
+ $_isAimingPopper() {
4209
+ const e = this.$_referenceNode.getBoundingClientRect();
4210
+ if (y >= e.left && y <= e.right && _ >= e.top && _ <= e.bottom) {
4211
+ const t = this.$_popperNode.getBoundingClientRect(), o2 = y - c, i2 = _ - m, r2 = t.left + t.width / 2 - c + (t.top + t.height / 2) - m + t.width + t.height, p2 = c + o2 * r2, a2 = m + i2 * r2;
4212
+ return C(c, m, p2, a2, t.left, t.top, t.left, t.bottom) || // Left edge
4213
+ C(c, m, p2, a2, t.left, t.top, t.right, t.top) || // Top edge
4214
+ C(c, m, p2, a2, t.right, t.top, t.right, t.bottom) || // Right edge
4215
+ C(c, m, p2, a2, t.left, t.bottom, t.right, t.bottom);
4216
+ }
4217
+ return false;
4218
+ }
4219
+ },
4220
+ render() {
4221
+ return this.$slots.default(this.slotData);
4222
+ }
4223
+ });
4224
+ if (typeof document < "u" && typeof window < "u") {
4225
+ if (_e) {
4226
+ const e = $ ? {
4227
+ passive: true,
4228
+ capture: true
4229
+ } : true;
4230
+ document.addEventListener("touchstart", (t) => ue(t), e), document.addEventListener("touchend", (t) => fe(t, true), e);
4231
+ } else
4232
+ window.addEventListener("mousedown", (e) => ue(e), true), window.addEventListener("click", (e) => fe(e, false), true);
4233
+ window.addEventListener("resize", tt);
4234
+ }
4235
+ function ue(e, t) {
4236
+ for (let o2 = 0; o2 < d.length; o2++) {
4237
+ const i2 = d[o2];
4238
+ try {
4239
+ i2.mouseDownContains = i2.popperNode().contains(e.target);
4240
+ } catch {
4241
+ }
4242
+ }
4243
+ }
4244
+ function fe(e, t) {
4245
+ Pe(e, t);
4246
+ }
4247
+ function Pe(e, t) {
4248
+ const o2 = {};
4249
+ for (let i2 = d.length - 1; i2 >= 0; i2--) {
4250
+ const s2 = d[i2];
4251
+ try {
4252
+ const r2 = s2.containsGlobalTarget = s2.mouseDownContains || s2.popperNode().contains(e.target);
4253
+ s2.pendingHide = false, requestAnimationFrame(() => {
4254
+ if (s2.pendingHide = false, !o2[s2.randomId] && ce(s2, r2, e)) {
4255
+ if (s2.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r2) {
4256
+ let a2 = s2.parentPopper;
4257
+ for (; a2; )
4258
+ o2[a2.randomId] = true, a2 = a2.parentPopper;
4259
+ return;
4260
+ }
4261
+ let p2 = s2.parentPopper;
4262
+ for (; p2 && ce(p2, p2.containsGlobalTarget, e); ) {
4263
+ p2.$_handleGlobalClose(e, t);
4264
+ p2 = p2.parentPopper;
4265
+ }
4266
+ }
4267
+ });
4268
+ } catch {
4269
+ }
4270
+ }
4271
+ }
4272
+ function ce(e, t, o2) {
4273
+ return o2.closeAllPopover || o2.closePopover && t || et(e, o2) && !t;
4274
+ }
4275
+ function et(e, t) {
4276
+ if (typeof e.autoHide == "function") {
4277
+ const o2 = e.autoHide(t);
4278
+ return e.lastAutoHide = o2, o2;
4279
+ }
4280
+ return e.autoHide;
4281
+ }
4282
+ function tt() {
4283
+ for (let e = 0; e < d.length; e++)
4284
+ d[e].$_computePosition();
4285
+ }
4286
+ let c = 0, m = 0, y = 0, _ = 0;
4287
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
4288
+ c = y, m = _, y = e.clientX, _ = e.clientY;
4289
+ }, $ ? {
4290
+ passive: true
4291
+ } : void 0);
4292
+ function C(e, t, o2, i2, s2, r2, p2, a2) {
4293
+ const l2 = ((p2 - s2) * (t - r2) - (a2 - r2) * (e - s2)) / ((a2 - r2) * (o2 - e) - (p2 - s2) * (i2 - t)), u2 = ((o2 - e) * (t - r2) - (i2 - t) * (e - s2)) / ((a2 - r2) * (o2 - e) - (p2 - s2) * (i2 - t));
4294
+ return l2 >= 0 && l2 <= 1 && u2 >= 0 && u2 <= 1;
4295
+ }
4296
+ const ot = {
4297
+ extends: Q()
4298
+ }, B = (e, t) => {
4299
+ const o2 = e.__vccOpts || e;
4300
+ for (const [i2, s2] of t)
4301
+ o2[i2] = s2;
4302
+ return o2;
4303
+ };
4304
+ function it(e, t, o2, i2, s2, r2) {
4305
+ return vue.openBlock(), vue.createElementBlock("div", {
4306
+ ref: "reference",
4307
+ class: vue.normalizeClass(["v-popper", {
4308
+ "v-popper--shown": e.slotData.isShown
4309
+ }])
4310
+ }, [
4311
+ vue.renderSlot(e.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(e.slotData)))
4312
+ ], 2);
4313
+ }
4314
+ const st = /* @__PURE__ */ B(ot, [["render", it]]);
4315
+ function nt() {
4316
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
4317
+ if (t > 0)
4318
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
4319
+ var o2 = e.indexOf("Trident/");
4320
+ if (o2 > 0) {
4321
+ var i2 = e.indexOf("rv:");
4322
+ return parseInt(e.substring(i2 + 3, e.indexOf(".", i2)), 10);
4323
+ }
4324
+ var s2 = e.indexOf("Edge/");
4325
+ return s2 > 0 ? parseInt(e.substring(s2 + 5, e.indexOf(".", s2)), 10) : -1;
4326
+ }
4327
+ let z;
4328
+ function X() {
4329
+ X.init || (X.init = true, z = nt() !== -1);
4330
+ }
4331
+ var E = {
4332
+ name: "ResizeObserver",
4333
+ props: {
4334
+ emitOnMount: {
4335
+ type: Boolean,
4336
+ default: false
4337
+ },
4338
+ ignoreWidth: {
4339
+ type: Boolean,
4340
+ default: false
4341
+ },
4342
+ ignoreHeight: {
4343
+ type: Boolean,
4344
+ default: false
4345
+ }
4346
+ },
4347
+ emits: [
4348
+ "notify"
4349
+ ],
4350
+ mounted() {
4351
+ X(), vue.nextTick(() => {
4352
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
4353
+ });
4354
+ const e = document.createElement("object");
4355
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", z && this.$el.appendChild(e), e.data = "about:blank", z || this.$el.appendChild(e);
4356
+ },
4357
+ beforeUnmount() {
4358
+ this.removeResizeHandlers();
4359
+ },
4360
+ methods: {
4361
+ compareAndNotify() {
4362
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
4363
+ },
4364
+ emitSize() {
4365
+ this.$emit("notify", {
4366
+ width: this._w,
4367
+ height: this._h
4368
+ });
4369
+ },
4370
+ addResizeHandlers() {
4371
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
4372
+ },
4373
+ removeResizeHandlers() {
4374
+ this._resizeObject && this._resizeObject.onload && (!z && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
4375
+ }
4376
+ }
4377
+ };
4378
+ const rt = /* @__PURE__ */ vue.withScopeId("data-v-b329ee4c");
4379
+ vue.pushScopeId("data-v-b329ee4c");
4380
+ const pt = {
4381
+ class: "resize-observer",
4382
+ tabindex: "-1"
4383
+ };
4384
+ vue.popScopeId();
4385
+ const at = /* @__PURE__ */ rt((e, t, o2, i2, s2, r2) => (vue.openBlock(), vue.createBlock("div", pt)));
4386
+ E.render = at;
4387
+ E.__scopeId = "data-v-b329ee4c";
4388
+ E.__file = "src/components/ResizeObserver.vue";
4389
+ const Z = (e = "theme") => ({
4390
+ computed: {
4391
+ themeClass() {
4392
+ return Ze(this[e]);
4393
+ }
4394
+ }
4395
+ }), dt = vue.defineComponent({
4396
+ name: "VPopperContent",
4397
+ components: {
4398
+ ResizeObserver: E
4399
+ },
4400
+ mixins: [
4401
+ Z()
4402
+ ],
4403
+ props: {
4404
+ popperId: String,
4405
+ theme: String,
4406
+ shown: Boolean,
4407
+ mounted: Boolean,
4408
+ skipTransition: Boolean,
4409
+ autoHide: Boolean,
4410
+ handleResize: Boolean,
4411
+ classes: Object,
4412
+ result: Object
4413
+ },
4414
+ emits: [
4415
+ "hide",
4416
+ "resize"
4417
+ ],
4418
+ methods: {
4419
+ toPx(e) {
4420
+ return e != null && !isNaN(e) ? `${e}px` : null;
4421
+ }
4422
+ }
4423
+ }), lt = ["id", "aria-hidden", "tabindex", "data-popper-placement"], ht = {
4424
+ ref: "inner",
4425
+ class: "v-popper__inner"
4426
+ }, ut = /* @__PURE__ */ vue.createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1), ft = /* @__PURE__ */ vue.createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1), ct = [
4427
+ ut,
4428
+ ft
4429
+ ];
4430
+ function mt(e, t, o2, i2, s2, r2) {
4431
+ const p2 = vue.resolveComponent("ResizeObserver");
4432
+ return vue.openBlock(), vue.createElementBlock("div", {
4433
+ id: e.popperId,
4434
+ ref: "popover",
4435
+ class: vue.normalizeClass(["v-popper__popper", [
4436
+ e.themeClass,
4437
+ e.classes.popperClass,
4438
+ {
4439
+ "v-popper__popper--shown": e.shown,
4440
+ "v-popper__popper--hidden": !e.shown,
4441
+ "v-popper__popper--show-from": e.classes.showFrom,
4442
+ "v-popper__popper--show-to": e.classes.showTo,
4443
+ "v-popper__popper--hide-from": e.classes.hideFrom,
4444
+ "v-popper__popper--hide-to": e.classes.hideTo,
4445
+ "v-popper__popper--skip-transition": e.skipTransition,
4446
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
4447
+ "v-popper__popper--no-positioning": !e.result
4448
+ }
4449
+ ]]),
4450
+ style: vue.normalizeStyle(e.result ? {
4451
+ position: e.result.strategy,
4452
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
4453
+ } : void 0),
4454
+ "aria-hidden": e.shown ? "false" : "true",
4455
+ tabindex: e.autoHide ? 0 : void 0,
4456
+ "data-popper-placement": e.result ? e.result.placement : void 0,
4457
+ onKeyup: t[2] || (t[2] = vue.withKeys((a2) => e.autoHide && e.$emit("hide"), ["esc"]))
4458
+ }, [
4459
+ vue.createElementVNode("div", {
4460
+ class: "v-popper__backdrop",
4461
+ onClick: t[0] || (t[0] = (a2) => e.autoHide && e.$emit("hide"))
4462
+ }),
4463
+ vue.createElementVNode("div", {
4464
+ class: "v-popper__wrapper",
4465
+ style: vue.normalizeStyle(e.result ? {
4466
+ transformOrigin: e.result.transformOrigin
4467
+ } : void 0)
4468
+ }, [
4469
+ vue.createElementVNode("div", ht, [
4470
+ e.mounted ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4471
+ vue.createElementVNode("div", null, [
4472
+ vue.renderSlot(e.$slots, "default")
4473
+ ]),
4474
+ e.handleResize ? (vue.openBlock(), vue.createBlock(p2, {
4475
+ key: 0,
4476
+ onNotify: t[1] || (t[1] = (a2) => e.$emit("resize", a2))
4477
+ })) : vue.createCommentVNode("", true)
4478
+ ], 64)) : vue.createCommentVNode("", true)
4479
+ ], 512),
4480
+ vue.createElementVNode("div", {
4481
+ ref: "arrow",
4482
+ class: "v-popper__arrow-container",
4483
+ style: vue.normalizeStyle(e.result ? {
4484
+ left: e.toPx(e.result.arrow.x),
4485
+ top: e.toPx(e.result.arrow.y)
4486
+ } : void 0)
4487
+ }, ct, 4)
4488
+ ], 4)
4489
+ ], 46, lt);
4490
+ }
4491
+ const ee = /* @__PURE__ */ B(dt, [["render", mt]]), te = {
4492
+ methods: {
4493
+ show(...e) {
4494
+ return this.$refs.popper.show(...e);
4495
+ },
4496
+ hide(...e) {
4497
+ return this.$refs.popper.hide(...e);
4498
+ },
4499
+ dispose(...e) {
4500
+ return this.$refs.popper.dispose(...e);
4501
+ },
4502
+ onResize(...e) {
4503
+ return this.$refs.popper.onResize(...e);
4504
+ }
4505
+ }
4506
+ };
4507
+ let K = function() {
4508
+ };
4509
+ typeof window < "u" && (K = window.Element);
4510
+ const gt = vue.defineComponent({
4511
+ name: "VPopperWrapper",
4512
+ components: {
4513
+ Popper: st,
4514
+ PopperContent: ee
4515
+ },
4516
+ mixins: [
4517
+ te,
4518
+ Z("finalTheme")
4519
+ ],
4520
+ props: {
4521
+ theme: {
4522
+ type: String,
4523
+ default: null
4524
+ },
4525
+ referenceNode: {
4526
+ type: Function,
4527
+ default: null
4528
+ },
4529
+ shown: {
4530
+ type: Boolean,
4531
+ default: false
4532
+ },
4533
+ showGroup: {
4534
+ type: String,
4535
+ default: null
4536
+ },
4537
+ // eslint-disable-next-line vue/require-prop-types
4538
+ ariaId: {
4539
+ default: null
4540
+ },
4541
+ disabled: {
4542
+ type: Boolean,
4543
+ default: void 0
4544
+ },
4545
+ positioningDisabled: {
4546
+ type: Boolean,
4547
+ default: void 0
4548
+ },
4549
+ placement: {
4550
+ type: String,
4551
+ default: void 0
4552
+ },
4553
+ delay: {
4554
+ type: [String, Number, Object],
4555
+ default: void 0
4556
+ },
4557
+ distance: {
4558
+ type: [Number, String],
4559
+ default: void 0
4560
+ },
4561
+ skidding: {
4562
+ type: [Number, String],
4563
+ default: void 0
4564
+ },
4565
+ triggers: {
4566
+ type: Array,
4567
+ default: void 0
4568
+ },
4569
+ showTriggers: {
4570
+ type: [Array, Function],
4571
+ default: void 0
4572
+ },
4573
+ hideTriggers: {
4574
+ type: [Array, Function],
4575
+ default: void 0
4576
+ },
4577
+ popperTriggers: {
4578
+ type: Array,
4579
+ default: void 0
4580
+ },
4581
+ popperShowTriggers: {
4582
+ type: [Array, Function],
4583
+ default: void 0
4584
+ },
4585
+ popperHideTriggers: {
4586
+ type: [Array, Function],
4587
+ default: void 0
4588
+ },
4589
+ container: {
4590
+ type: [String, Object, K, Boolean],
4591
+ default: void 0
4592
+ },
4593
+ boundary: {
4594
+ type: [String, K],
4595
+ default: void 0
4596
+ },
4597
+ strategy: {
4598
+ type: String,
4599
+ default: void 0
4600
+ },
4601
+ autoHide: {
4602
+ type: [Boolean, Function],
4603
+ default: void 0
4604
+ },
4605
+ handleResize: {
4606
+ type: Boolean,
4607
+ default: void 0
4608
+ },
4609
+ instantMove: {
4610
+ type: Boolean,
4611
+ default: void 0
4612
+ },
4613
+ eagerMount: {
4614
+ type: Boolean,
4615
+ default: void 0
4616
+ },
4617
+ popperClass: {
4618
+ type: [String, Array, Object],
4619
+ default: void 0
4620
+ },
4621
+ computeTransformOrigin: {
4622
+ type: Boolean,
4623
+ default: void 0
4624
+ },
4625
+ /**
4626
+ * @deprecated
4627
+ */
4628
+ autoMinSize: {
4629
+ type: Boolean,
4630
+ default: void 0
4631
+ },
4632
+ autoSize: {
4633
+ type: [Boolean, String],
4634
+ default: void 0
4635
+ },
4636
+ /**
4637
+ * @deprecated
4638
+ */
4639
+ autoMaxSize: {
4640
+ type: Boolean,
4641
+ default: void 0
4642
+ },
4643
+ autoBoundaryMaxSize: {
4644
+ type: Boolean,
4645
+ default: void 0
4646
+ },
4647
+ preventOverflow: {
4648
+ type: Boolean,
4649
+ default: void 0
4650
+ },
4651
+ overflowPadding: {
4652
+ type: [Number, String],
4653
+ default: void 0
4654
+ },
4655
+ arrowPadding: {
4656
+ type: [Number, String],
4657
+ default: void 0
4658
+ },
4659
+ arrowOverflow: {
4660
+ type: Boolean,
4661
+ default: void 0
4662
+ },
4663
+ flip: {
4664
+ type: Boolean,
4665
+ default: void 0
4666
+ },
4667
+ shift: {
4668
+ type: Boolean,
4669
+ default: void 0
4670
+ },
4671
+ shiftCrossAxis: {
4672
+ type: Boolean,
4673
+ default: void 0
4674
+ },
4675
+ noAutoFocus: {
4676
+ type: Boolean,
4677
+ default: void 0
4678
+ },
4679
+ disposeTimeout: {
4680
+ type: Number,
4681
+ default: void 0
4682
+ }
4683
+ },
4684
+ emits: {
4685
+ show: () => true,
4686
+ hide: () => true,
4687
+ "update:shown": (e) => true,
4688
+ "apply-show": () => true,
4689
+ "apply-hide": () => true,
4690
+ "close-group": () => true,
4691
+ "close-directive": () => true,
4692
+ "auto-hide": () => true,
4693
+ resize: () => true
4694
+ },
4695
+ computed: {
4696
+ finalTheme() {
4697
+ return this.theme ?? this.$options.vPopperTheme;
4698
+ }
4699
+ },
4700
+ methods: {
4701
+ getTargetNodes() {
4702
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
4703
+ }
4704
+ }
4705
+ });
4706
+ function wt(e, t, o2, i2, s2, r2) {
4707
+ const p2 = vue.resolveComponent("PopperContent"), a2 = vue.resolveComponent("Popper");
4708
+ return vue.openBlock(), vue.createBlock(a2, vue.mergeProps({ ref: "popper" }, e.$props, {
4709
+ theme: e.finalTheme,
4710
+ "target-nodes": e.getTargetNodes,
4711
+ "popper-node": () => e.$refs.popperContent.$el,
4712
+ class: [
4713
+ e.themeClass
4714
+ ],
4715
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
4716
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
4717
+ "onUpdate:shown": t[2] || (t[2] = (l2) => e.$emit("update:shown", l2)),
4718
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
4719
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
4720
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
4721
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
4722
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
4723
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
4724
+ }), {
4725
+ default: vue.withCtx(({
4726
+ popperId: l2,
4727
+ isShown: u2,
4728
+ shouldMountContent: L2,
4729
+ skipTransition: D2,
4730
+ autoHide: I,
4731
+ show: F2,
4732
+ hide: v2,
4733
+ handleResize: R2,
4734
+ onResize: j,
4735
+ classes: V,
4736
+ result: Ee
4737
+ }) => [
4738
+ vue.renderSlot(e.$slots, "default", {
4739
+ shown: u2,
4740
+ show: F2,
4741
+ hide: v2
4742
+ }),
4743
+ vue.createVNode(p2, {
4744
+ ref: "popperContent",
4745
+ "popper-id": l2,
4746
+ theme: e.finalTheme,
4747
+ shown: u2,
4748
+ mounted: L2,
4749
+ "skip-transition": D2,
4750
+ "auto-hide": I,
4751
+ "handle-resize": R2,
4752
+ classes: V,
4753
+ result: Ee,
4754
+ onHide: v2,
4755
+ onResize: j
4756
+ }, {
4757
+ default: vue.withCtx(() => [
4758
+ vue.renderSlot(e.$slots, "popper", {
4759
+ shown: u2,
4760
+ hide: v2
4761
+ })
4762
+ ]),
4763
+ _: 2
4764
+ }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
4765
+ ]),
4766
+ _: 3
4767
+ }, 16, ["theme", "target-nodes", "popper-node", "class"]);
4768
+ }
4769
+ const k = /* @__PURE__ */ B(gt, [["render", wt]]);
4770
+ ({
4771
+ ...k,
4772
+ name: "VDropdown",
4773
+ vPopperTheme: "dropdown"
4774
+ });
4775
+ ({
4776
+ ...k,
4777
+ name: "VMenu",
4778
+ vPopperTheme: "menu"
4779
+ });
4780
+ const Ce = {
4781
+ ...k,
4782
+ name: "VTooltip",
4783
+ vPopperTheme: "tooltip"
4784
+ };
4785
+ vue.defineComponent({
4786
+ name: "VTooltipDirective",
4787
+ components: {
4788
+ Popper: Q(),
4789
+ PopperContent: ee
4790
+ },
4791
+ mixins: [
4792
+ te
4793
+ ],
4794
+ inheritAttrs: false,
4795
+ props: {
4796
+ theme: {
4797
+ type: String,
4798
+ default: "tooltip"
4799
+ },
4800
+ html: {
4801
+ type: Boolean,
4802
+ default: (e) => S(e.theme, "html")
4803
+ },
4804
+ content: {
4805
+ type: [String, Number, Function],
4806
+ default: null
4807
+ },
4808
+ loadingContent: {
4809
+ type: String,
4810
+ default: (e) => S(e.theme, "loadingContent")
4811
+ },
4812
+ targetNodes: {
4813
+ type: Function,
4814
+ required: true
4815
+ }
4816
+ },
4817
+ data() {
4818
+ return {
4819
+ asyncContent: null
4820
+ };
4821
+ },
4822
+ computed: {
4823
+ isContentAsync() {
4824
+ return typeof this.content == "function";
4825
+ },
4826
+ loading() {
4827
+ return this.isContentAsync && this.asyncContent == null;
4828
+ },
4829
+ finalContent() {
4830
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
4831
+ }
4832
+ },
4833
+ watch: {
4834
+ content: {
4835
+ handler() {
4836
+ this.fetchContent(true);
4837
+ },
4838
+ immediate: true
4839
+ },
4840
+ async finalContent() {
4841
+ await this.$nextTick(), this.$refs.popper.onResize();
4842
+ }
4843
+ },
4844
+ created() {
4845
+ this.$_fetchId = 0;
4846
+ },
4847
+ methods: {
4848
+ fetchContent(e) {
4849
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
4850
+ this.asyncContent = null, this.$_loading = true;
4851
+ const t = ++this.$_fetchId, o2 = this.content(this);
4852
+ o2.then ? o2.then((i2) => this.onResult(t, i2)) : this.onResult(t, o2);
4853
+ }
4854
+ },
4855
+ onResult(e, t) {
4856
+ e === this.$_fetchId && (this.$_loading = false, this.asyncContent = t);
4857
+ },
4858
+ onShow() {
4859
+ this.$_isShown = true, this.fetchContent();
4860
+ },
4861
+ onHide() {
4862
+ this.$_isShown = false;
4863
+ }
4864
+ }
4865
+ });
4866
+ const Vt = Ce;
2499
4867
  const _hoisted_1$6 = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" };
2500
4868
  const __default__$3 = {
2501
4869
  name: "columnFilter"
@@ -2891,28 +5259,6 @@ function _sfc_render(_ctx, _cache) {
2891
5259
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$2, _hoisted_3$2);
2892
5260
  }
2893
5261
  const iconFilter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render]]);
2894
- const tooltipDirective = {
2895
- mounted(el, binding) {
2896
- const text = binding.value || "";
2897
- if (!text) return;
2898
- el.setAttribute("data-tooltip", text);
2899
- el.classList.add("has-tooltip");
2900
- },
2901
- updated(el, binding) {
2902
- const text = binding.value || "";
2903
- if (text) {
2904
- el.setAttribute("data-tooltip", text);
2905
- el.classList.add("has-tooltip");
2906
- } else {
2907
- el.removeAttribute("data-tooltip");
2908
- el.classList.remove("has-tooltip");
2909
- }
2910
- },
2911
- unmounted(el) {
2912
- el.removeAttribute("data-tooltip");
2913
- el.classList.remove("has-tooltip");
2914
- }
2915
- };
2916
5262
  const _hoisted_1$1 = { key: "hdrrow" };
2917
5263
  const _hoisted_2$1 = { class: "bh-checkbox" };
2918
5264
  const _hoisted_3$1 = {
@@ -3261,7 +5607,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3261
5607
  if (!condition || condition === "") return "";
3262
5608
  const type = ((_a = col.type) == null ? void 0 : _a.toLowerCase()) || "string";
3263
5609
  const conditions = FILTER_CONDITIONS[type] || FILTER_CONDITIONS.string;
3264
- const found = conditions.find((c) => c.value === condition);
5610
+ const found = conditions.find((c2) => c2.value === condition);
3265
5611
  if (found) {
3266
5612
  if (props.columnFilterLang && props.columnFilterLang[condition]) {
3267
5613
  return props.columnFilterLang[condition];
@@ -3319,17 +5665,26 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3319
5665
  ])
3320
5666
  ]),
3321
5667
  props.all.columnFilter && !props.isFooter && clearButtonLocation.value === "checkbox" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$1, [
3322
- props.showClearAllButton ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
3323
- key: 0,
3324
- type: "button",
3325
- class: vue.normalizeClass(["bh-clear-all-button", {
3326
- "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
3327
- }]),
3328
- disabled: !hasAnyActiveFilterLocal.value,
3329
- onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
3330
- }, _hoisted_6$1, 10, _hoisted_4$1)), [
3331
- [vue.unref(tooltipDirective), "Clear all filters"]
3332
- ]) : vue.createCommentVNode("", true)
5668
+ vue.createVNode(vue.unref(Vt), {
5669
+ placement: "top",
5670
+ distance: 6
5671
+ }, {
5672
+ popper: vue.withCtx(() => [
5673
+ vue.createTextVNode("Clear all filters")
5674
+ ]),
5675
+ default: vue.withCtx(() => [
5676
+ props.showClearAllButton ? (vue.openBlock(), vue.createElementBlock("button", {
5677
+ key: 0,
5678
+ type: "button",
5679
+ class: vue.normalizeClass(["bh-clear-all-button", {
5680
+ "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
5681
+ }]),
5682
+ disabled: !hasAnyActiveFilterLocal.value,
5683
+ onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
5684
+ }, _hoisted_6$1, 10, _hoisted_4$1)) : vue.createCommentVNode("", true)
5685
+ ]),
5686
+ _: 1
5687
+ })
3333
5688
  ])) : vue.createCommentVNode("", true)
3334
5689
  ], 6)) : vue.createCommentVNode("", true),
3335
5690
  props.all.hasRightPanel ? (vue.openBlock(), vue.createElementBlock("th", {
@@ -3345,17 +5700,26 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3345
5700
  })
3346
5701
  }, [
3347
5702
  props.all.columnFilter && !props.isFooter && clearButtonLocation.value === "rightpanel" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$1, [
3348
- props.showClearAllButton ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
3349
- key: 0,
3350
- type: "button",
3351
- class: vue.normalizeClass(["bh-clear-all-button", {
3352
- "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
3353
- }]),
3354
- disabled: !hasAnyActiveFilterLocal.value,
3355
- onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
3356
- }, _hoisted_10$1, 10, _hoisted_8$1)), [
3357
- [vue.unref(tooltipDirective), "Clear all filters"]
3358
- ]) : vue.createCommentVNode("", true)
5703
+ vue.createVNode(vue.unref(Vt), {
5704
+ placement: "top",
5705
+ distance: 6
5706
+ }, {
5707
+ popper: vue.withCtx(() => [
5708
+ vue.createTextVNode("Clear all filters")
5709
+ ]),
5710
+ default: vue.withCtx(() => [
5711
+ props.showClearAllButton ? (vue.openBlock(), vue.createElementBlock("button", {
5712
+ key: 0,
5713
+ type: "button",
5714
+ class: vue.normalizeClass(["bh-clear-all-button", {
5715
+ "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
5716
+ }]),
5717
+ disabled: !hasAnyActiveFilterLocal.value,
5718
+ onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
5719
+ }, _hoisted_10$1, 10, _hoisted_8$1)) : vue.createCommentVNode("", true)
5720
+ ]),
5721
+ _: 1
5722
+ })
3359
5723
  ])) : vue.createCommentVNode("", true)
3360
5724
  ], 6)) : vue.createCommentVNode("", true),
3361
5725
  props.all.hasSubtable ? (vue.openBlock(), vue.createElementBlock("th", {
@@ -3371,17 +5735,26 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3371
5735
  expandall: props.all.expandall
3372
5736
  }, null, 8, ["expandedrows", "expandall"])) : vue.createCommentVNode("", true),
3373
5737
  props.all.columnFilter && !props.isFooter && clearButtonLocation.value === "subtable" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1, [
3374
- props.showClearAllButton ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
3375
- key: 0,
3376
- type: "button",
3377
- class: vue.normalizeClass(["bh-clear-all-button", {
3378
- "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
3379
- }]),
3380
- disabled: !hasAnyActiveFilterLocal.value,
3381
- onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
3382
- }, _hoisted_14$1, 10, _hoisted_12$1)), [
3383
- [vue.unref(tooltipDirective), "Clear all filters"]
3384
- ]) : vue.createCommentVNode("", true)
5738
+ vue.createVNode(vue.unref(Vt), {
5739
+ placement: "top",
5740
+ distance: 6
5741
+ }, {
5742
+ popper: vue.withCtx(() => [
5743
+ vue.createTextVNode("Clear all filters")
5744
+ ]),
5745
+ default: vue.withCtx(() => [
5746
+ props.showClearAllButton ? (vue.openBlock(), vue.createElementBlock("button", {
5747
+ key: 0,
5748
+ type: "button",
5749
+ class: vue.normalizeClass(["bh-clear-all-button", {
5750
+ "bh-clear-all-button--active": hasAnyActiveFilterLocal.value
5751
+ }]),
5752
+ disabled: !hasAnyActiveFilterLocal.value,
5753
+ onClick: vue.withModifiers(handleClearAllFilters, ["stop"])
5754
+ }, _hoisted_14$1, 10, _hoisted_12$1)) : vue.createCommentVNode("", true)
5755
+ ]),
5756
+ _: 1
5757
+ })
3385
5758
  ])) : vue.createCommentVNode("", true)
3386
5759
  ], 4)) : vue.createCommentVNode("", true),
3387
5760
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.all.columns, (col, j) => {
@@ -3895,7 +6268,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3895
6268
  { deep: false }
3896
6269
  );
3897
6270
  const uniqueKey = vue.computed(() => {
3898
- const col = props.columns.find((d) => d.isUnique);
6271
+ const col = props.columns.find((d2) => d2.isUnique);
3899
6272
  return (col == null ? void 0 : col.field) || null;
3900
6273
  });
3901
6274
  const hasAnyActiveFilter = vue.ref(false);
@@ -3943,119 +6316,119 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3943
6316
  var _a2, _b2, _c;
3944
6317
  let rows = props.rows || [];
3945
6318
  if (!props.isServerMode) {
3946
- (_a2 = props.columns) == null ? void 0 : _a2.forEach((d) => {
3947
- if (d.filter && (d.value !== void 0 && d.value !== null && d.value !== "" || d.condition === "IsNull" || d.condition == "IsNotNull")) {
3948
- if (d.type === "string") {
3949
- if (d.value && !d.condition) {
3950
- d.condition = "Contains";
6319
+ (_a2 = props.columns) == null ? void 0 : _a2.forEach((d2) => {
6320
+ if (d2.filter && (d2.value !== void 0 && d2.value !== null && d2.value !== "" || d2.condition === "IsNull" || d2.condition == "IsNotNull")) {
6321
+ if (d2.type === "string") {
6322
+ if (d2.value && !d2.condition) {
6323
+ d2.condition = "Contains";
3951
6324
  }
3952
- if (d.condition === "Contains") {
6325
+ if (d2.condition === "Contains") {
3953
6326
  rows = rows.filter((item) => {
3954
6327
  var _a3;
3955
- return (_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase().includes(d.value.toLowerCase());
6328
+ return (_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase().includes(d2.value.toLowerCase());
3956
6329
  });
3957
- } else if (d.condition === "NotContains") {
6330
+ } else if (d2.condition === "NotContains") {
3958
6331
  rows = rows.filter((item) => {
3959
6332
  var _a3;
3960
- return !((_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase().includes(d.value.toLowerCase()));
6333
+ return !((_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase().includes(d2.value.toLowerCase()));
3961
6334
  });
3962
- } else if (d.condition === "Equal") {
6335
+ } else if (d2.condition === "Equal") {
3963
6336
  rows = rows.filter((item) => {
3964
6337
  var _a3;
3965
- return ((_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase()) === d.value.toLowerCase();
6338
+ return ((_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase()) === d2.value.toLowerCase();
3966
6339
  });
3967
- } else if (d.condition === "NotEqual") {
6340
+ } else if (d2.condition === "NotEqual") {
3968
6341
  rows = rows.filter((item) => {
3969
6342
  var _a3;
3970
- return ((_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase()) !== d.value.toLowerCase();
6343
+ return ((_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase()) !== d2.value.toLowerCase();
3971
6344
  });
3972
- } else if (d.condition == "StartsWith") {
6345
+ } else if (d2.condition == "StartsWith") {
3973
6346
  rows = rows.filter((item) => {
3974
6347
  var _a3;
3975
- return ((_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase().indexOf(d.value.toLowerCase())) === 0;
6348
+ return ((_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase().indexOf(d2.value.toLowerCase())) === 0;
3976
6349
  });
3977
- } else if (d.condition == "EndsWith") {
6350
+ } else if (d2.condition == "EndsWith") {
3978
6351
  rows = rows.filter((item) => {
3979
6352
  var _a3;
3980
- return ((_a3 = cellValue(item, d.field)) == null ? void 0 : _a3.toString().toLowerCase().substr(d.value.length * -1)) === d.value.toLowerCase();
6353
+ return ((_a3 = cellValue(item, d2.field)) == null ? void 0 : _a3.toString().toLowerCase().substr(d2.value.length * -1)) === d2.value.toLowerCase();
3981
6354
  });
3982
6355
  }
3983
- } else if (d.type === "number") {
3984
- if (d.value && !d.condition) {
3985
- d.condition = "Equal";
6356
+ } else if (d2.type === "number") {
6357
+ if (d2.value && !d2.condition) {
6358
+ d2.condition = "Equal";
3986
6359
  }
3987
- if (d.condition === "Equal") {
6360
+ if (d2.condition === "Equal") {
3988
6361
  rows = rows.filter((item) => {
3989
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) === parseFloat(d.value);
6362
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) === parseFloat(d2.value);
3990
6363
  });
3991
- } else if (d.condition === "NotEqual") {
6364
+ } else if (d2.condition === "NotEqual") {
3992
6365
  rows = rows.filter((item) => {
3993
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) !== parseFloat(d.value);
6366
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) !== parseFloat(d2.value);
3994
6367
  });
3995
- } else if (d.condition === "GreaterThan") {
6368
+ } else if (d2.condition === "GreaterThan") {
3996
6369
  rows = rows.filter((item) => {
3997
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) > parseFloat(d.value);
6370
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) > parseFloat(d2.value);
3998
6371
  });
3999
- } else if (d.condition === "GreaterThanOrEqual") {
6372
+ } else if (d2.condition === "GreaterThanOrEqual") {
4000
6373
  rows = rows.filter((item) => {
4001
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) >= parseFloat(d.value);
6374
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) >= parseFloat(d2.value);
4002
6375
  });
4003
- } else if (d.condition === "LessThan") {
6376
+ } else if (d2.condition === "LessThan") {
4004
6377
  rows = rows.filter((item) => {
4005
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) < parseFloat(d.value);
6378
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) < parseFloat(d2.value);
4006
6379
  });
4007
- } else if (d.condition === "LessThanOrEqual") {
6380
+ } else if (d2.condition === "LessThanOrEqual") {
4008
6381
  rows = rows.filter((item) => {
4009
- return cellValue(item, d.field) && parseFloat(cellValue(item, d.field)) <= parseFloat(d.value);
6382
+ return cellValue(item, d2.field) && parseFloat(cellValue(item, d2.field)) <= parseFloat(d2.value);
4010
6383
  });
4011
6384
  }
4012
- } else if (d.type === "date") {
4013
- if (d.value && !d.condition) {
4014
- d.condition = "Equal";
6385
+ } else if (d2.type === "date") {
6386
+ if (d2.value && !d2.condition) {
6387
+ d2.condition = "Equal";
4015
6388
  }
4016
- if (d.condition === "Equal") {
6389
+ if (d2.condition === "Equal") {
4017
6390
  rows = rows.filter((item) => {
4018
- return cellValue(item, d.field) && dateFormat(cellValue(item, d.field)) === d.value;
6391
+ return cellValue(item, d2.field) && dateFormat(cellValue(item, d2.field)) === d2.value;
4019
6392
  });
4020
- } else if (d.condition === "NotEqual") {
6393
+ } else if (d2.condition === "NotEqual") {
4021
6394
  rows = rows.filter((item) => {
4022
- return cellValue(item, d.field) && dateFormat(cellValue(item, d.field)) !== d.value;
6395
+ return cellValue(item, d2.field) && dateFormat(cellValue(item, d2.field)) !== d2.value;
4023
6396
  });
4024
- } else if (d.condition === "GreaterThan") {
6397
+ } else if (d2.condition === "GreaterThan") {
4025
6398
  rows = rows.filter((item) => {
4026
- return cellValue(item, d.field) && dateFormat(cellValue(item, d.field)) > d.value;
6399
+ return cellValue(item, d2.field) && dateFormat(cellValue(item, d2.field)) > d2.value;
4027
6400
  });
4028
- } else if (d.condition === "LessThan") {
6401
+ } else if (d2.condition === "LessThan") {
4029
6402
  rows = rows.filter((item) => {
4030
- return cellValue(item, d.field) && dateFormat(cellValue(item, d.field)) < d.value;
6403
+ return cellValue(item, d2.field) && dateFormat(cellValue(item, d2.field)) < d2.value;
4031
6404
  });
4032
6405
  }
4033
- } else if (d.type === "bool") {
6406
+ } else if (d2.type === "bool") {
4034
6407
  rows = rows.filter((item) => {
4035
- return cellValue(item, d.field) === d.value;
6408
+ return cellValue(item, d2.field) === d2.value;
4036
6409
  });
4037
6410
  }
4038
- if (d.condition === "IsNull") {
6411
+ if (d2.condition === "IsNull") {
4039
6412
  rows = rows.filter((item) => {
4040
- return cellValue(item, d.field) == null || cellValue(item, d.field) == "";
6413
+ return cellValue(item, d2.field) == null || cellValue(item, d2.field) == "";
4041
6414
  });
4042
- d.value = "";
4043
- } else if (d.condition === "IsNotNull") {
4044
- d.value = "";
6415
+ d2.value = "";
6416
+ } else if (d2.condition === "IsNotNull") {
6417
+ d2.value = "";
4045
6418
  rows = rows.filter((item) => {
4046
- return cellValue(item, d.field);
6419
+ return cellValue(item, d2.field);
4047
6420
  });
4048
6421
  }
4049
6422
  }
4050
6423
  });
4051
6424
  if (currentSearch.value && (rows == null ? void 0 : rows.length)) {
4052
6425
  let final = [];
4053
- const keys = (props.columns || []).filter((d) => d.search && !d.hide).map((d) => {
4054
- return d.field;
6426
+ const keys = (props.columns || []).filter((d2) => d2.search && !d2.hide).map((d2) => {
6427
+ return d2.field;
4055
6428
  });
4056
6429
  for (var j = 0; j < (rows == null ? void 0 : rows.length); j++) {
4057
- for (var i = 0; i < keys.length; i++) {
4058
- if ((_b2 = cellValue(rows[j], keys[i])) == null ? void 0 : _b2.toString().toLowerCase().includes(currentSearch.value.toLowerCase())) {
6430
+ for (var i2 = 0; i2 < keys.length; i2++) {
6431
+ if ((_b2 = cellValue(rows[j], keys[i2])) == null ? void 0 : _b2.toString().toLowerCase().includes(currentSearch.value.toLowerCase())) {
4059
6432
  final.push(rows[j]);
4060
6433
  break;
4061
6434
  }
@@ -4066,10 +6439,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4066
6439
  const isNumeric = ((_c = props.columns.find((col) => col.field == currentSortColumn.value)) == null ? void 0 : _c.type) === "number";
4067
6440
  const collator = getCollator(isNumeric || false);
4068
6441
  const sortOrder = currentSortDirection.value === "desc" ? -1 : 1;
4069
- rows.sort((a, b) => {
6442
+ rows.sort((a2, b2) => {
4070
6443
  var _a3, _b3;
4071
- const valA = (_a3 = currentSortColumn.value) == null ? void 0 : _a3.split(".").reduce((obj, key) => obj == null ? void 0 : obj[key], a);
4072
- const valB = (_b3 = currentSortColumn.value) == null ? void 0 : _b3.split(".").reduce((obj, key) => obj == null ? void 0 : obj[key], b);
6444
+ const valA = (_a3 = currentSortColumn.value) == null ? void 0 : _a3.split(".").reduce((obj, key) => obj == null ? void 0 : obj[key], a2);
6445
+ const valB = (_b3 = currentSortColumn.value) == null ? void 0 : _b3.split(".").reduce((obj, key) => obj == null ? void 0 : obj[key], b2);
4073
6446
  return collator.compare(valA, valB) * sortOrder;
4074
6447
  });
4075
6448
  }
@@ -4084,7 +6457,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4084
6457
  result = rows;
4085
6458
  } else {
4086
6459
  filterRowCount.value = (rows == null ? void 0 : rows.length) || 0;
4087
- result = rows.slice(offset.value - 1, limit.value);
6460
+ result = rows.slice(offset2.value - 1, limit.value);
4088
6461
  }
4089
6462
  if (props.hasSubtable) {
4090
6463
  result.forEach(function(value, index) {
@@ -4224,7 +6597,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4224
6597
  const totalPages = currentPageSize.value < 1 ? 1 : Math.ceil(filterRowCount.value / currentPageSize.value);
4225
6598
  return Math.max(totalPages || 0, 1);
4226
6599
  });
4227
- const offset = vue.computed(() => {
6600
+ const offset2 = vue.computed(() => {
4228
6601
  return (currentPage.value - 1) * currentPageSize.value + 1;
4229
6602
  });
4230
6603
  const limit = vue.computed(() => {
@@ -4249,7 +6622,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4249
6622
  endPage = maxPage.value;
4250
6623
  }
4251
6624
  const pages = Array.from(Array(endPage + 1 - startPage).keys()).map(
4252
- (i) => startPage + i
6625
+ (i2) => startPage + i2
4253
6626
  );
4254
6627
  return pages;
4255
6628
  });
@@ -4331,7 +6704,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4331
6704
  }
4332
6705
  }
4333
6706
  }
4334
- let offset2 = (currentPage.value - 1) * currentPageSize.value;
6707
+ let offset22 = (currentPage.value - 1) * currentPageSize.value;
4335
6708
  let limit2 = currentPageSize.value;
4336
6709
  currentSortColumn.value = field;
4337
6710
  currentSortDirection.value = direction;
@@ -4340,14 +6713,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4340
6713
  if (props.isServerMode) {
4341
6714
  changeForServer("sort");
4342
6715
  } else {
4343
- emit("sortChange", { offset: offset2, limit: limit2, field, direction });
6716
+ emit("sortChange", { offset: offset22, limit: limit2, field, direction });
4344
6717
  }
4345
6718
  };
4346
6719
  const checkboxChange = (value) => {
4347
6720
  selectedAll.value = value.length && filterItems.value.length && value.length === filterItems.value.length;
4348
- const rows = filterItems.value.filter((d, i) => {
6721
+ const rows = filterItems.value.filter((d2, i2) => {
4349
6722
  var _a2;
4350
- const key = uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i)) ?? i : i;
6723
+ const key = uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i2)) ?? i2 : i2;
4351
6724
  return selected.value.includes(key);
4352
6725
  });
4353
6726
  emit("rowSelect", rows);
@@ -4356,9 +6729,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4356
6729
  const selectAll = (checked) => {
4357
6730
  if (checked) {
4358
6731
  selected.value = filterItems.value.map(
4359
- (d, i) => {
6732
+ (d2, i2) => {
4360
6733
  var _a2;
4361
- return uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i)) ?? i : i;
6734
+ return uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i2)) ?? i2 : i2;
4362
6735
  }
4363
6736
  );
4364
6737
  } else {
@@ -4409,10 +6782,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4409
6782
  if (!date) {
4410
6783
  return "";
4411
6784
  }
4412
- const dt = new Date(date);
4413
- const day = dt.getDate();
4414
- const month = dt.getMonth() + 1;
4415
- const year = dt.getFullYear();
6785
+ const dt2 = new Date(date);
6786
+ const day = dt2.getDate();
6787
+ const month = dt2.getMonth() + 1;
6788
+ const year = dt2.getFullYear();
4416
6789
  return year + "-" + (month > 9 ? month : "0" + month) + "-" + (day > 9 ? day : "0" + day);
4417
6790
  } catch {
4418
6791
  }
@@ -4442,7 +6815,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4442
6815
  const changeForServer = (changeType, isResetPage = false) => {
4443
6816
  if (props.isServerMode) {
4444
6817
  setDefaultCondition();
4445
- props.columns.filter((c) => c.value || c.condition);
6818
+ props.columns.filter((c2) => c2.value || c2.condition);
4446
6819
  const res = {
4447
6820
  current_page: isResetPage ? 1 : currentPage.value,
4448
6821
  pagesize: currentPageSize.value,
@@ -4457,25 +6830,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4457
6830
  }
4458
6831
  };
4459
6832
  const setDefaultCondition = () => {
4460
- for (let i = 0; i < props.columns.length; i++) {
4461
- let d = props.columns[i];
4462
- if (d.filter && (d.value !== void 0 && d.value !== null && d.value !== "" || d.condition === "IsNull" || d.condition === "IsNotNull")) {
4463
- if (d.type === "string" && d.value && !d.condition) {
4464
- d.condition = "Contains";
6833
+ for (let i2 = 0; i2 < props.columns.length; i2++) {
6834
+ let d2 = props.columns[i2];
6835
+ if (d2.filter && (d2.value !== void 0 && d2.value !== null && d2.value !== "" || d2.condition === "IsNull" || d2.condition === "IsNotNull")) {
6836
+ if (d2.type === "string" && d2.value && !d2.condition) {
6837
+ d2.condition = "Contains";
4465
6838
  }
4466
- if (d.type === "number" && d.value && !d.condition) {
4467
- d.condition = "Equal";
6839
+ if (d2.type === "number" && d2.value && !d2.condition) {
6840
+ d2.condition = "Equal";
4468
6841
  }
4469
- if (d.type === "date" && d.value && !d.condition) {
4470
- d.condition = "Equal";
6842
+ if (d2.type === "date" && d2.value && !d2.condition) {
6843
+ d2.condition = "Equal";
4471
6844
  }
4472
6845
  }
4473
6846
  }
4474
6847
  };
4475
6848
  const reset = () => {
4476
6849
  selectAll(false);
4477
- for (let i = 0; i < props.columns.length; i++) {
4478
- props.columns[i].value = "";
6850
+ for (let i2 = 0; i2 < props.columns.length; i2++) {
6851
+ props.columns[i2].value = "";
4479
6852
  }
4480
6853
  currentSearch.value = "";
4481
6854
  currentPageSize.value = oldPageSize;
@@ -4493,9 +6866,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4493
6866
  }
4494
6867
  };
4495
6868
  const getSelectedRows = () => {
4496
- const rows = filterItems.value.filter((d, i) => {
6869
+ const rows = filterItems.value.filter((d2, i2) => {
4497
6870
  var _a2;
4498
- const key = uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i)) ?? i : i;
6871
+ const key = uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(i2)) ?? i2 : i2;
4499
6872
  return selected.value.includes(key);
4500
6873
  });
4501
6874
  return rows;
@@ -4517,7 +6890,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4517
6890
  var _a2;
4518
6891
  if (isRowSelected(index)) {
4519
6892
  const key = uniqueKey.value ? ((_a2 = rowKeys.value) == null ? void 0 : _a2.get(index)) ?? index : index;
4520
- selected.value = selected.value.filter((d) => d !== key);
6893
+ selected.value = selected.value.filter((d2) => d2 !== key);
4521
6894
  }
4522
6895
  };
4523
6896
  const isRowSelected = (index) => {
@@ -4594,7 +6967,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4594
6967
  });
4595
6968
  return (_ctx, _cache) => {
4596
6969
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
4597
- vue.createVNode(vue.unref(Pe), {
6970
+ vue.createVNode(vue.unref(Pe$1), {
4598
6971
  class: "default-theme",
4599
6972
  style: vue.normalizeStyle({ height: props.height })
4600
6973
  }, {
@@ -4637,7 +7010,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4637
7010
  ])) : vue.createCommentVNode("", true)
4638
7011
  ], 4)) : vue.createCommentVNode("", true),
4639
7012
  vue.createElementVNode("div", _hoisted_7, [
4640
- _ctx.enabletopmenu ? (vue.openBlock(), vue.createBlock(vue.unref(Pe), {
7013
+ _ctx.enabletopmenu ? (vue.openBlock(), vue.createBlock(vue.unref(Pe$1), {
4641
7014
  key: 0,
4642
7015
  class: "default-theme",
4643
7016
  horizontal: "horizontal",
@@ -4723,9 +7096,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4723
7096
  ]), 1032, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang", "hasFilterDatetimeSlot", "showClearAllButton", "hasAnyActiveFilter", "filterUpdateTrigger"])
4724
7097
  ], 2),
4725
7098
  vue.createElementVNode("tbody", null, [
4726
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filterItems.value, (item, i) => {
7099
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filterItems.value, (item, i2) => {
4727
7100
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
4728
- key: getRowKey(i)
7101
+ key: getRowKey(i2)
4729
7102
  }, [
4730
7103
  filterRowCount.value ? (vue.openBlock(), vue.createElementBlock("tr", {
4731
7104
  key: 0,
@@ -4733,7 +7106,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4733
7106
  isRowClassFunction.value ? _ctx.rowClass(item) : props.rowClass,
4734
7107
  props.selectRowOnClick ? "bh-cursor-pointer" : ""
4735
7108
  ]),
4736
- onClick: vue.withModifiers(($event) => rowClick(item, i), ["prevent"])
7109
+ onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
4737
7110
  }, [
4738
7111
  props.hasCheckbox ? (vue.openBlock(), vue.createElementBlock("td", {
4739
7112
  key: 0,
@@ -4749,7 +7122,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4749
7122
  vue.withDirectives(vue.createElementVNode("input", {
4750
7123
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selected.value = $event),
4751
7124
  type: "checkbox",
4752
- value: getRowKey(i),
7125
+ value: getRowKey(i2),
4753
7126
  onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
4754
7127
  }, ["stop"]))
4755
7128
  }, null, 8, _hoisted_13), [
@@ -4787,7 +7160,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4787
7160
  })
4788
7161
  }, [
4789
7162
  vue.createVNode(ButtonExpand, {
4790
- item: { ...item, _rowIndex: i },
7163
+ item: { ...item, _rowIndex: i2 },
4791
7164
  expandedrows: expandedrows.value
4792
7165
  }, null, 8, ["item", "expandedrows"])
4793
7166
  ], 6)) : vue.createCommentVNode("", true),
@@ -4801,7 +7174,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4801
7174
  props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
4802
7175
  col.cellClass ? col.cellClass : ""
4803
7176
  ]),
4804
- onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i, j)
7177
+ onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
4805
7178
  }, [
4806
7179
  vue.unref(slots)[col.field] ? vue.renderSlot(_ctx.$slots, col.field, {
4807
7180
  key: 0,
@@ -4816,29 +7189,29 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4816
7189
  ], 64);
4817
7190
  }), 256))
4818
7191
  ], 10, _hoisted_11)) : vue.createCommentVNode("", true),
4819
- isRowExpanded(item, i) && props.hasSubtable ? (vue.openBlock(), vue.createElementBlock("tr", {
7192
+ isRowExpanded(item, i2) && props.hasSubtable ? (vue.openBlock(), vue.createElementBlock("tr", {
4820
7193
  key: 1,
4821
7194
  class: vue.normalizeClass([
4822
7195
  isRowClassFunction.value ? _ctx.rowClass(item) : props.rowClass,
4823
7196
  props.selectRowOnClick ? "bh-cursor-pointer" : ""
4824
7197
  ]),
4825
- onClick: vue.withModifiers(($event) => rowClick(item, i), ["prevent"])
7198
+ onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
4826
7199
  }, [
4827
7200
  vue.createElementVNode("td", {
4828
7201
  colspan: props.columns.length + vue.unref(extracolumnlength)
4829
7202
  }, [
4830
7203
  vue.renderSlot(_ctx.$slots, "tsub", {
4831
7204
  rowData: item,
4832
- rowIndex: i,
7205
+ rowIndex: i2,
4833
7206
  filterItems: filterItems.value
4834
7207
  })
4835
7208
  ], 8, _hoisted_17)
4836
7209
  ], 10, _hoisted_16)) : vue.createCommentVNode("", true)
4837
7210
  ], 64);
4838
7211
  }), 128)),
4839
- !filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.pageSize, (i) => {
7212
+ !filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.pageSize, (i2) => {
4840
7213
  return vue.openBlock(), vue.createElementBlock("tr", {
4841
- key: i,
7214
+ key: i2,
4842
7215
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
4843
7216
  }, [
4844
7217
  vue.createElementVNode("td", {
@@ -4847,9 +7220,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4847
7220
  }, _hoisted_20, 8, _hoisted_18)
4848
7221
  ]);
4849
7222
  }), 128)) : vue.createCommentVNode("", true),
4850
- filterRowCount.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(props.footerRows, (item, i) => {
7223
+ filterRowCount.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(props.footerRows, (item, i2) => {
4851
7224
  return vue.openBlock(), vue.createElementBlock("tr", {
4852
- key: item[uniqueKey.value] ? item[uniqueKey.value] : i,
7225
+ key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
4853
7226
  class: "sticky-table-footer"
4854
7227
  }, [
4855
7228
  vue.unref(extracolumnlength) > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
@@ -4867,8 +7240,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4867
7240
  col.cellClass ? col.cellClass : ""
4868
7241
  ])
4869
7242
  }, [
4870
- item.cells.find((x) => x.field == col.field) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4871
- vue.createTextVNode(vue.toDisplayString(item.cells.find((x) => x.field == col.field).text), 1)
7243
+ item.cells.find((x2) => x2.field == col.field) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7244
+ vue.createTextVNode(vue.toDisplayString(item.cells.find((x2) => x2.field == col.field).text), 1)
4872
7245
  ], 64)) : vue.createCommentVNode("", true)
4873
7246
  ], 2)) : vue.createCommentVNode("", true)
4874
7247
  ], 64);
@@ -4997,9 +7370,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4997
7370
  ]), 1032, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang", "hasFilterDatetimeSlot", "showClearAllButton", "hasAnyActiveFilter", "filterUpdateTrigger"])
4998
7371
  ], 2),
4999
7372
  vue.createElementVNode("tbody", null, [
5000
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filterItems.value, (item, i) => {
7373
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filterItems.value, (item, i2) => {
5001
7374
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
5002
- key: getRowKey(i)
7375
+ key: getRowKey(i2)
5003
7376
  }, [
5004
7377
  filterRowCount.value ? (vue.openBlock(), vue.createElementBlock("tr", {
5005
7378
  key: 0,
@@ -5007,7 +7380,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5007
7380
  isRowClassFunction.value ? _ctx.rowClass(item) : props.rowClass,
5008
7381
  props.selectRowOnClick ? "bh-cursor-pointer" : ""
5009
7382
  ]),
5010
- onClick: vue.withModifiers(($event) => rowClick(item, i), ["prevent"])
7383
+ onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
5011
7384
  }, [
5012
7385
  props.hasCheckbox ? (vue.openBlock(), vue.createElementBlock("td", {
5013
7386
  key: 0,
@@ -5023,7 +7396,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5023
7396
  vue.withDirectives(vue.createElementVNode("input", {
5024
7397
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => selected.value = $event),
5025
7398
  type: "checkbox",
5026
- value: getRowKey(i),
7399
+ value: getRowKey(i2),
5027
7400
  onClick: _cache[4] || (_cache[4] = vue.withModifiers(() => {
5028
7401
  }, ["stop"]))
5029
7402
  }, null, 8, _hoisted_25), [
@@ -5061,7 +7434,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5061
7434
  })
5062
7435
  }, [
5063
7436
  vue.createVNode(ButtonExpand, {
5064
- item: { ...item, _rowIndex: i },
7437
+ item: { ...item, _rowIndex: i2 },
5065
7438
  expandedrows: expandedrows.value
5066
7439
  }, null, 8, ["item", "expandedrows"])
5067
7440
  ], 6)) : vue.createCommentVNode("", true),
@@ -5075,7 +7448,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5075
7448
  props.hasCheckbox && j === 0 && props.stickyFirstColumn ? "bh-left-[52px]" : "",
5076
7449
  col.cellClass ? col.cellClass : ""
5077
7450
  ]),
5078
- onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i, j)
7451
+ onContextmenu: ($event) => handleCellContextMenu($event, item, col, cellValue(item, col.field), i2, j)
5079
7452
  }, [
5080
7453
  vue.unref(slots)[col.field] ? vue.renderSlot(_ctx.$slots, col.field, {
5081
7454
  key: 0,
@@ -5090,13 +7463,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5090
7463
  ], 64);
5091
7464
  }), 256))
5092
7465
  ], 10, _hoisted_23)) : vue.createCommentVNode("", true),
5093
- isRowExpanded(item, i) && props.hasSubtable ? (vue.openBlock(), vue.createElementBlock("tr", {
7466
+ isRowExpanded(item, i2) && props.hasSubtable ? (vue.openBlock(), vue.createElementBlock("tr", {
5094
7467
  key: 1,
5095
7468
  class: vue.normalizeClass([
5096
7469
  isRowClassFunction.value ? _ctx.rowClass(item) : props.rowClass,
5097
7470
  props.selectRowOnClick ? "bh-cursor-pointer" : ""
5098
7471
  ]),
5099
- onClick: vue.withModifiers(($event) => rowClick(item, i), ["prevent"])
7472
+ onClick: vue.withModifiers(($event) => rowClick(item, i2), ["prevent"])
5100
7473
  }, [
5101
7474
  vue.createElementVNode("td", {
5102
7475
  colspan: props.columns.length + vue.unref(extracolumnlength)
@@ -5113,7 +7486,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5113
7486
  }, [
5114
7487
  vue.renderSlot(_ctx.$slots, "tsub", {
5115
7488
  rowData: item,
5116
- rowIndex: i,
7489
+ rowIndex: i2,
5117
7490
  filterItems: filterItems.value
5118
7491
  })
5119
7492
  ], 4)
@@ -5121,9 +7494,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5121
7494
  ], 10, _hoisted_28)) : vue.createCommentVNode("", true)
5122
7495
  ], 64);
5123
7496
  }), 128)),
5124
- !filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.pageSize, (i) => {
7497
+ !filterRowCount.value && currentLoader.value && _ctx.skeletonloader ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.pageSize, (i2) => {
5125
7498
  return vue.openBlock(), vue.createElementBlock("tr", {
5126
- key: i,
7499
+ key: i2,
5127
7500
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
5128
7501
  }, [
5129
7502
  vue.createElementVNode("td", {
@@ -5132,9 +7505,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5132
7505
  }, _hoisted_32, 8, _hoisted_30)
5133
7506
  ]);
5134
7507
  }), 128)) : vue.createCommentVNode("", true),
5135
- filterRowCount.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(props.footerRows, (item, i) => {
7508
+ filterRowCount.value ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(props.footerRows, (item, i2) => {
5136
7509
  return vue.openBlock(), vue.createElementBlock("tr", {
5137
- key: item[uniqueKey.value] ? item[uniqueKey.value] : i,
7510
+ key: item[uniqueKey.value] ? item[uniqueKey.value] : i2,
5138
7511
  class: "sticky-table-footer"
5139
7512
  }, [
5140
7513
  vue.unref(extracolumnlength) > 0 ? (vue.openBlock(), vue.createElementBlock("td", {
@@ -5152,8 +7525,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5152
7525
  col.cellClass ? col.cellClass : ""
5153
7526
  ])
5154
7527
  }, [
5155
- item.cells.find((x) => x.field == col.field) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5156
- vue.createTextVNode(vue.toDisplayString(item.cells.find((x) => x.field == col.field).text), 1)
7528
+ item.cells.find((x2) => x2.field == col.field) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
7529
+ vue.createTextVNode(vue.toDisplayString(item.cells.find((x2) => x2.field == col.field).text), 1)
5157
7530
  ], 64)) : vue.createCommentVNode("", true)
5158
7531
  ], 2)) : vue.createCommentVNode("", true)
5159
7532
  ], 64);
@@ -5233,7 +7606,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5233
7606
  key: 0,
5234
7607
  paginationInfo: _ctx.paginationInfo,
5235
7608
  filterRowCount: filterRowCount.value,
5236
- offset: offset.value,
7609
+ offset: offset2.value,
5237
7610
  limit: limit.value,
5238
7611
  showPageSize: _ctx.showPageSize,
5239
7612
  pageSizeOptions: _ctx.pageSizeOptions,
@@ -5244,7 +7617,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5244
7617
  vue.createElementVNode("div", _hoisted_35, [
5245
7618
  vue.createElementVNode("span", _hoisted_36, vue.toDisplayString(stringFormat(
5246
7619
  props.paginationInfo,
5247
- filterRowCount.value ? offset.value : 0,
7620
+ filterRowCount.value ? offset2.value : 0,
5248
7621
  limit.value,
5249
7622
  filterRowCount.value
5250
7623
  )), 1),