@firstnoodle-ui/bui 0.0.70 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  var bt = Object.defineProperty;
2
2
  var Lt = (n, t, e) => t in n ? bt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var O1 = (n, t, e) => Lt(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { createElementBlock as i, openBlock as o, renderSlot as R, createElementVNode as u, defineComponent as $, toDisplayString as K, ref as L, watch as i1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as D, normalizeStyle as t1, createVNode as w, unref as p, withCtx as Z, resolveDynamicComponent as $1, provide as yt, onMounted as a1, withModifiers as U, Fragment as M, renderList as m1, onBeforeMount as A1, toRef as Ht, onUnmounted as F1, onBeforeUnmount as B1, nextTick as D1, createStaticVNode as u1, Teleport as U1, withDirectives as x1, vShow as X1, Transition as de, useSlots as R1, withKeys as _, createSlots as Ae, vModelText as Vt, reactive as Re, createTextVNode as Ee, resolveComponent as kt, getCurrentInstance as Oe } from "vue";
4
+ import { createElementBlock as i, openBlock as o, renderSlot as A, createElementVNode as u, defineComponent as $, toDisplayString as K, ref as b, watch as i1, computed as O, createBlock as V, createCommentVNode as k, normalizeClass as D, normalizeStyle as t1, createVNode as w, unref as p, withCtx as Z, resolveDynamicComponent as $1, provide as yt, onMounted as a1, withModifiers as x, Fragment as M, renderList as m1, onBeforeMount as A1, toRef as Ht, onUnmounted as F1, onBeforeUnmount as B1, nextTick as D1, createStaticVNode as u1, Teleport as x1, withDirectives as U1, vShow as X1, Transition as de, useSlots as R1, withKeys as _, createSlots as Ae, vModelText as Vt, reactive as Re, createTextVNode as Ee, resolveComponent as kt, getCurrentInstance as Oe } from "vue";
5
5
  import { useRoute as G1, useRouter as ue, onBeforeRouteUpdate as Ie } from "vue-router";
6
6
  import { size as Pe, autoUpdate as wt, offset as Mt, flip as Zt, shift as He, limitShift as $t, computePosition as Dt } from "@floating-ui/dom";
7
7
  import ne from "debounce";
8
8
  import { Extension as Ne } from "@tiptap/core";
9
9
  import { Plugin as Bt, PluginKey as St } from "prosemirror-state";
10
10
  import Fe from "@tiptap/extension-bold";
11
- import Ue from "@tiptap/extension-bullet-list";
12
- import xe from "@tiptap/extension-document";
11
+ import xe from "@tiptap/extension-bullet-list";
12
+ import Ue from "@tiptap/extension-document";
13
13
  import oe from "@tiptap/extension-heading";
14
14
  import se from "@tiptap/extension-highlight";
15
15
  import ae from "@tiptap/extension-history";
@@ -33,7 +33,7 @@ const M1 = (n, t) => {
33
33
  }, Rt = {}, Et = { class: "fixed top-0 left-0 w-screen h-screen overflow-hidden text-primary" };
34
34
  function Ot(n, t) {
35
35
  return o(), i("main", Et, [
36
- R(n.$slots, "default"),
36
+ A(n.$slots, "default"),
37
37
  t[0] || (t[0] = u("div", {
38
38
  id: "modals",
39
39
  class: "z-10 fixed w-screen h-screen top-0 left-0 pointer-events-none"
@@ -48,7 +48,7 @@ function Ot(n, t) {
48
48
  }, null, -1))
49
49
  ]);
50
50
  }
51
- const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space-y-4" }, Pt = { class: "w-full h-12 flex items-center" }, Nt = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, xo = /* @__PURE__ */ $({
51
+ const xo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space-y-4" }, Pt = { class: "w-full h-12 flex items-center" }, Nt = { class: "flex-none pr-2 text-xs leading-none font-medium text-secondary" }, Uo = /* @__PURE__ */ $({
52
52
  __name: "AsideSectionLabel",
53
53
  props: {
54
54
  label: {}
@@ -66,7 +66,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
66
66
  ])
67
67
  ]));
68
68
  }
69
- }), Ft = { class: "inline-flex flex-col items-center gap-3" }, Ut = ["src"], xt = {
69
+ }), Ft = { class: "inline-flex flex-col items-center gap-3" }, xt = ["src"], Ut = {
70
70
  key: 1,
71
71
  class: "flex flex-col items-center gap-2 text-xs italic text-secondary"
72
72
  }, Yt = {
@@ -82,14 +82,14 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
82
82
  },
83
83
  emits: ["update:modelValue", "change"],
