@v1nt1248/3nclient-lib 0.3.34 → 0.3.36

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.
@@ -1,9 +1,9 @@
1
1
  import { $ as e, B as t, Q as n, R as r, T as i, V as a, X as o, Z as s, at as c, ct as l, dt as u, et as d, ft as f, ht as p, it as m, lt as h, mt as g, nt as _, o as v, ot as y, pt as b, rt as x, st as S, t as C, tt as w, ut as T, v as ee, z as E } from "./chunks/plugins-keys-jqAZ5D94.js";
2
- import { a as te, i as D, n as O, r as k, t as A } from "./chunks/ui3n-notification-DPC5Ke4b.js";
3
- import { t as ne } from "./chunks/emoticons-DMgiBINj.js";
4
- import re from "sanitize-html";
5
- import { autoUpdate as j, computePosition as ie, offset as ae } from "@floating-ui/dom";
6
- import { Fragment as M, Teleport as oe, Transition as se, TransitionGroup as ce, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as le, createVNode as R, defineComponent as z, inject as ue, mergeProps as de, nextTick as fe, normalizeClass as B, normalizeStyle as V, onBeforeMount as pe, onBeforeUnmount as me, onMounted as H, onUnmounted as he, openBlock as U, provide as ge, ref as W, renderList as G, renderSlot as K, resolveDynamicComponent as _e, shallowRef as ve, toDisplayString as q, toHandlers as ye, unref as J, useCssModule as be, useCssVars as xe, useSlots as Se, useTemplateRef as Ce, vModelText as we, watch as Y, withCtx as X, withDirectives as Te, withKeys as Z, withModifiers as Q } from "vue";
2
+ import { a as D, i as O, n as k, r as A, t as j } from "./chunks/ui3n-notification-DPC5Ke4b.js";
3
+ import { t as te } from "./chunks/emoticons-DMgiBINj.js";
4
+ import ne from "sanitize-html";
5
+ import { autoUpdate as M, computePosition as re, offset as ie } from "@floating-ui/dom";
6
+ import { Fragment as N, Teleport as ae, Transition as oe, TransitionGroup as se, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as ce, createVNode as z, defineComponent as B, inject as le, mergeProps as ue, nextTick as de, normalizeClass as V, normalizeStyle as H, onBeforeMount as fe, onBeforeUnmount as pe, onMounted as U, onUnmounted as me, openBlock as W, provide as he, ref as G, renderList as ge, renderSlot as K, resolveDynamicComponent as _e, shallowRef as ve, toDisplayString as q, toHandlers as ye, unref as J, useCssModule as be, useCssVars as xe, useSlots as Se, useTemplateRef as Ce, vModelText as we, watch as Y, withCtx as X, withDirectives as Te, withKeys as Z, withModifiers as Q } from "vue";
7
7
  import { arrow as Ee, autoUpdate as De, flip as Oe, offset as ke, shift as Ae, useFloating as je } from "@floating-ui/vue";
8
8
  //#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_arrayMap.js
