@emoo-ai/ui-vue 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as F, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as S, createElementVNode as m, toDisplayString as k, withModifiers as le, normalizeClass as W, computed as V, unref as a, mergeProps as Xe, withCtx as w, createVNode as P, renderSlot as A, Fragment as D, renderList as J, createSlots as Se, reactive as St, normalizeStyle as pe, createTextVNode as Y, ref as U, getCurrentInstance as eo, onBeforeUnmount as lt, nextTick as ke, shallowRef as to, watch as we, useAttrs as Pe, onMounted as Je, withDirectives as Ne, vShow as tt, normalizeProps as Fe, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, onScopeDispose as _t } from "vue";
2
- import { ElDrawer as Tt, ElTooltip as oo, ElSelect as Ae, ElOption as ze, ElCheckboxGroup as xt, ElCheckbox as st, ElRadioGroup as It, ElRadio as zt, ElDropdown as nt, ElButton as et, ElInput as ot, ElDropdownMenu as ao, vLoading as lo, ElDropdownItem as so, ElPopover as no, ElTag as io, ElTable as ro, ElTableColumn as Ve, ElMessage as uo, ElMessageBox as co } from "element-plus";
1
+ import { defineComponent as F, openBlock as t, createElementBlock as s, createBlock as x, resolveDynamicComponent as Ie, createCommentVNode as S, createElementVNode as u, toDisplayString as k, withModifiers as le, normalizeClass as W, computed as V, unref as a, mergeProps as Xe, withCtx as w, createVNode as P, renderSlot as A, Fragment as D, renderList as Z, createSlots as Se, reactive as St, normalizeStyle as pe, createTextVNode as J, ref as U, getCurrentInstance as eo, onBeforeUnmount as lt, nextTick as ke, shallowRef as to, watch as we, useAttrs as Pe, onMounted as Ze, withDirectives as Ne, vShow as tt, normalizeProps as Fe, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, useId as oo, onScopeDispose as _t } from "vue";
2
+ import { ElDrawer as Tt, ElTooltip as ao, ElSelect as Ae, ElOption as ze, ElCheckboxGroup as xt, ElCheckbox as st, ElRadioGroup as It, ElRadio as zt, ElDropdown as nt, ElButton as et, ElInput as ot, ElDropdownMenu as lo, vLoading as so, ElDropdownItem as no, ElPopover as io, ElTag as ro, ElTable as uo, ElTableColumn as Ve, ElMessage as co, ElMessageBox as mo } from "element-plus";
3
3
  import { useI18n as me } from "vue-i18n";
4
- import { PhX as it, PhSpinner as mo, PhCaretUp as Rt, PhCaretDown as rt, PhPushPinSlash as vo, PhArrowLineLeft as fo, PhArrowLineRight as ho, PhEyeSlash as Vt, PhEye as po, PhArrowCounterClockwise as Bt, PhMagnifyingGlass as yo, PhSlidersHorizontal as bo, PhDotsThree as Mt, PhCaretRight as Ge, PhArrowsVertical as go, PhCheck as Dt, PhCaretLeft as Pt, PhDotsSixVertical as wt, PhCaretUpDown as ko, PhPushPin as $o, PhUploadSimple as _o, PhFileText as wo, PhArrowRight as So } from "./icons.js";
5
- import { primaryColorVars as Co } from "@emoo-ai/brand/colors";
6
- import { AVATAR_TINT_PALETTE as ui, PRESET_COLORS as ci, avatarTintOf as mi, hexToRgbString as vi, mixColor as fi, primaryColorVars as hi } from "@emoo-ai/brand/colors";
4
+ import { PhX as it, PhSpinner as vo, PhCaretUp as Rt, PhCaretDown as rt, PhPushPinSlash as fo, PhArrowLineLeft as ho, PhArrowLineRight as po, PhEyeSlash as Vt, PhEye as yo, PhArrowCounterClockwise as Mt, PhMagnifyingGlass as bo, PhSlidersHorizontal as go, PhDotsThree as Bt, PhCaretRight as Ge, PhArrowsVertical as ko, PhCheck as Dt, PhCaretLeft as Pt, PhDotsSixVertical as wt, PhCaretUpDown as $o, PhPushPin as _o, PhUploadSimple as wo, PhFileText as So, PhArrowRight as Co } from "./icons.js";
5
+ import { primaryColorVars as Eo } from "@emoo-ai/brand/colors";
6
+ import { AVATAR_TINT_PALETTE as hi, PRESET_COLORS as pi, avatarTintOf as yi, hexToRgbString as bi, mixColor as gi, primaryColorVars as ki } from "@emoo-ai/brand/colors";
7
7
  import "element-plus/es/components/message-box/style/css";
8
- import { emoouiMessages as yi } from "./locales.js";
8
+ import { emoouiMessages as _i } from "./locales.js";
9
9
  import "element-plus/es/components/message/style/css";
10
- const Eo = { class: "emoo-action-pill__label" }, To = {
10
+ const To = { class: "emoo-action-pill__label" }, xo = {
11
11
  key: 1,
12
12
  class: "emoo-action-pill__kbd"
13
- }, xo = /* @__PURE__ */ F({
13
+ }, Io = /* @__PURE__ */ F({
14
14
  __name: "EmooActionPill",
15
15
  props: {
16
16
  icon: {},
@@ -29,16 +29,16 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
29
29
  key: 0,
30
30
  class: "emoo-action-pill__icon"
31
31
  })) : S("", !0),
32
- m("span", Eo, k(e.label), 1),
33
- e.kbd ? (t(), s("kbd", To, k(e.kbd), 1)) : S("", !0)
32
+ u("span", To, k(e.label), 1),
33
+ e.kbd ? (t(), s("kbd", xo, k(e.kbd), 1)) : S("", !0)
34
34
  ]));
35
35
  }
36
- }), Z = (e, n) => {
36
+ }), Y = (e, n) => {
37
37
  const o = e.__vccOpts || e;
38
38
  for (const [l, r] of n)
39
39
  o[l] = r;
40
40
  return o;
41
- }, zn = /* @__PURE__ */ Z(xo, [["__scopeId", "data-v-f9e9873a"]]), Io = /* @__PURE__ */ F({
41
+ }, Bn = /* @__PURE__ */ Y(Io, [["__scopeId", "data-v-f9e9873a"]]), zo = /* @__PURE__ */ F({
42
42
  __name: "SheetDragHandle",
43
43
  props: {
44
44
  dragging: { type: Boolean },
@@ -51,13 +51,13 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
51
51
  "data-testid": "sheet-drag-handle",
52
52
  onPointerdown: o[0] || (o[0] = le((l) => n.$emit("dragstart", l), ["prevent"]))
53
53
  }, [...o[1] || (o[1] = [
54
- m("span", { class: "sheet-drag-handle__bar" }, null, -1)
54
+ u("span", { class: "sheet-drag-handle__bar" }, null, -1)
55
55
  ])], 34));
56
56
  }