84
84
  setup(n, { emit: t }) {
85
- const e = n, l = t, s = L(), r = L(), a = L(), f = L(), C = L(null), m = L(null), d = L(e.modelValue), h = L(100), b = L(!1), c = L(0), H = L(0), v = L(1), g = L(1), T = L(0), z = L(0), y = L(0), S = L(0);
85
+ const e = n, l = t, s = b(), r = b(), a = b(), f = b(), C = b(null), m = b(null), d = b(e.modelValue), h = b(100), L = b(!1), c = b(0), y = b(0), v = b(1), g = b(1), z = b(0), T = b(0), H = b(0), S = b(0);
86
86
  i1(
87
87
  () => e.modelValue,
88
88
  (F) => {
89
89
  d.value = F;
90
90
  }
91
91
  );
92
- const W = O(() => ({
92
+ const Y = O(() => ({
93
93
  width: `${e.size}px`,
94
94
  height: `${e.size}px`,
95
95
  borderRadius: e.cropShape === "circle" ? "50%" : "8px"
@@ -101,61 +101,61 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
101
101
  if (d.value && m.value) {
102
102
  const F = new Image();
103
103
  F.onload = () => {
104
- C.value = F, T.value = F.width, z.value = F.height, h.value = r1 * 0.5;
105
- const Y = Math.max(h.value / F.width, h.value / F.height);
106
- g.value = Y;
104
+ C.value = F, z.value = F.width, T.value = F.height, h.value = r1 * 0.5;
105
+ const W = Math.max(h.value / F.width, h.value / F.height);
106
+ g.value = W;
107
107
  const o1 = Math.min(r1 / F.width, r1 / F.height);
108
- v.value = Math.max(o1, Y);
109
- const v1 = F.width * v.value, A = F.height * v.value;
110
- y.value = (r1 - v1) / 2, S.value = (r1 - A) / 2;
108
+ v.value = Math.max(o1, W);
109
+ const v1 = F.width * v.value, R = F.height * v.value;
110
+ H.value = (r1 - v1) / 2, S.value = (r1 - R) / 2;
111
111
  }, F.src = m.value;
112
112
  } else
113
113
  Q();
114
114
  }, f1 = (F) => {
115
115
  var v1;
116
- const Y = F.target, o1 = (v1 = Y.files) == null ? void 0 : v1[0];
116
+ const W = F.target, o1 = (v1 = W.files) == null ? void 0 : v1[0];
117
117
  if (o1 && o1.type.startsWith("image/")) {
118
- const A = new FileReader();
119
- A.onload = (x) => {
118
+ const R = new FileReader();
119
+ R.onload = (U) => {
120
120
  var V1;
121
- const q = (V1 = x.target) == null ? void 0 : V1.result;
121
+ const q = (V1 = U.target) == null ? void 0 : V1.result;
122
122
  m.value = q;
123
123
  const d1 = new Image();
124
124
  d1.onload = () => {
125
- C.value = d1, T.value = d1.width, z.value = d1.height, h.value = r1 * 0.7;
125
+ C.value = d1, z.value = d1.width, T.value = d1.height, h.value = r1 * 0.7;
126
126
  const L1 = Math.max(h.value / d1.width, h.value / d1.height);
127
127
  g.value = L1;
128
128
  const k1 = Math.min(r1 / d1.width, r1 / d1.height);
129
129
  v.value = Math.max(k1, L1);
130
130
  const B = d1.width * v.value, J = d1.height * v.value;
131
- y.value = (r1 - B) / 2, S.value = (r1 - J) / 2, setTimeout(() => {
131
+ H.value = (r1 - B) / 2, S.value = (r1 - J) / 2, setTimeout(() => {
132
132
  }, 10);
133
133
  }, d1.src = q;
134
- }, A.readAsDataURL(o1);
134
+ }, R.readAsDataURL(o1);
135
135
  }
136
- Y.value = "";
136
+ W.value = "";
137
137
  }, E = (F) => {
138
- b.value = !0, c.value = F.clientX - y.value, H.value = F.clientY - S.value, window.addEventListener("mousemove", I), window.addEventListener("mouseup", G);
138
+ L.value = !0, c.value = F.clientX - H.value, y.value = F.clientY - S.value, window.addEventListener("mousemove", I), window.addEventListener("mouseup", G);
139
139
  }, I = (F) => {
140
- if (b.value) {
141
- let Y = F.clientX - c.value, o1 = F.clientY - H.value;
142
- const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, q = v1 + h.value / 2, d1 = A - h.value / 2, V1 = A + h.value / 2, L1 = T.value * v.value, k1 = z.value * v.value;
143
- Y = Math.min(Y, x), Y = Math.max(Y, q - L1), o1 = Math.min(o1, d1), o1 = Math.max(o1, V1 - k1), y.value = Y, S.value = o1;
140
+ if (L.value) {
141
+ let W = F.clientX - c.value, o1 = F.clientY - y.value;
142
+ const v1 = r1 / 2, R = r1 / 2, U = v1 - h.value / 2, q = v1 + h.value / 2, d1 = R - h.value / 2, V1 = R + h.value / 2, L1 = z.value * v.value, k1 = T.value * v.value;
143
+ W = Math.min(W, U), W = Math.max(W, q - L1), o1 = Math.min(o1, d1), o1 = Math.max(o1, V1 - k1), H.value = W, S.value = o1;
144
144
  }
145
145
  }, G = () => {
146
- b.value = !1, window.removeEventListener("mousemove", I), window.removeEventListener("mouseup", G);
146
+ L.value = !1, window.removeEventListener("mousemove", I), window.removeEventListener("mouseup", G);
147
147
  }, P = (F) => {
148
- const Y = Math.max(g.value, Math.min(v.value + F, 3));
149
- Y !== v.value && (v.value = Y);
148
+ const W = Math.max(g.value, Math.min(v.value + F, 3));
149
+ W !== v.value && (v.value = W);
150
150
  }, N = () => P(0.1), n1 = () => P(-0.1), S1 = () => {
151
151
  var B;
152
152
  if (!C.value || !r.value) return;
153
- const F = r.value, Y = F.getContext("2d");
154
- if (!Y) return;
153
+ const F = r.value, W = F.getContext("2d");
154
+ if (!W) return;
155
155
  const o1 = 512;
156
156
  F.width = o1, F.height = o1;
157
- const v1 = r1 / 2, A = r1 / 2, x = v1 - h.value / 2, q = A - h.value / 2, d1 = (x - y.value) / v.value, V1 = (q - S.value) / v.value, L1 = h.value / v.value;
158
- Y.fillStyle = "#ffffff", Y.fillRect(0, 0, o1, o1), e.cropShape === "circle" && (Y.save(), Y.beginPath(), Y.arc(o1 / 2, o1 / 2, o1 / 2, 0, Math.PI * 2), Y.closePath(), Y.clip()), Y.drawImage(
157
+ const v1 = r1 / 2, R = r1 / 2, U = v1 - h.value / 2, q = R - h.value / 2, d1 = (U - H.value) / v.value, V1 = (q - S.value) / v.value, L1 = h.value / v.value;
158
+ W.fillStyle = "#ffffff", W.fillRect(0, 0, o1, o1), e.cropShape === "circle" && (W.save(), W.beginPath(), W.arc(o1 / 2, o1 / 2, o1 / 2, 0, Math.PI * 2), W.closePath(), W.clip()), W.drawImage(
159
159
  C.value,
160
160
  d1,
161
161
  V1,
@@ -165,16 +165,16 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
165
165
  0,
166
166
  o1,
167
167
  o1
168
- ), e.cropShape === "circle" && Y.restore();
168
+ ), e.cropShape === "circle" && W.restore();
169
169
  const k1 = F.toDataURL("image/png");
170
170
  d.value = k1, l("update:modelValue", k1), l("change", k1), (B = f.value) == null || B.close();
171
171
  }, g1 = () => {
172
172
  var F;
173
173
  (F = f.value) == null || F.close(), C.value = null;
174
174
  };
175
- return (F, Y) => (o(), i("div", Ft, [
175
+ return (F, W) => (o(), i("div", Ft, [
176
176
  u("div", {
177
- style: t1(W.value),
177
+ style: t1(Y.value),
178
178
  class: D(["relative overflow-hidden bg-tertiary border border-default flex items-center justify-center cursor-pointer group", { "opacity-50 cursor-not-allowed": F.disabled }]),
179
179
  onClick: s1
180
180
  }, [
@@ -183,9 +183,9 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
183
183
  src: d.value,
184
184
  alt: "Avatar",
185
185
  class: "w-full h-full object-cover"
186
- }, null, 8, Ut)) : (o(), i("div", xt, [
186
+ }, null, 8, xt)) : (o(), i("div", Ut, [
187
187
  w(p(l1), { name: "user" }),
188
- Y[0] || (Y[0] = u("span", { class: "text-center" }, "Click to add an avatar", -1))
188
+ W[0] || (W[0] = u("span", { class: "text-center" }, "Click to add an avatar", -1))
189
189
  ])),
190
190
  F.disabled ? k("", !0) : (o(), i("div", Yt, [
191
191
  w(p(l1), {
@@ -202,7 +202,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
202
202
  class: "hidden",
203
203
  onChange: f1
204
204
  }, null, 544),
205
- C.value ? (o(), V(p(on), {
205
+ C.value ? (o(), V(p(o0), {
206
206
  key: 0,
207
207
  ref_key: "cropModalRef",
208
208
  ref: f,
@@ -213,7 +213,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
213
213
  main: Z(() => [
214
214
  u("div", Wt, [
215
215
  u("div", {
216
- class: D(["relative bg-slate-100 dark:bg-slate-800 overflow-hidden select-none transition-all", { "cursor-grabbing": b.value, "cursor-grab": !b.value }]),
216
+ class: D(["relative bg-slate-100 dark:bg-slate-800 overflow-hidden select-none transition-all", { "cursor-grabbing": L.value, "cursor-grab": !L.value }]),
217
217
  style: t1({ width: `${r1}px`, height: `${r1}px` }),
218
218
  onMousedown: E
219
219
  }, [
@@ -221,9 +221,9 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
221
221
  key: 0,
222
222
  class: "absolute border border-yellow-300 pointer-events-none",
223
223
  style: t1({
224
- width: `${T.value * v.value}px`,
225
- height: `${z.value * v.value}px`,
226
- left: `${y.value}px`,
224
+ width: `${z.value * v.value}px`,
225
+ height: `${T.value * v.value}px`,
226
+ left: `${H.value}px`,
227
227
  top: `${S.value}px`
228
228
  })
229
229
  }, [
@@ -240,7 +240,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
240
240
  (o(), i("svg", Qt, [
241
241
  u("defs", null, [
242
242
  u("mask", qt, [
243
- Y[1] || (Y[1] = u("rect", {
243
+ W[1] || (W[1] = u("rect", {
244
244
  width: "100%",
245
245
  height: "100%",
246
246
  fill: "white"
@@ -262,7 +262,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
262
262
  }, null, 8, Gt))
263
263
  ])
264
264
  ]),
265
- Y[2] || (Y[2] = u("rect", {
265
+ W[2] || (W[2] = u("rect", {
266
266
  width: "100%",
267
267
  height: "100%",
268
268
  fill: "black",
@@ -280,7 +280,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
280
280
  })
281
281
  }, null, 6)
282
282
  ]),
283
- Y[3] || (Y[3] = u("div", { class: "absolute top-4 left-0 w-full flex justify-center" }, [
283
+ W[3] || (W[3] = u("div", { class: "absolute top-4 left-0 w-full flex justify-center" }, [
284
284
  u("div", { class: "flex items-center h-8 px-3 rounded-full bg-primary text-sm text-primary" }, " Drag to reposition ")
285
285
  ], -1)),
286
286
  u("div", Jt, [
@@ -353,7 +353,7 @@ const Uo = /* @__PURE__ */ M1(Rt, [["render", Ot]]), It = { class: "w-full space
353
353
  }), l5 = {}, n5 = { class: "flex items-center gap-1 overflow-hidden" };
354
354
  function o5(n, t) {
355
355
  return o(), i("div", n5, [
356
- R(n.$slots, "default")
356
+ A(n.$slots, "default")
357
357
  ]);
358
358
  }
359
359
  const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-orange-500 rounded-full border border-white dark:border-[var(--color-bg-primary)]" }, _e = /* @__PURE__ */ $({
@@ -407,9 +407,9 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
407
407
  },
408
408
  emits: ["click", "blur"],
409
409
  setup(n, { expose: t, emit: e }) {
410
- const l = n, s = e, r = L(l.routerLinkTo ? "router-link" : "button"), a = L(), f = L(), C = O(() => {
410
+ const l = n, s = e, r = b(l.routerLinkTo ? "router-link" : "button"), a = b(), f = b(), C = O(() => {
411
411
  const c = ["flex-none size-4"];
412
- return l.variant === "fill" || l.variant === "destructive" ? c.push("text-light") : l.variant === "outline" || l.variant === "text" ? c.push("text-blue-500") : (l.variant === "outlineSubtle" || l.variant === "textSubtle") && c.push("text-slate-700 dark:text-slate-200"), c.join(" ");
412
+ return l.variant === "fill" || l.variant === "destructive" ? c.push("text-light") : l.variant === "outline" || l.variant === "text" ? c.push("text-blue-500") : l.variant === "outlineSubtle" || l.variant === "textSubtle" ? c.push("text-slate-700 dark:text-slate-200") : l.variant === "outlineDestructive" && c.push("text-red-500"), c.join(" ");
413
413
  }), m = O(() => {
414
414
  const c = [
415
415
  "z-0 relative overflow-hidden min-w-0 inline-flex items-center gap-1 border",
@@ -482,13 +482,25 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
482
482
  ]
483
483
  );
484
484
  break;
485
+ case "outlineDestructive":
486
+ c.push(
487
+ ...l.focus ? ["bg-red-200 border-red-700 text-red-700 dark:bg-red-900 dark:border-red-600 dark:text-red-100"] : [
488
+ "hover:bg-red-100 focus-visible:bg-red-100 active:bg-red-200",
489
+ "border border-red-500 hover:border-red-600 focus-visible:border-red-600 active:border-red-700",
490
+ "text-red-500 hover:text-red-600 focus-visible:text-red-600 active:text-red-700",
491
+ "dark:hover:bg-red-900/50 dark:focus-visible:bg-red-900/50 dark:active:bg-red-900",
492
+ "dark:border-red-500 dark:hover:border-red-400 dark:focus-visible:border-red-400 dark:active:border-red-300",
493
+ "dark:text-red-500 dark:hover:text-red-400 focus-visible:text-red-400 dark:active:text-red-300"
494
+ ]
495
+ );
496
+ break;
485
497
  }
486
- return l.classes && c.push(l.classes), c.filter((H) => H).join(" ");
498
+ return l.classes && c.push(l.classes), c.filter((y) => y).join(" ");
487
499
  }), d = O(() => l.disabled ? l.variant === "fill" || l.variant === "destructive" ? { filter: "grayscale(50%)" } : { opacity: "0.5" } : {}), h = (c) => {
488
- var H;
489
- l.stopPropagation && c.stopPropagation(), !l.disabled && !l.loading && (l.href && window.open(l.href, "_blank"), l.mailto && window.open(`mailto:${l.mailto}`), l.tooltip && ((H = f.value) == null || H.hide()), s("click"));
500
+ var y;
501
+ l.stopPropagation && c.stopPropagation(), !l.disabled && !l.loading && (l.href && window.open(l.href, "_blank"), l.mailto && window.open(`mailto:${l.mailto}`), l.tooltip && ((y = f.value) == null || y.hide()), s("click"));
490
502
  };
491
- return t({ focus: () => a.value.focus() }), (c, H) => c.tooltip ? (o(), V(p(ee), {
503
+ return t({ focus: () => a.value.focus() }), (c, y) => c.tooltip ? (o(), V(p(ee), {
492
504
  key: 0,
493
505
  ref_key: "tooltipRef",
494
506
  ref: f,
@@ -506,7 +518,7 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
506
518
  disabled: c.disabled || c.loading,
507
519
  style: t1(d.value),
508
520
  onClick: h,
509
- onBlur: H[0] || (H[0] = (v) => s("blur"))
521
+ onBlur: y[0] || (y[0] = (v) => s("blur"))
510
522
  }, {
511
523
  default: Z(() => [
512
524
  w(p(ke), null, {
@@ -549,7 +561,7 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
549
561
  disabled: c.disabled || c.loading,
550
562
  style: t1(d.value),
551
563
  onClick: h,
552
- onBlur: H[1] || (H[1] = (v) => s("blur"))
564
+ onBlur: y[1] || (y[1] = (v) => s("blur"))
553
565
  }, {
554
566
  default: Z(() => [
555
567
  w(p(ke), null, {
@@ -587,7 +599,7 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
587
599
  fullwidth: { type: Boolean, default: !1 }
588
600
  },
589
601
  setup(n) {
590
- const t = n, e = L(""), l = L();
602
+ const t = n, e = b(""), l = b();
591
603
  yt("childOfButtonGroup", !0);
592
604
  const s = () => {
593
605
  const r = [];
@@ -600,9 +612,9 @@ const ke = /* @__PURE__ */ M1(l5, [["render", o5]]), s5 = { class: "w-3 h-3 bg-o
600
612
  ref_key: "buttonGroupRef",
601
613
  ref: l,
602
614
  class: D(e.value),
603
- onClick: U(s, ["stop", "prevent"])
615
+ onClick: x(s, ["stop", "prevent"])
604
616
  }, [
605
- R(r.$slots, "default")
617
+ A(r.$slots, "default")
606
618
  ], 2));
607
619
  }
608
620
  }), j1 = (n, t) => (n % t + t) % t, a5 = (n, t) => {
@@ -663,7 +675,7 @@ const Me = {
663
675
  key: f.label,
664
676
  variant: f.selected ? "fill" : f.current ? "text" : "textSubtle",
665
677
  label: f.label.toString(),
666
- onMouseup: U((C) => l(
678
+ onMouseup: x((C) => l(
667
679
  "select",
668
680
  {
669
681
  value: f.label,
@@ -696,7 +708,7 @@ const p5 = /* @__PURE__ */ $({
696
708
  "text-xs text-primary": l.date.current && !l.date.selected,
697
709
  "text-xs font-bold text-white": l.date.current && l.date.selected
698
710
  }]),
699
- onClick: s[0] || (s[0] = U((r) => e("click", l.date), ["stop"]))
711
+ onClick: s[0] || (s[0] = x((r) => e("click", l.date), ["stop"]))
700
712
  }, K(l.date.label), 3));
701
713
  }
702
714
  }), f5 = { class: "w-56 grid grid-cols-7" }, c5 = { class: "col-span-3 h-8 flex items-center justify-center" }, C5 = { class: "w-56 grid grid-cols-7 bg-bg-medium rounded my-2" }, v5 = { class: "w-56 grid grid-cols-7" }, h5 = /* @__PURE__ */ $({
@@ -988,12 +1000,12 @@ class Z5 {
988
1000
  }
989
1001
  var h1 = ((n) => (n[n.DATE = X.DAY] = "DATE", n[n.WEEK = X.WEEK] = "WEEK", n[n.MONTH = X.MONTH] = "MONTH", n[n.YEAR = X.YEAR] = "YEAR", n[n.DECADE = X.DECADE] = "DECADE", n))(h1 || {});
990
1002
  const $5 = (n = null, t) => {
991
- const e = new Z5(t, n), l = L([]), s = L(h1.MONTH), r = L(""), a = L(0), f = (H) => {
992
- if (!Object.keys(h1).includes(H)) {
993
- console.warn(`[changeView] wrong view type: ${H}`);
1003
+ const e = new Z5(t, n), l = b([]), s = b(h1.MONTH), r = b(""), a = b(0), f = (y) => {
1004
+ if (!Object.keys(h1).includes(y)) {
1005
+ console.warn(`[changeView] wrong view type: ${y}`);
994
1006
  return;
995
1007
  }
996
- switch (s.value = H, H) {
1008
+ switch (s.value = y, y) {
997
1009
  case h1.DATE:
998
1010
  break;
999
1011
  case h1.WEEK:
@@ -1011,50 +1023,50 @@ const $5 = (n = null, t) => {
1011
1023
  }
1012
1024
  }, C = () => {
1013
1025
  f(s.value), r.value = e.getDateCursorMonthName(), a.value = e.dateCursor.getUTCFullYear();
1014
- }, m = (H) => {
1015
- e.setSelectedDate(H), C();
1026
+ }, m = (y) => {
1027
+ e.setSelectedDate(y), C();
1016
1028
  };
1017
1029
  A1(() => {
1018
1030
  m(n), f(s.value);
1019
1031
  });
1020
- const d = (H, v = !1) => {
1021
- e.moveSelectedDate(H), !v && s.value !== h1.MONTH ? f(h1.DATE) : C();
1022
- }, h = ({ amount: H, unit: v }) => {
1032
+ const d = (y, v = !1) => {
1033
+ e.moveSelectedDate(y), !v && s.value !== h1.MONTH ? f(h1.DATE) : C();
1034
+ }, h = ({ amount: y, unit: v }) => {
1023
1035
  switch (v) {
1024
1036
  case X.DAY:
1025
- e.addDaysToDateCursor(H);
1037
+ e.addDaysToDateCursor(y);
1026
1038
  break;
1027
1039
  case X.WEEK:
1028
- e.addWeeksToDateCursor(H);
1040
+ e.addWeeksToDateCursor(y);
1029
1041
  break;
1030
1042
  case X.MONTH:
1031
- e.addMonthsToDateCursor(H);
1043
+ e.addMonthsToDateCursor(y);
1032
1044
  break;
1033
1045
  case X.YEAR:
1034
- e.addYearsToDateCursor(H);
1046
+ e.addYearsToDateCursor(y);
1035
1047
  break;
1036
1048
  default:
1037
1049
  throw new Error(`[moveViewDate] unknown unit: ${v}`);
1038
1050
  }
1039
1051
  C();
1040
- }, b = (H, v) => {
1052
+ }, L = (y, v) => {
1041
1053
  switch (v) {
1042
1054
  case X.DAY:
1043
- e.setDateCursorDate(H);
1055
+ e.setDateCursorDate(y);
1044
1056
  break;
1045
1057
  case X.MONTH:
1046
- e.setDateCursorMonth(H);
1058
+ e.setDateCursorMonth(y);
1047
1059
  break;
1048
1060
  case X.YEAR:
1049
- e.setDateCursorYear(H);
1061
+ e.setDateCursorYear(y);
1050
1062
  break;
1051
1063
  default:
1052
1064
  console.error(`[setViewDate] unknown unit: ${v}`);
1053
1065
  return;
1054
1066
  }
1055
1067
  C();
1056
- }, c = ({ value: H, unit: v, view: g }) => {
1057
- b(H, v), f(g);
1068
+ }, c = ({ value: y, unit: v, view: g }) => {
1069
+ L(y, v), f(g);
1058
1070
  };
1059
1071
  return {
1060
1072
  selectedDate: e.selectedDate,
@@ -1066,7 +1078,7 @@ const $5 = (n = null, t) => {
1066
1078
  moveRequest: d,
1067
1079
  moveViewDate: h,
1068
1080
  setSelectedDate: m,
1069
- setViewDate: b,
1081
+ setViewDate: L,
1070
1082
  setViewDateAndChangeView: c
1071
1083
  };
1072
1084
  }, D5 = { class: "flex flex-col" }, B5 = { class: "p-4" }, S5 = {
@@ -1096,7 +1108,7 @@ const $5 = (n = null, t) => {
1096
1108
  setViewDateAndChangeView: h
1097
1109
  } = $5(n.value, { weekStart: n.weekStart, disabledDates: n.disabledDates });
1098
1110
  i1(() => n.value, (g) => d(g));
1099
- const b = Ht(r), c = L(Object.values(w1).map((g, T) => Object.values(w1)[j1(T + n.weekStart, Object.values(w1).length)])), H = (g) => {
1111
+ const L = Ht(r), c = b(Object.values(w1).map((g, z) => Object.values(w1)[j1(z + n.weekStart, Object.values(w1).length)])), y = (g) => {
1100
1112
  if (!g) {
1101
1113
  e("change", null);
1102
1114
  return;
@@ -1123,17 +1135,17 @@ const $5 = (n = null, t) => {
1123
1135
  document.addEventListener("keydown", v);
1124
1136
  }), F1(() => {
1125
1137
  document.removeEventListener("keydown", v);
1126
- }), (g, T) => (o(), i("section", D5, [
1138
+ }), (g, z) => (o(), i("section", D5, [
1127
1139
  u("main", B5, [
1128
1140
  p(s) === p(h1).MONTH ? (o(), V(h5, {
1129
1141
  key: 0,
1130
- "current-month": b.value,
1142
+ "current-month": L.value,
1131
1143
  "current-year": p(a),
1132
1144
  "view-data": p(l),
1133
1145
  weekdays: c.value,
1134
1146
  onMove: p(C),
1135
1147
  onChangeView: p(f),
1136
- onSelect: H
1148
+ onSelect: y
1137
1149
  }, null, 8, ["current-month", "current-year", "view-data", "weekdays", "onMove", "onChangeView"])) : k("", !0),
1138
1150
  p(s) === p(h1).YEAR ? (o(), V(L5, {
1139
1151
  key: 1,
@@ -1157,7 +1169,7 @@ const $5 = (n = null, t) => {
1157
1169
  "leading-icon": "trash",
1158
1170
  label: "Clear",
1159
1171
  disabled: !g.value,
1160
- onClick: T[0] || (T[0] = (z) => H(null))
1172
+ onClick: z[0] || (z[0] = (T) => y(null))
1161
1173
  }, null, 8, ["disabled"])
1162
1174
  ])) : k("", !0)
1163
1175
  ]));
@@ -1212,7 +1224,7 @@ const $5 = (n = null, t) => {
1212
1224
  viewBox: "0 0 10 8",
1213
1225
  fill: "none",
1214
1226
  xmlns: "http://www.w3.org/2000/svg"
1215
- }, U5 = /* @__PURE__ */ $({
1227
+ }, x5 = /* @__PURE__ */ $({
1216
1228
  __name: "DefaultIndicator",
1217
1229
  props: {
1218
1230
  value: { type: Boolean },
@@ -1253,9 +1265,9 @@ const $5 = (n = null, t) => {
1253
1265
  "border-default": !l.checked && !l.disabled,
1254
1266
  "border-subtle cursor-default": l.disabled
1255
1267
  }]),
1256
- onClick: s[0] || (s[0] = U((r) => !l.disabled && e("click"), ["stop", "prevent"]))
1268
+ onClick: s[0] || (s[0] = x((r) => !l.disabled && e("click"), ["stop", "prevent"]))
1257
1269
  }, [
1258
- l.type === "default" ? (o(), V(U5, {
1270
+ l.type === "default" ? (o(), V(x5, {
1259
1271
  key: 0,
1260
1272
  value: l.checked,
1261
1273
  disabled: l.disabled,
@@ -1275,7 +1287,7 @@ const $5 = (n = null, t) => {
1275
1287
  }, K(l.label), 3)) : k("", !0)
1276
1288
  ], 2));
1277
1289
  }
1278
- }), x5 = { class: "w-full" }, Y5 = { class: "flex items-center w-full h-10" }, W5 = {
1290
+ }), U5 = { class: "w-full" }, Y5 = { class: "flex items-center w-full h-10" }, W5 = {
1279
1291
  key: 0,
1280
1292
  class: "relative flex-1 min-w-0 flex items-center text-sm"
1281
1293
  }, j5 = { class: "flex-none w-8 h-8 flex items-center justify-center" }, K5 = {
@@ -1297,7 +1309,7 @@ const $5 = (n = null, t) => {
1297
1309
  },
1298
1310
  emits: ["toggle"],
1299
1311
  setup(n, { emit: t }) {
1300
- const e = n, l = t, s = L(), r = L(), a = L(!1), f = O(() => e.open ? e.borderClassOpen : e.borderClassClosed), C = O(() => a.value ? {
1312
+ const e = n, l = t, s = b(), r = b(), a = b(!1), f = O(() => e.open ? e.borderClassOpen : e.borderClassClosed), C = O(() => a.value ? {
1301
1313
  top: "-1px",
1302
1314
  paddingTop: "1px"
1303
1315
  } : {});
@@ -1309,7 +1321,7 @@ const $5 = (n = null, t) => {
1309
1321
  ), i1(a, (d) => {
1310
1322
  d && s.value.blur();
1311
1323
  });
1312
- const m = L(null);
1324
+ const m = b(null);
1313
1325
  return a1(() => {
1314
1326
  e.sticky && (m.value = new IntersectionObserver(
1315
1327
  ([d]) => {
@@ -1321,7 +1333,7 @@ const $5 = (n = null, t) => {
1321
1333
  ), m.value.observe(r.value));
1322
1334
  }), B1(() => {
1323
1335
  m.value && m.value.disconnect();
1324
- }), (d, h) => (o(), i("section", x5, [
1336
+ }), (d, h) => (o(), i("section", U5, [
1325
1337
  u("header", {
1326
1338
  ref_key: "headerRef",
1327
1339
  ref: r,
@@ -1337,7 +1349,7 @@ const $5 = (n = null, t) => {
1337
1349
  }, [
1338
1350
  u("div", Y5, [
1339
1351
  d.alignment === "left" ? (o(), i("div", W5, [
1340
- R(d.$slots, "header", { sticky: a.value })
1352
+ A(d.$slots, "header", { sticky: a.value })
1341
1353
  ])) : k("", !0),
1342
1354
  u("div", j5, [
1343
1355
  d.$slots.content ? (o(), V(p(j), {
@@ -1345,16 +1357,16 @@ const $5 = (n = null, t) => {
1345
1357
  small: "",
1346
1358
  variant: "textSubtle",
1347
1359
  icon: d.open ? "chevron-down-small" : "chevron-right-small",
1348
- onClick: h[0] || (h[0] = (b) => l("toggle", d.id))
1360
+ onClick: h[0] || (h[0] = (L) => l("toggle", d.id))
1349
1361
  }, null, 8, ["icon"])) : k("", !0)
1350
1362
  ]),
1351
1363
  d.alignment === "right" ? (o(), i("div", K5, [
1352
- R(d.$slots, "header", { sticky: a.value })
1364
+ A(d.$slots, "header", { sticky: a.value })
1353
1365
  ])) : k("", !0)
1354
1366
  ])
1355
1367
  ], 6),
1356
1368
  d.open ? (o(), i("main", Q5, [
1357
- R(d.$slots, "content")
1369
+ A(d.$slots, "content")
1358
1370
  ])) : k("", !0)
1359
1371
  ]));
1360
1372
  }
@@ -1448,7 +1460,7 @@ function ce(n) {
1448
1460
  a1(() => window.addEventListener("keydown", t)), F1(() => window.removeEventListener("keydown", t));
1449
1461
  }
1450
1462
  const q5 = () => {
1451
- const n = L(!1);
1463
+ const n = b(!1);
1452
1464
  return a1(() => n.value = !0), { mounted: n };
1453
1465
  }, Ce = () => ({
1454
1466
  nextFrame: (n) => {
@@ -1480,16 +1492,16 @@ const q5 = () => {
1480
1492
  }, Ze = 120, t4 = /* @__PURE__ */ $({
1481
1493
  __name: "ContentSlider",
1482
1494
  setup(n, { expose: t }) {
1483
- const e = L(0), l = L(null), s = L(null), r = L(l.value ? l.value.clientWidth : 0), a = L(s.value ? s.value.scrollWidth : 0), f = () => e.value = Math.max(0, e.value - Ze), C = () => {
1495
+ const e = b(0), l = b(null), s = b(null), r = b(l.value ? l.value.clientWidth : 0), a = b(s.value ? s.value.scrollWidth : 0), f = () => e.value = Math.max(0, e.value - Ze), C = () => {
1484
1496
  e.value = Math.min(a.value - r.value, e.value + Ze);
1485
- }, m = O(() => e.value > 0), d = O(() => e.value < a.value - r.value), { nextFrame: h } = Ce(), b = () => {
1497
+ }, m = O(() => e.value > 0), d = O(() => e.value < a.value - r.value), { nextFrame: h } = Ce(), L = () => {
1486
1498
  D1(() => {
1487
1499
  h(() => {
1488
1500
  r.value = l.value ? l.value.clientWidth : 0, a.value = s.value ? s.value.scrollWidth : 0, r.value >= a.value && (e.value = 0);
1489
1501
  });
1490
1502
  });
1491
1503
  };
1492
- return a1(b), t({ update: b }), (c, H) => (o(), i("div", {
1504
+ return a1(L), t({ update: L }), (c, y) => (o(), i("div", {
1493
1505
  ref_key: "listContainer",
1494
1506
  ref: l,
1495
1507
  class: "relative flex-1 flex items-center py-1 overflow-hidden whitespace-nowrap"
@@ -1509,7 +1521,7 @@ const q5 = () => {
1509
1521
  class: "flex items-center gap-2 snap-x scroll-px-2 transition-transform duration-300",
1510
1522
  style: t1({ transform: `translateX(-${e.value}px)` })
1511
1523
  }, [
1512
- R(c.$slots, "default")
1524
+ A(c.$slots, "default")
1513
1525
  ], 4),
1514
1526
  d.value ? (o(), i("aside", J5, [
1515
1527
  d.value ? (o(), V(p(j), {
@@ -1658,11 +1670,11 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
1658
1670
  }, Fl = {
1659
1671
  key: 68,
1660
1672
  d: "M5.68198 9.61091L6.38909 10.318L2.707 13.999L6 14V15H1V10H2V13.292L5.68198 9.61091ZM15 1V6H14V2.706L10.0607 6.64645L9.35355 5.93934L13.292 2H10V1H15Z"
1661
- }, Ul = {
1673
+ }, xl = {
1662
1674
  key: 69,
1663
1675
  "fill-rule": "evenodd",
1664
1676
  d: "M3 6.8125L0 5.5L8 2L16 5.5L15 5.9375V10.8486L15.916 12.2227L15.084 12.7774L14.5 11.9014L13.916 12.7774L13.084 12.2227L14 10.8486V6.375L13 6.81249V10.559L8 13.059L3 10.559V6.8125ZM4 7.25V9.94098L8 11.941L12 9.94099V7.24999L8 9L4 7.25ZM8 7.90848L2.49489 5.5L8 3.09152L13.5051 5.5L8 7.90848Z"
1665
- }, xl = {
1677
+ }, Ul = {
1666
1678
  key: 71,
1667
1679
  d: "M5.29289 3C5.81321 3 6.31459 3.18373 6.71029 3.51526L6.75195 3.55267C7.43792 3.19371 8.2079 3 9 3C10.2949 3 11.5631 3.35381 12.6685 4.02027L12.9415 4.19338L14.151 4.999L16 5V5.99194L13.8486 6L12.3868 5.02543C11.3838 4.3568 10.2054 4 9 4C7.95144 4 6.95175 4.42764 6.22867 5.17818L6.07805 5.34391L5.53008 5.98321C5.05094 6.5422 5.08295 7.37585 5.60355 7.89645C6.06564 8.35853 6.79569 8.38934 7.29351 7.98886L7.39645 7.89645L8.64645 6.64645C8.84171 6.45118 9.15829 6.45118 9.35355 6.64645C9.52712 6.82001 9.5464 7.08944 9.41141 7.28431L9.35355 7.35355L9.207 7.5L12.707 11H16V12L12.8042 12.0019C12.171 13.1242 11.1946 13.5379 9.99085 13.2141L9.843 13.17L9.81437 13.2569C9.32607 14.5557 8.18459 14.8519 6.62707 14.1248L6.583 14.102L6.48258 14.1815C5.75234 14.7128 4.96369 14.6431 4.26819 13.9772L1.43934 11.1464C1.36433 11.0714 1.26793 11.0227 1.16448 11.0062L1.08579 11H0V10H1.08579C1.43388 10 1.7695 10.121 2.03642 10.3397L2.14645 10.4393L4.86614 13.1595C5.32922 13.6575 5.66184 13.6575 6.13711 13.156C6.29317 12.9914 6.54053 12.9524 6.73964 13.0612C8.18281 13.8492 8.79139 13.6464 9.00751 12.4137C9.06439 12.0892 9.41395 11.9075 9.71219 12.0473C10.6912 12.5061 11.3446 12.4005 11.822 11.6931L11.885 11.592L8.499 8.207L8.10355 8.60355C7.21794 9.48917 5.78206 9.48917 4.89645 8.60355C4.04874 7.75585 3.95873 6.42268 4.65973 5.47203L4.77082 5.33242L5.31879 4.69312C5.48818 4.49549 5.6719 4.31329 5.86775 4.14753C5.73328 4.07262 5.58394 4.02528 5.4291 4.0077L5.29289 4H4.75C4.1035 4 3.4678 4.15618 2.8965 4.4537L2.68538 4.57187L1.13849 5.5H0V4.5L0.862 4.499L2.17089 3.71437C2.87206 3.29367 3.66427 3.05159 4.47804 3.00738L4.75 3H5.29289Z"
1668
1680
  }, Yl = {
@@ -2003,11 +2015,11 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2003
2015
  "fill-rule": "evenodd",
2004
2016
  d: "M8.04148 12H0V11H8.04148C8.27952 9.58114 9.5135 8.5 11 8.5C12.4865 8.5 13.7205 9.58114 13.9585 11H16V12H13.9585C13.7205 13.4189 12.4865 14.5 11 14.5C9.5135 14.5 8.27952 13.4189 8.04148 12ZM13 11.5C13 12.6046 12.1046 13.5 11 13.5C9.89543 13.5 9 12.6046 9 11.5C9 10.3954 9.89543 9.5 11 9.5C12.1046 9.5 13 10.3954 13 11.5Z"
2005
2017
  }, null, -1))
2006
- ], 64)) : t.name === "flag" ? (o(), i("path", Ol)) : t.name === "folder" ? (o(), i("path", Il)) : t.name === "frequency" ? (o(), i("path", Pl)) : t.name === "fullscreen-off" ? (o(), i("path", Nl)) : t.name === "fullscreen-on" ? (o(), i("path", Fl)) : t.name === "graduate" ? (o(), i("path", Ul)) : t.name === "hamburger" ? (o(), i(M, { key: 70 }, [
2018
+ ], 64)) : t.name === "flag" ? (o(), i("path", Ol)) : t.name === "folder" ? (o(), i("path", Il)) : t.name === "frequency" ? (o(), i("path", Pl)) : t.name === "fullscreen-off" ? (o(), i("path", Nl)) : t.name === "fullscreen-on" ? (o(), i("path", Fl)) : t.name === "graduate" ? (o(), i("path", xl)) : t.name === "hamburger" ? (o(), i(M, { key: 70 }, [
2007
2019
  e[66] || (e[66] = u("path", { d: "M1 3H15V4H1V3Z" }, null, -1)),
2008
2020
  e[67] || (e[67] = u("path", { d: "M1 8H15V9H1V8Z" }, null, -1)),
2009
2021
  e[68] || (e[68] = u("path", { d: "M15 13H1V14H15V13Z" }, null, -1))
2010
- ], 64)) : t.name === "handshake" ? (o(), i("path", xl)) : t.name === "hash-symbol" ? (o(), i("path", Yl)) : t.name === "heading-1" ? (o(), i(M, { key: 73 }, [
2022
+ ], 64)) : t.name === "handshake" ? (o(), i("path", Ul)) : t.name === "hash-symbol" ? (o(), i("path", Yl)) : t.name === "heading-1" ? (o(), i(M, { key: 73 }, [
2011
2023
  e[69] || (e[69] = u("path", { d: "M3 1V11.5H4V6.5H12V9H13V1H12V5.5H4V1H3Z" }, null, -1)),
2012
2024
  e[70] || (e[70] = u("path", { d: "M13 10C13 10 12.4314 9.9753 12.2764 10.0528L10.8292 10.7764L11.2764 11.6708L12 11.309V14H11V15H14V14H13V10Z" }, null, -1))
2013
2025
  ], 64)) : t.name === "heading-2" ? (o(), i(M, { key: 74 }, [
@@ -2300,7 +2312,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2300
2312
  setup(n) {
2301
2313
  return (t, e) => (o(), i("button", {
2302
2314
  class: "flex items-center justify-center w-4 h-4 rounded-full hover:bg-black/15 focus-visible:bg-black/15 active:bg-black/25 dark:hover:bg-white/15 dark:focus-visible:bg-white/15 dark:active:bg-white/25 text-tertiary hover:text-secondary active:text-tertiary cursor-pointer",
2303
- onClick: e[0] || (e[0] = U((l) => t.$emit("click"), ["stop", "prevent"]))
2315
+ onClick: e[0] || (e[0] = x((l) => t.$emit("click"), ["stop", "prevent"]))
2304
2316
  }, [
2305
2317
  w(p(l1), { name: "close" })
2306
2318
  ]));
@@ -2315,10 +2327,10 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2315
2327
  },
2316
2328
  emits: ["close", "open"],
2317
2329
  setup(n, { expose: t, emit: e }) {
2318
- const l = e, s = L(!1);
2330
+ const l = e, s = b(!1);
2319
2331
  a1(() => s.value = !0);
2320
2332
  const r = () => s.value = !1, a = () => n.closeable && r();
2321
- return n.closeable && ce(a), t({ close: r }), (f, C) => (o(), V(U1, { to: f.target }, [
2333
+ return n.closeable && ce(a), t({ close: r }), (f, C) => (o(), V(x1, { to: f.target }, [
2322
2334
  w(p(ve), {
2323
2335
  show: s.value,
2324
2336
  type: f.overlayType,
@@ -2330,13 +2342,13 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2330
2342
  onTransitionAfterEnter: C[0] || (C[0] = (m) => l("open"))
2331
2343
  }, {
2332
2344
  default: Z(() => [
2333
- x1(w(p(he), { class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8" }, {
2345
+ U1(w(p(he), { class: "h-64 max-w-2xl md:w-1/2 md:max-w-lg p-4 md:px-8" }, {
2334
2346
  default: Z(() => [
2335
2347
  w(p(me), null, {
2336
2348
  header: Z(() => [
2337
2349
  u("header", E2, [
2338
2350
  f.title ? (o(), i("h4", O2, K(f.title), 1)) : (o(), i("h4", I2, [
2339
- R(f.$slots, "title", { close: r })
2351
+ A(f.$slots, "title", { close: r })
2340
2352
  ])),
2341
2353
  f.closeable ? (o(), V(p(j), {
2342
2354
  key: 2,
@@ -2348,11 +2360,11 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2348
2360
  ])
2349
2361
  ]),
2350
2362
  main: Z(() => [
2351
- R(f.$slots, "main", { close: r })
2363
+ A(f.$slots, "main", { close: r })
2352
2364
  ]),
2353
2365
  footer: Z(() => [
2354
2366
  u("footer", P2, [
2355
- R(f.$slots, "footer", { close: r })
2367
+ A(f.$slots, "footer", { close: r })
2356
2368
  ])
2357
2369
  ]),
2358
2370
  _: 3
@@ -2385,7 +2397,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2385
2397
  onAfterEnter: s[0] || (s[0] = (r) => e("transition-after-enter"))
2386
2398
  }, {
2387
2399
  default: Z(() => [
2388
- R(l.$slots, "default")
2400
+ A(l.$slots, "default")
2389
2401
  ]),
2390
2402
  _: 3
2391
2403
  }));
@@ -2393,7 +2405,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2393
2405
  }), N2 = { class: "text-xs" }, F2 = {
2394
2406
  key: 0,
2395
2407
  class: "h-4 px-1 min-w-4 flex items-center justify-center rounded-full text-xs font-medium bg-tertiary"
2396
- }, U2 = /* @__PURE__ */ $({
2408
+ }, x2 = /* @__PURE__ */ $({
2397
2409
  __name: "FilterChip",
2398
2410
  props: {
2399
2411
  label: {},
@@ -2424,7 +2436,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2424
2436
  })) : k("", !0)
2425
2437
  ], 2));
2426
2438
  }
2427
- }), x2 = { class: "opacity-0" }, Y2 = { key: 1 }, o4 = /* @__PURE__ */ $({
2439
+ }), U2 = { class: "opacity-0" }, Y2 = { key: 1 }, o4 = /* @__PURE__ */ $({
2428
2440
  __name: "FirstPaint",
2429
2441
  props: {
2430
2442
  delayIndex: {}
@@ -2437,8 +2449,8 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2437
2449
  }), (e, l) => (o(), i("div", {
2438
2450
  class: D(["first-paint rounded", `delay-${e.delayIndex}`])
2439
2451
  }, [
2440
- u("div", x2, [
2441
- e.$slots.default ? R(e.$slots, "default", { key: 0 }) : (o(), i("span", Y2, "Some random text"))
2452
+ u("div", U2, [
2453
+ e.$slots.default ? A(e.$slots, "default", { key: 0 }) : (o(), i("span", Y2, "Some random text"))
2442
2454
  ])
2443
2455
  ], 2));
2444
2456
  }
@@ -2475,7 +2487,7 @@ const l4 = /* @__PURE__ */ M1(_5, [["render", el]]), tl = {
2475
2487
  class: D(s.value)
2476
2488
  }, {
2477
2489
  default: Z(() => [
2478
- R(r.$slots, "default")
2490
+ A(r.$slots, "default")
2479
2491
  ]),
2480
2492
  _: 3
2481
2493
  }, 8, ["class"]));
@@ -2527,23 +2539,23 @@ const j2 = () => {
2527
2539
  },
2528
2540
  emits: ["resize-start", "resize", "resize-end"],
2529
2541
  setup(n, { emit: t }) {
2530
- const e = n, l = t, s = L(), r = O(() => [
2542
+ const e = n, l = t, s = b(), r = O(() => [
2531
2543
  e.side === "left" ? "left-0" : "right-0",
2532
2544
  e.border ? e.side === "left" ? "border-r border-default" : "border-l border-default" : ""
2533
2545
  ]);
2534
2546
  let a, f;
2535
- const C = L(!1);
2547
+ const C = b(!1);
2536
2548
  function m(c) {
2537
2549
  a = c.pageX, f = e.width, C.value = !0, window.addEventListener("mouseup", h), window.addEventListener("mousemove", d), l("resize-start");
2538
2550
  }
2539
2551
  function d(c) {
2540
- const H = e.side === "left" ? c.pageX - a : a - c.pageX, v = f + H, g = P1(v, e.minWidth, e.maxWidth);
2552
+ const y = e.side === "left" ? c.pageX - a : a - c.pageX, v = f + y, g = P1(v, e.minWidth, e.maxWidth);
2541
2553
  g !== e.width && l("resize", g);
2542
2554
  }
2543
2555
  function h() {
2544
2556
  C.value = !1, window.removeEventListener("mouseup", h), window.removeEventListener("mousemove", d), l("resize-end");
2545
2557
  }
2546
- function b(c) {
2558
+ function L(c) {
2547
2559
  let v = e.width;
2548
2560
  if (e.side === "left" ? c.key === "ArrowLeft" ? v = e.width - 30 : c.key === "ArrowRight" && (v = e.width + 30) : c.key === "ArrowLeft" ? v = e.width + 30 : c.key === "ArrowRight" && (v = e.width - 30), v !== e.width) {
2549
2561
  c.preventDefault();
@@ -2551,7 +2563,7 @@ const j2 = () => {
2551
2563
  g !== e.width && l("resize", g);
2552
2564
  }
2553
2565
  }
2554
- return (c, H) => (o(), i("aside", {
2566
+ return (c, y) => (o(), i("aside", {
2555
2567
  ref_key: "aside",
2556
2568
  ref: s,
2557
2569
  tabindex: "0",
@@ -2561,7 +2573,7 @@ const j2 = () => {
2561
2573
  }),
2562
2574
  class: D(["absolute top-0 z-10 h-full overflow-x-hidden bg-primary", r.value])
2563
2575
  }, [
2564
- R(c.$slots, "default"),
2576
+ A(c.$slots, "default"),
2565
2577
  e.draggable ? (o(), i("button", {
2566
2578
  key: 0,
2567
2579
  tabindex: "0",
@@ -2571,7 +2583,7 @@ const j2 = () => {
2571
2583
  C.value ? "border-action bg-action" : "border-transparent bg-transparent hover:bg-tertiary focus:outline-none focus:border-action focus:bg-tertiary"
2572
2584
  ]]),
2573
2585
  onMousedown: m,
2574
- onKeydown: b
2586
+ onKeydown: L
2575
2587
  }, null, 42, K2)) : k("", !0)
2576
2588
  ], 6));
2577
2589
  }
@@ -2591,52 +2603,52 @@ const j2 = () => {
2591
2603
  },
2592
2604
  emits: ["aside-left-resize", "aside-left-resize-end", "aside-left-resize-start", "aside-left-transition-end", "aside-right-resize", "aside-right-resize-end", "aside-right-resize-start", "aside-right-transition-end"],
2593
2605
  setup(n, { emit: t }) {
2594
- const e = n, l = t, s = L(!1), r = L(e.asideLeftWidth), a = L(e.asideRightWidth), f = L(e.asideLeftWidth), C = L(e.asideRightWidth), m = O(() => ({
2606
+ const e = n, l = t, s = b(!1), r = b(e.asideLeftWidth), a = b(e.asideRightWidth), f = b(e.asideLeftWidth), C = b(e.asideRightWidth), m = O(() => ({
2595
2607
  paddingLeft: `${f.value}px`,
2596
2608
  paddingRight: `${C.value}px`
2597
2609
  })), d = () => {
2598
2610
  s.value = !1, l("aside-left-resize-end");
2599
2611
  }, h = () => {
2600
2612
  s.value = !0, l("aside-left-resize-start");
2601
- }, b = (y) => {
2602
- r.value = f.value = y, l("aside-left-resize", y);
2603
- }, c = (y) => !y && l("aside-left-transition-end"), H = () => {
2613
+ }, L = (H) => {
2614
+ r.value = f.value = H, l("aside-left-resize", H);
2615
+ }, c = (H) => !H && l("aside-left-transition-end"), y = () => {
2604
2616
  s.value = !1, l("aside-right-resize-end");
2605
2617
  }, v = () => {
2606
2618
  s.value = !0, l("aside-right-resize-start");
2607
- }, g = (y) => {
2608
- a.value = C.value = y, l("aside-right-resize", y);
2609
- }, T = (y) => !y && l("aside-right-transition-end");
2619
+ }, g = (H) => {
2620
+ a.value = C.value = H, l("aside-right-resize", H);
2621
+ }, z = (H) => !H && l("aside-right-transition-end");
2610
2622
  i1(
2611
2623
  () => e.asideLeftVisible,
2612
- (y) => f.value = y ? r.value : 0
2624
+ (H) => f.value = H ? r.value : 0
2613
2625
  ), i1(
2614
2626
  () => e.asideRightVisible,
2615
- (y) => C.value = y ? a.value : 0
2627
+ (H) => C.value = H ? a.value : 0
2616
2628
  ), i1(
2617
2629
  () => e.asideLeftWidth,
2618
- (y) => r.value = f.value = y
2630
+ (H) => r.value = f.value = H
2619
2631
  ), i1(
2620
2632
  () => e.asideRightWidth,
2621
- (y) => a.value = C.value = y
2633
+ (H) => a.value = C.value = H
2622
2634
  );
2623
- const z = R1();
2635
+ const T = R1();
2624
2636
  return a1(() => {
2625
- f.value = e.asideLeftVisible && z["aside-left"] ? r.value : 0, C.value = e.asideRightVisible && z["aside-right"] ? a.value : 0;
2626
- }), (y, S) => (o(), i("div", Q2, [
2627
- p(z)["aside-left"] && y.asideLeftVisible ? (o(), V($e, {
2637
+ f.value = e.asideLeftVisible && T["aside-left"] ? r.value : 0, C.value = e.asideRightVisible && T["aside-right"] ? a.value : 0;
2638
+ }), (H, S) => (o(), i("div", Q2, [
2639
+ p(T)["aside-left"] && H.asideLeftVisible ? (o(), V($e, {
2628
2640
  key: 0,
2629
2641
  side: "left",
2630
2642
  border: e.borders,
2631
- draggable: y.asideLeftDraggable,
2643
+ draggable: H.asideLeftDraggable,
2632
2644
  width: r.value,
2633
2645
  onResizeStart: h,
2634
- onResize: b,
2646
+ onResize: L,
2635
2647
  onResizeEnd: d,
2636
2648
  onTransitioning: c
2637
2649
  }, {
2638
2650
  default: Z(() => [
2639
- R(y.$slots, "aside-left")
2651
+ A(H.$slots, "aside-left")
2640
2652
  ]),
2641
2653
  _: 3
2642
2654
  }, 8, ["border", "draggable", "width"])) : k("", !0),
@@ -2644,21 +2656,21 @@ const j2 = () => {
2644
2656
  class: D(["relative z-0 h-full overflow-x-hidden overflow-y-auto", [e.mainBgColorClass]]),
2645
2657
  style: t1(m.value)
2646
2658
  }, [
2647
- R(y.$slots, "main")
2659
+ A(H.$slots, "main")
2648
2660
  ], 6),
2649
- p(z)["aside-right"] && y.asideRightVisible ? (o(), V($e, {
2661
+ p(T)["aside-right"] && H.asideRightVisible ? (o(), V($e, {
2650
2662
  key: 1,
2651
2663
  side: "right",
2652
2664
  border: e.borders,
2653
- draggable: y.asideRightDraggable,
2665
+ draggable: H.asideRightDraggable,
2654
2666
  width: a.value,
2655
2667
  onResizeStart: v,
2656
2668
  onResize: g,
2657
- onResizeEnd: H,
2658
- onTransitioning: T
2669
+ onResizeEnd: y,
2670
+ onTransitioning: z
2659
2671
  }, {
2660
2672
  default: Z(() => [
2661
- R(y.$slots, "aside-right")
2673
+ A(H.$slots, "aside-right")
2662
2674
  ]),
2663
2675
  _: 3
2664
2676
  }, 8, ["border", "draggable", "width"])) : k("", !0)
@@ -2690,7 +2702,7 @@ const j2 = () => {
2690
2702
  class: "border border-default bg-primary rounded-lg focus:outline-none focus-within:shadow-sm focus-within:border-action"
2691
2703
  }, {
2692
2704
  default: Z(() => [
2693
- R(l.$slots, "default"),
2705
+ A(l.$slots, "default"),
2694
2706
  w(p(e1), {
2695
2707
  tag: "footer",
2696
2708
  justify: "between",
@@ -2699,12 +2711,13 @@ const j2 = () => {
2699
2711
  default: Z(() => [
2700
2712
  w(p(e1), null, {
2701
2713
  default: Z(() => [
2702
- R(l.$slots, "footer-left")
2714
+ A(l.$slots, "footer-left")
2703
2715
  ]),
2704
2716
  _: 3
2705
2717
  }),
2706
2718
  w(p(e1), { class: "gap-2" }, {
2707
2719
  default: Z(() => [
2720
+ A(l.$slots, "footer-right"),
2708
2721
  w(p(E1), {
2709
2722
  small: "",
2710
2723
  order: "confirm-last",
@@ -2716,7 +2729,7 @@ const j2 = () => {
2716
2729
  onConfirm: s[1] || (s[1] = (r) => e("confirm"))
2717
2730
  }, null, 8, ["loading", "confirm-label", "confirm-disabled", "cancel-label"])
2718
2731
  ]),
2719
- _: 1
2732
+ _: 3
2720
2733
  })
2721
2734
  ]),
2722
2735
  _: 3
@@ -2744,7 +2757,7 @@ const j2 = () => {
2744
2757
  },
2745
2758
  emits: ["change", "enter"],
2746
2759
  setup(n, { expose: t, emit: e }) {
2747
- const l = e, s = L(), r = L();
2760
+ const l = e, s = b(), r = b();
2748
2761
  a1(() => {
2749
2762
  var d, h;
2750
2763
  n.multiline ? (d = s.value) == null || d.focus() : (h = r.value) == null || h.focus();
@@ -2800,7 +2813,7 @@ const j2 = () => {
2800
2813
  "text-xs": d.size === "small",
2801
2814
  "text-sm": d.size === "default"
2802
2815
  }]),
2803
- onInput: U(f, ["stop", "prevent"])
2816
+ onInput: x(f, ["stop", "prevent"])
2804
2817
  }, null, 42, q2)) : (o(), i("input", {
2805
2818
  key: 2,
2806
2819
  ref_key: "inputRef",
@@ -2814,16 +2827,16 @@ const j2 = () => {
2814
2827
  "text-xs": d.size === "small",
2815
2828
  "text-sm": d.size === "default"
2816
2829
  }]),
2817
- onChange: h[0] || (h[0] = U(() => {
2830
+ onChange: h[0] || (h[0] = x(() => {
2818
2831
  }, ["stop", "prevent"])),
2819
- onKeydown: _(U(C, ["stop", "prevent"]), ["enter"]),
2820
- onKeyup: h[1] || (h[1] = _(U(() => {
2832
+ onKeydown: _(x(C, ["stop", "prevent"]), ["enter"]),
2833
+ onKeyup: h[1] || (h[1] = _(x(() => {
2821
2834
  }, ["stop", "prevent"]), ["enter"])),
2822
2835
  onBlur: m,
2823
- onInput: U(f, ["stop", "prevent"])
2836
+ onInput: x(f, ["stop", "prevent"])
2824
2837
  }, null, 42, X2)),
2825
2838
  d.$slots["inline-controls"] ? (o(), i("section", G2, [
2826
- R(d.$slots, "inline-controls")
2839
+ A(d.$slots, "inline-controls")
2827
2840
  ])) : k("", !0),
2828
2841
  d.clearable && d.value.length ? (o(), V(p(j), {
2829
2842
  key: 4,
@@ -2831,7 +2844,7 @@ const j2 = () => {
2831
2844
  icon: "close",
2832
2845
  variant: "textSubtle",
2833
2846
  class: "flex-none hidden",
2834
- onClick: h[2] || (h[2] = (b) => {
2847
+ onClick: h[2] || (h[2] = (L) => {
2835
2848
  a(), l("change", "");
2836
2849
  })
2837
2850
  })) : k("", !0)
@@ -2845,7 +2858,7 @@ const j2 = () => {
2845
2858
  },
2846
2859
  emits: ["click"],
2847
2860
  setup(n, { expose: t, emit: e }) {
2848
- const l = e, s = L(!1);
2861
+ const l = e, s = b(!1);
2849
2862
  return t({ setActive: (r) => s.value = r }), (r, a) => (o(), i("button", {
2850
2863
  class: D(["flex items-center justify-center border border-default text-tertiary focus:outline-hidden hover:z-10 hover:bg-secondary hover:border-strong hover:text-secondary focus:bg-secondary focus:border-strong focus:text-secondary focus:outline-none active:bg-tertiary active:text-tertiary", {
2851
2864
  "h-4 rounded-tr-lg": r.direction === "up" && r.size === "default",
@@ -2878,21 +2891,21 @@ const j2 = () => {
2878
2891
  },
2879
2892
  emits: ["change", "enter"],
2880
2893
  setup(n, { expose: t, emit: e }) {
2881
- const l = e, s = L(), r = L(), a = L(), f = () => {
2894
+ const l = e, s = b(), r = b(), a = b(), f = () => {
2882
2895
  s.value.focus();
2883
2896
  }, C = (c) => {
2884
2897
  c.target && l("change", Number.parseInt(c.target.value));
2885
2898
  }, m = (c) => {
2886
2899
  c.stopPropagation(), c.preventDefault(), l("enter");
2887
- }, d = (c, H) => {
2900
+ }, d = (c, y) => {
2888
2901
  var v, g;
2889
- c === 1 ? (v = r.value) == null || v.setActive(H) : (g = a.value) == null || g.setActive(H);
2902
+ c === 1 ? (v = r.value) == null || v.setActive(y) : (g = a.value) == null || g.setActive(y);
2890
2903
  }, h = (c) => {
2891
2904
  l("change", P1(n.value + c, n.min ?? null, n.max ?? null));
2892
- }, b = (c) => {
2905
+ }, L = (c) => {
2893
2906
  c.stopImmediatePropagation(), c.stopPropagation(), c.preventDefault();
2894
2907
  };
2895
- return t({ focus: f }), (c, H) => (o(), i("div", {
2908
+ return t({ focus: f }), (c, y) => (o(), i("div", {
2896
2909
  class: D(["relative flex-1 w-full overflow-hidden overscroll-none inline-flex items-center pr-0 rounded-lg border focus:shadow-sm-inner focus:outline-hidden focus-within:border-action", {
2897
2910
  "bg-primary border-default text-primary": c.variant === "border" && !c.disabled,
2898
2911
  "bg-secondary border-weak text-secondary": c.variant === "border" && c.disabled,
@@ -2931,21 +2944,21 @@ const j2 = () => {
2931
2944
  "text-xs": c.size === "small",
2932
2945
  "text-sm": c.size === "default"
2933
2946
  }]),
2934
- onChange: H[0] || (H[0] = U(() => {
2947
+ onChange: y[0] || (y[0] = x(() => {
2935
2948
  }, ["stop", "prevent"])),
2936
2949
  onKeydown: [
2937
- _(U(m, ["stop", "prevent"]), ["enter"]),
2938
- H[2] || (H[2] = _((v) => d(1, !0), ["up"])),
2939
- H[4] || (H[4] = _((v) => d(-1, !0), ["down"]))
2950
+ _(x(m, ["stop", "prevent"]), ["enter"]),
2951
+ y[2] || (y[2] = _((v) => d(1, !0), ["up"])),
2952
+ y[4] || (y[4] = _((v) => d(-1, !0), ["down"]))
2940
2953
  ],
2941
2954
  onKeyup: [
2942
- H[1] || (H[1] = _(U(() => {
2955
+ y[1] || (y[1] = _(x(() => {
2943
2956
  }, ["stop", "prevent"]), ["enter"])),
2944
- H[3] || (H[3] = _((v) => d(1, !1), ["up"])),
2945
- H[5] || (H[5] = _((v) => d(-1, !1), ["down"]))
2957
+ y[3] || (y[3] = _((v) => d(1, !1), ["up"])),
2958
+ y[5] || (y[5] = _((v) => d(-1, !1), ["down"]))
2946
2959
  ],
2947
- onBlur: b,
2948
- onInput: U(C, ["stop", "prevent"])
2960
+ onBlur: L,
2961
+ onInput: x(C, ["stop", "prevent"])
2949
2962
  }, null, 42, J2),
2950
2963
  c.showSteppers ? (o(), i("section", {
2951
2964
  key: 1,
@@ -2959,26 +2972,26 @@ const j2 = () => {
2959
2972
  ref: r,
2960
2973
  direction: "up",
2961
2974
  size: c.size,
2962
- onClick: H[6] || (H[6] = (v) => h(1))
2975
+ onClick: y[6] || (y[6] = (v) => h(1))
2963
2976
  }, null, 8, ["size"]),
2964
2977
  w(De, {
2965
2978
  ref_key: "downButtonRef",
2966
2979
  ref: a,
2967
2980
  direction: "down",
2968
2981
  size: c.size,
2969
- onClick: H[7] || (H[7] = (v) => h(-1))
2982
+ onClick: y[7] || (y[7] = (v) => h(-1))
2970
2983
  }, null, 8, ["size"])
2971
2984
  ], 2)) : k("", !0)
2972
2985
  ], 2));
2973
2986
  }
2974
- }), _2 = {}, en = {
2987
+ }), _2 = {}, e0 = {
2975
2988
  class: "animate-spin",
2976
2989
  xlmns: "https://www.w3.org/2000/svg",
2977
2990
  fill: "none",
2978
2991
  viewBox: "0 0 24 24"
2979
2992
  };
2980
- function tn(n, t) {
2981
- return o(), i("svg", en, [...t[0] || (t[0] = [
2993
+ function t0(n, t) {
2994
+ return o(), i("svg", e0, [...t[0] || (t[0] = [
2982
2995
  u("path", {
2983
2996
  class: "opacity-25",
2984
2997
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",
@@ -2992,10 +3005,10 @@ function tn(n, t) {
2992
3005
  }, null, -1)
2993
3006
  ])]);
2994
3007
  }
2995
- const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3008
+ const N1 = /* @__PURE__ */ M1(_2, [["render", t0]]), l0 = {
2996
3009
  key: 0,
2997
3010
  class: "flex items-center justify-between h-12 w-full mb-4"
2998
- }, nn = { class: "flex items-center h-full" }, on = /* @__PURE__ */ $({
3011
+ }, n0 = { class: "flex items-center h-full" }, o0 = /* @__PURE__ */ $({
2999
3012
  __name: "Modal",
3000
3013
  props: {
3001
3014
  closeable: { type: Boolean, default: !0 },
@@ -3008,7 +3021,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3008
3021
  },
3009
3022
  emits: ["close", "ready"],
3010
3023
  setup(n, { expose: t, emit: e }) {
3011
- const l = n, s = e, r = R1(), a = L(), f = L(!1);
3024
+ const l = n, s = e, r = R1(), a = b(), f = b(!1);
3012
3025
  a1(() => {
3013
3026
  r.default && (l.title || r.header || r.main || r.footer) && console.warn(
3014
3027
  "You are using named slots (or props.title) and default slot at the same time. This is not supported. Please use either named slots (and props.title) or the default slot."
@@ -3021,17 +3034,17 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3021
3034
  const d = () => {
3022
3035
  s("ready");
3023
3036
  };
3024
- return t({ close: C }), (h, b) => (o(), V(U1, { to: h.target }, [
3037
+ return t({ close: C }), (h, L) => (o(), V(x1, { to: h.target }, [
3025
3038
  w(p(ve), {
3026
3039
  show: f.value,
3027
3040
  type: h.overlayType,
3028
3041
  onClick: m,
3029
- onClose: b[0] || (b[0] = (c) => s("close"))
3042
+ onClose: L[0] || (L[0] = (c) => s("close"))
3030
3043
  }, {
3031
3044
  default: Z(() => [
3032
3045
  w(p(ot), { onTransitionAfterEnter: d }, {
3033
3046
  default: Z(() => [
3034
- x1(w(p(he), {
3047
+ U1(w(p(he), {
3035
3048
  ref_key: "windowRef",
3036
3049
  ref: a,
3037
3050
  class: D(["h-full", [
@@ -3043,16 +3056,16 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3043
3056
  ]])
3044
3057
  }, {
3045
3058
  default: Z(() => [
3046
- h.$slots.default ? R(h.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Ae({
3059
+ h.$slots.default ? A(h.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Ae({
3047
3060
  main: Z(() => [
3048
- R(h.$slots, "main", { close: C })
3061
+ A(h.$slots, "main", { close: C })
3049
3062
  ]),
3050
3063
  _: 2
3051
3064
  }, [
3052
3065
  l.title || h.$slots.header ? {
3053
3066
  name: "header",
3054
3067
  fn: Z(() => [
3055
- l.title ? (o(), i("header", ln, [
3068
+ l.title ? (o(), i("header", l0, [
3056
3069
  u("h4", null, K(l.title), 1),
3057
3070
  h.closeable ? (o(), V(p(j), {
3058
3071
  key: 0,
@@ -3061,15 +3074,15 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3061
3074
  onClick: m
3062
3075
  })) : k("", !0)
3063
3076
  ])) : k("", !0),
3064
- R(h.$slots, "header", { close: C })
3077
+ A(h.$slots, "header", { close: C })
3065
3078
  ]),
3066
3079
  key: "0"
3067
3080
  } : void 0,
3068
3081
  h.$slots.footer ? {
3069
3082
  name: "footer",
3070
3083
  fn: Z(() => [
3071
- u("footer", nn, [
3072
- R(h.$slots, "footer", { close: C })
3084
+ u("footer", n0, [
3085
+ A(h.$slots, "footer", { close: C })
3073
3086
  ])
3074
3087
  ]),
3075
3088
  key: "1"
@@ -3088,7 +3101,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3088
3101
  }, 8, ["show", "type"])
3089
3102
  ], 8, ["to"]));
3090
3103
  }
3091
- }), sn = { class: "text-sm tracking-wide" }, an = { class: "text-sm tracking-wide" }, u4 = /* @__PURE__ */ $({
3104
+ }), s0 = { class: "text-sm tracking-wide" }, a0 = { class: "text-sm tracking-wide" }, u4 = /* @__PURE__ */ $({
3092
3105
  __name: "NavItem",
3093
3106
  props: {
3094
3107
  exact: { type: Boolean, default: !1 },
@@ -3117,8 +3130,8 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3117
3130
  key: 0,
3118
3131
  name: l.icon
3119
3132
  }, null, 8, ["name"])) : k("", !0),
3120
- u("span", sn, [
3121
- R(l.$slots, "default")
3133
+ u("span", s0, [
3134
+ A(l.$slots, "default")
3122
3135
  ])
3123
3136
  ], 2)
3124
3137
  ])) : (o(), i("a", {
@@ -3136,16 +3149,16 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3136
3149
  key: 0,
3137
3150
  name: l.icon
3138
3151
  }, null, 8, ["name"])) : k("", !0),
3139
- u("span", an, [
3140
- R(l.$slots, "default")
3152
+ u("span", a0, [
3153
+ A(l.$slots, "default")
3141
3154
  ])
3142
3155
  ], 2)
3143
3156
  ]));
3144
3157
  }
3145
- }), rn = {
3158
+ }), r0 = {
3146
3159
  "data-theme": "dark",
3147
3160
  class: "inline-flex items-stretch h-10 px-1 rounded-xl bg-black shadow-xl pointer-events-auto justify-between"
3148
- }, dn = { class: "text-sm cursor-default truncate min-w-0" }, p4 = /* @__PURE__ */ $({
3161
+ }, i0 = { class: "text-sm cursor-default truncate min-w-0" }, p4 = /* @__PURE__ */ $({
3149
3162
  __name: "Notification",
3150
3163
  props: {
3151
3164
  showDetailsButton: { type: Boolean },
@@ -3155,7 +3168,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3155
3168
  emits: ["close", "show-details"],
3156
3169
  setup(n, { emit: t }) {
3157
3170
  const e = t, l = O(() => n.type === "default" ? "information" : n.type === "error" ? "error" : n.type === "warning" ? "warning" : "check-circled");
3158
- return (s, r) => (o(), i("div", rn, [
3171
+ return (s, r) => (o(), i("div", r0, [
3159
3172
  w(p(e1), {
3160
3173
  class: D(["gap-2 px-3 rounded-l-lg flex-1 overflow-hidden", {
3161
3174
  "text-stone-300": s.type === "default",
@@ -3166,7 +3179,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3166
3179
  }, {
3167
3180
  default: Z(() => [
3168
3181
  w(p(l1), { name: l.value }, null, 8, ["name"]),
3169
- u("span", dn, K(s.text), 1)
3182
+ u("span", i0, K(s.text), 1)
3170
3183
  ]),
3171
3184
  _: 1
3172
3185
  }, 8, ["class"]),
@@ -3210,13 +3223,13 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3210
3223
  },
3211
3224
  emits: ["change"],
3212
3225
  setup(n, { emit: t }) {
3213
- const e = t, l = L(), s = O(() => a5(0, n.lastPage).map((h) => ({ id: `${h + 1}`, label: `${h + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0), f = O(() => n.borders ? { borderRadius: "0" } : void 0), C = O(() => n.borders ? "outlineSubtle" : "textSubtle"), m = (h) => {
3214
- let b = n.currentPage + h;
3215
- b > n.lastPage && (b = 1), b < 1 && (b = n.lastPage), e("change", b);
3226
+ const e = t, l = b(), s = O(() => a5(0, n.lastPage).map((h) => ({ id: `${h + 1}`, label: `${h + 1}` }))), r = O(() => n.borders ? { borderRadius: "8px 0 0 8px" } : void 0), a = O(() => n.borders ? { borderRadius: "0px 8px 8px 0px" } : void 0), f = O(() => n.borders ? { borderRadius: "0" } : void 0), C = O(() => n.borders ? "outlineSubtle" : "textSubtle"), m = (h) => {
3227
+ let L = n.currentPage + h;
3228
+ L > n.lastPage && (L = 1), L < 1 && (L = n.lastPage), e("change", L);
3216
3229
  }, d = (h) => {
3217
3230
  e("change", h.label);
3218
3231
  };
3219
- return (h, b) => (o(), i("nav", {
3232
+ return (h, L) => (o(), i("nav", {
3220
3233
  ref_key: "navRef",
3221
3234
  ref: l,
3222
3235
  class: "relative z-0 inline-flex"
@@ -3226,7 +3239,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3226
3239
  icon: h.orientation === "horizontal" ? "chevron-left" : "chevron-up",
3227
3240
  style: t1(r.value),
3228
3241
  class: "z-0 hover:z-10 focus:z-10 active:z-10",
3229
- onClick: b[0] || (b[0] = (c) => m(-1))
3242
+ onClick: L[0] || (L[0] = (c) => m(-1))
3230
3243
  }, null, 8, ["variant", "icon", "style"]),
3231
3244
  w(p(at), {
3232
3245
  "same-width-as-element": l.value,
@@ -3251,11 +3264,11 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3251
3264
  icon: h.orientation === "horizontal" ? "chevron-right" : "chevron-down",
3252
3265
  style: t1(a.value),
3253
3266
  class: "z-0 hover:z-10 focus:z-10 active:z-10 -ml-px",
3254
- onClick: b[1] || (b[1] = (c) => m(1))
3267
+ onClick: L[1] || (L[1] = (c) => m(1))
3255
3268
  }, null, 8, ["variant", "icon", "style"])
3256
3269
  ], 512));
3257
3270
  }
3258
- }), un = ["aria-label"], Be = /* @__PURE__ */ $({
3271
+ }), d0 = ["aria-label"], Be = /* @__PURE__ */ $({
3259
3272
  __name: "ResizablePanel",
3260
3273
  props: {
3261
3274
  size: { default: 256 },
@@ -3267,7 +3280,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3267
3280
  },
3268
3281
  emits: ["resize-start", "resize", "resize-end"],
3269
3282
  setup(n, { emit: t }) {
3270
- const e = n, l = t, s = O(() => ["left", "right"].includes(e.placement) ? "horizontal" : "vertical"), r = L(), a = O(() => {
3283
+ const e = n, l = t, s = O(() => ["left", "right"].includes(e.placement) ? "horizontal" : "vertical"), r = b(), a = O(() => {
3271
3284
  let v, g;
3272
3285
  return s.value === "horizontal" ? (v = e.placement === "left" ? "left-0" : "right-0", v += " top-0 h-full overflow-x-hidden", g = e.border ? e.placement === "left" ? "border-r border-default" : "border-l border-default" : "") : (v = e.placement === "top" ? "top-0" : "bottom-0", v += " left-0 w-full overflow-y-hidden", g = e.border ? e.placement === "top" ? "border-b border-default" : "border-t border-default" : ""), [
3273
3286
  v,
@@ -3278,26 +3291,26 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3278
3291
  return s.value === "horizontal" ? (v.push(e.placement === "left" ? "right-0 border-r" : "left-0 border-l"), v.push("top-0 h-full w-1 cursor-ew-resize")) : (v.push(e.placement === "top" ? "bottom-0 border-b" : "top-0 border-t"), v.push("left-0 w-full h-1 cursor-ns-resize")), v;
3279
3292
  });
3280
3293
  let C, m;
3281
- const d = L(!1);
3294
+ const d = b(!1);
3282
3295
  function h(v) {
3283
3296
  const g = e.placement === "left" || e.placement === "right" ? "pageX" : "pageY";
3284
- C = v[g], m = e.size, d.value = !0, window.addEventListener("mouseup", c), window.addEventListener("mousemove", b), l("resize-start");
3297
+ C = v[g], m = e.size, d.value = !0, window.addEventListener("mouseup", c), window.addEventListener("mousemove", L), l("resize-start");
3285
3298
  }
3286
- function b(v) {
3299
+ function L(v) {
3287
3300
  let g;
3288
3301
  s.value === "vertical" ? g = e.placement === "top" ? v.pageY - C : C - v.pageY : g = e.placement === "left" ? v.pageX - C : C - v.pageX;
3289
- const T = m + g, z = P1(T, e.minSize, e.maxSize);
3290
- z !== e.size && l("resize", z);
3302
+ const z = m + g, T = P1(z, e.minSize, e.maxSize);
3303
+ T !== e.size && l("resize", T);
3291
3304
  }
3292
3305
  function c() {
3293
- d.value = !1, window.removeEventListener("mouseup", c), window.removeEventListener("mousemove", b), l("resize-end");
3306
+ d.value = !1, window.removeEventListener("mouseup", c), window.removeEventListener("mousemove", L), l("resize-end");
3294
3307
  }
3295
- function H(v) {
3296
- let T = e.size;
3297
- if (e.placement === "left" ? v.key === "ArrowLeft" ? T = e.size - 30 : v.key === "ArrowRight" && (T = e.size + 30) : e.placement === "right" ? v.key === "ArrowLeft" ? T = e.size + 30 : v.key === "ArrowRight" && (T = e.size - 30) : e.placement === "top" ? v.key === "ArrowUp" ? T = e.size - 30 : v.key === "ArrowDown" && (T = e.size + 30) : e.placement === "bottom" && (v.key === "ArrowUp" ? T = e.size + 30 : v.key === "ArrowDown" && (T = e.size - 30)), T !== e.size) {
3308
+ function y(v) {
3309
+ let z = e.size;
3310
+ if (e.placement === "left" ? v.key === "ArrowLeft" ? z = e.size - 30 : v.key === "ArrowRight" && (z = e.size + 30) : e.placement === "right" ? v.key === "ArrowLeft" ? z = e.size + 30 : v.key === "ArrowRight" && (z = e.size - 30) : e.placement === "top" ? v.key === "ArrowUp" ? z = e.size - 30 : v.key === "ArrowDown" && (z = e.size + 30) : e.placement === "bottom" && (v.key === "ArrowUp" ? z = e.size + 30 : v.key === "ArrowDown" && (z = e.size - 30)), z !== e.size) {
3298
3311
  v.preventDefault();
3299
- const z = P1(T, e.minSize, e.maxSize);
3300
- z !== e.size && l("resize", z);
3312
+ const T = P1(z, e.minSize, e.maxSize);
3313
+ T !== e.size && l("resize", T);
3301
3314
  }
3302
3315
  }
3303
3316
  return (v, g) => (o(), i("aside", {
@@ -3309,7 +3322,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3309
3322
  }),
3310
3323
  class: D(["absolute z-10 bg-primary", a.value])
3311
3324
  }, [
3312
- R(v.$slots, "default"),
3325
+ A(v.$slots, "default"),
3313
3326
  e.draggable ? (o(), i("button", {
3314
3327
  key: 0,
3315
3328
  tabindex: "0",
@@ -3319,11 +3332,11 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3319
3332
  d.value ? "border-action bg-action" : "border-transparent bg-transparent hover:bg-tertiary focus:outline-none focus:border-action focus:bg-tertiary"
3320
3333
  ]]),
3321
3334
  onMousedown: h,
3322
- onKeydown: H
3323
- }, null, 42, un)) : k("", !0)
3335
+ onKeydown: y
3336
+ }, null, 42, d0)) : k("", !0)
3324
3337
  ], 6));
3325
3338
  }
3326
- }), pn = { class: "relative w-full h-full overflow-hidden bg-primary" }, c4 = /* @__PURE__ */ $({
3339
+ }), u0 = { class: "relative w-full h-full overflow-hidden bg-primary" }, c4 = /* @__PURE__ */ $({
3327
3340
  __name: "PanelLayout",
3328
3341
  props: {
3329
3342
  borders: { type: Boolean, default: !1 },
@@ -3339,52 +3352,52 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3339
3352
  },
3340
3353
  emits: ["start-panel-resize", "start-panel-resize-end", "start-panel-resize-start", "start-panel-transition-end", "end-panel-resize", "end-panel-resize-end", "end-panel-resize-start", "end-panel-transition-end"],
3341
3354
  setup(n, { emit: t }) {
3342
- const e = n, l = t, s = L(!1), r = L(e.startPanelSize), a = L(e.endPanelSize), f = L(e.startPanelSize), C = L(e.endPanelSize), m = O(() => ({
3355
+ const e = n, l = t, s = b(!1), r = b(e.startPanelSize), a = b(e.endPanelSize), f = b(e.startPanelSize), C = b(e.endPanelSize), m = O(() => ({
3343
3356
  [e.orientation === "horizontal" ? "paddingLeft" : "paddingTop"]: `${f.value}px`,
3344
3357
  [e.orientation === "horizontal" ? "paddingRight" : "paddingBottom"]: `${C.value}px`
3345
3358
  })), d = () => {
3346
3359
  s.value = !1, l("start-panel-resize-end");
3347
3360
  }, h = () => {
3348
3361
  s.value = !0, l("start-panel-resize-start");
3349
- }, b = (y) => {
3350
- r.value = f.value = y, l("start-panel-resize", y);
3351
- }, c = (y) => !y && l("start-panel-transition-end"), H = () => {
3362
+ }, L = (H) => {
3363
+ r.value = f.value = H, l("start-panel-resize", H);
3364
+ }, c = (H) => !H && l("start-panel-transition-end"), y = () => {
3352
3365
  s.value = !1, l("end-panel-resize-end");
3353
3366
  }, v = () => {
3354
3367
  s.value = !0, l("end-panel-resize-start");
3355
- }, g = (y) => {
3356
- a.value = C.value = y, l("end-panel-resize", y);
3357
- }, T = (y) => !y && l("end-panel-transition-end");
3368
+ }, g = (H) => {
3369
+ a.value = C.value = H, l("end-panel-resize", H);
3370
+ }, z = (H) => !H && l("end-panel-transition-end");
3358
3371
  i1(
3359
3372
  () => e.startPanelVisible,
3360
- (y) => f.value = y ? r.value : 0
3373
+ (H) => f.value = H ? r.value : 0
3361
3374
  ), i1(
3362
3375
  () => e.endPanelVisible,
3363
- (y) => C.value = y ? a.value : 0
3376
+ (H) => C.value = H ? a.value : 0
3364
3377
  ), i1(
3365
3378
  () => e.startPanelSize,
3366
- (y) => r.value = f.value = y
3379
+ (H) => r.value = f.value = H
3367
3380
  ), i1(
3368
3381
  () => e.endPanelSize,
3369
- (y) => a.value = C.value = y
3382
+ (H) => a.value = C.value = H
3370
3383
  );
3371
- const z = R1();
3384
+ const T = R1();
3372
3385
  return a1(() => {
3373
- f.value = e.startPanelVisible && z["start-panel"] ? r.value : 0, C.value = e.endPanelVisible && z["end-panel"] ? a.value : 0;
3374
- }), (y, S) => (o(), i("div", pn, [
3375
- p(z)["start-panel"] && y.startPanelVisible ? (o(), V(Be, {
3386
+ f.value = e.startPanelVisible && T["start-panel"] ? r.value : 0, C.value = e.endPanelVisible && T["end-panel"] ? a.value : 0;
3387
+ }), (H, S) => (o(), i("div", u0, [
3388
+ p(T)["start-panel"] && H.startPanelVisible ? (o(), V(Be, {
3376
3389
  key: 0,
3377
- placement: y.orientation === "horizontal" ? "left" : "top",
3390
+ placement: H.orientation === "horizontal" ? "left" : "top",
3378
3391
  border: e.borders,
3379
- draggable: y.startPanelDraggable,
3392
+ draggable: H.startPanelDraggable,
3380
3393
  size: r.value,
3381
3394
  onResizeStart: h,
3382
- onResize: b,
3395
+ onResize: L,
3383
3396
  onResizeEnd: d,
3384
3397
  onTransitioning: c
3385
3398
  }, {
3386
3399
  default: Z(() => [
3387
- R(y.$slots, "start-panel")
3400
+ A(H.$slots, "start-panel")
3388
3401
  ]),
3389
3402
  _: 3
3390
3403
  }, 8, ["placement", "border", "draggable", "size"])) : k("", !0),
@@ -3392,33 +3405,33 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3392
3405
  class: D(["relative z-0 h-full overflow-hidden", [e.mainPanelBgColorClass]]),
3393
3406
  style: t1(m.value)
3394
3407
  }, [
3395
- R(y.$slots, "main")
3408
+ A(H.$slots, "main")
3396
3409
  ], 6),
3397
- p(z)["end-panel"] && y.endPanelVisible ? (o(), V(Be, {
3410
+ p(T)["end-panel"] && H.endPanelVisible ? (o(), V(Be, {
3398
3411
  key: 1,
3399
- placement: y.orientation === "horizontal" ? "right" : "bottom",
3412
+ placement: H.orientation === "horizontal" ? "right" : "bottom",
3400
3413
  border: e.borders,
3401
- draggable: y.endPanelDraggable,
3414
+ draggable: H.endPanelDraggable,
3402
3415
  size: a.value,
3403
3416
  onResizeStart: v,
3404
3417
  onResize: g,
3405
- onResizeEnd: H,
3406
- onTransitioning: T
3418
+ onResizeEnd: y,
3419
+ onTransitioning: z
3407
3420
  }, {
3408
3421
  default: Z(() => [
3409
- R(y.$slots, "end-panel")
3422
+ A(H.$slots, "end-panel")
3410
3423
  ]),
3411
3424
  _: 3
3412
3425
  }, 8, ["placement", "border", "draggable", "size"])) : k("", !0)
3413
3426
  ]));
3414
3427
  }
3415
- }), fn = Pe({
3428
+ }), p0 = Pe({
3416
3429
  apply({ rects: n, elements: t }) {
3417
3430
  Object.assign(t.floating.style, {
3418
3431
  width: `${n.reference.width}px`
3419
3432
  });
3420
3433
  }
3421
- }), cn = (n) => Pe({
3434
+ }), f0 = (n) => Pe({
3422
3435
  apply({ elements: t }) {
3423
3436
  Object.assign(t.floating.style, {
3424
3437
  width: `${n.offsetWidth}px`
@@ -3449,7 +3462,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3449
3462
  setup(n, { expose: t, emit: e }) {
3450
3463
  const l = n, s = e, r = R1();
3451
3464
  let a;
3452
- const f = L(), C = L(), m = L(), d = L(!1), { mounted: h } = q5(), { disableClickOutside: b, enableClickOutside: c, updateClickOutside: H } = fe(() => W()), v = async () => {
3465
+ const f = b(), C = b(), m = b(), d = b(!1), { mounted: h } = q5(), { disableClickOutside: L, enableClickOutside: c, updateClickOutside: y } = fe(() => Y()), v = async () => {
3453
3466
  if (m.value && C.value) {
3454
3467
  const E = [];
3455
3468
  l.offsetOptions && E.push(Mt(l.offsetOptions)), l.flipOptions && E.push(Zt(l.flipOptions)), l.limitShiftOptions ? E.push(
@@ -3457,7 +3470,7 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3457
3470
  ...l.shiftOptions,
3458
3471
  limiter: $t(l.limitShiftOptions)
3459
3472
  })
3460
- ) : l.shiftOptions && E.push(He(l.shiftOptions)), l.popperWidthClass || (l.sameWidthAsTrigger ? E.push(fn) : l.sameWidthAsElement && E.push(cn(l.sameWidthAsElement)));
3473
+ ) : l.shiftOptions && E.push(He(l.shiftOptions)), l.popperWidthClass || (l.sameWidthAsTrigger ? E.push(p0) : l.sameWidthAsElement && E.push(f0(l.sameWidthAsElement)));
3461
3474
  const I = await Dt(m.value, C.value, {
3462
3475
  placement: l.placement,
3463
3476
  middleware: E
@@ -3469,41 +3482,41 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3469
3482
  const E = r.default && r.default({ visible: d.value });
3470
3483
  if (E && E.length > 1)
3471
3484
  return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${E.length} child nodes.`);
3472
- l.popperWidthClass ? (l.sameWidthAsElement || l.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : l.sameWidthAsElement && l.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), l.trigger === "manual" && l.show && z();
3485
+ l.popperWidthClass ? (l.sameWidthAsElement || l.sameWidthAsTrigger) && console.warn("[Popper]: The props 'sameWidthAsElement' or 'sameWidthAsTrigger' will be ignored because the 'popperWidthClass' is set") : l.sameWidthAsElement && l.sameWidthAsTrigger && console.warn("[Popper]: The 'sameWidthAsElement' prop will be ignored because 'sameWidthAsTrigger' is set to true"), l.trigger === "manual" && l.show && T();
3473
3486
  }), F1(() => {
3474
- z.clear(), a && (a(), a = null);
3487
+ T.clear(), a && (a(), a = null);
3475
3488
  });
3476
3489
  const g = () => {
3477
- z.clear(), d.value && (d.value = !1, s("close"), l.closeOnClickOutside && b(), a && (a(), a = null));
3478
- }, T = async () => {
3490
+ T.clear(), d.value && (d.value = !1, s("close"), l.closeOnClickOutside && L(), a && (a(), a = null));
3491
+ }, z = async () => {
3479
3492
  d.value || (d.value = !0, await D1(), s("open", [m.value, C.value]), a = wt(m.value, C.value, v), l.closeOnClickOutside && C.value && m.value && c([C.value, m.value]));
3480
- }, z = ne(T, l.openDelay), y = ne(g, l.closeDelay), S = async () => {
3481
- l.disabled || (y.clear(), z());
3482
- }, W = async () => {
3483
- z.clear(), y();
3493
+ }, T = ne(z, l.openDelay), H = ne(g, l.closeDelay), S = async () => {
3494
+ l.disabled || (H.clear(), T());
3495
+ }, Y = async () => {
3496
+ T.clear(), H();
3484
3497
  }, Q = (E) => {
3485
3498
  l.trigger === "click" && (E.preventDefault(), E.stopPropagation(), f1());
3486
3499
  }, s1 = (E) => {
3487
- C.value && m.value && H([C.value, m.value, ...E]);
3488
- }, f1 = () => d.value ? W() : S();
3500
+ C.value && m.value && y([C.value, m.value, ...E]);
3501
+ }, f1 = () => d.value ? Y() : S();
3489
3502
  return i1(
3490
3503
  () => l.disabled,
3491
3504
  (E) => d.value && E && g()
3492
3505
  ), i1(
3493
3506
  () => l.show,
3494
3507
  (E) => {
3495
- l.trigger === "manual" ? E ? z() : y() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
3508
+ l.trigger === "manual" ? E ? T() : H() : console.warn("[Popper]: The 'show' prop is only available when the 'trigger' prop is set to 'manual'");
3496
3509
  }
3497
3510
  ), t({
3498
3511
  close: g,
3499
3512
  containerRef: f,
3500
- open: T,
3513
+ open: z,
3501
3514
  updateClickOutsideTargets: s1
3502
3515
  }), (E, I) => (o(), i("div", {
3503
3516
  ref_key: "containerRef",
3504
3517
  ref: f,
3505
3518
  class: D(l.rootClass),
3506
- onMouseleave: I[5] || (I[5] = (G) => l.trigger === "hover" && W())
3519
+ onMouseleave: I[5] || (I[5] = (G) => l.trigger === "hover" && Y())
3507
3520
  }, [
3508
3521
  u("div", {
3509
3522
  ref_key: "triggerRef",
@@ -3512,11 +3525,11 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3512
3525
  onMouseover: I[0] || (I[0] = (G) => l.trigger === "hover" && S()),
3513
3526
  onClick: Q,
3514
3527
  onFocus: I[1] || (I[1] = (G) => l.trigger === "focus" && S()),
3515
- onKeyup: I[2] || (I[2] = _((G) => W(), ["esc"]))
3528
+ onKeyup: I[2] || (I[2] = _((G) => Y(), ["esc"]))
3516
3529
  }, [
3517
- R(E.$slots, "default", { visible: d.value })
3530
+ A(E.$slots, "default", { visible: d.value })
3518
3531
  ], 34),
3519
- p(h) ? (o(), V(U1, {
3532
+ p(h) ? (o(), V(x1, {
3520
3533
  key: 0,
3521
3534
  to: E.teleportTarget
3522
3535
  }, [
@@ -3526,9 +3539,9 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3526
3539
  ref: C,
3527
3540
  class: D(["absolute", l.popperWidthClass]),
3528
3541
  onMouseover: I[3] || (I[3] = (G) => l.trigger === "hover" && S()),
3529
- onMouseleave: I[4] || (I[4] = (G) => l.trigger === "hover" && W())
3542
+ onMouseleave: I[4] || (I[4] = (G) => l.trigger === "hover" && Y())
3530
3543
  }, [
3531
- R(E.$slots, "content", {
3544
+ A(E.$slots, "content", {
3532
3545
  close: g,
3533
3546
  isOpen: d.value
3534
3547
  })
@@ -3536,13 +3549,13 @@ const N1 = /* @__PURE__ */ M1(_2, [["render", tn]]), ln = {
3536
3549
  ], 8, ["to"])) : k("", !0)
3537
3550
  ], 34));
3538
3551
  }
3539
- }), Cn = {}, vn = { class: "pointer-events-auto rounded-lg overflow-hidden border border-default bg-primary shadow-xl dark:shadow-black/25" };
3540
- function hn(n, t) {
3541
- return o(), i("div", vn, [
3542
- R(n.$slots, "default")
3552
+ }), c0 = {}, C0 = { class: "pointer-events-auto rounded-lg overflow-hidden border border-default bg-primary shadow-xl dark:shadow-black/25" };
3553
+ function v0(n, t) {
3554
+ return o(), i("div", C0, [
3555
+ A(n.$slots, "default")
3543
3556
  ]);
3544
3557
  }
3545
- const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3558
+ const W1 = /* @__PURE__ */ M1(c0, [["render", v0]]), h0 = {
3546
3559
  key: 0,
3547
3560
  class: "flex items-center justify-between px-4 pb-4"
3548
3561
  }, C4 = /* @__PURE__ */ $({
@@ -3560,7 +3573,7 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3560
3573
  },
3561
3574
  emits: ["change", "close", "open"],
3562
3575
  setup(n, { emit: t }) {
3563
- const e = t, l = L(), s = L(null), r = (m) => {
3576
+ const e = t, l = b(), s = b(null), r = (m) => {
3564
3577
  var d;
3565
3578
  n.mode === "immediate" ? (e("change", m), (d = l.value) == null || d.close()) : s.value = m;
3566
3579
  }, a = () => {
@@ -3582,7 +3595,7 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3582
3595
  onOpen: C
3583
3596
  }, {
3584
3597
  default: Z((h) => [
3585
- R(m.$slots, "trigger", {
3598
+ A(m.$slots, "trigger", {
3586
3599
  visible: h.visible
3587
3600
  })
3588
3601
  ]),
@@ -3595,7 +3608,7 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3595
3608
  "disabled-dates": m.disabledDates,
3596
3609
  onChange: r
3597
3610
  }, null, 8, ["value", "format", "disabled-dates"]),
3598
- m.mode === "confirmation" || m.clearable ? (o(), i("footer", mn, [
3611
+ m.mode === "confirmation" || m.clearable ? (o(), i("footer", h0, [
3599
3612
  m.clearable ? (o(), V(p(j), {
3600
3613
  key: 0,
3601
3614
  icon: "trash",
@@ -3618,10 +3631,10 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3618
3631
  _: 3
3619
3632
  }, 8, ["placement", "disabled"]));
3620
3633
  }
3621
- }), gn = { class: "inline-flex" }, bn = {
3634
+ }), m0 = { class: "inline-flex" }, g0 = {
3622
3635
  key: 0,
3623
3636
  class: "flex flex-col gap-0"
3624
- }, Ln = { class: "text-sm text-secondary" }, v4 = /* @__PURE__ */ $({
3637
+ }, b0 = { class: "text-sm text-secondary" }, v4 = /* @__PURE__ */ $({
3625
3638
  __name: "PopConfirm",
3626
3639
  props: {
3627
3640
  order: {},
@@ -3645,7 +3658,7 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3645
3658
  },
3646
3659
  emits: ["cancel", "close", "confirm"],
3647
3660
  setup(n, { emit: t }) {
3648
- const e = t, l = L(), s = L(), { trapFocus: r } = X5(s), a = () => {
3661
+ const e = t, l = b(), s = b(), { trapFocus: r } = X5(s), a = () => {
3649
3662
  e("close"), l.value && l.value.close();
3650
3663
  }, f = () => D1(r), C = () => {
3651
3664
  a(), e("cancel");
@@ -3661,10 +3674,10 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3661
3674
  onOpen: f,
3662
3675
  onClose: a
3663
3676
  }, {
3664
- default: Z((b) => [
3665
- u("div", gn, [
3666
- R(d.$slots, "trigger", {
3667
- visible: b && b.visible
3677
+ default: Z((L) => [
3678
+ u("div", m0, [
3679
+ A(d.$slots, "trigger", {
3680
+ visible: L && L.visible
3668
3681
  })
3669
3682
  ])
3670
3683
  ]),
@@ -3679,9 +3692,9 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3679
3692
  "p-2": !(d.title || d.description)
3680
3693
  }])
3681
3694
  }, [
3682
- d.title || d.description ? (o(), i("section", bn, [
3695
+ d.title || d.description ? (o(), i("section", g0, [
3683
3696
  u("h5", null, K(d.title), 1),
3684
- u("p", Ln, K(d.description), 1)
3697
+ u("p", b0, K(d.description), 1)
3685
3698
  ])) : k("", !0),
3686
3699
  w(p(E1), {
3687
3700
  vertical: !(d.title || d.description),
@@ -3708,13 +3721,13 @@ const W1 = /* @__PURE__ */ M1(Cn, [["render", hn]]), mn = {
3708
3721
  _: 3
3709
3722
  }, 8, ["placement", "offset-options"]));
3710
3723
  }
3711
- }), yn = {};
3712
- function Hn(n, t) {
3724
+ }), L0 = {};
3725
+ function y0(n, t) {
3713
3726
  return " To be implemented ";
3714
3727
  }
3715
- const h4 = /* @__PURE__ */ M1(yn, [["render", Hn]]);
3728
+ const h4 = /* @__PURE__ */ M1(L0, [["render", y0]]);
3716
3729
  var b1 = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.IDLE = "idle", n.LOADING = "loading", n.MATCH = "match", n.NO_MATCH = "no match", n))(b1 || {});
3717
- const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3730
+ const H0 = ["onKeydown"], V0 = /* @__PURE__ */ $({
3718
3731
  __name: "option",
3719
3732
  props: {
3720
3733
  option: {},
@@ -3723,7 +3736,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3723
3736
  },
3724
3737
  emits: ["click", "focus", "hover"],
3725
3738
  setup(n, { emit: t }) {
3726
- const e = n, l = t, s = L(), r = O(() => e.hoveredOption && e.hoveredOption.label === e.option.label), a = () => {
3739
+ const e = n, l = t, s = b(), r = O(() => e.hoveredOption && e.hoveredOption.id === e.option.id), a = () => {
3727
3740
  e.option.disabled || l("click");
3728
3741
  };
3729
3742
  return (f, C) => (o(), i("div", {
@@ -3738,14 +3751,14 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3738
3751
  "bg-primary": !r.value
3739
3752
  }]),
3740
3753
  onClick: a,
3741
- onKeydown: _(U(a, ["prevent"]), ["enter"]),
3754
+ onKeydown: _(x(a, ["prevent"]), ["enter"]),
3742
3755
  onMouseover: C[0] || (C[0] = (m) => l("hover", f.option.id)),
3743
3756
  onFocus: C[1] || (C[1] = (m) => l("focus", f.option.id))
3744
3757
  }, [
3745
- R(f.$slots, "default")
3746
- ], 42, Vn));
3758
+ A(f.$slots, "default")
3759
+ ], 42, H0));
3747
3760
  }
3748
- }), wn = { class: "flex items-center px-2 pb-2 space-x-2" }, Mn = /* @__PURE__ */ $({
3761
+ }), k0 = { class: "flex items-center px-2 pb-2 space-x-2" }, w0 = /* @__PURE__ */ $({
3749
3762
  __name: "ResultFilters",
3750
3763
  props: {
3751
3764
  selected: {},
@@ -3755,8 +3768,8 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3755
3768
  emits: ["change"],
3756
3769
  setup(n, { emit: t }) {
3757
3770
  const e = t;
3758
- return (l, s) => (o(), i("section", wn, [
3759
- (o(!0), i(M, null, m1(l.filters, (r) => (o(), V(p(U2), {
3771
+ return (l, s) => (o(), i("section", k0, [
3772
+ (o(!0), i(M, null, m1(l.filters, (r) => (o(), V(p(x2), {
3760
3773
  key: r.name,
3761
3774
  active: !!(l.selected && l.selected.name === r.name),
3762
3775
  count: r.count,
@@ -3766,25 +3779,25 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3766
3779
  }, null, 8, ["active", "count", "label", "onClick"]))), 128))
3767
3780
  ]));
3768
3781
  }
3769
- }), Zn = {
3782
+ }), M0 = {
3770
3783
  key: 0,
3771
3784
  class: "border-b border-default"
3772
- }, $n = {
3785
+ }, Z0 = {
3773
3786
  key: 0,
3774
3787
  class: "flex items-center w-full px-3 space-x-2 bg-primary overflow-hidden"
3775
- }, Dn = ["placeholder", "onKeydown"], Bn = {
3788
+ }, $0 = ["placeholder", "onKeydown"], D0 = {
3776
3789
  key: 2,
3777
3790
  class: "flex-1"
3778
- }, Sn = { class: "flex items-center space-x-2 bg-primary text-tertiary py-3 px-3" }, Tn = { class: "italic leading-none text-sm" }, zn = {
3791
+ }, B0 = { class: "flex items-center space-x-2 bg-primary text-tertiary py-3 px-3" }, S0 = { class: "italic leading-none text-sm" }, T0 = {
3779
3792
  key: 3,
3780
3793
  class: "flex-1"
3781
- }, An = { class: "flex space-x-2 bg-primary text-tertiary py-3 px-3" }, Rn = { class: "italic leading-none text-sm" }, En = {
3794
+ }, z0 = { class: "flex space-x-2 bg-primary text-tertiary py-3 px-3" }, A0 = { class: "italic leading-none text-sm" }, R0 = {
3782
3795
  key: 4,
3783
3796
  class: "flex-1"
3784
- }, On = { class: "flex items-center space-x-2 bg-primary text-tertiary py-3 px-3" }, In = { class: "italic leading-none text-sm" }, Pn = { class: "max-h-60 bg-primary" }, Nn = { class: "flex items-center space-x-2" }, Fn = {
3797
+ }, E0 = { class: "flex items-center space-x-2 bg-primary text-tertiary py-3 px-3" }, O0 = { class: "italic leading-none text-sm" }, I0 = { class: "max-h-60 bg-primary" }, P0 = { class: "flex items-center space-x-2" }, N0 = {
3785
3798
  key: 0,
3786
3799
  class: "text-secondary"
3787
- }, Un = {
3800
+ }, F0 = {
3788
3801
  key: 6,
3789
3802
  class: "flex-none border-t border-default bg-primary"
3790
3803
  }, at = /* @__PURE__ */ $({
@@ -3815,74 +3828,74 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3815
3828
  },
3816
3829
  emits: ["close", "save-custom", "select"],
3817
3830
  setup(n, { expose: t, emit: e }) {
3818
- const l = n, s = e, r = R1(), a = L(null), f = L([]), C = L(""), m = L(), d = L(), h = L(), b = L(), c = L(), H = L(), v = L(l.resultFilters || []), g = L(l.resultFilters ? l.resultFilters[0] : null), { nextFrame: T } = Ce(), z = O(() => l.selected ? Array.isArray(l.selected) ? l.selected : [l.selected] : []), y = O(() => f.value.every((A) => A.disabled)), S = O(() => !C.value.length && !f.value.length), W = O(() => C.value.length && !f.value.length), Q = O(() => {
3831
+ const l = n, s = e, r = R1(), a = b(null), f = b([]), C = b(""), m = b(), d = b(), h = b(), L = b(), c = b(), y = b(), v = b(l.resultFilters || []), g = b(l.resultFilters ? l.resultFilters[0] : null), { nextFrame: z } = Ce(), T = O(() => l.selected ? Array.isArray(l.selected) ? l.selected : [l.selected] : []), H = O(() => f.value.every((R) => R.disabled)), S = O(() => !C.value.length && !f.value.length), Y = O(() => C.value.length && !f.value.length), Q = O(() => {
3819
3832
  if (d.value) return b1.ERROR;
3820
3833
  if (l.loading) return b1.LOADING;
3821
- if (W.value && !l.loading) return b1.NO_MATCH;
3834
+ if (Y.value && !l.loading) return b1.NO_MATCH;
3822
3835
  if (S.value && !l.loading) return b1.IDLE;
3823
3836
  if (f.value.length && !l.loading) return b1.MATCH;
3824
- }), s1 = (A) => {
3825
- f.value = g.value ? A.filter(g.value.execute) : A, l.resultFilters && v.value.forEach((x) => {
3826
- x.count = A.filter(x.execute).length;
3837
+ }), s1 = (R) => {
3838
+ f.value = g.value ? R.filter(g.value.execute) : R, l.resultFilters && v.value.forEach((U) => {
3839
+ U.count = R.filter(U.execute).length;
3827
3840
  });
3828
3841
  };
3829
3842
  i1(
3830
3843
  () => l.options,
3831
- (A) => {
3832
- s1(A), a.value = null;
3844
+ (R) => {
3845
+ s1(R), a.value = null;
3833
3846
  }
3834
3847
  ), A1(() => {
3835
3848
  l.filterable && l.remoteMethod && console.warn('[PopSelect] should not have both "filterable" and "remoteMethod" props at the same time'), s1(l.options);
3836
3849
  });
3837
3850
  const f1 = () => c.value.close(), E = () => c.value.open(), I = async () => {
3838
- T(() => {
3839
- H.value && T(() => H.value.update()), h.value && T(() => h.value.focus());
3851
+ z(() => {
3852
+ y.value && z(() => y.value.update()), h.value && z(() => h.value.focus());
3840
3853
  });
3841
3854
  }, G = () => {
3842
3855
  l.keepOpen || (a.value = null, l.resetOnClose && (C.value = "", l.remoteMethod ? l.remoteMethod("") : s1([]), g.value = l.resultFilters ? l.resultFilters[0] : null), s("close"));
3843
- }, P = (A) => {
3844
- s("select", A), l.keepOpen || f1();
3845
- }, N = (A) => f.value = l.options.filter((x) => x.label.toLowerCase().includes(A.toLowerCase())), S1 = W2(async (A) => {
3846
- const x = A.target.value;
3847
- a.value = null, l.filterable ? N(x) : l.remoteMethod && await l.remoteMethod(x);
3848
- }, l.debounceMs), g1 = (A) => {
3849
- a.value = f.value.find((x) => x.id === A) || null;
3850
- }, F = (A) => {
3851
- if (!b.value.length) return;
3852
- const x = b.value[f.value.findIndex((q) => q.label === A.label)].$el;
3853
- if (H.value && x) {
3854
- const q = H.value.$el.querySelector(".scrollbar__wrap");
3855
- q && (st(q, x), H.value.handleScroll());
3856
+ }, P = (R) => {
3857
+ s("select", R), l.keepOpen || f1();
3858
+ }, N = (R) => f.value = l.options.filter((U) => U.label.toLowerCase().includes(R.toLowerCase())), S1 = W2(async (R) => {
3859
+ const U = R.target.value;
3860
+ a.value = null, l.filterable ? N(U) : l.remoteMethod && await l.remoteMethod(U);
3861
+ }, l.debounceMs), g1 = (R) => {
3862
+ a.value = f.value.find((U) => U.id === R) || null;
3863
+ }, F = (R) => {
3864
+ if (!L.value.length) return;
3865
+ const U = L.value[f.value.findIndex((q) => q.label === R.label)].$el;
3866
+ if (y.value && U) {
3867
+ const q = y.value.$el.querySelector(".scrollbar__wrap");
3868
+ q && (st(q, U), y.value.handleScroll());
3856
3869
  }
3857
- }, Y = async (A) => {
3870
+ }, W = async (R) => {
3858
3871
  if (f.value.length === 0) return;
3859
- let x = f.value.findIndex((q) => {
3872
+ let U = f.value.findIndex((q) => {
3860
3873
  var d1;
3861
3874
  return q.label === ((d1 = a.value) == null ? void 0 : d1.label);
3862
3875
  });
3863
- y.value || (A === "next" ? (x++, x === f.value.length && (x = 0)) : A === "prev" && (x--, x < 0 && (x = f.value.length - 1)), a.value = f.value[x], a.value.disabled === !0 && Y(A), await D1(), a.value && F(a.value));
3876
+ H.value || (R === "next" ? (U++, U === f.value.length && (U = 0)) : R === "prev" && (U--, U < 0 && (U = f.value.length - 1)), a.value = f.value[U], a.value.disabled === !0 && W(R), await D1(), a.value && F(a.value));
3864
3877
  }, o1 = () => {
3865
3878
  a.value ? P(a.value) : C.value.length && s("save-custom", C.value);
3866
- }, v1 = (A) => {
3867
- g.value = A, s1(l.options), h.value.focus();
3879
+ }, v1 = (R) => {
3880
+ g.value = R, s1(l.options), h.value.focus();
3868
3881
  };
3869
- return t({ close: f1, focus: E }), (A, x) => (o(), V(p(Y1), {
3882
+ return t({ close: f1, focus: E }), (R, U) => (o(), V(p(Y1), {
3870
3883
  ref_key: "popperRef",
3871
3884
  ref: c,
3872
3885
  trigger: "click",
3873
- placement: A.placement,
3874
- disabled: A.disabled,
3875
- "popper-width-class": A.popperWidthClass,
3876
- "same-width-as-element": A.sameWidthAsElement,
3877
- "same-width-as-trigger": A.sameWidthAsTrigger,
3878
- "root-class": A.rootClass,
3879
- "trigger-class": A.triggerClass,
3886
+ placement: R.placement,
3887
+ disabled: R.disabled,
3888
+ "popper-width-class": R.popperWidthClass,
3889
+ "same-width-as-element": R.sameWidthAsElement,
3890
+ "same-width-as-trigger": R.sameWidthAsTrigger,
3891
+ "root-class": R.rootClass,
3892
+ "trigger-class": R.triggerClass,
3880
3893
  onClose: G,
3881
3894
  onOpen: I
3882
3895
  }, {
3883
3896
  default: Z((q) => [
3884
- R(A.$slots, "trigger", {
3885
- disabled: A.disabled,
3897
+ A(R.$slots, "trigger", {
3898
+ disabled: R.disabled,
3886
3899
  visible: q && q.visible
3887
3900
  })
3888
3901
  ]),
@@ -3890,37 +3903,37 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3890
3903
  w(p(W1), {
3891
3904
  ref_key: "contentRef",
3892
3905
  ref: m,
3893
- class: D(["flex flex-col", { "h-72": A.fixedHeight }])
3906
+ class: D(["flex flex-col", { "h-72": R.fixedHeight }])
3894
3907
  }, {
3895
3908
  default: Z(() => [
3896
- A.filterable || A.remoteMethod || A.resultFilters ? (o(), i("header", Zn, [
3897
- A.filterable || A.remoteMethod ? (o(), i("header", $n, [
3909
+ R.filterable || R.remoteMethod || R.resultFilters ? (o(), i("header", M0, [
3910
+ R.filterable || R.remoteMethod ? (o(), i("header", Z0, [
3898
3911
  w(p(l1), {
3899
3912
  name: "magnifying-glass",
3900
3913
  class: "text-light-blue"
3901
3914
  }),
3902
- x1(u("input", {
3915
+ U1(u("input", {
3903
3916
  ref_key: "inputRef",
3904
3917
  ref: h,
3905
- "onUpdate:modelValue": x[0] || (x[0] = (q) => C.value = q),
3918
+ "onUpdate:modelValue": U[0] || (U[0] = (q) => C.value = q),
3906
3919
  type: "text",
3907
3920
  class: "w-full h-8 text-sm leading-none bg-primary rounded-tr-lg focus:outline-hidden",
3908
- placeholder: A.placeholder,
3909
- onClick: x[1] || (x[1] = U(() => {
3921
+ placeholder: R.placeholder,
3922
+ onClick: U[1] || (U[1] = x(() => {
3910
3923
  }, ["stop", "prevent"])),
3911
- onInput: x[2] || (x[2] = //@ts-ignore
3924
+ onInput: U[2] || (U[2] = //@ts-ignore
3912
3925
  (...q) => p(S1) && p(S1)(...q)),
3913
3926
  onKeydown: [
3914
- x[3] || (x[3] = _(U((q) => Y("next"), ["prevent"]), ["down"])),
3915
- x[4] || (x[4] = _(U((q) => Y("prev"), ["prevent"]), ["up"])),
3916
- _(U(o1, ["prevent"]), ["enter"]),
3917
- _(U(G, ["stop", "prevent"]), ["esc"])
3927
+ U[3] || (U[3] = _(x((q) => W("next"), ["prevent"]), ["down"])),
3928
+ U[4] || (U[4] = _(x((q) => W("prev"), ["prevent"]), ["up"])),
3929
+ _(x(o1, ["prevent"]), ["enter"]),
3930
+ _(x(G, ["stop", "prevent"]), ["esc"])
3918
3931
  ]
3919
- }, null, 40, Dn), [
3932
+ }, null, 40, $0), [
3920
3933
  [Vt, C.value]
3921
3934
  ])
3922
3935
  ])) : k("", !0),
3923
- A.resultFilters ? (o(), V(Mn, {
3936
+ R.resultFilters ? (o(), V(w0, {
3924
3937
  key: 1,
3925
3938
  "show-counts": "",
3926
3939
  filters: v.value,
@@ -3928,50 +3941,50 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3928
3941
  onChange: v1
3929
3942
  }, null, 8, ["filters", "selected"])) : k("", !0)
3930
3943
  ])) : k("", !0),
3931
- A.$slots.error ? (o(), i("div", {
3944
+ R.$slots.error ? (o(), i("div", {
3932
3945
  key: 1,
3933
3946
  ref_key: "errorRef",
3934
3947
  ref: d,
3935
3948
  class: "flex-1 bg-primary h-full"
3936
3949
  }, [
3937
- R(A.$slots, "error")
3938
- ], 512)) : Q.value === p(b1).LOADING ? (o(), i("div", Bn, [
3939
- u("div", Sn, [
3950
+ A(R.$slots, "error")
3951
+ ], 512)) : Q.value === p(b1).LOADING ? (o(), i("div", D0, [
3952
+ u("div", B0, [
3940
3953
  w(p(N1), { class: "w-4 h-4 text-granite-grey" }),
3941
- u("span", Tn, K(A.loadingText), 1)
3954
+ u("span", S0, K(R.loadingText), 1)
3942
3955
  ])
3943
- ])) : Q.value === p(b1).NO_MATCH ? (o(), i("div", zn, [
3944
- u("div", An, [
3945
- x[5] || (x[5] = u("div", { class: "w-4 h-4 text-center leading-none" }, " ... ", -1)),
3946
- u("span", Rn, K(A.noMatchText), 1)
3956
+ ])) : Q.value === p(b1).NO_MATCH ? (o(), i("div", T0, [
3957
+ u("div", z0, [
3958
+ U[5] || (U[5] = u("div", { class: "w-4 h-4 text-center leading-none" }, " ... ", -1)),
3959
+ u("span", A0, K(R.noMatchText), 1)
3947
3960
  ])
3948
- ])) : Q.value === p(b1).IDLE ? (o(), i("div", En, [
3949
- u("div", On, [
3950
- w(p(l1), { name: A.emptyStateIcon }, null, 8, ["name"]),
3951
- u("span", In, K(A.emptyStateText), 1)
3961
+ ])) : Q.value === p(b1).IDLE ? (o(), i("div", R0, [
3962
+ u("div", E0, [
3963
+ w(p(l1), { name: R.emptyStateIcon }, null, 8, ["name"]),
3964
+ u("span", O0, K(R.emptyStateText), 1)
3952
3965
  ]),
3953
- x[6] || (x[6] = u("div", { class: "h-8 w-full bg-primary" }, null, -1))
3966
+ U[6] || (U[6] = u("div", { class: "h-8 w-full bg-primary" }, null, -1))
3954
3967
  ])) : Q.value === p(b1).MATCH ? (o(), V(p(q1), {
3955
3968
  key: 5,
3956
3969
  ref_key: "scrollbarRef",
3957
- ref: H
3970
+ ref: y
3958
3971
  }, {
3959
3972
  default: Z(() => [
3960
- u("div", Pn, [
3961
- (o(!0), i(M, null, m1(f.value, (q) => (o(), V(kn, {
3973
+ u("div", I0, [
3974
+ (o(!0), i(M, null, m1(f.value, (q) => (o(), V(V0, {
3962
3975
  ref_for: !0,
3963
3976
  ref_key: "optionsRef",
3964
- ref: b,
3977
+ ref: L,
3965
3978
  key: q.id,
3966
3979
  option: q,
3967
3980
  "hovered-option": a.value,
3968
- selected: z.value.includes(q),
3981
+ selected: T.value.includes(q),
3969
3982
  onFocus: g1,
3970
3983
  onHover: g1,
3971
3984
  onClick: (d1) => P(q)
3972
3985
  }, {
3973
3986
  default: Z(() => [
3974
- u("div", Nn, [
3987
+ u("div", P0, [
3975
3988
  q.icon ? (o(), V(p(l1), {
3976
3989
  key: 0,
3977
3990
  name: q.icon
@@ -3982,7 +3995,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3982
3995
  highlight: C.value
3983
3996
  }, null, 8, ["value", "highlight"])
3984
3997
  ]),
3985
- q.meta ? (o(), i("div", Fn, K(q.meta), 1)) : k("", !0)
3998
+ q.meta ? (o(), i("div", N0, K(q.meta), 1)) : k("", !0)
3986
3999
  ]),
3987
4000
  _: 2
3988
4001
  }, 1032, ["option", "hovered-option", "selected", "onClick"]))), 128))
@@ -3990,8 +4003,8 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
3990
4003
  ]),
3991
4004
  _: 1
3992
4005
  }, 512)) : k("", !0),
3993
- p(r).footer ? (o(), i("footer", Un, [
3994
- R(A.$slots, "footer")
4006
+ p(r).footer ? (o(), i("footer", F0, [
4007
+ A(R.$slots, "footer")
3995
4008
  ])) : k("", !0)
3996
4009
  ]),
3997
4010
  _: 3
@@ -4008,7 +4021,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4008
4021
  },
4009
4022
  emits: ["click", "close"],
4010
4023
  setup(n, { emit: t }) {
4011
- const e = n, l = t, s = L(""), r = Re({ backdropFilter: "" });
4024
+ const e = n, l = t, s = b(""), r = Re({ backdropFilter: "" });
4012
4025
  return A1(() => {
4013
4026
  e.type === "default" ? (s.value = "bg-black/25 dark:bg-black/50", r.backdropFilter = "") : e.type === "blurred" && (s.value = "bg-black/25", r.backdropFilter = "blur(3px)");
4014
4027
  }), (a, f) => (o(), V(de, {
@@ -4021,12 +4034,12 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4021
4034
  onAfterLeave: f[1] || (f[1] = (C) => l("close"))
4022
4035
  }, {
4023
4036
  default: Z(() => [
4024
- x1(u("div", {
4037
+ U1(u("div", {
4025
4038
  class: D(["z-40 fixed w-screen h-screen top-0 left-0 flex items-center justify-center pointer-events-auto p-4", s.value]),
4026
4039
  style: t1(r),
4027
- onMousedown: f[0] || (f[0] = U((C) => l("click"), ["self"]))
4040
+ onMousedown: f[0] || (f[0] = x((C) => l("click"), ["self"]))
4028
4041
  }, [
4029
- R(a.$slots, "default")
4042
+ A(a.$slots, "default")
4030
4043
  ], 38), [
4031
4044
  [X1, a.show]
4032
4045
  ])
@@ -4034,7 +4047,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4034
4047
  _: 3
4035
4048
  }));
4036
4049
  }
4037
- }), xn = {
4050
+ }), x0 = {
4038
4051
  offset: "offsetWidth",
4039
4052
  scroll: "scrollLeft",
4040
4053
  scrollSize: "scrollWidth",
@@ -4043,7 +4056,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4043
4056
  axis: "X",
4044
4057
  client: "clientX",
4045
4058
  direction: "left"
4046
- }, Yn = {
4059
+ }, U0 = {
4047
4060
  offset: "offsetHeight",
4048
4061
  scroll: "scrollTop",
4049
4062
  scrollSize: "scrollHeight",
@@ -4052,7 +4065,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4052
4065
  axis: "Y",
4053
4066
  client: "clientY",
4054
4067
  direction: "top"
4055
- }, Wn = ["aria-label", "aria-valuenow"], Se = /* @__PURE__ */ $({
4068
+ }, Y0 = ["aria-label", "aria-valuenow"], Se = /* @__PURE__ */ $({
4056
4069
  __name: "Bar",
4057
4070
  props: {
4058
4071
  vertical: { type: Boolean },
@@ -4061,13 +4074,13 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4061
4074
  },
4062
4075
  emits: ["move", "update"],
4063
4076
  setup(n, { emit: t }) {
4064
- const e = n, l = t, s = L(), r = L(), a = L(!1), f = e.vertical ? Yn : xn, C = L(0), m = (g) => {
4077
+ const e = n, l = t, s = b(), r = b(), a = b(!1), f = e.vertical ? U0 : x0, C = b(0), m = (g) => {
4065
4078
  if (!a.value) return;
4066
- const T = C.value;
4067
- if (!T) return;
4068
- const z = s.value.getBoundingClientRect();
4069
- if (z) {
4070
- const y = ((z[f.direction] || 0) - (g[f.client] || 0)) * -1, S = r.value && typeof r.value[f.offset] == "number" ? r.value[f.offset] - T : 0, W = s.value ? Number(s.value[f.offset]) : 0, Q = W ? (y - S) * 100 / W : 0;
4079
+ const z = C.value;
4080
+ if (!z) return;
4081
+ const T = s.value.getBoundingClientRect();
4082
+ if (T) {
4083
+ const H = ((T[f.direction] || 0) - (g[f.client] || 0)) * -1, S = r.value && typeof r.value[f.offset] == "number" ? r.value[f.offset] - z : 0, Y = s.value ? Number(s.value[f.offset]) : 0, Q = Y ? (H - S) * 100 / Y : 0;
4071
4084
  l("update", {
4072
4085
  scrollReference: f.scroll,
4073
4086
  positionPercentage: Q,
@@ -4078,22 +4091,22 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4078
4091
  a.value = !1, C.value = 0, document.removeEventListener("mousemove", m), document.onselectstart = null;
4079
4092
  }, h = (g) => {
4080
4093
  g.stopImmediatePropagation(), a.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", d), document.onselectstart = () => !1;
4081
- }, b = (g) => {
4094
+ }, L = (g) => {
4082
4095
  if (!(g.ctrlKey || g.button === 2) && (h(g), g.currentTarget)) {
4083
- const T = g.currentTarget[f.offset], z = g[f.client], S = g.currentTarget.getBoundingClientRect()[f.direction];
4084
- C.value = T - (z - S);
4096
+ const z = g.currentTarget[f.offset], T = g[f.client], S = g.currentTarget.getBoundingClientRect()[f.direction];
4097
+ C.value = z - (T - S);
4085
4098
  }
4086
4099
  }, c = (g) => {
4087
- const T = g.target.getBoundingClientRect();
4088
- if (T) {
4089
- const z = T[f.direction], y = g[f.client], S = Math.abs((z ? Number(z) : 0) - (y ? Number(y) : 0)), W = r.value[f.offset] / 2, Q = s.value ? Number(s.value[f.offset]) : 0, s1 = Q ? (S - W) * 100 / Q : 0;
4100
+ const z = g.target.getBoundingClientRect();
4101
+ if (z) {
4102
+ const T = z[f.direction], H = g[f.client], S = Math.abs((T ? Number(T) : 0) - (H ? Number(H) : 0)), Y = r.value[f.offset] / 2, Q = s.value ? Number(s.value[f.offset]) : 0, s1 = Q ? (S - Y) * 100 / Q : 0;
4090
4103
  l("update", {
4091
4104
  scrollReference: f.scroll,
4092
4105
  positionPercentage: s1,
4093
4106
  scrollSize: f.scrollSize
4094
4107
  });
4095
4108
  }
4096
- }, H = () => {
4109
+ }, y = () => {
4097
4110
  const g = `translate${f.axis}(${e.move}%)`;
4098
4111
  return {
4099
4112
  [f.size]: e.size,
@@ -4104,18 +4117,18 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4104
4117
  }, v = (g) => {
4105
4118
  e.vertical ? g.key === "ArrowUp" ? (l("move", -1), g.preventDefault(), g.stopPropagation()) : g.key === "ArrowDown" && (l("move", 1), g.preventDefault(), g.stopPropagation()) : g.key === "ArrowLeft" ? (l("move", -1), g.preventDefault(), g.stopPropagation()) : g.key === "ArrowRight" && (l("move", 1), g.preventDefault(), g.stopPropagation());
4106
4119
  };
4107
- return (g, T) => (o(), i("div", {
4120
+ return (g, z) => (o(), i("div", {
4108
4121
  ref_key: "scrollbarRef",
4109
4122
  ref: s,
4110
4123
  class: D(`scrollbar__bar is-${p(f).key}`),
4111
- onClick: T[1] || (T[1] = U(() => {
4124
+ onClick: z[1] || (z[1] = x(() => {
4112
4125
  }, ["stop", "prevent"])),
4113
- onMousedown: U(c, ["stop", "prevent"])
4126
+ onMousedown: x(c, ["stop", "prevent"])
4114
4127
  }, [
4115
4128
  u("div", {
4116
4129
  ref_key: "thumbRef",
4117
4130
  ref: r,
4118
- style: t1(H()),
4131
+ style: t1(y()),
4119
4132
  class: "scrollbar__thumb",
4120
4133
  tabindex: "0",
4121
4134
  role: "slider",
@@ -4123,11 +4136,11 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4123
4136
  "aria-valuenow": e.move || 0,
4124
4137
  "aria-valuemin": "0",
4125
4138
  "aria-valuemax": "100",
4126
- onClick: T[0] || (T[0] = U(() => {
4139
+ onClick: z[0] || (z[0] = x(() => {
4127
4140
  }, ["stop", "prevent"])),
4128
- onMousedown: U(b, ["stop", "prevent"]),
4141
+ onMousedown: x(L, ["stop", "prevent"]),
4129
4142
  onKeydown: v
4130
- }, null, 44, Wn)
4143
+ }, null, 44, Y0)
4131
4144
  ], 34));
4132
4145
  }
4133
4146
  }), q1 = /* @__PURE__ */ $({
@@ -4148,56 +4161,56 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4148
4161
  setup(n, { expose: t, emit: e }) {
4149
4162
  const l = n, s = e;
4150
4163
  let r;
4151
- const a = L(6), f = L(0), C = L(0), m = L(0), d = L("0"), h = L("0"), b = Re({
4164
+ const a = b(6), f = b(0), C = b(0), m = b(0), d = b("0"), h = b("0"), L = Re({
4152
4165
  marginRight: "",
4153
4166
  marginBottom: ""
4154
- }), c = { height: 100, width: 100 }, H = ["scrollbar__wrap"];
4155
- !a.value && H.push("scrollbar__wrap--hidden-default"), l.wrapClass && H.push(l.wrapClass);
4156
- const v = L(), g = L(), T = () => {
4167
+ }), c = { height: 100, width: 100 }, y = ["scrollbar__wrap"];
4168
+ !a.value && y.push("scrollbar__wrap--hidden-default"), l.wrapClass && y.push(l.wrapClass);
4169
+ const v = b(), g = b(), z = () => {
4157
4170
  C.value = v.value.scrollTop * 100 / v.value.clientHeight, f.value = v.value.scrollLeft * 100 / v.value.clientWidth, s("scroll", v.value.scrollTop);
4158
4171
  const E = v.value.scrollTop + v.value.clientHeight, I = v.value.scrollHeight;
4159
4172
  if (m.value > 0 && v.value.scrollTop === 0 ? s("intersect", { edge: "top", hit: !0 }) : m.value === 0 && v.value.scrollTop > 0 ? s("intersect", { edge: "top", hit: !1 }) : m.value + v.value.clientHeight < I && E === I ? s("intersect", { edge: "bottom", hit: !0 }) : m.value + v.value.clientHeight === I && E < I && s("intersect", { edge: "bottom", hit: !1 }), l.triggers)
4160
4173
  for (const G of l.triggers)
4161
4174
  m.value < G.px && v.value.scrollTop >= G.px ? G.callback(G, "down") : m.value > G.px && v.value.scrollTop <= G.px && G.callback(G, "up");
4162
4175
  m.value = v.value.scrollTop;
4163
- }, z = () => ({
4176
+ }, T = () => ({
4164
4177
  heightPercentage: v.value.clientHeight * 100 / v.value.scrollHeight,
4165
4178
  widthPercentage: v.value.clientWidth * 100 / v.value.scrollWidth
4166
- }), y = async () => {
4179
+ }), H = async () => {
4167
4180
  if (!v.value) return;
4168
4181
  await D1();
4169
- const { heightPercentage: E, widthPercentage: I } = z();
4170
- !E && !I || (l.disableX || (c.width === 100 && I < 100 ? s("scrollXActive", !0) : I === 100 && c.width < 100 && s("scrollXActive", !1), I === 100 ? b.marginBottom = "0px" : a.value && (b.marginBottom = `-${a.value}px`), c.width = I, h.value = I < 100 ? `${I}%` : ""), l.disableY || (c.height === 100 && E < 100 ? s("scrollYActive", !0) : E === 100 && c.height < 100 && s("scrollYActive", !1), E === 100 ? b.marginRight = "0px" : a.value && (b.marginRight = `-${a.value}px`), c.height = E, d.value = E < 100 ? `${E}%` : ""), T());
4182
+ const { heightPercentage: E, widthPercentage: I } = T();
4183
+ !E && !I || (l.disableX || (c.width === 100 && I < 100 ? s("scrollXActive", !0) : I === 100 && c.width < 100 && s("scrollXActive", !1), I === 100 ? L.marginBottom = "0px" : a.value && (L.marginBottom = `-${a.value}px`), c.width = I, h.value = I < 100 ? `${I}%` : ""), l.disableY || (c.height === 100 && E < 100 ? s("scrollYActive", !0) : E === 100 && c.height < 100 && s("scrollYActive", !1), E === 100 ? L.marginRight = "0px" : a.value && (L.marginRight = `-${a.value}px`), c.height = E, d.value = E < 100 ? `${E}%` : ""), z());
4171
4184
  };
4172
4185
  a1(async () => {
4173
- await D1(y), c.height === 100 && s("intersect", { edge: "top", hit: !0 }), l.windowResize && window.addEventListener("resize", y), l.noresize || (r = new MutationObserver(y), r.observe(g.value, {
4186
+ await D1(H), c.height === 100 && s("intersect", { edge: "top", hit: !0 }), l.windowResize && window.addEventListener("resize", H), l.noresize || (r = new MutationObserver(H), r.observe(g.value, {
4174
4187
  childList: !0,
4175
4188
  subtree: !0
4176
4189
  }));
4177
4190
  }), B1(() => {
4178
- !l.noresize && r.disconnect(), l.windowResize && window.removeEventListener("resize", y);
4191
+ !l.noresize && r.disconnect(), l.windowResize && window.removeEventListener("resize", H);
4179
4192
  });
4180
4193
  const S = (E) => {
4181
4194
  v.value[E.scrollReference] = E.positionPercentage * v.value[E.scrollSize] / 100;
4182
- }, W = (E, I) => {
4183
- E === "x" ? v.value.scrollBy({ left: I, behavior: "smooth" }) : v.value.scrollBy({ top: I, behavior: "smooth" }), T();
4195
+ }, Y = (E, I) => {
4196
+ E === "x" ? v.value.scrollBy({ left: I, behavior: "smooth" }) : v.value.scrollBy({ top: I, behavior: "smooth" }), z();
4184
4197
  };
4185
- return t({ handleScroll: T, reset: () => {
4186
- v.value.scrollTop = 0, T();
4198
+ return t({ handleScroll: z, reset: () => {
4199
+ v.value.scrollTop = 0, z();
4187
4200
  }, jumpToPercentage: (E, I) => {
4188
- E === "x" ? v.value.scrollLeft = v.value.scrollWidth * I / 100 : v.value.scrollTop = v.value.scrollHeight * I / 100, T();
4201
+ E === "x" ? v.value.scrollLeft = v.value.scrollWidth * I / 100 : v.value.scrollTop = v.value.scrollHeight * I / 100, z();
4189
4202
  }, scrollToPercentage: (E, I) => {
4190
- E === "x" ? v.value.scrollTo({ left: v.value.scrollWidth * I / 100, behavior: "smooth" }) : v.value.scrollTo({ top: v.value.scrollHeight * I / 100, behavior: "smooth" }), T();
4191
- }, update: y }), (E, I) => (o(), i("main", {
4203
+ E === "x" ? v.value.scrollTo({ left: v.value.scrollWidth * I / 100, behavior: "smooth" }) : v.value.scrollTo({ top: v.value.scrollHeight * I / 100, behavior: "smooth" }), z();
4204
+ }, update: H }), (E, I) => (o(), i("main", {
4192
4205
  class: D(["scrollbar scroll-hidden", [E.viewHeightClass, { show: E.show }]])
4193
4206
  }, [
4194
4207
  u("div", {
4195
4208
  id: "wrapRef",
4196
4209
  ref_key: "wrapRef",
4197
4210
  ref: v,
4198
- class: D(["relative", [H]]),
4199
- style: t1(b),
4200
- onScroll: T
4211
+ class: D(["relative", [y]]),
4212
+ style: t1(L),
4213
+ onScroll: z
4201
4214
  }, [
4202
4215
  (o(), V($1(l.tag), {
4203
4216
  ref_key: "contentRef",
@@ -4205,7 +4218,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4205
4218
  class: D(["scrollbar__view relative", [E.viewClass]])
4206
4219
  }, {
4207
4220
  default: Z(() => [
4208
- R(E.$slots, "default")
4221
+ A(E.$slots, "default")
4209
4222
  ]),
4210
4223
  _: 3
4211
4224
  }, 8, ["class"]))
@@ -4214,7 +4227,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4214
4227
  key: 0,
4215
4228
  move: f.value,
4216
4229
  size: h.value,
4217
- onMove: I[0] || (I[0] = (G) => W("x", G * 40)),
4230
+ onMove: I[0] || (I[0] = (G) => Y("x", G * 40)),
4218
4231
  onUpdate: S
4219
4232
  }, null, 8, ["move", "size"])),
4220
4233
  E.disableY ? k("", !0) : (o(), V(Se, {
@@ -4222,7 +4235,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4222
4235
  vertical: "",
4223
4236
  move: C.value,
4224
4237
  size: d.value,
4225
- onMove: I[1] || (I[1] = (G) => W("y", G * 40)),
4238
+ onMove: I[1] || (I[1] = (G) => Y("y", G * 40)),
4226
4239
  onUpdate: S
4227
4240
  }, null, 8, ["move", "size"]))
4228
4241
  ], 2));
@@ -4231,7 +4244,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4231
4244
  __name: "ScrollBottomLoader",
4232
4245
  emits: ["intersect"],
4233
4246
  setup(n, { emit: t }) {
4234
- const e = t, l = L(), s = L(null);
4247
+ const e = t, l = b(), s = b(null);
4235
4248
  return a1(() => {
4236
4249
  s.value = new IntersectionObserver(
4237
4250
  ([r]) => r.isIntersecting && e("intersect"),
@@ -4242,16 +4255,16 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4242
4255
  ref: l,
4243
4256
  class: "w-full h-16 flex items-center justify-center bg-white"
4244
4257
  }, [
4245
- r.$slots.default ? R(r.$slots, "default", { key: 0 }) : (o(), V(p(N1), {
4258
+ r.$slots.default ? A(r.$slots, "default", { key: 0 }) : (o(), V(p(N1), {
4246
4259
  key: 1,
4247
4260
  class: "w-6 h-6 text-granite-grey"
4248
4261
  }))
4249
4262
  ], 512));
4250
4263
  }
4251
- }), g4 = ["top", "bottom", "left", "right"], b4 = ["up", "down", "left", "right"], jn = {
4264
+ }), g4 = ["top", "bottom", "left", "right"], b4 = ["up", "down", "left", "right"], W0 = {
4252
4265
  key: 1,
4253
4266
  class: "text-xs"
4254
- }, Kn = /* @__PURE__ */ $({
4267
+ }, j0 = /* @__PURE__ */ $({
4255
4268
  __name: "SegmentButton",
4256
4269
  props: {
4257
4270
  active: { type: Boolean },
@@ -4271,7 +4284,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4271
4284
  key: 0,
4272
4285
  name: l.segment.icon
4273
4286
  }, null, 8, ["name"])) : k("", !0),
4274
- l.segment.label ? (o(), i("p", jn, K(l.segment.label), 1)) : k("", !0)
4287
+ l.segment.label ? (o(), i("p", W0, K(l.segment.label), 1)) : k("", !0)
4275
4288
  ], 2));
4276
4289
  }
4277
4290
  }), L4 = /* @__PURE__ */ $({
@@ -4285,7 +4298,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4285
4298
  const e = t, l = (s) => s.label === n.selectedSegment.label;
4286
4299
  return (s, r) => (o(), V(p(e1), { class: "gap-0.5 p-1 rounded-lg bg-secondary" }, {
4287
4300
  default: Z(() => [
4288
- (o(!0), i(M, null, m1(s.segments, (a) => (o(), V(Kn, {
4301
+ (o(!0), i(M, null, m1(s.segments, (a) => (o(), V(j0, {
4289
4302
  key: a.label,
4290
4303
  segment: a,
4291
4304
  active: l(a),
@@ -4310,10 +4323,10 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4310
4323
  style: t1({ top: t.small ? "-0.55rem" : "-0.63rem" }),
4311
4324
  class: D(["absolute bg-primary px-2 font-medium text-tertiary", { "text-[10px]": t.small, "text-xs": !t.small }])
4312
4325
  }, K(t.label), 7)) : k("", !0),
4313
- R(t.$slots, "default")
4326
+ A(t.$slots, "default")
4314
4327
  ], 2));
4315
4328
  }
4316
- }), Qn = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, qn = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, H4 = /* @__PURE__ */ $({
4329
+ }), K0 = { class: "list-none flex items-center w-full overflow-hidden bg-primary" }, Q0 = { class: "flex-1 w-full overflow-hidden flex items-center gap-2" }, H4 = /* @__PURE__ */ $({
4317
4330
  __name: "SelectListOption",
4318
4331
  props: {
4319
4332
  hoveredOption: {},
@@ -4326,7 +4339,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4326
4339
  emits: ["click", "delete", "focus", "hover"],
4327
4340
  setup(n, { emit: t }) {
4328
4341
  const e = t, l = O(() => n.variant === "checkbox" || n.variant === "single"), s = O(() => n.hoveredOption ? "id" in n.hoveredOption && "id" in n.option ? n.hoveredOption.id === n.option.id : n.hoveredOption && n.hoveredOption.label === n.option.label : !1), r = () => e("click");
4329
- return (a, f) => (o(), i("li", Qn, [
4342
+ return (a, f) => (o(), i("li", K0, [
4330
4343
  (o(), V($1(l.value ? "button" : "div"), {
4331
4344
  disabled: a.option.disabled,
4332
4345
  class: D(["w-full overflow-hidden rounded-lg flex items-center px-2 py-1 gap-2", {
@@ -4342,7 +4355,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4342
4355
  onFocus: f[2] || (f[2] = (C) => e("focus", a.option))
4343
4356
  }, {
4344
4357
  default: Z(() => [
4345
- u("main", qn, [
4358
+ u("main", Q0, [
4346
4359
  a.variant === "checkbox" ? (o(), V(p(nt), {
4347
4360
  key: 0,
4348
4361
  disabled: a.option.disabled,
@@ -4393,17 +4406,17 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4393
4406
  }, 40, ["disabled", "class"]))
4394
4407
  ]));
4395
4408
  }
4396
- }), Xn = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, Gn = { class: "flex flex-col items-center justify-center" }, Jn = { class: "flex items-center justify-center w-12 h-12" }, _1 = /* @__PURE__ */ $({
4409
+ }), q0 = { class: "flex-1 h-full flex flex-col items-center justify-center gap-2" }, X0 = { class: "flex flex-col items-center justify-center" }, G0 = { class: "flex items-center justify-center w-12 h-12" }, _1 = /* @__PURE__ */ $({
4397
4410
  __name: "StatusCard",
4398
4411
  props: {
4399
4412
  status: {},
4400
4413
  variant: {}
4401
4414
  },
4402
4415
  setup(n) {
4403
- return (t, e) => (o(), i("div", Xn, [
4404
- u("div", Gn, [
4405
- u("div", Jn, [
4406
- R(t.$slots, "default")
4416
+ return (t, e) => (o(), i("div", q0, [
4417
+ u("div", X0, [
4418
+ u("div", G0, [
4419
+ A(t.$slots, "default")
4407
4420
  ])
4408
4421
  ]),
4409
4422
  u("span", {
@@ -4415,7 +4428,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4415
4428
  }, K(t.status), 3)
4416
4429
  ]));
4417
4430
  }
4418
- }), _n = /* @__PURE__ */ $({
4431
+ }), J0 = /* @__PURE__ */ $({
4419
4432
  __name: "ErrorCard",
4420
4433
  props: {
4421
4434
  message: {}
@@ -4473,7 +4486,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4473
4486
  _: 1
4474
4487
  }, 8, ["status"]));
4475
4488
  }
4476
- }), e0 = /* @__PURE__ */ $({
4489
+ }), _0 = /* @__PURE__ */ $({
4477
4490
  __name: "IdleCard",
4478
4491
  setup(n) {
4479
4492
  return (t, e) => (o(), V(p(_1), {
@@ -4499,7 +4512,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4499
4512
  _: 1
4500
4513
  }));
4501
4514
  }
4502
- }), t0 = /* @__PURE__ */ $({
4515
+ }), en = /* @__PURE__ */ $({
4503
4516
  __name: "LoadingCard",
4504
4517
  setup(n) {
4505
4518
  return (t, e) => (o(), V(p(_1), {
@@ -4512,7 +4525,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4512
4525
  _: 1
4513
4526
  }));
4514
4527
  }
4515
- }), l0 = /* @__PURE__ */ $({
4528
+ }), tn = /* @__PURE__ */ $({
4516
4529
  __name: "NoMatchCard",
4517
4530
  setup(n) {
4518
4531
  return (t, e) => (o(), V(p(_1), {
@@ -4567,22 +4580,22 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4567
4580
  _: 1
4568
4581
  }));
4569
4582
  }
4570
- }), n0 = {
4583
+ }), ln = {
4571
4584
  key: 0,
4572
4585
  class: "flex-0 flex flex-col gap-2 p-2 border-b border-default"
4573
- }, o0 = {
4586
+ }, nn = {
4574
4587
  key: 0,
4575
4588
  class: ""
4576
- }, s0 = {
4589
+ }, on = {
4577
4590
  key: 1,
4578
4591
  class: "flex items-center gap-1"
4579
- }, a0 = { class: "text-sm text-muted italic" }, r0 = { class: "flex-1 max-h-72 h-full overflow-hidden flex flex-col" }, i0 = {
4592
+ }, sn = { class: "text-sm text-muted italic" }, an = { class: "flex-1 max-h-72 h-full overflow-hidden flex flex-col" }, rn = {
4580
4593
  key: 1,
4581
4594
  class: "flex-initial max-h-72 flex flex-col border-t border-default"
4582
- }, d0 = { class: "flex-none flex items-center justify-between gap-1 px-4 py-1" }, u0 = {
4595
+ }, dn = { class: "flex-none flex items-center justify-between gap-1 px-4 py-1" }, un = {
4583
4596
  key: 0,
4584
4597
  class: "px-4 h-8 flex items-center text-ui-label-14-regular text-disabled-font"
4585
- }, p0 = { class: "flex-0" }, V4 = /* @__PURE__ */ $({
4598
+ }, pn = { class: "flex-0" }, V4 = /* @__PURE__ */ $({
4586
4599
  __name: "SelectList",
4587
4600
  props: {
4588
4601
  identifier: { default: "label" },
@@ -4604,14 +4617,14 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4604
4617
  },
4605
4618
  emits: ["escape", "selectQuery", "select"],
4606
4619
  setup(n, { expose: t, emit: e }) {
4607
- const l = n, s = e, { nextFrame: r } = Ce(), a = L(null), f = L([]), C = L(""), m = L(), d = L(), h = L(), b = L(), c = L(), H = L(l.filters ? l.filters[0] : null), v = L(!1), g = L(!1), T = L(""), z = (B) => {
4620
+ const l = n, s = e, { nextFrame: r } = Ce(), a = b(null), f = b([]), C = b(""), m = b(), d = b(), h = b(), L = b(), c = b(), y = b(l.filters ? l.filters[0] : null), v = b(!1), g = b(!1), z = b(""), T = (B) => {
4608
4621
  if (!Array.isArray(B)) throw new Error("Item passed must be an Array");
4609
4622
  return B.length === 0 ? !1 : "options" in B[0];
4610
- }, y = O(() => z(l.options)), S = O(() => y.value ? l.options.flatMap((B) => B.options) : l.options), W = O(() => l.loading ? "loading" : l.errorMessage ? "error" : C.value.length && !f.value.length ? "no match" : f.value.length ? "match" : "idle"), Q = O(() => l.selected && "length" in l.selected), s1 = O(() => l.selected ? Q.value ? l.selected.length : 1 : 0), f1 = O(() => l.selected ? H.value ? l.selected.length >= S.value.filter(H.value.execute).length : Q.value ? l.selected.length === S.value.length : !1 : !1), E = O(() => l.selected ? Q.value ? !l.selected.length : !l.selected : !0);
4623
+ }, H = O(() => T(l.options)), S = O(() => H.value ? l.options.flatMap((B) => B.options) : l.options), Y = O(() => l.loading ? "loading" : l.errorMessage ? "error" : C.value.length && !f.value.length ? "no match" : f.value.length ? "match" : "idle"), Q = O(() => l.selected && "length" in l.selected), s1 = O(() => l.selected ? Q.value ? l.selected.length : 1 : 0), f1 = O(() => l.selected ? y.value ? l.selected.length >= S.value.filter(y.value.execute).length : Q.value ? l.selected.length === S.value.length : !1 : !1), E = O(() => l.selected ? Q.value ? !l.selected.length : !l.selected : !0);
4611
4624
  i1(() => l.selected, (B) => {
4612
4625
  B && v.value && r(() => {
4613
4626
  if (h.value.update(), Q.value && s1.value) {
4614
- const J = b.value[b.value.length - 1].$el, p1 = c.value.$el.querySelector(".scrollbar__wrap");
4627
+ const J = L.value[L.value.length - 1].$el, p1 = c.value.$el.querySelector(".scrollbar__wrap");
4615
4628
  p1 && (st(p1, J), c.value.handleScroll());
4616
4629
  }
4617
4630
  });
@@ -4623,7 +4636,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4623
4636
  });
4624
4637
  }), B1(() => m.value.removeEventListener("keydown", I));
4625
4638
  const I = (B) => {
4626
- B.key === "Enter" ? P() : B.key === "Escape" ? s("escape") : B.key === "ArrowDown" ? A("next") : B.key === "ArrowUp" && A("prev");
4639
+ B.key === "Enter" ? P() : B.key === "Escape" ? s("escape") : B.key === "ArrowDown" ? R("next") : B.key === "ArrowUp" && R("prev");
4627
4640
  }, G = (B) => {
4628
4641
  if (Q.value) {
4629
4642
  const J = l.selected.map((p1) => p1.label).includes(B.label) ? [...l.selected.filter((p1) => p1.label !== B.label)] : [...l.selected, B];
@@ -4636,42 +4649,42 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4636
4649
  C.value = B, a.value = null, l.searchFunction && await l.searchFunction(B);
4637
4650
  }, S1 = l.searchDebounce ? ne(n1, l.searchDebounce) : n1, g1 = (B) => {
4638
4651
  var J;
4639
- if (y.value) {
4652
+ if (H.value) {
4640
4653
  const p1 = B;
4641
4654
  f.value = p1.map((Z1) => {
4642
4655
  var ye;
4643
4656
  return {
4644
4657
  ...Z1,
4645
- options: H.value ? Z1.options.filter((ye = H.value) == null ? void 0 : ye.execute) : Z1.options
4658
+ options: y.value ? Z1.options.filter((ye = y.value) == null ? void 0 : ye.execute) : Z1.options
4646
4659
  };
4647
4660
  });
4648
4661
  } else {
4649
4662
  const p1 = B;
4650
- f.value = H.value ? p1.filter((J = H.value) == null ? void 0 : J.execute) : p1;
4663
+ f.value = y.value ? p1.filter((J = y.value) == null ? void 0 : J.execute) : p1;
4651
4664
  }
4652
4665
  }, F = (B) => {
4653
- H.value = B, g1(l.options);
4654
- }, Y = () => {
4666
+ y.value = B, g1(l.options);
4667
+ }, W = () => {
4655
4668
  if (!Q.value) throw new Error('[SelectList@onToggleAll] method should not be called when "isMultiselect=false"');
4656
- s1.value === 0 || s1.value && !f1.value ? s("select", H.value ? S.value.filter(H.value.execute) : S.value) : s("select", []);
4669
+ s1.value === 0 || s1.value && !f1.value ? s("select", y.value ? S.value.filter(y.value.execute) : S.value) : s("select", []);
4657
4670
  }, o1 = (B) => a.value = S.value.find((J) => J[l.identifier] === B[l.identifier]) || null, v1 = O(() => {
4658
4671
  const B = Array.isArray(f.value) && f.value.length > 0 && "options" in f.value[0] ? f.value.flatMap((J) => J.options) : f.value;
4659
4672
  return B.length > 0 && B.every((J) => !!J.disabled);
4660
- }), A = async (B) => {
4673
+ }), R = async (B) => {
4661
4674
  if (f.value.length === 0) return;
4662
4675
  let J = S.value.findIndex((p1) => {
4663
4676
  var Z1;
4664
4677
  return p1.label === ((Z1 = a.value) == null ? void 0 : Z1.label);
4665
4678
  });
4666
- v1.value || (B === "next" ? (J++, J === f.value.length && (J = 0)) : B === "prev" && (J--, J < 0 && (J = f.value.length - 1)), a.value = S.value[J], a.value.disabled === !0 && A(B), await D1(), a.value && x(a.value));
4667
- }, x = (B) => {
4679
+ v1.value || (B === "next" ? (J++, J === f.value.length && (J = 0)) : B === "prev" && (J--, J < 0 && (J = f.value.length - 1)), a.value = S.value[J], a.value.disabled === !0 && R(B), await D1(), a.value && U(a.value));
4680
+ }, U = (B) => {
4668
4681
  if (!d.value.children.length) return;
4669
4682
  const J = null;
4670
4683
  h.value;
4671
4684
  }, q = () => {
4672
4685
  v.value = !v.value, c.value.update();
4673
- }, d1 = O(() => v.value && g.value ? T.value : "border-transparent"), V1 = (B) => {
4674
- B.hit ? B.edge === "bottom" && B.hit ? T.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : B.edge === "top" && B.hit && (T.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : T.value = "border-y-outline-subtle shadow-scroll-y";
4686
+ }, d1 = O(() => v.value && g.value ? z.value : "border-transparent"), V1 = (B) => {
4687
+ B.hit ? B.edge === "bottom" && B.hit ? z.value = "border-b-transparent border-t-outline-subtle shadow-scroll-top" : B.edge === "top" && B.hit && (z.value = "border-t-transparent border-b-outline-subtle shadow-scroll-bottom") : z.value = "border-y-outline-subtle shadow-scroll-y";
4675
4688
  }, L1 = (B) => {
4676
4689
  g.value = B;
4677
4690
  };
@@ -4679,7 +4692,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4679
4692
  // focusSearch,
4680
4693
  isMultiselect: Q,
4681
4694
  reset: () => {
4682
- C.value = "", l.searchFunction ? l.searchFunction("") : g1([]), H.value = l.filters ? l.filters[0] : null;
4695
+ C.value = "", l.searchFunction ? l.searchFunction("") : g1([]), y.value = l.filters ? l.filters[0] : null;
4683
4696
  },
4684
4697
  scrollbarRef: h
4685
4698
  }), (B, J) => (o(), i("div", {
@@ -4692,9 +4705,9 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4692
4705
  maxHeight: B.searchFunction ? void 0 : "100%"
4693
4706
  })
4694
4707
  }, [
4695
- B.$slots.header || B.searchFunction || B.filters || B.selectAll ? (o(), i("header", n0, [
4696
- R(B.$slots, "header"),
4697
- B.searchFunction ? (o(), i("section", o0, [
4708
+ B.$slots.header || B.searchFunction || B.filters || B.selectAll ? (o(), i("header", ln, [
4709
+ A(B.$slots, "header"),
4710
+ B.searchFunction ? (o(), i("section", nn, [
4698
4711
  w(p(z1), {
4699
4712
  class: "w-full",
4700
4713
  clearable: "",
@@ -4704,12 +4717,12 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4704
4717
  onClear: J[0] || (J[0] = (p1) => n1(""))
4705
4718
  }, null, 8, ["value", "placeholder", "onChange"])
4706
4719
  ])) : k("", !0),
4707
- B.filters ? (o(), i("section", s0, [
4720
+ B.filters ? (o(), i("section", on, [
4708
4721
  (o(!0), i(M, null, m1(B.filters, (p1) => (o(), V(p(j), {
4709
4722
  key: p1.name,
4710
4723
  small: "",
4711
4724
  variant: "textSubtle",
4712
- focus: !!(H.value && H.value.name === p1.name),
4725
+ focus: !!(y.value && y.value.name === p1.name),
4713
4726
  label: p1.name,
4714
4727
  onClick: (Z1) => F(p1)
4715
4728
  }, null, 8, ["focus", "label", "onClick"]))), 128))
@@ -4717,21 +4730,21 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4717
4730
  B.selectAll ? (o(), i("button", {
4718
4731
  key: 2,
4719
4732
  class: "cursor-pointer flex items-center gap-2 p-1 rounded-lg hover:bg-secondary active:bg-tertiary",
4720
- onClick: Y
4733
+ onClick: W
4721
4734
  }, [
4722
4735
  w(p(nt), {
4723
4736
  indeterminate: !!(s1.value && !f1.value),
4724
4737
  checked: f1.value,
4725
- onClick: Y
4738
+ onClick: W
4726
4739
  }, null, 8, ["indeterminate", "checked"]),
4727
- u("span", a0, K(B.selectAllLabel), 1)
4740
+ u("span", sn, K(B.selectAllLabel), 1)
4728
4741
  ])) : k("", !0)
4729
4742
  ])) : k("", !0),
4730
- u("main", r0, [
4731
- W.value === "error" ? (o(), V(p(_n), {
4743
+ u("main", an, [
4744
+ Y.value === "error" ? (o(), V(p(J0), {
4732
4745
  key: 0,
4733
4746
  message: B.errorMessage
4734
- }, null, 8, ["message"])) : W.value === "loading" ? (o(), V(p(t0), { key: 1 })) : W.value === "no match" ? (o(), V(p(l0), { key: 2 })) : W.value === "idle" ? (o(), V(p(e0), { key: 3 })) : W.value === "match" ? (o(), V(p(q1), {
4747
+ }, null, 8, ["message"])) : Y.value === "loading" ? (o(), V(p(en), { key: 1 })) : Y.value === "no match" ? (o(), V(p(tn), { key: 2 })) : Y.value === "idle" ? (o(), V(p(_0), { key: 3 })) : Y.value === "match" ? (o(), V(p(q1), {
4735
4748
  key: 4,
4736
4749
  ref_key: "scrollbarRef",
4737
4750
  ref: h,
@@ -4743,11 +4756,11 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4743
4756
  ref_key: "optionsRef",
4744
4757
  ref: d,
4745
4758
  class: D(["px-1", {
4746
- "py-1": B.small && y.value || !B.small && !y.value,
4747
- "py-2": !B.small && y.value
4759
+ "py-1": B.small && H.value || !B.small && !H.value,
4760
+ "py-2": !B.small && H.value
4748
4761
  }])
4749
4762
  }, [
4750
- R(B.$slots, "options", {
4763
+ A(B.$slots, "options", {
4751
4764
  options: f.value,
4752
4765
  hover: o1,
4753
4766
  hoveredOption: a.value,
@@ -4759,9 +4772,9 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4759
4772
  _: 3
4760
4773
  }, 512)) : k("", !0)
4761
4774
  ]),
4762
- B.$slots.footer ? (o(), i("footer", i0, [
4775
+ B.$slots.footer ? (o(), i("footer", rn, [
4763
4776
  B.showSelection ? (o(), i(M, { key: 0 }, [
4764
- u("header", d0, [
4777
+ u("header", dn, [
4765
4778
  w(p(j), {
4766
4779
  square: "",
4767
4780
  size: "tiny",
@@ -4784,15 +4797,15 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4784
4797
  }, {
4785
4798
  default: Z(() => [
4786
4799
  v.value ? (o(), i(M, { key: 0 }, [
4787
- E.value ? (o(), i("span", u0, K(B.nothingSelectedLabel), 1)) : k("", !0),
4800
+ E.value ? (o(), i("span", un, K(B.nothingSelectedLabel), 1)) : k("", !0),
4788
4801
  J[1] || (J[1] = u("section", { class: "w-full px-4 flex flex-wrap items-center gap-2" }, null, -1))
4789
4802
  ], 64)) : k("", !0)
4790
4803
  ]),
4791
4804
  _: 1
4792
4805
  }, 8, ["class", "view-height-class"])
4793
4806
  ], 64)) : k("", !0),
4794
- u("footer", p0, [
4795
- R(B.$slots, "footer")
4807
+ u("footer", pn, [
4808
+ A(B.$slots, "footer")
4796
4809
  ])
4797
4810
  ])) : k("", !0)
4798
4811
  ], 4));
@@ -4801,7 +4814,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4801
4814
  __name: "WindowFrame",
4802
4815
  setup(n, { expose: t }) {
4803
4816
  var l;
4804
- const e = L();
4817
+ const e = b();
4805
4818
  return t({
4806
4819
  focus: (l = e.value) == null ? void 0 : l.focus()
4807
4820
  }), (s, r) => (o(), i("div", {
@@ -4810,13 +4823,13 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4810
4823
  tabindex: "0",
4811
4824
  class: "w-full flex flex-col bg-primary shadow-xl border border-default rounded-xl focus:outline-hidden"
4812
4825
  }, [
4813
- R(s.$slots, "default")
4826
+ A(s.$slots, "default")
4814
4827
  ], 512));
4815
4828
  }
4816
- }), f0 = {
4829
+ }), fn = {
4817
4830
  key: 0,
4818
4831
  class: "px-6 flex items-center justify-between w-full h-12"
4819
- }, c0 = { class: "px-6" }, C0 = { class: "px-6" }, M4 = /* @__PURE__ */ $({
4832
+ }, cn = { class: "px-6" }, Cn = { class: "px-6" }, M4 = /* @__PURE__ */ $({
4820
4833
  __name: "SideOver",
4821
4834
  props: {
4822
4835
  closeable: { type: Boolean, default: !0 },
@@ -4829,7 +4842,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4829
4842
  },
4830
4843
  emits: ["close", "open"],
4831
4844
  setup(n, { expose: t, emit: e }) {
4832
- const l = e, s = R1(), r = L(!1), a = L();
4845
+ const l = e, s = R1(), r = b(!1), a = b();
4833
4846
  a1(() => r.value = !0);
4834
4847
  const f = () => r.value = !1, C = async () => {
4835
4848
  n.closeable && (n.interceptClose ? await n.interceptClose() && f() : f());
@@ -4838,13 +4851,13 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4838
4851
  const m = () => {
4839
4852
  l("open");
4840
4853
  };
4841
- return t({ close: f }), (d, h) => (o(), V(U1, { to: d.target }, [
4854
+ return t({ close: f }), (d, h) => (o(), V(x1, { to: d.target }, [
4842
4855
  w(p(ve), {
4843
4856
  show: r.value,
4844
4857
  type: d.overlayType,
4845
4858
  class: "p-4",
4846
4859
  onClick: C,
4847
- onClose: h[0] || (h[0] = (b) => l("close"))
4860
+ onClose: h[0] || (h[0] = (L) => l("close"))
4848
4861
  }, {
4849
4862
  default: Z(() => [
4850
4863
  w(de, {
@@ -4857,7 +4870,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4857
4870
  onAfterEnter: m
4858
4871
  }, {
4859
4872
  default: Z(() => [
4860
- x1(w(he, {
4873
+ U1(w(he, {
4861
4874
  ref_key: "panelRef",
4862
4875
  ref: a,
4863
4876
  class: D(["flex flex-col overflow-hidden w-full h-full focus:outline-hidden", [d.widthClass, {
@@ -4868,15 +4881,15 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4868
4881
  style: { "pointer-events": "auto" }
4869
4882
  }, {
4870
4883
  default: Z(() => [
4871
- d.$slots.default ? R(d.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Ae({
4884
+ d.$slots.default ? A(d.$slots, "default", { key: 0 }) : (o(), V(p(me), { key: 1 }, Ae({
4872
4885
  main: Z(() => [
4873
- u("main", c0, [
4874
- R(d.$slots, "main", { close: f })
4886
+ u("main", cn, [
4887
+ A(d.$slots, "main", { close: f })
4875
4888
  ])
4876
4889
  ]),
4877
4890
  footer: Z(() => [
4878
- u("footer", C0, [
4879
- R(d.$slots, "footer", { close: f })
4891
+ u("footer", Cn, [
4892
+ A(d.$slots, "footer", { close: f })
4880
4893
  ])
4881
4894
  ]),
4882
4895
  _: 2
@@ -4884,7 +4897,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4884
4897
  d.title || d.$slots.header ? {
4885
4898
  name: "header",
4886
4899
  fn: Z(() => [
4887
- d.title ? (o(), i("header", f0, [
4900
+ d.title ? (o(), i("header", fn, [
4888
4901
  u("h4", null, K(d.title), 1),
4889
4902
  d.closeable ? (o(), V(p(j), {
4890
4903
  key: 0,
@@ -4893,7 +4906,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4893
4906
  variant: "textSubtle",
4894
4907
  onClick: C
4895
4908
  })) : k("", !0)
4896
- ])) : R(d.$slots, "header", {
4909
+ ])) : A(d.$slots, "header", {
4897
4910
  key: 1,
4898
4911
  close: f
4899
4912
  })
@@ -4943,10 +4956,10 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4943
4956
  s.readonly ? "cursor-default" : "cursor-pointer focus-visible:outline focus-visible:-outline-offset-2 focus-visible:outline-black dark:focus-visible:outline-white"
4944
4957
  ], "group relative inline-flex flex-shrink-0 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200"]),
4945
4958
  style: t1({ width: s.small ? "1.75rem" : "2.75rem" }),
4946
- onClick: U(l, ["stop", "prevent"]),
4959
+ onClick: x(l, ["stop", "prevent"]),
4947
4960
  onKeydown: [
4948
- _(U(l, ["prevent"]), ["space"]),
4949
- _(U(l, ["prevent"]), ["enter"])
4961
+ _(x(l, ["prevent"]), ["space"]),
4962
+ _(x(l, ["prevent"]), ["enter"])
4950
4963
  ]
4951
4964
  }, {
4952
4965
  default: Z(() => [
@@ -4961,7 +4974,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4961
4974
  _: 1
4962
4975
  }, 40, ["tabindex", "aria-checked", "class", "style", "onKeydown"]));
4963
4976
  }
4964
- }), v0 = ["disabled"], h0 = { class: "relative" }, m0 = {
4977
+ }), vn = ["disabled"], hn = { class: "relative" }, mn = {
4965
4978
  key: 0,
4966
4979
  class: "absolute",
4967
4980
  style: { top: "0em", right: "-0.6em" }
@@ -4979,7 +4992,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
4979
4992
  },
4980
4993
  emits: ["select"],
4981
4994
  setup(n, { emit: t }) {
4982
- const e = n, l = t, s = L(), r = () => {
4995
+ const e = n, l = t, s = b(), r = () => {
4983
4996
  s.value.blur(), l("select", e.name);
4984
4997
  };
4985
4998
  return (a, f) => (o(), i("button", {
@@ -5000,21 +5013,21 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5000
5013
  "text-muted": a.disabled,
5001
5014
  "flex-grow": a.grow
5002
5015
  }]),
5003
- onClick: U(r, ["stop", "prevent"])
5016
+ onClick: x(r, ["stop", "prevent"])
5004
5017
  }, [
5005
5018
  a.icon && a.size === "default" ? (o(), V(p(l1), {
5006
5019
  key: 0,
5007
5020
  name: a.icon
5008
5021
  }, null, 8, ["name"])) : k("", !0),
5009
- u("span", h0, [
5022
+ u("span", hn, [
5010
5023
  Ee(K(a.name) + " ", 1),
5011
- a.notification ? (o(), i("div", m0, [
5024
+ a.notification ? (o(), i("div", mn, [
5012
5025
  w(p(_e))
5013
5026
  ])) : k("", !0)
5014
5027
  ])
5015
- ], 10, v0));
5028
+ ], 10, vn));
5016
5029
  }
5017
- }), g0 = { class: "truncate" }, B4 = /* @__PURE__ */ $({
5030
+ }), gn = { class: "truncate" }, B4 = /* @__PURE__ */ $({
5018
5031
  __name: "Tag",
5019
5032
  props: {
5020
5033
  label: {},
@@ -5038,7 +5051,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5038
5051
  key: 0,
5039
5052
  name: l.icon
5040
5053
  }, null, 8, ["name"])) : k("", !0),
5041
- u("span", g0, K(l.label), 1)
5054
+ u("span", gn, K(l.label), 1)
5042
5055
  ]),
5043
5056
  _: 1
5044
5057
  }),
@@ -5068,7 +5081,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5068
5081
  triggerFullWidth: { type: Boolean, default: !1 }
5069
5082
  },
5070
5083
  setup(n, { expose: t }) {
5071
- const e = n, l = L();
5084
+ const e = n, l = b();
5072
5085
  return t({ hide: () => {
5073
5086
  l.value && l.value.close();
5074
5087
  } }), (s, r) => (o(), V(p(Y1), {
@@ -5088,16 +5101,16 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5088
5101
  class: D(["z-50 min-w-0 px-2 py-1 rounded-md text-sm shadow-sm-md", [e.bgColorClass, e.textColorClass]])
5089
5102
  }, [
5090
5103
  u("span", null, K(e.text), 1),
5091
- R(s.$slots, "content")
5104
+ A(s.$slots, "content")
5092
5105
  ], 2)) : k("", !0)
5093
5106
  ]),
5094
5107
  default: Z(() => [
5095
- R(s.$slots, "default")
5108
+ A(s.$slots, "default")
5096
5109
  ]),
5097
5110
  _: 3
5098
5111
  }, 8, ["trigger", "open-delay", "offset-options", "root-class", "trigger-class", "placement"]));
5099
5112
  }
5100
- }), b0 = { class: "text-xs" }, L0 = /* @__PURE__ */ $({
5113
+ }), bn = { class: "text-xs" }, Ln = /* @__PURE__ */ $({
5101
5114
  __name: "EntryTag",
5102
5115
  props: {
5103
5116
  entry: {}
@@ -5119,7 +5132,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5119
5132
  onKeyup: _(l, ["delete"])
5120
5133
  }, {
5121
5134
  default: Z(() => [
5122
- u("div", b0, K(s.entry.value), 1),
5135
+ u("div", bn, K(s.entry.value), 1),
5123
5136
  u("button", {
5124
5137
  class: "group cursor-pointer w-4 h-4 rounded hover:bg-secondary active:bg-tertiary",
5125
5138
  onClick: l
@@ -5136,7 +5149,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5136
5149
  _: 1
5137
5150
  }, 8, ["text"]));
5138
5151
  }
5139
- }), y0 = ["value", "placeholder"], S4 = /* @__PURE__ */ $({
5152
+ }), yn = ["value", "placeholder"], S4 = /* @__PURE__ */ $({
5140
5153
  __name: "TagInput",
5141
5154
  props: {
5142
5155
  placeholder: { default: "Enter value, comma separated" },
@@ -5144,30 +5157,32 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5144
5157
  },
5145
5158
  emits: ["update:entries"],
5146
5159
  setup(n, { expose: t, emit: e }) {
5147
- const l = e, s = L(), r = L(""), a = L([]), f = (b) => {
5148
- a.value = [...a.value, ...m(b)], l("update:entries", a.value);
5149
- }, C = (b) => {
5150
- b.target && (r.value = b.target.value, (b.data === "," || r.value.includes(",")) && (a.value = [...a.value, ...m(r.value)], r.value = "", l("update:entries", a.value)));
5151
- }, m = (b) => b.trim().split(",").filter((c) => c.length).map((c, H) => {
5152
- const v = c.trim(), g = [...n.validators].reduce((T, z, y, S) => (z.validate(v) || (T = z.errorMessage(v), S.splice(1)), T), null);
5160
+ const l = e, s = b(), r = b(""), a = b([]), f = (c) => {
5161
+ a.value = [...a.value, ...m(c)], l("update:entries", a.value);
5162
+ }, C = (c) => {
5163
+ c.target && (r.value = c.target.value, (c.data === "," || r.value.includes(",")) && (a.value = [...a.value, ...m(r.value)], r.value = "", l("update:entries", a.value)));
5164
+ }, m = (c) => c.trim().split(",").filter((y) => y.length).map((y, v) => {
5165
+ const g = y.trim(), z = [...n.validators].reduce((T, H, S, Y) => (H.validate(g) || (T = H.errorMessage(g), Y.splice(1)), T), null);
5153
5166
  return {
5154
- id: H + v + Date.now(),
5155
- value: v,
5156
- error: g
5167
+ id: v + g + Date.now(),
5168
+ value: g,
5169
+ error: z
5157
5170
  };
5158
5171
  }), d = () => {
5159
5172
  if (r.value.length || !a.value.length) return;
5160
- const b = a.value[a.value.length - 1].id, c = document.getElementById(b);
5161
- c && c.focus();
5162
- }, h = (b) => {
5163
- var c;
5164
- a.value = a.value.filter((H) => H.id !== b), l("update:entries", a.value), (c = s.value) == null || c.focus();
5173
+ const c = a.value[a.value.length - 1].id, y = document.getElementById(c);
5174
+ y && y.focus();
5175
+ }, h = (c) => {
5176
+ var y;
5177
+ a.value = a.value.filter((v) => v.id !== c), l("update:entries", a.value), (y = s.value) == null || y.focus();
5165
5178
  };
5166
- return t({ importEntries: f, inputElement: s }), (b, c) => (o(), V(p(e1), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
5179
+ return t({ clear: () => {
5180
+ a.value = [], r.value = "", l("update:entries", a.value);
5181
+ }, importEntries: f, inputElement: s }), (c, y) => (o(), V(p(e1), { class: "flex-1 flex-wrap gap-1 px-2 py-1" }, {
5167
5182
  default: Z(() => [
5168
- (o(!0), i(M, null, m1(a.value, (H) => (o(), V(p(L0), {
5169
- key: H.id,
5170
- entry: H,
5183
+ (o(!0), i(M, null, m1(a.value, (v) => (o(), V(p(Ln), {
5184
+ key: v.id,
5185
+ entry: v,
5171
5186
  onDelete: h
5172
5187
  }, null, 8, ["entry"]))), 128)),
5173
5188
  u("input", {
@@ -5175,13 +5190,13 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5175
5190
  ref: s,
5176
5191
  type: "text",
5177
5192
  value: r.value,
5178
- placeholder: a.value.length ? "" : b.placeholder,
5193
+ placeholder: a.value.length ? "" : c.placeholder,
5179
5194
  class: "flex-1 min-w-0 h-6 text-xs leading-tight bg-transparent focus:outline-hidden",
5180
5195
  onKeyup: _(d, ["delete"]),
5181
- onChange: c[0] || (c[0] = U(() => {
5196
+ onChange: y[0] || (y[0] = x(() => {
5182
5197
  }, ["stop", "prevent"])),
5183
- onInput: U(C, ["stop", "prevent"])
5184
- }, null, 40, y0)
5198
+ onInput: x(C, ["stop", "prevent"])
5199
+ }, null, 40, yn)
5185
5200
  ]),
5186
5201
  _: 1
5187
5202
  }));
@@ -5189,7 +5204,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5189
5204
  }), T4 = {
5190
5205
  validate: (n) => /^[\w.%+-]+@[a-z0-9.-]+\.[a-z]{2,}$/i.test(n),
5191
5206
  errorMessage: () => "Invalid format."
5192
- }, H0 = {
5207
+ }, Hn = {
5193
5208
  key: 1,
5194
5209
  class: "text-xs leading-none"
5195
5210
  }, c1 = /* @__PURE__ */ $({
@@ -5230,7 +5245,7 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5230
5245
  key: 0,
5231
5246
  name: l.icon
5232
5247
  }, null, 8, ["name"])) : k("", !0),
5233
- l.label ? (o(), i("span", H0, K(l.label), 1)) : k("", !0)
5248
+ l.label ? (o(), i("span", Hn, K(l.label), 1)) : k("", !0)
5234
5249
  ]),
5235
5250
  _: 1
5236
5251
  }, 8, ["class"])
@@ -5238,13 +5253,13 @@ const Vn = ["onKeydown"], kn = /* @__PURE__ */ $({
5238
5253
  _: 1
5239
5254
  }, 8, ["text"]));
5240
5255
  }
5241
- }), V0 = {}, k0 = { class: "h-6 px-1" };
5242
- function w0(n, t) {
5243
- return o(), i("div", k0, [...t[0] || (t[0] = [
5256
+ }), Vn = {}, kn = { class: "h-6 px-1" };
5257
+ function wn(n, t) {
5258
+ return o(), i("div", kn, [...t[0] || (t[0] = [
5244
5259
  u("div", { class: "w-px h-full bg-tertiary" }, null, -1)
5245
5260
  ])]);
5246
5261
  }
5247
- const z4 = /* @__PURE__ */ M1(V0, [["render", w0]]), Te = Ne.create({
5262
+ const z4 = /* @__PURE__ */ M1(Vn, [["render", wn]]), Te = Ne.create({
5248
5263
  name: "enterKeyBehaviour",
5249
5264
  priority: 1e3,
5250
5265
  addOptions() {
@@ -5287,7 +5302,7 @@ const z4 = /* @__PURE__ */ M1(V0, [["render", w0]]), Te = Ne.create({
5287
5302
  onUpdate({ editor: n }) {
5288
5303
  this.options.modEnterOnly || this.storage.hasUsedNewline || (this.storage.isInList = n.isActive("bulletList") || n.isActive("orderedList") || n.isActive("listItem"), this.storage.isInList && this.editor.commands.setHasUsedNewline(!0));
5289
5304
  }
5290
- }), M0 = (n) => {
5305
+ }), Mn = (n) => {
5291
5306
  const { state: t } = n, { from: e, empty: l } = t.selection;
5292
5307
  if (!l) return null;
5293
5308
  const s = t.doc.textBetween(0, t.doc.content.size, `
@@ -5300,7 +5315,7 @@ const z4 = /* @__PURE__ */ M1(V0, [["render", w0]]), Te = Ne.create({
5300
5315
  for (; f < s.length && /\w/.test(s[f]); )
5301
5316
  f++;
5302
5317
  return s.slice(a + 1, f) || null;
5303
- }, Z0 = Ne.create({
5318
+ }, Zn = Ne.create({
5304
5319
  name: "pasteImage",
5305
5320
  addProseMirrorPlugins() {
5306
5321
  return [
@@ -5323,7 +5338,7 @@ const z4 = /* @__PURE__ */ M1(V0, [["render", w0]]), Te = Ne.create({
5323
5338
  })
5324
5339
  ];
5325
5340
  }
5326
- }), $0 = (n, t) => {
5341
+ }), $n = (n, t) => {
5327
5342
  const { state: e } = n, { from: l, empty: s } = e.selection;
5328
5343
  if (!s) return;
5329
5344
  const r = e.doc.textBetween(0, e.doc.content.size, `
@@ -5338,8 +5353,8 @@ const z4 = /* @__PURE__ */ M1(V0, [["render", w0]]), Te = Ne.create({
5338
5353
  const m = f + 1, d = C;
5339
5354
  n.chain().focus().command(({ tr: h }) => (h.insertText(t, m, d), !0)).run();
5340
5355
  };
5341
- function D0(n, t, e) {
5342
- const l = L(null), s = () => {
5356
+ function Dn(n, t, e) {
5357
+ const l = b(null), s = () => {
5343
5358
  var a, f, C;
5344
5359
  const r = ((C = (f = (a = n.value) == null ? void 0 : a.storage) == null ? void 0 : f[t]) == null ? void 0 : C[e]) ?? null;
5345
5360
  l.value !== r && (l.value = r);
@@ -5352,49 +5367,49 @@ function D0(n, t, e) {
5352
5367
  (r = n.value) == null || r.off("update", s), (a = n.value) == null || a.off("transaction", s);
5353
5368
  }), l;
5354
5369
  }
5355
- const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE__ */ $({
5370
+ const Bn = { class: "space-y-1" }, Sn = { class: "space-y-1" }, A4 = /* @__PURE__ */ $({
5356
5371
  __name: "InserLink",
5357
5372
  props: {
5358
5373
  editor: {}
5359
5374
  },
5360
5375
  emits: ["cancel", "inserted", "updateTargets"],
5361
5376
  setup(n, { emit: t }) {
5362
- const e = n, l = t, s = L(), r = L(), a = L(""), f = (y) => a.value = y, C = () => {
5363
- var y;
5364
- c.value ? z() : (y = d.value) == null || y.focus();
5365
- }, m = L(""), d = L(), h = (y) => m.value = y, b = () => {
5366
- c.value && z();
5377
+ const e = n, l = t, s = b(), r = b(), a = b(""), f = (H) => a.value = H, C = () => {
5378
+ var H;
5379
+ c.value ? T() : (H = d.value) == null || H.focus();
5380
+ }, m = b(""), d = b(), h = (H) => m.value = H, L = () => {
5381
+ c.value && T();
5367
5382
  }, c = O(() => {
5368
- var y, S;
5369
- return !m.value || !a.value ? !1 : ((y = m.value) == null ? void 0 : y.trim().length) > 0 && ((S = a.value) == null ? void 0 : S.trim().length) > 0;
5370
- }), H = L(!1), v = ([y, S]) => {
5383
+ var H, S;
5384
+ return !m.value || !a.value ? !1 : ((H = m.value) == null ? void 0 : H.trim().length) > 0 && ((S = a.value) == null ? void 0 : S.trim().length) > 0;
5385
+ }), y = b(!1), v = ([H, S]) => {
5371
5386
  var G, P;
5372
- const { state: W, view: Q } = e.editor, { empty: s1, from: f1 } = W.selection, I = W.doc.resolve(f1).marks().find((N) => N.type.name === "link");
5387
+ const { state: Y, view: Q } = e.editor, { empty: s1, from: f1 } = Y.selection, I = Y.doc.resolve(f1).marks().find((N) => N.type.name === "link");
5373
5388
  if (I)
5374
5389
  m.value = I.attrs.href;
5375
5390
  else if (s1)
5376
- a.value = M0(e.editor) || "", H.value = !0;
5391
+ a.value = Mn(e.editor) || "", y.value = !0;
5377
5392
  else {
5378
5393
  const { from: N, to: n1 } = Q.state.selection;
5379
- a.value = W.doc.textBetween(N, n1, "");
5394
+ a.value = Y.doc.textBetween(N, n1, "");
5380
5395
  }
5381
5396
  a.value.trim().length ? (G = d.value) == null || G.focus() : (P = r.value) == null || P.focus(), l("updateTargets", [S]);
5382
- }, g = () => l("updateTargets", []), T = () => {
5397
+ }, g = () => l("updateTargets", []), z = () => {
5383
5398
  m.value = "", a.value = "";
5384
- }, z = () => {
5385
- var y;
5399
+ }, T = () => {
5400
+ var H;
5386
5401
  if (m.value && !m.value.includes("http") && (m.value = `https://${m.value}`), m.value) {
5387
- if (e.editor.chain().focus().extendMarkRange("link").setLink({ href: m.value }).run(), H.value)
5388
- $0(e.editor, a.value);
5402
+ if (e.editor.chain().focus().extendMarkRange("link").setLink({ href: m.value }).run(), y.value)
5403
+ $n(e.editor, a.value);
5389
5404
  else {
5390
5405
  const S = e.editor.state.tr.insertText(a.value);
5391
5406
  e.editor.view.dispatch(S);
5392
5407
  }
5393
5408
  l("inserted");
5394
5409
  }
5395
- (y = s.value) == null || y.close(), T();
5410
+ (H = s.value) == null || H.close(), z();
5396
5411
  };
5397
- return (y, S) => (o(), V(p(Y1), {
5412
+ return (H, S) => (o(), V(p(Y1), {
5398
5413
  ref_key: "popperRef",
5399
5414
  ref: s,
5400
5415
  placement: "top",
@@ -5402,17 +5417,17 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5402
5417
  onOpen: v,
5403
5418
  onClose: g
5404
5419
  }, {
5405
- default: Z(({ visible: W }) => [
5420
+ default: Z(({ visible: Y }) => [
5406
5421
  w(c1, {
5407
5422
  icon: "link",
5408
- active: W
5423
+ active: Y
5409
5424
  }, null, 8, ["active"])
5410
5425
  ]),
5411
- content: Z(({ close: W }) => [
5426
+ content: Z(({ close: Y }) => [
5412
5427
  w(p(W1), { class: "p-4 flex flex-col gap-4" }, {
5413
5428
  default: Z(() => [
5414
5429
  S[2] || (S[2] = u("p", { class: "text-sm" }, " Insert link ", -1)),
5415
- u("section", B0, [
5430
+ u("section", Bn, [
5416
5431
  S[0] || (S[0] = u("div", {
5417
5432
  style: { "font-size": "11px" },
5418
5433
  class: "text-secondary font-medium"
@@ -5426,7 +5441,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5426
5441
  onEnter: C
5427
5442
  }, null, 8, ["value"])
5428
5443
  ]),
5429
- u("section", S0, [
5444
+ u("section", Sn, [
5430
5445
  S[1] || (S[1] = u("div", {
5431
5446
  style: { "font-size": "11px" },
5432
5447
  class: "text-secondary font-medium"
@@ -5437,7 +5452,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5437
5452
  placeholder: "Link to a web page",
5438
5453
  value: m.value || "",
5439
5454
  onChange: h,
5440
- onEnter: b
5455
+ onEnter: L
5441
5456
  }, null, 8, ["value"])
5442
5457
  ]),
5443
5458
  w(p(E1), {
@@ -5445,9 +5460,9 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5445
5460
  order: "confirm-last",
5446
5461
  "confirm-label": "Insert",
5447
5462
  "confirm-disabled": !c.value,
5448
- onConfirm: z,
5463
+ onConfirm: T,
5449
5464
  onCancel: (Q) => {
5450
- T(), W();
5465
+ z(), Y();
5451
5466
  }
5452
5467
  }, null, 8, ["confirm-disabled", "onCancel"])
5453
5468
  ]),
@@ -5463,7 +5478,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5463
5478
  editor: {}
5464
5479
  },
5465
5480
  setup(n) {
5466
- const t = L(), e = (s) => {
5481
+ const t = b(), e = (s) => {
5467
5482
  var f;
5468
5483
  const r = (f = s.target.files) == null ? void 0 : f[0];
5469
5484
  if (!r) return;
@@ -5490,38 +5505,38 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5490
5505
  }, null, 544)
5491
5506
  ], 64));
5492
5507
  }
5493
- }), T0 = { class: "p-4 space-y-2" }, rt = /* @__PURE__ */ $({
5508
+ }), Tn = { class: "p-4 space-y-2" }, rt = /* @__PURE__ */ $({
5494
5509
  __name: "Dialog",
5495
5510
  setup(n) {
5496
- return (t, e) => (o(), V(U1, { to: "#modals" }, [
5511
+ return (t, e) => (o(), V(x1, { to: "#modals" }, [
5497
5512
  w(p(W1), { class: "w-96" }, {
5498
5513
  default: Z(() => [
5499
- u("div", T0, [
5500
- R(t.$slots, "default")
5514
+ u("div", Tn, [
5515
+ A(t.$slots, "default")
5501
5516
  ])
5502
5517
  ]),
5503
5518
  _: 3
5504
5519
  })
5505
5520
  ]));
5506
5521
  }
5507
- }), z0 = { class: "space-y-1" }, A0 = { class: "space-y-1" }, R0 = /* @__PURE__ */ $({
5522
+ }), zn = { class: "space-y-1" }, An = { class: "space-y-1" }, Rn = /* @__PURE__ */ $({
5508
5523
  __name: "InsertLinkDialog",
5509
5524
  props: {
5510
5525
  editor: {}
5511
5526
  },
5512
5527
  emits: ["cancel", "inserted"],
5513
5528
  setup(n, { emit: t }) {
5514
- const e = n, l = t, s = L(null), r = L(null), a = L(), f = () => {
5529
+ const e = n, l = t, s = b(null), r = b(null), a = b(), f = () => {
5515
5530
  s.value = e.editor.getAttributes("link").href;
5516
- const { view: h, state: b } = e.editor;
5531
+ const { view: h, state: L } = e.editor;
5517
5532
  if (s.value) {
5518
5533
  const c = h.state.selection.ranges[0].$from.parent.content.content.filter(
5519
- (H) => H.marks.length > 0 && H.marks[0].attrs.href === s.value
5534
+ (y) => y.marks.length > 0 && y.marks[0].attrs.href === s.value
5520
5535
  );
5521
5536
  r.value = c[0].text;
5522
5537
  } else {
5523
- const { from: c, to: H } = h.state.selection;
5524
- r.value = b.doc.textBetween(c, H, "");
5538
+ const { from: c, to: y } = h.state.selection;
5539
+ r.value = L.doc.textBetween(c, y, "");
5525
5540
  }
5526
5541
  };
5527
5542
  A1(() => f()), a1(() => a.value.focus());
@@ -5532,11 +5547,11 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5532
5547
  e.editor.view.dispatch(h), l("inserted");
5533
5548
  }
5534
5549
  };
5535
- return (h, b) => (o(), V(rt, null, {
5550
+ return (h, L) => (o(), V(rt, null, {
5536
5551
  default: Z(() => [
5537
- b[3] || (b[3] = u("header", null, "Insert link", -1)),
5538
- u("section", z0, [
5539
- b[1] || (b[1] = u("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
5552
+ L[3] || (L[3] = u("header", null, "Insert link", -1)),
5553
+ u("section", zn, [
5554
+ L[1] || (L[1] = u("div", { class: "text-xs text-secondary" }, " Text to display ", -1)),
5540
5555
  w(p(z1), {
5541
5556
  ref_key: "inputRef",
5542
5557
  ref: a,
@@ -5545,8 +5560,8 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5545
5560
  onChange: m
5546
5561
  }, null, 8, ["value"])
5547
5562
  ]),
5548
- u("section", A0, [
5549
- b[2] || (b[2] = u("div", { class: "text-xs text-secondary" }, " Address ", -1)),
5563
+ u("section", An, [
5564
+ L[2] || (L[2] = u("div", { class: "text-xs text-secondary" }, " Address ", -1)),
5550
5565
  w(p(z1), {
5551
5566
  placeholder: "Link to a web page",
5552
5567
  value: s.value || "",
@@ -5556,17 +5571,17 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5556
5571
  w(p(E1), {
5557
5572
  "confirm-label": "Insert",
5558
5573
  onConfirm: d,
5559
- onCancel: b[0] || (b[0] = (c) => l("cancel"))
5574
+ onCancel: L[0] || (L[0] = (c) => l("cancel"))
5560
5575
  })
5561
5576
  ]),
5562
5577
  _: 1
5563
5578
  }));
5564
5579
  }
5565
- }), E0 = { class: "space-y-1" }, O0 = { class: "flex flex-1 justify-end" }, I0 = /* @__PURE__ */ $({
5580
+ }), En = { class: "space-y-1" }, On = { class: "flex flex-1 justify-end" }, In = /* @__PURE__ */ $({
5566
5581
  __name: "InsertTextDialog",
5567
5582
  emits: ["cancel", "insert"],
5568
5583
  setup(n, { emit: t }) {
5569
- const e = t, l = L(null), s = L();
5584
+ const e = t, l = b(null), s = b();
5570
5585
  a1(() => s.value.focus());
5571
5586
  const r = () => {
5572
5587
  e("cancel"), l.value = null;
@@ -5576,7 +5591,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5576
5591
  return (C, m) => (o(), V(rt, null, {
5577
5592
  default: Z(() => [
5578
5593
  m[0] || (m[0] = u("header", null, "Insert text", -1)),
5579
- u("section", E0, [
5594
+ u("section", En, [
5580
5595
  w(p(z1), {
5581
5596
  ref_key: "inputRef",
5582
5597
  ref: s,
@@ -5585,7 +5600,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5585
5600
  onChange: a
5586
5601
  }, null, 8, ["value"])
5587
5602
  ]),
5588
- u("div", O0, [
5603
+ u("div", On, [
5589
5604
  w(p(E1), {
5590
5605
  "confirm-label": "Insert",
5591
5606
  onConfirm: f,
@@ -5596,7 +5611,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5596
5611
  _: 1
5597
5612
  }));
5598
5613
  }
5599
- }), P0 = { key: 1 }, N0 = {
5614
+ }), Pn = { key: 1 }, Nn = {
5600
5615
  key: 0,
5601
5616
  class: "pr-1"
5602
5617
  }, E4 = /* @__PURE__ */ $({
@@ -5626,11 +5641,11 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5626
5641
  },
5627
5642
  emits: ["blur", "change", "focus"],
5628
5643
  setup(n, { expose: t, emit: e }) {
5629
- const l = n, s = e, r = L(!1), a = L(!1), f = L(!1), C = L(!1), m = L(), { disableClickOutside: d, enableClickOutside: h } = fe(() => a.value = !1), b = Ge({
5644
+ const l = n, s = e, r = b(!1), a = b(!1), f = b(!1), C = b(!1), m = b(), { disableClickOutside: d, enableClickOutside: h } = fe(() => a.value = !1), L = Ge({
5630
5645
  content: l.content,
5631
5646
  extensions: [
5632
5647
  Fe,
5633
- Ue,
5648
+ xe,
5634
5649
  oe,
5635
5650
  se,
5636
5651
  ae,
@@ -5639,7 +5654,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5639
5654
  We,
5640
5655
  je,
5641
5656
  Xe,
5642
- xe,
5657
+ Ue,
5643
5658
  Ke,
5644
5659
  qe,
5645
5660
  Qe.configure({
@@ -5658,23 +5673,23 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5658
5673
  }
5659
5674
  });
5660
5675
  B1(() => d());
5661
- const c = O(() => l.showMenu !== void 0 ? l.showMenu : a.value || !l.autoHideMenu), H = O(() => a.value ? "bg-1 border-b border-default opacity-100" : "bg-2 border-b border-subtle opacity-50"), v = O(() => a.value ? "bg-2 border-t border-default opacity-100" : "bg-2 border-t border-subtle opacity-50"), g = ["start", "end", "all"], T = (P) => {
5676
+ const c = O(() => l.showMenu !== void 0 ? l.showMenu : a.value || !l.autoHideMenu), y = O(() => a.value ? "bg-1 border-b border-default opacity-100" : "bg-2 border-b border-subtle opacity-50"), v = O(() => a.value ? "bg-2 border-t border-default opacity-100" : "bg-2 border-t border-subtle opacity-50"), g = ["start", "end", "all"], z = (P) => {
5662
5677
  var n1;
5663
5678
  const N = g.includes(P) ? P : "end";
5664
- (n1 = b.value) == null || n1.commands.focus(N);
5665
- }, z = () => {
5679
+ (n1 = L.value) == null || n1.commands.focus(N);
5680
+ }, T = () => {
5666
5681
  var P;
5667
- (P = b.value) == null || P.commands.blur(), a.value = !1;
5668
- }, y = () => C.value = !1, S = () => a.value = !0, W = () => C.value = !1, Q = (P) => {
5682
+ (P = L.value) == null || P.commands.blur(), a.value = !1;
5683
+ }, H = () => C.value = !1, S = () => a.value = !0, Y = () => C.value = !1, Q = (P) => {
5669
5684
  var N;
5670
- return (N = b.value) == null ? void 0 : N.commands.insertContent(P);
5685
+ return (N = L.value) == null ? void 0 : N.commands.insertContent(P);
5671
5686
  }, s1 = (P) => {
5672
5687
  Q(P), f.value = !1;
5673
5688
  }, f1 = () => C.value = !0, E = () => f.value = !0;
5674
- return t({ blur: z, closeInsert: () => f.value = !1, focus: T, setContent: (P) => {
5689
+ return t({ blur: T, closeInsert: () => f.value = !1, focus: z, setContent: (P) => {
5675
5690
  var N;
5676
- return (N = b.value) == null ? void 0 : N.commands.setContent(P);
5677
- } }), (P, N) => p(b) ? (o(), i("section", {
5691
+ return (N = L.value) == null ? void 0 : N.commands.setContent(P);
5692
+ } }), (P, N) => p(L) ? (o(), i("section", {
5678
5693
  key: 0,
5679
5694
  ref_key: "editorRef",
5680
5695
  ref: m,
@@ -5695,14 +5710,14 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5695
5710
  P.headerLabel || P.headerIcon ? (o(), V(p(e1), {
5696
5711
  key: 0,
5697
5712
  tag: "header",
5698
- class: D(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", H.value])
5713
+ class: D(["flex-0 h-10 px-3 gap-2 text-sm text-primary rounded-t-lg overflow-hidden", y.value])
5699
5714
  }, {
5700
5715
  default: Z(() => [
5701
5716
  P.headerIcon ? (o(), V(p(l1), {
5702
5717
  key: 0,
5703
5718
  name: P.headerIcon
5704
5719
  }, null, 8, ["name"])) : k("", !0),
5705
- P.headerLabel ? (o(), i("span", P0, K(P.headerLabel), 1)) : k("", !0)
5720
+ P.headerLabel ? (o(), i("span", Pn, K(P.headerLabel), 1)) : k("", !0)
5706
5721
  ]),
5707
5722
  _: 1
5708
5723
  }, 8, ["class"])) : k("", !0),
@@ -5717,7 +5732,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5717
5732
  [P.editorContentClasses]: !a.value,
5718
5733
  [P.editorContentFocusClasses]: a.value
5719
5734
  }]),
5720
- editor: p(b)
5735
+ editor: p(L)
5721
5736
  }, null, 8, ["class", "editor"])
5722
5737
  ]),
5723
5738
  _: 1
@@ -5735,14 +5750,14 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5735
5750
  icon: "undo",
5736
5751
  tooltip: "Undo",
5737
5752
  onClick: N[0] || (N[0] = (n1) => {
5738
- p(b).chain().focus().undo().run(), S();
5753
+ p(L).chain().focus().undo().run(), S();
5739
5754
  })
5740
5755
  }),
5741
5756
  w(c1, {
5742
5757
  icon: "redo",
5743
5758
  tooltip: "Redo",
5744
5759
  onClick: N[1] || (N[1] = (n1) => {
5745
- p(b).chain().focus().redo().run(), S();
5760
+ p(L).chain().focus().redo().run(), S();
5746
5761
  })
5747
5762
  })
5748
5763
  ], 64)) : k("", !0),
@@ -5750,25 +5765,25 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5750
5765
  w(c1, {
5751
5766
  icon: "bold",
5752
5767
  tooltip: "Bold",
5753
- active: p(b).isActive("bold"),
5768
+ active: p(L).isActive("bold"),
5754
5769
  onClick: N[2] || (N[2] = (n1) => {
5755
- p(b).chain().focus().toggleBold().run(), S();
5770
+ p(L).chain().focus().toggleBold().run(), S();
5756
5771
  })
5757
5772
  }, null, 8, ["active"]),
5758
5773
  w(c1, {
5759
5774
  icon: "italics",
5760
5775
  tooltip: "Italic",
5761
- active: p(b).isActive("italic"),
5776
+ active: p(L).isActive("italic"),
5762
5777
  onClick: N[3] || (N[3] = (n1) => {
5763
- p(b).chain().focus().toggleItalic().run(), S();
5778
+ p(L).chain().focus().toggleItalic().run(), S();
5764
5779
  })
5765
5780
  }, null, 8, ["active"]),
5766
5781
  w(c1, {
5767
5782
  icon: "underline",
5768
5783
  tooltip: "Underline",
5769
- active: p(b).isActive("underline"),
5784
+ active: p(L).isActive("underline"),
5770
5785
  onClick: N[4] || (N[4] = (n1) => {
5771
- p(b).chain().focus().toggleUnderline().run(), S();
5786
+ p(L).chain().focus().toggleUnderline().run(), S();
5772
5787
  })
5773
5788
  }, null, 8, ["active"])
5774
5789
  ], 64)) : k("", !0),
@@ -5776,25 +5791,25 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5776
5791
  key: 2,
5777
5792
  icon: "square-solid",
5778
5793
  tooltip: "Yellow highlight",
5779
- active: p(b).isActive("highlight"),
5794
+ active: p(L).isActive("highlight"),
5780
5795
  onClick: N[5] || (N[5] = (n1) => {
5781
- p(b).chain().focus().toggleHighlight().run(), S();
5796
+ p(L).chain().focus().toggleHighlight().run(), S();
5782
5797
  })
5783
5798
  }, null, 8, ["active"])) : k("", !0),
5784
5799
  p(oe) ? (o(), V(c1, {
5785
5800
  key: 3,
5786
5801
  icon: "heading",
5787
5802
  tooltip: "Heading",
5788
- active: p(b).isActive("heading", { level: 1 }),
5803
+ active: p(L).isActive("heading", { level: 1 }),
5789
5804
  onClick: N[6] || (N[6] = (n1) => {
5790
- p(b).chain().focus().toggleHeading({ level: 1 }).run(), S();
5805
+ p(L).chain().focus().toggleHeading({ level: 1 }).run(), S();
5791
5806
  })
5792
5807
  }, null, 8, ["active"])) : k("", !0),
5793
5808
  p(re) ? (o(), V(c1, {
5794
5809
  key: 4,
5795
5810
  icon: "link",
5796
5811
  tooltip: "Add link",
5797
- active: p(b).isActive("link"),
5812
+ active: p(L).isActive("link"),
5798
5813
  onClick: N[7] || (N[7] = (n1) => {
5799
5814
  f1(), S();
5800
5815
  })
@@ -5803,33 +5818,33 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5803
5818
  w(c1, {
5804
5819
  icon: "bullet-list",
5805
5820
  tooltip: "Bullet list",
5806
- active: p(b).isActive("bulletList"),
5821
+ active: p(L).isActive("bulletList"),
5807
5822
  onClick: N[8] || (N[8] = (n1) => {
5808
- p(b).chain().focus().toggleBulletList().run(), S();
5823
+ p(L).chain().focus().toggleBulletList().run(), S();
5809
5824
  })
5810
5825
  }, null, 8, ["active"]),
5811
5826
  w(c1, {
5812
5827
  icon: "numbered-list",
5813
5828
  tooltip: "Numbered list",
5814
- active: p(b).isActive("orderedList"),
5829
+ active: p(L).isActive("orderedList"),
5815
5830
  onClick: N[9] || (N[9] = (n1) => {
5816
- p(b).chain().focus().toggleOrderedList().run(), S();
5831
+ p(L).chain().focus().toggleOrderedList().run(), S();
5817
5832
  })
5818
5833
  }, null, 8, ["active"]),
5819
5834
  w(c1, {
5820
5835
  icon: "indent-right",
5821
5836
  tooltip: "Indent right",
5822
- disabled: !p(b).can().sinkListItem("listItem"),
5837
+ disabled: !p(L).can().sinkListItem("listItem"),
5823
5838
  onClick: N[10] || (N[10] = (n1) => {
5824
- p(b).chain().focus().sinkListItem("listItem").run(), S();
5839
+ p(L).chain().focus().sinkListItem("listItem").run(), S();
5825
5840
  })
5826
5841
  }, null, 8, ["disabled"]),
5827
5842
  w(c1, {
5828
5843
  icon: "indent-left",
5829
5844
  tooltip: "Indent left",
5830
- disabled: !p(b).can().liftListItem("listItem"),
5845
+ disabled: !p(L).can().liftListItem("listItem"),
5831
5846
  onClick: N[11] || (N[11] = (n1) => {
5832
- p(b).chain().focus().liftListItem("listItem").run(), S();
5847
+ p(L).chain().focus().liftListItem("listItem").run(), S();
5833
5848
  })
5834
5849
  }, null, 8, ["disabled"])
5835
5850
  ], 64)) : k("", !0),
@@ -5838,7 +5853,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5838
5853
  highlight: "",
5839
5854
  icon: P.insertIcon,
5840
5855
  tooltip: P.insertTooltip,
5841
- active: p(b).isActive("insert"),
5856
+ active: p(L).isActive("insert"),
5842
5857
  onClick: N[12] || (N[12] = (n1) => {
5843
5858
  E(), S();
5844
5859
  })
@@ -5846,21 +5861,21 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5846
5861
  ]),
5847
5862
  _: 1
5848
5863
  }),
5849
- P.$slots.menuRight ? (o(), i("div", N0, [
5850
- R(P.$slots, "menuRight")
5864
+ P.$slots.menuRight ? (o(), i("div", Nn, [
5865
+ A(P.$slots, "menuRight")
5851
5866
  ])) : k("", !0)
5852
5867
  ]),
5853
5868
  _: 3
5854
5869
  })
5855
5870
  ], 2)) : k("", !0),
5856
- C.value ? (o(), V(R0, {
5871
+ C.value ? (o(), V(Rn, {
5857
5872
  key: 2,
5858
- editor: p(b),
5859
- onInserted: W,
5860
- onCancel: y
5873
+ editor: p(L),
5874
+ onInserted: Y,
5875
+ onCancel: H
5861
5876
  }, null, 8, ["editor"])) : k("", !0),
5862
5877
  f.value ? (o(), i(M, { key: 3 }, [
5863
- P.$slots.insert ? R(P.$slots, "insert", { key: 0 }) : (o(), V(I0, {
5878
+ P.$slots.insert ? A(P.$slots, "insert", { key: 0 }) : (o(), V(In, {
5864
5879
  key: 1,
5865
5880
  onInsert: s1,
5866
5881
  onCancel: N[13] || (N[13] = (n1) => f.value = !1)
@@ -5871,7 +5886,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5871
5886
  }, 8, ["class"])
5872
5887
  ], 512)) : k("", !0);
5873
5888
  }
5874
- }), F0 = { class: "relative z-0" }, U0 = {
5889
+ }), Fn = { class: "relative z-0" }, xn = {
5875
5890
  key: 1,
5876
5891
  class: "relative z-10"
5877
5892
  }, it = /* @__PURE__ */ $({
@@ -5885,7 +5900,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5885
5900
  backgroundColor: { default: null }
5886
5901
  },
5887
5902
  setup(n) {
5888
- const t = n, e = L([]), l = O(() => {
5903
+ const t = n, e = b([]), l = O(() => {
5889
5904
  if (!t.backgroundColor) return "";
5890
5905
  const r = "ring-2 shadow-sm ";
5891
5906
  switch (t.backgroundColor) {
@@ -5913,9 +5928,9 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5913
5928
  d = f.indexOf(C, d + 1), d !== -1 && m.push(d, d + C.length);
5914
5929
  while (d > -1);
5915
5930
  const h = [];
5916
- let b = 0;
5931
+ let L = 0;
5917
5932
  for (const c of m)
5918
- h.push(r.substring(b, c)), b = c;
5933
+ h.push(r.substring(L, c)), L = c;
5919
5934
  return h.push(r.substring(m[m.length - 1], r.length)), h;
5920
5935
  };
5921
5936
  return A1(() => {
@@ -5925,7 +5940,7 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5925
5940
  (r) => {
5926
5941
  e.value = r ? s(t.value, r) : [];
5927
5942
  }
5928
- ), (r, a) => (o(), i("span", F0, [
5943
+ ), (r, a) => (o(), i("span", Fn, [
5929
5944
  e.value.length === 0 ? (o(), i(M, { key: 0 }, [
5930
5945
  Ee(K(r.value), 1)
5931
5946
  ], 64)) : (o(!0), i(M, { key: 1 }, m1(e.value, (f, C) => (o(), i(M, {
@@ -5941,17 +5956,17 @@ const B0 = { class: "space-y-1" }, S0 = { class: "space-y-1" }, A4 = /* @__PURE_
5941
5956
  l.value,
5942
5957
  r.textColorClass
5943
5958
  ]])
5944
- }, K(f), 3)) : (o(), i("span", U0, K(f), 1))
5959
+ }, K(f), 3)) : (o(), i("span", xn, K(f), 1))
5945
5960
  ], 64))), 128))
5946
5961
  ]));
5947
5962
  }
5948
- }), x0 = {}, Y0 = { class: "ProseMirror" };
5949
- function W0(n, t) {
5950
- return o(), i("section", Y0, [
5951
- R(n.$slots, "default")
5963
+ }), Un = {}, Yn = { class: "ProseMirror" };
5964
+ function Wn(n, t) {
5965
+ return o(), i("section", Yn, [
5966
+ A(n.$slots, "default")
5952
5967
  ]);
5953
5968
  }
5954
- const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
5969
+ const O4 = /* @__PURE__ */ M1(Un, [["render", Wn]]), I4 = /* @__PURE__ */ $({
5955
5970
  __name: "TiptapEditor",
5956
5971
  props: {
5957
5972
  content: {},
@@ -5961,7 +5976,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
5961
5976
  emits: ["blur", "change", "editor-ready", "new-line-state-changed", "focus", "enter-key"],
5962
5977
  setup(n, { expose: t, emit: e }) {
5963
5978
  var m;
5964
- const l = e, s = L(!1), r = Ge({
5979
+ const l = e, s = b(!1), r = Ge({
5965
5980
  content: n.content,
5966
5981
  extensions: [
5967
5982
  Tt.configure({
@@ -5972,7 +5987,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
5972
5987
  modEnterOnly: !n.shiftEnterCreatesNewLine
5973
5988
  }),
5974
5989
  Fe,
5975
- Ue,
5990
+ xe,
5976
5991
  oe.configure({
5977
5992
  levels: [1, 2, 3]
5978
5993
  }),
@@ -5984,9 +5999,9 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
5984
5999
  We,
5985
6000
  je,
5986
6001
  Xe,
5987
- xe,
6002
+ Ue,
5988
6003
  Ke,
5989
- Z0,
6004
+ Zn,
5990
6005
  qe,
5991
6006
  At,
5992
6007
  Qe.configure({ placeholder: n.placeholder })
@@ -6000,7 +6015,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6000
6015
  s.value = !1, l("blur");
6001
6016
  },
6002
6017
  contentType: "markdown"
6003
- }), a = D0(
6018
+ }), a = Dn(
6004
6019
  r,
6005
6020
  Te.name,
6006
6021
  "hasUsedNewline"
@@ -6010,14 +6025,14 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6010
6025
  }), i1(
6011
6026
  () => n.placeholder,
6012
6027
  (d) => {
6013
- var h, b;
6014
- (b = (h = r.value) == null ? void 0 : h.extensionManager.extensions.find((c) => c.name === "placeholder")) == null || b.options.configure({ placeholder: d });
6028
+ var h, L;
6029
+ (L = (h = r.value) == null ? void 0 : h.extensionManager.extensions.find((c) => c.name === "placeholder")) == null || L.options.configure({ placeholder: d });
6015
6030
  }
6016
6031
  );
6017
6032
  const f = ["start", "end", "all"], C = (d) => {
6018
- var b;
6033
+ var L;
6019
6034
  const h = f.includes(d) ? d : "end";
6020
- (b = r.value) == null || b.commands.focus(h);
6035
+ (L = r.value) == null || L.commands.focus(h);
6021
6036
  };
6022
6037
  return t({
6023
6038
  editor: r,
@@ -6052,7 +6067,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6052
6067
  editor: p(r)
6053
6068
  }, null, 8, ["editor"])) : k("", !0);
6054
6069
  }
6055
- }), j0 = ["disabled"], K0 = { key: 1 }, P4 = /* @__PURE__ */ $({
6070
+ }), jn = ["disabled"], Kn = { key: 1 }, P4 = /* @__PURE__ */ $({
6056
6071
  __name: "ToggleButton",
6057
6072
  props: {
6058
6073
  active: { type: Boolean },
@@ -6067,7 +6082,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6067
6082
  },
6068
6083
  emits: ["click", "blur"],
6069
6084
  setup(n, { expose: t, emit: e }) {
6070
- const l = n, s = e, r = L(), a = O(() => {
6085
+ const l = n, s = e, r = b(), a = O(() => {
6071
6086
  const d = [];
6072
6087
  return l.icon && !l.label && d.push("w-6"), l.disabled ? d.push("opacity-75 cursor-not-allowed") : d.push("cursor-pointer"), d.push("rounded-md"), d.push(
6073
6088
  ...l.active ? [
@@ -6104,14 +6119,14 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6104
6119
  disabled: d.disabled,
6105
6120
  style: t1(f.value),
6106
6121
  onClick: C,
6107
- onBlur: h[0] || (h[0] = (b) => s("blur"))
6122
+ onBlur: h[0] || (h[0] = (L) => s("blur"))
6108
6123
  }, [
6109
6124
  d.icon ? (o(), V(p(l1), {
6110
6125
  key: 0,
6111
6126
  name: d.icon
6112
6127
  }, null, 8, ["name"])) : k("", !0),
6113
- d.label ? (o(), i("div", K0, K(d.label), 1)) : k("", !0)
6114
- ], 46, j0)
6128
+ d.label ? (o(), i("div", Kn, K(d.label), 1)) : k("", !0)
6129
+ ], 46, jn)
6115
6130
  ]),
6116
6131
  _: 1
6117
6132
  }, 8, ["text", "delay", "placement"])) : k("", !0);
@@ -6128,7 +6143,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6128
6143
  if (!l) return;
6129
6144
  }
6130
6145
  return l[e];
6131
- }, U4 = (n, t, e, l) => {
6146
+ }, x4 = (n, t, e, l) => {
6132
6147
  let s = n;
6133
6148
  for (const r of t.map((a) => a.id)) {
6134
6149
  if (!s || s.id !== r) {
@@ -6138,7 +6153,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6138
6153
  if (!s) return !1;
6139
6154
  }
6140
6155
  return s[e] = l, !0;
6141
- }, x4 = (n, t, e, l) => {
6156
+ }, U4 = (n, t, e, l) => {
6142
6157
  let s = n;
6143
6158
  for (const r of t.map((a) => a.id)) {
6144
6159
  if (!s || s.id !== r) {
@@ -6148,17 +6163,17 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6148
6163
  if (!s) return !1;
6149
6164
  }
6150
6165
  return s.data[e] = l, !0;
6151
- }, Q0 = (n, t = []) => {
6166
+ }, Qn = (n, t = []) => {
6152
6167
  const e = [...t, n], l = [{ node: n, path: e }];
6153
6168
  if (n.children)
6154
6169
  for (const s of n.children)
6155
- l.push(...Q0(s, e));
6170
+ l.push(...Qn(s, e));
6156
6171
  return l;
6157
- }, q0 = (n) => {
6172
+ }, qn = (n) => {
6158
6173
  const t = [n];
6159
6174
  if (n.children)
6160
6175
  for (const e of n.children)
6161
- t.push(...q0(e));
6176
+ t.push(...qn(e));
6162
6177
  return t;
6163
6178
  }, Y4 = ({
6164
6179
  items: n,
@@ -6191,19 +6206,19 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6191
6206
  for (; C.length > 0 && d.length > 0; ) {
6192
6207
  const h = d.shift();
6193
6208
  if (!h) break;
6194
- let b = !1;
6209
+ let L = !1;
6195
6210
  for (let c = C.length - 1; c >= 0; c--)
6196
6211
  if (C[c][e] === h.id) {
6197
- const H = a.get(C[c][t]);
6198
- H && ((h.children ?? (h.children = [])).push(H), d.push(H)), C.splice(c, 1), b = !0;
6212
+ const y = a.get(C[c][t]);
6213
+ y && ((h.children ?? (h.children = [])).push(y), d.push(y)), C.splice(c, 1), L = !0;
6199
6214
  }
6200
- if (d.length === 0 && !b && C.length > 0)
6215
+ if (d.length === 0 && !L && C.length > 0)
6201
6216
  throw new Error(
6202
6217
  `Some items could not be attached to the tree (orphans): ${JSON.stringify(C)}`
6203
6218
  );
6204
6219
  }
6205
6220
  return m;
6206
- }, X0 = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, G0 = ["value", "onKeydown"], J0 = { class: "flex items-center gap-1" }, _0 = /* @__PURE__ */ $({
6221
+ }, Xn = { class: "flex items-center w-full h-6 pl-2 px-1 border border-default rounded-sm" }, Gn = ["value", "onKeydown"], Jn = { class: "flex items-center gap-1" }, _n = /* @__PURE__ */ $({
6207
6222
  __name: "InputNode",
6208
6223
  props: {
6209
6224
  value: {},
@@ -6212,7 +6227,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6212
6227
  },
6213
6228
  emits: ["cancel", "change", "save"],
6214
6229
  setup(n, { emit: t }) {
6215
- const e = t, l = L(), s = L(), { disableClickOutside: r, enableClickOutside: a } = fe(() => e("cancel"));
6230
+ const e = t, l = b(), s = b(), { disableClickOutside: r, enableClickOutside: a } = fe(() => e("cancel"));
6216
6231
  a1(() => {
6217
6232
  var d;
6218
6233
  a([s.value.$el]), (d = l.value) == null || d.focus();
@@ -6232,7 +6247,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6232
6247
  }, {
6233
6248
  default: Z(() => [
6234
6249
  h[4] || (h[4] = u("div", { class: "w-4 h-4" }, null, -1)),
6235
- u("section", X0, [
6250
+ u("section", Xn, [
6236
6251
  u("input", {
6237
6252
  ref_key: "inputRef",
6238
6253
  ref: l,
@@ -6240,30 +6255,30 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6240
6255
  value: d.value,
6241
6256
  placeholder: "Enter name",
6242
6257
  class: "flex-1 min-w-0 text-xs leading-tight bg-transparent focus:outline-hidden",
6243
- onChange: h[0] || (h[0] = U(() => {
6258
+ onChange: h[0] || (h[0] = x(() => {
6244
6259
  }, ["stop", "prevent"])),
6245
6260
  onKeydown: [
6246
- _(U(m, ["stop", "prevent"]), ["esc"]),
6247
- _(U(C, ["stop", "prevent"]), ["enter"])
6261
+ _(x(m, ["stop", "prevent"]), ["esc"]),
6262
+ _(x(C, ["stop", "prevent"]), ["enter"])
6248
6263
  ],
6249
- onKeyup: h[1] || (h[1] = _(U(() => {
6264
+ onKeyup: h[1] || (h[1] = _(x(() => {
6250
6265
  }, ["stop", "prevent"]), ["enter"])),
6251
- onInput: U(f, ["stop", "prevent"])
6252
- }, null, 40, G0)
6266
+ onInput: x(f, ["stop", "prevent"])
6267
+ }, null, 40, Gn)
6253
6268
  ]),
6254
- u("aside", J0, [
6269
+ u("aside", Jn, [
6255
6270
  w(p(j), {
6256
6271
  small: "",
6257
6272
  icon: "check",
6258
6273
  variant: "outlineSubtle",
6259
6274
  loading: d.saving,
6260
- onClick: h[2] || (h[2] = (b) => e("save"))
6275
+ onClick: h[2] || (h[2] = (L) => e("save"))
6261
6276
  }, null, 8, ["loading"]),
6262
6277
  w(p(j), {
6263
6278
  small: "",
6264
6279
  icon: "close",
6265
6280
  variant: "outlineSubtle",
6266
- onClick: h[3] || (h[3] = (b) => e("cancel"))
6281
+ onClick: h[3] || (h[3] = (L) => e("cancel"))
6267
6282
  })
6268
6283
  ])
6269
6284
  ]),
@@ -6291,24 +6306,24 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6291
6306
  i1(() => s.value, (v, g) => {
6292
6307
  !v && g && a.value && (a.value = !1), r.value = "";
6293
6308
  });
6294
- const r = L(""), a = L(!1), f = () => {
6309
+ const r = b(""), a = b(!1), f = () => {
6295
6310
  e("save", r.value), a.value = !0;
6296
6311
  }, C = () => {
6297
6312
  e("cancel-new-child"), r.value = "";
6298
6313
  }, m = (v) => console.log(n.node.label, v), d = (v) => e("action", { path: [n.node], targetNode: n.node, action: v }), h = (v) => {
6299
6314
  const g = [n.node, ...v.path];
6300
6315
  v.action.handler(g), e("action", { path: g, targetNode: g[g.length - 1], action: v.action });
6301
- }, b = (v) => {
6316
+ }, L = (v) => {
6302
6317
  const g = [n.node, ...v];
6303
6318
  e("key", { path: g, targetNode: g[g.length - 1] });
6304
6319
  }, c = (v) => {
6305
6320
  e("select", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
6306
- }, H = (v) => {
6321
+ }, y = (v) => {
6307
6322
  e("toggle", { path: [n.node, ...v], targetNode: [n.node, ...v][[n.node, ...v].length - 1] });
6308
6323
  };
6309
6324
  return (v, g) => {
6310
- var z;
6311
- const T = kt("TreeList", !0);
6325
+ var T;
6326
+ const z = kt("TreeList", !0);
6312
6327
  return o(), i(M, null, [
6313
6328
  w(p(e1), {
6314
6329
  tag: "button",
@@ -6318,33 +6333,33 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6318
6333
  "text-secondary hover:text-primary hover:bg-secondary": !l.value
6319
6334
  }]),
6320
6335
  style: t1({ paddingLeft: `${v.level * v.indentationAmount}px` }),
6321
- onClick: g[1] || (g[1] = (y) => e("select", { path: [v.node], targetNode: v.node })),
6336
+ onClick: g[1] || (g[1] = (H) => e("select", { path: [v.node], targetNode: v.node })),
6322
6337
  onKeydown: [
6323
- g[2] || (g[2] = _(U(() => {
6338
+ g[2] || (g[2] = _(x(() => {
6324
6339
  }, ["stop", "prevent"]), ["left"])),
6325
- g[4] || (g[4] = _(U(() => {
6340
+ g[4] || (g[4] = _(x(() => {
6326
6341
  }, ["stop", "prevent"]), ["right"])),
6327
- g[6] || (g[6] = _(U(() => {
6342
+ g[6] || (g[6] = _(x(() => {
6328
6343
  }, ["stop", "prevent"]), ["up"])),
6329
- g[8] || (g[8] = _(U(() => {
6344
+ g[8] || (g[8] = _(x(() => {
6330
6345
  }, ["stop", "prevent"]), ["down"]))
6331
6346
  ],
6332
6347
  onKeyup: [
6333
- g[3] || (g[3] = _(U((y) => m("left"), ["stop", "prevent"]), ["left"])),
6334
- g[5] || (g[5] = _(U((y) => m("right"), ["stop", "prevent"]), ["right"])),
6335
- g[7] || (g[7] = _(U((y) => m("up"), ["stop", "prevent"]), ["up"])),
6336
- g[9] || (g[9] = _(U((y) => m("down"), ["stop", "prevent"]), ["down"]))
6348
+ g[3] || (g[3] = _(x((H) => m("left"), ["stop", "prevent"]), ["left"])),
6349
+ g[5] || (g[5] = _(x((H) => m("right"), ["stop", "prevent"]), ["right"])),
6350
+ g[7] || (g[7] = _(x((H) => m("up"), ["stop", "prevent"]), ["up"])),
6351
+ g[9] || (g[9] = _(x((H) => m("down"), ["stop", "prevent"]), ["down"]))
6337
6352
  ]
6338
6353
  }, {
6339
6354
  default: Z(() => [
6340
6355
  w(p(e1), { class: "flex-1 min-w-0 pl-1 gap-1" }, {
6341
6356
  default: Z(() => {
6342
- var y;
6357
+ var H;
6343
6358
  return [
6344
- (y = v.node.children) != null && y.length || s.value ? (o(), i("button", {
6359
+ (H = v.node.children) != null && H.length || s.value ? (o(), i("button", {
6345
6360
  key: 0,
6346
6361
  class: "w-4 h-4 flex items-center justify-center rounded cursor-pointer",
6347
- onClick: g[0] || (g[0] = U((S) => e("toggle", { path: [v.node], targetNode: v.node }), ["stop", "prevent"]))
6362
+ onClick: g[0] || (g[0] = x((S) => e("toggle", { path: [v.node], targetNode: v.node }), ["stop", "prevent"]))
6348
6363
  }, [
6349
6364
  w(p(l1), {
6350
6365
  name: v.node.open ? "chevron-down-small" : "chevron-right-small"
@@ -6380,35 +6395,35 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6380
6395
  ]),
6381
6396
  _: 1
6382
6397
  }, 8, ["class", "style"]),
6383
- (s.value || (z = v.node.children) != null && z.length) && v.node.open ? (o(), i("main", lo, [
6384
- s.value ? (o(), V(_0, {
6398
+ (s.value || (T = v.node.children) != null && T.length) && v.node.open ? (o(), i("main", lo, [
6399
+ s.value ? (o(), V(_n, {
6385
6400
  key: 0,
6386
6401
  value: r.value,
6387
6402
  indentation: (v.level + 1) * v.indentationAmount,
6388
6403
  saving: a.value,
6389
- onChange: g[10] || (g[10] = (y) => r.value = y),
6404
+ onChange: g[10] || (g[10] = (H) => r.value = H),
6390
6405
  onSave: f,
6391
6406
  onCancel: C
6392
6407
  }, null, 8, ["value", "indentation", "saving"])) : k("", !0),
6393
- (o(!0), i(M, null, m1(v.node.children, (y) => (o(), V(T, {
6394
- key: y.id,
6408
+ (o(!0), i(M, null, m1(v.node.children, (H) => (o(), V(z, {
6409
+ key: H.id,
6395
6410
  "indentation-amount": v.indentationAmount,
6396
6411
  level: v.level + 1,
6397
- node: y,
6412
+ node: H,
6398
6413
  "create-new-path": v.createNewPath,
6399
6414
  selection: v.selection,
6400
6415
  onAction: h,
6401
6416
  onCancelNewChild: g[11] || (g[11] = (S) => e("cancel-new-child")),
6402
6417
  onSave: g[12] || (g[12] = (S) => e("save", S)),
6403
- onKey: g[13] || (g[13] = (S) => b(S.path)),
6418
+ onKey: g[13] || (g[13] = (S) => L(S.path)),
6404
6419
  onSelect: g[14] || (g[14] = (S) => c(S.path)),
6405
- onToggle: g[15] || (g[15] = (S) => H(S.path))
6420
+ onToggle: g[15] || (g[15] = (S) => y(S.path))
6406
6421
  }, null, 8, ["indentation-amount", "level", "node", "create-new-path", "selection"]))), 128))
6407
6422
  ])) : k("", !0)
6408
6423
  ], 64);
6409
6424
  };
6410
6425
  }
6411
- }), j4 = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive"], K4 = ["default", "primary", "error"], Q4 = ["default", "circle"], q4 = ["horizontal", "vertical"], no = ["start", "center", "end", "stretch"], X4 = [...no, "between", "around", "evenly"], G4 = ["default", "blurred"], J4 = ["click", "hover", "focus", "manual"], _4 = ["Ok", "Not Ok", "Not Applicable"], e9 = [
6426
+ }), j4 = ["fill", "outline", "outlineSubtle", "text", "textSubtle", "destructive", "outlineDestructive"], K4 = ["default", "primary", "error"], Q4 = ["default", "circle"], q4 = ["horizontal", "vertical"], no = ["start", "center", "end", "stretch"], X4 = [...no, "between", "around", "evenly"], G4 = ["default", "blurred"], J4 = ["click", "hover", "focus", "manual"], _4 = ["Ok", "Not Ok", "Not Applicable"], e9 = [
6412
6427
  "admin",
6413
6428
  "agent",
6414
6429
  "agent-flow",
@@ -6589,7 +6604,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6589
6604
  type: { default: "header" }
6590
6605
  },
6591
6606
  setup(n) {
6592
- const t = n, e = L(), l = t.type === "header" ? "border-b" : "border-t", s = O(() => [t.heightClass, t.border ? "border-default" : "border-transparent", t.border ? l : ""]), r = O(() => {
6607
+ const t = n, e = b(), l = t.type === "header" ? "border-b" : "border-t", s = O(() => [t.heightClass, t.border ? "border-default" : "border-transparent", t.border ? l : ""]), r = O(() => {
6593
6608
  let a;
6594
6609
  if (t.heightClass === "h-auto") {
6595
6610
  if (e.value) {
@@ -6609,7 +6624,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6609
6624
  style: t1(r.value)
6610
6625
  }, {
6611
6626
  default: Z(() => [
6612
- R(a.$slots, "default")
6627
+ A(a.$slots, "default")
6613
6628
  ]),
6614
6629
  _: 3
6615
6630
  }, 8, ["class", "style"]));
@@ -6639,7 +6654,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6639
6654
  "height-class": l.headerHeightClass
6640
6655
  }, {
6641
6656
  default: Z(() => [
6642
- R(l.$slots, "header")
6657
+ A(l.$slots, "header")
6643
6658
  ]),
6644
6659
  _: 3
6645
6660
  }, 8, ["border", "height-class"])) : k("", !0),
@@ -6648,7 +6663,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6648
6663
  "wrap-class": "h-full"
6649
6664
  }, {
6650
6665
  default: Z(() => [
6651
- R(l.$slots, "main")
6666
+ A(l.$slots, "main")
6652
6667
  ]),
6653
6668
  _: 3
6654
6669
  }),
@@ -6659,7 +6674,7 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6659
6674
  "height-class": l.footerHeightClass
6660
6675
  }, {
6661
6676
  default: Z(() => [
6662
- R(l.$slots, "footer")
6677
+ A(l.$slots, "footer")
6663
6678
  ]),
6664
6679
  _: 3
6665
6680
  }, 8, ["border", "height-class"])) : k("", !0)
@@ -6764,8 +6779,8 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6764
6779
  return { clearFilter: r, isActive: a, updateFilter: C, values: f };
6765
6780
  }, d9 = ({ groupId: n, filters: t, sorting: e, items: l, remoteFilterMethod: s }) => {
6766
6781
  const r = G1(), a = ue();
6767
- a1(() => v(r.query)), Ie((z) => v(z.query));
6768
- const f = L(!1), C = L([]), m = L(t), d = O(() => m.value.filter((z) => !!z.value)), h = O(() => !!d.value.length), b = L(e.default), c = async () => {
6782
+ a1(() => v(r.query)), Ie((T) => v(T.query));
6783
+ const f = b(!1), C = b([]), m = b(t), d = O(() => m.value.filter((T) => !!T.value)), h = O(() => !!d.value.length), L = b(e.default), c = async () => {
6769
6784
  if (s && l)
6770
6785
  throw new Error("You should only pass either 'items' (frontend filtering) or 'remoteFilterMethod' (backend filtering). You passed both.");
6771
6786
  if (!s && !l)
@@ -6773,33 +6788,33 @@ const O4 = /* @__PURE__ */ M1(x0, [["render", W0]]), I4 = /* @__PURE__ */ $({
6773
6788
  if (s)
6774
6789
  try {
6775
6790
  f.value = !0;
6776
- const z = await s(b.value, d.value);
6777
- C.value = z, f.value = !1;
6791
+ const T = await s(L.value, d.value);
6792
+ C.value = T, f.value = !1;
6778
6793
  } catch {
6779
6794
  f.value = !1;
6780
6795
  }
6781
6796
  else l && (C.value = e.sortingMethod ? e.sortingMethod(
6782
- b.value,
6783
- l.value.filter((z) => d.value.every((y) => y.execute(y.value, y.operator, z)))
6784
- ) : l.value.filter((z) => d.value.every((y) => y.execute(y.value, y.operator, z))));
6797
+ L.value,
6798
+ l.value.filter((T) => d.value.every((H) => H.execute(H.value, H.operator, T)))
6799
+ ) : l.value.filter((T) => d.value.every((H) => H.execute(H.value, H.operator, T))));
6785
6800
  };
6786
- i1(l ? [b, d, l] : [b, d], () => c(), { immediate: !0, deep: !0 });
6787
- const v = (z) => {
6788
- const { filters: y, sorting: S } = gt(z, n);
6789
- b.value = S ? T(S) : e.default, m.value.forEach((W) => {
6790
- const Q = y.find((s1) => s1.id === W.id);
6791
- Q ? (W.operator = Q.operator, W.value = Q.value) : (W.operator = "=", W.value = null);
6801
+ i1(l ? [L, d, l] : [L, d], () => c(), { immediate: !0, deep: !0 });
6802
+ const v = (T) => {
6803
+ const { filters: H, sorting: S } = gt(T, n);
6804
+ L.value = S ? z(S) : e.default, m.value.forEach((Y) => {
6805
+ const Q = H.find((s1) => s1.id === Y.id);
6806
+ Q ? (Y.operator = Q.operator, Y.value = Q.value) : (Y.operator = "=", Y.value = null);
6792
6807
  });
6793
6808
  }, g = async () => {
6794
- const z = fo(r.query, n);
6795
- await a.push({ query: z });
6796
- }, T = (z) => ({
6797
- direction: z.direction,
6798
- field: z.field
6809
+ const T = fo(r.query, n);
6810
+ await a.push({ query: T });
6811
+ }, z = (T) => ({
6812
+ direction: T.direction,
6813
+ field: T.field
6799
6814
  });
6800
6815
  return {
6801
6816
  activeFilters: d,
6802
- activeSorting: b,
6817
+ activeSorting: L,
6803
6818
  availableFilters: m,
6804
6819
  filteringActive: h,
6805
6820
  filteredItems: C,
@@ -6832,19 +6847,19 @@ function c9(n, t) {
6832
6847
  const m = r instanceof Date, d = a instanceof Date;
6833
6848
  if (m && d)
6834
6849
  return r.getTime() - a.getTime();
6835
- const h = new Date(r).getTime(), b = new Date(a).getTime();
6836
- if (!Number.isNaN(h) && !Number.isNaN(b))
6837
- return h - b;
6838
- const c = String(r).toLowerCase(), H = String(a).toLowerCase();
6839
- return c.localeCompare(H);
6850
+ const h = new Date(r).getTime(), L = new Date(a).getTime();
6851
+ if (!Number.isNaN(h) && !Number.isNaN(L))
6852
+ return h - L;
6853
+ const c = String(r).toLowerCase(), y = String(a).toLowerCase();
6854
+ return c.localeCompare(y);
6840
6855
  });
6841
6856
  return n.direction === "desc" ? e.reverse() : e;
6842
6857
  }
6843
6858
  export {
6844
6859
  no as Alignments,
6845
- Uo as BApplicationWrapper,
6860
+ xo as BApplicationWrapper,
6846
6861
  $e as BAside,
6847
- xo as BAsideSectionLabel,
6862
+ Uo as BAsideSectionLabel,
6848
6863
  Yo as BAvatarUpload,
6849
6864
  j as BButton,
6850
6865
  Wo as BButtonGroup,
@@ -6857,7 +6872,7 @@ export {
6857
6872
  R2 as BDeleteButton,
6858
6873
  n4 as BDialog,
6859
6874
  ot as BFadeInUp,
6860
- U2 as BFilterChip,
6875
+ x2 as BFilterChip,
6861
6876
  o4 as BFirstPaint,
6862
6877
  e1 as BFlexbox,
6863
6878
  c1 as BFormattingButton,
@@ -6870,7 +6885,7 @@ export {
6870
6885
  R4 as BInsertImage,
6871
6886
  A4 as BInsertLink,
6872
6887
  N1 as BLoadSpinner,
6873
- on as BModal,
6888
+ o0 as BModal,
6874
6889
  u4 as BNavItem,
6875
6890
  p4 as BNotification,
6876
6891
  _e as BNotificationBadge,
@@ -6933,8 +6948,8 @@ export {
6933
6948
  y1 as filterSeparator,
6934
6949
  dt as filterStartingBracket,
6935
6950
  Q1 as filterValueSeparator,
6936
- Q0 as flattenTree,
6937
- q0 as flattenTreeNodes,
6951
+ Qn as flattenTree,
6952
+ qn as flattenTreeNodes,
6938
6953
  Jo as formatDate,
6939
6954
  V5 as getDecade,
6940
6955
  po as getFilterFromQuery,
@@ -6973,8 +6988,8 @@ export {
6973
6988
  st as scrollIntoView,
6974
6989
  j2 as scrollbarWidth,
6975
6990
  w4 as selectOptionVariants,
6976
- x4 as setNodeObjectValueByPath,
6977
- U4 as setNodeValueByPath,
6991
+ U4 as setNodeObjectValueByPath,
6992
+ x4 as setNodeValueByPath,
6978
6993
  c9 as sortByField,
6979
6994
  oo as sortingDirections,
6980
6995
  k4 as states,