9
9
  var Me = /* @__PURE__ */ g(((e, t) => {
@@ -508,39 +508,39 @@ var Me = /* @__PURE__ */ g(((e, t) => {
508
508
  var n = qt(), r = x(), i = _(), a = i && i.isSet;
509
509
  t.exports = a ? r(a) : n;
510
510
  })), Yt = /* @__PURE__ */ g(((e, t) => {
511
- var n = st(), r = ct(), i = dt(), a = _t(), s = xt(), l = St(), u = Ct(), d = Dt(), f = jt(), p = Nt(), h = Pt(), g = o(), _ = Ft(), v = Ht(), y = Wt(), b = c(), x = m(), S = Kt(), C = T(), w = Jt(), ee = gt(), E = bt(), te = 1, D = 2, O = 4, k = "[object Arguments]", A = "[object Array]", ne = "[object Boolean]", re = "[object Date]", j = "[object Error]", ie = "[object Function]", ae = "[object GeneratorFunction]", M = "[object Map]", oe = "[object Number]", se = "[object Object]", ce = "[object RegExp]", N = "[object Set]", P = "[object String]", F = "[object Symbol]", I = "[object WeakMap]", L = "[object ArrayBuffer]", le = "[object DataView]", R = "[object Float32Array]", z = "[object Float64Array]", ue = "[object Int8Array]", de = "[object Int16Array]", fe = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", pe = "[object Uint16Array]", me = "[object Uint32Array]", H = {};
512
- H[k] = H[A] = H[L] = H[le] = H[ne] = H[re] = H[R] = H[z] = H[ue] = H[de] = H[fe] = H[M] = H[oe] = H[se] = H[ce] = H[N] = H[P] = H[F] = H[B] = H[V] = H[pe] = H[me] = !0, H[j] = H[ie] = H[I] = !1;
513
- function he(e, t, o, c, m, T) {
514
- var A, ne = t & te, re = t & D, j = t & O;
515
- if (o && (A = m ? o(e, c, m, T) : o(e)), A !== void 0) return A;
511
+ var n = st(), r = ct(), i = dt(), a = _t(), s = xt(), l = St(), u = Ct(), d = Dt(), f = jt(), p = Nt(), h = Pt(), g = o(), _ = Ft(), v = Ht(), y = Wt(), b = c(), x = m(), S = Kt(), C = T(), w = Jt(), ee = gt(), E = bt(), D = 1, O = 2, k = 4, A = "[object Arguments]", j = "[object Array]", te = "[object Boolean]", ne = "[object Date]", M = "[object Error]", re = "[object Function]", ie = "[object GeneratorFunction]", N = "[object Map]", ae = "[object Number]", oe = "[object Object]", se = "[object RegExp]", P = "[object Set]", F = "[object String]", I = "[object Symbol]", L = "[object WeakMap]", R = "[object ArrayBuffer]", ce = "[object DataView]", z = "[object Float32Array]", B = "[object Float64Array]", le = "[object Int8Array]", ue = "[object Int16Array]", de = "[object Int32Array]", V = "[object Uint8Array]", H = "[object Uint8ClampedArray]", fe = "[object Uint16Array]", pe = "[object Uint32Array]", U = {};
512
+ U[A] = U[j] = U[R] = U[ce] = U[te] = U[ne] = U[z] = U[B] = U[le] = U[ue] = U[de] = U[N] = U[ae] = U[oe] = U[se] = U[P] = U[F] = U[I] = U[V] = U[H] = U[fe] = U[pe] = !0, U[M] = U[re] = U[L] = !1;
513
+ function me(e, t, o, c, m, T) {
514
+ var j, te = t & D, ne = t & O, M = t & k;
515
+ if (o && (j = m ? o(e, c, m, T) : o(e)), j !== void 0) return j;
516
516
  if (!C(e)) return e;
517
- var M = b(e);
518
- if (M) {
519
- if (A = _(e), !ne) return u(e, A);
517
+ var N = b(e);
518
+ if (N) {
519
+ if (j = _(e), !te) return u(e, j);
520
520
  } else {
521
- var oe = g(e), ce = oe == ie || oe == ae;
522
- if (x(e)) return l(e, ne);
523
- if (oe == se || oe == k || ce && !m) {
524
- if (A = re || ce ? {} : y(e), !ne) return re ? f(e, s(A, e)) : d(e, a(A, e));
521
+ var ae = g(e), se = ae == re || ae == ie;
522
+ if (x(e)) return l(e, te);
523
+ if (ae == oe || ae == A || se && !m) {
524
+ if (j = ne || se ? {} : y(e), !te) return ne ? f(e, s(j, e)) : d(e, a(j, e));
525
525
  } else {
526
- if (!H[oe]) return m ? e : {};
527
- A = v(e, oe, ne);
526
+ if (!U[ae]) return m ? e : {};
527
+ j = v(e, ae, te);
528
528
  }
529
529
  }
530
530
  T ||= new n();
531
- var N = T.get(e);
532
- if (N) return N;
533
- T.set(e, A), w(e) ? e.forEach(function(n) {
534
- A.add(he(n, t, o, n, e, T));
531
+ var P = T.get(e);
532
+ if (P) return P;
533
+ T.set(e, j), w(e) ? e.forEach(function(n) {
534
+ j.add(me(n, t, o, n, e, T));
535
535
  }) : S(e) && e.forEach(function(n, r) {
536
- A.set(r, he(n, t, o, r, e, T));
536
+ j.set(r, me(n, t, o, r, e, T));
537
537
  });
538
- var P = M ? void 0 : (j ? re ? h : p : re ? E : ee)(e);
539
- return r(P || e, function(n, r) {
540
- P && (r = n, n = e[r]), i(A, r, he(n, t, o, r, e, T));
541
- }), A;
538
+ var F = N ? void 0 : (M ? ne ? h : p : ne ? E : ee)(e);
539
+ return r(F || e, function(n, r) {
540
+ F && (r = n, n = e[r]), i(j, r, me(n, t, o, r, e, T));
541
+ }), j;
542
542
  }
543
- t.exports = he;
543
+ t.exports = me;
544
544
  })), Xt = /* @__PURE__ */ g(((e, t) => {
545
545
  var n = u(), r = S(), i = "[object Symbol]";
546
546
  function a(e) {
@@ -783,11 +783,11 @@ function Tn(e, t) {
783
783
  return;
784
784
  }
785
785
  if (typeof r == "string") {
786
- e.innerHTML = re(r);
786
+ e.innerHTML = ne(r);
787
787
  return;
788
788
  }
789
789
  try {
790
- e.innerHTML = re(r.dirty, { ...(0, wn.default)(r, "dirty") });
790
+ e.innerHTML = ne(r.dirty, { ...(0, wn.default)(r, "dirty") });
791
791
  return;
792
792
  } catch (e) {
793
793
  throw Error("[v-ui3n-html] ", e);
@@ -946,11 +946,11 @@ function Wn(e, t, n) {
946
946
  return;
947
947
  }
948
948
  let f = document.getElementById(zn), p = f || document.createElement("div");
949
- f || (p.id = zn, p.classList.add("ui3n-title")), p.innerHTML = r, p.style.maxWidth = `${i}px`, p.style.color = a, p.style.backgroundColor = o, Object.keys(d).length && Object.assign(p.style, d), e.insertAdjacentElement("beforeend", p), Rn = j(e, p, () => {
950
- ie(e, p, {
949
+ f || (p.id = zn, p.classList.add("ui3n-title")), p.innerHTML = r, p.style.maxWidth = `${i}px`, p.style.color = a, p.style.backgroundColor = o, Object.keys(d).length && Object.assign(p.style, d), e.insertAdjacentElement("beforeend", p), Rn = M(e, p, () => {
950
+ re(e, p, {
951
951
  placement: s,
952
952
  strategy: c,
953
- middleware: [ae(Hn(s, l, u))]
953
+ middleware: [ie(Hn(s, l, u))]
954
954
  }).then(({ x: e, y: t }) => {
955
955
  Object.assign(p.style, {
956
956
  left: `${e}px`,
@@ -1049,7 +1049,7 @@ var Qn = {
1049
1049
  }, a = Jn(t);
1050
1050
  n.removeEventListener("pointerdown", a.pointerdownEvent, i), n.removeEventListener("pointerup", a.pointerupEvent, i), n.removeEventListener("pointermove", a.pointermoveEvent, i);
1051
1051
  }
1052
- }, $n = ["id"], er = /* @__PURE__ */ D(/* @__PURE__ */ z({
1052
+ }, $n = ["id"], er = /* @__PURE__ */ O(/* @__PURE__ */ B({
1053
1053
  __name: "ui3n-chip",
1054
1054
  props: {
1055
1055
  id: {},
@@ -1074,29 +1074,29 @@ var Qn = {
1074
1074
  },
1075
1075
  emits: ["close", "click"],
1076
1076
  setup(e, { emit: t }) {
1077
- let n = e, r = t, i = Se(), a = N(() => {
1077
+ let n = e, r = t, i = Se(), a = P(() => {
1078
1078
  let e = Number(n.height);
1079
1079
  return isNaN(e) ? 24 : e;
1080
- }), o = N(() => `${a.value}px`), s = N(() => a.value - 4), c = N(() => {
1080
+ }), o = P(() => `${a.value}px`), s = P(() => a.value - 4), c = P(() => {
1081
1081
  let e = Math.round(a.value / 3);
1082
1082
  return p.value ? `0 ${e}px 0 4px` : `0 ${e}px`;
1083
- }), l = N(() => {
1083
+ }), l = P(() => {
1084
1084
  let e = Number(n.maxWidth);
1085
1085
  return isNaN(e) ? String(n.maxWidth) : `${e}px`;
1086
- }), u = N(() => n.color), d = N(() => {
1086
+ }), u = P(() => n.color), d = P(() => {
1087
1087
  let e = Number(n.textSize);
1088
1088
  return isNaN(e) ? String(n.textSize) : `${e}px`;
1089
- }), f = N(() => n.textColor), p = N(() => !!i.left);
1090
- return (t, n) => (U(), I("div", {
1089
+ }), f = P(() => n.textColor), p = P(() => !!i.left);
1090
+ return (t, n) => (W(), L("div", {
1091
1091
  id: e.id,
1092
- class: B([
1092
+ class: V([
1093
1093
  t.$style.ui3nChip,
1094
1094
  e.round && t.$style.round,
1095
1095
  e.plain && t.$style.plain,
1096
1096
  e.closeable && t.$style.closeable,
1097
1097
  p.value && t.$style.withIcon
1098
1098
  ]),
1099
- style: V({
1099
+ style: H({
1100
1100
  "--ui3n-chip-height": o.value,
1101
1101
  "--ui3n-chip-max-width": l.value,
1102
1102
  "--ui3n-chip-padding": c.value,
@@ -1106,12 +1106,12 @@ var Qn = {
1106
1106
  }),
1107
1107
  onClick: n[1] ||= (e) => r("click", e)
1108
1108
  }, [
1109
- L("div", { class: B(t.$style.ui3nChipIcon) }, [K(t.$slots, "left", {
1109
+ R("div", { class: V(t.$style.ui3nChipIcon) }, [K(t.$slots, "left", {
1110
1110
  size: s.value,
1111
1111
  color: f.value
1112
1112
  })], 2),
1113
- L("div", { class: B(t.$style.ui3nChipBody) }, [K(t.$slots, "default")], 2),
1114
- e.closeable ? (U(), P(O, {
1113
+ R("div", { class: V(t.$style.ui3nChipBody) }, [K(t.$slots, "default")], 2),
1114
+ e.closeable ? (W(), F(k, {
1115
1115
  key: 0,
1116
1116
  type: "icon",
1117
1117
  size: "small",
@@ -1120,7 +1120,7 @@ var Qn = {
1120
1120
  "icon-color": "var(--color-icon-control-primary-default)",
1121
1121
  disabled: e.disabled,
1122
1122
  onClick: n[0] ||= Q((e) => r("close"), ["stop", "prevent"])
1123
- }, null, 8, ["disabled"])) : F("", !0)
1123
+ }, null, 8, ["disabled"])) : I("", !0)
1124
1124
  ], 14, $n));
1125
1125
  }
1126
1126
  }), [["__cssModules", { $style: {
@@ -1133,7 +1133,7 @@ var Qn = {
1133
1133
  ui3nChipIcon: "_ui3nChipIcon_prky3_33",
1134
1134
  round: "_round_prky3_41",
1135
1135
  plain: "_plain_prky3_50"
1136
- } }]]), tr = ["name"], nr = ["width", "height"], rr = /* @__PURE__ */ D(/* @__PURE__ */ z({
1136
+ } }]]), tr = ["name"], nr = ["width", "height"], rr = /* @__PURE__ */ O(/* @__PURE__ */ B({
1137
1137
  __name: "ui3n-drop-files",
1138
1138
  props: {
1139
1139
  name: { default: void 0 },
@@ -1147,7 +1147,7 @@ var Qn = {
1147
1147
  },
1148
1148
  emits: ["select"],
1149
1149
  setup(e, { expose: t, emit: n }) {
1150
- let r = Fn, i = e, a = n, o = W(null), s = W(null), c = W(0), l = W(!1), u = W(!1);
1150
+ let r = Fn, i = e, a = n, o = G(null), s = G(null), c = G(0), l = G(!1), u = G(!1);
1151
1151
  function d(e) {
1152
1152
  e.preventDefault(), l.value = !0;
1153
1153
  }
@@ -1182,12 +1182,12 @@ var Qn = {
1182
1182
  }
1183
1183
  return t({ clear: v }), Y(() => i.name, (e) => {
1184
1184
  !e && s.value && (s.value.value = "");
1185
- }), H(() => {
1185
+ }), U(() => {
1186
1186
  _();
1187
- }), (t, n) => Te((U(), I("div", {
1187
+ }), (t, n) => Te((W(), L("div", {
1188
1188
  ref_key: "wrapperElement",
1189
1189
  ref: o,
1190
- class: B([
1190
+ class: V([
1191
1191
  t.$style.ui3nDropFiles,
1192
1192
  e.permanentDisplay && t.$style.ui3nDropFilesWithBorder,
1193
1193
  (l.value || u.value) && t.$style.ui3nDropFilesWithAccentBorder
@@ -1196,7 +1196,7 @@ var Qn = {
1196
1196
  onDragover: n[2] ||= Q(() => {}, ["prevent"]),
1197
1197
  onDragleave: f
1198
1198
  }, [
1199
- e.name ? (U(), I("input", {
1199
+ e.name ? (W(), L("input", {
1200
1200
  key: 0,
1201
1201
  ref_key: "fileInput",
1202
1202
  ref: s,
@@ -1204,33 +1204,33 @@ var Qn = {
1204
1204
  name: e.name,
1205
1205
  multiple: "",
1206
1206
  hidden: ""
1207
- }, null, 8, tr)) : F("", !0),
1207
+ }, null, 8, tr)) : I("", !0),
1208
1208
  K(t.$slots, "default"),
1209
- e.permanentDisplay || l.value || u.value ? (U(), I("div", {
1209
+ e.permanentDisplay || l.value || u.value ? (W(), L("div", {
1210
1210
  key: 1,
1211
- class: B(t.$style.ui3nDropFilesDropzone),
1211
+ class: V(t.$style.ui3nDropFilesDropzone),
1212
1212
  onDragenter: m,
1213
1213
  onDragover: p,
1214
1214
  onDragleave: h,
1215
1215
  onDrop: g
1216
1216
  }, [
1217
- L("h3", { class: B(t.$style.ui3nDropFilesDropzoneTitle) }, q(e.title), 3),
1218
- L("div", { class: B(t.$style.ui3nDropFilesDropzoneIcon) }, [(U(), I("svg", {
1217
+ R("h3", { class: V(t.$style.ui3nDropFilesDropzoneTitle) }, q(e.title), 3),
1218
+ R("div", { class: V(t.$style.ui3nDropFilesDropzoneIcon) }, [(W(), L("svg", {
1219
1219
  width: c.value * .35,
1220
1220
  height: c.value * .35,
1221
1221
  viewBox: "0 0 192 192",
1222
1222
  fill: "none",
1223
1223
  xmlns: "http://www.w3.org/2000/svg"
1224
- }, [...n[3] ||= [L("path", {
1224
+ }, [...n[3] ||= [R("path", {
1225
1225
  d: "M51 152C47.9333 152 45.3333 150.934 43.2 148.8C41.0667 146.667 40 144.067 40 141V119.8H46.2V141C46.2 142.2 46.7 143.3 47.7 144.3C48.7 145.3 49.8 145.8 51 145.8H141C142.2 145.8 143.3 145.3 144.3 144.3C145.3 143.3 145.8 142.2 145.8 141V119.8H152V141C152 144.067 150.933 146.667 148.8 148.8C146.667 150.934 144.067 152 141 152H51ZM93 122.4V49.2002L72.8 69.2002L68.4 65.0002L96 37.2002L123.6 65.0002L119.2 69.2002L99 49.2002V122.4H93Z",
1226
1226
  fill: "var(--color-icon-control-primary-default)"
1227
1227
  }, null, -1)]], 8, nr))], 2),
1228
- L("div", {
1229
- class: B(t.$style.ui3nDropFilesDropzoneAdditional),
1228
+ R("div", {
1229
+ class: V(t.$style.ui3nDropFilesDropzoneAdditional),
1230
1230
  onDragenter: n[0] ||= Q(() => {}, ["stop", "prevent"]),
1231
1231
  onDragleave: n[1] ||= Q(() => {}, ["stop", "prevent"])
1232
1232
  }, [K(t.$slots, "additional-text")], 34)
1233
- ], 34)) : F("", !0)
1233
+ ], 34)) : I("", !0)
1234
1234
  ], 34)), [[J(r), () => _()]]);
1235
1235
  }
1236
1236
  }), [["__cssModules", { $style: {
@@ -1241,7 +1241,7 @@ var Qn = {
1241
1241
  ui3nDropFilesDropzoneTitle: "_ui3nDropFilesDropzoneTitle_gssdx_33",
1242
1242
  ui3nDropFilesDropzoneIcon: "_ui3nDropFilesDropzoneIcon_gssdx_41",
1243
1243
  ui3nDropFilesDropzoneAdditional: "_ui3nDropFilesDropzoneAdditional_gssdx_53"
1244
- } }]]), ir = /* @__PURE__ */ D(/* @__PURE__ */ z({
1244
+ } }]]), ir = /* @__PURE__ */ O(/* @__PURE__ */ B({
1245
1245
  __name: "ui3n-emoji",
1246
1246
  props: {
1247
1247
  emoji: {},
@@ -1253,7 +1253,7 @@ var Qn = {
1253
1253
  },
1254
1254
  emits: ["click"],
1255
1255
  setup(e, { emit: t }) {
1256
- let n = e, r = t, i = W(null), a = N(() => ne[n.emoji]), o = N(() => {
1256
+ let n = e, r = t, i = G(null), a = P(() => te[n.emoji]), o = P(() => {
1257
1257
  let e = isNaN(Number(n.size)) ? String(n.size) : `${n.size}px`;
1258
1258
  return {
1259
1259
  "--ui3n-emoji-size": e,
@@ -1264,8 +1264,8 @@ var Qn = {
1264
1264
  e.stopPropagation(), r("click", e);
1265
1265
  }
1266
1266
  return Y(() => n.emoji, (e) => {
1267
- Object.keys(ne).includes(e) || console.error(`[Ui3nEmoji] Invalid emoticon: ${e}`);
1268
- }, { immediate: !0 }), (t, n) => (U(), I("div", de({
1267
+ Object.keys(te).includes(e) || console.error(`[Ui3nEmoji] Invalid emoticon: ${e}`);
1268
+ }, { immediate: !0 }), (t, n) => (W(), L("div", ue({
1269
1269
  ref_key: "emojiElement",
1270
1270
  ref: i,
1271
1271
  class: [t.$style.ui3nEmoji, e.readonly && t.$style.readonly],
@@ -1285,7 +1285,7 @@ var Qn = {
1285
1285
  "maxlength",
1286
1286
  "minlength",
1287
1287
  "value"
1288
- ], sr = /* @__PURE__ */ D(/* @__PURE__ */ z({
1288
+ ], sr = /* @__PURE__ */ O(/* @__PURE__ */ B({
1289
1289
  __name: "ui3n-input",
1290
1290
  props: {
1291
1291
  id: {},
@@ -1344,7 +1344,7 @@ var Qn = {
1344
1344
  "update:valid"
1345
1345
  ],
1346
1346
  setup(e, { expose: t, emit: n }) {
1347
- let r = e, i = n, a = Se(), o = W(null), s = W(""), c = W(!1), l = W(!1), u = W(""), d = N(() => !!a["prepend-icon"]), f = N(() => !!a["append-icon"]), p = N(() => r.displayStateMode === "success" && r.displayStateWithIcon && !l.value), m = N(() => !r.disabled && r.clearable && !!s.value && !p.value), h = N(() => p.value || m.value || f.value), g = N(() => !!u.value || !!(r.displayStateMode && r.displayStateMessage)), _ = N(() => !!u.value || r.displayStateMode === "error" && !!r.displayStateMessage), v = N(() => r.displayStateMode === "success" && !!r.displayStateMessage);
1347
+ let r = e, i = n, a = Se(), o = G(null), s = G(""), c = G(!1), l = G(!1), u = G(""), d = P(() => !!a["prepend-icon"]), f = P(() => !!a["append-icon"]), p = P(() => r.displayStateMode === "success" && r.displayStateWithIcon && !l.value), m = P(() => !r.disabled && r.clearable && !!s.value && !p.value), h = P(() => p.value || m.value || f.value), g = P(() => !!u.value || !!(r.displayStateMode && r.displayStateMessage)), _ = P(() => !!u.value || r.displayStateMode === "error" && !!r.displayStateMessage), v = P(() => r.displayStateMode === "success" && !!r.displayStateMessage);
1348
1348
  function y(e) {
1349
1349
  return e.target.value;
1350
1350
  }
@@ -1361,7 +1361,7 @@ var Qn = {
1361
1361
  l.value = !0, i("focus", e);
1362
1362
  }
1363
1363
  function S(e) {
1364
- fe(() => {
1364
+ de(() => {
1365
1365
  l.value = !1, i("blur", e);
1366
1366
  });
1367
1367
  }
@@ -1389,24 +1389,24 @@ var Qn = {
1389
1389
  function E(e) {
1390
1390
  i("keydown", e);
1391
1391
  }
1392
- function te() {
1392
+ function D() {
1393
1393
  s.value = "", c.value = !1, u.value = "", o.value && (o.value.value = "", o.value.focus()), i("update:modelValue", ""), i("input", ""), i("change", ""), i("clear"), i("update:valid", !0);
1394
1394
  }
1395
1395
  return t({
1396
1396
  inputElement: o,
1397
1397
  isDirty: c,
1398
1398
  isFocused: l,
1399
- clearValue: te
1400
- }), H(() => {
1399
+ clearValue: D
1400
+ }), U(() => {
1401
1401
  s.value = r.modelValue ?? "", o.value && (i("init", o.value), r.autofocus && o.value.focus()), r.validateAtStartup && (c.value = !0, b(s.value));
1402
1402
  }), Y(() => r.modelValue, (e) => {
1403
1403
  let t = e ?? "";
1404
1404
  t !== s.value && (s.value = t, b(t, !0));
1405
1405
  }), Y(() => r.name, (e) => {
1406
- e || te();
1407
- }), (t, n) => (U(), I("div", {
1406
+ e || D();
1407
+ }), (t, n) => (W(), L("div", {
1408
1408
  id: e.id,
1409
- class: B([
1409
+ class: V([
1410
1410
  t.$style.ui3nInput,
1411
1411
  e.size === "large" && t.$style.large,
1412
1412
  e.label && t.$style.withLabel,
@@ -1416,20 +1416,20 @@ var Qn = {
1416
1416
  e.displayStateMode === "success" && t.$style.success
1417
1417
  ])
1418
1418
  }, [
1419
- e.label ? (U(), I("label", {
1419
+ e.label ? (W(), L("label", {
1420
1420
  key: 0,
1421
- class: B(t.$style.ui3nInputLabel)
1422
- }, q(e.label), 3)) : F("", !0),
1423
- L("div", { class: B([
1421
+ class: V(t.$style.ui3nInputLabel)
1422
+ }, q(e.label), 3)) : I("", !0),
1423
+ R("div", { class: V([
1424
1424
  t.$style.inputWrapper,
1425
1425
  d.value && t.$style.withPrepend,
1426
1426
  h.value && t.$style.withAppend
1427
1427
  ]) }, [
1428
- d.value ? (U(), I("div", {
1428
+ d.value ? (W(), L("div", {
1429
1429
  key: 0,
1430
- class: B(t.$style.prependIconSlot)
1431
- }, [K(t.$slots, "prepend-icon")], 2)) : F("", !0),
1432
- L("input", {
1430
+ class: V(t.$style.prependIconSlot)
1431
+ }, [K(t.$slots, "prepend-icon")], 2)) : I("", !0),
1432
+ R("input", {
1433
1433
  ref_key: "inputElement",
1434
1434
  ref: o,
1435
1435
  autocomplete: e.autocomplete,
@@ -1441,7 +1441,7 @@ var Qn = {
1441
1441
  maxlength: e.maxlength,
1442
1442
  minlength: e.minlength,
1443
1443
  value: s.value,
1444
- class: B(t.$style.ui3nInputField),
1444
+ class: V(t.$style.ui3nInputField),
1445
1445
  onInput: w,
1446
1446
  onKeydown: [
1447
1447
  Z(T, ["enter"]),
@@ -1452,18 +1452,18 @@ var Qn = {
1452
1452
  onBlur: S,
1453
1453
  onChange: C
1454
1454
  }, null, 42, or),
1455
- h.value ? (U(), I("div", {
1455
+ h.value ? (W(), L("div", {
1456
1456
  key: 1,
1457
- class: B(t.$style.appendIconSlot)
1457
+ class: V(t.$style.appendIconSlot)
1458
1458
  }, [
1459
- p.value ? (U(), P(k, {
1459
+ p.value ? (W(), F(A, {
1460
1460
  key: 0,
1461
1461
  icon: "round-check-circle-outline",
1462
1462
  size: 16,
1463
1463
  color: "var(--success-content-default)",
1464
- class: B(t.$style.appendSlotItem)
1465
- }, null, 8, ["class"])) : F("", !0),
1466
- m.value ? (U(), P(O, {
1464
+ class: V(t.$style.appendSlotItem)
1465
+ }, null, 8, ["class"])) : I("", !0),
1466
+ m.value ? (W(), F(k, {
1467
1467
  key: 1,
1468
1468
  type: "icon",
1469
1469
  size: "small",
@@ -1471,22 +1471,22 @@ var Qn = {
1471
1471
  icon: "round-close",
1472
1472
  "icon-size": "16",
1473
1473
  "icon-color": "var(--color-icon-control-accent-default)",
1474
- class: B(t.$style.appendSlotItem),
1474
+ class: V(t.$style.appendSlotItem),
1475
1475
  onMousedown: n[0] ||= Q(() => {}, ["prevent"]),
1476
1476
  onTouchstart: n[1] ||= Q(() => {}, ["prevent"]),
1477
- onClick: te
1478
- }, null, 8, ["class"])) : F("", !0),
1479
- f.value ? K(t.$slots, "append-icon", { key: 2 }) : F("", !0)
1480
- ], 2)) : F("", !0)
1477
+ onClick: D
1478
+ }, null, 8, ["class"])) : I("", !0),
1479
+ f.value ? K(t.$slots, "append-icon", { key: 2 }) : I("", !0)
1480
+ ], 2)) : I("", !0)
1481
1481
  ], 2),
1482
- g.value ? (U(), I("div", {
1482
+ g.value ? (W(), L("div", {
1483
1483
  key: 1,
1484
- class: B([
1484
+ class: V([
1485
1485
  t.$style.ui3nInputFieldMessage,
1486
1486
  _.value && t.$style.ui3nInputErrorMessage,
1487
1487
  v.value && t.$style.ui3nInputSuccessMessage
1488
1488
  ])
1489
- }, q(u.value || e.displayStateMessage), 3)) : F("", !0)
1489
+ }, q(u.value || e.displayStateMessage), 3)) : I("", !0)
1490
1490
  ], 10, ar));
1491
1491
  }
1492
1492
  }), [["__cssModules", { $style: {
@@ -1647,7 +1647,7 @@ var Qn = {
1647
1647
  "multiple",
1648
1648
  "accept",
1649
1649
  "disabled"
1650
- ], Ar = /* @__PURE__ */ D(/* @__PURE__ */ z({
1650
+ ], Ar = /* @__PURE__ */ O(/* @__PURE__ */ B({
1651
1651
  __name: "ui3n-input-file",
1652
1652
  props: {
1653
1653
  id: {},
@@ -1662,7 +1662,7 @@ var Qn = {
1662
1662
  },
1663
1663
  emits: ["update:modelValue", "error"],
1664
1664
  setup(e, { expose: n, emit: r }) {
1665
- let i = e, a = r, o = i.id || t(4), s = W(null);
1665
+ let i = e, a = r, o = i.id || t(4), s = G(null);
1666
1666
  function c(e) {
1667
1667
  i.disabled || (e.stopImmediatePropagation(), s.value?.click());
1668
1668
  }
@@ -1702,11 +1702,11 @@ var Qn = {
1702
1702
  }
1703
1703
  return n({ clear: h }), Y(() => i.name, (e) => {
1704
1704
  e || h();
1705
- }), (t, n) => (U(), I("div", { class: B(t.$style.ui3nInputFile) }, [L("label", {
1705
+ }), (t, n) => (W(), L("div", { class: V(t.$style.ui3nInputFile) }, [R("label", {
1706
1706
  for: J(o),
1707
- class: B([t.$style.label, e.disabled && t.$style.disabled]),
1707
+ class: V([t.$style.label, e.disabled && t.$style.disabled]),
1708
1708
  onClick: Q(c, ["stop", "prevent"])
1709
- }, [K(t.$slots, "default", {}, () => [le(q(e.buttonText), 1)])], 10, Or), L("input", {
1709
+ }, [K(t.$slots, "default", {}, () => [ce(q(e.buttonText), 1)])], 10, Or), R("input", {
1710
1710
  id: J(o),
1711
1711
  ref_key: "fileInput",
1712
1712
  ref: s,
@@ -1731,7 +1731,7 @@ var Qn = {
1731
1731
  "rows",
1732
1732
  "max-rows",
1733
1733
  "disabled"
1734
- ], Nr = /* @__PURE__ */ D(/* @__PURE__ */ z({
1734
+ ], Nr = /* @__PURE__ */ O(/* @__PURE__ */ B({
1735
1735
  __name: "ui3n-text",
1736
1736
  props: {
1737
1737
  id: {},
@@ -1764,7 +1764,7 @@ var Qn = {
1764
1764
  "update:valid"
1765
1765
  ],
1766
1766
  setup(e, { expose: t, emit: n }) {
1767
- let r = e, i = n, a = W(null), o = W(""), s = W(!1), c = W(!1), l = W("");
1767
+ let r = e, i = n, a = G(null), o = G(""), s = G(!1), c = G(!1), l = G("");
1768
1768
  function u(e, t = !1) {
1769
1769
  if (l.value = "", r.rules && r.rules.length) {
1770
1770
  for (let t of r.rules) if (typeof t == "function") {
@@ -1807,26 +1807,26 @@ var Qn = {
1807
1807
  function _() {
1808
1808
  o.value = "", l.value = "", s.value = !1, a.value && (a.value.value = ""), i("update:modelValue", ""), i("input", ""), i("change", ""), i("update:valid", !0);
1809
1809
  }
1810
- return t({ clear: _ }), H(() => {
1810
+ return t({ clear: _ }), U(() => {
1811
1811
  a.value && (E(a.value), i("init", a.value)), r.validateAtStartup && u(o.value);
1812
1812
  }), Y(() => r.name, (e) => {
1813
1813
  e || _();
1814
1814
  }), Y(() => r.modelValue, (e, t) => {
1815
1815
  (e ?? "") !== (t ?? "") && (o.value = e ?? "", u(o.value, s.value || r.validateAtStartup));
1816
- }, { immediate: !0 }), (t, n) => (U(), I("div", {
1816
+ }, { immediate: !0 }), (t, n) => (W(), L("div", {
1817
1817
  id: e.id,
1818
- class: B([
1818
+ class: V([
1819
1819
  t.$style.ui3nText,
1820
1820
  e.disabled && t.$style.disabled,
1821
1821
  c.value && t.$style.focused,
1822
1822
  l.value && t.$style.hasError
1823
1823
  ])
1824
1824
  }, [
1825
- e.label ? (U(), I("label", {
1825
+ e.label ? (W(), L("label", {
1826
1826
  key: 0,
1827
- class: B(t.$style.label)
1828
- }, q(e.label), 3)) : F("", !0),
1829
- L("div", { class: B(t.$style.body) }, [L("textarea", de({
1827
+ class: V(t.$style.label)
1828
+ }, q(e.label), 3)) : I("", !0),
1829
+ R("div", { class: V(t.$style.body) }, [R("textarea", ue({
1830
1830
  ref_key: "textareaElement",
1831
1831
  ref: a,
1832
1832
  class: t.$style.content,
@@ -1847,10 +1847,10 @@ var Qn = {
1847
1847
  onFocusin: d,
1848
1848
  onFocusout: f
1849
1849
  }), null, 16, Mr)], 2),
1850
- l.value ? (U(), I("div", {
1850
+ l.value ? (W(), L("div", {
1851
1851
  key: 1,
1852
- class: B(t.$style.errorBlock)
1853
- }, q(l.value), 3)) : F("", !0)
1852
+ class: V(t.$style.errorBlock)
1853
+ }, q(l.value), 3)) : I("", !0)
1854
1854
  ], 10, jr));
1855
1855
  }
1856
1856
  }), [["__cssModules", { $style: {
@@ -1868,7 +1868,7 @@ var Qn = {
1868
1868
  "disabled",
1869
1869
  "checked",
1870
1870
  "value"
1871
- ], Ir = ["tabindex"], Lr = ["width", "height"], Rr = ["width", "height"], zr = /* @__PURE__ */ D(/* @__PURE__ */ z({
1871
+ ], Ir = ["tabindex"], Lr = ["width", "height"], Rr = ["width", "height"], zr = /* @__PURE__ */ O(/* @__PURE__ */ B({
1872
1872
  __name: "ui3n-checkbox",
1873
1873
  props: {
1874
1874
  id: {},
@@ -1910,16 +1910,16 @@ var Qn = {
1910
1910
  },
1911
1911
  emits: ["change", "update:modelValue"],
1912
1912
  setup(e, { expose: t, emit: n }) {
1913
- let r = te, i = e, a = n, o = Se(), s = be(), c = W(null), l = W(i.modelValue), u = W(i.indeterminate), d = N(() => u.value ? "indeterminate" : l.value === i.checkedValue ? "checked" : "unchecked"), f = N(() => typeof l.value == "boolean" ? l.value ? "on" : "" : String(l.value)), p = N(() => {
1913
+ let r = D, i = e, a = n, o = Se(), s = be(), c = G(null), l = G(i.modelValue), u = G(i.indeterminate), d = P(() => u.value ? "indeterminate" : l.value === i.checkedValue ? "checked" : "unchecked"), f = P(() => typeof l.value == "boolean" ? l.value ? "on" : "" : String(l.value)), p = P(() => {
1914
1914
  let e = parseFloat(String(i.size));
1915
1915
  return isNaN(e) ? 12 : e - 4;
1916
- }), m = N(() => ({
1916
+ }), m = P(() => ({
1917
1917
  "--ui3n-checkbox-size": typeof i.size == "number" ? `${i.size}px` : i.size,
1918
1918
  "--ui3n-checkbox-color": i.color
1919
- })), h = N(() => {
1919
+ })), h = P(() => {
1920
1920
  let e = [s.ui3nCheckbox];
1921
1921
  return i.disabled && e.push(s.disabled), !o.default && e.push(s.noLabel), e;
1922
- }), g = N(() => {
1922
+ }), g = P(() => {
1923
1923
  let e = [s.ui3nCheckboxBody];
1924
1924
  return d.value === "unchecked" ? e.push(s.unfilled) : e.push(s.filled), e;
1925
1925
  });
@@ -1931,17 +1931,17 @@ var Qn = {
1931
1931
  }
1932
1932
  return t({ clear: v }), Y(() => i.name, (e) => {
1933
1933
  e || v();
1934
- }), Y(() => i.modelValue, (e) => l.value = e), Y(() => i.indeterminate, (e) => u.value = e), pe(() => {
1934
+ }), Y(() => i.modelValue, (e) => l.value = e), Y(() => i.indeterminate, (e) => u.value = e), fe(() => {
1935
1935
  let e = typeof i.checkedValue, t = typeof i.uncheckedValue, n = typeof i.modelValue;
1936
1936
  if (e !== t || e !== n || t !== n) throw Error("[Ui3nCheckbox] types of \"value\", \"checkedValue\" and \"uncheckedValue\" are different");
1937
- }), (t, n) => (U(), I("div", {
1937
+ }), (t, n) => (W(), L("div", {
1938
1938
  ref_key: "checkboxEl",
1939
1939
  ref: c,
1940
1940
  id: e.id,
1941
- class: B(h.value),
1942
- style: V(m.value)
1941
+ class: V(h.value),
1942
+ style: H(m.value)
1943
1943
  }, [
1944
- L("input", {
1944
+ R("input", {
1945
1945
  type: "checkbox",
1946
1946
  style: { display: "none" },
1947
1947
  name: e.name,
@@ -1950,40 +1950,40 @@ var Qn = {
1950
1950
  checked: d.value !== "unchecked",
1951
1951
  value: f.value
1952
1952
  }, null, 8, Fr),
1953
- Te((U(), I("div", {
1954
- class: B(g.value),
1953
+ Te((W(), L("div", {
1954
+ class: V(g.value),
1955
1955
  tabindex: e.disabled ? -1 : 0,
1956
1956
  onKeydown: [Z(_, ["space"]), Z(_, ["enter"])],
1957
1957
  onClick: _
1958
- }, [d.value === "checked" ? (U(), I("svg", {
1958
+ }, [d.value === "checked" ? (W(), L("svg", {
1959
1959
  key: 0,
1960
1960
  width: p.value,
1961
1961
  height: p.value,
1962
1962
  viewBox: "0 0 24 24",
1963
1963
  fill: "none",
1964
- class: B(t.$style.ui3nCheckboxIcon)
1965
- }, [...n[0] ||= [L("g", { id: "SVGRepo_iconCarrier" }, [L("path", {
1964
+ class: V(t.$style.ui3nCheckboxIcon)
1965
+ }, [...n[0] ||= [R("g", { id: "SVGRepo_iconCarrier" }, [R("path", {
1966
1966
  d: "M20.0001 7L9.0001 18L4 13",
1967
1967
  stroke: "#fff",
1968
1968
  "stroke-width": "3",
1969
1969
  "stroke-linecap": "round",
1970
1970
  "stroke-linejoin": "round"
1971
- })], -1)]], 10, Lr)) : F("", !0), d.value === "indeterminate" ? (U(), I("svg", {
1971
+ })], -1)]], 10, Lr)) : I("", !0), d.value === "indeterminate" ? (W(), L("svg", {
1972
1972
  key: 1,
1973
1973
  width: p.value,
1974
1974
  height: p.value,
1975
1975
  viewBox: "0 0 24 24",
1976
1976
  fill: "none",
1977
- class: B(t.$style.ui3nCheckboxIcon)
1978
- }, [...n[1] ||= [L("g", { id: "SVGRepo_iconCarrier" }, [L("path", {
1977
+ class: V(t.$style.ui3nCheckboxIcon)
1978
+ }, [...n[1] ||= [R("g", { id: "SVGRepo_iconCarrier" }, [R("path", {
1979
1979
  d: "M7 12L17 12",
1980
1980
  stroke: "#fff",
1981
1981
  "stroke-width": "3",
1982
1982
  "stroke-linecap": "round",
1983
1983
  "stroke-linejoin": "round"
1984
- })], -1)]], 10, Rr)) : F("", !0)], 42, Ir)), [[J(r)]]),
1985
- L("div", {
1986
- class: B(t.$style.ui3nCheckboxLabel),
1984
+ })], -1)]], 10, Rr)) : I("", !0)], 42, Ir)), [[J(r)]]),
1985
+ R("div", {
1986
+ class: V(t.$style.ui3nCheckboxLabel),
1987
1987
  onClick: _
1988
1988
  }, [K(t.$slots, "default")], 2)
1989
1989
  ], 14, Pr));
@@ -1997,7 +1997,7 @@ var Qn = {
1997
1997
  ui3nCheckboxIcon: "_ui3nCheckboxIcon_s0t61_78",
1998
1998
  ui3nCheckboxLabel: "_ui3nCheckboxLabel_s0t61_82",
1999
1999
  disabled: "_disabled_s0t61_90"
2000
- } }]]), Br = /* @__PURE__ */ z({
2000
+ } }]]), Br = /* @__PURE__ */ B({
2001
2001
  __name: "ui3n-table-sort-icon",
2002
2002
  props: {
2003
2003
  size: { default: 16 },
@@ -2005,15 +2005,15 @@ var Qn = {
2005
2005
  value: {}
2006
2006
  },
2007
2007
  setup(e) {
2008
- let t = e, n = N(() => t.value === "asc" ? "round-arrow-upward" : "round-arrow-downward"), r = N(() => {
2008
+ let t = e, n = P(() => t.value === "asc" ? "round-arrow-upward" : "round-arrow-downward"), r = P(() => {
2009
2009
  let e = Number(t.size);
2010
2010
  return isNaN(e) ? 16 : e;
2011
2011
  });
2012
- return (t, i) => (U(), P(se, {
2012
+ return (t, i) => (W(), F(oe, {
2013
2013
  mode: "out-in",
2014
2014
  name: "fade"
2015
2015
  }, {
2016
- default: X(() => [(U(), P(k, {
2016
+ default: X(() => [(W(), F(A, {
2017
2017
  key: n.value,
2018
2018
  icon: n.value,
2019
2019
  size: r.value,
@@ -2041,17 +2041,17 @@ var Qn = {
2041
2041
  t.exports = a;
2042
2042
  })), Ur = /* @__PURE__ */ p(Vr(), 1), Wr = /* @__PURE__ */ p(r(), 1), Gr = /* @__PURE__ */ p(Hr(), 1);
2043
2043
  function Kr(e, t) {
2044
- let n = W(null), r = W({
2044
+ let n = G(null), r = G({
2045
2045
  sortOrder: m(),
2046
2046
  fieldAsRowKey: p()
2047
- }), i = r.value?.fieldAsRowKey ? W([]) : W(/* @__PURE__ */ new Set()), a = W(!1), o = N(() => !!r.value.fieldAsRowKey), s = N(() => e.head.filter((e) => !e.hidden)), c = N(() => o.value ? e.body.content.filter((e) => i.value.includes(e[r.value.fieldAsRowKey])) : Array.from(i.value)), l = N(() => o.value ? (0, $.default)(i.value) : i.value.size), u = N(() => e.config?.selectable === "multiple" && a.value), d = N(() => {
2047
+ }), i = r.value?.fieldAsRowKey ? G([]) : G(/* @__PURE__ */ new Set()), a = G(!1), o = P(() => !!r.value.fieldAsRowKey), s = P(() => e.head.filter((e) => !e.hidden)), c = P(() => o.value ? e.body.content.filter((e) => i.value.includes(e[r.value.fieldAsRowKey])) : Array.from(i.value)), l = P(() => o.value ? (0, $.default)(i.value) : i.value.size), u = P(() => e.config?.selectable === "multiple" && a.value), d = P(() => {
2048
2048
  if (!n.value) return "100%";
2049
2049
  let { config: t = {}, head: r } = e, { columnStyle: i } = t;
2050
2050
  return r.filter((e) => !e.hidden).map((e) => e.key).reduce((e, t, n) => {
2051
2051
  let r = (0, Ur.default)(i, [t, "width"], "1fr");
2052
2052
  return e = n === 0 ? `${r}` : `${e} ${r}`, e;
2053
2053
  }, "");
2054
- }), f = N(() => !e.config?.minHeightUnusedPlace || isNaN(Number(e.config?.minHeightUnusedPlace)) ? {} : { minHeight: `${Number(e.config?.minHeightUnusedPlace || 0)}px` });
2054
+ }), f = P(() => !e.config?.minHeightUnusedPlace || isNaN(Number(e.config?.minHeightUnusedPlace)) ? {} : { minHeight: `${Number(e.config?.minHeightUnusedPlace || 0)}px` });
2055
2055
  function p() {
2056
2056
  let { config: t = {}, body: n } = e, { fieldAsRowKey: r } = t;
2057
2057
  if (r && r in (0, Ur.default)(n, ["content", 0], {})) return r;
@@ -2145,7 +2145,7 @@ function Kr(e, t) {
2145
2145
  }
2146
2146
  //#endregion
2147
2147
  //#region src/components/ui3n-table/ui3n-table.vue?vue&type=script&setup=true&lang.ts
2148
- var qr = ["name", "value"], Jr = /* @__PURE__ */ D(/* @__PURE__ */ z({
2148
+ var qr = ["name", "value"], Jr = /* @__PURE__ */ O(/* @__PURE__ */ B({
2149
2149
  __name: "ui3n-table",
2150
2150
  props: {
2151
2151
  config: {},
@@ -2162,64 +2162,64 @@ var qr = ["name", "value"], Jr = /* @__PURE__ */ D(/* @__PURE__ */ z({
2162
2162
  hasGroupActionsRow: c,
2163
2163
  closeGroupActionsRow: p,
2164
2164
  clear: b
2165
- }), (t, n) => (U(), I("div", {
2165
+ }), (t, n) => (W(), L("div", {
2166
2166
  ref_key: "tableEl",
2167
2167
  ref: r,
2168
- style: V({ "--ui3n-table-columns-width": J(i) }),
2169
- class: B(t.$style.ui3nTable)
2168
+ style: H({ "--ui3n-table-columns-width": J(i) }),
2169
+ class: V(t.$style.ui3nTable)
2170
2170
  }, [
2171
- e.config?.tableName && J(f) > 0 ? (U(), I("fieldset", {
2171
+ e.config?.tableName && J(f) > 0 ? (W(), L("fieldset", {
2172
2172
  key: 0,
2173
- class: B(t.$style.hiddenBlock)
2174
- }, [(U(!0), I(M, null, G(J(d), (t, n) => (U(), I("input", {
2173
+ class: V(t.$style.hiddenBlock)
2174
+ }, [(W(!0), L(N, null, ge(J(d), (t, n) => (W(), L("input", {
2175
2175
  key: J(m)(t, n),
2176
2176
  type: "hidden",
2177
2177
  name: e.config.selectable === "multiple" ? `${e.config.tableName}[]` : e.config.tableName,
2178
2178
  value: String(J(m)(t, n))
2179
- }, null, 8, qr))), 128))], 2)) : F("", !0),
2180
- L("div", { class: B([t.$style.header, J(l) && t.$style.withGroupActions]) }, [J(l) ? (U(), I("div", {
2179
+ }, null, 8, qr))), 128))], 2)) : I("", !0),
2180
+ R("div", { class: V([t.$style.header, J(l) && t.$style.withGroupActions]) }, [J(l) ? (W(), L("div", {
2181
2181
  key: 0,
2182
- class: B(t.$style.groupActions)
2182
+ class: V(t.$style.groupActions)
2183
2183
  }, [
2184
- R(zr, {
2184
+ z(zr, {
2185
2185
  indeterminate: J(f) < e.body.content.length && J(f) !== 0,
2186
2186
  "model-value": J(f) === e.body.content.length,
2187
2187
  onChange: J(v)
2188
2188
  }, {
2189
- default: X(() => [le(" Selected: " + q(J(f)), 1)]),
2189
+ default: X(() => [ce(" Selected: " + q(J(f)), 1)]),
2190
2190
  _: 1
2191
2191
  }, 8, [
2192
2192
  "indeterminate",
2193
2193
  "model-value",
2194
2194
  "onChange"
2195
2195
  ]),
2196
- L("div", { class: B(t.$style.groupActionsBody) }, [K(t.$slots, "group-actions", { selectedRows: J(d) })], 2),
2197
- R(O, {
2196
+ R("div", { class: V(t.$style.groupActionsBody) }, [K(t.$slots, "group-actions", { selectedRows: J(d) })], 2),
2197
+ z(k, {
2198
2198
  type: "secondary",
2199
2199
  onClick: J(p)
2200
2200
  }, {
2201
- default: X(() => [...n[0] ||= [le(" Cancel ", -1)]]),
2201
+ default: X(() => [...n[0] ||= [ce(" Cancel ", -1)]]),
2202
2202
  _: 1
2203
2203
  }, 8, ["onClick"])
2204
- ], 2)) : F("", !0), (U(!0), I(M, null, G(J(s), (e) => (U(), I("div", {
2204
+ ], 2)) : I("", !0), (W(!0), L(N, null, ge(J(s), (e) => (W(), L("div", {
2205
2205
  key: e.key,
2206
- class: B([
2206
+ class: V([
2207
2207
  t.$style.headerItemWrapper,
2208
2208
  e.sortable && t.$style.sortable,
2209
2209
  e.sortable && J(o).sortOrder?.field === e.key && t.$style.sortableActive
2210
2210
  ]),
2211
- style: V(e.headCellStyle)
2212
- }, [L("div", de({
2211
+ style: H(e.headCellStyle)
2212
+ }, [R("div", ue({
2213
2213
  class: t.$style.headerItem,
2214
2214
  style: e.headCellStyle
2215
- }, ye(e.sortable ? { click: () => J(y)(e.key) } : {}, !0)), [K(t.$slots, `header-cell-${e.key}`, {}, () => [L("span", { class: B(t.$style.headerText) }, q(e.text), 3)]), e.sortable && J(o).sortOrder?.field === e.key ? (U(), P(Br, {
2215
+ }, ye(e.sortable ? { click: () => J(y)(e.key) } : {}, !0)), [K(t.$slots, `header-cell-${e.key}`, {}, () => [R("span", { class: V(t.$style.headerText) }, q(e.text), 3)]), e.sortable && J(o).sortOrder?.field === e.key ? (W(), F(Br, {
2216
2216
  key: 0,
2217
2217
  value: J(o).sortOrder?.direction,
2218
2218
  size: "16"
2219
- }, null, 8, ["value"])) : F("", !0)], 16)], 6))), 128))], 2),
2220
- L("div", { class: B(t.$style.body) }, [e.config?.showNoDataMessage && !J($.default)(e.body.content) ? K(t.$slots, "no-data", { key: 0 }, () => [L("div", { class: B(t.$style.noData) }, "No data", 2)]) : (U(), I(M, { key: 1 }, [t.$slots.row ? (U(!0), I(M, { key: 0 }, G(e.body.content, (n, r) => (U(), I("div", {
2219
+ }, null, 8, ["value"])) : I("", !0)], 16)], 6))), 128))], 2),
2220
+ R("div", { class: V(t.$style.body) }, [e.config?.showNoDataMessage && !J($.default)(e.body.content) ? K(t.$slots, "no-data", { key: 0 }, () => [R("div", { class: V(t.$style.noData) }, "No data", 2)]) : (W(), L(N, { key: 1 }, [t.$slots.row ? (W(!0), L(N, { key: 0 }, ge(e.body.content, (n, r) => (W(), L("div", {
2221
2221
  key: J(m)(n, r),
2222
- class: B([
2222
+ class: V([
2223
2223
  t.$style.row,
2224
2224
  t.$slots.row && t.$style.customRow,
2225
2225
  J(h)(n) && t.$style.selected,
@@ -2232,33 +2232,33 @@ var qr = ["name", "value"], Jr = /* @__PURE__ */ D(/* @__PURE__ */ z({
2232
2232
  isRowSelected: J(h)(n),
2233
2233
  columnStyle: e.config?.columnStyle,
2234
2234
  events: x
2235
- })], 2))), 128)) : (U(!0), I(M, { key: 1 }, G(e.body.content, (n, r) => (U(), I("div", {
2235
+ })], 2))), 128)) : (W(!0), L(N, { key: 1 }, ge(e.body.content, (n, r) => (W(), L("div", {
2236
2236
  key: J(m)(n, r),
2237
- class: B([
2237
+ class: V([
2238
2238
  t.$style.row,
2239
2239
  J(h)(n) && t.$style.selected,
2240
2240
  e.config.selectable && t.$style.selectable
2241
2241
  ]),
2242
- style: V(J(g)(n))
2243
- }, [e.config.selectable ? (U(), I("div", {
2242
+ style: H(J(g)(n))
2243
+ }, [e.config.selectable ? (W(), L("div", {
2244
2244
  key: 0,
2245
- class: B(t.$style.rowCheckbox)
2246
- }, [R(zr, {
2245
+ class: V(t.$style.rowCheckbox)
2246
+ }, [z(zr, {
2247
2247
  "model-value": J(h)(n),
2248
2248
  onChange: (e) => J(_)(n)
2249
- }, null, 8, ["model-value", "onChange"])], 2)) : F("", !0), (U(!0), I(M, null, G(J(s), (i, a) => (U(), I("div", {
2249
+ }, null, 8, ["model-value", "onChange"])], 2)) : I("", !0), (W(!0), L(N, null, ge(J(s), (i, a) => (W(), L("div", {
2250
2250
  key: i.key,
2251
- class: B([t.$style.bodyItem, a === 0 && t.$style.bodyItemFirst])
2251
+ class: V([t.$style.bodyItem, a === 0 && t.$style.bodyItemFirst])
2252
2252
  }, [K(t.$slots, `row-cell-${i.key}`, {
2253
2253
  row: n,
2254
2254
  rowIndex: r,
2255
2255
  isRowSelected: J(h)(n),
2256
2256
  columnStyle: e.config?.columnStyle,
2257
2257
  cell: n[i.key]
2258
- }, () => [L("span", { class: B(t.$style.cell) }, q(i.format ? i.format(n[i.key]) : n[i.key]), 3)])], 2))), 128))], 6))), 128))], 64))], 2),
2259
- L("div", {
2260
- class: B(t.$style.unusedPlace),
2261
- style: V(J(a))
2258
+ }, () => [R("span", { class: V(t.$style.cell) }, q(i.format ? i.format(n[i.key]) : n[i.key]), 3)])], 2))), 128))], 6))), 128))], 64))], 2),
2259
+ R("div", {
2260
+ class: V(t.$style.unusedPlace),
2261
+ style: H(J(a))
2262
2262
  }, [K(t.$slots, "unused-place")], 6)
2263
2263
  ], 6));
2264
2264
  }
@@ -2285,22 +2285,22 @@ var qr = ["name", "value"], Jr = /* @__PURE__ */ D(/* @__PURE__ */ z({
2285
2285
  cell: "_cell_d2343_171",
2286
2286
  noData: "_noData_d2343_177",
2287
2287
  unusedPlace: "_unusedPlace_d2343_190"
2288
- } }]]), Yr = ["id", "onClick"], Xr = /* @__PURE__ */ D(/* @__PURE__ */ z({
2288
+ } }]]), Yr = ["id", "onClick"], Xr = /* @__PURE__ */ O(/* @__PURE__ */ B({
2289
2289
  __name: "ui3n-dialog-provider",
2290
2290
  setup(e) {
2291
- let t = ue(C);
2291
+ let t = le(C);
2292
2292
  function n(e, n) {
2293
2293
  (n.closeOnClickOverlay || n.dialogProps?.closeOnClickOverlay) && t.$closeDialog(e, { event: "click-overlay" });
2294
2294
  }
2295
2295
  function r(e, n) {
2296
2296
  t.$closeDialog(e, n);
2297
2297
  }
2298
- return (e, i) => (U(), P(oe, { to: "body" }, [(U(!0), I(M, null, G(J(t).dialogStack.value, (t) => (U(), I("div", {
2298
+ return (e, i) => (W(), F(ae, { to: "body" }, [(W(!0), L(N, null, ge(J(t).dialogStack.value, (t) => (W(), L("div", {
2299
2299
  id: `dialog-wrapper-${t.id}`,
2300
2300
  key: t.id,
2301
- class: B(e.$style["dialog-provider-overlay"]),
2301
+ class: V(e.$style["dialog-provider-overlay"]),
2302
2302
  onClick: Q((e) => n(t.id, t.props), ["self", "prevent"])
2303
- }, [(U(), P(_e(t.component), de({ ref_for: !0 }, t.props, { onAction: (e) => r(t.id, e) }), null, 16, ["onAction"]))], 10, Yr))), 128))]));
2303
+ }, [(W(), F(_e(t.component), ue({ ref_for: !0 }, t.props, { onAction: (e) => r(t.id, e) }), null, 16, ["onAction"]))], 10, Yr))), 128))]));
2304
2304
  }
2305
2305
  }), [["__cssModules", { $style: { "dialog-provider-overlay": "_dialog-provider-overlay_v01lr_1" } }]]);
2306
2306
  //#endregion
@@ -2314,7 +2314,7 @@ function Zr({ width: e, style: t, defaultValue: n = 380 }) {
2314
2314
  }
2315
2315
  //#endregion
2316
2316
  //#region src/components/ui3n-dialog/ui3n-dialog.vue?vue&type=script&setup=true&lang.ts
2317
- var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2317
+ var Qr = ["id"], $r = /* @__PURE__ */ O(/* @__PURE__ */ B({
2318
2318
  __name: "ui3n-dialog",
2319
2319
  props: {
2320
2320
  id: {},
@@ -2351,14 +2351,14 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2351
2351
  },
2352
2352
  emits: ["action"],
2353
2353
  setup(e, { emit: t }) {
2354
- let n = e, r = t, i = Ce("dialog-el"), a = W(!1), o = W({
2354
+ let n = e, r = t, i = Ce("dialog-el"), a = G(!1), o = G({
2355
2355
  initialLeft: 0,
2356
2356
  initialTop: 0,
2357
2357
  left: 0,
2358
2358
  top: 0,
2359
2359
  shiftX: 0,
2360
2360
  shiftY: 0
2361
- }), s = N(() => ({
2361
+ }), s = P(() => ({
2362
2362
  width: Zr({
2363
2363
  width: n.width,
2364
2364
  style: n.cssStyle
@@ -2368,7 +2368,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2368
2368
  left: `${o.value.left}px`,
2369
2369
  top: `${o.value.top}px`
2370
2370
  }
2371
- })), c = N(() => n.icon ? typeof n.icon == "string" ? {
2371
+ })), c = P(() => n.icon ? typeof n.icon == "string" ? {
2372
2372
  icon: n.icon,
2373
2373
  size: 14,
2374
2374
  color: "var(--color-icon-control-secondary-default)"
@@ -2398,8 +2398,8 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2398
2398
  function p(e) {
2399
2399
  a.value && (o.value.left = e.clientX - o.value.shiftX - o.value.initialLeft, o.value.top = e.clientY - o.value.shiftY - o.value.initialTop);
2400
2400
  }
2401
- return H(() => {
2402
- i.value && (i.value.style.setProperty("--ui3n-dialog-confirm-button-color", n.confirmButtonColor), i.value.style.setProperty("--ui3n-dialog-cancel-button-color", n.cancelButtonColor), i.value.style.setProperty("--ui3n-dialog-confirm-background-color", n.confirmButtonBackground), i.value.style.setProperty("--ui3n-dialog-cancel-background-color", n.cancelButtonBackground), fe(() => {
2401
+ return U(() => {
2402
+ i.value && (i.value.style.setProperty("--ui3n-dialog-confirm-button-color", n.confirmButtonColor), i.value.style.setProperty("--ui3n-dialog-cancel-button-color", n.cancelButtonColor), i.value.style.setProperty("--ui3n-dialog-confirm-background-color", n.confirmButtonBackground), i.value.style.setProperty("--ui3n-dialog-cancel-background-color", n.cancelButtonBackground), de(() => {
2403
2403
  i.value && i.value.focus(), setTimeout(() => {
2404
2404
  if (i.value) {
2405
2405
  let e = i.value.getBoundingClientRect();
@@ -2407,7 +2407,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2407
2407
  }
2408
2408
  }, 100);
2409
2409
  }));
2410
- }), (t, i) => (U(), I("div", de({
2410
+ }), (t, i) => (W(), L("div", ue({
2411
2411
  id: e.id,
2412
2412
  ref: "dialog-el",
2413
2413
  tabindex: "1",
@@ -2424,22 +2424,22 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2424
2424
  mousemove: p,
2425
2425
  keydown: l
2426
2426
  } : { keydown: l }, !0)), [
2427
- e.title && !t.$slots.header ? (U(), I("div", {
2427
+ e.title && !t.$slots.header ? (W(), L("div", {
2428
2428
  key: 0,
2429
- class: B([t.$style.title, t.$style.titleDefault])
2430
- }, [c.value ? (U(), P(k, de({ key: 0 }, c.value, { class: t.$style.icon }), null, 16, ["class"])) : F("", !0), L("span", null, q(e.title), 1)], 2)) : F("", !0),
2431
- t.$slots.header ? (U(), I("div", {
2429
+ class: V([t.$style.title, t.$style.titleDefault])
2430
+ }, [c.value ? (W(), F(A, ue({ key: 0 }, c.value, { class: t.$style.icon }), null, 16, ["class"])) : I("", !0), R("span", null, q(e.title), 1)], 2)) : I("", !0),
2431
+ t.$slots.header ? (W(), L("div", {
2432
2432
  key: 1,
2433
- class: B(t.$style.title)
2434
- }, [K(t.$slots, "header")], 2)) : F("", !0),
2435
- t.$slots.body ? (U(), I("div", {
2433
+ class: V(t.$style.title)
2434
+ }, [K(t.$slots, "header")], 2)) : I("", !0),
2435
+ t.$slots.body ? (W(), L("div", {
2436
2436
  key: 2,
2437
- class: B(t.$style.content)
2438
- }, [K(t.$slots, "body")], 2)) : F("", !0),
2439
- (e.confirmButton || e.cancelButton) && !t.$slots.actions ? (U(), I("div", {
2437
+ class: V(t.$style.content)
2438
+ }, [K(t.$slots, "body")], 2)) : I("", !0),
2439
+ (e.confirmButton || e.cancelButton) && !t.$slots.actions ? (W(), L("div", {
2440
2440
  key: 3,
2441
- class: B([t.$style.actions, t.$style.actionsDefault])
2442
- }, [e.cancelButton ? (U(), P(O, {
2441
+ class: V([t.$style.actions, t.$style.actionsDefault])
2442
+ }, [e.cancelButton ? (W(), F(k, {
2443
2443
  key: 0,
2444
2444
  type: "custom",
2445
2445
  color: e.cancelButtonBackground,
@@ -2449,9 +2449,9 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2449
2449
  data: n.data
2450
2450
  }), ["stop", "prevent"])
2451
2451
  }, {
2452
- default: X(() => [le(q(e.cancelButtonText), 1)]),
2452
+ default: X(() => [ce(q(e.cancelButtonText), 1)]),
2453
2453
  _: 1
2454
- }, 8, ["color", "text-color"])) : F("", !0), e.confirmButton ? (U(), P(O, {
2454
+ }, 8, ["color", "text-color"])) : I("", !0), e.confirmButton ? (W(), F(k, {
2455
2455
  key: 1,
2456
2456
  type: "custom",
2457
2457
  color: e.confirmButtonBackground,
@@ -2462,24 +2462,24 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2462
2462
  data: n.data
2463
2463
  }), ["stop", "prevent"])
2464
2464
  }, {
2465
- default: X(() => [le(q(e.confirmButtonText), 1)]),
2465
+ default: X(() => [ce(q(e.confirmButtonText), 1)]),
2466
2466
  _: 1
2467
2467
  }, 8, [
2468
2468
  "color",
2469
2469
  "text-color",
2470
2470
  "disabled"
2471
- ])) : F("", !0)], 2)) : F("", !0),
2472
- t.$slots.actions ? (U(), I("div", {
2471
+ ])) : I("", !0)], 2)) : I("", !0),
2472
+ t.$slots.actions ? (W(), L("div", {
2473
2473
  key: 4,
2474
- class: B(t.$style.actions)
2475
- }, [K(t.$slots, "actions")], 2)) : F("", !0),
2476
- t.$slots.loading ? (U(), I("div", {
2474
+ class: V(t.$style.actions)
2475
+ }, [K(t.$slots, "actions")], 2)) : I("", !0),
2476
+ t.$slots.loading ? (W(), L("div", {
2477
2477
  key: 5,
2478
- class: B(t.$style.loading)
2479
- }, [K(t.$slots, "loading")], 2)) : F("", !0),
2480
- e.hideCloseButton ? F("", !0) : (U(), P(O, {
2478
+ class: V(t.$style.loading)
2479
+ }, [K(t.$slots, "loading")], 2)) : I("", !0),
2480
+ e.hideCloseButton ? I("", !0) : (W(), F(k, {
2481
2481
  key: 6,
2482
- class: B(t.$style.closeBtn),
2482
+ class: V(t.$style.closeBtn),
2483
2483
  type: "icon",
2484
2484
  size: "small",
2485
2485
  color: "var(--color-bg-block-primary-default)",
@@ -2501,7 +2501,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2501
2501
  actions: "_actions_13zmx_74",
2502
2502
  actionsDefault: "_actionsDefault_13zmx_81",
2503
2503
  loading: "_loading_13zmx_89"
2504
- } }]]), ei = ["id"], ti = /* @__PURE__ */ D(/* @__PURE__ */ z({
2504
+ } }]]), ei = ["id"], ti = /* @__PURE__ */ O(/* @__PURE__ */ B({
2505
2505
  __name: "ui3n-menu",
2506
2506
  props: {
2507
2507
  id: {},
@@ -2545,10 +2545,10 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2545
2545
  "update:modelValue"
2546
2546
  ],
2547
2547
  setup(e, { expose: t, emit: n }) {
2548
- let r = e, i = n, a = Ce("menu-trigger-element"), o = Ce("menu-content-element"), s = W(!1), c = W(r.triggerElement || null), l = N(() => c.value || a.value), u = N(() => {
2548
+ let r = e, i = n, a = Ce("menu-trigger-element"), o = Ce("menu-content-element"), s = G(!1), c = G(r.triggerElement || null), l = P(() => c.value || a.value), u = P(() => {
2549
2549
  let e = l.value;
2550
2550
  return e ? e instanceof HTMLElement ? e : "contextElement" in e && e.contextElement instanceof HTMLElement ? e.contextElement : null : null;
2551
- }), d = N(() => {
2551
+ }), d = P(() => {
2552
2552
  let e = [ke({
2553
2553
  mainAxis: r.offsetY,
2554
2554
  crossAxis: r.offsetX + 2
@@ -2562,7 +2562,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2562
2562
  strategy: r.positionStrategy,
2563
2563
  middleware: d,
2564
2564
  whileElementsMounted: r.positionAutoupdate || r.positionStrategy === "fixed" ? De : void 0
2565
- }), h = N(() => {
2565
+ }), h = P(() => {
2566
2566
  let e = "";
2567
2567
  if (typeof r.contentBorderRadius == "number") e = `${r.contentBorderRadius}px`;
2568
2568
  else if (Array.isArray(r.contentBorderRadius)) {
@@ -2626,33 +2626,33 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2626
2626
  e && (c.value = e, m());
2627
2627
  }), Y([() => r.offsetX, () => r.offsetY], ([e, t], [n, r]) => {
2628
2628
  (e !== n || t !== r) && m();
2629
- }), he(() => {
2629
+ }), me(() => {
2630
2630
  y();
2631
2631
  }), t({
2632
2632
  isPositioned: p,
2633
2633
  update: m
2634
- }), (t, n) => (U(), I("div", {
2634
+ }), (t, n) => (W(), L("div", {
2635
2635
  ref: "menu-element",
2636
2636
  id: e.id,
2637
- class: B(t.$style.ui3nMenu),
2637
+ class: V(t.$style.ui3nMenu),
2638
2638
  onClick: n[0] ||= (e) => i("click", e)
2639
- }, [L("div", {
2639
+ }, [R("div", {
2640
2640
  ref: "menu-trigger-element",
2641
- class: B([t.$style.ui3nMenuTrigger, e.disabled && t.$style.ui3nMenuTriggerDisabled]),
2641
+ class: V([t.$style.ui3nMenuTrigger, e.disabled && t.$style.ui3nMenuTriggerDisabled]),
2642
2642
  onClick: Q(b, ["stop"])
2643
- }, [K(t.$slots, "default")], 2), s.value ? Te((U(), I("div", de({
2643
+ }, [K(t.$slots, "default")], 2), s.value ? Te((W(), L("div", ue({
2644
2644
  key: 0,
2645
2645
  ref: "menu-content-element",
2646
2646
  style: h.value,
2647
2647
  class: t.$style.ui3nMenuContent
2648
- }, ye(e.closeOnClick ? { click: x } : {}, !0)), [K(t.$slots, "menu")], 16)), [[J(On), S]]) : F("", !0)], 10, ei));
2648
+ }, ye(e.closeOnClick ? { click: x } : {}, !0)), [K(t.$slots, "menu")], 16)), [[J(On), S]]) : I("", !0)], 10, ei));
2649
2649
  }
2650
2650
  }), [["__cssModules", { $style: {
2651
2651
  ui3nMenu: "_ui3nMenu_t6wf8_3",
2652
2652
  ui3nMenuTrigger: "_ui3nMenuTrigger_t6wf8_11",
2653
2653
  ui3nMenuTriggerDisabled: "_ui3nMenuTriggerDisabled_t6wf8_15",
2654
2654
  ui3nMenuContent: "_ui3nMenuContent_t6wf8_20"
2655
- } }]]), ni = ["id"], ri = ["onClick"], ii = /* @__PURE__ */ D(/* @__PURE__ */ z({
2655
+ } }]]), ni = ["id"], ri = ["onClick"], ii = /* @__PURE__ */ O(/* @__PURE__ */ B({
2656
2656
  __name: "ui3n-list",
2657
2657
  props: {
2658
2658
  id: {},
@@ -2671,21 +2671,21 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2671
2671
  emits: ["select"],
2672
2672
  setup(e, { emit: t }) {
2673
2673
  let n = t;
2674
- return (t, r) => (U(), I("div", {
2674
+ return (t, r) => (W(), L("div", {
2675
2675
  ref: "listElement",
2676
2676
  id: e.id,
2677
- class: B(t.$style.ui3nList)
2678
- }, [L("div", { class: B([t.$style.ui3nListTitle, e.sticky && t.$style.ui3nListTitleSticky]) }, [K(t.$slots, "title", {}, () => [e.title ? (U(), I("div", {
2677
+ class: V(t.$style.ui3nList)
2678
+ }, [R("div", { class: V([t.$style.ui3nListTitle, e.sticky && t.$style.ui3nListTitleSticky]) }, [K(t.$slots, "title", {}, () => [e.title ? (W(), L("div", {
2679
2679
  key: 0,
2680
- class: B(t.$style.ui3nListTitleContent)
2681
- }, q(e.title), 3)) : F("", !0)])], 2), L("div", { class: B(t.$style.ui3nListContent) }, [(U(!0), I(M, null, G(e.items, (r, i) => (U(), I("div", {
2680
+ class: V(t.$style.ui3nListTitleContent)
2681
+ }, q(e.title), 3)) : I("", !0)])], 2), R("div", { class: V(t.$style.ui3nListContent) }, [(W(!0), L(N, null, ge(e.items, (r, i) => (W(), L("div", {
2682
2682
  key: r[e.keyField],
2683
- class: B(t.$style.ui3nListItem)
2683
+ class: V(t.$style.ui3nListItem)
2684
2684
  }, [K(t.$slots, "item", {
2685
2685
  item: r,
2686
2686
  index: i
2687
- }, () => [L("div", {
2688
- class: B([t.$style.ui3nListItemContent, e.disabled && t.$style.ui3nListItemContentDisabled]),
2687
+ }, () => [R("div", {
2688
+ class: V([t.$style.ui3nListItemContent, e.disabled && t.$style.ui3nListItemContentDisabled]),
2689
2689
  onClick: Q((e) => n("select", {
2690
2690
  value: r,
2691
2691
  index: i
@@ -2701,7 +2701,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2701
2701
  ui3nListItem: "_ui3nListItem_1mtxl_26",
2702
2702
  ui3nListItemContent: "_ui3nListItemContent_1mtxl_43",
2703
2703
  ui3nListItemContentDisabled: "_ui3nListItemContentDisabled_1mtxl_50"
2704
- } }]]), ai = 32, oi = /* @__PURE__ */ D(/* @__PURE__ */ z({
2704
+ } }]]), ai = 32, oi = /* @__PURE__ */ O(/* @__PURE__ */ B({
2705
2705
  __name: "ui3n-scrollbar-vertical",
2706
2706
  props: {
2707
2707
  thumbMinHeight: { default: ai },
@@ -2720,10 +2720,10 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2720
2720
  },
2721
2721
  emits: ["scroll"],
2722
2722
  setup(e, { expose: t, emit: n }) {
2723
- let r = e, i = n, a = W(null), o = W(null), s = W(null), c = W(0), l = W(0), u = W(0), d = W(!1), f = W(!1), p = W(!1), m = null, h, g = 0, _ = 0, v = N(() => c.value > l.value), y = N(() => d.value ? !0 : v.value && (f.value || p.value)), b = N(() => {
2723
+ let r = e, i = n, a = G(null), o = G(null), s = G(null), c = G(0), l = G(0), u = G(0), d = G(!1), f = G(!1), p = G(!1), m = null, h, g = 0, _ = 0, v = P(() => c.value > l.value), y = P(() => d.value ? !0 : v.value && (f.value || p.value)), b = P(() => {
2724
2724
  let e = Number(r.thumbMinHeight);
2725
2725
  return isNaN(e) ? ai : e;
2726
- }), x = N(() => {
2726
+ }), x = P(() => {
2727
2727
  if (!c.value) return 0;
2728
2728
  if (r.thumbHeight !== "auto") {
2729
2729
  let e = Number(r.thumbHeight);
@@ -2731,91 +2731,91 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2731
2731
  }
2732
2732
  let e = l.value / c.value, t = l.value * e;
2733
2733
  return Math.max(b.value, t);
2734
- }), S = N(() => {
2734
+ }), S = P(() => {
2735
2735
  if (!c.value || c.value === l.value) return 0;
2736
2736
  let e = c.value - l.value, t = l.value - x.value;
2737
2737
  return u.value / e * t;
2738
- }), C = N(() => {
2738
+ }), C = P(() => {
2739
2739
  let e = Number(r.thumbRadius);
2740
2740
  return isNaN(e) ? String(r.thumbRadius) : `${e}px`;
2741
- }), w = N(() => r.thumbColor), T = N(() => r.thumbHoverColor), ee = N(() => r.thumbActiveColor), E = N(() => {
2741
+ }), w = P(() => r.thumbColor), T = P(() => r.thumbHoverColor), ee = P(() => r.thumbActiveColor), E = P(() => {
2742
2742
  let e = Number(r.trackWidth);
2743
2743
  return isNaN(e) ? String(r.trackWidth) : `${e}px`;
2744
- }), te = N(() => r.trackColor), D = N(() => {
2744
+ }), D = P(() => r.trackColor), O = P(() => {
2745
2745
  let e = Number(r.trackRadius);
2746
2746
  return isNaN(e) ? String(r.trackRadius) : `${e}px`;
2747
2747
  });
2748
- function O() {
2748
+ function k() {
2749
2749
  a.value && (c.value = a.value.scrollHeight, l.value = a.value.clientHeight, u.value = a.value.scrollTop);
2750
2750
  }
2751
- function k(e) {
2751
+ function A(e) {
2752
2752
  d.value || (u.value = e.target.scrollTop), p.value = !0, h && clearTimeout(h), h = setTimeout(() => {
2753
2753
  p.value = !1;
2754
2754
  }, 1500), i("scroll", e);
2755
2755
  }
2756
- function A(e) {
2756
+ function j(e) {
2757
2757
  if (e.target !== o.value || !a.value || !o.value) return;
2758
2758
  let t = o.value.getBoundingClientRect(), n = e.clientY - t.top - x.value / 2, r = c.value - l.value, i = n / (l.value - x.value) * r;
2759
2759
  i = Math.max(0, Math.min(r, i)), a.value.scrollTo({ top: i });
2760
2760
  }
2761
- function ne(e) {
2762
- !s.value || !a.value || (e.pointerType === "mouse" && e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientY, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", re), s.value.addEventListener("pointerup", j), s.value.addEventListener("pointercancel", j));
2761
+ function te(e) {
2762
+ !s.value || !a.value || (e.pointerType === "mouse" && e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientY, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", ne), s.value.addEventListener("pointerup", M), s.value.addEventListener("pointercancel", M));
2763
2763
  }
2764
- function re(e) {
2764
+ function ne(e) {
2765
2765
  if (!d.value || !a.value) return;
2766
2766
  let t = e.clientY - g, n = c.value - l.value, r = t / (l.value - x.value) * n;
2767
2767
  a.value.scrollTop = _ + r, u.value = a.value.scrollTop;
2768
2768
  }
2769
- function j(e) {
2769
+ function M(e) {
2770
2770
  if (d.value && (d.value = !1, document.body.style.userSelect = "", s.value)) {
2771
2771
  try {
2772
2772
  s.value.releasePointerCapture(e.pointerId);
2773
2773
  } catch {}
2774
- s.value.removeEventListener("pointermove", re), s.value.removeEventListener("pointerup", j), s.value.removeEventListener("pointercancel", j);
2774
+ s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M);
2775
2775
  }
2776
2776
  }
2777
- return H(() => {
2778
- O(), a.value && (m = new ResizeObserver(O), m.observe(a.value), r.autoUpdate && a.value.firstElementChild && m.observe(a.value.firstElementChild));
2779
- }), me(() => {
2780
- m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", re), s.value.removeEventListener("pointerup", j), s.value.removeEventListener("pointercancel", j)), document.body.style.userSelect = "";
2777
+ return U(() => {
2778
+ k(), a.value && (m = new ResizeObserver(k), m.observe(a.value), r.autoUpdate && a.value.firstElementChild && m.observe(a.value.firstElementChild));
2779
+ }), pe(() => {
2780
+ m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M)), document.body.style.userSelect = "";
2781
2781
  }), t({
2782
2782
  scrollTo: (e) => {
2783
2783
  a.value?.scrollTo(e);
2784
2784
  },
2785
2785
  getContainer: () => a.value,
2786
- updateMetrics: O
2787
- }), (e, t) => (U(), I("div", {
2788
- class: B(e.$style.ui3nScrollbarVertical),
2789
- style: V({
2786
+ updateMetrics: k
2787
+ }), (e, t) => (W(), L("div", {
2788
+ class: V(e.$style.ui3nScrollbarVertical),
2789
+ style: H({
2790
2790
  "--ui3n-scrollbar-thumb-radius": C.value,
2791
2791
  "--ui3n-scrollbar-thumb-color": w.value,
2792
2792
  "--ui3n-scrollbar-thumb-hover-color": T.value,
2793
2793
  "--ui3n-scrollbar-thumb-active-color": ee.value,
2794
2794
  "--ui3n-scrollbar-track-width": E.value,
2795
- "--ui3n-scrollbar-track-radius": D.value,
2796
- "--ui3n-scrollbar-track-color": te.value
2795
+ "--ui3n-scrollbar-track-radius": O.value,
2796
+ "--ui3n-scrollbar-track-color": D.value
2797
2797
  }),
2798
2798
  onMouseenter: t[0] ||= (e) => f.value = !0,
2799
2799
  onMouseleave: t[1] ||= (e) => f.value = !1
2800
- }, [L("div", {
2800
+ }, [R("div", {
2801
2801
  ref_key: "containerRef",
2802
2802
  ref: a,
2803
- class: B(e.$style.scrollbarContainer),
2804
- onScroll: k
2805
- }, [K(e.$slots, "default")], 34), L("div", {
2803
+ class: V(e.$style.scrollbarContainer),
2804
+ onScroll: A
2805
+ }, [K(e.$slots, "default")], 34), R("div", {
2806
2806
  ref_key: "trackRef",
2807
2807
  ref: o,
2808
- class: B([e.$style.track, { [e.$style.trackVisible]: y.value }]),
2809
- onPointerdown: A
2810
- }, [L("div", {
2808
+ class: V([e.$style.track, { [e.$style.trackVisible]: y.value }]),
2809
+ onPointerdown: j
2810
+ }, [R("div", {
2811
2811
  ref_key: "thumbRef",
2812
2812
  ref: s,
2813
- class: B([e.$style.thumb, { [e.$style.active]: d.value }]),
2814
- style: V({
2813
+ class: V([e.$style.thumb, { [e.$style.active]: d.value }]),
2814
+ style: H({
2815
2815
  height: `${x.value}px`,
2816
2816
  transform: `translateY(${S.value}px)`
2817
2817
  }),
2818
- onPointerdown: ne
2818
+ onPointerdown: te
2819
2819
  }, null, 38)], 34)], 38));
2820
2820
  }
2821
2821
  }), [["__cssModules", { $style: {
@@ -2825,114 +2825,220 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2825
2825
  trackVisible: "_trackVisible_m0o0t_38",
2826
2826
  thumb: "_thumb_m0o0t_44",
2827
2827
  active: "_active_m0o0t_57"
2828
- } }]]), si = /* @__PURE__ */ D(/* @__PURE__ */ z({
2828
+ } }]]), si = /* @__PURE__ */ O(/* @__PURE__ */ B({
2829
2829
  __name: "ui3n-virtual-scroll",
2830
2830
  props: {
2831
2831
  items: {},
2832
2832
  minChildHeight: { default: 16 },
2833
- renderAhead: { default: 20 }
2833
+ renderAhead: { default: 20 },
2834
+ stickToBottom: {
2835
+ type: Boolean,
2836
+ default: !1
2837
+ },
2838
+ stickToBottomThreshold: { default: 32 },
2839
+ reachEdgeThreshold: { default: 64 }
2834
2840
  },
2835
- setup(e) {
2836
- let t = e, n = W(0), r = W(null), i = W(null), a = ve([]), o = W(0), s = !1, c = null, l = null, u = /* @__PURE__ */ new Map(), d = N(() => {
2837
- if (o.value, !a.value.length) return 0;
2838
- let e = a.value[a.value.length - 1];
2841
+ emits: [
2842
+ "scroll",
2843
+ "reached-top",
2844
+ "reached-bottom"
2845
+ ],
2846
+ setup(e, { expose: t, emit: n }) {
2847
+ let r = e, i = n, a = G(0), o = G(null), s = G(null), c = ve([]), l = G(0), u = /* @__PURE__ */ new Map(), d = ve(/* @__PURE__ */ new Map()), f = !1, p = null, m = null, h = [], g = null, _ = /* @__PURE__ */ new Map(), v = P(() => {
2848
+ if (l.value, !c.value.length) return 0;
2849
+ let e = c.value[c.value.length - 1];
2839
2850
  return e.top + e.height;
2840
- }), f = N(() => {
2841
- if (r.value !== null) return r.value;
2842
- let e = i.value?.getContainer();
2851
+ }), y = P(() => {
2852
+ if (o.value !== null) return o.value;
2853
+ let e = s.value?.getContainer();
2843
2854
  return e ? e.clientHeight : 0;
2844
- }), p = N(() => {
2845
- o.value;
2846
- let e = n.value;
2847
- if (!a.value.length) return 0;
2848
- let r = 0, i = a.value.length - 1, s = -1;
2849
- for (; r <= i;) {
2850
- let t = Math.floor((r + i) / 2), n = a.value[t];
2851
- if (n.top <= e && n.top + n.height > e) {
2852
- s = t;
2855
+ });
2856
+ function b(e, t) {
2857
+ if (!e.length) return 0;
2858
+ let n = 0, r = e.length - 1, i = -1;
2859
+ for (; n <= r;) {
2860
+ let a = Math.floor((n + r) / 2), o = e[a];
2861
+ if (o.top <= t && o.top + o.height > t) {
2862
+ i = a;
2853
2863
  break;
2854
- } else n.top > e ? i = t - 1 : r = t + 1;
2864
+ } else o.top > t ? r = a - 1 : n = a + 1;
2855
2865
  }
2856
- return s === -1 && (s = Math.max(0, i)), Math.max(0, s - t.renderAhead);
2857
- }), m = N(() => {
2858
- let e = f.value;
2859
- return e ? Math.ceil(e / t.minChildHeight) + 2 * t.renderAhead : t.renderAhead * 2;
2860
- }), h = N(() => (o.value, a.value.length && a.value[p.value]?.top || 0)), g = N(() => {
2861
- let e = p.value, n = m.value;
2862
- return e + n >= t.items.length - t.renderAhead ? t.items.slice(e) : t.items.slice(e, e + n);
2866
+ return i === -1 && (i = Math.max(0, r)), i;
2867
+ }
2868
+ let x = P(() => {
2869
+ if (l.value, !c.value.length) return 0;
2870
+ let e = b(c.value, a.value);
2871
+ return Math.max(0, e - r.renderAhead);
2872
+ }), S = P(() => {
2873
+ l.value;
2874
+ let e = y.value;
2875
+ if (!e) return r.renderAhead * 2;
2876
+ if (!c.value.length) return Math.ceil(e / r.minChildHeight) + 2 * r.renderAhead;
2877
+ let t = b(c.value, a.value);
2878
+ return b(c.value, a.value + e) - t + 1 + 2 * r.renderAhead;
2879
+ }), C = P(() => (l.value, c.value.length && c.value[x.value]?.top || 0)), w = P(() => {
2880
+ let e = x.value, t = S.value;
2881
+ return e + t >= r.items.length - r.renderAhead ? r.items.slice(e) : r.items.slice(e, e + t);
2863
2882
  });
2864
- function _(e) {
2865
- s || (n.value = e.target.scrollTop);
2883
+ function T() {
2884
+ return s.value?.getContainer() ?? null;
2885
+ }
2886
+ function ee(e) {
2887
+ if (!e.length) return 0;
2888
+ let t = e[e.length - 1];
2889
+ return t.top + t.height;
2890
+ }
2891
+ function E(e, t, n = r.stickToBottomThreshold) {
2892
+ return !e || !t.length ? !1 : ee(t) - (e.scrollTop + e.clientHeight) <= n;
2893
+ }
2894
+ function D(e, t) {
2895
+ if (!e) {
2896
+ a.value = Math.max(0, t);
2897
+ return;
2898
+ }
2899
+ f = !0, e.scrollTop = Math.max(0, t), a.value = e.scrollTop, f = !1;
2900
+ }
2901
+ function O(e = T(), t = c.value) {
2902
+ t.length && D(e, ee(t) - (e?.clientHeight ?? y.value));
2903
+ }
2904
+ function k(e, t, n) {
2905
+ if (!e.length || !t.length) return null;
2906
+ let r = b(e, n), i = e[r], a = t[r]?.id;
2907
+ return !i || !a ? null : {
2908
+ id: a,
2909
+ offsetWithinItem: n - i.top
2910
+ };
2866
2911
  }
2867
- function v(e, t) {
2912
+ function A(e, t, n, r) {
2913
+ let i = n.get(e.id);
2914
+ return i === void 0 || !t[i] ? !1 : (D(r, t[i].top + e.offsetWithinItem), !0);
2915
+ }
2916
+ function j() {
2917
+ let e = /* @__PURE__ */ new Map(), t = Array(r.items.length), n = /* @__PURE__ */ new Map(), i = 0;
2918
+ for (let a = 0; a < r.items.length; a++) {
2919
+ let o = r.items[a].id;
2920
+ e.set(o, a);
2921
+ let s = u.get(o) ?? r.minChildHeight;
2922
+ n.set(o, s), t[a] = {
2923
+ height: s,
2924
+ top: i
2925
+ }, i += s;
2926
+ }
2927
+ u.clear();
2928
+ for (let [e, t] of n) u.set(e, t);
2929
+ return d.value = e, t;
2930
+ }
2931
+ function te() {
2932
+ let e = T(), t = c.value, n = h, i = r.stickToBottom && (!t.length || E(e, t)), o = i ? null : k(t, n, a.value);
2933
+ c.value = j(), l.value++, h = r.items.slice(), g = null;
2934
+ let u = () => {
2935
+ let e = T();
2936
+ if (i) O(e, c.value);
2937
+ else if (o && !A(o, c.value, d.value, e) && e) {
2938
+ let t = Math.max(0, ee(c.value) - e.clientHeight);
2939
+ a.value > t && D(e, t);
2940
+ }
2941
+ s.value?.updateMetrics();
2942
+ };
2943
+ de(() => {
2944
+ requestAnimationFrame(u);
2945
+ });
2946
+ }
2947
+ function ne(e) {
2948
+ if (f) return;
2949
+ let t = e.target;
2950
+ a.value = t.scrollTop, i("scroll", e);
2951
+ let n = a.value <= r.reachEdgeThreshold, o = E(t, c.value, r.reachEdgeThreshold);
2952
+ n ? g !== "top" && (g = "top", i("reached-top")) : o ? g !== "bottom" && (g = "bottom", i("reached-bottom")) : g = null;
2953
+ }
2954
+ function M(e, t) {
2868
2955
  if (e) {
2869
- let n = e.$el || e;
2870
- u.set(t, n), c?.observe(n);
2871
- } else u.delete(t);
2956
+ let n = e.$el || e, r = _.get(t);
2957
+ r && r !== n && p?.unobserve(r), _.set(t, n), p?.observe(n);
2958
+ } else {
2959
+ let e = _.get(t);
2960
+ e && p?.unobserve(e), _.delete(t);
2961
+ }
2872
2962
  }
2873
- function y() {
2874
- let e = 0;
2875
- a.value = t.items.map(() => {
2876
- let n = {
2877
- height: t.minChildHeight,
2878
- top: e
2879
- };
2880
- return e += t.minChildHeight, n;
2881
- }), o.value++;
2882
- }
2883
- return H(() => {
2884
- let e = i.value?.getContainer();
2885
- e && (r.value = e.clientHeight, l = new ResizeObserver((e) => {
2886
- for (let t of e) r.value = t.contentRect.height || t.target.clientHeight;
2887
- }), l.observe(e)), c = new ResizeObserver((r) => {
2963
+ function re() {
2964
+ O(), s.value?.updateMetrics();
2965
+ }
2966
+ function ie(e, t, n) {
2967
+ return t === "end" ? e.top + e.height - n : t === "center" ? e.top + e.height / 2 - n / 2 : e.top;
2968
+ }
2969
+ function ae(e, t = "start", n = 5) {
2970
+ let r = d.value.get(e);
2971
+ if (r === void 0) return;
2972
+ let i = c.value[r];
2973
+ if (!i) return;
2974
+ let a = T();
2975
+ if (D(a, ie(i, t, a?.clientHeight ?? y.value)), s.value?.updateMetrics(), n <= 0) return;
2976
+ let o = i.top;
2977
+ requestAnimationFrame(() => {
2978
+ let r = d.value.get(e), i = r === void 0 ? void 0 : c.value[r];
2979
+ i && i.top !== o && ae(e, t, n - 1);
2980
+ });
2981
+ }
2982
+ return t({
2983
+ scrollToBottom: re,
2984
+ scrollToItem: (e, t) => ae(e, t),
2985
+ getScrollTop: () => a.value,
2986
+ isStuckToBottom: () => E(T(), c.value)
2987
+ }), U(() => {
2988
+ let e = T();
2989
+ e && (o.value = e.clientHeight, m = new ResizeObserver((e) => {
2990
+ for (let t of e) o.value = t.contentRect.height || t.target.clientHeight;
2991
+ }), m.observe(e)), p = new ResizeObserver((e) => {
2888
2992
  requestAnimationFrame(() => {
2889
- let c = Infinity, l = 0, u = [...a.value], d = n.value;
2890
- for (let e of r) {
2891
- let n = e.target.getAttribute("data-sid");
2892
- if (!n) continue;
2893
- let r = t.items.findIndex((e, t) => (e.id ?? t).toString() === n);
2894
- if (r === -1) continue;
2895
- let i = e.contentRect.height || e.target.getBoundingClientRect().height;
2896
- if (u[r] && u[r].height !== i) {
2897
- let e = u[r].height;
2898
- u[r] = {
2899
- ...u[r],
2900
- height: i
2901
- }, u[r].top < d && (l += i - e), r < c && (c = r);
2902
- }
2903
- }
2904
- if (c !== Infinity) {
2905
- let t = u[c].top;
2906
- for (let e = c; e < u.length; e++) u[e].top = t, t += u[e].height;
2907
- a.value = u, o.value++, e && l !== 0 && (s = !0, e.scrollTop = d + l, n.value = e.scrollTop, s = !1), i.value?.updateMetrics();
2993
+ let t = Infinity, n = 0, i = c.value.slice(), o = d.value, f = a.value, p = T(), m = r.stickToBottom && E(p, c.value);
2994
+ for (let r of e) {
2995
+ let e = r.target.getAttribute("data-sid");
2996
+ if (!e) continue;
2997
+ let a = o.get(e);
2998
+ if (a === void 0) continue;
2999
+ let s = r.contentRect.height || r.target.getBoundingClientRect().height, c = i[a];
3000
+ if (!c || c.height === s) continue;
3001
+ let l = c.height;
3002
+ i[a] = {
3003
+ ...c,
3004
+ height: s
3005
+ }, u.set(e, s), c.top + c.height <= f ? n += s - l : c.top < f && (n += Math.min(s, f - c.top) - Math.min(l, f - c.top)), a < t && (t = a);
2908
3006
  }
3007
+ if (t === Infinity) return;
3008
+ let h = i[t].top;
3009
+ for (let e = t; e < i.length; e++) i[e] = {
3010
+ ...i[e],
3011
+ top: h
3012
+ }, h += i[e].height;
3013
+ c.value = i, l.value++, m ? O(p, i) : p && n !== 0 && D(p, f + n), s.value?.updateMetrics();
2909
3014
  });
2910
3015
  });
2911
- }), me(() => {
2912
- c?.disconnect(), l?.disconnect();
2913
- }), Y(() => t.items, y, { immediate: !0 }), (e, n) => (U(), P(oi, {
3016
+ for (let e of _.values()) p.observe(e);
3017
+ }), pe(() => {
3018
+ p?.disconnect(), m?.disconnect();
3019
+ }), Y(() => r.items, te, { immediate: !0 }), (e, t) => (W(), F(oi, {
2914
3020
  ref_key: "scrollbarComponentRef",
2915
- ref: i,
2916
- class: B(e.$style.ui3nVirtualScroll),
3021
+ ref: s,
3022
+ class: V(e.$style.ui3nVirtualScroll),
2917
3023
  "auto-update": !1,
2918
- onScroll: _
3024
+ onScroll: ne
2919
3025
  }, {
2920
- default: X(() => [L("div", {
2921
- class: B(e.$style.viewport),
2922
- style: V({ height: `${d.value}px` })
2923
- }, [L("div", {
2924
- class: B(e.$style.content),
2925
- style: V({ transform: `translateY(${h.value}px)` })
2926
- }, [(U(!0), I(M, null, G(g.value, (n, r) => (U(), I("div", de({
2927
- key: n.id ?? `v-node-${p.value + r}`,
3026
+ default: X(() => [R("div", {
3027
+ class: V(e.$style.viewport),
3028
+ style: H({ height: `${v.value}px` })
3029
+ }, [R("div", {
3030
+ class: V(e.$style.content),
3031
+ style: H({ transform: `translateY(${C.value}px)` })
3032
+ }, [(W(!0), L(N, null, ge(w.value, (t, n) => (W(), L("div", ue({
3033
+ key: t.id,
2928
3034
  ref_for: !0,
2929
- ref: (e) => v(e, n.id ?? p.value + r)
2930
- }, { ref_for: !0 }, { "data-sid": n.id ?? p.value + r }, {
3035
+ ref: (e) => M(e, t.id)
3036
+ }, { ref_for: !0 }, { "data-sid": t.id }, {
2931
3037
  class: e.$style.item,
2932
- style: { minHeight: `${t.minChildHeight}px` }
3038
+ style: { minHeight: `${r.minChildHeight}px` }
2933
3039
  }), [K(e.$slots, "item", {
2934
- value: n,
2935
- index: p.value + r
3040
+ value: t,
3041
+ index: x.value + n
2936
3042
  })], 16))), 128))], 6)], 6)]),
2937
3043
  _: 3
2938
3044
  }, 8, ["class"]));
@@ -2942,7 +3048,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2942
3048
  viewport: "_viewport_1mjyl_5",
2943
3049
  content: "_content_1mjyl_14",
2944
3050
  item: "_item_1mjyl_18"
2945
- } }]]), ci = ["id"], li = /* @__PURE__ */ D(/* @__PURE__ */ z({
3051
+ } }]]), ci = ["id"], li = /* @__PURE__ */ O(/* @__PURE__ */ B({
2946
3052
  __name: "ui3n-tabs",
2947
3053
  props: {
2948
3054
  id: {},
@@ -2956,7 +3062,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2956
3062
  },
2957
3063
  emits: ["update:modelValue"],
2958
3064
  setup(e, { emit: t }) {
2959
- let n = e, r = t, i = be(), a = W(null), o = W(n.modelValue), s = N(() => ({
3065
+ let n = e, r = t, i = be(), a = G(null), o = G(n.modelValue), s = P(() => ({
2960
3066
  "--ui3n-tabs-active-color": n.activeColor,
2961
3067
  "--ui3n-tabs-inactive-color": n.inactiveColor,
2962
3068
  "--ui3n-tabs-indicator-color": n.indicatorColor,
@@ -2981,17 +3087,17 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
2981
3087
  }
2982
3088
  }
2983
3089
  return Y(() => n.modelValue, (e) => {
2984
- e !== o.value && (o.value = e, fe(() => {
3090
+ e !== o.value && (o.value = e, de(() => {
2985
3091
  c();
2986
3092
  }));
2987
- }, { immediate: !0 }), H(() => {
3093
+ }, { immediate: !0 }), U(() => {
2988
3094
  c();
2989
- }), (t, n) => (U(), I("div", {
3095
+ }), (t, n) => (W(), L("div", {
2990
3096
  ref_key: "tabs",
2991
3097
  ref: a,
2992
3098
  id: e.id,
2993
- style: V(s.value),
2994
- class: B([J(i).ui3nTabs, e.itemDirection === "vertical" && J(i).vertical]),
3099
+ style: H(s.value),
3100
+ class: V([J(i).ui3nTabs, e.itemDirection === "vertical" && J(i).vertical]),
2995
3101
  onClick: l
2996
3102
  }, [K(t.$slots, "default")], 14, ci));
2997
3103
  }
@@ -3000,7 +3106,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3000
3106
  item: "_item_1yilq_13",
3001
3107
  active: "_active_1yilq_52",
3002
3108
  vertical: "_vertical_1yilq_60"
3003
- } }]]), ui = ["id"], di = /* @__PURE__ */ D(/* @__PURE__ */ z({
3109
+ } }]]), ui = ["id"], di = /* @__PURE__ */ O(/* @__PURE__ */ B({
3004
3110
  __name: "ui3n-badge-simple",
3005
3111
  props: {
3006
3112
  id: {},
@@ -3018,32 +3124,32 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3018
3124
  v74cb25de: e.color,
3019
3125
  v77996f31: e.textColor
3020
3126
  }));
3021
- let n = e, r = t, i = W(null);
3127
+ let n = e, r = t, i = G(null);
3022
3128
  function a() {
3023
- fe(() => {
3129
+ de(() => {
3024
3130
  i.value && r("change:size", {
3025
3131
  width: i.value.offsetWidth,
3026
3132
  height: i.value.offsetHeight
3027
3133
  });
3028
3134
  });
3029
3135
  }
3030
- return Y(() => [n.value, n.dot], () => a()), H(() => {
3136
+ return Y(() => [n.value, n.dot], () => a()), U(() => {
3031
3137
  a();
3032
- }), (t, n) => (U(), I("div", {
3138
+ }), (t, n) => (W(), L("div", {
3033
3139
  ref_key: "element",
3034
3140
  ref: i,
3035
3141
  id: e.id,
3036
- class: B([t.$style.ui3nBadgeSimple, e.dot && t.$style.ui3nBadgeDot])
3037
- }, [e.dot ? F("", !0) : (U(), I("span", {
3142
+ class: V([t.$style.ui3nBadgeSimple, e.dot && t.$style.ui3nBadgeDot])
3143
+ }, [e.dot ? I("", !0) : (W(), L("span", {
3038
3144
  key: 0,
3039
- class: B(t.$style.ui3nBadgeText)
3145
+ class: V(t.$style.ui3nBadgeText)
3040
3146
  }, q(e.value), 3))], 10, ui));
3041
3147
  }
3042
3148
  }), [["__cssModules", { $style: {
3043
3149
  ui3nBadgeSimple: "_ui3nBadgeSimple_1vu4n_1",
3044
3150
  ui3nBadgeDot: "_ui3nBadgeDot_1vu4n_12",
3045
3151
  ui3nBadgeText: "_ui3nBadgeText_1vu4n_30"
3046
- } }]]), fi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3152
+ } }]]), fi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3047
3153
  __name: "ui3n-badge",
3048
3154
  props: {
3049
3155
  id: {},
@@ -3057,7 +3163,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3057
3163
  position: { default: "right-top" }
3058
3164
  },
3059
3165
  setup(e) {
3060
- let t = e, n = Se(), r = W(), i = N(() => !!n.default), a = N(() => {
3166
+ let t = e, n = Se(), r = G(), i = P(() => !!n.default), a = P(() => {
3061
3167
  let [e, n] = t.position.split("-");
3062
3168
  return {
3063
3169
  ...e === "right" && { right: `-${(0, Ur.default)(r.value, "width", 0) / 2}px` },
@@ -3066,17 +3172,17 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3066
3172
  ...n === "bottom" && { bottom: `-${(0, Ur.default)(r.value, "height", 0) / 2}px` }
3067
3173
  };
3068
3174
  });
3069
- return (t, n) => i.value ? (U(), I("div", {
3175
+ return (t, n) => i.value ? (W(), L("div", {
3070
3176
  key: 0,
3071
- class: B(t.$style.ui3nBadge)
3072
- }, [L("div", { class: B(t.$style.ui3nBadgeWrapper) }, [K(t.$slots, "default"), R(di, {
3177
+ class: V(t.$style.ui3nBadge)
3178
+ }, [R("div", { class: V(t.$style.ui3nBadgeWrapper) }, [K(t.$slots, "default"), z(di, {
3073
3179
  id: e.id,
3074
3180
  dot: e.dot,
3075
3181
  value: e.value,
3076
3182
  color: e.color,
3077
3183
  "text-color": e.textColor,
3078
- style: V(a.value),
3079
- class: B(t.$style.ui3nBadgeContent),
3184
+ style: H(a.value),
3185
+ class: V(t.$style.ui3nBadgeContent),
3080
3186
  "onChange:size": n[0] ||= (e) => r.value = e
3081
3187
  }, null, 8, [
3082
3188
  "id",
@@ -3086,7 +3192,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3086
3192
  "text-color",
3087
3193
  "style",
3088
3194
  "class"
3089
- ])], 2)], 2)) : (U(), P(di, {
3195
+ ])], 2)], 2)) : (W(), F(di, {
3090
3196
  key: 1,
3091
3197
  id: e.id,
3092
3198
  dot: e.dot,
@@ -3105,7 +3211,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3105
3211
  ui3nBadge: "_ui3nBadge_1slsk_1",
3106
3212
  ui3nBadgeWrapper: "_ui3nBadgeWrapper_1slsk_6",
3107
3213
  ui3nBadgeContent: "_ui3nBadgeContent_1slsk_12"
3108
- } }]]), pi = { key: 2 }, mi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3214
+ } }]]), pi = { key: 2 }, mi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3109
3215
  __name: "ui3n-breadcrumb",
3110
3216
  props: {
3111
3217
  separator: { default: void 0 },
@@ -3120,14 +3226,14 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3120
3226
  },
3121
3227
  emits: ["click"],
3122
3228
  setup(e, { emit: t }) {
3123
- let n = e, r = t, i = Se(), a = be(), o = ue("ui3n-breadcrumbs-context", null), s = N(() => n.separator ? n.separator : o ? o.separator() : "/"), c = N(() => o ? o.disabled() : !1), l = N(() => {
3229
+ let n = e, r = t, i = Se(), a = be(), o = le("ui3n-breadcrumbs-context", null), s = P(() => n.separator ? n.separator : o ? o.separator() : "/"), c = P(() => o ? o.disabled() : !1), l = P(() => {
3124
3230
  let e = [a.ui3nBreadcrumb];
3125
3231
  return n.isActive && e.push(a.ui3nBreadcrumbActive), (n.disabled || c.value) && e.push(a.ui3nBreadcrumbDisabled), e;
3126
3232
  });
3127
3233
  function u(e) {
3128
3234
  r("click", e);
3129
3235
  }
3130
- return (t, n) => (U(), I("div", de({ class: l.value }, ye(e.isActive && !(e.disabled || c.value) ? { click: u } : {}, !0)), [L("span", { class: B(t.$style.content) }, [K(t.$slots, "default")], 2), L("div", { class: B(t.$style.ui3nBreadcrumbSeparator) }, [typeof J(i).separator == "function" ? K(t.$slots, "separator", { key: 0 }) : J(o)?.customSeparatorSlot ? (U(), P(_e(J(o).customSeparatorSlot), { key: 1 })) : (U(), I("span", pi, q(s.value), 1))], 2)], 16));
3236
+ return (t, n) => (W(), L("div", ue({ class: l.value }, ye(e.isActive && !(e.disabled || c.value) ? { click: u } : {}, !0)), [R("span", { class: V(t.$style.content) }, [K(t.$slots, "default")], 2), R("div", { class: V(t.$style.ui3nBreadcrumbSeparator) }, [typeof J(i).separator == "function" ? K(t.$slots, "separator", { key: 0 }) : J(o)?.customSeparatorSlot ? (W(), F(_e(J(o).customSeparatorSlot), { key: 1 })) : (W(), L("span", pi, q(s.value), 1))], 2)], 16));
3131
3237
  }
3132
3238
  }), [["__cssModules", { $style: {
3133
3239
  ui3nBreadcrumb: "_ui3nBreadcrumb_1tz9w_1",
@@ -3135,7 +3241,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3135
3241
  content: "_content_1tz9w_14",
3136
3242
  ui3nBreadcrumbActive: "_ui3nBreadcrumbActive_1tz9w_28",
3137
3243
  ui3nBreadcrumbDisabled: "_ui3nBreadcrumbDisabled_1tz9w_33"
3138
- } }]]), hi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3244
+ } }]]), hi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3139
3245
  __name: "ui3n-breadcrumbs",
3140
3246
  props: {
3141
3247
  separator: { default: "/" },
@@ -3146,18 +3252,18 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3146
3252
  },
3147
3253
  setup(e) {
3148
3254
  let t = e;
3149
- return ge("ui3n-breadcrumbs-context", {
3255
+ return he("ui3n-breadcrumbs-context", {
3150
3256
  separator: () => t.separator,
3151
3257
  disabled: () => t.disabled,
3152
3258
  customSeparatorSlot: Se().separator
3153
- }), (e, t) => (U(), I("div", { class: B(e.$style.ui3nBreadcrumbs) }, [K(e.$slots, "default")], 2));
3259
+ }), (e, t) => (W(), L("div", { class: V(e.$style.ui3nBreadcrumbs) }, [K(e.$slots, "default")], 2));
3154
3260
  }
3155
3261
  }), [["__cssModules", { $style: { ui3nBreadcrumbs: "_ui3nBreadcrumbs_1oq6f_1" } }]]), gi = ["id", "tabindex"], _i = [
3156
3262
  "name",
3157
3263
  "checked",
3158
3264
  "disabled",
3159
3265
  "value"
3160
- ], vi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3266
+ ], vi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3161
3267
  __name: "ui3n-switch",
3162
3268
  props: {
3163
3269
  id: {},
@@ -3172,7 +3278,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3172
3278
  },
3173
3279
  emits: ["change", "update:modelValue"],
3174
3280
  setup(e, { expose: t, emit: n }) {
3175
- let r = e, i = n, a = Se(), o = W(!1), s = N(() => ({
3281
+ let r = e, i = n, a = Se(), o = G(!1), s = P(() => ({
3176
3282
  "--ui3n-switch-color": r.color,
3177
3283
  "--ui3n-switch-size": `${r.size}px`
3178
3284
  }));
@@ -3184,11 +3290,11 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3184
3290
  }
3185
3291
  return t({ clear: l }), Y(() => r.name, (e) => {
3186
3292
  e || l();
3187
- }), Y(() => r.modelValue, (e) => o.value = e, { immediate: !0 }), (t, n) => (U(), I("div", {
3293
+ }), Y(() => r.modelValue, (e) => o.value = e, { immediate: !0 }), (t, n) => (W(), L("div", {
3188
3294
  id: e.id,
3189
- style: V(s.value),
3295
+ style: H(s.value),
3190
3296
  tabindex: e.disabled ? -1 : 0,
3191
- class: B([
3297
+ class: V([
3192
3298
  t.$style.ui3nSwitch,
3193
3299
  o.value && t.$style.checked,
3194
3300
  !J(a).default && t.$style.noLabel,
@@ -3197,7 +3303,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3197
3303
  onKeydown: [Z(c, ["enter"]), Z(c, ["space"])],
3198
3304
  onClick: c
3199
3305
  }, [
3200
- e.name ? (U(), I("input", {
3306
+ e.name ? (W(), L("input", {
3201
3307
  key: 0,
3202
3308
  type: "checkbox",
3203
3309
  hidden: "",
@@ -3205,9 +3311,9 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3205
3311
  checked: o.value,
3206
3312
  disabled: e.disabled,
3207
3313
  value: o.value ? "on" : ""
3208
- }, null, 8, _i)) : F("", !0),
3209
- L("div", { class: B(t.$style.body) }, [L("div", { class: B([t.$style.dot, o.value ? t.$style.right : t.$style.left]) }, null, 2)], 2),
3210
- L("div", { class: B(t.$style.label) }, [K(t.$slots, "default")], 2)
3314
+ }, null, 8, _i)) : I("", !0),
3315
+ R("div", { class: V(t.$style.body) }, [R("div", { class: V([t.$style.dot, o.value ? t.$style.right : t.$style.left]) }, null, 2)], 2),
3316
+ R("div", { class: V(t.$style.label) }, [K(t.$slots, "default")], 2)
3211
3317
  ], 46, gi));
3212
3318
  }
3213
3319
  }), [["__cssModules", { $style: {
@@ -3220,7 +3326,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3220
3326
  right: "_right_1lo7b_57",
3221
3327
  label: "_label_1lo7b_61",
3222
3328
  disabled: "_disabled_1lo7b_68"
3223
- } }]]), yi = ["id"], bi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3329
+ } }]]), yi = ["id"], bi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3224
3330
  __name: "ui3n-step-line-bar",
3225
3331
  props: {
3226
3332
  id: {},
@@ -3229,13 +3335,13 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3229
3335
  steps: { default: 1 }
3230
3336
  },
3231
3337
  setup(e) {
3232
- let t = e, n = N(() => Math.max(0, Math.floor(t.steps)));
3233
- return (t, r) => (U(), I("div", {
3338
+ let t = e, n = P(() => Math.max(0, Math.floor(t.steps)));
3339
+ return (t, r) => (W(), L("div", {
3234
3340
  id: e.id,
3235
- class: B(t.$style.ui3nStepLineBar)
3236
- }, [L("div", { class: B(t.$style.label) }, q(e.label), 3), L("div", { class: B(t.$style.body) }, [(U(!0), I(M, null, G(n.value, (n) => (U(), I("div", {
3341
+ class: V(t.$style.ui3nStepLineBar)
3342
+ }, [R("div", { class: V(t.$style.label) }, q(e.label), 3), R("div", { class: V(t.$style.body) }, [(W(!0), L(N, null, ge(n.value, (n) => (W(), L("div", {
3237
3343
  key: n,
3238
- class: B([t.$style.step, n <= e.current && t.$style.active])
3344
+ class: V([t.$style.step, n <= e.current && t.$style.active])
3239
3345
  }, null, 2))), 128))], 2)], 10, yi));
3240
3346
  }
3241
3347
  }), [["__cssModules", { $style: {
@@ -3244,7 +3350,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3244
3350
  body: "_body_119zg_17",
3245
3351
  step: "_step_119zg_25",
3246
3352
  active: "_active_119zg_33"
3247
- } }]]), xi = 12, Si = 5, Ci = /* @__PURE__ */ D(/* @__PURE__ */ z({
3353
+ } }]]), xi = 12, Si = 5, Ci = /* @__PURE__ */ O(/* @__PURE__ */ B({
3248
3354
  __name: "ui3n-progress-linear",
3249
3355
  props: {
3250
3356
  value: { default: 0 },
@@ -3264,28 +3370,28 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3264
3370
  let t = e, n = (e) => {
3265
3371
  let t = parseFloat(String(e));
3266
3372
  return isNaN(t) ? 0 : t;
3267
- }, r = N(() => n(t.height)), i = N(() => {
3373
+ }, r = P(() => n(t.height)), i = P(() => {
3268
3374
  let e = n(t.value);
3269
3375
  return Math.min(Math.max(e, 0), 100);
3270
- }), a = N(() => t.withText && !t.indeterminate), o = N(() => `${i.value}%`), s = N(() => ({
3376
+ }), a = P(() => t.withText && !t.indeterminate), o = P(() => `${i.value}%`), s = P(() => ({
3271
3377
  "--ui3n-progress-linear-height": `${r.value}px`,
3272
3378
  "--ui3n-progress-linear-bg": t.bgColor,
3273
3379
  "--ui3n-progress-linear-color": t.color,
3274
3380
  "--ui3n-progress-linear-font-size": `${Math.max(r.value - 2, 10)}px`
3275
3381
  }));
3276
- return (t, n) => (U(), I("div", {
3277
- style: V(s.value),
3278
- class: B([t.$style.ui3nProgressLinear, e.indeterminate && t.$style.indeterminate])
3279
- }, [a.value && r.value < xi ? (U(), I("div", {
3382
+ return (t, n) => (W(), L("div", {
3383
+ style: H(s.value),
3384
+ class: V([t.$style.ui3nProgressLinear, e.indeterminate && t.$style.indeterminate])
3385
+ }, [a.value && r.value < xi ? (W(), L("div", {
3280
3386
  key: 0,
3281
- class: B([t.$style.text, t.$style.above])
3282
- }, q(o.value), 3)) : F("", !0), L("div", { class: B(t.$style.body) }, [L("div", {
3283
- class: B(t.$style.value),
3284
- style: V(e.indeterminate ? void 0 : { width: o.value })
3285
- }, [a.value && r.value >= xi && i.value >= Si ? (U(), I("div", {
3387
+ class: V([t.$style.text, t.$style.above])
3388
+ }, q(o.value), 3)) : I("", !0), R("div", { class: V(t.$style.body) }, [R("div", {
3389
+ class: V(t.$style.value),
3390
+ style: H(e.indeterminate ? void 0 : { width: o.value })
3391
+ }, [a.value && r.value >= xi && i.value >= Si ? (W(), L("div", {
3286
3392
  key: 0,
3287
- class: B(t.$style.text)
3288
- }, q(o.value), 3)) : F("", !0)], 6)], 2)], 6));
3393
+ class: V(t.$style.text)
3394
+ }, q(o.value), 3)) : I("", !0)], 6)], 2)], 6));
3289
3395
  }
3290
3396
  }), [["__cssModules", { $style: {
3291
3397
  ui3nProgressLinear: "_ui3nProgressLinear_1avv2_1",
@@ -3295,7 +3401,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3295
3401
  above: "_above_1avv2_37",
3296
3402
  indeterminate: "_indeterminate_1avv2_47",
3297
3403
  "linear-fly": "_linear-fly_1avv2_1"
3298
- } }]]), wi = ["height", "width"], Ti = ["r"], Ei = ["r", "stroke-dasharray"], Di = /* @__PURE__ */ D(/* @__PURE__ */ z({
3404
+ } }]]), wi = ["height", "width"], Ti = ["r"], Ei = ["r", "stroke-dasharray"], Di = /* @__PURE__ */ O(/* @__PURE__ */ B({
3299
3405
  __name: "ui3n-progress-circular",
3300
3406
  props: {
3301
3407
  value: { default: 0 },
@@ -3316,39 +3422,39 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3316
3422
  let t = e, n = (e) => {
3317
3423
  let t = parseFloat(String(e));
3318
3424
  return isNaN(t) ? 0 : t;
3319
- }, r = N(() => n(t.size) || 64), i = N(() => Math.min(Math.max(n(t.value), 0), 100)), a = N(() => t.withText && !t.indeterminate), o = N(() => t.width ? n(t.width) / r.value * 100 : 8), s = N(() => (100 - o.value) / 2), c = N(() => Math.round(Math.PI * 2 * s.value)), l = N(() => {
3425
+ }, r = P(() => n(t.size) || 64), i = P(() => Math.min(Math.max(n(t.value), 0), 100)), a = P(() => t.withText && !t.indeterminate), o = P(() => t.width ? n(t.width) / r.value * 100 : 8), s = P(() => (100 - o.value) / 2), c = P(() => Math.round(Math.PI * 2 * s.value)), l = P(() => {
3320
3426
  let e = Math.round(c.value * i.value / 100);
3321
3427
  return `${e} ${c.value - e}`;
3322
- }), u = N(() => `${Math.floor(r.value / 3.8)}px`), d = N(() => ({
3428
+ }), u = P(() => `${Math.floor(r.value / 3.8)}px`), d = P(() => ({
3323
3429
  "--ui3n-progress-circular-size": `${r.value}px`,
3324
3430
  "--ui3n-progress-circular-font-size": u.value,
3325
3431
  "--ui3n-progress-circular-bg": t.bgColor,
3326
3432
  "--ui3n-progress-circular-color": t.color,
3327
3433
  "--ui3n-progress-virtual-width": String(o.value)
3328
3434
  }));
3329
- return (t, n) => (U(), I("div", {
3330
- style: V(d.value),
3331
- class: B([t.$style.ui3nProgressCircular, e.indeterminate && t.$style.indeterminate])
3332
- }, [(U(), I("svg", {
3435
+ return (t, n) => (W(), L("div", {
3436
+ style: H(d.value),
3437
+ class: V([t.$style.ui3nProgressCircular, e.indeterminate && t.$style.indeterminate])
3438
+ }, [(W(), L("svg", {
3333
3439
  height: r.value,
3334
3440
  width: r.value,
3335
3441
  viewBox: "0 0 100 100",
3336
- class: B(t.$style.pie)
3337
- }, [L("circle", {
3338
- class: B(t.$style.background),
3442
+ class: V(t.$style.pie)
3443
+ }, [R("circle", {
3444
+ class: V(t.$style.background),
3339
3445
  r: s.value,
3340
3446
  cx: "50",
3341
3447
  cy: "50"
3342
- }, null, 10, Ti), L("circle", {
3343
- class: B(t.$style.chart),
3448
+ }, null, 10, Ti), R("circle", {
3449
+ class: V(t.$style.chart),
3344
3450
  r: s.value,
3345
3451
  cx: "50",
3346
3452
  cy: "50",
3347
3453
  "stroke-dasharray": e.indeterminate ? void 0 : l.value
3348
- }, null, 10, Ei)], 10, wi)), a.value ? (U(), I("div", {
3454
+ }, null, 10, Ei)], 10, wi)), a.value ? (W(), L("div", {
3349
3455
  key: 0,
3350
- class: B(t.$style.text)
3351
- }, q(i.value) + "% ", 3)) : F("", !0)], 6));
3456
+ class: V(t.$style.text)
3457
+ }, q(i.value) + "% ", 3)) : I("", !0)], 6));
3352
3458
  }
3353
3459
  }), [["__cssModules", { $style: {
3354
3460
  ui3nProgressCircular: "_ui3nProgressCircular_zypt9_1",
@@ -3359,7 +3465,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3359
3465
  indeterminate: "_indeterminate_zypt9_45",
3360
3466
  "circular-spin": "_circular-spin_zypt9_1",
3361
3467
  "circular-dash": "_circular-dash_zypt9_1"
3362
- } }]]), Oi = 5, ki = /* @__PURE__ */ D(/* @__PURE__ */ z({
3468
+ } }]]), Oi = 5, ki = /* @__PURE__ */ O(/* @__PURE__ */ B({
3363
3469
  __name: "ui3n-tooltip",
3364
3470
  props: {
3365
3471
  id: {},
@@ -3386,10 +3492,10 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3386
3492
  "update:modelValue"
3387
3493
  ],
3388
3494
  setup(e, { emit: t }) {
3389
- let n = e, r = t, i = W(!1), a = W(null), o = W(null), s = W(null), c = W(!1), l = N(() => {
3495
+ let n = e, r = t, i = G(!1), a = G(null), o = G(null), s = G(null), c = G(!1), l = P(() => {
3390
3496
  let [e] = n.placement.split("-");
3391
3497
  return e;
3392
- }), u = N(() => {
3498
+ }), u = P(() => {
3393
3499
  let e = {
3394
3500
  mainAxis: 0,
3395
3501
  crossAxis: 0
@@ -3409,7 +3515,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3409
3515
  break;
3410
3516
  }
3411
3517
  return e;
3412
- }), d = N(() => [ke(u.value), Ee({
3518
+ }), d = P(() => [ke(u.value), Ee({
3413
3519
  element: s,
3414
3520
  padding: 8
3415
3521
  })]), { floatingStyles: f, isPositioned: p, middlewareData: m } = je(a, o, {
@@ -3418,7 +3524,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3418
3524
  strategy: n.positionStrategy,
3419
3525
  middleware: d,
3420
3526
  whileElementsMounted: n.positionStrategy === "fixed" ? De : void 0
3421
- }), h = N(() => {
3527
+ }), h = P(() => {
3422
3528
  let e = typeof n.maxContentWidth == "number" || !isNaN(Number(n.maxContentWidth)) ? `${n.maxContentWidth}px` : String(n.maxContentWidth);
3423
3529
  return {
3424
3530
  ...f.value,
@@ -3444,33 +3550,33 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3444
3550
  function b() {
3445
3551
  y(), !(!a.value || n.disabled) && (n.trigger === "hover" ? (a.value.addEventListener("mouseenter", g), a.value.addEventListener("mouseleave", _)) : n.trigger === "click" && a.value.addEventListener("click", v));
3446
3552
  }
3447
- return H(() => {
3553
+ return U(() => {
3448
3554
  c.value = !0, b();
3449
- }), me(() => {
3555
+ }), pe(() => {
3450
3556
  y();
3451
3557
  }), Y([() => n.trigger, () => n.disabled], () => {
3452
3558
  b();
3453
3559
  }), Y(() => n.modelValue, (e) => n.trigger === "manual" && (i.value = e), { immediate: !0 }), Y(p, (e) => {
3454
3560
  r(e ? "opened" : "closed");
3455
- }), (t, n) => (U(), I(M, null, [L("div", {
3561
+ }), (t, n) => (W(), L(N, null, [R("div", {
3456
3562
  ref_key: "referenceContainer",
3457
3563
  ref: a,
3458
- class: B(t.$style.container)
3459
- }, [K(t.$slots, "default")], 2), i.value ? (U(), I("div", {
3564
+ class: V(t.$style.container)
3565
+ }, [K(t.$slots, "default")], 2), i.value ? (W(), L("div", {
3460
3566
  key: 0,
3461
3567
  ref_key: "floatingEl",
3462
3568
  ref: o,
3463
- class: B(t.$style.floating),
3464
- style: V(h.value)
3465
- }, [K(t.$slots, "content", {}, () => [L("div", { class: B(t.$style.content) }, [le(q(e.content) + " ", 1), L("div", {
3569
+ class: V(t.$style.floating),
3570
+ style: H(h.value)
3571
+ }, [K(t.$slots, "content", {}, () => [R("div", { class: V(t.$style.content) }, [ce(q(e.content) + " ", 1), R("div", {
3466
3572
  ref_key: "floatingArrowEl",
3467
3573
  ref: s,
3468
- class: B([t.$style.arrow, t.$style[`arrow-${l.value}`]]),
3469
- style: V({
3574
+ class: V([t.$style.arrow, t.$style[`arrow-${l.value}`]]),
3575
+ style: H({
3470
3576
  left: J(m).arrow?.x == null ? "" : `${J(m).arrow?.x}px`,
3471
3577
  top: J(m).arrow?.y == null ? "" : `${J(m).arrow?.y}px`
3472
3578
  })
3473
- }, null, 6)], 2)])], 6)) : F("", !0)], 64));
3579
+ }, null, 6)], 2)])], 6)) : I("", !0)], 64));
3474
3580
  }
3475
3581
  }), [["__cssModules", { $style: {
3476
3582
  container: "_container_1wkac_1",
@@ -3486,7 +3592,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3486
3592
  "checked",
3487
3593
  "value",
3488
3594
  "disabled"
3489
- ], ji = ["tabindex"], Mi = ["width", "height"], Ni = ["width", "height"], Pi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3595
+ ], ji = ["tabindex"], Mi = ["width", "height"], Ni = ["width", "height"], Pi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3490
3596
  __name: "ui3n-radio",
3491
3597
  props: {
3492
3598
  id: {},
@@ -3524,7 +3630,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3524
3630
  },
3525
3631
  emits: ["change", "update:modelValue"],
3526
3632
  setup(e, { expose: t, emit: n }) {
3527
- let r = e, i = n, a = Se(), o = ue("ui3n-radio-group-context", null), s = N(() => o !== null), c = N(() => o ? o.groupName.value : r.name || ""), l = W(s.value && o ? o.groupValue.value : r.modelValue), u = N(() => s.value && o ? o.groupValue.value === r.checkedValue : l.value === r.checkedValue), d = N(() => ({
3633
+ let r = e, i = n, a = Se(), o = le("ui3n-radio-group-context", null), s = P(() => o !== null), c = P(() => o ? o.groupName.value : r.name || ""), l = G(s.value && o ? o.groupValue.value : r.modelValue), u = P(() => s.value && o ? o.groupValue.value === r.checkedValue : l.value === r.checkedValue), d = P(() => ({
3528
3634
  "--ui3n-radio-size": `${r.size}px`,
3529
3635
  "--ui3n-radio-color": r.color
3530
3636
  }));
@@ -3540,22 +3646,22 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3540
3646
  function p() {
3541
3647
  l.value = r.uncheckedValue, s.value || (i("change", l.value), i("update:modelValue", l.value));
3542
3648
  }
3543
- return t({ clear: p }), pe(() => {
3649
+ return t({ clear: p }), fe(() => {
3544
3650
  let e = !!a.checkedIcon, t = !!a.uncheckedIcon;
3545
3651
  if (e && !t || !e && t) throw Error("[Ui3nRadio] Both checkedIcon and uncheckedIcon slots must have values defined.");
3546
3652
  }), Y(() => r.name, (e) => {
3547
3653
  !e && !s.value && p();
3548
3654
  }), Y(() => r.modelValue, (e) => {
3549
3655
  e !== l.value && (l.value = e);
3550
- }), (t, n) => (U(), I("div", {
3551
- style: V(d.value),
3552
- class: B([
3656
+ }), (t, n) => (W(), L("div", {
3657
+ style: H(d.value),
3658
+ class: V([
3553
3659
  t.$style.ui3nRadio,
3554
3660
  e.disabled && t.$style.disabled,
3555
3661
  !J(a).default && t.$style.noLabel
3556
3662
  ])
3557
3663
  }, [
3558
- L("input", {
3664
+ R("input", {
3559
3665
  type: "radio",
3560
3666
  hidden: "",
3561
3667
  name: c.value,
@@ -3563,29 +3669,29 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3563
3669
  value: String(e.checkedValue),
3564
3670
  disabled: e.disabled
3565
3671
  }, null, 8, Ai),
3566
- L("div", {
3567
- class: B([t.$style.body, e.disabled && t.$style.bodyDisabled]),
3672
+ R("div", {
3673
+ class: V([t.$style.body, e.disabled && t.$style.bodyDisabled]),
3568
3674
  tabindex: e.disabled ? -1 : 0,
3569
3675
  onKeydown: [Z(f, ["enter"]), Z(f, ["space"])],
3570
3676
  onClick: f
3571
- }, [u.value ? K(t.$slots, "checkedIcon", { key: 0 }, () => [(U(), I("svg", {
3677
+ }, [u.value ? K(t.$slots, "checkedIcon", { key: 0 }, () => [(W(), L("svg", {
3572
3678
  width: Number(e.size) - 4,
3573
3679
  height: Number(e.size) - 4,
3574
3680
  viewBox: "0 0 24 24",
3575
- class: B([t.$style.icon, e.disabled && t.$style.iconDisabled])
3576
- }, [...n[0] ||= [L("path", {
3681
+ class: V([t.$style.icon, e.disabled && t.$style.iconDisabled])
3682
+ }, [...n[0] ||= [R("path", {
3577
3683
  fill: "currentColor",
3578
3684
  d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5s5-2.24 5-5s-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
3579
- }, null, -1)]], 10, Mi))]) : K(t.$slots, "uncheckedIcon", { key: 1 }, () => [(U(), I("svg", {
3685
+ }, null, -1)]], 10, Mi))]) : K(t.$slots, "uncheckedIcon", { key: 1 }, () => [(W(), L("svg", {
3580
3686
  width: Number(e.size) - 4,
3581
3687
  height: Number(e.size) - 4,
3582
3688
  viewBox: "0 0 24 24",
3583
- class: B([t.$style.icon, e.disabled && t.$style.iconDisabled])
3584
- }, [...n[1] ||= [L("path", {
3689
+ class: V([t.$style.icon, e.disabled && t.$style.iconDisabled])
3690
+ }, [...n[1] ||= [R("path", {
3585
3691
  fill: "currentColor",
3586
3692
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8s8 3.58 8 8s-3.58 8-8 8"
3587
3693
  }, null, -1)]], 10, Ni))])], 42, ji),
3588
- L("div", { class: B(t.$style.label) }, [K(t.$slots, "default")], 2)
3694
+ R("div", { class: V(t.$style.label) }, [K(t.$slots, "default")], 2)
3589
3695
  ], 6));
3590
3696
  }
3591
3697
  }), [["__cssModules", { $style: {
@@ -3597,7 +3703,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3597
3703
  icon: "_icon_17bki_62",
3598
3704
  bodyDisabled: "_bodyDisabled_17bki_71",
3599
3705
  iconDisabled: "_iconDisabled_17bki_72"
3600
- } }]]), Fi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3706
+ } }]]), Fi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3601
3707
  __name: "ui3n-radio-group",
3602
3708
  props: {
3603
3709
  id: {},
@@ -3615,13 +3721,13 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3615
3721
  },
3616
3722
  emits: ["change", "update:modelValue"],
3617
3723
  setup(e, { expose: t, emit: n }) {
3618
- let r = e, i = n, a = W(r.modelValue);
3724
+ let r = e, i = n, a = G(r.modelValue);
3619
3725
  function o(e) {
3620
3726
  a.value = e, i("update:modelValue", e), i("change", e);
3621
3727
  }
3622
- ge("ui3n-radio-group-context", {
3623
- groupValue: N(() => a.value),
3624
- groupName: N(() => r.name || ""),
3728
+ he("ui3n-radio-group-context", {
3729
+ groupValue: P(() => a.value),
3730
+ groupName: P(() => r.name || ""),
3625
3731
  updateGroupValue: o
3626
3732
  });
3627
3733
  function s() {
@@ -3631,7 +3737,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3631
3737
  e !== a.value && (a.value = e);
3632
3738
  }), Y(() => r.name, (e) => {
3633
3739
  e || s();
3634
- }), (t, n) => (U(), I("div", { class: B([t.$style.ui3nRadioGroup, e.direction === "horizontal" && t.$style.horizontal]) }, [K(t.$slots, "default")], 2));
3740
+ }), (t, n) => (W(), L("div", { class: V([t.$style.ui3nRadioGroup, e.direction === "horizontal" && t.$style.horizontal]) }, [K(t.$slots, "default")], 2));
3635
3741
  }
3636
3742
  }), [["__cssModules", { $style: {
3637
3743
  ui3nRadioGroup: "_ui3nRadioGroup_1aejh_1",
@@ -3640,7 +3746,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3640
3746
  "value",
3641
3747
  "placeholder",
3642
3748
  "disabled"
3643
- ], zi = ["title"], Bi = 60, Vi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3749
+ ], zi = ["title"], Bi = 60, Vi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3644
3750
  __name: "ui3n-editable",
3645
3751
  props: {
3646
3752
  id: {},
@@ -3663,7 +3769,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3663
3769
  "focusout"
3664
3770
  ],
3665
3771
  setup(e, { expose: t, emit: n }) {
3666
- let r = te, i = On, a = e, o = n, s = W(null), c = W(null), l = W("auto"), u = W(null), d = W(a.modelValue), f = W(a.modelValue), p = W(!1), m = N(() => {
3772
+ let r = D, i = On, a = e, o = n, s = G(null), c = G(null), l = G("auto"), u = G(null), d = G(a.modelValue), f = G(a.modelValue), p = G(!1), m = P(() => {
3667
3773
  let e = "100%";
3668
3774
  if (a.maxWidth) {
3669
3775
  let t = Number(a.maxWidth);
@@ -3673,12 +3779,12 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3673
3779
  "--ui3n-editable-min-width": `${Bi}px`,
3674
3780
  "--ui3n-editable-max-width": e
3675
3781
  };
3676
- }), h = N(() => u.value ? u.value.scrollWidth > u.value.clientWidth : !1), g = N(() => a.disallowEmptyValue ? !!d.value : !0);
3782
+ }), h = P(() => u.value ? u.value.scrollWidth > u.value.clientWidth : !1), g = P(() => a.disallowEmptyValue ? !!d.value : !0);
3677
3783
  function _() {
3678
3784
  c.value && (c.value.textContent = d.value || a.placeholder || "", l.value = `${Math.max(c.value.scrollWidth + 48, Bi)}px`);
3679
3785
  }
3680
3786
  function v() {
3681
- a.disabled || (p.value = !0, f.value = d.value, fe(() => {
3787
+ a.disabled || (p.value = !0, f.value = d.value, de(() => {
3682
3788
  s.value && (_(), s.value.focus(), a.selectAllOnFocus && s.value.select());
3683
3789
  }));
3684
3790
  }
@@ -3703,32 +3809,32 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3703
3809
  !a.disabled && o("toggle:editMode", e);
3704
3810
  }), Y(() => a.name, (e) => {
3705
3811
  e || C();
3706
- }), (t, n) => Te((U(), I("div", {
3812
+ }), (t, n) => Te((W(), L("div", {
3707
3813
  id: e.id,
3708
- class: B([
3814
+ class: V([
3709
3815
  t.$style.ui3nEditable,
3710
3816
  e.disabled && t.$style.ui3nEditableDisabled,
3711
3817
  p.value && t.$style.ui3nEditableInEdit,
3712
3818
  p.value && !g.value && t.$style.ui3nEditableInEditWarning
3713
3819
  ]),
3714
- style: V(m.value),
3820
+ style: H(m.value),
3715
3821
  onFocusin: n[0] ||= (e) => o("focusin", e)
3716
- }, [e.name ? (U(), I("input", {
3822
+ }, [e.name ? (W(), L("input", {
3717
3823
  key: 0,
3718
3824
  type: "hidden",
3719
3825
  name: e.name,
3720
3826
  value: d.value
3721
- }, null, 8, Li)) : F("", !0), p.value ? (U(), I(M, { key: 1 }, [
3722
- L("span", {
3827
+ }, null, 8, Li)) : I("", !0), p.value ? (W(), L(N, { key: 1 }, [
3828
+ R("span", {
3723
3829
  ref_key: "hiddenEl",
3724
3830
  ref: c,
3725
- class: B(t.$style.hidden)
3831
+ class: V(t.$style.hidden)
3726
3832
  }, null, 2),
3727
- L("input", {
3833
+ R("input", {
3728
3834
  ref_key: "inputEl",
3729
3835
  ref: s,
3730
- class: B(t.$style.input),
3731
- style: V({ width: l.value }),
3836
+ class: V(t.$style.input),
3837
+ style: H({ width: l.value }),
3732
3838
  value: d.value,
3733
3839
  placeholder: e.placeholder,
3734
3840
  disabled: e.disabled,
@@ -3739,41 +3845,41 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3739
3845
  Z(x, ["esc"])
3740
3846
  ]
3741
3847
  }, null, 46, Ri),
3742
- Te((U(), I("div", {
3743
- class: B([
3848
+ Te((W(), L("div", {
3849
+ class: V([
3744
3850
  t.$style.btn,
3745
3851
  t.$style.doneBtn,
3746
3852
  e.disabled && t.$style.btnDisabled
3747
3853
  ]),
3748
3854
  onClick: Q(b, ["stop", "prevent"])
3749
- }, [R(k, {
3855
+ }, [z(A, {
3750
3856
  icon: "round-done",
3751
3857
  size: "12",
3752
3858
  color: "var(--color-icon-table-accent-default)"
3753
3859
  })], 2)), [[J(r)]]),
3754
- Te((U(), I("div", {
3755
- class: B([
3860
+ Te((W(), L("div", {
3861
+ class: V([
3756
3862
  t.$style.btn,
3757
3863
  t.$style.cancelBtn,
3758
3864
  e.disabled && t.$style.btnDisabled
3759
3865
  ]),
3760
3866
  onClick: Q(x, ["stop", "prevent"])
3761
- }, [R(k, {
3867
+ }, [z(A, {
3762
3868
  icon: "round-close",
3763
3869
  size: "12",
3764
3870
  color: "var(--color-icon-table-secondary-default)"
3765
3871
  })], 2)), [[J(r)]])
3766
- ], 64)) : (U(), I("div", {
3872
+ ], 64)) : (W(), L("div", {
3767
3873
  key: 2,
3768
- class: B([t.$style.content, !d.value && t.$style.contentEmpty]),
3874
+ class: V([t.$style.content, !d.value && t.$style.contentEmpty]),
3769
3875
  title: h.value ? d.value : void 0
3770
- }, [L("span", {
3876
+ }, [R("span", {
3771
3877
  ref_key: "contentValueEl",
3772
3878
  ref: u
3773
- }, q(d.value || e.placeholder || "..."), 513), Te((U(), I("div", {
3774
- class: B([t.$style.btn, t.$style.editBtn]),
3879
+ }, q(d.value || e.placeholder || "..."), 513), Te((W(), L("div", {
3880
+ class: V([t.$style.btn, t.$style.editBtn]),
3775
3881
  onClick: Q(v, ["stop", "prevent"])
3776
- }, [R(k, {
3882
+ }, [z(A, {
3777
3883
  icon: "round-edit",
3778
3884
  size: "12",
3779
3885
  color: "var(--color-icon-control-accent-unselected)"
@@ -3793,7 +3899,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3793
3899
  cancelBtn: "_cancelBtn_s7l0a_128",
3794
3900
  doneBtn: "_doneBtn_s7l0a_133",
3795
3901
  btnDisabled: "_btnDisabled_s7l0a_139"
3796
- } }]]), Hi = ["name", "value"], Ui = ["name", "value"], Wi = ["name", "value"], Gi = ["placeholder", "disabled"], Ki = ["id", "onClick"], qi = /* @__PURE__ */ D(/* @__PURE__ */ z({
3902
+ } }]]), Hi = ["name", "value"], Ui = ["name", "value"], Wi = ["name", "value"], Gi = ["placeholder", "disabled"], Ki = ["id", "onClick"], qi = /* @__PURE__ */ O(/* @__PURE__ */ B({
3797
3903
  __name: "ui3n-autocomplete",
3798
3904
  props: {
3799
3905
  name: {},
@@ -3831,7 +3937,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3831
3937
  "valid:new-value"
3832
3938
  ],
3833
3939
  setup(e, { expose: n, emit: r }) {
3834
- let a = En, o = e, s = r, c = `auto-${t(4)}`, l = W(""), u = W(!1), d = W(null), f = W(null), p = W(null), m = W(null), h = W(!1), g = W(!0), _ = N(() => o.returnObject ? o.modelValue.map((e) => e.id) : o.modelValue), v = N(() => o.chips ? "" : o.returnObject ? o.modelValue.map((e) => e[o.itemTitle] || "?").join(", ") : o.modelValue.join(", ")), y = N(() => o.customFilter ? o.items.filter((e) => o.customFilter(e, l.value)).filter((e) => o.hideSelected ? o.returnObject ? !_.value.includes(e.id) : !_.value.includes(e[o.itemValue]) : !0) : o.items.filter((e) => e[o.itemTitle].toLowerCase().includes(l.value.toLowerCase())).filter((e) => o.hideSelected ? o.returnObject ? !_.value.includes(e.id) : !_.value.includes(e[o.itemValue]) : !0));
3940
+ let a = En, o = e, s = r, c = `auto-${t(4)}`, l = G(""), u = G(!1), d = G(null), f = G(null), p = G(null), m = G(null), h = G(!1), g = G(!0), _ = P(() => o.returnObject ? o.modelValue.map((e) => e.id) : o.modelValue), v = P(() => o.chips ? "" : o.returnObject ? o.modelValue.map((e) => e[o.itemTitle] || "?").join(", ") : o.modelValue.join(", ")), y = P(() => o.customFilter ? o.items.filter((e) => o.customFilter(e, l.value)).filter((e) => o.hideSelected ? o.returnObject ? !_.value.includes(e.id) : !_.value.includes(e[o.itemValue]) : !0) : o.items.filter((e) => e[o.itemTitle].toLowerCase().includes(l.value.toLowerCase())).filter((e) => o.hideSelected ? o.returnObject ? !_.value.includes(e.id) : !_.value.includes(e[o.itemValue]) : !0));
3835
3941
  function b() {
3836
3942
  h.value = !1, s("update:search", l.value);
3837
3943
  }
@@ -3889,7 +3995,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3889
3995
  S(e), m.value = null, o.clearOnSelect && (l.value = "");
3890
3996
  }
3891
3997
  }
3892
- function te() {
3998
+ function D() {
3893
3999
  if (o.disabled || l.value !== "" || (0, Wr.default)(o.modelValue)) return;
3894
4000
  if (!h.value) {
3895
4001
  h.value = !0;
@@ -3898,7 +4004,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3898
4004
  let e = (0, Gr.default)(o.modelValue);
3899
4005
  e.pop(), s("update:modelValue", e), h.value = !1;
3900
4006
  }
3901
- function D(e, t) {
4007
+ function O(e, t) {
3902
4008
  switch (t) {
3903
4009
  case "down":
3904
4010
  e.preventDefault(), e.stopPropagation(), w();
@@ -3914,36 +4020,36 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3914
4020
  e.preventDefault(), e.stopPropagation(), E();
3915
4021
  break;
3916
4022
  case "backspace":
3917
- te();
4023
+ D();
3918
4024
  break;
3919
4025
  }
3920
4026
  }
3921
- function O() {
4027
+ function k() {
3922
4028
  l.value = "", u.value = !1, m.value = null, g.value = !0, s("update:modelValue", []), s("update:search", "");
3923
4029
  }
3924
- return n({ clear: O }), Y(() => o.name, (e) => {
3925
- e || O();
4030
+ return n({ clear: k }), Y(() => o.name, (e) => {
4031
+ e || k();
3926
4032
  }), Y(() => (0, $.default)(y.value), (e, t) => {
3927
4033
  e !== t && (m.value = null), e && !g.value && (g.value = !0);
3928
- }), (t, n) => (U(), I("div", { class: B(t.$style.ui3nAutocomplete) }, [e.name && !J(Wr.default)(e.modelValue) ? (U(), I("fieldset", {
4034
+ }), (t, n) => (W(), L("div", { class: V(t.$style.ui3nAutocomplete) }, [e.name && !J(Wr.default)(e.modelValue) ? (W(), L("fieldset", {
3929
4035
  key: 0,
3930
- class: B(t.$style.hiddenBlock)
3931
- }, [e.multiple ? (U(), I(M, { key: 1 }, [e.returnObject ? (U(!0), I(M, { key: 1 }, G(e.modelValue, (t, n) => (U(), I("input", {
4036
+ class: V(t.$style.hiddenBlock)
4037
+ }, [e.multiple ? (W(), L(N, { key: 1 }, [e.returnObject ? (W(!0), L(N, { key: 1 }, ge(e.modelValue, (t, n) => (W(), L("input", {
3932
4038
  key: t.id || `${e.name}-obj-${n}`,
3933
4039
  type: "hidden",
3934
4040
  name: `${e.name}[]`,
3935
4041
  value: JSON.stringify(t)
3936
- }, null, 8, Wi))), 128)) : (U(!0), I(M, { key: 0 }, G(e.modelValue, (t, n) => (U(), I("input", {
4042
+ }, null, 8, Wi))), 128)) : (W(!0), L(N, { key: 0 }, ge(e.modelValue, (t, n) => (W(), L("input", {
3937
4043
  key: `${e.name}-flat-${n}`,
3938
4044
  type: "hidden",
3939
4045
  name: `${e.name}[]`,
3940
4046
  value: t
3941
- }, null, 8, Ui))), 128))], 64)) : (U(), I("input", {
4047
+ }, null, 8, Ui))), 128))], 64)) : (W(), L("input", {
3942
4048
  key: 0,
3943
4049
  type: "hidden",
3944
4050
  name: e.name,
3945
4051
  value: e.returnObject ? JSON.stringify(e.modelValue) : e.modelValue
3946
- }, null, 8, Hi))], 2)) : F("", !0), R(ti, {
4052
+ }, null, 8, Hi))], 2)) : I("", !0), z(ti, {
3947
4053
  modelValue: u.value,
3948
4054
  "onUpdate:modelValue": n[8] ||= (e) => u.value = e,
3949
4055
  "lock-scroll": e.lockScroll,
@@ -3959,15 +4065,15 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3959
4065
  ],
3960
4066
  disabled: e.disabled
3961
4067
  }, {
3962
- menu: X(() => [!J(Wr.default)(y.value) || J(Wr.default)(y.value) && e.noDataText ? (U(), I("div", {
4068
+ menu: X(() => [!J(Wr.default)(y.value) || J(Wr.default)(y.value) && e.noDataText ? (W(), L("div", {
3963
4069
  key: 0,
3964
4070
  ref_key: "menuBodyEl",
3965
4071
  ref: p,
3966
- class: B(t.$style.body)
3967
- }, [J($.default)(y.value) ? (U(!0), I(M, { key: 0 }, G(y.value, (n, r) => (U(), I("div", {
4072
+ class: V(t.$style.body)
4073
+ }, [J($.default)(y.value) ? (W(!0), L(N, { key: 0 }, ge(y.value, (n, r) => (W(), L("div", {
3968
4074
  key: n.id,
3969
4075
  id: `${c}-${r}`,
3970
- class: B([
4076
+ class: V([
3971
4077
  t.$style.item,
3972
4078
  m.value === r && t.$style.itemSelected,
3973
4079
  e.disabled && t.$style.itemDisabled
@@ -3977,59 +4083,59 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
3977
4083
  item: n,
3978
4084
  index: r,
3979
4085
  query: l.value
3980
- }, () => [Te(L("div", { class: B(t.$style.simpleItem) }, null, 2), [[J(a), J(i)(n[o.itemTitle], l.value)]])])], 10, Ki))), 128)) : F("", !0), !J($.default)(y.value) && e.noDataText ? (U(), I("div", {
4086
+ }, () => [Te(R("div", { class: V(t.$style.simpleItem) }, null, 2), [[J(a), J(i)(n[o.itemTitle], l.value)]])])], 10, Ki))), 128)) : I("", !0), !J($.default)(y.value) && e.noDataText ? (W(), L("div", {
3981
4087
  key: 1,
3982
- class: B(t.$style.noData)
3983
- }, [K(t.$slots, "noDataText", {}, () => [le(q(e.noDataText), 1)])], 2)) : F("", !0)], 2)) : F("", !0)]),
3984
- default: X(() => [L("div", {
4088
+ class: V(t.$style.noData)
4089
+ }, [K(t.$slots, "noDataText", {}, () => [ce(q(e.noDataText), 1)])], 2)) : I("", !0)], 2)) : I("", !0)]),
4090
+ default: X(() => [R("div", {
3985
4091
  ref_key: "activatorEl",
3986
4092
  ref: d,
3987
- class: B(t.$style.trigger)
3988
- }, [e.chips ? (U(), P(ce, {
4093
+ class: V(t.$style.trigger)
4094
+ }, [e.chips ? (W(), F(se, {
3989
4095
  key: 0,
3990
4096
  name: "chipAnim",
3991
4097
  tag: "div",
3992
- class: B(t.$style.chipsContainer)
4098
+ class: V(t.$style.chipsContainer)
3993
4099
  }, {
3994
- default: X(() => [(U(!0), I(M, null, G(e.modelValue, (n, r) => (U(), I("div", {
4100
+ default: X(() => [(W(!0), L(N, null, ge(e.modelValue, (n, r) => (W(), L("div", {
3995
4101
  key: n.id || r,
3996
- class: B(t.$style.chipWrapper)
4102
+ class: V(t.$style.chipWrapper)
3997
4103
  }, [K(t.$slots, "chip", {
3998
4104
  item: n,
3999
4105
  index: r,
4000
4106
  isHighlighted: r === J($.default)(e.modelValue) - 1 && h.value
4001
- }, () => [R(er, {
4107
+ }, () => [z(er, {
4002
4108
  height: "32",
4003
4109
  color: r === J($.default)(e.modelValue) - 1 && h.value ? "var(--color-bg-control-primary-hover)" : void 0,
4004
4110
  round: "",
4005
4111
  closeable: "",
4006
4112
  onClose: (e) => C(n)
4007
4113
  }, {
4008
- default: X(() => [le(q(e.returnObject ? n[o.itemTitle] : n), 1)]),
4114
+ default: X(() => [ce(q(e.returnObject ? n[o.itemTitle] : n), 1)]),
4009
4115
  _: 2
4010
4116
  }, 1032, ["color", "onClose"])])], 2))), 128))]),
4011
4117
  _: 3
4012
- }, 8, ["class"])) : (U(), I("div", {
4118
+ }, 8, ["class"])) : (W(), L("div", {
4013
4119
  key: 1,
4014
- class: B(t.$style.displayValue)
4015
- }, q(v.value), 3)), Te(L("input", {
4120
+ class: V(t.$style.displayValue)
4121
+ }, q(v.value), 3)), Te(R("input", {
4016
4122
  ref_key: "inputEl",
4017
4123
  ref: f,
4018
4124
  "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
4019
4125
  type: "text",
4020
- class: B([t.$style.input, !g.value && t.$style.inputWithError]),
4126
+ class: V([t.$style.input, !g.value && t.$style.inputWithError]),
4021
4127
  placeholder: J(Wr.default)(e.modelValue) && e.placeholder ? e.placeholder : "",
4022
4128
  disabled: e.disabled,
4023
4129
  onInput: b,
4024
4130
  onFocusin: n[1] ||= Q((e) => s("update:focused", !0), ["prevent"]),
4025
4131
  onFocusout: x,
4026
4132
  onKeydown: [
4027
- n[2] ||= Z((e) => D(e, "down"), ["down"]),
4028
- n[3] ||= Z((e) => D(e, "up"), ["up"]),
4029
- n[4] ||= Z((e) => D(e, "esc"), ["esc"]),
4030
- n[5] ||= Z((e) => D(e, "enter"), ["enter"]),
4031
- n[6] ||= Z((e) => D(e, "tab"), ["tab"]),
4032
- n[7] ||= Z((e) => D(e, "backspace"), ["delete"])
4133
+ n[2] ||= Z((e) => O(e, "down"), ["down"]),
4134
+ n[3] ||= Z((e) => O(e, "up"), ["up"]),
4135
+ n[4] ||= Z((e) => O(e, "esc"), ["esc"]),
4136
+ n[5] ||= Z((e) => O(e, "enter"), ["enter"]),
4137
+ n[6] ||= Z((e) => O(e, "tab"), ["tab"]),
4138
+ n[7] ||= Z((e) => O(e, "backspace"), ["delete"])
4033
4139
  ]
4034
4140
  }, null, 42, Gi), [[we, l.value]])], 2)]),
4035
4141
  _: 3
@@ -4054,7 +4160,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4054
4160
  noData: "_noData_2o0no_100",
4055
4161
  chipsContainer: "_chipsContainer_2o0no_113",
4056
4162
  chipWrapper: "_chipWrapper_2o0no_120"
4057
- } }]]), Ji = ["id"], Yi = ["name", "value"], Xi = ["name", "value"], Zi = ["name", "value"], Qi = /* @__PURE__ */ D(/* @__PURE__ */ z({
4163
+ } }]]), Ji = ["id"], Yi = ["name", "value"], Xi = ["name", "value"], Zi = ["name", "value"], Qi = /* @__PURE__ */ O(/* @__PURE__ */ B({
4058
4164
  __name: "ui3n-slider",
4059
4165
  props: {
4060
4166
  id: {},
@@ -4077,32 +4183,32 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4077
4183
  },
4078
4184
  emits: ["update:modelValue"],
4079
4185
  setup(e, { expose: t, emit: n }) {
4080
- let r = e, i = n, o = Ce("sliderEl"), s = Ce("pointerEl1"), c = Ce("pointerEl2"), l = W({
4186
+ let r = e, i = n, o = Ce("sliderEl"), s = Ce("pointerEl1"), c = Ce("pointerEl2"), l = G({
4081
4187
  1: 0,
4082
4188
  2: 0
4083
- }), u = W({
4189
+ }), u = G({
4084
4190
  1: r.labelVisible === "always",
4085
4191
  2: r.labelVisible === "always"
4086
- }), d = W(0), f = W(null);
4087
- N(() => `${r.thumbSize}px`);
4088
- let p = N(() => Number(r.max) - Number(r.min)), m = N(() => r.step ? Number(r.step) : p.value / 100), h = N(() => {
4192
+ }), d = G(0), f = G(null);
4193
+ P(() => `${r.thumbSize}px`);
4194
+ let p = P(() => Number(r.max) - Number(r.min)), m = P(() => r.step ? Number(r.step) : p.value / 100), h = P(() => {
4089
4195
  let e = {};
4090
4196
  if (r.range) {
4091
4197
  let [t, n] = d.value;
4092
4198
  return t <= Number(r.min) ? e.left = "0px" : t < Number(r.max) && (e.left = `${a((t - Number(r.min)) / p.value * 100, 0)}%`), n >= Number(r.max) ? e.width = t <= Number(r.min) ? "100%" : `${a((Number(r.max) - t) / p.value * 100, 0)}%` : n > Number(r.min) && (e.width = `${a((n - t) / p.value * 100, 0)}%`), e;
4093
4199
  }
4094
4200
  return d.value <= Number(r.min) ? (e.left = "0px", e.width = "0px") : d.value >= Number(r.max) ? (e.left = "0px", e.width = "100%") : (e.left = "0px", e.width = `${a((d.value - Number(r.min)) / p.value * 100, 0)}%`), e;
4095
- }), g = N(() => r.range ? `calc(${h.value.left} + 1px)` : `${h.value.width}`), _ = N(() => r.range ? `calc(${h.value.width} + ${h.value.left} - 1px)` : "200%"), v = N(() => {
4201
+ }), g = P(() => r.range ? `calc(${h.value.left} + 1px)` : `${h.value.width}`), _ = P(() => r.range ? `calc(${h.value.width} + ${h.value.left} - 1px)` : "200%"), v = P(() => {
4096
4202
  if (r.range) {
4097
4203
  let e = d.value[0];
4098
4204
  return r.transformValueMethod ? r.transformValueMethod(e) : `${e}`;
4099
4205
  }
4100
4206
  return r.transformValueMethod ? r.transformValueMethod(d.value) : `${d.value}`;
4101
- }), y = N(() => {
4207
+ }), y = P(() => {
4102
4208
  if (!r.range) return "";
4103
4209
  let e = d.value[1];
4104
4210
  return r.transformValueMethod ? r.transformValueMethod(e) : `${e}`;
4105
- }), b = N(() => ({
4211
+ }), b = P(() => ({
4106
4212
  "--ui3n-slider-height": `${Math.max(Number(r.trackHeight), Number(r.thumbSize))}px`,
4107
4213
  "--ui3n-slider-label-color": r.labelColor,
4108
4214
  "--ui3n-slider-label-text-color": r.labelTextColor,
@@ -4160,40 +4266,40 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4160
4266
  }
4161
4267
  let t = Array.isArray(r.modelValue) ? r.modelValue[r.modelValue.length - 1] : r.modelValue;
4162
4268
  t !== d.value && (d.value = t);
4163
- }, { immediate: !0 }), (t, n) => (U(), I("div", {
4269
+ }, { immediate: !0 }), (t, n) => (W(), L("div", {
4164
4270
  ref: "sliderEl",
4165
4271
  id: e.id,
4166
- style: V(b.value),
4167
- class: B([t.$style.ui3nSlider, e.disabled && t.$style.disabled]),
4272
+ style: H(b.value),
4273
+ class: V([t.$style.ui3nSlider, e.disabled && t.$style.disabled]),
4168
4274
  onClick: Q(ee, ["stop", "prevent"])
4169
4275
  }, [
4170
- e.name ? (U(), I(M, { key: 0 }, [e.range ? (U(), I(M, { key: 0 }, [L("input", {
4276
+ e.name ? (W(), L(N, { key: 0 }, [e.range ? (W(), L(N, { key: 0 }, [R("input", {
4171
4277
  type: "hidden",
4172
4278
  name: `${e.name}_min`,
4173
4279
  value: d.value[0]
4174
- }, null, 8, Yi), L("input", {
4280
+ }, null, 8, Yi), R("input", {
4175
4281
  type: "hidden",
4176
4282
  name: `${e.name}_max`,
4177
4283
  value: d.value[1]
4178
- }, null, 8, Xi)], 64)) : (U(), I("input", {
4284
+ }, null, 8, Xi)], 64)) : (W(), L("input", {
4179
4285
  key: 1,
4180
4286
  type: "hidden",
4181
4287
  name: e.name,
4182
4288
  value: d.value
4183
- }, null, 8, Zi))], 64)) : F("", !0),
4184
- L("div", { class: B(t.$style.track) }, [L("div", {
4185
- class: B(t.$style.active),
4186
- style: V(h.value)
4289
+ }, null, 8, Zi))], 64)) : I("", !0),
4290
+ R("div", { class: V(t.$style.track) }, [R("div", {
4291
+ class: V(t.$style.active),
4292
+ style: H(h.value)
4187
4293
  }, null, 6)], 2),
4188
- L("div", {
4294
+ R("div", {
4189
4295
  ref: "pointerEl1",
4190
- class: B([t.$style.pointerWrapper, t.$style.pointer1]),
4296
+ class: V([t.$style.pointerWrapper, t.$style.pointer1]),
4191
4297
  onPointerdown: n[0] ||= (e) => w(e, 1),
4192
4298
  onClick: n[1] ||= Q(() => {}, ["stop", "prevent"]),
4193
4299
  onDragstart: C,
4194
4300
  onMouseenter: n[2] ||= (e) => x(1),
4195
4301
  onMouseleave: n[3] ||= (e) => S(1)
4196
- }, [R(ki, {
4302
+ }, [z(ki, {
4197
4303
  "model-value": u.value[1],
4198
4304
  content: v.value,
4199
4305
  trigger: "manual",
@@ -4203,7 +4309,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4203
4309
  "text-color": e.labelTextColor,
4204
4310
  disabled: e.labelVisible === "never"
4205
4311
  }, {
4206
- default: X(() => [L("div", { class: B([t.$style.pointer, f.value === 1 && t.$style.selected]) }, null, 2)]),
4312
+ default: X(() => [R("div", { class: V([t.$style.pointer, f.value === 1 && t.$style.selected]) }, null, 2)]),
4207
4313
  _: 1
4208
4314
  }, 8, [
4209
4315
  "model-value",
@@ -4212,16 +4318,16 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4212
4318
  "text-color",
4213
4319
  "disabled"
4214
4320
  ])], 34),
4215
- e.range ? (U(), I("div", {
4321
+ e.range ? (W(), L("div", {
4216
4322
  key: 1,
4217
4323
  ref: "pointerEl2",
4218
- class: B([t.$style.pointerWrapper, t.$style.pointer2]),
4324
+ class: V([t.$style.pointerWrapper, t.$style.pointer2]),
4219
4325
  onPointerdown: n[4] ||= (e) => w(e, 2),
4220
4326
  onClick: n[5] ||= Q(() => {}, ["stop", "prevent"]),
4221
4327
  onDragstart: C,
4222
4328
  onMouseenter: n[6] ||= (e) => x(2),
4223
4329
  onMouseleave: n[7] ||= (e) => S(2)
4224
- }, [R(ki, {
4330
+ }, [z(ki, {
4225
4331
  "model-value": u.value[2],
4226
4332
  content: y.value,
4227
4333
  trigger: "manual",
@@ -4231,7 +4337,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4231
4337
  "text-color": e.labelTextColor,
4232
4338
  disabled: e.labelVisible === "never"
4233
4339
  }, {
4234
- default: X(() => [L("div", { class: B([t.$style.pointer, f.value === 2 && t.$style.selected]) }, null, 2)]),
4340
+ default: X(() => [R("div", { class: V([t.$style.pointer, f.value === 2 && t.$style.selected]) }, null, 2)]),
4235
4341
  _: 1
4236
4342
  }, 8, [
4237
4343
  "model-value",
@@ -4239,7 +4345,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4239
4345
  "color",
4240
4346
  "text-color",
4241
4347
  "disabled"
4242
- ])], 34)) : F("", !0)
4348
+ ])], 34)) : I("", !0)
4243
4349
  ], 14, Ji));
4244
4350
  }
4245
4351
  }), [["__cssModules", { $style: {
@@ -4252,7 +4358,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4252
4358
  selected: "_selected_17be6_55",
4253
4359
  pointer1: "_pointer1_17be6_69",
4254
4360
  pointer2: "_pointer2_17be6_73"
4255
- } }]]), $i = ["id"], ea = ["name", "value"], ta = ["tabindex"], na = ["id", "onClick"], ra = /* @__PURE__ */ D(/* @__PURE__ */ z({
4361
+ } }]]), $i = ["id"], ea = ["name", "value"], ta = ["tabindex"], na = ["id", "onClick"], ra = /* @__PURE__ */ O(/* @__PURE__ */ B({
4256
4362
  __name: "ui3n-selector",
4257
4363
  props: {
4258
4364
  id: {},
@@ -4276,7 +4382,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4276
4382
  disabled: { type: Boolean }
4277
4383
  },
4278
4384
  setup(e, { expose: n, emit: r }) {
4279
- let i = e, a = r, o = `select-${t(4)}`, s = Ce("activator"), c = Ce("body"), l = W(!1), u = W(!1), d = W(null), f = N(() => i.items.filter((e) => i.hideSelected ? i.returnObject ? i.modelValue.id !== e.id : i.modelValue !== e[i.itemValue] : !0)), p = N(() => {
4385
+ let i = e, a = r, o = `select-${t(4)}`, s = Ce("activator"), c = Ce("body"), l = G(!1), u = G(!1), d = G(null), f = P(() => i.items.filter((e) => i.hideSelected ? i.returnObject ? i.modelValue.id !== e.id : i.modelValue !== e[i.itemValue] : !0)), p = P(() => {
4280
4386
  if (!i.modelValue) return "";
4281
4387
  if (i.returnObject && typeof i.modelValue == "object") {
4282
4388
  let e = i.items.find((e) => e.id === i.modelValue.id);
@@ -4371,21 +4477,21 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4371
4477
  }
4372
4478
  a("list:open");
4373
4479
  } else e !== t && !e && (d.value = null, a("list:close"));
4374
- }), (t, n) => (U(), I("div", {
4480
+ }), (t, n) => (W(), L("div", {
4375
4481
  id: e.id,
4376
- class: B(t.$style.ui3nSelector)
4482
+ class: V(t.$style.ui3nSelector)
4377
4483
  }, [
4378
- e.name && e.modelValue ? (U(), I("input", {
4484
+ e.name && e.modelValue ? (W(), L("input", {
4379
4485
  key: 0,
4380
4486
  type: "hidden",
4381
4487
  name: e.name,
4382
4488
  value: typeof e.modelValue == "object" ? JSON.stringify(e.modelValue) : String(e.modelValue)
4383
- }, null, 8, ea)) : F("", !0),
4384
- e.label ? (U(), I("label", {
4489
+ }, null, 8, ea)) : I("", !0),
4490
+ e.label ? (W(), L("label", {
4385
4491
  key: 1,
4386
- class: B(t.$style.label)
4387
- }, q(e.label), 3)) : F("", !0),
4388
- R(ti, {
4492
+ class: V(t.$style.label)
4493
+ }, q(e.label), 3)) : I("", !0),
4494
+ z(ti, {
4389
4495
  modelValue: l.value,
4390
4496
  "onUpdate:modelValue": n[6] ||= (e) => l.value = e,
4391
4497
  "offset-x": -3,
@@ -4396,20 +4502,20 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4396
4502
  width: "100%",
4397
4503
  minWidth: "var(--ui3n-selector-width, 200px)"
4398
4504
  },
4399
- class: B(t.$style.menu),
4505
+ class: V(t.$style.menu),
4400
4506
  disabled: e.disabled,
4401
4507
  onClick: n[7] ||= () => {
4402
4508
  e.disabled || (l.value = !l.value);
4403
4509
  }
4404
4510
  }, {
4405
- menu: X(() => [!J(Wr.default)(f.value) || J(Wr.default)(f.value) && e.noDataText ? (U(), I("div", {
4511
+ menu: X(() => [!J(Wr.default)(f.value) || J(Wr.default)(f.value) && e.noDataText ? (W(), L("div", {
4406
4512
  key: 0,
4407
4513
  ref: "body",
4408
- class: B(t.$style.body)
4409
- }, [J(Wr.default)(f.value) ? F("", !0) : (U(!0), I(M, { key: 0 }, G(f.value, (n, r) => (U(), I("div", {
4514
+ class: V(t.$style.body)
4515
+ }, [J(Wr.default)(f.value) ? I("", !0) : (W(!0), L(N, { key: 0 }, ge(f.value, (n, r) => (W(), L("div", {
4410
4516
  key: n.id,
4411
4517
  id: `${o}-${r}`,
4412
- class: B([
4518
+ class: V([
4413
4519
  t.$style.item,
4414
4520
  d.value === r && t.$style.itemSelected,
4415
4521
  e.disabled && t.$style.itemDisabled
@@ -4419,14 +4525,14 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4419
4525
  item: n,
4420
4526
  index: r,
4421
4527
  activeIndex: d.value
4422
- }, () => [le(q(m(n)), 1)])], 10, na))), 128)), J(Wr.default)(f.value) && e.noDataText ? (U(), I("div", {
4528
+ }, () => [ce(q(m(n)), 1)])], 10, na))), 128)), J(Wr.default)(f.value) && e.noDataText ? (W(), L("div", {
4423
4529
  key: 1,
4424
- class: B(t.$style.noData)
4425
- }, [K(t.$slots, "noDataText", {}, () => [le(q(e.noDataText), 1)])], 2)) : F("", !0)], 2)) : F("", !0)]),
4426
- default: X(() => [L("div", {
4530
+ class: V(t.$style.noData)
4531
+ }, [K(t.$slots, "noDataText", {}, () => [ce(q(e.noDataText), 1)])], 2)) : I("", !0)], 2)) : I("", !0)]),
4532
+ default: X(() => [R("div", {
4427
4533
  ref: "activator",
4428
4534
  tabindex: e.disabled ? -1 : 0,
4429
- class: B([
4535
+ class: V([
4430
4536
  t.$style.trigger,
4431
4537
  u.value && t.$style.triggerFocused,
4432
4538
  e.clearable && e.modelValue && t.$style.clearable,
@@ -4446,8 +4552,8 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4446
4552
  K(t.$slots, "selection", {
4447
4553
  value: e.modelValue,
4448
4554
  selectedItem: d.value === null ? void 0 : f.value[d.value]
4449
- }, () => [le(q(p.value || e.placeholder || ""), 1)]),
4450
- e.clearable && e.modelValue ? (U(), P(O, {
4555
+ }, () => [ce(q(p.value || e.placeholder || ""), 1)]),
4556
+ e.clearable && e.modelValue ? (W(), F(k, {
4451
4557
  key: 0,
4452
4558
  type: "icon",
4453
4559
  size: "small",
@@ -4456,16 +4562,16 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4456
4562
  "icon-size": "16",
4457
4563
  "icon-color": "var(--color-icon-block-primary-default)",
4458
4564
  disabled: e.disabled,
4459
- class: B(t.$style.clearBtn),
4565
+ class: V(t.$style.clearBtn),
4460
4566
  onClick: Q(v, ["stop", "prevent"]),
4461
4567
  onMousedown: n[0] ||= Q(() => {}, ["stop", "prevent"])
4462
- }, null, 8, ["disabled", "class"])) : F("", !0),
4463
- R(k, {
4568
+ }, null, 8, ["disabled", "class"])) : I("", !0),
4569
+ z(A, {
4464
4570
  icon: "outline-arrow-drop-down",
4465
4571
  color: "var(--color-icon-block-primary-default)",
4466
4572
  size: "16",
4467
4573
  "vertical-flip": l.value,
4468
- class: B(t.$style.menuIcon)
4574
+ class: V(t.$style.menuIcon)
4469
4575
  }, null, 8, ["vertical-flip", "class"])
4470
4576
  ], 42, ta)]),
4471
4577
  _: 3
@@ -4492,7 +4598,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4492
4598
  item: "_item_1fmel_107",
4493
4599
  itemSelected: "_itemSelected_1fmel_121",
4494
4600
  itemDisabled: "_itemDisabled_1fmel_125"
4495
- } }]]), ia = /* @__PURE__ */ D(/* @__PURE__ */ z({
4601
+ } }]]), ia = /* @__PURE__ */ O(/* @__PURE__ */ B({
4496
4602
  __name: "ui3n-mobile-menu",
4497
4603
  props: {
4498
4604
  modelValue: { type: Boolean },
@@ -4501,45 +4607,45 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4501
4607
  },
4502
4608
  emits: ["update:modelValue"],
4503
4609
  setup(e, { emit: t }) {
4504
- let n = e, r = t, i = N(() => ({
4610
+ let n = e, r = t, i = P(() => ({
4505
4611
  "--ui3n-menu-width-custom": isNaN(Number(n.width)) ? n.width || "240px" : `${n.width}px`,
4506
4612
  "--ui3n-menu-blur-custom": n.withBlur ? "2px" : "0"
4507
4613
  }));
4508
4614
  function a() {
4509
4615
  r("update:modelValue", !n.modelValue);
4510
4616
  }
4511
- return (t, n) => (U(), I("div", {
4512
- class: B(t.$style.ui3nMobileMenu),
4513
- style: V(i.value)
4514
- }, [e.modelValue ? F("", !0) : (U(), P(O, {
4617
+ return (t, n) => (W(), L("div", {
4618
+ class: V(t.$style.ui3nMobileMenu),
4619
+ style: H(i.value)
4620
+ }, [e.modelValue ? I("", !0) : (W(), F(k, {
4515
4621
  key: 0,
4516
4622
  type: "icon",
4517
- class: B(t.$style.menuButton),
4623
+ class: V(t.$style.menuButton),
4518
4624
  color: "var(--color-bg-block-primary-default)",
4519
4625
  icon: "round-menu",
4520
4626
  "icon-color": "var(--color-icon-block-primary-default)",
4521
4627
  "icon-size": "32",
4522
4628
  onClick: Q(a, ["stop", "prevent"])
4523
- }, null, 8, ["class"])), R(se, { name: "slide-fade" }, {
4524
- default: X(() => [e.modelValue ? (U(), I("div", {
4629
+ }, null, 8, ["class"])), z(oe, { name: "slide-fade" }, {
4630
+ default: X(() => [e.modelValue ? (W(), L("div", {
4525
4631
  key: 0,
4526
- class: B(t.$style.menuWrapper)
4527
- }, [L("div", {
4528
- class: B(t.$style.overlay),
4632
+ class: V(t.$style.menuWrapper)
4633
+ }, [R("div", {
4634
+ class: V(t.$style.overlay),
4529
4635
  onClick: a
4530
- }, null, 2), L("div", { class: B(t.$style.menuPanel) }, [L("div", { class: B(t.$style.appMenu) }, [
4531
- L("div", { class: B(t.$style.appMenuHeader) }, [K(t.$slots, "header")], 2),
4532
- L("div", { class: B(t.$style.appMenuBody) }, [K(t.$slots, "menuBody")], 2),
4533
- L("div", { class: B(t.$style.appMenuFooter) }, [K(t.$slots, "footer")], 2)
4534
- ], 2), R(O, {
4636
+ }, null, 2), R("div", { class: V(t.$style.menuPanel) }, [R("div", { class: V(t.$style.appMenu) }, [
4637
+ R("div", { class: V(t.$style.appMenuHeader) }, [K(t.$slots, "header")], 2),
4638
+ R("div", { class: V(t.$style.appMenuBody) }, [K(t.$slots, "menuBody")], 2),
4639
+ R("div", { class: V(t.$style.appMenuFooter) }, [K(t.$slots, "footer")], 2)
4640
+ ], 2), z(k, {
4535
4641
  type: "icon",
4536
4642
  icon: "round-close",
4537
4643
  color: "transparent",
4538
4644
  "icon-color": "var(--color-icon-block-secondary-default)",
4539
4645
  "icon-size": "32",
4540
- class: B(t.$style.closeBtn),
4646
+ class: V(t.$style.closeBtn),
4541
4647
  onClick: Q(a, ["stop", "prevent"])
4542
- }, null, 8, ["class"])], 2)], 2)) : F("", !0)]),
4648
+ }, null, 8, ["class"])], 2)], 2)) : I("", !0)]),
4543
4649
  _: 3
4544
4650
  })], 6));
4545
4651
  }
@@ -4554,7 +4660,7 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4554
4660
  menuButton: "_menuButton_1991k_65",
4555
4661
  closeBtn: "_closeBtn_1991k_70",
4556
4662
  overlay: "_overlay_1991k_78"
4557
- } }]]), aa = /* @__PURE__ */ D(/* @__PURE__ */ z({
4663
+ } }]]), aa = /* @__PURE__ */ O(/* @__PURE__ */ B({
4558
4664
  __name: "ui3n-mobile-menu-item",
4559
4665
  props: {
4560
4666
  item: {},
@@ -4566,22 +4672,22 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4566
4672
  async function i() {
4567
4673
  r("selectItem", n.item);
4568
4674
  }
4569
- return (t, n) => (U(), I("div", {
4570
- class: B([t.$style.menuItem, e.isActive && t.$style.menuItemSelected]),
4675
+ return (t, n) => (W(), L("div", {
4676
+ class: V([t.$style.menuItem, e.isActive && t.$style.menuItemSelected]),
4571
4677
  onClick: i
4572
- }, [e.item.icon ? (U(), P(k, {
4678
+ }, [e.item.icon ? (W(), F(A, {
4573
4679
  key: 0,
4574
4680
  icon: e.item.icon,
4575
4681
  size: "20",
4576
4682
  color: "var(--color-icon-control-secondary-default)"
4577
- }, null, 8, ["icon"])) : F("", !0), L("span", { class: B(t.$style.menuItemName) }, q(e.item.name), 3)], 2));
4683
+ }, null, 8, ["icon"])) : I("", !0), R("span", { class: V(t.$style.menuItemName) }, q(e.item.name), 3)], 2));
4578
4684
  }
4579
4685
  }), [["__cssModules", { $style: {
4580
4686
  menuItem: "_menuItem_5dv4z_4",
4581
4687
  menuItemName: "_menuItemName_5dv4z_15",
4582
4688
  menuItemSelected: "_menuItemSelected_5dv4z_21",
4583
4689
  bounceOnce: "_bounceOnce_5dv4z_1"
4584
- } }]]), oa = 32, sa = /* @__PURE__ */ D(/* @__PURE__ */ z({
4690
+ } }]]), oa = 32, sa = /* @__PURE__ */ O(/* @__PURE__ */ B({
4585
4691
  __name: "ui3n-scrollbar-horizontal",
4586
4692
  props: {
4587
4693
  thumbMinWidth: { default: oa },
@@ -4596,10 +4702,10 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4596
4702
  },
4597
4703
  emits: ["scroll"],
4598
4704
  setup(e, { expose: t, emit: n }) {
4599
- let r = e, i = n, a = W(null), o = W(null), s = W(null), c = W(0), l = W(0), u = W(0), d = W(!1), f = W(!1), p = W(!1), m = null, h, g = 0, _ = 0, v = N(() => c.value > l.value), y = N(() => d.value ? !0 : v.value && (f.value || p.value)), b = N(() => {
4705
+ let r = e, i = n, a = G(null), o = G(null), s = G(null), c = G(0), l = G(0), u = G(0), d = G(!1), f = G(!1), p = G(!1), m = null, h, g = 0, _ = 0, v = P(() => c.value > l.value), y = P(() => d.value ? !0 : v.value && (f.value || p.value)), b = P(() => {
4600
4706
  let e = Number(r.thumbMinWidth);
4601
4707
  return isNaN(e) ? oa : e;
4602
- }), x = N(() => {
4708
+ }), x = P(() => {
4603
4709
  if (!c.value) return 0;
4604
4710
  if (r.thumbWidth !== "auto") {
4605
4711
  let e = Number(r.thumbWidth);
@@ -4607,29 +4713,29 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4607
4713
  }
4608
4714
  let e = l.value / c.value, t = l.value * e;
4609
4715
  return Math.max(b.value, t);
4610
- }), S = N(() => {
4716
+ }), S = P(() => {
4611
4717
  if (!c.value || c.value === l.value) return 0;
4612
4718
  let e = c.value - l.value, t = l.value - x.value;
4613
4719
  return u.value / e * t;
4614
- }), C = N(() => {
4720
+ }), C = P(() => {
4615
4721
  let e = Number(r.thumbRadius);
4616
4722
  return isNaN(e) ? String(r.thumbRadius) : `${e}px`;
4617
- }), w = N(() => r.thumbColor), T = N(() => r.thumbHoverColor), ee = N(() => r.thumbActiveColor), E = N(() => {
4723
+ }), w = P(() => r.thumbColor), T = P(() => r.thumbHoverColor), ee = P(() => r.thumbActiveColor), E = P(() => {
4618
4724
  let e = Number(r.trackHeight);
4619
4725
  return isNaN(e) ? String(r.trackHeight) : `${e}px`;
4620
- }), te = N(() => {
4726
+ }), D = P(() => {
4621
4727
  let e = Number(r.trackRadius);
4622
4728
  return isNaN(e) ? String(r.trackRadius) : `${e}px`;
4623
- }), D = N(() => r.trackColor);
4624
- function O() {
4729
+ }), O = P(() => r.trackColor);
4730
+ function k() {
4625
4731
  a.value && (c.value = a.value.scrollWidth, l.value = a.value.clientWidth, u.value = a.value.scrollLeft);
4626
4732
  }
4627
- function k(e) {
4733
+ function A(e) {
4628
4734
  d.value || (u.value = e.target.scrollLeft), p.value = !0, clearTimeout(h), h = setTimeout(() => {
4629
4735
  p.value = !1;
4630
4736
  }, 1500), i("scroll", e);
4631
4737
  }
4632
- function A(e) {
4738
+ function j(e) {
4633
4739
  if (e.target !== o.value || !a.value || !o.value) return;
4634
4740
  let t = o.value.getBoundingClientRect(), n = e.clientX - t.left - x.value / 2, r = c.value - l.value, i = n / (l.value - x.value) * r;
4635
4741
  i = Math.max(0, Math.min(r, i)), a.value.scrollTo({
@@ -4637,63 +4743,63 @@ var Qr = ["id"], $r = /* @__PURE__ */ D(/* @__PURE__ */ z({
4637
4743
  behavior: "smooth"
4638
4744
  });
4639
4745
  }
4640
- function ne(e) {
4641
- !s.value || !a.value || (e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientX, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", re), s.value.addEventListener("pointerup", j), s.value.addEventListener("pointercancel", j));
4746
+ function te(e) {
4747
+ !s.value || !a.value || (e.preventDefault(), e.stopPropagation(), s.value.setPointerCapture(e.pointerId), d.value = !0, g = e.clientX, _ = u.value, document.body.style.userSelect = "none", s.value.addEventListener("pointermove", ne), s.value.addEventListener("pointerup", M), s.value.addEventListener("pointercancel", M));
4642
4748
  }
4643
- function re(e) {
4749
+ function ne(e) {
4644
4750
  if (!d.value || !a.value) return;
4645
4751
  let t = e.clientX - g, n = c.value - l.value, r = t / (l.value - x.value) * n;
4646
4752
  a.value.scrollLeft = _ + r, u.value = a.value.scrollLeft;
4647
4753
  }
4648
- function j(e) {
4754
+ function M(e) {
4649
4755
  if (d.value && (d.value = !1, document.body.style.userSelect = "", s.value)) {
4650
4756
  try {
4651
4757
  s.value.releasePointerCapture(e.pointerId);
4652
4758
  } catch {}
4653
- s.value.removeEventListener("pointermove", re), s.value.removeEventListener("pointerup", j), s.value.removeEventListener("pointercancel", j);
4759
+ s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M);
4654
4760
  }
4655
4761
  }
4656
- return H(() => {
4657
- O(), a.value && (m = new ResizeObserver(O), m.observe(a.value), a.value.firstElementChild && m.observe(a.value.firstElementChild));
4658
- }), me(() => {
4659
- m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", re), s.value.removeEventListener("pointerup", j), s.value.removeEventListener("pointercancel", j)), document.body.style.userSelect = "";
4762
+ return U(() => {
4763
+ k(), a.value && (m = new ResizeObserver(k), m.observe(a.value), a.value.firstElementChild && m.observe(a.value.firstElementChild));
4764
+ }), pe(() => {
4765
+ m?.disconnect(), h && clearTimeout(h), s.value && (s.value.removeEventListener("pointermove", ne), s.value.removeEventListener("pointerup", M), s.value.removeEventListener("pointercancel", M)), document.body.style.userSelect = "";
4660
4766
  }), t({
4661
4767
  scrollTo: (e) => {
4662
4768
  a.value?.scrollTo(e);
4663
4769
  },
4664
4770
  getContainer: () => a.value
4665
- }), (e, t) => (U(), I("div", {
4666
- class: B(e.$style.ui3nScrollbarHorizontal),
4667
- style: V({
4771
+ }), (e, t) => (W(), L("div", {
4772
+ class: V(e.$style.ui3nScrollbarHorizontal),
4773
+ style: H({
4668
4774
  "--ui3n-scrollbar-horizontal-thumb-radius": C.value,
4669
4775
  "--ui3n-scrollbar-horizontal-thumb-color": w.value,
4670
4776
  "--ui3n-scrollbar-horizontal-thumb-hover-color": T.value,
4671
4777
  "--ui3n-scrollbar-horizontal-thumb-active-color": ee.value,
4672
4778
  "--ui3n-scrollbar-horizontal-track-height": E.value,
4673
- "--ui3n-scrollbar-horizontal-track-radius": te.value,
4674
- "--ui3n-scrollbar-horizontal-track-color": D.value
4779
+ "--ui3n-scrollbar-horizontal-track-radius": D.value,
4780
+ "--ui3n-scrollbar-horizontal-track-color": O.value
4675
4781
  }),
4676
4782
  onMouseenter: t[0] ||= (e) => f.value = !0,
4677
4783
  onMouseleave: t[1] ||= (e) => f.value = !1
4678
- }, [L("div", {
4784
+ }, [R("div", {
4679
4785
  ref_key: "containerRef",
4680
4786
  ref: a,
4681
- class: B(e.$style.scrollbarContainer),
4682
- onScroll: k
4683
- }, [K(e.$slots, "default")], 34), L("div", {
4787
+ class: V(e.$style.scrollbarContainer),
4788
+ onScroll: A
4789
+ }, [K(e.$slots, "default")], 34), R("div", {
4684
4790
  ref_key: "trackRef",
4685
4791
  ref: o,
4686
- class: B([e.$style.track, { [e.$style.trackVisible]: y.value }]),
4687
- onMousedown: A
4688
- }, [L("div", {
4792
+ class: V([e.$style.track, { [e.$style.trackVisible]: y.value }]),
4793
+ onMousedown: j
4794
+ }, [R("div", {
4689
4795
  ref_key: "thumbRef",
4690
4796
  ref: s,
4691
- class: B([e.$style.thumb, { [e.$style.active]: d.value }]),
4692
- style: V({
4797
+ class: V([e.$style.thumb, { [e.$style.active]: d.value }]),
4798
+ style: H({
4693
4799
  width: `${x.value}px`,
4694
4800
  transform: `translateX(${S.value}px)`
4695
4801
  }),
4696
- onPointerdown: ne
4802
+ onPointerdown: te
4697
4803
  }, null, 38)], 34)], 38));
4698
4804
  }
4699
4805
  }), [["__cssModules", { $style: {
@@ -4716,4 +4822,4 @@ function ca(e, t, n = 250) {
4716
4822
  return { handleDblClick: a };
4717
4823
  }
4718
4824
  //#endregion
4719
- export { qi as Ui3nAutocomplete, fi as Ui3nBadge, mi as Ui3nBreadcrumb, hi as Ui3nBreadcrumbs, O as Ui3nButton, zr as Ui3nCheckbox, er as Ui3nChip, On as Ui3nClickOutside, $r as Ui3nDialog, Xr as Ui3nDialogProvider, rr as Ui3nDropFiles, Vi as Ui3nEditable, ir as Ui3nEmoji, En as Ui3nHtml, k as Ui3nIcon, sr as Ui3nInput, Ar as Ui3nInputFile, ii as Ui3nList, Qn as Ui3nLongPress, ti as Ui3nMenu, ia as Ui3nMobileMenu, aa as Ui3nMobileMenuItem, A as Ui3nNotification, Di as Ui3nProgressCircular, Ci as Ui3nProgressLinear, Pi as Ui3nRadio, Fi as Ui3nRadioGroup, Fn as Ui3nResize, te as Ui3nRipple, sa as Ui3nScrollbarHorizontal, oi as Ui3nScrollbarVertical, ra as Ui3nSelector, Qi as Ui3nSlider, bi as Ui3nStepLineBar, vi as Ui3nSwitch, Jr as Ui3nTable, Br as Ui3nTableSortIcon, li as Ui3nTabs, Nr as Ui3nText, Gn as Ui3nTitle, ki as Ui3nTooltip, si as Ui3nVirtualScroll, ca as useDblClickHandler };
4825
+ export { qi as Ui3nAutocomplete, fi as Ui3nBadge, mi as Ui3nBreadcrumb, hi as Ui3nBreadcrumbs, k as Ui3nButton, zr as Ui3nCheckbox, er as Ui3nChip, On as Ui3nClickOutside, $r as Ui3nDialog, Xr as Ui3nDialogProvider, rr as Ui3nDropFiles, Vi as Ui3nEditable, ir as Ui3nEmoji, En as Ui3nHtml, A as Ui3nIcon, sr as Ui3nInput, Ar as Ui3nInputFile, ii as Ui3nList, Qn as Ui3nLongPress, ti as Ui3nMenu, ia as Ui3nMobileMenu, aa as Ui3nMobileMenuItem, j as Ui3nNotification, Di as Ui3nProgressCircular, Ci as Ui3nProgressLinear, Pi as Ui3nRadio, Fi as Ui3nRadioGroup, Fn as Ui3nResize, D as Ui3nRipple, sa as Ui3nScrollbarHorizontal, oi as Ui3nScrollbarVertical, ra as Ui3nSelector, Qi as Ui3nSlider, bi as Ui3nStepLineBar, vi as Ui3nSwitch, Jr as Ui3nTable, Br as Ui3nTableSortIcon, li as Ui3nTabs, Nr as Ui3nText, Gn as Ui3nTitle, ki as Ui3nTooltip, si as Ui3nVirtualScroll, ca as useDblClickHandler };