57
- }), At = /* @__PURE__ */ Z(Io, [["__scopeId", "data-v-ef0108a1"]]), zo = { class: "emoo-asheet" }, Ro = {
57
+ }), At = /* @__PURE__ */ Y(zo, [["__scopeId", "data-v-ef0108a1"]]), Ro = { class: "emoo-asheet" }, Vo = {
58
58
  key: 0,
59
59
  class: "emoo-asheet__title"
60
- }, Vo = { class: "emoo-asheet__list" }, Bo = ["disabled", "data-testid", "onClick"], Rn = /* @__PURE__ */ F({
60
+ }, Mo = { class: "emoo-asheet__list" }, Bo = ["disabled", "data-testid", "onClick"], Dn = /* @__PURE__ */ F({
61
61
  inheritAttrs: !1,
62
62
  __name: "EmooActionSheet",
63
63
  props: {
@@ -80,31 +80,31 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
80
80
  }
81
81
  return (v, g) => (t(), x(a(Tt), Xe(v.$attrs, {
82
82
  modelValue: r.value,
83
- "onUpdate:modelValue": g[0] || (g[0] = (u) => r.value = u),
83
+ "onUpdate:modelValue": g[0] || (g[0] = (c) => r.value = c),
84
84
  direction: "btt",
85
85
  size: "auto",
86
86
  "with-header": !1,
87
87
  class: "emoo-action-sheet"
88
88
  }), {
89
89
  default: w(() => [
90
- m("div", zo, [
90
+ u("div", Ro, [
91
91
  P(At),
92
- e.title ? (t(), s("p", Ro, k(e.title), 1)) : S("", !0),
93
- m("div", Vo, [
92
+ e.title ? (t(), s("p", Vo, k(e.title), 1)) : S("", !0),
93
+ u("div", Mo, [
94
94
  A(v.$slots, "default"),
95
- v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, J(e.items, (u, b) => (t(), s("button", {
96
- key: u.key,
95
+ v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
96
+ key: c.key,
97
97
  type: "button",
98
- class: W(["emoo-asheet__item", { "is-danger": u.danger }]),
99
- disabled: u.disabled,
100
- "data-testid": u.testid,
101
- onClick: (_) => i(u, b)
98
+ class: W(["emoo-asheet__item", { "is-danger": c.danger }]),
99
+ disabled: c.disabled,
100
+ "data-testid": c.testid,
101
+ onClick: (_) => i(c, b)
102
102
  }, [
103
- u.icon ? (t(), x(Ie(u.icon), {
103
+ c.icon ? (t(), x(Ie(c.icon), {
104
104
  key: 0,
105
105
  class: "emoo-asheet__ic"
106
106
  })) : S("", !0),
107
- m("span", null, k(u.label), 1)
107
+ u("span", null, k(c.label), 1)
108
108
  ], 10, Bo))), 128))
109
109
  ]),
110
110
  e.cancelText ? (t(), s("button", {
@@ -128,7 +128,7 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
128
128
  },
129
129
  setup(e) {
130
130
  const n = e, o = V(() => ["emo-tip", n.popperClass].filter(Boolean).join(" "));
131
- return (l, r) => (t(), x(a(oo), Xe(l.$attrs, {
131
+ return (l, r) => (t(), x(a(ao), Xe(l.$attrs, {
132
132
  placement: e.placement,
133
133
  "show-after": e.showAfter,
134
134
  "popper-class": o.value
@@ -147,10 +147,10 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
147
147
  } : void 0
148
148
  ]), 1040, ["placement", "show-after", "popper-class"]));
149
149
  }
150
- }), Mo = { class: "emoo-mtags" }, Do = ["src", "onError"], Po = { class: "emoo-mtag__name" }, Ao = ["aria-label", "onClick"], Lo = {
150
+ }), Do = { class: "emoo-mtags" }, Po = ["src", "onError"], Ao = { class: "emoo-mtag__name" }, Lo = ["aria-label", "onClick"], Oo = {
151
151
  class: "emoo-mtag emoo-mtag--more",
152
152
  "data-testid": "emoo-mtag-more"
153
- }, Oo = /* @__PURE__ */ F({
153
+ }, Uo = /* @__PURE__ */ F({
154
154
  __name: "EmooMemberTag",
155
155
  props: {
156
156
  items: {},
@@ -161,52 +161,52 @@ const Eo = { class: "emoo-action-pill__label" }, To = {
161
161
  emits: ["remove"],
162
162
  setup(e) {
163
163
  const { t: n } = me(), o = e, l = V(() => o.items.slice(0, o.max)), r = St(/* @__PURE__ */ new Set()), i = V(() => Math.max(0, o.items.length - o.max)), p = V(() => o.items.slice(o.max).map((v) => v.name).join("、"));
164
- return (v, g) => (t(), s("span", Mo, [
165
- (t(!0), s(D, null, J(l.value, (u, b) => (t(), s("span", {
166
- key: `${u.name}-${b}`,
164
+ return (v, g) => (t(), s("span", Do, [
165
+ (t(!0), s(D, null, Z(l.value, (c, b) => (t(), s("span", {
166
+ key: `${c.name}-${b}`,
167
167
  class: "emoo-mtag",
168
- style: pe({ "--tint": u.color || "var(--el-color-primary)" })
168
+ style: pe({ "--tint": c.color || "var(--el-color-primary)" })
169
169
  }, [
170
- m("span", {
171
- class: W(["emoo-mtag__avatar", { "is-square": u.square || e.square }]),
170
+ u("span", {
171
+ class: W(["emoo-mtag__avatar", { "is-square": c.square || e.square }]),
172
172
  "aria-hidden": "true"
173
173
  }, [
174
- u.avatar && !r.has(b) ? (t(), s("img", {
174
+ c.avatar && !r.has(b) ? (t(), s("img", {
175
175
  key: 0,
176
- src: u.avatar,
176
+ src: c.avatar,
177
177
  alt: "",
178
178
  class: "emoo-mtag__img",
179
179
  onError: (_) => r.add(b)
180
- }, null, 40, Do)) : (t(), s(D, { key: 1 }, [
181
- Y(k(u.name[0]), 1)
180
+ }, null, 40, Po)) : (t(), s(D, { key: 1 }, [
181
+ J(k(c.name[0]), 1)
182
182
  ], 64))
183
183
  ], 2),
184
- m("span", Po, k(u.name), 1),
184
+ u("span", Ao, k(c.name), 1),
185
185
  e.removable ? (t(), s("button", {
186
186
  key: 0,
187
187
  type: "button",
188
188
  class: "emoo-mtag__x",
189
- "aria-label": a(n)("common.emooMemberTag.remove", { name: u.name }),
189
+ "aria-label": a(n)("common.emooMemberTag.remove", { name: c.name }),
190
190
  onClick: (_) => v.$emit("remove", b)
191
191
  }, [
192
192
  P(a(it), { size: 10 })
193
- ], 8, Ao)) : S("", !0)
193
+ ], 8, Lo)) : S("", !0)
194
194
  ], 4))), 128)),
195
195
  i.value > 0 ? (t(), x(he, {
196
196
  key: 0,
197
197
  content: p.value
198
198
  }, {
199
199
  default: w(() => [
200
- m("span", Lo, "+" + k(i.value), 1)
200
+ u("span", Oo, "+" + k(i.value), 1)
201
201
  ]),
202
202
  _: 1
203
203
  }, 8, ["content"])) : S("", !0)
204
204
  ]));
205
205
  }
206
- }), xe = /* @__PURE__ */ Z(Oo, [["__scopeId", "data-v-33f4fffc"]]);
207
- function Be(e, n) {
206
+ }), xe = /* @__PURE__ */ Y(Uo, [["__scopeId", "data-v-33f4fffc"]]);
207
+ function Me(e, n) {
208
208
  const o = U([]), l = U(!1), r = U(!0), i = U(null), p = `${n}-${eo()?.uid ?? Math.random().toString(36).slice(2)}`, v = `${n} ${p}`;
209
- let g = 1, u = "", b, _ = null, y = 0, R = null;
209
+ let g = 1, c = "", b, _ = null, y = 0, R = null;
210
210
  const E = (q) => new Promise((de) => setTimeout(de, q)), $ = () => {
211
211
  y++, l.value = !1, _ && (clearTimeout(_), _ = null);
212
212
  }, I = async (q, de, ce) => {
@@ -217,7 +217,7 @@ function Be(e, n) {
217
217
  try {
218
218
  const N = await H(de, q);
219
219
  if (te !== y || e() !== H) return;
220
- g = q, u = de, b = H, o.value = z(ce ? o.value : [], N.items), r.value = N.hasMore, R = null;
220
+ g = q, c = de, b = H, o.value = z(ce ? o.value : [], N.items), r.value = N.hasMore, R = null;
221
221
  } catch (N) {
222
222
  te === y && e() === H && (i.value = N, R = { target: q, keyword: de, append: ce }, console.error("选择器远程选项加载失败:", N));
223
223
  } finally {
@@ -234,7 +234,7 @@ function Be(e, n) {
234
234
  }, 300);
235
235
  }, X = () => {
236
236
  const q = e();
237
- l.value || !q || (b !== q || o.value.length === 0 || u !== "") && I(1, "", !1);
237
+ l.value || !q || (b !== q || o.value.length === 0 || c !== "") && I(1, "", !1);
238
238
  }, ie = () => {
239
239
  if (!R || l.value) return;
240
240
  const { target: q, keyword: de, append: ce } = R;
@@ -243,11 +243,11 @@ function Be(e, n) {
243
243
  const q = e();
244
244
  if (!(l.value || !q)) {
245
245
  if (b !== q) return void X();
246
- r.value && I(g + 1, u, !0);
246
+ r.value && I(g + 1, c, !0);
247
247
  }
248
248
  };
249
249
  let d = null, T = null;
250
- const M = () => {
250
+ const B = () => {
251
251
  const q = document.querySelector(`.${p}`);
252
252
  return q?.querySelector(".el-select-dropdown__wrap") || q?.querySelector(".el-scrollbar__wrap");
253
253
  }, se = () => {
@@ -255,7 +255,7 @@ function Be(e, n) {
255
255
  }, ne = async () => {
256
256
  await ke();
257
257
  let q = null;
258
- for (let de = 0; de < 6 && (q = M(), !q); de++)
258
+ for (let de = 0; de < 6 && (q = B(), !q); de++)
259
259
  await E(50);
260
260
  !q || q === d || (se(), d = q, T = () => {
261
261
  d && d.scrollTop + d.clientHeight >= d.scrollHeight - 16 && ee();
@@ -271,26 +271,26 @@ function Be(e, n) {
271
271
  $(), se();
272
272
  }), { items: o, loading: l, hasMore: r, error: i, search: j, retry: ie, ensureFirstPage: X, loadMore: ee, onVisibleChange: ye, popperClass: v };
273
273
  }
274
- function Me(e, n, o) {
274
+ function Be(e, n, o) {
275
275
  const l = to([]), r = (g) => Array.isArray(g) ? g : g == null ? [] : [g], i = (g) => {
276
- const u = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
277
- return l.value = r(g).map((b) => u.get(b)).filter((b) => b !== void 0), l.value;
276
+ const c = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
277
+ return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
278
278
  };
279
279
  we(() => [e(), n(), o()], () => i(e()), { immediate: !0, deep: !0, flush: "sync" });
280
280
  const p = V(() => {
281
281
  const g = n();
282
- return [...l.value.filter((u) => !g.some((b) => b.id === u.id)), ...g];
283
- }), v = V(() => r(e()).map((g) => l.value.find((u) => u.id === g)).filter((g) => g !== void 0));
282
+ return [...l.value.filter((c) => !g.some((b) => b.id === c.id)), ...g];
283
+ }), v = V(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
284
284
  return { mergedOptions: p, selectedOptions: v, remember: i };
285
285
  }
286
- const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko = ["src"], Wo = { class: "emoo-asel__name" }, No = {
286
+ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo = ["src"], No = { class: "emoo-asel__name" }, Fo = {
287
287
  key: 0,
288
288
  class: "emoo-asel__sub"
289
- }, Fo = {
289
+ }, qo = {
290
290
  class: "emoo-sel-remote-error",
291
291
  role: "alert",
292
292
  "data-testid": "remote-error"
293
- }, qo = /* @__PURE__ */ F({
293
+ }, jo = /* @__PURE__ */ F({
294
294
  __name: "EmooAgentSelect",
295
295
  props: {
296
296
  modelValue: {},
@@ -304,21 +304,21 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
304
304
  },
305
305
  emits: ["update:modelValue"],
306
306
  setup(e, { emit: n }) {
307
- const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: u, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: R } = Be(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Me(
307
+ const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: R } = Me(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Be(
308
308
  () => o.modelValue,
309
309
  () => i.value ? p.value : o.options ?? [],
310
310
  () => o.selected ?? []
311
311
  ), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = V(() => j.disabled !== void 0 && j.disabled !== !1);
312
- Je(() => {
313
- const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, M = Array.isArray(d) ? d : [d];
314
- i.value && T && M.some((se) => se !== null && !z(se)) && _();
312
+ Ze(() => {
313
+ const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, B = Array.isArray(d) ? d : [d];
314
+ i.value && T && B.some((se) => se !== null && !z(se)) && _();
315
315
  });
316
316
  const ie = (d) => {
317
317
  I(d), l("update:modelValue", d);
318
318
  }, ee = (d) => {
319
319
  if (X.value) return;
320
320
  const T = $.value[d]?.id;
321
- T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
321
+ T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
322
322
  };
323
323
  return (d, T) => (t(), x(a(Ae), {
324
324
  class: "emoo-asel",
@@ -336,25 +336,25 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
336
336
  onVisibleChange: a(y)
337
337
  }, Se({
338
338
  default: w(() => [
339
- (t(!0), s(D, null, J(a(E), (M) => (t(), x(a(ze), {
340
- key: M.id,
341
- label: M.name,
342
- value: M.id
339
+ (t(!0), s(D, null, Z(a(E), (B) => (t(), x(a(ze), {
340
+ key: B.id,
341
+ label: B.name,
342
+ value: B.id
343
343
  }, {
344
344
  default: w(() => [
345
- m("span", Uo, [
346
- m("span", Ho, [
347
- M.avatar ? (t(), s("img", {
345
+ u("span", Ho, [
346
+ u("span", Ko, [
347
+ B.avatar ? (t(), s("img", {
348
348
  key: 0,
349
- src: M.avatar,
349
+ src: B.avatar,
350
350
  alt: "",
351
351
  class: "emoo-asel__img"
352
- }, null, 8, Ko)) : (t(), s(D, { key: 1 }, [
353
- Y(k(M.name[0]), 1)
352
+ }, null, 8, Wo)) : (t(), s(D, { key: 1 }, [
353
+ J(k(B.name[0]), 1)
354
354
  ], 64))
355
355
  ]),
356
- m("span", Wo, k(M.name), 1),
357
- M.sub ? (t(), s("span", No, k(M.sub), 1)) : S("", !0)
356
+ u("span", No, k(B.name), 1),
357
+ B.sub ? (t(), s("span", Fo, k(B.sub), 1)) : S("", !0)
358
358
  ])
359
359
  ]),
360
360
  _: 2
@@ -376,11 +376,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
376
376
  key: "1"
377
377
  } : {
378
378
  name: "label",
379
- fn: w(({ value: M }) => [
380
- z(M) ? (t(), x(xe, {
379
+ fn: w(({ value: B }) => [
380
+ z(B) ? (t(), x(xe, {
381
381
  key: 0,
382
382
  square: "",
383
- items: [z(M)]
383
+ items: [z(B)]
384
384
  }, null, 8, ["items"])) : S("", !0)
385
385
  ]),
386
386
  key: "0"
@@ -388,13 +388,13 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
388
388
  a(g) ? {
389
389
  name: "footer",
390
390
  fn: w(() => [
391
- m("div", Fo, [
392
- m("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
393
- m("button", {
391
+ u("div", qo, [
392
+ u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
393
+ u("button", {
394
394
  type: "button",
395
395
  "data-testid": "remote-retry",
396
396
  onClick: T[0] || (T[0] = //@ts-ignore
397
- (...M) => a(u) && a(u)(...M))
397
+ (...B) => a(c) && a(c)(...B))
398
398
  }, k(a(r)("common.emooSelect.retry")), 1)
399
399
  ])
400
400
  ]),
@@ -402,11 +402,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
402
402
  } : void 0
403
403
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
404
404
  }
405
- }), Vn = /* @__PURE__ */ Z(qo, [["__scopeId", "data-v-465d3a49"]]), jo = ["type", "disabled", "aria-busy"], Go = {
405
+ }), Pn = /* @__PURE__ */ Y(jo, [["__scopeId", "data-v-465d3a49"]]), Go = ["type", "disabled", "aria-busy"], Xo = {
406
406
  key: 0,
407
407
  class: "emoo-button__icon",
408
408
  "aria-hidden": "true"
409
- }, Xo = /* @__PURE__ */ F({
409
+ }, Zo = /* @__PURE__ */ F({
410
410
  __name: "EmooButton",
411
411
  props: {
412
412
  variant: { default: "secondary" },
@@ -428,22 +428,22 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
428
428
  disabled: e.disabled || e.loading,
429
429
  "aria-busy": e.loading || void 0
430
430
  }, [
431
- e.loading || n.$slots.icon ? (t(), s("span", Go, [
432
- e.loading ? (t(), x(a(mo), {
431
+ e.loading || n.$slots.icon ? (t(), s("span", Xo, [
432
+ e.loading ? (t(), x(a(vo), {
433
433
  key: 0,
434
434
  class: "emoo-button__spinner"
435
435
  })) : A(n.$slots, "icon", {}, void 0, !0, 1)
436
436
  ])) : S("", !0),
437
437
  A(n.$slots, "default", {}, void 0, !0)
438
- ], 10, jo));
438
+ ], 10, Go));
439
439
  }
440
- }), De = /* @__PURE__ */ Z(Xo, [["__scopeId", "data-v-6415e495"]]), Jo = { class: "emoo-card" }, Yo = {
440
+ }), De = /* @__PURE__ */ Y(Zo, [["__scopeId", "data-v-6415e495"]]), Jo = { class: "emoo-card" }, Yo = {
441
441
  key: 0,
442
442
  class: "emoo-card__header"
443
- }, Zo = {
443
+ }, Qo = {
444
444
  key: 1,
445
445
  class: "emoo-card__footer"
446
- }, Qo = /* @__PURE__ */ F({
446
+ }, ea = /* @__PURE__ */ F({
447
447
  __name: "EmooCard",
448
448
  props: {
449
449
  flush: { type: Boolean, default: !1 }
@@ -453,22 +453,22 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
453
453
  n.$slots.header ? (t(), s("div", Yo, [
454
454
  A(n.$slots, "header", {}, void 0, !0)
455
455
  ])) : S("", !0),
456
- m("div", {
456
+ u("div", {
457
457
  class: W(["emoo-card__body", { "emoo-card__body--flush": e.flush }])
458
458
  }, [
459
459
  A(n.$slots, "default", {}, void 0, !0)
460
460
  ], 2),
461
- n.$slots.footer ? (t(), s("div", Zo, [
461
+ n.$slots.footer ? (t(), s("div", Qo, [
462
462
  A(n.$slots, "footer", {}, void 0, !0)
463
463
  ])) : S("", !0)
464
464
  ]));
465
465
  }
466
- }), Bn = /* @__PURE__ */ Z(Qo, [["__scopeId", "data-v-4fffe6bc"]]), ea = ["data-testid"], ta = {
466
+ }), An = /* @__PURE__ */ Y(ea, [["__scopeId", "data-v-4fffe6bc"]]), ta = ["data-testid"], oa = {
467
467
  key: 0,
468
468
  class: "emoo-chips__more",
469
469
  "data-testid": "emoo-chips-more"
470
- }, oa = { name: "EmooChips" }, aa = /* @__PURE__ */ F({
471
- ...oa,
470
+ }, aa = { name: "EmooChips" }, la = /* @__PURE__ */ F({
471
+ ...aa,
472
472
  props: {
473
473
  items: {},
474
474
  labelOf: {},
@@ -493,24 +493,24 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
493
493
  $ = j, I++;
494
494
  }
495
495
  r.value = Math.max(1, I), i.value = _.length - r.value;
496
- }, u = () => {
496
+ }, c = () => {
497
497
  r.value = n.items.length, ke(g);
498
498
  };
499
499
  let b = null;
500
- return Je(() => {
501
- ke(g), setTimeout(u, 400), o.value && (b = new ResizeObserver(u), b.observe(o.value));
502
- }), lt(() => b?.disconnect()), we(() => n.items, u), (_, y) => (t(), x(he, {
500
+ return Ze(() => {
501
+ ke(g), setTimeout(c, 400), o.value && (b = new ResizeObserver(c), b.observe(o.value));
502
+ }), lt(() => b?.disconnect()), we(() => n.items, c), (_, y) => (t(), x(he, {
503
503
  content: p.value,
504
504
  disabled: i.value === 0
505
505
  }, {
506
506
  default: w(() => [
507
- m("div", {
507
+ u("div", {
508
508
  ref_key: "wrapRef",
509
509
  ref: o,
510
510
  class: "emoo-chips",
511
511
  style: pe({ gap: `${e.gap}px` })
512
512
  }, [
513
- (t(!0), s(D, null, J(e.items, (R, E) => Ne((t(), s("span", {
513
+ (t(!0), s(D, null, Z(e.items, (R, E) => Ne((t(), s("span", {
514
514
  key: E,
515
515
  ref_for: !0,
516
516
  ref_key: "chipRefs",
@@ -522,16 +522,16 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
522
522
  item: R,
523
523
  index: E
524
524
  }, void 0, !0)
525
- ], 8, ea)), [
525
+ ], 8, ta)), [
526
526
  [tt, E < r.value]
527
527
  ])), 128)),
528
- i.value > 0 ? (t(), s("span", ta, "+" + k(i.value), 1)) : S("", !0)
528
+ i.value > 0 ? (t(), s("span", oa, "+" + k(i.value), 1)) : S("", !0)
529
529
  ], 4)
530
530
  ]),
531
531
  _: 3
532
532
  }, 8, ["content", "disabled"]));
533
533
  }
534
- }), Mn = /* @__PURE__ */ Z(aa, [["__scopeId", "data-v-1c5db445"]]), la = /* @__PURE__ */ F({
534
+ }), Ln = /* @__PURE__ */ Y(la, [["__scopeId", "data-v-1c5db445"]]), sa = /* @__PURE__ */ F({
535
535
  __name: "EmooChoice",
536
536
  props: {
537
537
  options: {},
@@ -552,7 +552,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
552
552
  l("update:modelValue", b), typeof r.onChange == "function" && r.onChange(b), typeof r.onClear == "function" && r.onClear();
553
553
  }, g = (b, _) => {
554
554
  !o.clearable || o.disabled || b.disabled || o.modelValue !== b.value || (_.preventDefault(), _.stopPropagation(), v());
555
- }, u = (b) => {
555
+ }, c = (b) => {
556
556
  o.multiple && Array.isArray(b) ? l("update:modelValue", b.filter(
557
557
  (_) => typeof _ == "string" || typeof _ == "number" || typeof _ == "boolean"
558
558
  )) : !o.multiple && (typeof b == "string" || typeof b == "number" || typeof b == "boolean" || o.clearable && b === void 0) && l("update:modelValue", b);
@@ -571,10 +571,10 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
571
571
  "max-collapse-tags": 2,
572
572
  "empty-values": [null, void 0],
573
573
  "value-on-clear": void 0,
574
- "onUpdate:modelValue": u
574
+ "onUpdate:modelValue": c
575
575
  }, Se({
576
576
  default: w(() => [
577
- (t(!0), s(D, null, J(e.options, (y) => (t(), x(a(ze), {
577
+ (t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(ze), {
578
578
  key: `${typeof y.value}:${y.value}`,
579
579
  value: y.value,
580
580
  label: y.label,
@@ -583,7 +583,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
583
583
  }, {
584
584
  default: w(() => [
585
585
  A(b.$slots, "option", { option: y }, () => [
586
- Y(k(y.label), 1)
586
+ J(k(y.label), 1)
587
587
  ], !0)
588
588
  ]),
589
589
  _: 2
@@ -618,11 +618,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
618
618
  "model-value": Array.isArray(e.modelValue) ? e.modelValue : [],
619
619
  disabled: e.disabled,
620
620
  "aria-label": e.ariaLabel || e.placeholder,
621
- "onUpdate:modelValue": u,
621
+ "onUpdate:modelValue": c,
622
622
  onFocusout: p
623
623
  }, {
624
624
  default: w(() => [
625
- (t(!0), s(D, null, J(e.options, (y) => (t(), x(a(st), {
625
+ (t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(st), {
626
626
  key: `${typeof y.value}:${y.value}`,
627
627
  value: y.value,
628
628
  disabled: y.disabled,
@@ -630,7 +630,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
630
630
  }, {
631
631
  default: w(() => [
632
632
  A(b.$slots, "option", { option: y }, () => [
633
- Y(k(y.label), 1)
633
+ J(k(y.label), 1)
634
634
  ], !0)
635
635
  ]),
636
636
  _: 2
@@ -657,11 +657,11 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
657
657
  "model-value": Array.isArray(e.modelValue) ? void 0 : e.modelValue ?? void 0,
658
658
  disabled: e.disabled,
659
659
  "aria-label": e.ariaLabel || e.placeholder,
660
- "onUpdate:modelValue": u,
660
+ "onUpdate:modelValue": c,
661
661
  onFocusout: p
662
662
  }, {
663
663
  default: w(() => [
664
- (t(!0), s(D, null, J(e.options, (y) => (t(), x(a(zt), {
664
+ (t(!0), s(D, null, Z(e.options, (y) => (t(), x(a(zt), {
665
665
  key: `${typeof y.value}:${y.value}`,
666
666
  value: y.value,
667
667
  disabled: y.disabled,
@@ -670,7 +670,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
670
670
  }, {
671
671
  default: w(() => [
672
672
  A(b.$slots, "option", { option: y }, () => [
673
- Y(k(y.label), 1)
673
+ J(k(y.label), 1)
674
674
  ], !0)
675
675
  ]),
676
676
  _: 2
@@ -679,7 +679,7 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
679
679
  _: 3
680
680
  }, 8, ["model-value", "disabled", "aria-label"]));
681
681
  }
682
- }), sa = /* @__PURE__ */ Z(la, [["__scopeId", "data-v-d18fb571"]]), na = { class: "emt-colmenu__list" }, ia = ["data-testid"], ra = ["data-testid"], da = ["data-testid"], ua = ["data-testid"], ca = ["data-testid"], ma = ["disabled", "data-testid"], va = { class: "emt-colmenu__section" }, fa = ["data-testid", "onClick"], ha = /* @__PURE__ */ F({
682
+ }), na = /* @__PURE__ */ Y(sa, [["__scopeId", "data-v-d18fb571"]]), ia = { class: "emt-colmenu__list" }, ra = ["data-testid"], da = ["data-testid"], ua = ["data-testid"], ca = ["data-testid"], ma = ["data-testid"], va = ["disabled", "data-testid"], fa = { class: "emt-colmenu__section" }, ha = ["data-testid", "onClick"], pa = /* @__PURE__ */ F({
683
683
  __name: "EmooColumnMenu",
684
684
  props: {
685
685
  colKey: {},
@@ -700,9 +700,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
700
700
  "popper-class": "emt-colmenu"
701
701
  }, {
702
702
  dropdown: w(() => [
703
- m("div", na, [
703
+ u("div", ia, [
704
704
  e.sortable ? (t(), s(D, { key: 0 }, [
705
- m("button", {
705
+ u("button", {
706
706
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
707
707
  type: "button",
708
708
  "data-testid": `emcm-sort-asc-${e.colKey}`,
@@ -713,9 +713,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
713
713
  weight: "bold",
714
714
  "aria-hidden": "true"
715
715
  }),
716
- Y(k(a(l)("common.emooTable.sortAsc")), 1)
717
- ], 10, ia),
718
- m("button", {
716
+ J(k(a(l)("common.emooTable.sortAsc")), 1)
717
+ ], 10, ra),
718
+ u("button", {
719
719
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
720
720
  type: "button",
721
721
  "data-testid": `emcm-sort-desc-${e.colKey}`,
@@ -726,9 +726,9 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
726
726
  weight: "bold",
727
727
  "aria-hidden": "true"
728
728
  }),
729
- Y(k(a(l)("common.emooTable.sortDesc")), 1)
730
- ], 10, ra),
731
- i[7] || (i[7] = m("div", { class: "emt-colmenu__divider" }, null, -1))
729
+ J(k(a(l)("common.emooTable.sortDesc")), 1)
730
+ ], 10, da),
731
+ i[7] || (i[7] = u("div", { class: "emt-colmenu__divider" }, null, -1))
732
732
  ], 64)) : S("", !0),
733
733
  e.pinsEnabled ? (t(), s(D, { key: 1 }, [
734
734
  e.fixed ? (t(), s("button", {
@@ -738,41 +738,41 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
738
738
  "data-testid": `emcm-unpin-${e.colKey}`,
739
739
  onClick: i[2] || (i[2] = (p) => o("unpin"))
740
740
  }, [
741
- P(a(vo), {
741
+ P(a(fo), {
742
742
  size: 14,
743
743
  "aria-hidden": "true"
744
744
  }),
745
- Y(k(a(l)("common.emooTable.unpin")), 1)
746
- ], 8, da)) : (t(), s(D, { key: 1 }, [
747
- m("button", {
745
+ J(k(a(l)("common.emooTable.unpin")), 1)
746
+ ], 8, ua)) : (t(), s(D, { key: 1 }, [
747
+ u("button", {
748
748
  class: "emt-colmenu__item",
749
749
  type: "button",
750
750
  "data-testid": `emcm-pin-left-${e.colKey}`,
751
751
  onClick: i[3] || (i[3] = (p) => o("pin", "left"))
752
752
  }, [
753
- P(a(fo), {
753
+ P(a(ho), {
754
754
  size: 14,
755
755
  "aria-hidden": "true"
756
756
  }),
757
- Y(k(a(l)("common.emooTable.pinLeftThrough")), 1)
758
- ], 8, ua),
759
- m("button", {
757
+ J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
758
+ ], 8, ca),
759
+ u("button", {
760
760
  class: "emt-colmenu__item",
761
761
  type: "button",
762
762
  "data-testid": `emcm-pin-right-${e.colKey}`,
763
763
  onClick: i[4] || (i[4] = (p) => o("pin", "right"))
764
764
  }, [
765
- P(a(ho), {
765
+ P(a(po), {
766
766
  size: 14,
767
767
  "aria-hidden": "true"
768
768
  }),
769
- Y(k(a(l)("common.emooTable.pinRightFrom")), 1)
770
- ], 8, ca)
769
+ J(k(a(l)("common.emooTable.pinRightFrom")), 1)
770
+ ], 8, ma)
771
771
  ], 64)),
772
- i[8] || (i[8] = m("div", { class: "emt-colmenu__divider" }, null, -1))
772
+ i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
773
773
  ], 64)) : S("", !0),
774
774
  A(r.$slots, "extra"),
775
- m("button", {
775
+ u("button", {
776
776
  class: "emt-colmenu__item",
777
777
  type: "button",
778
778
  disabled: !e.canHide,
@@ -783,38 +783,38 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
783
783
  size: 14,
784
784
  "aria-hidden": "true"
785
785
  }),
786
- Y(k(a(l)("common.emooTable.hideColumn")), 1)
787
- ], 8, ma),
786
+ J(k(a(l)("common.emooTable.hideColumn")), 1)
787
+ ], 8, va),
788
788
  e.hidden.length ? (t(), s(D, { key: 2 }, [
789
- i[9] || (i[9] = m("div", { class: "emt-colmenu__divider" }, null, -1)),
790
- m("div", va, k(a(l)("common.emooTable.hiddenColumns")), 1),
791
- (t(!0), s(D, null, J(e.hidden, (p) => (t(), s("button", {
789
+ i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
790
+ u("div", fa, k(a(l)("common.emooTable.hiddenColumns")), 1),
791
+ (t(!0), s(D, null, Z(e.hidden, (p) => (t(), s("button", {
792
792
  key: p.key,
793
793
  class: "emt-colmenu__item",
794
794
  type: "button",
795
795
  "data-testid": `emcm-restore-${p.key}`,
796
796
  onClick: le((v) => o("restore", p.key), ["stop"])
797
797
  }, [
798
- P(a(po), {
798
+ P(a(yo), {
799
799
  size: 14,
800
800
  "aria-hidden": "true"
801
801
  }),
802
- Y(k(p.label), 1)
803
- ], 8, fa))), 128))
802
+ J(k(p.label), 1)
803
+ ], 8, ha))), 128))
804
804
  ], 64)) : S("", !0),
805
805
  e.resettable ? (t(), s(D, { key: 3 }, [
806
- i[10] || (i[10] = m("div", { class: "emt-colmenu__divider" }, null, -1)),
807
- m("button", {
806
+ i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
807
+ u("button", {
808
808
  class: "emt-colmenu__item",
809
809
  type: "button",
810
810
  "data-testid": "emt-reset-prefs",
811
811
  onClick: i[6] || (i[6] = le((p) => o("reset"), ["stop"]))
812
812
  }, [
813
- P(a(Bt), {
813
+ P(a(Mt), {
814
814
  size: 14,
815
815
  "aria-hidden": "true"
816
816
  }),
817
- Y(k(a(l)("common.emooTable.resetPrefs")), 1)
817
+ J(k(a(l)("common.emooTable.resetPrefs")), 1)
818
818
  ])
819
819
  ], 64)) : S("", !0)
820
820
  ])
@@ -825,62 +825,62 @@ const Uo = { class: "emoo-asel__opt" }, Ho = { class: "emoo-asel__avatar" }, Ko
825
825
  _: 3
826
826
  }));
827
827
  }
828
- }), Ye = {
828
+ }), Je = {
829
829
  DRAWER_WIDTHS: "emoo-drawer-widths",
830
830
  DRAWER_HEIGHTS: "emoo-drawer-heights"
831
- }, pa = 360, Lt = 0.98;
831
+ }, ya = 360, Lt = 0.98;
832
832
  function Ot() {
833
833
  try {
834
- const e = localStorage.getItem(Ye.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
834
+ const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
835
835
  return typeof n == "object" && n !== null ? n : {};
836
836
  } catch {
837
837
  return {};
838
838
  }
839
839
  }
840
- function ya(e, n) {
840
+ function ba(e, n) {
841
841
  const o = Ot()[e];
842
- return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, pa), window.innerWidth * Lt))}px`;
842
+ return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ya), window.innerWidth * Lt))}px`;
843
843
  }
844
- function ba(e, n) {
844
+ function ga(e, n) {
845
845
  try {
846
846
  const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
847
847
  localStorage.setItem(
848
- Ye.DRAWER_WIDTHS,
848
+ Je.DRAWER_WIDTHS,
849
849
  JSON.stringify({ ...Ot(), [e]: o })
850
850
  );
851
851
  } catch {
852
852
  }
853
853
  }
854
- const Ut = [0.6, 0.85, 1], ga = 0.08, ka = 250;
854
+ const Ut = [0.6, 0.85, 1], ka = 0.08, $a = 250;
855
855
  function Ht() {
856
856
  try {
857
- const e = localStorage.getItem(Ye.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
857
+ const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
858
858
  return typeof n == "object" && n !== null ? n : {};
859
859
  } catch {
860
860
  return {};
861
861
  }
862
862
  }
863
- function $a(e, n) {
863
+ function _a(e, n) {
864
864
  try {
865
865
  localStorage.setItem(
866
- Ye.DRAWER_HEIGHTS,
866
+ Je.DRAWER_HEIGHTS,
867
867
  JSON.stringify({ ...Ht(), [e]: n })
868
868
  );
869
869
  } catch {
870
870
  }
871
871
  }
872
- function _a(e) {
872
+ function wa(e) {
873
873
  return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
874
874
  }
875
- function wa(e, n) {
875
+ function Sa(e, n) {
876
876
  const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p = V(() => i.value === null ? `${Math.round(r.value * 100)}%` : `${i.value}px`), v = U(!1), g = U(!1);
877
- let u = 0, b = 0, _ = !1, y;
877
+ let c = 0, b = 0, _ = !1, y;
878
878
  function R() {
879
879
  y !== void 0 && clearTimeout(y), y = void 0, g.value = !1, i.value = null;
880
880
  }
881
881
  function E(z) {
882
882
  _ = !0;
883
- const j = b + (u - z.clientY);
883
+ const j = b + (c - z.clientY);
884
884
  i.value = Math.round(Math.min(Math.max(j, Ut[0] * window.innerHeight), window.innerHeight));
885
885
  }
886
886
  function $() {
@@ -888,26 +888,26 @@ function wa(e, n) {
888
888
  i.value = null;
889
889
  return;
890
890
  }
891
- const z = i.value / window.innerHeight, j = _a(z), X = Math.abs(j - z) <= ga;
892
- if (r.value = X ? j : Math.round(z * 100) / 100, $a(e, r.value), !X) {
891
+ const z = i.value / window.innerHeight, j = wa(z), X = Math.abs(j - z) <= ka;
892
+ if (r.value = X ? j : Math.round(z * 100) / 100, _a(e, r.value), !X) {
893
893
  i.value = null;
894
894
  return;
895
895
  }
896
896
  g.value = !0, requestAnimationFrame(() => {
897
- i.value = Math.round(j * window.innerHeight), y = setTimeout(R, ka);
897
+ i.value = Math.round(j * window.innerHeight), y = setTimeout(R, $a);
898
898
  });
899
899
  }
900
900
  function I(z) {
901
- z.button !== void 0 && z.button !== 0 || (R(), v.value = !0, _ = !1, u = z.clientY, b = r.value * window.innerHeight, i.value = Math.round(b), window.addEventListener("pointermove", E), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
901
+ z.button !== void 0 && z.button !== 0 || (R(), v.value = !0, _ = !1, c = z.clientY, b = r.value * window.innerHeight, i.value = Math.round(b), window.addEventListener("pointermove", E), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
902
902
  }
903
903
  return Ct(() => {
904
904
  window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
905
905
  }), { size: p, dragging: v, animating: g, onDragStart: I };
906
906
  }
907
- const Sa = {
907
+ const Ca = {
908
908
  key: 0,
909
909
  class: "emoo-drawer__sheet"
910
- }, Ca = { class: "emoo-drawer__sheet-content" }, Dn = /* @__PURE__ */ F({
910
+ }, Ea = { class: "emoo-drawer__sheet-content" }, On = /* @__PURE__ */ F({
911
911
  inheritAttrs: !1,
912
912
  __name: "EmooDrawer",
913
913
  props: {
@@ -925,12 +925,12 @@ const Sa = {
925
925
  const o = e, l = n, r = V({
926
926
  get: () => o.modelValue,
927
927
  set: (y) => l("update:modelValue", y)
928
- }), i = V(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: u } = wa(
928
+ }), i = V(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Sa(
929
929
  o.scene ?? "__emoo-no-scene__",
930
930
  o.mobileRatio
931
- ), b = V(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ya(o.scene, o.size) : o.size);
931
+ ), b = V(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ba(o.scene, o.size) : o.size);
932
932
  function _(y, R) {
933
- o.scene && ba(o.scene, R), l("resize-end", y, R);
933
+ o.scene && ga(o.scene, R), l("resize-end", y, R);
934
934
  }
935
935
  return (y, R) => (t(), x(a(Tt), Xe(y.$attrs, {
936
936
  modelValue: r.value,
@@ -946,12 +946,12 @@ const Sa = {
946
946
  onResizeEnd: _
947
947
  }), Se({
948
948
  default: w(() => [
949
- i.value ? (t(), s("div", Sa, [
949
+ i.value ? (t(), s("div", Ca, [
950
950
  P(At, {
951
951
  dragging: a(v),
952
- onDragstart: a(u)
952
+ onDragstart: a(c)
953
953
  }, null, 8, ["dragging", "onDragstart"]),
954
- m("div", Ca, [
954
+ u("div", Ea, [
955
955
  A(y.$slots, "default")
956
956
  ])
957
957
  ])) : A(y.$slots, "default", {}, void 0, void 0, 1)
@@ -974,20 +974,20 @@ const Sa = {
974
974
  } : void 0
975
975
  ]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
976
976
  }
977
- }), Ea = {
977
+ }), Ta = {
978
978
  key: 0,
979
979
  class: "emoo-empty__stage",
980
980
  "aria-hidden": "true"
981
- }, Ta = {
981
+ }, xa = {
982
982
  key: 1,
983
983
  class: "emoo-empty__title"
984
- }, xa = {
984
+ }, Ia = {
985
985
  key: 2,
986
986
  class: "emoo-empty__desc"
987
- }, Ia = {
987
+ }, za = {
988
988
  key: 3,
989
989
  class: "emoo-empty__actions"
990
- }, za = /* @__PURE__ */ F({
990
+ }, Ra = /* @__PURE__ */ F({
991
991
  __name: "EmooEmpty",
992
992
  props: {
993
993
  variant: { default: "stage" },
@@ -1003,20 +1003,20 @@ const Sa = {
1003
1003
  "data-testid": "emoo-empty"
1004
1004
  }, [
1005
1005
  e.variant === "stage" ? (t(), s(D, { key: 0 }, [
1006
- e.icon ? (t(), s("span", Ea, [
1006
+ e.icon ? (t(), s("span", Ta, [
1007
1007
  (t(), x(Ie(e.icon), { weight: "duotone" }))
1008
1008
  ])) : S("", !0),
1009
- e.title ? (t(), s("p", Ta, k(e.title), 1)) : S("", !0),
1010
- e.description ? (t(), s("p", xa, k(e.description), 1)) : S("", !0),
1011
- n.$slots.actions ? (t(), s("div", Ia, [
1009
+ e.title ? (t(), s("p", xa, k(e.title), 1)) : S("", !0),
1010
+ e.description ? (t(), s("p", Ia, k(e.description), 1)) : S("", !0),
1011
+ n.$slots.actions ? (t(), s("div", za, [
1012
1012
  A(n.$slots, "actions", {}, void 0, !0)
1013
1013
  ])) : S("", !0)
1014
1014
  ], 64)) : (t(), s(D, { key: 1 }, [
1015
- Y(k(e.title), 1)
1015
+ J(k(e.title), 1)
1016
1016
  ], 64))
1017
1017
  ], 2));
1018
1018
  }
1019
- }), Ra = /* @__PURE__ */ Z(za, [["__scopeId", "data-v-e50a5864"]]), Va = ["id", "for"], Ba = { class: "emoo-field__body" }, Ma = ["data-testid"], Da = ["id"], Pa = ["id", "data-testid"], Aa = /* @__PURE__ */ F({
1019
+ }), Va = /* @__PURE__ */ Y(Ra, [["__scopeId", "data-v-e50a5864"]]), Ma = ["id", "for"], Ba = { class: "emoo-field__body" }, Da = ["data-testid"], Pa = ["id"], Aa = ["id", "data-testid"], La = /* @__PURE__ */ F({
1020
1020
  __name: "EmooField",
1021
1021
  props: {
1022
1022
  id: {},
@@ -1037,7 +1037,7 @@ const Sa = {
1037
1037
  if (!(n.span === 1 || n.span === void 0))
1038
1038
  return n.span === "full" ? "is-span-full" : `is-span-${Math.min(4, Math.max(1, n.span))}`;
1039
1039
  });
1040
- return (g, u) => e.mode !== "hidden" ? (t(), s("div", {
1040
+ return (g, c) => e.mode !== "hidden" ? (t(), s("div", {
1041
1041
  key: 0,
1042
1042
  class: W(["emoo-field", [`is-${e.mode}`, v.value, { "is-required": e.required && e.mode === "edit" }]])
1043
1043
  }, [
@@ -1048,19 +1048,19 @@ const Sa = {
1048
1048
  class: W(["emoo-field__label", { "is-danger": e.labelTone === "danger" }])
1049
1049
  }, [
1050
1050
  A(g.$slots, "label", {}, () => [
1051
- Y(k(e.label), 1)
1051
+ J(k(e.label), 1)
1052
1052
  ], !0)
1053
- ], 10, Va)) : S("", !0),
1054
- m("div", Ba, [
1053
+ ], 10, Ma)) : S("", !0),
1054
+ u("div", Ba, [
1055
1055
  e.mode === "view" ? (t(), s("div", {
1056
1056
  key: 0,
1057
1057
  class: "emoo-field__value",
1058
1058
  "data-testid": e.testid ? `${e.testid}-value` : void 0
1059
1059
  }, [
1060
1060
  A(g.$slots, "view", {}, () => [
1061
- Y(k(e.text), 1)
1061
+ J(k(e.text), 1)
1062
1062
  ], !0)
1063
- ], 8, Ma)) : A(g.$slots, "default", {
1063
+ ], 8, Da)) : A(g.$slots, "default", {
1064
1064
  id: o.value || void 0,
1065
1065
  describedBy: p.value,
1066
1066
  invalid: !!e.error,
@@ -1070,18 +1070,18 @@ const Sa = {
1070
1070
  key: 2,
1071
1071
  id: r.value,
1072
1072
  class: "emoo-field__help"
1073
- }, k(e.help), 9, Da)) : S("", !0),
1073
+ }, k(e.help), 9, Pa)) : S("", !0),
1074
1074
  e.error && e.mode === "edit" ? (t(), s("p", {
1075
1075
  key: 3,
1076
1076
  id: i.value,
1077
1077
  class: "emoo-field__error",
1078
1078
  role: "alert",
1079
1079
  "data-testid": e.testid ? `${e.testid}-error` : void 0
1080
- }, k(e.error), 9, Pa)) : S("", !0)
1080
+ }, k(e.error), 9, Aa)) : S("", !0)
1081
1081
  ])
1082
1082
  ], 2)) : S("", !0);
1083
1083
  }
1084
- }), Pn = /* @__PURE__ */ Z(Aa, [["__scopeId", "data-v-1b6ea0e7"]]), La = ["aria-label"], Oa = /* @__PURE__ */ F({
1084
+ }), Un = /* @__PURE__ */ Y(La, [["__scopeId", "data-v-1b6ea0e7"]]), Oa = ["aria-label"], Ua = /* @__PURE__ */ F({
1085
1085
  __name: "EmooFieldGrid",
1086
1086
  props: {
1087
1087
  ariaLabel: {},
@@ -1094,9 +1094,9 @@ const Sa = {
1094
1094
  "aria-label": e.ariaLabel
1095
1095
  }, [
1096
1096
  A(n.$slots, "default", {}, void 0, !0)
1097
- ], 10, La));
1097
+ ], 10, Oa));
1098
1098
  }
1099
- }), An = /* @__PURE__ */ Z(Oa, [["__scopeId", "data-v-12f1e7e0"]]), Ua = /* @__PURE__ */ F({
1099
+ }), Hn = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-12f1e7e0"]]), Ha = /* @__PURE__ */ F({
1100
1100
  __name: "EmooGhostButton",
1101
1101
  props: {
1102
1102
  pill: { type: Boolean },
@@ -1110,7 +1110,7 @@ const Sa = {
1110
1110
  A(n.$slots, "default", {}, void 0, !0)
1111
1111
  ], 2));
1112
1112
  }
1113
- }), Ln = /* @__PURE__ */ Z(Ua, [["__scopeId", "data-v-d0346949"]]), Ha = /* @__PURE__ */ F({
1113
+ }), Kn = /* @__PURE__ */ Y(Ha, [["__scopeId", "data-v-d0346949"]]), Ka = /* @__PURE__ */ F({
1114
1114
  __name: "EmooGroupLabel",
1115
1115
  props: {
1116
1116
  title: {},
@@ -1121,13 +1121,13 @@ const Sa = {
1121
1121
  return (o, l) => (t(), s("p", {
1122
1122
  class: W(["emoo-group-label", { "is-first": e.first }])
1123
1123
  }, [
1124
- m("span", null, k(a(n)(e.title)), 1)
1124
+ u("span", null, k(a(n)(e.title)), 1)
1125
1125
  ], 2));
1126
1126
  }
1127
- }), On = /* @__PURE__ */ Z(Ha, [["__scopeId", "data-v-0135d501"]]), Ka = { class: "emoo-skel__lines" }, Wa = { class: "emoo-skel__head" }, Na = {
1127
+ }), Wn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-0135d501"]]), Wa = { class: "emoo-skel__lines" }, Na = { class: "emoo-skel__head" }, Fa = {
1128
1128
  key: 4,
1129
1129
  class: "emoo-skel__pill-row"
1130
- }, Fa = { class: "emoo-skel__detail" }, qa = { class: "emoo-skel__lines" }, ja = /* @__PURE__ */ F({
1130
+ }, qa = { class: "emoo-skel__detail" }, ja = { class: "emoo-skel__lines" }, Ga = /* @__PURE__ */ F({
1131
1131
  __name: "EmooSkeleton",
1132
1132
  props: {
1133
1133
  variant: { default: "lines" },
@@ -1144,53 +1144,53 @@ const Sa = {
1144
1144
  class: W(["emoo-skel", `is-${e.variant}`]),
1145
1145
  "aria-hidden": "true"
1146
1146
  }, [
1147
- e.variant === "lines" ? (t(!0), s(D, { key: 0 }, J(e.lines, (l) => (t(), s("span", {
1147
+ e.variant === "lines" ? (t(!0), s(D, { key: 0 }, Z(e.lines, (l) => (t(), s("span", {
1148
1148
  key: l,
1149
1149
  class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
1150
- }, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(D, { key: 1 }, J(e.rows, (l) => (t(), s("div", {
1150
+ }, null, 2))), 128)) : e.variant === "list" ? (t(!0), s(D, { key: 1 }, Z(e.rows, (l) => (t(), s("div", {
1151
1151
  key: l,
1152
1152
  class: "emoo-skel__item"
1153
1153
  }, [
1154
- o[0] || (o[0] = m("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
1155
- m("span", Ka, [
1156
- m("span", {
1154
+ o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
1155
+ u("span", Wa, [
1156
+ u("span", {
1157
1157
  class: "emoo-skel__bone emoo-skel__line",
1158
1158
  style: pe({ width: `${52 - l * 8}%` })
1159
1159
  }, null, 4),
1160
- m("span", {
1160
+ u("span", {
1161
1161
  class: "emoo-skel__bone emoo-skel__line is-thin",
1162
1162
  style: pe({ width: `${78 - l * 10}%` })
1163
1163
  }, null, 4)
1164
1164
  ])
1165
1165
  ]))), 128)) : e.variant === "table" ? (t(), s(D, { key: 2 }, [
1166
- m("span", Wa, [
1167
- (t(), s(D, null, J(["18%", "26%", "14%", "22%"], (l, r) => m("span", {
1166
+ u("span", Na, [
1167
+ (t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
1168
1168
  key: r,
1169
1169
  class: "emoo-skel__bone emoo-skel__cell",
1170
1170
  style: pe({ width: l })
1171
1171
  }, null, 4)), 64))
1172
1172
  ]),
1173
- (t(!0), s(D, null, J(e.rows, (l) => (t(), s("span", {
1173
+ (t(!0), s(D, null, Z(e.rows, (l) => (t(), s("span", {
1174
1174
  key: l,
1175
1175
  class: "emoo-skel__row"
1176
1176
  }, [
1177
- (t(), s(D, null, J(["18%", "26%", "14%", "22%"], (r, i) => m("span", {
1177
+ (t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (r, i) => u("span", {
1178
1178
  key: i,
1179
1179
  class: "emoo-skel__bone emoo-skel__cell",
1180
1180
  style: pe({ width: r })
1181
1181
  }, null, 4)), 64))
1182
1182
  ]))), 128))
1183
- ], 64)) : e.variant === "tiles" ? (t(!0), s(D, { key: 3 }, J(e.tiles, (l) => (t(), s("div", {
1183
+ ], 64)) : e.variant === "tiles" ? (t(!0), s(D, { key: 3 }, Z(e.tiles, (l) => (t(), s("div", {
1184
1184
  key: l,
1185
1185
  class: "emoo-skel__tile"
1186
1186
  }, [...o[1] || (o[1] = [
1187
- m("span", {
1187
+ u("span", {
1188
1188
  class: "emoo-skel__bone emoo-skel__line is-thin",
1189
1189
  style: { width: "56%" }
1190
1190
  }, null, -1),
1191
- m("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
1192
- ])]))), 128)) : e.variant === "pills" ? (t(), s("div", Na, [
1193
- (t(!0), s(D, null, J(e.pills, (l) => (t(), s("span", {
1191
+ u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
1192
+ ])]))), 128)) : e.variant === "pills" ? (t(), s("div", Fa, [
1193
+ (t(!0), s(D, null, Z(e.pills, (l) => (t(), s("span", {
1194
1194
  key: l,
1195
1195
  class: "emoo-skel__bone emoo-skel__pill"
1196
1196
  }))), 128))
@@ -1199,34 +1199,34 @@ const Sa = {
1199
1199
  class: "emoo-skel__grid",
1200
1200
  style: pe({ gridTemplateColumns: `repeat(${e.cols}, 1fr)` })
1201
1201
  }, [
1202
- (t(!0), s(D, null, J(e.cells, (l) => (t(), s("div", {
1202
+ (t(!0), s(D, null, Z(e.cells, (l) => (t(), s("div", {
1203
1203
  key: l,
1204
1204
  class: "emoo-skel__cell"
1205
1205
  }, [...o[2] || (o[2] = [
1206
- m("span", { class: "emoo-skel__bone emoo-skel__cell-icon" }, null, -1),
1207
- m("span", { class: "emoo-skel__bone emoo-skel__cell-label" }, null, -1)
1206
+ u("span", { class: "emoo-skel__bone emoo-skel__cell-icon" }, null, -1),
1207
+ u("span", { class: "emoo-skel__bone emoo-skel__cell-label" }, null, -1)
1208
1208
  ])]))), 128))
1209
1209
  ], 4)) : e.variant === "chart" ? (t(), s(D, { key: 6 }, [
1210
- o[3] || (o[3] = m("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1211
- m("span", {
1210
+ o[3] || (o[3] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1211
+ u("span", {
1212
1212
  class: "emoo-skel__bone emoo-skel__chart",
1213
1213
  style: pe({ height: `${e.height}px` })
1214
1214
  }, null, 4)
1215
1215
  ], 64)) : (t(), s(D, { key: 7 }, [
1216
- o[5] || (o[5] = m("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1217
- m("span", Fa, [
1218
- m("span", qa, [
1219
- (t(!0), s(D, null, J(e.lines, (l) => (t(), s("span", {
1216
+ o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1217
+ u("span", qa, [
1218
+ u("span", ja, [
1219
+ (t(!0), s(D, null, Z(e.lines, (l) => (t(), s("span", {
1220
1220
  key: l,
1221
1221
  class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
1222
1222
  }, null, 2))), 128))
1223
1223
  ]),
1224
- o[4] || (o[4] = m("span", { class: "emoo-skel__bone emoo-skel__media" }, null, -1))
1224
+ o[4] || (o[4] = u("span", { class: "emoo-skel__bone emoo-skel__media" }, null, -1))
1225
1225
  ])
1226
1226
  ], 64))
1227
1227
  ], 2));
1228
1228
  }
1229
- }), Ga = /* @__PURE__ */ Z(ja, [["__scopeId", "data-v-9e0a33de"]]), Xa = ["aria-label"], Ja = /* @__PURE__ */ F({
1229
+ }), Xa = /* @__PURE__ */ Y(Ga, [["__scopeId", "data-v-9e0a33de"]]), Za = ["aria-label"], Ja = /* @__PURE__ */ F({
1230
1230
  __name: "EmooSpinner",
1231
1231
  props: {
1232
1232
  size: { default: 20 },
@@ -1239,12 +1239,12 @@ const Sa = {
1239
1239
  role: "status",
1240
1240
  "aria-label": e.label
1241
1241
  }, [...o[0] || (o[0] = [
1242
- m("svg", {
1242
+ u("svg", {
1243
1243
  viewBox: "0 0 20 20",
1244
1244
  fill: "none",
1245
1245
  "aria-hidden": "true"
1246
1246
  }, [
1247
- m("circle", {
1247
+ u("circle", {
1248
1248
  class: "emoo-spinner__arc",
1249
1249
  cx: "10",
1250
1250
  cy: "10",
@@ -1252,22 +1252,22 @@ const Sa = {
1252
1252
  "stroke-dasharray": "37.7 12.57"
1253
1253
  })
1254
1254
  ], -1)
1255
- ])], 12, Xa));
1255
+ ])], 12, Za));
1256
1256
  }
1257
- }), Kt = /* @__PURE__ */ Z(Ja, [["__scopeId", "data-v-d168f9f3"]]), Ya = {
1257
+ }), Kt = /* @__PURE__ */ Y(Ja, [["__scopeId", "data-v-d168f9f3"]]), Ya = {
1258
1258
  class: "emoo-history-list",
1259
1259
  "data-testid": "emoo-history-list"
1260
- }, Za = {
1260
+ }, Qa = {
1261
1261
  key: 0,
1262
1262
  class: "history-float"
1263
- }, Qa = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], el = { class: "history-name" }, tl = { key: 0 }, ol = {
1263
+ }, el = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], tl = { class: "history-name" }, ol = { key: 0 }, al = {
1264
1264
  key: 1,
1265
1265
  class: "status-indicator",
1266
1266
  "data-testid": "chat-status-indicator"
1267
- }, al = {
1267
+ }, ll = {
1268
1268
  key: 1,
1269
1269
  class: "status-dot"
1270
- }, ll = /* @__PURE__ */ F({
1270
+ }, sl = /* @__PURE__ */ F({
1271
1271
  __name: "EmooHistoryList",
1272
1272
  props: {
1273
1273
  groups: {},
@@ -1285,64 +1285,64 @@ const Sa = {
1285
1285
  },
1286
1286
  emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
1287
1287
  setup(e, { expose: n, emit: o }) {
1288
- const l = e, r = o, { t: i } = me(), p = V(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = V(() => l.selectLabel ?? i("common.emooHistory.select")), g = V(() => l.emptyTitle ?? i("common.emooHistory.empty")), u = V(() => l.noMatchTitle ?? i("common.emooHistory.noMatch")), b = V(() => l.groups.some((B) => B.items.length > 0)), _ = U(!1), y = U(!1), R = U(null), E = async () => {
1288
+ const l = e, r = o, { t: i } = me(), p = V(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = V(() => l.selectLabel ?? i("common.emooHistory.select")), g = V(() => l.emptyTitle ?? i("common.emooHistory.empty")), c = V(() => l.noMatchTitle ?? i("common.emooHistory.noMatch")), b = V(() => l.groups.some((M) => M.items.length > 0)), _ = U(!1), y = U(!1), R = U(null), E = async () => {
1289
1289
  _.value = !0, await ke(), R.value?.focus();
1290
1290
  }, $ = () => {
1291
1291
  !l.keyword && !y.value && (_.value = !1);
1292
1292
  }, I = () => {
1293
1293
  y.value = !1, $();
1294
- }, z = U(null), j = U(null), X = V(() => l.groups.flatMap((B) => B.items)), ie = (B) => B.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (B) => {
1295
- B !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${B}"]`)?.focus();
1296
- }, d = () => ee(X.value[0]?.id), T = (B, O) => {
1297
- if (B.target !== B.currentTarget) return;
1294
+ }, z = U(null), j = U(null), X = V(() => l.groups.flatMap((M) => M.items)), ie = (M) => M.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (M) => {
1295
+ M !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${M}"]`)?.focus();
1296
+ }, d = () => ee(X.value[0]?.id), T = (M, O) => {
1297
+ if (M.target !== M.currentTarget) return;
1298
1298
  const G = X.value, oe = G.findIndex((re) => re.id === O.id);
1299
- if (B.key === "ArrowDown")
1300
- B.preventDefault(), oe < G.length - 1 && ee(G[oe + 1].id);
1301
- else if (B.key === "ArrowUp")
1302
- B.preventDefault(), oe > 0 && ee(G[oe - 1].id);
1303
- else if (B.key === "Enter")
1304
- B.preventDefault(), L(O);
1305
- else if (B.key === "Backspace" || B.key === "Delete") {
1299
+ if (M.key === "ArrowDown")
1300
+ M.preventDefault(), oe < G.length - 1 && ee(G[oe + 1].id);
1301
+ else if (M.key === "ArrowUp")
1302
+ M.preventDefault(), oe > 0 && ee(G[oe - 1].id);
1303
+ else if (M.key === "Enter")
1304
+ M.preventDefault(), L(O);
1305
+ else if (M.key === "Backspace" || M.key === "Delete") {
1306
1306
  if (se.value || H.value || !ae) return;
1307
- B.preventDefault(), r("delete", O);
1307
+ M.preventDefault(), r("delete", O);
1308
1308
  }
1309
- }, M = (B) => {
1310
- if ((B.metaKey || B.ctrlKey) && B.key.toLowerCase() === "k") {
1309
+ }, B = (M) => {
1310
+ if ((M.metaKey || M.ctrlKey) && M.key.toLowerCase() === "k") {
1311
1311
  if (!l.anyRecord) return;
1312
- B.preventDefault(), E();
1312
+ M.preventDefault(), E();
1313
1313
  }
1314
- }, se = U(null), ne = U(""), ye = U(!1), q = (B) => {
1315
- se.value = B.id, ne.value = B.title;
1314
+ }, se = U(null), ne = U(""), ye = U(!1), q = (M) => {
1315
+ se.value = M.id, ne.value = M.title;
1316
1316
  }, de = () => {
1317
1317
  se.value = null, ne.value = "";
1318
1318
  }, ce = () => {
1319
1319
  se.value !== null && r("rename", { id: se.value, title: ne.value });
1320
- }, H = U(!1), te = (B, O) => {
1320
+ }, H = U(!1), te = (M, O) => {
1321
1321
  r(
1322
1322
  "update:selectedIds",
1323
- O ? [...l.selectedIds, B] : l.selectedIds.filter((G) => G !== B)
1323
+ O ? [...l.selectedIds, M] : l.selectedIds.filter((G) => G !== M)
1324
1324
  );
1325
1325
  }, N = () => {
1326
1326
  H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
1327
1327
  }, C = () => {
1328
1328
  H.value && (H.value = !1, r("update:selectedIds", []));
1329
- }, L = (B) => {
1329
+ }, L = (M) => {
1330
1330
  if (H.value) {
1331
- te(B.id, !l.selectedIds.includes(B.id));
1331
+ te(M.id, !l.selectedIds.includes(M.id));
1332
1332
  return;
1333
1333
  }
1334
- r("select", B);
1335
- }, Q = (B) => {
1336
- const O = B.target;
1334
+ r("select", M);
1335
+ }, Q = (M) => {
1336
+ const O = M.target;
1337
1337
  O.scrollTop + O.clientHeight >= O.scrollHeight - 60 && r("load-more");
1338
1338
  }, ae = !!Et()["row-action"];
1339
- return Je(() => {
1340
- window.addEventListener("keydown", M);
1339
+ return Ze(() => {
1340
+ window.addEventListener("keydown", B);
1341
1341
  }), Ct(() => {
1342
- window.removeEventListener("keydown", M);
1343
- }), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (B, O) => (t(), s("div", Ya, [
1344
- e.anyRecord ? (t(), s("div", Za, [
1345
- m("div", {
1342
+ window.removeEventListener("keydown", B);
1343
+ }), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (M, O) => (t(), s("div", Ya, [
1344
+ e.anyRecord ? (t(), s("div", Qa, [
1345
+ u("div", {
1346
1346
  class: W(["search-area", { expanded: _.value }]),
1347
1347
  onMouseenter: O[2] || (O[2] = (G) => _.value = !0),
1348
1348
  onMouseleave: $,
@@ -1358,7 +1358,7 @@ const Sa = {
1358
1358
  "data-testid": "chat-history-search-toggle"
1359
1359
  }, {
1360
1360
  default: w(() => [
1361
- P(a(yo), { size: 14 })
1361
+ P(a(bo), { size: 14 })
1362
1362
  ]),
1363
1363
  _: 1
1364
1364
  }, 8, ["aria-label"])
@@ -1391,11 +1391,11 @@ const Sa = {
1391
1391
  onClick: N
1392
1392
  }, {
1393
1393
  default: w(() => [
1394
- Y(k(a(i)("common.emooHistory.cancel")), 1)
1394
+ J(k(a(i)("common.emooHistory.cancel")), 1)
1395
1395
  ]),
1396
1396
  _: 1
1397
1397
  }, 8, ["disabled"]),
1398
- A(B.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1398
+ A(M.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1399
1399
  ], 64)) : (t(), x(he, {
1400
1400
  key: 0,
1401
1401
  content: v.value
@@ -1411,7 +1411,7 @@ const Sa = {
1411
1411
  onClick: N
1412
1412
  }, {
1413
1413
  default: w(() => [
1414
- P(a(bo), { size: 14 })
1414
+ P(a(go), { size: 14 })
1415
1415
  ]),
1416
1416
  _: 1
1417
1417
  }, 8, ["aria-label", "disabled"])
@@ -1426,28 +1426,28 @@ const Sa = {
1426
1426
  class: "history-scroll",
1427
1427
  onScroll: Q
1428
1428
  }, [
1429
- e.loading && !b.value ? (t(), x(Ga, {
1429
+ e.loading && !b.value ? (t(), x(Xa, {
1430
1430
  key: 0,
1431
1431
  variant: "lines",
1432
1432
  lines: 4,
1433
1433
  class: "history-skel"
1434
- })) : b.value ? (t(!0), s(D, { key: 1 }, J(e.groups, (G) => (t(), s("div", {
1434
+ })) : b.value ? (t(!0), s(D, { key: 1 }, Z(e.groups, (G) => (t(), s("div", {
1435
1435
  key: G.key
1436
1436
  }, [
1437
- m("div", {
1437
+ u("div", {
1438
1438
  class: W(["group-title", { "group-title--dim": G.dim }])
1439
1439
  }, [
1440
- O[11] || (O[11] = m("span", { class: "group-dot" }, null, -1)),
1441
- Y(" " + k(a(i)(G.label)), 1)
1440
+ O[11] || (O[11] = u("span", { class: "group-dot" }, null, -1)),
1441
+ J(" " + k(a(i)(G.label)), 1)
1442
1442
  ], 2),
1443
- (t(!0), s(D, null, J(G.items, (oe) => (t(), x(he, {
1443
+ (t(!0), s(D, null, Z(G.items, (oe) => (t(), x(he, {
1444
1444
  key: oe.id,
1445
1445
  content: oe.tooltip,
1446
1446
  disabled: !oe.tooltip,
1447
1447
  placement: "right"
1448
1448
  }, {
1449
1449
  default: w(() => [
1450
- m("div", {
1450
+ u("div", {
1451
1451
  class: W(["history-item", { active: oe.id === e.activeId }]),
1452
1452
  "data-item-id": oe.id,
1453
1453
  tabindex: ie(oe),
@@ -1464,8 +1464,8 @@ const Sa = {
1464
1464
  }, ["stop"])),
1465
1465
  "onUpdate:modelValue": (re) => te(oe.id, !!re)
1466
1466
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
1467
- m("span", el, [
1468
- se.value !== oe.id ? (t(), s("span", tl, k(oe.title), 1)) : (t(), x(a(ot), {
1467
+ u("span", tl, [
1468
+ se.value !== oe.id ? (t(), s("span", ol, k(oe.title), 1)) : (t(), x(a(ot), {
1469
1469
  key: 1,
1470
1470
  modelValue: ne.value,
1471
1471
  "onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
@@ -1479,12 +1479,12 @@ const Sa = {
1479
1479
  onBlur: le(ce, ["stop"])
1480
1480
  }, null, 8, ["modelValue"]))
1481
1481
  ]),
1482
- se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", ol, [
1482
+ se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", al, [
1483
1483
  oe.status === "generating" ? (t(), x(Kt, {
1484
1484
  key: 0,
1485
1485
  size: 14,
1486
1486
  label: a(i)("common.loading")
1487
- }, null, 8, ["label"])) : (t(), s("span", al))
1487
+ }, null, 8, ["label"])) : (t(), s("span", ll))
1488
1488
  ])) : S("", !0),
1489
1489
  se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
1490
1490
  key: 2,
@@ -1498,9 +1498,9 @@ const Sa = {
1498
1498
  }, ["stop"]))
1499
1499
  }, {
1500
1500
  dropdown: w(() => [
1501
- P(a(ao), null, {
1501
+ P(a(lo), null, {
1502
1502
  default: w(() => [
1503
- A(B.$slots, "row-action", { item: oe }, void 0, !0)
1503
+ A(M.$slots, "row-action", { item: oe }, void 0, !0)
1504
1504
  ]),
1505
1505
  _: 2
1506
1506
  }, 1024)
@@ -1514,41 +1514,41 @@ const Sa = {
1514
1514
  }, ["stop"]))
1515
1515
  }, {
1516
1516
  default: w(() => [
1517
- P(a(Mt), { class: "ic" })
1517
+ P(a(Bt), { class: "ic" })
1518
1518
  ]),
1519
1519
  _: 1
1520
1520
  })
1521
1521
  ]),
1522
1522
  _: 2
1523
1523
  }, 1024)) : S("", !0)
1524
- ], 42, Qa)
1524
+ ], 42, el)
1525
1525
  ]),
1526
1526
  _: 2
1527
1527
  }, 1032, ["content", "disabled"]))), 128))
1528
- ]))), 128)) : (t(), x(Ra, {
1528
+ ]))), 128)) : (t(), x(Va, {
1529
1529
  key: 2,
1530
1530
  variant: "mini",
1531
- title: e.keyword.trim() ? u.value : g.value
1531
+ title: e.keyword.trim() ? c.value : g.value
1532
1532
  }, null, 8, ["title"]))
1533
1533
  ], 32)), [
1534
- [a(lo), e.loading && b.value]
1534
+ [a(so), e.loading && b.value]
1535
1535
  ])
1536
1536
  ]));
1537
1537
  }
1538
- }), Un = /* @__PURE__ */ Z(ll, [["__scopeId", "data-v-862f7ee9"]]), sl = {
1538
+ }), Nn = /* @__PURE__ */ Y(sl, [["__scopeId", "data-v-862f7ee9"]]), nl = {
1539
1539
  class: "emoo-mrsel__tabs",
1540
1540
  role: "tablist"
1541
- }, nl = ["aria-selected", "onClick"], il = { class: "emoo-mrsel__count" }, rl = {
1541
+ }, il = ["aria-selected", "onClick"], rl = { class: "emoo-mrsel__count" }, dl = {
1542
1542
  class: "emoo-sel-remote-error",
1543
1543
  role: "alert",
1544
1544
  "data-testid": "remote-error"
1545
- }, dl = { class: "emoo-mrsel__opt" }, ul = ["src"], cl = { class: "emoo-mrsel__name" }, ml = {
1545
+ }, ul = { class: "emoo-mrsel__opt" }, cl = ["src"], ml = { class: "emoo-mrsel__name" }, vl = {
1546
1546
  key: 0,
1547
1547
  class: "emoo-mrsel__dept"
1548
- }, vl = { class: "emoo-mrsel__opt" }, fl = ["src"], hl = { class: "emoo-mrsel__col" }, pl = { class: "emoo-mrsel__name" }, yl = {
1548
+ }, fl = { class: "emoo-mrsel__opt" }, hl = ["src"], pl = { class: "emoo-mrsel__col" }, yl = { class: "emoo-mrsel__name" }, bl = {
1549
1549
  key: 0,
1550
1550
  class: "emoo-mrsel__desc"
1551
- }, bl = /* @__PURE__ */ F({
1551
+ }, gl = /* @__PURE__ */ F({
1552
1552
  __name: "EmooMemberRoleSelect",
1553
1553
  props: {
1554
1554
  modelValue: {},
@@ -1566,13 +1566,13 @@ const Sa = {
1566
1566
  const o = e, l = n, { t: r } = me(), i = U("member"), p = V(() => o.modelValue?.memberIds ?? []), v = V(() => o.modelValue?.roleIds ?? []), g = V(() => [
1567
1567
  { key: "member", label: r("common.emooSelect.memberTab"), count: p.value.length },
1568
1568
  { key: "role", label: r("common.emooSelect.roleTab"), count: v.value.length }
1569
- ]), u = V(() => o.memberSource !== void 0 || o.roleSource !== void 0), b = Be(() => o.memberSource, "emoo-mrsel-popper"), _ = Be(() => o.roleSource, "emoo-mrsel-popper"), y = (H) => H === "member" ? b : _, R = V(() => `${b.popperClass} ${_.popperClass}`), E = V(() => i.value === "member" ? p.value : v.value), $ = Me(
1569
+ ]), c = V(() => o.memberSource !== void 0 || o.roleSource !== void 0), b = Me(() => o.memberSource, "emoo-mrsel-popper"), _ = Me(() => o.roleSource, "emoo-mrsel-popper"), y = (H) => H === "member" ? b : _, R = V(() => `${b.popperClass} ${_.popperClass}`), E = V(() => i.value === "member" ? p.value : v.value), $ = Be(
1570
1570
  () => p.value,
1571
- () => u.value ? b.items.value : o.members ?? [],
1571
+ () => c.value ? b.items.value : o.members ?? [],
1572
1572
  () => o.selectedMembers ?? []
1573
- ), I = Me(
1573
+ ), I = Be(
1574
1574
  () => v.value,
1575
- () => u.value ? _.items.value : o.roles ?? [],
1575
+ () => c.value ? _.items.value : o.roles ?? [],
1576
1576
  () => o.selectedRoles ?? []
1577
1577
  ), z = $.mergedOptions, j = I.mergedOptions, X = V(() => [
1578
1578
  ...$.selectedOptions.value,
@@ -1582,11 +1582,11 @@ const Sa = {
1582
1582
  b.onVisibleChange(!1), _.onVisibleChange(!1);
1583
1583
  return;
1584
1584
  }
1585
- u.value && y(i.value).onVisibleChange(!0);
1586
- }, M = (H) => {
1587
- u.value && y(i.value).search(H);
1588
- }, se = V(() => u.value ? y(i.value).loading.value : !1), ne = V(() => u.value ? y(i.value).error.value : null), ye = () => y(i.value).retry(), q = (H) => {
1589
- i.value !== H && (i.value = H, u.value && d.value && y(H).onVisibleChange(!0));
1585
+ c.value && y(i.value).onVisibleChange(!0);
1586
+ }, B = (H) => {
1587
+ c.value && y(i.value).search(H);
1588
+ }, se = V(() => c.value ? y(i.value).loading.value : !1), ne = V(() => c.value ? y(i.value).error.value : null), ye = () => y(i.value).retry(), q = (H) => {
1589
+ i.value !== H && (i.value = H, c.value && d.value && y(H).onVisibleChange(!0));
1590
1590
  }, de = (H) => {
1591
1591
  const te = Array.isArray(H) ? [...H] : H == null || H === "" ? [] : [H];
1592
1592
  i.value === "member" ? $.remember(te) : I.remember(te), l(
@@ -1610,8 +1610,8 @@ const Sa = {
1610
1610
  placeholder: e.placeholder || a(r)("common.emooSelect.memberRolePlaceholder"),
1611
1611
  filterable: "",
1612
1612
  "fit-input-width": "",
1613
- remote: u.value,
1614
- "remote-method": M,
1613
+ remote: c.value,
1614
+ "remote-method": B,
1615
1615
  loading: se.value,
1616
1616
  "popper-class": R.value,
1617
1617
  "onUpdate:modelValue": de,
@@ -1626,28 +1626,28 @@ const Sa = {
1626
1626
  }, null, 8, ["items", "max", "removable"])
1627
1627
  ]),
1628
1628
  header: w(() => [
1629
- m("div", sl, [
1630
- (t(!0), s(D, null, J(g.value, (N) => (t(), s("button", {
1629
+ u("div", nl, [
1630
+ (t(!0), s(D, null, Z(g.value, (N) => (t(), s("button", {
1631
1631
  key: N.key,
1632
1632
  type: "button",
1633
1633
  class: W(["emoo-mrsel__tab", { "is-active": i.value === N.key }]),
1634
1634
  "aria-selected": i.value === N.key,
1635
1635
  onClick: (C) => q(N.key)
1636
1636
  }, [
1637
- Y(k(N.label) + " ", 1),
1638
- m("span", il, k(N.count), 1)
1639
- ], 10, nl))), 128))
1637
+ J(k(N.label) + " ", 1),
1638
+ u("span", rl, k(N.count), 1)
1639
+ ], 10, il))), 128))
1640
1640
  ])
1641
1641
  ]),
1642
1642
  default: w(() => [
1643
- i.value === "member" ? (t(!0), s(D, { key: 0 }, J(a(z), (N) => (t(), x(a(ze), {
1643
+ i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (N) => (t(), x(a(ze), {
1644
1644
  key: N.id,
1645
1645
  label: N.name,
1646
1646
  value: N.id
1647
1647
  }, {
1648
1648
  default: w(() => [
1649
- m("span", dl, [
1650
- m("span", {
1649
+ u("span", ul, [
1650
+ u("span", {
1651
1651
  class: "emoo-mrsel__avatar",
1652
1652
  style: pe({ "--tint": N.color || "var(--el-color-primary)" })
1653
1653
  }, [
@@ -1656,23 +1656,23 @@ const Sa = {
1656
1656
  src: N.avatar,
1657
1657
  alt: "",
1658
1658
  class: "emoo-mrsel__img"
1659
- }, null, 8, ul)) : (t(), s(D, { key: 1 }, [
1660
- Y(k(N.name[0]), 1)
1659
+ }, null, 8, cl)) : (t(), s(D, { key: 1 }, [
1660
+ J(k(N.name[0]), 1)
1661
1661
  ], 64))
1662
1662
  ], 4),
1663
- m("span", cl, k(N.name), 1),
1664
- N.dept ? (t(), s("span", ml, k(N.dept), 1)) : S("", !0)
1663
+ u("span", ml, k(N.name), 1),
1664
+ N.dept ? (t(), s("span", vl, k(N.dept), 1)) : S("", !0)
1665
1665
  ])
1666
1666
  ]),
1667
1667
  _: 2
1668
- }, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, J(a(j), (N) => (t(), x(a(ze), {
1668
+ }, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (N) => (t(), x(a(ze), {
1669
1669
  key: N.id,
1670
1670
  label: N.name,
1671
1671
  value: N.id
1672
1672
  }, {
1673
1673
  default: w(() => [
1674
- m("span", vl, [
1675
- m("span", {
1674
+ u("span", fl, [
1675
+ u("span", {
1676
1676
  class: "emoo-mrsel__avatar is-square",
1677
1677
  style: pe({ "--tint": N.color || "var(--el-color-primary)" })
1678
1678
  }, [
@@ -1681,13 +1681,13 @@ const Sa = {
1681
1681
  src: N.avatar,
1682
1682
  alt: "",
1683
1683
  class: "emoo-mrsel__img"
1684
- }, null, 8, fl)) : (t(), s(D, { key: 1 }, [
1685
- Y(k(N.name[0]), 1)
1684
+ }, null, 8, hl)) : (t(), s(D, { key: 1 }, [
1685
+ J(k(N.name[0]), 1)
1686
1686
  ], 64))
1687
1687
  ], 4),
1688
- m("span", hl, [
1689
- m("span", pl, k(N.name), 1),
1690
- N.desc ? (t(), s("span", yl, k(N.desc), 1)) : S("", !0)
1688
+ u("span", pl, [
1689
+ u("span", yl, k(N.name), 1),
1690
+ N.desc ? (t(), s("span", bl, k(N.desc), 1)) : S("", !0)
1691
1691
  ])
1692
1692
  ])
1693
1693
  ]),
@@ -1699,9 +1699,9 @@ const Sa = {
1699
1699
  ne.value ? {
1700
1700
  name: "footer",
1701
1701
  fn: w(() => [
1702
- m("div", rl, [
1703
- m("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1704
- m("button", {
1702
+ u("div", dl, [
1703
+ u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1704
+ u("button", {
1705
1705
  type: "button",
1706
1706
  "data-testid": "remote-retry",
1707
1707
  onClick: te[0] || (te[0] = (N) => ye())
@@ -1712,14 +1712,14 @@ const Sa = {
1712
1712
  } : void 0
1713
1713
  ]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
1714
1714
  }
1715
- }), Hn = /* @__PURE__ */ Z(bl, [["__scopeId", "data-v-ff057c7b"]]), gl = { class: "emoo-msel__opt" }, kl = ["src"], $l = { class: "emoo-msel__name" }, _l = {
1715
+ }), Fn = /* @__PURE__ */ Y(gl, [["__scopeId", "data-v-ff057c7b"]]), kl = { class: "emoo-msel__opt" }, $l = ["src"], _l = { class: "emoo-msel__name" }, wl = {
1716
1716
  key: 0,
1717
1717
  class: "emoo-msel__dept"
1718
- }, wl = {
1718
+ }, Sl = {
1719
1719
  class: "emoo-sel-remote-error",
1720
1720
  role: "alert",
1721
1721
  "data-testid": "remote-error"
1722
- }, Sl = /* @__PURE__ */ F({
1722
+ }, Cl = /* @__PURE__ */ F({
1723
1723
  __name: "EmooMemberSelect",
1724
1724
  props: {
1725
1725
  modelValue: {},
@@ -1733,7 +1733,7 @@ const Sa = {
1733
1733
  },
1734
1734
  emits: ["update:modelValue"],
1735
1735
  setup(e, { emit: n }) {
1736
- const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: u, search: b, onVisibleChange: _, popperClass: y } = Be(() => o.source, "emoo-msel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Me(
1736
+ const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-msel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
1737
1737
  () => o.modelValue,
1738
1738
  () => i.value ? p.value : o.options ?? [],
1739
1739
  () => o.selected ?? []
@@ -1760,14 +1760,14 @@ const Sa = {
1760
1760
  onVisibleChange: a(_)
1761
1761
  }, Se({
1762
1762
  default: w(() => [
1763
- (t(!0), s(D, null, J(a(R), (T) => (t(), x(a(ze), {
1763
+ (t(!0), s(D, null, Z(a(R), (T) => (t(), x(a(ze), {
1764
1764
  key: T.id,
1765
1765
  label: T.name,
1766
1766
  value: T.id
1767
1767
  }, {
1768
1768
  default: w(() => [
1769
- m("span", gl, [
1770
- m("span", {
1769
+ u("span", kl, [
1770
+ u("span", {
1771
1771
  class: "emoo-msel__avatar",
1772
1772
  style: pe({ "--tint": T.color || "var(--el-color-primary)" })
1773
1773
  }, [
@@ -1776,12 +1776,12 @@ const Sa = {
1776
1776
  src: T.avatar,
1777
1777
  alt: "",
1778
1778
  class: "emoo-msel__img"
1779
- }, null, 8, kl)) : (t(), s(D, { key: 1 }, [
1780
- Y(k(T.name[0]), 1)
1779
+ }, null, 8, $l)) : (t(), s(D, { key: 1 }, [
1780
+ J(k(T.name[0]), 1)
1781
1781
  ], 64))
1782
1782
  ], 4),
1783
- m("span", $l, k(T.name), 1),
1784
- T.dept ? (t(), s("span", _l, k(T.dept), 1)) : S("", !0)
1783
+ u("span", _l, k(T.name), 1),
1784
+ T.dept ? (t(), s("span", wl, k(T.dept), 1)) : S("", !0)
1785
1785
  ])
1786
1786
  ]),
1787
1787
  _: 2
@@ -1813,13 +1813,13 @@ const Sa = {
1813
1813
  a(g) ? {
1814
1814
  name: "footer",
1815
1815
  fn: w(() => [
1816
- m("div", wl, [
1817
- m("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1818
- m("button", {
1816
+ u("div", Sl, [
1817
+ u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1818
+ u("button", {
1819
1819
  type: "button",
1820
1820
  "data-testid": "remote-retry",
1821
1821
  onClick: d[0] || (d[0] = //@ts-ignore
1822
- (...T) => a(u) && a(u)(...T))
1822
+ (...T) => a(c) && a(c)(...T))
1823
1823
  }, k(a(r)("common.emooSelect.retry")), 1)
1824
1824
  ])
1825
1825
  ]),
@@ -1827,16 +1827,16 @@ const Sa = {
1827
1827
  } : void 0
1828
1828
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
1829
1829
  }
1830
- }), Kn = /* @__PURE__ */ Z(Sl, [["__scopeId", "data-v-f6059e7c"]]), Cl = ["data-testid", "data-role"], El = {
1830
+ }), qn = /* @__PURE__ */ Y(Cl, [["__scopeId", "data-v-f6059e7c"]]), El = ["data-testid", "data-role"], Tl = {
1831
1831
  key: 0,
1832
1832
  class: "emoo-message__side"
1833
- }, Tl = {
1833
+ }, xl = {
1834
1834
  key: 0,
1835
1835
  class: "emoo-message__avatar"
1836
- }, xl = ["src"], Il = { class: "emoo-message__main" }, zl = {
1836
+ }, Il = ["src"], zl = { class: "emoo-message__main" }, Rl = {
1837
1837
  key: 0,
1838
1838
  class: "emoo-message__name"
1839
- }, Rl = ["data-status"], Vl = {
1839
+ }, Vl = ["data-status"], Ml = {
1840
1840
  key: 0,
1841
1841
  class: "emoo-message__dots",
1842
1842
  "aria-label": "loading",
@@ -1844,28 +1844,28 @@ const Sa = {
1844
1844
  }, Bl = {
1845
1845
  key: 1,
1846
1846
  class: "emoo-message__stopped"
1847
- }, Ml = {
1847
+ }, Dl = {
1848
1848
  key: 2,
1849
1849
  class: "emoo-message__error"
1850
- }, Dl = {
1850
+ }, Pl = {
1851
1851
  key: 4,
1852
1852
  class: "emoo-message__attachments"
1853
- }, Pl = {
1853
+ }, Al = {
1854
1854
  key: 1,
1855
1855
  class: "emoo-message__foot"
1856
- }, Al = {
1856
+ }, Ll = {
1857
1857
  key: 0,
1858
1858
  class: "emoo-message__time"
1859
- }, Ll = {
1859
+ }, Ol = {
1860
1860
  key: 1,
1861
1861
  class: "emoo-message__actions"
1862
- }, Ol = {
1862
+ }, Ul = {
1863
1863
  key: 1,
1864
1864
  class: "emoo-message__side"
1865
- }, Ul = {
1865
+ }, Hl = {
1866
1866
  key: 0,
1867
1867
  class: "emoo-message__avatar"
1868
- }, Hl = ["src"], Kl = /* @__PURE__ */ F({
1868
+ }, Kl = ["src"], Wl = /* @__PURE__ */ F({
1869
1869
  __name: "EmooMessage",
1870
1870
  props: {
1871
1871
  role: {},
@@ -1883,53 +1883,53 @@ const Sa = {
1883
1883
  "data-testid": e.testid,
1884
1884
  "data-role": e.role
1885
1885
  }, [
1886
- e.role === "assistant" || e.role === "system" ? (t(), s("div", El, [
1886
+ e.role === "assistant" || e.role === "system" ? (t(), s("div", Tl, [
1887
1887
  A(o.$slots, "avatar", {}, () => [
1888
- e.avatar ? (t(), s("span", Tl, [
1889
- m("img", {
1888
+ e.avatar ? (t(), s("span", xl, [
1889
+ u("img", {
1890
1890
  src: e.avatar,
1891
1891
  alt: ""
1892
- }, null, 8, xl)
1892
+ }, null, 8, Il)
1893
1893
  ])) : S("", !0)
1894
1894
  ], !0)
1895
1895
  ])) : S("", !0),
1896
- m("div", Il, [
1897
- e.role === "system" && e.name ? (t(), s("div", zl, k(e.name), 1)) : S("", !0),
1898
- m("div", {
1896
+ u("div", zl, [
1897
+ e.role === "system" && e.name ? (t(), s("div", Rl, k(e.name), 1)) : S("", !0),
1898
+ u("div", {
1899
1899
  class: "emoo-message__body",
1900
1900
  "data-status": e.status
1901
1901
  }, [
1902
- e.status === "loading" ? (t(), s("span", Vl, [...l[0] || (l[0] = [
1903
- m("i", null, null, -1),
1904
- m("i", null, null, -1),
1905
- m("i", null, null, -1)
1906
- ])])) : e.status === "stopped" ? (t(), s("span", Bl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Ml, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
1907
- Y(k(e.text), 1)
1902
+ e.status === "loading" ? (t(), s("span", Ml, [...l[0] || (l[0] = [
1903
+ u("i", null, null, -1),
1904
+ u("i", null, null, -1),
1905
+ u("i", null, null, -1)
1906
+ ])])) : e.status === "stopped" ? (t(), s("span", Bl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Dl, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
1907
+ J(k(e.text), 1)
1908
1908
  ], !0, 3),
1909
- o.$slots.attachments ? (t(), s("div", Dl, [
1909
+ o.$slots.attachments ? (t(), s("div", Pl, [
1910
1910
  A(o.$slots, "attachments", {}, void 0, !0)
1911
1911
  ])) : S("", !0)
1912
- ], 8, Rl),
1913
- e.time || o.$slots.actions ? (t(), s("div", Pl, [
1914
- e.time ? (t(), s("span", Al, k(e.time), 1)) : S("", !0),
1915
- o.$slots.actions ? (t(), s("span", Ll, [
1912
+ ], 8, Vl),
1913
+ e.time || o.$slots.actions ? (t(), s("div", Al, [
1914
+ e.time ? (t(), s("span", Ll, k(e.time), 1)) : S("", !0),
1915
+ o.$slots.actions ? (t(), s("span", Ol, [
1916
1916
  A(o.$slots, "actions", {}, void 0, !0)
1917
1917
  ])) : S("", !0)
1918
1918
  ])) : S("", !0)
1919
1919
  ]),
1920
- e.role === "user" ? (t(), s("div", Ol, [
1920
+ e.role === "user" ? (t(), s("div", Ul, [
1921
1921
  A(o.$slots, "avatar", {}, () => [
1922
- e.avatar ? (t(), s("span", Ul, [
1923
- m("img", {
1922
+ e.avatar ? (t(), s("span", Hl, [
1923
+ u("img", {
1924
1924
  src: e.avatar,
1925
1925
  alt: ""
1926
- }, null, 8, Hl)
1926
+ }, null, 8, Kl)
1927
1927
  ])) : S("", !0)
1928
1928
  ], !0)
1929
1929
  ])) : S("", !0)
1930
- ], 10, Cl));
1930
+ ], 10, El));
1931
1931
  }
1932
- }), Wn = /* @__PURE__ */ Z(Kl, [["__scopeId", "data-v-fca7a127"]]), Wl = /* @__PURE__ */ F({
1932
+ }), jn = /* @__PURE__ */ Y(Wl, [["__scopeId", "data-v-fca7a127"]]), Nl = /* @__PURE__ */ F({
1933
1933
  __name: "EmooNavMenu",
1934
1934
  props: {
1935
1935
  items: {},
@@ -1940,7 +1940,7 @@ const Sa = {
1940
1940
  },
1941
1941
  emits: ["select", "group-select"],
1942
1942
  setup(e, { emit: n }) {
1943
- const o = e, l = n, { t: r } = me(), i = Et(), p = St(/* @__PURE__ */ new Map()), v = (d) => typeof d.title == "string" ? r(d.title) : d.title, g = (d) => !!(d.children && d.children.length > 0), u = V(
1943
+ const o = e, l = n, { t: r } = me(), i = Et(), p = St(/* @__PURE__ */ new Map()), v = (d) => typeof d.title == "string" ? r(d.title) : d.title, g = (d) => !!(d.children && d.children.length > 0), c = V(
1944
1944
  () => o.items.filter((d) => !d.hidden && o.canShow(d))
1945
1945
  ), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ = V(() => o.activePath ?? ""), y = (d) => !!d.action && !d.path && !d.children, R = (d) => d.active ?? _.value === (d.path || d.key), E = (d) => d.path && _.value.startsWith(d.path) ? !0 : (d.children ?? []).some((T) => T.path && _.value.startsWith(T.path) || E(T)), $ = (d) => p.get(d.key) ?? E(d), I = (d) => `emoo-nav-${d.key.replace(/[^a-zA-Z0-9_-]/g, "-")}-children`, z = (d) => {
1946
1946
  const T = !$(d);
@@ -1979,10 +1979,10 @@ const Sa = {
1979
1979
  ie(d),
1980
1980
  X(d)
1981
1981
  ]);
1982
- const M = $(d), se = T === 0 ? ve("button", {
1982
+ const B = $(d), se = T === 0 ? ve("button", {
1983
1983
  type: "button",
1984
- class: ["menu-group-title", { "is-open": M }],
1985
- "aria-expanded": String(M),
1984
+ class: ["menu-group-title", { "is-open": B }],
1985
+ "aria-expanded": String(B),
1986
1986
  "aria-controls": I(d),
1987
1987
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
1988
1988
  onClick: (ne) => {
@@ -1995,8 +1995,8 @@ const Sa = {
1995
1995
  ve(Ge, { class: "tree-caret" })
1996
1996
  ]) : ve("button", {
1997
1997
  type: "button",
1998
- class: ["child-menu-item", "menu-group-child-title", { "is-open": M }],
1999
- "aria-expanded": String(M),
1998
+ class: ["child-menu-item", "menu-group-child-title", { "is-open": B }],
1999
+ "aria-expanded": String(B),
2000
2000
  "aria-controls": I(d),
2001
2001
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
2002
2002
  onClick: (ne) => {
@@ -2010,7 +2010,7 @@ const Sa = {
2010
2010
  se,
2011
2011
  ve("div", {
2012
2012
  id: I(d),
2013
- class: ["children-container", { expanded: M }],
2013
+ class: ["children-container", { expanded: B }],
2014
2014
  role: "group",
2015
2015
  "aria-label": v(d)
2016
2016
  }, b(d).map((ne) => [
@@ -2022,12 +2022,12 @@ const Sa = {
2022
2022
  return (d, T) => (t(), s("nav", {
2023
2023
  class: W(["emoo-nav", { "is-touch": e.touch }])
2024
2024
  }, [
2025
- (t(!0), s(D, null, J(u.value, (M) => (t(), x(Ie(ee(M, 0)), {
2026
- key: M.key
2025
+ (t(!0), s(D, null, Z(c.value, (B) => (t(), x(Ie(ee(B, 0)), {
2026
+ key: B.key
2027
2027
  }))), 128))
2028
2028
  ], 2));
2029
2029
  }
2030
- }), Nn = /* @__PURE__ */ Z(Wl, [["__scopeId", "data-v-ebbf674d"]]), Nl = { class: "emoo-nav-segmented" }, Fl = ["onClick"], ql = /* @__PURE__ */ F({
2030
+ }), Gn = /* @__PURE__ */ Y(Nl, [["__scopeId", "data-v-ebbf674d"]]), Fl = { class: "emoo-nav-segmented" }, ql = ["onClick"], jl = /* @__PURE__ */ F({
2031
2031
  __name: "EmooNavSegmented",
2032
2032
  props: {
2033
2033
  items: {},
@@ -2039,22 +2039,22 @@ const Sa = {
2039
2039
  const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
2040
2040
  l("select", v), v.path && o.navigate?.(v.path);
2041
2041
  };
2042
- return (v, g) => (t(), s("nav", Nl, [
2043
- (t(!0), s(D, null, J(e.items, (u) => (t(), s("button", {
2044
- key: u.key,
2042
+ return (v, g) => (t(), s("nav", Fl, [
2043
+ (t(!0), s(D, null, Z(e.items, (c) => (t(), s("button", {
2044
+ key: c.key,
2045
2045
  type: "button",
2046
- class: W(["emoo-nav-segmented__item", { "is-active": u.key === e.activeKey }]),
2047
- onClick: le((b) => p(u), ["stop"])
2046
+ class: W(["emoo-nav-segmented__item", { "is-active": c.key === e.activeKey }]),
2047
+ onClick: le((b) => p(c), ["stop"])
2048
2048
  }, [
2049
- u.icon ? (t(), x(Ie(u.icon), {
2049
+ c.icon ? (t(), x(Ie(c.icon), {
2050
2050
  key: 0,
2051
2051
  "aria-hidden": "true"
2052
2052
  })) : S("", !0),
2053
- m("span", null, k(i(u)), 1)
2054
- ], 10, Fl))), 128))
2053
+ u("span", null, k(i(c)), 1)
2054
+ ], 10, ql))), 128))
2055
2055
  ]));
2056
2056
  }
2057
- }), Fn = /* @__PURE__ */ Z(ql, [["__scopeId", "data-v-a88dea1a"]]), jl = /* @__PURE__ */ F({
2057
+ }), Xn = /* @__PURE__ */ Y(jl, [["__scopeId", "data-v-a88dea1a"]]), Gl = /* @__PURE__ */ F({
2058
2058
  __name: "EmooOptionRows",
2059
2059
  props: {
2060
2060
  options: {},
@@ -2082,7 +2082,7 @@ const Sa = {
2082
2082
  key: 0,
2083
2083
  class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
2084
2084
  }, [
2085
- P(sa, {
2085
+ P(na, {
2086
2086
  class: "emoo-option-rows__select",
2087
2087
  options: e.options,
2088
2088
  "model-value": e.modelValue,
@@ -2090,7 +2090,7 @@ const Sa = {
2090
2090
  disabled: e.disabled,
2091
2091
  clearable: !e.multiple,
2092
2092
  testid: e.testid,
2093
- "onUpdate:modelValue": g[0] || (g[0] = (u) => e.multiple ? p(u) : i(u))
2093
+ "onUpdate:modelValue": g[0] || (g[0] = (c) => e.multiple ? p(c) : i(c))
2094
2094
  }, null, 8, ["options", "model-value", "multiple", "disabled", "clearable", "testid"])
2095
2095
  ], 2)) : e.multiple ? (t(), x(a(xt), {
2096
2096
  key: 2,
@@ -2100,14 +2100,14 @@ const Sa = {
2100
2100
  "onUpdate:modelValue": p
2101
2101
  }, {
2102
2102
  default: w(() => [
2103
- (t(!0), s(D, null, J(e.options, (u) => (t(), x(a(st), {
2104
- key: `${typeof u.value}:${u.value}`,
2105
- value: u.value,
2106
- "data-testid": e.testid ? `${e.testid}-${String(u.value)}` : void 0,
2103
+ (t(!0), s(D, null, Z(e.options, (c) => (t(), x(a(st), {
2104
+ key: `${typeof c.value}:${c.value}`,
2105
+ value: c.value,
2106
+ "data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
2107
2107
  border: ""
2108
2108
  }, {
2109
2109
  default: w(() => [
2110
- Y(k(u.label), 1)
2110
+ J(k(c.label), 1)
2111
2111
  ]),
2112
2112
  _: 2
2113
2113
  }, 1032, ["value", "data-testid"]))), 128))
@@ -2121,15 +2121,15 @@ const Sa = {
2121
2121
  "onUpdate:modelValue": i
2122
2122
  }, {
2123
2123
  default: w(() => [
2124
- (t(!0), s(D, null, J(e.options, (u) => (t(), x(a(zt), {
2125
- key: `${typeof u.value}:${u.value}`,
2126
- value: u.value,
2127
- "data-testid": e.testid ? `${e.testid}-${String(u.value)}` : void 0,
2124
+ (t(!0), s(D, null, Z(e.options, (c) => (t(), x(a(zt), {
2125
+ key: `${typeof c.value}:${c.value}`,
2126
+ value: c.value,
2127
+ "data-testid": e.testid ? `${e.testid}-${String(c.value)}` : void 0,
2128
2128
  border: "",
2129
- onClickCapture: (b) => r(u.value, b)
2129
+ onClickCapture: (b) => r(c.value, b)
2130
2130
  }, {
2131
2131
  default: w(() => [
2132
- Y(k(u.label), 1)
2132
+ J(k(c.label), 1)
2133
2133
  ]),
2134
2134
  _: 2
2135
2135
  }, 1032, ["value", "data-testid", "onClickCapture"]))), 128))
@@ -2139,21 +2139,21 @@ const Sa = {
2139
2139
  A(v.$slots, "append", {}, void 0, !0)
2140
2140
  ], 2));
2141
2141
  }
2142
- }), qn = /* @__PURE__ */ Z(jl, [["__scopeId", "data-v-44e7d258"]]), Gl = {
2142
+ }), Zn = /* @__PURE__ */ Y(Gl, [["__scopeId", "data-v-44e7d258"]]), Xl = {
2143
2143
  key: 0,
2144
2144
  class: "emt-foot",
2145
2145
  "data-testid": "emt-foot"
2146
- }, Xl = { class: "emt-foot__info" }, Jl = { class: "emt-foot__right" }, Yl = ["aria-label"], Zl = {
2146
+ }, Zl = { class: "emt-foot__info" }, Jl = { class: "emt-foot__right" }, Yl = ["aria-label"], Ql = {
2147
2147
  class: "emt-foot__size",
2148
2148
  type: "button",
2149
2149
  "data-testid": "emt-pagesize"
2150
- }, Ql = { class: "emt-colmenu__list" }, es = { class: "emt-tick" }, ts = {
2150
+ }, es = { class: "emt-colmenu__list" }, ts = { class: "emt-tick" }, os = {
2151
2151
  class: "emt-pager",
2152
2152
  "data-testid": "emt-pager"
2153
- }, os = ["disabled", "aria-label"], as = ["data-testid", "onClick"], ls = {
2153
+ }, as = ["disabled", "aria-label"], ls = ["data-testid", "onClick"], ss = {
2154
2154
  key: 1,
2155
2155
  class: "emt-pager__btn is-ellipsis"
2156
- }, ss = ["disabled", "aria-label"], ns = /* @__PURE__ */ F({
2156
+ }, ns = ["disabled", "aria-label"], is = /* @__PURE__ */ F({
2157
2157
  __name: "EmooPagination",
2158
2158
  props: {
2159
2159
  total: {},
@@ -2165,7 +2165,7 @@ const Sa = {
2165
2165
  },
2166
2166
  emits: ["update:page", "update:pageSize", "update:density"],
2167
2167
  setup(e, { emit: n }) {
2168
- const o = e, l = n, { t: r } = me(), i = V(() => o.page), p = V(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = V(() => (i.value - 1) * o.pageSize + 1), g = V(() => Math.min(o.total, i.value * o.pageSize)), u = (E) => E.toLocaleString(), b = V(() => {
2168
+ const o = e, l = n, { t: r } = me(), i = V(() => o.page), p = V(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = V(() => (i.value - 1) * o.pageSize + 1), g = V(() => Math.min(o.total, i.value * o.pageSize)), c = (E) => E.toLocaleString(), b = V(() => {
2169
2169
  const E = p.value, $ = i.value;
2170
2170
  return E <= 7 ? Array.from({ length: E }, (I, z) => z + 1) : $ <= 4 ? [1, 2, 3, 4, 5, "…", E] : $ >= E - 3 ? [1, "…", E - 4, E - 3, E - 2, E - 1, E] : [1, "…", $ - 1, $, $ + 1, "…", E];
2171
2171
  }), _ = (E) => {
@@ -2180,23 +2180,23 @@ const Sa = {
2180
2180
  const R = V(
2181
2181
  () => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
2182
2182
  );
2183
- return (E, $) => e.total > 0 ? (t(), s("footer", Gl, [
2184
- m("span", Xl, k(a(r)("common.emooTable.totalInfo", { total: u(e.total), from: u(v.value), to: u(g.value) })), 1),
2185
- m("div", Jl, [
2183
+ return (E, $) => e.total > 0 ? (t(), s("footer", Xl, [
2184
+ u("span", Zl, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
2185
+ u("div", Jl, [
2186
2186
  e.density ? (t(), x(he, {
2187
2187
  key: 0,
2188
2188
  content: R.value,
2189
2189
  placement: "top"
2190
2190
  }, {
2191
2191
  default: w(() => [
2192
- m("button", {
2192
+ u("button", {
2193
2193
  class: W(["emt-foot__dens", { "is-on": e.density === "compact" }]),
2194
2194
  type: "button",
2195
2195
  "aria-label": R.value,
2196
2196
  "data-testid": "emt-density",
2197
2197
  onClick: $[0] || ($[0] = (I) => l("update:density", e.density === "compact" ? "default" : "compact"))
2198
2198
  }, [
2199
- P(a(go), {
2199
+ P(a(ko), {
2200
2200
  size: 14,
2201
2201
  "aria-hidden": "true"
2202
2202
  })
@@ -2211,30 +2211,30 @@ const Sa = {
2211
2211
  onCommand: $[1] || ($[1] = (I) => y(Number(I)))
2212
2212
  }, {
2213
2213
  dropdown: w(() => [
2214
- m("div", Ql, [
2215
- (t(!0), s(D, null, J(e.pageSizes, (I) => (t(), x(a(so), {
2214
+ u("div", es, [
2215
+ (t(!0), s(D, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
2216
2216
  key: I,
2217
2217
  class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
2218
2218
  command: I,
2219
2219
  "data-testid": `emt-pagesize-${I}`
2220
2220
  }, {
2221
2221
  default: w(() => [
2222
- m("span", es, [
2222
+ u("span", ts, [
2223
2223
  I === e.pageSize ? (t(), x(a(Dt), {
2224
2224
  key: 0,
2225
2225
  size: 13,
2226
2226
  "aria-hidden": "true"
2227
2227
  })) : S("", !0)
2228
2228
  ]),
2229
- Y(k(a(r)("common.emooTable.perPage", { n: I })), 1)
2229
+ J(k(a(r)("common.emooTable.perPage", { n: I })), 1)
2230
2230
  ]),
2231
2231
  _: 2
2232
2232
  }, 1032, ["class", "command", "data-testid"]))), 128))
2233
2233
  ])
2234
2234
  ]),
2235
2235
  default: w(() => [
2236
- m("button", Zl, [
2237
- Y(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
2236
+ u("button", Ql, [
2237
+ J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
2238
2238
  P(a(rt), {
2239
2239
  size: 11,
2240
2240
  "aria-hidden": "true"
@@ -2243,8 +2243,8 @@ const Sa = {
2243
2243
  ]),
2244
2244
  _: 1
2245
2245
  }),
2246
- m("div", ts, [
2247
- m("button", {
2246
+ u("div", os, [
2247
+ u("button", {
2248
2248
  class: "emt-pager__btn",
2249
2249
  type: "button",
2250
2250
  disabled: i.value <= 1,
@@ -2256,17 +2256,17 @@ const Sa = {
2256
2256
  size: 14,
2257
2257
  "aria-hidden": "true"
2258
2258
  })
2259
- ], 8, os),
2260
- (t(!0), s(D, null, J(b.value, (I, z) => (t(), s(D, { key: z }, [
2259
+ ], 8, as),
2260
+ (t(!0), s(D, null, Z(b.value, (I, z) => (t(), s(D, { key: z }, [
2261
2261
  typeof I == "number" ? (t(), s("button", {
2262
2262
  key: 0,
2263
2263
  class: W(["emt-pager__btn", { "is-active": I === i.value }]),
2264
2264
  type: "button",
2265
2265
  "data-testid": `emt-page-${I}`,
2266
2266
  onClick: (j) => _(I)
2267
- }, k(I), 11, as)) : (t(), s("span", ls, "…"))
2267
+ }, k(I), 11, ls)) : (t(), s("span", ss, "…"))
2268
2268
  ], 64))), 128)),
2269
- m("button", {
2269
+ u("button", {
2270
2270
  class: "emt-pager__btn",
2271
2271
  type: "button",
2272
2272
  disabled: i.value >= p.value,
@@ -2278,12 +2278,12 @@ const Sa = {
2278
2278
  size: 14,
2279
2279
  "aria-hidden": "true"
2280
2280
  })
2281
- ], 8, ss)
2281
+ ], 8, ns)
2282
2282
  ])
2283
2283
  ])
2284
2284
  ])) : S("", !0);
2285
2285
  }
2286
- }), is = /* @__PURE__ */ Z(ns, [["__scopeId", "data-v-fc98e78c"]]), jn = /* @__PURE__ */ F({
2286
+ }), rs = /* @__PURE__ */ Y(is, [["__scopeId", "data-v-fc98e78c"]]), Jn = /* @__PURE__ */ F({
2287
2287
  __name: "EmooPopover",
2288
2288
  props: {
2289
2289
  popperClass: { default: "" },
@@ -2291,7 +2291,7 @@ const Sa = {
2291
2291
  },
2292
2292
  setup(e) {
2293
2293
  const n = e, o = V(() => ["emo-pop", n.popperClass].filter(Boolean).join(" "));
2294
- return (l, r) => (t(), x(a(no), Xe(l.$attrs, {
2294
+ return (l, r) => (t(), x(a(io), Xe(l.$attrs, {
2295
2295
  "show-arrow": e.showArrow,
2296
2296
  "popper-class": o.value
2297
2297
  }), Se({
@@ -2309,13 +2309,13 @@ const Sa = {
2309
2309
  } : void 0
2310
2310
  ]), 1040, ["show-arrow", "popper-class"]));
2311
2311
  }
2312
- }), rs = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], ds = {
2312
+ }), ds = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], us = {
2313
2313
  class: "emoo-progress__track",
2314
2314
  "aria-hidden": "true"
2315
- }, us = {
2315
+ }, cs = {
2316
2316
  key: 0,
2317
2317
  class: "emoo-progress__label"
2318
- }, cs = /* @__PURE__ */ F({
2318
+ }, ms = /* @__PURE__ */ F({
2319
2319
  __name: "EmooProgress",
2320
2320
  props: {
2321
2321
  value: { default: null },
@@ -2342,23 +2342,23 @@ const Sa = {
2342
2342
  "aria-valuenow": l.value ? void 0 : r.value,
2343
2343
  "aria-valuetext": p.value
2344
2344
  }, [
2345
- m("span", ds, [
2346
- m("span", {
2345
+ u("span", us, [
2346
+ u("span", {
2347
2347
  class: "emoo-progress__fill",
2348
2348
  style: pe(i.value)
2349
2349
  }, null, 4)
2350
2350
  ]),
2351
- e.label ? (t(), s("span", us, k(e.label), 1)) : S("", !0)
2352
- ], 10, rs));
2351
+ e.label ? (t(), s("span", cs, k(e.label), 1)) : S("", !0)
2352
+ ], 10, ds));
2353
2353
  }
2354
- }), ms = /* @__PURE__ */ Z(cs, [["__scopeId", "data-v-cab4f706"]]), vs = { class: "emoo-rsel__opt" }, fs = ["src"], hs = { class: "emoo-rsel__col" }, ps = { class: "emoo-rsel__name" }, ys = {
2354
+ }), vs = /* @__PURE__ */ Y(ms, [["__scopeId", "data-v-cab4f706"]]), fs = { class: "emoo-rsel__opt" }, hs = ["src"], ps = { class: "emoo-rsel__col" }, ys = { class: "emoo-rsel__name" }, bs = {
2355
2355
  key: 0,
2356
2356
  class: "emoo-rsel__desc"
2357
- }, bs = {
2357
+ }, gs = {
2358
2358
  class: "emoo-sel-remote-error",
2359
2359
  role: "alert",
2360
2360
  "data-testid": "remote-error"
2361
- }, gs = /* @__PURE__ */ F({
2361
+ }, ks = /* @__PURE__ */ F({
2362
2362
  __name: "EmooRoleSelect",
2363
2363
  props: {
2364
2364
  modelValue: {},
@@ -2372,7 +2372,7 @@ const Sa = {
2372
2372
  },
2373
2373
  emits: ["update:modelValue", "update:selected"],
2374
2374
  setup(e, { emit: n }) {
2375
- const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: u, search: b, onVisibleChange: _, popperClass: y } = Be(() => o.source, "emoo-rsel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Me(
2375
+ const o = e, l = n, { t: r } = me(), i = V(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-rsel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
2376
2376
  () => o.modelValue,
2377
2377
  () => i.value ? p.value : o.options ?? [],
2378
2378
  () => o.selected ?? []
@@ -2381,7 +2381,7 @@ const Sa = {
2381
2381
  l("update:modelValue", d), l("update:selected", T);
2382
2382
  }, ee = (d) => {
2383
2383
  const T = E.value[d]?.id;
2384
- T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
2384
+ T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
2385
2385
  };
2386
2386
  return (d, T) => (t(), x(a(Ae), {
2387
2387
  class: "emoo-rsel",
@@ -2399,29 +2399,29 @@ const Sa = {
2399
2399
  onVisibleChange: a(_)
2400
2400
  }, Se({
2401
2401
  default: w(() => [
2402
- (t(!0), s(D, null, J(a(R), (M) => (t(), x(a(ze), {
2403
- key: M.id,
2404
- label: M.name,
2405
- value: M.id
2402
+ (t(!0), s(D, null, Z(a(R), (B) => (t(), x(a(ze), {
2403
+ key: B.id,
2404
+ label: B.name,
2405
+ value: B.id
2406
2406
  }, {
2407
2407
  default: w(() => [
2408
- m("span", vs, [
2409
- m("span", {
2408
+ u("span", fs, [
2409
+ u("span", {
2410
2410
  class: "emoo-rsel__avatar",
2411
- style: pe({ "--tint": M.color || "var(--el-color-primary)" })
2411
+ style: pe({ "--tint": B.color || "var(--el-color-primary)" })
2412
2412
  }, [
2413
- M.avatar ? (t(), s("img", {
2413
+ B.avatar ? (t(), s("img", {
2414
2414
  key: 0,
2415
- src: M.avatar,
2415
+ src: B.avatar,
2416
2416
  alt: "",
2417
2417
  class: "emoo-rsel__img"
2418
- }, null, 8, fs)) : (t(), s(D, { key: 1 }, [
2419
- Y(k(M.name[0]), 1)
2418
+ }, null, 8, hs)) : (t(), s(D, { key: 1 }, [
2419
+ J(k(B.name[0]), 1)
2420
2420
  ], 64))
2421
2421
  ], 4),
2422
- m("span", hs, [
2423
- m("span", ps, k(M.name), 1),
2424
- M.desc ? (t(), s("span", ys, k(M.desc), 1)) : S("", !0)
2422
+ u("span", ps, [
2423
+ u("span", ys, k(B.name), 1),
2424
+ B.desc ? (t(), s("span", bs, k(B.desc), 1)) : S("", !0)
2425
2425
  ])
2426
2426
  ])
2427
2427
  ]),
@@ -2443,10 +2443,10 @@ const Sa = {
2443
2443
  key: "1"
2444
2444
  } : {
2445
2445
  name: "label",
2446
- fn: w(({ value: M }) => [
2447
- I(M) ? (t(), x(xe, {
2446
+ fn: w(({ value: B }) => [
2447
+ I(B) ? (t(), x(xe, {
2448
2448
  key: 0,
2449
- items: [X(I(M))]
2449
+ items: [X(I(B))]
2450
2450
  }, null, 8, ["items"])) : S("", !0)
2451
2451
  ]),
2452
2452
  key: "0"
@@ -2454,13 +2454,13 @@ const Sa = {
2454
2454
  a(g) ? {
2455
2455
  name: "footer",
2456
2456
  fn: w(() => [
2457
- m("div", bs, [
2458
- m("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
2459
- m("button", {
2457
+ u("div", gs, [
2458
+ u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
2459
+ u("button", {
2460
2460
  type: "button",
2461
2461
  "data-testid": "remote-retry",
2462
2462
  onClick: T[0] || (T[0] = //@ts-ignore
2463
- (...M) => a(u) && a(u)(...M))
2463
+ (...B) => a(c) && a(c)(...B))
2464
2464
  }, k(a(r)("common.emooSelect.retry")), 1)
2465
2465
  ])
2466
2466
  ]),
@@ -2468,19 +2468,19 @@ const Sa = {
2468
2468
  } : void 0
2469
2469
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
2470
2470
  }
2471
- }), Gn = /* @__PURE__ */ Z(gs, [["__scopeId", "data-v-6c4ae65a"]]), ks = {
2471
+ }), Yn = /* @__PURE__ */ Y(ks, [["__scopeId", "data-v-6c4ae65a"]]), $s = {
2472
2472
  key: 1,
2473
2473
  class: "emoo-search-box__top"
2474
- }, $s = {
2474
+ }, _s = {
2475
2475
  key: 2,
2476
2476
  class: "emoo-search-box__extras"
2477
- }, _s = { class: "emoo-search-box__field" }, ws = {
2477
+ }, ws = { class: "emoo-search-box__field" }, Ss = {
2478
2478
  key: 3,
2479
2479
  class: "emoo-search-box__bar"
2480
- }, Ss = {
2480
+ }, Cs = {
2481
2481
  key: 0,
2482
2482
  class: "emoo-search-box__trailing"
2483
- }, Cs = /* @__PURE__ */ F({
2483
+ }, Es = /* @__PURE__ */ F({
2484
2484
  __name: "EmooSearchBox",
2485
2485
  props: {
2486
2486
  variant: { default: "composer" },
@@ -2502,34 +2502,34 @@ const Sa = {
2502
2502
  content: e.gripTip || a(o)("common.emooSearchBox.gripTip")
2503
2503
  }, {
2504
2504
  default: w(() => [
2505
- m("span", {
2505
+ u("span", {
2506
2506
  class: W(["emoo-search-box__grip", { "is-on": e.resizing }]),
2507
2507
  onMousedown: i[0] || (i[0] = (p) => l("grip-mousedown", p))
2508
2508
  }, null, 34)
2509
2509
  ]),
2510
2510
  _: 1
2511
2511
  }, 8, ["content"])) : S("", !0),
2512
- r.$slots.top ? (t(), s("div", ks, [
2512
+ r.$slots.top ? (t(), s("div", $s, [
2513
2513
  A(r.$slots, "top", {}, void 0, !0)
2514
2514
  ])) : S("", !0),
2515
- r.$slots.extras ? (t(), s("div", $s, [
2515
+ r.$slots.extras ? (t(), s("div", _s, [
2516
2516
  A(r.$slots, "extras", {}, void 0, !0)
2517
2517
  ])) : S("", !0),
2518
- m("div", _s, [
2518
+ u("div", ws, [
2519
2519
  A(r.$slots, "default", {}, void 0, !0)
2520
2520
  ]),
2521
- r.$slots.bar || r.$slots.trailing ? (t(), s("div", ws, [
2521
+ r.$slots.bar || r.$slots.trailing ? (t(), s("div", Ss, [
2522
2522
  A(r.$slots, "bar", {}, void 0, !0),
2523
- r.$slots.trailing ? (t(), s("div", Ss, [
2523
+ r.$slots.trailing ? (t(), s("div", Cs, [
2524
2524
  A(r.$slots, "trailing", {}, void 0, !0)
2525
2525
  ])) : S("", !0)
2526
2526
  ])) : S("", !0)
2527
2527
  ], 2));
2528
2528
  }
2529
- }), Xn = /* @__PURE__ */ Z(Cs, [["__scopeId", "data-v-98479d22"]]), Es = ["aria-label"], Ts = ["aria-pressed", "aria-label", "disabled", "onClick"], xs = { key: 1 }, Is = {
2529
+ }), Qn = /* @__PURE__ */ Y(Es, [["__scopeId", "data-v-98479d22"]]), Ts = ["aria-label"], xs = ["aria-pressed", "aria-label", "disabled", "onClick"], Is = { key: 1 }, zs = {
2530
2530
  key: 2,
2531
2531
  class: "emoo-segmented__count"
2532
- }, zs = /* @__PURE__ */ F({
2532
+ }, Rs = /* @__PURE__ */ F({
2533
2533
  __name: "EmooSegmented",
2534
2534
  props: {
2535
2535
  options: {},
@@ -2549,26 +2549,26 @@ const Sa = {
2549
2549
  role: "group",
2550
2550
  "aria-label": e.ariaLabel || a(o)("common.emooSegmented.ariaLabel")
2551
2551
  }, [
2552
- (t(!0), s(D, null, J(e.options, (u) => (t(), s("button", {
2553
- key: u.value,
2552
+ (t(!0), s(D, null, Z(e.options, (c) => (t(), s("button", {
2553
+ key: c.value,
2554
2554
  type: "button",
2555
- class: W(["emoo-segmented__item", { "is-active": u.value === e.modelValue, "is-icon-only": !!u.icon && !u.label }]),
2556
- "aria-pressed": u.value === e.modelValue,
2557
- "aria-label": u.ariaLabel,
2558
- disabled: e.disabled || u.disabled,
2559
- onClick: (b) => p(u)
2555
+ class: W(["emoo-segmented__item", { "is-active": c.value === e.modelValue, "is-icon-only": !!c.icon && !c.label }]),
2556
+ "aria-pressed": c.value === e.modelValue,
2557
+ "aria-label": c.ariaLabel,
2558
+ disabled: e.disabled || c.disabled,
2559
+ onClick: (b) => p(c)
2560
2560
  }, [
2561
- u.icon ? (t(), x(Ie(u.icon), {
2561
+ c.icon ? (t(), x(Ie(c.icon), {
2562
2562
  key: 0,
2563
2563
  size: r.value,
2564
2564
  "aria-hidden": "true"
2565
2565
  }, null, 8, ["size"])) : S("", !0),
2566
- u.label ? (t(), s("span", xs, k(u.label), 1)) : S("", !0),
2567
- u.count !== void 0 ? (t(), s("span", Is, k(u.count), 1)) : S("", !0)
2568
- ], 10, Ts))), 128))
2569
- ], 10, Es));
2566
+ c.label ? (t(), s("span", Is, k(c.label), 1)) : S("", !0),
2567
+ c.count !== void 0 ? (t(), s("span", zs, k(c.count), 1)) : S("", !0)
2568
+ ], 10, xs))), 128))
2569
+ ], 10, Ts));
2570
2570
  }
2571
- }), Jn = /* @__PURE__ */ Z(zs, [["__scopeId", "data-v-bcd69b5a"]]), Rs = /* @__PURE__ */ F({
2571
+ }), ei = /* @__PURE__ */ Y(Rs, [["__scopeId", "data-v-bcd69b5a"]]), Vs = /* @__PURE__ */ F({
2572
2572
  __name: "EmooSidebarShell",
2573
2573
  props: {
2574
2574
  collapsed: { type: Boolean, default: !1 },
@@ -2591,7 +2591,7 @@ const Sa = {
2591
2591
  A(l.$slots, "footer", {}, void 0, !0)
2592
2592
  ], 6));
2593
2593
  }
2594
- }), Yn = /* @__PURE__ */ Z(Rs, [["__scopeId", "data-v-8f94cc28"]]), Vs = /* @__PURE__ */ F({
2594
+ }), ti = /* @__PURE__ */ Y(Vs, [["__scopeId", "data-v-8f94cc28"]]), Ms = /* @__PURE__ */ F({
2595
2595
  __name: "EmooStatusTag",
2596
2596
  props: {
2597
2597
  tone: {},
@@ -2604,10 +2604,10 @@ const Sa = {
2604
2604
  A(n.$slots, "default", {}, void 0, !0)
2605
2605
  ], 2));
2606
2606
  }
2607
- }), Bs = /* @__PURE__ */ Z(Vs, [["__scopeId", "data-v-9c6a9ab7"]]), Ms = { class: "emoo-switcher" }, Ds = {
2607
+ }), Bs = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-9c6a9ab7"]]), Ds = { class: "emoo-switcher" }, Ps = {
2608
2608
  key: 0,
2609
2609
  class: "switcher-title"
2610
- }, Ps = ["data-testid", "onClick"], As = ["src", "alt"], Ls = { class: "switcher-label" }, Os = /* @__PURE__ */ F({
2610
+ }, As = ["data-testid", "onClick"], Ls = ["src", "alt"], Os = { class: "switcher-label" }, Us = /* @__PURE__ */ F({
2611
2611
  __name: "EmooSwitcherPanel",
2612
2612
  props: {
2613
2613
  title: {},
@@ -2616,15 +2616,15 @@ const Sa = {
2616
2616
  },
2617
2617
  emits: ["select"],
2618
2618
  setup(e, { emit: n }) {
2619
- const o = e, l = n, { t: r } = me(), i = (u) => r(u.title), p = V(() => o.title ? r(o.title) : ""), v = V(() => o.items.filter((u) => !u.hidden)), g = (u) => {
2620
- l("select", u), u.action?.();
2619
+ const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p = V(() => o.title ? r(o.title) : ""), v = V(() => o.items.filter((c) => !c.hidden)), g = (c) => {
2620
+ l("select", c), c.action?.();
2621
2621
  };
2622
- return (u, b) => (t(), s("div", Ms, [
2623
- e.title ? (t(), s("p", Ds, k(p.value), 1)) : S("", !0),
2624
- m("div", {
2622
+ return (c, b) => (t(), s("div", Ds, [
2623
+ e.title ? (t(), s("p", Ps, k(p.value), 1)) : S("", !0),
2624
+ u("div", {
2625
2625
  class: W(["switcher-list", { "is-scrollable": e.scrollable }])
2626
2626
  }, [
2627
- (t(!0), s(D, null, J(v.value, (_) => (t(), s("button", {
2627
+ (t(!0), s(D, null, Z(v.value, (_) => (t(), s("button", {
2628
2628
  key: _.key,
2629
2629
  type: "button",
2630
2630
  class: W(["switcher-item", { "is-active": _.active }]),
@@ -2636,20 +2636,20 @@ const Sa = {
2636
2636
  src: _.image,
2637
2637
  alt: i(_),
2638
2638
  class: "switcher-image"
2639
- }, null, 8, As)) : _.icon ? (t(), x(Ie(_.icon), {
2639
+ }, null, 8, Ls)) : _.icon ? (t(), x(Ie(_.icon), {
2640
2640
  key: 1,
2641
2641
  class: "ic"
2642
2642
  })) : S("", !0),
2643
- m("span", Ls, k(i(_)), 1),
2643
+ u("span", Os, k(i(_)), 1),
2644
2644
  _.active ? (t(), x(a(Dt), {
2645
2645
  key: 2,
2646
2646
  class: "switcher-check"
2647
2647
  })) : S("", !0)
2648
- ], 10, Ps))), 128))
2648
+ ], 10, As))), 128))
2649
2649
  ], 2)
2650
2650
  ]));
2651
2651
  }
2652
- }), Zn = /* @__PURE__ */ Z(Os, [["__scopeId", "data-v-a2309e72"]]), Us = /* @__PURE__ */ F({
2652
+ }), oi = /* @__PURE__ */ Y(Us, [["__scopeId", "data-v-a2309e72"]]), Hs = /* @__PURE__ */ F({
2653
2653
  __name: "EmooTagsInput",
2654
2654
  props: {
2655
2655
  modelValue: { default: () => [] },
@@ -2659,20 +2659,20 @@ const Sa = {
2659
2659
  },
2660
2660
  emits: ["update:modelValue"],
2661
2661
  setup(e, { emit: n }) {
2662
- const o = e, l = n, { t: r } = me(), i = U(""), p = U(!1), v = U(!1), g = U(), u = U(), b = (E) => {
2662
+ const o = e, l = n, { t: r } = me(), i = U(""), p = U(!1), v = U(!1), g = U(), c = U(), b = (E) => {
2663
2663
  l("update:modelValue", o.modelValue.filter(($) => $ !== E));
2664
2664
  }, _ = () => {
2665
2665
  p.value = !0, ke(() => g.value?.focus());
2666
2666
  }, y = () => {
2667
2667
  const E = i.value;
2668
- E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() => u.value?.$el?.focus?.(), 0);
2668
+ E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() => c.value?.$el?.focus?.(), 0);
2669
2669
  }, R = (E) => {
2670
2670
  !(E instanceof KeyboardEvent) || E.key !== "Enter" || !v.value && !E.isComposing && y();
2671
2671
  };
2672
2672
  return (E, $) => (t(), s("div", {
2673
2673
  class: W(["emoo-tags-input", { "is-disabled": e.disabled }])
2674
2674
  }, [
2675
- (t(!0), s(D, null, J(e.modelValue, (I, z) => (t(), x(a(io), {
2675
+ (t(!0), s(D, null, Z(e.modelValue, (I, z) => (t(), x(a(ro), {
2676
2676
  key: `${z}:${I}`,
2677
2677
  class: "emoo-tags-input__tag",
2678
2678
  "disable-transitions": !1,
@@ -2681,7 +2681,7 @@ const Sa = {
2681
2681
  onClose: (j) => b(I)
2682
2682
  }, {
2683
2683
  default: w(() => [
2684
- Y(k(I), 1)
2684
+ J(k(I), 1)
2685
2685
  ]),
2686
2686
  _: 2
2687
2687
  }, 1032, ["closable", "data-testid", "onClose"]))), 128)),
@@ -2703,22 +2703,22 @@ const Sa = {
2703
2703
  }, null, 8, ["modelValue", "placeholder"])) : (t(), x(De, {
2704
2704
  key: 1,
2705
2705
  ref_key: "addButtonRef",
2706
- ref: u,
2706
+ ref: c,
2707
2707
  class: "emoo-tags-input__add",
2708
2708
  size: "small",
2709
2709
  "data-testid": "tags-add",
2710
2710
  onClick: _
2711
2711
  }, {
2712
2712
  default: w(() => [
2713
- Y(" + " + k(a(r)("common.emooTagsInput.add")), 1)
2713
+ J(" + " + k(a(r)("common.emooTagsInput.add")), 1)
2714
2714
  ]),
2715
2715
  _: 1
2716
2716
  }, 512))
2717
2717
  ], 64)) : S("", !0)
2718
2718
  ], 2));
2719
2719
  }
2720
- }), Qn = /* @__PURE__ */ Z(Us, [["__scopeId", "data-v-2b248a6f"]]), Hs = 140, at = 64;
2721
- function Ks(e) {
2720
+ }), ai = /* @__PURE__ */ Y(Hs, [["__scopeId", "data-v-2b248a6f"]]), Ks = 140, at = 64;
2721
+ function Ws(e) {
2722
2722
  const n = e.minColWidth ?? at, o = (C) => e.columns().find((L) => L.key === C), l = () => e.columns().map((C) => ({ key: C.key, visible: !0, fixed: "" })), r = (C) => {
2723
2723
  if (!Array.isArray(C)) return l();
2724
2724
  const L = /* @__PURE__ */ new Map(), Q = [];
@@ -2727,7 +2727,7 @@ function Ks(e) {
2727
2727
  const G = O;
2728
2728
  !G.key || !e.columns().some((oe) => oe.key === G.key) || (L.set(G.key, G), Q.push(G.key));
2729
2729
  }
2730
- const ae = new Map(Q.map((O, G) => [O, G])), B = e.columns().map((O) => {
2730
+ const ae = new Map(Q.map((O, G) => [O, G])), M = e.columns().map((O) => {
2731
2731
  const G = L.get(O.key);
2732
2732
  return {
2733
2733
  key: O.key,
@@ -2736,7 +2736,7 @@ function Ks(e) {
2736
2736
  width: typeof G?.width == "number" && G.width >= n ? Math.round(G.width) : void 0
2737
2737
  };
2738
2738
  });
2739
- return !Q.length || e.persistOrder === !1 ? B : [...B].sort((O, G) => (ae.get(O.key) ?? B.length) - (ae.get(G.key) ?? B.length));
2739
+ return !Q.length || e.persistOrder === !1 ? M : [...M].sort((O, G) => (ae.get(O.key) ?? M.length) - (ae.get(G.key) ?? M.length));
2740
2740
  }, i = (C) => !!C && typeof C == "object" && typeof C.key == "string" && (C.order === "ascending" || C.order === "descending"), p = () => {
2741
2741
  if (!e.storageKey) return { columns: l() };
2742
2742
  try {
@@ -2756,12 +2756,12 @@ function Ks(e) {
2756
2756
  } catch {
2757
2757
  }
2758
2758
  return { columns: l() };
2759
- }, v = p(), g = U(v.columns), u = U(v.pageSize ?? e.defaultPageSize ?? 20), b = U(v.density ?? "default"), _ = () => {
2759
+ }, v = p(), g = U(v.columns), c = U(v.pageSize ?? e.defaultPageSize ?? 20), b = U(v.density ?? "default"), _ = () => {
2760
2760
  if (!e.storageKey) return;
2761
2761
  const C = {
2762
2762
  columns: g.value,
2763
- pageSize: u.value,
2764
- sort: T.value && M.value ? { key: T.value, order: M.value } : void 0,
2763
+ pageSize: c.value,
2764
+ sort: T.value && B.value ? { key: T.value, order: B.value } : void 0,
2765
2765
  density: b.value
2766
2766
  };
2767
2767
  localStorage.setItem(e.storageKey, JSON.stringify(C));
@@ -2773,19 +2773,19 @@ function Ks(e) {
2773
2773
  },
2774
2774
  { deep: !0 }
2775
2775
  );
2776
- const y = V(() => g.value.filter((C) => C.visible)), R = V(() => y.value.length), E = V(() => g.value.filter((C) => !C.visible)), $ = (C) => C.width ?? (o(C.key)?.minWidth ? void 0 : o(C.key)?.width), I = (C) => C.width ?? o(C.key)?.minWidth, z = (C) => (C.width ?? o(C.key)?.width ?? o(C.key)?.minWidth ?? 0) >= Hs, j = (C) => {
2776
+ const y = V(() => g.value.filter((C) => C.visible)), R = V(() => y.value.length), E = V(() => g.value.filter((C) => !C.visible)), $ = (C) => C.width ?? (o(C.key)?.minWidth ? void 0 : o(C.key)?.width), I = (C) => C.width ?? o(C.key)?.minWidth, z = (C) => (C.width ?? o(C.key)?.width ?? o(C.key)?.minWidth ?? 0) >= Ks, j = (C) => {
2777
2777
  R.value <= 1 || (C.visible = !1);
2778
2778
  }, X = () => {
2779
2779
  g.value = l();
2780
- }, ie = (C) => g.value.some((L) => L.key === C.key && L.visible && !!o(C.key)?.sortable), ee = v.sort && ie(v.sort) ? v.sort : null, d = ee ?? (e.defaultSort && ie(e.defaultSort) ? e.defaultSort : null), T = U(d?.key ?? ""), M = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
2781
- we([u, b, T, M], _), we(
2780
+ }, ie = (C) => g.value.some((L) => L.key === C.key && L.visible && !!o(C.key)?.sortable), ee = v.sort && ie(v.sort) ? v.sort : null, d = ee ?? (e.defaultSort && ie(e.defaultSort) ? e.defaultSort : null), T = U(d?.key ?? ""), B = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
2781
+ we([c, b, T, B], _), we(
2782
2782
  () => e.columns().map((C) => C.key).join(","),
2783
2783
  () => {
2784
2784
  g.value = p().columns;
2785
2785
  }
2786
2786
  );
2787
2787
  const ne = (C) => {
2788
- e.storageKey && localStorage.removeItem(e.storageKey), g.value = l(), u.value = e.defaultPageSize ?? 20, b.value = "default", e.defaultSort ? C(e.defaultSort.key, e.defaultSort.order) : C("", null);
2788
+ e.storageKey && localStorage.removeItem(e.storageKey), g.value = l(), c.value = e.defaultPageSize ?? 20, b.value = "default", e.defaultSort ? C(e.defaultSort.key, e.defaultSort.order) : C("", null);
2789
2789
  }, ye = () => {
2790
2790
  const C = g.value.filter((ae) => ae.visible);
2791
2791
  let L = !1;
@@ -2793,29 +2793,29 @@ function Ks(e) {
2793
2793
  ae.fixed === "left" ? L && (ae.fixed = "") : L = !0;
2794
2794
  let Q = !1;
2795
2795
  for (let ae = C.length - 1; ae >= 0; ae--) {
2796
- const B = C[ae];
2797
- B.fixed === "right" ? Q && (B.fixed = "") : Q = !0;
2796
+ const M = C[ae];
2797
+ M.fixed === "right" ? Q && (M.fixed = "") : Q = !0;
2798
2798
  }
2799
2799
  }, q = (C) => {
2800
2800
  for (const L of g.value) L.fixed === C && (L.fixed = "");
2801
2801
  }, de = (C) => {
2802
2802
  C.fixed && q(C.fixed);
2803
2803
  }, ce = (C, L) => {
2804
- const Q = y.value, ae = Q.findIndex((B) => B.key === C.key);
2805
- ae < 0 || (Q.forEach((B, O) => {
2806
- (L === "left" ? O <= ae : O >= ae) ? B.fixed = L : B.fixed === L && (B.fixed = "");
2804
+ const Q = y.value, ae = Q.findIndex((M) => M.key === C.key);
2805
+ ae < 0 || (Q.forEach((M, O) => {
2806
+ (L === "left" ? O <= ae : O >= ae) ? M.fixed = L : M.fixed === L && (M.fixed = "");
2807
2807
  }), ye());
2808
2808
  }, H = (C) => {
2809
2809
  const L = y.value;
2810
2810
  if (C === "left") {
2811
2811
  let Q = -1;
2812
- return L.forEach((ae, B) => {
2813
- ae.fixed === "left" && (Q = B);
2812
+ return L.forEach((ae, M) => {
2813
+ ae.fixed === "left" && (Q = M);
2814
2814
  }), Q;
2815
2815
  }
2816
2816
  return L.findIndex((Q) => Q.fixed === "right");
2817
2817
  }, te = (C, L) => {
2818
- const ae = y.value.findIndex((B) => B.key === C.key);
2818
+ const ae = y.value.findIndex((M) => M.key === C.key);
2819
2819
  if (C.fixed !== L) {
2820
2820
  ce(C, L);
2821
2821
  return;
@@ -2825,10 +2825,10 @@ function Ks(e) {
2825
2825
  return {
2826
2826
  // 状态
2827
2827
  colState: g,
2828
- pageSize: u,
2828
+ pageSize: c,
2829
2829
  density: b,
2830
2830
  sortKey: T,
2831
- sortOrder: M,
2831
+ sortOrder: B,
2832
2832
  effectiveStoredSort: se,
2833
2833
  prefs: v,
2834
2834
  storageSort: ee,
@@ -2863,7 +2863,7 @@ function Ks(e) {
2863
2863
  }
2864
2864
  };
2865
2865
  }
2866
- const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "onDragleave", "onDrop"], Fs = ["aria-label", "data-testid", "onDragstart"], qs = { class: "emt-th__label" }, js = ["data-testid", "onClick"], Gs = { class: "emt-th__tools" }, Xs = ["data-testid", "onClick"], Js = ["disabled", "data-testid", "onClick"], Ys = ["title", "aria-label", "data-testid"], Zs = ["data-testid", "onMousedown"], Qs = ["aria-label"], en = ["aria-label"], tn = ["aria-label"], on = /* @__PURE__ */ F({
2866
+ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "onDragleave", "onDrop"], qs = ["aria-label", "data-testid", "onDragstart"], js = { class: "emt-th__label" }, Gs = ["data-testid", "onClick"], Xs = { class: "emt-th__tools" }, Zs = ["data-testid", "onClick"], Js = ["disabled", "data-testid", "onClick"], Ys = ["title", "aria-label", "data-testid"], Qs = ["data-testid", "onMousedown"], en = ["aria-label"], tn = ["aria-label"], on = ["aria-label"], an = /* @__PURE__ */ F({
2867
2867
  __name: "EmooTable",
2868
2868
  props: {
2869
2869
  data: {},
@@ -2888,12 +2888,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
2888
2888
  },
2889
2889
  emits: ["sort-change", "selection-change", "update:page", "size-change", "row-click", "row-move"],
2890
2890
  setup(e, { expose: n, emit: o }) {
2891
- const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((c) => c.key === h), g = V(() => {
2891
+ const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g = V(() => {
2892
2892
  const h = r.rowKey;
2893
- return typeof h != "function" ? h : (c) => String(h(c));
2894
- }), u = (h) => v(h)?.sortBy, b = (h) => {
2895
- const c = v(h);
2896
- return c ? c.ellipsis != null ? c.ellipsis : (c.width ?? c.minWidth ?? 1 / 0) >= 50 : !1;
2893
+ return typeof h != "function" ? h : (m) => String(h(m));
2894
+ }), c = (h) => v(h)?.sortBy, b = (h) => {
2895
+ const m = v(h);
2896
+ return m ? m.ellipsis != null ? m.ellipsis : (m.width ?? m.minWidth ?? 1 / 0) >= 50 : !1;
2897
2897
  }, {
2898
2898
  colState: _,
2899
2899
  pageSize: y,
@@ -2908,7 +2908,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
2908
2908
  visibleCount: ee,
2909
2909
  colWidth: d,
2910
2910
  colMinWidth: T,
2911
- isWide: M,
2911
+ isWide: B,
2912
2912
  hideColumn: se,
2913
2913
  resetColumns: ne,
2914
2914
  normalizeColumns: ye,
@@ -2916,7 +2916,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
2916
2916
  pinEdge: de,
2917
2917
  togglePinSide: ce,
2918
2918
  togglePinSmart: H
2919
- } = Ks({
2919
+ } = Ws({
2920
2920
  columns: () => r.columns,
2921
2921
  storageKey: r.storageKey,
2922
2922
  defaultPageSize: r.defaultPageSize,
@@ -2928,120 +2928,120 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
2928
2928
  });
2929
2929
  }
2930
2930
  }), te = () => {
2931
- j((h, c) => {
2932
- c === null ? Le("", null) : p.value?.sort(h, c);
2931
+ j((h, m) => {
2932
+ m === null ? Le("", null) : p.value?.sort(h, m);
2933
2933
  }), i("size-change", y.value), ke(() => {
2934
2934
  p.value?.doLayout(), Te();
2935
2935
  });
2936
2936
  }, N = (h) => {
2937
- const c = X.value, f = c.findIndex((K) => K.key === h.key);
2938
- return h.fixed === "left" ? f === de("left") ? l("common.emooTable.unpin") : l("common.emooTable.pinLeftThrough") : h.fixed === "right" ? f === de("right") ? l("common.emooTable.unpin") : l("common.emooTable.pinRightFrom") : f < c.length / 2 ? l("common.emooTable.pinLeftThrough") : l("common.emooTable.pinRightFrom");
2939
- }, C = U(""), L = U(""), Q = U("left"), ae = (h, c) => {
2940
- C.value = h.key, c.dataTransfer && (c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/plain", h.key));
2941
- }, B = () => {
2937
+ const m = X.value, f = m.findIndex((K) => K.key === h.key);
2938
+ return h.fixed === "left" ? f === de("left") ? l("common.emooTable.unpin") : l("common.emooTable.pinLeftThrough") : h.fixed === "right" ? f === de("right") ? l("common.emooTable.unpin") : l("common.emooTable.pinRightFrom") : f < m.length / 2 ? l("common.emooTable.pinLeftThrough") : l("common.emooTable.pinRightFrom");
2939
+ }, C = U(""), L = U(""), Q = U("left"), ae = (h, m) => {
2940
+ C.value = h.key, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", h.key));
2941
+ }, M = () => {
2942
2942
  C.value = "", L.value = "";
2943
- }, O = (h, c) => {
2943
+ }, O = (h, m) => {
2944
2944
  if (!C.value) return;
2945
2945
  if (C.value === h.key) {
2946
2946
  L.value = "";
2947
2947
  return;
2948
2948
  }
2949
2949
  L.value = h.key;
2950
- const f = c.currentTarget.getBoundingClientRect();
2951
- Q.value = c.clientX < f.left + f.width / 2 ? "left" : "right";
2952
- }, G = (h, c) => {
2950
+ const f = m.currentTarget.getBoundingClientRect();
2951
+ Q.value = m.clientX < f.left + f.width / 2 ? "left" : "right";
2952
+ }, G = (h, m) => {
2953
2953
  if (L.value !== h.key) return;
2954
- const f = c.currentTarget;
2955
- !f || f.contains(c.relatedTarget) || (L.value = "");
2954
+ const f = m.currentTarget;
2955
+ !f || f.contains(m.relatedTarget) || (L.value = "");
2956
2956
  }, oe = (h) => {
2957
- const c = _.value.findIndex((_e) => _e.key === C.value), f = _.value.findIndex((_e) => _e.key === h.key), K = Q.value;
2958
- if (B(), c < 0 || f < 0 || c === f) return;
2957
+ const m = _.value.findIndex((_e) => _e.key === C.value), f = _.value.findIndex((_e) => _e.key === h.key), K = Q.value;
2958
+ if (M(), m < 0 || f < 0 || m === f) return;
2959
2959
  let ue = K === "left" ? f : f + 1;
2960
- const [fe] = _.value.splice(c, 1);
2961
- c < ue && (ue -= 1), _.value.splice(ue, 0, fe), ye();
2962
- }, re = U(-1), Ce = U(-1), Ze = U("above"), Wt = (h, c) => {
2963
- re.value = h, c.dataTransfer && (c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/plain", String(h)));
2960
+ const [fe] = _.value.splice(m, 1);
2961
+ m < ue && (ue -= 1), _.value.splice(ue, 0, fe), ye();
2962
+ }, re = U(-1), Ce = U(-1), Ye = U("above"), Wt = (h, m) => {
2963
+ re.value = h, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", String(h)));
2964
2964
  }, dt = () => {
2965
2965
  re.value = -1, Ce.value = -1;
2966
2966
  }, ut = (h) => {
2967
- const c = h.target.closest(".el-table__body tr"), f = c?.parentElement;
2968
- if (!c || !f) return null;
2969
- const K = [...f.children].indexOf(c);
2967
+ const m = h.target.closest(".el-table__body tr"), f = m?.parentElement;
2968
+ if (!m || !f) return null;
2969
+ const K = [...f.children].indexOf(m);
2970
2970
  if (K < 0) return null;
2971
- const ue = c.getBoundingClientRect();
2971
+ const ue = m.getBoundingClientRect();
2972
2972
  return { idx: K, side: h.clientY < ue.top + ue.height / 2 ? "above" : "below" };
2973
2973
  }, Nt = (h) => {
2974
2974
  if (re.value < 0) return;
2975
2975
  h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move");
2976
- const c = ut(h);
2977
- if (!c) {
2976
+ const m = ut(h);
2977
+ if (!m) {
2978
2978
  Ce.value = -1;
2979
2979
  return;
2980
2980
  }
2981
- Ce.value = c.idx, Ze.value = c.side;
2981
+ Ce.value = m.idx, Ye.value = m.side;
2982
2982
  }, Ft = (h) => {
2983
2983
  if (re.value < 0) return;
2984
- const c = h.relatedTarget;
2985
- c && h.currentTarget.contains(c) || (Ce.value = -1);
2984
+ const m = h.relatedTarget;
2985
+ m && h.currentTarget.contains(m) || (Ce.value = -1);
2986
2986
  }, qt = (h) => {
2987
2987
  if (re.value < 0) return;
2988
2988
  h.preventDefault();
2989
- const c = ut(h), f = re.value;
2990
- if (dt(), !c) return;
2991
- let K = c.side === "above" ? c.idx : c.idx + 1;
2989
+ const m = ut(h), f = re.value;
2990
+ if (dt(), !m) return;
2991
+ let K = m.side === "above" ? m.idx : m.idx + 1;
2992
2992
  f < K && (K -= 1), K !== f && i("row-move", { from: f, to: K });
2993
- }, jt = (h, c) => {
2994
- c.preventDefault(), c.stopPropagation();
2993
+ }, jt = (h, m) => {
2994
+ m.preventDefault(), m.stopPropagation();
2995
2995
  const f = _.value.find((Re) => Re.key === h);
2996
2996
  if (!f) return;
2997
- const K = c.clientX, ue = f.width ?? v(h)?.width ?? v(h)?.minWidth ?? at, fe = (Re) => {
2997
+ const K = m.clientX, ue = f.width ?? v(h)?.width ?? v(h)?.minWidth ?? at, fe = (Re) => {
2998
2998
  f.width = Math.max(at, Math.round(ue + Re.clientX - K));
2999
2999
  }, _e = () => {
3000
3000
  window.removeEventListener("mousemove", fe), window.removeEventListener("mouseup", _e);
3001
3001
  };
3002
3002
  window.addEventListener("mousemove", fe), window.addEventListener("mouseup", _e);
3003
- }, Gt = z ? { prop: z.key, order: z.order } : void 0, ct = ({ prop: h, order: c }) => {
3004
- E.value = h ?? "", $.value = c, i("sort-change", { key: h ?? "", order: c });
3005
- }, Le = (h, c) => {
3006
- c === null ? (p.value?.clearSort(), ct({ prop: "", order: null })) : p.value?.sort(h, c);
3003
+ }, Gt = z ? { prop: z.key, order: z.order } : void 0, ct = ({ prop: h, order: m }) => {
3004
+ E.value = h ?? "", $.value = m, i("sort-change", { key: h ?? "", order: m });
3005
+ }, Le = (h, m) => {
3006
+ m === null ? (p.value?.clearSort(), ct({ prop: "", order: null })) : p.value?.sort(h, m);
3007
3007
  }, Xt = (h) => {
3008
3008
  if (E.value !== h) {
3009
3009
  Le(h, "ascending");
3010
3010
  return;
3011
3011
  }
3012
3012
  Le(h, $.value === "ascending" ? "descending" : $.value === "descending" ? null : "ascending");
3013
- }, Ee = U([]), Jt = (h) => {
3013
+ }, Ee = U([]), Zt = (h) => {
3014
3014
  Ee.value = h, i("selection-change", h);
3015
- }, Yt = (h) => [
3015
+ }, Jt = (h) => [
3016
3016
  Ee.value.includes(h.row) ? "emt-row-selected" : "",
3017
3017
  r.rowClassName?.(h) ?? "",
3018
- Zt(h.rowIndex)
3019
- ].filter(Boolean).join(" "), Zt = (h) => {
3018
+ Yt(h.rowIndex)
3019
+ ].filter(Boolean).join(" "), Yt = (h) => {
3020
3020
  if (re.value < 0 || Ce.value !== h) return "";
3021
- let c = Ze.value === "above" ? Ce.value : Ce.value + 1;
3022
- return re.value < c && (c -= 1), c === re.value ? "" : Ze.value === "above" ? "emt-drop-above" : "emt-drop-below";
3021
+ let m = Ye.value === "above" ? Ce.value : Ce.value + 1;
3022
+ return re.value < m && (m -= 1), m === re.value ? "" : Ye.value === "above" ? "emt-drop-above" : "emt-drop-below";
3023
3023
  }, Qt = () => p.value?.clearSelection(), $e = U(-1), ge = { active: !1, state: !1, last: -1 }, Oe = () => p.value?.store?.states?.data?.value ?? r.data, Qe = (h) => {
3024
- const c = h.target.closest("tr"), f = c?.parentElement;
3025
- return !c || !f ? -1 : [...f.children].indexOf(c);
3026
- }, Ue = (h, c) => {
3024
+ const m = h.target.closest("tr"), f = m?.parentElement;
3025
+ return !m || !f ? -1 : [...f.children].indexOf(m);
3026
+ }, Ue = (h, m) => {
3027
3027
  const f = Oe()[h];
3028
- f && Ee.value.includes(f) !== c && p.value?.toggleRowSelection(f, c);
3028
+ f && Ee.value.includes(f) !== m && p.value?.toggleRowSelection(f, m);
3029
3029
  }, mt = (h) => {
3030
- const c = h.target, f = c.closest(".el-checkbox");
3031
- return f && c.closest(".el-table__body") ? f : null;
3030
+ const m = h.target, f = m.closest(".el-checkbox");
3031
+ return f && m.closest(".el-table__body") ? f : null;
3032
3032
  }, vt = (h) => {
3033
3033
  if (!mt(h) || (h.preventDefault(), h.stopPropagation(), !h.shiftKey)) return;
3034
- const c = Qe(h);
3035
- if (!(c < 0))
3036
- if ($e.value >= 0 && $e.value !== c) {
3037
- const f = !Ee.value.includes(Oe()[c]), [K, ue] = $e.value < c ? [$e.value, c] : [c, $e.value];
3034
+ const m = Qe(h);
3035
+ if (!(m < 0))
3036
+ if ($e.value >= 0 && $e.value !== m) {
3037
+ const f = !Ee.value.includes(Oe()[m]), [K, ue] = $e.value < m ? [$e.value, m] : [m, $e.value];
3038
3038
  for (let fe = K; fe <= ue; fe++) Ue(fe, f);
3039
3039
  } else
3040
- Ue(c, !Ee.value.includes(Oe()[c])), $e.value = c;
3040
+ Ue(m, !Ee.value.includes(Oe()[m])), $e.value = m;
3041
3041
  }, ft = (h) => {
3042
3042
  if (!mt(h) || (h.preventDefault(), h.shiftKey)) return;
3043
- const c = Qe(h);
3044
- c < 0 || (ge.active = !0, ge.state = !Ee.value.includes(Oe()[c]), ge.last = c, Ue(c, ge.state), $e.value = c);
3043
+ const m = Qe(h);
3044
+ m < 0 || (ge.active = !0, ge.state = !Ee.value.includes(Oe()[m]), ge.last = m, Ue(m, ge.state), $e.value = m);
3045
3045
  }, ht = (h) => {
3046
3046
  if (!ge.active || !h.target.closest(".el-table__body")) return;
3047
3047
  const f = Qe(h);
@@ -3062,16 +3062,16 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3062
3062
  }, kt = (h) => {
3063
3063
  be?.scrollBy({ left: h * 280, behavior: "smooth" });
3064
3064
  }, Ke = U(""), $t = (h) => {
3065
- const c = yt.value;
3066
- if (!c) return;
3065
+ const m = yt.value;
3066
+ if (!m) return;
3067
3067
  const f = (ue) => {
3068
3068
  if (!ue) return !1;
3069
3069
  const fe = ue.getBoundingClientRect(), _e = fe.x + fe.width / 2, Re = fe.y + fe.height / 2;
3070
3070
  return Math.hypot(h.clientX - _e, h.clientY - Re) < 26;
3071
- }, K = f(c.querySelector(".emt-scrollbtn.is-left")) ? "left" : f(c.querySelector(".emt-scrollbtn.is-right")) ? "right" : "";
3071
+ }, K = f(m.querySelector(".emt-scrollbtn.is-left")) ? "left" : f(m.querySelector(".emt-scrollbtn.is-right")) ? "right" : "";
3072
3072
  K !== Ke.value && (Ke.value = K);
3073
3073
  };
3074
- return Je(() => {
3074
+ return Ze(() => {
3075
3075
  document.addEventListener("mousemove", $t, !0);
3076
3076
  const h = p.value?.$el;
3077
3077
  h?.addEventListener("click", vt, !0), h?.addEventListener("mousedown", ft, !0), h?.addEventListener("mouseover", ht, !0), window.addEventListener("mouseup", pt), be = h?.querySelector(".el-table__body-wrapper .el-scrollbar__wrap") ?? h?.querySelector(".el-table__body-wrapper") ?? null, be?.addEventListener("scroll", Te, { passive: !0 }), be && (He = new ResizeObserver(Te), He.observe(be), be.firstElementChild instanceof HTMLElement && He.observe(be.firstElementChild)), Te(), I && i("sort-change", { key: I.key, order: I.order });
@@ -3089,12 +3089,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3089
3089
  togglePinSide: ce,
3090
3090
  togglePinSmart: H,
3091
3091
  clearSelection: Qt,
3092
- toggleRowSelection: (h, c) => p.value?.toggleRowSelection(h, c),
3093
- toggleRowExpansion: (h, c) => p.value?.toggleRowExpansion(h, c)
3094
- }), (h, c) => (t(), s("div", {
3092
+ toggleRowSelection: (h, m) => p.value?.toggleRowSelection(h, m),
3093
+ toggleRowExpansion: (h, m) => p.value?.toggleRowExpansion(h, m)
3094
+ }), (h, m) => (t(), s("div", {
3095
3095
  class: W(["emt", { "is-compact": a(R) === "compact", "is-comfort": a(R) !== "compact" && e.defaultDensity === "comfort" }])
3096
3096
  }, [
3097
- m("div", {
3097
+ u("div", {
3098
3098
  ref_key: "scrollWrapRef",
3099
3099
  ref: yt,
3100
3100
  class: W(["emt-scroll", { "is-dragging": !!C.value, "is-rowdragging": re.value >= 0 }]),
@@ -3102,20 +3102,20 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3102
3102
  onDragleave: Ft,
3103
3103
  onDrop: qt
3104
3104
  }, [
3105
- P(a(ro), {
3105
+ P(a(uo), {
3106
3106
  ref_key: "tableRef",
3107
3107
  ref: p,
3108
3108
  data: e.data,
3109
3109
  "row-key": g.value,
3110
- "row-class-name": Yt,
3110
+ "row-class-name": Jt,
3111
3111
  "default-sort": a(Gt),
3112
3112
  height: e.height,
3113
3113
  "max-height": e.maxHeight,
3114
3114
  "expand-row-keys": e.expandable ? e.expandRowKeys : void 0,
3115
3115
  "tooltip-options": { popperClass: "emo-tip", showAfter: 300, placement: "top", transition: "el-fade-in-linear" },
3116
- onSelectionChange: Jt,
3116
+ onSelectionChange: Zt,
3117
3117
  onSortChange: ct,
3118
- onRowClick: c[6] || (c[6] = (f, K, ue) => i("row-click", f, K, ue))
3118
+ onRowClick: m[6] || (m[6] = (f, K, ue) => i("row-click", f, K, ue))
3119
3119
  }, {
3120
3120
  empty: w(() => [
3121
3121
  A(h.$slots, "empty", {}, void 0, !0)
@@ -3137,21 +3137,21 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3137
3137
  align: "center",
3138
3138
  "class-name": "emt-col-rowdrag"
3139
3139
  }, {
3140
- header: w(() => [...c[12] || (c[12] = [
3141
- m("span", null, null, -1)
3140
+ header: w(() => [...m[12] || (m[12] = [
3141
+ u("span", null, null, -1)
3142
3142
  ])]),
3143
3143
  default: w(({ $index: f }) => [
3144
3144
  P(he, {
3145
3145
  content: a(l)("common.emooTable.dragToReorderRows")
3146
3146
  }, {
3147
3147
  default: w(() => [
3148
- m("button", {
3148
+ u("button", {
3149
3149
  class: "emt-rowdrag",
3150
3150
  type: "button",
3151
3151
  draggable: "true",
3152
3152
  "aria-label": a(l)("common.emooTable.dragToReorderRows"),
3153
3153
  "data-testid": `emt-rowdrag-${f}`,
3154
- onClick: c[0] || (c[0] = le(() => {
3154
+ onClick: m[0] || (m[0] = le(() => {
3155
3155
  }, ["stop"])),
3156
3156
  onDragstart: (K) => Wt(f, K),
3157
3157
  onDragend: dt
@@ -3160,7 +3160,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3160
3160
  size: 12,
3161
3161
  "aria-hidden": "true"
3162
3162
  })
3163
- ], 40, Ws)
3163
+ ], 40, Ns)
3164
3164
  ]),
3165
3165
  _: 2
3166
3166
  }, 1032, ["content"])
@@ -3174,12 +3174,12 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3174
3174
  fixed: "left",
3175
3175
  "reserve-selection": !!e.rowKey
3176
3176
  }, null, 8, ["reserve-selection"])) : S("", !0),
3177
- (t(!0), s(D, null, J(a(X), (f) => (t(), x(a(Ve), {
3177
+ (t(!0), s(D, null, Z(a(X), (f) => (t(), x(a(Ve), {
3178
3178
  key: f.key,
3179
3179
  prop: f.key,
3180
3180
  label: v(f.key)?.label,
3181
3181
  sortable: v(f.key)?.sortable ?? !1,
3182
- "sort-by": u(f.key),
3182
+ "sort-by": c(f.key),
3183
3183
  "show-overflow-tooltip": b(f.key),
3184
3184
  resizable: v(f.key)?.resizable ?? !0,
3185
3185
  width: a(d)(f),
@@ -3188,7 +3188,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3188
3188
  fixed: f.fixed === "" ? !1 : f.fixed
3189
3189
  }, {
3190
3190
  header: w(() => [
3191
- m("div", {
3191
+ u("div", {
3192
3192
  class: W(["emt-th", {
3193
3193
  "is-drop-left": L.value === f.key && Q.value === "left",
3194
3194
  "is-drop-right": L.value === f.key && Q.value === "right"
@@ -3201,26 +3201,26 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3201
3201
  content: a(l)("common.emooTable.dragToReorder")
3202
3202
  }, {
3203
3203
  default: w(() => [
3204
- m("button", {
3204
+ u("button", {
3205
3205
  class: "emt-th__grip",
3206
3206
  type: "button",
3207
3207
  draggable: "true",
3208
3208
  "aria-label": a(l)("common.emooTable.dragToReorderCol", { col: v(f.key)?.label }),
3209
3209
  "data-testid": `emt-th-grip-${f.key}`,
3210
- onClick: c[1] || (c[1] = le(() => {
3210
+ onClick: m[1] || (m[1] = le(() => {
3211
3211
  }, ["stop"])),
3212
3212
  onDragstart: (K) => ae(f, K),
3213
- onDragend: B
3213
+ onDragend: M
3214
3214
  }, [
3215
3215
  P(a(wt), {
3216
3216
  size: 12,
3217
3217
  "aria-hidden": "true"
3218
3218
  })
3219
- ], 40, Fs)
3219
+ ], 40, qs)
3220
3220
  ]),
3221
3221
  _: 2
3222
3222
  }, 1032, ["content"]),
3223
- m("span", qs, k(v(f.key)?.label), 1),
3223
+ u("span", js, k(v(f.key)?.label), 1),
3224
3224
  A(h.$slots, `${f.key}-header`, {
3225
3225
  col: v(f.key)
3226
3226
  }, void 0, !0),
@@ -3229,7 +3229,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3229
3229
  content: a(l)("common.emooTable.sort")
3230
3230
  }, {
3231
3231
  default: w(() => [
3232
- m("button", {
3232
+ u("button", {
3233
3233
  class: "emt-th__sort",
3234
3234
  type: "button",
3235
3235
  "data-testid": `emt-th-sort-${f.key}`,
@@ -3245,44 +3245,44 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3245
3245
  size: 12,
3246
3246
  weight: "bold",
3247
3247
  "aria-hidden": "true"
3248
- })) : (t(), x(a(ko), {
3248
+ })) : (t(), x(a($o), {
3249
3249
  key: 2,
3250
3250
  size: 12,
3251
3251
  class: "emt-th__sortidle",
3252
3252
  "aria-hidden": "true"
3253
3253
  }))
3254
- ], 8, js)
3254
+ ], 8, Gs)
3255
3255
  ]),
3256
3256
  _: 2
3257
3257
  }, 1032, ["content"])) : S("", !0),
3258
- c[13] || (c[13] = m("span", { class: "emt-th__spacer" }, null, -1)),
3259
- m("span", Gs, [
3260
- a(M)(f) || f.fixed ? (t(), x(he, {
3258
+ m[13] || (m[13] = u("span", { class: "emt-th__spacer" }, null, -1)),
3259
+ u("span", Xs, [
3260
+ a(B)(f) || f.fixed ? (t(), x(he, {
3261
3261
  key: 0,
3262
3262
  content: N(f)
3263
3263
  }, {
3264
3264
  default: w(() => [
3265
- m("button", {
3265
+ u("button", {
3266
3266
  class: W(["emt-th__tool", { "is-on": !!f.fixed }]),
3267
3267
  type: "button",
3268
3268
  "data-testid": `emt-th-pin-${f.key}`,
3269
3269
  onClick: le((K) => a(H)(f), ["stop"])
3270
3270
  }, [
3271
- P(a($o), {
3271
+ P(a(_o), {
3272
3272
  size: 13,
3273
3273
  weight: f.fixed ? "fill" : void 0,
3274
3274
  "aria-hidden": "true"
3275
3275
  }, null, 8, ["weight"])
3276
- ], 10, Xs)
3276
+ ], 10, Zs)
3277
3277
  ]),
3278
3278
  _: 2
3279
3279
  }, 1032, ["content"])) : S("", !0),
3280
- a(M)(f) ? (t(), x(he, {
3280
+ a(B)(f) ? (t(), x(he, {
3281
3281
  key: 1,
3282
3282
  content: a(l)("common.emooTable.hideColumn")
3283
3283
  }, {
3284
3284
  default: w(() => [
3285
- m("button", {
3285
+ u("button", {
3286
3286
  class: "emt-th__tool",
3287
3287
  type: "button",
3288
3288
  disabled: a(ee) === 1,
@@ -3297,7 +3297,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3297
3297
  ]),
3298
3298
  _: 2
3299
3299
  }, 1032, ["content"])) : S("", !0),
3300
- P(ha, {
3300
+ P(pa, {
3301
3301
  "col-key": f.key,
3302
3302
  sortable: v(f.key)?.sortable,
3303
3303
  sorted: a(E) === f.key ? a($) : null,
@@ -3310,25 +3310,25 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3310
3310
  onUnpin: (K) => a(q)(f),
3311
3311
  onPin: (K) => a(ce)(f, K),
3312
3312
  onHide: (K) => a(se)(f),
3313
- onRestore: c[4] || (c[4] = (K) => {
3313
+ onRestore: m[4] || (m[4] = (K) => {
3314
3314
  const ue = a(_).find((fe) => fe.key === K);
3315
3315
  ue && (ue.visible = !0);
3316
3316
  }),
3317
3317
  onReset: te
3318
3318
  }, {
3319
3319
  default: w(() => [
3320
- m("button", {
3320
+ u("button", {
3321
3321
  class: "emt-th__tool emt-th__dots",
3322
3322
  type: "button",
3323
3323
  title: a(l)("common.emooTable.colActions"),
3324
3324
  "aria-label": a(l)("common.emooTable.colActionsCol", { col: v(f.key)?.label }),
3325
3325
  "data-testid": `emt-th-menu-${f.key}`,
3326
- onClick: c[2] || (c[2] = le(() => {
3326
+ onClick: m[2] || (m[2] = le(() => {
3327
3327
  }, ["stop"])),
3328
- onMousedown: c[3] || (c[3] = le(() => {
3328
+ onMousedown: m[3] || (m[3] = le(() => {
3329
3329
  }, ["stop"]))
3330
3330
  }, [
3331
- P(a(Mt), {
3331
+ P(a(Bt), {
3332
3332
  size: 14,
3333
3333
  weight: "bold",
3334
3334
  "aria-hidden": "true"
@@ -3343,24 +3343,24 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3343
3343
  content: a(l)("common.emooTable.dragToResize")
3344
3344
  }, {
3345
3345
  default: w(() => [
3346
- m("span", {
3346
+ u("span", {
3347
3347
  class: "emt-th__resize",
3348
3348
  "data-testid": `emt-th-resize-${f.key}`,
3349
3349
  onMousedown: (K) => jt(f.key, K),
3350
- onClick: c[5] || (c[5] = le(() => {
3350
+ onClick: m[5] || (m[5] = le(() => {
3351
3351
  }, ["stop"]))
3352
- }, null, 40, Zs)
3352
+ }, null, 40, Qs)
3353
3353
  ]),
3354
3354
  _: 2
3355
3355
  }, 1032, ["content"])) : S("", !0)
3356
- ], 42, Ns)
3356
+ ], 42, Fs)
3357
3357
  ]),
3358
3358
  default: w(({ row: K, $index: ue }) => [
3359
3359
  ue !== -1 ? A(h.$slots, f.key, {
3360
3360
  row: K,
3361
3361
  index: ue
3362
3362
  }, () => [
3363
- Y(k(K[f.key]), 1)
3363
+ J(k(K[f.key]), 1)
3364
3364
  ], !0, 0) : S("", !0)
3365
3365
  ]),
3366
3366
  _: 2
@@ -3384,18 +3384,18 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3384
3384
  content: a(l)("common.emooTable.scrollLeft")
3385
3385
  }, {
3386
3386
  default: w(() => [
3387
- Ne(m("button", {
3387
+ Ne(u("button", {
3388
3388
  class: W(["emt-scrollbtn is-left", { "is-live": Ke.value === "left" }]),
3389
3389
  type: "button",
3390
3390
  "aria-label": a(l)("common.emooTable.scrollLeft"),
3391
3391
  "data-testid": "emt-scroll-left",
3392
- onClick: c[7] || (c[7] = (f) => kt(-1))
3392
+ onClick: m[7] || (m[7] = (f) => kt(-1))
3393
3393
  }, [
3394
3394
  P(a(Pt), {
3395
3395
  size: 14,
3396
3396
  "aria-hidden": "true"
3397
3397
  })
3398
- ], 10, Qs), [
3398
+ ], 10, en), [
3399
3399
  [tt, bt.value]
3400
3400
  ])
3401
3401
  ]),
@@ -3405,18 +3405,18 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3405
3405
  content: a(l)("common.emooTable.scrollRight")
3406
3406
  }, {
3407
3407
  default: w(() => [
3408
- Ne(m("button", {
3408
+ Ne(u("button", {
3409
3409
  class: W(["emt-scrollbtn is-right", { "is-live": Ke.value === "right" }]),
3410
3410
  type: "button",
3411
3411
  "aria-label": a(l)("common.emooTable.scrollRight"),
3412
3412
  "data-testid": "emt-scroll-right",
3413
- onClick: c[8] || (c[8] = (f) => kt(1))
3413
+ onClick: m[8] || (m[8] = (f) => kt(1))
3414
3414
  }, [
3415
3415
  P(a(Ge), {
3416
3416
  size: 14,
3417
3417
  "aria-hidden": "true"
3418
3418
  })
3419
- ], 10, en), [
3419
+ ], 10, tn), [
3420
3420
  [tt, gt.value]
3421
3421
  ])
3422
3422
  ]),
@@ -3430,33 +3430,33 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3430
3430
  "data-testid": "emt-loading"
3431
3431
  }, [
3432
3432
  P(Kt, { size: 18 })
3433
- ], 8, tn)) : S("", !0)
3433
+ ], 8, on)) : S("", !0)
3434
3434
  ], 34),
3435
- P(is, {
3435
+ P(rs, {
3436
3436
  total: e.total ?? 0,
3437
3437
  page: e.page ?? 1,
3438
3438
  "page-size": a(y),
3439
3439
  "page-sizes": e.pageSizes,
3440
3440
  density: a(R),
3441
3441
  "density-base": e.defaultDensity,
3442
- "onUpdate:page": c[9] || (c[9] = (f) => i("update:page", f)),
3443
- "onUpdate:pageSize": c[10] || (c[10] = (f) => {
3442
+ "onUpdate:page": m[9] || (m[9] = (f) => i("update:page", f)),
3443
+ "onUpdate:pageSize": m[10] || (m[10] = (f) => {
3444
3444
  y.value = f, i("size-change", f);
3445
3445
  }),
3446
- "onUpdate:density": c[11] || (c[11] = (f) => R.value = f)
3446
+ "onUpdate:density": m[11] || (m[11] = (f) => R.value = f)
3447
3447
  }, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
3448
3448
  ], 2));
3449
3449
  }
3450
- }), ei = /* @__PURE__ */ Z(on, [["__scopeId", "data-v-bbdd9cda"]]), an = { class: "emoo-upload" }, ln = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], sn = { class: "emoo-upload__title" }, nn = { class: "emoo-upload__browse" }, rn = {
3450
+ }), li = /* @__PURE__ */ Y(an, [["__scopeId", "data-v-bbdd9cda"]]), ln = { class: "emoo-upload" }, sn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], nn = { class: "emoo-upload__title" }, rn = { class: "emoo-upload__browse" }, dn = {
3451
3451
  key: 0,
3452
3452
  class: "emoo-upload__hint"
3453
- }, dn = ["accept", "multiple"], un = ["data-testid"], cn = { class: "emoo-upload__meta" }, mn = ["disabled", "data-testid", "onClick"], vn = {
3453
+ }, un = ["accept", "multiple"], cn = ["data-testid"], mn = { class: "emoo-upload__meta" }, vn = ["disabled", "data-testid", "onClick"], fn = {
3454
3454
  key: 0,
3455
3455
  class: "emoo-upload__sub"
3456
- }, fn = { class: "emoo-upload__err" }, hn = {
3456
+ }, hn = { class: "emoo-upload__err" }, pn = {
3457
3457
  key: 2,
3458
3458
  class: "emoo-upload__pct"
3459
- }, pn = /* @__PURE__ */ F({
3459
+ }, yn = /* @__PURE__ */ F({
3460
3460
  __name: "EmooUpload",
3461
3461
  props: {
3462
3462
  files: {},
@@ -3469,7 +3469,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3469
3469
  },
3470
3470
  emits: ["select", "remove", "retry", "preview"],
3471
3471
  setup(e, { emit: n }) {
3472
- const o = e, l = n, { t: r } = me(), i = U(), p = U(!1), v = ($) => $.status ?? "ready", g = () => o.disabled || o.readonly, u = () => {
3472
+ const o = e, l = n, { t: r } = me(), i = U(), p = U(!1), v = ($) => $.status ?? "ready", g = () => o.disabled || o.readonly, c = () => {
3473
3473
  g() || i.value?.click();
3474
3474
  }, b = () => {
3475
3475
  g() || (p.value = !0);
@@ -3481,7 +3481,7 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3481
3481
  }, R = ($) => {
3482
3482
  p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
3483
3483
  }, E = ($) => $ < 1024 ? `${$} B` : $ < 1024 * 1024 ? `${Math.round($ / 1024)} KB` : $ < 1024 * 1024 * 1024 ? `${($ / 1024 / 1024).toFixed(1)} MB` : `${($ / 1024 / 1024 / 1024).toFixed(1)} GB`;
3484
- return ($, I) => (t(), s("div", an, [
3484
+ return ($, I) => (t(), s("div", ln, [
3485
3485
  e.readonly ? S("", !0) : (t(), s("div", {
3486
3486
  key: 0,
3487
3487
  class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
@@ -3492,22 +3492,22 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3492
3492
  onDragover: le(b, ["prevent"]),
3493
3493
  onDragleave: I[0] || (I[0] = (z) => p.value = !1),
3494
3494
  onDrop: le(R, ["prevent"]),
3495
- onClick: u,
3495
+ onClick: c,
3496
3496
  onKeydown: [
3497
- je(le(u, ["prevent"]), ["enter"]),
3498
- je(le(u, ["prevent"]), ["space"])
3497
+ je(le(c, ["prevent"]), ["enter"]),
3498
+ je(le(c, ["prevent"]), ["space"])
3499
3499
  ]
3500
3500
  }, [
3501
- P(a(_o), {
3501
+ P(a(wo), {
3502
3502
  class: "emoo-upload__ico",
3503
3503
  "aria-hidden": "true"
3504
3504
  }),
3505
- m("p", sn, [
3506
- Y(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
3507
- m("span", nn, k(a(r)("common.emooUpload.browse")), 1)
3505
+ u("p", nn, [
3506
+ J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
3507
+ u("span", rn, k(a(r)("common.emooUpload.browse")), 1)
3508
3508
  ]),
3509
- e.hint ? (t(), s("p", rn, k(e.hint), 1)) : S("", !0),
3510
- m("input", {
3509
+ e.hint ? (t(), s("p", dn, k(e.hint), 1)) : S("", !0),
3510
+ u("input", {
3511
3511
  ref_key: "inputRef",
3512
3512
  ref: i,
3513
3513
  type: "file",
@@ -3515,31 +3515,31 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3515
3515
  accept: e.accept,
3516
3516
  multiple: e.multiple,
3517
3517
  onChange: y
3518
- }, null, 40, dn)
3519
- ], 42, ln)),
3518
+ }, null, 40, un)
3519
+ ], 42, sn)),
3520
3520
  e.files.length ? (t(), s("ul", {
3521
3521
  key: 1,
3522
3522
  class: "emoo-upload__list",
3523
3523
  "data-testid": e.listTestId
3524
3524
  }, [
3525
- (t(!0), s(D, null, J(e.files, (z, j) => (t(), s("li", {
3525
+ (t(!0), s(D, null, Z(e.files, (z, j) => (t(), s("li", {
3526
3526
  key: j,
3527
3527
  class: "emoo-upload__file"
3528
3528
  }, [
3529
- P(a(wo), {
3529
+ P(a(So), {
3530
3530
  class: "emoo-upload__file-ico",
3531
3531
  "aria-hidden": "true"
3532
3532
  }),
3533
- m("div", cn, [
3534
- m("button", {
3533
+ u("div", mn, [
3534
+ u("button", {
3535
3535
  type: "button",
3536
3536
  class: "emoo-upload__name",
3537
3537
  disabled: e.disabled,
3538
3538
  "data-testid": `upload-preview-${j}`,
3539
3539
  onClick: (X) => l("preview", z)
3540
- }, k(z.name), 9, mn),
3541
- z.size != null ? (t(), s("span", vn, k(E(z.size)), 1)) : S("", !0),
3542
- v(z) === "uploading" ? (t(), x(ms, {
3540
+ }, k(z.name), 9, vn),
3541
+ z.size != null ? (t(), s("span", fn, k(E(z.size)), 1)) : S("", !0),
3542
+ v(z) === "uploading" ? (t(), x(vs, {
3543
3543
  key: 1,
3544
3544
  class: "emoo-upload__progress",
3545
3545
  size: "mini",
@@ -3552,11 +3552,11 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3552
3552
  tone: "success"
3553
3553
  }, {
3554
3554
  default: w(() => [
3555
- Y(k(a(r)("common.emooUpload.done")), 1)
3555
+ J(k(a(r)("common.emooUpload.done")), 1)
3556
3556
  ]),
3557
3557
  _: 1
3558
3558
  })) : v(z) === "failed" ? (t(), s(D, { key: 1 }, [
3559
- m("span", fn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3559
+ u("span", hn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3560
3560
  e.readonly ? S("", !0) : (t(), x(De, {
3561
3561
  key: 0,
3562
3562
  variant: "text",
@@ -3564,14 +3564,14 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3564
3564
  onClick: (X) => l("retry", z)
3565
3565
  }, {
3566
3566
  icon: w(() => [
3567
- P(a(Bt))
3567
+ P(a(Mt))
3568
3568
  ]),
3569
3569
  default: w(() => [
3570
- Y(" " + k(a(r)("common.emooUpload.retry")), 1)
3570
+ J(" " + k(a(r)("common.emooUpload.retry")), 1)
3571
3571
  ]),
3572
3572
  _: 1
3573
3573
  }, 8, ["onClick"]))
3574
- ], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", hn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
3574
+ ], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", pn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
3575
3575
  e.readonly ? S("", !0) : (t(), x(De, {
3576
3576
  key: 3,
3577
3577
  variant: "text",
@@ -3586,10 +3586,10 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3586
3586
  _: 1
3587
3587
  }, 8, ["aria-label", "onClick"]))
3588
3588
  ]))), 128))
3589
- ], 8, un)) : S("", !0)
3589
+ ], 8, cn)) : S("", !0)
3590
3590
  ]));
3591
3591
  }
3592
- }), ti = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-65eda28b"]]), yn = { class: "emoo-value-diff" }, bn = { class: "emoo-value-diff__old" }, gn = /* @__PURE__ */ F({
3592
+ }), si = /* @__PURE__ */ Y(yn, [["__scopeId", "data-v-65eda28b"]]), bn = { class: "emoo-value-diff" }, gn = { class: "emoo-value-diff__old" }, kn = /* @__PURE__ */ F({
3593
3593
  __name: "EmooValueDiff",
3594
3594
  props: {
3595
3595
  value: {},
@@ -3597,35 +3597,99 @@ const Ws = ["aria-label", "data-testid", "onDragstart"], Ns = ["onDragover", "on
3597
3597
  },
3598
3598
  setup(e) {
3599
3599
  const n = e, o = V(() => !!n.old && n.old !== n.value);
3600
- return (l, r) => (t(), s("span", yn, [
3600
+ return (l, r) => (t(), s("span", bn, [
3601
3601
  o.value ? (t(), s(D, { key: 0 }, [
3602
- m("span", bn, k(e.old), 1),
3603
- P(a(So), {
3602
+ u("span", gn, k(e.old), 1),
3603
+ P(a(Co), {
3604
3604
  class: "emoo-value-diff__arrow",
3605
3605
  "aria-hidden": "true"
3606
3606
  })
3607
3607
  ], 64)) : S("", !0),
3608
- m("span", {
3608
+ u("span", {
3609
3609
  class: W(["emoo-value-diff__value", { "emoo-value-diff__value--changed": o.value }])
3610
3610
  }, k(e.value), 3)
3611
3611
  ]));
3612
3612
  }
3613
- }), oi = /* @__PURE__ */ Z(gn, [["__scopeId", "data-v-40f98722"]]), kn = {
3613
+ }), ni = /* @__PURE__ */ Y(kn, [["__scopeId", "data-v-40f98722"]]), $n = {
3614
3614
  xmlns: "http://www.w3.org/2000/svg",
3615
3615
  viewBox: "0 0 256 256",
3616
3616
  width: "1em",
3617
3617
  height: "1em",
3618
3618
  fill: "currentColor"
3619
- }, ai = /* @__PURE__ */ F({
3619
+ }, ii = /* @__PURE__ */ F({
3620
3620
  __name: "IconChatCirclePlus",
3621
3621
  setup(e) {
3622
- return (n, o) => (t(), s("svg", kn, [...o[0] || (o[0] = [
3623
- m("path", { d: "M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z" }, null, -1),
3624
- m("path", { d: "M168,128a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h24A8,8,0,0,1,168,128Z" }, null, -1)
3622
+ return (n, o) => (t(), s("svg", $n, [...o[0] || (o[0] = [
3623
+ u("path", { d: "M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-6.54-.67L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Z" }, null, -1),
3624
+ u("path", { d: "M168,128a8,8,0,0,1-8,8H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h24A8,8,0,0,1,168,128Z" }, null, -1)
3625
3625
  ])]));
3626
3626
  }
3627
+ }), _n = ["width", "height"], wn = ["id"], Sn = ["mask"], ri = /* @__PURE__ */ F({
3628
+ __name: "IconPaperPlanes",
3629
+ props: {
3630
+ size: { default: "1em" }
3631
+ },
3632
+ setup(e) {
3633
+ const n = oo();
3634
+ return (o, l) => (t(), s("svg", {
3635
+ xmlns: "http://www.w3.org/2000/svg",
3636
+ viewBox: "0 0 24 24",
3637
+ width: e.size,
3638
+ height: e.size,
3639
+ fill: "none",
3640
+ "aria-hidden": "true",
3641
+ focusable: "false",
3642
+ "data-testid": "icon-paper-planes"
3643
+ }, [
3644
+ u("defs", null, [
3645
+ u("mask", {
3646
+ id: a(n),
3647
+ maskUnits: "userSpaceOnUse",
3648
+ x: "0",
3649
+ y: "0",
3650
+ width: "24",
3651
+ height: "24",
3652
+ "mask-type": "luminance"
3653
+ }, [...l[0] || (l[0] = [
3654
+ u("rect", {
3655
+ x: "0",
3656
+ y: "0",
3657
+ width: "24",
3658
+ height: "24",
3659
+ fill: "white"
3660
+ }, null, -1),
3661
+ u("path", {
3662
+ d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z",
3663
+ fill: "black",
3664
+ stroke: "black",
3665
+ "stroke-width": "3.5",
3666
+ "stroke-linejoin": "round"
3667
+ }, null, -1)
3668
+ ])], 8, wn)
3669
+ ]),
3670
+ u("g", {
3671
+ mask: `url(#${a(n)})`,
3672
+ stroke: "currentColor",
3673
+ "stroke-width": "1.5",
3674
+ "stroke-linejoin": "round",
3675
+ "stroke-linecap": "round"
3676
+ }, [...l[1] || (l[1] = [
3677
+ u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
3678
+ u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
3679
+ ])], 8, Sn),
3680
+ l[2] || (l[2] = u("g", {
3681
+ stroke: "currentColor",
3682
+ "stroke-width": "1.5",
3683
+ "stroke-linejoin": "round",
3684
+ "stroke-linecap": "round"
3685
+ }, [
3686
+ u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
3687
+ u("path", { d: "m13.9 15.1 3.4-3.6" })
3688
+ ], -1))
3689
+ ], 8, _n));
3690
+ }
3627
3691
  });
3628
- function li(e, n = {}) {
3692
+ function di(e, n = {}) {
3629
3693
  const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
3630
3694
  let p = null;
3631
3695
  const v = () => {
@@ -3636,7 +3700,7 @@ function li(e, n = {}) {
3636
3700
  }, g = () => {
3637
3701
  const R = e();
3638
3702
  !R || R === p || (p && p.removeEventListener("scroll", v), p = R, R.addEventListener("scroll", v, { passive: !0 }), v());
3639
- }, u = () => {
3703
+ }, c = () => {
3640
3704
  p?.removeEventListener("scroll", v), p = null;
3641
3705
  }, b = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, _ = () => {
3642
3706
  !r.value || !p || p.scrollTo({ top: p.scrollHeight, behavior: "auto" });
@@ -3646,18 +3710,18 @@ function li(e, n = {}) {
3646
3710
  behavior: b() ? "auto" : "smooth"
3647
3711
  }), r.value = !0, i.value = !1, n.onDockUpdate?.(!0));
3648
3712
  };
3649
- return typeof _t == "function" && _t(u), { docked: r, showScrollToBottom: i, attach: g, detach: u, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
3713
+ return typeof _t == "function" && _t(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
3650
3714
  }
3651
- const $n = 3e3, _n = 5e3;
3715
+ const Cn = 3e3, En = 5e3;
3652
3716
  function We(e, n, o = {}) {
3653
- return uo({
3717
+ return co({
3654
3718
  type: e,
3655
3719
  message: n,
3656
- duration: o.duration ?? (e === "error" ? _n : $n),
3720
+ duration: o.duration ?? (e === "error" ? En : Cn),
3657
3721
  showClose: o.showClose ?? e === "error"
3658
3722
  });
3659
3723
  }
3660
- const si = {
3724
+ const ui = {
3661
3725
  /** 成功反馈:3s,无按钮 */
3662
3726
  success: (e, n) => We("success", e, n),
3663
3727
  /** 中性信息:3s,无按钮 */
@@ -3667,10 +3731,10 @@ const si = {
3667
3731
  /** 错误:5s + 关闭钮(默认)——读错要够久 */
3668
3732
  error: (e, n) => We("error", e, n)
3669
3733
  };
3670
- async function ni(e, n) {
3734
+ async function ci(e, n) {
3671
3735
  const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
3672
3736
  try {
3673
- return await co.confirm(e, o, {
3737
+ return await mo.confirm(e, o, {
3674
3738
  type: "warning",
3675
3739
  confirmButtonText: l,
3676
3740
  cancelButtonText: r,
@@ -3680,71 +3744,72 @@ async function ni(e, n) {
3680
3744
  return !1;
3681
3745
  }
3682
3746
  }
3683
- function ii(e, n = !1) {
3684
- const o = Co(e, n), l = {};
3747
+ function mi(e, n = !1) {
3748
+ const o = Eo(e, n), l = {};
3685
3749
  for (const [r, i] of Object.entries(o))
3686
3750
  l[r.replace("--emoo-", "--el-")] = i;
3687
3751
  return l;
3688
3752
  }
3689
3753
  export {
3690
- ui as AVATAR_TINT_PALETTE,
3691
- zn as EmooActionPill,
3692
- Rn as EmooActionSheet,
3693
- Vn as EmooAgentSelect,
3754
+ hi as AVATAR_TINT_PALETTE,
3755
+ Bn as EmooActionPill,
3756
+ Dn as EmooActionSheet,
3757
+ Pn as EmooAgentSelect,
3694
3758
  De as EmooButton,
3695
- Bn as EmooCard,
3696
- Mn as EmooChips,
3697
- sa as EmooChoice,
3698
- ha as EmooColumnMenu,
3699
- Dn as EmooDrawer,
3700
- Ra as EmooEmpty,
3701
- Pn as EmooField,
3702
- An as EmooFieldGrid,
3703
- Ln as EmooGhostButton,
3704
- On as EmooGroupLabel,
3705
- Un as EmooHistoryList,
3706
- Hn as EmooMemberRoleSelect,
3707
- Kn as EmooMemberSelect,
3759
+ An as EmooCard,
3760
+ Ln as EmooChips,
3761
+ na as EmooChoice,
3762
+ pa as EmooColumnMenu,
3763
+ On as EmooDrawer,
3764
+ Va as EmooEmpty,
3765
+ Un as EmooField,
3766
+ Hn as EmooFieldGrid,
3767
+ Kn as EmooGhostButton,
3768
+ Wn as EmooGroupLabel,
3769
+ Nn as EmooHistoryList,
3770
+ Fn as EmooMemberRoleSelect,
3771
+ qn as EmooMemberSelect,
3708
3772
  xe as EmooMemberTag,
3709
- Wn as EmooMessage,
3710
- Nn as EmooNavMenu,
3711
- Fn as EmooNavSegmented,
3712
- qn as EmooOptionRows,
3713
- is as EmooPagination,
3714
- jn as EmooPopover,
3715
- ms as EmooProgress,
3716
- Gn as EmooRoleSelect,
3717
- Xn as EmooSearchBox,
3718
- Jn as EmooSegmented,
3719
- Yn as EmooSidebarShell,
3720
- Ga as EmooSkeleton,
3773
+ jn as EmooMessage,
3774
+ Gn as EmooNavMenu,
3775
+ Xn as EmooNavSegmented,
3776
+ Zn as EmooOptionRows,
3777
+ rs as EmooPagination,
3778
+ Jn as EmooPopover,
3779
+ vs as EmooProgress,
3780
+ Yn as EmooRoleSelect,
3781
+ Qn as EmooSearchBox,
3782
+ ei as EmooSegmented,
3783
+ ti as EmooSidebarShell,
3784
+ Xa as EmooSkeleton,
3721
3785
  Kt as EmooSpinner,
3722
3786
  Bs as EmooStatusTag,
3723
- Zn as EmooSwitcherPanel,
3724
- ei as EmooTable,
3725
- Qn as EmooTagsInput,
3787
+ oi as EmooSwitcherPanel,
3788
+ li as EmooTable,
3789
+ ai as EmooTagsInput,
3726
3790
  he as EmooTooltip,
3727
- ti as EmooUpload,
3728
- oi as EmooValueDiff,
3729
- Hs as INLINE_TOOLS_MIN_WIDTH,
3730
- ai as IconChatCirclePlus,
3791
+ si as EmooUpload,
3792
+ ni as EmooValueDiff,
3793
+ Ks as INLINE_TOOLS_MIN_WIDTH,
3794
+ ii as IconChatCirclePlus,
3795
+ ri as IconPaperPlanes,
3731
3796
  at as MIN_COL_WIDTH,
3732
- ci as PRESET_COLORS,
3797
+ pi as PRESET_COLORS,
3733
3798
  At as SheetDragHandle,
3734
- mi as avatarTintOf,
3735
- ii as elementPlusColorVars,
3736
- ni as emooConfirm,
3737
- yi as emoouiMessages,
3738
- ya as getDrawerWidth,
3739
- vi as hexToRgbString,
3740
- fi as mixColor,
3741
- _a as nearestSheetTier,
3742
- hi as primaryColorVars,
3743
- ba as saveDrawerWidth,
3744
- si as toast,
3745
- Ks as useColumnPrefs,
3746
- li as useMessageScroll,
3747
- Be as useRemoteOptions,
3748
- Me as useSelectedOptions,
3749
- wa as useSheetHeightDrag
3799
+ yi as avatarTintOf,
3800
+ mi as elementPlusColorVars,
3801
+ ci as emooConfirm,
3802
+ _i as emoouiMessages,
3803
+ ba as getDrawerWidth,
3804
+ bi as hexToRgbString,
3805
+ gi as mixColor,
3806
+ wa as nearestSheetTier,
3807
+ ki as primaryColorVars,
3808
+ ga as saveDrawerWidth,
3809
+ ui as toast,
3810
+ Ws as useColumnPrefs,
3811
+ di as useMessageScroll,
3812
+ Me as useRemoteOptions,
3813
+ Be as useSelectedOptions,
3814
+ Sa as useSheetHeightDrag
3750
3815
  };